autotool.patch 2.3 MB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231152321523315234152351523615237152381523915240152411524215243152441524515246152471524815249152501525115252152531525415255152561525715258152591526015261152621526315264152651526615267152681526915270152711527215273152741527515276152771527815279152801528115282152831528415285152861528715288152891529015291152921529315294152951529615297152981529915300153011530215303153041530515306153071530815309153101531115312153131531415315153161531715318153191532015321153221532315324153251532615327153281532915330153311533215333153341533515336153371533815339153401534115342153431534415345153461534715348153491535015351153521535315354153551535615357153581535915360153611536215363153641536515366153671536815369153701537115372153731537415375153761537715378153791538015381153821538315384153851538615387153881538915390153911539215393153941539515396153971539815399154001540115402154031540415405154061540715408154091541015411154121541315414154151541615417154181541915420154211542215423154241542515426154271542815429154301543115432154331543415435154361543715438154391544015441154421544315444154451544615447154481544915450154511545215453154541545515456154571545815459154601546115462154631546415465154661546715468154691547015471154721547315474154751547615477154781547915480154811548215483154841548515486154871548815489154901549115492154931549415495154961549715498154991550015501155021550315504155051550615507155081550915510155111551215513155141551515516155171551815519155201552115522155231552415525155261552715528155291553015531155321553315534155351553615537155381553915540155411554215543155441554515546155471554815549155501555115552155531555415555155561555715558155591556015561155621556315564155651556615567155681556915570155711557215573155741557515576155771557815579155801558115582155831558415585155861558715588155891559015591155921559315594155951559615597155981559915600156011560215603156041560515606156071560815609156101561115612156131561415615156161561715618156191562015621156221562315624156251562615627156281562915630156311563215633156341563515636156371563815639156401564115642156431564415645156461564715648156491565015651156521565315654156551565615657156581565915660156611566215663156641566515666156671566815669156701567115672156731567415675156761567715678156791568015681156821568315684156851568615687156881568915690156911569215693156941569515696156971569815699157001570115702157031570415705157061570715708157091571015711157121571315714157151571615717157181571915720157211572215723157241572515726157271572815729157301573115732157331573415735157361573715738157391574015741157421574315744157451574615747157481574915750157511575215753157541575515756157571575815759157601576115762157631576415765157661576715768157691577015771157721577315774157751577615777157781577915780157811578215783157841578515786157871578815789157901579115792157931579415795157961579715798157991580015801158021580315804158051580615807158081580915810158111581215813158141581515816158171581815819158201582115822158231582415825158261582715828158291583015831158321583315834158351583615837158381583915840158411584215843158441584515846158471584815849158501585115852158531585415855158561585715858158591586015861158621586315864158651586615867158681586915870158711587215873158741587515876158771587815879158801588115882158831588415885158861588715888158891589015891158921589315894158951589615897158981589915900159011590215903159041590515906159071590815909159101591115912159131591415915159161591715918159191592015921159221592315924159251592615927159281592915930159311593215933159341593515936159371593815939159401594115942159431594415945159461594715948159491595015951159521595315954159551595615957159581595915960159611596215963159641596515966159671596815969159701597115972159731597415975159761597715978159791598015981159821598315984159851598615987159881598915990159911599215993159941599515996159971599815999160001600116002160031600416005160061600716008160091601016011160121601316014160151601616017160181601916020160211602216023160241602516026160271602816029160301603116032160331603416035160361603716038160391604016041160421604316044160451604616047160481604916050160511605216053160541605516056160571605816059160601606116062160631606416065160661606716068160691607016071160721607316074160751607616077160781607916080160811608216083160841608516086160871608816089160901609116092160931609416095160961609716098160991610016101161021610316104161051610616107161081610916110161111611216113161141611516116161171611816119161201612116122161231612416125161261612716128161291613016131161321613316134161351613616137161381613916140161411614216143161441614516146161471614816149161501615116152161531615416155161561615716158161591616016161161621616316164161651616616167161681616916170161711617216173161741617516176161771617816179161801618116182161831618416185161861618716188161891619016191161921619316194161951619616197161981619916200162011620216203162041620516206162071620816209162101621116212162131621416215162161621716218162191622016221162221622316224162251622616227162281622916230162311623216233162341623516236162371623816239162401624116242162431624416245162461624716248162491625016251162521625316254162551625616257162581625916260162611626216263162641626516266162671626816269162701627116272162731627416275162761627716278162791628016281162821628316284162851628616287162881628916290162911629216293162941629516296162971629816299163001630116302163031630416305163061630716308163091631016311163121631316314163151631616317163181631916320163211632216323163241632516326163271632816329163301633116332163331633416335163361633716338163391634016341163421634316344163451634616347163481634916350163511635216353163541635516356163571635816359163601636116362163631636416365163661636716368163691637016371163721637316374163751637616377163781637916380163811638216383163841638516386163871638816389163901639116392163931639416395163961639716398163991640016401164021640316404164051640616407164081640916410164111641216413164141641516416164171641816419164201642116422164231642416425164261642716428164291643016431164321643316434164351643616437164381643916440164411644216443164441644516446164471644816449164501645116452164531645416455164561645716458164591646016461164621646316464164651646616467164681646916470164711647216473164741647516476164771647816479164801648116482164831648416485164861648716488164891649016491164921649316494164951649616497164981649916500165011650216503165041650516506165071650816509165101651116512165131651416515165161651716518165191652016521165221652316524165251652616527165281652916530165311653216533165341653516536165371653816539165401654116542165431654416545165461654716548165491655016551165521655316554165551655616557165581655916560165611656216563165641656516566165671656816569165701657116572165731657416575165761657716578165791658016581165821658316584165851658616587165881658916590165911659216593165941659516596165971659816599166001660116602166031660416605166061660716608166091661016611166121661316614166151661616617166181661916620166211662216623166241662516626166271662816629166301663116632166331663416635166361663716638166391664016641166421664316644166451664616647166481664916650166511665216653166541665516656166571665816659166601666116662166631666416665166661666716668166691667016671166721667316674166751667616677166781667916680166811668216683166841668516686166871668816689166901669116692166931669416695166961669716698166991670016701167021670316704167051670616707167081670916710167111671216713167141671516716167171671816719167201672116722167231672416725167261672716728167291673016731167321673316734167351673616737167381673916740167411674216743167441674516746167471674816749167501675116752167531675416755167561675716758167591676016761167621676316764167651676616767167681676916770167711677216773167741677516776167771677816779167801678116782167831678416785167861678716788167891679016791167921679316794167951679616797167981679916800168011680216803168041680516806168071680816809168101681116812168131681416815168161681716818168191682016821168221682316824168251682616827168281682916830168311683216833168341683516836168371683816839168401684116842168431684416845168461684716848168491685016851168521685316854168551685616857168581685916860168611686216863168641686516866168671686816869168701687116872168731687416875168761687716878168791688016881168821688316884168851688616887168881688916890168911689216893168941689516896168971689816899169001690116902169031690416905169061690716908169091691016911169121691316914169151691616917169181691916920169211692216923169241692516926169271692816929169301693116932169331693416935169361693716938169391694016941169421694316944169451694616947169481694916950169511695216953169541695516956169571695816959169601696116962169631696416965169661696716968169691697016971169721697316974169751697616977169781697916980169811698216983169841698516986169871698816989169901699116992169931699416995169961699716998169991700017001170021700317004170051700617007170081700917010170111701217013170141701517016170171701817019170201702117022170231702417025170261702717028170291703017031170321703317034170351703617037170381703917040170411704217043170441704517046170471704817049170501705117052170531705417055170561705717058170591706017061170621706317064170651706617067170681706917070170711707217073170741707517076170771707817079170801708117082170831708417085170861708717088170891709017091170921709317094170951709617097170981709917100171011710217103171041710517106171071710817109171101711117112171131711417115171161711717118171191712017121171221712317124171251712617127171281712917130171311713217133171341713517136171371713817139171401714117142171431714417145171461714717148171491715017151171521715317154171551715617157171581715917160171611716217163171641716517166171671716817169171701717117172171731717417175171761717717178171791718017181171821718317184171851718617187171881718917190171911719217193171941719517196171971719817199172001720117202172031720417205172061720717208172091721017211172121721317214172151721617217172181721917220172211722217223172241722517226172271722817229172301723117232172331723417235172361723717238172391724017241172421724317244172451724617247172481724917250172511725217253172541725517256172571725817259172601726117262172631726417265172661726717268172691727017271172721727317274172751727617277172781727917280172811728217283172841728517286172871728817289172901729117292172931729417295172961729717298172991730017301173021730317304173051730617307173081730917310173111731217313173141731517316173171731817319173201732117322173231732417325173261732717328173291733017331173321733317334173351733617337173381733917340173411734217343173441734517346173471734817349173501735117352173531735417355173561735717358173591736017361173621736317364173651736617367173681736917370173711737217373173741737517376173771737817379173801738117382173831738417385173861738717388173891739017391173921739317394173951739617397173981739917400174011740217403174041740517406174071740817409174101741117412174131741417415174161741717418174191742017421174221742317424174251742617427174281742917430174311743217433174341743517436174371743817439174401744117442174431744417445174461744717448174491745017451174521745317454174551745617457174581745917460174611746217463174641746517466174671746817469174701747117472174731747417475174761747717478174791748017481174821748317484174851748617487174881748917490174911749217493174941749517496174971749817499175001750117502175031750417505175061750717508175091751017511175121751317514175151751617517175181751917520175211752217523175241752517526175271752817529175301753117532175331753417535175361753717538175391754017541175421754317544175451754617547175481754917550175511755217553175541755517556175571755817559175601756117562175631756417565175661756717568175691757017571175721757317574175751757617577175781757917580175811758217583175841758517586175871758817589175901759117592175931759417595175961759717598175991760017601176021760317604176051760617607176081760917610176111761217613176141761517616176171761817619176201762117622176231762417625176261762717628176291763017631176321763317634176351763617637176381763917640176411764217643176441764517646176471764817649176501765117652176531765417655176561765717658176591766017661176621766317664176651766617667176681766917670176711767217673176741767517676176771767817679176801768117682176831768417685176861768717688176891769017691176921769317694176951769617697176981769917700177011770217703177041770517706177071770817709177101771117712177131771417715177161771717718177191772017721177221772317724177251772617727177281772917730177311773217733177341773517736177371773817739177401774117742177431774417745177461774717748177491775017751177521775317754177551775617757177581775917760177611776217763177641776517766177671776817769177701777117772177731777417775177761777717778177791778017781177821778317784177851778617787177881778917790177911779217793177941779517796177971779817799178001780117802178031780417805178061780717808178091781017811178121781317814178151781617817178181781917820178211782217823178241782517826178271782817829178301783117832178331783417835178361783717838178391784017841178421784317844178451784617847178481784917850178511785217853178541785517856178571785817859178601786117862178631786417865178661786717868178691787017871178721787317874178751787617877178781787917880178811788217883178841788517886178871788817889178901789117892178931789417895178961789717898178991790017901179021790317904179051790617907179081790917910179111791217913179141791517916179171791817919179201792117922179231792417925179261792717928179291793017931179321793317934179351793617937179381793917940179411794217943179441794517946179471794817949179501795117952179531795417955179561795717958179591796017961179621796317964179651796617967179681796917970179711797217973179741797517976179771797817979179801798117982179831798417985179861798717988179891799017991179921799317994179951799617997179981799918000180011800218003180041800518006180071800818009180101801118012180131801418015180161801718018180191802018021180221802318024180251802618027180281802918030180311803218033180341803518036180371803818039180401804118042180431804418045180461804718048180491805018051180521805318054180551805618057180581805918060180611806218063180641806518066180671806818069180701807118072180731807418075180761807718078180791808018081180821808318084180851808618087180881808918090180911809218093180941809518096180971809818099181001810118102181031810418105181061810718108181091811018111181121811318114181151811618117181181811918120181211812218123181241812518126181271812818129181301813118132181331813418135181361813718138181391814018141181421814318144181451814618147181481814918150181511815218153181541815518156181571815818159181601816118162181631816418165181661816718168181691817018171181721817318174181751817618177181781817918180181811818218183181841818518186181871818818189181901819118192181931819418195181961819718198181991820018201182021820318204182051820618207182081820918210182111821218213182141821518216182171821818219182201822118222182231822418225182261822718228182291823018231182321823318234182351823618237182381823918240182411824218243182441824518246182471824818249182501825118252182531825418255182561825718258182591826018261182621826318264182651826618267182681826918270182711827218273182741827518276182771827818279182801828118282182831828418285182861828718288182891829018291182921829318294182951829618297182981829918300183011830218303183041830518306183071830818309183101831118312183131831418315183161831718318183191832018321183221832318324183251832618327183281832918330183311833218333183341833518336183371833818339183401834118342183431834418345183461834718348183491835018351183521835318354183551835618357183581835918360183611836218363183641836518366183671836818369183701837118372183731837418375183761837718378183791838018381183821838318384183851838618387183881838918390183911839218393183941839518396183971839818399184001840118402184031840418405184061840718408184091841018411184121841318414184151841618417184181841918420184211842218423184241842518426184271842818429184301843118432184331843418435184361843718438184391844018441184421844318444184451844618447184481844918450184511845218453184541845518456184571845818459184601846118462184631846418465184661846718468184691847018471184721847318474184751847618477184781847918480184811848218483184841848518486184871848818489184901849118492184931849418495184961849718498184991850018501185021850318504185051850618507185081850918510185111851218513185141851518516185171851818519185201852118522185231852418525185261852718528185291853018531185321853318534185351853618537185381853918540185411854218543185441854518546185471854818549185501855118552185531855418555185561855718558185591856018561185621856318564185651856618567185681856918570185711857218573185741857518576185771857818579185801858118582185831858418585185861858718588185891859018591185921859318594185951859618597185981859918600186011860218603186041860518606186071860818609186101861118612186131861418615186161861718618186191862018621186221862318624186251862618627186281862918630186311863218633186341863518636186371863818639186401864118642186431864418645186461864718648186491865018651186521865318654186551865618657186581865918660186611866218663186641866518666186671866818669186701867118672186731867418675186761867718678186791868018681186821868318684186851868618687186881868918690186911869218693186941869518696186971869818699187001870118702187031870418705187061870718708187091871018711187121871318714187151871618717187181871918720187211872218723187241872518726187271872818729187301873118732187331873418735187361873718738187391874018741187421874318744187451874618747187481874918750187511875218753187541875518756187571875818759187601876118762187631876418765187661876718768187691877018771187721877318774187751877618777187781877918780187811878218783187841878518786187871878818789187901879118792187931879418795187961879718798187991880018801188021880318804188051880618807188081880918810188111881218813188141881518816188171881818819188201882118822188231882418825188261882718828188291883018831188321883318834188351883618837188381883918840188411884218843188441884518846188471884818849188501885118852188531885418855188561885718858188591886018861188621886318864188651886618867188681886918870188711887218873188741887518876188771887818879188801888118882188831888418885188861888718888188891889018891188921889318894188951889618897188981889918900189011890218903189041890518906189071890818909189101891118912189131891418915189161891718918189191892018921189221892318924189251892618927189281892918930189311893218933189341893518936189371893818939189401894118942189431894418945189461894718948189491895018951189521895318954189551895618957189581895918960189611896218963189641896518966189671896818969189701897118972189731897418975189761897718978189791898018981189821898318984189851898618987189881898918990189911899218993189941899518996189971899818999190001900119002190031900419005190061900719008190091901019011190121901319014190151901619017190181901919020190211902219023190241902519026190271902819029190301903119032190331903419035190361903719038190391904019041190421904319044190451904619047190481904919050190511905219053190541905519056190571905819059190601906119062190631906419065190661906719068190691907019071190721907319074190751907619077190781907919080190811908219083190841908519086190871908819089190901909119092190931909419095190961909719098190991910019101191021910319104191051910619107191081910919110191111911219113191141911519116191171911819119191201912119122191231912419125191261912719128191291913019131191321913319134191351913619137191381913919140191411914219143191441914519146191471914819149191501915119152191531915419155191561915719158191591916019161191621916319164191651916619167191681916919170191711917219173191741917519176191771917819179191801918119182191831918419185191861918719188191891919019191191921919319194191951919619197191981919919200192011920219203192041920519206192071920819209192101921119212192131921419215192161921719218192191922019221192221922319224192251922619227192281922919230192311923219233192341923519236192371923819239192401924119242192431924419245192461924719248192491925019251192521925319254192551925619257192581925919260192611926219263192641926519266192671926819269192701927119272192731927419275192761927719278192791928019281192821928319284192851928619287192881928919290192911929219293192941929519296192971929819299193001930119302193031930419305193061930719308193091931019311193121931319314193151931619317193181931919320193211932219323193241932519326193271932819329193301933119332193331933419335193361933719338193391934019341193421934319344193451934619347193481934919350193511935219353193541935519356193571935819359193601936119362193631936419365193661936719368193691937019371193721937319374193751937619377193781937919380193811938219383193841938519386193871938819389193901939119392193931939419395193961939719398193991940019401194021940319404194051940619407194081940919410194111941219413194141941519416194171941819419194201942119422194231942419425194261942719428194291943019431194321943319434194351943619437194381943919440194411944219443194441944519446194471944819449194501945119452194531945419455194561945719458194591946019461194621946319464194651946619467194681946919470194711947219473194741947519476194771947819479194801948119482194831948419485194861948719488194891949019491194921949319494194951949619497194981949919500195011950219503195041950519506195071950819509195101951119512195131951419515195161951719518195191952019521195221952319524195251952619527195281952919530195311953219533195341953519536195371953819539195401954119542195431954419545195461954719548195491955019551195521955319554195551955619557195581955919560195611956219563195641956519566195671956819569195701957119572195731957419575195761957719578195791958019581195821958319584195851958619587195881958919590195911959219593195941959519596195971959819599196001960119602196031960419605196061960719608196091961019611196121961319614196151961619617196181961919620196211962219623196241962519626196271962819629196301963119632196331963419635196361963719638196391964019641196421964319644196451964619647196481964919650196511965219653196541965519656196571965819659196601966119662196631966419665196661966719668196691967019671196721967319674196751967619677196781967919680196811968219683196841968519686196871968819689196901969119692196931969419695196961969719698196991970019701197021970319704197051970619707197081970919710197111971219713197141971519716197171971819719197201972119722197231972419725197261972719728197291973019731197321973319734197351973619737197381973919740197411974219743197441974519746197471974819749197501975119752197531975419755197561975719758197591976019761197621976319764197651976619767197681976919770197711977219773197741977519776197771977819779197801978119782197831978419785197861978719788197891979019791197921979319794197951979619797197981979919800198011980219803198041980519806198071980819809198101981119812198131981419815198161981719818198191982019821198221982319824198251982619827198281982919830198311983219833198341983519836198371983819839198401984119842198431984419845198461984719848198491985019851198521985319854198551985619857198581985919860198611986219863198641986519866198671986819869198701987119872198731987419875198761987719878198791988019881198821988319884198851988619887198881988919890198911989219893198941989519896198971989819899199001990119902199031990419905199061990719908199091991019911199121991319914199151991619917199181991919920199211992219923199241992519926199271992819929199301993119932199331993419935199361993719938199391994019941199421994319944199451994619947199481994919950199511995219953199541995519956199571995819959199601996119962199631996419965199661996719968199691997019971199721997319974199751997619977199781997919980199811998219983199841998519986199871998819989199901999119992199931999419995199961999719998199992000020001200022000320004200052000620007200082000920010200112001220013200142001520016200172001820019200202002120022200232002420025200262002720028200292003020031200322003320034200352003620037200382003920040200412004220043200442004520046200472004820049200502005120052200532005420055200562005720058200592006020061200622006320064200652006620067200682006920070200712007220073200742007520076200772007820079200802008120082200832008420085200862008720088200892009020091200922009320094200952009620097200982009920100201012010220103201042010520106201072010820109201102011120112201132011420115201162011720118201192012020121201222012320124201252012620127201282012920130201312013220133201342013520136201372013820139201402014120142201432014420145201462014720148201492015020151201522015320154201552015620157201582015920160201612016220163201642016520166201672016820169201702017120172201732017420175201762017720178201792018020181201822018320184201852018620187201882018920190201912019220193201942019520196201972019820199202002020120202202032020420205202062020720208202092021020211202122021320214202152021620217202182021920220202212022220223202242022520226202272022820229202302023120232202332023420235202362023720238202392024020241202422024320244202452024620247202482024920250202512025220253202542025520256202572025820259202602026120262202632026420265202662026720268202692027020271202722027320274202752027620277202782027920280202812028220283202842028520286202872028820289202902029120292202932029420295202962029720298202992030020301203022030320304203052030620307203082030920310203112031220313203142031520316203172031820319203202032120322203232032420325203262032720328203292033020331203322033320334203352033620337203382033920340203412034220343203442034520346203472034820349203502035120352203532035420355203562035720358203592036020361203622036320364203652036620367203682036920370203712037220373203742037520376203772037820379203802038120382203832038420385203862038720388203892039020391203922039320394203952039620397203982039920400204012040220403204042040520406204072040820409204102041120412204132041420415204162041720418204192042020421204222042320424204252042620427204282042920430204312043220433204342043520436204372043820439204402044120442204432044420445204462044720448204492045020451204522045320454204552045620457204582045920460204612046220463204642046520466204672046820469204702047120472204732047420475204762047720478204792048020481204822048320484204852048620487204882048920490204912049220493204942049520496204972049820499205002050120502205032050420505205062050720508205092051020511205122051320514205152051620517205182051920520205212052220523205242052520526205272052820529205302053120532205332053420535205362053720538205392054020541205422054320544205452054620547205482054920550205512055220553205542055520556205572055820559205602056120562205632056420565205662056720568205692057020571205722057320574205752057620577205782057920580205812058220583205842058520586205872058820589205902059120592205932059420595205962059720598205992060020601206022060320604206052060620607206082060920610206112061220613206142061520616206172061820619206202062120622206232062420625206262062720628206292063020631206322063320634206352063620637206382063920640206412064220643206442064520646206472064820649206502065120652206532065420655206562065720658206592066020661206622066320664206652066620667206682066920670206712067220673206742067520676206772067820679206802068120682206832068420685206862068720688206892069020691206922069320694206952069620697206982069920700207012070220703207042070520706207072070820709207102071120712207132071420715207162071720718207192072020721207222072320724207252072620727207282072920730207312073220733207342073520736207372073820739207402074120742207432074420745207462074720748207492075020751207522075320754207552075620757207582075920760207612076220763207642076520766207672076820769207702077120772207732077420775207762077720778207792078020781207822078320784207852078620787207882078920790207912079220793207942079520796207972079820799208002080120802208032080420805208062080720808208092081020811208122081320814208152081620817208182081920820208212082220823208242082520826208272082820829208302083120832208332083420835208362083720838208392084020841208422084320844208452084620847208482084920850208512085220853208542085520856208572085820859208602086120862208632086420865208662086720868208692087020871208722087320874208752087620877208782087920880208812088220883208842088520886208872088820889208902089120892208932089420895208962089720898208992090020901209022090320904209052090620907209082090920910209112091220913209142091520916209172091820919209202092120922209232092420925209262092720928209292093020931209322093320934209352093620937209382093920940209412094220943209442094520946209472094820949209502095120952209532095420955209562095720958209592096020961209622096320964209652096620967209682096920970209712097220973209742097520976209772097820979209802098120982209832098420985209862098720988209892099020991209922099320994209952099620997209982099921000210012100221003210042100521006210072100821009210102101121012210132101421015210162101721018210192102021021210222102321024210252102621027210282102921030210312103221033210342103521036210372103821039210402104121042210432104421045210462104721048210492105021051210522105321054210552105621057210582105921060210612106221063210642106521066210672106821069210702107121072210732107421075210762107721078210792108021081210822108321084210852108621087210882108921090210912109221093210942109521096210972109821099211002110121102211032110421105211062110721108211092111021111211122111321114211152111621117211182111921120211212112221123211242112521126211272112821129211302113121132211332113421135211362113721138211392114021141211422114321144211452114621147211482114921150211512115221153211542115521156211572115821159211602116121162211632116421165211662116721168211692117021171211722117321174211752117621177211782117921180211812118221183211842118521186211872118821189211902119121192211932119421195211962119721198211992120021201212022120321204212052120621207212082120921210212112121221213212142121521216212172121821219212202122121222212232122421225212262122721228212292123021231212322123321234212352123621237212382123921240212412124221243212442124521246212472124821249212502125121252212532125421255212562125721258212592126021261212622126321264212652126621267212682126921270212712127221273212742127521276212772127821279212802128121282212832128421285212862128721288212892129021291212922129321294212952129621297212982129921300213012130221303213042130521306213072130821309213102131121312213132131421315213162131721318213192132021321213222132321324213252132621327213282132921330213312133221333213342133521336213372133821339213402134121342213432134421345213462134721348213492135021351213522135321354213552135621357213582135921360213612136221363213642136521366213672136821369213702137121372213732137421375213762137721378213792138021381213822138321384213852138621387213882138921390213912139221393213942139521396213972139821399214002140121402214032140421405214062140721408214092141021411214122141321414214152141621417214182141921420214212142221423214242142521426214272142821429214302143121432214332143421435214362143721438214392144021441214422144321444214452144621447214482144921450214512145221453214542145521456214572145821459214602146121462214632146421465214662146721468214692147021471214722147321474214752147621477214782147921480214812148221483214842148521486214872148821489214902149121492214932149421495214962149721498214992150021501215022150321504215052150621507215082150921510215112151221513215142151521516215172151821519215202152121522215232152421525215262152721528215292153021531215322153321534215352153621537215382153921540215412154221543215442154521546215472154821549215502155121552215532155421555215562155721558215592156021561215622156321564215652156621567215682156921570215712157221573215742157521576215772157821579215802158121582215832158421585215862158721588215892159021591215922159321594215952159621597215982159921600216012160221603216042160521606216072160821609216102161121612216132161421615216162161721618216192162021621216222162321624216252162621627216282162921630216312163221633216342163521636216372163821639216402164121642216432164421645216462164721648216492165021651216522165321654216552165621657216582165921660216612166221663216642166521666216672166821669216702167121672216732167421675216762167721678216792168021681216822168321684216852168621687216882168921690216912169221693216942169521696216972169821699217002170121702217032170421705217062170721708217092171021711217122171321714217152171621717217182171921720217212172221723217242172521726217272172821729217302173121732217332173421735217362173721738217392174021741217422174321744217452174621747217482174921750217512175221753217542175521756217572175821759217602176121762217632176421765217662176721768217692177021771217722177321774217752177621777217782177921780217812178221783217842178521786217872178821789217902179121792217932179421795217962179721798217992180021801218022180321804218052180621807218082180921810218112181221813218142181521816218172181821819218202182121822218232182421825218262182721828218292183021831218322183321834218352183621837218382183921840218412184221843218442184521846218472184821849218502185121852218532185421855218562185721858218592186021861218622186321864218652186621867218682186921870218712187221873218742187521876218772187821879218802188121882218832188421885218862188721888218892189021891218922189321894218952189621897218982189921900219012190221903219042190521906219072190821909219102191121912219132191421915219162191721918219192192021921219222192321924219252192621927219282192921930219312193221933219342193521936219372193821939219402194121942219432194421945219462194721948219492195021951219522195321954219552195621957219582195921960219612196221963219642196521966219672196821969219702197121972219732197421975219762197721978219792198021981219822198321984219852198621987219882198921990219912199221993219942199521996219972199821999220002200122002220032200422005220062200722008220092201022011220122201322014220152201622017220182201922020220212202222023220242202522026220272202822029220302203122032220332203422035220362203722038220392204022041220422204322044220452204622047220482204922050220512205222053220542205522056220572205822059220602206122062220632206422065220662206722068220692207022071220722207322074220752207622077220782207922080220812208222083220842208522086220872208822089220902209122092220932209422095220962209722098220992210022101221022210322104221052210622107221082210922110221112211222113221142211522116221172211822119221202212122122221232212422125221262212722128221292213022131221322213322134221352213622137221382213922140221412214222143221442214522146221472214822149221502215122152221532215422155221562215722158221592216022161221622216322164221652216622167221682216922170221712217222173221742217522176221772217822179221802218122182221832218422185221862218722188221892219022191221922219322194221952219622197221982219922200222012220222203222042220522206222072220822209222102221122212222132221422215222162221722218222192222022221222222222322224222252222622227222282222922230222312223222233222342223522236222372223822239222402224122242222432224422245222462224722248222492225022251222522225322254222552225622257222582225922260222612226222263222642226522266222672226822269222702227122272222732227422275222762227722278222792228022281222822228322284222852228622287222882228922290222912229222293222942229522296222972229822299223002230122302223032230422305223062230722308223092231022311223122231322314223152231622317223182231922320223212232222323223242232522326223272232822329223302233122332223332233422335223362233722338223392234022341223422234322344223452234622347223482234922350223512235222353223542235522356223572235822359223602236122362223632236422365223662236722368223692237022371223722237322374223752237622377223782237922380223812238222383223842238522386223872238822389223902239122392223932239422395223962239722398223992240022401224022240322404224052240622407224082240922410224112241222413224142241522416224172241822419224202242122422224232242422425224262242722428224292243022431224322243322434224352243622437224382243922440224412244222443224442244522446224472244822449224502245122452224532245422455224562245722458224592246022461224622246322464224652246622467224682246922470224712247222473224742247522476224772247822479224802248122482224832248422485224862248722488224892249022491224922249322494224952249622497224982249922500225012250222503225042250522506225072250822509225102251122512225132251422515225162251722518225192252022521225222252322524225252252622527225282252922530225312253222533225342253522536225372253822539225402254122542225432254422545225462254722548225492255022551225522255322554225552255622557225582255922560225612256222563225642256522566225672256822569225702257122572225732257422575225762257722578225792258022581225822258322584225852258622587225882258922590225912259222593225942259522596225972259822599226002260122602226032260422605226062260722608226092261022611226122261322614226152261622617226182261922620226212262222623226242262522626226272262822629226302263122632226332263422635226362263722638226392264022641226422264322644226452264622647226482264922650226512265222653226542265522656226572265822659226602266122662226632266422665226662266722668226692267022671226722267322674226752267622677226782267922680226812268222683226842268522686226872268822689226902269122692226932269422695226962269722698226992270022701227022270322704227052270622707227082270922710227112271222713227142271522716227172271822719227202272122722227232272422725227262272722728227292273022731227322273322734227352273622737227382273922740227412274222743227442274522746227472274822749227502275122752227532275422755227562275722758227592276022761227622276322764227652276622767227682276922770227712277222773227742277522776227772277822779227802278122782227832278422785227862278722788227892279022791227922279322794227952279622797227982279922800228012280222803228042280522806228072280822809228102281122812228132281422815228162281722818228192282022821228222282322824228252282622827228282282922830228312283222833228342283522836228372283822839228402284122842228432284422845228462284722848228492285022851228522285322854228552285622857228582285922860228612286222863228642286522866228672286822869228702287122872228732287422875228762287722878228792288022881228822288322884228852288622887228882288922890228912289222893228942289522896228972289822899229002290122902229032290422905229062290722908229092291022911229122291322914229152291622917229182291922920229212292222923229242292522926229272292822929229302293122932229332293422935229362293722938229392294022941229422294322944229452294622947229482294922950229512295222953229542295522956229572295822959229602296122962229632296422965229662296722968229692297022971229722297322974229752297622977229782297922980229812298222983229842298522986229872298822989229902299122992229932299422995229962299722998229992300023001230022300323004230052300623007230082300923010230112301223013230142301523016230172301823019230202302123022230232302423025230262302723028230292303023031230322303323034230352303623037230382303923040230412304223043230442304523046230472304823049230502305123052230532305423055230562305723058230592306023061230622306323064230652306623067230682306923070230712307223073230742307523076230772307823079230802308123082230832308423085230862308723088230892309023091230922309323094230952309623097230982309923100231012310223103231042310523106231072310823109231102311123112231132311423115231162311723118231192312023121231222312323124231252312623127231282312923130231312313223133231342313523136231372313823139231402314123142231432314423145231462314723148231492315023151231522315323154231552315623157231582315923160231612316223163231642316523166231672316823169231702317123172231732317423175231762317723178231792318023181231822318323184231852318623187231882318923190231912319223193231942319523196231972319823199232002320123202232032320423205232062320723208232092321023211232122321323214232152321623217232182321923220232212322223223232242322523226232272322823229232302323123232232332323423235232362323723238232392324023241232422324323244232452324623247232482324923250232512325223253232542325523256232572325823259232602326123262232632326423265232662326723268232692327023271232722327323274232752327623277232782327923280232812328223283232842328523286232872328823289232902329123292232932329423295232962329723298232992330023301233022330323304233052330623307233082330923310233112331223313233142331523316233172331823319233202332123322233232332423325233262332723328233292333023331233322333323334233352333623337233382333923340233412334223343233442334523346233472334823349233502335123352233532335423355233562335723358233592336023361233622336323364233652336623367233682336923370233712337223373233742337523376233772337823379233802338123382233832338423385233862338723388233892339023391233922339323394233952339623397233982339923400234012340223403234042340523406234072340823409234102341123412234132341423415234162341723418234192342023421234222342323424234252342623427234282342923430234312343223433234342343523436234372343823439234402344123442234432344423445234462344723448234492345023451234522345323454234552345623457234582345923460234612346223463234642346523466234672346823469234702347123472234732347423475234762347723478234792348023481234822348323484234852348623487234882348923490234912349223493234942349523496234972349823499235002350123502235032350423505235062350723508235092351023511235122351323514235152351623517235182351923520235212352223523235242352523526235272352823529235302353123532235332353423535235362353723538235392354023541235422354323544235452354623547235482354923550235512355223553235542355523556235572355823559235602356123562235632356423565235662356723568235692357023571235722357323574235752357623577235782357923580235812358223583235842358523586235872358823589235902359123592235932359423595235962359723598235992360023601236022360323604236052360623607236082360923610236112361223613236142361523616236172361823619236202362123622236232362423625236262362723628236292363023631236322363323634236352363623637236382363923640236412364223643236442364523646236472364823649236502365123652236532365423655236562365723658236592366023661236622366323664236652366623667236682366923670236712367223673236742367523676236772367823679236802368123682236832368423685236862368723688236892369023691236922369323694236952369623697236982369923700237012370223703237042370523706237072370823709237102371123712237132371423715237162371723718237192372023721237222372323724237252372623727237282372923730237312373223733237342373523736237372373823739237402374123742237432374423745237462374723748237492375023751237522375323754237552375623757237582375923760237612376223763237642376523766237672376823769237702377123772237732377423775237762377723778237792378023781237822378323784237852378623787237882378923790237912379223793237942379523796237972379823799238002380123802238032380423805238062380723808238092381023811238122381323814238152381623817238182381923820238212382223823238242382523826238272382823829238302383123832238332383423835238362383723838238392384023841238422384323844238452384623847238482384923850238512385223853238542385523856238572385823859238602386123862238632386423865238662386723868238692387023871238722387323874238752387623877238782387923880238812388223883238842388523886238872388823889238902389123892238932389423895238962389723898238992390023901239022390323904239052390623907239082390923910239112391223913239142391523916239172391823919239202392123922239232392423925239262392723928239292393023931239322393323934239352393623937239382393923940239412394223943239442394523946239472394823949239502395123952239532395423955239562395723958239592396023961239622396323964239652396623967239682396923970239712397223973239742397523976239772397823979239802398123982239832398423985239862398723988239892399023991239922399323994239952399623997239982399924000240012400224003240042400524006240072400824009240102401124012240132401424015240162401724018240192402024021240222402324024240252402624027240282402924030240312403224033240342403524036240372403824039240402404124042240432404424045240462404724048240492405024051240522405324054240552405624057240582405924060240612406224063240642406524066240672406824069240702407124072240732407424075240762407724078240792408024081240822408324084240852408624087240882408924090240912409224093240942409524096240972409824099241002410124102241032410424105241062410724108241092411024111241122411324114241152411624117241182411924120241212412224123241242412524126241272412824129241302413124132241332413424135241362413724138241392414024141241422414324144241452414624147241482414924150241512415224153241542415524156241572415824159241602416124162241632416424165241662416724168241692417024171241722417324174241752417624177241782417924180241812418224183241842418524186241872418824189241902419124192241932419424195241962419724198241992420024201242022420324204242052420624207242082420924210242112421224213242142421524216242172421824219242202422124222242232422424225242262422724228242292423024231242322423324234242352423624237242382423924240242412424224243242442424524246242472424824249242502425124252242532425424255242562425724258242592426024261242622426324264242652426624267242682426924270242712427224273242742427524276242772427824279242802428124282242832428424285242862428724288242892429024291242922429324294242952429624297242982429924300243012430224303243042430524306243072430824309243102431124312243132431424315243162431724318243192432024321243222432324324243252432624327243282432924330243312433224333243342433524336243372433824339243402434124342243432434424345243462434724348243492435024351243522435324354243552435624357243582435924360243612436224363243642436524366243672436824369243702437124372243732437424375243762437724378243792438024381243822438324384243852438624387243882438924390243912439224393243942439524396243972439824399244002440124402244032440424405244062440724408244092441024411244122441324414244152441624417244182441924420244212442224423244242442524426244272442824429244302443124432244332443424435244362443724438244392444024441244422444324444244452444624447244482444924450244512445224453244542445524456244572445824459244602446124462244632446424465244662446724468244692447024471244722447324474244752447624477244782447924480244812448224483244842448524486244872448824489244902449124492244932449424495244962449724498244992450024501245022450324504245052450624507245082450924510245112451224513245142451524516245172451824519245202452124522245232452424525245262452724528245292453024531245322453324534245352453624537245382453924540245412454224543245442454524546245472454824549245502455124552245532455424555245562455724558245592456024561245622456324564245652456624567245682456924570245712457224573245742457524576245772457824579245802458124582245832458424585245862458724588245892459024591245922459324594245952459624597245982459924600246012460224603246042460524606246072460824609246102461124612246132461424615246162461724618246192462024621246222462324624246252462624627246282462924630246312463224633246342463524636246372463824639246402464124642246432464424645246462464724648246492465024651246522465324654246552465624657246582465924660246612466224663246642466524666246672466824669246702467124672246732467424675246762467724678246792468024681246822468324684246852468624687246882468924690246912469224693246942469524696246972469824699247002470124702247032470424705247062470724708247092471024711247122471324714247152471624717247182471924720247212472224723247242472524726247272472824729247302473124732247332473424735247362473724738247392474024741247422474324744247452474624747247482474924750247512475224753247542475524756247572475824759247602476124762247632476424765247662476724768247692477024771247722477324774247752477624777247782477924780247812478224783247842478524786247872478824789247902479124792247932479424795247962479724798247992480024801248022480324804248052480624807248082480924810248112481224813248142481524816248172481824819248202482124822248232482424825248262482724828248292483024831248322483324834248352483624837248382483924840248412484224843248442484524846248472484824849248502485124852248532485424855248562485724858248592486024861248622486324864248652486624867248682486924870248712487224873248742487524876248772487824879248802488124882248832488424885248862488724888248892489024891248922489324894248952489624897248982489924900249012490224903249042490524906249072490824909249102491124912249132491424915249162491724918249192492024921249222492324924249252492624927249282492924930249312493224933249342493524936249372493824939249402494124942249432494424945249462494724948249492495024951249522495324954249552495624957249582495924960249612496224963249642496524966249672496824969249702497124972249732497424975249762497724978249792498024981249822498324984249852498624987249882498924990249912499224993249942499524996249972499824999250002500125002250032500425005250062500725008250092501025011250122501325014250152501625017250182501925020250212502225023250242502525026250272502825029250302503125032250332503425035250362503725038250392504025041250422504325044250452504625047250482504925050250512505225053250542505525056250572505825059250602506125062250632506425065250662506725068250692507025071250722507325074250752507625077250782507925080250812508225083250842508525086250872508825089250902509125092250932509425095250962509725098250992510025101251022510325104251052510625107251082510925110251112511225113251142511525116251172511825119251202512125122251232512425125251262512725128251292513025131251322513325134251352513625137251382513925140251412514225143251442514525146251472514825149251502515125152251532515425155251562515725158251592516025161251622516325164251652516625167251682516925170251712517225173251742517525176251772517825179251802518125182251832518425185251862518725188251892519025191251922519325194251952519625197251982519925200252012520225203252042520525206252072520825209252102521125212252132521425215252162521725218252192522025221252222522325224252252522625227252282522925230252312523225233252342523525236252372523825239252402524125242252432524425245252462524725248252492525025251252522525325254252552525625257252582525925260252612526225263252642526525266252672526825269252702527125272252732527425275252762527725278252792528025281252822528325284252852528625287252882528925290252912529225293252942529525296252972529825299253002530125302253032530425305253062530725308253092531025311253122531325314253152531625317253182531925320253212532225323253242532525326253272532825329253302533125332253332533425335253362533725338253392534025341253422534325344253452534625347253482534925350253512535225353253542535525356253572535825359253602536125362253632536425365253662536725368253692537025371253722537325374253752537625377253782537925380253812538225383253842538525386253872538825389253902539125392253932539425395253962539725398253992540025401254022540325404254052540625407254082540925410254112541225413254142541525416254172541825419254202542125422254232542425425254262542725428254292543025431254322543325434254352543625437254382543925440254412544225443254442544525446254472544825449254502545125452254532545425455254562545725458254592546025461254622546325464254652546625467254682546925470254712547225473254742547525476254772547825479254802548125482254832548425485254862548725488254892549025491254922549325494254952549625497254982549925500255012550225503255042550525506255072550825509255102551125512255132551425515255162551725518255192552025521255222552325524255252552625527255282552925530255312553225533255342553525536255372553825539255402554125542255432554425545255462554725548255492555025551255522555325554255552555625557255582555925560255612556225563255642556525566255672556825569255702557125572255732557425575255762557725578255792558025581255822558325584255852558625587255882558925590255912559225593255942559525596255972559825599256002560125602256032560425605256062560725608256092561025611256122561325614256152561625617256182561925620256212562225623256242562525626256272562825629256302563125632256332563425635256362563725638256392564025641256422564325644256452564625647256482564925650256512565225653256542565525656256572565825659256602566125662256632566425665256662566725668256692567025671256722567325674256752567625677256782567925680256812568225683256842568525686256872568825689256902569125692256932569425695256962569725698256992570025701257022570325704257052570625707257082570925710257112571225713257142571525716257172571825719257202572125722257232572425725257262572725728257292573025731257322573325734257352573625737257382573925740257412574225743257442574525746257472574825749257502575125752257532575425755257562575725758257592576025761257622576325764257652576625767257682576925770257712577225773257742577525776257772577825779257802578125782257832578425785257862578725788257892579025791257922579325794257952579625797257982579925800258012580225803258042580525806258072580825809258102581125812258132581425815258162581725818258192582025821258222582325824258252582625827258282582925830258312583225833258342583525836258372583825839258402584125842258432584425845258462584725848258492585025851258522585325854258552585625857258582585925860258612586225863258642586525866258672586825869258702587125872258732587425875258762587725878258792588025881258822588325884258852588625887258882588925890258912589225893258942589525896258972589825899259002590125902259032590425905259062590725908259092591025911259122591325914259152591625917259182591925920259212592225923259242592525926259272592825929259302593125932259332593425935259362593725938259392594025941259422594325944259452594625947259482594925950259512595225953259542595525956259572595825959259602596125962259632596425965259662596725968259692597025971259722597325974259752597625977259782597925980259812598225983259842598525986259872598825989259902599125992259932599425995259962599725998259992600026001260022600326004260052600626007260082600926010260112601226013260142601526016260172601826019260202602126022260232602426025260262602726028260292603026031260322603326034260352603626037260382603926040260412604226043260442604526046260472604826049260502605126052260532605426055260562605726058260592606026061260622606326064260652606626067260682606926070260712607226073260742607526076260772607826079260802608126082260832608426085260862608726088260892609026091260922609326094260952609626097260982609926100261012610226103261042610526106261072610826109261102611126112261132611426115261162611726118261192612026121261222612326124261252612626127261282612926130261312613226133261342613526136261372613826139261402614126142261432614426145261462614726148261492615026151261522615326154261552615626157261582615926160261612616226163261642616526166261672616826169261702617126172261732617426175261762617726178261792618026181261822618326184261852618626187261882618926190261912619226193261942619526196261972619826199262002620126202262032620426205262062620726208262092621026211262122621326214262152621626217262182621926220262212622226223262242622526226262272622826229262302623126232262332623426235262362623726238262392624026241262422624326244262452624626247262482624926250262512625226253262542625526256262572625826259262602626126262262632626426265262662626726268262692627026271262722627326274262752627626277262782627926280262812628226283262842628526286262872628826289262902629126292262932629426295262962629726298262992630026301263022630326304263052630626307263082630926310263112631226313263142631526316263172631826319263202632126322263232632426325263262632726328263292633026331263322633326334263352633626337263382633926340263412634226343263442634526346263472634826349263502635126352263532635426355263562635726358263592636026361263622636326364263652636626367263682636926370263712637226373263742637526376263772637826379263802638126382263832638426385263862638726388263892639026391263922639326394263952639626397263982639926400264012640226403264042640526406264072640826409264102641126412264132641426415264162641726418264192642026421264222642326424264252642626427264282642926430264312643226433264342643526436264372643826439264402644126442264432644426445264462644726448264492645026451264522645326454264552645626457264582645926460264612646226463264642646526466264672646826469264702647126472264732647426475264762647726478264792648026481264822648326484264852648626487264882648926490264912649226493264942649526496264972649826499265002650126502265032650426505265062650726508265092651026511265122651326514265152651626517265182651926520265212652226523265242652526526265272652826529265302653126532265332653426535265362653726538265392654026541265422654326544265452654626547265482654926550265512655226553265542655526556265572655826559265602656126562265632656426565265662656726568265692657026571265722657326574265752657626577265782657926580265812658226583265842658526586265872658826589265902659126592265932659426595265962659726598265992660026601266022660326604266052660626607266082660926610266112661226613266142661526616266172661826619266202662126622266232662426625266262662726628266292663026631266322663326634266352663626637266382663926640266412664226643266442664526646266472664826649266502665126652266532665426655266562665726658266592666026661266622666326664266652666626667266682666926670266712667226673266742667526676266772667826679266802668126682266832668426685266862668726688266892669026691266922669326694266952669626697266982669926700267012670226703267042670526706267072670826709267102671126712267132671426715267162671726718267192672026721267222672326724267252672626727267282672926730267312673226733267342673526736267372673826739267402674126742267432674426745267462674726748267492675026751267522675326754267552675626757267582675926760267612676226763267642676526766267672676826769267702677126772267732677426775267762677726778267792678026781267822678326784267852678626787267882678926790267912679226793267942679526796267972679826799268002680126802268032680426805268062680726808268092681026811268122681326814268152681626817268182681926820268212682226823268242682526826268272682826829268302683126832268332683426835268362683726838268392684026841268422684326844268452684626847268482684926850268512685226853268542685526856268572685826859268602686126862268632686426865268662686726868268692687026871268722687326874268752687626877268782687926880268812688226883268842688526886268872688826889268902689126892268932689426895268962689726898268992690026901269022690326904269052690626907269082690926910269112691226913269142691526916269172691826919269202692126922269232692426925269262692726928269292693026931269322693326934269352693626937269382693926940269412694226943269442694526946269472694826949269502695126952269532695426955269562695726958269592696026961269622696326964269652696626967269682696926970269712697226973269742697526976269772697826979269802698126982269832698426985269862698726988269892699026991269922699326994269952699626997269982699927000270012700227003270042700527006270072700827009270102701127012270132701427015270162701727018270192702027021270222702327024270252702627027270282702927030270312703227033270342703527036270372703827039270402704127042270432704427045270462704727048270492705027051270522705327054270552705627057270582705927060270612706227063270642706527066270672706827069270702707127072270732707427075270762707727078270792708027081270822708327084270852708627087270882708927090270912709227093270942709527096270972709827099271002710127102271032710427105271062710727108271092711027111271122711327114271152711627117271182711927120271212712227123271242712527126271272712827129271302713127132271332713427135271362713727138271392714027141271422714327144271452714627147271482714927150271512715227153271542715527156271572715827159271602716127162271632716427165271662716727168271692717027171271722717327174271752717627177271782717927180271812718227183271842718527186271872718827189271902719127192271932719427195271962719727198271992720027201272022720327204272052720627207272082720927210272112721227213272142721527216272172721827219272202722127222272232722427225272262722727228272292723027231272322723327234272352723627237272382723927240272412724227243272442724527246272472724827249272502725127252272532725427255272562725727258272592726027261272622726327264272652726627267272682726927270272712727227273272742727527276272772727827279272802728127282272832728427285272862728727288272892729027291272922729327294272952729627297272982729927300273012730227303273042730527306273072730827309273102731127312273132731427315273162731727318273192732027321273222732327324273252732627327273282732927330273312733227333273342733527336273372733827339273402734127342273432734427345273462734727348273492735027351273522735327354273552735627357273582735927360273612736227363273642736527366273672736827369273702737127372273732737427375273762737727378273792738027381273822738327384273852738627387273882738927390273912739227393273942739527396273972739827399274002740127402274032740427405274062740727408274092741027411274122741327414274152741627417274182741927420274212742227423274242742527426274272742827429274302743127432274332743427435274362743727438274392744027441274422744327444274452744627447274482744927450274512745227453274542745527456274572745827459274602746127462274632746427465274662746727468274692747027471274722747327474274752747627477274782747927480274812748227483274842748527486274872748827489274902749127492274932749427495274962749727498274992750027501275022750327504275052750627507275082750927510275112751227513275142751527516275172751827519275202752127522275232752427525275262752727528275292753027531275322753327534275352753627537275382753927540275412754227543275442754527546275472754827549275502755127552275532755427555275562755727558275592756027561275622756327564275652756627567275682756927570275712757227573275742757527576275772757827579275802758127582275832758427585275862758727588275892759027591275922759327594275952759627597275982759927600276012760227603276042760527606276072760827609276102761127612276132761427615276162761727618276192762027621276222762327624276252762627627276282762927630276312763227633276342763527636276372763827639276402764127642276432764427645276462764727648276492765027651276522765327654276552765627657276582765927660276612766227663276642766527666276672766827669276702767127672276732767427675276762767727678276792768027681276822768327684276852768627687276882768927690276912769227693276942769527696276972769827699277002770127702277032770427705277062770727708277092771027711277122771327714277152771627717277182771927720277212772227723277242772527726277272772827729277302773127732277332773427735277362773727738277392774027741277422774327744277452774627747277482774927750277512775227753277542775527756277572775827759277602776127762277632776427765277662776727768277692777027771277722777327774277752777627777277782777927780277812778227783277842778527786277872778827789277902779127792277932779427795277962779727798277992780027801278022780327804278052780627807278082780927810278112781227813278142781527816278172781827819278202782127822278232782427825278262782727828278292783027831278322783327834278352783627837278382783927840278412784227843278442784527846278472784827849278502785127852278532785427855278562785727858278592786027861278622786327864278652786627867278682786927870278712787227873278742787527876278772787827879278802788127882278832788427885278862788727888278892789027891278922789327894278952789627897278982789927900279012790227903279042790527906279072790827909279102791127912279132791427915279162791727918279192792027921279222792327924279252792627927279282792927930279312793227933279342793527936279372793827939279402794127942279432794427945279462794727948279492795027951279522795327954279552795627957279582795927960279612796227963279642796527966279672796827969279702797127972279732797427975279762797727978279792798027981279822798327984279852798627987279882798927990279912799227993279942799527996279972799827999280002800128002280032800428005280062800728008280092801028011280122801328014280152801628017280182801928020280212802228023280242802528026280272802828029280302803128032280332803428035280362803728038280392804028041280422804328044280452804628047280482804928050280512805228053280542805528056280572805828059280602806128062280632806428065280662806728068280692807028071280722807328074280752807628077280782807928080280812808228083280842808528086280872808828089280902809128092280932809428095280962809728098280992810028101281022810328104281052810628107281082810928110281112811228113281142811528116281172811828119281202812128122281232812428125281262812728128281292813028131281322813328134281352813628137281382813928140281412814228143281442814528146281472814828149281502815128152281532815428155281562815728158281592816028161281622816328164281652816628167281682816928170281712817228173281742817528176281772817828179281802818128182281832818428185281862818728188281892819028191281922819328194281952819628197281982819928200282012820228203282042820528206282072820828209282102821128212282132821428215282162821728218282192822028221282222822328224282252822628227282282822928230282312823228233282342823528236282372823828239282402824128242282432824428245282462824728248282492825028251282522825328254282552825628257282582825928260282612826228263282642826528266282672826828269282702827128272282732827428275282762827728278282792828028281282822828328284282852828628287282882828928290282912829228293282942829528296282972829828299283002830128302283032830428305283062830728308283092831028311283122831328314283152831628317283182831928320283212832228323283242832528326283272832828329283302833128332283332833428335283362833728338283392834028341283422834328344283452834628347283482834928350283512835228353283542835528356283572835828359283602836128362283632836428365283662836728368283692837028371283722837328374283752837628377283782837928380283812838228383283842838528386283872838828389283902839128392283932839428395283962839728398283992840028401284022840328404284052840628407284082840928410284112841228413284142841528416284172841828419284202842128422284232842428425284262842728428284292843028431284322843328434284352843628437284382843928440284412844228443284442844528446284472844828449284502845128452284532845428455284562845728458284592846028461284622846328464284652846628467284682846928470284712847228473284742847528476284772847828479284802848128482284832848428485284862848728488284892849028491284922849328494284952849628497284982849928500285012850228503285042850528506285072850828509285102851128512285132851428515285162851728518285192852028521285222852328524285252852628527285282852928530285312853228533285342853528536285372853828539285402854128542285432854428545285462854728548285492855028551285522855328554285552855628557285582855928560285612856228563285642856528566285672856828569285702857128572285732857428575285762857728578285792858028581285822858328584285852858628587285882858928590285912859228593285942859528596285972859828599286002860128602286032860428605286062860728608286092861028611286122861328614286152861628617286182861928620286212862228623286242862528626286272862828629286302863128632286332863428635286362863728638286392864028641286422864328644286452864628647286482864928650286512865228653286542865528656286572865828659286602866128662286632866428665286662866728668286692867028671286722867328674286752867628677286782867928680286812868228683286842868528686286872868828689286902869128692286932869428695286962869728698286992870028701287022870328704287052870628707287082870928710287112871228713287142871528716287172871828719287202872128722287232872428725287262872728728287292873028731287322873328734287352873628737287382873928740287412874228743287442874528746287472874828749287502875128752287532875428755287562875728758287592876028761287622876328764287652876628767287682876928770287712877228773287742877528776287772877828779287802878128782287832878428785287862878728788287892879028791287922879328794287952879628797287982879928800288012880228803288042880528806288072880828809288102881128812288132881428815288162881728818288192882028821288222882328824288252882628827288282882928830288312883228833288342883528836288372883828839288402884128842288432884428845288462884728848288492885028851288522885328854288552885628857288582885928860288612886228863288642886528866288672886828869288702887128872288732887428875288762887728878288792888028881288822888328884288852888628887288882888928890288912889228893288942889528896288972889828899289002890128902289032890428905289062890728908289092891028911289122891328914289152891628917289182891928920289212892228923289242892528926289272892828929289302893128932289332893428935289362893728938289392894028941289422894328944289452894628947289482894928950289512895228953289542895528956289572895828959289602896128962289632896428965289662896728968289692897028971289722897328974289752897628977289782897928980289812898228983289842898528986289872898828989289902899128992289932899428995289962899728998289992900029001290022900329004290052900629007290082900929010290112901229013290142901529016290172901829019290202902129022290232902429025290262902729028290292903029031290322903329034290352903629037290382903929040290412904229043290442904529046290472904829049290502905129052290532905429055290562905729058290592906029061290622906329064290652906629067290682906929070290712907229073290742907529076290772907829079290802908129082290832908429085290862908729088290892909029091290922909329094290952909629097290982909929100291012910229103291042910529106291072910829109291102911129112291132911429115291162911729118291192912029121291222912329124291252912629127291282912929130291312913229133291342913529136291372913829139291402914129142291432914429145291462914729148291492915029151291522915329154291552915629157291582915929160291612916229163291642916529166291672916829169291702917129172291732917429175291762917729178291792918029181291822918329184291852918629187291882918929190291912919229193291942919529196291972919829199292002920129202292032920429205292062920729208292092921029211292122921329214292152921629217292182921929220292212922229223292242922529226292272922829229292302923129232292332923429235292362923729238292392924029241292422924329244292452924629247292482924929250292512925229253292542925529256292572925829259292602926129262292632926429265292662926729268292692927029271292722927329274292752927629277292782927929280292812928229283292842928529286292872928829289292902929129292292932929429295292962929729298292992930029301293022930329304293052930629307293082930929310293112931229313293142931529316293172931829319293202932129322293232932429325293262932729328293292933029331293322933329334293352933629337293382933929340293412934229343293442934529346293472934829349293502935129352293532935429355293562935729358293592936029361293622936329364293652936629367293682936929370293712937229373293742937529376293772937829379293802938129382293832938429385293862938729388293892939029391293922939329394293952939629397293982939929400294012940229403294042940529406294072940829409294102941129412294132941429415294162941729418294192942029421294222942329424294252942629427294282942929430294312943229433294342943529436294372943829439294402944129442294432944429445294462944729448294492945029451294522945329454294552945629457294582945929460294612946229463294642946529466294672946829469294702947129472294732947429475294762947729478294792948029481294822948329484294852948629487294882948929490294912949229493294942949529496294972949829499295002950129502295032950429505295062950729508295092951029511295122951329514295152951629517295182951929520295212952229523295242952529526295272952829529295302953129532295332953429535295362953729538295392954029541295422954329544295452954629547295482954929550295512955229553295542955529556295572955829559295602956129562295632956429565295662956729568295692957029571295722957329574295752957629577295782957929580295812958229583295842958529586295872958829589295902959129592295932959429595295962959729598295992960029601296022960329604296052960629607296082960929610296112961229613296142961529616296172961829619296202962129622296232962429625296262962729628296292963029631296322963329634296352963629637296382963929640296412964229643296442964529646296472964829649296502965129652296532965429655296562965729658296592966029661296622966329664296652966629667296682966929670296712967229673296742967529676296772967829679296802968129682296832968429685296862968729688296892969029691296922969329694296952969629697296982969929700297012970229703297042970529706297072970829709297102971129712297132971429715297162971729718297192972029721297222972329724297252972629727297282972929730297312973229733297342973529736297372973829739297402974129742297432974429745297462974729748297492975029751297522975329754297552975629757297582975929760297612976229763297642976529766297672976829769297702977129772297732977429775297762977729778297792978029781297822978329784297852978629787297882978929790297912979229793297942979529796297972979829799298002980129802298032980429805298062980729808298092981029811298122981329814298152981629817298182981929820298212982229823298242982529826298272982829829298302983129832298332983429835298362983729838298392984029841298422984329844298452984629847298482984929850298512985229853298542985529856298572985829859298602986129862298632986429865298662986729868298692987029871298722987329874298752987629877298782987929880298812988229883298842988529886298872988829889298902989129892298932989429895298962989729898298992990029901299022990329904299052990629907299082990929910299112991229913299142991529916299172991829919299202992129922299232992429925299262992729928299292993029931299322993329934299352993629937299382993929940299412994229943299442994529946299472994829949299502995129952299532995429955299562995729958299592996029961299622996329964299652996629967299682996929970299712997229973299742997529976299772997829979299802998129982299832998429985299862998729988299892999029991299922999329994299952999629997299982999930000300013000230003300043000530006300073000830009300103001130012300133001430015300163001730018300193002030021300223002330024300253002630027300283002930030300313003230033300343003530036300373003830039300403004130042300433004430045300463004730048300493005030051300523005330054300553005630057300583005930060300613006230063300643006530066300673006830069300703007130072300733007430075300763007730078300793008030081300823008330084300853008630087300883008930090300913009230093300943009530096300973009830099301003010130102301033010430105301063010730108301093011030111301123011330114301153011630117301183011930120301213012230123301243012530126301273012830129301303013130132301333013430135301363013730138301393014030141301423014330144301453014630147301483014930150301513015230153301543015530156301573015830159301603016130162301633016430165301663016730168301693017030171301723017330174301753017630177301783017930180301813018230183301843018530186301873018830189301903019130192301933019430195301963019730198301993020030201302023020330204302053020630207302083020930210302113021230213302143021530216302173021830219302203022130222302233022430225302263022730228302293023030231302323023330234302353023630237302383023930240302413024230243302443024530246302473024830249302503025130252302533025430255302563025730258302593026030261302623026330264302653026630267302683026930270302713027230273302743027530276302773027830279302803028130282302833028430285302863028730288302893029030291302923029330294302953029630297302983029930300303013030230303303043030530306303073030830309303103031130312303133031430315303163031730318303193032030321303223032330324303253032630327303283032930330303313033230333303343033530336303373033830339303403034130342303433034430345303463034730348303493035030351303523035330354303553035630357303583035930360303613036230363303643036530366303673036830369303703037130372303733037430375303763037730378303793038030381303823038330384303853038630387303883038930390303913039230393303943039530396303973039830399304003040130402304033040430405304063040730408304093041030411304123041330414304153041630417304183041930420304213042230423304243042530426304273042830429304303043130432304333043430435304363043730438304393044030441304423044330444304453044630447304483044930450304513045230453304543045530456304573045830459304603046130462304633046430465304663046730468304693047030471304723047330474304753047630477304783047930480304813048230483304843048530486304873048830489304903049130492304933049430495304963049730498304993050030501305023050330504305053050630507305083050930510305113051230513305143051530516305173051830519305203052130522305233052430525305263052730528305293053030531305323053330534305353053630537305383053930540305413054230543305443054530546305473054830549305503055130552305533055430555305563055730558305593056030561305623056330564305653056630567305683056930570305713057230573305743057530576305773057830579305803058130582305833058430585305863058730588305893059030591305923059330594305953059630597305983059930600306013060230603306043060530606306073060830609306103061130612306133061430615306163061730618306193062030621306223062330624306253062630627306283062930630306313063230633306343063530636306373063830639306403064130642306433064430645306463064730648306493065030651306523065330654306553065630657306583065930660306613066230663306643066530666306673066830669306703067130672306733067430675306763067730678306793068030681306823068330684306853068630687306883068930690306913069230693306943069530696306973069830699307003070130702307033070430705307063070730708307093071030711307123071330714307153071630717307183071930720307213072230723307243072530726307273072830729307303073130732307333073430735307363073730738307393074030741307423074330744307453074630747307483074930750307513075230753307543075530756307573075830759307603076130762307633076430765307663076730768307693077030771307723077330774307753077630777307783077930780307813078230783307843078530786307873078830789307903079130792307933079430795307963079730798307993080030801308023080330804308053080630807308083080930810308113081230813308143081530816308173081830819308203082130822308233082430825308263082730828308293083030831308323083330834308353083630837308383083930840308413084230843308443084530846308473084830849308503085130852308533085430855308563085730858308593086030861308623086330864308653086630867308683086930870308713087230873308743087530876308773087830879308803088130882308833088430885308863088730888308893089030891308923089330894308953089630897308983089930900309013090230903309043090530906309073090830909309103091130912309133091430915309163091730918309193092030921309223092330924309253092630927309283092930930309313093230933309343093530936309373093830939309403094130942309433094430945309463094730948309493095030951309523095330954309553095630957309583095930960309613096230963309643096530966309673096830969309703097130972309733097430975309763097730978309793098030981309823098330984309853098630987309883098930990309913099230993309943099530996309973099830999310003100131002310033100431005310063100731008310093101031011310123101331014310153101631017310183101931020310213102231023310243102531026310273102831029310303103131032310333103431035310363103731038310393104031041310423104331044310453104631047310483104931050310513105231053310543105531056310573105831059310603106131062310633106431065310663106731068310693107031071310723107331074310753107631077310783107931080310813108231083310843108531086310873108831089310903109131092310933109431095310963109731098310993110031101311023110331104311053110631107311083110931110311113111231113311143111531116311173111831119311203112131122311233112431125311263112731128311293113031131311323113331134311353113631137311383113931140311413114231143311443114531146311473114831149311503115131152311533115431155311563115731158311593116031161311623116331164311653116631167311683116931170311713117231173311743117531176311773117831179311803118131182311833118431185311863118731188311893119031191311923119331194311953119631197311983119931200312013120231203312043120531206312073120831209312103121131212312133121431215312163121731218312193122031221312223122331224312253122631227312283122931230312313123231233312343123531236312373123831239312403124131242312433124431245312463124731248312493125031251312523125331254312553125631257312583125931260312613126231263312643126531266312673126831269312703127131272312733127431275312763127731278312793128031281312823128331284312853128631287312883128931290312913129231293312943129531296312973129831299313003130131302313033130431305313063130731308313093131031311313123131331314313153131631317313183131931320313213132231323313243132531326313273132831329313303133131332313333133431335313363133731338313393134031341313423134331344313453134631347313483134931350313513135231353313543135531356313573135831359313603136131362313633136431365313663136731368313693137031371313723137331374313753137631377313783137931380313813138231383313843138531386313873138831389313903139131392313933139431395313963139731398313993140031401314023140331404314053140631407314083140931410314113141231413314143141531416314173141831419314203142131422314233142431425314263142731428314293143031431314323143331434314353143631437314383143931440314413144231443314443144531446314473144831449314503145131452314533145431455314563145731458314593146031461314623146331464314653146631467314683146931470314713147231473314743147531476314773147831479314803148131482314833148431485314863148731488314893149031491314923149331494314953149631497314983149931500315013150231503315043150531506315073150831509315103151131512315133151431515315163151731518315193152031521315223152331524315253152631527315283152931530315313153231533315343153531536315373153831539315403154131542315433154431545315463154731548315493155031551315523155331554315553155631557315583155931560315613156231563315643156531566315673156831569315703157131572315733157431575315763157731578315793158031581315823158331584315853158631587315883158931590315913159231593315943159531596315973159831599316003160131602316033160431605316063160731608316093161031611316123161331614316153161631617316183161931620316213162231623316243162531626316273162831629316303163131632316333163431635316363163731638316393164031641316423164331644316453164631647316483164931650316513165231653316543165531656316573165831659316603166131662316633166431665316663166731668316693167031671316723167331674316753167631677316783167931680316813168231683316843168531686316873168831689316903169131692316933169431695316963169731698316993170031701317023170331704317053170631707317083170931710317113171231713317143171531716317173171831719317203172131722317233172431725317263172731728317293173031731317323173331734317353173631737317383173931740317413174231743317443174531746317473174831749317503175131752317533175431755317563175731758317593176031761317623176331764317653176631767317683176931770317713177231773317743177531776317773177831779317803178131782317833178431785317863178731788317893179031791317923179331794317953179631797317983179931800318013180231803318043180531806318073180831809318103181131812318133181431815318163181731818318193182031821318223182331824318253182631827318283182931830318313183231833318343183531836318373183831839318403184131842318433184431845318463184731848318493185031851318523185331854318553185631857318583185931860318613186231863318643186531866318673186831869318703187131872318733187431875318763187731878318793188031881318823188331884318853188631887318883188931890318913189231893318943189531896318973189831899319003190131902319033190431905319063190731908319093191031911319123191331914319153191631917319183191931920319213192231923319243192531926319273192831929319303193131932319333193431935319363193731938319393194031941319423194331944319453194631947319483194931950319513195231953319543195531956319573195831959319603196131962319633196431965319663196731968319693197031971319723197331974319753197631977319783197931980319813198231983319843198531986319873198831989319903199131992319933199431995319963199731998319993200032001320023200332004320053200632007320083200932010320113201232013320143201532016320173201832019320203202132022320233202432025320263202732028320293203032031320323203332034320353203632037320383203932040320413204232043320443204532046320473204832049320503205132052320533205432055320563205732058320593206032061320623206332064320653206632067320683206932070320713207232073320743207532076320773207832079320803208132082320833208432085320863208732088320893209032091320923209332094320953209632097320983209932100321013210232103321043210532106321073210832109321103211132112321133211432115321163211732118321193212032121321223212332124321253212632127321283212932130321313213232133321343213532136321373213832139321403214132142321433214432145321463214732148321493215032151321523215332154321553215632157321583215932160321613216232163321643216532166321673216832169321703217132172321733217432175321763217732178321793218032181321823218332184321853218632187321883218932190321913219232193321943219532196321973219832199322003220132202322033220432205322063220732208322093221032211322123221332214322153221632217322183221932220322213222232223322243222532226322273222832229322303223132232322333223432235322363223732238322393224032241322423224332244322453224632247322483224932250322513225232253322543225532256322573225832259322603226132262322633226432265322663226732268322693227032271322723227332274322753227632277322783227932280322813228232283322843228532286322873228832289322903229132292322933229432295322963229732298322993230032301323023230332304323053230632307323083230932310323113231232313323143231532316323173231832319323203232132322323233232432325323263232732328323293233032331323323233332334323353233632337323383233932340323413234232343323443234532346323473234832349323503235132352323533235432355323563235732358323593236032361323623236332364323653236632367323683236932370323713237232373323743237532376323773237832379323803238132382323833238432385323863238732388323893239032391323923239332394323953239632397323983239932400324013240232403324043240532406324073240832409324103241132412324133241432415324163241732418324193242032421324223242332424324253242632427324283242932430324313243232433324343243532436324373243832439324403244132442324433244432445324463244732448324493245032451324523245332454324553245632457324583245932460324613246232463324643246532466324673246832469324703247132472324733247432475324763247732478324793248032481324823248332484324853248632487324883248932490324913249232493324943249532496324973249832499325003250132502325033250432505325063250732508325093251032511325123251332514325153251632517325183251932520325213252232523325243252532526325273252832529325303253132532325333253432535325363253732538325393254032541325423254332544325453254632547325483254932550325513255232553325543255532556325573255832559325603256132562325633256432565325663256732568325693257032571325723257332574325753257632577325783257932580325813258232583325843258532586325873258832589325903259132592325933259432595325963259732598325993260032601326023260332604326053260632607326083260932610326113261232613326143261532616326173261832619326203262132622326233262432625326263262732628326293263032631326323263332634326353263632637326383263932640326413264232643326443264532646326473264832649326503265132652326533265432655326563265732658326593266032661326623266332664326653266632667326683266932670326713267232673326743267532676326773267832679326803268132682326833268432685326863268732688326893269032691326923269332694326953269632697326983269932700327013270232703327043270532706327073270832709327103271132712327133271432715327163271732718327193272032721327223272332724327253272632727327283272932730327313273232733327343273532736327373273832739327403274132742327433274432745327463274732748327493275032751327523275332754327553275632757327583275932760327613276232763327643276532766327673276832769327703277132772327733277432775327763277732778327793278032781327823278332784327853278632787327883278932790327913279232793327943279532796327973279832799328003280132802328033280432805328063280732808328093281032811328123281332814328153281632817328183281932820328213282232823328243282532826328273282832829328303283132832328333283432835328363283732838328393284032841328423284332844328453284632847328483284932850328513285232853328543285532856328573285832859328603286132862328633286432865328663286732868328693287032871328723287332874328753287632877328783287932880328813288232883328843288532886328873288832889328903289132892328933289432895328963289732898328993290032901329023290332904329053290632907329083290932910329113291232913329143291532916329173291832919329203292132922329233292432925329263292732928329293293032931329323293332934329353293632937329383293932940329413294232943329443294532946329473294832949329503295132952329533295432955329563295732958329593296032961329623296332964329653296632967329683296932970329713297232973329743297532976329773297832979329803298132982329833298432985329863298732988329893299032991329923299332994329953299632997329983299933000330013300233003330043300533006330073300833009330103301133012330133301433015330163301733018330193302033021330223302333024330253302633027330283302933030330313303233033330343303533036330373303833039330403304133042330433304433045330463304733048330493305033051330523305333054330553305633057330583305933060330613306233063330643306533066330673306833069330703307133072330733307433075330763307733078330793308033081330823308333084330853308633087330883308933090330913309233093330943309533096330973309833099331003310133102331033310433105331063310733108331093311033111331123311333114331153311633117331183311933120331213312233123331243312533126331273312833129331303313133132331333313433135331363313733138331393314033141331423314333144331453314633147331483314933150331513315233153331543315533156331573315833159331603316133162331633316433165331663316733168331693317033171331723317333174331753317633177331783317933180331813318233183331843318533186331873318833189331903319133192331933319433195331963319733198331993320033201332023320333204332053320633207332083320933210332113321233213332143321533216332173321833219332203322133222332233322433225332263322733228332293323033231332323323333234332353323633237332383323933240332413324233243332443324533246332473324833249332503325133252332533325433255332563325733258332593326033261332623326333264332653326633267332683326933270332713327233273332743327533276332773327833279332803328133282332833328433285332863328733288332893329033291332923329333294332953329633297332983329933300333013330233303333043330533306333073330833309333103331133312333133331433315333163331733318333193332033321333223332333324333253332633327333283332933330333313333233333333343333533336333373333833339333403334133342333433334433345333463334733348333493335033351333523335333354333553335633357333583335933360333613336233363333643336533366333673336833369333703337133372333733337433375333763337733378333793338033381333823338333384333853338633387333883338933390333913339233393333943339533396333973339833399334003340133402334033340433405334063340733408334093341033411334123341333414334153341633417334183341933420334213342233423334243342533426334273342833429334303343133432334333343433435334363343733438334393344033441334423344333444334453344633447334483344933450334513345233453334543345533456334573345833459334603346133462334633346433465334663346733468334693347033471334723347333474334753347633477334783347933480334813348233483334843348533486334873348833489334903349133492334933349433495334963349733498334993350033501335023350333504335053350633507335083350933510335113351233513335143351533516335173351833519335203352133522335233352433525335263352733528335293353033531335323353333534335353353633537335383353933540335413354233543335443354533546335473354833549335503355133552335533355433555335563355733558335593356033561335623356333564335653356633567335683356933570335713357233573335743357533576335773357833579335803358133582335833358433585335863358733588335893359033591335923359333594335953359633597335983359933600336013360233603336043360533606336073360833609336103361133612336133361433615336163361733618336193362033621336223362333624336253362633627336283362933630336313363233633336343363533636336373363833639336403364133642336433364433645336463364733648336493365033651336523365333654336553365633657336583365933660336613366233663336643366533666336673366833669336703367133672336733367433675336763367733678336793368033681336823368333684336853368633687336883368933690336913369233693336943369533696336973369833699337003370133702337033370433705337063370733708337093371033711337123371333714337153371633717337183371933720337213372233723337243372533726337273372833729337303373133732337333373433735337363373733738337393374033741337423374333744337453374633747337483374933750337513375233753337543375533756337573375833759337603376133762337633376433765337663376733768337693377033771337723377333774337753377633777337783377933780337813378233783337843378533786337873378833789337903379133792337933379433795337963379733798337993380033801338023380333804338053380633807338083380933810338113381233813338143381533816338173381833819338203382133822338233382433825338263382733828338293383033831338323383333834338353383633837338383383933840338413384233843338443384533846338473384833849338503385133852338533385433855338563385733858338593386033861338623386333864338653386633867338683386933870338713387233873338743387533876338773387833879338803388133882338833388433885338863388733888338893389033891338923389333894338953389633897338983389933900339013390233903339043390533906339073390833909339103391133912339133391433915339163391733918339193392033921339223392333924339253392633927339283392933930339313393233933339343393533936339373393833939339403394133942339433394433945339463394733948339493395033951339523395333954339553395633957339583395933960339613396233963339643396533966339673396833969339703397133972339733397433975339763397733978339793398033981339823398333984339853398633987339883398933990339913399233993339943399533996339973399833999340003400134002340033400434005340063400734008340093401034011340123401334014340153401634017340183401934020340213402234023340243402534026340273402834029340303403134032340333403434035340363403734038340393404034041340423404334044340453404634047340483404934050340513405234053340543405534056340573405834059340603406134062340633406434065340663406734068340693407034071340723407334074340753407634077340783407934080340813408234083340843408534086340873408834089340903409134092340933409434095340963409734098340993410034101341023410334104341053410634107341083410934110341113411234113341143411534116341173411834119341203412134122341233412434125341263412734128341293413034131341323413334134341353413634137341383413934140341413414234143341443414534146341473414834149341503415134152341533415434155341563415734158341593416034161341623416334164341653416634167341683416934170341713417234173341743417534176341773417834179341803418134182341833418434185341863418734188341893419034191341923419334194341953419634197341983419934200342013420234203342043420534206342073420834209342103421134212342133421434215342163421734218342193422034221342223422334224342253422634227342283422934230342313423234233342343423534236342373423834239342403424134242342433424434245342463424734248342493425034251342523425334254342553425634257342583425934260342613426234263342643426534266342673426834269342703427134272342733427434275342763427734278342793428034281342823428334284342853428634287342883428934290342913429234293342943429534296342973429834299343003430134302343033430434305343063430734308343093431034311343123431334314343153431634317343183431934320343213432234323343243432534326343273432834329343303433134332343333433434335343363433734338343393434034341343423434334344343453434634347343483434934350343513435234353343543435534356343573435834359343603436134362343633436434365343663436734368343693437034371343723437334374343753437634377343783437934380343813438234383343843438534386343873438834389343903439134392343933439434395343963439734398343993440034401344023440334404344053440634407344083440934410344113441234413344143441534416344173441834419344203442134422344233442434425344263442734428344293443034431344323443334434344353443634437344383443934440344413444234443344443444534446344473444834449344503445134452344533445434455344563445734458344593446034461344623446334464344653446634467344683446934470344713447234473344743447534476344773447834479344803448134482344833448434485344863448734488344893449034491344923449334494344953449634497344983449934500345013450234503345043450534506345073450834509345103451134512345133451434515345163451734518345193452034521345223452334524345253452634527345283452934530345313453234533345343453534536345373453834539345403454134542345433454434545345463454734548345493455034551345523455334554345553455634557345583455934560345613456234563345643456534566345673456834569345703457134572345733457434575345763457734578345793458034581345823458334584345853458634587345883458934590345913459234593345943459534596345973459834599346003460134602346033460434605346063460734608346093461034611346123461334614346153461634617346183461934620346213462234623346243462534626346273462834629346303463134632346333463434635346363463734638346393464034641346423464334644346453464634647346483464934650346513465234653346543465534656346573465834659346603466134662346633466434665346663466734668346693467034671346723467334674346753467634677346783467934680346813468234683346843468534686346873468834689346903469134692346933469434695346963469734698346993470034701347023470334704347053470634707347083470934710347113471234713347143471534716347173471834719347203472134722347233472434725347263472734728347293473034731347323473334734347353473634737347383473934740347413474234743347443474534746347473474834749347503475134752347533475434755347563475734758347593476034761347623476334764347653476634767347683476934770347713477234773347743477534776347773477834779347803478134782347833478434785347863478734788347893479034791347923479334794347953479634797347983479934800348013480234803348043480534806348073480834809348103481134812348133481434815348163481734818348193482034821348223482334824348253482634827348283482934830348313483234833348343483534836348373483834839348403484134842348433484434845348463484734848348493485034851348523485334854348553485634857348583485934860348613486234863348643486534866348673486834869348703487134872348733487434875348763487734878348793488034881348823488334884348853488634887348883488934890348913489234893348943489534896348973489834899349003490134902349033490434905349063490734908349093491034911349123491334914349153491634917349183491934920349213492234923349243492534926349273492834929349303493134932349333493434935349363493734938349393494034941349423494334944349453494634947349483494934950349513495234953349543495534956349573495834959349603496134962349633496434965349663496734968349693497034971349723497334974349753497634977349783497934980349813498234983349843498534986349873498834989349903499134992349933499434995349963499734998349993500035001350023500335004350053500635007350083500935010350113501235013350143501535016350173501835019350203502135022350233502435025350263502735028350293503035031350323503335034350353503635037350383503935040350413504235043350443504535046350473504835049350503505135052350533505435055350563505735058350593506035061350623506335064350653506635067350683506935070350713507235073350743507535076350773507835079350803508135082350833508435085350863508735088350893509035091350923509335094350953509635097350983509935100351013510235103351043510535106351073510835109351103511135112351133511435115351163511735118351193512035121351223512335124351253512635127351283512935130351313513235133351343513535136351373513835139351403514135142351433514435145351463514735148351493515035151351523515335154351553515635157351583515935160351613516235163351643516535166351673516835169351703517135172351733517435175351763517735178351793518035181351823518335184351853518635187351883518935190351913519235193351943519535196351973519835199352003520135202352033520435205352063520735208352093521035211352123521335214352153521635217352183521935220352213522235223352243522535226352273522835229352303523135232352333523435235352363523735238352393524035241352423524335244352453524635247352483524935250352513525235253352543525535256352573525835259352603526135262352633526435265352663526735268352693527035271352723527335274352753527635277352783527935280352813528235283352843528535286352873528835289352903529135292352933529435295352963529735298352993530035301353023530335304353053530635307353083530935310353113531235313353143531535316353173531835319353203532135322353233532435325353263532735328353293533035331353323533335334353353533635337353383533935340353413534235343353443534535346353473534835349353503535135352353533535435355353563535735358353593536035361353623536335364353653536635367353683536935370353713537235373353743537535376353773537835379353803538135382353833538435385353863538735388353893539035391353923539335394353953539635397353983539935400354013540235403354043540535406354073540835409354103541135412354133541435415354163541735418354193542035421354223542335424354253542635427354283542935430354313543235433354343543535436354373543835439354403544135442354433544435445354463544735448354493545035451354523545335454354553545635457354583545935460354613546235463354643546535466354673546835469354703547135472354733547435475354763547735478354793548035481354823548335484354853548635487354883548935490354913549235493354943549535496354973549835499355003550135502355033550435505355063550735508355093551035511355123551335514355153551635517355183551935520355213552235523355243552535526355273552835529355303553135532355333553435535355363553735538355393554035541355423554335544355453554635547355483554935550355513555235553355543555535556355573555835559355603556135562355633556435565355663556735568355693557035571355723557335574355753557635577355783557935580355813558235583355843558535586355873558835589355903559135592355933559435595355963559735598355993560035601356023560335604356053560635607356083560935610356113561235613356143561535616356173561835619356203562135622356233562435625356263562735628356293563035631356323563335634356353563635637356383563935640356413564235643356443564535646356473564835649356503565135652356533565435655356563565735658356593566035661356623566335664356653566635667356683566935670356713567235673356743567535676356773567835679356803568135682356833568435685356863568735688356893569035691356923569335694356953569635697356983569935700357013570235703357043570535706357073570835709357103571135712357133571435715357163571735718357193572035721357223572335724357253572635727357283572935730357313573235733357343573535736357373573835739357403574135742357433574435745357463574735748357493575035751357523575335754357553575635757357583575935760357613576235763357643576535766357673576835769357703577135772357733577435775357763577735778357793578035781357823578335784357853578635787357883578935790357913579235793357943579535796357973579835799358003580135802358033580435805358063580735808358093581035811358123581335814358153581635817358183581935820358213582235823358243582535826358273582835829358303583135832358333583435835358363583735838358393584035841358423584335844358453584635847358483584935850358513585235853358543585535856358573585835859358603586135862358633586435865358663586735868358693587035871358723587335874358753587635877358783587935880358813588235883358843588535886358873588835889358903589135892358933589435895358963589735898358993590035901359023590335904359053590635907359083590935910359113591235913359143591535916359173591835919359203592135922359233592435925359263592735928359293593035931359323593335934359353593635937359383593935940359413594235943359443594535946359473594835949359503595135952359533595435955359563595735958359593596035961359623596335964359653596635967359683596935970359713597235973359743597535976359773597835979359803598135982359833598435985359863598735988359893599035991359923599335994359953599635997359983599936000360013600236003360043600536006360073600836009360103601136012360133601436015360163601736018360193602036021360223602336024360253602636027360283602936030360313603236033360343603536036360373603836039360403604136042360433604436045360463604736048360493605036051360523605336054360553605636057360583605936060360613606236063360643606536066360673606836069360703607136072360733607436075360763607736078360793608036081360823608336084360853608636087360883608936090360913609236093360943609536096360973609836099361003610136102361033610436105361063610736108361093611036111361123611336114361153611636117361183611936120361213612236123361243612536126361273612836129361303613136132361333613436135361363613736138361393614036141361423614336144361453614636147361483614936150361513615236153361543615536156361573615836159361603616136162361633616436165361663616736168361693617036171361723617336174361753617636177361783617936180361813618236183361843618536186361873618836189361903619136192361933619436195361963619736198361993620036201362023620336204362053620636207362083620936210362113621236213362143621536216362173621836219362203622136222362233622436225362263622736228362293623036231362323623336234362353623636237362383623936240362413624236243362443624536246362473624836249362503625136252362533625436255362563625736258362593626036261362623626336264362653626636267362683626936270362713627236273362743627536276362773627836279362803628136282362833628436285362863628736288362893629036291362923629336294362953629636297362983629936300363013630236303363043630536306363073630836309363103631136312363133631436315363163631736318363193632036321363223632336324363253632636327363283632936330363313633236333363343633536336363373633836339363403634136342363433634436345363463634736348363493635036351363523635336354363553635636357363583635936360363613636236363363643636536366363673636836369363703637136372363733637436375363763637736378363793638036381363823638336384363853638636387363883638936390363913639236393363943639536396363973639836399364003640136402364033640436405364063640736408364093641036411364123641336414364153641636417364183641936420364213642236423364243642536426364273642836429364303643136432364333643436435364363643736438364393644036441364423644336444364453644636447364483644936450364513645236453364543645536456364573645836459364603646136462364633646436465364663646736468364693647036471364723647336474364753647636477364783647936480364813648236483364843648536486364873648836489364903649136492364933649436495364963649736498364993650036501365023650336504365053650636507365083650936510365113651236513365143651536516365173651836519365203652136522365233652436525365263652736528365293653036531365323653336534365353653636537365383653936540365413654236543365443654536546365473654836549365503655136552365533655436555365563655736558365593656036561365623656336564365653656636567365683656936570365713657236573365743657536576365773657836579365803658136582365833658436585365863658736588365893659036591365923659336594365953659636597365983659936600366013660236603366043660536606366073660836609366103661136612366133661436615366163661736618366193662036621366223662336624366253662636627366283662936630366313663236633366343663536636366373663836639366403664136642366433664436645366463664736648366493665036651366523665336654366553665636657366583665936660366613666236663366643666536666366673666836669366703667136672366733667436675366763667736678366793668036681366823668336684366853668636687366883668936690366913669236693366943669536696366973669836699367003670136702367033670436705367063670736708367093671036711367123671336714367153671636717367183671936720367213672236723367243672536726367273672836729367303673136732367333673436735367363673736738367393674036741367423674336744367453674636747367483674936750367513675236753367543675536756367573675836759367603676136762367633676436765367663676736768367693677036771367723677336774367753677636777367783677936780367813678236783367843678536786367873678836789367903679136792367933679436795367963679736798367993680036801368023680336804368053680636807368083680936810368113681236813368143681536816368173681836819368203682136822368233682436825368263682736828368293683036831368323683336834368353683636837368383683936840368413684236843368443684536846368473684836849368503685136852368533685436855368563685736858368593686036861368623686336864368653686636867368683686936870368713687236873368743687536876368773687836879368803688136882368833688436885368863688736888368893689036891368923689336894368953689636897368983689936900369013690236903369043690536906369073690836909369103691136912369133691436915369163691736918369193692036921369223692336924369253692636927369283692936930369313693236933369343693536936369373693836939369403694136942369433694436945369463694736948369493695036951369523695336954369553695636957369583695936960369613696236963369643696536966369673696836969369703697136972369733697436975369763697736978369793698036981369823698336984369853698636987369883698936990369913699236993369943699536996369973699836999370003700137002370033700437005370063700737008370093701037011370123701337014370153701637017370183701937020370213702237023370243702537026370273702837029370303703137032370333703437035370363703737038370393704037041370423704337044370453704637047370483704937050370513705237053370543705537056370573705837059370603706137062370633706437065370663706737068370693707037071370723707337074370753707637077370783707937080370813708237083370843708537086370873708837089370903709137092370933709437095370963709737098370993710037101371023710337104371053710637107371083710937110371113711237113371143711537116371173711837119371203712137122371233712437125371263712737128371293713037131371323713337134371353713637137371383713937140371413714237143371443714537146371473714837149371503715137152371533715437155371563715737158371593716037161371623716337164371653716637167371683716937170371713717237173371743717537176371773717837179371803718137182371833718437185371863718737188371893719037191371923719337194371953719637197371983719937200372013720237203372043720537206372073720837209372103721137212372133721437215372163721737218372193722037221372223722337224372253722637227372283722937230372313723237233372343723537236372373723837239372403724137242372433724437245372463724737248372493725037251372523725337254372553725637257372583725937260372613726237263372643726537266372673726837269372703727137272372733727437275372763727737278372793728037281372823728337284372853728637287372883728937290372913729237293372943729537296372973729837299373003730137302373033730437305373063730737308373093731037311373123731337314373153731637317373183731937320373213732237323373243732537326373273732837329373303733137332373333733437335373363733737338373393734037341373423734337344373453734637347373483734937350373513735237353373543735537356373573735837359373603736137362373633736437365373663736737368373693737037371373723737337374373753737637377373783737937380373813738237383373843738537386373873738837389373903739137392373933739437395373963739737398373993740037401374023740337404374053740637407374083740937410374113741237413374143741537416374173741837419374203742137422374233742437425374263742737428374293743037431374323743337434374353743637437374383743937440374413744237443374443744537446374473744837449374503745137452374533745437455374563745737458374593746037461374623746337464374653746637467374683746937470374713747237473374743747537476374773747837479374803748137482374833748437485374863748737488374893749037491374923749337494374953749637497374983749937500375013750237503375043750537506375073750837509375103751137512375133751437515375163751737518375193752037521375223752337524375253752637527375283752937530375313753237533375343753537536375373753837539375403754137542375433754437545375463754737548375493755037551375523755337554375553755637557375583755937560375613756237563375643756537566375673756837569375703757137572375733757437575375763757737578375793758037581375823758337584375853758637587375883758937590375913759237593375943759537596375973759837599376003760137602376033760437605376063760737608376093761037611376123761337614376153761637617376183761937620376213762237623376243762537626376273762837629376303763137632376333763437635376363763737638376393764037641376423764337644376453764637647376483764937650376513765237653376543765537656376573765837659376603766137662376633766437665376663766737668376693767037671376723767337674376753767637677376783767937680376813768237683376843768537686376873768837689376903769137692376933769437695376963769737698376993770037701377023770337704377053770637707377083770937710377113771237713377143771537716377173771837719377203772137722377233772437725377263772737728377293773037731377323773337734377353773637737377383773937740377413774237743377443774537746377473774837749377503775137752377533775437755377563775737758377593776037761377623776337764377653776637767377683776937770377713777237773377743777537776377773777837779377803778137782377833778437785377863778737788377893779037791377923779337794377953779637797377983779937800378013780237803378043780537806378073780837809378103781137812378133781437815378163781737818378193782037821378223782337824378253782637827378283782937830378313783237833378343783537836378373783837839378403784137842378433784437845378463784737848378493785037851378523785337854378553785637857378583785937860378613786237863378643786537866378673786837869378703787137872378733787437875378763787737878378793788037881378823788337884378853788637887378883788937890378913789237893378943789537896378973789837899379003790137902379033790437905379063790737908379093791037911379123791337914379153791637917379183791937920379213792237923379243792537926379273792837929379303793137932379333793437935379363793737938379393794037941379423794337944379453794637947379483794937950379513795237953379543795537956379573795837959379603796137962379633796437965379663796737968379693797037971379723797337974379753797637977379783797937980379813798237983379843798537986379873798837989379903799137992379933799437995379963799737998379993800038001380023800338004380053800638007380083800938010380113801238013380143801538016380173801838019380203802138022380233802438025380263802738028380293803038031380323803338034380353803638037380383803938040380413804238043380443804538046380473804838049380503805138052380533805438055380563805738058380593806038061380623806338064380653806638067380683806938070380713807238073380743807538076380773807838079380803808138082380833808438085380863808738088380893809038091380923809338094380953809638097380983809938100381013810238103381043810538106381073810838109381103811138112381133811438115381163811738118381193812038121381223812338124381253812638127381283812938130381313813238133381343813538136381373813838139381403814138142381433814438145381463814738148381493815038151381523815338154381553815638157381583815938160381613816238163381643816538166381673816838169381703817138172381733817438175381763817738178381793818038181381823818338184381853818638187381883818938190381913819238193381943819538196381973819838199382003820138202382033820438205382063820738208382093821038211382123821338214382153821638217382183821938220382213822238223382243822538226382273822838229382303823138232382333823438235382363823738238382393824038241382423824338244382453824638247382483824938250382513825238253382543825538256382573825838259382603826138262382633826438265382663826738268382693827038271382723827338274382753827638277382783827938280382813828238283382843828538286382873828838289382903829138292382933829438295382963829738298382993830038301383023830338304383053830638307383083830938310383113831238313383143831538316383173831838319383203832138322383233832438325383263832738328383293833038331383323833338334383353833638337383383833938340383413834238343383443834538346383473834838349383503835138352383533835438355383563835738358383593836038361383623836338364383653836638367383683836938370383713837238373383743837538376383773837838379383803838138382383833838438385383863838738388383893839038391383923839338394383953839638397383983839938400384013840238403384043840538406384073840838409384103841138412384133841438415384163841738418384193842038421384223842338424384253842638427384283842938430384313843238433384343843538436384373843838439384403844138442384433844438445384463844738448384493845038451384523845338454384553845638457384583845938460384613846238463384643846538466384673846838469384703847138472384733847438475384763847738478384793848038481384823848338484384853848638487384883848938490384913849238493384943849538496384973849838499385003850138502385033850438505385063850738508385093851038511385123851338514385153851638517385183851938520385213852238523385243852538526385273852838529385303853138532385333853438535385363853738538385393854038541385423854338544385453854638547385483854938550385513855238553385543855538556385573855838559385603856138562385633856438565385663856738568385693857038571385723857338574385753857638577385783857938580385813858238583385843858538586385873858838589385903859138592385933859438595385963859738598385993860038601386023860338604386053860638607386083860938610386113861238613386143861538616386173861838619386203862138622386233862438625386263862738628386293863038631386323863338634386353863638637386383863938640386413864238643386443864538646386473864838649386503865138652386533865438655386563865738658386593866038661386623866338664386653866638667386683866938670386713867238673386743867538676386773867838679386803868138682386833868438685386863868738688386893869038691386923869338694386953869638697386983869938700387013870238703387043870538706387073870838709387103871138712387133871438715387163871738718387193872038721387223872338724387253872638727387283872938730387313873238733387343873538736387373873838739387403874138742387433874438745387463874738748387493875038751387523875338754387553875638757387583875938760387613876238763387643876538766387673876838769387703877138772387733877438775387763877738778387793878038781387823878338784387853878638787387883878938790387913879238793387943879538796387973879838799388003880138802388033880438805388063880738808388093881038811388123881338814388153881638817388183881938820388213882238823388243882538826388273882838829388303883138832388333883438835388363883738838388393884038841388423884338844388453884638847388483884938850388513885238853388543885538856388573885838859388603886138862388633886438865388663886738868388693887038871388723887338874388753887638877388783887938880388813888238883388843888538886388873888838889388903889138892388933889438895388963889738898388993890038901389023890338904389053890638907389083890938910389113891238913389143891538916389173891838919389203892138922389233892438925389263892738928389293893038931389323893338934389353893638937389383893938940389413894238943389443894538946389473894838949389503895138952389533895438955389563895738958389593896038961389623896338964389653896638967389683896938970389713897238973389743897538976389773897838979389803898138982389833898438985389863898738988389893899038991389923899338994389953899638997389983899939000390013900239003390043900539006390073900839009390103901139012390133901439015390163901739018390193902039021390223902339024390253902639027390283902939030390313903239033390343903539036390373903839039390403904139042390433904439045390463904739048390493905039051390523905339054390553905639057390583905939060390613906239063390643906539066390673906839069390703907139072390733907439075390763907739078390793908039081390823908339084390853908639087390883908939090390913909239093390943909539096390973909839099391003910139102391033910439105391063910739108391093911039111391123911339114391153911639117391183911939120391213912239123391243912539126391273912839129391303913139132391333913439135391363913739138391393914039141391423914339144391453914639147391483914939150391513915239153391543915539156391573915839159391603916139162391633916439165391663916739168391693917039171391723917339174391753917639177391783917939180391813918239183391843918539186391873918839189391903919139192391933919439195391963919739198391993920039201392023920339204392053920639207392083920939210392113921239213392143921539216392173921839219392203922139222392233922439225392263922739228392293923039231392323923339234392353923639237392383923939240392413924239243392443924539246392473924839249392503925139252392533925439255392563925739258392593926039261392623926339264392653926639267392683926939270392713927239273392743927539276392773927839279392803928139282392833928439285392863928739288392893929039291392923929339294392953929639297392983929939300393013930239303393043930539306393073930839309393103931139312393133931439315393163931739318393193932039321393223932339324393253932639327393283932939330393313933239333393343933539336393373933839339393403934139342393433934439345393463934739348393493935039351393523935339354393553935639357393583935939360393613936239363393643936539366393673936839369393703937139372393733937439375393763937739378393793938039381393823938339384393853938639387393883938939390393913939239393393943939539396393973939839399394003940139402394033940439405394063940739408394093941039411394123941339414394153941639417394183941939420394213942239423394243942539426394273942839429394303943139432394333943439435394363943739438394393944039441394423944339444394453944639447394483944939450394513945239453394543945539456394573945839459394603946139462394633946439465394663946739468394693947039471394723947339474394753947639477394783947939480394813948239483394843948539486394873948839489394903949139492394933949439495394963949739498394993950039501395023950339504395053950639507395083950939510395113951239513395143951539516395173951839519395203952139522395233952439525395263952739528395293953039531395323953339534395353953639537395383953939540395413954239543395443954539546395473954839549395503955139552395533955439555395563955739558395593956039561395623956339564395653956639567395683956939570395713957239573395743957539576395773957839579395803958139582395833958439585395863958739588395893959039591395923959339594395953959639597395983959939600396013960239603396043960539606396073960839609396103961139612396133961439615396163961739618396193962039621396223962339624396253962639627396283962939630396313963239633396343963539636396373963839639396403964139642396433964439645396463964739648396493965039651396523965339654396553965639657396583965939660396613966239663396643966539666396673966839669396703967139672396733967439675396763967739678396793968039681396823968339684396853968639687396883968939690396913969239693396943969539696396973969839699397003970139702397033970439705397063970739708397093971039711397123971339714397153971639717397183971939720397213972239723397243972539726397273972839729397303973139732397333973439735397363973739738397393974039741397423974339744397453974639747397483974939750397513975239753397543975539756397573975839759397603976139762397633976439765397663976739768397693977039771397723977339774397753977639777397783977939780397813978239783397843978539786397873978839789397903979139792397933979439795397963979739798397993980039801398023980339804398053980639807398083980939810398113981239813398143981539816398173981839819398203982139822398233982439825398263982739828398293983039831398323983339834398353983639837398383983939840398413984239843398443984539846398473984839849398503985139852398533985439855398563985739858398593986039861398623986339864398653986639867398683986939870398713987239873398743987539876398773987839879398803988139882398833988439885398863988739888398893989039891398923989339894398953989639897398983989939900399013990239903399043990539906399073990839909399103991139912399133991439915399163991739918399193992039921399223992339924399253992639927399283992939930399313993239933399343993539936399373993839939399403994139942399433994439945399463994739948399493995039951399523995339954399553995639957399583995939960399613996239963399643996539966399673996839969399703997139972399733997439975399763997739978399793998039981399823998339984399853998639987399883998939990399913999239993399943999539996399973999839999400004000140002400034000440005400064000740008400094001040011400124001340014400154001640017400184001940020400214002240023400244002540026400274002840029400304003140032400334003440035400364003740038400394004040041400424004340044400454004640047400484004940050400514005240053400544005540056400574005840059400604006140062400634006440065400664006740068400694007040071400724007340074400754007640077400784007940080400814008240083400844008540086400874008840089400904009140092400934009440095400964009740098400994010040101401024010340104401054010640107401084010940110401114011240113401144011540116401174011840119401204012140122401234012440125401264012740128401294013040131401324013340134401354013640137401384013940140401414014240143401444014540146401474014840149401504015140152401534015440155401564015740158401594016040161401624016340164401654016640167401684016940170401714017240173401744017540176401774017840179401804018140182401834018440185401864018740188401894019040191401924019340194401954019640197401984019940200402014020240203402044020540206402074020840209402104021140212402134021440215402164021740218402194022040221402224022340224402254022640227402284022940230402314023240233402344023540236402374023840239402404024140242402434024440245402464024740248402494025040251402524025340254402554025640257402584025940260402614026240263402644026540266402674026840269402704027140272402734027440275402764027740278402794028040281402824028340284402854028640287402884028940290402914029240293402944029540296402974029840299403004030140302403034030440305403064030740308403094031040311403124031340314403154031640317403184031940320403214032240323403244032540326403274032840329403304033140332403334033440335403364033740338403394034040341403424034340344403454034640347403484034940350403514035240353403544035540356403574035840359403604036140362403634036440365403664036740368403694037040371403724037340374403754037640377403784037940380403814038240383403844038540386403874038840389403904039140392403934039440395403964039740398403994040040401404024040340404404054040640407404084040940410404114041240413404144041540416404174041840419404204042140422404234042440425404264042740428404294043040431404324043340434404354043640437404384043940440404414044240443404444044540446404474044840449404504045140452404534045440455404564045740458404594046040461404624046340464404654046640467404684046940470404714047240473404744047540476404774047840479404804048140482404834048440485404864048740488404894049040491404924049340494404954049640497404984049940500405014050240503405044050540506405074050840509405104051140512405134051440515405164051740518405194052040521405224052340524405254052640527405284052940530405314053240533405344053540536405374053840539405404054140542405434054440545405464054740548405494055040551405524055340554405554055640557405584055940560405614056240563405644056540566405674056840569405704057140572405734057440575405764057740578405794058040581405824058340584405854058640587405884058940590405914059240593405944059540596405974059840599406004060140602406034060440605406064060740608406094061040611406124061340614406154061640617406184061940620406214062240623406244062540626406274062840629406304063140632406334063440635406364063740638406394064040641406424064340644406454064640647406484064940650406514065240653406544065540656406574065840659406604066140662406634066440665406664066740668406694067040671406724067340674406754067640677406784067940680406814068240683406844068540686406874068840689406904069140692406934069440695406964069740698406994070040701407024070340704407054070640707407084070940710407114071240713407144071540716407174071840719407204072140722407234072440725407264072740728407294073040731407324073340734407354073640737407384073940740407414074240743407444074540746407474074840749407504075140752407534075440755407564075740758407594076040761407624076340764407654076640767407684076940770407714077240773407744077540776407774077840779407804078140782407834078440785407864078740788407894079040791407924079340794407954079640797407984079940800408014080240803408044080540806408074080840809408104081140812408134081440815408164081740818408194082040821408224082340824408254082640827408284082940830408314083240833408344083540836408374083840839408404084140842408434084440845408464084740848408494085040851408524085340854408554085640857408584085940860408614086240863408644086540866408674086840869408704087140872408734087440875408764087740878408794088040881408824088340884408854088640887408884088940890408914089240893408944089540896408974089840899409004090140902409034090440905409064090740908409094091040911409124091340914409154091640917409184091940920409214092240923409244092540926409274092840929409304093140932409334093440935409364093740938409394094040941409424094340944409454094640947409484094940950409514095240953409544095540956409574095840959409604096140962409634096440965409664096740968409694097040971409724097340974409754097640977409784097940980409814098240983409844098540986409874098840989409904099140992409934099440995409964099740998409994100041001410024100341004410054100641007410084100941010410114101241013410144101541016410174101841019410204102141022410234102441025410264102741028410294103041031410324103341034410354103641037410384103941040410414104241043410444104541046410474104841049410504105141052410534105441055410564105741058410594106041061410624106341064410654106641067410684106941070410714107241073410744107541076410774107841079410804108141082410834108441085410864108741088410894109041091410924109341094410954109641097410984109941100411014110241103411044110541106411074110841109411104111141112411134111441115411164111741118411194112041121411224112341124411254112641127411284112941130411314113241133411344113541136411374113841139411404114141142411434114441145411464114741148411494115041151411524115341154411554115641157411584115941160411614116241163411644116541166411674116841169411704117141172411734117441175411764117741178411794118041181411824118341184411854118641187411884118941190411914119241193411944119541196411974119841199412004120141202412034120441205412064120741208412094121041211412124121341214412154121641217412184121941220412214122241223412244122541226412274122841229412304123141232412334123441235412364123741238412394124041241412424124341244412454124641247412484124941250412514125241253412544125541256412574125841259412604126141262412634126441265412664126741268412694127041271412724127341274412754127641277412784127941280412814128241283412844128541286412874128841289412904129141292412934129441295412964129741298412994130041301413024130341304413054130641307413084130941310413114131241313413144131541316413174131841319413204132141322413234132441325413264132741328413294133041331413324133341334413354133641337413384133941340413414134241343413444134541346413474134841349413504135141352413534135441355413564135741358413594136041361413624136341364413654136641367413684136941370413714137241373413744137541376413774137841379413804138141382413834138441385413864138741388413894139041391413924139341394413954139641397413984139941400414014140241403414044140541406414074140841409414104141141412414134141441415414164141741418414194142041421414224142341424414254142641427414284142941430414314143241433414344143541436414374143841439414404144141442414434144441445414464144741448414494145041451414524145341454414554145641457414584145941460414614146241463414644146541466414674146841469414704147141472414734147441475414764147741478414794148041481414824148341484414854148641487414884148941490414914149241493414944149541496414974149841499415004150141502415034150441505415064150741508415094151041511415124151341514415154151641517415184151941520415214152241523415244152541526415274152841529415304153141532415334153441535415364153741538415394154041541415424154341544415454154641547415484154941550415514155241553415544155541556415574155841559415604156141562415634156441565415664156741568415694157041571415724157341574415754157641577415784157941580415814158241583415844158541586415874158841589415904159141592415934159441595415964159741598415994160041601416024160341604416054160641607416084160941610416114161241613416144161541616416174161841619416204162141622416234162441625416264162741628416294163041631416324163341634416354163641637416384163941640416414164241643416444164541646416474164841649416504165141652416534165441655416564165741658416594166041661416624166341664416654166641667416684166941670416714167241673416744167541676416774167841679416804168141682416834168441685416864168741688416894169041691416924169341694416954169641697416984169941700417014170241703417044170541706417074170841709417104171141712417134171441715417164171741718417194172041721417224172341724417254172641727417284172941730417314173241733417344173541736417374173841739417404174141742417434174441745417464174741748417494175041751417524175341754417554175641757417584175941760417614176241763417644176541766417674176841769417704177141772417734177441775417764177741778417794178041781417824178341784417854178641787417884178941790417914179241793417944179541796417974179841799418004180141802418034180441805418064180741808418094181041811418124181341814418154181641817418184181941820418214182241823418244182541826418274182841829418304183141832418334183441835418364183741838418394184041841418424184341844418454184641847418484184941850418514185241853418544185541856418574185841859418604186141862418634186441865418664186741868418694187041871418724187341874418754187641877418784187941880418814188241883418844188541886418874188841889418904189141892418934189441895418964189741898418994190041901419024190341904419054190641907419084190941910419114191241913419144191541916419174191841919419204192141922419234192441925419264192741928419294193041931419324193341934419354193641937419384193941940419414194241943419444194541946419474194841949419504195141952419534195441955419564195741958419594196041961419624196341964419654196641967419684196941970419714197241973419744197541976419774197841979419804198141982419834198441985419864198741988419894199041991419924199341994419954199641997419984199942000420014200242003420044200542006420074200842009420104201142012420134201442015420164201742018420194202042021420224202342024420254202642027420284202942030420314203242033420344203542036420374203842039420404204142042420434204442045420464204742048420494205042051420524205342054420554205642057420584205942060420614206242063420644206542066420674206842069420704207142072420734207442075420764207742078420794208042081420824208342084420854208642087420884208942090420914209242093420944209542096420974209842099421004210142102421034210442105421064210742108421094211042111421124211342114421154211642117421184211942120421214212242123421244212542126421274212842129421304213142132421334213442135421364213742138421394214042141421424214342144421454214642147421484214942150421514215242153421544215542156421574215842159421604216142162421634216442165421664216742168421694217042171421724217342174421754217642177421784217942180421814218242183421844218542186421874218842189421904219142192421934219442195421964219742198421994220042201422024220342204422054220642207422084220942210422114221242213422144221542216422174221842219422204222142222422234222442225422264222742228422294223042231422324223342234422354223642237422384223942240422414224242243422444224542246422474224842249422504225142252422534225442255422564225742258422594226042261422624226342264422654226642267422684226942270422714227242273422744227542276422774227842279422804228142282422834228442285422864228742288422894229042291422924229342294422954229642297422984229942300423014230242303423044230542306423074230842309423104231142312423134231442315423164231742318423194232042321423224232342324423254232642327423284232942330423314233242333423344233542336423374233842339423404234142342423434234442345423464234742348423494235042351423524235342354423554235642357423584235942360423614236242363423644236542366423674236842369423704237142372423734237442375423764237742378423794238042381423824238342384423854238642387423884238942390423914239242393423944239542396423974239842399424004240142402424034240442405424064240742408424094241042411424124241342414424154241642417424184241942420424214242242423424244242542426424274242842429424304243142432424334243442435424364243742438424394244042441424424244342444424454244642447424484244942450424514245242453424544245542456424574245842459424604246142462424634246442465424664246742468424694247042471424724247342474424754247642477424784247942480424814248242483424844248542486424874248842489424904249142492424934249442495424964249742498424994250042501425024250342504425054250642507425084250942510425114251242513425144251542516425174251842519425204252142522425234252442525425264252742528425294253042531425324253342534425354253642537425384253942540425414254242543425444254542546425474254842549425504255142552425534255442555425564255742558425594256042561425624256342564425654256642567425684256942570425714257242573425744257542576425774257842579425804258142582425834258442585425864258742588425894259042591425924259342594425954259642597425984259942600426014260242603426044260542606426074260842609426104261142612426134261442615426164261742618426194262042621426224262342624426254262642627426284262942630426314263242633426344263542636426374263842639426404264142642426434264442645426464264742648426494265042651426524265342654426554265642657426584265942660426614266242663426644266542666426674266842669426704267142672426734267442675426764267742678426794268042681426824268342684426854268642687426884268942690426914269242693426944269542696426974269842699427004270142702427034270442705427064270742708427094271042711427124271342714427154271642717427184271942720427214272242723427244272542726427274272842729427304273142732427334273442735427364273742738427394274042741427424274342744427454274642747427484274942750427514275242753427544275542756427574275842759427604276142762427634276442765427664276742768427694277042771427724277342774427754277642777427784277942780427814278242783427844278542786427874278842789427904279142792427934279442795427964279742798427994280042801428024280342804428054280642807428084280942810428114281242813428144281542816428174281842819428204282142822428234282442825428264282742828428294283042831428324283342834428354283642837428384283942840428414284242843428444284542846428474284842849428504285142852428534285442855428564285742858428594286042861428624286342864428654286642867428684286942870428714287242873428744287542876428774287842879428804288142882428834288442885428864288742888428894289042891428924289342894428954289642897428984289942900429014290242903429044290542906429074290842909429104291142912429134291442915429164291742918429194292042921429224292342924429254292642927429284292942930429314293242933429344293542936429374293842939429404294142942429434294442945429464294742948429494295042951429524295342954429554295642957429584295942960429614296242963429644296542966429674296842969429704297142972429734297442975429764297742978429794298042981429824298342984429854298642987429884298942990429914299242993429944299542996429974299842999430004300143002430034300443005430064300743008430094301043011430124301343014430154301643017430184301943020430214302243023430244302543026430274302843029430304303143032430334303443035430364303743038430394304043041430424304343044430454304643047430484304943050430514305243053430544305543056430574305843059430604306143062430634306443065430664306743068430694307043071430724307343074430754307643077430784307943080430814308243083430844308543086430874308843089430904309143092430934309443095430964309743098430994310043101431024310343104431054310643107431084310943110431114311243113431144311543116431174311843119431204312143122431234312443125431264312743128431294313043131431324313343134431354313643137431384313943140431414314243143431444314543146431474314843149431504315143152431534315443155431564315743158431594316043161431624316343164431654316643167431684316943170431714317243173431744317543176431774317843179431804318143182431834318443185431864318743188431894319043191431924319343194431954319643197431984319943200432014320243203432044320543206432074320843209432104321143212432134321443215432164321743218432194322043221432224322343224432254322643227432284322943230432314323243233432344323543236432374323843239432404324143242432434324443245432464324743248432494325043251432524325343254432554325643257432584325943260432614326243263432644326543266432674326843269432704327143272432734327443275432764327743278432794328043281432824328343284432854328643287432884328943290432914329243293432944329543296432974329843299433004330143302433034330443305433064330743308433094331043311433124331343314433154331643317433184331943320433214332243323433244332543326433274332843329433304333143332433334333443335433364333743338433394334043341433424334343344433454334643347433484334943350433514335243353433544335543356433574335843359433604336143362433634336443365433664336743368433694337043371433724337343374433754337643377433784337943380433814338243383433844338543386433874338843389433904339143392433934339443395433964339743398433994340043401434024340343404434054340643407434084340943410434114341243413434144341543416434174341843419434204342143422434234342443425434264342743428434294343043431434324343343434434354343643437434384343943440434414344243443434444344543446434474344843449434504345143452434534345443455434564345743458434594346043461434624346343464434654346643467434684346943470434714347243473434744347543476434774347843479434804348143482434834348443485434864348743488434894349043491434924349343494434954349643497434984349943500435014350243503435044350543506435074350843509435104351143512435134351443515435164351743518435194352043521435224352343524435254352643527435284352943530435314353243533435344353543536435374353843539435404354143542435434354443545435464354743548435494355043551435524355343554435554355643557435584355943560435614356243563435644356543566435674356843569435704357143572435734357443575435764357743578435794358043581435824358343584435854358643587435884358943590435914359243593435944359543596435974359843599436004360143602436034360443605436064360743608436094361043611436124361343614436154361643617436184361943620436214362243623436244362543626436274362843629436304363143632436334363443635436364363743638436394364043641436424364343644436454364643647436484364943650436514365243653436544365543656436574365843659436604366143662436634366443665436664366743668436694367043671436724367343674436754367643677436784367943680436814368243683436844368543686436874368843689436904369143692436934369443695436964369743698436994370043701437024370343704437054370643707437084370943710437114371243713437144371543716437174371843719437204372143722437234372443725437264372743728437294373043731437324373343734437354373643737437384373943740437414374243743437444374543746437474374843749437504375143752437534375443755437564375743758437594376043761437624376343764437654376643767437684376943770437714377243773437744377543776437774377843779437804378143782437834378443785437864378743788437894379043791437924379343794437954379643797437984379943800438014380243803438044380543806438074380843809438104381143812438134381443815438164381743818438194382043821438224382343824438254382643827438284382943830438314383243833438344383543836438374383843839438404384143842438434384443845438464384743848438494385043851438524385343854438554385643857438584385943860438614386243863438644386543866438674386843869438704387143872438734387443875438764387743878438794388043881438824388343884438854388643887438884388943890438914389243893438944389543896438974389843899439004390143902439034390443905439064390743908439094391043911439124391343914439154391643917439184391943920439214392243923439244392543926439274392843929439304393143932439334393443935439364393743938439394394043941439424394343944439454394643947439484394943950439514395243953439544395543956439574395843959439604396143962439634396443965439664396743968439694397043971439724397343974439754397643977439784397943980439814398243983439844398543986439874398843989439904399143992439934399443995439964399743998439994400044001440024400344004440054400644007440084400944010440114401244013440144401544016440174401844019440204402144022440234402444025440264402744028440294403044031440324403344034440354403644037440384403944040440414404244043440444404544046440474404844049440504405144052440534405444055440564405744058440594406044061440624406344064440654406644067440684406944070440714407244073440744407544076440774407844079440804408144082440834408444085440864408744088440894409044091440924409344094440954409644097440984409944100441014410244103441044410544106441074410844109441104411144112441134411444115441164411744118441194412044121441224412344124441254412644127441284412944130441314413244133441344413544136441374413844139441404414144142441434414444145441464414744148441494415044151441524415344154441554415644157441584415944160441614416244163441644416544166441674416844169441704417144172441734417444175441764417744178441794418044181441824418344184441854418644187441884418944190441914419244193441944419544196441974419844199442004420144202442034420444205442064420744208442094421044211442124421344214442154421644217442184421944220442214422244223442244422544226442274422844229442304423144232442334423444235442364423744238442394424044241442424424344244442454424644247442484424944250442514425244253442544425544256442574425844259442604426144262442634426444265442664426744268442694427044271442724427344274442754427644277442784427944280442814428244283442844428544286442874428844289442904429144292442934429444295442964429744298442994430044301443024430344304443054430644307443084430944310443114431244313443144431544316443174431844319443204432144322443234432444325443264432744328443294433044331443324433344334443354433644337443384433944340443414434244343443444434544346443474434844349443504435144352443534435444355443564435744358443594436044361443624436344364443654436644367443684436944370443714437244373443744437544376443774437844379443804438144382443834438444385443864438744388443894439044391443924439344394443954439644397443984439944400444014440244403444044440544406444074440844409444104441144412444134441444415444164441744418444194442044421444224442344424444254442644427444284442944430444314443244433444344443544436444374443844439444404444144442444434444444445444464444744448444494445044451444524445344454444554445644457444584445944460444614446244463444644446544466444674446844469444704447144472444734447444475444764447744478444794448044481444824448344484444854448644487444884448944490444914449244493444944449544496444974449844499445004450144502445034450444505445064450744508445094451044511445124451344514445154451644517445184451944520445214452244523445244452544526445274452844529445304453144532445334453444535445364453744538445394454044541445424454344544445454454644547445484454944550445514455244553445544455544556445574455844559445604456144562445634456444565445664456744568445694457044571445724457344574445754457644577445784457944580445814458244583445844458544586445874458844589445904459144592445934459444595445964459744598445994460044601446024460344604446054460644607446084460944610446114461244613446144461544616446174461844619446204462144622446234462444625446264462744628446294463044631446324463344634446354463644637446384463944640446414464244643446444464544646446474464844649446504465144652446534465444655446564465744658446594466044661446624466344664446654466644667446684466944670446714467244673446744467544676446774467844679446804468144682446834468444685446864468744688446894469044691446924469344694446954469644697446984469944700447014470244703447044470544706447074470844709447104471144712447134471444715447164471744718447194472044721447224472344724447254472644727447284472944730447314473244733447344473544736447374473844739447404474144742447434474444745447464474744748447494475044751447524475344754447554475644757447584475944760447614476244763447644476544766447674476844769447704477144772447734477444775447764477744778447794478044781447824478344784447854478644787447884478944790447914479244793447944479544796447974479844799448004480144802448034480444805448064480744808448094481044811448124481344814448154481644817448184481944820448214482244823448244482544826448274482844829448304483144832448334483444835448364483744838448394484044841448424484344844448454484644847448484484944850448514485244853448544485544856448574485844859448604486144862448634486444865448664486744868448694487044871448724487344874448754487644877448784487944880448814488244883448844488544886448874488844889448904489144892448934489444895448964489744898448994490044901449024490344904449054490644907449084490944910449114491244913449144491544916449174491844919449204492144922449234492444925449264492744928449294493044931449324493344934449354493644937449384493944940449414494244943449444494544946449474494844949449504495144952449534495444955449564495744958449594496044961449624496344964449654496644967449684496944970449714497244973449744497544976449774497844979449804498144982449834498444985449864498744988449894499044991449924499344994449954499644997449984499945000450014500245003450044500545006450074500845009450104501145012450134501445015450164501745018450194502045021450224502345024450254502645027450284502945030450314503245033450344503545036450374503845039450404504145042450434504445045450464504745048450494505045051450524505345054450554505645057450584505945060450614506245063450644506545066450674506845069450704507145072450734507445075450764507745078450794508045081450824508345084450854508645087450884508945090450914509245093450944509545096450974509845099451004510145102451034510445105451064510745108451094511045111451124511345114451154511645117451184511945120451214512245123451244512545126451274512845129451304513145132451334513445135451364513745138451394514045141451424514345144451454514645147451484514945150451514515245153451544515545156451574515845159451604516145162451634516445165451664516745168451694517045171451724517345174451754517645177451784517945180451814518245183451844518545186451874518845189451904519145192451934519445195451964519745198451994520045201452024520345204452054520645207452084520945210452114521245213452144521545216452174521845219452204522145222452234522445225452264522745228452294523045231452324523345234452354523645237452384523945240452414524245243452444524545246452474524845249452504525145252452534525445255452564525745258452594526045261452624526345264452654526645267452684526945270452714527245273452744527545276452774527845279452804528145282452834528445285452864528745288452894529045291452924529345294452954529645297452984529945300453014530245303453044530545306453074530845309453104531145312453134531445315453164531745318453194532045321453224532345324453254532645327453284532945330453314533245333453344533545336453374533845339453404534145342453434534445345453464534745348453494535045351453524535345354453554535645357453584535945360453614536245363453644536545366453674536845369453704537145372453734537445375453764537745378453794538045381453824538345384453854538645387453884538945390453914539245393453944539545396453974539845399454004540145402454034540445405454064540745408454094541045411454124541345414454154541645417454184541945420454214542245423454244542545426454274542845429454304543145432454334543445435454364543745438454394544045441454424544345444454454544645447454484544945450454514545245453454544545545456454574545845459454604546145462454634546445465454664546745468454694547045471454724547345474454754547645477454784547945480454814548245483454844548545486454874548845489454904549145492454934549445495454964549745498454994550045501455024550345504455054550645507455084550945510455114551245513455144551545516455174551845519455204552145522455234552445525455264552745528455294553045531455324553345534455354553645537455384553945540455414554245543455444554545546455474554845549455504555145552455534555445555455564555745558455594556045561455624556345564455654556645567455684556945570455714557245573455744557545576455774557845579455804558145582455834558445585455864558745588455894559045591455924559345594455954559645597455984559945600456014560245603456044560545606456074560845609456104561145612456134561445615456164561745618456194562045621456224562345624456254562645627456284562945630456314563245633456344563545636456374563845639456404564145642456434564445645456464564745648456494565045651456524565345654456554565645657456584565945660456614566245663456644566545666456674566845669456704567145672456734567445675456764567745678456794568045681456824568345684456854568645687456884568945690456914569245693456944569545696456974569845699457004570145702457034570445705457064570745708457094571045711457124571345714457154571645717457184571945720457214572245723457244572545726457274572845729457304573145732457334573445735457364573745738457394574045741457424574345744457454574645747457484574945750457514575245753457544575545756457574575845759457604576145762457634576445765457664576745768457694577045771457724577345774457754577645777457784577945780457814578245783457844578545786457874578845789457904579145792457934579445795457964579745798457994580045801458024580345804458054580645807458084580945810458114581245813458144581545816458174581845819458204582145822458234582445825458264582745828458294583045831458324583345834458354583645837458384583945840458414584245843458444584545846458474584845849458504585145852458534585445855458564585745858458594586045861458624586345864458654586645867458684586945870458714587245873458744587545876458774587845879458804588145882458834588445885458864588745888458894589045891458924589345894458954589645897458984589945900459014590245903459044590545906459074590845909459104591145912459134591445915459164591745918459194592045921459224592345924459254592645927459284592945930459314593245933459344593545936459374593845939459404594145942459434594445945459464594745948459494595045951459524595345954459554595645957459584595945960459614596245963459644596545966459674596845969459704597145972459734597445975459764597745978459794598045981459824598345984459854598645987459884598945990459914599245993459944599545996459974599845999460004600146002460034600446005460064600746008460094601046011460124601346014460154601646017460184601946020460214602246023460244602546026460274602846029460304603146032460334603446035460364603746038460394604046041460424604346044460454604646047460484604946050460514605246053460544605546056460574605846059460604606146062460634606446065460664606746068460694607046071460724607346074460754607646077460784607946080460814608246083460844608546086460874608846089460904609146092460934609446095460964609746098460994610046101461024610346104461054610646107461084610946110461114611246113461144611546116461174611846119461204612146122461234612446125461264612746128461294613046131461324613346134461354613646137461384613946140461414614246143461444614546146461474614846149461504615146152461534615446155461564615746158461594616046161461624616346164461654616646167461684616946170461714617246173461744617546176461774617846179461804618146182461834618446185461864618746188461894619046191461924619346194461954619646197461984619946200462014620246203462044620546206462074620846209462104621146212462134621446215462164621746218462194622046221462224622346224462254622646227462284622946230462314623246233462344623546236462374623846239462404624146242462434624446245462464624746248462494625046251462524625346254462554625646257462584625946260462614626246263462644626546266462674626846269462704627146272462734627446275462764627746278462794628046281462824628346284462854628646287462884628946290462914629246293462944629546296462974629846299463004630146302463034630446305463064630746308463094631046311463124631346314463154631646317463184631946320463214632246323463244632546326463274632846329463304633146332463334633446335463364633746338463394634046341463424634346344463454634646347463484634946350463514635246353463544635546356463574635846359463604636146362463634636446365463664636746368463694637046371463724637346374463754637646377463784637946380463814638246383463844638546386463874638846389463904639146392463934639446395463964639746398463994640046401464024640346404464054640646407464084640946410464114641246413464144641546416464174641846419464204642146422464234642446425464264642746428464294643046431464324643346434464354643646437464384643946440464414644246443464444644546446464474644846449464504645146452464534645446455464564645746458464594646046461464624646346464464654646646467464684646946470464714647246473464744647546476464774647846479464804648146482464834648446485464864648746488464894649046491464924649346494464954649646497464984649946500465014650246503465044650546506465074650846509465104651146512465134651446515465164651746518465194652046521465224652346524465254652646527465284652946530465314653246533465344653546536465374653846539465404654146542465434654446545465464654746548465494655046551465524655346554465554655646557465584655946560465614656246563465644656546566465674656846569465704657146572465734657446575465764657746578465794658046581465824658346584465854658646587465884658946590465914659246593465944659546596465974659846599466004660146602466034660446605466064660746608466094661046611466124661346614466154661646617466184661946620466214662246623466244662546626466274662846629466304663146632466334663446635466364663746638466394664046641466424664346644466454664646647466484664946650466514665246653466544665546656466574665846659466604666146662466634666446665466664666746668466694667046671466724667346674466754667646677466784667946680466814668246683466844668546686466874668846689466904669146692466934669446695466964669746698466994670046701467024670346704467054670646707467084670946710467114671246713467144671546716467174671846719467204672146722467234672446725467264672746728467294673046731467324673346734467354673646737467384673946740467414674246743467444674546746467474674846749467504675146752467534675446755467564675746758467594676046761467624676346764467654676646767467684676946770467714677246773467744677546776467774677846779467804678146782467834678446785467864678746788467894679046791467924679346794467954679646797467984679946800468014680246803468044680546806468074680846809468104681146812468134681446815468164681746818468194682046821468224682346824468254682646827468284682946830468314683246833468344683546836468374683846839468404684146842468434684446845468464684746848468494685046851468524685346854468554685646857468584685946860468614686246863468644686546866468674686846869468704687146872468734687446875468764687746878468794688046881468824688346884468854688646887468884688946890468914689246893468944689546896468974689846899469004690146902469034690446905469064690746908469094691046911469124691346914469154691646917469184691946920469214692246923469244692546926469274692846929469304693146932469334693446935469364693746938469394694046941469424694346944469454694646947469484694946950469514695246953469544695546956469574695846959469604696146962469634696446965469664696746968469694697046971469724697346974469754697646977469784697946980469814698246983469844698546986469874698846989469904699146992469934699446995469964699746998469994700047001470024700347004470054700647007470084700947010470114701247013470144701547016470174701847019470204702147022470234702447025470264702747028470294703047031470324703347034470354703647037470384703947040470414704247043470444704547046470474704847049470504705147052470534705447055470564705747058470594706047061470624706347064470654706647067470684706947070470714707247073470744707547076470774707847079470804708147082470834708447085470864708747088470894709047091470924709347094470954709647097470984709947100471014710247103471044710547106471074710847109471104711147112471134711447115471164711747118471194712047121471224712347124471254712647127471284712947130471314713247133471344713547136471374713847139471404714147142471434714447145471464714747148471494715047151471524715347154471554715647157471584715947160471614716247163471644716547166471674716847169471704717147172471734717447175471764717747178471794718047181471824718347184471854718647187471884718947190471914719247193471944719547196471974719847199472004720147202472034720447205472064720747208472094721047211472124721347214472154721647217472184721947220472214722247223472244722547226472274722847229472304723147232472334723447235472364723747238472394724047241472424724347244472454724647247472484724947250472514725247253472544725547256472574725847259472604726147262472634726447265472664726747268472694727047271472724727347274472754727647277472784727947280472814728247283472844728547286472874728847289472904729147292472934729447295472964729747298472994730047301473024730347304473054730647307473084730947310473114731247313473144731547316473174731847319473204732147322473234732447325473264732747328473294733047331473324733347334473354733647337473384733947340473414734247343473444734547346473474734847349473504735147352473534735447355473564735747358473594736047361473624736347364473654736647367473684736947370473714737247373473744737547376473774737847379473804738147382473834738447385473864738747388473894739047391473924739347394473954739647397473984739947400474014740247403474044740547406474074740847409474104741147412474134741447415474164741747418474194742047421474224742347424474254742647427474284742947430474314743247433474344743547436474374743847439474404744147442474434744447445474464744747448474494745047451474524745347454474554745647457474584745947460474614746247463474644746547466474674746847469474704747147472474734747447475474764747747478474794748047481474824748347484474854748647487474884748947490474914749247493474944749547496474974749847499475004750147502475034750447505475064750747508475094751047511475124751347514475154751647517475184751947520475214752247523475244752547526475274752847529475304753147532475334753447535475364753747538475394754047541475424754347544475454754647547475484754947550475514755247553475544755547556475574755847559475604756147562475634756447565475664756747568475694757047571475724757347574475754757647577475784757947580475814758247583475844758547586475874758847589475904759147592475934759447595475964759747598475994760047601476024760347604476054760647607476084760947610476114761247613476144761547616476174761847619476204762147622476234762447625476264762747628476294763047631476324763347634476354763647637476384763947640476414764247643476444764547646476474764847649476504765147652476534765447655476564765747658476594766047661476624766347664476654766647667476684766947670476714767247673476744767547676476774767847679476804768147682476834768447685476864768747688476894769047691476924769347694476954769647697476984769947700477014770247703477044770547706477074770847709477104771147712477134771447715477164771747718477194772047721477224772347724477254772647727477284772947730477314773247733477344773547736477374773847739477404774147742477434774447745477464774747748477494775047751477524775347754477554775647757477584775947760477614776247763477644776547766477674776847769477704777147772477734777447775477764777747778477794778047781477824778347784477854778647787477884778947790477914779247793477944779547796477974779847799478004780147802478034780447805478064780747808478094781047811478124781347814478154781647817478184781947820478214782247823478244782547826478274782847829478304783147832478334783447835478364783747838478394784047841478424784347844478454784647847478484784947850478514785247853478544785547856478574785847859478604786147862478634786447865478664786747868478694787047871478724787347874478754787647877478784787947880478814788247883478844788547886478874788847889478904789147892478934789447895478964789747898478994790047901479024790347904479054790647907479084790947910479114791247913479144791547916479174791847919479204792147922479234792447925479264792747928479294793047931479324793347934479354793647937479384793947940479414794247943479444794547946479474794847949479504795147952479534795447955479564795747958479594796047961479624796347964479654796647967479684796947970479714797247973479744797547976479774797847979479804798147982479834798447985479864798747988479894799047991479924799347994479954799647997479984799948000480014800248003480044800548006480074800848009480104801148012480134801448015480164801748018480194802048021480224802348024480254802648027480284802948030480314803248033480344803548036480374803848039480404804148042480434804448045480464804748048480494805048051480524805348054480554805648057480584805948060480614806248063480644806548066480674806848069480704807148072480734807448075480764807748078480794808048081480824808348084480854808648087480884808948090480914809248093480944809548096480974809848099481004810148102481034810448105481064810748108481094811048111481124811348114481154811648117481184811948120481214812248123481244812548126481274812848129481304813148132481334813448135481364813748138481394814048141481424814348144481454814648147481484814948150481514815248153481544815548156481574815848159481604816148162481634816448165481664816748168481694817048171481724817348174481754817648177481784817948180481814818248183481844818548186481874818848189481904819148192481934819448195481964819748198481994820048201482024820348204482054820648207482084820948210482114821248213482144821548216482174821848219482204822148222482234822448225482264822748228482294823048231482324823348234482354823648237482384823948240482414824248243482444824548246482474824848249482504825148252482534825448255482564825748258482594826048261482624826348264482654826648267482684826948270482714827248273482744827548276482774827848279482804828148282482834828448285482864828748288482894829048291482924829348294482954829648297482984829948300483014830248303483044830548306483074830848309483104831148312483134831448315483164831748318483194832048321483224832348324483254832648327483284832948330483314833248333483344833548336483374833848339483404834148342483434834448345483464834748348483494835048351483524835348354483554835648357483584835948360483614836248363483644836548366483674836848369483704837148372483734837448375483764837748378483794838048381483824838348384483854838648387483884838948390483914839248393483944839548396483974839848399484004840148402484034840448405484064840748408484094841048411484124841348414484154841648417484184841948420484214842248423484244842548426484274842848429484304843148432484334843448435484364843748438484394844048441484424844348444484454844648447484484844948450484514845248453484544845548456484574845848459484604846148462484634846448465484664846748468484694847048471484724847348474484754847648477484784847948480484814848248483484844848548486484874848848489484904849148492484934849448495484964849748498484994850048501485024850348504485054850648507485084850948510485114851248513485144851548516485174851848519485204852148522485234852448525485264852748528485294853048531485324853348534485354853648537485384853948540485414854248543485444854548546485474854848549485504855148552485534855448555485564855748558485594856048561485624856348564485654856648567485684856948570485714857248573485744857548576485774857848579485804858148582485834858448585485864858748588485894859048591485924859348594485954859648597485984859948600486014860248603486044860548606486074860848609486104861148612486134861448615486164861748618486194862048621486224862348624486254862648627486284862948630486314863248633486344863548636486374863848639486404864148642486434864448645486464864748648486494865048651486524865348654486554865648657486584865948660486614866248663486644866548666486674866848669486704867148672486734867448675486764867748678486794868048681486824868348684486854868648687486884868948690486914869248693486944869548696486974869848699487004870148702487034870448705487064870748708487094871048711487124871348714487154871648717487184871948720487214872248723487244872548726487274872848729487304873148732487334873448735487364873748738487394874048741487424874348744487454874648747487484874948750487514875248753487544875548756487574875848759487604876148762487634876448765487664876748768487694877048771487724877348774487754877648777487784877948780487814878248783487844878548786487874878848789487904879148792487934879448795487964879748798487994880048801488024880348804488054880648807488084880948810488114881248813488144881548816488174881848819488204882148822488234882448825488264882748828488294883048831488324883348834488354883648837488384883948840488414884248843488444884548846488474884848849488504885148852488534885448855488564885748858488594886048861488624886348864488654886648867488684886948870488714887248873488744887548876488774887848879488804888148882488834888448885488864888748888488894889048891488924889348894488954889648897488984889948900489014890248903489044890548906489074890848909489104891148912489134891448915489164891748918489194892048921489224892348924489254892648927489284892948930489314893248933489344893548936489374893848939489404894148942489434894448945489464894748948489494895048951489524895348954489554895648957489584895948960489614896248963489644896548966489674896848969489704897148972489734897448975489764897748978489794898048981489824898348984489854898648987489884898948990489914899248993489944899548996489974899848999490004900149002490034900449005490064900749008490094901049011490124901349014490154901649017490184901949020490214902249023490244902549026490274902849029490304903149032490334903449035490364903749038490394904049041490424904349044490454904649047490484904949050490514905249053490544905549056490574905849059490604906149062490634906449065490664906749068490694907049071490724907349074490754907649077490784907949080490814908249083490844908549086490874908849089490904909149092490934909449095490964909749098490994910049101491024910349104491054910649107491084910949110491114911249113491144911549116491174911849119491204912149122491234912449125491264912749128491294913049131491324913349134491354913649137491384913949140491414914249143491444914549146491474914849149491504915149152491534915449155491564915749158491594916049161491624916349164491654916649167491684916949170491714917249173491744917549176491774917849179491804918149182491834918449185491864918749188491894919049191491924919349194491954919649197491984919949200492014920249203492044920549206492074920849209492104921149212492134921449215492164921749218492194922049221492224922349224492254922649227492284922949230492314923249233492344923549236492374923849239492404924149242492434924449245492464924749248492494925049251492524925349254492554925649257492584925949260492614926249263492644926549266492674926849269492704927149272492734927449275492764927749278492794928049281492824928349284492854928649287492884928949290492914929249293492944929549296492974929849299493004930149302493034930449305493064930749308493094931049311493124931349314493154931649317493184931949320493214932249323493244932549326493274932849329493304933149332493334933449335493364933749338493394934049341493424934349344493454934649347493484934949350493514935249353493544935549356493574935849359493604936149362493634936449365493664936749368493694937049371493724937349374493754937649377493784937949380493814938249383493844938549386493874938849389493904939149392493934939449395493964939749398493994940049401494024940349404494054940649407494084940949410494114941249413494144941549416494174941849419494204942149422494234942449425494264942749428494294943049431494324943349434494354943649437494384943949440494414944249443494444944549446494474944849449494504945149452494534945449455494564945749458494594946049461494624946349464494654946649467494684946949470494714947249473494744947549476494774947849479494804948149482494834948449485494864948749488494894949049491494924949349494494954949649497494984949949500495014950249503495044950549506495074950849509495104951149512495134951449515495164951749518495194952049521495224952349524495254952649527495284952949530495314953249533495344953549536495374953849539495404954149542495434954449545495464954749548495494955049551495524955349554495554955649557495584955949560495614956249563495644956549566495674956849569495704957149572495734957449575495764957749578495794958049581495824958349584495854958649587495884958949590495914959249593495944959549596495974959849599496004960149602496034960449605496064960749608496094961049611496124961349614496154961649617496184961949620496214962249623496244962549626496274962849629496304963149632496334963449635496364963749638496394964049641496424964349644496454964649647496484964949650496514965249653496544965549656496574965849659496604966149662496634966449665496664966749668496694967049671496724967349674496754967649677496784967949680496814968249683496844968549686496874968849689496904969149692496934969449695496964969749698496994970049701497024970349704497054970649707497084970949710497114971249713497144971549716497174971849719497204972149722497234972449725497264972749728497294973049731497324973349734497354973649737497384973949740497414974249743497444974549746497474974849749497504975149752497534975449755497564975749758497594976049761497624976349764497654976649767497684976949770497714977249773497744977549776497774977849779497804978149782497834978449785497864978749788497894979049791497924979349794497954979649797497984979949800498014980249803498044980549806498074980849809498104981149812498134981449815498164981749818498194982049821498224982349824498254982649827498284982949830498314983249833498344983549836498374983849839498404984149842498434984449845498464984749848498494985049851498524985349854498554985649857498584985949860498614986249863498644986549866498674986849869498704987149872498734987449875498764987749878498794988049881498824988349884498854988649887498884988949890498914989249893498944989549896498974989849899499004990149902499034990449905499064990749908499094991049911499124991349914499154991649917499184991949920499214992249923499244992549926499274992849929499304993149932499334993449935499364993749938499394994049941499424994349944499454994649947499484994949950499514995249953499544995549956499574995849959499604996149962499634996449965499664996749968499694997049971499724997349974499754997649977499784997949980499814998249983499844998549986499874998849989499904999149992499934999449995499964999749998499995000050001500025000350004500055000650007500085000950010500115001250013500145001550016500175001850019500205002150022500235002450025500265002750028500295003050031500325003350034500355003650037500385003950040500415004250043500445004550046500475004850049500505005150052500535005450055500565005750058500595006050061500625006350064500655006650067500685006950070500715007250073500745007550076500775007850079500805008150082500835008450085500865008750088500895009050091500925009350094500955009650097500985009950100501015010250103501045010550106501075010850109501105011150112501135011450115501165011750118501195012050121501225012350124501255012650127501285012950130501315013250133501345013550136501375013850139501405014150142501435014450145501465014750148501495015050151501525015350154501555015650157501585015950160501615016250163501645016550166501675016850169501705017150172501735017450175501765017750178501795018050181501825018350184501855018650187501885018950190501915019250193501945019550196501975019850199502005020150202502035020450205502065020750208502095021050211502125021350214502155021650217502185021950220502215022250223502245022550226502275022850229502305023150232502335023450235502365023750238502395024050241502425024350244502455024650247502485024950250502515025250253502545025550256502575025850259502605026150262502635026450265502665026750268502695027050271502725027350274502755027650277502785027950280502815028250283502845028550286502875028850289502905029150292502935029450295502965029750298502995030050301503025030350304503055030650307503085030950310503115031250313503145031550316503175031850319503205032150322503235032450325503265032750328503295033050331503325033350334503355033650337503385033950340503415034250343503445034550346503475034850349503505035150352503535035450355503565035750358503595036050361503625036350364503655036650367503685036950370503715037250373503745037550376503775037850379503805038150382503835038450385503865038750388503895039050391503925039350394503955039650397503985039950400504015040250403504045040550406504075040850409504105041150412504135041450415504165041750418504195042050421504225042350424504255042650427504285042950430504315043250433504345043550436504375043850439504405044150442504435044450445504465044750448504495045050451504525045350454504555045650457504585045950460504615046250463504645046550466504675046850469504705047150472504735047450475504765047750478504795048050481504825048350484504855048650487504885048950490504915049250493504945049550496504975049850499505005050150502505035050450505505065050750508505095051050511505125051350514505155051650517505185051950520505215052250523505245052550526505275052850529505305053150532505335053450535505365053750538505395054050541505425054350544505455054650547505485054950550505515055250553505545055550556505575055850559505605056150562505635056450565505665056750568505695057050571505725057350574505755057650577505785057950580505815058250583505845058550586505875058850589505905059150592505935059450595505965059750598505995060050601506025060350604506055060650607506085060950610506115061250613506145061550616506175061850619506205062150622506235062450625506265062750628506295063050631506325063350634506355063650637506385063950640506415064250643506445064550646506475064850649506505065150652506535065450655506565065750658506595066050661506625066350664506655066650667506685066950670506715067250673506745067550676506775067850679506805068150682506835068450685506865068750688506895069050691506925069350694506955069650697506985069950700507015070250703507045070550706507075070850709507105071150712507135071450715507165071750718507195072050721507225072350724507255072650727507285072950730507315073250733507345073550736507375073850739507405074150742507435074450745507465074750748507495075050751507525075350754507555075650757507585075950760507615076250763507645076550766507675076850769507705077150772507735077450775507765077750778507795078050781507825078350784507855078650787507885078950790507915079250793507945079550796507975079850799508005080150802508035080450805508065080750808508095081050811508125081350814508155081650817508185081950820508215082250823508245082550826508275082850829508305083150832508335083450835508365083750838508395084050841508425084350844508455084650847508485084950850508515085250853508545085550856508575085850859508605086150862508635086450865508665086750868508695087050871508725087350874508755087650877508785087950880508815088250883508845088550886508875088850889508905089150892508935089450895508965089750898508995090050901509025090350904509055090650907509085090950910509115091250913509145091550916509175091850919509205092150922509235092450925509265092750928509295093050931509325093350934509355093650937509385093950940509415094250943509445094550946509475094850949509505095150952509535095450955509565095750958509595096050961509625096350964509655096650967509685096950970509715097250973509745097550976509775097850979509805098150982509835098450985509865098750988509895099050991509925099350994509955099650997509985099951000510015100251003510045100551006510075100851009510105101151012510135101451015510165101751018510195102051021510225102351024510255102651027510285102951030510315103251033510345103551036510375103851039510405104151042510435104451045510465104751048510495105051051510525105351054510555105651057510585105951060510615106251063510645106551066510675106851069510705107151072510735107451075510765107751078510795108051081510825108351084510855108651087510885108951090510915109251093510945109551096510975109851099511005110151102511035110451105511065110751108511095111051111511125111351114511155111651117511185111951120511215112251123511245112551126511275112851129511305113151132511335113451135511365113751138511395114051141511425114351144511455114651147511485114951150511515115251153511545115551156511575115851159511605116151162511635116451165511665116751168511695117051171511725117351174511755117651177511785117951180511815118251183511845118551186511875118851189511905119151192511935119451195511965119751198511995120051201512025120351204512055120651207512085120951210512115121251213512145121551216512175121851219512205122151222512235122451225512265122751228512295123051231512325123351234512355123651237512385123951240512415124251243512445124551246512475124851249512505125151252512535125451255512565125751258512595126051261512625126351264512655126651267512685126951270512715127251273512745127551276512775127851279512805128151282512835128451285512865128751288512895129051291512925129351294512955129651297512985129951300513015130251303513045130551306513075130851309513105131151312513135131451315513165131751318513195132051321513225132351324513255132651327513285132951330513315133251333513345133551336513375133851339513405134151342513435134451345513465134751348513495135051351513525135351354513555135651357513585135951360513615136251363513645136551366513675136851369513705137151372513735137451375513765137751378513795138051381513825138351384513855138651387513885138951390513915139251393513945139551396513975139851399514005140151402514035140451405514065140751408514095141051411514125141351414514155141651417514185141951420514215142251423514245142551426514275142851429514305143151432514335143451435514365143751438514395144051441514425144351444514455144651447514485144951450514515145251453514545145551456514575145851459514605146151462514635146451465514665146751468514695147051471514725147351474514755147651477514785147951480514815148251483514845148551486514875148851489514905149151492514935149451495514965149751498514995150051501515025150351504515055150651507515085150951510515115151251513515145151551516515175151851519515205152151522515235152451525515265152751528515295153051531515325153351534515355153651537515385153951540515415154251543515445154551546515475154851549515505155151552515535155451555515565155751558515595156051561515625156351564515655156651567515685156951570515715157251573515745157551576515775157851579515805158151582515835158451585515865158751588515895159051591515925159351594515955159651597515985159951600516015160251603516045160551606516075160851609516105161151612516135161451615516165161751618516195162051621516225162351624516255162651627516285162951630516315163251633516345163551636516375163851639516405164151642516435164451645516465164751648516495165051651516525165351654516555165651657516585165951660516615166251663516645166551666516675166851669516705167151672516735167451675516765167751678516795168051681516825168351684516855168651687516885168951690516915169251693516945169551696516975169851699517005170151702517035170451705517065170751708517095171051711517125171351714517155171651717517185171951720517215172251723517245172551726517275172851729517305173151732517335173451735517365173751738517395174051741517425174351744517455174651747517485174951750517515175251753517545175551756517575175851759517605176151762517635176451765517665176751768517695177051771517725177351774517755177651777517785177951780517815178251783517845178551786517875178851789517905179151792517935179451795517965179751798517995180051801518025180351804518055180651807518085180951810518115181251813518145181551816518175181851819518205182151822518235182451825518265182751828518295183051831518325183351834518355183651837518385183951840518415184251843518445184551846518475184851849518505185151852518535185451855518565185751858518595186051861518625186351864518655186651867518685186951870518715187251873518745187551876518775187851879518805188151882518835188451885518865188751888518895189051891518925189351894518955189651897518985189951900519015190251903519045190551906519075190851909519105191151912519135191451915519165191751918519195192051921519225192351924519255192651927519285192951930519315193251933519345193551936519375193851939519405194151942519435194451945519465194751948519495195051951519525195351954519555195651957519585195951960519615196251963519645196551966519675196851969519705197151972519735197451975519765197751978519795198051981519825198351984519855198651987519885198951990519915199251993519945199551996519975199851999520005200152002520035200452005520065200752008520095201052011520125201352014520155201652017520185201952020520215202252023520245202552026520275202852029520305203152032520335203452035520365203752038520395204052041520425204352044520455204652047520485204952050520515205252053520545205552056520575205852059520605206152062520635206452065520665206752068520695207052071520725207352074520755207652077520785207952080520815208252083520845208552086520875208852089520905209152092520935209452095520965209752098520995210052101521025210352104521055210652107521085210952110521115211252113521145211552116521175211852119521205212152122521235212452125521265212752128521295213052131521325213352134521355213652137521385213952140521415214252143521445214552146521475214852149521505215152152521535215452155521565215752158521595216052161521625216352164521655216652167521685216952170521715217252173521745217552176521775217852179521805218152182521835218452185521865218752188521895219052191521925219352194521955219652197521985219952200522015220252203522045220552206522075220852209522105221152212522135221452215522165221752218522195222052221522225222352224522255222652227522285222952230522315223252233522345223552236522375223852239522405224152242522435224452245522465224752248522495225052251522525225352254522555225652257522585225952260522615226252263522645226552266522675226852269522705227152272522735227452275522765227752278522795228052281522825228352284522855228652287522885228952290522915229252293522945229552296522975229852299523005230152302523035230452305523065230752308523095231052311523125231352314523155231652317523185231952320523215232252323523245232552326523275232852329523305233152332523335233452335523365233752338523395234052341523425234352344523455234652347523485234952350523515235252353523545235552356523575235852359523605236152362523635236452365523665236752368523695237052371523725237352374523755237652377523785237952380523815238252383523845238552386523875238852389523905239152392523935239452395523965239752398523995240052401524025240352404524055240652407524085240952410524115241252413524145241552416524175241852419524205242152422524235242452425524265242752428524295243052431524325243352434524355243652437524385243952440524415244252443524445244552446524475244852449524505245152452524535245452455524565245752458524595246052461524625246352464524655246652467524685246952470524715247252473524745247552476524775247852479524805248152482524835248452485524865248752488524895249052491524925249352494524955249652497524985249952500525015250252503525045250552506525075250852509525105251152512525135251452515525165251752518525195252052521525225252352524525255252652527525285252952530525315253252533525345253552536525375253852539525405254152542525435254452545525465254752548525495255052551525525255352554525555255652557525585255952560525615256252563525645256552566525675256852569525705257152572525735257452575525765257752578525795258052581525825258352584525855258652587525885258952590525915259252593525945259552596525975259852599526005260152602526035260452605526065260752608526095261052611526125261352614526155261652617526185261952620526215262252623526245262552626526275262852629526305263152632526335263452635526365263752638526395264052641526425264352644526455264652647526485264952650526515265252653526545265552656526575265852659526605266152662526635266452665526665266752668526695267052671526725267352674526755267652677526785267952680526815268252683526845268552686526875268852689526905269152692526935269452695526965269752698526995270052701527025270352704527055270652707527085270952710527115271252713527145271552716527175271852719527205272152722527235272452725527265272752728527295273052731527325273352734527355273652737527385273952740527415274252743527445274552746527475274852749527505275152752527535275452755527565275752758527595276052761527625276352764527655276652767527685276952770527715277252773527745277552776527775277852779527805278152782527835278452785527865278752788527895279052791527925279352794527955279652797527985279952800528015280252803528045280552806528075280852809528105281152812528135281452815528165281752818528195282052821528225282352824528255282652827528285282952830528315283252833528345283552836528375283852839528405284152842528435284452845528465284752848528495285052851528525285352854528555285652857528585285952860528615286252863528645286552866528675286852869528705287152872528735287452875528765287752878528795288052881528825288352884528855288652887528885288952890528915289252893528945289552896528975289852899529005290152902529035290452905529065290752908529095291052911529125291352914529155291652917529185291952920529215292252923529245292552926529275292852929529305293152932529335293452935529365293752938529395294052941529425294352944529455294652947529485294952950529515295252953529545295552956529575295852959529605296152962529635296452965529665296752968529695297052971529725297352974529755297652977529785297952980529815298252983529845298552986529875298852989529905299152992529935299452995529965299752998529995300053001530025300353004530055300653007530085300953010530115301253013530145301553016530175301853019530205302153022530235302453025530265302753028530295303053031530325303353034530355303653037530385303953040530415304253043530445304553046530475304853049530505305153052530535305453055530565305753058530595306053061530625306353064530655306653067530685306953070530715307253073530745307553076530775307853079530805308153082530835308453085530865308753088530895309053091530925309353094530955309653097530985309953100531015310253103531045310553106531075310853109531105311153112531135311453115531165311753118531195312053121531225312353124531255312653127531285312953130531315313253133531345313553136531375313853139531405314153142531435314453145531465314753148531495315053151531525315353154531555315653157531585315953160531615316253163531645316553166531675316853169531705317153172531735317453175531765317753178531795318053181531825318353184531855318653187531885318953190531915319253193531945319553196531975319853199532005320153202532035320453205532065320753208532095321053211532125321353214532155321653217532185321953220532215322253223532245322553226532275322853229532305323153232532335323453235532365323753238532395324053241532425324353244532455324653247532485324953250532515325253253532545325553256532575325853259532605326153262532635326453265532665326753268532695327053271532725327353274532755327653277532785327953280532815328253283532845328553286532875328853289532905329153292532935329453295532965329753298532995330053301533025330353304533055330653307533085330953310533115331253313533145331553316533175331853319533205332153322533235332453325533265332753328533295333053331533325333353334533355333653337533385333953340533415334253343533445334553346533475334853349533505335153352533535335453355533565335753358533595336053361533625336353364533655336653367533685336953370533715337253373533745337553376533775337853379533805338153382533835338453385533865338753388533895339053391533925339353394533955339653397533985339953400534015340253403534045340553406534075340853409534105341153412534135341453415534165341753418534195342053421534225342353424534255342653427534285342953430534315343253433534345343553436534375343853439534405344153442534435344453445534465344753448534495345053451534525345353454534555345653457534585345953460534615346253463534645346553466534675346853469534705347153472534735347453475534765347753478534795348053481534825348353484534855348653487534885348953490534915349253493534945349553496534975349853499535005350153502535035350453505535065350753508535095351053511535125351353514535155351653517535185351953520535215352253523535245352553526535275352853529535305353153532535335353453535535365353753538535395354053541535425354353544535455354653547535485354953550535515355253553535545355553556535575355853559535605356153562535635356453565535665356753568535695357053571535725357353574535755357653577535785357953580535815358253583535845358553586535875358853589535905359153592535935359453595535965359753598535995360053601536025360353604536055360653607536085360953610536115361253613536145361553616536175361853619536205362153622536235362453625536265362753628536295363053631536325363353634536355363653637536385363953640536415364253643536445364553646536475364853649536505365153652536535365453655536565365753658536595366053661536625366353664536655366653667536685366953670536715367253673536745367553676536775367853679536805368153682536835368453685536865368753688536895369053691536925369353694536955369653697536985369953700537015370253703537045370553706537075370853709537105371153712537135371453715537165371753718537195372053721537225372353724537255372653727537285372953730537315373253733537345373553736537375373853739537405374153742537435374453745537465374753748537495375053751537525375353754537555375653757537585375953760537615376253763537645376553766537675376853769537705377153772537735377453775537765377753778537795378053781537825378353784537855378653787537885378953790537915379253793537945379553796537975379853799538005380153802538035380453805538065380753808538095381053811538125381353814538155381653817538185381953820538215382253823538245382553826538275382853829538305383153832538335383453835538365383753838538395384053841538425384353844538455384653847538485384953850538515385253853538545385553856538575385853859538605386153862538635386453865538665386753868538695387053871538725387353874538755387653877538785387953880538815388253883538845388553886538875388853889538905389153892538935389453895538965389753898538995390053901539025390353904539055390653907539085390953910539115391253913539145391553916539175391853919539205392153922539235392453925539265392753928539295393053931539325393353934539355393653937539385393953940539415394253943539445394553946539475394853949539505395153952539535395453955539565395753958539595396053961539625396353964539655396653967539685396953970539715397253973539745397553976539775397853979539805398153982539835398453985539865398753988539895399053991539925399353994539955399653997539985399954000540015400254003540045400554006540075400854009540105401154012540135401454015540165401754018540195402054021540225402354024540255402654027540285402954030540315403254033540345403554036540375403854039540405404154042540435404454045540465404754048540495405054051540525405354054540555405654057540585405954060540615406254063540645406554066540675406854069540705407154072540735407454075540765407754078540795408054081540825408354084540855408654087540885408954090540915409254093540945409554096540975409854099541005410154102541035410454105541065410754108541095411054111541125411354114541155411654117541185411954120541215412254123541245412554126541275412854129541305413154132541335413454135541365413754138541395414054141541425414354144541455414654147541485414954150541515415254153541545415554156541575415854159541605416154162541635416454165541665416754168541695417054171541725417354174541755417654177541785417954180541815418254183541845418554186541875418854189541905419154192541935419454195541965419754198541995420054201542025420354204542055420654207542085420954210542115421254213542145421554216542175421854219542205422154222542235422454225542265422754228542295423054231542325423354234542355423654237542385423954240542415424254243542445424554246542475424854249542505425154252542535425454255542565425754258542595426054261542625426354264542655426654267542685426954270542715427254273542745427554276542775427854279542805428154282542835428454285542865428754288542895429054291542925429354294542955429654297542985429954300543015430254303543045430554306543075430854309543105431154312543135431454315543165431754318543195432054321543225432354324543255432654327543285432954330543315433254333543345433554336543375433854339543405434154342543435434454345543465434754348543495435054351543525435354354543555435654357543585435954360543615436254363543645436554366543675436854369543705437154372543735437454375543765437754378543795438054381543825438354384543855438654387543885438954390543915439254393543945439554396543975439854399544005440154402544035440454405544065440754408544095441054411544125441354414544155441654417544185441954420544215442254423544245442554426544275442854429544305443154432544335443454435544365443754438544395444054441544425444354444544455444654447544485444954450544515445254453544545445554456544575445854459544605446154462544635446454465544665446754468544695447054471544725447354474544755447654477544785447954480544815448254483544845448554486544875448854489544905449154492544935449454495544965449754498544995450054501545025450354504545055450654507545085450954510545115451254513545145451554516545175451854519545205452154522545235452454525545265452754528545295453054531545325453354534545355453654537545385453954540545415454254543545445454554546545475454854549545505455154552545535455454555545565455754558545595456054561545625456354564545655456654567545685456954570545715457254573545745457554576545775457854579545805458154582545835458454585545865458754588545895459054591545925459354594545955459654597545985459954600546015460254603546045460554606546075460854609546105461154612546135461454615546165461754618546195462054621546225462354624546255462654627546285462954630546315463254633546345463554636546375463854639546405464154642546435464454645546465464754648546495465054651546525465354654546555465654657546585465954660546615466254663546645466554666546675466854669546705467154672546735467454675546765467754678546795468054681546825468354684546855468654687546885468954690546915469254693546945469554696546975469854699547005470154702547035470454705547065470754708547095471054711547125471354714547155471654717547185471954720547215472254723547245472554726547275472854729547305473154732547335473454735547365473754738547395474054741547425474354744547455474654747547485474954750547515475254753547545475554756547575475854759547605476154762547635476454765547665476754768547695477054771547725477354774547755477654777547785477954780547815478254783547845478554786547875478854789547905479154792547935479454795547965479754798547995480054801548025480354804548055480654807548085480954810548115481254813548145481554816548175481854819548205482154822548235482454825548265482754828548295483054831548325483354834548355483654837548385483954840548415484254843548445484554846548475484854849548505485154852548535485454855548565485754858548595486054861548625486354864548655486654867548685486954870548715487254873548745487554876548775487854879548805488154882548835488454885548865488754888548895489054891548925489354894548955489654897548985489954900549015490254903549045490554906549075490854909549105491154912549135491454915549165491754918549195492054921549225492354924549255492654927549285492954930549315493254933549345493554936549375493854939549405494154942549435494454945549465494754948549495495054951549525495354954549555495654957549585495954960549615496254963549645496554966549675496854969549705497154972549735497454975549765497754978549795498054981549825498354984549855498654987549885498954990549915499254993549945499554996549975499854999550005500155002550035500455005550065500755008550095501055011550125501355014550155501655017550185501955020550215502255023550245502555026550275502855029550305503155032550335503455035550365503755038550395504055041550425504355044550455504655047550485504955050550515505255053550545505555056550575505855059550605506155062550635506455065550665506755068550695507055071550725507355074550755507655077550785507955080550815508255083550845508555086550875508855089550905509155092550935509455095550965509755098550995510055101551025510355104551055510655107551085510955110551115511255113551145511555116551175511855119551205512155122551235512455125551265512755128551295513055131551325513355134551355513655137551385513955140551415514255143551445514555146551475514855149551505515155152551535515455155551565515755158551595516055161551625516355164551655516655167551685516955170551715517255173551745517555176551775517855179551805518155182551835518455185551865518755188551895519055191551925519355194551955519655197551985519955200552015520255203552045520555206552075520855209552105521155212552135521455215552165521755218552195522055221552225522355224552255522655227552285522955230552315523255233552345523555236552375523855239552405524155242552435524455245552465524755248552495525055251552525525355254552555525655257552585525955260552615526255263552645526555266552675526855269552705527155272552735527455275552765527755278552795528055281552825528355284552855528655287552885528955290552915529255293552945529555296552975529855299553005530155302553035530455305553065530755308553095531055311553125531355314553155531655317553185531955320553215532255323553245532555326553275532855329553305533155332553335533455335553365533755338553395534055341553425534355344553455534655347553485534955350553515535255353553545535555356553575535855359553605536155362553635536455365553665536755368553695537055371553725537355374553755537655377553785537955380553815538255383553845538555386553875538855389553905539155392553935539455395553965539755398553995540055401554025540355404554055540655407554085540955410554115541255413554145541555416554175541855419554205542155422554235542455425554265542755428554295543055431554325543355434554355543655437554385543955440554415544255443554445544555446554475544855449554505545155452554535545455455554565545755458554595546055461554625546355464554655546655467554685546955470554715547255473554745547555476554775547855479554805548155482554835548455485554865548755488554895549055491554925549355494554955549655497554985549955500555015550255503555045550555506555075550855509555105551155512555135551455515555165551755518555195552055521555225552355524555255552655527555285552955530555315553255533555345553555536555375553855539555405554155542555435554455545555465554755548555495555055551555525555355554555555555655557555585555955560555615556255563555645556555566555675556855569555705557155572555735557455575555765557755578555795558055581555825558355584555855558655587555885558955590555915559255593555945559555596555975559855599556005560155602556035560455605556065560755608556095561055611556125561355614556155561655617556185561955620556215562255623556245562555626556275562855629556305563155632556335563455635556365563755638556395564055641556425564355644556455564655647556485564955650556515565255653556545565555656556575565855659556605566155662556635566455665556665566755668556695567055671556725567355674556755567655677556785567955680556815568255683556845568555686556875568855689556905569155692556935569455695556965569755698556995570055701557025570355704557055570655707557085570955710557115571255713557145571555716557175571855719557205572155722557235572455725557265572755728557295573055731557325573355734557355573655737557385573955740557415574255743557445574555746557475574855749557505575155752557535575455755557565575755758557595576055761557625576355764557655576655767557685576955770557715577255773557745577555776557775577855779557805578155782557835578455785557865578755788557895579055791557925579355794557955579655797557985579955800558015580255803558045580555806558075580855809558105581155812558135581455815558165581755818558195582055821558225582355824558255582655827558285582955830558315583255833558345583555836558375583855839558405584155842558435584455845558465584755848558495585055851558525585355854558555585655857558585585955860558615586255863558645586555866558675586855869558705587155872558735587455875558765587755878558795588055881558825588355884558855588655887558885588955890558915589255893558945589555896558975589855899559005590155902559035590455905559065590755908559095591055911559125591355914559155591655917559185591955920559215592255923559245592555926559275592855929559305593155932559335593455935559365593755938559395594055941559425594355944559455594655947559485594955950559515595255953559545595555956559575595855959559605596155962559635596455965559665596755968559695597055971559725597355974559755597655977559785597955980559815598255983559845598555986559875598855989559905599155992559935599455995559965599755998559995600056001560025600356004560055600656007560085600956010560115601256013560145601556016560175601856019560205602156022560235602456025560265602756028560295603056031560325603356034560355603656037560385603956040560415604256043560445604556046560475604856049560505605156052560535605456055560565605756058560595606056061560625606356064560655606656067560685606956070560715607256073560745607556076560775607856079560805608156082560835608456085560865608756088560895609056091560925609356094560955609656097560985609956100561015610256103561045610556106561075610856109561105611156112561135611456115561165611756118561195612056121561225612356124561255612656127561285612956130561315613256133561345613556136561375613856139561405614156142561435614456145561465614756148561495615056151561525615356154561555615656157561585615956160561615616256163561645616556166561675616856169561705617156172561735617456175561765617756178561795618056181561825618356184561855618656187561885618956190561915619256193561945619556196561975619856199562005620156202562035620456205562065620756208562095621056211562125621356214562155621656217562185621956220562215622256223562245622556226562275622856229562305623156232562335623456235562365623756238562395624056241562425624356244562455624656247562485624956250562515625256253562545625556256562575625856259562605626156262562635626456265562665626756268562695627056271562725627356274562755627656277562785627956280562815628256283562845628556286562875628856289562905629156292562935629456295562965629756298562995630056301563025630356304563055630656307563085630956310563115631256313563145631556316563175631856319563205632156322563235632456325563265632756328563295633056331563325633356334563355633656337563385633956340563415634256343563445634556346563475634856349563505635156352563535635456355563565635756358563595636056361563625636356364563655636656367563685636956370563715637256373563745637556376563775637856379563805638156382563835638456385563865638756388563895639056391563925639356394563955639656397563985639956400564015640256403564045640556406564075640856409564105641156412564135641456415564165641756418564195642056421564225642356424564255642656427564285642956430564315643256433564345643556436564375643856439564405644156442564435644456445564465644756448564495645056451564525645356454564555645656457564585645956460564615646256463564645646556466564675646856469564705647156472564735647456475564765647756478564795648056481564825648356484564855648656487564885648956490564915649256493564945649556496564975649856499565005650156502565035650456505565065650756508565095651056511565125651356514565155651656517565185651956520565215652256523565245652556526565275652856529565305653156532565335653456535565365653756538565395654056541565425654356544565455654656547565485654956550565515655256553565545655556556565575655856559565605656156562565635656456565565665656756568565695657056571565725657356574565755657656577565785657956580565815658256583565845658556586565875658856589565905659156592565935659456595565965659756598565995660056601566025660356604566055660656607566085660956610566115661256613566145661556616566175661856619566205662156622566235662456625566265662756628566295663056631566325663356634566355663656637566385663956640566415664256643566445664556646566475664856649566505665156652566535665456655566565665756658566595666056661566625666356664566655666656667566685666956670566715667256673566745667556676566775667856679566805668156682566835668456685566865668756688566895669056691566925669356694566955669656697566985669956700567015670256703567045670556706567075670856709567105671156712567135671456715567165671756718567195672056721567225672356724567255672656727567285672956730567315673256733567345673556736567375673856739567405674156742567435674456745567465674756748567495675056751567525675356754567555675656757567585675956760567615676256763567645676556766567675676856769567705677156772567735677456775567765677756778567795678056781567825678356784567855678656787567885678956790567915679256793567945679556796567975679856799568005680156802568035680456805568065680756808568095681056811568125681356814568155681656817568185681956820568215682256823568245682556826568275682856829568305683156832568335683456835568365683756838568395684056841568425684356844568455684656847568485684956850568515685256853568545685556856568575685856859568605686156862568635686456865568665686756868568695687056871568725687356874568755687656877568785687956880568815688256883568845688556886568875688856889568905689156892568935689456895568965689756898568995690056901569025690356904569055690656907569085690956910569115691256913569145691556916569175691856919569205692156922569235692456925569265692756928569295693056931569325693356934569355693656937569385693956940569415694256943569445694556946569475694856949569505695156952569535695456955569565695756958569595696056961569625696356964569655696656967569685696956970569715697256973569745697556976569775697856979569805698156982569835698456985569865698756988569895699056991569925699356994569955699656997569985699957000570015700257003570045700557006570075700857009570105701157012570135701457015570165701757018570195702057021570225702357024570255702657027570285702957030570315703257033570345703557036570375703857039570405704157042570435704457045570465704757048570495705057051570525705357054570555705657057570585705957060570615706257063570645706557066570675706857069570705707157072570735707457075570765707757078570795708057081570825708357084570855708657087570885708957090570915709257093570945709557096570975709857099571005710157102571035710457105571065710757108571095711057111571125711357114571155711657117571185711957120571215712257123571245712557126571275712857129571305713157132571335713457135571365713757138571395714057141571425714357144571455714657147571485714957150571515715257153571545715557156571575715857159571605716157162571635716457165571665716757168571695717057171571725717357174571755717657177571785717957180571815718257183571845718557186571875718857189571905719157192571935719457195571965719757198571995720057201572025720357204572055720657207572085720957210572115721257213572145721557216572175721857219572205722157222572235722457225572265722757228572295723057231572325723357234572355723657237572385723957240572415724257243572445724557246572475724857249572505725157252572535725457255572565725757258572595726057261572625726357264572655726657267572685726957270572715727257273572745727557276572775727857279572805728157282572835728457285572865728757288572895729057291572925729357294572955729657297572985729957300573015730257303573045730557306573075730857309573105731157312573135731457315573165731757318573195732057321573225732357324573255732657327573285732957330573315733257333573345733557336573375733857339573405734157342573435734457345573465734757348573495735057351573525735357354573555735657357573585735957360573615736257363573645736557366573675736857369573705737157372573735737457375573765737757378573795738057381573825738357384573855738657387573885738957390573915739257393573945739557396573975739857399574005740157402574035740457405574065740757408574095741057411574125741357414574155741657417574185741957420574215742257423574245742557426574275742857429574305743157432574335743457435574365743757438574395744057441574425744357444574455744657447574485744957450574515745257453574545745557456574575745857459574605746157462574635746457465574665746757468574695747057471574725747357474574755747657477574785747957480574815748257483574845748557486574875748857489574905749157492574935749457495574965749757498574995750057501575025750357504575055750657507575085750957510575115751257513575145751557516575175751857519575205752157522575235752457525575265752757528575295753057531575325753357534575355753657537575385753957540575415754257543575445754557546575475754857549575505755157552575535755457555575565755757558575595756057561575625756357564575655756657567575685756957570575715757257573575745757557576575775757857579575805758157582575835758457585575865758757588575895759057591575925759357594575955759657597575985759957600576015760257603576045760557606576075760857609576105761157612576135761457615576165761757618576195762057621576225762357624576255762657627576285762957630576315763257633576345763557636576375763857639576405764157642576435764457645576465764757648576495765057651576525765357654576555765657657576585765957660576615766257663576645766557666576675766857669576705767157672576735767457675576765767757678576795768057681576825768357684576855768657687576885768957690576915769257693576945769557696576975769857699577005770157702577035770457705577065770757708577095771057711577125771357714577155771657717577185771957720577215772257723577245772557726577275772857729577305773157732577335773457735577365773757738577395774057741577425774357744577455774657747577485774957750577515775257753577545775557756577575775857759577605776157762577635776457765577665776757768577695777057771577725777357774577755777657777577785777957780577815778257783577845778557786577875778857789577905779157792577935779457795577965779757798577995780057801578025780357804578055780657807578085780957810578115781257813578145781557816578175781857819578205782157822578235782457825578265782757828578295783057831578325783357834578355783657837578385783957840578415784257843578445784557846578475784857849578505785157852578535785457855578565785757858578595786057861578625786357864578655786657867578685786957870578715787257873578745787557876578775787857879578805788157882578835788457885578865788757888578895789057891578925789357894578955789657897578985789957900579015790257903579045790557906579075790857909579105791157912579135791457915579165791757918579195792057921579225792357924579255792657927579285792957930579315793257933579345793557936579375793857939579405794157942579435794457945579465794757948579495795057951579525795357954579555795657957579585795957960579615796257963579645796557966579675796857969579705797157972579735797457975579765797757978579795798057981579825798357984579855798657987579885798957990579915799257993579945799557996579975799857999580005800158002580035800458005580065800758008580095801058011580125801358014580155801658017580185801958020580215802258023580245802558026580275802858029580305803158032580335803458035580365803758038580395804058041580425804358044580455804658047580485804958050580515805258053580545805558056580575805858059580605806158062580635806458065580665806758068580695807058071580725807358074580755807658077580785807958080580815808258083580845808558086580875808858089580905809158092580935809458095580965809758098580995810058101581025810358104581055810658107581085810958110581115811258113581145811558116581175811858119581205812158122581235812458125581265812758128581295813058131581325813358134581355813658137581385813958140581415814258143581445814558146581475814858149581505815158152581535815458155581565815758158581595816058161581625816358164581655816658167581685816958170581715817258173581745817558176581775817858179581805818158182581835818458185581865818758188581895819058191581925819358194581955819658197581985819958200582015820258203582045820558206582075820858209582105821158212582135821458215582165821758218582195822058221582225822358224582255822658227582285822958230582315823258233582345823558236582375823858239582405824158242582435824458245582465824758248582495825058251582525825358254582555825658257582585825958260582615826258263582645826558266582675826858269582705827158272582735827458275582765827758278582795828058281582825828358284582855828658287582885828958290582915829258293582945829558296582975829858299583005830158302583035830458305583065830758308583095831058311583125831358314583155831658317583185831958320583215832258323583245832558326583275832858329583305833158332583335833458335583365833758338583395834058341583425834358344583455834658347583485834958350583515835258353583545835558356583575835858359583605836158362583635836458365583665836758368583695837058371583725837358374583755837658377583785837958380583815838258383583845838558386583875838858389583905839158392583935839458395583965839758398583995840058401584025840358404584055840658407584085840958410584115841258413584145841558416584175841858419584205842158422584235842458425584265842758428584295843058431584325843358434584355843658437584385843958440584415844258443584445844558446584475844858449584505845158452584535845458455584565845758458584595846058461584625846358464584655846658467584685846958470584715847258473584745847558476584775847858479584805848158482584835848458485584865848758488584895849058491584925849358494584955849658497584985849958500585015850258503585045850558506585075850858509585105851158512585135851458515585165851758518585195852058521585225852358524585255852658527585285852958530585315853258533585345853558536585375853858539585405854158542585435854458545585465854758548585495855058551585525855358554585555855658557585585855958560585615856258563585645856558566585675856858569585705857158572585735857458575585765857758578585795858058581585825858358584585855858658587585885858958590585915859258593585945859558596585975859858599586005860158602586035860458605586065860758608586095861058611586125861358614586155861658617586185861958620586215862258623586245862558626586275862858629586305863158632586335863458635586365863758638586395864058641586425864358644586455864658647586485864958650586515865258653586545865558656586575865858659586605866158662586635866458665586665866758668586695867058671586725867358674586755867658677586785867958680586815868258683586845868558686586875868858689586905869158692586935869458695586965869758698586995870058701587025870358704587055870658707587085870958710587115871258713587145871558716587175871858719587205872158722587235872458725587265872758728587295873058731587325873358734587355873658737587385873958740587415874258743587445874558746587475874858749587505875158752587535875458755587565875758758587595876058761587625876358764587655876658767587685876958770587715877258773587745877558776587775877858779587805878158782587835878458785587865878758788587895879058791587925879358794587955879658797587985879958800588015880258803588045880558806588075880858809588105881158812588135881458815588165881758818588195882058821588225882358824588255882658827588285882958830588315883258833588345883558836588375883858839588405884158842588435884458845588465884758848588495885058851588525885358854588555885658857588585885958860588615886258863588645886558866588675886858869588705887158872588735887458875588765887758878588795888058881588825888358884588855888658887588885888958890588915889258893588945889558896588975889858899589005890158902589035890458905589065890758908589095891058911589125891358914589155891658917589185891958920589215892258923589245892558926589275892858929589305893158932589335893458935589365893758938589395894058941589425894358944589455894658947589485894958950589515895258953589545895558956589575895858959589605896158962589635896458965589665896758968589695897058971589725897358974589755897658977589785897958980589815898258983589845898558986589875898858989589905899158992589935899458995589965899758998589995900059001590025900359004590055900659007590085900959010590115901259013590145901559016590175901859019590205902159022590235902459025590265902759028590295903059031590325903359034590355903659037590385903959040590415904259043590445904559046590475904859049590505905159052590535905459055590565905759058590595906059061590625906359064590655906659067590685906959070590715907259073590745907559076590775907859079590805908159082590835908459085590865908759088590895909059091590925909359094590955909659097590985909959100591015910259103591045910559106591075910859109591105911159112591135911459115591165911759118591195912059121591225912359124591255912659127591285912959130591315913259133591345913559136591375913859139591405914159142591435914459145591465914759148591495915059151591525915359154591555915659157591585915959160591615916259163591645916559166591675916859169591705917159172591735917459175591765917759178591795918059181591825918359184591855918659187591885918959190591915919259193591945919559196591975919859199592005920159202592035920459205592065920759208592095921059211592125921359214592155921659217592185921959220592215922259223592245922559226592275922859229592305923159232592335923459235592365923759238592395924059241592425924359244592455924659247592485924959250592515925259253592545925559256592575925859259592605926159262592635926459265592665926759268592695927059271592725927359274592755927659277592785927959280592815928259283592845928559286592875928859289592905929159292592935929459295592965929759298592995930059301593025930359304593055930659307593085930959310593115931259313593145931559316593175931859319593205932159322593235932459325593265932759328593295933059331593325933359334593355933659337593385933959340593415934259343593445934559346593475934859349593505935159352593535935459355593565935759358593595936059361593625936359364593655936659367593685936959370593715937259373593745937559376593775937859379593805938159382593835938459385593865938759388593895939059391593925939359394593955939659397593985939959400594015940259403594045940559406594075940859409594105941159412594135941459415594165941759418594195942059421594225942359424594255942659427594285942959430594315943259433594345943559436594375943859439594405944159442594435944459445594465944759448594495945059451594525945359454594555945659457594585945959460594615946259463594645946559466594675946859469594705947159472594735947459475594765947759478594795948059481594825948359484594855948659487594885948959490594915949259493594945949559496594975949859499595005950159502595035950459505595065950759508595095951059511595125951359514595155951659517595185951959520595215952259523595245952559526595275952859529595305953159532595335953459535595365953759538595395954059541595425954359544595455954659547595485954959550595515955259553595545955559556595575955859559595605956159562595635956459565595665956759568595695957059571595725957359574595755957659577595785957959580595815958259583595845958559586595875958859589595905959159592595935959459595595965959759598595995960059601596025960359604596055960659607596085960959610596115961259613596145961559616596175961859619596205962159622596235962459625596265962759628596295963059631596325963359634596355963659637596385963959640596415964259643596445964559646596475964859649596505965159652596535965459655596565965759658596595966059661596625966359664596655966659667596685966959670596715967259673596745967559676596775967859679596805968159682596835968459685596865968759688596895969059691596925969359694596955969659697596985969959700597015970259703597045970559706597075970859709597105971159712597135971459715597165971759718597195972059721597225972359724597255972659727597285972959730597315973259733597345973559736597375973859739597405974159742597435974459745597465974759748597495975059751597525975359754597555975659757597585975959760597615976259763597645976559766597675976859769597705977159772597735977459775597765977759778597795978059781597825978359784597855978659787597885978959790597915979259793597945979559796597975979859799598005980159802598035980459805598065980759808598095981059811598125981359814598155981659817598185981959820598215982259823598245982559826598275982859829598305983159832598335983459835598365983759838598395984059841598425984359844598455984659847598485984959850598515985259853598545985559856598575985859859598605986159862598635986459865598665986759868598695987059871598725987359874598755987659877598785987959880598815988259883598845988559886598875988859889598905989159892598935989459895598965989759898598995990059901599025990359904599055990659907599085990959910599115991259913599145991559916599175991859919599205992159922599235992459925599265992759928599295993059931599325993359934599355993659937599385993959940599415994259943599445994559946599475994859949599505995159952599535995459955599565995759958599595996059961599625996359964599655996659967599685996959970599715997259973599745997559976599775997859979599805998159982599835998459985599865998759988599895999059991599925999359994599955999659997599985999960000600016000260003600046000560006600076000860009600106001160012600136001460015600166001760018600196002060021600226002360024600256002660027600286002960030600316003260033600346003560036600376003860039600406004160042600436004460045600466004760048600496005060051600526005360054600556005660057600586005960060600616006260063600646006560066600676006860069600706007160072600736007460075600766007760078600796008060081600826008360084600856008660087600886008960090600916009260093600946009560096600976009860099601006010160102601036010460105601066010760108601096011060111601126011360114601156011660117601186011960120601216012260123601246012560126601276012860129601306013160132601336013460135601366013760138601396014060141601426014360144601456014660147601486014960150601516015260153601546015560156601576015860159601606016160162601636016460165601666016760168601696017060171601726017360174601756017660177601786017960180601816018260183601846018560186601876018860189601906019160192601936019460195601966019760198601996020060201602026020360204602056020660207602086020960210602116021260213602146021560216602176021860219602206022160222602236022460225602266022760228602296023060231602326023360234602356023660237602386023960240602416024260243602446024560246602476024860249602506025160252602536025460255602566025760258602596026060261602626026360264602656026660267602686026960270602716027260273602746027560276602776027860279602806028160282602836028460285602866028760288602896029060291602926029360294602956029660297602986029960300603016030260303603046030560306603076030860309603106031160312603136031460315603166031760318603196032060321603226032360324603256032660327603286032960330603316033260333603346033560336603376033860339603406034160342603436034460345603466034760348603496035060351603526035360354603556035660357603586035960360603616036260363603646036560366603676036860369603706037160372603736037460375603766037760378603796038060381603826038360384603856038660387603886038960390603916039260393603946039560396603976039860399604006040160402604036040460405604066040760408604096041060411604126041360414604156041660417604186041960420604216042260423604246042560426604276042860429604306043160432604336043460435604366043760438604396044060441604426044360444604456044660447604486044960450604516045260453604546045560456604576045860459604606046160462604636046460465604666046760468604696047060471604726047360474604756047660477604786047960480604816048260483604846048560486604876048860489604906049160492604936049460495604966049760498604996050060501605026050360504605056050660507605086050960510605116051260513605146051560516605176051860519605206052160522605236052460525605266052760528605296053060531605326053360534605356053660537605386053960540605416054260543605446054560546605476054860549605506055160552605536055460555605566055760558605596056060561605626056360564605656056660567605686056960570605716057260573605746057560576605776057860579605806058160582605836058460585605866058760588605896059060591605926059360594605956059660597605986059960600606016060260603606046060560606606076060860609606106061160612606136061460615606166061760618606196062060621606226062360624606256062660627606286062960630606316063260633606346063560636606376063860639606406064160642606436064460645606466064760648606496065060651606526065360654606556065660657606586065960660606616066260663606646066560666606676066860669606706067160672606736067460675606766067760678606796068060681606826068360684606856068660687606886068960690606916069260693606946069560696606976069860699607006070160702607036070460705607066070760708607096071060711607126071360714607156071660717607186071960720607216072260723607246072560726607276072860729607306073160732607336073460735607366073760738607396074060741607426074360744607456074660747607486074960750607516075260753607546075560756607576075860759607606076160762607636076460765607666076760768607696077060771607726077360774607756077660777607786077960780607816078260783607846078560786607876078860789607906079160792607936079460795607966079760798607996080060801608026080360804608056080660807608086080960810608116081260813608146081560816608176081860819608206082160822608236082460825608266082760828608296083060831608326083360834608356083660837608386083960840608416084260843608446084560846608476084860849608506085160852608536085460855608566085760858608596086060861608626086360864608656086660867608686086960870608716087260873608746087560876608776087860879608806088160882608836088460885608866088760888608896089060891608926089360894608956089660897608986089960900609016090260903609046090560906609076090860909609106091160912609136091460915609166091760918609196092060921609226092360924609256092660927609286092960930609316093260933609346093560936609376093860939609406094160942609436094460945609466094760948609496095060951609526095360954609556095660957609586095960960609616096260963609646096560966609676096860969609706097160972609736097460975609766097760978609796098060981609826098360984609856098660987609886098960990609916099260993609946099560996609976099860999610006100161002610036100461005610066100761008610096101061011610126101361014610156101661017610186101961020610216102261023610246102561026610276102861029610306103161032610336103461035610366103761038610396104061041610426104361044610456104661047610486104961050610516105261053610546105561056610576105861059610606106161062610636106461065610666106761068610696107061071610726107361074610756107661077610786107961080610816108261083610846108561086610876108861089610906109161092610936109461095610966109761098610996110061101611026110361104611056110661107611086110961110611116111261113611146111561116611176111861119611206112161122611236112461125611266112761128611296113061131611326113361134611356113661137611386113961140611416114261143611446114561146611476114861149611506115161152611536115461155611566115761158611596116061161611626116361164611656116661167611686116961170611716117261173611746117561176611776117861179611806118161182611836118461185611866118761188611896119061191611926119361194611956119661197611986119961200612016120261203612046120561206612076120861209612106121161212612136121461215612166121761218612196122061221612226122361224612256122661227612286122961230612316123261233612346123561236612376123861239612406124161242612436124461245612466124761248612496125061251612526125361254612556125661257612586125961260612616126261263612646126561266612676126861269612706127161272612736127461275612766127761278612796128061281612826128361284612856128661287612886128961290612916129261293612946129561296612976129861299613006130161302613036130461305613066130761308613096131061311613126131361314613156131661317613186131961320613216132261323613246132561326613276132861329613306133161332613336133461335613366133761338613396134061341613426134361344613456134661347613486134961350613516135261353613546135561356613576135861359613606136161362613636136461365613666136761368613696137061371613726137361374613756137661377613786137961380613816138261383613846138561386613876138861389613906139161392613936139461395613966139761398613996140061401614026140361404614056140661407614086140961410614116141261413614146141561416614176141861419614206142161422614236142461425614266142761428614296143061431614326143361434614356143661437614386143961440614416144261443614446144561446614476144861449614506145161452614536145461455614566145761458614596146061461614626146361464614656146661467614686146961470614716147261473614746147561476614776147861479614806148161482614836148461485614866148761488614896149061491614926149361494614956149661497614986149961500615016150261503615046150561506615076150861509615106151161512615136151461515615166151761518615196152061521615226152361524615256152661527615286152961530615316153261533615346153561536615376153861539615406154161542615436154461545615466154761548615496155061551615526155361554615556155661557615586155961560615616156261563615646156561566615676156861569615706157161572615736157461575615766157761578615796158061581615826158361584615856158661587615886158961590615916159261593615946159561596615976159861599616006160161602616036160461605616066160761608616096161061611616126161361614616156161661617616186161961620616216162261623616246162561626616276162861629616306163161632616336163461635616366163761638616396164061641616426164361644616456164661647616486164961650616516165261653616546165561656616576165861659616606166161662616636166461665616666166761668616696167061671616726167361674616756167661677616786167961680616816168261683616846168561686616876168861689616906169161692616936169461695616966169761698616996170061701617026170361704617056170661707617086170961710617116171261713617146171561716617176171861719617206172161722617236172461725617266172761728617296173061731617326173361734617356173661737617386173961740617416174261743617446174561746617476174861749617506175161752617536175461755617566175761758617596176061761617626176361764617656176661767617686176961770617716177261773617746177561776617776177861779617806178161782617836178461785617866178761788617896179061791617926179361794617956179661797617986179961800618016180261803618046180561806618076180861809618106181161812618136181461815618166181761818618196182061821618226182361824618256182661827618286182961830618316183261833618346183561836618376183861839618406184161842618436184461845618466184761848618496185061851618526185361854618556185661857618586185961860618616186261863618646186561866618676186861869618706187161872618736187461875618766187761878618796188061881618826188361884618856188661887618886188961890618916189261893618946189561896618976189861899619006190161902619036190461905619066190761908619096191061911619126191361914619156191661917619186191961920619216192261923619246192561926619276192861929619306193161932619336193461935619366193761938619396194061941619426194361944619456194661947619486194961950619516195261953619546195561956619576195861959619606196161962619636196461965619666196761968619696197061971619726197361974619756197661977619786197961980619816198261983619846198561986619876198861989619906199161992619936199461995619966199761998619996200062001620026200362004620056200662007620086200962010620116201262013620146201562016620176201862019620206202162022620236202462025620266202762028620296203062031620326203362034620356203662037620386203962040620416204262043620446204562046620476204862049620506205162052620536205462055620566205762058620596206062061620626206362064620656206662067620686206962070620716207262073620746207562076620776207862079620806208162082620836208462085620866208762088620896209062091620926209362094620956209662097620986209962100621016210262103621046210562106621076210862109621106211162112621136211462115621166211762118621196212062121621226212362124621256212662127621286212962130621316213262133621346213562136621376213862139621406214162142621436214462145621466214762148621496215062151621526215362154621556215662157621586215962160621616216262163621646216562166621676216862169621706217162172621736217462175621766217762178621796218062181621826218362184621856218662187621886218962190621916219262193621946219562196621976219862199622006220162202622036220462205622066220762208622096221062211622126221362214622156221662217622186221962220622216222262223622246222562226622276222862229622306223162232622336223462235622366223762238622396224062241622426224362244622456224662247622486224962250622516225262253622546225562256622576225862259622606226162262622636226462265622666226762268622696227062271622726227362274622756227662277622786227962280622816228262283622846228562286622876228862289622906229162292622936229462295622966229762298622996230062301623026230362304623056230662307623086230962310623116231262313623146231562316623176231862319623206232162322623236232462325623266232762328623296233062331623326233362334623356233662337623386233962340623416234262343623446234562346623476234862349623506235162352623536235462355623566235762358623596236062361623626236362364623656236662367623686236962370623716237262373623746237562376623776237862379623806238162382623836238462385623866238762388623896239062391623926239362394623956239662397623986239962400624016240262403624046240562406624076240862409624106241162412624136241462415624166241762418624196242062421624226242362424624256242662427624286242962430624316243262433624346243562436624376243862439624406244162442624436244462445624466244762448624496245062451624526245362454624556245662457624586245962460624616246262463624646246562466624676246862469624706247162472624736247462475624766247762478624796248062481624826248362484624856248662487624886248962490624916249262493624946249562496624976249862499625006250162502625036250462505625066250762508625096251062511625126251362514625156251662517625186251962520625216252262523625246252562526625276252862529625306253162532625336253462535625366253762538625396254062541625426254362544625456254662547625486254962550625516255262553625546255562556625576255862559625606256162562625636256462565625666256762568625696257062571625726257362574625756257662577625786257962580625816258262583625846258562586625876258862589625906259162592625936259462595625966259762598625996260062601626026260362604626056260662607626086260962610626116261262613626146261562616626176261862619626206262162622626236262462625626266262762628626296263062631626326263362634626356263662637626386263962640626416264262643626446264562646626476264862649626506265162652626536265462655626566265762658626596266062661626626266362664626656266662667626686266962670626716267262673626746267562676626776267862679626806268162682626836268462685626866268762688626896269062691626926269362694626956269662697626986269962700627016270262703627046270562706627076270862709627106271162712627136271462715627166271762718627196272062721627226272362724627256272662727627286272962730627316273262733627346273562736627376273862739627406274162742627436274462745627466274762748627496275062751627526275362754627556275662757627586275962760627616276262763627646276562766627676276862769627706277162772627736277462775627766277762778627796278062781627826278362784627856278662787627886278962790627916279262793627946279562796627976279862799628006280162802628036280462805628066280762808628096281062811628126281362814628156281662817628186281962820628216282262823628246282562826628276282862829628306283162832628336283462835628366283762838628396284062841628426284362844628456284662847628486284962850628516285262853628546285562856628576285862859628606286162862628636286462865628666286762868628696287062871628726287362874628756287662877628786287962880628816288262883628846288562886628876288862889628906289162892628936289462895628966289762898628996290062901629026290362904629056290662907629086290962910629116291262913629146291562916629176291862919629206292162922629236292462925629266292762928629296293062931629326293362934629356293662937629386293962940629416294262943629446294562946629476294862949629506295162952629536295462955629566295762958629596296062961629626296362964629656296662967629686296962970629716297262973629746297562976629776297862979629806298162982629836298462985629866298762988629896299062991629926299362994629956299662997629986299963000630016300263003630046300563006630076300863009630106301163012630136301463015630166301763018630196302063021630226302363024630256302663027630286302963030630316303263033630346303563036630376303863039630406304163042630436304463045630466304763048630496305063051630526305363054630556305663057630586305963060630616306263063630646306563066630676306863069630706307163072630736307463075630766307763078630796308063081630826308363084630856308663087630886308963090630916309263093630946309563096630976309863099631006310163102631036310463105631066310763108631096311063111631126311363114631156311663117631186311963120631216312263123631246312563126631276312863129631306313163132631336313463135631366313763138631396314063141631426314363144631456314663147631486314963150631516315263153631546315563156631576315863159631606316163162631636316463165631666316763168631696317063171631726317363174631756317663177631786317963180631816318263183631846318563186631876318863189631906319163192631936319463195631966319763198631996320063201632026320363204632056320663207632086320963210632116321263213632146321563216632176321863219632206322163222632236322463225632266322763228632296323063231632326323363234632356323663237632386323963240632416324263243632446324563246632476324863249632506325163252632536325463255632566325763258632596326063261632626326363264632656326663267632686326963270632716327263273632746327563276632776327863279632806328163282632836328463285632866328763288632896329063291632926329363294632956329663297632986329963300633016330263303633046330563306633076330863309633106331163312633136331463315633166331763318633196332063321633226332363324633256332663327633286332963330633316333263333633346333563336633376333863339633406334163342633436334463345633466334763348633496335063351633526335363354633556335663357633586335963360633616336263363633646336563366633676336863369633706337163372633736337463375633766337763378633796338063381633826338363384633856338663387633886338963390633916339263393633946339563396633976339863399634006340163402634036340463405634066340763408634096341063411634126341363414634156341663417634186341963420634216342263423634246342563426634276342863429634306343163432634336343463435634366343763438634396344063441634426344363444634456344663447634486344963450634516345263453634546345563456634576345863459634606346163462634636346463465634666346763468634696347063471634726347363474634756347663477634786347963480634816348263483634846348563486634876348863489634906349163492634936349463495634966349763498634996350063501635026350363504635056350663507635086350963510635116351263513635146351563516635176351863519635206352163522635236352463525635266352763528635296353063531635326353363534635356353663537635386353963540635416354263543635446354563546635476354863549635506355163552635536355463555635566355763558635596356063561635626356363564635656356663567635686356963570635716357263573635746357563576635776357863579635806358163582635836358463585635866358763588635896359063591635926359363594635956359663597635986359963600636016360263603636046360563606636076360863609636106361163612636136361463615636166361763618636196362063621636226362363624636256362663627636286362963630636316363263633636346363563636636376363863639636406364163642636436364463645636466364763648636496365063651636526365363654636556365663657636586365963660636616366263663636646366563666636676366863669636706367163672636736367463675636766367763678636796368063681636826368363684636856368663687636886368963690636916369263693636946369563696636976369863699637006370163702637036370463705637066370763708637096371063711637126371363714637156371663717637186371963720637216372263723637246372563726637276372863729637306373163732637336373463735637366373763738637396374063741637426374363744637456374663747637486374963750637516375263753637546375563756637576375863759637606376163762637636376463765637666376763768637696377063771637726377363774637756377663777637786377963780637816378263783637846378563786637876378863789637906379163792637936379463795637966379763798637996380063801638026380363804638056380663807638086380963810638116381263813638146381563816638176381863819638206382163822638236382463825638266382763828638296383063831638326383363834638356383663837638386383963840638416384263843638446384563846638476384863849638506385163852638536385463855638566385763858638596386063861638626386363864638656386663867638686386963870638716387263873638746387563876638776387863879638806388163882638836388463885638866388763888638896389063891638926389363894638956389663897638986389963900639016390263903639046390563906639076390863909639106391163912639136391463915639166391763918639196392063921639226392363924639256392663927639286392963930639316393263933639346393563936639376393863939639406394163942639436394463945639466394763948639496395063951639526395363954639556395663957639586395963960639616396263963639646396563966639676396863969639706397163972639736397463975639766397763978639796398063981639826398363984639856398663987639886398963990639916399263993639946399563996639976399863999640006400164002640036400464005640066400764008640096401064011640126401364014640156401664017640186401964020640216402264023640246402564026640276402864029640306403164032640336403464035640366403764038640396404064041640426404364044640456404664047640486404964050640516405264053640546405564056640576405864059640606406164062640636406464065640666406764068640696407064071640726407364074640756407664077640786407964080640816408264083640846408564086640876408864089640906409164092640936409464095640966409764098640996410064101641026410364104641056410664107641086410964110641116411264113641146411564116641176411864119641206412164122641236412464125641266412764128641296413064131641326413364134641356413664137641386413964140641416414264143641446414564146641476414864149641506415164152641536415464155641566415764158641596416064161641626416364164641656416664167641686416964170641716417264173641746417564176641776417864179641806418164182641836418464185641866418764188641896419064191641926419364194641956419664197641986419964200642016420264203642046420564206642076420864209642106421164212642136421464215642166421764218642196422064221642226422364224642256422664227642286422964230642316423264233642346423564236642376423864239642406424164242642436424464245642466424764248642496425064251642526425364254642556425664257642586425964260642616426264263642646426564266642676426864269642706427164272642736427464275642766427764278642796428064281642826428364284642856428664287642886428964290642916429264293642946429564296642976429864299643006430164302643036430464305643066430764308643096431064311643126431364314643156431664317643186431964320643216432264323643246432564326643276432864329643306433164332643336433464335643366433764338643396434064341643426434364344643456434664347643486434964350643516435264353643546435564356643576435864359643606436164362643636436464365643666436764368643696437064371643726437364374643756437664377643786437964380643816438264383643846438564386643876438864389643906439164392643936439464395643966439764398643996440064401644026440364404644056440664407644086440964410644116441264413644146441564416644176441864419644206442164422644236442464425644266442764428644296443064431644326443364434644356443664437644386443964440644416444264443644446444564446644476444864449644506445164452644536445464455644566445764458644596446064461644626446364464644656446664467644686446964470644716447264473644746447564476644776447864479644806448164482644836448464485644866448764488644896449064491644926449364494644956449664497644986449964500645016450264503645046450564506645076450864509645106451164512645136451464515645166451764518645196452064521645226452364524645256452664527645286452964530645316453264533645346453564536645376453864539645406454164542645436454464545645466454764548645496455064551645526455364554645556455664557645586455964560645616456264563645646456564566645676456864569645706457164572645736457464575645766457764578645796458064581645826458364584645856458664587645886458964590645916459264593645946459564596645976459864599646006460164602646036460464605646066460764608646096461064611646126461364614646156461664617646186461964620646216462264623646246462564626646276462864629646306463164632646336463464635646366463764638646396464064641646426464364644646456464664647646486464964650646516465264653646546465564656646576465864659646606466164662646636466464665646666466764668646696467064671646726467364674646756467664677646786467964680646816468264683646846468564686646876468864689646906469164692646936469464695646966469764698646996470064701647026470364704647056470664707647086470964710647116471264713647146471564716647176471864719647206472164722647236472464725647266472764728647296473064731647326473364734647356473664737647386473964740647416474264743647446474564746647476474864749647506475164752647536475464755647566475764758647596476064761647626476364764647656476664767647686476964770647716477264773647746477564776647776477864779647806478164782647836478464785647866478764788647896479064791647926479364794647956479664797647986479964800648016480264803648046480564806648076480864809648106481164812648136481464815648166481764818648196482064821648226482364824648256482664827648286482964830648316483264833648346483564836648376483864839648406484164842648436484464845648466484764848648496485064851648526485364854648556485664857648586485964860648616486264863648646486564866648676486864869648706487164872648736487464875648766487764878648796488064881648826488364884648856488664887648886488964890648916489264893648946489564896648976489864899649006490164902649036490464905649066490764908649096491064911649126491364914649156491664917649186491964920649216492264923649246492564926649276492864929649306493164932649336493464935649366493764938649396494064941649426494364944649456494664947649486494964950649516495264953649546495564956649576495864959649606496164962649636496464965649666496764968649696497064971649726497364974649756497664977649786497964980649816498264983649846498564986649876498864989649906499164992649936499464995649966499764998649996500065001650026500365004650056500665007650086500965010650116501265013650146501565016650176501865019650206502165022650236502465025650266502765028650296503065031650326503365034650356503665037650386503965040650416504265043650446504565046650476504865049650506505165052650536505465055650566505765058650596506065061650626506365064650656506665067650686506965070650716507265073650746507565076650776507865079650806508165082650836508465085650866508765088650896509065091650926509365094650956509665097650986509965100651016510265103651046510565106651076510865109651106511165112651136511465115651166511765118651196512065121651226512365124651256512665127651286512965130651316513265133651346513565136651376513865139651406514165142651436514465145651466514765148651496515065151651526515365154651556515665157651586515965160651616516265163651646516565166651676516865169651706517165172651736517465175651766517765178651796518065181651826518365184651856518665187651886518965190651916519265193651946519565196651976519865199652006520165202652036520465205652066520765208652096521065211652126521365214652156521665217652186521965220652216522265223652246522565226652276522865229652306523165232652336523465235652366523765238652396524065241652426524365244652456524665247652486524965250652516525265253652546525565256652576525865259652606526165262652636526465265652666526765268652696527065271652726527365274652756527665277652786527965280652816528265283652846528565286652876528865289652906529165292652936529465295652966529765298652996530065301653026530365304653056530665307653086530965310653116531265313653146531565316653176531865319653206532165322653236532465325653266532765328653296533065331653326533365334653356533665337653386533965340653416534265343653446534565346653476534865349653506535165352653536535465355653566535765358653596536065361653626536365364653656536665367653686536965370653716537265373653746537565376653776537865379653806538165382653836538465385653866538765388653896539065391653926539365394653956539665397653986539965400654016540265403654046540565406654076540865409654106541165412654136541465415654166541765418654196542065421654226542365424654256542665427654286542965430654316543265433654346543565436654376543865439654406544165442654436544465445654466544765448654496545065451654526545365454654556545665457654586545965460654616546265463654646546565466654676546865469654706547165472654736547465475654766547765478654796548065481654826548365484654856548665487654886548965490654916549265493654946549565496654976549865499655006550165502655036550465505655066550765508655096551065511655126551365514655156551665517655186551965520655216552265523655246552565526655276552865529655306553165532655336553465535655366553765538655396554065541655426554365544655456554665547655486554965550655516555265553655546555565556655576555865559655606556165562655636556465565655666556765568655696557065571655726557365574655756557665577655786557965580655816558265583655846558565586655876558865589655906559165592655936559465595655966559765598655996560065601656026560365604656056560665607656086560965610656116561265613656146561565616656176561865619656206562165622656236562465625656266562765628656296563065631656326563365634656356563665637656386563965640656416564265643656446564565646656476564865649656506565165652656536565465655656566565765658656596566065661656626566365664656656566665667656686566965670656716567265673656746567565676656776567865679656806568165682656836568465685656866568765688656896569065691656926569365694656956569665697656986569965700657016570265703657046570565706657076570865709657106571165712657136571465715657166571765718657196572065721657226572365724657256572665727657286572965730657316573265733657346573565736657376573865739657406574165742657436574465745657466574765748657496575065751657526575365754657556575665757657586575965760657616576265763657646576565766657676576865769657706577165772657736577465775657766577765778657796578065781657826578365784657856578665787657886578965790657916579265793657946579565796657976579865799658006580165802658036580465805658066580765808658096581065811658126581365814658156581665817658186581965820658216582265823658246582565826658276582865829658306583165832658336583465835658366583765838658396584065841658426584365844658456584665847658486584965850658516585265853658546585565856658576585865859658606586165862658636586465865658666586765868658696587065871658726587365874658756587665877658786587965880658816588265883658846588565886658876588865889658906589165892658936589465895658966589765898658996590065901659026590365904659056590665907659086590965910659116591265913659146591565916659176591865919659206592165922659236592465925659266592765928659296593065931659326593365934659356593665937659386593965940659416594265943659446594565946659476594865949659506595165952659536595465955659566595765958659596596065961659626596365964659656596665967659686596965970659716597265973659746597565976659776597865979659806598165982659836598465985659866598765988659896599065991659926599365994659956599665997659986599966000660016600266003660046600566006660076600866009660106601166012660136601466015660166601766018660196602066021660226602366024660256602666027660286602966030660316603266033660346603566036660376603866039660406604166042660436604466045660466604766048660496605066051660526605366054660556605666057660586605966060660616606266063660646606566066660676606866069660706607166072660736607466075660766607766078660796608066081660826608366084660856608666087660886608966090660916609266093660946609566096660976609866099661006610166102661036610466105661066610766108661096611066111661126611366114661156611666117661186611966120661216612266123661246612566126661276612866129661306613166132661336613466135661366613766138661396614066141661426614366144661456614666147661486614966150661516615266153661546615566156661576615866159661606616166162661636616466165661666616766168661696617066171661726617366174661756617666177661786617966180661816618266183661846618566186661876618866189661906619166192661936619466195661966619766198661996620066201662026620366204662056620666207662086620966210662116621266213662146621566216662176621866219662206622166222662236622466225662266622766228662296623066231662326623366234662356623666237662386623966240662416624266243662446624566246662476624866249662506625166252662536625466255662566625766258662596626066261662626626366264662656626666267662686626966270662716627266273662746627566276662776627866279662806628166282662836628466285662866628766288662896629066291662926629366294662956629666297662986629966300663016630266303663046630566306663076630866309663106631166312663136631466315663166631766318663196632066321663226632366324663256632666327663286632966330663316633266333663346633566336663376633866339663406634166342663436634466345663466634766348663496635066351663526635366354663556635666357663586635966360663616636266363663646636566366663676636866369663706637166372663736637466375663766637766378663796638066381663826638366384663856638666387663886638966390663916639266393663946639566396663976639866399664006640166402664036640466405664066640766408664096641066411664126641366414664156641666417664186641966420664216642266423664246642566426664276642866429664306643166432664336643466435664366643766438664396644066441664426644366444664456644666447664486644966450664516645266453664546645566456664576645866459664606646166462664636646466465664666646766468664696647066471664726647366474664756647666477664786647966480664816648266483664846648566486664876648866489664906649166492664936649466495664966649766498664996650066501665026650366504665056650666507665086650966510665116651266513665146651566516665176651866519665206652166522665236652466525665266652766528665296653066531665326653366534665356653666537665386653966540665416654266543665446654566546665476654866549665506655166552665536655466555665566655766558665596656066561665626656366564665656656666567665686656966570665716657266573665746657566576665776657866579665806658166582665836658466585665866658766588665896659066591665926659366594665956659666597665986659966600666016660266603666046660566606666076660866609666106661166612666136661466615666166661766618666196662066621666226662366624666256662666627666286662966630666316663266633666346663566636666376663866639666406664166642666436664466645666466664766648666496665066651666526665366654666556665666657666586665966660666616666266663666646666566666666676666866669666706667166672666736667466675666766667766678666796668066681666826668366684666856668666687666886668966690666916669266693666946669566696666976669866699667006670166702667036670466705667066670766708667096671066711667126671366714667156671666717667186671966720667216672266723667246672566726667276672866729667306673166732667336673466735667366673766738667396674066741667426674366744667456674666747667486674966750667516675266753667546675566756667576675866759667606676166762667636676466765667666676766768667696677066771667726677366774667756677666777667786677966780667816678266783667846678566786667876678866789667906679166792667936679466795667966679766798667996680066801668026680366804668056680666807668086680966810668116681266813668146681566816668176681866819668206682166822668236682466825668266682766828668296683066831668326683366834668356683666837668386683966840668416684266843668446684566846668476684866849668506685166852668536685466855668566685766858668596686066861668626686366864668656686666867668686686966870668716687266873668746687566876668776687866879668806688166882668836688466885668866688766888668896689066891668926689366894668956689666897668986689966900669016690266903669046690566906669076690866909669106691166912669136691466915669166691766918669196692066921669226692366924669256692666927669286692966930669316693266933669346693566936669376693866939669406694166942669436694466945669466694766948669496695066951669526695366954669556695666957669586695966960669616696266963669646696566966669676696866969669706697166972669736697466975669766697766978669796698066981669826698366984669856698666987669886698966990669916699266993669946699566996669976699866999670006700167002670036700467005670066700767008670096701067011670126701367014670156701667017670186701967020670216702267023670246702567026670276702867029670306703167032670336703467035
  1. diff -Nur libupnp-1.6.6.orig/aclocal.m4 libupnp-1.6.6/aclocal.m4
  2. --- libupnp-1.6.6.orig/aclocal.m4 2008-04-25 13:47:16.000000000 +0200
  3. +++ libupnp-1.6.6/aclocal.m4 2010-02-18 22:36:56.760857948 +0100
  4. @@ -1,7 +1,7 @@
  5. -# generated automatically by aclocal 1.9.6 -*- Autoconf -*-
  6. +# generated automatically by aclocal 1.11.1 -*- Autoconf -*-
  7. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
  8. -# 2005 Free Software Foundation, Inc.
  9. +# 2005, 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
  10. # This file is free software; the Free Software Foundation
  11. # gives unlimited permission to copy and/or distribute it,
  12. # with or without modifications, as long as this notice is preserved.
  13. @@ -11,6384 +11,15 @@
  14. # even the implied warranty of MERCHANTABILITY or FITNESS FOR A
  15. # PARTICULAR PURPOSE.
  16. -# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
  17. +m4_ifndef([AC_AUTOCONF_VERSION],
  18. + [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
  19. +m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.65],,
  20. +[m4_warning([this file was generated for autoconf 2.65.
  21. +You have another version of autoconf. It may work, but is not guaranteed to.
  22. +If you have problems, you may need to regenerate the build system entirely.
  23. +To do so, use the procedure documented by the package, typically `autoreconf'.])])
  24. -# serial 48 AC_PROG_LIBTOOL
  25. -
  26. -
  27. -# AC_PROVIDE_IFELSE(MACRO-NAME, IF-PROVIDED, IF-NOT-PROVIDED)
  28. -# -----------------------------------------------------------
  29. -# If this macro is not defined by Autoconf, define it here.
  30. -m4_ifdef([AC_PROVIDE_IFELSE],
  31. - [],
  32. - [m4_define([AC_PROVIDE_IFELSE],
  33. - [m4_ifdef([AC_PROVIDE_$1],
  34. - [$2], [$3])])])
  35. -
  36. -
  37. -# AC_PROG_LIBTOOL
  38. -# ---------------
  39. -AC_DEFUN([AC_PROG_LIBTOOL],
  40. -[AC_REQUIRE([_AC_PROG_LIBTOOL])dnl
  41. -dnl If AC_PROG_CXX has already been expanded, run AC_LIBTOOL_CXX
  42. -dnl immediately, otherwise, hook it in at the end of AC_PROG_CXX.
  43. - AC_PROVIDE_IFELSE([AC_PROG_CXX],
  44. - [AC_LIBTOOL_CXX],
  45. - [define([AC_PROG_CXX], defn([AC_PROG_CXX])[AC_LIBTOOL_CXX
  46. - ])])
  47. -dnl And a similar setup for Fortran 77 support
  48. - AC_PROVIDE_IFELSE([AC_PROG_F77],
  49. - [AC_LIBTOOL_F77],
  50. - [define([AC_PROG_F77], defn([AC_PROG_F77])[AC_LIBTOOL_F77
  51. -])])
  52. -
  53. -dnl Quote A][M_PROG_GCJ so that aclocal doesn't bring it in needlessly.
  54. -dnl If either AC_PROG_GCJ or A][M_PROG_GCJ have already been expanded, run
  55. -dnl AC_LIBTOOL_GCJ immediately, otherwise, hook it in at the end of both.
  56. - AC_PROVIDE_IFELSE([AC_PROG_GCJ],
  57. - [AC_LIBTOOL_GCJ],
  58. - [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],
  59. - [AC_LIBTOOL_GCJ],
  60. - [AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ],
  61. - [AC_LIBTOOL_GCJ],
  62. - [ifdef([AC_PROG_GCJ],
  63. - [define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[AC_LIBTOOL_GCJ])])
  64. - ifdef([A][M_PROG_GCJ],
  65. - [define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[AC_LIBTOOL_GCJ])])
  66. - ifdef([LT_AC_PROG_GCJ],
  67. - [define([LT_AC_PROG_GCJ],
  68. - defn([LT_AC_PROG_GCJ])[AC_LIBTOOL_GCJ])])])])
  69. -])])# AC_PROG_LIBTOOL
  70. -
  71. -
  72. -# _AC_PROG_LIBTOOL
  73. -# ----------------
  74. -AC_DEFUN([_AC_PROG_LIBTOOL],
  75. -[AC_REQUIRE([AC_LIBTOOL_SETUP])dnl
  76. -AC_BEFORE([$0],[AC_LIBTOOL_CXX])dnl
  77. -AC_BEFORE([$0],[AC_LIBTOOL_F77])dnl
  78. -AC_BEFORE([$0],[AC_LIBTOOL_GCJ])dnl
  79. -
  80. -# This can be used to rebuild libtool when needed
  81. -LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
  82. -
  83. -# Always use our own libtool.
  84. -LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  85. -AC_SUBST(LIBTOOL)dnl
  86. -
  87. -# Prevent multiple expansion
  88. -define([AC_PROG_LIBTOOL], [])
  89. -])# _AC_PROG_LIBTOOL
  90. -
  91. -
  92. -# AC_LIBTOOL_SETUP
  93. -# ----------------
  94. -AC_DEFUN([AC_LIBTOOL_SETUP],
  95. -[AC_PREREQ(2.50)dnl
  96. -AC_REQUIRE([AC_ENABLE_SHARED])dnl
  97. -AC_REQUIRE([AC_ENABLE_STATIC])dnl
  98. -AC_REQUIRE([AC_ENABLE_FAST_INSTALL])dnl
  99. -AC_REQUIRE([AC_CANONICAL_HOST])dnl
  100. -AC_REQUIRE([AC_CANONICAL_BUILD])dnl
  101. -AC_REQUIRE([AC_PROG_CC])dnl
  102. -AC_REQUIRE([AC_PROG_LD])dnl
  103. -AC_REQUIRE([AC_PROG_LD_RELOAD_FLAG])dnl
  104. -AC_REQUIRE([AC_PROG_NM])dnl
  105. -
  106. -AC_REQUIRE([AC_PROG_LN_S])dnl
  107. -AC_REQUIRE([AC_DEPLIBS_CHECK_METHOD])dnl
  108. -# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
  109. -AC_REQUIRE([AC_OBJEXT])dnl
  110. -AC_REQUIRE([AC_EXEEXT])dnl
  111. -dnl
  112. -
  113. -AC_LIBTOOL_SYS_MAX_CMD_LEN
  114. -AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
  115. -AC_LIBTOOL_OBJDIR
  116. -
  117. -AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
  118. -_LT_AC_PROG_ECHO_BACKSLASH
  119. -
  120. -case $host_os in
  121. -aix3*)
  122. - # AIX sometimes has problems with the GCC collect2 program. For some
  123. - # reason, if we set the COLLECT_NAMES environment variable, the problems
  124. - # vanish in a puff of smoke.
  125. - if test "X${COLLECT_NAMES+set}" != Xset; then
  126. - COLLECT_NAMES=
  127. - export COLLECT_NAMES
  128. - fi
  129. - ;;
  130. -esac
  131. -
  132. -# Sed substitution that helps us do robust quoting. It backslashifies
  133. -# metacharacters that are still active within double-quoted strings.
  134. -Xsed='sed -e 1s/^X//'
  135. -[sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g']
  136. -
  137. -# Same as above, but do not quote variable references.
  138. -[double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g']
  139. -
  140. -# Sed substitution to delay expansion of an escaped shell variable in a
  141. -# double_quote_subst'ed string.
  142. -delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  143. -
  144. -# Sed substitution to avoid accidental globbing in evaled expressions
  145. -no_glob_subst='s/\*/\\\*/g'
  146. -
  147. -# Constants:
  148. -rm="rm -f"
  149. -
  150. -# Global variables:
  151. -default_ofile=libtool
  152. -can_build_shared=yes
  153. -
  154. -# All known linkers require a `.a' archive for static linking (except MSVC,
  155. -# which needs '.lib').
  156. -libext=a
  157. -ltmain="$ac_aux_dir/ltmain.sh"
  158. -ofile="$default_ofile"
  159. -with_gnu_ld="$lt_cv_prog_gnu_ld"
  160. -
  161. -AC_CHECK_TOOL(AR, ar, false)
  162. -AC_CHECK_TOOL(RANLIB, ranlib, :)
  163. -AC_CHECK_TOOL(STRIP, strip, :)
  164. -
  165. -old_CC="$CC"
  166. -old_CFLAGS="$CFLAGS"
  167. -
  168. -# Set sane defaults for various variables
  169. -test -z "$AR" && AR=ar
  170. -test -z "$AR_FLAGS" && AR_FLAGS=cru
  171. -test -z "$AS" && AS=as
  172. -test -z "$CC" && CC=cc
  173. -test -z "$LTCC" && LTCC=$CC
  174. -test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  175. -test -z "$DLLTOOL" && DLLTOOL=dlltool
  176. -test -z "$LD" && LD=ld
  177. -test -z "$LN_S" && LN_S="ln -s"
  178. -test -z "$MAGIC_CMD" && MAGIC_CMD=file
  179. -test -z "$NM" && NM=nm
  180. -test -z "$SED" && SED=sed
  181. -test -z "$OBJDUMP" && OBJDUMP=objdump
  182. -test -z "$RANLIB" && RANLIB=:
  183. -test -z "$STRIP" && STRIP=:
  184. -test -z "$ac_objext" && ac_objext=o
  185. -
  186. -# Determine commands to create old-style static archives.
  187. -old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
  188. -old_postinstall_cmds='chmod 644 $oldlib'
  189. -old_postuninstall_cmds=
  190. -
  191. -if test -n "$RANLIB"; then
  192. - case $host_os in
  193. - openbsd*)
  194. - old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
  195. - ;;
  196. - *)
  197. - old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
  198. - ;;
  199. - esac
  200. - old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
  201. -fi
  202. -
  203. -_LT_CC_BASENAME([$compiler])
  204. -
  205. -# Only perform the check for file, if the check method requires it
  206. -case $deplibs_check_method in
  207. -file_magic*)
  208. - if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  209. - AC_PATH_MAGIC
  210. - fi
  211. - ;;
  212. -esac
  213. -
  214. -AC_PROVIDE_IFELSE([AC_LIBTOOL_DLOPEN], enable_dlopen=yes, enable_dlopen=no)
  215. -AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL],
  216. -enable_win32_dll=yes, enable_win32_dll=no)
  217. -
  218. -AC_ARG_ENABLE([libtool-lock],
  219. - [AC_HELP_STRING([--disable-libtool-lock],
  220. - [avoid locking (might break parallel builds)])])
  221. -test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  222. -
  223. -AC_ARG_WITH([pic],
  224. - [AC_HELP_STRING([--with-pic],
  225. - [try to use only PIC/non-PIC objects @<:@default=use both@:>@])],
  226. - [pic_mode="$withval"],
  227. - [pic_mode=default])
  228. -test -z "$pic_mode" && pic_mode=default
  229. -
  230. -# Use C for the default configuration in the libtool script
  231. -tagname=
  232. -AC_LIBTOOL_LANG_C_CONFIG
  233. -_LT_AC_TAGCONFIG
  234. -])# AC_LIBTOOL_SETUP
  235. -
  236. -
  237. -# _LT_AC_SYS_COMPILER
  238. -# -------------------
  239. -AC_DEFUN([_LT_AC_SYS_COMPILER],
  240. -[AC_REQUIRE([AC_PROG_CC])dnl
  241. -
  242. -# If no C compiler was specified, use CC.
  243. -LTCC=${LTCC-"$CC"}
  244. -
  245. -# If no C compiler flags were specified, use CFLAGS.
  246. -LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  247. -
  248. -# Allow CC to be a program name with arguments.
  249. -compiler=$CC
  250. -])# _LT_AC_SYS_COMPILER
  251. -
  252. -
  253. -# _LT_CC_BASENAME(CC)
  254. -# -------------------
  255. -# Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
  256. -AC_DEFUN([_LT_CC_BASENAME],
  257. -[for cc_temp in $1""; do
  258. - case $cc_temp in
  259. - compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;;
  260. - distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;;
  261. - \-*) ;;
  262. - *) break;;
  263. - esac
  264. -done
  265. -cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  266. -])
  267. -
  268. -
  269. -# _LT_COMPILER_BOILERPLATE
  270. -# ------------------------
  271. -# Check for compiler boilerplate output or warnings with
  272. -# the simple compiler test code.
  273. -AC_DEFUN([_LT_COMPILER_BOILERPLATE],
  274. -[ac_outfile=conftest.$ac_objext
  275. -printf "$lt_simple_compile_test_code" >conftest.$ac_ext
  276. -eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  277. -_lt_compiler_boilerplate=`cat conftest.err`
  278. -$rm conftest*
  279. -])# _LT_COMPILER_BOILERPLATE
  280. -
  281. -
  282. -# _LT_LINKER_BOILERPLATE
  283. -# ----------------------
  284. -# Check for linker boilerplate output or warnings with
  285. -# the simple link test code.
  286. -AC_DEFUN([_LT_LINKER_BOILERPLATE],
  287. -[ac_outfile=conftest.$ac_objext
  288. -printf "$lt_simple_link_test_code" >conftest.$ac_ext
  289. -eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  290. -_lt_linker_boilerplate=`cat conftest.err`
  291. -$rm conftest*
  292. -])# _LT_LINKER_BOILERPLATE
  293. -
  294. -
  295. -# _LT_AC_SYS_LIBPATH_AIX
  296. -# ----------------------
  297. -# Links a minimal program and checks the executable
  298. -# for the system default hardcoded library path. In most cases,
  299. -# this is /usr/lib:/lib, but when the MPI compilers are used
  300. -# the location of the communication and MPI libs are included too.
  301. -# If we don't find anything, use the default library path according
  302. -# to the aix ld manual.
  303. -AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX],
  304. -[AC_LINK_IFELSE(AC_LANG_PROGRAM,[
  305. -aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  306. -}'`
  307. -# Check for a 64-bit object if we didn't find anything.
  308. -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; }
  309. -}'`; fi],[])
  310. -if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  311. -])# _LT_AC_SYS_LIBPATH_AIX
  312. -
  313. -
  314. -# _LT_AC_SHELL_INIT(ARG)
  315. -# ----------------------
  316. -AC_DEFUN([_LT_AC_SHELL_INIT],
  317. -[ifdef([AC_DIVERSION_NOTICE],
  318. - [AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)],
  319. - [AC_DIVERT_PUSH(NOTICE)])
  320. -$1
  321. -AC_DIVERT_POP
  322. -])# _LT_AC_SHELL_INIT
  323. -
  324. -
  325. -# _LT_AC_PROG_ECHO_BACKSLASH
  326. -# --------------------------
  327. -# Add some code to the start of the generated configure script which
  328. -# will find an echo command which doesn't interpret backslashes.
  329. -AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH],
  330. -[_LT_AC_SHELL_INIT([
  331. -# Check that we are running under the correct shell.
  332. -SHELL=${CONFIG_SHELL-/bin/sh}
  333. -
  334. -case X$ECHO in
  335. -X*--fallback-echo)
  336. - # Remove one level of quotation (which was required for Make).
  337. - ECHO=`echo "$ECHO" | sed 's,\\\\\[$]\\[$]0,'[$]0','`
  338. - ;;
  339. -esac
  340. -
  341. -echo=${ECHO-echo}
  342. -if test "X[$]1" = X--no-reexec; then
  343. - # Discard the --no-reexec flag, and continue.
  344. - shift
  345. -elif test "X[$]1" = X--fallback-echo; then
  346. - # Avoid inline document here, it may be left over
  347. - :
  348. -elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
  349. - # Yippee, $echo works!
  350. - :
  351. -else
  352. - # Restart under the correct shell.
  353. - exec $SHELL "[$]0" --no-reexec ${1+"[$]@"}
  354. -fi
  355. -
  356. -if test "X[$]1" = X--fallback-echo; then
  357. - # used as fallback echo
  358. - shift
  359. - cat <<EOF
  360. -[$]*
  361. -EOF
  362. - exit 0
  363. -fi
  364. -
  365. -# The HP-UX ksh and POSIX shell print the target directory to stdout
  366. -# if CDPATH is set.
  367. -(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  368. -
  369. -if test -z "$ECHO"; then
  370. -if test "X${echo_test_string+set}" != Xset; then
  371. -# find a string as large as possible, as long as the shell can cope with it
  372. - for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do
  373. - # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
  374. - if (echo_test_string=`eval $cmd`) 2>/dev/null &&
  375. - echo_test_string=`eval $cmd` &&
  376. - (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
  377. - then
  378. - break
  379. - fi
  380. - done
  381. -fi
  382. -
  383. -if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
  384. - echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
  385. - test "X$echo_testing_string" = "X$echo_test_string"; then
  386. - :
  387. -else
  388. - # The Solaris, AIX, and Digital Unix default echo programs unquote
  389. - # backslashes. This makes it impossible to quote backslashes using
  390. - # echo "$something" | sed 's/\\/\\\\/g'
  391. - #
  392. - # So, first we look for a working echo in the user's PATH.
  393. -
  394. - lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  395. - for dir in $PATH /usr/ucb; do
  396. - IFS="$lt_save_ifs"
  397. - if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
  398. - test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
  399. - echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
  400. - test "X$echo_testing_string" = "X$echo_test_string"; then
  401. - echo="$dir/echo"
  402. - break
  403. - fi
  404. - done
  405. - IFS="$lt_save_ifs"
  406. -
  407. - if test "X$echo" = Xecho; then
  408. - # We didn't find a better echo, so look for alternatives.
  409. - if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
  410. - echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
  411. - test "X$echo_testing_string" = "X$echo_test_string"; then
  412. - # This shell has a builtin print -r that does the trick.
  413. - echo='print -r'
  414. - elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
  415. - test "X$CONFIG_SHELL" != X/bin/ksh; then
  416. - # If we have ksh, try running configure again with it.
  417. - ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
  418. - export ORIGINAL_CONFIG_SHELL
  419. - CONFIG_SHELL=/bin/ksh
  420. - export CONFIG_SHELL
  421. - exec $CONFIG_SHELL "[$]0" --no-reexec ${1+"[$]@"}
  422. - else
  423. - # Try using printf.
  424. - echo='printf %s\n'
  425. - if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
  426. - echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
  427. - test "X$echo_testing_string" = "X$echo_test_string"; then
  428. - # Cool, printf works
  429. - :
  430. - elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
  431. - test "X$echo_testing_string" = 'X\t' &&
  432. - echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  433. - test "X$echo_testing_string" = "X$echo_test_string"; then
  434. - CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
  435. - export CONFIG_SHELL
  436. - SHELL="$CONFIG_SHELL"
  437. - export SHELL
  438. - echo="$CONFIG_SHELL [$]0 --fallback-echo"
  439. - elif echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
  440. - test "X$echo_testing_string" = 'X\t' &&
  441. - echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  442. - test "X$echo_testing_string" = "X$echo_test_string"; then
  443. - echo="$CONFIG_SHELL [$]0 --fallback-echo"
  444. - else
  445. - # maybe with a smaller string...
  446. - prev=:
  447. -
  448. - for cmd in 'echo test' 'sed 2q "[$]0"' 'sed 10q "[$]0"' 'sed 20q "[$]0"' 'sed 50q "[$]0"'; do
  449. - if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
  450. - then
  451. - break
  452. - fi
  453. - prev="$cmd"
  454. - done
  455. -
  456. - if test "$prev" != 'sed 50q "[$]0"'; then
  457. - echo_test_string=`eval $prev`
  458. - export echo_test_string
  459. - exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "[$]0" ${1+"[$]@"}
  460. - else
  461. - # Oops. We lost completely, so just stick with echo.
  462. - echo=echo
  463. - fi
  464. - fi
  465. - fi
  466. - fi
  467. -fi
  468. -fi
  469. -
  470. -# Copy echo and quote the copy suitably for passing to libtool from
  471. -# the Makefile, instead of quoting the original, which is used later.
  472. -ECHO=$echo
  473. -if test "X$ECHO" = "X$CONFIG_SHELL [$]0 --fallback-echo"; then
  474. - ECHO="$CONFIG_SHELL \\\$\[$]0 --fallback-echo"
  475. -fi
  476. -
  477. -AC_SUBST(ECHO)
  478. -])])# _LT_AC_PROG_ECHO_BACKSLASH
  479. -
  480. -
  481. -# _LT_AC_LOCK
  482. -# -----------
  483. -AC_DEFUN([_LT_AC_LOCK],
  484. -[AC_ARG_ENABLE([libtool-lock],
  485. - [AC_HELP_STRING([--disable-libtool-lock],
  486. - [avoid locking (might break parallel builds)])])
  487. -test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  488. -
  489. -# Some flags need to be propagated to the compiler or linker for good
  490. -# libtool support.
  491. -case $host in
  492. -ia64-*-hpux*)
  493. - # Find out which ABI we are using.
  494. - echo 'int i;' > conftest.$ac_ext
  495. - if AC_TRY_EVAL(ac_compile); then
  496. - case `/usr/bin/file conftest.$ac_objext` in
  497. - *ELF-32*)
  498. - HPUX_IA64_MODE="32"
  499. - ;;
  500. - *ELF-64*)
  501. - HPUX_IA64_MODE="64"
  502. - ;;
  503. - esac
  504. - fi
  505. - rm -rf conftest*
  506. - ;;
  507. -*-*-irix6*)
  508. - # Find out which ABI we are using.
  509. - echo '[#]line __oline__ "configure"' > conftest.$ac_ext
  510. - if AC_TRY_EVAL(ac_compile); then
  511. - if test "$lt_cv_prog_gnu_ld" = yes; then
  512. - case `/usr/bin/file conftest.$ac_objext` in
  513. - *32-bit*)
  514. - LD="${LD-ld} -melf32bsmip"
  515. - ;;
  516. - *N32*)
  517. - LD="${LD-ld} -melf32bmipn32"
  518. - ;;
  519. - *64-bit*)
  520. - LD="${LD-ld} -melf64bmip"
  521. - ;;
  522. - esac
  523. - else
  524. - case `/usr/bin/file conftest.$ac_objext` in
  525. - *32-bit*)
  526. - LD="${LD-ld} -32"
  527. - ;;
  528. - *N32*)
  529. - LD="${LD-ld} -n32"
  530. - ;;
  531. - *64-bit*)
  532. - LD="${LD-ld} -64"
  533. - ;;
  534. - esac
  535. - fi
  536. - fi
  537. - rm -rf conftest*
  538. - ;;
  539. -
  540. -x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
  541. - # Find out which ABI we are using.
  542. - echo 'int i;' > conftest.$ac_ext
  543. - if AC_TRY_EVAL(ac_compile); then
  544. - case `/usr/bin/file conftest.o` in
  545. - *32-bit*)
  546. - case $host in
  547. - x86_64-*linux*)
  548. - LD="${LD-ld} -m elf_i386"
  549. - ;;
  550. - ppc64-*linux*|powerpc64-*linux*)
  551. - LD="${LD-ld} -m elf32ppclinux"
  552. - ;;
  553. - s390x-*linux*)
  554. - LD="${LD-ld} -m elf_s390"
  555. - ;;
  556. - sparc64-*linux*)
  557. - LD="${LD-ld} -m elf32_sparc"
  558. - ;;
  559. - esac
  560. - ;;
  561. - *64-bit*)
  562. - case $host in
  563. - x86_64-*linux*)
  564. - LD="${LD-ld} -m elf_x86_64"
  565. - ;;
  566. - ppc*-*linux*|powerpc*-*linux*)
  567. - LD="${LD-ld} -m elf64ppc"
  568. - ;;
  569. - s390*-*linux*)
  570. - LD="${LD-ld} -m elf64_s390"
  571. - ;;
  572. - sparc*-*linux*)
  573. - LD="${LD-ld} -m elf64_sparc"
  574. - ;;
  575. - esac
  576. - ;;
  577. - esac
  578. - fi
  579. - rm -rf conftest*
  580. - ;;
  581. -
  582. -*-*-sco3.2v5*)
  583. - # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  584. - SAVE_CFLAGS="$CFLAGS"
  585. - CFLAGS="$CFLAGS -belf"
  586. - AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf,
  587. - [AC_LANG_PUSH(C)
  588. - AC_TRY_LINK([],[],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])
  589. - AC_LANG_POP])
  590. - if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  591. - # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  592. - CFLAGS="$SAVE_CFLAGS"
  593. - fi
  594. - ;;
  595. -sparc*-*solaris*)
  596. - # Find out which ABI we are using.
  597. - echo 'int i;' > conftest.$ac_ext
  598. - if AC_TRY_EVAL(ac_compile); then
  599. - case `/usr/bin/file conftest.o` in
  600. - *64-bit*)
  601. - case $lt_cv_prog_gnu_ld in
  602. - yes*) LD="${LD-ld} -m elf64_sparc" ;;
  603. - *) LD="${LD-ld} -64" ;;
  604. - esac
  605. - ;;
  606. - esac
  607. - fi
  608. - rm -rf conftest*
  609. - ;;
  610. -
  611. -AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL],
  612. -[*-*-cygwin* | *-*-mingw* | *-*-pw32*)
  613. - AC_CHECK_TOOL(DLLTOOL, dlltool, false)
  614. - AC_CHECK_TOOL(AS, as, false)
  615. - AC_CHECK_TOOL(OBJDUMP, objdump, false)
  616. - ;;
  617. - ])
  618. -esac
  619. -
  620. -need_locks="$enable_libtool_lock"
  621. -
  622. -])# _LT_AC_LOCK
  623. -
  624. -
  625. -# AC_LIBTOOL_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
  626. -# [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE])
  627. -# ----------------------------------------------------------------
  628. -# Check whether the given compiler option works
  629. -AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION],
  630. -[AC_REQUIRE([LT_AC_PROG_SED])
  631. -AC_CACHE_CHECK([$1], [$2],
  632. - [$2=no
  633. - ifelse([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4])
  634. - printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  635. - lt_compiler_flag="$3"
  636. - # Insert the option either (1) after the last *FLAGS variable, or
  637. - # (2) before a word containing "conftest.", or (3) at the end.
  638. - # Note that $ac_compile itself does not contain backslashes and begins
  639. - # with a dollar sign (not a hyphen), so the echo should work correctly.
  640. - # The option is referenced via a variable to avoid confusing sed.
  641. - lt_compile=`echo "$ac_compile" | $SED \
  642. - -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  643. - -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
  644. - -e 's:$: $lt_compiler_flag:'`
  645. - (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
  646. - (eval "$lt_compile" 2>conftest.err)
  647. - ac_status=$?
  648. - cat conftest.err >&AS_MESSAGE_LOG_FD
  649. - echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
  650. - if (exit $ac_status) && test -s "$ac_outfile"; then
  651. - # The compiler can only warn and ignore the option if not recognized
  652. - # So say no if there are warnings other than the usual output.
  653. - $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  654. - $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  655. - if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  656. - $2=yes
  657. - fi
  658. - fi
  659. - $rm conftest*
  660. -])
  661. -
  662. -if test x"[$]$2" = xyes; then
  663. - ifelse([$5], , :, [$5])
  664. -else
  665. - ifelse([$6], , :, [$6])
  666. -fi
  667. -])# AC_LIBTOOL_COMPILER_OPTION
  668. -
  669. -
  670. -# AC_LIBTOOL_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
  671. -# [ACTION-SUCCESS], [ACTION-FAILURE])
  672. -# ------------------------------------------------------------
  673. -# Check whether the given compiler option works
  674. -AC_DEFUN([AC_LIBTOOL_LINKER_OPTION],
  675. -[AC_CACHE_CHECK([$1], [$2],
  676. - [$2=no
  677. - save_LDFLAGS="$LDFLAGS"
  678. - LDFLAGS="$LDFLAGS $3"
  679. - printf "$lt_simple_link_test_code" > conftest.$ac_ext
  680. - if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  681. - # The linker can only warn and ignore the option if not recognized
  682. - # So say no if there are warnings
  683. - if test -s conftest.err; then
  684. - # Append any errors to the config.log.
  685. - cat conftest.err 1>&AS_MESSAGE_LOG_FD
  686. - $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
  687. - $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  688. - if diff conftest.exp conftest.er2 >/dev/null; then
  689. - $2=yes
  690. - fi
  691. - else
  692. - $2=yes
  693. - fi
  694. - fi
  695. - $rm conftest*
  696. - LDFLAGS="$save_LDFLAGS"
  697. -])
  698. -
  699. -if test x"[$]$2" = xyes; then
  700. - ifelse([$4], , :, [$4])
  701. -else
  702. - ifelse([$5], , :, [$5])
  703. -fi
  704. -])# AC_LIBTOOL_LINKER_OPTION
  705. -
  706. -
  707. -# AC_LIBTOOL_SYS_MAX_CMD_LEN
  708. -# --------------------------
  709. -AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN],
  710. -[# find the maximum length of command line arguments
  711. -AC_MSG_CHECKING([the maximum length of command line arguments])
  712. -AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl
  713. - i=0
  714. - teststring="ABCD"
  715. -
  716. - case $build_os in
  717. - msdosdjgpp*)
  718. - # On DJGPP, this test can blow up pretty badly due to problems in libc
  719. - # (any single argument exceeding 2000 bytes causes a buffer overrun
  720. - # during glob expansion). Even if it were fixed, the result of this
  721. - # check would be larger than it should be.
  722. - lt_cv_sys_max_cmd_len=12288; # 12K is about right
  723. - ;;
  724. -
  725. - gnu*)
  726. - # Under GNU Hurd, this test is not required because there is
  727. - # no limit to the length of command line arguments.
  728. - # Libtool will interpret -1 as no limit whatsoever
  729. - lt_cv_sys_max_cmd_len=-1;
  730. - ;;
  731. -
  732. - cygwin* | mingw*)
  733. - # On Win9x/ME, this test blows up -- it succeeds, but takes
  734. - # about 5 minutes as the teststring grows exponentially.
  735. - # Worse, since 9x/ME are not pre-emptively multitasking,
  736. - # you end up with a "frozen" computer, even though with patience
  737. - # the test eventually succeeds (with a max line length of 256k).
  738. - # Instead, let's just punt: use the minimum linelength reported by
  739. - # all of the supported platforms: 8192 (on NT/2K/XP).
  740. - lt_cv_sys_max_cmd_len=8192;
  741. - ;;
  742. -
  743. - amigaos*)
  744. - # On AmigaOS with pdksh, this test takes hours, literally.
  745. - # So we just punt and use a minimum line length of 8192.
  746. - lt_cv_sys_max_cmd_len=8192;
  747. - ;;
  748. -
  749. - netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  750. - # This has been around since 386BSD, at least. Likely further.
  751. - if test -x /sbin/sysctl; then
  752. - lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  753. - elif test -x /usr/sbin/sysctl; then
  754. - lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  755. - else
  756. - lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  757. - fi
  758. - # And add a safety zone
  759. - lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  760. - lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  761. - ;;
  762. -
  763. - interix*)
  764. - # We know the value 262144 and hardcode it with a safety zone (like BSD)
  765. - lt_cv_sys_max_cmd_len=196608
  766. - ;;
  767. -
  768. - osf*)
  769. - # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  770. - # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  771. - # nice to cause kernel panics so lets avoid the loop below.
  772. - # First set a reasonable default.
  773. - lt_cv_sys_max_cmd_len=16384
  774. - #
  775. - if test -x /sbin/sysconfig; then
  776. - case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  777. - *1*) lt_cv_sys_max_cmd_len=-1 ;;
  778. - esac
  779. - fi
  780. - ;;
  781. - sco3.2v5*)
  782. - lt_cv_sys_max_cmd_len=102400
  783. - ;;
  784. - sysv5* | sco5v6* | sysv4.2uw2*)
  785. - kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  786. - if test -n "$kargmax"; then
  787. - lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[ ]]//'`
  788. - else
  789. - lt_cv_sys_max_cmd_len=32768
  790. - fi
  791. - ;;
  792. - *)
  793. - # If test is not a shell built-in, we'll probably end up computing a
  794. - # maximum length that is only half of the actual maximum length, but
  795. - # we can't tell.
  796. - SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  797. - while (test "X"`$SHELL [$]0 --fallback-echo "X$teststring" 2>/dev/null` \
  798. - = "XX$teststring") >/dev/null 2>&1 &&
  799. - new_result=`expr "X$teststring" : ".*" 2>&1` &&
  800. - lt_cv_sys_max_cmd_len=$new_result &&
  801. - test $i != 17 # 1/2 MB should be enough
  802. - do
  803. - i=`expr $i + 1`
  804. - teststring=$teststring$teststring
  805. - done
  806. - teststring=
  807. - # Add a significant safety factor because C++ compilers can tack on massive
  808. - # amounts of additional arguments before passing them to the linker.
  809. - # It appears as though 1/2 is a usable value.
  810. - lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  811. - ;;
  812. - esac
  813. -])
  814. -if test -n $lt_cv_sys_max_cmd_len ; then
  815. - AC_MSG_RESULT($lt_cv_sys_max_cmd_len)
  816. -else
  817. - AC_MSG_RESULT(none)
  818. -fi
  819. -])# AC_LIBTOOL_SYS_MAX_CMD_LEN
  820. -
  821. -
  822. -# _LT_AC_CHECK_DLFCN
  823. -# ------------------
  824. -AC_DEFUN([_LT_AC_CHECK_DLFCN],
  825. -[AC_CHECK_HEADERS(dlfcn.h)dnl
  826. -])# _LT_AC_CHECK_DLFCN
  827. -
  828. -
  829. -# _LT_AC_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
  830. -# ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
  831. -# ---------------------------------------------------------------------
  832. -AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF],
  833. -[AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
  834. -if test "$cross_compiling" = yes; then :
  835. - [$4]
  836. -else
  837. - lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  838. - lt_status=$lt_dlunknown
  839. - cat > conftest.$ac_ext <<EOF
  840. -[#line __oline__ "configure"
  841. -#include "confdefs.h"
  842. -
  843. -#if HAVE_DLFCN_H
  844. -#include <dlfcn.h>
  845. -#endif
  846. -
  847. -#include <stdio.h>
  848. -
  849. -#ifdef RTLD_GLOBAL
  850. -# define LT_DLGLOBAL RTLD_GLOBAL
  851. -#else
  852. -# ifdef DL_GLOBAL
  853. -# define LT_DLGLOBAL DL_GLOBAL
  854. -# else
  855. -# define LT_DLGLOBAL 0
  856. -# endif
  857. -#endif
  858. -
  859. -/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  860. - find out it does not work in some platform. */
  861. -#ifndef LT_DLLAZY_OR_NOW
  862. -# ifdef RTLD_LAZY
  863. -# define LT_DLLAZY_OR_NOW RTLD_LAZY
  864. -# else
  865. -# ifdef DL_LAZY
  866. -# define LT_DLLAZY_OR_NOW DL_LAZY
  867. -# else
  868. -# ifdef RTLD_NOW
  869. -# define LT_DLLAZY_OR_NOW RTLD_NOW
  870. -# else
  871. -# ifdef DL_NOW
  872. -# define LT_DLLAZY_OR_NOW DL_NOW
  873. -# else
  874. -# define LT_DLLAZY_OR_NOW 0
  875. -# endif
  876. -# endif
  877. -# endif
  878. -# endif
  879. -#endif
  880. -
  881. -#ifdef __cplusplus
  882. -extern "C" void exit (int);
  883. -#endif
  884. -
  885. -void fnord() { int i=42;}
  886. -int main ()
  887. -{
  888. - void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  889. - int status = $lt_dlunknown;
  890. -
  891. - if (self)
  892. - {
  893. - if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  894. - else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  895. - /* dlclose (self); */
  896. - }
  897. - else
  898. - puts (dlerror ());
  899. -
  900. - exit (status);
  901. -}]
  902. -EOF
  903. - if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then
  904. - (./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null
  905. - lt_status=$?
  906. - case x$lt_status in
  907. - x$lt_dlno_uscore) $1 ;;
  908. - x$lt_dlneed_uscore) $2 ;;
  909. - x$lt_dlunknown|x*) $3 ;;
  910. - esac
  911. - else :
  912. - # compilation failed
  913. - $3
  914. - fi
  915. -fi
  916. -rm -fr conftest*
  917. -])# _LT_AC_TRY_DLOPEN_SELF
  918. -
  919. -
  920. -# AC_LIBTOOL_DLOPEN_SELF
  921. -# ----------------------
  922. -AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF],
  923. -[AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
  924. -if test "x$enable_dlopen" != xyes; then
  925. - enable_dlopen=unknown
  926. - enable_dlopen_self=unknown
  927. - enable_dlopen_self_static=unknown
  928. -else
  929. - lt_cv_dlopen=no
  930. - lt_cv_dlopen_libs=
  931. -
  932. - case $host_os in
  933. - beos*)
  934. - lt_cv_dlopen="load_add_on"
  935. - lt_cv_dlopen_libs=
  936. - lt_cv_dlopen_self=yes
  937. - ;;
  938. -
  939. - mingw* | pw32*)
  940. - lt_cv_dlopen="LoadLibrary"
  941. - lt_cv_dlopen_libs=
  942. - ;;
  943. -
  944. - cygwin*)
  945. - lt_cv_dlopen="dlopen"
  946. - lt_cv_dlopen_libs=
  947. - ;;
  948. -
  949. - darwin*)
  950. - # if libdl is installed we need to link against it
  951. - AC_CHECK_LIB([dl], [dlopen],
  952. - [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],[
  953. - lt_cv_dlopen="dyld"
  954. - lt_cv_dlopen_libs=
  955. - lt_cv_dlopen_self=yes
  956. - ])
  957. - ;;
  958. -
  959. - *)
  960. - AC_CHECK_FUNC([shl_load],
  961. - [lt_cv_dlopen="shl_load"],
  962. - [AC_CHECK_LIB([dld], [shl_load],
  963. - [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"],
  964. - [AC_CHECK_FUNC([dlopen],
  965. - [lt_cv_dlopen="dlopen"],
  966. - [AC_CHECK_LIB([dl], [dlopen],
  967. - [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],
  968. - [AC_CHECK_LIB([svld], [dlopen],
  969. - [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"],
  970. - [AC_CHECK_LIB([dld], [dld_link],
  971. - [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"])
  972. - ])
  973. - ])
  974. - ])
  975. - ])
  976. - ])
  977. - ;;
  978. - esac
  979. -
  980. - if test "x$lt_cv_dlopen" != xno; then
  981. - enable_dlopen=yes
  982. - else
  983. - enable_dlopen=no
  984. - fi
  985. -
  986. - case $lt_cv_dlopen in
  987. - dlopen)
  988. - save_CPPFLAGS="$CPPFLAGS"
  989. - test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  990. -
  991. - save_LDFLAGS="$LDFLAGS"
  992. - wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  993. -
  994. - save_LIBS="$LIBS"
  995. - LIBS="$lt_cv_dlopen_libs $LIBS"
  996. -
  997. - AC_CACHE_CHECK([whether a program can dlopen itself],
  998. - lt_cv_dlopen_self, [dnl
  999. - _LT_AC_TRY_DLOPEN_SELF(
  1000. - lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes,
  1001. - lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross)
  1002. - ])
  1003. -
  1004. - if test "x$lt_cv_dlopen_self" = xyes; then
  1005. - wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  1006. - AC_CACHE_CHECK([whether a statically linked program can dlopen itself],
  1007. - lt_cv_dlopen_self_static, [dnl
  1008. - _LT_AC_TRY_DLOPEN_SELF(
  1009. - lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes,
  1010. - lt_cv_dlopen_self_static=no, lt_cv_dlopen_self_static=cross)
  1011. - ])
  1012. - fi
  1013. -
  1014. - CPPFLAGS="$save_CPPFLAGS"
  1015. - LDFLAGS="$save_LDFLAGS"
  1016. - LIBS="$save_LIBS"
  1017. - ;;
  1018. - esac
  1019. -
  1020. - case $lt_cv_dlopen_self in
  1021. - yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  1022. - *) enable_dlopen_self=unknown ;;
  1023. - esac
  1024. -
  1025. - case $lt_cv_dlopen_self_static in
  1026. - yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  1027. - *) enable_dlopen_self_static=unknown ;;
  1028. - esac
  1029. -fi
  1030. -])# AC_LIBTOOL_DLOPEN_SELF
  1031. -
  1032. -
  1033. -# AC_LIBTOOL_PROG_CC_C_O([TAGNAME])
  1034. -# ---------------------------------
  1035. -# Check to see if options -c and -o are simultaneously supported by compiler
  1036. -AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O],
  1037. -[AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
  1038. -AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext],
  1039. - [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)],
  1040. - [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no
  1041. - $rm -r conftest 2>/dev/null
  1042. - mkdir conftest
  1043. - cd conftest
  1044. - mkdir out
  1045. - printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  1046. -
  1047. - lt_compiler_flag="-o out/conftest2.$ac_objext"
  1048. - # Insert the option either (1) after the last *FLAGS variable, or
  1049. - # (2) before a word containing "conftest.", or (3) at the end.
  1050. - # Note that $ac_compile itself does not contain backslashes and begins
  1051. - # with a dollar sign (not a hyphen), so the echo should work correctly.
  1052. - lt_compile=`echo "$ac_compile" | $SED \
  1053. - -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  1054. - -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
  1055. - -e 's:$: $lt_compiler_flag:'`
  1056. - (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
  1057. - (eval "$lt_compile" 2>out/conftest.err)
  1058. - ac_status=$?
  1059. - cat out/conftest.err >&AS_MESSAGE_LOG_FD
  1060. - echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
  1061. - if (exit $ac_status) && test -s out/conftest2.$ac_objext
  1062. - then
  1063. - # The compiler can only warn and ignore the option if not recognized
  1064. - # So say no if there are warnings
  1065. - $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  1066. - $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  1067. - if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  1068. - _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
  1069. - fi
  1070. - fi
  1071. - chmod u+w . 2>&AS_MESSAGE_LOG_FD
  1072. - $rm conftest*
  1073. - # SGI C++ compiler will create directory out/ii_files/ for
  1074. - # template instantiation
  1075. - test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
  1076. - $rm out/* && rmdir out
  1077. - cd ..
  1078. - rmdir conftest
  1079. - $rm conftest*
  1080. -])
  1081. -])# AC_LIBTOOL_PROG_CC_C_O
  1082. -
  1083. -
  1084. -# AC_LIBTOOL_SYS_HARD_LINK_LOCKS([TAGNAME])
  1085. -# -----------------------------------------
  1086. -# Check to see if we can do hard links to lock some files if needed
  1087. -AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS],
  1088. -[AC_REQUIRE([_LT_AC_LOCK])dnl
  1089. -
  1090. -hard_links="nottested"
  1091. -if test "$_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" != no; then
  1092. - # do not overwrite the value of need_locks provided by the user
  1093. - AC_MSG_CHECKING([if we can lock with hard links])
  1094. - hard_links=yes
  1095. - $rm conftest*
  1096. - ln conftest.a conftest.b 2>/dev/null && hard_links=no
  1097. - touch conftest.a
  1098. - ln conftest.a conftest.b 2>&5 || hard_links=no
  1099. - ln conftest.a conftest.b 2>/dev/null && hard_links=no
  1100. - AC_MSG_RESULT([$hard_links])
  1101. - if test "$hard_links" = no; then
  1102. - AC_MSG_WARN([`$CC' does not support `-c -o', so `make -j' may be unsafe])
  1103. - need_locks=warn
  1104. - fi
  1105. -else
  1106. - need_locks=no
  1107. -fi
  1108. -])# AC_LIBTOOL_SYS_HARD_LINK_LOCKS
  1109. -
  1110. -
  1111. -# AC_LIBTOOL_OBJDIR
  1112. -# -----------------
  1113. -AC_DEFUN([AC_LIBTOOL_OBJDIR],
  1114. -[AC_CACHE_CHECK([for objdir], [lt_cv_objdir],
  1115. -[rm -f .libs 2>/dev/null
  1116. -mkdir .libs 2>/dev/null
  1117. -if test -d .libs; then
  1118. - lt_cv_objdir=.libs
  1119. -else
  1120. - # MS-DOS does not allow filenames that begin with a dot.
  1121. - lt_cv_objdir=_libs
  1122. -fi
  1123. -rmdir .libs 2>/dev/null])
  1124. -objdir=$lt_cv_objdir
  1125. -])# AC_LIBTOOL_OBJDIR
  1126. -
  1127. -
  1128. -# AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH([TAGNAME])
  1129. -# ----------------------------------------------
  1130. -# Check hardcoding attributes.
  1131. -AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH],
  1132. -[AC_MSG_CHECKING([how to hardcode library paths into programs])
  1133. -_LT_AC_TAGVAR(hardcode_action, $1)=
  1134. -if test -n "$_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)" || \
  1135. - test -n "$_LT_AC_TAGVAR(runpath_var, $1)" || \
  1136. - test "X$_LT_AC_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then
  1137. -
  1138. - # We can hardcode non-existant directories.
  1139. - if test "$_LT_AC_TAGVAR(hardcode_direct, $1)" != no &&
  1140. - # If the only mechanism to avoid hardcoding is shlibpath_var, we
  1141. - # have to relink, otherwise we might link with an installed library
  1142. - # when we should be linking with a yet-to-be-installed one
  1143. - ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)" != no &&
  1144. - test "$_LT_AC_TAGVAR(hardcode_minus_L, $1)" != no; then
  1145. - # Linking always hardcodes the temporary library directory.
  1146. - _LT_AC_TAGVAR(hardcode_action, $1)=relink
  1147. - else
  1148. - # We can link without hardcoding, and we can hardcode nonexisting dirs.
  1149. - _LT_AC_TAGVAR(hardcode_action, $1)=immediate
  1150. - fi
  1151. -else
  1152. - # We cannot hardcode anything, or else we can only hardcode existing
  1153. - # directories.
  1154. - _LT_AC_TAGVAR(hardcode_action, $1)=unsupported
  1155. -fi
  1156. -AC_MSG_RESULT([$_LT_AC_TAGVAR(hardcode_action, $1)])
  1157. -
  1158. -if test "$_LT_AC_TAGVAR(hardcode_action, $1)" = relink; then
  1159. - # Fast installation is not supported
  1160. - enable_fast_install=no
  1161. -elif test "$shlibpath_overrides_runpath" = yes ||
  1162. - test "$enable_shared" = no; then
  1163. - # Fast installation is not necessary
  1164. - enable_fast_install=needless
  1165. -fi
  1166. -])# AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH
  1167. -
  1168. -
  1169. -# AC_LIBTOOL_SYS_LIB_STRIP
  1170. -# ------------------------
  1171. -AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP],
  1172. -[striplib=
  1173. -old_striplib=
  1174. -AC_MSG_CHECKING([whether stripping libraries is possible])
  1175. -if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
  1176. - test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  1177. - test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  1178. - AC_MSG_RESULT([yes])
  1179. -else
  1180. -# FIXME - insert some real tests, host_os isn't really good enough
  1181. - case $host_os in
  1182. - darwin*)
  1183. - if test -n "$STRIP" ; then
  1184. - striplib="$STRIP -x"
  1185. - AC_MSG_RESULT([yes])
  1186. - else
  1187. - AC_MSG_RESULT([no])
  1188. -fi
  1189. - ;;
  1190. - *)
  1191. - AC_MSG_RESULT([no])
  1192. - ;;
  1193. - esac
  1194. -fi
  1195. -])# AC_LIBTOOL_SYS_LIB_STRIP
  1196. -
  1197. -
  1198. -# AC_LIBTOOL_SYS_DYNAMIC_LINKER
  1199. -# -----------------------------
  1200. -# PORTME Fill in your ld.so characteristics
  1201. -AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER],
  1202. -[AC_MSG_CHECKING([dynamic linker characteristics])
  1203. -library_names_spec=
  1204. -libname_spec='lib$name'
  1205. -soname_spec=
  1206. -shrext_cmds=".so"
  1207. -postinstall_cmds=
  1208. -postuninstall_cmds=
  1209. -finish_cmds=
  1210. -finish_eval=
  1211. -shlibpath_var=
  1212. -shlibpath_overrides_runpath=unknown
  1213. -version_type=none
  1214. -dynamic_linker="$host_os ld.so"
  1215. -sys_lib_dlsearch_path_spec="/lib /usr/lib"
  1216. -if test "$GCC" = yes; then
  1217. - sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  1218. - if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
  1219. - # if the path contains ";" then we assume it to be the separator
  1220. - # otherwise default to the standard path separator (i.e. ":") - it is
  1221. - # assumed that no part of a normal pathname contains ";" but that should
  1222. - # okay in the real world where ";" in dirpaths is itself problematic.
  1223. - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  1224. - else
  1225. - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  1226. - fi
  1227. -else
  1228. - sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  1229. -fi
  1230. -need_lib_prefix=unknown
  1231. -hardcode_into_libs=no
  1232. -
  1233. -# when you set need_version to no, make sure it does not cause -set_version
  1234. -# flags to be left without arguments
  1235. -need_version=unknown
  1236. -
  1237. -case $host_os in
  1238. -aix3*)
  1239. - version_type=linux
  1240. - library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  1241. - shlibpath_var=LIBPATH
  1242. -
  1243. - # AIX 3 has no versioning support, so we append a major version to the name.
  1244. - soname_spec='${libname}${release}${shared_ext}$major'
  1245. - ;;
  1246. -
  1247. -aix4* | aix5*)
  1248. - version_type=linux
  1249. - need_lib_prefix=no
  1250. - need_version=no
  1251. - hardcode_into_libs=yes
  1252. - if test "$host_cpu" = ia64; then
  1253. - # AIX 5 supports IA64
  1254. - library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  1255. - shlibpath_var=LD_LIBRARY_PATH
  1256. - else
  1257. - # With GCC up to 2.95.x, collect2 would create an import file
  1258. - # for dependence libraries. The import file would start with
  1259. - # the line `#! .'. This would cause the generated library to
  1260. - # depend on `.', always an invalid library. This was fixed in
  1261. - # development snapshots of GCC prior to 3.0.
  1262. - case $host_os in
  1263. - aix4 | aix4.[[01]] | aix4.[[01]].*)
  1264. - if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  1265. - echo ' yes '
  1266. - echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
  1267. - :
  1268. - else
  1269. - can_build_shared=no
  1270. - fi
  1271. - ;;
  1272. - esac
  1273. - # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  1274. - # soname into executable. Probably we can add versioning support to
  1275. - # collect2, so additional links can be useful in future.
  1276. - if test "$aix_use_runtimelinking" = yes; then
  1277. - # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  1278. - # instead of lib<name>.a to let people know that these are not
  1279. - # typical AIX shared libraries.
  1280. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  1281. - else
  1282. - # We preserve .a as extension for shared libraries through AIX4.2
  1283. - # and later when we are not doing run time linking.
  1284. - library_names_spec='${libname}${release}.a $libname.a'
  1285. - soname_spec='${libname}${release}${shared_ext}$major'
  1286. - fi
  1287. - shlibpath_var=LIBPATH
  1288. - fi
  1289. - ;;
  1290. -
  1291. -amigaos*)
  1292. - library_names_spec='$libname.ixlibrary $libname.a'
  1293. - # Create ${libname}_ixlibrary.a entries in /sys/libs.
  1294. - 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'
  1295. - ;;
  1296. -
  1297. -beos*)
  1298. - library_names_spec='${libname}${shared_ext}'
  1299. - dynamic_linker="$host_os ld.so"
  1300. - shlibpath_var=LIBRARY_PATH
  1301. - ;;
  1302. -
  1303. -bsdi[[45]]*)
  1304. - version_type=linux
  1305. - need_version=no
  1306. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  1307. - soname_spec='${libname}${release}${shared_ext}$major'
  1308. - finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  1309. - shlibpath_var=LD_LIBRARY_PATH
  1310. - sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  1311. - sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  1312. - # the default ld.so.conf also contains /usr/contrib/lib and
  1313. - # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  1314. - # libtool to hard-code these into programs
  1315. - ;;
  1316. -
  1317. -cygwin* | mingw* | pw32*)
  1318. - version_type=windows
  1319. - shrext_cmds=".dll"
  1320. - need_version=no
  1321. - need_lib_prefix=no
  1322. -
  1323. - case $GCC,$host_os in
  1324. - yes,cygwin* | yes,mingw* | yes,pw32*)
  1325. - library_names_spec='$libname.dll.a'
  1326. - # DLL is installed to $(libdir)/../bin by postinstall_cmds
  1327. - postinstall_cmds='base_file=`basename \${file}`~
  1328. - dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
  1329. - dldir=$destdir/`dirname \$dlpath`~
  1330. - test -d \$dldir || mkdir -p \$dldir~
  1331. - $install_prog $dir/$dlname \$dldir/$dlname~
  1332. - chmod a+x \$dldir/$dlname'
  1333. - postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  1334. - dlpath=$dir/\$dldll~
  1335. - $rm \$dlpath'
  1336. - shlibpath_overrides_runpath=yes
  1337. -
  1338. - case $host_os in
  1339. - cygwin*)
  1340. - # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  1341. - soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  1342. - sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  1343. - ;;
  1344. - mingw*)
  1345. - # MinGW DLLs use traditional 'lib' prefix
  1346. - soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  1347. - sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  1348. - if echo "$sys_lib_search_path_spec" | [grep ';[c-zC-Z]:/' >/dev/null]; then
  1349. - # It is most probably a Windows format PATH printed by
  1350. - # mingw gcc, but we are running on Cygwin. Gcc prints its search
  1351. - # path with ; separators, and with drive letters. We can handle the
  1352. - # drive letters (cygwin fileutils understands them), so leave them,
  1353. - # especially as we might pass files found there to a mingw objdump,
  1354. - # which wouldn't understand a cygwinified path. Ahh.
  1355. - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  1356. - else
  1357. - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  1358. - fi
  1359. - ;;
  1360. - pw32*)
  1361. - # pw32 DLLs use 'pw' prefix rather than 'lib'
  1362. - library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  1363. - ;;
  1364. - esac
  1365. - ;;
  1366. -
  1367. - *)
  1368. - library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $libname.lib'
  1369. - ;;
  1370. - esac
  1371. - dynamic_linker='Win32 ld.exe'
  1372. - # FIXME: first we should search . and the directory the executable is in
  1373. - shlibpath_var=PATH
  1374. - ;;
  1375. -
  1376. -darwin* | rhapsody*)
  1377. - dynamic_linker="$host_os dyld"
  1378. - version_type=darwin
  1379. - need_lib_prefix=no
  1380. - need_version=no
  1381. - library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  1382. - soname_spec='${libname}${release}${major}$shared_ext'
  1383. - shlibpath_overrides_runpath=yes
  1384. - shlibpath_var=DYLD_LIBRARY_PATH
  1385. - shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  1386. - # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
  1387. - if test "$GCC" = yes; then
  1388. - 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"`
  1389. - else
  1390. - sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
  1391. - fi
  1392. - sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  1393. - ;;
  1394. -
  1395. -dgux*)
  1396. - version_type=linux
  1397. - need_lib_prefix=no
  1398. - need_version=no
  1399. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  1400. - soname_spec='${libname}${release}${shared_ext}$major'
  1401. - shlibpath_var=LD_LIBRARY_PATH
  1402. - ;;
  1403. -
  1404. -freebsd1*)
  1405. - dynamic_linker=no
  1406. - ;;
  1407. -
  1408. -kfreebsd*-gnu)
  1409. - version_type=linux
  1410. - need_lib_prefix=no
  1411. - need_version=no
  1412. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  1413. - soname_spec='${libname}${release}${shared_ext}$major'
  1414. - shlibpath_var=LD_LIBRARY_PATH
  1415. - shlibpath_overrides_runpath=no
  1416. - hardcode_into_libs=yes
  1417. - dynamic_linker='GNU ld.so'
  1418. - ;;
  1419. -
  1420. -freebsd* | dragonfly*)
  1421. - # DragonFly does not have aout. When/if they implement a new
  1422. - # versioning mechanism, adjust this.
  1423. - if test -x /usr/bin/objformat; then
  1424. - objformat=`/usr/bin/objformat`
  1425. - else
  1426. - case $host_os in
  1427. - freebsd[[123]]*) objformat=aout ;;
  1428. - *) objformat=elf ;;
  1429. - esac
  1430. - fi
  1431. - version_type=freebsd-$objformat
  1432. - case $version_type in
  1433. - freebsd-elf*)
  1434. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  1435. - need_version=no
  1436. - need_lib_prefix=no
  1437. - ;;
  1438. - freebsd-*)
  1439. - library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  1440. - need_version=yes
  1441. - ;;
  1442. - esac
  1443. - shlibpath_var=LD_LIBRARY_PATH
  1444. - case $host_os in
  1445. - freebsd2*)
  1446. - shlibpath_overrides_runpath=yes
  1447. - ;;
  1448. - freebsd3.[[01]]* | freebsdelf3.[[01]]*)
  1449. - shlibpath_overrides_runpath=yes
  1450. - hardcode_into_libs=yes
  1451. - ;;
  1452. - freebsd3.[[2-9]]* | freebsdelf3.[[2-9]]* | \
  1453. - freebsd4.[[0-5]] | freebsdelf4.[[0-5]] | freebsd4.1.1 | freebsdelf4.1.1)
  1454. - shlibpath_overrides_runpath=no
  1455. - hardcode_into_libs=yes
  1456. - ;;
  1457. - freebsd*) # from 4.6 on
  1458. - shlibpath_overrides_runpath=yes
  1459. - hardcode_into_libs=yes
  1460. - ;;
  1461. - esac
  1462. - ;;
  1463. -
  1464. -gnu*)
  1465. - version_type=linux
  1466. - need_lib_prefix=no
  1467. - need_version=no
  1468. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  1469. - soname_spec='${libname}${release}${shared_ext}$major'
  1470. - shlibpath_var=LD_LIBRARY_PATH
  1471. - hardcode_into_libs=yes
  1472. - ;;
  1473. -
  1474. -hpux9* | hpux10* | hpux11*)
  1475. - # Give a soname corresponding to the major version so that dld.sl refuses to
  1476. - # link against other versions.
  1477. - version_type=sunos
  1478. - need_lib_prefix=no
  1479. - need_version=no
  1480. - case $host_cpu in
  1481. - ia64*)
  1482. - shrext_cmds='.so'
  1483. - hardcode_into_libs=yes
  1484. - dynamic_linker="$host_os dld.so"
  1485. - shlibpath_var=LD_LIBRARY_PATH
  1486. - shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  1487. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  1488. - soname_spec='${libname}${release}${shared_ext}$major'
  1489. - if test "X$HPUX_IA64_MODE" = X32; then
  1490. - sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  1491. - else
  1492. - sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  1493. - fi
  1494. - sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  1495. - ;;
  1496. - hppa*64*)
  1497. - shrext_cmds='.sl'
  1498. - hardcode_into_libs=yes
  1499. - dynamic_linker="$host_os dld.sl"
  1500. - shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  1501. - shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  1502. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  1503. - soname_spec='${libname}${release}${shared_ext}$major'
  1504. - sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  1505. - sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  1506. - ;;
  1507. - *)
  1508. - shrext_cmds='.sl'
  1509. - dynamic_linker="$host_os dld.sl"
  1510. - shlibpath_var=SHLIB_PATH
  1511. - shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  1512. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  1513. - soname_spec='${libname}${release}${shared_ext}$major'
  1514. - ;;
  1515. - esac
  1516. - # HP-UX runs *really* slowly unless shared libraries are mode 555.
  1517. - postinstall_cmds='chmod 555 $lib'
  1518. - ;;
  1519. -
  1520. -interix3*)
  1521. - version_type=linux
  1522. - need_lib_prefix=no
  1523. - need_version=no
  1524. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  1525. - soname_spec='${libname}${release}${shared_ext}$major'
  1526. - dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  1527. - shlibpath_var=LD_LIBRARY_PATH
  1528. - shlibpath_overrides_runpath=no
  1529. - hardcode_into_libs=yes
  1530. - ;;
  1531. -
  1532. -irix5* | irix6* | nonstopux*)
  1533. - case $host_os in
  1534. - nonstopux*) version_type=nonstopux ;;
  1535. - *)
  1536. - if test "$lt_cv_prog_gnu_ld" = yes; then
  1537. - version_type=linux
  1538. - else
  1539. - version_type=irix
  1540. - fi ;;
  1541. - esac
  1542. - need_lib_prefix=no
  1543. - need_version=no
  1544. - soname_spec='${libname}${release}${shared_ext}$major'
  1545. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  1546. - case $host_os in
  1547. - irix5* | nonstopux*)
  1548. - libsuff= shlibsuff=
  1549. - ;;
  1550. - *)
  1551. - case $LD in # libtool.m4 will add one of these switches to LD
  1552. - *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  1553. - libsuff= shlibsuff= libmagic=32-bit;;
  1554. - *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  1555. - libsuff=32 shlibsuff=N32 libmagic=N32;;
  1556. - *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  1557. - libsuff=64 shlibsuff=64 libmagic=64-bit;;
  1558. - *) libsuff= shlibsuff= libmagic=never-match;;
  1559. - esac
  1560. - ;;
  1561. - esac
  1562. - shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  1563. - shlibpath_overrides_runpath=no
  1564. - sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  1565. - sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  1566. - hardcode_into_libs=yes
  1567. - ;;
  1568. -
  1569. -# No shared lib support for Linux oldld, aout, or coff.
  1570. -linux*oldld* | linux*aout* | linux*coff*)
  1571. - dynamic_linker=no
  1572. - ;;
  1573. -
  1574. -# This must be Linux ELF.
  1575. -linux*)
  1576. - version_type=linux
  1577. - need_lib_prefix=no
  1578. - need_version=no
  1579. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  1580. - soname_spec='${libname}${release}${shared_ext}$major'
  1581. - finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  1582. - shlibpath_var=LD_LIBRARY_PATH
  1583. - shlibpath_overrides_runpath=no
  1584. - # This implies no fast_install, which is unacceptable.
  1585. - # Some rework will be needed to allow for fast_install
  1586. - # before this can be enabled.
  1587. - hardcode_into_libs=yes
  1588. -
  1589. - # Append ld.so.conf contents to the search path
  1590. - if test -f /etc/ld.so.conf; then
  1591. - lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \[$]2)); skip = 1; } { if (!skip) print \[$]0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
  1592. - sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  1593. - fi
  1594. -
  1595. - # We used to test for /lib/ld.so.1 and disable shared libraries on
  1596. - # powerpc, because MkLinux only supported shared libraries with the
  1597. - # GNU dynamic linker. Since this was broken with cross compilers,
  1598. - # most powerpc-linux boxes support dynamic linking these days and
  1599. - # people can always --disable-shared, the test was removed, and we
  1600. - # assume the GNU/Linux dynamic linker is in use.
  1601. - dynamic_linker='GNU/Linux ld.so'
  1602. - ;;
  1603. -
  1604. -knetbsd*-gnu)
  1605. - version_type=linux
  1606. - need_lib_prefix=no
  1607. - need_version=no
  1608. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  1609. - soname_spec='${libname}${release}${shared_ext}$major'
  1610. - shlibpath_var=LD_LIBRARY_PATH
  1611. - shlibpath_overrides_runpath=no
  1612. - hardcode_into_libs=yes
  1613. - dynamic_linker='GNU ld.so'
  1614. - ;;
  1615. -
  1616. -netbsd*)
  1617. - version_type=sunos
  1618. - need_lib_prefix=no
  1619. - need_version=no
  1620. - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  1621. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  1622. - finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  1623. - dynamic_linker='NetBSD (a.out) ld.so'
  1624. - else
  1625. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  1626. - soname_spec='${libname}${release}${shared_ext}$major'
  1627. - dynamic_linker='NetBSD ld.elf_so'
  1628. - fi
  1629. - shlibpath_var=LD_LIBRARY_PATH
  1630. - shlibpath_overrides_runpath=yes
  1631. - hardcode_into_libs=yes
  1632. - ;;
  1633. -
  1634. -newsos6)
  1635. - version_type=linux
  1636. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  1637. - shlibpath_var=LD_LIBRARY_PATH
  1638. - shlibpath_overrides_runpath=yes
  1639. - ;;
  1640. -
  1641. -nto-qnx*)
  1642. - version_type=linux
  1643. - need_lib_prefix=no
  1644. - need_version=no
  1645. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  1646. - soname_spec='${libname}${release}${shared_ext}$major'
  1647. - shlibpath_var=LD_LIBRARY_PATH
  1648. - shlibpath_overrides_runpath=yes
  1649. - ;;
  1650. -
  1651. -openbsd*)
  1652. - version_type=sunos
  1653. - sys_lib_dlsearch_path_spec="/usr/lib"
  1654. - need_lib_prefix=no
  1655. - # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  1656. - case $host_os in
  1657. - openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  1658. - *) need_version=no ;;
  1659. - esac
  1660. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  1661. - finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  1662. - shlibpath_var=LD_LIBRARY_PATH
  1663. - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  1664. - case $host_os in
  1665. - openbsd2.[[89]] | openbsd2.[[89]].*)
  1666. - shlibpath_overrides_runpath=no
  1667. - ;;
  1668. - *)
  1669. - shlibpath_overrides_runpath=yes
  1670. - ;;
  1671. - esac
  1672. - else
  1673. - shlibpath_overrides_runpath=yes
  1674. - fi
  1675. - ;;
  1676. -
  1677. -os2*)
  1678. - libname_spec='$name'
  1679. - shrext_cmds=".dll"
  1680. - need_lib_prefix=no
  1681. - library_names_spec='$libname${shared_ext} $libname.a'
  1682. - dynamic_linker='OS/2 ld.exe'
  1683. - shlibpath_var=LIBPATH
  1684. - ;;
  1685. -
  1686. -osf3* | osf4* | osf5*)
  1687. - version_type=osf
  1688. - need_lib_prefix=no
  1689. - need_version=no
  1690. - soname_spec='${libname}${release}${shared_ext}$major'
  1691. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  1692. - shlibpath_var=LD_LIBRARY_PATH
  1693. - sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  1694. - sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  1695. - ;;
  1696. -
  1697. -solaris*)
  1698. - version_type=linux
  1699. - need_lib_prefix=no
  1700. - need_version=no
  1701. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  1702. - soname_spec='${libname}${release}${shared_ext}$major'
  1703. - shlibpath_var=LD_LIBRARY_PATH
  1704. - shlibpath_overrides_runpath=yes
  1705. - hardcode_into_libs=yes
  1706. - # ldd complains unless libraries are executable
  1707. - postinstall_cmds='chmod +x $lib'
  1708. - ;;
  1709. -
  1710. -sunos4*)
  1711. - version_type=sunos
  1712. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  1713. - finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  1714. - shlibpath_var=LD_LIBRARY_PATH
  1715. - shlibpath_overrides_runpath=yes
  1716. - if test "$with_gnu_ld" = yes; then
  1717. - need_lib_prefix=no
  1718. - fi
  1719. - need_version=yes
  1720. - ;;
  1721. -
  1722. -sysv4 | sysv4.3*)
  1723. - version_type=linux
  1724. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  1725. - soname_spec='${libname}${release}${shared_ext}$major'
  1726. - shlibpath_var=LD_LIBRARY_PATH
  1727. - case $host_vendor in
  1728. - sni)
  1729. - shlibpath_overrides_runpath=no
  1730. - need_lib_prefix=no
  1731. - export_dynamic_flag_spec='${wl}-Blargedynsym'
  1732. - runpath_var=LD_RUN_PATH
  1733. - ;;
  1734. - siemens)
  1735. - need_lib_prefix=no
  1736. - ;;
  1737. - motorola)
  1738. - need_lib_prefix=no
  1739. - need_version=no
  1740. - shlibpath_overrides_runpath=no
  1741. - sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  1742. - ;;
  1743. - esac
  1744. - ;;
  1745. -
  1746. -sysv4*MP*)
  1747. - if test -d /usr/nec ;then
  1748. - version_type=linux
  1749. - library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  1750. - soname_spec='$libname${shared_ext}.$major'
  1751. - shlibpath_var=LD_LIBRARY_PATH
  1752. - fi
  1753. - ;;
  1754. -
  1755. -sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  1756. - version_type=freebsd-elf
  1757. - need_lib_prefix=no
  1758. - need_version=no
  1759. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  1760. - soname_spec='${libname}${release}${shared_ext}$major'
  1761. - shlibpath_var=LD_LIBRARY_PATH
  1762. - hardcode_into_libs=yes
  1763. - if test "$with_gnu_ld" = yes; then
  1764. - sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  1765. - shlibpath_overrides_runpath=no
  1766. - else
  1767. - sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  1768. - shlibpath_overrides_runpath=yes
  1769. - case $host_os in
  1770. - sco3.2v5*)
  1771. - sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  1772. - ;;
  1773. - esac
  1774. - fi
  1775. - sys_lib_dlsearch_path_spec='/usr/lib'
  1776. - ;;
  1777. -
  1778. -uts4*)
  1779. - version_type=linux
  1780. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  1781. - soname_spec='${libname}${release}${shared_ext}$major'
  1782. - shlibpath_var=LD_LIBRARY_PATH
  1783. - ;;
  1784. -
  1785. -*)
  1786. - dynamic_linker=no
  1787. - ;;
  1788. -esac
  1789. -AC_MSG_RESULT([$dynamic_linker])
  1790. -test "$dynamic_linker" = no && can_build_shared=no
  1791. -
  1792. -variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  1793. -if test "$GCC" = yes; then
  1794. - variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  1795. -fi
  1796. -])# AC_LIBTOOL_SYS_DYNAMIC_LINKER
  1797. -
  1798. -
  1799. -# _LT_AC_TAGCONFIG
  1800. -# ----------------
  1801. -AC_DEFUN([_LT_AC_TAGCONFIG],
  1802. -[AC_ARG_WITH([tags],
  1803. - [AC_HELP_STRING([--with-tags@<:@=TAGS@:>@],
  1804. - [include additional configurations @<:@automatic@:>@])],
  1805. - [tagnames="$withval"])
  1806. -
  1807. -if test -f "$ltmain" && test -n "$tagnames"; then
  1808. - if test ! -f "${ofile}"; then
  1809. - AC_MSG_WARN([output file `$ofile' does not exist])
  1810. - fi
  1811. -
  1812. - if test -z "$LTCC"; then
  1813. - eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
  1814. - if test -z "$LTCC"; then
  1815. - AC_MSG_WARN([output file `$ofile' does not look like a libtool script])
  1816. - else
  1817. - AC_MSG_WARN([using `LTCC=$LTCC', extracted from `$ofile'])
  1818. - fi
  1819. - fi
  1820. - if test -z "$LTCFLAGS"; then
  1821. - eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
  1822. - fi
  1823. -
  1824. - # Extract list of available tagged configurations in $ofile.
  1825. - # Note that this assumes the entire list is on one line.
  1826. - available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
  1827. -
  1828. - lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  1829. - for tagname in $tagnames; do
  1830. - IFS="$lt_save_ifs"
  1831. - # Check whether tagname contains only valid characters
  1832. - case `$echo "X$tagname" | $Xsed -e 's:[[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]]::g'` in
  1833. - "") ;;
  1834. - *) AC_MSG_ERROR([invalid tag name: $tagname])
  1835. - ;;
  1836. - esac
  1837. -
  1838. - if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
  1839. - then
  1840. - AC_MSG_ERROR([tag name \"$tagname\" already exists])
  1841. - fi
  1842. -
  1843. - # Update the list of available tags.
  1844. - if test -n "$tagname"; then
  1845. - echo appending configuration tag \"$tagname\" to $ofile
  1846. -
  1847. - case $tagname in
  1848. - CXX)
  1849. - if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
  1850. - ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
  1851. - (test "X$CXX" != "Xg++"))) ; then
  1852. - AC_LIBTOOL_LANG_CXX_CONFIG
  1853. - else
  1854. - tagname=""
  1855. - fi
  1856. - ;;
  1857. -
  1858. - F77)
  1859. - if test -n "$F77" && test "X$F77" != "Xno"; then
  1860. - AC_LIBTOOL_LANG_F77_CONFIG
  1861. - else
  1862. - tagname=""
  1863. - fi
  1864. - ;;
  1865. -
  1866. - GCJ)
  1867. - if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
  1868. - AC_LIBTOOL_LANG_GCJ_CONFIG
  1869. - else
  1870. - tagname=""
  1871. - fi
  1872. - ;;
  1873. -
  1874. - RC)
  1875. - AC_LIBTOOL_LANG_RC_CONFIG
  1876. - ;;
  1877. -
  1878. - *)
  1879. - AC_MSG_ERROR([Unsupported tag name: $tagname])
  1880. - ;;
  1881. - esac
  1882. -
  1883. - # Append the new tag name to the list of available tags.
  1884. - if test -n "$tagname" ; then
  1885. - available_tags="$available_tags $tagname"
  1886. - fi
  1887. - fi
  1888. - done
  1889. - IFS="$lt_save_ifs"
  1890. -
  1891. - # Now substitute the updated list of available tags.
  1892. - if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
  1893. - mv "${ofile}T" "$ofile"
  1894. - chmod +x "$ofile"
  1895. - else
  1896. - rm -f "${ofile}T"
  1897. - AC_MSG_ERROR([unable to update list of available tagged configurations.])
  1898. - fi
  1899. -fi
  1900. -])# _LT_AC_TAGCONFIG
  1901. -
  1902. -
  1903. -# AC_LIBTOOL_DLOPEN
  1904. -# -----------------
  1905. -# enable checks for dlopen support
  1906. -AC_DEFUN([AC_LIBTOOL_DLOPEN],
  1907. - [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])
  1908. -])# AC_LIBTOOL_DLOPEN
  1909. -
  1910. -
  1911. -# AC_LIBTOOL_WIN32_DLL
  1912. -# --------------------
  1913. -# declare package support for building win32 DLLs
  1914. -AC_DEFUN([AC_LIBTOOL_WIN32_DLL],
  1915. -[AC_BEFORE([$0], [AC_LIBTOOL_SETUP])
  1916. -])# AC_LIBTOOL_WIN32_DLL
  1917. -
  1918. -
  1919. -# AC_ENABLE_SHARED([DEFAULT])
  1920. -# ---------------------------
  1921. -# implement the --enable-shared flag
  1922. -# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
  1923. -AC_DEFUN([AC_ENABLE_SHARED],
  1924. -[define([AC_ENABLE_SHARED_DEFAULT], ifelse($1, no, no, yes))dnl
  1925. -AC_ARG_ENABLE([shared],
  1926. - [AC_HELP_STRING([--enable-shared@<:@=PKGS@:>@],
  1927. - [build shared libraries @<:@default=]AC_ENABLE_SHARED_DEFAULT[@:>@])],
  1928. - [p=${PACKAGE-default}
  1929. - case $enableval in
  1930. - yes) enable_shared=yes ;;
  1931. - no) enable_shared=no ;;
  1932. - *)
  1933. - enable_shared=no
  1934. - # Look at the argument we got. We use all the common list separators.
  1935. - lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  1936. - for pkg in $enableval; do
  1937. - IFS="$lt_save_ifs"
  1938. - if test "X$pkg" = "X$p"; then
  1939. - enable_shared=yes
  1940. - fi
  1941. - done
  1942. - IFS="$lt_save_ifs"
  1943. - ;;
  1944. - esac],
  1945. - [enable_shared=]AC_ENABLE_SHARED_DEFAULT)
  1946. -])# AC_ENABLE_SHARED
  1947. -
  1948. -
  1949. -# AC_DISABLE_SHARED
  1950. -# -----------------
  1951. -# set the default shared flag to --disable-shared
  1952. -AC_DEFUN([AC_DISABLE_SHARED],
  1953. -[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
  1954. -AC_ENABLE_SHARED(no)
  1955. -])# AC_DISABLE_SHARED
  1956. -
  1957. -
  1958. -# AC_ENABLE_STATIC([DEFAULT])
  1959. -# ---------------------------
  1960. -# implement the --enable-static flag
  1961. -# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
  1962. -AC_DEFUN([AC_ENABLE_STATIC],
  1963. -[define([AC_ENABLE_STATIC_DEFAULT], ifelse($1, no, no, yes))dnl
  1964. -AC_ARG_ENABLE([static],
  1965. - [AC_HELP_STRING([--enable-static@<:@=PKGS@:>@],
  1966. - [build static libraries @<:@default=]AC_ENABLE_STATIC_DEFAULT[@:>@])],
  1967. - [p=${PACKAGE-default}
  1968. - case $enableval in
  1969. - yes) enable_static=yes ;;
  1970. - no) enable_static=no ;;
  1971. - *)
  1972. - enable_static=no
  1973. - # Look at the argument we got. We use all the common list separators.
  1974. - lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  1975. - for pkg in $enableval; do
  1976. - IFS="$lt_save_ifs"
  1977. - if test "X$pkg" = "X$p"; then
  1978. - enable_static=yes
  1979. - fi
  1980. - done
  1981. - IFS="$lt_save_ifs"
  1982. - ;;
  1983. - esac],
  1984. - [enable_static=]AC_ENABLE_STATIC_DEFAULT)
  1985. -])# AC_ENABLE_STATIC
  1986. -
  1987. -
  1988. -# AC_DISABLE_STATIC
  1989. -# -----------------
  1990. -# set the default static flag to --disable-static
  1991. -AC_DEFUN([AC_DISABLE_STATIC],
  1992. -[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
  1993. -AC_ENABLE_STATIC(no)
  1994. -])# AC_DISABLE_STATIC
  1995. -
  1996. -
  1997. -# AC_ENABLE_FAST_INSTALL([DEFAULT])
  1998. -# ---------------------------------
  1999. -# implement the --enable-fast-install flag
  2000. -# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
  2001. -AC_DEFUN([AC_ENABLE_FAST_INSTALL],
  2002. -[define([AC_ENABLE_FAST_INSTALL_DEFAULT], ifelse($1, no, no, yes))dnl
  2003. -AC_ARG_ENABLE([fast-install],
  2004. - [AC_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@],
  2005. - [optimize for fast installation @<:@default=]AC_ENABLE_FAST_INSTALL_DEFAULT[@:>@])],
  2006. - [p=${PACKAGE-default}
  2007. - case $enableval in
  2008. - yes) enable_fast_install=yes ;;
  2009. - no) enable_fast_install=no ;;
  2010. - *)
  2011. - enable_fast_install=no
  2012. - # Look at the argument we got. We use all the common list separators.
  2013. - lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  2014. - for pkg in $enableval; do
  2015. - IFS="$lt_save_ifs"
  2016. - if test "X$pkg" = "X$p"; then
  2017. - enable_fast_install=yes
  2018. - fi
  2019. - done
  2020. - IFS="$lt_save_ifs"
  2021. - ;;
  2022. - esac],
  2023. - [enable_fast_install=]AC_ENABLE_FAST_INSTALL_DEFAULT)
  2024. -])# AC_ENABLE_FAST_INSTALL
  2025. -
  2026. -
  2027. -# AC_DISABLE_FAST_INSTALL
  2028. -# -----------------------
  2029. -# set the default to --disable-fast-install
  2030. -AC_DEFUN([AC_DISABLE_FAST_INSTALL],
  2031. -[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
  2032. -AC_ENABLE_FAST_INSTALL(no)
  2033. -])# AC_DISABLE_FAST_INSTALL
  2034. -
  2035. -
  2036. -# AC_LIBTOOL_PICMODE([MODE])
  2037. -# --------------------------
  2038. -# implement the --with-pic flag
  2039. -# MODE is either `yes' or `no'. If omitted, it defaults to `both'.
  2040. -AC_DEFUN([AC_LIBTOOL_PICMODE],
  2041. -[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
  2042. -pic_mode=ifelse($#,1,$1,default)
  2043. -])# AC_LIBTOOL_PICMODE
  2044. -
  2045. -
  2046. -# AC_PROG_EGREP
  2047. -# -------------
  2048. -# This is predefined starting with Autoconf 2.54, so this conditional
  2049. -# definition can be removed once we require Autoconf 2.54 or later.
  2050. -m4_ifndef([AC_PROG_EGREP], [AC_DEFUN([AC_PROG_EGREP],
  2051. -[AC_CACHE_CHECK([for egrep], [ac_cv_prog_egrep],
  2052. - [if echo a | (grep -E '(a|b)') >/dev/null 2>&1
  2053. - then ac_cv_prog_egrep='grep -E'
  2054. - else ac_cv_prog_egrep='egrep'
  2055. - fi])
  2056. - EGREP=$ac_cv_prog_egrep
  2057. - AC_SUBST([EGREP])
  2058. -])])
  2059. -
  2060. -
  2061. -# AC_PATH_TOOL_PREFIX
  2062. -# -------------------
  2063. -# find a file program which can recognise shared library
  2064. -AC_DEFUN([AC_PATH_TOOL_PREFIX],
  2065. -[AC_REQUIRE([AC_PROG_EGREP])dnl
  2066. -AC_MSG_CHECKING([for $1])
  2067. -AC_CACHE_VAL(lt_cv_path_MAGIC_CMD,
  2068. -[case $MAGIC_CMD in
  2069. -[[\\/*] | ?:[\\/]*])
  2070. - lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  2071. - ;;
  2072. -*)
  2073. - lt_save_MAGIC_CMD="$MAGIC_CMD"
  2074. - lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  2075. -dnl $ac_dummy forces splitting on constant user-supplied paths.
  2076. -dnl POSIX.2 word splitting is done only on the output of word expansions,
  2077. -dnl not every word. This closes a longstanding sh security hole.
  2078. - ac_dummy="ifelse([$2], , $PATH, [$2])"
  2079. - for ac_dir in $ac_dummy; do
  2080. - IFS="$lt_save_ifs"
  2081. - test -z "$ac_dir" && ac_dir=.
  2082. - if test -f $ac_dir/$1; then
  2083. - lt_cv_path_MAGIC_CMD="$ac_dir/$1"
  2084. - if test -n "$file_magic_test_file"; then
  2085. - case $deplibs_check_method in
  2086. - "file_magic "*)
  2087. - file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  2088. - MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  2089. - if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  2090. - $EGREP "$file_magic_regex" > /dev/null; then
  2091. - :
  2092. - else
  2093. - cat <<EOF 1>&2
  2094. -
  2095. -*** Warning: the command libtool uses to detect shared libraries,
  2096. -*** $file_magic_cmd, produces output that libtool cannot recognize.
  2097. -*** The result is that libtool may fail to recognize shared libraries
  2098. -*** as such. This will affect the creation of libtool libraries that
  2099. -*** depend on shared libraries, but programs linked with such libtool
  2100. -*** libraries will work regardless of this problem. Nevertheless, you
  2101. -*** may want to report the problem to your system manager and/or to
  2102. -*** bug-libtool@gnu.org
  2103. -
  2104. -EOF
  2105. - fi ;;
  2106. - esac
  2107. - fi
  2108. - break
  2109. - fi
  2110. - done
  2111. - IFS="$lt_save_ifs"
  2112. - MAGIC_CMD="$lt_save_MAGIC_CMD"
  2113. - ;;
  2114. -esac])
  2115. -MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  2116. -if test -n "$MAGIC_CMD"; then
  2117. - AC_MSG_RESULT($MAGIC_CMD)
  2118. -else
  2119. - AC_MSG_RESULT(no)
  2120. -fi
  2121. -])# AC_PATH_TOOL_PREFIX
  2122. -
  2123. -
  2124. -# AC_PATH_MAGIC
  2125. -# -------------
  2126. -# find a file program which can recognise a shared library
  2127. -AC_DEFUN([AC_PATH_MAGIC],
  2128. -[AC_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH)
  2129. -if test -z "$lt_cv_path_MAGIC_CMD"; then
  2130. - if test -n "$ac_tool_prefix"; then
  2131. - AC_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH)
  2132. - else
  2133. - MAGIC_CMD=:
  2134. - fi
  2135. -fi
  2136. -])# AC_PATH_MAGIC
  2137. -
  2138. -
  2139. -# AC_PROG_LD
  2140. -# ----------
  2141. -# find the pathname to the GNU or non-GNU linker
  2142. -AC_DEFUN([AC_PROG_LD],
  2143. -[AC_ARG_WITH([gnu-ld],
  2144. - [AC_HELP_STRING([--with-gnu-ld],
  2145. - [assume the C compiler uses GNU ld @<:@default=no@:>@])],
  2146. - [test "$withval" = no || with_gnu_ld=yes],
  2147. - [with_gnu_ld=no])
  2148. -AC_REQUIRE([LT_AC_PROG_SED])dnl
  2149. -AC_REQUIRE([AC_PROG_CC])dnl
  2150. -AC_REQUIRE([AC_CANONICAL_HOST])dnl
  2151. -AC_REQUIRE([AC_CANONICAL_BUILD])dnl
  2152. -ac_prog=ld
  2153. -if test "$GCC" = yes; then
  2154. - # Check if gcc -print-prog-name=ld gives a path.
  2155. - AC_MSG_CHECKING([for ld used by $CC])
  2156. - case $host in
  2157. - *-*-mingw*)
  2158. - # gcc leaves a trailing carriage return which upsets mingw
  2159. - ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  2160. - *)
  2161. - ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  2162. - esac
  2163. - case $ac_prog in
  2164. - # Accept absolute paths.
  2165. - [[\\/]]* | ?:[[\\/]]*)
  2166. - re_direlt='/[[^/]][[^/]]*/\.\./'
  2167. - # Canonicalize the pathname of ld
  2168. - ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
  2169. - while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
  2170. - ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
  2171. - done
  2172. - test -z "$LD" && LD="$ac_prog"
  2173. - ;;
  2174. - "")
  2175. - # If it fails, then pretend we aren't using GCC.
  2176. - ac_prog=ld
  2177. - ;;
  2178. - *)
  2179. - # If it is relative, then search for the first ld in PATH.
  2180. - with_gnu_ld=unknown
  2181. - ;;
  2182. - esac
  2183. -elif test "$with_gnu_ld" = yes; then
  2184. - AC_MSG_CHECKING([for GNU ld])
  2185. -else
  2186. - AC_MSG_CHECKING([for non-GNU ld])
  2187. -fi
  2188. -AC_CACHE_VAL(lt_cv_path_LD,
  2189. -[if test -z "$LD"; then
  2190. - lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  2191. - for ac_dir in $PATH; do
  2192. - IFS="$lt_save_ifs"
  2193. - test -z "$ac_dir" && ac_dir=.
  2194. - if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  2195. - lt_cv_path_LD="$ac_dir/$ac_prog"
  2196. - # Check to see if the program is GNU ld. I'd rather use --version,
  2197. - # but apparently some variants of GNU ld only accept -v.
  2198. - # Break only if it was the GNU/non-GNU ld that we prefer.
  2199. - case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  2200. - *GNU* | *'with BFD'*)
  2201. - test "$with_gnu_ld" != no && break
  2202. - ;;
  2203. - *)
  2204. - test "$with_gnu_ld" != yes && break
  2205. - ;;
  2206. - esac
  2207. - fi
  2208. - done
  2209. - IFS="$lt_save_ifs"
  2210. -else
  2211. - lt_cv_path_LD="$LD" # Let the user override the test with a path.
  2212. -fi])
  2213. -LD="$lt_cv_path_LD"
  2214. -if test -n "$LD"; then
  2215. - AC_MSG_RESULT($LD)
  2216. -else
  2217. - AC_MSG_RESULT(no)
  2218. -fi
  2219. -test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])
  2220. -AC_PROG_LD_GNU
  2221. -])# AC_PROG_LD
  2222. -
  2223. -
  2224. -# AC_PROG_LD_GNU
  2225. -# --------------
  2226. -AC_DEFUN([AC_PROG_LD_GNU],
  2227. -[AC_REQUIRE([AC_PROG_EGREP])dnl
  2228. -AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld,
  2229. -[# I'd rather use --version here, but apparently some GNU lds only accept -v.
  2230. -case `$LD -v 2>&1 </dev/null` in
  2231. -*GNU* | *'with BFD'*)
  2232. - lt_cv_prog_gnu_ld=yes
  2233. - ;;
  2234. -*)
  2235. - lt_cv_prog_gnu_ld=no
  2236. - ;;
  2237. -esac])
  2238. -with_gnu_ld=$lt_cv_prog_gnu_ld
  2239. -])# AC_PROG_LD_GNU
  2240. -
  2241. -
  2242. -# AC_PROG_LD_RELOAD_FLAG
  2243. -# ----------------------
  2244. -# find reload flag for linker
  2245. -# -- PORTME Some linkers may need a different reload flag.
  2246. -AC_DEFUN([AC_PROG_LD_RELOAD_FLAG],
  2247. -[AC_CACHE_CHECK([for $LD option to reload object files],
  2248. - lt_cv_ld_reload_flag,
  2249. - [lt_cv_ld_reload_flag='-r'])
  2250. -reload_flag=$lt_cv_ld_reload_flag
  2251. -case $reload_flag in
  2252. -"" | " "*) ;;
  2253. -*) reload_flag=" $reload_flag" ;;
  2254. -esac
  2255. -reload_cmds='$LD$reload_flag -o $output$reload_objs'
  2256. -case $host_os in
  2257. - darwin*)
  2258. - if test "$GCC" = yes; then
  2259. - reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
  2260. - else
  2261. - reload_cmds='$LD$reload_flag -o $output$reload_objs'
  2262. - fi
  2263. - ;;
  2264. -esac
  2265. -])# AC_PROG_LD_RELOAD_FLAG
  2266. -
  2267. -
  2268. -# AC_DEPLIBS_CHECK_METHOD
  2269. -# -----------------------
  2270. -# how to check for library dependencies
  2271. -# -- PORTME fill in with the dynamic library characteristics
  2272. -AC_DEFUN([AC_DEPLIBS_CHECK_METHOD],
  2273. -[AC_CACHE_CHECK([how to recognise dependent libraries],
  2274. -lt_cv_deplibs_check_method,
  2275. -[lt_cv_file_magic_cmd='$MAGIC_CMD'
  2276. -lt_cv_file_magic_test_file=
  2277. -lt_cv_deplibs_check_method='unknown'
  2278. -# Need to set the preceding variable on all platforms that support
  2279. -# interlibrary dependencies.
  2280. -# 'none' -- dependencies not supported.
  2281. -# `unknown' -- same as none, but documents that we really don't know.
  2282. -# 'pass_all' -- all dependencies passed with no checks.
  2283. -# 'test_compile' -- check by making test program.
  2284. -# 'file_magic [[regex]]' -- check by looking for files in library path
  2285. -# which responds to the $file_magic_cmd with a given extended regex.
  2286. -# If you have `file' or equivalent on your system and you're not sure
  2287. -# whether `pass_all' will *always* work, you probably want this one.
  2288. -
  2289. -case $host_os in
  2290. -aix4* | aix5*)
  2291. - lt_cv_deplibs_check_method=pass_all
  2292. - ;;
  2293. -
  2294. -beos*)
  2295. - lt_cv_deplibs_check_method=pass_all
  2296. - ;;
  2297. -
  2298. -bsdi[[45]]*)
  2299. - lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)'
  2300. - lt_cv_file_magic_cmd='/usr/bin/file -L'
  2301. - lt_cv_file_magic_test_file=/shlib/libc.so
  2302. - ;;
  2303. -
  2304. -cygwin*)
  2305. - # func_win32_libid is a shell function defined in ltmain.sh
  2306. - lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  2307. - lt_cv_file_magic_cmd='func_win32_libid'
  2308. - ;;
  2309. -
  2310. -mingw* | pw32*)
  2311. - # Base MSYS/MinGW do not provide the 'file' command needed by
  2312. - # func_win32_libid shell function, so use a weaker test based on 'objdump'.
  2313. - lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
  2314. - lt_cv_file_magic_cmd='$OBJDUMP -f'
  2315. - ;;
  2316. -
  2317. -darwin* | rhapsody*)
  2318. - lt_cv_deplibs_check_method=pass_all
  2319. - ;;
  2320. -
  2321. -freebsd* | kfreebsd*-gnu | dragonfly*)
  2322. - if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
  2323. - case $host_cpu in
  2324. - i*86 )
  2325. - # Not sure whether the presence of OpenBSD here was a mistake.
  2326. - # Let's accept both of them until this is cleared up.
  2327. - lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[[3-9]]86 (compact )?demand paged shared library'
  2328. - lt_cv_file_magic_cmd=/usr/bin/file
  2329. - lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  2330. - ;;
  2331. - esac
  2332. - else
  2333. - lt_cv_deplibs_check_method=pass_all
  2334. - fi
  2335. - ;;
  2336. -
  2337. -gnu*)
  2338. - lt_cv_deplibs_check_method=pass_all
  2339. - ;;
  2340. -
  2341. -hpux10.20* | hpux11*)
  2342. - lt_cv_file_magic_cmd=/usr/bin/file
  2343. - case $host_cpu in
  2344. - ia64*)
  2345. - lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64'
  2346. - lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  2347. - ;;
  2348. - hppa*64*)
  2349. - [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]']
  2350. - lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  2351. - ;;
  2352. - *)
  2353. - lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]].[[0-9]]) shared library'
  2354. - lt_cv_file_magic_test_file=/usr/lib/libc.sl
  2355. - ;;
  2356. - esac
  2357. - ;;
  2358. -
  2359. -interix3*)
  2360. - # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  2361. - lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|\.a)$'
  2362. - ;;
  2363. -
  2364. -irix5* | irix6* | nonstopux*)
  2365. - case $LD in
  2366. - *-32|*"-32 ") libmagic=32-bit;;
  2367. - *-n32|*"-n32 ") libmagic=N32;;
  2368. - *-64|*"-64 ") libmagic=64-bit;;
  2369. - *) libmagic=never-match;;
  2370. - esac
  2371. - lt_cv_deplibs_check_method=pass_all
  2372. - ;;
  2373. -
  2374. -# This must be Linux ELF.
  2375. -linux*)
  2376. - lt_cv_deplibs_check_method=pass_all
  2377. - ;;
  2378. -
  2379. -netbsd*)
  2380. - if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
  2381. - lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
  2382. - else
  2383. - lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$'
  2384. - fi
  2385. - ;;
  2386. -
  2387. -newos6*)
  2388. - lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (executable|dynamic lib)'
  2389. - lt_cv_file_magic_cmd=/usr/bin/file
  2390. - lt_cv_file_magic_test_file=/usr/lib/libnls.so
  2391. - ;;
  2392. -
  2393. -nto-qnx*)
  2394. - lt_cv_deplibs_check_method=unknown
  2395. - ;;
  2396. -
  2397. -openbsd*)
  2398. - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  2399. - lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$'
  2400. - else
  2401. - lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
  2402. - fi
  2403. - ;;
  2404. -
  2405. -osf3* | osf4* | osf5*)
  2406. - lt_cv_deplibs_check_method=pass_all
  2407. - ;;
  2408. -
  2409. -solaris*)
  2410. - lt_cv_deplibs_check_method=pass_all
  2411. - ;;
  2412. -
  2413. -sysv4 | sysv4.3*)
  2414. - case $host_vendor in
  2415. - motorola)
  2416. - 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]]'
  2417. - lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  2418. - ;;
  2419. - ncr)
  2420. - lt_cv_deplibs_check_method=pass_all
  2421. - ;;
  2422. - sequent)
  2423. - lt_cv_file_magic_cmd='/bin/file'
  2424. - lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )'
  2425. - ;;
  2426. - sni)
  2427. - lt_cv_file_magic_cmd='/bin/file'
  2428. - lt_cv_deplibs_check_method="file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB dynamic lib"
  2429. - lt_cv_file_magic_test_file=/lib/libc.so
  2430. - ;;
  2431. - siemens)
  2432. - lt_cv_deplibs_check_method=pass_all
  2433. - ;;
  2434. - pc)
  2435. - lt_cv_deplibs_check_method=pass_all
  2436. - ;;
  2437. - esac
  2438. - ;;
  2439. -
  2440. -sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  2441. - lt_cv_deplibs_check_method=pass_all
  2442. - ;;
  2443. -esac
  2444. -])
  2445. -file_magic_cmd=$lt_cv_file_magic_cmd
  2446. -deplibs_check_method=$lt_cv_deplibs_check_method
  2447. -test -z "$deplibs_check_method" && deplibs_check_method=unknown
  2448. -])# AC_DEPLIBS_CHECK_METHOD
  2449. -
  2450. -
  2451. -# AC_PROG_NM
  2452. -# ----------
  2453. -# find the pathname to a BSD-compatible name lister
  2454. -AC_DEFUN([AC_PROG_NM],
  2455. -[AC_CACHE_CHECK([for BSD-compatible nm], lt_cv_path_NM,
  2456. -[if test -n "$NM"; then
  2457. - # Let the user override the test.
  2458. - lt_cv_path_NM="$NM"
  2459. -else
  2460. - lt_nm_to_check="${ac_tool_prefix}nm"
  2461. - if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  2462. - lt_nm_to_check="$lt_nm_to_check nm"
  2463. - fi
  2464. - for lt_tmp_nm in $lt_nm_to_check; do
  2465. - lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  2466. - for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  2467. - IFS="$lt_save_ifs"
  2468. - test -z "$ac_dir" && ac_dir=.
  2469. - tmp_nm="$ac_dir/$lt_tmp_nm"
  2470. - if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
  2471. - # Check to see if the nm accepts a BSD-compat flag.
  2472. - # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  2473. - # nm: unknown option "B" ignored
  2474. - # Tru64's nm complains that /dev/null is an invalid object file
  2475. - case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
  2476. - */dev/null* | *'Invalid file or object type'*)
  2477. - lt_cv_path_NM="$tmp_nm -B"
  2478. - break
  2479. - ;;
  2480. - *)
  2481. - case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  2482. - */dev/null*)
  2483. - lt_cv_path_NM="$tmp_nm -p"
  2484. - break
  2485. - ;;
  2486. - *)
  2487. - lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  2488. - continue # so that we can try to find one that supports BSD flags
  2489. - ;;
  2490. - esac
  2491. - ;;
  2492. - esac
  2493. - fi
  2494. - done
  2495. - IFS="$lt_save_ifs"
  2496. - done
  2497. - test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
  2498. -fi])
  2499. -NM="$lt_cv_path_NM"
  2500. -])# AC_PROG_NM
  2501. -
  2502. -
  2503. -# AC_CHECK_LIBM
  2504. -# -------------
  2505. -# check for math library
  2506. -AC_DEFUN([AC_CHECK_LIBM],
  2507. -[AC_REQUIRE([AC_CANONICAL_HOST])dnl
  2508. -LIBM=
  2509. -case $host in
  2510. -*-*-beos* | *-*-cygwin* | *-*-pw32* | *-*-darwin*)
  2511. - # These system don't have libm, or don't need it
  2512. - ;;
  2513. -*-ncr-sysv4.3*)
  2514. - AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM="-lmw")
  2515. - AC_CHECK_LIB(m, cos, LIBM="$LIBM -lm")
  2516. - ;;
  2517. -*)
  2518. - AC_CHECK_LIB(m, cos, LIBM="-lm")
  2519. - ;;
  2520. -esac
  2521. -])# AC_CHECK_LIBM
  2522. -
  2523. -
  2524. -# AC_LIBLTDL_CONVENIENCE([DIRECTORY])
  2525. -# -----------------------------------
  2526. -# sets LIBLTDL to the link flags for the libltdl convenience library and
  2527. -# LTDLINCL to the include flags for the libltdl header and adds
  2528. -# --enable-ltdl-convenience to the configure arguments. Note that
  2529. -# AC_CONFIG_SUBDIRS is not called here. If DIRECTORY is not provided,
  2530. -# it is assumed to be `libltdl'. LIBLTDL will be prefixed with
  2531. -# '${top_builddir}/' and LTDLINCL will be prefixed with '${top_srcdir}/'
  2532. -# (note the single quotes!). If your package is not flat and you're not
  2533. -# using automake, define top_builddir and top_srcdir appropriately in
  2534. -# the Makefiles.
  2535. -AC_DEFUN([AC_LIBLTDL_CONVENIENCE],
  2536. -[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
  2537. - case $enable_ltdl_convenience in
  2538. - no) AC_MSG_ERROR([this package needs a convenience libltdl]) ;;
  2539. - "") enable_ltdl_convenience=yes
  2540. - ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
  2541. - esac
  2542. - LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdlc.la
  2543. - LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
  2544. - # For backwards non-gettext consistent compatibility...
  2545. - INCLTDL="$LTDLINCL"
  2546. -])# AC_LIBLTDL_CONVENIENCE
  2547. -
  2548. -
  2549. -# AC_LIBLTDL_INSTALLABLE([DIRECTORY])
  2550. -# -----------------------------------
  2551. -# sets LIBLTDL to the link flags for the libltdl installable library and
  2552. -# LTDLINCL to the include flags for the libltdl header and adds
  2553. -# --enable-ltdl-install to the configure arguments. Note that
  2554. -# AC_CONFIG_SUBDIRS is not called here. If DIRECTORY is not provided,
  2555. -# and an installed libltdl is not found, it is assumed to be `libltdl'.
  2556. -# LIBLTDL will be prefixed with '${top_builddir}/'# and LTDLINCL with
  2557. -# '${top_srcdir}/' (note the single quotes!). If your package is not
  2558. -# flat and you're not using automake, define top_builddir and top_srcdir
  2559. -# appropriately in the Makefiles.
  2560. -# In the future, this macro may have to be called after AC_PROG_LIBTOOL.
  2561. -AC_DEFUN([AC_LIBLTDL_INSTALLABLE],
  2562. -[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
  2563. - AC_CHECK_LIB(ltdl, lt_dlinit,
  2564. - [test x"$enable_ltdl_install" != xyes && enable_ltdl_install=no],
  2565. - [if test x"$enable_ltdl_install" = xno; then
  2566. - AC_MSG_WARN([libltdl not installed, but installation disabled])
  2567. - else
  2568. - enable_ltdl_install=yes
  2569. - fi
  2570. - ])
  2571. - if test x"$enable_ltdl_install" = x"yes"; then
  2572. - ac_configure_args="$ac_configure_args --enable-ltdl-install"
  2573. - LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdl.la
  2574. - LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
  2575. - else
  2576. - ac_configure_args="$ac_configure_args --enable-ltdl-install=no"
  2577. - LIBLTDL="-lltdl"
  2578. - LTDLINCL=
  2579. - fi
  2580. - # For backwards non-gettext consistent compatibility...
  2581. - INCLTDL="$LTDLINCL"
  2582. -])# AC_LIBLTDL_INSTALLABLE
  2583. -
  2584. -
  2585. -# AC_LIBTOOL_CXX
  2586. -# --------------
  2587. -# enable support for C++ libraries
  2588. -AC_DEFUN([AC_LIBTOOL_CXX],
  2589. -[AC_REQUIRE([_LT_AC_LANG_CXX])
  2590. -])# AC_LIBTOOL_CXX
  2591. -
  2592. -
  2593. -# _LT_AC_LANG_CXX
  2594. -# ---------------
  2595. -AC_DEFUN([_LT_AC_LANG_CXX],
  2596. -[AC_REQUIRE([AC_PROG_CXX])
  2597. -AC_REQUIRE([_LT_AC_PROG_CXXCPP])
  2598. -_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}CXX])
  2599. -])# _LT_AC_LANG_CXX
  2600. -
  2601. -# _LT_AC_PROG_CXXCPP
  2602. -# ------------------
  2603. -AC_DEFUN([_LT_AC_PROG_CXXCPP],
  2604. -[
  2605. -AC_REQUIRE([AC_PROG_CXX])
  2606. -if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
  2607. - ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
  2608. - (test "X$CXX" != "Xg++"))) ; then
  2609. - AC_PROG_CXXCPP
  2610. -fi
  2611. -])# _LT_AC_PROG_CXXCPP
  2612. -
  2613. -# AC_LIBTOOL_F77
  2614. -# --------------
  2615. -# enable support for Fortran 77 libraries
  2616. -AC_DEFUN([AC_LIBTOOL_F77],
  2617. -[AC_REQUIRE([_LT_AC_LANG_F77])
  2618. -])# AC_LIBTOOL_F77
  2619. -
  2620. -
  2621. -# _LT_AC_LANG_F77
  2622. -# ---------------
  2623. -AC_DEFUN([_LT_AC_LANG_F77],
  2624. -[AC_REQUIRE([AC_PROG_F77])
  2625. -_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}F77])
  2626. -])# _LT_AC_LANG_F77
  2627. -
  2628. -
  2629. -# AC_LIBTOOL_GCJ
  2630. -# --------------
  2631. -# enable support for GCJ libraries
  2632. -AC_DEFUN([AC_LIBTOOL_GCJ],
  2633. -[AC_REQUIRE([_LT_AC_LANG_GCJ])
  2634. -])# AC_LIBTOOL_GCJ
  2635. -
  2636. -
  2637. -# _LT_AC_LANG_GCJ
  2638. -# ---------------
  2639. -AC_DEFUN([_LT_AC_LANG_GCJ],
  2640. -[AC_PROVIDE_IFELSE([AC_PROG_GCJ],[],
  2641. - [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],[],
  2642. - [AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ],[],
  2643. - [ifdef([AC_PROG_GCJ],[AC_REQUIRE([AC_PROG_GCJ])],
  2644. - [ifdef([A][M_PROG_GCJ],[AC_REQUIRE([A][M_PROG_GCJ])],
  2645. - [AC_REQUIRE([A][C_PROG_GCJ_OR_A][M_PROG_GCJ])])])])])])
  2646. -_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}GCJ])
  2647. -])# _LT_AC_LANG_GCJ
  2648. -
  2649. -
  2650. -# AC_LIBTOOL_RC
  2651. -# -------------
  2652. -# enable support for Windows resource files
  2653. -AC_DEFUN([AC_LIBTOOL_RC],
  2654. -[AC_REQUIRE([LT_AC_PROG_RC])
  2655. -_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}RC])
  2656. -])# AC_LIBTOOL_RC
  2657. -
  2658. -
  2659. -# AC_LIBTOOL_LANG_C_CONFIG
  2660. -# ------------------------
  2661. -# Ensure that the configuration vars for the C compiler are
  2662. -# suitably defined. Those variables are subsequently used by
  2663. -# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
  2664. -AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG], [_LT_AC_LANG_C_CONFIG])
  2665. -AC_DEFUN([_LT_AC_LANG_C_CONFIG],
  2666. -[lt_save_CC="$CC"
  2667. -AC_LANG_PUSH(C)
  2668. -
  2669. -# Source file extension for C test sources.
  2670. -ac_ext=c
  2671. -
  2672. -# Object file extension for compiled C test sources.
  2673. -objext=o
  2674. -_LT_AC_TAGVAR(objext, $1)=$objext
  2675. -
  2676. -# Code to be used in simple compile tests
  2677. -lt_simple_compile_test_code="int some_variable = 0;\n"
  2678. -
  2679. -# Code to be used in simple link tests
  2680. -lt_simple_link_test_code='int main(){return(0);}\n'
  2681. -
  2682. -_LT_AC_SYS_COMPILER
  2683. -
  2684. -# save warnings/boilerplate of simple test code
  2685. -_LT_COMPILER_BOILERPLATE
  2686. -_LT_LINKER_BOILERPLATE
  2687. -
  2688. -AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1)
  2689. -AC_LIBTOOL_PROG_COMPILER_PIC($1)
  2690. -AC_LIBTOOL_PROG_CC_C_O($1)
  2691. -AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
  2692. -AC_LIBTOOL_PROG_LD_SHLIBS($1)
  2693. -AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
  2694. -AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
  2695. -AC_LIBTOOL_SYS_LIB_STRIP
  2696. -AC_LIBTOOL_DLOPEN_SELF
  2697. -
  2698. -# Report which library types will actually be built
  2699. -AC_MSG_CHECKING([if libtool supports shared libraries])
  2700. -AC_MSG_RESULT([$can_build_shared])
  2701. -
  2702. -AC_MSG_CHECKING([whether to build shared libraries])
  2703. -test "$can_build_shared" = "no" && enable_shared=no
  2704. -
  2705. -# On AIX, shared libraries and static libraries use the same namespace, and
  2706. -# are all built from PIC.
  2707. -case $host_os in
  2708. -aix3*)
  2709. - test "$enable_shared" = yes && enable_static=no
  2710. - if test -n "$RANLIB"; then
  2711. - archive_cmds="$archive_cmds~\$RANLIB \$lib"
  2712. - postinstall_cmds='$RANLIB $lib'
  2713. - fi
  2714. - ;;
  2715. -
  2716. -aix4* | aix5*)
  2717. - if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  2718. - test "$enable_shared" = yes && enable_static=no
  2719. - fi
  2720. - ;;
  2721. -esac
  2722. -AC_MSG_RESULT([$enable_shared])
  2723. -
  2724. -AC_MSG_CHECKING([whether to build static libraries])
  2725. -# Make sure either enable_shared or enable_static is yes.
  2726. -test "$enable_shared" = yes || enable_static=yes
  2727. -AC_MSG_RESULT([$enable_static])
  2728. -
  2729. -AC_LIBTOOL_CONFIG($1)
  2730. -
  2731. -AC_LANG_POP
  2732. -CC="$lt_save_CC"
  2733. -])# AC_LIBTOOL_LANG_C_CONFIG
  2734. -
  2735. -
  2736. -# AC_LIBTOOL_LANG_CXX_CONFIG
  2737. -# --------------------------
  2738. -# Ensure that the configuration vars for the C compiler are
  2739. -# suitably defined. Those variables are subsequently used by
  2740. -# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
  2741. -AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG], [_LT_AC_LANG_CXX_CONFIG(CXX)])
  2742. -AC_DEFUN([_LT_AC_LANG_CXX_CONFIG],
  2743. -[AC_LANG_PUSH(C++)
  2744. -AC_REQUIRE([AC_PROG_CXX])
  2745. -AC_REQUIRE([_LT_AC_PROG_CXXCPP])
  2746. -
  2747. -_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  2748. -_LT_AC_TAGVAR(allow_undefined_flag, $1)=
  2749. -_LT_AC_TAGVAR(always_export_symbols, $1)=no
  2750. -_LT_AC_TAGVAR(archive_expsym_cmds, $1)=
  2751. -_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
  2752. -_LT_AC_TAGVAR(hardcode_direct, $1)=no
  2753. -_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
  2754. -_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
  2755. -_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
  2756. -_LT_AC_TAGVAR(hardcode_minus_L, $1)=no
  2757. -_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
  2758. -_LT_AC_TAGVAR(hardcode_automatic, $1)=no
  2759. -_LT_AC_TAGVAR(module_cmds, $1)=
  2760. -_LT_AC_TAGVAR(module_expsym_cmds, $1)=
  2761. -_LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
  2762. -_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
  2763. -_LT_AC_TAGVAR(no_undefined_flag, $1)=
  2764. -_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
  2765. -_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
  2766. -
  2767. -# Dependencies to place before and after the object being linked:
  2768. -_LT_AC_TAGVAR(predep_objects, $1)=
  2769. -_LT_AC_TAGVAR(postdep_objects, $1)=
  2770. -_LT_AC_TAGVAR(predeps, $1)=
  2771. -_LT_AC_TAGVAR(postdeps, $1)=
  2772. -_LT_AC_TAGVAR(compiler_lib_search_path, $1)=
  2773. -
  2774. -# Source file extension for C++ test sources.
  2775. -ac_ext=cpp
  2776. -
  2777. -# Object file extension for compiled C++ test sources.
  2778. -objext=o
  2779. -_LT_AC_TAGVAR(objext, $1)=$objext
  2780. -
  2781. -# Code to be used in simple compile tests
  2782. -lt_simple_compile_test_code="int some_variable = 0;\n"
  2783. -
  2784. -# Code to be used in simple link tests
  2785. -lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }\n'
  2786. -
  2787. -# ltmain only uses $CC for tagged configurations so make sure $CC is set.
  2788. -_LT_AC_SYS_COMPILER
  2789. -
  2790. -# save warnings/boilerplate of simple test code
  2791. -_LT_COMPILER_BOILERPLATE
  2792. -_LT_LINKER_BOILERPLATE
  2793. -
  2794. -# Allow CC to be a program name with arguments.
  2795. -lt_save_CC=$CC
  2796. -lt_save_LD=$LD
  2797. -lt_save_GCC=$GCC
  2798. -GCC=$GXX
  2799. -lt_save_with_gnu_ld=$with_gnu_ld
  2800. -lt_save_path_LD=$lt_cv_path_LD
  2801. -if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
  2802. - lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  2803. -else
  2804. - $as_unset lt_cv_prog_gnu_ld
  2805. -fi
  2806. -if test -n "${lt_cv_path_LDCXX+set}"; then
  2807. - lt_cv_path_LD=$lt_cv_path_LDCXX
  2808. -else
  2809. - $as_unset lt_cv_path_LD
  2810. -fi
  2811. -test -z "${LDCXX+set}" || LD=$LDCXX
  2812. -CC=${CXX-"c++"}
  2813. -compiler=$CC
  2814. -_LT_AC_TAGVAR(compiler, $1)=$CC
  2815. -_LT_CC_BASENAME([$compiler])
  2816. -
  2817. -# We don't want -fno-exception wen compiling C++ code, so set the
  2818. -# no_builtin_flag separately
  2819. -if test "$GXX" = yes; then
  2820. - _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
  2821. -else
  2822. - _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
  2823. -fi
  2824. -
  2825. -if test "$GXX" = yes; then
  2826. - # Set up default GNU C++ configuration
  2827. -
  2828. - AC_PROG_LD
  2829. -
  2830. - # Check if GNU C++ uses GNU ld as the underlying linker, since the
  2831. - # archiving commands below assume that GNU ld is being used.
  2832. - if test "$with_gnu_ld" = yes; then
  2833. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  2834. - _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'
  2835. -
  2836. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
  2837. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  2838. -
  2839. - # If archive_cmds runs LD, not CC, wlarc should be empty
  2840. - # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
  2841. - # investigate it a little bit more. (MM)
  2842. - wlarc='${wl}'
  2843. -
  2844. - # ancient GNU ld didn't support --whole-archive et. al.
  2845. - if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
  2846. - grep 'no-whole-archive' > /dev/null; then
  2847. - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  2848. - else
  2849. - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
  2850. - fi
  2851. - else
  2852. - with_gnu_ld=no
  2853. - wlarc=
  2854. -
  2855. - # A generic and very simple default shared library creation
  2856. - # command for GNU C++ for the case where it uses the native
  2857. - # linker, instead of GNU ld. If possible, this setting should
  2858. - # overridden to take advantage of the native linker features on
  2859. - # the platform it is being used on.
  2860. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  2861. - fi
  2862. -
  2863. - # Commands to make compiler produce verbose output that lists
  2864. - # what "hidden" libraries, object files and flags are used when
  2865. - # linking a shared library.
  2866. - output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
  2867. -
  2868. -else
  2869. - GXX=no
  2870. - with_gnu_ld=no
  2871. - wlarc=
  2872. -fi
  2873. -
  2874. -# PORTME: fill in a description of your system's C++ link characteristics
  2875. -AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
  2876. -_LT_AC_TAGVAR(ld_shlibs, $1)=yes
  2877. -case $host_os in
  2878. - aix3*)
  2879. - # FIXME: insert proper C++ library support
  2880. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  2881. - ;;
  2882. - aix4* | aix5*)
  2883. - if test "$host_cpu" = ia64; then
  2884. - # On IA64, the linker does run time linking by default, so we don't
  2885. - # have to do anything special.
  2886. - aix_use_runtimelinking=no
  2887. - exp_sym_flag='-Bexport'
  2888. - no_entry_flag=""
  2889. - else
  2890. - aix_use_runtimelinking=no
  2891. -
  2892. - # Test if we are trying to use run time linking or normal
  2893. - # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  2894. - # need to do runtime linking.
  2895. - case $host_os in aix4.[[23]]|aix4.[[23]].*|aix5*)
  2896. - for ld_flag in $LDFLAGS; do
  2897. - case $ld_flag in
  2898. - *-brtl*)
  2899. - aix_use_runtimelinking=yes
  2900. - break
  2901. - ;;
  2902. - esac
  2903. - done
  2904. - ;;
  2905. - esac
  2906. -
  2907. - exp_sym_flag='-bexport'
  2908. - no_entry_flag='-bnoentry'
  2909. - fi
  2910. -
  2911. - # When large executables or shared objects are built, AIX ld can
  2912. - # have problems creating the table of contents. If linking a library
  2913. - # or program results in "error TOC overflow" add -mminimal-toc to
  2914. - # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  2915. - # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  2916. -
  2917. - _LT_AC_TAGVAR(archive_cmds, $1)=''
  2918. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  2919. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
  2920. - _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
  2921. -
  2922. - if test "$GXX" = yes; then
  2923. - case $host_os in aix4.[[012]]|aix4.[[012]].*)
  2924. - # We only want to do this on AIX 4.2 and lower, the check
  2925. - # below for broken collect2 doesn't work under 4.3+
  2926. - collect2name=`${CC} -print-prog-name=collect2`
  2927. - if test -f "$collect2name" && \
  2928. - strings "$collect2name" | grep resolve_lib_name >/dev/null
  2929. - then
  2930. - # We have reworked collect2
  2931. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  2932. - else
  2933. - # We have old collect2
  2934. - _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
  2935. - # It fails to find uninstalled libraries when the uninstalled
  2936. - # path is not listed in the libpath. Setting hardcode_minus_L
  2937. - # to unsupported forces relinking
  2938. - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
  2939. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  2940. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
  2941. - fi
  2942. - ;;
  2943. - esac
  2944. - shared_flag='-shared'
  2945. - if test "$aix_use_runtimelinking" = yes; then
  2946. - shared_flag="$shared_flag "'${wl}-G'
  2947. - fi
  2948. - else
  2949. - # not using gcc
  2950. - if test "$host_cpu" = ia64; then
  2951. - # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  2952. - # chokes on -Wl,-G. The following line is correct:
  2953. - shared_flag='-G'
  2954. - else
  2955. - if test "$aix_use_runtimelinking" = yes; then
  2956. - shared_flag='${wl}-G'
  2957. - else
  2958. - shared_flag='${wl}-bM:SRE'
  2959. - fi
  2960. - fi
  2961. - fi
  2962. -
  2963. - # It seems that -bexpall does not export symbols beginning with
  2964. - # underscore (_), so it is better to generate a list of symbols to export.
  2965. - _LT_AC_TAGVAR(always_export_symbols, $1)=yes
  2966. - if test "$aix_use_runtimelinking" = yes; then
  2967. - # Warning - without using the other runtime loading flags (-brtl),
  2968. - # -berok will link without error, but may produce a broken library.
  2969. - _LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok'
  2970. - # Determine the default libpath from the value encoded in an empty executable.
  2971. - _LT_AC_SYS_LIBPATH_AIX
  2972. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
  2973. -
  2974. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  2975. - else
  2976. - if test "$host_cpu" = ia64; then
  2977. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
  2978. - _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
  2979. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
  2980. - else
  2981. - # Determine the default libpath from the value encoded in an empty executable.
  2982. - _LT_AC_SYS_LIBPATH_AIX
  2983. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
  2984. - # Warning - without using the other run time loading flags,
  2985. - # -berok will link without error, but may produce a broken library.
  2986. - _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
  2987. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
  2988. - # Exported symbols can be pulled into shared objects from archives
  2989. - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
  2990. - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
  2991. - # This is similar to how AIX traditionally builds its shared libraries.
  2992. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
  2993. - fi
  2994. - fi
  2995. - ;;
  2996. -
  2997. - beos*)
  2998. - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  2999. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
  3000. - # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  3001. - # support --undefined. This deserves some investigation. FIXME
  3002. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  3003. - else
  3004. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  3005. - fi
  3006. - ;;
  3007. -
  3008. - chorus*)
  3009. - case $cc_basename in
  3010. - *)
  3011. - # FIXME: insert proper C++ library support
  3012. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  3013. - ;;
  3014. - esac
  3015. - ;;
  3016. -
  3017. - cygwin* | mingw* | pw32*)
  3018. - # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
  3019. - # as there is no search path for DLLs.
  3020. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  3021. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
  3022. - _LT_AC_TAGVAR(always_export_symbols, $1)=no
  3023. - _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
  3024. -
  3025. - if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
  3026. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  3027. - # If the export-symbols file already is a .def file (1st line
  3028. - # is EXPORTS), use it as is; otherwise, prepend...
  3029. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  3030. - cp $export_symbols $output_objdir/$soname.def;
  3031. - else
  3032. - echo EXPORTS > $output_objdir/$soname.def;
  3033. - cat $export_symbols >> $output_objdir/$soname.def;
  3034. - fi~
  3035. - $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'
  3036. - else
  3037. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  3038. - fi
  3039. - ;;
  3040. - darwin* | rhapsody*)
  3041. - case $host_os in
  3042. - rhapsody* | darwin1.[[012]])
  3043. - _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}suppress'
  3044. - ;;
  3045. - *) # Darwin 1.3 on
  3046. - if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
  3047. - _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  3048. - else
  3049. - case ${MACOSX_DEPLOYMENT_TARGET} in
  3050. - 10.[[012]])
  3051. - _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  3052. - ;;
  3053. - 10.*)
  3054. - _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}dynamic_lookup'
  3055. - ;;
  3056. - esac
  3057. - fi
  3058. - ;;
  3059. - esac
  3060. - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  3061. - _LT_AC_TAGVAR(hardcode_direct, $1)=no
  3062. - _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
  3063. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
  3064. - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=''
  3065. - _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
  3066. -
  3067. - if test "$GXX" = yes ; then
  3068. - lt_int_apple_cc_single_mod=no
  3069. - output_verbose_link_cmd='echo'
  3070. - if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
  3071. - lt_int_apple_cc_single_mod=yes
  3072. - fi
  3073. - if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
  3074. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
  3075. - else
  3076. - _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'
  3077. - fi
  3078. - _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  3079. - # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  3080. - if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
  3081. - _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}'
  3082. - else
  3083. - _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}'
  3084. - fi
  3085. - _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}'
  3086. - else
  3087. - case $cc_basename in
  3088. - xlc*)
  3089. - output_verbose_link_cmd='echo'
  3090. - _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'
  3091. - _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  3092. - # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  3093. - _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}'
  3094. - _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}'
  3095. - ;;
  3096. - *)
  3097. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  3098. - ;;
  3099. - esac
  3100. - fi
  3101. - ;;
  3102. -
  3103. - dgux*)
  3104. - case $cc_basename in
  3105. - ec++*)
  3106. - # FIXME: insert proper C++ library support
  3107. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  3108. - ;;
  3109. - ghcx*)
  3110. - # Green Hills C++ Compiler
  3111. - # FIXME: insert proper C++ library support
  3112. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  3113. - ;;
  3114. - *)
  3115. - # FIXME: insert proper C++ library support
  3116. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  3117. - ;;
  3118. - esac
  3119. - ;;
  3120. - freebsd[[12]]*)
  3121. - # C++ shared libraries reported to be fairly broken before switch to ELF
  3122. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  3123. - ;;
  3124. - freebsd-elf*)
  3125. - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  3126. - ;;
  3127. - freebsd* | kfreebsd*-gnu | dragonfly*)
  3128. - # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
  3129. - # conventions
  3130. - _LT_AC_TAGVAR(ld_shlibs, $1)=yes
  3131. - ;;
  3132. - gnu*)
  3133. - ;;
  3134. - hpux9*)
  3135. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  3136. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  3137. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  3138. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  3139. - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
  3140. - # but as the default
  3141. - # location of the library.
  3142. -
  3143. - case $cc_basename in
  3144. - CC*)
  3145. - # FIXME: insert proper C++ library support
  3146. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  3147. - ;;
  3148. - aCC*)
  3149. - _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'
  3150. - # Commands to make compiler produce verbose output that lists
  3151. - # what "hidden" libraries, object files and flags are used when
  3152. - # linking a shared library.
  3153. - #
  3154. - # There doesn't appear to be a way to prevent this compiler from
  3155. - # explicitly linking system object files so we need to strip them
  3156. - # from the output so that they don't get included in the library
  3157. - # dependencies.
  3158. - 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'
  3159. - ;;
  3160. - *)
  3161. - if test "$GXX" = yes; then
  3162. - _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'
  3163. - else
  3164. - # FIXME: insert proper C++ library support
  3165. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  3166. - fi
  3167. - ;;
  3168. - esac
  3169. - ;;
  3170. - hpux10*|hpux11*)
  3171. - if test $with_gnu_ld = no; then
  3172. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  3173. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  3174. -
  3175. - case $host_cpu in
  3176. - hppa*64*|ia64*)
  3177. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
  3178. - ;;
  3179. - *)
  3180. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  3181. - ;;
  3182. - esac
  3183. - fi
  3184. - case $host_cpu in
  3185. - hppa*64*|ia64*)
  3186. - _LT_AC_TAGVAR(hardcode_direct, $1)=no
  3187. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  3188. - ;;
  3189. - *)
  3190. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  3191. - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
  3192. - # but as the default
  3193. - # location of the library.
  3194. - ;;
  3195. - esac
  3196. -
  3197. - case $cc_basename in
  3198. - CC*)
  3199. - # FIXME: insert proper C++ library support
  3200. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  3201. - ;;
  3202. - aCC*)
  3203. - case $host_cpu in
  3204. - hppa*64*)
  3205. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  3206. - ;;
  3207. - ia64*)
  3208. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  3209. - ;;
  3210. - *)
  3211. - _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'
  3212. - ;;
  3213. - esac
  3214. - # Commands to make compiler produce verbose output that lists
  3215. - # what "hidden" libraries, object files and flags are used when
  3216. - # linking a shared library.
  3217. - #
  3218. - # There doesn't appear to be a way to prevent this compiler from
  3219. - # explicitly linking system object files so we need to strip them
  3220. - # from the output so that they don't get included in the library
  3221. - # dependencies.
  3222. - 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'
  3223. - ;;
  3224. - *)
  3225. - if test "$GXX" = yes; then
  3226. - if test $with_gnu_ld = no; then
  3227. - case $host_cpu in
  3228. - hppa*64*)
  3229. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  3230. - ;;
  3231. - ia64*)
  3232. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  3233. - ;;
  3234. - *)
  3235. - _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'
  3236. - ;;
  3237. - esac
  3238. - fi
  3239. - else
  3240. - # FIXME: insert proper C++ library support
  3241. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  3242. - fi
  3243. - ;;
  3244. - esac
  3245. - ;;
  3246. - interix3*)
  3247. - _LT_AC_TAGVAR(hardcode_direct, $1)=no
  3248. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  3249. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  3250. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  3251. - # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  3252. - # Instead, shared libraries are loaded at an image base (0x10000000 by
  3253. - # default) and relocated if they conflict, which is a slow very memory
  3254. - # consuming and fragmenting process. To avoid this, we pick a random,
  3255. - # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  3256. - # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  3257. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  3258. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  3259. - ;;
  3260. - irix5* | irix6*)
  3261. - case $cc_basename in
  3262. - CC*)
  3263. - # SGI C++
  3264. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
  3265. -
  3266. - # Archives containing C++ object files must be created using
  3267. - # "CC -ar", where "CC" is the IRIX C++ compiler. This is
  3268. - # necessary to make sure instantiated templates are included
  3269. - # in the archive.
  3270. - _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs'
  3271. - ;;
  3272. - *)
  3273. - if test "$GXX" = yes; then
  3274. - if test "$with_gnu_ld" = no; then
  3275. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  3276. - else
  3277. - _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'
  3278. - fi
  3279. - fi
  3280. - _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
  3281. - ;;
  3282. - esac
  3283. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  3284. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  3285. - ;;
  3286. - linux*)
  3287. - case $cc_basename in
  3288. - KCC*)
  3289. - # Kuck and Associates, Inc. (KAI) C++ Compiler
  3290. -
  3291. - # KCC will only create a shared library if the output file
  3292. - # ends with ".so" (or ".sl" for HP-UX), so rename the library
  3293. - # to its proper name (with version) after linking.
  3294. - _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'
  3295. - _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'
  3296. - # Commands to make compiler produce verbose output that lists
  3297. - # what "hidden" libraries, object files and flags are used when
  3298. - # linking a shared library.
  3299. - #
  3300. - # There doesn't appear to be a way to prevent this compiler from
  3301. - # explicitly linking system object files so we need to strip them
  3302. - # from the output so that they don't get included in the library
  3303. - # dependencies.
  3304. - 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'
  3305. -
  3306. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath,$libdir'
  3307. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  3308. -
  3309. - # Archives containing C++ object files must be created using
  3310. - # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  3311. - _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
  3312. - ;;
  3313. - icpc*)
  3314. - # Intel C++
  3315. - with_gnu_ld=yes
  3316. - # version 8.0 and above of icpc choke on multiply defined symbols
  3317. - # if we add $predep_objects and $postdep_objects, however 7.1 and
  3318. - # earlier do not add the objects themselves.
  3319. - case `$CC -V 2>&1` in
  3320. - *"Version 7."*)
  3321. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  3322. - _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'
  3323. - ;;
  3324. - *) # Version 8.0 or newer
  3325. - tmp_idyn=
  3326. - case $host_cpu in
  3327. - ia64*) tmp_idyn=' -i_dynamic';;
  3328. - esac
  3329. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  3330. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  3331. - ;;
  3332. - esac
  3333. - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  3334. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  3335. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  3336. - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  3337. - ;;
  3338. - pgCC*)
  3339. - # Portland Group C++ compiler
  3340. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  3341. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
  3342. -
  3343. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
  3344. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  3345. - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
  3346. - ;;
  3347. - cxx*)
  3348. - # Compaq C++
  3349. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  3350. - _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'
  3351. -
  3352. - runpath_var=LD_RUN_PATH
  3353. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
  3354. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  3355. -
  3356. - # Commands to make compiler produce verbose output that lists
  3357. - # what "hidden" libraries, object files and flags are used when
  3358. - # linking a shared library.
  3359. - #
  3360. - # There doesn't appear to be a way to prevent this compiler from
  3361. - # explicitly linking system object files so we need to strip them
  3362. - # from the output so that they don't get included in the library
  3363. - # dependencies.
  3364. - 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'
  3365. - ;;
  3366. - esac
  3367. - ;;
  3368. - lynxos*)
  3369. - # FIXME: insert proper C++ library support
  3370. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  3371. - ;;
  3372. - m88k*)
  3373. - # FIXME: insert proper C++ library support
  3374. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  3375. - ;;
  3376. - mvs*)
  3377. - case $cc_basename in
  3378. - cxx*)
  3379. - # FIXME: insert proper C++ library support
  3380. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  3381. - ;;
  3382. - *)
  3383. - # FIXME: insert proper C++ library support
  3384. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  3385. - ;;
  3386. - esac
  3387. - ;;
  3388. - netbsd*)
  3389. - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  3390. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
  3391. - wlarc=
  3392. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  3393. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  3394. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  3395. - fi
  3396. - # Workaround some broken pre-1.5 toolchains
  3397. - output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
  3398. - ;;
  3399. - openbsd2*)
  3400. - # C++ shared libraries are fairly broken
  3401. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  3402. - ;;
  3403. - openbsd*)
  3404. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  3405. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  3406. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  3407. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  3408. - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  3409. - _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'
  3410. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  3411. - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  3412. - fi
  3413. - output_verbose_link_cmd='echo'
  3414. - ;;
  3415. - osf3*)
  3416. - case $cc_basename in
  3417. - KCC*)
  3418. - # Kuck and Associates, Inc. (KAI) C++ Compiler
  3419. -
  3420. - # KCC will only create a shared library if the output file
  3421. - # ends with ".so" (or ".sl" for HP-UX), so rename the library
  3422. - # to its proper name (with version) after linking.
  3423. - _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'
  3424. -
  3425. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  3426. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  3427. -
  3428. - # Archives containing C++ object files must be created using
  3429. - # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  3430. - _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
  3431. -
  3432. - ;;
  3433. - RCC*)
  3434. - # Rational C++ 2.4.1
  3435. - # FIXME: insert proper C++ library support
  3436. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  3437. - ;;
  3438. - cxx*)
  3439. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
  3440. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
  3441. -
  3442. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  3443. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  3444. -
  3445. - # Commands to make compiler produce verbose output that lists
  3446. - # what "hidden" libraries, object files and flags are used when
  3447. - # linking a shared library.
  3448. - #
  3449. - # There doesn't appear to be a way to prevent this compiler from
  3450. - # explicitly linking system object files so we need to strip them
  3451. - # from the output so that they don't get included in the library
  3452. - # dependencies.
  3453. - 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'
  3454. - ;;
  3455. - *)
  3456. - if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  3457. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
  3458. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  3459. -
  3460. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  3461. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  3462. -
  3463. - # Commands to make compiler produce verbose output that lists
  3464. - # what "hidden" libraries, object files and flags are used when
  3465. - # linking a shared library.
  3466. - output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
  3467. -
  3468. - else
  3469. - # FIXME: insert proper C++ library support
  3470. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  3471. - fi
  3472. - ;;
  3473. - esac
  3474. - ;;
  3475. - osf4* | osf5*)
  3476. - case $cc_basename in
  3477. - KCC*)
  3478. - # Kuck and Associates, Inc. (KAI) C++ Compiler
  3479. -
  3480. - # KCC will only create a shared library if the output file
  3481. - # ends with ".so" (or ".sl" for HP-UX), so rename the library
  3482. - # to its proper name (with version) after linking.
  3483. - _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'
  3484. -
  3485. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  3486. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  3487. -
  3488. - # Archives containing C++ object files must be created using
  3489. - # the KAI C++ compiler.
  3490. - _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs'
  3491. - ;;
  3492. - RCC*)
  3493. - # Rational C++ 2.4.1
  3494. - # FIXME: insert proper C++ library support
  3495. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  3496. - ;;
  3497. - cxx*)
  3498. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
  3499. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
  3500. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
  3501. - echo "-hidden">> $lib.exp~
  3502. - $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~
  3503. - $rm $lib.exp'
  3504. -
  3505. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
  3506. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  3507. -
  3508. - # Commands to make compiler produce verbose output that lists
  3509. - # what "hidden" libraries, object files and flags are used when
  3510. - # linking a shared library.
  3511. - #
  3512. - # There doesn't appear to be a way to prevent this compiler from
  3513. - # explicitly linking system object files so we need to strip them
  3514. - # from the output so that they don't get included in the library
  3515. - # dependencies.
  3516. - 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'
  3517. - ;;
  3518. - *)
  3519. - if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  3520. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
  3521. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  3522. -
  3523. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  3524. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  3525. -
  3526. - # Commands to make compiler produce verbose output that lists
  3527. - # what "hidden" libraries, object files and flags are used when
  3528. - # linking a shared library.
  3529. - output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
  3530. -
  3531. - else
  3532. - # FIXME: insert proper C++ library support
  3533. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  3534. - fi
  3535. - ;;
  3536. - esac
  3537. - ;;
  3538. - psos*)
  3539. - # FIXME: insert proper C++ library support
  3540. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  3541. - ;;
  3542. - sunos4*)
  3543. - case $cc_basename in
  3544. - CC*)
  3545. - # Sun C++ 4.x
  3546. - # FIXME: insert proper C++ library support
  3547. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  3548. - ;;
  3549. - lcc*)
  3550. - # Lucid
  3551. - # FIXME: insert proper C++ library support
  3552. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  3553. - ;;
  3554. - *)
  3555. - # FIXME: insert proper C++ library support
  3556. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  3557. - ;;
  3558. - esac
  3559. - ;;
  3560. - solaris*)
  3561. - case $cc_basename in
  3562. - CC*)
  3563. - # Sun C++ 4.2, 5.x and Centerline C++
  3564. - _LT_AC_TAGVAR(archive_cmds_need_lc,$1)=yes
  3565. - _LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs'
  3566. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  3567. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  3568. - $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'
  3569. -
  3570. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  3571. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  3572. - case $host_os in
  3573. - solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
  3574. - *)
  3575. - # The C++ compiler is used as linker so we must use $wl
  3576. - # flag to pass the commands to the underlying system
  3577. - # linker. We must also pass each convience library through
  3578. - # to the system linker between allextract/defaultextract.
  3579. - # The C++ compiler will combine linker options so we
  3580. - # cannot just pass the convience library names through
  3581. - # without $wl.
  3582. - # Supported since Solaris 2.6 (maybe 2.5.1?)
  3583. - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract'
  3584. - ;;
  3585. - esac
  3586. - _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
  3587. -
  3588. - output_verbose_link_cmd='echo'
  3589. -
  3590. - # Archives containing C++ object files must be created using
  3591. - # "CC -xar", where "CC" is the Sun C++ compiler. This is
  3592. - # necessary to make sure instantiated templates are included
  3593. - # in the archive.
  3594. - _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
  3595. - ;;
  3596. - gcx*)
  3597. - # Green Hills C++ Compiler
  3598. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  3599. -
  3600. - # The C++ compiler must be used to create the archive.
  3601. - _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
  3602. - ;;
  3603. - *)
  3604. - # GNU C++ compiler with Solaris linker
  3605. - if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  3606. - _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs'
  3607. - if $CC --version | grep -v '^2\.7' > /dev/null; then
  3608. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  3609. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  3610. - $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
  3611. -
  3612. - # Commands to make compiler produce verbose output that lists
  3613. - # what "hidden" libraries, object files and flags are used when
  3614. - # linking a shared library.
  3615. - output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
  3616. - else
  3617. - # g++ 2.7 appears to require `-G' NOT `-shared' on this
  3618. - # platform.
  3619. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  3620. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  3621. - $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
  3622. -
  3623. - # Commands to make compiler produce verbose output that lists
  3624. - # what "hidden" libraries, object files and flags are used when
  3625. - # linking a shared library.
  3626. - output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
  3627. - fi
  3628. -
  3629. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir'
  3630. - fi
  3631. - ;;
  3632. - esac
  3633. - ;;
  3634. - sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
  3635. - _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
  3636. - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  3637. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  3638. - runpath_var='LD_RUN_PATH'
  3639. -
  3640. - case $cc_basename in
  3641. - CC*)
  3642. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  3643. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  3644. - ;;
  3645. - *)
  3646. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  3647. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  3648. - ;;
  3649. - esac
  3650. - ;;
  3651. - sysv5* | sco3.2v5* | sco5v6*)
  3652. - # Note: We can NOT use -z defs as we might desire, because we do not
  3653. - # link with -lc, and that would cause any symbols used from libc to
  3654. - # always be unresolved, which means just about no library would
  3655. - # ever link correctly. If we're not using GNU ld we use -z text
  3656. - # though, which does catch some bad symbols but isn't as heavy-handed
  3657. - # as -z defs.
  3658. - # For security reasons, it is highly recommended that you always
  3659. - # use absolute paths for naming shared libraries, and exclude the
  3660. - # DT_RUNPATH tag from executables and libraries. But doing so
  3661. - # requires that you compile everything twice, which is a pain.
  3662. - # So that behaviour is only enabled if SCOABSPATH is set to a
  3663. - # non-empty value in the environment. Most likely only useful for
  3664. - # creating official distributions of packages.
  3665. - # This is a hack until libtool officially supports absolute path
  3666. - # names for shared libraries.
  3667. - _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
  3668. - _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
  3669. - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  3670. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  3671. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
  3672. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
  3673. - _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
  3674. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
  3675. - runpath_var='LD_RUN_PATH'
  3676. -
  3677. - case $cc_basename in
  3678. - CC*)
  3679. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  3680. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  3681. - ;;
  3682. - *)
  3683. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  3684. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  3685. - ;;
  3686. - esac
  3687. - ;;
  3688. - tandem*)
  3689. - case $cc_basename in
  3690. - NCC*)
  3691. - # NonStop-UX NCC 3.20
  3692. - # FIXME: insert proper C++ library support
  3693. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  3694. - ;;
  3695. - *)
  3696. - # FIXME: insert proper C++ library support
  3697. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  3698. - ;;
  3699. - esac
  3700. - ;;
  3701. - vxworks*)
  3702. - # FIXME: insert proper C++ library support
  3703. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  3704. - ;;
  3705. - *)
  3706. - # FIXME: insert proper C++ library support
  3707. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  3708. - ;;
  3709. -esac
  3710. -AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)])
  3711. -test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
  3712. -
  3713. -_LT_AC_TAGVAR(GCC, $1)="$GXX"
  3714. -_LT_AC_TAGVAR(LD, $1)="$LD"
  3715. -
  3716. -AC_LIBTOOL_POSTDEP_PREDEP($1)
  3717. -AC_LIBTOOL_PROG_COMPILER_PIC($1)
  3718. -AC_LIBTOOL_PROG_CC_C_O($1)
  3719. -AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
  3720. -AC_LIBTOOL_PROG_LD_SHLIBS($1)
  3721. -AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
  3722. -AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
  3723. -
  3724. -AC_LIBTOOL_CONFIG($1)
  3725. -
  3726. -AC_LANG_POP
  3727. -CC=$lt_save_CC
  3728. -LDCXX=$LD
  3729. -LD=$lt_save_LD
  3730. -GCC=$lt_save_GCC
  3731. -with_gnu_ldcxx=$with_gnu_ld
  3732. -with_gnu_ld=$lt_save_with_gnu_ld
  3733. -lt_cv_path_LDCXX=$lt_cv_path_LD
  3734. -lt_cv_path_LD=$lt_save_path_LD
  3735. -lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  3736. -lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
  3737. -])# AC_LIBTOOL_LANG_CXX_CONFIG
  3738. -
  3739. -# AC_LIBTOOL_POSTDEP_PREDEP([TAGNAME])
  3740. -# ------------------------------------
  3741. -# Figure out "hidden" library dependencies from verbose
  3742. -# compiler output when linking a shared library.
  3743. -# Parse the compiler output and extract the necessary
  3744. -# objects, libraries and library flags.
  3745. -AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP],[
  3746. -dnl we can't use the lt_simple_compile_test_code here,
  3747. -dnl because it contains code intended for an executable,
  3748. -dnl not a library. It's possible we should let each
  3749. -dnl tag define a new lt_????_link_test_code variable,
  3750. -dnl but it's only used here...
  3751. -ifelse([$1],[],[cat > conftest.$ac_ext <<EOF
  3752. -int a;
  3753. -void foo (void) { a = 0; }
  3754. -EOF
  3755. -],[$1],[CXX],[cat > conftest.$ac_ext <<EOF
  3756. -class Foo
  3757. -{
  3758. -public:
  3759. - Foo (void) { a = 0; }
  3760. -private:
  3761. - int a;
  3762. -};
  3763. -EOF
  3764. -],[$1],[F77],[cat > conftest.$ac_ext <<EOF
  3765. - subroutine foo
  3766. - implicit none
  3767. - integer*4 a
  3768. - a=0
  3769. - return
  3770. - end
  3771. -EOF
  3772. -],[$1],[GCJ],[cat > conftest.$ac_ext <<EOF
  3773. -public class foo {
  3774. - private int a;
  3775. - public void bar (void) {
  3776. - a = 0;
  3777. - }
  3778. -};
  3779. -EOF
  3780. -])
  3781. -dnl Parse the compiler output and extract the necessary
  3782. -dnl objects, libraries and library flags.
  3783. -if AC_TRY_EVAL(ac_compile); then
  3784. - # Parse the compiler output and extract the necessary
  3785. - # objects, libraries and library flags.
  3786. -
  3787. - # Sentinel used to keep track of whether or not we are before
  3788. - # the conftest object file.
  3789. - pre_test_object_deps_done=no
  3790. -
  3791. - # The `*' in the case matches for architectures that use `case' in
  3792. - # $output_verbose_cmd can trigger glob expansion during the loop
  3793. - # eval without this substitution.
  3794. - output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
  3795. -
  3796. - for p in `eval $output_verbose_link_cmd`; do
  3797. - case $p in
  3798. -
  3799. - -L* | -R* | -l*)
  3800. - # Some compilers place space between "-{L,R}" and the path.
  3801. - # Remove the space.
  3802. - if test $p = "-L" \
  3803. - || test $p = "-R"; then
  3804. - prev=$p
  3805. - continue
  3806. - else
  3807. - prev=
  3808. - fi
  3809. -
  3810. - if test "$pre_test_object_deps_done" = no; then
  3811. - case $p in
  3812. - -L* | -R*)
  3813. - # Internal compiler library paths should come after those
  3814. - # provided the user. The postdeps already come after the
  3815. - # user supplied libs so there is no need to process them.
  3816. - if test -z "$_LT_AC_TAGVAR(compiler_lib_search_path, $1)"; then
  3817. - _LT_AC_TAGVAR(compiler_lib_search_path, $1)="${prev}${p}"
  3818. - else
  3819. - _LT_AC_TAGVAR(compiler_lib_search_path, $1)="${_LT_AC_TAGVAR(compiler_lib_search_path, $1)} ${prev}${p}"
  3820. - fi
  3821. - ;;
  3822. - # The "-l" case would never come before the object being
  3823. - # linked, so don't bother handling this case.
  3824. - esac
  3825. - else
  3826. - if test -z "$_LT_AC_TAGVAR(postdeps, $1)"; then
  3827. - _LT_AC_TAGVAR(postdeps, $1)="${prev}${p}"
  3828. - else
  3829. - _LT_AC_TAGVAR(postdeps, $1)="${_LT_AC_TAGVAR(postdeps, $1)} ${prev}${p}"
  3830. - fi
  3831. - fi
  3832. - ;;
  3833. -
  3834. - *.$objext)
  3835. - # This assumes that the test object file only shows up
  3836. - # once in the compiler output.
  3837. - if test "$p" = "conftest.$objext"; then
  3838. - pre_test_object_deps_done=yes
  3839. - continue
  3840. - fi
  3841. -
  3842. - if test "$pre_test_object_deps_done" = no; then
  3843. - if test -z "$_LT_AC_TAGVAR(predep_objects, $1)"; then
  3844. - _LT_AC_TAGVAR(predep_objects, $1)="$p"
  3845. - else
  3846. - _LT_AC_TAGVAR(predep_objects, $1)="$_LT_AC_TAGVAR(predep_objects, $1) $p"
  3847. - fi
  3848. - else
  3849. - if test -z "$_LT_AC_TAGVAR(postdep_objects, $1)"; then
  3850. - _LT_AC_TAGVAR(postdep_objects, $1)="$p"
  3851. - else
  3852. - _LT_AC_TAGVAR(postdep_objects, $1)="$_LT_AC_TAGVAR(postdep_objects, $1) $p"
  3853. - fi
  3854. - fi
  3855. - ;;
  3856. -
  3857. - *) ;; # Ignore the rest.
  3858. -
  3859. - esac
  3860. - done
  3861. -
  3862. - # Clean up.
  3863. - rm -f a.out a.exe
  3864. -else
  3865. - echo "libtool.m4: error: problem compiling $1 test program"
  3866. -fi
  3867. -
  3868. -$rm -f confest.$objext
  3869. -
  3870. -# PORTME: override above test on systems where it is broken
  3871. -ifelse([$1],[CXX],
  3872. -[case $host_os in
  3873. -interix3*)
  3874. - # Interix 3.5 installs completely hosed .la files for C++, so rather than
  3875. - # hack all around it, let's just trust "g++" to DTRT.
  3876. - _LT_AC_TAGVAR(predep_objects,$1)=
  3877. - _LT_AC_TAGVAR(postdep_objects,$1)=
  3878. - _LT_AC_TAGVAR(postdeps,$1)=
  3879. - ;;
  3880. -
  3881. -solaris*)
  3882. - case $cc_basename in
  3883. - CC*)
  3884. - # Adding this requires a known-good setup of shared libraries for
  3885. - # Sun compiler versions before 5.6, else PIC objects from an old
  3886. - # archive will be linked into the output, leading to subtle bugs.
  3887. - _LT_AC_TAGVAR(postdeps,$1)='-lCstd -lCrun'
  3888. - ;;
  3889. - esac
  3890. - ;;
  3891. -esac
  3892. -])
  3893. -
  3894. -case " $_LT_AC_TAGVAR(postdeps, $1) " in
  3895. -*" -lc "*) _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no ;;
  3896. -esac
  3897. -])# AC_LIBTOOL_POSTDEP_PREDEP
  3898. -
  3899. -# AC_LIBTOOL_LANG_F77_CONFIG
  3900. -# --------------------------
  3901. -# Ensure that the configuration vars for the C compiler are
  3902. -# suitably defined. Those variables are subsequently used by
  3903. -# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
  3904. -AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG], [_LT_AC_LANG_F77_CONFIG(F77)])
  3905. -AC_DEFUN([_LT_AC_LANG_F77_CONFIG],
  3906. -[AC_REQUIRE([AC_PROG_F77])
  3907. -AC_LANG_PUSH(Fortran 77)
  3908. -
  3909. -_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  3910. -_LT_AC_TAGVAR(allow_undefined_flag, $1)=
  3911. -_LT_AC_TAGVAR(always_export_symbols, $1)=no
  3912. -_LT_AC_TAGVAR(archive_expsym_cmds, $1)=
  3913. -_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
  3914. -_LT_AC_TAGVAR(hardcode_direct, $1)=no
  3915. -_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
  3916. -_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
  3917. -_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
  3918. -_LT_AC_TAGVAR(hardcode_minus_L, $1)=no
  3919. -_LT_AC_TAGVAR(hardcode_automatic, $1)=no
  3920. -_LT_AC_TAGVAR(module_cmds, $1)=
  3921. -_LT_AC_TAGVAR(module_expsym_cmds, $1)=
  3922. -_LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
  3923. -_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
  3924. -_LT_AC_TAGVAR(no_undefined_flag, $1)=
  3925. -_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
  3926. -_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
  3927. -
  3928. -# Source file extension for f77 test sources.
  3929. -ac_ext=f
  3930. -
  3931. -# Object file extension for compiled f77 test sources.
  3932. -objext=o
  3933. -_LT_AC_TAGVAR(objext, $1)=$objext
  3934. -
  3935. -# Code to be used in simple compile tests
  3936. -lt_simple_compile_test_code=" subroutine t\n return\n end\n"
  3937. -
  3938. -# Code to be used in simple link tests
  3939. -lt_simple_link_test_code=" program t\n end\n"
  3940. -
  3941. -# ltmain only uses $CC for tagged configurations so make sure $CC is set.
  3942. -_LT_AC_SYS_COMPILER
  3943. -
  3944. -# save warnings/boilerplate of simple test code
  3945. -_LT_COMPILER_BOILERPLATE
  3946. -_LT_LINKER_BOILERPLATE
  3947. -
  3948. -# Allow CC to be a program name with arguments.
  3949. -lt_save_CC="$CC"
  3950. -CC=${F77-"f77"}
  3951. -compiler=$CC
  3952. -_LT_AC_TAGVAR(compiler, $1)=$CC
  3953. -_LT_CC_BASENAME([$compiler])
  3954. -
  3955. -AC_MSG_CHECKING([if libtool supports shared libraries])
  3956. -AC_MSG_RESULT([$can_build_shared])
  3957. -
  3958. -AC_MSG_CHECKING([whether to build shared libraries])
  3959. -test "$can_build_shared" = "no" && enable_shared=no
  3960. -
  3961. -# On AIX, shared libraries and static libraries use the same namespace, and
  3962. -# are all built from PIC.
  3963. -case $host_os in
  3964. -aix3*)
  3965. - test "$enable_shared" = yes && enable_static=no
  3966. - if test -n "$RANLIB"; then
  3967. - archive_cmds="$archive_cmds~\$RANLIB \$lib"
  3968. - postinstall_cmds='$RANLIB $lib'
  3969. - fi
  3970. - ;;
  3971. -aix4* | aix5*)
  3972. - if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  3973. - test "$enable_shared" = yes && enable_static=no
  3974. - fi
  3975. - ;;
  3976. -esac
  3977. -AC_MSG_RESULT([$enable_shared])
  3978. -
  3979. -AC_MSG_CHECKING([whether to build static libraries])
  3980. -# Make sure either enable_shared or enable_static is yes.
  3981. -test "$enable_shared" = yes || enable_static=yes
  3982. -AC_MSG_RESULT([$enable_static])
  3983. -
  3984. -_LT_AC_TAGVAR(GCC, $1)="$G77"
  3985. -_LT_AC_TAGVAR(LD, $1)="$LD"
  3986. -
  3987. -AC_LIBTOOL_PROG_COMPILER_PIC($1)
  3988. -AC_LIBTOOL_PROG_CC_C_O($1)
  3989. -AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
  3990. -AC_LIBTOOL_PROG_LD_SHLIBS($1)
  3991. -AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
  3992. -AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
  3993. -
  3994. -AC_LIBTOOL_CONFIG($1)
  3995. -
  3996. -AC_LANG_POP
  3997. -CC="$lt_save_CC"
  3998. -])# AC_LIBTOOL_LANG_F77_CONFIG
  3999. -
  4000. -
  4001. -# AC_LIBTOOL_LANG_GCJ_CONFIG
  4002. -# --------------------------
  4003. -# Ensure that the configuration vars for the C compiler are
  4004. -# suitably defined. Those variables are subsequently used by
  4005. -# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
  4006. -AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG], [_LT_AC_LANG_GCJ_CONFIG(GCJ)])
  4007. -AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG],
  4008. -[AC_LANG_SAVE
  4009. -
  4010. -# Source file extension for Java test sources.
  4011. -ac_ext=java
  4012. -
  4013. -# Object file extension for compiled Java test sources.
  4014. -objext=o
  4015. -_LT_AC_TAGVAR(objext, $1)=$objext
  4016. -
  4017. -# Code to be used in simple compile tests
  4018. -lt_simple_compile_test_code="class foo {}\n"
  4019. -
  4020. -# Code to be used in simple link tests
  4021. -lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }\n'
  4022. -
  4023. -# ltmain only uses $CC for tagged configurations so make sure $CC is set.
  4024. -_LT_AC_SYS_COMPILER
  4025. -
  4026. -# save warnings/boilerplate of simple test code
  4027. -_LT_COMPILER_BOILERPLATE
  4028. -_LT_LINKER_BOILERPLATE
  4029. -
  4030. -# Allow CC to be a program name with arguments.
  4031. -lt_save_CC="$CC"
  4032. -CC=${GCJ-"gcj"}
  4033. -compiler=$CC
  4034. -_LT_AC_TAGVAR(compiler, $1)=$CC
  4035. -_LT_CC_BASENAME([$compiler])
  4036. -
  4037. -# GCJ did not exist at the time GCC didn't implicitly link libc in.
  4038. -_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  4039. -
  4040. -_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
  4041. -
  4042. -AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1)
  4043. -AC_LIBTOOL_PROG_COMPILER_PIC($1)
  4044. -AC_LIBTOOL_PROG_CC_C_O($1)
  4045. -AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
  4046. -AC_LIBTOOL_PROG_LD_SHLIBS($1)
  4047. -AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
  4048. -AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
  4049. -
  4050. -AC_LIBTOOL_CONFIG($1)
  4051. -
  4052. -AC_LANG_RESTORE
  4053. -CC="$lt_save_CC"
  4054. -])# AC_LIBTOOL_LANG_GCJ_CONFIG
  4055. -
  4056. -
  4057. -# AC_LIBTOOL_LANG_RC_CONFIG
  4058. -# -------------------------
  4059. -# Ensure that the configuration vars for the Windows resource compiler are
  4060. -# suitably defined. Those variables are subsequently used by
  4061. -# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
  4062. -AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG], [_LT_AC_LANG_RC_CONFIG(RC)])
  4063. -AC_DEFUN([_LT_AC_LANG_RC_CONFIG],
  4064. -[AC_LANG_SAVE
  4065. -
  4066. -# Source file extension for RC test sources.
  4067. -ac_ext=rc
  4068. -
  4069. -# Object file extension for compiled RC test sources.
  4070. -objext=o
  4071. -_LT_AC_TAGVAR(objext, $1)=$objext
  4072. -
  4073. -# Code to be used in simple compile tests
  4074. -lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
  4075. -
  4076. -# Code to be used in simple link tests
  4077. -lt_simple_link_test_code="$lt_simple_compile_test_code"
  4078. -
  4079. -# ltmain only uses $CC for tagged configurations so make sure $CC is set.
  4080. -_LT_AC_SYS_COMPILER
  4081. -
  4082. -# save warnings/boilerplate of simple test code
  4083. -_LT_COMPILER_BOILERPLATE
  4084. -_LT_LINKER_BOILERPLATE
  4085. -
  4086. -# Allow CC to be a program name with arguments.
  4087. -lt_save_CC="$CC"
  4088. -CC=${RC-"windres"}
  4089. -compiler=$CC
  4090. -_LT_AC_TAGVAR(compiler, $1)=$CC
  4091. -_LT_CC_BASENAME([$compiler])
  4092. -_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
  4093. -
  4094. -AC_LIBTOOL_CONFIG($1)
  4095. -
  4096. -AC_LANG_RESTORE
  4097. -CC="$lt_save_CC"
  4098. -])# AC_LIBTOOL_LANG_RC_CONFIG
  4099. -
  4100. -
  4101. -# AC_LIBTOOL_CONFIG([TAGNAME])
  4102. -# ----------------------------
  4103. -# If TAGNAME is not passed, then create an initial libtool script
  4104. -# with a default configuration from the untagged config vars. Otherwise
  4105. -# add code to config.status for appending the configuration named by
  4106. -# TAGNAME from the matching tagged config vars.
  4107. -AC_DEFUN([AC_LIBTOOL_CONFIG],
  4108. -[# The else clause should only fire when bootstrapping the
  4109. -# libtool distribution, otherwise you forgot to ship ltmain.sh
  4110. -# with your package, and you will get complaints that there are
  4111. -# no rules to generate ltmain.sh.
  4112. -if test -f "$ltmain"; then
  4113. - # See if we are running on zsh, and set the options which allow our commands through
  4114. - # without removal of \ escapes.
  4115. - if test -n "${ZSH_VERSION+set}" ; then
  4116. - setopt NO_GLOB_SUBST
  4117. - fi
  4118. - # Now quote all the things that may contain metacharacters while being
  4119. - # careful not to overquote the AC_SUBSTed values. We take copies of the
  4120. - # variables and quote the copies for generation of the libtool script.
  4121. - for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
  4122. - SED SHELL STRIP \
  4123. - libname_spec library_names_spec soname_spec extract_expsyms_cmds \
  4124. - old_striplib striplib file_magic_cmd finish_cmds finish_eval \
  4125. - deplibs_check_method reload_flag reload_cmds need_locks \
  4126. - lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
  4127. - lt_cv_sys_global_symbol_to_c_name_address \
  4128. - sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  4129. - old_postinstall_cmds old_postuninstall_cmds \
  4130. - _LT_AC_TAGVAR(compiler, $1) \
  4131. - _LT_AC_TAGVAR(CC, $1) \
  4132. - _LT_AC_TAGVAR(LD, $1) \
  4133. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1) \
  4134. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1) \
  4135. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1) \
  4136. - _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) \
  4137. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1) \
  4138. - _LT_AC_TAGVAR(thread_safe_flag_spec, $1) \
  4139. - _LT_AC_TAGVAR(whole_archive_flag_spec, $1) \
  4140. - _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1) \
  4141. - _LT_AC_TAGVAR(old_archive_cmds, $1) \
  4142. - _LT_AC_TAGVAR(old_archive_from_new_cmds, $1) \
  4143. - _LT_AC_TAGVAR(predep_objects, $1) \
  4144. - _LT_AC_TAGVAR(postdep_objects, $1) \
  4145. - _LT_AC_TAGVAR(predeps, $1) \
  4146. - _LT_AC_TAGVAR(postdeps, $1) \
  4147. - _LT_AC_TAGVAR(compiler_lib_search_path, $1) \
  4148. - _LT_AC_TAGVAR(archive_cmds, $1) \
  4149. - _LT_AC_TAGVAR(archive_expsym_cmds, $1) \
  4150. - _LT_AC_TAGVAR(postinstall_cmds, $1) \
  4151. - _LT_AC_TAGVAR(postuninstall_cmds, $1) \
  4152. - _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) \
  4153. - _LT_AC_TAGVAR(allow_undefined_flag, $1) \
  4154. - _LT_AC_TAGVAR(no_undefined_flag, $1) \
  4155. - _LT_AC_TAGVAR(export_symbols_cmds, $1) \
  4156. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) \
  4157. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1) \
  4158. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1) \
  4159. - _LT_AC_TAGVAR(hardcode_automatic, $1) \
  4160. - _LT_AC_TAGVAR(module_cmds, $1) \
  4161. - _LT_AC_TAGVAR(module_expsym_cmds, $1) \
  4162. - _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1) \
  4163. - _LT_AC_TAGVAR(exclude_expsyms, $1) \
  4164. - _LT_AC_TAGVAR(include_expsyms, $1); do
  4165. -
  4166. - case $var in
  4167. - _LT_AC_TAGVAR(old_archive_cmds, $1) | \
  4168. - _LT_AC_TAGVAR(old_archive_from_new_cmds, $1) | \
  4169. - _LT_AC_TAGVAR(archive_cmds, $1) | \
  4170. - _LT_AC_TAGVAR(archive_expsym_cmds, $1) | \
  4171. - _LT_AC_TAGVAR(module_cmds, $1) | \
  4172. - _LT_AC_TAGVAR(module_expsym_cmds, $1) | \
  4173. - _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) | \
  4174. - _LT_AC_TAGVAR(export_symbols_cmds, $1) | \
  4175. - extract_expsyms_cmds | reload_cmds | finish_cmds | \
  4176. - postinstall_cmds | postuninstall_cmds | \
  4177. - old_postinstall_cmds | old_postuninstall_cmds | \
  4178. - sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  4179. - # Double-quote double-evaled strings.
  4180. - eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
  4181. - ;;
  4182. - *)
  4183. - eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
  4184. - ;;
  4185. - esac
  4186. - done
  4187. -
  4188. - case $lt_echo in
  4189. - *'\[$]0 --fallback-echo"')
  4190. - lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\[$]0 --fallback-echo"[$]/[$]0 --fallback-echo"/'`
  4191. - ;;
  4192. - esac
  4193. -
  4194. -ifelse([$1], [],
  4195. - [cfgfile="${ofile}T"
  4196. - trap "$rm \"$cfgfile\"; exit 1" 1 2 15
  4197. - $rm -f "$cfgfile"
  4198. - AC_MSG_NOTICE([creating $ofile])],
  4199. - [cfgfile="$ofile"])
  4200. -
  4201. - cat <<__EOF__ >> "$cfgfile"
  4202. -ifelse([$1], [],
  4203. -[#! $SHELL
  4204. -
  4205. -# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  4206. -# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
  4207. -# NOTE: Changes made to this file will be lost: look at ltmain.sh.
  4208. -#
  4209. -# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
  4210. -# Free Software Foundation, Inc.
  4211. -#
  4212. -# This file is part of GNU Libtool:
  4213. -# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
  4214. -#
  4215. -# This program is free software; you can redistribute it and/or modify
  4216. -# it under the terms of the GNU General Public License as published by
  4217. -# the Free Software Foundation; either version 2 of the License, or
  4218. -# (at your option) any later version.
  4219. -#
  4220. -# This program is distributed in the hope that it will be useful, but
  4221. -# WITHOUT ANY WARRANTY; without even the implied warranty of
  4222. -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  4223. -# General Public License for more details.
  4224. -#
  4225. -# You should have received a copy of the GNU General Public License
  4226. -# along with this program; if not, write to the Free Software
  4227. -# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  4228. -#
  4229. -# As a special exception to the GNU General Public License, if you
  4230. -# distribute this file as part of a program that contains a
  4231. -# configuration script generated by Autoconf, you may include it under
  4232. -# the same distribution terms that you use for the rest of that program.
  4233. -
  4234. -# A sed program that does not truncate output.
  4235. -SED=$lt_SED
  4236. -
  4237. -# Sed that helps us avoid accidentally triggering echo(1) options like -n.
  4238. -Xsed="$SED -e 1s/^X//"
  4239. -
  4240. -# The HP-UX ksh and POSIX shell print the target directory to stdout
  4241. -# if CDPATH is set.
  4242. -(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  4243. -
  4244. -# The names of the tagged configurations supported by this script.
  4245. -available_tags=
  4246. -
  4247. -# ### BEGIN LIBTOOL CONFIG],
  4248. -[# ### BEGIN LIBTOOL TAG CONFIG: $tagname])
  4249. -
  4250. -# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  4251. -
  4252. -# Shell to use when invoking shell scripts.
  4253. -SHELL=$lt_SHELL
  4254. -
  4255. -# Whether or not to build shared libraries.
  4256. -build_libtool_libs=$enable_shared
  4257. -
  4258. -# Whether or not to build static libraries.
  4259. -build_old_libs=$enable_static
  4260. -
  4261. -# Whether or not to add -lc for building shared libraries.
  4262. -build_libtool_need_lc=$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)
  4263. -
  4264. -# Whether or not to disallow shared libs when runtime libs are static
  4265. -allow_libtool_libs_with_static_runtimes=$_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)
  4266. -
  4267. -# Whether or not to optimize for fast installation.
  4268. -fast_install=$enable_fast_install
  4269. -
  4270. -# The host system.
  4271. -host_alias=$host_alias
  4272. -host=$host
  4273. -host_os=$host_os
  4274. -
  4275. -# The build system.
  4276. -build_alias=$build_alias
  4277. -build=$build
  4278. -build_os=$build_os
  4279. -
  4280. -# An echo program that does not interpret backslashes.
  4281. -echo=$lt_echo
  4282. -
  4283. -# The archiver.
  4284. -AR=$lt_AR
  4285. -AR_FLAGS=$lt_AR_FLAGS
  4286. -
  4287. -# A C compiler.
  4288. -LTCC=$lt_LTCC
  4289. -
  4290. -# LTCC compiler flags.
  4291. -LTCFLAGS=$lt_LTCFLAGS
  4292. -
  4293. -# A language-specific compiler.
  4294. -CC=$lt_[]_LT_AC_TAGVAR(compiler, $1)
  4295. -
  4296. -# Is the compiler the GNU C compiler?
  4297. -with_gcc=$_LT_AC_TAGVAR(GCC, $1)
  4298. -
  4299. -# An ERE matcher.
  4300. -EGREP=$lt_EGREP
  4301. -
  4302. -# The linker used to build libraries.
  4303. -LD=$lt_[]_LT_AC_TAGVAR(LD, $1)
  4304. -
  4305. -# Whether we need hard or soft links.
  4306. -LN_S=$lt_LN_S
  4307. -
  4308. -# A BSD-compatible nm program.
  4309. -NM=$lt_NM
  4310. -
  4311. -# A symbol stripping program
  4312. -STRIP=$lt_STRIP
  4313. -
  4314. -# Used to examine libraries when file_magic_cmd begins "file"
  4315. -MAGIC_CMD=$MAGIC_CMD
  4316. -
  4317. -# Used on cygwin: DLL creation program.
  4318. -DLLTOOL="$DLLTOOL"
  4319. -
  4320. -# Used on cygwin: object dumper.
  4321. -OBJDUMP="$OBJDUMP"
  4322. -
  4323. -# Used on cygwin: assembler.
  4324. -AS="$AS"
  4325. -
  4326. -# The name of the directory that contains temporary libtool files.
  4327. -objdir=$objdir
  4328. -
  4329. -# How to create reloadable object files.
  4330. -reload_flag=$lt_reload_flag
  4331. -reload_cmds=$lt_reload_cmds
  4332. -
  4333. -# How to pass a linker flag through the compiler.
  4334. -wl=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)
  4335. -
  4336. -# Object file suffix (normally "o").
  4337. -objext="$ac_objext"
  4338. -
  4339. -# Old archive suffix (normally "a").
  4340. -libext="$libext"
  4341. -
  4342. -# Shared library suffix (normally ".so").
  4343. -shrext_cmds='$shrext_cmds'
  4344. -
  4345. -# Executable file suffix (normally "").
  4346. -exeext="$exeext"
  4347. -
  4348. -# Additional compiler flags for building library objects.
  4349. -pic_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)
  4350. -pic_mode=$pic_mode
  4351. -
  4352. -# What is the maximum length of a command?
  4353. -max_cmd_len=$lt_cv_sys_max_cmd_len
  4354. -
  4355. -# Does compiler simultaneously support -c and -o options?
  4356. -compiler_c_o=$lt_[]_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)
  4357. -
  4358. -# Must we lock files when doing compilation?
  4359. -need_locks=$lt_need_locks
  4360. -
  4361. -# Do we need the lib prefix for modules?
  4362. -need_lib_prefix=$need_lib_prefix
  4363. -
  4364. -# Do we need a version for libraries?
  4365. -need_version=$need_version
  4366. -
  4367. -# Whether dlopen is supported.
  4368. -dlopen_support=$enable_dlopen
  4369. -
  4370. -# Whether dlopen of programs is supported.
  4371. -dlopen_self=$enable_dlopen_self
  4372. -
  4373. -# Whether dlopen of statically linked programs is supported.
  4374. -dlopen_self_static=$enable_dlopen_self_static
  4375. -
  4376. -# Compiler flag to prevent dynamic linking.
  4377. -link_static_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_static, $1)
  4378. -
  4379. -# Compiler flag to turn off builtin functions.
  4380. -no_builtin_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)
  4381. -
  4382. -# Compiler flag to allow reflexive dlopens.
  4383. -export_dynamic_flag_spec=$lt_[]_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)
  4384. -
  4385. -# Compiler flag to generate shared objects directly from archives.
  4386. -whole_archive_flag_spec=$lt_[]_LT_AC_TAGVAR(whole_archive_flag_spec, $1)
  4387. -
  4388. -# Compiler flag to generate thread-safe objects.
  4389. -thread_safe_flag_spec=$lt_[]_LT_AC_TAGVAR(thread_safe_flag_spec, $1)
  4390. -
  4391. -# Library versioning type.
  4392. -version_type=$version_type
  4393. -
  4394. -# Format of library name prefix.
  4395. -libname_spec=$lt_libname_spec
  4396. -
  4397. -# List of archive names. First name is the real one, the rest are links.
  4398. -# The last name is the one that the linker finds with -lNAME.
  4399. -library_names_spec=$lt_library_names_spec
  4400. -
  4401. -# The coded name of the library, if different from the real name.
  4402. -soname_spec=$lt_soname_spec
  4403. -
  4404. -# Commands used to build and install an old-style archive.
  4405. -RANLIB=$lt_RANLIB
  4406. -old_archive_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_cmds, $1)
  4407. -old_postinstall_cmds=$lt_old_postinstall_cmds
  4408. -old_postuninstall_cmds=$lt_old_postuninstall_cmds
  4409. -
  4410. -# Create an old-style archive from a shared archive.
  4411. -old_archive_from_new_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_from_new_cmds, $1)
  4412. -
  4413. -# Create a temporary old-style archive to link instead of a shared archive.
  4414. -old_archive_from_expsyms_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1)
  4415. -
  4416. -# Commands used to build and install a shared archive.
  4417. -archive_cmds=$lt_[]_LT_AC_TAGVAR(archive_cmds, $1)
  4418. -archive_expsym_cmds=$lt_[]_LT_AC_TAGVAR(archive_expsym_cmds, $1)
  4419. -postinstall_cmds=$lt_postinstall_cmds
  4420. -postuninstall_cmds=$lt_postuninstall_cmds
  4421. -
  4422. -# Commands used to build a loadable module (assumed same as above if empty)
  4423. -module_cmds=$lt_[]_LT_AC_TAGVAR(module_cmds, $1)
  4424. -module_expsym_cmds=$lt_[]_LT_AC_TAGVAR(module_expsym_cmds, $1)
  4425. -
  4426. -# Commands to strip libraries.
  4427. -old_striplib=$lt_old_striplib
  4428. -striplib=$lt_striplib
  4429. -
  4430. -# Dependencies to place before the objects being linked to create a
  4431. -# shared library.
  4432. -predep_objects=$lt_[]_LT_AC_TAGVAR(predep_objects, $1)
  4433. -
  4434. -# Dependencies to place after the objects being linked to create a
  4435. -# shared library.
  4436. -postdep_objects=$lt_[]_LT_AC_TAGVAR(postdep_objects, $1)
  4437. -
  4438. -# Dependencies to place before the objects being linked to create a
  4439. -# shared library.
  4440. -predeps=$lt_[]_LT_AC_TAGVAR(predeps, $1)
  4441. -
  4442. -# Dependencies to place after the objects being linked to create a
  4443. -# shared library.
  4444. -postdeps=$lt_[]_LT_AC_TAGVAR(postdeps, $1)
  4445. -
  4446. -# The library search path used internally by the compiler when linking
  4447. -# a shared library.
  4448. -compiler_lib_search_path=$lt_[]_LT_AC_TAGVAR(compiler_lib_search_path, $1)
  4449. -
  4450. -# Method to check whether dependent libraries are shared objects.
  4451. -deplibs_check_method=$lt_deplibs_check_method
  4452. -
  4453. -# Command to use when deplibs_check_method == file_magic.
  4454. -file_magic_cmd=$lt_file_magic_cmd
  4455. -
  4456. -# Flag that allows shared libraries with undefined symbols to be built.
  4457. -allow_undefined_flag=$lt_[]_LT_AC_TAGVAR(allow_undefined_flag, $1)
  4458. -
  4459. -# Flag that forces no undefined symbols.
  4460. -no_undefined_flag=$lt_[]_LT_AC_TAGVAR(no_undefined_flag, $1)
  4461. -
  4462. -# Commands used to finish a libtool library installation in a directory.
  4463. -finish_cmds=$lt_finish_cmds
  4464. -
  4465. -# Same as above, but a single script fragment to be evaled but not shown.
  4466. -finish_eval=$lt_finish_eval
  4467. -
  4468. -# Take the output of nm and produce a listing of raw symbols and C names.
  4469. -global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  4470. -
  4471. -# Transform the output of nm in a proper C declaration
  4472. -global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  4473. -
  4474. -# Transform the output of nm in a C name address pair
  4475. -global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  4476. -
  4477. -# This is the shared library runtime path variable.
  4478. -runpath_var=$runpath_var
  4479. -
  4480. -# This is the shared library path variable.
  4481. -shlibpath_var=$shlibpath_var
  4482. -
  4483. -# Is shlibpath searched before the hard-coded library search path?
  4484. -shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  4485. -
  4486. -# How to hardcode a shared library path into an executable.
  4487. -hardcode_action=$_LT_AC_TAGVAR(hardcode_action, $1)
  4488. -
  4489. -# Whether we should hardcode library paths into libraries.
  4490. -hardcode_into_libs=$hardcode_into_libs
  4491. -
  4492. -# Flag to hardcode \$libdir into a binary during linking.
  4493. -# This must work even if \$libdir does not exist.
  4494. -hardcode_libdir_flag_spec=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)
  4495. -
  4496. -# If ld is used when linking, flag to hardcode \$libdir into
  4497. -# a binary during linking. This must work even if \$libdir does
  4498. -# not exist.
  4499. -hardcode_libdir_flag_spec_ld=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)
  4500. -
  4501. -# Whether we need a single -rpath flag with a separated argument.
  4502. -hardcode_libdir_separator=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_separator, $1)
  4503. -
  4504. -# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
  4505. -# resulting binary.
  4506. -hardcode_direct=$_LT_AC_TAGVAR(hardcode_direct, $1)
  4507. -
  4508. -# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  4509. -# resulting binary.
  4510. -hardcode_minus_L=$_LT_AC_TAGVAR(hardcode_minus_L, $1)
  4511. -
  4512. -# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
  4513. -# the resulting binary.
  4514. -hardcode_shlibpath_var=$_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)
  4515. -
  4516. -# Set to yes if building a shared library automatically hardcodes DIR into the library
  4517. -# and all subsequent libraries and executables linked against it.
  4518. -hardcode_automatic=$_LT_AC_TAGVAR(hardcode_automatic, $1)
  4519. -
  4520. -# Variables whose values should be saved in libtool wrapper scripts and
  4521. -# restored at relink time.
  4522. -variables_saved_for_relink="$variables_saved_for_relink"
  4523. -
  4524. -# Whether libtool must link a program against all its dependency libraries.
  4525. -link_all_deplibs=$_LT_AC_TAGVAR(link_all_deplibs, $1)
  4526. -
  4527. -# Compile-time system search path for libraries
  4528. -sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  4529. -
  4530. -# Run-time system search path for libraries
  4531. -sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  4532. -
  4533. -# Fix the shell variable \$srcfile for the compiler.
  4534. -fix_srcfile_path="$_LT_AC_TAGVAR(fix_srcfile_path, $1)"
  4535. -
  4536. -# Set to yes if exported symbols are required.
  4537. -always_export_symbols=$_LT_AC_TAGVAR(always_export_symbols, $1)
  4538. -
  4539. -# The commands to list exported symbols.
  4540. -export_symbols_cmds=$lt_[]_LT_AC_TAGVAR(export_symbols_cmds, $1)
  4541. -
  4542. -# The commands to extract the exported symbol list from a shared archive.
  4543. -extract_expsyms_cmds=$lt_extract_expsyms_cmds
  4544. -
  4545. -# Symbols that should not be listed in the preloaded symbols.
  4546. -exclude_expsyms=$lt_[]_LT_AC_TAGVAR(exclude_expsyms, $1)
  4547. -
  4548. -# Symbols that must always be exported.
  4549. -include_expsyms=$lt_[]_LT_AC_TAGVAR(include_expsyms, $1)
  4550. -
  4551. -ifelse([$1],[],
  4552. -[# ### END LIBTOOL CONFIG],
  4553. -[# ### END LIBTOOL TAG CONFIG: $tagname])
  4554. -
  4555. -__EOF__
  4556. -
  4557. -ifelse([$1],[], [
  4558. - case $host_os in
  4559. - aix3*)
  4560. - cat <<\EOF >> "$cfgfile"
  4561. -
  4562. -# AIX sometimes has problems with the GCC collect2 program. For some
  4563. -# reason, if we set the COLLECT_NAMES environment variable, the problems
  4564. -# vanish in a puff of smoke.
  4565. -if test "X${COLLECT_NAMES+set}" != Xset; then
  4566. - COLLECT_NAMES=
  4567. - export COLLECT_NAMES
  4568. -fi
  4569. -EOF
  4570. - ;;
  4571. - esac
  4572. -
  4573. - # We use sed instead of cat because bash on DJGPP gets confused if
  4574. - # if finds mixed CR/LF and LF-only lines. Since sed operates in
  4575. - # text mode, it properly converts lines to CR/LF. This bash problem
  4576. - # is reportedly fixed, but why not run on old versions too?
  4577. - sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
  4578. -
  4579. - mv -f "$cfgfile" "$ofile" || \
  4580. - (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  4581. - chmod +x "$ofile"
  4582. -])
  4583. -else
  4584. - # If there is no Makefile yet, we rely on a make rule to execute
  4585. - # `config.status --recheck' to rerun these tests and create the
  4586. - # libtool script then.
  4587. - ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  4588. - if test -f "$ltmain_in"; then
  4589. - test -f Makefile && make "$ltmain"
  4590. - fi
  4591. -fi
  4592. -])# AC_LIBTOOL_CONFIG
  4593. -
  4594. -
  4595. -# AC_LIBTOOL_PROG_COMPILER_NO_RTTI([TAGNAME])
  4596. -# -------------------------------------------
  4597. -AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI],
  4598. -[AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
  4599. -
  4600. -_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
  4601. -
  4602. -if test "$GCC" = yes; then
  4603. - _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
  4604. -
  4605. - AC_LIBTOOL_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions],
  4606. - lt_cv_prog_compiler_rtti_exceptions,
  4607. - [-fno-rtti -fno-exceptions], [],
  4608. - [_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"])
  4609. -fi
  4610. -])# AC_LIBTOOL_PROG_COMPILER_NO_RTTI
  4611. -
  4612. -
  4613. -# AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
  4614. -# ---------------------------------
  4615. -AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE],
  4616. -[AC_REQUIRE([AC_CANONICAL_HOST])
  4617. -AC_REQUIRE([AC_PROG_NM])
  4618. -AC_REQUIRE([AC_OBJEXT])
  4619. -# Check for command to grab the raw symbol name followed by C symbol from nm.
  4620. -AC_MSG_CHECKING([command to parse $NM output from $compiler object])
  4621. -AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe],
  4622. -[
  4623. -# These are sane defaults that work on at least a few old systems.
  4624. -# [They come from Ultrix. What could be older than Ultrix?!! ;)]
  4625. -
  4626. -# Character class describing NM global symbol codes.
  4627. -symcode='[[BCDEGRST]]'
  4628. -
  4629. -# Regexp to match symbols that can be accessed directly from C.
  4630. -sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)'
  4631. -
  4632. -# Transform an extracted symbol line into a proper C declaration
  4633. -lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
  4634. -
  4635. -# Transform an extracted symbol line into symbol name and symbol address
  4636. -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'"
  4637. -
  4638. -# Define system-specific variables.
  4639. -case $host_os in
  4640. -aix*)
  4641. - symcode='[[BCDT]]'
  4642. - ;;
  4643. -cygwin* | mingw* | pw32*)
  4644. - symcode='[[ABCDGISTW]]'
  4645. - ;;
  4646. -hpux*) # Its linker distinguishes data from code symbols
  4647. - if test "$host_cpu" = ia64; then
  4648. - symcode='[[ABCDEGRST]]'
  4649. - fi
  4650. - lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  4651. - 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'"
  4652. - ;;
  4653. -linux*)
  4654. - if test "$host_cpu" = ia64; then
  4655. - symcode='[[ABCDGIRSTW]]'
  4656. - lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  4657. - 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'"
  4658. - fi
  4659. - ;;
  4660. -irix* | nonstopux*)
  4661. - symcode='[[BCDEGRST]]'
  4662. - ;;
  4663. -osf*)
  4664. - symcode='[[BCDEGQRST]]'
  4665. - ;;
  4666. -solaris*)
  4667. - symcode='[[BDRT]]'
  4668. - ;;
  4669. -sco3.2v5*)
  4670. - symcode='[[DT]]'
  4671. - ;;
  4672. -sysv4.2uw2*)
  4673. - symcode='[[DT]]'
  4674. - ;;
  4675. -sysv5* | sco5v6* | unixware* | OpenUNIX*)
  4676. - symcode='[[ABDT]]'
  4677. - ;;
  4678. -sysv4)
  4679. - symcode='[[DFNSTU]]'
  4680. - ;;
  4681. -esac
  4682. -
  4683. -# Handle CRLF in mingw tool chain
  4684. -opt_cr=
  4685. -case $build_os in
  4686. -mingw*)
  4687. - opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  4688. - ;;
  4689. -esac
  4690. -
  4691. -# If we're using GNU nm, then use its standard symbol codes.
  4692. -case `$NM -V 2>&1` in
  4693. -*GNU* | *'with BFD'*)
  4694. - symcode='[[ABCDGIRSTW]]' ;;
  4695. -esac
  4696. -
  4697. -# Try without a prefix undercore, then with it.
  4698. -for ac_symprfx in "" "_"; do
  4699. -
  4700. - # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  4701. - symxfrm="\\1 $ac_symprfx\\2 \\2"
  4702. -
  4703. - # Write the raw and C identifiers.
  4704. - lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  4705. -
  4706. - # Check to see that the pipe works correctly.
  4707. - pipe_works=no
  4708. -
  4709. - rm -f conftest*
  4710. - cat > conftest.$ac_ext <<EOF
  4711. -#ifdef __cplusplus
  4712. -extern "C" {
  4713. -#endif
  4714. -char nm_test_var;
  4715. -void nm_test_func(){}
  4716. -#ifdef __cplusplus
  4717. -}
  4718. -#endif
  4719. -int main(){nm_test_var='a';nm_test_func();return(0);}
  4720. -EOF
  4721. -
  4722. - if AC_TRY_EVAL(ac_compile); then
  4723. - # Now try to grab the symbols.
  4724. - nlist=conftest.nm
  4725. - if AC_TRY_EVAL(NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) && test -s "$nlist"; then
  4726. - # Try sorting and uniquifying the output.
  4727. - if sort "$nlist" | uniq > "$nlist"T; then
  4728. - mv -f "$nlist"T "$nlist"
  4729. - else
  4730. - rm -f "$nlist"T
  4731. - fi
  4732. -
  4733. - # Make sure that we snagged all the symbols we need.
  4734. - if grep ' nm_test_var$' "$nlist" >/dev/null; then
  4735. - if grep ' nm_test_func$' "$nlist" >/dev/null; then
  4736. - cat <<EOF > conftest.$ac_ext
  4737. -#ifdef __cplusplus
  4738. -extern "C" {
  4739. -#endif
  4740. -
  4741. -EOF
  4742. - # Now generate the symbol file.
  4743. - eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
  4744. -
  4745. - cat <<EOF >> conftest.$ac_ext
  4746. -#if defined (__STDC__) && __STDC__
  4747. -# define lt_ptr_t void *
  4748. -#else
  4749. -# define lt_ptr_t char *
  4750. -# define const
  4751. -#endif
  4752. -
  4753. -/* The mapping between symbol names and symbols. */
  4754. -const struct {
  4755. - const char *name;
  4756. - lt_ptr_t address;
  4757. -}
  4758. -lt_preloaded_symbols[[]] =
  4759. -{
  4760. -EOF
  4761. - $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
  4762. - cat <<\EOF >> conftest.$ac_ext
  4763. - {0, (lt_ptr_t) 0}
  4764. -};
  4765. -
  4766. -#ifdef __cplusplus
  4767. -}
  4768. -#endif
  4769. -EOF
  4770. - # Now try linking the two files.
  4771. - mv conftest.$ac_objext conftstm.$ac_objext
  4772. - lt_save_LIBS="$LIBS"
  4773. - lt_save_CFLAGS="$CFLAGS"
  4774. - LIBS="conftstm.$ac_objext"
  4775. - CFLAGS="$CFLAGS$_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)"
  4776. - if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then
  4777. - pipe_works=yes
  4778. - fi
  4779. - LIBS="$lt_save_LIBS"
  4780. - CFLAGS="$lt_save_CFLAGS"
  4781. - else
  4782. - echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD
  4783. - fi
  4784. - else
  4785. - echo "cannot find nm_test_var in $nlist" >&AS_MESSAGE_LOG_FD
  4786. - fi
  4787. - else
  4788. - echo "cannot run $lt_cv_sys_global_symbol_pipe" >&AS_MESSAGE_LOG_FD
  4789. - fi
  4790. - else
  4791. - echo "$progname: failed program was:" >&AS_MESSAGE_LOG_FD
  4792. - cat conftest.$ac_ext >&5
  4793. - fi
  4794. - rm -f conftest* conftst*
  4795. -
  4796. - # Do not use the global_symbol_pipe unless it works.
  4797. - if test "$pipe_works" = yes; then
  4798. - break
  4799. - else
  4800. - lt_cv_sys_global_symbol_pipe=
  4801. - fi
  4802. -done
  4803. -])
  4804. -if test -z "$lt_cv_sys_global_symbol_pipe"; then
  4805. - lt_cv_sys_global_symbol_to_cdecl=
  4806. -fi
  4807. -if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  4808. - AC_MSG_RESULT(failed)
  4809. -else
  4810. - AC_MSG_RESULT(ok)
  4811. -fi
  4812. -]) # AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
  4813. -
  4814. -
  4815. -# AC_LIBTOOL_PROG_COMPILER_PIC([TAGNAME])
  4816. -# ---------------------------------------
  4817. -AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_PIC],
  4818. -[_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)=
  4819. -_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
  4820. -_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=
  4821. -
  4822. -AC_MSG_CHECKING([for $compiler option to produce PIC])
  4823. - ifelse([$1],[CXX],[
  4824. - # C++ specific cases for pic, static, wl, etc.
  4825. - if test "$GXX" = yes; then
  4826. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4827. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
  4828. -
  4829. - case $host_os in
  4830. - aix*)
  4831. - # All AIX code is PIC.
  4832. - if test "$host_cpu" = ia64; then
  4833. - # AIX 5 now supports IA64 processor
  4834. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  4835. - fi
  4836. - ;;
  4837. - amigaos*)
  4838. - # FIXME: we need at least 68020 code to build shared libraries, but
  4839. - # adding the `-m68020' flag to GCC prevents building anything better,
  4840. - # like `-m68040'.
  4841. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
  4842. - ;;
  4843. - beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  4844. - # PIC is the default for these OSes.
  4845. - ;;
  4846. - mingw* | os2* | pw32*)
  4847. - # This hack is so that the source file can tell whether it is being
  4848. - # built for inclusion in a dll (and should export symbols for example).
  4849. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
  4850. - ;;
  4851. - darwin* | rhapsody*)
  4852. - # PIC is the default on this platform
  4853. - # Common symbols not allowed in MH_DYLIB files
  4854. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
  4855. - ;;
  4856. - *djgpp*)
  4857. - # DJGPP does not support shared libraries at all
  4858. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
  4859. - ;;
  4860. - interix3*)
  4861. - # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  4862. - # Instead, we relocate shared libraries at runtime.
  4863. - ;;
  4864. - sysv4*MP*)
  4865. - if test -d /usr/nec; then
  4866. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
  4867. - fi
  4868. - ;;
  4869. - hpux*)
  4870. - # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  4871. - # not for PA HP-UX.
  4872. - case $host_cpu in
  4873. - hppa*64*|ia64*)
  4874. - ;;
  4875. - *)
  4876. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  4877. - ;;
  4878. - esac
  4879. - ;;
  4880. - *)
  4881. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  4882. - ;;
  4883. - esac
  4884. - else
  4885. - case $host_os in
  4886. - aix4* | aix5*)
  4887. - # All AIX code is PIC.
  4888. - if test "$host_cpu" = ia64; then
  4889. - # AIX 5 now supports IA64 processor
  4890. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  4891. - else
  4892. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
  4893. - fi
  4894. - ;;
  4895. - chorus*)
  4896. - case $cc_basename in
  4897. - cxch68*)
  4898. - # Green Hills C++ Compiler
  4899. - # _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"
  4900. - ;;
  4901. - esac
  4902. - ;;
  4903. - darwin*)
  4904. - # PIC is the default on this platform
  4905. - # Common symbols not allowed in MH_DYLIB files
  4906. - case $cc_basename in
  4907. - xlc*)
  4908. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-qnocommon'
  4909. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4910. - ;;
  4911. - esac
  4912. - ;;
  4913. - dgux*)
  4914. - case $cc_basename in
  4915. - ec++*)
  4916. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  4917. - ;;
  4918. - ghcx*)
  4919. - # Green Hills C++ Compiler
  4920. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  4921. - ;;
  4922. - *)
  4923. - ;;
  4924. - esac
  4925. - ;;
  4926. - freebsd* | kfreebsd*-gnu | dragonfly*)
  4927. - # FreeBSD uses GNU C++
  4928. - ;;
  4929. - hpux9* | hpux10* | hpux11*)
  4930. - case $cc_basename in
  4931. - CC*)
  4932. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4933. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
  4934. - if test "$host_cpu" != ia64; then
  4935. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
  4936. - fi
  4937. - ;;
  4938. - aCC*)
  4939. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4940. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
  4941. - case $host_cpu in
  4942. - hppa*64*|ia64*)
  4943. - # +Z the default
  4944. - ;;
  4945. - *)
  4946. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
  4947. - ;;
  4948. - esac
  4949. - ;;
  4950. - *)
  4951. - ;;
  4952. - esac
  4953. - ;;
  4954. - interix*)
  4955. - # This is c89, which is MS Visual C++ (no shared libs)
  4956. - # Anyone wants to do a port?
  4957. - ;;
  4958. - irix5* | irix6* | nonstopux*)
  4959. - case $cc_basename in
  4960. - CC*)
  4961. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4962. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  4963. - # CC pic flag -KPIC is the default.
  4964. - ;;
  4965. - *)
  4966. - ;;
  4967. - esac
  4968. - ;;
  4969. - linux*)
  4970. - case $cc_basename in
  4971. - KCC*)
  4972. - # KAI C++ Compiler
  4973. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
  4974. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  4975. - ;;
  4976. - icpc* | ecpc*)
  4977. - # Intel C++
  4978. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4979. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  4980. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
  4981. - ;;
  4982. - pgCC*)
  4983. - # Portland Group C++ compiler.
  4984. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4985. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
  4986. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  4987. - ;;
  4988. - cxx*)
  4989. - # Compaq C++
  4990. - # Make sure the PIC flag is empty. It appears that all Alpha
  4991. - # Linux and Compaq Tru64 Unix objects are PIC.
  4992. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
  4993. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  4994. - ;;
  4995. - *)
  4996. - ;;
  4997. - esac
  4998. - ;;
  4999. - lynxos*)
  5000. - ;;
  5001. - m88k*)
  5002. - ;;
  5003. - mvs*)
  5004. - case $cc_basename in
  5005. - cxx*)
  5006. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall'
  5007. - ;;
  5008. - *)
  5009. - ;;
  5010. - esac
  5011. - ;;
  5012. - netbsd*)
  5013. - ;;
  5014. - osf3* | osf4* | osf5*)
  5015. - case $cc_basename in
  5016. - KCC*)
  5017. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
  5018. - ;;
  5019. - RCC*)
  5020. - # Rational C++ 2.4.1
  5021. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  5022. - ;;
  5023. - cxx*)
  5024. - # Digital/Compaq C++
  5025. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  5026. - # Make sure the PIC flag is empty. It appears that all Alpha
  5027. - # Linux and Compaq Tru64 Unix objects are PIC.
  5028. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
  5029. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  5030. - ;;
  5031. - *)
  5032. - ;;
  5033. - esac
  5034. - ;;
  5035. - psos*)
  5036. - ;;
  5037. - solaris*)
  5038. - case $cc_basename in
  5039. - CC*)
  5040. - # Sun C++ 4.2, 5.x and Centerline C++
  5041. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  5042. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  5043. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
  5044. - ;;
  5045. - gcx*)
  5046. - # Green Hills C++ Compiler
  5047. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
  5048. - ;;
  5049. - *)
  5050. - ;;
  5051. - esac
  5052. - ;;
  5053. - sunos4*)
  5054. - case $cc_basename in
  5055. - CC*)
  5056. - # Sun C++ 4.x
  5057. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  5058. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  5059. - ;;
  5060. - lcc*)
  5061. - # Lucid
  5062. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  5063. - ;;
  5064. - *)
  5065. - ;;
  5066. - esac
  5067. - ;;
  5068. - tandem*)
  5069. - case $cc_basename in
  5070. - NCC*)
  5071. - # NonStop-UX NCC 3.20
  5072. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  5073. - ;;
  5074. - *)
  5075. - ;;
  5076. - esac
  5077. - ;;
  5078. - sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  5079. - case $cc_basename in
  5080. - CC*)
  5081. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  5082. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  5083. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  5084. - ;;
  5085. - esac
  5086. - ;;
  5087. - vxworks*)
  5088. - ;;
  5089. - *)
  5090. - _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
  5091. - ;;
  5092. - esac
  5093. - fi
  5094. -],
  5095. -[
  5096. - if test "$GCC" = yes; then
  5097. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  5098. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
  5099. -
  5100. - case $host_os in
  5101. - aix*)
  5102. - # All AIX code is PIC.
  5103. - if test "$host_cpu" = ia64; then
  5104. - # AIX 5 now supports IA64 processor
  5105. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  5106. - fi
  5107. - ;;
  5108. -
  5109. - amigaos*)
  5110. - # FIXME: we need at least 68020 code to build shared libraries, but
  5111. - # adding the `-m68020' flag to GCC prevents building anything better,
  5112. - # like `-m68040'.
  5113. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
  5114. - ;;
  5115. -
  5116. - beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  5117. - # PIC is the default for these OSes.
  5118. - ;;
  5119. -
  5120. - mingw* | pw32* | os2*)
  5121. - # This hack is so that the source file can tell whether it is being
  5122. - # built for inclusion in a dll (and should export symbols for example).
  5123. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
  5124. - ;;
  5125. -
  5126. - darwin* | rhapsody*)
  5127. - # PIC is the default on this platform
  5128. - # Common symbols not allowed in MH_DYLIB files
  5129. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
  5130. - ;;
  5131. -
  5132. - interix3*)
  5133. - # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  5134. - # Instead, we relocate shared libraries at runtime.
  5135. - ;;
  5136. -
  5137. - msdosdjgpp*)
  5138. - # Just because we use GCC doesn't mean we suddenly get shared libraries
  5139. - # on systems that don't support them.
  5140. - _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
  5141. - enable_shared=no
  5142. - ;;
  5143. -
  5144. - sysv4*MP*)
  5145. - if test -d /usr/nec; then
  5146. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
  5147. - fi
  5148. - ;;
  5149. -
  5150. - hpux*)
  5151. - # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  5152. - # not for PA HP-UX.
  5153. - case $host_cpu in
  5154. - hppa*64*|ia64*)
  5155. - # +Z the default
  5156. - ;;
  5157. - *)
  5158. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  5159. - ;;
  5160. - esac
  5161. - ;;
  5162. -
  5163. - *)
  5164. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  5165. - ;;
  5166. - esac
  5167. - else
  5168. - # PORTME Check for flag to pass linker flags through the system compiler.
  5169. - case $host_os in
  5170. - aix*)
  5171. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  5172. - if test "$host_cpu" = ia64; then
  5173. - # AIX 5 now supports IA64 processor
  5174. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  5175. - else
  5176. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
  5177. - fi
  5178. - ;;
  5179. - darwin*)
  5180. - # PIC is the default on this platform
  5181. - # Common symbols not allowed in MH_DYLIB files
  5182. - case $cc_basename in
  5183. - xlc*)
  5184. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-qnocommon'
  5185. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  5186. - ;;
  5187. - esac
  5188. - ;;
  5189. -
  5190. - mingw* | pw32* | os2*)
  5191. - # This hack is so that the source file can tell whether it is being
  5192. - # built for inclusion in a dll (and should export symbols for example).
  5193. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
  5194. - ;;
  5195. -
  5196. - hpux9* | hpux10* | hpux11*)
  5197. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  5198. - # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  5199. - # not for PA HP-UX.
  5200. - case $host_cpu in
  5201. - hppa*64*|ia64*)
  5202. - # +Z the default
  5203. - ;;
  5204. - *)
  5205. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
  5206. - ;;
  5207. - esac
  5208. - # Is there a better lt_prog_compiler_static that works with the bundled CC?
  5209. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
  5210. - ;;
  5211. -
  5212. - irix5* | irix6* | nonstopux*)
  5213. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  5214. - # PIC (with -KPIC) is the default.
  5215. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  5216. - ;;
  5217. -
  5218. - newsos6)
  5219. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  5220. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  5221. - ;;
  5222. -
  5223. - linux*)
  5224. - case $cc_basename in
  5225. - icc* | ecc*)
  5226. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  5227. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  5228. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
  5229. - ;;
  5230. - pgcc* | pgf77* | pgf90* | pgf95*)
  5231. - # Portland Group compilers (*not* the Pentium gcc compiler,
  5232. - # which looks to be a dead project)
  5233. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  5234. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
  5235. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  5236. - ;;
  5237. - ccc*)
  5238. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  5239. - # All Alpha code is PIC.
  5240. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  5241. - ;;
  5242. - esac
  5243. - ;;
  5244. -
  5245. - osf3* | osf4* | osf5*)
  5246. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  5247. - # All OSF/1 code is PIC.
  5248. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  5249. - ;;
  5250. -
  5251. - solaris*)
  5252. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  5253. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  5254. - case $cc_basename in
  5255. - f77* | f90* | f95*)
  5256. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';;
  5257. - *)
  5258. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';;
  5259. - esac
  5260. - ;;
  5261. -
  5262. - sunos4*)
  5263. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
  5264. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
  5265. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  5266. - ;;
  5267. -
  5268. - sysv4 | sysv4.2uw2* | sysv4.3*)
  5269. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  5270. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  5271. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  5272. - ;;
  5273. -
  5274. - sysv4*MP*)
  5275. - if test -d /usr/nec ;then
  5276. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic'
  5277. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  5278. - fi
  5279. - ;;
  5280. -
  5281. - sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  5282. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  5283. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  5284. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  5285. - ;;
  5286. -
  5287. - unicos*)
  5288. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  5289. - _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
  5290. - ;;
  5291. -
  5292. - uts4*)
  5293. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  5294. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  5295. - ;;
  5296. -
  5297. - *)
  5298. - _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
  5299. - ;;
  5300. - esac
  5301. - fi
  5302. -])
  5303. -AC_MSG_RESULT([$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)])
  5304. -
  5305. -#
  5306. -# Check to make sure the PIC flag actually works.
  5307. -#
  5308. -if test -n "$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)"; then
  5309. - AC_LIBTOOL_COMPILER_OPTION([if $compiler PIC flag $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) works],
  5310. - _LT_AC_TAGVAR(lt_prog_compiler_pic_works, $1),
  5311. - [$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])], [],
  5312. - [case $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) in
  5313. - "" | " "*) ;;
  5314. - *) _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)" ;;
  5315. - esac],
  5316. - [_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
  5317. - _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no])
  5318. -fi
  5319. -case $host_os in
  5320. - # For platforms which do not support PIC, -DPIC is meaningless:
  5321. - *djgpp*)
  5322. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
  5323. - ;;
  5324. - *)
  5325. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])"
  5326. - ;;
  5327. -esac
  5328. -
  5329. -#
  5330. -# Check to make sure the static flag actually works.
  5331. -#
  5332. -wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_AC_TAGVAR(lt_prog_compiler_static, $1)\"
  5333. -AC_LIBTOOL_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works],
  5334. - _LT_AC_TAGVAR(lt_prog_compiler_static_works, $1),
  5335. - $lt_tmp_static_flag,
  5336. - [],
  5337. - [_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=])
  5338. -])
  5339. -
  5340. -
  5341. -# AC_LIBTOOL_PROG_LD_SHLIBS([TAGNAME])
  5342. -# ------------------------------------
  5343. -# See if the linker supports building shared libraries.
  5344. -AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS],
  5345. -[AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
  5346. -ifelse([$1],[CXX],[
  5347. - _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  5348. - case $host_os in
  5349. - aix4* | aix5*)
  5350. - # If we're using GNU nm, then we don't want the "-C" option.
  5351. - # -C means demangle to AIX nm, but means don't demangle with GNU nm
  5352. - if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
  5353. - _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'
  5354. - else
  5355. - _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'
  5356. - fi
  5357. - ;;
  5358. - pw32*)
  5359. - _LT_AC_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
  5360. - ;;
  5361. - cygwin* | mingw*)
  5362. - _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]] /s/.* \([[^ ]]*\)/\1 DATA/;/^.* __nm__/s/^.* __nm__\([[^ ]]*\) [[^ ]]*/\1 DATA/;/^I /d;/^[[AITW]] /s/.* //'\'' | sort | uniq > $export_symbols'
  5363. - ;;
  5364. - *)
  5365. - _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  5366. - ;;
  5367. - esac
  5368. -],[
  5369. - runpath_var=
  5370. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=
  5371. - _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
  5372. - _LT_AC_TAGVAR(archive_cmds, $1)=
  5373. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)=
  5374. - _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)=
  5375. - _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1)=
  5376. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
  5377. - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
  5378. - _LT_AC_TAGVAR(thread_safe_flag_spec, $1)=
  5379. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
  5380. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
  5381. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
  5382. - _LT_AC_TAGVAR(hardcode_direct, $1)=no
  5383. - _LT_AC_TAGVAR(hardcode_minus_L, $1)=no
  5384. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
  5385. - _LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
  5386. - _LT_AC_TAGVAR(hardcode_automatic, $1)=no
  5387. - _LT_AC_TAGVAR(module_cmds, $1)=
  5388. - _LT_AC_TAGVAR(module_expsym_cmds, $1)=
  5389. - _LT_AC_TAGVAR(always_export_symbols, $1)=no
  5390. - _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  5391. - # include_expsyms should be a list of space-separated symbols to be *always*
  5392. - # included in the symbol list
  5393. - _LT_AC_TAGVAR(include_expsyms, $1)=
  5394. - # exclude_expsyms can be an extended regexp of symbols to exclude
  5395. - # it will be wrapped by ` (' and `)$', so one must not match beginning or
  5396. - # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  5397. - # as well as any symbol that contains `d'.
  5398. - _LT_AC_TAGVAR(exclude_expsyms, $1)="_GLOBAL_OFFSET_TABLE_"
  5399. - # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  5400. - # platforms (ab)use it in PIC code, but their linkers get confused if
  5401. - # the symbol is explicitly referenced. Since portable code cannot
  5402. - # rely on this symbol name, it's probably fine to never include it in
  5403. - # preloaded symbol tables.
  5404. - extract_expsyms_cmds=
  5405. - # Just being paranoid about ensuring that cc_basename is set.
  5406. - _LT_CC_BASENAME([$compiler])
  5407. - case $host_os in
  5408. - cygwin* | mingw* | pw32*)
  5409. - # FIXME: the MSVC++ port hasn't been tested in a loooong time
  5410. - # When not using gcc, we currently assume that we are using
  5411. - # Microsoft Visual C++.
  5412. - if test "$GCC" != yes; then
  5413. - with_gnu_ld=no
  5414. - fi
  5415. - ;;
  5416. - interix*)
  5417. - # we just hope/assume this is gcc and not c89 (= MSVC++)
  5418. - with_gnu_ld=yes
  5419. - ;;
  5420. - openbsd*)
  5421. - with_gnu_ld=no
  5422. - ;;
  5423. - esac
  5424. -
  5425. - _LT_AC_TAGVAR(ld_shlibs, $1)=yes
  5426. - if test "$with_gnu_ld" = yes; then
  5427. - # If archive_cmds runs LD, not CC, wlarc should be empty
  5428. - wlarc='${wl}'
  5429. -
  5430. - # Set some defaults for GNU ld with shared library support. These
  5431. - # are reset later if shared libraries are not supported. Putting them
  5432. - # here allows them to be overridden if necessary.
  5433. - runpath_var=LD_RUN_PATH
  5434. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
  5435. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  5436. - # ancient GNU ld didn't support --whole-archive et. al.
  5437. - if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
  5438. - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  5439. - else
  5440. - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
  5441. - fi
  5442. - supports_anon_versioning=no
  5443. - case `$LD -v 2>/dev/null` in
  5444. - *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11
  5445. - *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  5446. - *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  5447. - *\ 2.11.*) ;; # other 2.11 versions
  5448. - *) supports_anon_versioning=yes ;;
  5449. - esac
  5450. -
  5451. - # See if GNU ld supports shared libraries.
  5452. - case $host_os in
  5453. - aix3* | aix4* | aix5*)
  5454. - # On AIX/PPC, the GNU linker is very broken
  5455. - if test "$host_cpu" != ia64; then
  5456. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  5457. - cat <<EOF 1>&2
  5458. -
  5459. -*** Warning: the GNU linker, at least up to release 2.9.1, is reported
  5460. -*** to be unable to reliably create shared libraries on AIX.
  5461. -*** Therefore, libtool is disabling shared libraries support. If you
  5462. -*** really care for shared libraries, you may want to modify your PATH
  5463. -*** so that a non-GNU linker is found, and then restart.
  5464. -
  5465. -EOF
  5466. - fi
  5467. - ;;
  5468. -
  5469. - amigaos*)
  5470. - _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)'
  5471. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  5472. - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
  5473. -
  5474. - # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
  5475. - # that the semantics of dynamic libraries on AmigaOS, at least up
  5476. - # to version 4, is to share data among multiple programs linked
  5477. - # with the same dynamic library. Since this doesn't match the
  5478. - # behavior of shared libraries on other platforms, we can't use
  5479. - # them.
  5480. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  5481. - ;;
  5482. -
  5483. - beos*)
  5484. - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  5485. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
  5486. - # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  5487. - # support --undefined. This deserves some investigation. FIXME
  5488. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  5489. - else
  5490. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  5491. - fi
  5492. - ;;
  5493. -
  5494. - cygwin* | mingw* | pw32*)
  5495. - # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
  5496. - # as there is no search path for DLLs.
  5497. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  5498. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
  5499. - _LT_AC_TAGVAR(always_export_symbols, $1)=no
  5500. - _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
  5501. - _LT_AC_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'
  5502. -
  5503. - if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
  5504. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  5505. - # If the export-symbols file already is a .def file (1st line
  5506. - # is EXPORTS), use it as is; otherwise, prepend...
  5507. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  5508. - cp $export_symbols $output_objdir/$soname.def;
  5509. - else
  5510. - echo EXPORTS > $output_objdir/$soname.def;
  5511. - cat $export_symbols >> $output_objdir/$soname.def;
  5512. - fi~
  5513. - $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  5514. - else
  5515. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  5516. - fi
  5517. - ;;
  5518. -
  5519. - interix3*)
  5520. - _LT_AC_TAGVAR(hardcode_direct, $1)=no
  5521. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  5522. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  5523. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  5524. - # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  5525. - # Instead, shared libraries are loaded at an image base (0x10000000 by
  5526. - # default) and relocated if they conflict, which is a slow very memory
  5527. - # consuming and fragmenting process. To avoid this, we pick a random,
  5528. - # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  5529. - # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  5530. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  5531. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  5532. - ;;
  5533. -
  5534. - linux*)
  5535. - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  5536. - tmp_addflag=
  5537. - case $cc_basename,$host_cpu in
  5538. - pgcc*) # Portland Group C compiler
  5539. - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
  5540. - tmp_addflag=' $pic_flag'
  5541. - ;;
  5542. - pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
  5543. - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
  5544. - tmp_addflag=' $pic_flag -Mnomain' ;;
  5545. - ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  5546. - tmp_addflag=' -i_dynamic' ;;
  5547. - efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  5548. - tmp_addflag=' -i_dynamic -nofor_main' ;;
  5549. - ifc* | ifort*) # Intel Fortran compiler
  5550. - tmp_addflag=' -nofor_main' ;;
  5551. - esac
  5552. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  5553. -
  5554. - if test $supports_anon_versioning = yes; then
  5555. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $output_objdir/$libname.ver~
  5556. - cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  5557. - $echo "local: *; };" >> $output_objdir/$libname.ver~
  5558. - $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  5559. - fi
  5560. - else
  5561. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  5562. - fi
  5563. - ;;
  5564. -
  5565. - netbsd*)
  5566. - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  5567. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  5568. - wlarc=
  5569. - else
  5570. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  5571. - _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'
  5572. - fi
  5573. - ;;
  5574. -
  5575. - solaris*)
  5576. - if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
  5577. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  5578. - cat <<EOF 1>&2
  5579. -
  5580. -*** Warning: The releases 2.8.* of the GNU linker cannot reliably
  5581. -*** create shared libraries on Solaris systems. Therefore, libtool
  5582. -*** is disabling shared libraries support. We urge you to upgrade GNU
  5583. -*** binutils to release 2.9.1 or newer. Another option is to modify
  5584. -*** your PATH or compiler configuration so that the native linker is
  5585. -*** used, and then restart.
  5586. -
  5587. -EOF
  5588. - elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  5589. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  5590. - _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'
  5591. - else
  5592. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  5593. - fi
  5594. - ;;
  5595. -
  5596. - sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  5597. - case `$LD -v 2>&1` in
  5598. - *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*)
  5599. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  5600. - cat <<_LT_EOF 1>&2
  5601. -
  5602. -*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  5603. -*** reliably create shared libraries on SCO systems. Therefore, libtool
  5604. -*** is disabling shared libraries support. We urge you to upgrade GNU
  5605. -*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  5606. -*** your PATH or compiler configuration so that the native linker is
  5607. -*** used, and then restart.
  5608. -
  5609. -_LT_EOF
  5610. - ;;
  5611. - *)
  5612. - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  5613. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
  5614. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
  5615. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
  5616. - else
  5617. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  5618. - fi
  5619. - ;;
  5620. - esac
  5621. - ;;
  5622. -
  5623. - sunos4*)
  5624. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  5625. - wlarc=
  5626. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  5627. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  5628. - ;;
  5629. -
  5630. - *)
  5631. - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  5632. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  5633. - _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'
  5634. - else
  5635. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  5636. - fi
  5637. - ;;
  5638. - esac
  5639. -
  5640. - if test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no; then
  5641. - runpath_var=
  5642. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
  5643. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
  5644. - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
  5645. - fi
  5646. - else
  5647. - # PORTME fill in a description of your system's linker (not GNU ld)
  5648. - case $host_os in
  5649. - aix3*)
  5650. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
  5651. - _LT_AC_TAGVAR(always_export_symbols, $1)=yes
  5652. - _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'
  5653. - # Note: this linker hardcodes the directories in LIBPATH if there
  5654. - # are no directories specified by -L.
  5655. - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
  5656. - if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  5657. - # Neither direct hardcoding nor static linking is supported with a
  5658. - # broken collect2.
  5659. - _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
  5660. - fi
  5661. - ;;
  5662. -
  5663. - aix4* | aix5*)
  5664. - if test "$host_cpu" = ia64; then
  5665. - # On IA64, the linker does run time linking by default, so we don't
  5666. - # have to do anything special.
  5667. - aix_use_runtimelinking=no
  5668. - exp_sym_flag='-Bexport'
  5669. - no_entry_flag=""
  5670. - else
  5671. - # If we're using GNU nm, then we don't want the "-C" option.
  5672. - # -C means demangle to AIX nm, but means don't demangle with GNU nm
  5673. - if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
  5674. - _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'
  5675. - else
  5676. - _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'
  5677. - fi
  5678. - aix_use_runtimelinking=no
  5679. -
  5680. - # Test if we are trying to use run time linking or normal
  5681. - # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  5682. - # need to do runtime linking.
  5683. - case $host_os in aix4.[[23]]|aix4.[[23]].*|aix5*)
  5684. - for ld_flag in $LDFLAGS; do
  5685. - if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  5686. - aix_use_runtimelinking=yes
  5687. - break
  5688. - fi
  5689. - done
  5690. - ;;
  5691. - esac
  5692. -
  5693. - exp_sym_flag='-bexport'
  5694. - no_entry_flag='-bnoentry'
  5695. - fi
  5696. -
  5697. - # When large executables or shared objects are built, AIX ld can
  5698. - # have problems creating the table of contents. If linking a library
  5699. - # or program results in "error TOC overflow" add -mminimal-toc to
  5700. - # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  5701. - # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  5702. -
  5703. - _LT_AC_TAGVAR(archive_cmds, $1)=''
  5704. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  5705. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
  5706. - _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
  5707. -
  5708. - if test "$GCC" = yes; then
  5709. - case $host_os in aix4.[[012]]|aix4.[[012]].*)
  5710. - # We only want to do this on AIX 4.2 and lower, the check
  5711. - # below for broken collect2 doesn't work under 4.3+
  5712. - collect2name=`${CC} -print-prog-name=collect2`
  5713. - if test -f "$collect2name" && \
  5714. - strings "$collect2name" | grep resolve_lib_name >/dev/null
  5715. - then
  5716. - # We have reworked collect2
  5717. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  5718. - else
  5719. - # We have old collect2
  5720. - _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
  5721. - # It fails to find uninstalled libraries when the uninstalled
  5722. - # path is not listed in the libpath. Setting hardcode_minus_L
  5723. - # to unsupported forces relinking
  5724. - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
  5725. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  5726. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
  5727. - fi
  5728. - ;;
  5729. - esac
  5730. - shared_flag='-shared'
  5731. - if test "$aix_use_runtimelinking" = yes; then
  5732. - shared_flag="$shared_flag "'${wl}-G'
  5733. - fi
  5734. - else
  5735. - # not using gcc
  5736. - if test "$host_cpu" = ia64; then
  5737. - # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  5738. - # chokes on -Wl,-G. The following line is correct:
  5739. - shared_flag='-G'
  5740. - else
  5741. - if test "$aix_use_runtimelinking" = yes; then
  5742. - shared_flag='${wl}-G'
  5743. - else
  5744. - shared_flag='${wl}-bM:SRE'
  5745. - fi
  5746. - fi
  5747. - fi
  5748. -
  5749. - # It seems that -bexpall does not export symbols beginning with
  5750. - # underscore (_), so it is better to generate a list of symbols to export.
  5751. - _LT_AC_TAGVAR(always_export_symbols, $1)=yes
  5752. - if test "$aix_use_runtimelinking" = yes; then
  5753. - # Warning - without using the other runtime loading flags (-brtl),
  5754. - # -berok will link without error, but may produce a broken library.
  5755. - _LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok'
  5756. - # Determine the default libpath from the value encoded in an empty executable.
  5757. - _LT_AC_SYS_LIBPATH_AIX
  5758. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
  5759. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  5760. - else
  5761. - if test "$host_cpu" = ia64; then
  5762. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
  5763. - _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
  5764. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
  5765. - else
  5766. - # Determine the default libpath from the value encoded in an empty executable.
  5767. - _LT_AC_SYS_LIBPATH_AIX
  5768. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
  5769. - # Warning - without using the other run time loading flags,
  5770. - # -berok will link without error, but may produce a broken library.
  5771. - _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
  5772. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
  5773. - # Exported symbols can be pulled into shared objects from archives
  5774. - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
  5775. - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
  5776. - # This is similar to how AIX traditionally builds its shared libraries.
  5777. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
  5778. - fi
  5779. - fi
  5780. - ;;
  5781. -
  5782. - amigaos*)
  5783. - _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)'
  5784. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  5785. - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
  5786. - # see comment about different semantics on the GNU ld section
  5787. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  5788. - ;;
  5789. -
  5790. - bsdi[[45]]*)
  5791. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic
  5792. - ;;
  5793. -
  5794. - cygwin* | mingw* | pw32*)
  5795. - # When not using gcc, we currently assume that we are using
  5796. - # Microsoft Visual C++.
  5797. - # hardcode_libdir_flag_spec is actually meaningless, as there is
  5798. - # no search path for DLLs.
  5799. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
  5800. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
  5801. - # Tell ltmain to make .lib files, not .a files.
  5802. - libext=lib
  5803. - # Tell ltmain to make .dll files, not .so files.
  5804. - shrext_cmds=".dll"
  5805. - # FIXME: Setting linknames here is a bad hack.
  5806. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
  5807. - # The linker will automatically build a .lib file if we build a DLL.
  5808. - _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='true'
  5809. - # FIXME: Should let the user specify the lib program.
  5810. - _LT_AC_TAGVAR(old_archive_cmds, $1)='lib /OUT:$oldlib$oldobjs$old_deplibs'
  5811. - _LT_AC_TAGVAR(fix_srcfile_path, $1)='`cygpath -w "$srcfile"`'
  5812. - _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
  5813. - ;;
  5814. -
  5815. - darwin* | rhapsody*)
  5816. - case $host_os in
  5817. - rhapsody* | darwin1.[[012]])
  5818. - _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}suppress'
  5819. - ;;
  5820. - *) # Darwin 1.3 on
  5821. - if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
  5822. - _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  5823. - else
  5824. - case ${MACOSX_DEPLOYMENT_TARGET} in
  5825. - 10.[[012]])
  5826. - _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  5827. - ;;
  5828. - 10.*)
  5829. - _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}dynamic_lookup'
  5830. - ;;
  5831. - esac
  5832. - fi
  5833. - ;;
  5834. - esac
  5835. - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  5836. - _LT_AC_TAGVAR(hardcode_direct, $1)=no
  5837. - _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
  5838. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
  5839. - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=''
  5840. - _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
  5841. - if test "$GCC" = yes ; then
  5842. - output_verbose_link_cmd='echo'
  5843. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
  5844. - _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  5845. - # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  5846. - _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}'
  5847. - _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}'
  5848. - else
  5849. - case $cc_basename in
  5850. - xlc*)
  5851. - output_verbose_link_cmd='echo'
  5852. - _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'
  5853. - _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  5854. - # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  5855. - _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}'
  5856. - _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}'
  5857. - ;;
  5858. - *)
  5859. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  5860. - ;;
  5861. - esac
  5862. - fi
  5863. - ;;
  5864. -
  5865. - dgux*)
  5866. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  5867. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  5868. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  5869. - ;;
  5870. -
  5871. - freebsd1*)
  5872. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  5873. - ;;
  5874. -
  5875. - # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  5876. - # support. Future versions do this automatically, but an explicit c++rt0.o
  5877. - # does not break anything, and helps significantly (at the cost of a little
  5878. - # extra space).
  5879. - freebsd2.2*)
  5880. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  5881. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  5882. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  5883. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  5884. - ;;
  5885. -
  5886. - # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  5887. - freebsd2*)
  5888. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  5889. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  5890. - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
  5891. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  5892. - ;;
  5893. -
  5894. - # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  5895. - freebsd* | kfreebsd*-gnu | dragonfly*)
  5896. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  5897. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  5898. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  5899. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  5900. - ;;
  5901. -
  5902. - hpux9*)
  5903. - if test "$GCC" = yes; then
  5904. - _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'
  5905. - else
  5906. - _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'
  5907. - fi
  5908. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  5909. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  5910. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  5911. -
  5912. - # hardcode_minus_L: Not really in the search PATH,
  5913. - # but as the default location of the library.
  5914. - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
  5915. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  5916. - ;;
  5917. -
  5918. - hpux10*)
  5919. - if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  5920. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  5921. - else
  5922. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  5923. - fi
  5924. - if test "$with_gnu_ld" = no; then
  5925. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  5926. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  5927. -
  5928. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  5929. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  5930. -
  5931. - # hardcode_minus_L: Not really in the search PATH,
  5932. - # but as the default location of the library.
  5933. - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
  5934. - fi
  5935. - ;;
  5936. -
  5937. - hpux11*)
  5938. - if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  5939. - case $host_cpu in
  5940. - hppa*64*)
  5941. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  5942. - ;;
  5943. - ia64*)
  5944. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  5945. - ;;
  5946. - *)
  5947. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  5948. - ;;
  5949. - esac
  5950. - else
  5951. - case $host_cpu in
  5952. - hppa*64*)
  5953. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  5954. - ;;
  5955. - ia64*)
  5956. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  5957. - ;;
  5958. - *)
  5959. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  5960. - ;;
  5961. - esac
  5962. - fi
  5963. - if test "$with_gnu_ld" = no; then
  5964. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  5965. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  5966. -
  5967. - case $host_cpu in
  5968. - hppa*64*|ia64*)
  5969. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
  5970. - _LT_AC_TAGVAR(hardcode_direct, $1)=no
  5971. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  5972. - ;;
  5973. - *)
  5974. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  5975. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  5976. -
  5977. - # hardcode_minus_L: Not really in the search PATH,
  5978. - # but as the default location of the library.
  5979. - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
  5980. - ;;
  5981. - esac
  5982. - fi
  5983. - ;;
  5984. -
  5985. - irix5* | irix6* | nonstopux*)
  5986. - if test "$GCC" = yes; then
  5987. - _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'
  5988. - else
  5989. - _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'
  5990. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='-rpath $libdir'
  5991. - fi
  5992. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  5993. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  5994. - _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
  5995. - ;;
  5996. -
  5997. - netbsd*)
  5998. - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  5999. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  6000. - else
  6001. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  6002. - fi
  6003. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  6004. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  6005. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  6006. - ;;
  6007. -
  6008. - newsos6)
  6009. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  6010. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  6011. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  6012. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  6013. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  6014. - ;;
  6015. -
  6016. - openbsd*)
  6017. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  6018. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  6019. - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  6020. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  6021. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  6022. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  6023. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  6024. - else
  6025. - case $host_os in
  6026. - openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)
  6027. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  6028. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  6029. - ;;
  6030. - *)
  6031. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  6032. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  6033. - ;;
  6034. - esac
  6035. - fi
  6036. - ;;
  6037. -
  6038. - os2*)
  6039. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  6040. - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
  6041. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
  6042. - _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'
  6043. - _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  6044. - ;;
  6045. -
  6046. - osf3*)
  6047. - if test "$GCC" = yes; then
  6048. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
  6049. - _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'
  6050. - else
  6051. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
  6052. - _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'
  6053. - fi
  6054. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  6055. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  6056. - ;;
  6057. -
  6058. - osf4* | osf5*) # as osf3* with the addition of -msym flag
  6059. - if test "$GCC" = yes; then
  6060. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
  6061. - _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'
  6062. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  6063. - else
  6064. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
  6065. - _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'
  6066. - _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~
  6067. - $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
  6068. -
  6069. - # Both c and cxx compiler support -rpath directly
  6070. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
  6071. - fi
  6072. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  6073. - ;;
  6074. -
  6075. - solaris*)
  6076. - _LT_AC_TAGVAR(no_undefined_flag, $1)=' -z text'
  6077. - if test "$GCC" = yes; then
  6078. - wlarc='${wl}'
  6079. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  6080. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  6081. - $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
  6082. - else
  6083. - wlarc=''
  6084. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  6085. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  6086. - $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
  6087. - fi
  6088. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  6089. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  6090. - case $host_os in
  6091. - solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
  6092. - *)
  6093. - # The compiler driver will combine linker options so we
  6094. - # cannot just pass the convience library names through
  6095. - # without $wl, iff we do not link with $LD.
  6096. - # Luckily, gcc supports the same syntax we need for Sun Studio.
  6097. - # Supported since Solaris 2.6 (maybe 2.5.1?)
  6098. - case $wlarc in
  6099. - '')
  6100. - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' ;;
  6101. - *)
  6102. - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
  6103. - esac ;;
  6104. - esac
  6105. - _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
  6106. - ;;
  6107. -
  6108. - sunos4*)
  6109. - if test "x$host_vendor" = xsequent; then
  6110. - # Use $CC to link under sequent, because it throws in some extra .o
  6111. - # files that make .init and .fini sections work.
  6112. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  6113. - else
  6114. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  6115. - fi
  6116. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  6117. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  6118. - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
  6119. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  6120. - ;;
  6121. -
  6122. - sysv4)
  6123. - case $host_vendor in
  6124. - sni)
  6125. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  6126. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes # is this really true???
  6127. - ;;
  6128. - siemens)
  6129. - ## LD is ld it makes a PLAMLIB
  6130. - ## CC just makes a GrossModule.
  6131. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  6132. - _LT_AC_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs'
  6133. - _LT_AC_TAGVAR(hardcode_direct, $1)=no
  6134. - ;;
  6135. - motorola)
  6136. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  6137. - _LT_AC_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie
  6138. - ;;
  6139. - esac
  6140. - runpath_var='LD_RUN_PATH'
  6141. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  6142. - ;;
  6143. -
  6144. - sysv4.3*)
  6145. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  6146. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  6147. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport'
  6148. - ;;
  6149. -
  6150. - sysv4*MP*)
  6151. - if test -d /usr/nec; then
  6152. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  6153. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  6154. - runpath_var=LD_RUN_PATH
  6155. - hardcode_runpath_var=yes
  6156. - _LT_AC_TAGVAR(ld_shlibs, $1)=yes
  6157. - fi
  6158. - ;;
  6159. -
  6160. - sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7*)
  6161. - _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
  6162. - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  6163. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  6164. - runpath_var='LD_RUN_PATH'
  6165. -
  6166. - if test "$GCC" = yes; then
  6167. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  6168. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  6169. - else
  6170. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  6171. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  6172. - fi
  6173. - ;;
  6174. -
  6175. - sysv5* | sco3.2v5* | sco5v6*)
  6176. - # Note: We can NOT use -z defs as we might desire, because we do not
  6177. - # link with -lc, and that would cause any symbols used from libc to
  6178. - # always be unresolved, which means just about no library would
  6179. - # ever link correctly. If we're not using GNU ld we use -z text
  6180. - # though, which does catch some bad symbols but isn't as heavy-handed
  6181. - # as -z defs.
  6182. - _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
  6183. - _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
  6184. - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  6185. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  6186. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
  6187. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
  6188. - _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
  6189. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
  6190. - runpath_var='LD_RUN_PATH'
  6191. -
  6192. - if test "$GCC" = yes; then
  6193. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  6194. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  6195. - else
  6196. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  6197. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  6198. - fi
  6199. - ;;
  6200. -
  6201. - uts4*)
  6202. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  6203. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  6204. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  6205. - ;;
  6206. -
  6207. - *)
  6208. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  6209. - ;;
  6210. - esac
  6211. - fi
  6212. -])
  6213. -AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)])
  6214. -test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
  6215. -
  6216. -#
  6217. -# Do we need to explicitly link libc?
  6218. -#
  6219. -case "x$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)" in
  6220. -x|xyes)
  6221. - # Assume -lc should be added
  6222. - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
  6223. -
  6224. - if test "$enable_shared" = yes && test "$GCC" = yes; then
  6225. - case $_LT_AC_TAGVAR(archive_cmds, $1) in
  6226. - *'~'*)
  6227. - # FIXME: we may have to deal with multi-command sequences.
  6228. - ;;
  6229. - '$CC '*)
  6230. - # Test whether the compiler implicitly links with -lc since on some
  6231. - # systems, -lgcc has to come before -lc. If gcc already passes -lc
  6232. - # to ld, don't add -lc before -lgcc.
  6233. - AC_MSG_CHECKING([whether -lc should be explicitly linked in])
  6234. - $rm conftest*
  6235. - printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  6236. -
  6237. - if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
  6238. - soname=conftest
  6239. - lib=conftest
  6240. - libobjs=conftest.$ac_objext
  6241. - deplibs=
  6242. - wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)
  6243. - pic_flag=$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)
  6244. - compiler_flags=-v
  6245. - linker_flags=-v
  6246. - verstring=
  6247. - output_objdir=.
  6248. - libname=conftest
  6249. - lt_save_allow_undefined_flag=$_LT_AC_TAGVAR(allow_undefined_flag, $1)
  6250. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=
  6251. - if AC_TRY_EVAL(_LT_AC_TAGVAR(archive_cmds, $1) 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1)
  6252. - then
  6253. - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  6254. - else
  6255. - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
  6256. - fi
  6257. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
  6258. - else
  6259. - cat conftest.err 1>&5
  6260. - fi
  6261. - $rm conftest*
  6262. - AC_MSG_RESULT([$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)])
  6263. - ;;
  6264. - esac
  6265. - fi
  6266. - ;;
  6267. -esac
  6268. -])# AC_LIBTOOL_PROG_LD_SHLIBS
  6269. -
  6270. -
  6271. -# _LT_AC_FILE_LTDLL_C
  6272. -# -------------------
  6273. -# Be careful that the start marker always follows a newline.
  6274. -AC_DEFUN([_LT_AC_FILE_LTDLL_C], [
  6275. -# /* ltdll.c starts here */
  6276. -# #define WIN32_LEAN_AND_MEAN
  6277. -# #include <windows.h>
  6278. -# #undef WIN32_LEAN_AND_MEAN
  6279. -# #include <stdio.h>
  6280. -#
  6281. -# #ifndef __CYGWIN__
  6282. -# # ifdef __CYGWIN32__
  6283. -# # define __CYGWIN__ __CYGWIN32__
  6284. -# # endif
  6285. -# #endif
  6286. -#
  6287. -# #ifdef __cplusplus
  6288. -# extern "C" {
  6289. -# #endif
  6290. -# BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
  6291. -# #ifdef __cplusplus
  6292. -# }
  6293. -# #endif
  6294. -#
  6295. -# #ifdef __CYGWIN__
  6296. -# #include <cygwin/cygwin_dll.h>
  6297. -# DECLARE_CYGWIN_DLL( DllMain );
  6298. -# #endif
  6299. -# HINSTANCE __hDllInstance_base;
  6300. -#
  6301. -# BOOL APIENTRY
  6302. -# DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
  6303. -# {
  6304. -# __hDllInstance_base = hInst;
  6305. -# return TRUE;
  6306. -# }
  6307. -# /* ltdll.c ends here */
  6308. -])# _LT_AC_FILE_LTDLL_C
  6309. -
  6310. -
  6311. -# _LT_AC_TAGVAR(VARNAME, [TAGNAME])
  6312. -# ---------------------------------
  6313. -AC_DEFUN([_LT_AC_TAGVAR], [ifelse([$2], [], [$1], [$1_$2])])
  6314. -
  6315. -
  6316. -# old names
  6317. -AC_DEFUN([AM_PROG_LIBTOOL], [AC_PROG_LIBTOOL])
  6318. -AC_DEFUN([AM_ENABLE_SHARED], [AC_ENABLE_SHARED($@)])
  6319. -AC_DEFUN([AM_ENABLE_STATIC], [AC_ENABLE_STATIC($@)])
  6320. -AC_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)])
  6321. -AC_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)])
  6322. -AC_DEFUN([AM_PROG_LD], [AC_PROG_LD])
  6323. -AC_DEFUN([AM_PROG_NM], [AC_PROG_NM])
  6324. -
  6325. -# This is just to silence aclocal about the macro not being used
  6326. -ifelse([AC_DISABLE_FAST_INSTALL])
  6327. -
  6328. -AC_DEFUN([LT_AC_PROG_GCJ],
  6329. -[AC_CHECK_TOOL(GCJ, gcj, no)
  6330. - test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
  6331. - AC_SUBST(GCJFLAGS)
  6332. -])
  6333. -
  6334. -AC_DEFUN([LT_AC_PROG_RC],
  6335. -[AC_CHECK_TOOL(RC, windres, no)
  6336. -])
  6337. -
  6338. -# NOTE: This macro has been submitted for inclusion into #
  6339. -# GNU Autoconf as AC_PROG_SED. When it is available in #
  6340. -# a released version of Autoconf we should remove this #
  6341. -# macro and use it instead. #
  6342. -# LT_AC_PROG_SED
  6343. -# --------------
  6344. -# Check for a fully-functional sed program, that truncates
  6345. -# as few characters as possible. Prefer GNU sed if found.
  6346. -AC_DEFUN([LT_AC_PROG_SED],
  6347. -[AC_MSG_CHECKING([for a sed that does not truncate output])
  6348. -AC_CACHE_VAL(lt_cv_path_SED,
  6349. -[# Loop through the user's path and test for sed and gsed.
  6350. -# Then use that list of sed's as ones to test for truncation.
  6351. -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6352. -for as_dir in $PATH
  6353. -do
  6354. - IFS=$as_save_IFS
  6355. - test -z "$as_dir" && as_dir=.
  6356. - for lt_ac_prog in sed gsed; do
  6357. - for ac_exec_ext in '' $ac_executable_extensions; do
  6358. - if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
  6359. - lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
  6360. - fi
  6361. - done
  6362. - done
  6363. -done
  6364. -lt_ac_max=0
  6365. -lt_ac_count=0
  6366. -# Add /usr/xpg4/bin/sed as it is typically found on Solaris
  6367. -# along with /bin/sed that truncates output.
  6368. -for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
  6369. - test ! -f $lt_ac_sed && continue
  6370. - cat /dev/null > conftest.in
  6371. - lt_ac_count=0
  6372. - echo $ECHO_N "0123456789$ECHO_C" >conftest.in
  6373. - # Check for GNU sed and select it if it is found.
  6374. - if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
  6375. - lt_cv_path_SED=$lt_ac_sed
  6376. - break
  6377. - fi
  6378. - while true; do
  6379. - cat conftest.in conftest.in >conftest.tmp
  6380. - mv conftest.tmp conftest.in
  6381. - cp conftest.in conftest.nl
  6382. - echo >>conftest.nl
  6383. - $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
  6384. - cmp -s conftest.out conftest.nl || break
  6385. - # 10000 chars as input seems more than enough
  6386. - test $lt_ac_count -gt 10 && break
  6387. - lt_ac_count=`expr $lt_ac_count + 1`
  6388. - if test $lt_ac_count -gt $lt_ac_max; then
  6389. - lt_ac_max=$lt_ac_count
  6390. - lt_cv_path_SED=$lt_ac_sed
  6391. - fi
  6392. - done
  6393. -done
  6394. -])
  6395. -SED=$lt_cv_path_SED
  6396. -AC_MSG_RESULT([$SED])
  6397. -])
  6398. -
  6399. -# Copyright (C) 2002, 2003, 2005 Free Software Foundation, Inc.
  6400. +# Copyright (C) 2002, 2003, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
  6401. #
  6402. # This file is free software; the Free Software Foundation
  6403. # gives unlimited permission to copy and/or distribute it,
  6404. @@ -6398,14 +29,31 @@
  6405. # ----------------------------
  6406. # Automake X.Y traces this macro to ensure aclocal.m4 has been
  6407. # generated from the m4 files accompanying Automake X.Y.
  6408. -AC_DEFUN([AM_AUTOMAKE_VERSION], [am__api_version="1.9"])
  6409. +# (This private macro should not be called outside this file.)
  6410. +AC_DEFUN([AM_AUTOMAKE_VERSION],
  6411. +[am__api_version='1.11'
  6412. +dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
  6413. +dnl require some minimum version. Point them to the right macro.
  6414. +m4_if([$1], [1.11.1], [],
  6415. + [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
  6416. +])
  6417. +
  6418. +# _AM_AUTOCONF_VERSION(VERSION)
  6419. +# -----------------------------
  6420. +# aclocal traces this macro to find the Autoconf version.
  6421. +# This is a private macro too. Using m4_define simplifies
  6422. +# the logic in aclocal, which can simply ignore this definition.
  6423. +m4_define([_AM_AUTOCONF_VERSION], [])
  6424. # AM_SET_CURRENT_AUTOMAKE_VERSION
  6425. # -------------------------------
  6426. -# Call AM_AUTOMAKE_VERSION so it can be traced.
  6427. -# This function is AC_REQUIREd by AC_INIT_AUTOMAKE.
  6428. +# Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
  6429. +# This function is AC_REQUIREd by AM_INIT_AUTOMAKE.
  6430. AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
  6431. - [AM_AUTOMAKE_VERSION([1.9.6])])
  6432. +[AM_AUTOMAKE_VERSION([1.11.1])dnl
  6433. +m4_ifndef([AC_AUTOCONF_VERSION],
  6434. + [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
  6435. +_AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))])
  6436. # AM_AUX_DIR_EXPAND -*- Autoconf -*-
  6437. @@ -6462,14 +110,14 @@
  6438. # AM_CONDITIONAL -*- Autoconf -*-
  6439. -# Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005
  6440. +# Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006, 2008
  6441. # Free Software Foundation, Inc.
  6442. #
  6443. # This file is free software; the Free Software Foundation
  6444. # gives unlimited permission to copy and/or distribute it,
  6445. # with or without modifications, as long as this notice is preserved.
  6446. -# serial 7
  6447. +# serial 9
  6448. # AM_CONDITIONAL(NAME, SHELL-CONDITION)
  6449. # -------------------------------------
  6450. @@ -6478,8 +126,11 @@
  6451. [AC_PREREQ(2.52)dnl
  6452. ifelse([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])],
  6453. [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
  6454. -AC_SUBST([$1_TRUE])
  6455. -AC_SUBST([$1_FALSE])
  6456. +AC_SUBST([$1_TRUE])dnl
  6457. +AC_SUBST([$1_FALSE])dnl
  6458. +_AM_SUBST_NOTMAKE([$1_TRUE])dnl
  6459. +_AM_SUBST_NOTMAKE([$1_FALSE])dnl
  6460. +m4_define([_AM_COND_VALUE_$1], [$2])dnl
  6461. if $2; then
  6462. $1_TRUE=
  6463. $1_FALSE='#'
  6464. @@ -6493,15 +144,14 @@
  6465. Usually this means the macro was only invoked conditionally.]])
  6466. fi])])
  6467. -
  6468. -# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005
  6469. +# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2009
  6470. # Free Software Foundation, Inc.
  6471. #
  6472. # This file is free software; the Free Software Foundation
  6473. # gives unlimited permission to copy and/or distribute it,
  6474. # with or without modifications, as long as this notice is preserved.
  6475. -# serial 8
  6476. +# serial 10
  6477. # There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
  6478. # written in clear, in which case automake, when reading aclocal.m4,
  6479. @@ -6529,6 +179,7 @@
  6480. ifelse([$1], CC, [depcc="$CC" am_compiler_list=],
  6481. [$1], CXX, [depcc="$CXX" am_compiler_list=],
  6482. [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
  6483. + [$1], UPC, [depcc="$UPC" am_compiler_list=],
  6484. [$1], GCJ, [depcc="$GCJ" am_compiler_list='gcc3 gcc'],
  6485. [depcc="$$1" am_compiler_list=])
  6486. @@ -6557,6 +208,16 @@
  6487. if test "$am_compiler_list" = ""; then
  6488. am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
  6489. fi
  6490. + am__universal=false
  6491. + m4_case([$1], [CC],
  6492. + [case " $depcc " in #(
  6493. + *\ -arch\ *\ -arch\ *) am__universal=true ;;
  6494. + esac],
  6495. + [CXX],
  6496. + [case " $depcc " in #(
  6497. + *\ -arch\ *\ -arch\ *) am__universal=true ;;
  6498. + esac])
  6499. +
  6500. for depmode in $am_compiler_list; do
  6501. # Setup a source with many dependencies, because some compilers
  6502. # like to wrap large dependency lists on column 80 (with \), and
  6503. @@ -6574,7 +235,17 @@
  6504. done
  6505. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  6506. + # We check with `-c' and `-o' for the sake of the "dashmstdout"
  6507. + # mode. It turns out that the SunPro C++ compiler does not properly
  6508. + # handle `-M -o', and we need to detect this. Also, some Intel
  6509. + # versions had trouble with output in subdirs
  6510. + am__obj=sub/conftest.${OBJEXT-o}
  6511. + am__minus_obj="-o $am__obj"
  6512. case $depmode in
  6513. + gcc)
  6514. + # This depmode causes a compiler race in universal mode.
  6515. + test "$am__universal" = false || continue
  6516. + ;;
  6517. nosideeffect)
  6518. # after this tag, mechanisms are not by side-effect, so they'll
  6519. # only be used when explicitly requested
  6520. @@ -6584,18 +255,23 @@
  6521. break
  6522. fi
  6523. ;;
  6524. + msvisualcpp | msvcmsys)
  6525. + # This compiler won't grok `-c -o', but also, the minuso test has
  6526. + # not run yet. These depmodes are late enough in the game, and
  6527. + # so weak that their functioning should not be impacted.
  6528. + am__obj=conftest.${OBJEXT-o}
  6529. + am__minus_obj=
  6530. + ;;
  6531. none) break ;;
  6532. esac
  6533. - # We check with `-c' and `-o' for the sake of the "dashmstdout"
  6534. - # mode. It turns out that the SunPro C++ compiler does not properly
  6535. - # handle `-M -o', and we need to detect this.
  6536. if depmode=$depmode \
  6537. - source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
  6538. + source=sub/conftest.c object=$am__obj \
  6539. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  6540. - $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
  6541. + $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  6542. >/dev/null 2>conftest.err &&
  6543. + grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  6544. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  6545. - grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
  6546. + grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  6547. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  6548. # icc doesn't choke on unknown options, it will just issue warnings
  6549. # or remarks (even with -Werror). So we grep stderr for any message
  6550. @@ -6646,61 +322,74 @@
  6551. AMDEPBACKSLASH='\'
  6552. fi
  6553. AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
  6554. -AC_SUBST([AMDEPBACKSLASH])
  6555. +AC_SUBST([AMDEPBACKSLASH])dnl
  6556. +_AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl
  6557. ])
  6558. # Generate code to set up dependency tracking. -*- Autoconf -*-
  6559. -# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005
  6560. +# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2008
  6561. # Free Software Foundation, Inc.
  6562. #
  6563. # This file is free software; the Free Software Foundation
  6564. # gives unlimited permission to copy and/or distribute it,
  6565. # with or without modifications, as long as this notice is preserved.
  6566. -#serial 3
  6567. +#serial 5
  6568. # _AM_OUTPUT_DEPENDENCY_COMMANDS
  6569. # ------------------------------
  6570. AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
  6571. -[for mf in $CONFIG_FILES; do
  6572. - # Strip MF so we end up with the name of the file.
  6573. - mf=`echo "$mf" | sed -e 's/:.*$//'`
  6574. - # Check whether this is an Automake generated Makefile or not.
  6575. - # We used to match only the files named `Makefile.in', but
  6576. - # some people rename them; so instead we look at the file content.
  6577. - # Grep'ing the first line is not enough: some people post-process
  6578. - # each Makefile.in and add a new line on top of each file to say so.
  6579. - # So let's grep whole file.
  6580. - if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
  6581. - dirpart=`AS_DIRNAME("$mf")`
  6582. - else
  6583. - continue
  6584. - fi
  6585. - # Extract the definition of DEPDIR, am__include, and am__quote
  6586. - # from the Makefile without running `make'.
  6587. - DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  6588. - test -z "$DEPDIR" && continue
  6589. - am__include=`sed -n 's/^am__include = //p' < "$mf"`
  6590. - test -z "am__include" && continue
  6591. - am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  6592. - # When using ansi2knr, U may be empty or an underscore; expand it
  6593. - U=`sed -n 's/^U = //p' < "$mf"`
  6594. - # Find all dependency output files, they are included files with
  6595. - # $(DEPDIR) in their names. We invoke sed twice because it is the
  6596. - # simplest approach to changing $(DEPDIR) to its actual value in the
  6597. - # expansion.
  6598. - for file in `sed -n "
  6599. - s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  6600. - sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
  6601. - # Make sure the directory exists.
  6602. - test -f "$dirpart/$file" && continue
  6603. - fdir=`AS_DIRNAME(["$file"])`
  6604. - AS_MKDIR_P([$dirpart/$fdir])
  6605. - # echo "creating $dirpart/$file"
  6606. - echo '# dummy' > "$dirpart/$file"
  6607. +[{
  6608. + # Autoconf 2.62 quotes --file arguments for eval, but not when files
  6609. + # are listed without --file. Let's play safe and only enable the eval
  6610. + # if we detect the quoting.
  6611. + case $CONFIG_FILES in
  6612. + *\'*) eval set x "$CONFIG_FILES" ;;
  6613. + *) set x $CONFIG_FILES ;;
  6614. + esac
  6615. + shift
  6616. + for mf
  6617. + do
  6618. + # Strip MF so we end up with the name of the file.
  6619. + mf=`echo "$mf" | sed -e 's/:.*$//'`
  6620. + # Check whether this is an Automake generated Makefile or not.
  6621. + # We used to match only the files named `Makefile.in', but
  6622. + # some people rename them; so instead we look at the file content.
  6623. + # Grep'ing the first line is not enough: some people post-process
  6624. + # each Makefile.in and add a new line on top of each file to say so.
  6625. + # Grep'ing the whole file is not good either: AIX grep has a line
  6626. + # limit of 2048, but all sed's we know have understand at least 4000.
  6627. + if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
  6628. + dirpart=`AS_DIRNAME("$mf")`
  6629. + else
  6630. + continue
  6631. + fi
  6632. + # Extract the definition of DEPDIR, am__include, and am__quote
  6633. + # from the Makefile without running `make'.
  6634. + DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  6635. + test -z "$DEPDIR" && continue
  6636. + am__include=`sed -n 's/^am__include = //p' < "$mf"`
  6637. + test -z "am__include" && continue
  6638. + am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  6639. + # When using ansi2knr, U may be empty or an underscore; expand it
  6640. + U=`sed -n 's/^U = //p' < "$mf"`
  6641. + # Find all dependency output files, they are included files with
  6642. + # $(DEPDIR) in their names. We invoke sed twice because it is the
  6643. + # simplest approach to changing $(DEPDIR) to its actual value in the
  6644. + # expansion.
  6645. + for file in `sed -n "
  6646. + s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  6647. + sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
  6648. + # Make sure the directory exists.
  6649. + test -f "$dirpart/$file" && continue
  6650. + fdir=`AS_DIRNAME(["$file"])`
  6651. + AS_MKDIR_P([$dirpart/$fdir])
  6652. + # echo "creating $dirpart/$file"
  6653. + echo '# dummy' > "$dirpart/$file"
  6654. + done
  6655. done
  6656. -done
  6657. +}
  6658. ])# _AM_OUTPUT_DEPENDENCY_COMMANDS
  6659. @@ -6719,14 +408,14 @@
  6660. # Do all the work for Automake. -*- Autoconf -*-
  6661. -# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005
  6662. -# Free Software Foundation, Inc.
  6663. +# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
  6664. +# 2005, 2006, 2008, 2009 Free Software Foundation, Inc.
  6665. #
  6666. # This file is free software; the Free Software Foundation
  6667. # gives unlimited permission to copy and/or distribute it,
  6668. # with or without modifications, as long as this notice is preserved.
  6669. -# serial 12
  6670. +# serial 16
  6671. # This macro actually does too much. Some checks are only needed if
  6672. # your package does certain things. But this isn't really a big deal.
  6673. @@ -6743,16 +432,20 @@
  6674. # arguments mandatory, and then we can depend on a new Autoconf
  6675. # release and drop the old call support.
  6676. AC_DEFUN([AM_INIT_AUTOMAKE],
  6677. -[AC_PREREQ([2.58])dnl
  6678. +[AC_PREREQ([2.62])dnl
  6679. dnl Autoconf wants to disallow AM_ names. We explicitly allow
  6680. dnl the ones we care about.
  6681. m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
  6682. AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
  6683. AC_REQUIRE([AC_PROG_INSTALL])dnl
  6684. -# test to see if srcdir already configured
  6685. -if test "`cd $srcdir && pwd`" != "`pwd`" &&
  6686. - test -f $srcdir/config.status; then
  6687. - AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
  6688. +if test "`cd $srcdir && pwd`" != "`pwd`"; then
  6689. + # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  6690. + # is not polluted with repeated "-I."
  6691. + AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl
  6692. + # test to see if srcdir already configured
  6693. + if test -f $srcdir/config.status; then
  6694. + AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
  6695. + fi
  6696. fi
  6697. # test whether we have cygpath
  6698. @@ -6772,6 +465,9 @@
  6699. AC_SUBST([PACKAGE], [$1])dnl
  6700. AC_SUBST([VERSION], [$2])],
  6701. [_AM_SET_OPTIONS([$1])dnl
  6702. +dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT.
  6703. +m4_if(m4_ifdef([AC_PACKAGE_NAME], 1)m4_ifdef([AC_PACKAGE_VERSION], 1), 11,,
  6704. + [m4_fatal([AC_INIT should be called with package and version arguments])])dnl
  6705. AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
  6706. AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
  6707. @@ -6787,8 +483,8 @@
  6708. AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version})
  6709. AM_MISSING_PROG(AUTOHEADER, autoheader)
  6710. AM_MISSING_PROG(MAKEINFO, makeinfo)
  6711. -AM_PROG_INSTALL_SH
  6712. -AM_PROG_INSTALL_STRIP
  6713. +AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
  6714. +AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl
  6715. AC_REQUIRE([AM_PROG_MKDIR_P])dnl
  6716. # We need awk for the "check" target. The system "awk" is bad on
  6717. # some platforms.
  6718. @@ -6796,19 +492,36 @@
  6719. AC_REQUIRE([AC_PROG_MAKE_SET])dnl
  6720. AC_REQUIRE([AM_SET_LEADING_DOT])dnl
  6721. _AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])],
  6722. - [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
  6723. - [_AM_PROG_TAR([v7])])])
  6724. + [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
  6725. + [_AM_PROG_TAR([v7])])])
  6726. _AM_IF_OPTION([no-dependencies],,
  6727. [AC_PROVIDE_IFELSE([AC_PROG_CC],
  6728. - [_AM_DEPENDENCIES(CC)],
  6729. - [define([AC_PROG_CC],
  6730. - defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl
  6731. + [_AM_DEPENDENCIES(CC)],
  6732. + [define([AC_PROG_CC],
  6733. + defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl
  6734. AC_PROVIDE_IFELSE([AC_PROG_CXX],
  6735. - [_AM_DEPENDENCIES(CXX)],
  6736. - [define([AC_PROG_CXX],
  6737. - defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
  6738. -])
  6739. -])
  6740. + [_AM_DEPENDENCIES(CXX)],
  6741. + [define([AC_PROG_CXX],
  6742. + defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
  6743. +AC_PROVIDE_IFELSE([AC_PROG_OBJC],
  6744. + [_AM_DEPENDENCIES(OBJC)],
  6745. + [define([AC_PROG_OBJC],
  6746. + defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl
  6747. +])
  6748. +_AM_IF_OPTION([silent-rules], [AC_REQUIRE([AM_SILENT_RULES])])dnl
  6749. +dnl The `parallel-tests' driver may need to know about EXEEXT, so add the
  6750. +dnl `am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen. This macro
  6751. +dnl is hooked onto _AC_COMPILER_EXEEXT early, see below.
  6752. +AC_CONFIG_COMMANDS_PRE(dnl
  6753. +[m4_provide_if([_AM_COMPILER_EXEEXT],
  6754. + [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl
  6755. +])
  6756. +
  6757. +dnl Hook into `_AC_COMPILER_EXEEXT' early to learn its expansion. Do not
  6758. +dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further
  6759. +dnl mangled by Autoconf and run in a shell conditional statement.
  6760. +m4_define([_AC_COMPILER_EXEEXT],
  6761. +m4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])])
  6762. # When config.status generates a header, we must update the stamp-h file.
  6763. @@ -6820,18 +533,19 @@
  6764. # our stamp files there.
  6765. AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
  6766. [# Compute $1's index in $config_headers.
  6767. +_am_arg=$1
  6768. _am_stamp_count=1
  6769. for _am_header in $config_headers :; do
  6770. case $_am_header in
  6771. - $1 | $1:* )
  6772. + $_am_arg | $_am_arg:* )
  6773. break ;;
  6774. * )
  6775. _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  6776. esac
  6777. done
  6778. -echo "timestamp for $1" >`AS_DIRNAME([$1])`/stamp-h[]$_am_stamp_count])
  6779. +echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count])
  6780. -# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
  6781. +# Copyright (C) 2001, 2003, 2005, 2008 Free Software Foundation, Inc.
  6782. #
  6783. # This file is free software; the Free Software Foundation
  6784. # gives unlimited permission to copy and/or distribute it,
  6785. @@ -6842,7 +556,14 @@
  6786. # Define $install_sh.
  6787. AC_DEFUN([AM_PROG_INSTALL_SH],
  6788. [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
  6789. -install_sh=${install_sh-"$am_aux_dir/install-sh"}
  6790. +if test x"${install_sh}" != xset; then
  6791. + case $am_aux_dir in
  6792. + *\ * | *\ *)
  6793. + install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
  6794. + *)
  6795. + install_sh="\${SHELL} $am_aux_dir/install-sh"
  6796. + esac
  6797. +fi
  6798. AC_SUBST(install_sh)])
  6799. # Copyright (C) 2003, 2005 Free Software Foundation, Inc.
  6800. @@ -6868,13 +589,13 @@
  6801. # Check to see how 'make' treats includes. -*- Autoconf -*-
  6802. -# Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation, Inc.
  6803. +# Copyright (C) 2001, 2002, 2003, 2005, 2009 Free Software Foundation, Inc.
  6804. #
  6805. # This file is free software; the Free Software Foundation
  6806. # gives unlimited permission to copy and/or distribute it,
  6807. # with or without modifications, as long as this notice is preserved.
  6808. -# serial 3
  6809. +# serial 4
  6810. # AM_MAKE_INCLUDE()
  6811. # -----------------
  6812. @@ -6883,7 +604,7 @@
  6813. [am_make=${MAKE-make}
  6814. cat > confinc << 'END'
  6815. am__doit:
  6816. - @echo done
  6817. + @echo this is the am__doit target
  6818. .PHONY: am__doit
  6819. END
  6820. # If we don't find an include directive, just comment out the code.
  6821. @@ -6893,24 +614,24 @@
  6822. _am_result=none
  6823. # First try GNU make style include.
  6824. echo "include confinc" > confmf
  6825. -# We grep out `Entering directory' and `Leaving directory'
  6826. -# messages which can occur if `w' ends up in MAKEFLAGS.
  6827. -# In particular we don't look at `^make:' because GNU make might
  6828. -# be invoked under some other name (usually "gmake"), in which
  6829. -# case it prints its new name instead of `make'.
  6830. -if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
  6831. - am__include=include
  6832. - am__quote=
  6833. - _am_result=GNU
  6834. -fi
  6835. +# Ignore all kinds of additional output from `make'.
  6836. +case `$am_make -s -f confmf 2> /dev/null` in #(
  6837. +*the\ am__doit\ target*)
  6838. + am__include=include
  6839. + am__quote=
  6840. + _am_result=GNU
  6841. + ;;
  6842. +esac
  6843. # Now try BSD make style include.
  6844. if test "$am__include" = "#"; then
  6845. echo '.include "confinc"' > confmf
  6846. - if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
  6847. - am__include=.include
  6848. - am__quote="\""
  6849. - _am_result=BSD
  6850. - fi
  6851. + case `$am_make -s -f confmf 2> /dev/null` in #(
  6852. + *the\ am__doit\ target*)
  6853. + am__include=.include
  6854. + am__quote="\""
  6855. + _am_result=BSD
  6856. + ;;
  6857. + esac
  6858. fi
  6859. AC_SUBST([am__include])
  6860. AC_SUBST([am__quote])
  6861. @@ -6918,13 +639,14 @@
  6862. rm -f confinc confmf
  6863. ])
  6864. -# Copyright (C) 1999, 2000, 2001, 2003, 2005 Free Software Foundation, Inc.
  6865. +# Copyright (C) 1999, 2000, 2001, 2003, 2004, 2005, 2008
  6866. +# Free Software Foundation, Inc.
  6867. #
  6868. # This file is free software; the Free Software Foundation
  6869. # gives unlimited permission to copy and/or distribute it,
  6870. # with or without modifications, as long as this notice is preserved.
  6871. -# serial 3
  6872. +# serial 6
  6873. # AM_PROG_CC_C_O
  6874. # --------------
  6875. @@ -6932,11 +654,13 @@
  6876. AC_DEFUN([AM_PROG_CC_C_O],
  6877. [AC_REQUIRE([AC_PROG_CC_C_O])dnl
  6878. AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
  6879. +AC_REQUIRE_AUX_FILE([compile])dnl
  6880. # FIXME: we rely on the cache variable name because
  6881. # there is no other way.
  6882. set dummy $CC
  6883. -ac_cc=`echo $[2] | sed ['s/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/']`
  6884. -if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
  6885. +am_cc=`echo $[2] | sed ['s/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/']`
  6886. +eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
  6887. +if test "$am_t" != yes; then
  6888. # Losing compiler, so override with the script.
  6889. # FIXME: It is wrong to rewrite CC.
  6890. # But if we don't then we get into trouble of one sort or another.
  6891. @@ -6944,18 +668,22 @@
  6892. # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
  6893. CC="$am_aux_dir/compile $CC"
  6894. fi
  6895. +dnl Make sure AC_PROG_CC is never called again, or it will override our
  6896. +dnl setting of CC.
  6897. +m4_define([AC_PROG_CC],
  6898. + [m4_fatal([AC_PROG_CC cannot be called after AM_PROG_CC_C_O])])
  6899. ])
  6900. # Fake the existence of programs that GNU maintainers use. -*- Autoconf -*-
  6901. -# Copyright (C) 1997, 1999, 2000, 2001, 2003, 2005
  6902. +# Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005, 2008
  6903. # Free Software Foundation, Inc.
  6904. #
  6905. # This file is free software; the Free Software Foundation
  6906. # gives unlimited permission to copy and/or distribute it,
  6907. # with or without modifications, as long as this notice is preserved.
  6908. -# serial 4
  6909. +# serial 6
  6910. # AM_MISSING_PROG(NAME, PROGRAM)
  6911. # ------------------------------
  6912. @@ -6971,7 +699,15 @@
  6913. # If it does, set am_missing_run to use it, otherwise, to nothing.
  6914. AC_DEFUN([AM_MISSING_HAS_RUN],
  6915. [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
  6916. -test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
  6917. +AC_REQUIRE_AUX_FILE([missing])dnl
  6918. +if test x"${MISSING+set}" != xset; then
  6919. + case $am_aux_dir in
  6920. + *\ * | *\ *)
  6921. + MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
  6922. + *)
  6923. + MISSING="\${SHELL} $am_aux_dir/missing" ;;
  6924. + esac
  6925. +fi
  6926. # Use eval to expand $SHELL
  6927. if eval "$MISSING --run true"; then
  6928. am_missing_run="$MISSING --run "
  6929. @@ -6981,7 +717,7 @@
  6930. fi
  6931. ])
  6932. -# Copyright (C) 2003, 2004, 2005 Free Software Foundation, Inc.
  6933. +# Copyright (C) 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
  6934. #
  6935. # This file is free software; the Free Software Foundation
  6936. # gives unlimited permission to copy and/or distribute it,
  6937. @@ -6989,70 +725,33 @@
  6938. # AM_PROG_MKDIR_P
  6939. # ---------------
  6940. -# Check whether `mkdir -p' is supported, fallback to mkinstalldirs otherwise.
  6941. -#
  6942. -# Automake 1.8 used `mkdir -m 0755 -p --' to ensure that directories
  6943. -# created by `make install' are always world readable, even if the
  6944. -# installer happens to have an overly restrictive umask (e.g. 077).
  6945. -# This was a mistake. There are at least two reasons why we must not
  6946. -# use `-m 0755':
  6947. -# - it causes special bits like SGID to be ignored,
  6948. -# - it may be too restrictive (some setups expect 775 directories).
  6949. -#
  6950. -# Do not use -m 0755 and let people choose whatever they expect by
  6951. -# setting umask.
  6952. -#
  6953. -# We cannot accept any implementation of `mkdir' that recognizes `-p'.
  6954. -# Some implementations (such as Solaris 8's) are not thread-safe: if a
  6955. -# parallel make tries to run `mkdir -p a/b' and `mkdir -p a/c'
  6956. -# concurrently, both version can detect that a/ is missing, but only
  6957. -# one can create it and the other will error out. Consequently we
  6958. -# restrict ourselves to GNU make (using the --version option ensures
  6959. -# this.)
  6960. +# Check for `mkdir -p'.
  6961. AC_DEFUN([AM_PROG_MKDIR_P],
  6962. -[if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
  6963. - # We used to keeping the `.' as first argument, in order to
  6964. - # allow $(mkdir_p) to be used without argument. As in
  6965. - # $(mkdir_p) $(somedir)
  6966. - # where $(somedir) is conditionally defined. However this is wrong
  6967. - # for two reasons:
  6968. - # 1. if the package is installed by a user who cannot write `.'
  6969. - # make install will fail,
  6970. - # 2. the above comment should most certainly read
  6971. - # $(mkdir_p) $(DESTDIR)$(somedir)
  6972. - # so it does not work when $(somedir) is undefined and
  6973. - # $(DESTDIR) is not.
  6974. - # To support the latter case, we have to write
  6975. - # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
  6976. - # so the `.' trick is pointless.
  6977. - mkdir_p='mkdir -p --'
  6978. -else
  6979. - # On NextStep and OpenStep, the `mkdir' command does not
  6980. - # recognize any option. It will interpret all options as
  6981. - # directories to create, and then abort because `.' already
  6982. - # exists.
  6983. - for d in ./-p ./--version;
  6984. - do
  6985. - test -d $d && rmdir $d
  6986. - done
  6987. - # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
  6988. - if test -f "$ac_aux_dir/mkinstalldirs"; then
  6989. - mkdir_p='$(mkinstalldirs)'
  6990. - else
  6991. - mkdir_p='$(install_sh) -d'
  6992. - fi
  6993. -fi
  6994. -AC_SUBST([mkdir_p])])
  6995. +[AC_PREREQ([2.60])dnl
  6996. +AC_REQUIRE([AC_PROG_MKDIR_P])dnl
  6997. +dnl Automake 1.8 to 1.9.6 used to define mkdir_p. We now use MKDIR_P,
  6998. +dnl while keeping a definition of mkdir_p for backward compatibility.
  6999. +dnl @MKDIR_P@ is magic: AC_OUTPUT adjusts its value for each Makefile.
  7000. +dnl However we cannot define mkdir_p as $(MKDIR_P) for the sake of
  7001. +dnl Makefile.ins that do not define MKDIR_P, so we do our own
  7002. +dnl adjustment using top_builddir (which is defined more often than
  7003. +dnl MKDIR_P).
  7004. +AC_SUBST([mkdir_p], ["$MKDIR_P"])dnl
  7005. +case $mkdir_p in
  7006. + [[\\/$]]* | ?:[[\\/]]*) ;;
  7007. + */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
  7008. +esac
  7009. +])
  7010. # Helper functions for option handling. -*- Autoconf -*-
  7011. -# Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation, Inc.
  7012. +# Copyright (C) 2001, 2002, 2003, 2005, 2008 Free Software Foundation, Inc.
  7013. #
  7014. # This file is free software; the Free Software Foundation
  7015. # gives unlimited permission to copy and/or distribute it,
  7016. # with or without modifications, as long as this notice is preserved.
  7017. -# serial 3
  7018. +# serial 4
  7019. # _AM_MANGLE_OPTION(NAME)
  7020. # -----------------------
  7021. @@ -7069,7 +768,7 @@
  7022. # ----------------------------------
  7023. # OPTIONS is a space-separated list of Automake options.
  7024. AC_DEFUN([_AM_SET_OPTIONS],
  7025. -[AC_FOREACH([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
  7026. +[m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
  7027. # _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
  7028. # -------------------------------------------
  7029. @@ -7079,14 +778,14 @@
  7030. # Check to make sure that the build environment is sane. -*- Autoconf -*-
  7031. -# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005
  7032. +# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005, 2008
  7033. # Free Software Foundation, Inc.
  7034. #
  7035. # This file is free software; the Free Software Foundation
  7036. # gives unlimited permission to copy and/or distribute it,
  7037. # with or without modifications, as long as this notice is preserved.
  7038. -# serial 4
  7039. +# serial 5
  7040. # AM_SANITY_CHECK
  7041. # ---------------
  7042. @@ -7095,16 +794,29 @@
  7043. # Just in case
  7044. sleep 1
  7045. echo timestamp > conftest.file
  7046. +# Reject unsafe characters in $srcdir or the absolute working directory
  7047. +# name. Accept space and tab only in the latter.
  7048. +am_lf='
  7049. +'
  7050. +case `pwd` in
  7051. + *[[\\\"\#\$\&\'\`$am_lf]]*)
  7052. + AC_MSG_ERROR([unsafe absolute working directory name]);;
  7053. +esac
  7054. +case $srcdir in
  7055. + *[[\\\"\#\$\&\'\`$am_lf\ \ ]]*)
  7056. + AC_MSG_ERROR([unsafe srcdir value: `$srcdir']);;
  7057. +esac
  7058. +
  7059. # Do `set' in a subshell so we don't clobber the current shell's
  7060. # arguments. Must try -L first in case configure is actually a
  7061. # symlink; some systems play weird games with the mod time of symlinks
  7062. # (eg FreeBSD returns the mod time of the symlink's containing
  7063. # directory).
  7064. if (
  7065. - set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
  7066. + set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
  7067. if test "$[*]" = "X"; then
  7068. # -L didn't work.
  7069. - set X `ls -t $srcdir/configure conftest.file`
  7070. + set X `ls -t "$srcdir/configure" conftest.file`
  7071. fi
  7072. rm -f conftest.file
  7073. if test "$[*]" != "X $srcdir/configure conftest.file" \
  7074. @@ -7154,9 +866,28 @@
  7075. if test "$cross_compiling" != no; then
  7076. AC_CHECK_TOOL([STRIP], [strip], :)
  7077. fi
  7078. -INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
  7079. +INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  7080. AC_SUBST([INSTALL_STRIP_PROGRAM])])
  7081. +# Copyright (C) 2006, 2008 Free Software Foundation, Inc.
  7082. +#
  7083. +# This file is free software; the Free Software Foundation
  7084. +# gives unlimited permission to copy and/or distribute it,
  7085. +# with or without modifications, as long as this notice is preserved.
  7086. +
  7087. +# serial 2
  7088. +
  7089. +# _AM_SUBST_NOTMAKE(VARIABLE)
  7090. +# ---------------------------
  7091. +# Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in.
  7092. +# This macro is traced by Automake.
  7093. +AC_DEFUN([_AM_SUBST_NOTMAKE])
  7094. +
  7095. +# AM_SUBST_NOTMAKE(VARIABLE)
  7096. +# ---------------------------
  7097. +# Public sister of _AM_SUBST_NOTMAKE.
  7098. +AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)])
  7099. +
  7100. # Check how to create a tarball. -*- Autoconf -*-
  7101. # Copyright (C) 2004, 2005 Free Software Foundation, Inc.
  7102. @@ -7256,5 +987,10 @@
  7103. m4_include([m4/acx_pthread.m4])
  7104. m4_include([m4/ax_cflags_gcc_option.m4])
  7105. m4_include([m4/ax_cflags_warn_all.m4])
  7106. +m4_include([m4/libtool.m4])
  7107. +m4_include([m4/ltoptions.m4])
  7108. +m4_include([m4/ltsugar.m4])
  7109. +m4_include([m4/ltversion.m4])
  7110. +m4_include([m4/lt~obsolete.m4])
  7111. m4_include([m4/rt_bool_arg_enable.m4])
  7112. m4_include([m4/type_socklen_t.m4])
  7113. diff -Nur libupnp-1.6.6.orig/autoconfig.h.in libupnp-1.6.6/autoconfig.h.in
  7114. --- libupnp-1.6.6.orig/autoconfig.h.in 2008-04-25 13:47:30.000000000 +0200
  7115. +++ libupnp-1.6.6/autoconfig.h.in 2010-02-18 22:37:00.536866589 +0100
  7116. @@ -66,9 +66,6 @@
  7117. /* Define to 1 if you have the <sys/stat.h> header file. */
  7118. #undef HAVE_SYS_STAT_H
  7119. -/* Define to 1 if you have the <sys/timeb.h> header file. */
  7120. -#undef HAVE_SYS_TIMEB_H
  7121. -
  7122. /* Define to 1 if you have the <sys/time.h> header file. */
  7123. #undef HAVE_SYS_TIME_H
  7124. @@ -81,6 +78,10 @@
  7125. /* Define to 1 if you have the `vprintf' function. */
  7126. #undef HAVE_VPRINTF
  7127. +/* Define to the sub-directory in which libtool stores uninstalled libraries.
  7128. + */
  7129. +#undef LT_OBJDIR
  7130. +
  7131. /* Define to 1 to prevent compilation of assert() */
  7132. #undef NDEBUG
  7133. @@ -105,6 +106,9 @@
  7134. /* Define to the one symbol short name of this package. */
  7135. #undef PACKAGE_TARNAME
  7136. +/* Define to the home page for this package. */
  7137. +#undef PACKAGE_URL
  7138. +
  7139. /* Define to the version of this package. */
  7140. #undef PACKAGE_VERSION
  7141. diff -Nur libupnp-1.6.6.orig/build-aux/ltmain.sh libupnp-1.6.6/build-aux/ltmain.sh
  7142. --- libupnp-1.6.6.orig/build-aux/ltmain.sh 2006-11-25 12:34:55.000000000 +0100
  7143. +++ libupnp-1.6.6/build-aux/ltmain.sh 2010-02-18 22:36:50.808857086 +0100
  7144. @@ -1,30 +1,174 @@
  7145. -# ltmain.sh - Provide generalized library-building support services.
  7146. -# NOTE: Changing this file will not affect anything until you rerun configure.
  7147. -#
  7148. -# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005
  7149. -# Free Software Foundation, Inc.
  7150. -# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
  7151. -#
  7152. -# This program is free software; you can redistribute it and/or modify
  7153. +# Generated from ltmain.m4sh.
  7154. +
  7155. +# ltmain.sh (GNU libtool) 2.2.6b
  7156. +# Written by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
  7157. +
  7158. +# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 2006, 2007 2008 Free Software Foundation, Inc.
  7159. +# This is free software; see the source for copying conditions. There is NO
  7160. +# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  7161. +
  7162. +# GNU Libtool is free software; you can redistribute it and/or modify
  7163. # it under the terms of the GNU General Public License as published by
  7164. # the Free Software Foundation; either version 2 of the License, or
  7165. # (at your option) any later version.
  7166. #
  7167. -# This program is distributed in the hope that it will be useful, but
  7168. +# As a special exception to the GNU General Public License,
  7169. +# if you distribute this file as part of a program or library that
  7170. +# is built using GNU Libtool, you may include this file under the
  7171. +# same distribution terms that you use for the rest of that program.
  7172. +#
  7173. +# GNU Libtool is distributed in the hope that it will be useful, but
  7174. # WITHOUT ANY WARRANTY; without even the implied warranty of
  7175. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  7176. # General Public License for more details.
  7177. #
  7178. # You should have received a copy of the GNU General Public License
  7179. -# along with this program; if not, write to the Free Software
  7180. -# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  7181. +# along with GNU Libtool; see the file COPYING. If not, a copy
  7182. +# can be downloaded from http://www.gnu.org/licenses/gpl.html,
  7183. +# or obtained by writing to the Free Software Foundation, Inc.,
  7184. +# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  7185. +
  7186. +# Usage: $progname [OPTION]... [MODE-ARG]...
  7187. +#
  7188. +# Provide generalized library-building support services.
  7189. #
  7190. -# As a special exception to the GNU General Public License, if you
  7191. -# distribute this file as part of a program that contains a
  7192. -# configuration script generated by Autoconf, you may include it under
  7193. -# the same distribution terms that you use for the rest of that program.
  7194. +# --config show all configuration variables
  7195. +# --debug enable verbose shell tracing
  7196. +# -n, --dry-run display commands without modifying any files
  7197. +# --features display basic configuration information and exit
  7198. +# --mode=MODE use operation mode MODE
  7199. +# --preserve-dup-deps don't remove duplicate dependency libraries
  7200. +# --quiet, --silent don't print informational messages
  7201. +# --tag=TAG use configuration variables from tag TAG
  7202. +# -v, --verbose print informational messages (default)
  7203. +# --version print version information
  7204. +# -h, --help print short or long help message
  7205. +#
  7206. +# MODE must be one of the following:
  7207. +#
  7208. +# clean remove files from the build directory
  7209. +# compile compile a source file into a libtool object
  7210. +# execute automatically set library path, then run a program
  7211. +# finish complete the installation of libtool libraries
  7212. +# install install libraries or executables
  7213. +# link create a library or an executable
  7214. +# uninstall remove libraries from an installed directory
  7215. +#
  7216. +# MODE-ARGS vary depending on the MODE.
  7217. +# Try `$progname --help --mode=MODE' for a more detailed description of MODE.
  7218. +#
  7219. +# When reporting a bug, please describe a test case to reproduce it and
  7220. +# include the following information:
  7221. +#
  7222. +# host-triplet: $host
  7223. +# shell: $SHELL
  7224. +# compiler: $LTCC
  7225. +# compiler flags: $LTCFLAGS
  7226. +# linker: $LD (gnu? $with_gnu_ld)
  7227. +# $progname: (GNU libtool) 2.2.6b Debian-2.2.6b-2ubuntu1
  7228. +# automake: $automake_version
  7229. +# autoconf: $autoconf_version
  7230. +#
  7231. +# Report bugs to <bug-libtool@gnu.org>.
  7232. +
  7233. +PROGRAM=ltmain.sh
  7234. +PACKAGE=libtool
  7235. +VERSION="2.2.6b Debian-2.2.6b-2ubuntu1"
  7236. +TIMESTAMP=""
  7237. +package_revision=1.3017
  7238. +
  7239. +# Be Bourne compatible
  7240. +if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  7241. + emulate sh
  7242. + NULLCMD=:
  7243. + # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  7244. + # is contrary to our usage. Disable this feature.
  7245. + alias -g '${1+"$@"}'='"$@"'
  7246. + setopt NO_GLOB_SUBST
  7247. +else
  7248. + case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
  7249. +fi
  7250. +BIN_SH=xpg4; export BIN_SH # for Tru64
  7251. +DUALCASE=1; export DUALCASE # for MKS sh
  7252. +
  7253. +# NLS nuisances: We save the old values to restore during execute mode.
  7254. +# Only set LANG and LC_ALL to C if already set.
  7255. +# These must not be set unconditionally because not all systems understand
  7256. +# e.g. LANG=C (notably SCO).
  7257. +lt_user_locale=
  7258. +lt_safe_locale=
  7259. +for lt_var in LANG LANGUAGE LC_ALL LC_CTYPE LC_COLLATE LC_MESSAGES
  7260. +do
  7261. + eval "if test \"\${$lt_var+set}\" = set; then
  7262. + save_$lt_var=\$$lt_var
  7263. + $lt_var=C
  7264. + export $lt_var
  7265. + lt_user_locale=\"$lt_var=\\\$save_\$lt_var; \$lt_user_locale\"
  7266. + lt_safe_locale=\"$lt_var=C; \$lt_safe_locale\"
  7267. + fi"
  7268. +done
  7269. +
  7270. +$lt_unset CDPATH
  7271. +
  7272. +
  7273. +
  7274. +
  7275. +
  7276. +: ${CP="cp -f"}
  7277. +: ${ECHO="echo"}
  7278. +: ${EGREP="/bin/grep -E"}
  7279. +: ${FGREP="/bin/grep -F"}
  7280. +: ${GREP="/bin/grep"}
  7281. +: ${LN_S="ln -s"}
  7282. +: ${MAKE="make"}
  7283. +: ${MKDIR="mkdir"}
  7284. +: ${MV="mv -f"}
  7285. +: ${RM="rm -f"}
  7286. +: ${SED="/bin/sed"}
  7287. +: ${SHELL="${CONFIG_SHELL-/bin/sh}"}
  7288. +: ${Xsed="$SED -e 1s/^X//"}
  7289. -basename="s,^.*/,,g"
  7290. +# Global variables:
  7291. +EXIT_SUCCESS=0
  7292. +EXIT_FAILURE=1
  7293. +EXIT_MISMATCH=63 # $? = 63 is used to indicate version mismatch to missing.
  7294. +EXIT_SKIP=77 # $? = 77 is used to indicate a skipped test to automake.
  7295. +
  7296. +exit_status=$EXIT_SUCCESS
  7297. +
  7298. +# Make sure IFS has a sensible default
  7299. +lt_nl='
  7300. +'
  7301. +IFS=" $lt_nl"
  7302. +
  7303. +dirname="s,/[^/]*$,,"
  7304. +basename="s,^.*/,,"
  7305. +
  7306. +# func_dirname_and_basename file append nondir_replacement
  7307. +# perform func_basename and func_dirname in a single function
  7308. +# call:
  7309. +# dirname: Compute the dirname of FILE. If nonempty,
  7310. +# add APPEND to the result, otherwise set result
  7311. +# to NONDIR_REPLACEMENT.
  7312. +# value returned in "$func_dirname_result"
  7313. +# basename: Compute filename of FILE.
  7314. +# value retuned in "$func_basename_result"
  7315. +# Implementation must be kept synchronized with func_dirname
  7316. +# and func_basename. For efficiency, we do not delegate to
  7317. +# those functions but instead duplicate the functionality here.
  7318. +func_dirname_and_basename ()
  7319. +{
  7320. + # Extract subdirectory from the argument.
  7321. + func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
  7322. + if test "X$func_dirname_result" = "X${1}"; then
  7323. + func_dirname_result="${3}"
  7324. + else
  7325. + func_dirname_result="$func_dirname_result${2}"
  7326. + fi
  7327. + func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
  7328. +}
  7329. +
  7330. +# Generated shell functions inserted here.
  7331. # Work around backward compatibility issue on IRIX 6.5. On IRIX 6.4+, sh
  7332. # is ksh but when the shell is invoked as "sh" and the current value of
  7333. @@ -34,112 +178,174 @@
  7334. progpath="$0"
  7335. # The name of this program:
  7336. -progname=`echo "$progpath" | $SED $basename`
  7337. -modename="$progname"
  7338. +# In the unlikely event $progname began with a '-', it would play havoc with
  7339. +# func_echo (imagine progname=-n), so we prepend ./ in that case:
  7340. +func_dirname_and_basename "$progpath"
  7341. +progname=$func_basename_result
  7342. +case $progname in
  7343. + -*) progname=./$progname ;;
  7344. +esac
  7345. -# Global variables:
  7346. -EXIT_SUCCESS=0
  7347. -EXIT_FAILURE=1
  7348. +# Make sure we have an absolute path for reexecution:
  7349. +case $progpath in
  7350. + [\\/]*|[A-Za-z]:\\*) ;;
  7351. + *[\\/]*)
  7352. + progdir=$func_dirname_result
  7353. + progdir=`cd "$progdir" && pwd`
  7354. + progpath="$progdir/$progname"
  7355. + ;;
  7356. + *)
  7357. + save_IFS="$IFS"
  7358. + IFS=:
  7359. + for progdir in $PATH; do
  7360. + IFS="$save_IFS"
  7361. + test -x "$progdir/$progname" && break
  7362. + done
  7363. + IFS="$save_IFS"
  7364. + test -n "$progdir" || progdir=`pwd`
  7365. + progpath="$progdir/$progname"
  7366. + ;;
  7367. +esac
  7368. -PROGRAM=ltmain.sh
  7369. -PACKAGE=libtool
  7370. -VERSION=1.5.22
  7371. -TIMESTAMP=" (1.1220.2.365 2005/12/18 22:14:06)"
  7372. +# Sed substitution that helps us do robust quoting. It backslashifies
  7373. +# metacharacters that are still active within double-quoted strings.
  7374. +Xsed="${SED}"' -e 1s/^X//'
  7375. +sed_quote_subst='s/\([`"$\\]\)/\\\1/g'
  7376. -# See if we are running on zsh, and set the options which allow our
  7377. -# commands through without removal of \ escapes.
  7378. -if test -n "${ZSH_VERSION+set}" ; then
  7379. - setopt NO_GLOB_SUBST
  7380. -fi
  7381. +# Same as above, but do not quote variable references.
  7382. +double_quote_subst='s/\(["`\\]\)/\\\1/g'
  7383. -# Check that we have a working $echo.
  7384. -if test "X$1" = X--no-reexec; then
  7385. - # Discard the --no-reexec flag, and continue.
  7386. - shift
  7387. -elif test "X$1" = X--fallback-echo; then
  7388. - # Avoid inline document here, it may be left over
  7389. - :
  7390. -elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then
  7391. - # Yippee, $echo works!
  7392. - :
  7393. -else
  7394. - # Restart under the correct shell, and then maybe $echo will work.
  7395. - exec $SHELL "$progpath" --no-reexec ${1+"$@"}
  7396. -fi
  7397. +# Re-`\' parameter expansions in output of double_quote_subst that were
  7398. +# `\'-ed in input to the same. If an odd number of `\' preceded a '$'
  7399. +# in input to double_quote_subst, that '$' was protected from expansion.
  7400. +# Since each input `\' is now two `\'s, look for any number of runs of
  7401. +# four `\'s followed by two `\'s and then a '$'. `\' that '$'.
  7402. +bs='\\'
  7403. +bs2='\\\\'
  7404. +bs4='\\\\\\\\'
  7405. +dollar='\$'
  7406. +sed_double_backslash="\
  7407. + s/$bs4/&\\
  7408. +/g
  7409. + s/^$bs2$dollar/$bs&/
  7410. + s/\\([^$bs]\\)$bs2$dollar/\\1$bs2$bs$dollar/g
  7411. + s/\n//g"
  7412. +
  7413. +# Standard options:
  7414. +opt_dry_run=false
  7415. +opt_help=false
  7416. +opt_quiet=false
  7417. +opt_verbose=false
  7418. +opt_warning=:
  7419. +
  7420. +# func_echo arg...
  7421. +# Echo program name prefixed message, along with the current mode
  7422. +# name if it has been set yet.
  7423. +func_echo ()
  7424. +{
  7425. + $ECHO "$progname${mode+: }$mode: $*"
  7426. +}
  7427. -if test "X$1" = X--fallback-echo; then
  7428. - # used as fallback echo
  7429. - shift
  7430. - cat <<EOF
  7431. -$*
  7432. -EOF
  7433. - exit $EXIT_SUCCESS
  7434. -fi
  7435. +# func_verbose arg...
  7436. +# Echo program name prefixed message in verbose mode only.
  7437. +func_verbose ()
  7438. +{
  7439. + $opt_verbose && func_echo ${1+"$@"}
  7440. -default_mode=
  7441. -help="Try \`$progname --help' for more information."
  7442. -magic="%%%MAGIC variable%%%"
  7443. -mkdir="mkdir"
  7444. -mv="mv -f"
  7445. -rm="rm -f"
  7446. + # A bug in bash halts the script if the last line of a function
  7447. + # fails when set -e is in force, so we need another command to
  7448. + # work around that:
  7449. + :
  7450. +}
  7451. -# Sed substitution that helps us do robust quoting. It backslashifies
  7452. -# metacharacters that are still active within double-quoted strings.
  7453. -Xsed="${SED}"' -e 1s/^X//'
  7454. -sed_quote_subst='s/\([\\`\\"$\\\\]\)/\\\1/g'
  7455. -# test EBCDIC or ASCII
  7456. -case `echo X|tr X '\101'` in
  7457. - A) # ASCII based system
  7458. - # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  7459. - SP2NL='tr \040 \012'
  7460. - NL2SP='tr \015\012 \040\040'
  7461. - ;;
  7462. - *) # EBCDIC based system
  7463. - SP2NL='tr \100 \n'
  7464. - NL2SP='tr \r\n \100\100'
  7465. - ;;
  7466. -esac
  7467. +# func_error arg...
  7468. +# Echo program name prefixed message to standard error.
  7469. +func_error ()
  7470. +{
  7471. + $ECHO "$progname${mode+: }$mode: "${1+"$@"} 1>&2
  7472. +}
  7473. -# NLS nuisances.
  7474. -# Only set LANG and LC_ALL to C if already set.
  7475. -# These must not be set unconditionally because not all systems understand
  7476. -# e.g. LANG=C (notably SCO).
  7477. -# We save the old values to restore during execute mode.
  7478. -if test "${LC_ALL+set}" = set; then
  7479. - save_LC_ALL="$LC_ALL"; LC_ALL=C; export LC_ALL
  7480. -fi
  7481. -if test "${LANG+set}" = set; then
  7482. - save_LANG="$LANG"; LANG=C; export LANG
  7483. -fi
  7484. +# func_warning arg...
  7485. +# Echo program name prefixed warning message to standard error.
  7486. +func_warning ()
  7487. +{
  7488. + $opt_warning && $ECHO "$progname${mode+: }$mode: warning: "${1+"$@"} 1>&2
  7489. -# Make sure IFS has a sensible default
  7490. -lt_nl='
  7491. -'
  7492. -IFS=" $lt_nl"
  7493. + # bash bug again:
  7494. + :
  7495. +}
  7496. -if test "$build_libtool_libs" != yes && test "$build_old_libs" != yes; then
  7497. - $echo "$modename: not configured to build any kind of library" 1>&2
  7498. - $echo "Fatal configuration error. See the $PACKAGE docs for more information." 1>&2
  7499. - exit $EXIT_FAILURE
  7500. -fi
  7501. +# func_fatal_error arg...
  7502. +# Echo program name prefixed message to standard error, and exit.
  7503. +func_fatal_error ()
  7504. +{
  7505. + func_error ${1+"$@"}
  7506. + exit $EXIT_FAILURE
  7507. +}
  7508. -# Global variables.
  7509. -mode=$default_mode
  7510. -nonopt=
  7511. -prev=
  7512. -prevopt=
  7513. -run=
  7514. -show="$echo"
  7515. -show_help=
  7516. -execute_dlfiles=
  7517. -duplicate_deps=no
  7518. -preserve_args=
  7519. -lo2o="s/\\.lo\$/.${objext}/"
  7520. -o2lo="s/\\.${objext}\$/.lo/"
  7521. +# func_fatal_help arg...
  7522. +# Echo program name prefixed message to standard error, followed by
  7523. +# a help hint, and exit.
  7524. +func_fatal_help ()
  7525. +{
  7526. + func_error ${1+"$@"}
  7527. + func_fatal_error "$help"
  7528. +}
  7529. +help="Try \`$progname --help' for more information." ## default
  7530. +
  7531. +
  7532. +# func_grep expression filename
  7533. +# Check whether EXPRESSION matches any line of FILENAME, without output.
  7534. +func_grep ()
  7535. +{
  7536. + $GREP "$1" "$2" >/dev/null 2>&1
  7537. +}
  7538. +
  7539. +
  7540. +# func_mkdir_p directory-path
  7541. +# Make sure the entire path to DIRECTORY-PATH is available.
  7542. +func_mkdir_p ()
  7543. +{
  7544. + my_directory_path="$1"
  7545. + my_dir_list=
  7546. +
  7547. + if test -n "$my_directory_path" && test "$opt_dry_run" != ":"; then
  7548. +
  7549. + # Protect directory names starting with `-'
  7550. + case $my_directory_path in
  7551. + -*) my_directory_path="./$my_directory_path" ;;
  7552. + esac
  7553. +
  7554. + # While some portion of DIR does not yet exist...
  7555. + while test ! -d "$my_directory_path"; do
  7556. + # ...make a list in topmost first order. Use a colon delimited
  7557. + # list incase some portion of path contains whitespace.
  7558. + my_dir_list="$my_directory_path:$my_dir_list"
  7559. +
  7560. + # If the last portion added has no slash in it, the list is done
  7561. + case $my_directory_path in */*) ;; *) break ;; esac
  7562. +
  7563. + # ...otherwise throw away the child directory and loop
  7564. + my_directory_path=`$ECHO "X$my_directory_path" | $Xsed -e "$dirname"`
  7565. + done
  7566. + my_dir_list=`$ECHO "X$my_dir_list" | $Xsed -e 's,:*$,,'`
  7567. +
  7568. + save_mkdir_p_IFS="$IFS"; IFS=':'
  7569. + for my_dir in $my_dir_list; do
  7570. + IFS="$save_mkdir_p_IFS"
  7571. + # mkdir can fail with a `File exist' error if two processes
  7572. + # try to create one of the directories concurrently. Don't
  7573. + # stop in that case!
  7574. + $MKDIR "$my_dir" 2>/dev/null || :
  7575. + done
  7576. + IFS="$save_mkdir_p_IFS"
  7577. +
  7578. + # Bail out if we (or some other process) failed to create a directory.
  7579. + test -d "$my_directory_path" || \
  7580. + func_fatal_error "Failed to create \`$1'"
  7581. + fi
  7582. +}
  7583. -#####################################
  7584. -# Shell function definitions:
  7585. -# This seems to be the best place for them
  7586. # func_mktempdir [string]
  7587. # Make a temporary directory that won't clash with other running
  7588. @@ -149,7 +355,7 @@
  7589. {
  7590. my_template="${TMPDIR-/tmp}/${1-$progname}"
  7591. - if test "$run" = ":"; then
  7592. + if test "$opt_dry_run" = ":"; then
  7593. # Return a directory name, but don't create it in dry-run mode
  7594. my_tmpdir="${my_template}-$$"
  7595. else
  7596. @@ -158,546 +364,818 @@
  7597. my_tmpdir=`mktemp -d "${my_template}-XXXXXXXX" 2>/dev/null`
  7598. if test ! -d "$my_tmpdir"; then
  7599. - # Failing that, at least try and use $RANDOM to avoid a race
  7600. - my_tmpdir="${my_template}-${RANDOM-0}$$"
  7601. + # Failing that, at least try and use $RANDOM to avoid a race
  7602. + my_tmpdir="${my_template}-${RANDOM-0}$$"
  7603. - save_mktempdir_umask=`umask`
  7604. - umask 0077
  7605. - $mkdir "$my_tmpdir"
  7606. - umask $save_mktempdir_umask
  7607. + save_mktempdir_umask=`umask`
  7608. + umask 0077
  7609. + $MKDIR "$my_tmpdir"
  7610. + umask $save_mktempdir_umask
  7611. fi
  7612. # If we're not in dry-run mode, bomb out on failure
  7613. - test -d "$my_tmpdir" || {
  7614. - $echo "cannot create temporary directory \`$my_tmpdir'" 1>&2
  7615. - exit $EXIT_FAILURE
  7616. - }
  7617. + test -d "$my_tmpdir" || \
  7618. + func_fatal_error "cannot create temporary directory \`$my_tmpdir'"
  7619. fi
  7620. - $echo "X$my_tmpdir" | $Xsed
  7621. + $ECHO "X$my_tmpdir" | $Xsed
  7622. }
  7623. -# func_win32_libid arg
  7624. -# return the library type of file 'arg'
  7625. -#
  7626. -# Need a lot of goo to handle *both* DLLs and import libs
  7627. -# Has to be a shell function in order to 'eat' the argument
  7628. -# that is supplied when $file_magic_command is called.
  7629. -func_win32_libid ()
  7630. +# func_quote_for_eval arg
  7631. +# Aesthetically quote ARG to be evaled later.
  7632. +# This function returns two values: FUNC_QUOTE_FOR_EVAL_RESULT
  7633. +# is double-quoted, suitable for a subsequent eval, whereas
  7634. +# FUNC_QUOTE_FOR_EVAL_UNQUOTED_RESULT has merely all characters
  7635. +# which are still active within double quotes backslashified.
  7636. +func_quote_for_eval ()
  7637. {
  7638. - win32_libid_type="unknown"
  7639. - win32_fileres=`file -L $1 2>/dev/null`
  7640. - case $win32_fileres in
  7641. - *ar\ archive\ import\ library*) # definitely import
  7642. - win32_libid_type="x86 archive import"
  7643. - ;;
  7644. - *ar\ archive*) # could be an import, or static
  7645. - if eval $OBJDUMP -f $1 | $SED -e '10q' 2>/dev/null | \
  7646. - $EGREP -e 'file format pe-i386(.*architecture: i386)?' >/dev/null ; then
  7647. - win32_nmres=`eval $NM -f posix -A $1 | \
  7648. - $SED -n -e '1,100{/ I /{s,.*,import,;p;q;};}'`
  7649. - case $win32_nmres in
  7650. - import*) win32_libid_type="x86 archive import";;
  7651. - *) win32_libid_type="x86 archive static";;
  7652. - esac
  7653. - fi
  7654. - ;;
  7655. - *DLL*)
  7656. - win32_libid_type="x86 DLL"
  7657. - ;;
  7658. - *executable*) # but shell scripts are "executable" too...
  7659. - case $win32_fileres in
  7660. - *MS\ Windows\ PE\ Intel*)
  7661. - win32_libid_type="x86 DLL"
  7662. - ;;
  7663. + case $1 in
  7664. + *[\\\`\"\$]*)
  7665. + func_quote_for_eval_unquoted_result=`$ECHO "X$1" | $Xsed -e "$sed_quote_subst"` ;;
  7666. + *)
  7667. + func_quote_for_eval_unquoted_result="$1" ;;
  7668. + esac
  7669. +
  7670. + case $func_quote_for_eval_unquoted_result in
  7671. + # Double-quote args containing shell metacharacters to delay
  7672. + # word splitting, command substitution and and variable
  7673. + # expansion for a subsequent eval.
  7674. + # Many Bourne shells cannot handle close brackets correctly
  7675. + # in scan sets, so we specify it separately.
  7676. + *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
  7677. + func_quote_for_eval_result="\"$func_quote_for_eval_unquoted_result\""
  7678. + ;;
  7679. + *)
  7680. + func_quote_for_eval_result="$func_quote_for_eval_unquoted_result"
  7681. esac
  7682. - ;;
  7683. - esac
  7684. - $echo $win32_libid_type
  7685. }
  7686. -# func_infer_tag arg
  7687. -# Infer tagged configuration to use if any are available and
  7688. -# if one wasn't chosen via the "--tag" command line option.
  7689. -# Only attempt this if the compiler in the base compile
  7690. -# command doesn't match the default compiler.
  7691. -# arg is usually of the form 'gcc ...'
  7692. -func_infer_tag ()
  7693. +# func_quote_for_expand arg
  7694. +# Aesthetically quote ARG to be evaled later; same as above,
  7695. +# but do not quote variable references.
  7696. +func_quote_for_expand ()
  7697. {
  7698. - if test -n "$available_tags" && test -z "$tagname"; then
  7699. - CC_quoted=
  7700. - for arg in $CC; do
  7701. - case $arg in
  7702. - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
  7703. - arg="\"$arg\""
  7704. - ;;
  7705. - esac
  7706. - CC_quoted="$CC_quoted $arg"
  7707. - done
  7708. - case $@ in
  7709. - # Blanks in the command may have been stripped by the calling shell,
  7710. - # but not from the CC environment variable when configure was run.
  7711. - " $CC "* | "$CC "* | " `$echo $CC` "* | "`$echo $CC` "* | " $CC_quoted"* | "$CC_quoted "* | " `$echo $CC_quoted` "* | "`$echo $CC_quoted` "*) ;;
  7712. - # Blanks at the start of $base_compile will cause this to fail
  7713. - # if we don't check for them as well.
  7714. + case $1 in
  7715. + *[\\\`\"]*)
  7716. + my_arg=`$ECHO "X$1" | $Xsed \
  7717. + -e "$double_quote_subst" -e "$sed_double_backslash"` ;;
  7718. *)
  7719. - for z in $available_tags; do
  7720. - if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $z$" < "$progpath" > /dev/null; then
  7721. - # Evaluate the configuration.
  7722. - eval "`${SED} -n -e '/^# ### BEGIN LIBTOOL TAG CONFIG: '$z'$/,/^# ### END LIBTOOL TAG CONFIG: '$z'$/p' < $progpath`"
  7723. - CC_quoted=
  7724. - for arg in $CC; do
  7725. - # Double-quote args containing other shell metacharacters.
  7726. - case $arg in
  7727. - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
  7728. - arg="\"$arg\""
  7729. - ;;
  7730. - esac
  7731. - CC_quoted="$CC_quoted $arg"
  7732. - done
  7733. - case "$@ " in
  7734. - " $CC "* | "$CC "* | " `$echo $CC` "* | "`$echo $CC` "* | " $CC_quoted"* | "$CC_quoted "* | " `$echo $CC_quoted` "* | "`$echo $CC_quoted` "*)
  7735. - # The compiler in the base compile command matches
  7736. - # the one in the tagged configuration.
  7737. - # Assume this is the tagged configuration we want.
  7738. - tagname=$z
  7739. - break
  7740. - ;;
  7741. - esac
  7742. - fi
  7743. - done
  7744. - # If $tagname still isn't set, then no tagged configuration
  7745. - # was found and let the user know that the "--tag" command
  7746. - # line option must be used.
  7747. - if test -z "$tagname"; then
  7748. - $echo "$modename: unable to infer tagged configuration"
  7749. - $echo "$modename: specify a tag with \`--tag'" 1>&2
  7750. - exit $EXIT_FAILURE
  7751. -# else
  7752. -# $echo "$modename: using $tagname tagged configuration"
  7753. - fi
  7754. - ;;
  7755. - esac
  7756. - fi
  7757. + my_arg="$1" ;;
  7758. + esac
  7759. +
  7760. + case $my_arg in
  7761. + # Double-quote args containing shell metacharacters to delay
  7762. + # word splitting and command substitution for a subsequent eval.
  7763. + # Many Bourne shells cannot handle close brackets correctly
  7764. + # in scan sets, so we specify it separately.
  7765. + *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
  7766. + my_arg="\"$my_arg\""
  7767. + ;;
  7768. + esac
  7769. +
  7770. + func_quote_for_expand_result="$my_arg"
  7771. }
  7772. -# func_extract_an_archive dir oldlib
  7773. -func_extract_an_archive ()
  7774. +# func_show_eval cmd [fail_exp]
  7775. +# Unless opt_silent is true, then output CMD. Then, if opt_dryrun is
  7776. +# not true, evaluate CMD. If the evaluation of CMD fails, and FAIL_EXP
  7777. +# is given, then evaluate it.
  7778. +func_show_eval ()
  7779. {
  7780. - f_ex_an_ar_dir="$1"; shift
  7781. - f_ex_an_ar_oldlib="$1"
  7782. + my_cmd="$1"
  7783. + my_fail_exp="${2-:}"
  7784. - $show "(cd $f_ex_an_ar_dir && $AR x $f_ex_an_ar_oldlib)"
  7785. - $run eval "(cd \$f_ex_an_ar_dir && $AR x \$f_ex_an_ar_oldlib)" || exit $?
  7786. - if ($AR t "$f_ex_an_ar_oldlib" | sort | sort -uc >/dev/null 2>&1); then
  7787. - :
  7788. - else
  7789. - $echo "$modename: ERROR: object name conflicts: $f_ex_an_ar_dir/$f_ex_an_ar_oldlib" 1>&2
  7790. - exit $EXIT_FAILURE
  7791. + ${opt_silent-false} || {
  7792. + func_quote_for_expand "$my_cmd"
  7793. + eval "func_echo $func_quote_for_expand_result"
  7794. + }
  7795. +
  7796. + if ${opt_dry_run-false}; then :; else
  7797. + eval "$my_cmd"
  7798. + my_status=$?
  7799. + if test "$my_status" -eq 0; then :; else
  7800. + eval "(exit $my_status); $my_fail_exp"
  7801. + fi
  7802. fi
  7803. }
  7804. -# func_extract_archives gentop oldlib ...
  7805. -func_extract_archives ()
  7806. +
  7807. +# func_show_eval_locale cmd [fail_exp]
  7808. +# Unless opt_silent is true, then output CMD. Then, if opt_dryrun is
  7809. +# not true, evaluate CMD. If the evaluation of CMD fails, and FAIL_EXP
  7810. +# is given, then evaluate it. Use the saved locale for evaluation.
  7811. +func_show_eval_locale ()
  7812. {
  7813. - my_gentop="$1"; shift
  7814. - my_oldlibs=${1+"$@"}
  7815. - my_oldobjs=""
  7816. - my_xlib=""
  7817. - my_xabs=""
  7818. - my_xdir=""
  7819. - my_status=""
  7820. + my_cmd="$1"
  7821. + my_fail_exp="${2-:}"
  7822. +
  7823. + ${opt_silent-false} || {
  7824. + func_quote_for_expand "$my_cmd"
  7825. + eval "func_echo $func_quote_for_expand_result"
  7826. + }
  7827. - $show "${rm}r $my_gentop"
  7828. - $run ${rm}r "$my_gentop"
  7829. - $show "$mkdir $my_gentop"
  7830. - $run $mkdir "$my_gentop"
  7831. - my_status=$?
  7832. - if test "$my_status" -ne 0 && test ! -d "$my_gentop"; then
  7833. - exit $my_status
  7834. + if ${opt_dry_run-false}; then :; else
  7835. + eval "$lt_user_locale
  7836. + $my_cmd"
  7837. + my_status=$?
  7838. + eval "$lt_safe_locale"
  7839. + if test "$my_status" -eq 0; then :; else
  7840. + eval "(exit $my_status); $my_fail_exp"
  7841. + fi
  7842. fi
  7843. +}
  7844. - for my_xlib in $my_oldlibs; do
  7845. - # Extract the objects.
  7846. - case $my_xlib in
  7847. - [\\/]* | [A-Za-z]:[\\/]*) my_xabs="$my_xlib" ;;
  7848. - *) my_xabs=`pwd`"/$my_xlib" ;;
  7849. - esac
  7850. - my_xlib=`$echo "X$my_xlib" | $Xsed -e 's%^.*/%%'`
  7851. - my_xdir="$my_gentop/$my_xlib"
  7852. - $show "${rm}r $my_xdir"
  7853. - $run ${rm}r "$my_xdir"
  7854. - $show "$mkdir $my_xdir"
  7855. - $run $mkdir "$my_xdir"
  7856. - exit_status=$?
  7857. - if test "$exit_status" -ne 0 && test ! -d "$my_xdir"; then
  7858. - exit $exit_status
  7859. - fi
  7860. - case $host in
  7861. - *-darwin*)
  7862. - $show "Extracting $my_xabs"
  7863. - # Do not bother doing anything if just a dry run
  7864. - if test -z "$run"; then
  7865. - darwin_orig_dir=`pwd`
  7866. - cd $my_xdir || exit $?
  7867. - darwin_archive=$my_xabs
  7868. - darwin_curdir=`pwd`
  7869. - darwin_base_archive=`$echo "X$darwin_archive" | $Xsed -e 's%^.*/%%'`
  7870. - darwin_arches=`lipo -info "$darwin_archive" 2>/dev/null | $EGREP Architectures 2>/dev/null`
  7871. - if test -n "$darwin_arches"; then
  7872. - darwin_arches=`echo "$darwin_arches" | $SED -e 's/.*are://'`
  7873. - darwin_arch=
  7874. - $show "$darwin_base_archive has multiple architectures $darwin_arches"
  7875. - for darwin_arch in $darwin_arches ; do
  7876. - mkdir -p "unfat-$$/${darwin_base_archive}-${darwin_arch}"
  7877. - lipo -thin $darwin_arch -output "unfat-$$/${darwin_base_archive}-${darwin_arch}/${darwin_base_archive}" "${darwin_archive}"
  7878. - cd "unfat-$$/${darwin_base_archive}-${darwin_arch}"
  7879. - func_extract_an_archive "`pwd`" "${darwin_base_archive}"
  7880. - cd "$darwin_curdir"
  7881. - $rm "unfat-$$/${darwin_base_archive}-${darwin_arch}/${darwin_base_archive}"
  7882. - done # $darwin_arches
  7883. - ## Okay now we have a bunch of thin objects, gotta fatten them up :)
  7884. - darwin_filelist=`find unfat-$$ -type f -name \*.o -print -o -name \*.lo -print| xargs basename | sort -u | $NL2SP`
  7885. - darwin_file=
  7886. - darwin_files=
  7887. - for darwin_file in $darwin_filelist; do
  7888. - darwin_files=`find unfat-$$ -name $darwin_file -print | $NL2SP`
  7889. - lipo -create -output "$darwin_file" $darwin_files
  7890. - done # $darwin_filelist
  7891. - ${rm}r unfat-$$
  7892. - cd "$darwin_orig_dir"
  7893. - else
  7894. - cd "$darwin_orig_dir"
  7895. - func_extract_an_archive "$my_xdir" "$my_xabs"
  7896. - fi # $darwin_arches
  7897. - fi # $run
  7898. - ;;
  7899. - *)
  7900. - func_extract_an_archive "$my_xdir" "$my_xabs"
  7901. - ;;
  7902. - esac
  7903. - my_oldobjs="$my_oldobjs "`find $my_xdir -name \*.$objext -print -o -name \*.lo -print | $NL2SP`
  7904. - done
  7905. - func_extract_archives_result="$my_oldobjs"
  7906. +
  7907. +
  7908. +
  7909. +# func_version
  7910. +# Echo version message to standard output and exit.
  7911. +func_version ()
  7912. +{
  7913. + $SED -n '/^# '$PROGRAM' (GNU /,/# warranty; / {
  7914. + s/^# //
  7915. + s/^# *$//
  7916. + s/\((C)\)[ 0-9,-]*\( [1-9][0-9]*\)/\1\2/
  7917. + p
  7918. + }' < "$progpath"
  7919. + exit $?
  7920. }
  7921. -# End of Shell function definitions
  7922. -#####################################
  7923. -# Darwin sucks
  7924. -eval std_shrext=\"$shrext_cmds\"
  7925. +# func_usage
  7926. +# Echo short help message to standard output and exit.
  7927. +func_usage ()
  7928. +{
  7929. + $SED -n '/^# Usage:/,/# -h/ {
  7930. + s/^# //
  7931. + s/^# *$//
  7932. + s/\$progname/'$progname'/
  7933. + p
  7934. + }' < "$progpath"
  7935. + $ECHO
  7936. + $ECHO "run \`$progname --help | more' for full usage"
  7937. + exit $?
  7938. +}
  7939. -disable_libs=no
  7940. +# func_help
  7941. +# Echo long help message to standard output and exit.
  7942. +func_help ()
  7943. +{
  7944. + $SED -n '/^# Usage:/,/# Report bugs to/ {
  7945. + s/^# //
  7946. + s/^# *$//
  7947. + s*\$progname*'$progname'*
  7948. + s*\$host*'"$host"'*
  7949. + s*\$SHELL*'"$SHELL"'*
  7950. + s*\$LTCC*'"$LTCC"'*
  7951. + s*\$LTCFLAGS*'"$LTCFLAGS"'*
  7952. + s*\$LD*'"$LD"'*
  7953. + s/\$with_gnu_ld/'"$with_gnu_ld"'/
  7954. + s/\$automake_version/'"`(automake --version) 2>/dev/null |$SED 1q`"'/
  7955. + s/\$autoconf_version/'"`(autoconf --version) 2>/dev/null |$SED 1q`"'/
  7956. + p
  7957. + }' < "$progpath"
  7958. + exit $?
  7959. +}
  7960. -# Parse our command line options once, thoroughly.
  7961. -while test "$#" -gt 0
  7962. -do
  7963. - arg="$1"
  7964. +# func_missing_arg argname
  7965. +# Echo program name prefixed message to standard error and set global
  7966. +# exit_cmd.
  7967. +func_missing_arg ()
  7968. +{
  7969. + func_error "missing argument for $1"
  7970. + exit_cmd=exit
  7971. +}
  7972. +
  7973. +exit_cmd=:
  7974. +
  7975. +
  7976. +
  7977. +
  7978. +
  7979. +# Check that we have a working $ECHO.
  7980. +if test "X$1" = X--no-reexec; then
  7981. + # Discard the --no-reexec flag, and continue.
  7982. shift
  7983. +elif test "X$1" = X--fallback-echo; then
  7984. + # Avoid inline document here, it may be left over
  7985. + :
  7986. +elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t'; then
  7987. + # Yippee, $ECHO works!
  7988. + :
  7989. +else
  7990. + # Restart under the correct shell, and then maybe $ECHO will work.
  7991. + exec $SHELL "$progpath" --no-reexec ${1+"$@"}
  7992. +fi
  7993. - case $arg in
  7994. - -*=*) optarg=`$echo "X$arg" | $Xsed -e 's/[-_a-zA-Z0-9]*=//'` ;;
  7995. - *) optarg= ;;
  7996. - esac
  7997. +if test "X$1" = X--fallback-echo; then
  7998. + # used as fallback echo
  7999. + shift
  8000. + cat <<EOF
  8001. +$*
  8002. +EOF
  8003. + exit $EXIT_SUCCESS
  8004. +fi
  8005. - # If the previous option needs an argument, assign it.
  8006. - if test -n "$prev"; then
  8007. - case $prev in
  8008. - execute_dlfiles)
  8009. - execute_dlfiles="$execute_dlfiles $arg"
  8010. - ;;
  8011. - tag)
  8012. - tagname="$arg"
  8013. - preserve_args="${preserve_args}=$arg"
  8014. -
  8015. - # Check whether tagname contains only valid characters
  8016. - case $tagname in
  8017. - *[!-_A-Za-z0-9,/]*)
  8018. - $echo "$progname: invalid tag name: $tagname" 1>&2
  8019. - exit $EXIT_FAILURE
  8020. - ;;
  8021. - esac
  8022. +magic="%%%MAGIC variable%%%"
  8023. +magic_exe="%%%MAGIC EXE variable%%%"
  8024. - case $tagname in
  8025. - CC)
  8026. - # Don't test for the "default" C tag, as we know, it's there, but
  8027. - # not specially marked.
  8028. - ;;
  8029. - *)
  8030. - if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "$progpath" > /dev/null; then
  8031. - taglist="$taglist $tagname"
  8032. - # Evaluate the configuration.
  8033. - eval "`${SED} -n -e '/^# ### BEGIN LIBTOOL TAG CONFIG: '$tagname'$/,/^# ### END LIBTOOL TAG CONFIG: '$tagname'$/p' < $progpath`"
  8034. - else
  8035. - $echo "$progname: ignoring unknown tag $tagname" 1>&2
  8036. - fi
  8037. - ;;
  8038. - esac
  8039. - ;;
  8040. - *)
  8041. - eval "$prev=\$arg"
  8042. - ;;
  8043. - esac
  8044. +# Global variables.
  8045. +# $mode is unset
  8046. +nonopt=
  8047. +execute_dlfiles=
  8048. +preserve_args=
  8049. +lo2o="s/\\.lo\$/.${objext}/"
  8050. +o2lo="s/\\.${objext}\$/.lo/"
  8051. +extracted_archives=
  8052. +extracted_serial=0
  8053. - prev=
  8054. - prevopt=
  8055. - continue
  8056. - fi
  8057. +opt_dry_run=false
  8058. +opt_duplicate_deps=false
  8059. +opt_silent=false
  8060. +opt_debug=:
  8061. - # Have we seen a non-optional argument yet?
  8062. - case $arg in
  8063. - --help)
  8064. - show_help=yes
  8065. - ;;
  8066. +# If this variable is set in any of the actions, the command in it
  8067. +# will be execed at the end. This prevents here-documents from being
  8068. +# left over by shells.
  8069. +exec_cmd=
  8070. - --version)
  8071. - $echo "$PROGRAM (GNU $PACKAGE) $VERSION$TIMESTAMP"
  8072. - $echo
  8073. - $echo "Copyright (C) 2005 Free Software Foundation, Inc."
  8074. - $echo "This is free software; see the source for copying conditions. There is NO"
  8075. - $echo "warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
  8076. - exit $?
  8077. - ;;
  8078. +# func_fatal_configuration arg...
  8079. +# Echo program name prefixed message to standard error, followed by
  8080. +# a configuration failure hint, and exit.
  8081. +func_fatal_configuration ()
  8082. +{
  8083. + func_error ${1+"$@"}
  8084. + func_error "See the $PACKAGE documentation for more information."
  8085. + func_fatal_error "Fatal configuration error."
  8086. +}
  8087. +
  8088. +
  8089. +# func_config
  8090. +# Display the configuration for all the tags in this script.
  8091. +func_config ()
  8092. +{
  8093. + re_begincf='^# ### BEGIN LIBTOOL'
  8094. + re_endcf='^# ### END LIBTOOL'
  8095. +
  8096. + # Default configuration.
  8097. + $SED "1,/$re_begincf CONFIG/d;/$re_endcf CONFIG/,\$d" < "$progpath"
  8098. - --config)
  8099. - ${SED} -e '1,/^# ### BEGIN LIBTOOL CONFIG/d' -e '/^# ### END LIBTOOL CONFIG/,$d' $progpath
  8100. # Now print the configurations for the tags.
  8101. for tagname in $taglist; do
  8102. - ${SED} -n -e "/^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$/,/^# ### END LIBTOOL TAG CONFIG: $tagname$/p" < "$progpath"
  8103. + $SED -n "/$re_begincf TAG CONFIG: $tagname\$/,/$re_endcf TAG CONFIG: $tagname\$/p" < "$progpath"
  8104. done
  8105. - exit $?
  8106. - ;;
  8107. - --debug)
  8108. - $echo "$progname: enabling shell trace mode"
  8109. - set -x
  8110. - preserve_args="$preserve_args $arg"
  8111. - ;;
  8112. -
  8113. - --dry-run | -n)
  8114. - run=:
  8115. - ;;
  8116. + exit $?
  8117. +}
  8118. - --features)
  8119. - $echo "host: $host"
  8120. +# func_features
  8121. +# Display the features supported by this script.
  8122. +func_features ()
  8123. +{
  8124. + $ECHO "host: $host"
  8125. if test "$build_libtool_libs" = yes; then
  8126. - $echo "enable shared libraries"
  8127. + $ECHO "enable shared libraries"
  8128. else
  8129. - $echo "disable shared libraries"
  8130. + $ECHO "disable shared libraries"
  8131. fi
  8132. if test "$build_old_libs" = yes; then
  8133. - $echo "enable static libraries"
  8134. + $ECHO "enable static libraries"
  8135. else
  8136. - $echo "disable static libraries"
  8137. + $ECHO "disable static libraries"
  8138. fi
  8139. +
  8140. exit $?
  8141. - ;;
  8142. +}
  8143. - --finish) mode="finish" ;;
  8144. +# func_enable_tag tagname
  8145. +# Verify that TAGNAME is valid, and either flag an error and exit, or
  8146. +# enable the TAGNAME tag. We also add TAGNAME to the global $taglist
  8147. +# variable here.
  8148. +func_enable_tag ()
  8149. +{
  8150. + # Global variable:
  8151. + tagname="$1"
  8152. - --mode) prevopt="--mode" prev=mode ;;
  8153. - --mode=*) mode="$optarg" ;;
  8154. + re_begincf="^# ### BEGIN LIBTOOL TAG CONFIG: $tagname\$"
  8155. + re_endcf="^# ### END LIBTOOL TAG CONFIG: $tagname\$"
  8156. + sed_extractcf="/$re_begincf/,/$re_endcf/p"
  8157. +
  8158. + # Validate tagname.
  8159. + case $tagname in
  8160. + *[!-_A-Za-z0-9,/]*)
  8161. + func_fatal_error "invalid tag name: $tagname"
  8162. + ;;
  8163. + esac
  8164. - --preserve-dup-deps) duplicate_deps="yes" ;;
  8165. + # Don't test for the "default" C tag, as we know it's
  8166. + # there but not specially marked.
  8167. + case $tagname in
  8168. + CC) ;;
  8169. + *)
  8170. + if $GREP "$re_begincf" "$progpath" >/dev/null 2>&1; then
  8171. + taglist="$taglist $tagname"
  8172. - --quiet | --silent)
  8173. - show=:
  8174. - preserve_args="$preserve_args $arg"
  8175. - ;;
  8176. + # Evaluate the configuration. Be careful to quote the path
  8177. + # and the sed script, to avoid splitting on whitespace, but
  8178. + # also don't use non-portable quotes within backquotes within
  8179. + # quotes we have to do it in 2 steps:
  8180. + extractedcf=`$SED -n -e "$sed_extractcf" < "$progpath"`
  8181. + eval "$extractedcf"
  8182. + else
  8183. + func_error "ignoring unknown tag $tagname"
  8184. + fi
  8185. + ;;
  8186. + esac
  8187. +}
  8188. +
  8189. +# Parse options once, thoroughly. This comes as soon as possible in
  8190. +# the script to make things like `libtool --version' happen quickly.
  8191. +{
  8192. - --tag)
  8193. - prevopt="--tag"
  8194. - prev=tag
  8195. - preserve_args="$preserve_args --tag"
  8196. + # Shorthand for --mode=foo, only valid as the first argument
  8197. + case $1 in
  8198. + clean|clea|cle|cl)
  8199. + shift; set dummy --mode clean ${1+"$@"}; shift
  8200. ;;
  8201. - --tag=*)
  8202. - set tag "$optarg" ${1+"$@"}
  8203. - shift
  8204. - prev=tag
  8205. - preserve_args="$preserve_args --tag"
  8206. + compile|compil|compi|comp|com|co|c)
  8207. + shift; set dummy --mode compile ${1+"$@"}; shift
  8208. ;;
  8209. -
  8210. - -dlopen)
  8211. - prevopt="-dlopen"
  8212. - prev=execute_dlfiles
  8213. + execute|execut|execu|exec|exe|ex|e)
  8214. + shift; set dummy --mode execute ${1+"$@"}; shift
  8215. ;;
  8216. -
  8217. - -*)
  8218. - $echo "$modename: unrecognized option \`$arg'" 1>&2
  8219. - $echo "$help" 1>&2
  8220. - exit $EXIT_FAILURE
  8221. + finish|finis|fini|fin|fi|f)
  8222. + shift; set dummy --mode finish ${1+"$@"}; shift
  8223. ;;
  8224. -
  8225. - *)
  8226. - nonopt="$arg"
  8227. - break
  8228. + install|instal|insta|inst|ins|in|i)
  8229. + shift; set dummy --mode install ${1+"$@"}; shift
  8230. + ;;
  8231. + link|lin|li|l)
  8232. + shift; set dummy --mode link ${1+"$@"}; shift
  8233. + ;;
  8234. + uninstall|uninstal|uninsta|uninst|unins|unin|uni|un|u)
  8235. + shift; set dummy --mode uninstall ${1+"$@"}; shift
  8236. ;;
  8237. esac
  8238. -done
  8239. -if test -n "$prevopt"; then
  8240. - $echo "$modename: option \`$prevopt' requires an argument" 1>&2
  8241. - $echo "$help" 1>&2
  8242. - exit $EXIT_FAILURE
  8243. -fi
  8244. + # Parse non-mode specific arguments:
  8245. + while test "$#" -gt 0; do
  8246. + opt="$1"
  8247. + shift
  8248. -case $disable_libs in
  8249. -no)
  8250. - ;;
  8251. -shared)
  8252. - build_libtool_libs=no
  8253. - build_old_libs=yes
  8254. - ;;
  8255. -static)
  8256. - build_old_libs=`case $build_libtool_libs in yes) echo no;; *) echo yes;; esac`
  8257. - ;;
  8258. -esac
  8259. + case $opt in
  8260. + --config) func_config ;;
  8261. -# If this variable is set in any of the actions, the command in it
  8262. -# will be execed at the end. This prevents here-documents from being
  8263. -# left over by shells.
  8264. -exec_cmd=
  8265. + --debug) preserve_args="$preserve_args $opt"
  8266. + func_echo "enabling shell trace mode"
  8267. + opt_debug='set -x'
  8268. + $opt_debug
  8269. + ;;
  8270. +
  8271. + -dlopen) test "$#" -eq 0 && func_missing_arg "$opt" && break
  8272. + execute_dlfiles="$execute_dlfiles $1"
  8273. + shift
  8274. + ;;
  8275. -if test -z "$show_help"; then
  8276. + --dry-run | -n) opt_dry_run=: ;;
  8277. + --features) func_features ;;
  8278. + --finish) mode="finish" ;;
  8279. +
  8280. + --mode) test "$#" -eq 0 && func_missing_arg "$opt" && break
  8281. + case $1 in
  8282. + # Valid mode arguments:
  8283. + clean) ;;
  8284. + compile) ;;
  8285. + execute) ;;
  8286. + finish) ;;
  8287. + install) ;;
  8288. + link) ;;
  8289. + relink) ;;
  8290. + uninstall) ;;
  8291. +
  8292. + # Catch anything else as an error
  8293. + *) func_error "invalid argument for $opt"
  8294. + exit_cmd=exit
  8295. + break
  8296. + ;;
  8297. + esac
  8298. - # Infer the operation mode.
  8299. - if test -z "$mode"; then
  8300. - $echo "*** Warning: inferring the mode of operation is deprecated." 1>&2
  8301. - $echo "*** Future versions of Libtool will require --mode=MODE be specified." 1>&2
  8302. - case $nonopt in
  8303. - *cc | cc* | *++ | gcc* | *-gcc* | g++* | xlc*)
  8304. - mode=link
  8305. - for arg
  8306. - do
  8307. - case $arg in
  8308. - -c)
  8309. - mode=compile
  8310. - break
  8311. - ;;
  8312. - esac
  8313. - done
  8314. - ;;
  8315. - *db | *dbx | *strace | *truss)
  8316. - mode=execute
  8317. - ;;
  8318. - *install*|cp|mv)
  8319. - mode=install
  8320. - ;;
  8321. - *rm)
  8322. - mode=uninstall
  8323. + mode="$1"
  8324. + shift
  8325. + ;;
  8326. +
  8327. + --preserve-dup-deps)
  8328. + opt_duplicate_deps=: ;;
  8329. +
  8330. + --quiet|--silent) preserve_args="$preserve_args $opt"
  8331. + opt_silent=:
  8332. + ;;
  8333. +
  8334. + --verbose| -v) preserve_args="$preserve_args $opt"
  8335. + opt_silent=false
  8336. + ;;
  8337. +
  8338. + --tag) test "$#" -eq 0 && func_missing_arg "$opt" && break
  8339. + preserve_args="$preserve_args $opt $1"
  8340. + func_enable_tag "$1" # tagname is set here
  8341. + shift
  8342. + ;;
  8343. +
  8344. + # Separate optargs to long options:
  8345. + -dlopen=*|--mode=*|--tag=*)
  8346. + func_opt_split "$opt"
  8347. + set dummy "$func_opt_split_opt" "$func_opt_split_arg" ${1+"$@"}
  8348. + shift
  8349. + ;;
  8350. +
  8351. + -\?|-h) func_usage ;;
  8352. + --help) opt_help=: ;;
  8353. + --version) func_version ;;
  8354. +
  8355. + -*) func_fatal_help "unrecognized option \`$opt'" ;;
  8356. +
  8357. + *) nonopt="$opt"
  8358. + break
  8359. + ;;
  8360. + esac
  8361. + done
  8362. +
  8363. +
  8364. + case $host in
  8365. + *cygwin* | *mingw* | *pw32* | *cegcc*)
  8366. + # don't eliminate duplications in $postdeps and $predeps
  8367. + opt_duplicate_compiler_generated_deps=:
  8368. ;;
  8369. *)
  8370. - # If we have no mode, but dlfiles were specified, then do execute mode.
  8371. - test -n "$execute_dlfiles" && mode=execute
  8372. + opt_duplicate_compiler_generated_deps=$opt_duplicate_deps
  8373. + ;;
  8374. + esac
  8375. - # Just use the default operation mode.
  8376. - if test -z "$mode"; then
  8377. - if test -n "$nonopt"; then
  8378. - $echo "$modename: warning: cannot infer operation mode from \`$nonopt'" 1>&2
  8379. - else
  8380. - $echo "$modename: warning: cannot infer operation mode without MODE-ARGS" 1>&2
  8381. - fi
  8382. + # Having warned about all mis-specified options, bail out if
  8383. + # anything was wrong.
  8384. + $exit_cmd $EXIT_FAILURE
  8385. +}
  8386. +
  8387. +# func_check_version_match
  8388. +# Ensure that we are using m4 macros, and libtool script from the same
  8389. +# release of libtool.
  8390. +func_check_version_match ()
  8391. +{
  8392. + if test "$package_revision" != "$macro_revision"; then
  8393. + if test "$VERSION" != "$macro_version"; then
  8394. + if test -z "$macro_version"; then
  8395. + cat >&2 <<_LT_EOF
  8396. +$progname: Version mismatch error. This is $PACKAGE $VERSION, but the
  8397. +$progname: definition of this LT_INIT comes from an older release.
  8398. +$progname: You should recreate aclocal.m4 with macros from $PACKAGE $VERSION
  8399. +$progname: and run autoconf again.
  8400. +_LT_EOF
  8401. + else
  8402. + cat >&2 <<_LT_EOF
  8403. +$progname: Version mismatch error. This is $PACKAGE $VERSION, but the
  8404. +$progname: definition of this LT_INIT comes from $PACKAGE $macro_version.
  8405. +$progname: You should recreate aclocal.m4 with macros from $PACKAGE $VERSION
  8406. +$progname: and run autoconf again.
  8407. +_LT_EOF
  8408. fi
  8409. - ;;
  8410. - esac
  8411. + else
  8412. + cat >&2 <<_LT_EOF
  8413. +$progname: Version mismatch error. This is $PACKAGE $VERSION, revision $package_revision,
  8414. +$progname: but the definition of this LT_INIT comes from revision $macro_revision.
  8415. +$progname: You should recreate aclocal.m4 with macros from revision $package_revision
  8416. +$progname: of $PACKAGE $VERSION and run autoconf again.
  8417. +_LT_EOF
  8418. + fi
  8419. +
  8420. + exit $EXIT_MISMATCH
  8421. + fi
  8422. +}
  8423. +
  8424. +
  8425. +## ----------- ##
  8426. +## Main. ##
  8427. +## ----------- ##
  8428. +
  8429. +$opt_help || {
  8430. + # Sanity checks first:
  8431. + func_check_version_match
  8432. +
  8433. + if test "$build_libtool_libs" != yes && test "$build_old_libs" != yes; then
  8434. + func_fatal_configuration "not configured to build any kind of library"
  8435. fi
  8436. + test -z "$mode" && func_fatal_error "error: you must specify a MODE."
  8437. +
  8438. +
  8439. + # Darwin sucks
  8440. + eval std_shrext=\"$shrext_cmds\"
  8441. +
  8442. +
  8443. # Only execute mode is allowed to have -dlopen flags.
  8444. if test -n "$execute_dlfiles" && test "$mode" != execute; then
  8445. - $echo "$modename: unrecognized option \`-dlopen'" 1>&2
  8446. - $echo "$help" 1>&2
  8447. + func_error "unrecognized option \`-dlopen'"
  8448. + $ECHO "$help" 1>&2
  8449. exit $EXIT_FAILURE
  8450. fi
  8451. # Change the help message to a mode-specific one.
  8452. generic_help="$help"
  8453. - help="Try \`$modename --help --mode=$mode' for more information."
  8454. + help="Try \`$progname --help --mode=$mode' for more information."
  8455. +}
  8456. - # These modes are in order of execution frequency so that they run quickly.
  8457. - case $mode in
  8458. - # libtool compile mode
  8459. - compile)
  8460. - modename="$modename: compile"
  8461. - # Get the compilation command and the source file.
  8462. - base_compile=
  8463. - srcfile="$nonopt" # always keep a non-empty value in "srcfile"
  8464. - suppress_opt=yes
  8465. - suppress_output=
  8466. - arg_mode=normal
  8467. - libobj=
  8468. - later=
  8469. - for arg
  8470. - do
  8471. - case $arg_mode in
  8472. - arg )
  8473. - # do not "continue". Instead, add this to base_compile
  8474. - lastarg="$arg"
  8475. - arg_mode=normal
  8476. - ;;
  8477. +# func_lalib_p file
  8478. +# True iff FILE is a libtool `.la' library or `.lo' object file.
  8479. +# This function is only a basic sanity check; it will hardly flush out
  8480. +# determined imposters.
  8481. +func_lalib_p ()
  8482. +{
  8483. + test -f "$1" &&
  8484. + $SED -e 4q "$1" 2>/dev/null \
  8485. + | $GREP "^# Generated by .*$PACKAGE" > /dev/null 2>&1
  8486. +}
  8487. - target )
  8488. - libobj="$arg"
  8489. - arg_mode=normal
  8490. - continue
  8491. - ;;
  8492. +# func_lalib_unsafe_p file
  8493. +# True iff FILE is a libtool `.la' library or `.lo' object file.
  8494. +# This function implements the same check as func_lalib_p without
  8495. +# resorting to external programs. To this end, it redirects stdin and
  8496. +# closes it afterwards, without saving the original file descriptor.
  8497. +# As a safety measure, use it only where a negative result would be
  8498. +# fatal anyway. Works if `file' does not exist.
  8499. +func_lalib_unsafe_p ()
  8500. +{
  8501. + lalib_p=no
  8502. + if test -f "$1" && test -r "$1" && exec 5<&0 <"$1"; then
  8503. + for lalib_p_l in 1 2 3 4
  8504. + do
  8505. + read lalib_p_line
  8506. + case "$lalib_p_line" in
  8507. + \#\ Generated\ by\ *$PACKAGE* ) lalib_p=yes; break;;
  8508. + esac
  8509. + done
  8510. + exec 0<&5 5<&-
  8511. + fi
  8512. + test "$lalib_p" = yes
  8513. +}
  8514. - normal )
  8515. - # Accept any command-line options.
  8516. - case $arg in
  8517. - -o)
  8518. - if test -n "$libobj" ; then
  8519. - $echo "$modename: you cannot specify \`-o' more than once" 1>&2
  8520. - exit $EXIT_FAILURE
  8521. - fi
  8522. - arg_mode=target
  8523. - continue
  8524. - ;;
  8525. +# func_ltwrapper_script_p file
  8526. +# True iff FILE is a libtool wrapper script
  8527. +# This function is only a basic sanity check; it will hardly flush out
  8528. +# determined imposters.
  8529. +func_ltwrapper_script_p ()
  8530. +{
  8531. + func_lalib_p "$1"
  8532. +}
  8533. - -static | -prefer-pic | -prefer-non-pic)
  8534. - later="$later $arg"
  8535. - continue
  8536. - ;;
  8537. +# func_ltwrapper_executable_p file
  8538. +# True iff FILE is a libtool wrapper executable
  8539. +# This function is only a basic sanity check; it will hardly flush out
  8540. +# determined imposters.
  8541. +func_ltwrapper_executable_p ()
  8542. +{
  8543. + func_ltwrapper_exec_suffix=
  8544. + case $1 in
  8545. + *.exe) ;;
  8546. + *) func_ltwrapper_exec_suffix=.exe ;;
  8547. + esac
  8548. + $GREP "$magic_exe" "$1$func_ltwrapper_exec_suffix" >/dev/null 2>&1
  8549. +}
  8550. - -no-suppress)
  8551. - suppress_opt=no
  8552. - continue
  8553. - ;;
  8554. +# func_ltwrapper_scriptname file
  8555. +# Assumes file is an ltwrapper_executable
  8556. +# uses $file to determine the appropriate filename for a
  8557. +# temporary ltwrapper_script.
  8558. +func_ltwrapper_scriptname ()
  8559. +{
  8560. + func_ltwrapper_scriptname_result=""
  8561. + if func_ltwrapper_executable_p "$1"; then
  8562. + func_dirname_and_basename "$1" "" "."
  8563. + func_stripname '' '.exe' "$func_basename_result"
  8564. + func_ltwrapper_scriptname_result="$func_dirname_result/$objdir/${func_stripname_result}_ltshwrapper"
  8565. + fi
  8566. +}
  8567. - -Xcompiler)
  8568. - arg_mode=arg # the next one goes into the "base_compile" arg list
  8569. - continue # The current "srcfile" will either be retained or
  8570. - ;; # replaced later. I would guess that would be a bug.
  8571. +# func_ltwrapper_p file
  8572. +# True iff FILE is a libtool wrapper script or wrapper executable
  8573. +# This function is only a basic sanity check; it will hardly flush out
  8574. +# determined imposters.
  8575. +func_ltwrapper_p ()
  8576. +{
  8577. + func_ltwrapper_script_p "$1" || func_ltwrapper_executable_p "$1"
  8578. +}
  8579. - -Wc,*)
  8580. - args=`$echo "X$arg" | $Xsed -e "s/^-Wc,//"`
  8581. - lastarg=
  8582. - save_ifs="$IFS"; IFS=','
  8583. - for arg in $args; do
  8584. - IFS="$save_ifs"
  8585. - # Double-quote args containing other shell metacharacters.
  8586. - # Many Bourne shells cannot handle close brackets correctly
  8587. - # in scan sets, so we specify it separately.
  8588. - case $arg in
  8589. - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
  8590. - arg="\"$arg\""
  8591. +# func_execute_cmds commands fail_cmd
  8592. +# Execute tilde-delimited COMMANDS.
  8593. +# If FAIL_CMD is given, eval that upon failure.
  8594. +# FAIL_CMD may read-access the current command in variable CMD!
  8595. +func_execute_cmds ()
  8596. +{
  8597. + $opt_debug
  8598. + save_ifs=$IFS; IFS='~'
  8599. + for cmd in $1; do
  8600. + IFS=$save_ifs
  8601. + eval cmd=\"$cmd\"
  8602. + func_show_eval "$cmd" "${2-:}"
  8603. + done
  8604. + IFS=$save_ifs
  8605. +}
  8606. +
  8607. +
  8608. +# func_source file
  8609. +# Source FILE, adding directory component if necessary.
  8610. +# Note that it is not necessary on cygwin/mingw to append a dot to
  8611. +# FILE even if both FILE and FILE.exe exist: automatic-append-.exe
  8612. +# behavior happens only for exec(3), not for open(2)! Also, sourcing
  8613. +# `FILE.' does not work on cygwin managed mounts.
  8614. +func_source ()
  8615. +{
  8616. + $opt_debug
  8617. + case $1 in
  8618. + */* | *\\*) . "$1" ;;
  8619. + *) . "./$1" ;;
  8620. + esac
  8621. +}
  8622. +
  8623. +
  8624. +# func_infer_tag arg
  8625. +# Infer tagged configuration to use if any are available and
  8626. +# if one wasn't chosen via the "--tag" command line option.
  8627. +# Only attempt this if the compiler in the base compile
  8628. +# command doesn't match the default compiler.
  8629. +# arg is usually of the form 'gcc ...'
  8630. +func_infer_tag ()
  8631. +{
  8632. + $opt_debug
  8633. + if test -n "$available_tags" && test -z "$tagname"; then
  8634. + CC_quoted=
  8635. + for arg in $CC; do
  8636. + func_quote_for_eval "$arg"
  8637. + CC_quoted="$CC_quoted $func_quote_for_eval_result"
  8638. + done
  8639. + case $@ in
  8640. + # Blanks in the command may have been stripped by the calling shell,
  8641. + # but not from the CC environment variable when configure was run.
  8642. + " $CC "* | "$CC "* | " `$ECHO $CC` "* | "`$ECHO $CC` "* | " $CC_quoted"* | "$CC_quoted "* | " `$ECHO $CC_quoted` "* | "`$ECHO $CC_quoted` "*) ;;
  8643. + # Blanks at the start of $base_compile will cause this to fail
  8644. + # if we don't check for them as well.
  8645. + *)
  8646. + for z in $available_tags; do
  8647. + if $GREP "^# ### BEGIN LIBTOOL TAG CONFIG: $z$" < "$progpath" > /dev/null; then
  8648. + # Evaluate the configuration.
  8649. + eval "`${SED} -n -e '/^# ### BEGIN LIBTOOL TAG CONFIG: '$z'$/,/^# ### END LIBTOOL TAG CONFIG: '$z'$/p' < $progpath`"
  8650. + CC_quoted=
  8651. + for arg in $CC; do
  8652. + # Double-quote args containing other shell metacharacters.
  8653. + func_quote_for_eval "$arg"
  8654. + CC_quoted="$CC_quoted $func_quote_for_eval_result"
  8655. + done
  8656. + case "$@ " in
  8657. + " $CC "* | "$CC "* | " `$ECHO $CC` "* | "`$ECHO $CC` "* | " $CC_quoted"* | "$CC_quoted "* | " `$ECHO $CC_quoted` "* | "`$ECHO $CC_quoted` "*)
  8658. + # The compiler in the base compile command matches
  8659. + # the one in the tagged configuration.
  8660. + # Assume this is the tagged configuration we want.
  8661. + tagname=$z
  8662. + break
  8663. ;;
  8664. esac
  8665. - lastarg="$lastarg $arg"
  8666. + fi
  8667. + done
  8668. + # If $tagname still isn't set, then no tagged configuration
  8669. + # was found and let the user know that the "--tag" command
  8670. + # line option must be used.
  8671. + if test -z "$tagname"; then
  8672. + func_echo "unable to infer tagged configuration"
  8673. + func_fatal_error "specify a tag with \`--tag'"
  8674. +# else
  8675. +# func_verbose "using $tagname tagged configuration"
  8676. + fi
  8677. + ;;
  8678. + esac
  8679. + fi
  8680. +}
  8681. +
  8682. +
  8683. +
  8684. +# func_write_libtool_object output_name pic_name nonpic_name
  8685. +# Create a libtool object file (analogous to a ".la" file),
  8686. +# but don't create it if we're doing a dry run.
  8687. +func_write_libtool_object ()
  8688. +{
  8689. + write_libobj=${1}
  8690. + if test "$build_libtool_libs" = yes; then
  8691. + write_lobj=\'${2}\'
  8692. + else
  8693. + write_lobj=none
  8694. + fi
  8695. +
  8696. + if test "$build_old_libs" = yes; then
  8697. + write_oldobj=\'${3}\'
  8698. + else
  8699. + write_oldobj=none
  8700. + fi
  8701. +
  8702. + $opt_dry_run || {
  8703. + cat >${write_libobj}T <<EOF
  8704. +# $write_libobj - a libtool object file
  8705. +# Generated by $PROGRAM (GNU $PACKAGE$TIMESTAMP) $VERSION
  8706. +#
  8707. +# Please DO NOT delete this file!
  8708. +# It is necessary for linking the library.
  8709. +
  8710. +# Name of the PIC object.
  8711. +pic_object=$write_lobj
  8712. +
  8713. +# Name of the non-PIC object
  8714. +non_pic_object=$write_oldobj
  8715. +
  8716. +EOF
  8717. + $MV "${write_libobj}T" "${write_libobj}"
  8718. + }
  8719. +}
  8720. +
  8721. +# func_mode_compile arg...
  8722. +func_mode_compile ()
  8723. +{
  8724. + $opt_debug
  8725. + # Get the compilation command and the source file.
  8726. + base_compile=
  8727. + srcfile="$nonopt" # always keep a non-empty value in "srcfile"
  8728. + suppress_opt=yes
  8729. + suppress_output=
  8730. + arg_mode=normal
  8731. + libobj=
  8732. + later=
  8733. + pie_flag=
  8734. +
  8735. + for arg
  8736. + do
  8737. + case $arg_mode in
  8738. + arg )
  8739. + # do not "continue". Instead, add this to base_compile
  8740. + lastarg="$arg"
  8741. + arg_mode=normal
  8742. + ;;
  8743. +
  8744. + target )
  8745. + libobj="$arg"
  8746. + arg_mode=normal
  8747. + continue
  8748. + ;;
  8749. +
  8750. + normal )
  8751. + # Accept any command-line options.
  8752. + case $arg in
  8753. + -o)
  8754. + test -n "$libobj" && \
  8755. + func_fatal_error "you cannot specify \`-o' more than once"
  8756. + arg_mode=target
  8757. + continue
  8758. + ;;
  8759. +
  8760. + -pie | -fpie | -fPIE)
  8761. + pie_flag="$pie_flag $arg"
  8762. + continue
  8763. + ;;
  8764. +
  8765. + -shared | -static | -prefer-pic | -prefer-non-pic)
  8766. + later="$later $arg"
  8767. + continue
  8768. + ;;
  8769. +
  8770. + -no-suppress)
  8771. + suppress_opt=no
  8772. + continue
  8773. + ;;
  8774. +
  8775. + -Xcompiler)
  8776. + arg_mode=arg # the next one goes into the "base_compile" arg list
  8777. + continue # The current "srcfile" will either be retained or
  8778. + ;; # replaced later. I would guess that would be a bug.
  8779. +
  8780. + -Wc,*)
  8781. + func_stripname '-Wc,' '' "$arg"
  8782. + args=$func_stripname_result
  8783. + lastarg=
  8784. + save_ifs="$IFS"; IFS=','
  8785. + for arg in $args; do
  8786. + IFS="$save_ifs"
  8787. + func_quote_for_eval "$arg"
  8788. + lastarg="$lastarg $func_quote_for_eval_result"
  8789. done
  8790. IFS="$save_ifs"
  8791. - lastarg=`$echo "X$lastarg" | $Xsed -e "s/^ //"`
  8792. + func_stripname ' ' '' "$lastarg"
  8793. + lastarg=$func_stripname_result
  8794. # Add the arguments to base_compile.
  8795. base_compile="$base_compile $lastarg"
  8796. continue
  8797. ;;
  8798. - * )
  8799. + *)
  8800. # Accept the current argument as the source file.
  8801. # The previous "srcfile" becomes the current argument.
  8802. #
  8803. @@ -709,64 +1187,42 @@
  8804. esac # case $arg_mode
  8805. # Aesthetically quote the previous argument.
  8806. - lastarg=`$echo "X$lastarg" | $Xsed -e "$sed_quote_subst"`
  8807. -
  8808. - case $lastarg in
  8809. - # Double-quote args containing other shell metacharacters.
  8810. - # Many Bourne shells cannot handle close brackets correctly
  8811. - # in scan sets, and some SunOS ksh mistreat backslash-escaping
  8812. - # in scan sets (worked around with variable expansion),
  8813. - # and furthermore cannot handle '|' '&' '(' ')' in scan sets
  8814. - # at all, so we specify them separately.
  8815. - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
  8816. - lastarg="\"$lastarg\""
  8817. - ;;
  8818. - esac
  8819. -
  8820. - base_compile="$base_compile $lastarg"
  8821. + func_quote_for_eval "$lastarg"
  8822. + base_compile="$base_compile $func_quote_for_eval_result"
  8823. done # for arg
  8824. case $arg_mode in
  8825. arg)
  8826. - $echo "$modename: you must specify an argument for -Xcompile"
  8827. - exit $EXIT_FAILURE
  8828. + func_fatal_error "you must specify an argument for -Xcompile"
  8829. ;;
  8830. target)
  8831. - $echo "$modename: you must specify a target with \`-o'" 1>&2
  8832. - exit $EXIT_FAILURE
  8833. + func_fatal_error "you must specify a target with \`-o'"
  8834. ;;
  8835. *)
  8836. # Get the name of the library object.
  8837. - [ -z "$libobj" ] && libobj=`$echo "X$srcfile" | $Xsed -e 's%^.*/%%'`
  8838. + test -z "$libobj" && {
  8839. + func_basename "$srcfile"
  8840. + libobj="$func_basename_result"
  8841. + }
  8842. ;;
  8843. esac
  8844. # Recognize several different file suffixes.
  8845. # If the user specifies -o file.o, it is replaced with file.lo
  8846. - xform='[cCFSifmso]'
  8847. case $libobj in
  8848. - *.ada) xform=ada ;;
  8849. - *.adb) xform=adb ;;
  8850. - *.ads) xform=ads ;;
  8851. - *.asm) xform=asm ;;
  8852. - *.c++) xform=c++ ;;
  8853. - *.cc) xform=cc ;;
  8854. - *.ii) xform=ii ;;
  8855. - *.class) xform=class ;;
  8856. - *.cpp) xform=cpp ;;
  8857. - *.cxx) xform=cxx ;;
  8858. - *.f90) xform=f90 ;;
  8859. - *.for) xform=for ;;
  8860. - *.java) xform=java ;;
  8861. + *.[cCFSifmso] | \
  8862. + *.ada | *.adb | *.ads | *.asm | \
  8863. + *.c++ | *.cc | *.ii | *.class | *.cpp | *.cxx | \
  8864. + *.[fF][09]? | *.for | *.java | *.obj | *.sx)
  8865. + func_xform "$libobj"
  8866. + libobj=$func_xform_result
  8867. + ;;
  8868. esac
  8869. - libobj=`$echo "X$libobj" | $Xsed -e "s/\.$xform$/.lo/"`
  8870. -
  8871. case $libobj in
  8872. - *.lo) obj=`$echo "X$libobj" | $Xsed -e "$lo2o"` ;;
  8873. + *.lo) func_lo2o "$libobj"; obj=$func_lo2o_result ;;
  8874. *)
  8875. - $echo "$modename: cannot determine name of library object from \`$libobj'" 1>&2
  8876. - exit $EXIT_FAILURE
  8877. + func_fatal_error "cannot determine name of library object from \`$libobj'"
  8878. ;;
  8879. esac
  8880. @@ -774,7 +1230,15 @@
  8881. for arg in $later; do
  8882. case $arg in
  8883. + -shared)
  8884. + test "$build_libtool_libs" != yes && \
  8885. + func_fatal_configuration "can not build a shared library"
  8886. + build_old_libs=no
  8887. + continue
  8888. + ;;
  8889. +
  8890. -static)
  8891. + build_libtool_libs=no
  8892. build_old_libs=yes
  8893. continue
  8894. ;;
  8895. @@ -791,28 +1255,17 @@
  8896. esac
  8897. done
  8898. - qlibobj=`$echo "X$libobj" | $Xsed -e "$sed_quote_subst"`
  8899. - case $qlibobj in
  8900. - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
  8901. - qlibobj="\"$qlibobj\"" ;;
  8902. - esac
  8903. - test "X$libobj" != "X$qlibobj" \
  8904. - && $echo "X$libobj" | grep '[]~#^*{};<>?"'"'"' &()|`$[]' \
  8905. - && $echo "$modename: libobj name \`$libobj' may not contain shell special characters."
  8906. - objname=`$echo "X$obj" | $Xsed -e 's%^.*/%%'`
  8907. - xdir=`$echo "X$obj" | $Xsed -e 's%/[^/]*$%%'`
  8908. - if test "X$xdir" = "X$obj"; then
  8909. - xdir=
  8910. - else
  8911. - xdir=$xdir/
  8912. - fi
  8913. + func_quote_for_eval "$libobj"
  8914. + test "X$libobj" != "X$func_quote_for_eval_result" \
  8915. + && $ECHO "X$libobj" | $GREP '[]~#^*{};<>?"'"'"' &()|`$[]' \
  8916. + && func_warning "libobj name \`$libobj' may not contain shell special characters."
  8917. + func_dirname_and_basename "$obj" "/" ""
  8918. + objname="$func_basename_result"
  8919. + xdir="$func_dirname_result"
  8920. lobj=${xdir}$objdir/$objname
  8921. - if test -z "$base_compile"; then
  8922. - $echo "$modename: you must specify a compilation command" 1>&2
  8923. - $echo "$help" 1>&2
  8924. - exit $EXIT_FAILURE
  8925. - fi
  8926. + test -z "$base_compile" && \
  8927. + func_fatal_help "you must specify a compilation command"
  8928. # Delete any leftover library objects.
  8929. if test "$build_old_libs" = yes; then
  8930. @@ -821,12 +1274,9 @@
  8931. removelist="$lobj $libobj ${libobj}T"
  8932. fi
  8933. - $run $rm $removelist
  8934. - trap "$run $rm $removelist; exit $EXIT_FAILURE" 1 2 15
  8935. -
  8936. # On Cygwin there's no "real" PIC flag so we must build both object types
  8937. case $host_os in
  8938. - cygwin* | mingw* | pw32* | os2*)
  8939. + cygwin* | mingw* | pw32* | os2* | cegcc*)
  8940. pic_mode=default
  8941. ;;
  8942. esac
  8943. @@ -838,10 +1288,8 @@
  8944. # Calculate the filename of the output object if compiler does
  8945. # not support -o with -c
  8946. if test "$compiler_c_o" = no; then
  8947. - output_obj=`$echo "X$srcfile" | $Xsed -e 's%^.*/%%' -e 's%\.[^.]*$%%'`.${objext}
  8948. + output_obj=`$ECHO "X$srcfile" | $Xsed -e 's%^.*/%%' -e 's%\.[^.]*$%%'`.${objext}
  8949. lockfile="$output_obj.lock"
  8950. - removelist="$removelist $output_obj $lockfile"
  8951. - trap "$run $rm $removelist; exit $EXIT_FAILURE" 1 2 15
  8952. else
  8953. output_obj=
  8954. need_locks=no
  8955. @@ -851,13 +1299,13 @@
  8956. # Lock this critical section if it is needed
  8957. # We use this script file to make the link, it avoids creating a new file
  8958. if test "$need_locks" = yes; then
  8959. - until $run ln "$progpath" "$lockfile" 2>/dev/null; do
  8960. - $show "Waiting for $lockfile to be removed"
  8961. + until $opt_dry_run || ln "$progpath" "$lockfile" 2>/dev/null; do
  8962. + func_echo "Waiting for $lockfile to be removed"
  8963. sleep 2
  8964. done
  8965. elif test "$need_locks" = warn; then
  8966. if test -f "$lockfile"; then
  8967. - $echo "\
  8968. + $ECHO "\
  8969. *** ERROR, $lockfile exists and contains:
  8970. `cat $lockfile 2>/dev/null`
  8971. @@ -868,34 +1316,22 @@
  8972. avoid parallel builds (make -j) in this platform, or get a better
  8973. compiler."
  8974. - $run $rm $removelist
  8975. + $opt_dry_run || $RM $removelist
  8976. exit $EXIT_FAILURE
  8977. fi
  8978. - $echo "$srcfile" > "$lockfile"
  8979. + removelist="$removelist $output_obj"
  8980. + $ECHO "$srcfile" > "$lockfile"
  8981. fi
  8982. + $opt_dry_run || $RM $removelist
  8983. + removelist="$removelist $lockfile"
  8984. + trap '$opt_dry_run || $RM $removelist; exit $EXIT_FAILURE' 1 2 15
  8985. +
  8986. if test -n "$fix_srcfile_path"; then
  8987. eval srcfile=\"$fix_srcfile_path\"
  8988. fi
  8989. - qsrcfile=`$echo "X$srcfile" | $Xsed -e "$sed_quote_subst"`
  8990. - case $qsrcfile in
  8991. - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
  8992. - qsrcfile="\"$qsrcfile\"" ;;
  8993. - esac
  8994. -
  8995. - $run $rm "$libobj" "${libobj}T"
  8996. -
  8997. - # Create a libtool object file (analogous to a ".la" file),
  8998. - # but don't create it if we're doing a dry run.
  8999. - test -z "$run" && cat > ${libobj}T <<EOF
  9000. -# $libobj - a libtool object file
  9001. -# Generated by $PROGRAM - GNU $PACKAGE $VERSION$TIMESTAMP
  9002. -#
  9003. -# Please DO NOT delete this file!
  9004. -# It is necessary for linking the library.
  9005. -
  9006. -# Name of the PIC object.
  9007. -EOF
  9008. + func_quote_for_eval "$srcfile"
  9009. + qsrcfile=$func_quote_for_eval_result
  9010. # Only build a PIC object if we are building libtool libraries.
  9011. if test "$build_libtool_libs" = yes; then
  9012. @@ -909,32 +1345,19 @@
  9013. command="$base_compile $qsrcfile"
  9014. fi
  9015. - if test ! -d "${xdir}$objdir"; then
  9016. - $show "$mkdir ${xdir}$objdir"
  9017. - $run $mkdir ${xdir}$objdir
  9018. - exit_status=$?
  9019. - if test "$exit_status" -ne 0 && test ! -d "${xdir}$objdir"; then
  9020. - exit $exit_status
  9021. - fi
  9022. - fi
  9023. + func_mkdir_p "$xdir$objdir"
  9024. if test -z "$output_obj"; then
  9025. # Place PIC objects in $objdir
  9026. command="$command -o $lobj"
  9027. fi
  9028. - $run $rm "$lobj" "$output_obj"
  9029. -
  9030. - $show "$command"
  9031. - if $run eval "$command"; then :
  9032. - else
  9033. - test -n "$output_obj" && $run $rm $removelist
  9034. - exit $EXIT_FAILURE
  9035. - fi
  9036. + func_show_eval_locale "$command" \
  9037. + 'test -n "$output_obj" && $RM $removelist; exit $EXIT_FAILURE'
  9038. if test "$need_locks" = warn &&
  9039. test "X`cat $lockfile 2>/dev/null`" != "X$srcfile"; then
  9040. - $echo "\
  9041. + $ECHO "\
  9042. *** ERROR, $lockfile contains:
  9043. `cat $lockfile 2>/dev/null`
  9044. @@ -948,45 +1371,27 @@
  9045. avoid parallel builds (make -j) in this platform, or get a better
  9046. compiler."
  9047. - $run $rm $removelist
  9048. + $opt_dry_run || $RM $removelist
  9049. exit $EXIT_FAILURE
  9050. fi
  9051. # Just move the object if needed, then go on to compile the next one
  9052. if test -n "$output_obj" && test "X$output_obj" != "X$lobj"; then
  9053. - $show "$mv $output_obj $lobj"
  9054. - if $run $mv $output_obj $lobj; then :
  9055. - else
  9056. - error=$?
  9057. - $run $rm $removelist
  9058. - exit $error
  9059. - fi
  9060. + func_show_eval '$MV "$output_obj" "$lobj"' \
  9061. + 'error=$?; $opt_dry_run || $RM $removelist; exit $error'
  9062. fi
  9063. - # Append the name of the PIC object to the libtool object file.
  9064. - test -z "$run" && cat >> ${libobj}T <<EOF
  9065. -pic_object='$objdir/$objname'
  9066. -
  9067. -EOF
  9068. -
  9069. # Allow error messages only from the first compilation.
  9070. if test "$suppress_opt" = yes; then
  9071. - suppress_output=' >/dev/null 2>&1'
  9072. + suppress_output=' >/dev/null 2>&1'
  9073. fi
  9074. - else
  9075. - # No PIC object so indicate it doesn't exist in the libtool
  9076. - # object file.
  9077. - test -z "$run" && cat >> ${libobj}T <<EOF
  9078. -pic_object=none
  9079. -
  9080. -EOF
  9081. fi
  9082. # Only build a position-dependent object if we build old libraries.
  9083. if test "$build_old_libs" = yes; then
  9084. if test "$pic_mode" != yes; then
  9085. # Don't build PIC code
  9086. - command="$base_compile $qsrcfile"
  9087. + command="$base_compile $qsrcfile$pie_flag"
  9088. else
  9089. command="$base_compile $qsrcfile $pic_flag"
  9090. fi
  9091. @@ -996,17 +1401,12 @@
  9092. # Suppress compiler output if we already did a PIC compilation.
  9093. command="$command$suppress_output"
  9094. - $run $rm "$obj" "$output_obj"
  9095. - $show "$command"
  9096. - if $run eval "$command"; then :
  9097. - else
  9098. - $run $rm $removelist
  9099. - exit $EXIT_FAILURE
  9100. - fi
  9101. + func_show_eval_locale "$command" \
  9102. + '$opt_dry_run || $RM $removelist; exit $EXIT_FAILURE'
  9103. if test "$need_locks" = warn &&
  9104. test "X`cat $lockfile 2>/dev/null`" != "X$srcfile"; then
  9105. - $echo "\
  9106. + $ECHO "\
  9107. *** ERROR, $lockfile contains:
  9108. `cat $lockfile 2>/dev/null`
  9109. @@ -1020,5423 +1420,6784 @@
  9110. avoid parallel builds (make -j) in this platform, or get a better
  9111. compiler."
  9112. - $run $rm $removelist
  9113. + $opt_dry_run || $RM $removelist
  9114. exit $EXIT_FAILURE
  9115. fi
  9116. # Just move the object if needed
  9117. if test -n "$output_obj" && test "X$output_obj" != "X$obj"; then
  9118. - $show "$mv $output_obj $obj"
  9119. - if $run $mv $output_obj $obj; then :
  9120. - else
  9121. - error=$?
  9122. - $run $rm $removelist
  9123. - exit $error
  9124. - fi
  9125. + func_show_eval '$MV "$output_obj" "$obj"' \
  9126. + 'error=$?; $opt_dry_run || $RM $removelist; exit $error'
  9127. fi
  9128. -
  9129. - # Append the name of the non-PIC object the libtool object file.
  9130. - # Only append if the libtool object file exists.
  9131. - test -z "$run" && cat >> ${libobj}T <<EOF
  9132. -# Name of the non-PIC object.
  9133. -non_pic_object='$objname'
  9134. -
  9135. -EOF
  9136. - else
  9137. - # Append the name of the non-PIC object the libtool object file.
  9138. - # Only append if the libtool object file exists.
  9139. - test -z "$run" && cat >> ${libobj}T <<EOF
  9140. -# Name of the non-PIC object.
  9141. -non_pic_object=none
  9142. -
  9143. -EOF
  9144. fi
  9145. - $run $mv "${libobj}T" "${libobj}"
  9146. + $opt_dry_run || {
  9147. + func_write_libtool_object "$libobj" "$objdir/$objname" "$objname"
  9148. - # Unlock the critical section if it was locked
  9149. - if test "$need_locks" != no; then
  9150. - $run $rm "$lockfile"
  9151. - fi
  9152. + # Unlock the critical section if it was locked
  9153. + if test "$need_locks" != no; then
  9154. + removelist=$lockfile
  9155. + $RM "$lockfile"
  9156. + fi
  9157. + }
  9158. exit $EXIT_SUCCESS
  9159. - ;;
  9160. -
  9161. - # libtool link mode
  9162. - link | relink)
  9163. - modename="$modename: link"
  9164. - case $host in
  9165. - *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2*)
  9166. - # It is impossible to link a dll without this setting, and
  9167. - # we shouldn't force the makefile maintainer to figure out
  9168. - # which system we are compiling for in order to pass an extra
  9169. - # flag for every libtool invocation.
  9170. - # allow_undefined=no
  9171. +}
  9172. - # FIXME: Unfortunately, there are problems with the above when trying
  9173. - # to make a dll which has undefined symbols, in which case not
  9174. - # even a static library is built. For now, we need to specify
  9175. - # -no-undefined on the libtool link line when we can be certain
  9176. - # that all symbols are satisfied, otherwise we get a static library.
  9177. - allow_undefined=yes
  9178. - ;;
  9179. - *)
  9180. - allow_undefined=yes
  9181. - ;;
  9182. - esac
  9183. - libtool_args="$nonopt"
  9184. - base_compile="$nonopt $@"
  9185. - compile_command="$nonopt"
  9186. - finalize_command="$nonopt"
  9187. +$opt_help || {
  9188. +test "$mode" = compile && func_mode_compile ${1+"$@"}
  9189. +}
  9190. - compile_rpath=
  9191. - finalize_rpath=
  9192. - compile_shlibpath=
  9193. - finalize_shlibpath=
  9194. - convenience=
  9195. - old_convenience=
  9196. - deplibs=
  9197. - old_deplibs=
  9198. - compiler_flags=
  9199. - linker_flags=
  9200. - dllsearchpath=
  9201. - lib_search_path=`pwd`
  9202. - inst_prefix_dir=
  9203. +func_mode_help ()
  9204. +{
  9205. + # We need to display help for each of the modes.
  9206. + case $mode in
  9207. + "")
  9208. + # Generic help is extracted from the usage comments
  9209. + # at the start of this file.
  9210. + func_help
  9211. + ;;
  9212. - avoid_version=no
  9213. - dlfiles=
  9214. - dlprefiles=
  9215. - dlself=no
  9216. - export_dynamic=no
  9217. - export_symbols=
  9218. - export_symbols_regex=
  9219. - generated=
  9220. - libobjs=
  9221. - ltlibs=
  9222. - module=no
  9223. - no_install=no
  9224. - objs=
  9225. - non_pic_objects=
  9226. - notinst_path= # paths that contain not-installed libtool libraries
  9227. - precious_files_regex=
  9228. - prefer_static_libs=no
  9229. - preload=no
  9230. - prev=
  9231. - prevarg=
  9232. - release=
  9233. - rpath=
  9234. - xrpath=
  9235. - perm_rpath=
  9236. - temp_rpath=
  9237. - thread_safe=no
  9238. - vinfo=
  9239. - vinfo_number=no
  9240. + clean)
  9241. + $ECHO \
  9242. +"Usage: $progname [OPTION]... --mode=clean RM [RM-OPTION]... FILE...
  9243. - func_infer_tag $base_compile
  9244. +Remove files from the build directory.
  9245. - # We need to know -static, to get the right output filenames.
  9246. - for arg
  9247. - do
  9248. - case $arg in
  9249. - -all-static | -static)
  9250. - if test "X$arg" = "X-all-static"; then
  9251. - if test "$build_libtool_libs" = yes && test -z "$link_static_flag"; then
  9252. - $echo "$modename: warning: complete static linking is impossible in this configuration" 1>&2
  9253. - fi
  9254. - if test -n "$link_static_flag"; then
  9255. - dlopen_self=$dlopen_self_static
  9256. - fi
  9257. - prefer_static_libs=yes
  9258. - else
  9259. - if test -z "$pic_flag" && test -n "$link_static_flag"; then
  9260. - dlopen_self=$dlopen_self_static
  9261. - fi
  9262. - prefer_static_libs=built
  9263. - fi
  9264. - build_libtool_libs=no
  9265. - build_old_libs=yes
  9266. - break
  9267. - ;;
  9268. - esac
  9269. - done
  9270. +RM is the name of the program to use to delete files associated with each FILE
  9271. +(typically \`/bin/rm'). RM-OPTIONS are options (such as \`-f') to be passed
  9272. +to RM.
  9273. - # See if our shared archives depend on static archives.
  9274. - test -n "$old_archive_from_new_cmds" && build_old_libs=yes
  9275. +If FILE is a libtool library, object or program, all the files associated
  9276. +with it are deleted. Otherwise, only FILE itself is deleted using RM."
  9277. + ;;
  9278. - # Go through the arguments, transforming them on the way.
  9279. - while test "$#" -gt 0; do
  9280. - arg="$1"
  9281. - shift
  9282. - case $arg in
  9283. - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
  9284. - qarg=\"`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`\" ### testsuite: skip nested quoting test
  9285. - ;;
  9286. - *) qarg=$arg ;;
  9287. - esac
  9288. - libtool_args="$libtool_args $qarg"
  9289. + compile)
  9290. + $ECHO \
  9291. +"Usage: $progname [OPTION]... --mode=compile COMPILE-COMMAND... SOURCEFILE
  9292. - # If the previous option needs an argument, assign it.
  9293. - if test -n "$prev"; then
  9294. - case $prev in
  9295. - output)
  9296. - compile_command="$compile_command @OUTPUT@"
  9297. - finalize_command="$finalize_command @OUTPUT@"
  9298. - ;;
  9299. - esac
  9300. +Compile a source file into a libtool library object.
  9301. - case $prev in
  9302. - dlfiles|dlprefiles)
  9303. - if test "$preload" = no; then
  9304. - # Add the symbol object into the linking commands.
  9305. - compile_command="$compile_command @SYMFILE@"
  9306. - finalize_command="$finalize_command @SYMFILE@"
  9307. - preload=yes
  9308. - fi
  9309. - case $arg in
  9310. - *.la | *.lo) ;; # We handle these cases below.
  9311. - force)
  9312. - if test "$dlself" = no; then
  9313. - dlself=needless
  9314. - export_dynamic=yes
  9315. - fi
  9316. - prev=
  9317. - continue
  9318. - ;;
  9319. - self)
  9320. - if test "$prev" = dlprefiles; then
  9321. - dlself=yes
  9322. - elif test "$prev" = dlfiles && test "$dlopen_self" != yes; then
  9323. - dlself=yes
  9324. - else
  9325. - dlself=needless
  9326. - export_dynamic=yes
  9327. - fi
  9328. - prev=
  9329. - continue
  9330. - ;;
  9331. - *)
  9332. - if test "$prev" = dlfiles; then
  9333. - dlfiles="$dlfiles $arg"
  9334. - else
  9335. - dlprefiles="$dlprefiles $arg"
  9336. - fi
  9337. - prev=
  9338. - continue
  9339. - ;;
  9340. - esac
  9341. - ;;
  9342. - expsyms)
  9343. - export_symbols="$arg"
  9344. - if test ! -f "$arg"; then
  9345. - $echo "$modename: symbol file \`$arg' does not exist"
  9346. - exit $EXIT_FAILURE
  9347. - fi
  9348. - prev=
  9349. - continue
  9350. - ;;
  9351. - expsyms_regex)
  9352. - export_symbols_regex="$arg"
  9353. - prev=
  9354. - continue
  9355. - ;;
  9356. - inst_prefix)
  9357. - inst_prefix_dir="$arg"
  9358. - prev=
  9359. - continue
  9360. - ;;
  9361. - precious_regex)
  9362. - precious_files_regex="$arg"
  9363. - prev=
  9364. - continue
  9365. - ;;
  9366. - release)
  9367. - release="-$arg"
  9368. - prev=
  9369. - continue
  9370. - ;;
  9371. - objectlist)
  9372. - if test -f "$arg"; then
  9373. - save_arg=$arg
  9374. - moreargs=
  9375. - for fil in `cat $save_arg`
  9376. - do
  9377. -# moreargs="$moreargs $fil"
  9378. - arg=$fil
  9379. - # A libtool-controlled object.
  9380. +This mode accepts the following additional options:
  9381. - # Check to see that this really is a libtool object.
  9382. - if (${SED} -e '2q' $arg | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
  9383. - pic_object=
  9384. - non_pic_object=
  9385. + -o OUTPUT-FILE set the output file name to OUTPUT-FILE
  9386. + -no-suppress do not suppress compiler output for multiple passes
  9387. + -prefer-pic try to building PIC objects only
  9388. + -prefer-non-pic try to building non-PIC objects only
  9389. + -shared do not build a \`.o' file suitable for static linking
  9390. + -static only build a \`.o' file suitable for static linking
  9391. - # Read the .lo file
  9392. - # If there is no directory component, then add one.
  9393. - case $arg in
  9394. - */* | *\\*) . $arg ;;
  9395. - *) . ./$arg ;;
  9396. - esac
  9397. +COMPILE-COMMAND is a command to be used in creating a \`standard' object file
  9398. +from the given SOURCEFILE.
  9399. - if test -z "$pic_object" || \
  9400. - test -z "$non_pic_object" ||
  9401. - test "$pic_object" = none && \
  9402. - test "$non_pic_object" = none; then
  9403. - $echo "$modename: cannot find name of object for \`$arg'" 1>&2
  9404. - exit $EXIT_FAILURE
  9405. - fi
  9406. +The output file name is determined by removing the directory component from
  9407. +SOURCEFILE, then substituting the C source code suffix \`.c' with the
  9408. +library object suffix, \`.lo'."
  9409. + ;;
  9410. - # Extract subdirectory from the argument.
  9411. - xdir=`$echo "X$arg" | $Xsed -e 's%/[^/]*$%%'`
  9412. - if test "X$xdir" = "X$arg"; then
  9413. - xdir=
  9414. - else
  9415. - xdir="$xdir/"
  9416. - fi
  9417. + execute)
  9418. + $ECHO \
  9419. +"Usage: $progname [OPTION]... --mode=execute COMMAND [ARGS]...
  9420. - if test "$pic_object" != none; then
  9421. - # Prepend the subdirectory the object is found in.
  9422. - pic_object="$xdir$pic_object"
  9423. +Automatically set library path, then run a program.
  9424. - if test "$prev" = dlfiles; then
  9425. - if test "$build_libtool_libs" = yes && test "$dlopen_support" = yes; then
  9426. - dlfiles="$dlfiles $pic_object"
  9427. - prev=
  9428. - continue
  9429. - else
  9430. - # If libtool objects are unsupported, then we need to preload.
  9431. - prev=dlprefiles
  9432. - fi
  9433. - fi
  9434. +This mode accepts the following additional options:
  9435. - # CHECK ME: I think I busted this. -Ossama
  9436. - if test "$prev" = dlprefiles; then
  9437. - # Preload the old-style object.
  9438. - dlprefiles="$dlprefiles $pic_object"
  9439. - prev=
  9440. - fi
  9441. + -dlopen FILE add the directory containing FILE to the library path
  9442. - # A PIC object.
  9443. - libobjs="$libobjs $pic_object"
  9444. - arg="$pic_object"
  9445. - fi
  9446. +This mode sets the library path environment variable according to \`-dlopen'
  9447. +flags.
  9448. - # Non-PIC object.
  9449. - if test "$non_pic_object" != none; then
  9450. - # Prepend the subdirectory the object is found in.
  9451. - non_pic_object="$xdir$non_pic_object"
  9452. +If any of the ARGS are libtool executable wrappers, then they are translated
  9453. +into their corresponding uninstalled binary, and any of their required library
  9454. +directories are added to the library path.
  9455. - # A standard non-PIC object
  9456. - non_pic_objects="$non_pic_objects $non_pic_object"
  9457. - if test -z "$pic_object" || test "$pic_object" = none ; then
  9458. - arg="$non_pic_object"
  9459. - fi
  9460. - else
  9461. - # If the PIC object exists, use it instead.
  9462. - # $xdir was prepended to $pic_object above.
  9463. - non_pic_object="$pic_object"
  9464. - non_pic_objects="$non_pic_objects $non_pic_object"
  9465. - fi
  9466. - else
  9467. - # Only an error if not doing a dry-run.
  9468. - if test -z "$run"; then
  9469. - $echo "$modename: \`$arg' is not a valid libtool object" 1>&2
  9470. - exit $EXIT_FAILURE
  9471. - else
  9472. - # Dry-run case.
  9473. +Then, COMMAND is executed, with ARGS as arguments."
  9474. + ;;
  9475. - # Extract subdirectory from the argument.
  9476. - xdir=`$echo "X$arg" | $Xsed -e 's%/[^/]*$%%'`
  9477. - if test "X$xdir" = "X$arg"; then
  9478. - xdir=
  9479. - else
  9480. - xdir="$xdir/"
  9481. - fi
  9482. + finish)
  9483. + $ECHO \
  9484. +"Usage: $progname [OPTION]... --mode=finish [LIBDIR]...
  9485. - pic_object=`$echo "X${xdir}${objdir}/${arg}" | $Xsed -e "$lo2o"`
  9486. - non_pic_object=`$echo "X${xdir}${arg}" | $Xsed -e "$lo2o"`
  9487. - libobjs="$libobjs $pic_object"
  9488. - non_pic_objects="$non_pic_objects $non_pic_object"
  9489. - fi
  9490. - fi
  9491. - done
  9492. - else
  9493. - $echo "$modename: link input file \`$save_arg' does not exist"
  9494. - exit $EXIT_FAILURE
  9495. - fi
  9496. - arg=$save_arg
  9497. - prev=
  9498. - continue
  9499. - ;;
  9500. - rpath | xrpath)
  9501. - # We need an absolute path.
  9502. - case $arg in
  9503. - [\\/]* | [A-Za-z]:[\\/]*) ;;
  9504. - *)
  9505. - $echo "$modename: only absolute run-paths are allowed" 1>&2
  9506. - exit $EXIT_FAILURE
  9507. - ;;
  9508. - esac
  9509. - if test "$prev" = rpath; then
  9510. - case "$rpath " in
  9511. - *" $arg "*) ;;
  9512. - *) rpath="$rpath $arg" ;;
  9513. - esac
  9514. - else
  9515. - case "$xrpath " in
  9516. - *" $arg "*) ;;
  9517. - *) xrpath="$xrpath $arg" ;;
  9518. - esac
  9519. - fi
  9520. - prev=
  9521. - continue
  9522. - ;;
  9523. - xcompiler)
  9524. - compiler_flags="$compiler_flags $qarg"
  9525. - prev=
  9526. - compile_command="$compile_command $qarg"
  9527. - finalize_command="$finalize_command $qarg"
  9528. - continue
  9529. - ;;
  9530. - xlinker)
  9531. - linker_flags="$linker_flags $qarg"
  9532. - compiler_flags="$compiler_flags $wl$qarg"
  9533. - prev=
  9534. - compile_command="$compile_command $wl$qarg"
  9535. - finalize_command="$finalize_command $wl$qarg"
  9536. - continue
  9537. - ;;
  9538. - xcclinker)
  9539. - linker_flags="$linker_flags $qarg"
  9540. - compiler_flags="$compiler_flags $qarg"
  9541. - prev=
  9542. - compile_command="$compile_command $qarg"
  9543. - finalize_command="$finalize_command $qarg"
  9544. - continue
  9545. - ;;
  9546. - shrext)
  9547. - shrext_cmds="$arg"
  9548. - prev=
  9549. - continue
  9550. - ;;
  9551. - darwin_framework|darwin_framework_skip)
  9552. - test "$prev" = "darwin_framework" && compiler_flags="$compiler_flags $arg"
  9553. - compile_command="$compile_command $arg"
  9554. - finalize_command="$finalize_command $arg"
  9555. - prev=
  9556. - continue
  9557. - ;;
  9558. - *)
  9559. - eval "$prev=\"\$arg\""
  9560. - prev=
  9561. - continue
  9562. - ;;
  9563. - esac
  9564. - fi # test -n "$prev"
  9565. +Complete the installation of libtool libraries.
  9566. - prevarg="$arg"
  9567. +Each LIBDIR is a directory that contains libtool libraries.
  9568. - case $arg in
  9569. - -all-static)
  9570. - if test -n "$link_static_flag"; then
  9571. - compile_command="$compile_command $link_static_flag"
  9572. - finalize_command="$finalize_command $link_static_flag"
  9573. - fi
  9574. - continue
  9575. - ;;
  9576. +The commands that this mode executes may require superuser privileges. Use
  9577. +the \`--dry-run' option if you just want to see what would be executed."
  9578. + ;;
  9579. - -allow-undefined)
  9580. - # FIXME: remove this flag sometime in the future.
  9581. - $echo "$modename: \`-allow-undefined' is deprecated because it is the default" 1>&2
  9582. - continue
  9583. - ;;
  9584. + install)
  9585. + $ECHO \
  9586. +"Usage: $progname [OPTION]... --mode=install INSTALL-COMMAND...
  9587. - -avoid-version)
  9588. - avoid_version=yes
  9589. - continue
  9590. - ;;
  9591. +Install executables or libraries.
  9592. - -dlopen)
  9593. - prev=dlfiles
  9594. - continue
  9595. - ;;
  9596. +INSTALL-COMMAND is the installation command. The first component should be
  9597. +either the \`install' or \`cp' program.
  9598. - -dlpreopen)
  9599. - prev=dlprefiles
  9600. - continue
  9601. - ;;
  9602. +The following components of INSTALL-COMMAND are treated specially:
  9603. - -export-dynamic)
  9604. - export_dynamic=yes
  9605. - continue
  9606. - ;;
  9607. + -inst-prefix PREFIX-DIR Use PREFIX-DIR as a staging area for installation
  9608. - -export-symbols | -export-symbols-regex)
  9609. - if test -n "$export_symbols" || test -n "$export_symbols_regex"; then
  9610. - $echo "$modename: more than one -exported-symbols argument is not allowed"
  9611. - exit $EXIT_FAILURE
  9612. - fi
  9613. - if test "X$arg" = "X-export-symbols"; then
  9614. - prev=expsyms
  9615. - else
  9616. - prev=expsyms_regex
  9617. - fi
  9618. - continue
  9619. - ;;
  9620. +The rest of the components are interpreted as arguments to that command (only
  9621. +BSD-compatible install options are recognized)."
  9622. + ;;
  9623. - -framework|-arch|-isysroot)
  9624. - case " $CC " in
  9625. - *" ${arg} ${1} "* | *" ${arg} ${1} "*)
  9626. - prev=darwin_framework_skip ;;
  9627. - *) compiler_flags="$compiler_flags $arg"
  9628. - prev=darwin_framework ;;
  9629. - esac
  9630. - compile_command="$compile_command $arg"
  9631. - finalize_command="$finalize_command $arg"
  9632. - continue
  9633. - ;;
  9634. + link)
  9635. + $ECHO \
  9636. +"Usage: $progname [OPTION]... --mode=link LINK-COMMAND...
  9637. - -inst-prefix-dir)
  9638. - prev=inst_prefix
  9639. - continue
  9640. - ;;
  9641. +Link object files or libraries together to form another library, or to
  9642. +create an executable program.
  9643. - # The native IRIX linker understands -LANG:*, -LIST:* and -LNO:*
  9644. - # so, if we see these flags be careful not to treat them like -L
  9645. - -L[A-Z][A-Z]*:*)
  9646. - case $with_gcc/$host in
  9647. - no/*-*-irix* | /*-*-irix*)
  9648. - compile_command="$compile_command $arg"
  9649. - finalize_command="$finalize_command $arg"
  9650. - ;;
  9651. - esac
  9652. - continue
  9653. - ;;
  9654. +LINK-COMMAND is a command using the C compiler that you would use to create
  9655. +a program from several object files.
  9656. - -L*)
  9657. - dir=`$echo "X$arg" | $Xsed -e 's/^-L//'`
  9658. - # We need an absolute path.
  9659. - case $dir in
  9660. - [\\/]* | [A-Za-z]:[\\/]*) ;;
  9661. - *)
  9662. - absdir=`cd "$dir" && pwd`
  9663. - if test -z "$absdir"; then
  9664. - $echo "$modename: cannot determine absolute directory name of \`$dir'" 1>&2
  9665. - absdir="$dir"
  9666. - notinst_path="$notinst_path $dir"
  9667. - fi
  9668. - dir="$absdir"
  9669. - ;;
  9670. - esac
  9671. - case "$deplibs " in
  9672. - *" -L$dir "*) ;;
  9673. - *)
  9674. - deplibs="$deplibs -L$dir"
  9675. - lib_search_path="$lib_search_path $dir"
  9676. - ;;
  9677. - esac
  9678. - case $host in
  9679. - *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2*)
  9680. - testbindir=`$echo "X$dir" | $Xsed -e 's*/lib$*/bin*'`
  9681. - case :$dllsearchpath: in
  9682. - *":$dir:"*) ;;
  9683. - *) dllsearchpath="$dllsearchpath:$dir";;
  9684. - esac
  9685. - case :$dllsearchpath: in
  9686. - *":$testbindir:"*) ;;
  9687. - *) dllsearchpath="$dllsearchpath:$testbindir";;
  9688. - esac
  9689. - ;;
  9690. - esac
  9691. - continue
  9692. - ;;
  9693. +The following components of LINK-COMMAND are treated specially:
  9694. - -l*)
  9695. - if test "X$arg" = "X-lc" || test "X$arg" = "X-lm"; then
  9696. - case $host in
  9697. - *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-beos*)
  9698. - # These systems don't actually have a C or math library (as such)
  9699. - continue
  9700. - ;;
  9701. - *-*-os2*)
  9702. - # These systems don't actually have a C library (as such)
  9703. - test "X$arg" = "X-lc" && continue
  9704. - ;;
  9705. - *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*)
  9706. - # Do not include libc due to us having libc/libc_r.
  9707. - test "X$arg" = "X-lc" && continue
  9708. - ;;
  9709. - *-*-rhapsody* | *-*-darwin1.[012])
  9710. - # Rhapsody C and math libraries are in the System framework
  9711. - deplibs="$deplibs -framework System"
  9712. - continue
  9713. - ;;
  9714. - *-*-sco3.2v5* | *-*-sco5v6*)
  9715. - # Causes problems with __ctype
  9716. - test "X$arg" = "X-lc" && continue
  9717. - ;;
  9718. - *-*-sysv4.2uw2* | *-*-sysv5* | *-*-unixware* | *-*-OpenUNIX*)
  9719. - # Compiler inserts libc in the correct place for threads to work
  9720. - test "X$arg" = "X-lc" && continue
  9721. - ;;
  9722. - esac
  9723. - elif test "X$arg" = "X-lc_r"; then
  9724. - case $host in
  9725. - *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*)
  9726. - # Do not include libc_r directly, use -pthread flag.
  9727. - continue
  9728. - ;;
  9729. - esac
  9730. - fi
  9731. - deplibs="$deplibs $arg"
  9732. - continue
  9733. - ;;
  9734. + -all-static do not do any dynamic linking at all
  9735. + -avoid-version do not add a version suffix if possible
  9736. + -dlopen FILE \`-dlpreopen' FILE if it cannot be dlopened at runtime
  9737. + -dlpreopen FILE link in FILE and add its symbols to lt_preloaded_symbols
  9738. + -export-dynamic allow symbols from OUTPUT-FILE to be resolved with dlsym(3)
  9739. + -export-symbols SYMFILE
  9740. + try to export only the symbols listed in SYMFILE
  9741. + -export-symbols-regex REGEX
  9742. + try to export only the symbols matching REGEX
  9743. + -LLIBDIR search LIBDIR for required installed libraries
  9744. + -lNAME OUTPUT-FILE requires the installed library libNAME
  9745. + -module build a library that can dlopened
  9746. + -no-fast-install disable the fast-install mode
  9747. + -no-install link a not-installable executable
  9748. + -no-undefined declare that a library does not refer to external symbols
  9749. + -o OUTPUT-FILE create OUTPUT-FILE from the specified objects
  9750. + -objectlist FILE Use a list of object files found in FILE to specify objects
  9751. + -precious-files-regex REGEX
  9752. + don't remove output files matching REGEX
  9753. + -release RELEASE specify package release information
  9754. + -rpath LIBDIR the created library will eventually be installed in LIBDIR
  9755. + -R[ ]LIBDIR add LIBDIR to the runtime path of programs and libraries
  9756. + -shared only do dynamic linking of libtool libraries
  9757. + -shrext SUFFIX override the standard shared library file extension
  9758. + -static do not do any dynamic linking of uninstalled libtool libraries
  9759. + -static-libtool-libs
  9760. + do not do any dynamic linking of libtool libraries
  9761. + -version-info CURRENT[:REVISION[:AGE]]
  9762. + specify library version info [each variable defaults to 0]
  9763. + -weak LIBNAME declare that the target provides the LIBNAME interface
  9764. - # Tru64 UNIX uses -model [arg] to determine the layout of C++
  9765. - # classes, name mangling, and exception handling.
  9766. - -model)
  9767. - compile_command="$compile_command $arg"
  9768. - compiler_flags="$compiler_flags $arg"
  9769. - finalize_command="$finalize_command $arg"
  9770. - prev=xcompiler
  9771. - continue
  9772. - ;;
  9773. +All other options (arguments beginning with \`-') are ignored.
  9774. - -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe)
  9775. - compiler_flags="$compiler_flags $arg"
  9776. - compile_command="$compile_command $arg"
  9777. - finalize_command="$finalize_command $arg"
  9778. - continue
  9779. - ;;
  9780. +Every other argument is treated as a filename. Files ending in \`.la' are
  9781. +treated as uninstalled libtool libraries, other files are standard or library
  9782. +object files.
  9783. - -module)
  9784. - module=yes
  9785. - continue
  9786. - ;;
  9787. +If the OUTPUT-FILE ends in \`.la', then a libtool library is created,
  9788. +only library objects (\`.lo' files) may be specified, and \`-rpath' is
  9789. +required, except when creating a convenience library.
  9790. - # -64, -mips[0-9] enable 64-bit mode on the SGI compiler
  9791. - # -r[0-9][0-9]* specifies the processor on the SGI compiler
  9792. - # -xarch=*, -xtarget=* enable 64-bit mode on the Sun compiler
  9793. - # +DA*, +DD* enable 64-bit mode on the HP compiler
  9794. - # -q* pass through compiler args for the IBM compiler
  9795. - # -m* pass through architecture-specific compiler args for GCC
  9796. - # -m*, -t[45]*, -txscale* pass through architecture-specific
  9797. - # compiler args for GCC
  9798. - # -pg pass through profiling flag for GCC
  9799. - # @file GCC response files
  9800. - -64|-mips[0-9]|-r[0-9][0-9]*|-xarch=*|-xtarget=*|+DA*|+DD*|-q*|-m*|-pg| \
  9801. - -t[45]*|-txscale*|@*)
  9802. +If OUTPUT-FILE ends in \`.a' or \`.lib', then a standard library is created
  9803. +using \`ar' and \`ranlib', or on Windows using \`lib'.
  9804. - # Unknown arguments in both finalize_command and compile_command need
  9805. - # to be aesthetically quoted because they are evaled later.
  9806. - arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`
  9807. - case $arg in
  9808. - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
  9809. - arg="\"$arg\""
  9810. - ;;
  9811. - esac
  9812. - compile_command="$compile_command $arg"
  9813. - finalize_command="$finalize_command $arg"
  9814. - compiler_flags="$compiler_flags $arg"
  9815. - continue
  9816. +If OUTPUT-FILE ends in \`.lo' or \`.${objext}', then a reloadable object file
  9817. +is created, otherwise an executable program is created."
  9818. ;;
  9819. - -shrext)
  9820. - prev=shrext
  9821. - continue
  9822. - ;;
  9823. + uninstall)
  9824. + $ECHO \
  9825. +"Usage: $progname [OPTION]... --mode=uninstall RM [RM-OPTION]... FILE...
  9826. - -no-fast-install)
  9827. - fast_install=no
  9828. - continue
  9829. - ;;
  9830. +Remove libraries from an installation directory.
  9831. - -no-install)
  9832. - case $host in
  9833. - *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2*)
  9834. - # The PATH hackery in wrapper scripts is required on Windows
  9835. - # in order for the loader to find any dlls it needs.
  9836. - $echo "$modename: warning: \`-no-install' is ignored for $host" 1>&2
  9837. - $echo "$modename: warning: assuming \`-no-fast-install' instead" 1>&2
  9838. - fast_install=no
  9839. - ;;
  9840. - *) no_install=yes ;;
  9841. - esac
  9842. - continue
  9843. - ;;
  9844. +RM is the name of the program to use to delete files associated with each FILE
  9845. +(typically \`/bin/rm'). RM-OPTIONS are options (such as \`-f') to be passed
  9846. +to RM.
  9847. - -no-undefined)
  9848. - allow_undefined=no
  9849. - continue
  9850. - ;;
  9851. +If FILE is a libtool library, all the files associated with it are deleted.
  9852. +Otherwise, only FILE itself is deleted using RM."
  9853. + ;;
  9854. - -objectlist)
  9855. - prev=objectlist
  9856. - continue
  9857. - ;;
  9858. + *)
  9859. + func_fatal_help "invalid operation mode \`$mode'"
  9860. + ;;
  9861. + esac
  9862. - -o) prev=output ;;
  9863. + $ECHO
  9864. + $ECHO "Try \`$progname --help' for more information about other modes."
  9865. - -precious-files-regex)
  9866. - prev=precious_regex
  9867. - continue
  9868. - ;;
  9869. + exit $?
  9870. +}
  9871. - -release)
  9872. - prev=release
  9873. - continue
  9874. - ;;
  9875. + # Now that we've collected a possible --mode arg, show help if necessary
  9876. + $opt_help && func_mode_help
  9877. - -rpath)
  9878. - prev=rpath
  9879. - continue
  9880. - ;;
  9881. - -R)
  9882. - prev=xrpath
  9883. - continue
  9884. - ;;
  9885. +# func_mode_execute arg...
  9886. +func_mode_execute ()
  9887. +{
  9888. + $opt_debug
  9889. + # The first argument is the command name.
  9890. + cmd="$nonopt"
  9891. + test -z "$cmd" && \
  9892. + func_fatal_help "you must specify a COMMAND"
  9893. - -R*)
  9894. - dir=`$echo "X$arg" | $Xsed -e 's/^-R//'`
  9895. - # We need an absolute path.
  9896. - case $dir in
  9897. - [\\/]* | [A-Za-z]:[\\/]*) ;;
  9898. - *)
  9899. - $echo "$modename: only absolute run-paths are allowed" 1>&2
  9900. - exit $EXIT_FAILURE
  9901. - ;;
  9902. - esac
  9903. - case "$xrpath " in
  9904. - *" $dir "*) ;;
  9905. - *) xrpath="$xrpath $dir" ;;
  9906. - esac
  9907. - continue
  9908. - ;;
  9909. -
  9910. - -static)
  9911. - # The effects of -static are defined in a previous loop.
  9912. - # We used to do the same as -all-static on platforms that
  9913. - # didn't have a PIC flag, but the assumption that the effects
  9914. - # would be equivalent was wrong. It would break on at least
  9915. - # Digital Unix and AIX.
  9916. - continue
  9917. - ;;
  9918. + # Handle -dlopen flags immediately.
  9919. + for file in $execute_dlfiles; do
  9920. + test -f "$file" \
  9921. + || func_fatal_help "\`$file' is not a file"
  9922. - -thread-safe)
  9923. - thread_safe=yes
  9924. - continue
  9925. - ;;
  9926. + dir=
  9927. + case $file in
  9928. + *.la)
  9929. + # Check to see that this really is a libtool archive.
  9930. + func_lalib_unsafe_p "$file" \
  9931. + || func_fatal_help "\`$lib' is not a valid libtool archive"
  9932. - -version-info)
  9933. - prev=vinfo
  9934. - continue
  9935. - ;;
  9936. - -version-number)
  9937. - prev=vinfo
  9938. - vinfo_number=yes
  9939. - continue
  9940. - ;;
  9941. + # Read the libtool library.
  9942. + dlname=
  9943. + library_names=
  9944. + func_source "$file"
  9945. - -Wc,*)
  9946. - args=`$echo "X$arg" | $Xsed -e "$sed_quote_subst" -e 's/^-Wc,//'`
  9947. - arg=
  9948. - save_ifs="$IFS"; IFS=','
  9949. - for flag in $args; do
  9950. - IFS="$save_ifs"
  9951. - case $flag in
  9952. - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
  9953. - flag="\"$flag\""
  9954. - ;;
  9955. - esac
  9956. - arg="$arg $wl$flag"
  9957. - compiler_flags="$compiler_flags $flag"
  9958. - done
  9959. - IFS="$save_ifs"
  9960. - arg=`$echo "X$arg" | $Xsed -e "s/^ //"`
  9961. - ;;
  9962. + # Skip this library if it cannot be dlopened.
  9963. + if test -z "$dlname"; then
  9964. + # Warn if it was a shared library.
  9965. + test -n "$library_names" && \
  9966. + func_warning "\`$file' was not linked with \`-export-dynamic'"
  9967. + continue
  9968. + fi
  9969. - -Wl,*)
  9970. - args=`$echo "X$arg" | $Xsed -e "$sed_quote_subst" -e 's/^-Wl,//'`
  9971. - arg=
  9972. - save_ifs="$IFS"; IFS=','
  9973. - for flag in $args; do
  9974. - IFS="$save_ifs"
  9975. - case $flag in
  9976. - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
  9977. - flag="\"$flag\""
  9978. - ;;
  9979. - esac
  9980. - arg="$arg $wl$flag"
  9981. - compiler_flags="$compiler_flags $wl$flag"
  9982. - linker_flags="$linker_flags $flag"
  9983. - done
  9984. - IFS="$save_ifs"
  9985. - arg=`$echo "X$arg" | $Xsed -e "s/^ //"`
  9986. - ;;
  9987. + func_dirname "$file" "" "."
  9988. + dir="$func_dirname_result"
  9989. - -Xcompiler)
  9990. - prev=xcompiler
  9991. - continue
  9992. + if test -f "$dir/$objdir/$dlname"; then
  9993. + dir="$dir/$objdir"
  9994. + else
  9995. + if test ! -f "$dir/$dlname"; then
  9996. + func_fatal_error "cannot find \`$dlname' in \`$dir' or \`$dir/$objdir'"
  9997. + fi
  9998. + fi
  9999. ;;
  10000. - -Xlinker)
  10001. - prev=xlinker
  10002. - continue
  10003. + *.lo)
  10004. + # Just add the directory containing the .lo file.
  10005. + func_dirname "$file" "" "."
  10006. + dir="$func_dirname_result"
  10007. ;;
  10008. - -XCClinker)
  10009. - prev=xcclinker
  10010. + *)
  10011. + func_warning "\`-dlopen' is ignored for non-libtool libraries and objects"
  10012. continue
  10013. ;;
  10014. + esac
  10015. - # Some other compiler flag.
  10016. - -* | +*)
  10017. - # Unknown arguments in both finalize_command and compile_command need
  10018. - # to be aesthetically quoted because they are evaled later.
  10019. - arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`
  10020. - case $arg in
  10021. - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
  10022. - arg="\"$arg\""
  10023. - ;;
  10024. - esac
  10025. - ;;
  10026. + # Get the absolute pathname.
  10027. + absdir=`cd "$dir" && pwd`
  10028. + test -n "$absdir" && dir="$absdir"
  10029. - *.$objext)
  10030. - # A standard object.
  10031. - objs="$objs $arg"
  10032. - ;;
  10033. + # Now add the directory to shlibpath_var.
  10034. + if eval "test -z \"\$$shlibpath_var\""; then
  10035. + eval "$shlibpath_var=\"\$dir\""
  10036. + else
  10037. + eval "$shlibpath_var=\"\$dir:\$$shlibpath_var\""
  10038. + fi
  10039. + done
  10040. - *.lo)
  10041. - # A libtool-controlled object.
  10042. + # This variable tells wrapper scripts just to set shlibpath_var
  10043. + # rather than running their programs.
  10044. + libtool_execute_magic="$magic"
  10045. - # Check to see that this really is a libtool object.
  10046. - if (${SED} -e '2q' $arg | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
  10047. - pic_object=
  10048. - non_pic_object=
  10049. + # Check if any of the arguments is a wrapper script.
  10050. + args=
  10051. + for file
  10052. + do
  10053. + case $file in
  10054. + -*) ;;
  10055. + *)
  10056. + # Do a test to see if this is really a libtool program.
  10057. + if func_ltwrapper_script_p "$file"; then
  10058. + func_source "$file"
  10059. + # Transform arg to wrapped name.
  10060. + file="$progdir/$program"
  10061. + elif func_ltwrapper_executable_p "$file"; then
  10062. + func_ltwrapper_scriptname "$file"
  10063. + func_source "$func_ltwrapper_scriptname_result"
  10064. + # Transform arg to wrapped name.
  10065. + file="$progdir/$program"
  10066. + fi
  10067. + ;;
  10068. + esac
  10069. + # Quote arguments (to preserve shell metacharacters).
  10070. + func_quote_for_eval "$file"
  10071. + args="$args $func_quote_for_eval_result"
  10072. + done
  10073. - # Read the .lo file
  10074. - # If there is no directory component, then add one.
  10075. - case $arg in
  10076. - */* | *\\*) . $arg ;;
  10077. - *) . ./$arg ;;
  10078. - esac
  10079. + if test "X$opt_dry_run" = Xfalse; then
  10080. + if test -n "$shlibpath_var"; then
  10081. + # Export the shlibpath_var.
  10082. + eval "export $shlibpath_var"
  10083. + fi
  10084. - if test -z "$pic_object" || \
  10085. - test -z "$non_pic_object" ||
  10086. - test "$pic_object" = none && \
  10087. - test "$non_pic_object" = none; then
  10088. - $echo "$modename: cannot find name of object for \`$arg'" 1>&2
  10089. - exit $EXIT_FAILURE
  10090. - fi
  10091. + # Restore saved environment variables
  10092. + for lt_var in LANG LANGUAGE LC_ALL LC_CTYPE LC_COLLATE LC_MESSAGES
  10093. + do
  10094. + eval "if test \"\${save_$lt_var+set}\" = set; then
  10095. + $lt_var=\$save_$lt_var; export $lt_var
  10096. + else
  10097. + $lt_unset $lt_var
  10098. + fi"
  10099. + done
  10100. - # Extract subdirectory from the argument.
  10101. - xdir=`$echo "X$arg" | $Xsed -e 's%/[^/]*$%%'`
  10102. - if test "X$xdir" = "X$arg"; then
  10103. - xdir=
  10104. - else
  10105. - xdir="$xdir/"
  10106. - fi
  10107. + # Now prepare to actually exec the command.
  10108. + exec_cmd="\$cmd$args"
  10109. + else
  10110. + # Display what would be done.
  10111. + if test -n "$shlibpath_var"; then
  10112. + eval "\$ECHO \"\$shlibpath_var=\$$shlibpath_var\""
  10113. + $ECHO "export $shlibpath_var"
  10114. + fi
  10115. + $ECHO "$cmd$args"
  10116. + exit $EXIT_SUCCESS
  10117. + fi
  10118. +}
  10119. - if test "$pic_object" != none; then
  10120. - # Prepend the subdirectory the object is found in.
  10121. - pic_object="$xdir$pic_object"
  10122. +test "$mode" = execute && func_mode_execute ${1+"$@"}
  10123. - if test "$prev" = dlfiles; then
  10124. - if test "$build_libtool_libs" = yes && test "$dlopen_support" = yes; then
  10125. - dlfiles="$dlfiles $pic_object"
  10126. - prev=
  10127. - continue
  10128. - else
  10129. - # If libtool objects are unsupported, then we need to preload.
  10130. - prev=dlprefiles
  10131. - fi
  10132. - fi
  10133. - # CHECK ME: I think I busted this. -Ossama
  10134. - if test "$prev" = dlprefiles; then
  10135. - # Preload the old-style object.
  10136. - dlprefiles="$dlprefiles $pic_object"
  10137. - prev=
  10138. - fi
  10139. +# func_mode_finish arg...
  10140. +func_mode_finish ()
  10141. +{
  10142. + $opt_debug
  10143. + libdirs="$nonopt"
  10144. + admincmds=
  10145. - # A PIC object.
  10146. - libobjs="$libobjs $pic_object"
  10147. - arg="$pic_object"
  10148. - fi
  10149. + if test -n "$finish_cmds$finish_eval" && test -n "$libdirs"; then
  10150. + for dir
  10151. + do
  10152. + libdirs="$libdirs $dir"
  10153. + done
  10154. - # Non-PIC object.
  10155. - if test "$non_pic_object" != none; then
  10156. - # Prepend the subdirectory the object is found in.
  10157. - non_pic_object="$xdir$non_pic_object"
  10158. + for libdir in $libdirs; do
  10159. + if test -n "$finish_cmds"; then
  10160. + # Do each command in the finish commands.
  10161. + func_execute_cmds "$finish_cmds" 'admincmds="$admincmds
  10162. +'"$cmd"'"'
  10163. + fi
  10164. + if test -n "$finish_eval"; then
  10165. + # Do the single finish_eval.
  10166. + eval cmds=\"$finish_eval\"
  10167. + $opt_dry_run || eval "$cmds" || admincmds="$admincmds
  10168. + $cmds"
  10169. + fi
  10170. + done
  10171. + fi
  10172. - # A standard non-PIC object
  10173. - non_pic_objects="$non_pic_objects $non_pic_object"
  10174. - if test -z "$pic_object" || test "$pic_object" = none ; then
  10175. - arg="$non_pic_object"
  10176. - fi
  10177. - else
  10178. - # If the PIC object exists, use it instead.
  10179. - # $xdir was prepended to $pic_object above.
  10180. - non_pic_object="$pic_object"
  10181. - non_pic_objects="$non_pic_objects $non_pic_object"
  10182. - fi
  10183. - else
  10184. - # Only an error if not doing a dry-run.
  10185. - if test -z "$run"; then
  10186. - $echo "$modename: \`$arg' is not a valid libtool object" 1>&2
  10187. - exit $EXIT_FAILURE
  10188. - else
  10189. - # Dry-run case.
  10190. + # Exit here if they wanted silent mode.
  10191. + $opt_silent && exit $EXIT_SUCCESS
  10192. - # Extract subdirectory from the argument.
  10193. - xdir=`$echo "X$arg" | $Xsed -e 's%/[^/]*$%%'`
  10194. - if test "X$xdir" = "X$arg"; then
  10195. - xdir=
  10196. - else
  10197. - xdir="$xdir/"
  10198. - fi
  10199. + $ECHO "X----------------------------------------------------------------------" | $Xsed
  10200. + $ECHO "Libraries have been installed in:"
  10201. + for libdir in $libdirs; do
  10202. + $ECHO " $libdir"
  10203. + done
  10204. + $ECHO
  10205. + $ECHO "If you ever happen to want to link against installed libraries"
  10206. + $ECHO "in a given directory, LIBDIR, you must either use libtool, and"
  10207. + $ECHO "specify the full pathname of the library, or use the \`-LLIBDIR'"
  10208. + $ECHO "flag during linking and do at least one of the following:"
  10209. + if test -n "$shlibpath_var"; then
  10210. + $ECHO " - add LIBDIR to the \`$shlibpath_var' environment variable"
  10211. + $ECHO " during execution"
  10212. + fi
  10213. + if test -n "$runpath_var"; then
  10214. + $ECHO " - add LIBDIR to the \`$runpath_var' environment variable"
  10215. + $ECHO " during linking"
  10216. + fi
  10217. + if test -n "$hardcode_libdir_flag_spec"; then
  10218. + libdir=LIBDIR
  10219. + eval flag=\"$hardcode_libdir_flag_spec\"
  10220. - pic_object=`$echo "X${xdir}${objdir}/${arg}" | $Xsed -e "$lo2o"`
  10221. - non_pic_object=`$echo "X${xdir}${arg}" | $Xsed -e "$lo2o"`
  10222. - libobjs="$libobjs $pic_object"
  10223. - non_pic_objects="$non_pic_objects $non_pic_object"
  10224. - fi
  10225. - fi
  10226. - ;;
  10227. + $ECHO " - use the \`$flag' linker flag"
  10228. + fi
  10229. + if test -n "$admincmds"; then
  10230. + $ECHO " - have your system administrator run these commands:$admincmds"
  10231. + fi
  10232. + if test -f /etc/ld.so.conf; then
  10233. + $ECHO " - have your system administrator add LIBDIR to \`/etc/ld.so.conf'"
  10234. + fi
  10235. + $ECHO
  10236. - *.$libext)
  10237. - # An archive.
  10238. - deplibs="$deplibs $arg"
  10239. - old_deplibs="$old_deplibs $arg"
  10240. - continue
  10241. + $ECHO "See any operating system documentation about shared libraries for"
  10242. + case $host in
  10243. + solaris2.[6789]|solaris2.1[0-9])
  10244. + $ECHO "more information, such as the ld(1), crle(1) and ld.so(8) manual"
  10245. + $ECHO "pages."
  10246. ;;
  10247. + *)
  10248. + $ECHO "more information, such as the ld(1) and ld.so(8) manual pages."
  10249. + ;;
  10250. + esac
  10251. + $ECHO "X----------------------------------------------------------------------" | $Xsed
  10252. + exit $EXIT_SUCCESS
  10253. +}
  10254. - *.la)
  10255. - # A libtool-controlled library.
  10256. +test "$mode" = finish && func_mode_finish ${1+"$@"}
  10257. - if test "$prev" = dlfiles; then
  10258. - # This library was specified with -dlopen.
  10259. - dlfiles="$dlfiles $arg"
  10260. - prev=
  10261. - elif test "$prev" = dlprefiles; then
  10262. - # The library was specified with -dlpreopen.
  10263. - dlprefiles="$dlprefiles $arg"
  10264. - prev=
  10265. - else
  10266. - deplibs="$deplibs $arg"
  10267. - fi
  10268. - continue
  10269. - ;;
  10270. - # Some other compiler argument.
  10271. - *)
  10272. - # Unknown arguments in both finalize_command and compile_command need
  10273. - # to be aesthetically quoted because they are evaled later.
  10274. - arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`
  10275. - case $arg in
  10276. - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
  10277. - arg="\"$arg\""
  10278. - ;;
  10279. - esac
  10280. - ;;
  10281. - esac # arg
  10282. +# func_mode_install arg...
  10283. +func_mode_install ()
  10284. +{
  10285. + $opt_debug
  10286. + # There may be an optional sh(1) argument at the beginning of
  10287. + # install_prog (especially on Windows NT).
  10288. + if test "$nonopt" = "$SHELL" || test "$nonopt" = /bin/sh ||
  10289. + # Allow the use of GNU shtool's install command.
  10290. + $ECHO "X$nonopt" | $GREP shtool >/dev/null; then
  10291. + # Aesthetically quote it.
  10292. + func_quote_for_eval "$nonopt"
  10293. + install_prog="$func_quote_for_eval_result "
  10294. + arg=$1
  10295. + shift
  10296. + else
  10297. + install_prog=
  10298. + arg=$nonopt
  10299. + fi
  10300. - # Now actually substitute the argument into the commands.
  10301. - if test -n "$arg"; then
  10302. - compile_command="$compile_command $arg"
  10303. - finalize_command="$finalize_command $arg"
  10304. + # The real first argument should be the name of the installation program.
  10305. + # Aesthetically quote it.
  10306. + func_quote_for_eval "$arg"
  10307. + install_prog="$install_prog$func_quote_for_eval_result"
  10308. +
  10309. + # We need to accept at least all the BSD install flags.
  10310. + dest=
  10311. + files=
  10312. + opts=
  10313. + prev=
  10314. + install_type=
  10315. + isdir=no
  10316. + stripme=
  10317. + for arg
  10318. + do
  10319. + if test -n "$dest"; then
  10320. + files="$files $dest"
  10321. + dest=$arg
  10322. + continue
  10323. fi
  10324. - done # argument parsing loop
  10325. - if test -n "$prev"; then
  10326. - $echo "$modename: the \`$prevarg' option requires an argument" 1>&2
  10327. - $echo "$help" 1>&2
  10328. - exit $EXIT_FAILURE
  10329. - fi
  10330. + case $arg in
  10331. + -d) isdir=yes ;;
  10332. + -f)
  10333. + case " $install_prog " in
  10334. + *[\\\ /]cp\ *) ;;
  10335. + *) prev=$arg ;;
  10336. + esac
  10337. + ;;
  10338. + -g | -m | -o)
  10339. + prev=$arg
  10340. + ;;
  10341. + -s)
  10342. + stripme=" -s"
  10343. + continue
  10344. + ;;
  10345. + -*)
  10346. + ;;
  10347. + *)
  10348. + # If the previous option needed an argument, then skip it.
  10349. + if test -n "$prev"; then
  10350. + prev=
  10351. + else
  10352. + dest=$arg
  10353. + continue
  10354. + fi
  10355. + ;;
  10356. + esac
  10357. - if test "$export_dynamic" = yes && test -n "$export_dynamic_flag_spec"; then
  10358. - eval arg=\"$export_dynamic_flag_spec\"
  10359. - compile_command="$compile_command $arg"
  10360. - finalize_command="$finalize_command $arg"
  10361. - fi
  10362. + # Aesthetically quote the argument.
  10363. + func_quote_for_eval "$arg"
  10364. + install_prog="$install_prog $func_quote_for_eval_result"
  10365. + done
  10366. - oldlibs=
  10367. - # calculate the name of the file, without its directory
  10368. - outputname=`$echo "X$output" | $Xsed -e 's%^.*/%%'`
  10369. - libobjs_save="$libobjs"
  10370. + test -z "$install_prog" && \
  10371. + func_fatal_help "you must specify an install program"
  10372. - if test -n "$shlibpath_var"; then
  10373. - # get the directories listed in $shlibpath_var
  10374. - eval shlib_search_path=\`\$echo \"X\${$shlibpath_var}\" \| \$Xsed -e \'s/:/ /g\'\`
  10375. - else
  10376. - shlib_search_path=
  10377. - fi
  10378. - eval sys_lib_search_path=\"$sys_lib_search_path_spec\"
  10379. - eval sys_lib_dlsearch_path=\"$sys_lib_dlsearch_path_spec\"
  10380. + test -n "$prev" && \
  10381. + func_fatal_help "the \`$prev' option requires an argument"
  10382. - output_objdir=`$echo "X$output" | $Xsed -e 's%/[^/]*$%%'`
  10383. - if test "X$output_objdir" = "X$output"; then
  10384. - output_objdir="$objdir"
  10385. - else
  10386. - output_objdir="$output_objdir/$objdir"
  10387. - fi
  10388. - # Create the object directory.
  10389. - if test ! -d "$output_objdir"; then
  10390. - $show "$mkdir $output_objdir"
  10391. - $run $mkdir $output_objdir
  10392. - exit_status=$?
  10393. - if test "$exit_status" -ne 0 && test ! -d "$output_objdir"; then
  10394. - exit $exit_status
  10395. + if test -z "$files"; then
  10396. + if test -z "$dest"; then
  10397. + func_fatal_help "no file or destination specified"
  10398. + else
  10399. + func_fatal_help "you must specify a destination"
  10400. fi
  10401. fi
  10402. - # Determine the type of output
  10403. - case $output in
  10404. - "")
  10405. - $echo "$modename: you must specify an output file" 1>&2
  10406. - $echo "$help" 1>&2
  10407. - exit $EXIT_FAILURE
  10408. - ;;
  10409. - *.$libext) linkmode=oldlib ;;
  10410. - *.lo | *.$objext) linkmode=obj ;;
  10411. - *.la) linkmode=lib ;;
  10412. - *) linkmode=prog ;; # Anything else should be a program.
  10413. - esac
  10414. + # Strip any trailing slash from the destination.
  10415. + func_stripname '' '/' "$dest"
  10416. + dest=$func_stripname_result
  10417. - case $host in
  10418. - *cygwin* | *mingw* | *pw32*)
  10419. - # don't eliminate duplications in $postdeps and $predeps
  10420. - duplicate_compiler_generated_deps=yes
  10421. - ;;
  10422. + # Check to see that the destination is a directory.
  10423. + test -d "$dest" && isdir=yes
  10424. + if test "$isdir" = yes; then
  10425. + destdir="$dest"
  10426. + destname=
  10427. + else
  10428. + func_dirname_and_basename "$dest" "" "."
  10429. + destdir="$func_dirname_result"
  10430. + destname="$func_basename_result"
  10431. +
  10432. + # Not a directory, so check to see that there is only one file specified.
  10433. + set dummy $files; shift
  10434. + test "$#" -gt 1 && \
  10435. + func_fatal_help "\`$dest' is not a directory"
  10436. + fi
  10437. + case $destdir in
  10438. + [\\/]* | [A-Za-z]:[\\/]*) ;;
  10439. *)
  10440. - duplicate_compiler_generated_deps=$duplicate_deps
  10441. + for file in $files; do
  10442. + case $file in
  10443. + *.lo) ;;
  10444. + *)
  10445. + func_fatal_help "\`$destdir' must be an absolute directory name"
  10446. + ;;
  10447. + esac
  10448. + done
  10449. ;;
  10450. esac
  10451. - specialdeplibs=
  10452. - libs=
  10453. - # Find all interdependent deplibs by searching for libraries
  10454. - # that are linked more than once (e.g. -la -lb -la)
  10455. - for deplib in $deplibs; do
  10456. - if test "X$duplicate_deps" = "Xyes" ; then
  10457. - case "$libs " in
  10458. - *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
  10459. - esac
  10460. - fi
  10461. - libs="$libs $deplib"
  10462. - done
  10463. + # This variable tells wrapper scripts just to set variables rather
  10464. + # than running their programs.
  10465. + libtool_install_magic="$magic"
  10466. - if test "$linkmode" = lib; then
  10467. - libs="$predeps $libs $compiler_lib_search_path $postdeps"
  10468. + staticlibs=
  10469. + future_libdirs=
  10470. + current_libdirs=
  10471. + for file in $files; do
  10472. - # Compute libraries that are listed more than once in $predeps
  10473. - # $postdeps and mark them as special (i.e., whose duplicates are
  10474. - # not to be eliminated).
  10475. - pre_post_deps=
  10476. - if test "X$duplicate_compiler_generated_deps" = "Xyes" ; then
  10477. - for pre_post_dep in $predeps $postdeps; do
  10478. - case "$pre_post_deps " in
  10479. - *" $pre_post_dep "*) specialdeplibs="$specialdeplibs $pre_post_deps" ;;
  10480. + # Do each installation.
  10481. + case $file in
  10482. + *.$libext)
  10483. + # Do the static libraries later.
  10484. + staticlibs="$staticlibs $file"
  10485. + ;;
  10486. +
  10487. + *.la)
  10488. + # Check to see that this really is a libtool archive.
  10489. + func_lalib_unsafe_p "$file" \
  10490. + || func_fatal_help "\`$file' is not a valid libtool archive"
  10491. +
  10492. + library_names=
  10493. + old_library=
  10494. + relink_command=
  10495. + func_source "$file"
  10496. +
  10497. + # Add the libdir to current_libdirs if it is the destination.
  10498. + if test "X$destdir" = "X$libdir"; then
  10499. + case "$current_libdirs " in
  10500. + *" $libdir "*) ;;
  10501. + *) current_libdirs="$current_libdirs $libdir" ;;
  10502. esac
  10503. - pre_post_deps="$pre_post_deps $pre_post_dep"
  10504. - done
  10505. - fi
  10506. - pre_post_deps=
  10507. - fi
  10508. + else
  10509. + # Note the libdir as a future libdir.
  10510. + case "$future_libdirs " in
  10511. + *" $libdir "*) ;;
  10512. + *) future_libdirs="$future_libdirs $libdir" ;;
  10513. + esac
  10514. + fi
  10515. - deplibs=
  10516. - newdependency_libs=
  10517. - newlib_search_path=
  10518. - need_relink=no # whether we're linking any uninstalled libtool libraries
  10519. - notinst_deplibs= # not-installed libtool libraries
  10520. - case $linkmode in
  10521. - lib)
  10522. - passes="conv link"
  10523. - for file in $dlfiles $dlprefiles; do
  10524. - case $file in
  10525. - *.la) ;;
  10526. - *)
  10527. - $echo "$modename: libraries can \`-dlopen' only libtool libraries: $file" 1>&2
  10528. - exit $EXIT_FAILURE
  10529. + func_dirname "$file" "/" ""
  10530. + dir="$func_dirname_result"
  10531. + dir="$dir$objdir"
  10532. +
  10533. + if test -n "$relink_command"; then
  10534. + # Determine the prefix the user has applied to our future dir.
  10535. + inst_prefix_dir=`$ECHO "X$destdir" | $Xsed -e "s%$libdir\$%%"`
  10536. +
  10537. + # Don't allow the user to place us outside of our expected
  10538. + # location b/c this prevents finding dependent libraries that
  10539. + # are installed to the same prefix.
  10540. + # At present, this check doesn't affect windows .dll's that
  10541. + # are installed into $libdir/../bin (currently, that works fine)
  10542. + # but it's something to keep an eye on.
  10543. + test "$inst_prefix_dir" = "$destdir" && \
  10544. + func_fatal_error "error: cannot install \`$file' to a directory not ending in $libdir"
  10545. +
  10546. + if test -n "$inst_prefix_dir"; then
  10547. + # Stick the inst_prefix_dir data into the link command.
  10548. + relink_command=`$ECHO "X$relink_command" | $Xsed -e "s%@inst_prefix_dir@%-inst-prefix-dir $inst_prefix_dir%"`
  10549. + else
  10550. + relink_command=`$ECHO "X$relink_command" | $Xsed -e "s%@inst_prefix_dir@%%"`
  10551. + fi
  10552. +
  10553. + func_warning "relinking \`$file'"
  10554. + func_show_eval "$relink_command" \
  10555. + 'func_fatal_error "error: relink \`$file'\'' with the above command before installing it"'
  10556. + fi
  10557. +
  10558. + # See the names of the shared library.
  10559. + set dummy $library_names; shift
  10560. + if test -n "$1"; then
  10561. + realname="$1"
  10562. + shift
  10563. +
  10564. + srcname="$realname"
  10565. + test -n "$relink_command" && srcname="$realname"T
  10566. +
  10567. + # Install the shared library and build the symlinks.
  10568. + func_show_eval "$install_prog $dir/$srcname $destdir/$realname" \
  10569. + 'exit $?'
  10570. + tstripme="$stripme"
  10571. + case $host_os in
  10572. + cygwin* | mingw* | pw32* | cegcc*)
  10573. + case $realname in
  10574. + *.dll.a)
  10575. + tstripme=""
  10576. + ;;
  10577. + esac
  10578. ;;
  10579. esac
  10580. - done
  10581. - ;;
  10582. - prog)
  10583. - compile_deplibs=
  10584. - finalize_deplibs=
  10585. - alldeplibs=no
  10586. - newdlfiles=
  10587. - newdlprefiles=
  10588. - passes="conv scan dlopen dlpreopen link"
  10589. - ;;
  10590. - *) passes="conv"
  10591. - ;;
  10592. - esac
  10593. - for pass in $passes; do
  10594. - if test "$linkmode,$pass" = "lib,link" ||
  10595. - test "$linkmode,$pass" = "prog,scan"; then
  10596. - libs="$deplibs"
  10597. - deplibs=
  10598. - fi
  10599. - if test "$linkmode" = prog; then
  10600. - case $pass in
  10601. - dlopen) libs="$dlfiles" ;;
  10602. - dlpreopen) libs="$dlprefiles" ;;
  10603. - link) libs="$deplibs %DEPLIBS% $dependency_libs" ;;
  10604. - esac
  10605. - fi
  10606. - if test "$pass" = dlopen; then
  10607. - # Collect dlpreopened libraries
  10608. - save_deplibs="$deplibs"
  10609. - deplibs=
  10610. - fi
  10611. - for deplib in $libs; do
  10612. - lib=
  10613. - found=no
  10614. - case $deplib in
  10615. - -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe)
  10616. - if test "$linkmode,$pass" = "prog,link"; then
  10617. - compile_deplibs="$deplib $compile_deplibs"
  10618. - finalize_deplibs="$deplib $finalize_deplibs"
  10619. - else
  10620. - compiler_flags="$compiler_flags $deplib"
  10621. + if test -n "$tstripme" && test -n "$striplib"; then
  10622. + func_show_eval "$striplib $destdir/$realname" 'exit $?'
  10623. fi
  10624. - continue
  10625. - ;;
  10626. - -l*)
  10627. - if test "$linkmode" != lib && test "$linkmode" != prog; then
  10628. - $echo "$modename: warning: \`-l' is ignored for archives/objects" 1>&2
  10629. - continue
  10630. - fi
  10631. - name=`$echo "X$deplib" | $Xsed -e 's/^-l//'`
  10632. - for searchdir in $newlib_search_path $lib_search_path $sys_lib_search_path $shlib_search_path; do
  10633. - for search_ext in .la $std_shrext .so .a; do
  10634. - # Search the libtool library
  10635. - lib="$searchdir/lib${name}${search_ext}"
  10636. - if test -f "$lib"; then
  10637. - if test "$search_ext" = ".la"; then
  10638. - found=yes
  10639. - else
  10640. - found=no
  10641. - fi
  10642. - break 2
  10643. - fi
  10644. +
  10645. + if test "$#" -gt 0; then
  10646. + # Delete the old symlinks, and create new ones.
  10647. + # Try `ln -sf' first, because the `ln' binary might depend on
  10648. + # the symlink we replace! Solaris /bin/ln does not understand -f,
  10649. + # so we also need to try rm && ln -s.
  10650. + for linkname
  10651. + do
  10652. + test "$linkname" != "$realname" \
  10653. + && func_show_eval "(cd $destdir && { $LN_S -f $realname $linkname || { $RM $linkname && $LN_S $realname $linkname; }; })"
  10654. done
  10655. - done
  10656. - if test "$found" != yes; then
  10657. - # deplib doesn't seem to be a libtool library
  10658. - if test "$linkmode,$pass" = "prog,link"; then
  10659. - compile_deplibs="$deplib $compile_deplibs"
  10660. - finalize_deplibs="$deplib $finalize_deplibs"
  10661. - else
  10662. - deplibs="$deplib $deplibs"
  10663. - test "$linkmode" = lib && newdependency_libs="$deplib $newdependency_libs"
  10664. - fi
  10665. - continue
  10666. - else # deplib is a libtool library
  10667. - # If $allow_libtool_libs_with_static_runtimes && $deplib is a stdlib,
  10668. - # We need to do some special things here, and not later.
  10669. - if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
  10670. - case " $predeps $postdeps " in
  10671. - *" $deplib "*)
  10672. - if (${SED} -e '2q' $lib |
  10673. - grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
  10674. - library_names=
  10675. - old_library=
  10676. - case $lib in
  10677. - */* | *\\*) . $lib ;;
  10678. - *) . ./$lib ;;
  10679. - esac
  10680. - for l in $old_library $library_names; do
  10681. - ll="$l"
  10682. - done
  10683. - if test "X$ll" = "X$old_library" ; then # only static version available
  10684. - found=no
  10685. - ladir=`$echo "X$lib" | $Xsed -e 's%/[^/]*$%%'`
  10686. - test "X$ladir" = "X$lib" && ladir="."
  10687. - lib=$ladir/$old_library
  10688. - if test "$linkmode,$pass" = "prog,link"; then
  10689. - compile_deplibs="$deplib $compile_deplibs"
  10690. - finalize_deplibs="$deplib $finalize_deplibs"
  10691. - else
  10692. - deplibs="$deplib $deplibs"
  10693. - test "$linkmode" = lib && newdependency_libs="$deplib $newdependency_libs"
  10694. - fi
  10695. - continue
  10696. - fi
  10697. - fi
  10698. - ;;
  10699. - *) ;;
  10700. - esac
  10701. - fi
  10702. - fi
  10703. - ;; # -l
  10704. - -L*)
  10705. - case $linkmode in
  10706. - lib)
  10707. - deplibs="$deplib $deplibs"
  10708. - test "$pass" = conv && continue
  10709. - newdependency_libs="$deplib $newdependency_libs"
  10710. - newlib_search_path="$newlib_search_path "`$echo "X$deplib" | $Xsed -e 's/^-L//'`
  10711. - ;;
  10712. - prog)
  10713. - if test "$pass" = conv; then
  10714. - deplibs="$deplib $deplibs"
  10715. - continue
  10716. - fi
  10717. - if test "$pass" = scan; then
  10718. - deplibs="$deplib $deplibs"
  10719. - else
  10720. - compile_deplibs="$deplib $compile_deplibs"
  10721. - finalize_deplibs="$deplib $finalize_deplibs"
  10722. - fi
  10723. - newlib_search_path="$newlib_search_path "`$echo "X$deplib" | $Xsed -e 's/^-L//'`
  10724. - ;;
  10725. - *)
  10726. - $echo "$modename: warning: \`-L' is ignored for archives/objects" 1>&2
  10727. - ;;
  10728. - esac # linkmode
  10729. - continue
  10730. - ;; # -L
  10731. - -R*)
  10732. - if test "$pass" = link; then
  10733. - dir=`$echo "X$deplib" | $Xsed -e 's/^-R//'`
  10734. - # Make sure the xrpath contains only unique directories.
  10735. - case "$xrpath " in
  10736. - *" $dir "*) ;;
  10737. - *) xrpath="$xrpath $dir" ;;
  10738. - esac
  10739. fi
  10740. - deplibs="$deplib $deplibs"
  10741. - continue
  10742. +
  10743. + # Do each command in the postinstall commands.
  10744. + lib="$destdir/$realname"
  10745. + func_execute_cmds "$postinstall_cmds" 'exit $?'
  10746. + fi
  10747. +
  10748. + # Install the pseudo-library for information purposes.
  10749. + func_basename "$file"
  10750. + name="$func_basename_result"
  10751. + instname="$dir/$name"i
  10752. + func_show_eval "$install_prog $instname $destdir/$name" 'exit $?'
  10753. +
  10754. + # Maybe install the static library, too.
  10755. + test -n "$old_library" && staticlibs="$staticlibs $dir/$old_library"
  10756. + ;;
  10757. +
  10758. + *.lo)
  10759. + # Install (i.e. copy) a libtool object.
  10760. +
  10761. + # Figure out destination file name, if it wasn't already specified.
  10762. + if test -n "$destname"; then
  10763. + destfile="$destdir/$destname"
  10764. + else
  10765. + func_basename "$file"
  10766. + destfile="$func_basename_result"
  10767. + destfile="$destdir/$destfile"
  10768. + fi
  10769. +
  10770. + # Deduce the name of the destination old-style object file.
  10771. + case $destfile in
  10772. + *.lo)
  10773. + func_lo2o "$destfile"
  10774. + staticdest=$func_lo2o_result
  10775. ;;
  10776. - *.la) lib="$deplib" ;;
  10777. - *.$libext)
  10778. - if test "$pass" = conv; then
  10779. - deplibs="$deplib $deplibs"
  10780. - continue
  10781. - fi
  10782. - case $linkmode in
  10783. - lib)
  10784. - valid_a_lib=no
  10785. - case $deplibs_check_method in
  10786. - match_pattern*)
  10787. - set dummy $deplibs_check_method
  10788. - match_pattern_regex=`expr "$deplibs_check_method" : "$2 \(.*\)"`
  10789. - if eval $echo \"$deplib\" 2>/dev/null \
  10790. - | $SED 10q \
  10791. - | $EGREP "$match_pattern_regex" > /dev/null; then
  10792. - valid_a_lib=yes
  10793. - fi
  10794. - ;;
  10795. - pass_all)
  10796. - valid_a_lib=yes
  10797. - ;;
  10798. - esac
  10799. - if test "$valid_a_lib" != yes; then
  10800. - $echo
  10801. - $echo "*** Warning: Trying to link with static lib archive $deplib."
  10802. - $echo "*** I have the capability to make that library automatically link in when"
  10803. - $echo "*** you link to this library. But I can only do this if you have a"
  10804. - $echo "*** shared version of the library, which you do not appear to have"
  10805. - $echo "*** because the file extensions .$libext of this argument makes me believe"
  10806. - $echo "*** that it is just a static archive that I should not used here."
  10807. - else
  10808. - $echo
  10809. - $echo "*** Warning: Linking the shared library $output against the"
  10810. - $echo "*** static library $deplib is not portable!"
  10811. - deplibs="$deplib $deplibs"
  10812. - fi
  10813. - continue
  10814. - ;;
  10815. - prog)
  10816. - if test "$pass" != link; then
  10817. - deplibs="$deplib $deplibs"
  10818. - else
  10819. - compile_deplibs="$deplib $compile_deplibs"
  10820. - finalize_deplibs="$deplib $finalize_deplibs"
  10821. - fi
  10822. - continue
  10823. - ;;
  10824. - esac # linkmode
  10825. - ;; # *.$libext
  10826. - *.lo | *.$objext)
  10827. - if test "$pass" = conv; then
  10828. - deplibs="$deplib $deplibs"
  10829. - elif test "$linkmode" = prog; then
  10830. - if test "$pass" = dlpreopen || test "$dlopen_support" != yes || test "$build_libtool_libs" = no; then
  10831. - # If there is no dlopen support or we're linking statically,
  10832. - # we need to preload.
  10833. - newdlprefiles="$newdlprefiles $deplib"
  10834. - compile_deplibs="$deplib $compile_deplibs"
  10835. - finalize_deplibs="$deplib $finalize_deplibs"
  10836. - else
  10837. - newdlfiles="$newdlfiles $deplib"
  10838. - fi
  10839. - fi
  10840. - continue
  10841. + *.$objext)
  10842. + staticdest="$destfile"
  10843. + destfile=
  10844. ;;
  10845. - %DEPLIBS%)
  10846. - alldeplibs=yes
  10847. - continue
  10848. + *)
  10849. + func_fatal_help "cannot copy a libtool object to \`$destfile'"
  10850. ;;
  10851. - esac # case $deplib
  10852. - if test "$found" = yes || test -f "$lib"; then :
  10853. - else
  10854. - $echo "$modename: cannot find the library \`$lib' or unhandled argument \`$deplib'" 1>&2
  10855. - exit $EXIT_FAILURE
  10856. + esac
  10857. +
  10858. + # Install the libtool object if requested.
  10859. + test -n "$destfile" && \
  10860. + func_show_eval "$install_prog $file $destfile" 'exit $?'
  10861. +
  10862. + # Install the old object if enabled.
  10863. + if test "$build_old_libs" = yes; then
  10864. + # Deduce the name of the old-style object file.
  10865. + func_lo2o "$file"
  10866. + staticobj=$func_lo2o_result
  10867. + func_show_eval "$install_prog \$staticobj \$staticdest" 'exit $?'
  10868. fi
  10869. + exit $EXIT_SUCCESS
  10870. + ;;
  10871. - # Check to see that this really is a libtool archive.
  10872. - if (${SED} -e '2q' $lib | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then :
  10873. + *)
  10874. + # Figure out destination file name, if it wasn't already specified.
  10875. + if test -n "$destname"; then
  10876. + destfile="$destdir/$destname"
  10877. else
  10878. - $echo "$modename: \`$lib' is not a valid libtool archive" 1>&2
  10879. - exit $EXIT_FAILURE
  10880. + func_basename "$file"
  10881. + destfile="$func_basename_result"
  10882. + destfile="$destdir/$destfile"
  10883. fi
  10884. - ladir=`$echo "X$lib" | $Xsed -e 's%/[^/]*$%%'`
  10885. - test "X$ladir" = "X$lib" && ladir="."
  10886. + # If the file is missing, and there is a .exe on the end, strip it
  10887. + # because it is most likely a libtool script we actually want to
  10888. + # install
  10889. + stripped_ext=""
  10890. + case $file in
  10891. + *.exe)
  10892. + if test ! -f "$file"; then
  10893. + func_stripname '' '.exe' "$file"
  10894. + file=$func_stripname_result
  10895. + stripped_ext=".exe"
  10896. + fi
  10897. + ;;
  10898. + esac
  10899. +
  10900. + # Do a test to see if this is really a libtool program.
  10901. + case $host in
  10902. + *cygwin* | *mingw*)
  10903. + if func_ltwrapper_executable_p "$file"; then
  10904. + func_ltwrapper_scriptname "$file"
  10905. + wrapper=$func_ltwrapper_scriptname_result
  10906. + else
  10907. + func_stripname '' '.exe' "$file"
  10908. + wrapper=$func_stripname_result
  10909. + fi
  10910. + ;;
  10911. + *)
  10912. + wrapper=$file
  10913. + ;;
  10914. + esac
  10915. + if func_ltwrapper_script_p "$wrapper"; then
  10916. + notinst_deplibs=
  10917. + relink_command=
  10918. - dlname=
  10919. - dlopen=
  10920. - dlpreopen=
  10921. - libdir=
  10922. - library_names=
  10923. - old_library=
  10924. - # If the library was installed with an old release of libtool,
  10925. - # it will not redefine variables installed, or shouldnotlink
  10926. - installed=yes
  10927. - shouldnotlink=no
  10928. - avoidtemprpath=
  10929. + func_source "$wrapper"
  10930. + # Check the variables that should have been set.
  10931. + test -z "$generated_by_libtool_version" && \
  10932. + func_fatal_error "invalid libtool wrapper script \`$wrapper'"
  10933. - # Read the .la file
  10934. - case $lib in
  10935. - */* | *\\*) . $lib ;;
  10936. - *) . ./$lib ;;
  10937. - esac
  10938. + finalize=yes
  10939. + for lib in $notinst_deplibs; do
  10940. + # Check to see that each library is installed.
  10941. + libdir=
  10942. + if test -f "$lib"; then
  10943. + func_source "$lib"
  10944. + fi
  10945. + libfile="$libdir/"`$ECHO "X$lib" | $Xsed -e 's%^.*/%%g'` ### testsuite: skip nested quoting test
  10946. + if test -n "$libdir" && test ! -f "$libfile"; then
  10947. + func_warning "\`$lib' has not been installed in \`$libdir'"
  10948. + finalize=no
  10949. + fi
  10950. + done
  10951. - if test "$linkmode,$pass" = "lib,link" ||
  10952. - test "$linkmode,$pass" = "prog,scan" ||
  10953. - { test "$linkmode" != prog && test "$linkmode" != lib; }; then
  10954. - test -n "$dlopen" && dlfiles="$dlfiles $dlopen"
  10955. - test -n "$dlpreopen" && dlprefiles="$dlprefiles $dlpreopen"
  10956. + relink_command=
  10957. + func_source "$wrapper"
  10958. +
  10959. + outputname=
  10960. + if test "$fast_install" = no && test -n "$relink_command"; then
  10961. + $opt_dry_run || {
  10962. + if test "$finalize" = yes; then
  10963. + tmpdir=`func_mktempdir`
  10964. + func_basename "$file$stripped_ext"
  10965. + file="$func_basename_result"
  10966. + outputname="$tmpdir/$file"
  10967. + # Replace the output file specification.
  10968. + relink_command=`$ECHO "X$relink_command" | $Xsed -e 's%@OUTPUT@%'"$outputname"'%g'`
  10969. +
  10970. + $opt_silent || {
  10971. + func_quote_for_expand "$relink_command"
  10972. + eval "func_echo $func_quote_for_expand_result"
  10973. + }
  10974. + if eval "$relink_command"; then :
  10975. + else
  10976. + func_error "error: relink \`$file' with the above command before installing it"
  10977. + $opt_dry_run || ${RM}r "$tmpdir"
  10978. + continue
  10979. + fi
  10980. + file="$outputname"
  10981. + else
  10982. + func_warning "cannot relink \`$file'"
  10983. + fi
  10984. + }
  10985. + else
  10986. + # Install the binary that we compiled earlier.
  10987. + file=`$ECHO "X$file$stripped_ext" | $Xsed -e "s%\([^/]*\)$%$objdir/\1%"`
  10988. + fi
  10989. fi
  10990. - if test "$pass" = conv; then
  10991. - # Only check for convenience libraries
  10992. - deplibs="$lib $deplibs"
  10993. - if test -z "$libdir"; then
  10994. - if test -z "$old_library"; then
  10995. - $echo "$modename: cannot find name of link library for \`$lib'" 1>&2
  10996. - exit $EXIT_FAILURE
  10997. - fi
  10998. - # It is a libtool convenience library, so add in its objects.
  10999. - convenience="$convenience $ladir/$objdir/$old_library"
  11000. - old_convenience="$old_convenience $ladir/$objdir/$old_library"
  11001. - tmp_libs=
  11002. - for deplib in $dependency_libs; do
  11003. - deplibs="$deplib $deplibs"
  11004. - if test "X$duplicate_deps" = "Xyes" ; then
  11005. - case "$tmp_libs " in
  11006. - *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
  11007. - esac
  11008. - fi
  11009. - tmp_libs="$tmp_libs $deplib"
  11010. - done
  11011. - elif test "$linkmode" != prog && test "$linkmode" != lib; then
  11012. - $echo "$modename: \`$lib' is not a convenience library" 1>&2
  11013. - exit $EXIT_FAILURE
  11014. - fi
  11015. - continue
  11016. - fi # $pass = conv
  11017. + # remove .exe since cygwin /usr/bin/install will append another
  11018. + # one anyway
  11019. + case $install_prog,$host in
  11020. + */usr/bin/install*,*cygwin*)
  11021. + case $file:$destfile in
  11022. + *.exe:*.exe)
  11023. + # this is ok
  11024. + ;;
  11025. + *.exe:*)
  11026. + destfile=$destfile.exe
  11027. + ;;
  11028. + *:*.exe)
  11029. + func_stripname '' '.exe' "$destfile"
  11030. + destfile=$func_stripname_result
  11031. + ;;
  11032. + esac
  11033. + ;;
  11034. + esac
  11035. + func_show_eval "$install_prog\$stripme \$file \$destfile" 'exit $?'
  11036. + $opt_dry_run || if test -n "$outputname"; then
  11037. + ${RM}r "$tmpdir"
  11038. + fi
  11039. + ;;
  11040. + esac
  11041. + done
  11042. + for file in $staticlibs; do
  11043. + func_basename "$file"
  11044. + name="$func_basename_result"
  11045. - # Get the name of the library we link against.
  11046. - linklib=
  11047. - for l in $old_library $library_names; do
  11048. - linklib="$l"
  11049. - done
  11050. - if test -z "$linklib"; then
  11051. - $echo "$modename: cannot find name of link library for \`$lib'" 1>&2
  11052. - exit $EXIT_FAILURE
  11053. - fi
  11054. + # Set up the ranlib parameters.
  11055. + oldlib="$destdir/$name"
  11056. - # This library was specified with -dlopen.
  11057. - if test "$pass" = dlopen; then
  11058. - if test -z "$libdir"; then
  11059. - $echo "$modename: cannot -dlopen a convenience library: \`$lib'" 1>&2
  11060. - exit $EXIT_FAILURE
  11061. - fi
  11062. - if test -z "$dlname" ||
  11063. - test "$dlopen_support" != yes ||
  11064. - test "$build_libtool_libs" = no; then
  11065. - # If there is no dlname, no dlopen support or we're linking
  11066. - # statically, we need to preload. We also need to preload any
  11067. - # dependent libraries so libltdl's deplib preloader doesn't
  11068. - # bomb out in the load deplibs phase.
  11069. - dlprefiles="$dlprefiles $lib $dependency_libs"
  11070. - else
  11071. - newdlfiles="$newdlfiles $lib"
  11072. - fi
  11073. - continue
  11074. - fi # $pass = dlopen
  11075. + func_show_eval "$install_prog \$file \$oldlib" 'exit $?'
  11076. - # We need an absolute path.
  11077. - case $ladir in
  11078. - [\\/]* | [A-Za-z]:[\\/]*) abs_ladir="$ladir" ;;
  11079. - *)
  11080. - abs_ladir=`cd "$ladir" && pwd`
  11081. - if test -z "$abs_ladir"; then
  11082. - $echo "$modename: warning: cannot determine absolute directory name of \`$ladir'" 1>&2
  11083. - $echo "$modename: passing it literally to the linker, although it might fail" 1>&2
  11084. - abs_ladir="$ladir"
  11085. + if test -n "$stripme" && test -n "$old_striplib"; then
  11086. + func_show_eval "$old_striplib $oldlib" 'exit $?'
  11087. + fi
  11088. +
  11089. + # Do each command in the postinstall commands.
  11090. + func_execute_cmds "$old_postinstall_cmds" 'exit $?'
  11091. + done
  11092. +
  11093. + test -n "$future_libdirs" && \
  11094. + func_warning "remember to run \`$progname --finish$future_libdirs'"
  11095. +
  11096. + if test -n "$current_libdirs"; then
  11097. + # Maybe just do a dry run.
  11098. + $opt_dry_run && current_libdirs=" -n$current_libdirs"
  11099. + exec_cmd='$SHELL $progpath $preserve_args --finish$current_libdirs'
  11100. + else
  11101. + exit $EXIT_SUCCESS
  11102. + fi
  11103. +}
  11104. +
  11105. +test "$mode" = install && func_mode_install ${1+"$@"}
  11106. +
  11107. +
  11108. +# func_generate_dlsyms outputname originator pic_p
  11109. +# Extract symbols from dlprefiles and create ${outputname}S.o with
  11110. +# a dlpreopen symbol table.
  11111. +func_generate_dlsyms ()
  11112. +{
  11113. + $opt_debug
  11114. + my_outputname="$1"
  11115. + my_originator="$2"
  11116. + my_pic_p="${3-no}"
  11117. + my_prefix=`$ECHO "$my_originator" | sed 's%[^a-zA-Z0-9]%_%g'`
  11118. + my_dlsyms=
  11119. +
  11120. + if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then
  11121. + if test -n "$NM" && test -n "$global_symbol_pipe"; then
  11122. + my_dlsyms="${my_outputname}S.c"
  11123. + else
  11124. + func_error "not configured to extract global symbols from dlpreopened files"
  11125. + fi
  11126. + fi
  11127. +
  11128. + if test -n "$my_dlsyms"; then
  11129. + case $my_dlsyms in
  11130. + "") ;;
  11131. + *.c)
  11132. + # Discover the nlist of each of the dlfiles.
  11133. + nlist="$output_objdir/${my_outputname}.nm"
  11134. +
  11135. + func_show_eval "$RM $nlist ${nlist}S ${nlist}T"
  11136. +
  11137. + # Parse the name list into a source file.
  11138. + func_verbose "creating $output_objdir/$my_dlsyms"
  11139. +
  11140. + $opt_dry_run || $ECHO > "$output_objdir/$my_dlsyms" "\
  11141. +/* $my_dlsyms - symbol resolution table for \`$my_outputname' dlsym emulation. */
  11142. +/* Generated by $PROGRAM (GNU $PACKAGE$TIMESTAMP) $VERSION */
  11143. +
  11144. +#ifdef __cplusplus
  11145. +extern \"C\" {
  11146. +#endif
  11147. +
  11148. +/* External symbol declarations for the compiler. */\
  11149. +"
  11150. +
  11151. + if test "$dlself" = yes; then
  11152. + func_verbose "generating symbol list for \`$output'"
  11153. +
  11154. + $opt_dry_run || echo ': @PROGRAM@ ' > "$nlist"
  11155. +
  11156. + # Add our own program objects to the symbol list.
  11157. + progfiles=`$ECHO "X$objs$old_deplibs" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP`
  11158. + for progfile in $progfiles; do
  11159. + func_verbose "extracting global C symbols from \`$progfile'"
  11160. + $opt_dry_run || eval "$NM $progfile | $global_symbol_pipe >> '$nlist'"
  11161. + done
  11162. +
  11163. + if test -n "$exclude_expsyms"; then
  11164. + $opt_dry_run || {
  11165. + eval '$EGREP -v " ($exclude_expsyms)$" "$nlist" > "$nlist"T'
  11166. + eval '$MV "$nlist"T "$nlist"'
  11167. + }
  11168. fi
  11169. - ;;
  11170. - esac
  11171. - laname=`$echo "X$lib" | $Xsed -e 's%^.*/%%'`
  11172. - # Find the relevant object directory and library name.
  11173. - if test "X$installed" = Xyes; then
  11174. - if test ! -f "$libdir/$linklib" && test -f "$abs_ladir/$linklib"; then
  11175. - $echo "$modename: warning: library \`$lib' was moved." 1>&2
  11176. - dir="$ladir"
  11177. - absdir="$abs_ladir"
  11178. - libdir="$abs_ladir"
  11179. - else
  11180. - dir="$libdir"
  11181. - absdir="$libdir"
  11182. + if test -n "$export_symbols_regex"; then
  11183. + $opt_dry_run || {
  11184. + eval '$EGREP -e "$export_symbols_regex" "$nlist" > "$nlist"T'
  11185. + eval '$MV "$nlist"T "$nlist"'
  11186. + }
  11187. fi
  11188. - test "X$hardcode_automatic" = Xyes && avoidtemprpath=yes
  11189. - else
  11190. - if test ! -f "$ladir/$objdir/$linklib" && test -f "$abs_ladir/$linklib"; then
  11191. - dir="$ladir"
  11192. - absdir="$abs_ladir"
  11193. - # Remove this search path later
  11194. - notinst_path="$notinst_path $abs_ladir"
  11195. +
  11196. + # Prepare the list of exported symbols
  11197. + if test -z "$export_symbols"; then
  11198. + export_symbols="$output_objdir/$outputname.exp"
  11199. + $opt_dry_run || {
  11200. + $RM $export_symbols
  11201. + eval "${SED} -n -e '/^: @PROGRAM@ $/d' -e 's/^.* \(.*\)$/\1/p' "'< "$nlist" > "$export_symbols"'
  11202. + case $host in
  11203. + *cygwin* | *mingw* | *cegcc* )
  11204. + eval "echo EXPORTS "'> "$output_objdir/$outputname.def"'
  11205. + eval 'cat "$export_symbols" >> "$output_objdir/$outputname.def"'
  11206. + ;;
  11207. + esac
  11208. + }
  11209. else
  11210. - dir="$ladir/$objdir"
  11211. - absdir="$abs_ladir/$objdir"
  11212. - # Remove this search path later
  11213. - notinst_path="$notinst_path $abs_ladir"
  11214. + $opt_dry_run || {
  11215. + eval "${SED} -e 's/\([].[*^$]\)/\\\\\1/g' -e 's/^/ /' -e 's/$/$/'"' < "$export_symbols" > "$output_objdir/$outputname.exp"'
  11216. + eval '$GREP -f "$output_objdir/$outputname.exp" < "$nlist" > "$nlist"T'
  11217. + eval '$MV "$nlist"T "$nlist"'
  11218. + case $host in
  11219. + *cygwin | *mingw* | *cegcc* )
  11220. + eval "echo EXPORTS "'> "$output_objdir/$outputname.def"'
  11221. + eval 'cat "$nlist" >> "$output_objdir/$outputname.def"'
  11222. + ;;
  11223. + esac
  11224. + }
  11225. fi
  11226. - fi # $installed = yes
  11227. - name=`$echo "X$laname" | $Xsed -e 's/\.la$//' -e 's/^lib//'`
  11228. + fi
  11229. - # This library was specified with -dlpreopen.
  11230. - if test "$pass" = dlpreopen; then
  11231. - if test -z "$libdir"; then
  11232. - $echo "$modename: cannot -dlpreopen a convenience library: \`$lib'" 1>&2
  11233. - exit $EXIT_FAILURE
  11234. + for dlprefile in $dlprefiles; do
  11235. + func_verbose "extracting global C symbols from \`$dlprefile'"
  11236. + func_basename "$dlprefile"
  11237. + name="$func_basename_result"
  11238. + $opt_dry_run || {
  11239. + eval '$ECHO ": $name " >> "$nlist"'
  11240. + eval "$NM $dlprefile 2>/dev/null | $global_symbol_pipe >> '$nlist'"
  11241. + }
  11242. + done
  11243. +
  11244. + $opt_dry_run || {
  11245. + # Make sure we have at least an empty file.
  11246. + test -f "$nlist" || : > "$nlist"
  11247. +
  11248. + if test -n "$exclude_expsyms"; then
  11249. + $EGREP -v " ($exclude_expsyms)$" "$nlist" > "$nlist"T
  11250. + $MV "$nlist"T "$nlist"
  11251. fi
  11252. - # Prefer using a static library (so that no silly _DYNAMIC symbols
  11253. - # are required to link).
  11254. - if test -n "$old_library"; then
  11255. - newdlprefiles="$newdlprefiles $dir/$old_library"
  11256. - # Otherwise, use the dlname, so that lt_dlopen finds it.
  11257. - elif test -n "$dlname"; then
  11258. - newdlprefiles="$newdlprefiles $dir/$dlname"
  11259. +
  11260. + # Try sorting and uniquifying the output.
  11261. + if $GREP -v "^: " < "$nlist" |
  11262. + if sort -k 3 </dev/null >/dev/null 2>&1; then
  11263. + sort -k 3
  11264. + else
  11265. + sort +2
  11266. + fi |
  11267. + uniq > "$nlist"S; then
  11268. + :
  11269. else
  11270. - newdlprefiles="$newdlprefiles $dir/$linklib"
  11271. + $GREP -v "^: " < "$nlist" > "$nlist"S
  11272. fi
  11273. - fi # $pass = dlpreopen
  11274. - if test -z "$libdir"; then
  11275. - # Link the convenience library
  11276. - if test "$linkmode" = lib; then
  11277. - deplibs="$dir/$old_library $deplibs"
  11278. - elif test "$linkmode,$pass" = "prog,link"; then
  11279. - compile_deplibs="$dir/$old_library $compile_deplibs"
  11280. - finalize_deplibs="$dir/$old_library $finalize_deplibs"
  11281. + if test -f "$nlist"S; then
  11282. + eval "$global_symbol_to_cdecl"' < "$nlist"S >> "$output_objdir/$my_dlsyms"'
  11283. else
  11284. - deplibs="$lib $deplibs" # used for prog,scan pass
  11285. + $ECHO '/* NONE */' >> "$output_objdir/$my_dlsyms"
  11286. fi
  11287. - continue
  11288. - fi
  11289. + $ECHO >> "$output_objdir/$my_dlsyms" "\
  11290. - if test "$linkmode" = prog && test "$pass" != link; then
  11291. - newlib_search_path="$newlib_search_path $ladir"
  11292. - deplibs="$lib $deplibs"
  11293. -
  11294. - linkalldeplibs=no
  11295. - if test "$link_all_deplibs" != no || test -z "$library_names" ||
  11296. - test "$build_libtool_libs" = no; then
  11297. - linkalldeplibs=yes
  11298. - fi
  11299. +/* The mapping between symbol names and symbols. */
  11300. +typedef struct {
  11301. + const char *name;
  11302. + void *address;
  11303. +} lt_dlsymlist;
  11304. +"
  11305. + case $host in
  11306. + *cygwin* | *mingw* | *cegcc* )
  11307. + $ECHO >> "$output_objdir/$my_dlsyms" "\
  11308. +/* DATA imports from DLLs on WIN32 con't be const, because
  11309. + runtime relocations are performed -- see ld's documentation
  11310. + on pseudo-relocs. */"
  11311. + lt_dlsym_const= ;;
  11312. + *osf5*)
  11313. + echo >> "$output_objdir/$my_dlsyms" "\
  11314. +/* This system does not cope well with relocations in const data */"
  11315. + lt_dlsym_const= ;;
  11316. + *)
  11317. + lt_dlsym_const=const ;;
  11318. + esac
  11319. - tmp_libs=
  11320. - for deplib in $dependency_libs; do
  11321. - case $deplib in
  11322. - -L*) newlib_search_path="$newlib_search_path "`$echo "X$deplib" | $Xsed -e 's/^-L//'`;; ### testsuite: skip nested quoting test
  11323. - esac
  11324. - # Need to link against all dependency_libs?
  11325. - if test "$linkalldeplibs" = yes; then
  11326. - deplibs="$deplib $deplibs"
  11327. - else
  11328. - # Need to hardcode shared library paths
  11329. - # or/and link against static libraries
  11330. - newdependency_libs="$deplib $newdependency_libs"
  11331. - fi
  11332. - if test "X$duplicate_deps" = "Xyes" ; then
  11333. - case "$tmp_libs " in
  11334. - *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
  11335. - esac
  11336. - fi
  11337. - tmp_libs="$tmp_libs $deplib"
  11338. - done # for deplib
  11339. - continue
  11340. - fi # $linkmode = prog...
  11341. + $ECHO >> "$output_objdir/$my_dlsyms" "\
  11342. +extern $lt_dlsym_const lt_dlsymlist
  11343. +lt_${my_prefix}_LTX_preloaded_symbols[];
  11344. +$lt_dlsym_const lt_dlsymlist
  11345. +lt_${my_prefix}_LTX_preloaded_symbols[] =
  11346. +{\
  11347. + { \"$my_originator\", (void *) 0 },"
  11348. - if test "$linkmode,$pass" = "prog,link"; then
  11349. - if test -n "$library_names" &&
  11350. - { test "$prefer_static_libs" = no || test -z "$old_library"; }; then
  11351. - # We need to hardcode the library path
  11352. - if test -n "$shlibpath_var" && test -z "$avoidtemprpath" ; then
  11353. - # Make sure the rpath contains only unique directories.
  11354. - case "$temp_rpath " in
  11355. - *" $dir "*) ;;
  11356. - *" $absdir "*) ;;
  11357. - *) temp_rpath="$temp_rpath $absdir" ;;
  11358. - esac
  11359. - fi
  11360. + case $need_lib_prefix in
  11361. + no)
  11362. + eval "$global_symbol_to_c_name_address" < "$nlist" >> "$output_objdir/$my_dlsyms"
  11363. + ;;
  11364. + *)
  11365. + eval "$global_symbol_to_c_name_address_lib_prefix" < "$nlist" >> "$output_objdir/$my_dlsyms"
  11366. + ;;
  11367. + esac
  11368. + $ECHO >> "$output_objdir/$my_dlsyms" "\
  11369. + {0, (void *) 0}
  11370. +};
  11371. - # Hardcode the library path.
  11372. - # Skip directories that are in the system default run-time
  11373. - # search path.
  11374. - case " $sys_lib_dlsearch_path " in
  11375. - *" $absdir "*) ;;
  11376. - *)
  11377. - case "$compile_rpath " in
  11378. - *" $absdir "*) ;;
  11379. - *) compile_rpath="$compile_rpath $absdir"
  11380. - esac
  11381. - ;;
  11382. - esac
  11383. - case " $sys_lib_dlsearch_path " in
  11384. - *" $libdir "*) ;;
  11385. - *)
  11386. - case "$finalize_rpath " in
  11387. - *" $libdir "*) ;;
  11388. - *) finalize_rpath="$finalize_rpath $libdir"
  11389. - esac
  11390. - ;;
  11391. - esac
  11392. - fi # $linkmode,$pass = prog,link...
  11393. +/* This works around a problem in FreeBSD linker */
  11394. +#ifdef FREEBSD_WORKAROUND
  11395. +static const void *lt_preloaded_setup() {
  11396. + return lt_${my_prefix}_LTX_preloaded_symbols;
  11397. +}
  11398. +#endif
  11399. - if test "$alldeplibs" = yes &&
  11400. - { test "$deplibs_check_method" = pass_all ||
  11401. - { test "$build_libtool_libs" = yes &&
  11402. - test -n "$library_names"; }; }; then
  11403. - # We only need to search for static libraries
  11404. - continue
  11405. - fi
  11406. - fi
  11407. +#ifdef __cplusplus
  11408. +}
  11409. +#endif\
  11410. +"
  11411. + } # !$opt_dry_run
  11412. - link_static=no # Whether the deplib will be linked statically
  11413. - use_static_libs=$prefer_static_libs
  11414. - if test "$use_static_libs" = built && test "$installed" = yes ; then
  11415. - use_static_libs=no
  11416. - fi
  11417. - if test -n "$library_names" &&
  11418. - { test "$use_static_libs" = no || test -z "$old_library"; }; then
  11419. - if test "$installed" = no; then
  11420. - notinst_deplibs="$notinst_deplibs $lib"
  11421. - need_relink=yes
  11422. - fi
  11423. - # This is a shared library
  11424. -
  11425. - # Warn about portability, can't link against -module's on
  11426. - # some systems (darwin)
  11427. - if test "$shouldnotlink" = yes && test "$pass" = link ; then
  11428. - $echo
  11429. - if test "$linkmode" = prog; then
  11430. - $echo "*** Warning: Linking the executable $output against the loadable module"
  11431. - else
  11432. - $echo "*** Warning: Linking the shared library $output against the loadable module"
  11433. + pic_flag_for_symtable=
  11434. + case "$compile_command " in
  11435. + *" -static "*) ;;
  11436. + *)
  11437. + case $host in
  11438. + # compiling the symbol table file with pic_flag works around
  11439. + # a FreeBSD bug that causes programs to crash when -lm is
  11440. + # linked before any other PIC object. But we must not use
  11441. + # pic_flag when linking with -static. The problem exists in
  11442. + # FreeBSD 2.2.6 and is fixed in FreeBSD 3.1.
  11443. + *-*-freebsd2*|*-*-freebsd3.0*|*-*-freebsdelf3.0*)
  11444. + pic_flag_for_symtable=" $pic_flag -DFREEBSD_WORKAROUND" ;;
  11445. + *-*-hpux*)
  11446. + pic_flag_for_symtable=" $pic_flag" ;;
  11447. + *)
  11448. + if test "X$my_pic_p" != Xno; then
  11449. + pic_flag_for_symtable=" $pic_flag"
  11450. fi
  11451. - $echo "*** $linklib is not portable!"
  11452. - fi
  11453. - if test "$linkmode" = lib &&
  11454. - test "$hardcode_into_libs" = yes; then
  11455. - # Hardcode the library path.
  11456. - # Skip directories that are in the system default run-time
  11457. - # search path.
  11458. - case " $sys_lib_dlsearch_path " in
  11459. - *" $absdir "*) ;;
  11460. - *)
  11461. - case "$compile_rpath " in
  11462. - *" $absdir "*) ;;
  11463. - *) compile_rpath="$compile_rpath $absdir"
  11464. - esac
  11465. - ;;
  11466. - esac
  11467. - case " $sys_lib_dlsearch_path " in
  11468. - *" $libdir "*) ;;
  11469. - *)
  11470. - case "$finalize_rpath " in
  11471. - *" $libdir "*) ;;
  11472. - *) finalize_rpath="$finalize_rpath $libdir"
  11473. - esac
  11474. - ;;
  11475. - esac
  11476. - fi
  11477. + ;;
  11478. + esac
  11479. + ;;
  11480. + esac
  11481. + symtab_cflags=
  11482. + for arg in $LTCFLAGS; do
  11483. + case $arg in
  11484. + -pie | -fpie | -fPIE) ;;
  11485. + *) symtab_cflags="$symtab_cflags $arg" ;;
  11486. + esac
  11487. + done
  11488. - if test -n "$old_archive_from_expsyms_cmds"; then
  11489. - # figure out the soname
  11490. - set dummy $library_names
  11491. - realname="$2"
  11492. - shift; shift
  11493. - libname=`eval \\$echo \"$libname_spec\"`
  11494. - # use dlname if we got it. it's perfectly good, no?
  11495. - if test -n "$dlname"; then
  11496. - soname="$dlname"
  11497. - elif test -n "$soname_spec"; then
  11498. - # bleh windows
  11499. - case $host in
  11500. - *cygwin* | mingw*)
  11501. - major=`expr $current - $age`
  11502. - versuffix="-$major"
  11503. - ;;
  11504. - esac
  11505. - eval soname=\"$soname_spec\"
  11506. - else
  11507. - soname="$realname"
  11508. - fi
  11509. + # Now compile the dynamic symbol file.
  11510. + func_show_eval '(cd $output_objdir && $LTCC$symtab_cflags -c$no_builtin_flag$pic_flag_for_symtable "$my_dlsyms")' 'exit $?'
  11511. - # Make a new name for the extract_expsyms_cmds to use
  11512. - soroot="$soname"
  11513. - soname=`$echo $soroot | ${SED} -e 's/^.*\///'`
  11514. - newlib="libimp-`$echo $soname | ${SED} 's/^lib//;s/\.dll$//'`.a"
  11515. + # Clean up the generated files.
  11516. + func_show_eval '$RM "$output_objdir/$my_dlsyms" "$nlist" "${nlist}S" "${nlist}T"'
  11517. - # If the library has no export list, then create one now
  11518. - if test -f "$output_objdir/$soname-def"; then :
  11519. - else
  11520. - $show "extracting exported symbol list from \`$soname'"
  11521. - save_ifs="$IFS"; IFS='~'
  11522. - cmds=$extract_expsyms_cmds
  11523. - for cmd in $cmds; do
  11524. - IFS="$save_ifs"
  11525. - eval cmd=\"$cmd\"
  11526. - $show "$cmd"
  11527. - $run eval "$cmd" || exit $?
  11528. - done
  11529. - IFS="$save_ifs"
  11530. - fi
  11531. + # Transform the symbol file into the correct name.
  11532. + symfileobj="$output_objdir/${my_outputname}S.$objext"
  11533. + case $host in
  11534. + *cygwin* | *mingw* | *cegcc* )
  11535. + if test -f "$output_objdir/$my_outputname.def"; then
  11536. + compile_command=`$ECHO "X$compile_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/$my_outputname.def $symfileobj%"`
  11537. + finalize_command=`$ECHO "X$finalize_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/$my_outputname.def $symfileobj%"`
  11538. + else
  11539. + compile_command=`$ECHO "X$compile_command" | $Xsed -e "s%@SYMFILE@%$symfileobj%"`
  11540. + finalize_command=`$ECHO "X$finalize_command" | $Xsed -e "s%@SYMFILE@%$symfileobj%"`
  11541. + fi
  11542. + ;;
  11543. + *)
  11544. + compile_command=`$ECHO "X$compile_command" | $Xsed -e "s%@SYMFILE@%$symfileobj%"`
  11545. + finalize_command=`$ECHO "X$finalize_command" | $Xsed -e "s%@SYMFILE@%$symfileobj%"`
  11546. + ;;
  11547. + esac
  11548. + ;;
  11549. + *)
  11550. + func_fatal_error "unknown suffix for \`$my_dlsyms'"
  11551. + ;;
  11552. + esac
  11553. + else
  11554. + # We keep going just in case the user didn't refer to
  11555. + # lt_preloaded_symbols. The linker will fail if global_symbol_pipe
  11556. + # really was required.
  11557. +
  11558. + # Nullify the symbol file.
  11559. + compile_command=`$ECHO "X$compile_command" | $Xsed -e "s% @SYMFILE@%%"`
  11560. + finalize_command=`$ECHO "X$finalize_command" | $Xsed -e "s% @SYMFILE@%%"`
  11561. + fi
  11562. +}
  11563. - # Create $newlib
  11564. - if test -f "$output_objdir/$newlib"; then :; else
  11565. - $show "generating import library for \`$soname'"
  11566. - save_ifs="$IFS"; IFS='~'
  11567. - cmds=$old_archive_from_expsyms_cmds
  11568. - for cmd in $cmds; do
  11569. - IFS="$save_ifs"
  11570. - eval cmd=\"$cmd\"
  11571. - $show "$cmd"
  11572. - $run eval "$cmd" || exit $?
  11573. - done
  11574. - IFS="$save_ifs"
  11575. - fi
  11576. - # make sure the library variables are pointing to the new library
  11577. - dir=$output_objdir
  11578. - linklib=$newlib
  11579. - fi # test -n "$old_archive_from_expsyms_cmds"
  11580. +# func_win32_libid arg
  11581. +# return the library type of file 'arg'
  11582. +#
  11583. +# Need a lot of goo to handle *both* DLLs and import libs
  11584. +# Has to be a shell function in order to 'eat' the argument
  11585. +# that is supplied when $file_magic_command is called.
  11586. +func_win32_libid ()
  11587. +{
  11588. + $opt_debug
  11589. + win32_libid_type="unknown"
  11590. + win32_fileres=`file -L $1 2>/dev/null`
  11591. + case $win32_fileres in
  11592. + *ar\ archive\ import\ library*) # definitely import
  11593. + win32_libid_type="x86 archive import"
  11594. + ;;
  11595. + *ar\ archive*) # could be an import, or static
  11596. + if eval $OBJDUMP -f $1 | $SED -e '10q' 2>/dev/null |
  11597. + $EGREP 'file format pe-i386(.*architecture: i386)?' >/dev/null ; then
  11598. + win32_nmres=`eval $NM -f posix -A $1 |
  11599. + $SED -n -e '
  11600. + 1,100{
  11601. + / I /{
  11602. + s,.*,import,
  11603. + p
  11604. + q
  11605. + }
  11606. + }'`
  11607. + case $win32_nmres in
  11608. + import*) win32_libid_type="x86 archive import";;
  11609. + *) win32_libid_type="x86 archive static";;
  11610. + esac
  11611. + fi
  11612. + ;;
  11613. + *DLL*)
  11614. + win32_libid_type="x86 DLL"
  11615. + ;;
  11616. + *executable*) # but shell scripts are "executable" too...
  11617. + case $win32_fileres in
  11618. + *MS\ Windows\ PE\ Intel*)
  11619. + win32_libid_type="x86 DLL"
  11620. + ;;
  11621. + esac
  11622. + ;;
  11623. + esac
  11624. + $ECHO "$win32_libid_type"
  11625. +}
  11626. - if test "$linkmode" = prog || test "$mode" != relink; then
  11627. - add_shlibpath=
  11628. - add_dir=
  11629. - add=
  11630. - lib_linked=yes
  11631. - case $hardcode_action in
  11632. - immediate | unsupported)
  11633. - if test "$hardcode_direct" = no; then
  11634. - add="$dir/$linklib"
  11635. - case $host in
  11636. - *-*-sco3.2v5.0.[024]*) add_dir="-L$dir" ;;
  11637. - *-*-sysv4*uw2*) add_dir="-L$dir" ;;
  11638. - *-*-sysv5OpenUNIX* | *-*-sysv5UnixWare7.[01].[10]* | \
  11639. - *-*-unixware7*) add_dir="-L$dir" ;;
  11640. - *-*-darwin* )
  11641. - # if the lib is a module then we can not link against
  11642. - # it, someone is ignoring the new warnings I added
  11643. - if /usr/bin/file -L $add 2> /dev/null |
  11644. - $EGREP ": [^:]* bundle" >/dev/null ; then
  11645. - $echo "** Warning, lib $linklib is a module, not a shared library"
  11646. - if test -z "$old_library" ; then
  11647. - $echo
  11648. - $echo "** And there doesn't seem to be a static archive available"
  11649. - $echo "** The link will probably fail, sorry"
  11650. - else
  11651. - add="$dir/$old_library"
  11652. - fi
  11653. - fi
  11654. - esac
  11655. - elif test "$hardcode_minus_L" = no; then
  11656. - case $host in
  11657. - *-*-sunos*) add_shlibpath="$dir" ;;
  11658. - esac
  11659. - add_dir="-L$dir"
  11660. - add="-l$name"
  11661. - elif test "$hardcode_shlibpath_var" = no; then
  11662. - add_shlibpath="$dir"
  11663. - add="-l$name"
  11664. - else
  11665. - lib_linked=no
  11666. - fi
  11667. - ;;
  11668. - relink)
  11669. - if test "$hardcode_direct" = yes; then
  11670. - add="$dir/$linklib"
  11671. - elif test "$hardcode_minus_L" = yes; then
  11672. - add_dir="-L$dir"
  11673. - # Try looking first in the location we're being installed to.
  11674. - if test -n "$inst_prefix_dir"; then
  11675. - case $libdir in
  11676. - [\\/]*)
  11677. - add_dir="$add_dir -L$inst_prefix_dir$libdir"
  11678. - ;;
  11679. - esac
  11680. - fi
  11681. - add="-l$name"
  11682. - elif test "$hardcode_shlibpath_var" = yes; then
  11683. - add_shlibpath="$dir"
  11684. - add="-l$name"
  11685. - else
  11686. - lib_linked=no
  11687. - fi
  11688. - ;;
  11689. - *) lib_linked=no ;;
  11690. - esac
  11691. - if test "$lib_linked" != yes; then
  11692. - $echo "$modename: configuration error: unsupported hardcode properties"
  11693. - exit $EXIT_FAILURE
  11694. - fi
  11695. - if test -n "$add_shlibpath"; then
  11696. - case :$compile_shlibpath: in
  11697. - *":$add_shlibpath:"*) ;;
  11698. - *) compile_shlibpath="$compile_shlibpath$add_shlibpath:" ;;
  11699. - esac
  11700. - fi
  11701. - if test "$linkmode" = prog; then
  11702. - test -n "$add_dir" && compile_deplibs="$add_dir $compile_deplibs"
  11703. - test -n "$add" && compile_deplibs="$add $compile_deplibs"
  11704. - else
  11705. - test -n "$add_dir" && deplibs="$add_dir $deplibs"
  11706. - test -n "$add" && deplibs="$add $deplibs"
  11707. - if test "$hardcode_direct" != yes && \
  11708. - test "$hardcode_minus_L" != yes && \
  11709. - test "$hardcode_shlibpath_var" = yes; then
  11710. - case :$finalize_shlibpath: in
  11711. - *":$libdir:"*) ;;
  11712. - *) finalize_shlibpath="$finalize_shlibpath$libdir:" ;;
  11713. - esac
  11714. - fi
  11715. - fi
  11716. - fi
  11717. +# func_extract_an_archive dir oldlib
  11718. +func_extract_an_archive ()
  11719. +{
  11720. + $opt_debug
  11721. + f_ex_an_ar_dir="$1"; shift
  11722. + f_ex_an_ar_oldlib="$1"
  11723. + func_show_eval "(cd \$f_ex_an_ar_dir && $AR x \"\$f_ex_an_ar_oldlib\")" 'exit $?'
  11724. + if ($AR t "$f_ex_an_ar_oldlib" | sort | sort -uc >/dev/null 2>&1); then
  11725. + :
  11726. + else
  11727. + func_fatal_error "object name conflicts in archive: $f_ex_an_ar_dir/$f_ex_an_ar_oldlib"
  11728. + fi
  11729. +}
  11730. - if test "$linkmode" = prog || test "$mode" = relink; then
  11731. - add_shlibpath=
  11732. - add_dir=
  11733. - add=
  11734. - # Finalize command for both is simple: just hardcode it.
  11735. - if test "$hardcode_direct" = yes; then
  11736. - add="$libdir/$linklib"
  11737. - elif test "$hardcode_minus_L" = yes; then
  11738. - add_dir="-L$libdir"
  11739. - add="-l$name"
  11740. - elif test "$hardcode_shlibpath_var" = yes; then
  11741. - case :$finalize_shlibpath: in
  11742. - *":$libdir:"*) ;;
  11743. - *) finalize_shlibpath="$finalize_shlibpath$libdir:" ;;
  11744. - esac
  11745. - add="-l$name"
  11746. - elif test "$hardcode_automatic" = yes; then
  11747. - if test -n "$inst_prefix_dir" &&
  11748. - test -f "$inst_prefix_dir$libdir/$linklib" ; then
  11749. - add="$inst_prefix_dir$libdir/$linklib"
  11750. - else
  11751. - add="$libdir/$linklib"
  11752. - fi
  11753. - else
  11754. - # We cannot seem to hardcode it, guess we'll fake it.
  11755. - add_dir="-L$libdir"
  11756. - # Try looking first in the location we're being installed to.
  11757. - if test -n "$inst_prefix_dir"; then
  11758. - case $libdir in
  11759. - [\\/]*)
  11760. - add_dir="$add_dir -L$inst_prefix_dir$libdir"
  11761. - ;;
  11762. - esac
  11763. - fi
  11764. - add="-l$name"
  11765. - fi
  11766. - if test "$linkmode" = prog; then
  11767. - test -n "$add_dir" && finalize_deplibs="$add_dir $finalize_deplibs"
  11768. - test -n "$add" && finalize_deplibs="$add $finalize_deplibs"
  11769. - else
  11770. - test -n "$add_dir" && deplibs="$add_dir $deplibs"
  11771. - test -n "$add" && deplibs="$add $deplibs"
  11772. - fi
  11773. - fi
  11774. - elif test "$linkmode" = prog; then
  11775. - # Here we assume that one of hardcode_direct or hardcode_minus_L
  11776. - # is not unsupported. This is valid on all known static and
  11777. - # shared platforms.
  11778. - if test "$hardcode_direct" != unsupported; then
  11779. - test -n "$old_library" && linklib="$old_library"
  11780. - compile_deplibs="$dir/$linklib $compile_deplibs"
  11781. - finalize_deplibs="$dir/$linklib $finalize_deplibs"
  11782. - else
  11783. - compile_deplibs="-l$name -L$dir $compile_deplibs"
  11784. - finalize_deplibs="-l$name -L$dir $finalize_deplibs"
  11785. - fi
  11786. - elif test "$build_libtool_libs" = yes; then
  11787. - # Not a shared library
  11788. - if test "$deplibs_check_method" != pass_all; then
  11789. - # We're trying link a shared library against a static one
  11790. - # but the system doesn't support it.
  11791. +# func_extract_archives gentop oldlib ...
  11792. +func_extract_archives ()
  11793. +{
  11794. + $opt_debug
  11795. + my_gentop="$1"; shift
  11796. + my_oldlibs=${1+"$@"}
  11797. + my_oldobjs=""
  11798. + my_xlib=""
  11799. + my_xabs=""
  11800. + my_xdir=""
  11801. - # Just print a warning and add the library to dependency_libs so
  11802. - # that the program can be linked against the static library.
  11803. - $echo
  11804. - $echo "*** Warning: This system can not link to static lib archive $lib."
  11805. - $echo "*** I have the capability to make that library automatically link in when"
  11806. - $echo "*** you link to this library. But I can only do this if you have a"
  11807. - $echo "*** shared version of the library, which you do not appear to have."
  11808. - if test "$module" = yes; then
  11809. - $echo "*** But as you try to build a module library, libtool will still create "
  11810. - $echo "*** a static module, that should work as long as the dlopening application"
  11811. - $echo "*** is linked with the -dlopen flag to resolve symbols at runtime."
  11812. - if test -z "$global_symbol_pipe"; then
  11813. - $echo
  11814. - $echo "*** However, this would only work if libtool was able to extract symbol"
  11815. - $echo "*** lists from a program, using \`nm' or equivalent, but libtool could"
  11816. - $echo "*** not find such a program. So, this module is probably useless."
  11817. - $echo "*** \`nm' from GNU binutils and a full rebuild may help."
  11818. - fi
  11819. - if test "$build_old_libs" = no; then
  11820. - build_libtool_libs=module
  11821. - build_old_libs=yes
  11822. - else
  11823. - build_libtool_libs=no
  11824. - fi
  11825. - fi
  11826. + for my_xlib in $my_oldlibs; do
  11827. + # Extract the objects.
  11828. + case $my_xlib in
  11829. + [\\/]* | [A-Za-z]:[\\/]*) my_xabs="$my_xlib" ;;
  11830. + *) my_xabs=`pwd`"/$my_xlib" ;;
  11831. + esac
  11832. + func_basename "$my_xlib"
  11833. + my_xlib="$func_basename_result"
  11834. + my_xlib_u=$my_xlib
  11835. + while :; do
  11836. + case " $extracted_archives " in
  11837. + *" $my_xlib_u "*)
  11838. + func_arith $extracted_serial + 1
  11839. + extracted_serial=$func_arith_result
  11840. + my_xlib_u=lt$extracted_serial-$my_xlib ;;
  11841. + *) break ;;
  11842. + esac
  11843. + done
  11844. + extracted_archives="$extracted_archives $my_xlib_u"
  11845. + my_xdir="$my_gentop/$my_xlib_u"
  11846. +
  11847. + func_mkdir_p "$my_xdir"
  11848. +
  11849. + case $host in
  11850. + *-darwin*)
  11851. + func_verbose "Extracting $my_xabs"
  11852. + # Do not bother doing anything if just a dry run
  11853. + $opt_dry_run || {
  11854. + darwin_orig_dir=`pwd`
  11855. + cd $my_xdir || exit $?
  11856. + darwin_archive=$my_xabs
  11857. + darwin_curdir=`pwd`
  11858. + darwin_base_archive=`basename "$darwin_archive"`
  11859. + darwin_arches=`$LIPO -info "$darwin_archive" 2>/dev/null | $GREP Architectures 2>/dev/null || true`
  11860. + if test -n "$darwin_arches"; then
  11861. + darwin_arches=`$ECHO "$darwin_arches" | $SED -e 's/.*are://'`
  11862. + darwin_arch=
  11863. + func_verbose "$darwin_base_archive has multiple architectures $darwin_arches"
  11864. + for darwin_arch in $darwin_arches ; do
  11865. + func_mkdir_p "unfat-$$/${darwin_base_archive}-${darwin_arch}"
  11866. + $LIPO -thin $darwin_arch -output "unfat-$$/${darwin_base_archive}-${darwin_arch}/${darwin_base_archive}" "${darwin_archive}"
  11867. + cd "unfat-$$/${darwin_base_archive}-${darwin_arch}"
  11868. + func_extract_an_archive "`pwd`" "${darwin_base_archive}"
  11869. + cd "$darwin_curdir"
  11870. + $RM "unfat-$$/${darwin_base_archive}-${darwin_arch}/${darwin_base_archive}"
  11871. + done # $darwin_arches
  11872. + ## Okay now we've a bunch of thin objects, gotta fatten them up :)
  11873. + darwin_filelist=`find unfat-$$ -type f -name \*.o -print -o -name \*.lo -print | $SED -e "$basename" | sort -u`
  11874. + darwin_file=
  11875. + darwin_files=
  11876. + for darwin_file in $darwin_filelist; do
  11877. + darwin_files=`find unfat-$$ -name $darwin_file -print | $NL2SP`
  11878. + $LIPO -create -output "$darwin_file" $darwin_files
  11879. + done # $darwin_filelist
  11880. + $RM -rf unfat-$$
  11881. + cd "$darwin_orig_dir"
  11882. else
  11883. - deplibs="$dir/$old_library $deplibs"
  11884. - link_static=yes
  11885. - fi
  11886. - fi # link shared/static library?
  11887. + cd $darwin_orig_dir
  11888. + func_extract_an_archive "$my_xdir" "$my_xabs"
  11889. + fi # $darwin_arches
  11890. + } # !$opt_dry_run
  11891. + ;;
  11892. + *)
  11893. + func_extract_an_archive "$my_xdir" "$my_xabs"
  11894. + ;;
  11895. + esac
  11896. + my_oldobjs="$my_oldobjs "`find $my_xdir -name \*.$objext -print -o -name \*.lo -print | $NL2SP`
  11897. + done
  11898. - if test "$linkmode" = lib; then
  11899. - if test -n "$dependency_libs" &&
  11900. - { test "$hardcode_into_libs" != yes ||
  11901. - test "$build_old_libs" = yes ||
  11902. - test "$link_static" = yes; }; then
  11903. - # Extract -R from dependency_libs
  11904. - temp_deplibs=
  11905. - for libdir in $dependency_libs; do
  11906. - case $libdir in
  11907. - -R*) temp_xrpath=`$echo "X$libdir" | $Xsed -e 's/^-R//'`
  11908. - case " $xrpath " in
  11909. - *" $temp_xrpath "*) ;;
  11910. - *) xrpath="$xrpath $temp_xrpath";;
  11911. - esac;;
  11912. - *) temp_deplibs="$temp_deplibs $libdir";;
  11913. - esac
  11914. - done
  11915. - dependency_libs="$temp_deplibs"
  11916. - fi
  11917. + func_extract_archives_result="$my_oldobjs"
  11918. +}
  11919. - newlib_search_path="$newlib_search_path $absdir"
  11920. - # Link against this library
  11921. - test "$link_static" = no && newdependency_libs="$abs_ladir/$laname $newdependency_libs"
  11922. - # ... and its dependency_libs
  11923. - tmp_libs=
  11924. - for deplib in $dependency_libs; do
  11925. - newdependency_libs="$deplib $newdependency_libs"
  11926. - if test "X$duplicate_deps" = "Xyes" ; then
  11927. - case "$tmp_libs " in
  11928. - *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
  11929. - esac
  11930. - fi
  11931. - tmp_libs="$tmp_libs $deplib"
  11932. - done
  11933. - if test "$link_all_deplibs" != no; then
  11934. - # Add the search paths of all dependency libraries
  11935. - for deplib in $dependency_libs; do
  11936. - case $deplib in
  11937. - -L*) path="$deplib" ;;
  11938. - *.la)
  11939. - dir=`$echo "X$deplib" | $Xsed -e 's%/[^/]*$%%'`
  11940. - test "X$dir" = "X$deplib" && dir="."
  11941. - # We need an absolute path.
  11942. - case $dir in
  11943. - [\\/]* | [A-Za-z]:[\\/]*) absdir="$dir" ;;
  11944. - *)
  11945. - absdir=`cd "$dir" && pwd`
  11946. - if test -z "$absdir"; then
  11947. - $echo "$modename: warning: cannot determine absolute directory name of \`$dir'" 1>&2
  11948. - absdir="$dir"
  11949. - fi
  11950. - ;;
  11951. - esac
  11952. - if grep "^installed=no" $deplib > /dev/null; then
  11953. - path="$absdir/$objdir"
  11954. - else
  11955. - eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib`
  11956. - if test -z "$libdir"; then
  11957. - $echo "$modename: \`$deplib' is not a valid libtool archive" 1>&2
  11958. - exit $EXIT_FAILURE
  11959. - fi
  11960. - if test "$absdir" != "$libdir"; then
  11961. - $echo "$modename: warning: \`$deplib' seems to be moved" 1>&2
  11962. - fi
  11963. - path="$absdir"
  11964. - fi
  11965. - depdepl=
  11966. - case $host in
  11967. - *-*-darwin*)
  11968. - # we do not want to link against static libs,
  11969. - # but need to link against shared
  11970. - eval deplibrary_names=`${SED} -n -e 's/^library_names=\(.*\)$/\1/p' $deplib`
  11971. - if test -n "$deplibrary_names" ; then
  11972. - for tmp in $deplibrary_names ; do
  11973. - depdepl=$tmp
  11974. - done
  11975. - if test -f "$path/$depdepl" ; then
  11976. - depdepl="$path/$depdepl"
  11977. - fi
  11978. - # do not add paths which are already there
  11979. - case " $newlib_search_path " in
  11980. - *" $path "*) ;;
  11981. - *) newlib_search_path="$newlib_search_path $path";;
  11982. - esac
  11983. - fi
  11984. - path=""
  11985. - ;;
  11986. - *)
  11987. - path="-L$path"
  11988. - ;;
  11989. - esac
  11990. - ;;
  11991. - -l*)
  11992. - case $host in
  11993. - *-*-darwin*)
  11994. - # Again, we only want to link against shared libraries
  11995. - eval tmp_libs=`$echo "X$deplib" | $Xsed -e "s,^\-l,,"`
  11996. - for tmp in $newlib_search_path ; do
  11997. - if test -f "$tmp/lib$tmp_libs.dylib" ; then
  11998. - eval depdepl="$tmp/lib$tmp_libs.dylib"
  11999. - break
  12000. - fi
  12001. - done
  12002. - path=""
  12003. - ;;
  12004. - *) continue ;;
  12005. - esac
  12006. - ;;
  12007. - *) continue ;;
  12008. - esac
  12009. - case " $deplibs " in
  12010. - *" $path "*) ;;
  12011. - *) deplibs="$path $deplibs" ;;
  12012. - esac
  12013. - case " $deplibs " in
  12014. - *" $depdepl "*) ;;
  12015. - *) deplibs="$depdepl $deplibs" ;;
  12016. - esac
  12017. - done
  12018. - fi # link_all_deplibs != no
  12019. - fi # linkmode = lib
  12020. - done # for deplib in $libs
  12021. - dependency_libs="$newdependency_libs"
  12022. - if test "$pass" = dlpreopen; then
  12023. - # Link the dlpreopened libraries before other libraries
  12024. - for deplib in $save_deplibs; do
  12025. - deplibs="$deplib $deplibs"
  12026. - done
  12027. - fi
  12028. - if test "$pass" != dlopen; then
  12029. - if test "$pass" != conv; then
  12030. - # Make sure lib_search_path contains only unique directories.
  12031. - lib_search_path=
  12032. - for dir in $newlib_search_path; do
  12033. - case "$lib_search_path " in
  12034. - *" $dir "*) ;;
  12035. - *) lib_search_path="$lib_search_path $dir" ;;
  12036. - esac
  12037. - done
  12038. - newlib_search_path=
  12039. - fi
  12040. - if test "$linkmode,$pass" != "prog,link"; then
  12041. - vars="deplibs"
  12042. - else
  12043. - vars="compile_deplibs finalize_deplibs"
  12044. +# func_emit_wrapper_part1 [arg=no]
  12045. +#
  12046. +# Emit the first part of a libtool wrapper script on stdout.
  12047. +# For more information, see the description associated with
  12048. +# func_emit_wrapper(), below.
  12049. +func_emit_wrapper_part1 ()
  12050. +{
  12051. + func_emit_wrapper_part1_arg1=no
  12052. + if test -n "$1" ; then
  12053. + func_emit_wrapper_part1_arg1=$1
  12054. fi
  12055. - for var in $vars dependency_libs; do
  12056. - # Add libraries to $var in reverse order
  12057. - eval tmp_libs=\"\$$var\"
  12058. - new_libs=
  12059. - for deplib in $tmp_libs; do
  12060. - # FIXME: Pedantically, this is the right thing to do, so
  12061. - # that some nasty dependency loop isn't accidentally
  12062. - # broken:
  12063. - #new_libs="$deplib $new_libs"
  12064. - # Pragmatically, this seems to cause very few problems in
  12065. - # practice:
  12066. - case $deplib in
  12067. - -L*) new_libs="$deplib $new_libs" ;;
  12068. - -R*) ;;
  12069. - *)
  12070. - # And here is the reason: when a library appears more
  12071. - # than once as an explicit dependence of a library, or
  12072. - # is implicitly linked in more than once by the
  12073. - # compiler, it is considered special, and multiple
  12074. - # occurrences thereof are not removed. Compare this
  12075. - # with having the same library being listed as a
  12076. - # dependency of multiple other libraries: in this case,
  12077. - # we know (pedantically, we assume) the library does not
  12078. - # need to be listed more than once, so we keep only the
  12079. - # last copy. This is not always right, but it is rare
  12080. - # enough that we require users that really mean to play
  12081. - # such unportable linking tricks to link the library
  12082. - # using -Wl,-lname, so that libtool does not consider it
  12083. - # for duplicate removal.
  12084. - case " $specialdeplibs " in
  12085. - *" $deplib "*) new_libs="$deplib $new_libs" ;;
  12086. - *)
  12087. - case " $new_libs " in
  12088. - *" $deplib "*) ;;
  12089. - *) new_libs="$deplib $new_libs" ;;
  12090. - esac
  12091. - ;;
  12092. - esac
  12093. - ;;
  12094. - esac
  12095. - done
  12096. - tmp_libs=
  12097. - for deplib in $new_libs; do
  12098. - case $deplib in
  12099. - -L*)
  12100. - case " $tmp_libs " in
  12101. - *" $deplib "*) ;;
  12102. - *) tmp_libs="$tmp_libs $deplib" ;;
  12103. - esac
  12104. - ;;
  12105. - *) tmp_libs="$tmp_libs $deplib" ;;
  12106. - esac
  12107. - done
  12108. - eval $var=\"$tmp_libs\"
  12109. - done # for var
  12110. - fi
  12111. - # Last step: remove runtime libs from dependency_libs
  12112. - # (they stay in deplibs)
  12113. - tmp_libs=
  12114. - for i in $dependency_libs ; do
  12115. - case " $predeps $postdeps $compiler_lib_search_path " in
  12116. - *" $i "*)
  12117. - i=""
  12118. - ;;
  12119. - esac
  12120. - if test -n "$i" ; then
  12121. - tmp_libs="$tmp_libs $i"
  12122. - fi
  12123. - done
  12124. - dependency_libs=$tmp_libs
  12125. - done # for pass
  12126. - if test "$linkmode" = prog; then
  12127. - dlfiles="$newdlfiles"
  12128. - dlprefiles="$newdlprefiles"
  12129. - fi
  12130. - case $linkmode in
  12131. - oldlib)
  12132. - if test -n "$deplibs"; then
  12133. - $echo "$modename: warning: \`-l' and \`-L' are ignored for archives" 1>&2
  12134. - fi
  12135. + $ECHO "\
  12136. +#! $SHELL
  12137. - if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then
  12138. - $echo "$modename: warning: \`-dlopen' is ignored for archives" 1>&2
  12139. - fi
  12140. +# $output - temporary wrapper script for $objdir/$outputname
  12141. +# Generated by $PROGRAM (GNU $PACKAGE$TIMESTAMP) $VERSION
  12142. +#
  12143. +# The $output program cannot be directly executed until all the libtool
  12144. +# libraries that it depends on are installed.
  12145. +#
  12146. +# This wrapper script should never be moved out of the build directory.
  12147. +# If it is, it will not operate correctly.
  12148. - if test -n "$rpath"; then
  12149. - $echo "$modename: warning: \`-rpath' is ignored for archives" 1>&2
  12150. - fi
  12151. +# Sed substitution that helps us do robust quoting. It backslashifies
  12152. +# metacharacters that are still active within double-quoted strings.
  12153. +Xsed='${SED} -e 1s/^X//'
  12154. +sed_quote_subst='$sed_quote_subst'
  12155. - if test -n "$xrpath"; then
  12156. - $echo "$modename: warning: \`-R' is ignored for archives" 1>&2
  12157. - fi
  12158. +# Be Bourne compatible
  12159. +if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then
  12160. + emulate sh
  12161. + NULLCMD=:
  12162. + # Zsh 3.x and 4.x performs word splitting on \${1+\"\$@\"}, which
  12163. + # is contrary to our usage. Disable this feature.
  12164. + alias -g '\${1+\"\$@\"}'='\"\$@\"'
  12165. + setopt NO_GLOB_SUBST
  12166. +else
  12167. + case \`(set -o) 2>/dev/null\` in *posix*) set -o posix;; esac
  12168. +fi
  12169. +BIN_SH=xpg4; export BIN_SH # for Tru64
  12170. +DUALCASE=1; export DUALCASE # for MKS sh
  12171. - if test -n "$vinfo"; then
  12172. - $echo "$modename: warning: \`-version-info/-version-number' is ignored for archives" 1>&2
  12173. - fi
  12174. +# The HP-UX ksh and POSIX shell print the target directory to stdout
  12175. +# if CDPATH is set.
  12176. +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  12177. - if test -n "$release"; then
  12178. - $echo "$modename: warning: \`-release' is ignored for archives" 1>&2
  12179. - fi
  12180. +relink_command=\"$relink_command\"
  12181. - if test -n "$export_symbols" || test -n "$export_symbols_regex"; then
  12182. - $echo "$modename: warning: \`-export-symbols' is ignored for archives" 1>&2
  12183. - fi
  12184. +# This environment variable determines our operation mode.
  12185. +if test \"\$libtool_install_magic\" = \"$magic\"; then
  12186. + # install mode needs the following variables:
  12187. + generated_by_libtool_version='$macro_version'
  12188. + notinst_deplibs='$notinst_deplibs'
  12189. +else
  12190. + # When we are sourced in execute mode, \$file and \$ECHO are already set.
  12191. + if test \"\$libtool_execute_magic\" != \"$magic\"; then
  12192. + ECHO=\"$qecho\"
  12193. + file=\"\$0\"
  12194. + # Make sure echo works.
  12195. + if test \"X\$1\" = X--no-reexec; then
  12196. + # Discard the --no-reexec flag, and continue.
  12197. + shift
  12198. + elif test \"X\`{ \$ECHO '\t'; } 2>/dev/null\`\" = 'X\t'; then
  12199. + # Yippee, \$ECHO works!
  12200. + :
  12201. + else
  12202. + # Restart under the correct shell, and then maybe \$ECHO will work.
  12203. + exec $SHELL \"\$0\" --no-reexec \${1+\"\$@\"}
  12204. + fi
  12205. + fi\
  12206. +"
  12207. + $ECHO "\
  12208. - # Now set the variables for building old libraries.
  12209. - build_libtool_libs=no
  12210. - oldlibs="$output"
  12211. - objs="$objs$old_deplibs"
  12212. - ;;
  12213. + # Find the directory that this script lives in.
  12214. + thisdir=\`\$ECHO \"X\$file\" | \$Xsed -e 's%/[^/]*$%%'\`
  12215. + test \"x\$thisdir\" = \"x\$file\" && thisdir=.
  12216. - lib)
  12217. - # Make sure we only generate libraries of the form `libNAME.la'.
  12218. - case $outputname in
  12219. - lib*)
  12220. - name=`$echo "X$outputname" | $Xsed -e 's/\.la$//' -e 's/^lib//'`
  12221. - eval shared_ext=\"$shrext_cmds\"
  12222. - eval libname=\"$libname_spec\"
  12223. - ;;
  12224. - *)
  12225. - if test "$module" = no; then
  12226. - $echo "$modename: libtool library \`$output' must begin with \`lib'" 1>&2
  12227. - $echo "$help" 1>&2
  12228. - exit $EXIT_FAILURE
  12229. - fi
  12230. - if test "$need_lib_prefix" != no; then
  12231. - # Add the "lib" prefix for modules if required
  12232. - name=`$echo "X$outputname" | $Xsed -e 's/\.la$//'`
  12233. - eval shared_ext=\"$shrext_cmds\"
  12234. - eval libname=\"$libname_spec\"
  12235. - else
  12236. - libname=`$echo "X$outputname" | $Xsed -e 's/\.la$//'`
  12237. - fi
  12238. - ;;
  12239. + # Follow symbolic links until we get to the real thisdir.
  12240. + file=\`ls -ld \"\$file\" | ${SED} -n 's/.*-> //p'\`
  12241. + while test -n \"\$file\"; do
  12242. + destdir=\`\$ECHO \"X\$file\" | \$Xsed -e 's%/[^/]*\$%%'\`
  12243. +
  12244. + # If there was a directory component, then change thisdir.
  12245. + if test \"x\$destdir\" != \"x\$file\"; then
  12246. + case \"\$destdir\" in
  12247. + [\\\\/]* | [A-Za-z]:[\\\\/]*) thisdir=\"\$destdir\" ;;
  12248. + *) thisdir=\"\$thisdir/\$destdir\" ;;
  12249. esac
  12250. + fi
  12251. - if test -n "$objs"; then
  12252. - if test "$deplibs_check_method" != pass_all; then
  12253. - $echo "$modename: cannot build libtool library \`$output' from non-libtool objects on this host:$objs" 2>&1
  12254. - exit $EXIT_FAILURE
  12255. - else
  12256. - $echo
  12257. - $echo "*** Warning: Linking the shared library $output against the non-libtool"
  12258. - $echo "*** objects $objs is not portable!"
  12259. - libobjs="$libobjs $objs"
  12260. - fi
  12261. - fi
  12262. + file=\`\$ECHO \"X\$file\" | \$Xsed -e 's%^.*/%%'\`
  12263. + file=\`ls -ld \"\$thisdir/\$file\" | ${SED} -n 's/.*-> //p'\`
  12264. + done
  12265. +"
  12266. +}
  12267. +# end: func_emit_wrapper_part1
  12268. - if test "$dlself" != no; then
  12269. - $echo "$modename: warning: \`-dlopen self' is ignored for libtool libraries" 1>&2
  12270. - fi
  12271. +# func_emit_wrapper_part2 [arg=no]
  12272. +#
  12273. +# Emit the second part of a libtool wrapper script on stdout.
  12274. +# For more information, see the description associated with
  12275. +# func_emit_wrapper(), below.
  12276. +func_emit_wrapper_part2 ()
  12277. +{
  12278. + func_emit_wrapper_part2_arg1=no
  12279. + if test -n "$1" ; then
  12280. + func_emit_wrapper_part2_arg1=$1
  12281. + fi
  12282. +
  12283. + $ECHO "\
  12284. +
  12285. + # Usually 'no', except on cygwin/mingw when embedded into
  12286. + # the cwrapper.
  12287. + WRAPPER_SCRIPT_BELONGS_IN_OBJDIR=$func_emit_wrapper_part2_arg1
  12288. + if test \"\$WRAPPER_SCRIPT_BELONGS_IN_OBJDIR\" = \"yes\"; then
  12289. + # special case for '.'
  12290. + if test \"\$thisdir\" = \".\"; then
  12291. + thisdir=\`pwd\`
  12292. + fi
  12293. + # remove .libs from thisdir
  12294. + case \"\$thisdir\" in
  12295. + *[\\\\/]$objdir ) thisdir=\`\$ECHO \"X\$thisdir\" | \$Xsed -e 's%[\\\\/][^\\\\/]*$%%'\` ;;
  12296. + $objdir ) thisdir=. ;;
  12297. + esac
  12298. + fi
  12299. - set dummy $rpath
  12300. - if test "$#" -gt 2; then
  12301. - $echo "$modename: warning: ignoring multiple \`-rpath's for a libtool library" 1>&2
  12302. + # Try to get the absolute directory name.
  12303. + absdir=\`cd \"\$thisdir\" && pwd\`
  12304. + test -n \"\$absdir\" && thisdir=\"\$absdir\"
  12305. +"
  12306. +
  12307. + if test "$fast_install" = yes; then
  12308. + $ECHO "\
  12309. + program=lt-'$outputname'$exeext
  12310. + progdir=\"\$thisdir/$objdir\"
  12311. +
  12312. + if test ! -f \"\$progdir/\$program\" ||
  12313. + { file=\`ls -1dt \"\$progdir/\$program\" \"\$progdir/../\$program\" 2>/dev/null | ${SED} 1q\`; \\
  12314. + test \"X\$file\" != \"X\$progdir/\$program\"; }; then
  12315. +
  12316. + file=\"\$\$-\$program\"
  12317. +
  12318. + if test ! -d \"\$progdir\"; then
  12319. + $MKDIR \"\$progdir\"
  12320. + else
  12321. + $RM \"\$progdir/\$file\"
  12322. + fi"
  12323. +
  12324. + $ECHO "\
  12325. +
  12326. + # relink executable if necessary
  12327. + if test -n \"\$relink_command\"; then
  12328. + if relink_command_output=\`eval \$relink_command 2>&1\`; then :
  12329. + else
  12330. + $ECHO \"\$relink_command_output\" >&2
  12331. + $RM \"\$progdir/\$file\"
  12332. + exit 1
  12333. fi
  12334. - install_libdir="$2"
  12335. + fi
  12336. - oldlibs=
  12337. - if test -z "$rpath"; then
  12338. - if test "$build_libtool_libs" = yes; then
  12339. - # Building a libtool convenience library.
  12340. - # Some compilers have problems with a `.al' extension so
  12341. - # convenience libraries should have the same extension an
  12342. - # archive normally would.
  12343. - oldlibs="$output_objdir/$libname.$libext $oldlibs"
  12344. - build_libtool_libs=convenience
  12345. - build_old_libs=yes
  12346. + $MV \"\$progdir/\$file\" \"\$progdir/\$program\" 2>/dev/null ||
  12347. + { $RM \"\$progdir/\$program\";
  12348. + $MV \"\$progdir/\$file\" \"\$progdir/\$program\"; }
  12349. + $RM \"\$progdir/\$file\"
  12350. + fi"
  12351. + else
  12352. + $ECHO "\
  12353. + program='$outputname'
  12354. + progdir=\"\$thisdir/$objdir\"
  12355. +"
  12356. fi
  12357. - if test -n "$vinfo"; then
  12358. - $echo "$modename: warning: \`-version-info/-version-number' is ignored for convenience libraries" 1>&2
  12359. - fi
  12360. + $ECHO "\
  12361. - if test -n "$release"; then
  12362. - $echo "$modename: warning: \`-release' is ignored for convenience libraries" 1>&2
  12363. - fi
  12364. - else
  12365. + if test -f \"\$progdir/\$program\"; then"
  12366. - # Parse the version information argument.
  12367. - save_ifs="$IFS"; IFS=':'
  12368. - set dummy $vinfo 0 0 0
  12369. - IFS="$save_ifs"
  12370. + # Export our shlibpath_var if we have one.
  12371. + if test "$shlibpath_overrides_runpath" = yes && test -n "$shlibpath_var" && test -n "$temp_rpath"; then
  12372. + $ECHO "\
  12373. + # Add our own library path to $shlibpath_var
  12374. + $shlibpath_var=\"$temp_rpath\$$shlibpath_var\"
  12375. - if test -n "$8"; then
  12376. - $echo "$modename: too many parameters to \`-version-info'" 1>&2
  12377. - $echo "$help" 1>&2
  12378. - exit $EXIT_FAILURE
  12379. - fi
  12380. + # Some systems cannot cope with colon-terminated $shlibpath_var
  12381. + # The second colon is a workaround for a bug in BeOS R4 sed
  12382. + $shlibpath_var=\`\$ECHO \"X\$$shlibpath_var\" | \$Xsed -e 's/::*\$//'\`
  12383. - # convert absolute version numbers to libtool ages
  12384. - # this retains compatibility with .la files and attempts
  12385. - # to make the code below a bit more comprehensible
  12386. + export $shlibpath_var
  12387. +"
  12388. + fi
  12389. - case $vinfo_number in
  12390. - yes)
  12391. - number_major="$2"
  12392. - number_minor="$3"
  12393. - number_revision="$4"
  12394. - #
  12395. - # There are really only two kinds -- those that
  12396. - # use the current revision as the major version
  12397. - # and those that subtract age and use age as
  12398. - # a minor version. But, then there is irix
  12399. - # which has an extra 1 added just for fun
  12400. - #
  12401. - case $version_type in
  12402. - darwin|linux|osf|windows)
  12403. - current=`expr $number_major + $number_minor`
  12404. - age="$number_minor"
  12405. - revision="$number_revision"
  12406. - ;;
  12407. - freebsd-aout|freebsd-elf|sunos)
  12408. - current="$number_major"
  12409. - revision="$number_minor"
  12410. - age="0"
  12411. - ;;
  12412. - irix|nonstopux)
  12413. - current=`expr $number_major + $number_minor - 1`
  12414. - age="$number_minor"
  12415. - revision="$number_minor"
  12416. - ;;
  12417. - esac
  12418. - ;;
  12419. - no)
  12420. - current="$2"
  12421. - revision="$3"
  12422. - age="$4"
  12423. - ;;
  12424. - esac
  12425. + # fixup the dll searchpath if we need to.
  12426. + if test -n "$dllsearchpath"; then
  12427. + $ECHO "\
  12428. + # Add the dll search path components to the executable PATH
  12429. + PATH=$dllsearchpath:\$PATH
  12430. +"
  12431. + fi
  12432. - # Check that each of the things are valid numbers.
  12433. - case $current in
  12434. - 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]) ;;
  12435. - *)
  12436. - $echo "$modename: CURRENT \`$current' must be a nonnegative integer" 1>&2
  12437. - $echo "$modename: \`$vinfo' is not valid version information" 1>&2
  12438. - exit $EXIT_FAILURE
  12439. + $ECHO "\
  12440. + if test \"\$libtool_execute_magic\" != \"$magic\"; then
  12441. + # Run the actual program with our arguments.
  12442. +"
  12443. + case $host in
  12444. + # Backslashes separate directories on plain windows
  12445. + *-*-mingw | *-*-os2* | *-cegcc*)
  12446. + $ECHO "\
  12447. + exec \"\$progdir\\\\\$program\" \${1+\"\$@\"}
  12448. +"
  12449. ;;
  12450. - esac
  12451. - case $revision in
  12452. - 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]) ;;
  12453. *)
  12454. - $echo "$modename: REVISION \`$revision' must be a nonnegative integer" 1>&2
  12455. - $echo "$modename: \`$vinfo' is not valid version information" 1>&2
  12456. - exit $EXIT_FAILURE
  12457. + $ECHO "\
  12458. + exec \"\$progdir/\$program\" \${1+\"\$@\"}
  12459. +"
  12460. ;;
  12461. esac
  12462. + $ECHO "\
  12463. + \$ECHO \"\$0: cannot exec \$program \$*\" 1>&2
  12464. + exit 1
  12465. + fi
  12466. + else
  12467. + # The program doesn't exist.
  12468. + \$ECHO \"\$0: error: \\\`\$progdir/\$program' does not exist\" 1>&2
  12469. + \$ECHO \"This script is just a wrapper for \$program.\" 1>&2
  12470. + $ECHO \"See the $PACKAGE documentation for more information.\" 1>&2
  12471. + exit 1
  12472. + fi
  12473. +fi\
  12474. +"
  12475. +}
  12476. +# end: func_emit_wrapper_part2
  12477. - case $age in
  12478. - 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]) ;;
  12479. - *)
  12480. - $echo "$modename: AGE \`$age' must be a nonnegative integer" 1>&2
  12481. - $echo "$modename: \`$vinfo' is not valid version information" 1>&2
  12482. - exit $EXIT_FAILURE
  12483. - ;;
  12484. - esac
  12485. - if test "$age" -gt "$current"; then
  12486. - $echo "$modename: AGE \`$age' is greater than the current interface number \`$current'" 1>&2
  12487. - $echo "$modename: \`$vinfo' is not valid version information" 1>&2
  12488. - exit $EXIT_FAILURE
  12489. +# func_emit_wrapper [arg=no]
  12490. +#
  12491. +# Emit a libtool wrapper script on stdout.
  12492. +# Don't directly open a file because we may want to
  12493. +# incorporate the script contents within a cygwin/mingw
  12494. +# wrapper executable. Must ONLY be called from within
  12495. +# func_mode_link because it depends on a number of variables
  12496. +# set therein.
  12497. +#
  12498. +# ARG is the value that the WRAPPER_SCRIPT_BELONGS_IN_OBJDIR
  12499. +# variable will take. If 'yes', then the emitted script
  12500. +# will assume that the directory in which it is stored is
  12501. +# the $objdir directory. This is a cygwin/mingw-specific
  12502. +# behavior.
  12503. +func_emit_wrapper ()
  12504. +{
  12505. + func_emit_wrapper_arg1=no
  12506. + if test -n "$1" ; then
  12507. + func_emit_wrapper_arg1=$1
  12508. fi
  12509. - # Calculate the version variables.
  12510. - major=
  12511. - versuffix=
  12512. - verstring=
  12513. - case $version_type in
  12514. - none) ;;
  12515. -
  12516. - darwin)
  12517. - # Like Linux, but with the current version available in
  12518. - # verstring for coding it into the library header
  12519. - major=.`expr $current - $age`
  12520. - versuffix="$major.$age.$revision"
  12521. - # Darwin ld doesn't like 0 for these options...
  12522. - minor_current=`expr $current + 1`
  12523. - verstring="${wl}-compatibility_version ${wl}$minor_current ${wl}-current_version ${wl}$minor_current.$revision"
  12524. - ;;
  12525. + # split this up so that func_emit_cwrapperexe_src
  12526. + # can call each part independently.
  12527. + func_emit_wrapper_part1 "${func_emit_wrapper_arg1}"
  12528. + func_emit_wrapper_part2 "${func_emit_wrapper_arg1}"
  12529. +}
  12530. - freebsd-aout)
  12531. - major=".$current"
  12532. - versuffix=".$current.$revision";
  12533. - ;;
  12534. - freebsd-elf)
  12535. - major=".$current"
  12536. - versuffix=".$current";
  12537. - ;;
  12538. +# func_to_host_path arg
  12539. +#
  12540. +# Convert paths to host format when used with build tools.
  12541. +# Intended for use with "native" mingw (where libtool itself
  12542. +# is running under the msys shell), or in the following cross-
  12543. +# build environments:
  12544. +# $build $host
  12545. +# mingw (msys) mingw [e.g. native]
  12546. +# cygwin mingw
  12547. +# *nix + wine mingw
  12548. +# where wine is equipped with the `winepath' executable.
  12549. +# In the native mingw case, the (msys) shell automatically
  12550. +# converts paths for any non-msys applications it launches,
  12551. +# but that facility isn't available from inside the cwrapper.
  12552. +# Similar accommodations are necessary for $host mingw and
  12553. +# $build cygwin. Calling this function does no harm for other
  12554. +# $host/$build combinations not listed above.
  12555. +#
  12556. +# ARG is the path (on $build) that should be converted to
  12557. +# the proper representation for $host. The result is stored
  12558. +# in $func_to_host_path_result.
  12559. +func_to_host_path ()
  12560. +{
  12561. + func_to_host_path_result="$1"
  12562. + if test -n "$1" ; then
  12563. + case $host in
  12564. + *mingw* )
  12565. + lt_sed_naive_backslashify='s|\\\\*|\\|g;s|/|\\|g;s|\\|\\\\|g'
  12566. + case $build in
  12567. + *mingw* ) # actually, msys
  12568. + # awkward: cmd appends spaces to result
  12569. + lt_sed_strip_trailing_spaces="s/[ ]*\$//"
  12570. + func_to_host_path_tmp1=`( cmd //c echo "$1" |\
  12571. + $SED -e "$lt_sed_strip_trailing_spaces" ) 2>/dev/null || echo ""`
  12572. + func_to_host_path_result=`echo "$func_to_host_path_tmp1" |\
  12573. + $SED -e "$lt_sed_naive_backslashify"`
  12574. + ;;
  12575. + *cygwin* )
  12576. + func_to_host_path_tmp1=`cygpath -w "$1"`
  12577. + func_to_host_path_result=`echo "$func_to_host_path_tmp1" |\
  12578. + $SED -e "$lt_sed_naive_backslashify"`
  12579. + ;;
  12580. + * )
  12581. + # Unfortunately, winepath does not exit with a non-zero
  12582. + # error code, so we are forced to check the contents of
  12583. + # stdout. On the other hand, if the command is not
  12584. + # found, the shell will set an exit code of 127 and print
  12585. + # *an error message* to stdout. So we must check for both
  12586. + # error code of zero AND non-empty stdout, which explains
  12587. + # the odd construction:
  12588. + func_to_host_path_tmp1=`winepath -w "$1" 2>/dev/null`
  12589. + if test "$?" -eq 0 && test -n "${func_to_host_path_tmp1}"; then
  12590. + func_to_host_path_result=`echo "$func_to_host_path_tmp1" |\
  12591. + $SED -e "$lt_sed_naive_backslashify"`
  12592. + else
  12593. + # Allow warning below.
  12594. + func_to_host_path_result=""
  12595. + fi
  12596. + ;;
  12597. + esac
  12598. + if test -z "$func_to_host_path_result" ; then
  12599. + func_error "Could not determine host path corresponding to"
  12600. + func_error " '$1'"
  12601. + func_error "Continuing, but uninstalled executables may not work."
  12602. + # Fallback:
  12603. + func_to_host_path_result="$1"
  12604. + fi
  12605. + ;;
  12606. + esac
  12607. + fi
  12608. +}
  12609. +# end: func_to_host_path
  12610. - irix | nonstopux)
  12611. - major=`expr $current - $age + 1`
  12612. +# func_to_host_pathlist arg
  12613. +#
  12614. +# Convert pathlists to host format when used with build tools.
  12615. +# See func_to_host_path(), above. This function supports the
  12616. +# following $build/$host combinations (but does no harm for
  12617. +# combinations not listed here):
  12618. +# $build $host
  12619. +# mingw (msys) mingw [e.g. native]
  12620. +# cygwin mingw
  12621. +# *nix + wine mingw
  12622. +#
  12623. +# Path separators are also converted from $build format to
  12624. +# $host format. If ARG begins or ends with a path separator
  12625. +# character, it is preserved (but converted to $host format)
  12626. +# on output.
  12627. +#
  12628. +# ARG is a pathlist (on $build) that should be converted to
  12629. +# the proper representation on $host. The result is stored
  12630. +# in $func_to_host_pathlist_result.
  12631. +func_to_host_pathlist ()
  12632. +{
  12633. + func_to_host_pathlist_result="$1"
  12634. + if test -n "$1" ; then
  12635. + case $host in
  12636. + *mingw* )
  12637. + lt_sed_naive_backslashify='s|\\\\*|\\|g;s|/|\\|g;s|\\|\\\\|g'
  12638. + # Remove leading and trailing path separator characters from
  12639. + # ARG. msys behavior is inconsistent here, cygpath turns them
  12640. + # into '.;' and ';.', and winepath ignores them completely.
  12641. + func_to_host_pathlist_tmp2="$1"
  12642. + # Once set for this call, this variable should not be
  12643. + # reassigned. It is used in tha fallback case.
  12644. + func_to_host_pathlist_tmp1=`echo "$func_to_host_pathlist_tmp2" |\
  12645. + $SED -e 's|^:*||' -e 's|:*$||'`
  12646. + case $build in
  12647. + *mingw* ) # Actually, msys.
  12648. + # Awkward: cmd appends spaces to result.
  12649. + lt_sed_strip_trailing_spaces="s/[ ]*\$//"
  12650. + func_to_host_pathlist_tmp2=`( cmd //c echo "$func_to_host_pathlist_tmp1" |\
  12651. + $SED -e "$lt_sed_strip_trailing_spaces" ) 2>/dev/null || echo ""`
  12652. + func_to_host_pathlist_result=`echo "$func_to_host_pathlist_tmp2" |\
  12653. + $SED -e "$lt_sed_naive_backslashify"`
  12654. + ;;
  12655. + *cygwin* )
  12656. + func_to_host_pathlist_tmp2=`cygpath -w -p "$func_to_host_pathlist_tmp1"`
  12657. + func_to_host_pathlist_result=`echo "$func_to_host_pathlist_tmp2" |\
  12658. + $SED -e "$lt_sed_naive_backslashify"`
  12659. + ;;
  12660. + * )
  12661. + # unfortunately, winepath doesn't convert pathlists
  12662. + func_to_host_pathlist_result=""
  12663. + func_to_host_pathlist_oldIFS=$IFS
  12664. + IFS=:
  12665. + for func_to_host_pathlist_f in $func_to_host_pathlist_tmp1 ; do
  12666. + IFS=$func_to_host_pathlist_oldIFS
  12667. + if test -n "$func_to_host_pathlist_f" ; then
  12668. + func_to_host_path "$func_to_host_pathlist_f"
  12669. + if test -n "$func_to_host_path_result" ; then
  12670. + if test -z "$func_to_host_pathlist_result" ; then
  12671. + func_to_host_pathlist_result="$func_to_host_path_result"
  12672. + else
  12673. + func_to_host_pathlist_result="$func_to_host_pathlist_result;$func_to_host_path_result"
  12674. + fi
  12675. + fi
  12676. + fi
  12677. + IFS=:
  12678. + done
  12679. + IFS=$func_to_host_pathlist_oldIFS
  12680. + ;;
  12681. + esac
  12682. + if test -z "$func_to_host_pathlist_result" ; then
  12683. + func_error "Could not determine the host path(s) corresponding to"
  12684. + func_error " '$1'"
  12685. + func_error "Continuing, but uninstalled executables may not work."
  12686. + # Fallback. This may break if $1 contains DOS-style drive
  12687. + # specifications. The fix is not to complicate the expression
  12688. + # below, but for the user to provide a working wine installation
  12689. + # with winepath so that path translation in the cross-to-mingw
  12690. + # case works properly.
  12691. + lt_replace_pathsep_nix_to_dos="s|:|;|g"
  12692. + func_to_host_pathlist_result=`echo "$func_to_host_pathlist_tmp1" |\
  12693. + $SED -e "$lt_replace_pathsep_nix_to_dos"`
  12694. + fi
  12695. + # Now, add the leading and trailing path separators back
  12696. + case "$1" in
  12697. + :* ) func_to_host_pathlist_result=";$func_to_host_pathlist_result"
  12698. + ;;
  12699. + esac
  12700. + case "$1" in
  12701. + *: ) func_to_host_pathlist_result="$func_to_host_pathlist_result;"
  12702. + ;;
  12703. + esac
  12704. + ;;
  12705. + esac
  12706. + fi
  12707. +}
  12708. +# end: func_to_host_pathlist
  12709. - case $version_type in
  12710. - nonstopux) verstring_prefix=nonstopux ;;
  12711. - *) verstring_prefix=sgi ;;
  12712. - esac
  12713. - verstring="$verstring_prefix$major.$revision"
  12714. +# func_emit_cwrapperexe_src
  12715. +# emit the source code for a wrapper executable on stdout
  12716. +# Must ONLY be called from within func_mode_link because
  12717. +# it depends on a number of variable set therein.
  12718. +func_emit_cwrapperexe_src ()
  12719. +{
  12720. + cat <<EOF
  12721. - # Add in all the interfaces that we are compatible with.
  12722. - loop=$revision
  12723. - while test "$loop" -ne 0; do
  12724. - iface=`expr $revision - $loop`
  12725. - loop=`expr $loop - 1`
  12726. - verstring="$verstring_prefix$major.$iface:$verstring"
  12727. - done
  12728. +/* $cwrappersource - temporary wrapper executable for $objdir/$outputname
  12729. + Generated by $PROGRAM (GNU $PACKAGE$TIMESTAMP) $VERSION
  12730. - # Before this point, $major must not contain `.'.
  12731. - major=.$major
  12732. - versuffix="$major.$revision"
  12733. - ;;
  12734. + The $output program cannot be directly executed until all the libtool
  12735. + libraries that it depends on are installed.
  12736. - linux)
  12737. - major=.`expr $current - $age`
  12738. - versuffix="$major.$age.$revision"
  12739. - ;;
  12740. + This wrapper executable should never be moved out of the build directory.
  12741. + If it is, it will not operate correctly.
  12742. - osf)
  12743. - major=.`expr $current - $age`
  12744. - versuffix=".$current.$age.$revision"
  12745. - verstring="$current.$age.$revision"
  12746. + Currently, it simply execs the wrapper *script* "$SHELL $output",
  12747. + but could eventually absorb all of the scripts functionality and
  12748. + exec $objdir/$outputname directly.
  12749. +*/
  12750. +EOF
  12751. + cat <<"EOF"
  12752. +#include <stdio.h>
  12753. +#include <stdlib.h>
  12754. +#ifdef _MSC_VER
  12755. +# include <direct.h>
  12756. +# include <process.h>
  12757. +# include <io.h>
  12758. +# define setmode _setmode
  12759. +#else
  12760. +# include <unistd.h>
  12761. +# include <stdint.h>
  12762. +# ifdef __CYGWIN__
  12763. +# include <io.h>
  12764. +# define HAVE_SETENV
  12765. +# ifdef __STRICT_ANSI__
  12766. +char *realpath (const char *, char *);
  12767. +int putenv (char *);
  12768. +int setenv (const char *, const char *, int);
  12769. +# endif
  12770. +# endif
  12771. +#endif
  12772. +#include <malloc.h>
  12773. +#include <stdarg.h>
  12774. +#include <assert.h>
  12775. +#include <string.h>
  12776. +#include <ctype.h>
  12777. +#include <errno.h>
  12778. +#include <fcntl.h>
  12779. +#include <sys/stat.h>
  12780. - # Add in all the interfaces that we are compatible with.
  12781. - loop=$age
  12782. - while test "$loop" -ne 0; do
  12783. - iface=`expr $current - $loop`
  12784. - loop=`expr $loop - 1`
  12785. - verstring="$verstring:${iface}.0"
  12786. - done
  12787. +#if defined(PATH_MAX)
  12788. +# define LT_PATHMAX PATH_MAX
  12789. +#elif defined(MAXPATHLEN)
  12790. +# define LT_PATHMAX MAXPATHLEN
  12791. +#else
  12792. +# define LT_PATHMAX 1024
  12793. +#endif
  12794. - # Make executables depend on our current version.
  12795. - verstring="$verstring:${current}.0"
  12796. - ;;
  12797. +#ifndef S_IXOTH
  12798. +# define S_IXOTH 0
  12799. +#endif
  12800. +#ifndef S_IXGRP
  12801. +# define S_IXGRP 0
  12802. +#endif
  12803. - sunos)
  12804. - major=".$current"
  12805. - versuffix=".$current.$revision"
  12806. - ;;
  12807. +#ifdef _MSC_VER
  12808. +# define S_IXUSR _S_IEXEC
  12809. +# define stat _stat
  12810. +# ifndef _INTPTR_T_DEFINED
  12811. +# define intptr_t int
  12812. +# endif
  12813. +#endif
  12814. - windows)
  12815. - # Use '-' rather than '.', since we only want one
  12816. - # extension on DOS 8.3 filesystems.
  12817. - major=`expr $current - $age`
  12818. - versuffix="-$major"
  12819. - ;;
  12820. +#ifndef DIR_SEPARATOR
  12821. +# define DIR_SEPARATOR '/'
  12822. +# define PATH_SEPARATOR ':'
  12823. +#endif
  12824. - *)
  12825. - $echo "$modename: unknown library version type \`$version_type'" 1>&2
  12826. - $echo "Fatal configuration error. See the $PACKAGE docs for more information." 1>&2
  12827. - exit $EXIT_FAILURE
  12828. - ;;
  12829. - esac
  12830. +#if defined (_WIN32) || defined (__MSDOS__) || defined (__DJGPP__) || \
  12831. + defined (__OS2__)
  12832. +# define HAVE_DOS_BASED_FILE_SYSTEM
  12833. +# define FOPEN_WB "wb"
  12834. +# ifndef DIR_SEPARATOR_2
  12835. +# define DIR_SEPARATOR_2 '\\'
  12836. +# endif
  12837. +# ifndef PATH_SEPARATOR_2
  12838. +# define PATH_SEPARATOR_2 ';'
  12839. +# endif
  12840. +#endif
  12841. - # Clear the version info if we defaulted, and they specified a release.
  12842. - if test -z "$vinfo" && test -n "$release"; then
  12843. - major=
  12844. - case $version_type in
  12845. - darwin)
  12846. - # we can't check for "0.0" in archive_cmds due to quoting
  12847. - # problems, so we reset it completely
  12848. - verstring=
  12849. - ;;
  12850. - *)
  12851. - verstring="0.0"
  12852. - ;;
  12853. - esac
  12854. - if test "$need_version" = no; then
  12855. - versuffix=
  12856. - else
  12857. - versuffix=".0.0"
  12858. - fi
  12859. - fi
  12860. +#ifndef DIR_SEPARATOR_2
  12861. +# define IS_DIR_SEPARATOR(ch) ((ch) == DIR_SEPARATOR)
  12862. +#else /* DIR_SEPARATOR_2 */
  12863. +# define IS_DIR_SEPARATOR(ch) \
  12864. + (((ch) == DIR_SEPARATOR) || ((ch) == DIR_SEPARATOR_2))
  12865. +#endif /* DIR_SEPARATOR_2 */
  12866. - # Remove version info from name if versioning should be avoided
  12867. - if test "$avoid_version" = yes && test "$need_version" = no; then
  12868. - major=
  12869. - versuffix=
  12870. - verstring=""
  12871. - fi
  12872. +#ifndef PATH_SEPARATOR_2
  12873. +# define IS_PATH_SEPARATOR(ch) ((ch) == PATH_SEPARATOR)
  12874. +#else /* PATH_SEPARATOR_2 */
  12875. +# define IS_PATH_SEPARATOR(ch) ((ch) == PATH_SEPARATOR_2)
  12876. +#endif /* PATH_SEPARATOR_2 */
  12877. - # Check to see if the archive will have undefined symbols.
  12878. - if test "$allow_undefined" = yes; then
  12879. - if test "$allow_undefined_flag" = unsupported; then
  12880. - $echo "$modename: warning: undefined symbols not allowed in $host shared libraries" 1>&2
  12881. - build_libtool_libs=no
  12882. - build_old_libs=yes
  12883. - fi
  12884. - else
  12885. - # Don't allow undefined symbols.
  12886. - allow_undefined_flag="$no_undefined_flag"
  12887. - fi
  12888. - fi
  12889. +#ifdef __CYGWIN__
  12890. +# define FOPEN_WB "wb"
  12891. +#endif
  12892. - if test "$mode" != relink; then
  12893. - # Remove our outputs, but don't remove object files since they
  12894. - # may have been created when compiling PIC objects.
  12895. - removelist=
  12896. - tempremovelist=`$echo "$output_objdir/*"`
  12897. - for p in $tempremovelist; do
  12898. - case $p in
  12899. - *.$objext)
  12900. - ;;
  12901. - $output_objdir/$outputname | $output_objdir/$libname.* | $output_objdir/${libname}${release}.*)
  12902. - if test "X$precious_files_regex" != "X"; then
  12903. - if echo $p | $EGREP -e "$precious_files_regex" >/dev/null 2>&1
  12904. - then
  12905. - continue
  12906. - fi
  12907. - fi
  12908. - removelist="$removelist $p"
  12909. - ;;
  12910. - *) ;;
  12911. - esac
  12912. - done
  12913. - if test -n "$removelist"; then
  12914. - $show "${rm}r $removelist"
  12915. - $run ${rm}r $removelist
  12916. - fi
  12917. - fi
  12918. +#ifndef FOPEN_WB
  12919. +# define FOPEN_WB "w"
  12920. +#endif
  12921. +#ifndef _O_BINARY
  12922. +# define _O_BINARY 0
  12923. +#endif
  12924. - # Now set the variables for building old libraries.
  12925. - if test "$build_old_libs" = yes && test "$build_libtool_libs" != convenience ; then
  12926. - oldlibs="$oldlibs $output_objdir/$libname.$libext"
  12927. +#define XMALLOC(type, num) ((type *) xmalloc ((num) * sizeof(type)))
  12928. +#define XFREE(stale) do { \
  12929. + if (stale) { free ((void *) stale); stale = 0; } \
  12930. +} while (0)
  12931. - # Transform .lo files to .o files.
  12932. - oldobjs="$objs "`$echo "X$libobjs" | $SP2NL | $Xsed -e '/\.'${libext}'$/d' -e "$lo2o" | $NL2SP`
  12933. - fi
  12934. +#undef LTWRAPPER_DEBUGPRINTF
  12935. +#if defined DEBUGWRAPPER
  12936. +# define LTWRAPPER_DEBUGPRINTF(args) ltwrapper_debugprintf args
  12937. +static void
  12938. +ltwrapper_debugprintf (const char *fmt, ...)
  12939. +{
  12940. + va_list args;
  12941. + va_start (args, fmt);
  12942. + (void) vfprintf (stderr, fmt, args);
  12943. + va_end (args);
  12944. +}
  12945. +#else
  12946. +# define LTWRAPPER_DEBUGPRINTF(args)
  12947. +#endif
  12948. - # Eliminate all temporary directories.
  12949. - for path in $notinst_path; do
  12950. - lib_search_path=`$echo "$lib_search_path " | ${SED} -e "s% $path % %g"`
  12951. - deplibs=`$echo "$deplibs " | ${SED} -e "s% -L$path % %g"`
  12952. - dependency_libs=`$echo "$dependency_libs " | ${SED} -e "s% -L$path % %g"`
  12953. - done
  12954. +const char *program_name = NULL;
  12955. - if test -n "$xrpath"; then
  12956. - # If the user specified any rpath flags, then add them.
  12957. - temp_xrpath=
  12958. - for libdir in $xrpath; do
  12959. - temp_xrpath="$temp_xrpath -R$libdir"
  12960. - case "$finalize_rpath " in
  12961. - *" $libdir "*) ;;
  12962. - *) finalize_rpath="$finalize_rpath $libdir" ;;
  12963. - esac
  12964. - done
  12965. - if test "$hardcode_into_libs" != yes || test "$build_old_libs" = yes; then
  12966. - dependency_libs="$temp_xrpath $dependency_libs"
  12967. - fi
  12968. - fi
  12969. +void *xmalloc (size_t num);
  12970. +char *xstrdup (const char *string);
  12971. +const char *base_name (const char *name);
  12972. +char *find_executable (const char *wrapper);
  12973. +char *chase_symlinks (const char *pathspec);
  12974. +int make_executable (const char *path);
  12975. +int check_executable (const char *path);
  12976. +char *strendzap (char *str, const char *pat);
  12977. +void lt_fatal (const char *message, ...);
  12978. +void lt_setenv (const char *name, const char *value);
  12979. +char *lt_extend_str (const char *orig_value, const char *add, int to_end);
  12980. +void lt_opt_process_env_set (const char *arg);
  12981. +void lt_opt_process_env_prepend (const char *arg);
  12982. +void lt_opt_process_env_append (const char *arg);
  12983. +int lt_split_name_value (const char *arg, char** name, char** value);
  12984. +void lt_update_exe_path (const char *name, const char *value);
  12985. +void lt_update_lib_path (const char *name, const char *value);
  12986. - # Make sure dlfiles contains only unique files that won't be dlpreopened
  12987. - old_dlfiles="$dlfiles"
  12988. - dlfiles=
  12989. - for lib in $old_dlfiles; do
  12990. - case " $dlprefiles $dlfiles " in
  12991. - *" $lib "*) ;;
  12992. - *) dlfiles="$dlfiles $lib" ;;
  12993. - esac
  12994. - done
  12995. +static const char *script_text_part1 =
  12996. +EOF
  12997. - # Make sure dlprefiles contains only unique files
  12998. - old_dlprefiles="$dlprefiles"
  12999. - dlprefiles=
  13000. - for lib in $old_dlprefiles; do
  13001. - case "$dlprefiles " in
  13002. - *" $lib "*) ;;
  13003. - *) dlprefiles="$dlprefiles $lib" ;;
  13004. - esac
  13005. - done
  13006. + func_emit_wrapper_part1 yes |
  13007. + $SED -e 's/\([\\"]\)/\\\1/g' \
  13008. + -e 's/^/ "/' -e 's/$/\\n"/'
  13009. + echo ";"
  13010. + cat <<EOF
  13011. - if test "$build_libtool_libs" = yes; then
  13012. - if test -n "$rpath"; then
  13013. - case $host in
  13014. - *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-*-beos*)
  13015. - # these systems don't actually have a c library (as such)!
  13016. - ;;
  13017. - *-*-rhapsody* | *-*-darwin1.[012])
  13018. - # Rhapsody C library is in the System framework
  13019. - deplibs="$deplibs -framework System"
  13020. - ;;
  13021. - *-*-netbsd*)
  13022. - # Don't link with libc until the a.out ld.so is fixed.
  13023. - ;;
  13024. - *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*)
  13025. - # Do not include libc due to us having libc/libc_r.
  13026. - ;;
  13027. - *-*-sco3.2v5* | *-*-sco5v6*)
  13028. - # Causes problems with __ctype
  13029. - ;;
  13030. - *-*-sysv4.2uw2* | *-*-sysv5* | *-*-unixware* | *-*-OpenUNIX*)
  13031. - # Compiler inserts libc in the correct place for threads to work
  13032. - ;;
  13033. - *)
  13034. - # Add libc to deplibs on all other systems if necessary.
  13035. - if test "$build_libtool_need_lc" = "yes"; then
  13036. - deplibs="$deplibs -lc"
  13037. - fi
  13038. - ;;
  13039. - esac
  13040. - fi
  13041. +static const char *script_text_part2 =
  13042. +EOF
  13043. + func_emit_wrapper_part2 yes |
  13044. + $SED -e 's/\([\\"]\)/\\\1/g' \
  13045. + -e 's/^/ "/' -e 's/$/\\n"/'
  13046. + echo ";"
  13047. +
  13048. + cat <<EOF
  13049. +const char * MAGIC_EXE = "$magic_exe";
  13050. +const char * LIB_PATH_VARNAME = "$shlibpath_var";
  13051. +EOF
  13052. - # Transform deplibs into only deplibs that can be linked in shared.
  13053. - name_save=$name
  13054. - libname_save=$libname
  13055. - release_save=$release
  13056. - versuffix_save=$versuffix
  13057. - major_save=$major
  13058. - # I'm not sure if I'm treating the release correctly. I think
  13059. - # release should show up in the -l (ie -lgmp5) so we don't want to
  13060. - # add it in twice. Is that correct?
  13061. - release=""
  13062. - versuffix=""
  13063. - major=""
  13064. - newdeplibs=
  13065. - droppeddeps=no
  13066. - case $deplibs_check_method in
  13067. - pass_all)
  13068. - # Don't check for shared/static. Everything works.
  13069. - # This might be a little naive. We might want to check
  13070. - # whether the library exists or not. But this is on
  13071. - # osf3 & osf4 and I'm not really sure... Just
  13072. - # implementing what was already the behavior.
  13073. - newdeplibs=$deplibs
  13074. - ;;
  13075. - test_compile)
  13076. - # This code stresses the "libraries are programs" paradigm to its
  13077. - # limits. Maybe even breaks it. We compile a program, linking it
  13078. - # against the deplibs as a proxy for the library. Then we can check
  13079. - # whether they linked in statically or dynamically with ldd.
  13080. - $rm conftest.c
  13081. - cat > conftest.c <<EOF
  13082. - int main() { return 0; }
  13083. + if test "$shlibpath_overrides_runpath" = yes && test -n "$shlibpath_var" && test -n "$temp_rpath"; then
  13084. + func_to_host_pathlist "$temp_rpath"
  13085. + cat <<EOF
  13086. +const char * LIB_PATH_VALUE = "$func_to_host_pathlist_result";
  13087. EOF
  13088. - $rm conftest
  13089. - $LTCC $LTCFLAGS -o conftest conftest.c $deplibs
  13090. - if test "$?" -eq 0 ; then
  13091. - ldd_output=`ldd conftest`
  13092. - for i in $deplibs; do
  13093. - name=`expr $i : '-l\(.*\)'`
  13094. - # If $name is empty we are operating on a -L argument.
  13095. - if test "$name" != "" && test "$name" -ne "0"; then
  13096. - if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
  13097. - case " $predeps $postdeps " in
  13098. - *" $i "*)
  13099. - newdeplibs="$newdeplibs $i"
  13100. - i=""
  13101. - ;;
  13102. - esac
  13103. - fi
  13104. - if test -n "$i" ; then
  13105. - libname=`eval \\$echo \"$libname_spec\"`
  13106. - deplib_matches=`eval \\$echo \"$library_names_spec\"`
  13107. - set dummy $deplib_matches
  13108. - deplib_match=$2
  13109. - if test `expr "$ldd_output" : ".*$deplib_match"` -ne 0 ; then
  13110. - newdeplibs="$newdeplibs $i"
  13111. - else
  13112. - droppeddeps=yes
  13113. - $echo
  13114. - $echo "*** Warning: dynamic linker does not accept needed library $i."
  13115. - $echo "*** I have the capability to make that library automatically link in when"
  13116. - $echo "*** you link to this library. But I can only do this if you have a"
  13117. - $echo "*** shared version of the library, which I believe you do not have"
  13118. - $echo "*** because a test_compile did reveal that the linker did not use it for"
  13119. - $echo "*** its dynamic dependency list that programs get resolved with at runtime."
  13120. - fi
  13121. - fi
  13122. - else
  13123. - newdeplibs="$newdeplibs $i"
  13124. - fi
  13125. - done
  13126. - else
  13127. - # Error occurred in the first compile. Let's try to salvage
  13128. - # the situation: Compile a separate program for each library.
  13129. - for i in $deplibs; do
  13130. - name=`expr $i : '-l\(.*\)'`
  13131. - # If $name is empty we are operating on a -L argument.
  13132. - if test "$name" != "" && test "$name" != "0"; then
  13133. - $rm conftest
  13134. - $LTCC $LTCFLAGS -o conftest conftest.c $i
  13135. - # Did it work?
  13136. - if test "$?" -eq 0 ; then
  13137. - ldd_output=`ldd conftest`
  13138. - if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
  13139. - case " $predeps $postdeps " in
  13140. - *" $i "*)
  13141. - newdeplibs="$newdeplibs $i"
  13142. - i=""
  13143. - ;;
  13144. - esac
  13145. - fi
  13146. - if test -n "$i" ; then
  13147. - libname=`eval \\$echo \"$libname_spec\"`
  13148. - deplib_matches=`eval \\$echo \"$library_names_spec\"`
  13149. - set dummy $deplib_matches
  13150. - deplib_match=$2
  13151. - if test `expr "$ldd_output" : ".*$deplib_match"` -ne 0 ; then
  13152. - newdeplibs="$newdeplibs $i"
  13153. - else
  13154. - droppeddeps=yes
  13155. - $echo
  13156. - $echo "*** Warning: dynamic linker does not accept needed library $i."
  13157. - $echo "*** I have the capability to make that library automatically link in when"
  13158. - $echo "*** you link to this library. But I can only do this if you have a"
  13159. - $echo "*** shared version of the library, which you do not appear to have"
  13160. - $echo "*** because a test_compile did reveal that the linker did not use this one"
  13161. - $echo "*** as a dynamic dependency that programs can get resolved with at runtime."
  13162. - fi
  13163. - fi
  13164. - else
  13165. - droppeddeps=yes
  13166. - $echo
  13167. - $echo "*** Warning! Library $i is needed by this library but I was not able to"
  13168. - $echo "*** make it link in! You will probably need to install it or some"
  13169. - $echo "*** library that it depends on before this library will be fully"
  13170. - $echo "*** functional. Installing it before continuing would be even better."
  13171. - fi
  13172. - else
  13173. - newdeplibs="$newdeplibs $i"
  13174. - fi
  13175. - done
  13176. - fi
  13177. - ;;
  13178. - file_magic*)
  13179. - set dummy $deplibs_check_method
  13180. - file_magic_regex=`expr "$deplibs_check_method" : "$2 \(.*\)"`
  13181. - for a_deplib in $deplibs; do
  13182. - name=`expr $a_deplib : '-l\(.*\)'`
  13183. - # If $name is empty we are operating on a -L argument.
  13184. - if test "$name" != "" && test "$name" != "0"; then
  13185. - if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
  13186. - case " $predeps $postdeps " in
  13187. - *" $a_deplib "*)
  13188. - newdeplibs="$newdeplibs $a_deplib"
  13189. - a_deplib=""
  13190. - ;;
  13191. - esac
  13192. - fi
  13193. - if test -n "$a_deplib" ; then
  13194. - libname=`eval \\$echo \"$libname_spec\"`
  13195. - for i in $lib_search_path $sys_lib_search_path $shlib_search_path; do
  13196. - potential_libs=`ls $i/$libname[.-]* 2>/dev/null`
  13197. - for potent_lib in $potential_libs; do
  13198. - # Follow soft links.
  13199. - if ls -lLd "$potent_lib" 2>/dev/null \
  13200. - | grep " -> " >/dev/null; then
  13201. - continue
  13202. - fi
  13203. - # The statement above tries to avoid entering an
  13204. - # endless loop below, in case of cyclic links.
  13205. - # We might still enter an endless loop, since a link
  13206. - # loop can be closed while we follow links,
  13207. - # but so what?
  13208. - potlib="$potent_lib"
  13209. - while test -h "$potlib" 2>/dev/null; do
  13210. - potliblink=`ls -ld $potlib | ${SED} 's/.* -> //'`
  13211. - case $potliblink in
  13212. - [\\/]* | [A-Za-z]:[\\/]*) potlib="$potliblink";;
  13213. - *) potlib=`$echo "X$potlib" | $Xsed -e 's,[^/]*$,,'`"$potliblink";;
  13214. - esac
  13215. - done
  13216. - if eval $file_magic_cmd \"\$potlib\" 2>/dev/null \
  13217. - | ${SED} 10q \
  13218. - | $EGREP "$file_magic_regex" > /dev/null; then
  13219. - newdeplibs="$newdeplibs $a_deplib"
  13220. - a_deplib=""
  13221. - break 2
  13222. - fi
  13223. - done
  13224. - done
  13225. - fi
  13226. - if test -n "$a_deplib" ; then
  13227. - droppeddeps=yes
  13228. - $echo
  13229. - $echo "*** Warning: linker path does not have real file for library $a_deplib."
  13230. - $echo "*** I have the capability to make that library automatically link in when"
  13231. - $echo "*** you link to this library. But I can only do this if you have a"
  13232. - $echo "*** shared version of the library, which you do not appear to have"
  13233. - $echo "*** because I did check the linker path looking for a file starting"
  13234. - if test -z "$potlib" ; then
  13235. - $echo "*** with $libname but no candidates were found. (...for file magic test)"
  13236. - else
  13237. - $echo "*** with $libname and none of the candidates passed a file format test"
  13238. - $echo "*** using a file magic. Last file checked: $potlib"
  13239. - fi
  13240. - fi
  13241. else
  13242. - # Add a -L argument.
  13243. - newdeplibs="$newdeplibs $a_deplib"
  13244. + cat <<"EOF"
  13245. +const char * LIB_PATH_VALUE = "";
  13246. +EOF
  13247. fi
  13248. - done # Gone through all deplibs.
  13249. - ;;
  13250. - match_pattern*)
  13251. - set dummy $deplibs_check_method
  13252. - match_pattern_regex=`expr "$deplibs_check_method" : "$2 \(.*\)"`
  13253. - for a_deplib in $deplibs; do
  13254. - name=`expr $a_deplib : '-l\(.*\)'`
  13255. - # If $name is empty we are operating on a -L argument.
  13256. - if test -n "$name" && test "$name" != "0"; then
  13257. - if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
  13258. - case " $predeps $postdeps " in
  13259. - *" $a_deplib "*)
  13260. - newdeplibs="$newdeplibs $a_deplib"
  13261. - a_deplib=""
  13262. - ;;
  13263. - esac
  13264. - fi
  13265. - if test -n "$a_deplib" ; then
  13266. - libname=`eval \\$echo \"$libname_spec\"`
  13267. - for i in $lib_search_path $sys_lib_search_path $shlib_search_path; do
  13268. - potential_libs=`ls $i/$libname[.-]* 2>/dev/null`
  13269. - for potent_lib in $potential_libs; do
  13270. - potlib="$potent_lib" # see symlink-check above in file_magic test
  13271. - if eval $echo \"$potent_lib\" 2>/dev/null \
  13272. - | ${SED} 10q \
  13273. - | $EGREP "$match_pattern_regex" > /dev/null; then
  13274. - newdeplibs="$newdeplibs $a_deplib"
  13275. - a_deplib=""
  13276. - break 2
  13277. - fi
  13278. - done
  13279. - done
  13280. - fi
  13281. - if test -n "$a_deplib" ; then
  13282. - droppeddeps=yes
  13283. - $echo
  13284. - $echo "*** Warning: linker path does not have real file for library $a_deplib."
  13285. - $echo "*** I have the capability to make that library automatically link in when"
  13286. - $echo "*** you link to this library. But I can only do this if you have a"
  13287. - $echo "*** shared version of the library, which you do not appear to have"
  13288. - $echo "*** because I did check the linker path looking for a file starting"
  13289. - if test -z "$potlib" ; then
  13290. - $echo "*** with $libname but no candidates were found. (...for regex pattern test)"
  13291. - else
  13292. - $echo "*** with $libname and none of the candidates passed a file format test"
  13293. - $echo "*** using a regex pattern. Last file checked: $potlib"
  13294. - fi
  13295. - fi
  13296. +
  13297. + if test -n "$dllsearchpath"; then
  13298. + func_to_host_pathlist "$dllsearchpath:"
  13299. + cat <<EOF
  13300. +const char * EXE_PATH_VARNAME = "PATH";
  13301. +const char * EXE_PATH_VALUE = "$func_to_host_pathlist_result";
  13302. +EOF
  13303. else
  13304. - # Add a -L argument.
  13305. - newdeplibs="$newdeplibs $a_deplib"
  13306. + cat <<"EOF"
  13307. +const char * EXE_PATH_VARNAME = "";
  13308. +const char * EXE_PATH_VALUE = "";
  13309. +EOF
  13310. fi
  13311. - done # Gone through all deplibs.
  13312. - ;;
  13313. - none | unknown | *)
  13314. - newdeplibs=""
  13315. - tmp_deplibs=`$echo "X $deplibs" | $Xsed -e 's/ -lc$//' \
  13316. - -e 's/ -[LR][^ ]*//g'`
  13317. - if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
  13318. - for i in $predeps $postdeps ; do
  13319. - # can't use Xsed below, because $i might contain '/'
  13320. - tmp_deplibs=`$echo "X $tmp_deplibs" | ${SED} -e "1s,^X,," -e "s,$i,,"`
  13321. - done
  13322. - fi
  13323. - if $echo "X $tmp_deplibs" | $Xsed -e 's/[ ]//g' \
  13324. - | grep . >/dev/null; then
  13325. - $echo
  13326. - if test "X$deplibs_check_method" = "Xnone"; then
  13327. - $echo "*** Warning: inter-library dependencies are not supported in this platform."
  13328. +
  13329. + if test "$fast_install" = yes; then
  13330. + cat <<EOF
  13331. +const char * TARGET_PROGRAM_NAME = "lt-$outputname"; /* hopefully, no .exe */
  13332. +EOF
  13333. else
  13334. - $echo "*** Warning: inter-library dependencies are not known to be supported."
  13335. + cat <<EOF
  13336. +const char * TARGET_PROGRAM_NAME = "$outputname"; /* hopefully, no .exe */
  13337. +EOF
  13338. fi
  13339. - $echo "*** All declared inter-library dependencies are being dropped."
  13340. - droppeddeps=yes
  13341. - fi
  13342. - ;;
  13343. - esac
  13344. - versuffix=$versuffix_save
  13345. - major=$major_save
  13346. - release=$release_save
  13347. - libname=$libname_save
  13348. - name=$name_save
  13349. - case $host in
  13350. - *-*-rhapsody* | *-*-darwin1.[012])
  13351. - # On Rhapsody replace the C library is the System framework
  13352. - newdeplibs=`$echo "X $newdeplibs" | $Xsed -e 's/ -lc / -framework System /'`
  13353. - ;;
  13354. - esac
  13355. - if test "$droppeddeps" = yes; then
  13356. - if test "$module" = yes; then
  13357. - $echo
  13358. - $echo "*** Warning: libtool could not satisfy all declared inter-library"
  13359. - $echo "*** dependencies of module $libname. Therefore, libtool will create"
  13360. - $echo "*** a static module, that should work as long as the dlopening"
  13361. - $echo "*** application is linked with the -dlopen flag."
  13362. - if test -z "$global_symbol_pipe"; then
  13363. - $echo
  13364. - $echo "*** However, this would only work if libtool was able to extract symbol"
  13365. - $echo "*** lists from a program, using \`nm' or equivalent, but libtool could"
  13366. - $echo "*** not find such a program. So, this module is probably useless."
  13367. - $echo "*** \`nm' from GNU binutils and a full rebuild may help."
  13368. - fi
  13369. - if test "$build_old_libs" = no; then
  13370. - oldlibs="$output_objdir/$libname.$libext"
  13371. - build_libtool_libs=module
  13372. - build_old_libs=yes
  13373. - else
  13374. - build_libtool_libs=no
  13375. - fi
  13376. - else
  13377. - $echo "*** The inter-library dependencies that have been dropped here will be"
  13378. - $echo "*** automatically added whenever a program is linked with this library"
  13379. - $echo "*** or is declared to -dlopen it."
  13380. + cat <<"EOF"
  13381. - if test "$allow_undefined" = no; then
  13382. - $echo
  13383. - $echo "*** Since this library must not contain undefined symbols,"
  13384. - $echo "*** because either the platform does not support them or"
  13385. - $echo "*** it was explicitly requested with -no-undefined,"
  13386. - $echo "*** libtool will only create a static version of it."
  13387. - if test "$build_old_libs" = no; then
  13388. - oldlibs="$output_objdir/$libname.$libext"
  13389. - build_libtool_libs=module
  13390. - build_old_libs=yes
  13391. - else
  13392. - build_libtool_libs=no
  13393. - fi
  13394. - fi
  13395. - fi
  13396. - fi
  13397. - # Done checking deplibs!
  13398. - deplibs=$newdeplibs
  13399. - fi
  13400. +#define LTWRAPPER_OPTION_PREFIX "--lt-"
  13401. +#define LTWRAPPER_OPTION_PREFIX_LENGTH 5
  13402. +static const size_t opt_prefix_len = LTWRAPPER_OPTION_PREFIX_LENGTH;
  13403. +static const char *ltwrapper_option_prefix = LTWRAPPER_OPTION_PREFIX;
  13404. - # move library search paths that coincide with paths to not yet
  13405. - # installed libraries to the beginning of the library search list
  13406. - new_libs=
  13407. - for path in $notinst_path; do
  13408. - case " $new_libs " in
  13409. - *" -L$path/$objdir "*) ;;
  13410. - *)
  13411. - case " $deplibs " in
  13412. - *" -L$path/$objdir "*)
  13413. - new_libs="$new_libs -L$path/$objdir" ;;
  13414. - esac
  13415. - ;;
  13416. - esac
  13417. - done
  13418. - for deplib in $deplibs; do
  13419. - case $deplib in
  13420. - -L*)
  13421. - case " $new_libs " in
  13422. - *" $deplib "*) ;;
  13423. - *) new_libs="$new_libs $deplib" ;;
  13424. - esac
  13425. - ;;
  13426. - *) new_libs="$new_libs $deplib" ;;
  13427. - esac
  13428. - done
  13429. - deplibs="$new_libs"
  13430. +static const char *dumpscript_opt = LTWRAPPER_OPTION_PREFIX "dump-script";
  13431. +static const size_t env_set_opt_len = LTWRAPPER_OPTION_PREFIX_LENGTH + 7;
  13432. +static const char *env_set_opt = LTWRAPPER_OPTION_PREFIX "env-set";
  13433. + /* argument is putenv-style "foo=bar", value of foo is set to bar */
  13434. - # All the library-specific variables (install_libdir is set above).
  13435. - library_names=
  13436. - old_library=
  13437. - dlname=
  13438. +static const size_t env_prepend_opt_len = LTWRAPPER_OPTION_PREFIX_LENGTH + 11;
  13439. +static const char *env_prepend_opt = LTWRAPPER_OPTION_PREFIX "env-prepend";
  13440. + /* argument is putenv-style "foo=bar", new value of foo is bar${foo} */
  13441. - # Test again, we may have decided not to build it any more
  13442. - if test "$build_libtool_libs" = yes; then
  13443. - if test "$hardcode_into_libs" = yes; then
  13444. - # Hardcode the library paths
  13445. - hardcode_libdirs=
  13446. - dep_rpath=
  13447. - rpath="$finalize_rpath"
  13448. - test "$mode" != relink && rpath="$compile_rpath$rpath"
  13449. - for libdir in $rpath; do
  13450. - if test -n "$hardcode_libdir_flag_spec"; then
  13451. - if test -n "$hardcode_libdir_separator"; then
  13452. - if test -z "$hardcode_libdirs"; then
  13453. - hardcode_libdirs="$libdir"
  13454. - else
  13455. - # Just accumulate the unique libdirs.
  13456. - case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in
  13457. - *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*)
  13458. - ;;
  13459. - *)
  13460. - hardcode_libdirs="$hardcode_libdirs$hardcode_libdir_separator$libdir"
  13461. - ;;
  13462. - esac
  13463. - fi
  13464. - else
  13465. - eval flag=\"$hardcode_libdir_flag_spec\"
  13466. - dep_rpath="$dep_rpath $flag"
  13467. - fi
  13468. - elif test -n "$runpath_var"; then
  13469. - case "$perm_rpath " in
  13470. - *" $libdir "*) ;;
  13471. - *) perm_rpath="$perm_rpath $libdir" ;;
  13472. - esac
  13473. - fi
  13474. - done
  13475. - # Substitute the hardcoded libdirs into the rpath.
  13476. - if test -n "$hardcode_libdir_separator" &&
  13477. - test -n "$hardcode_libdirs"; then
  13478. - libdir="$hardcode_libdirs"
  13479. - if test -n "$hardcode_libdir_flag_spec_ld"; then
  13480. - eval dep_rpath=\"$hardcode_libdir_flag_spec_ld\"
  13481. - else
  13482. - eval dep_rpath=\"$hardcode_libdir_flag_spec\"
  13483. - fi
  13484. - fi
  13485. - if test -n "$runpath_var" && test -n "$perm_rpath"; then
  13486. - # We should set the runpath_var.
  13487. - rpath=
  13488. - for dir in $perm_rpath; do
  13489. - rpath="$rpath$dir:"
  13490. - done
  13491. - eval "$runpath_var='$rpath\$$runpath_var'; export $runpath_var"
  13492. - fi
  13493. - test -n "$dep_rpath" && deplibs="$dep_rpath $deplibs"
  13494. - fi
  13495. +static const size_t env_append_opt_len = LTWRAPPER_OPTION_PREFIX_LENGTH + 10;
  13496. +static const char *env_append_opt = LTWRAPPER_OPTION_PREFIX "env-append";
  13497. + /* argument is putenv-style "foo=bar", new value of foo is ${foo}bar */
  13498. - shlibpath="$finalize_shlibpath"
  13499. - test "$mode" != relink && shlibpath="$compile_shlibpath$shlibpath"
  13500. - if test -n "$shlibpath"; then
  13501. - eval "$shlibpath_var='$shlibpath\$$shlibpath_var'; export $shlibpath_var"
  13502. - fi
  13503. +int
  13504. +main (int argc, char *argv[])
  13505. +{
  13506. + char **newargz;
  13507. + int newargc;
  13508. + char *tmp_pathspec;
  13509. + char *actual_cwrapper_path;
  13510. + char *actual_cwrapper_name;
  13511. + char *target_name;
  13512. + char *lt_argv_zero;
  13513. + intptr_t rval = 127;
  13514. - # Get the real and link names of the library.
  13515. - eval shared_ext=\"$shrext_cmds\"
  13516. - eval library_names=\"$library_names_spec\"
  13517. - set dummy $library_names
  13518. - realname="$2"
  13519. - shift; shift
  13520. + int i;
  13521. - if test -n "$soname_spec"; then
  13522. - eval soname=\"$soname_spec\"
  13523. - else
  13524. - soname="$realname"
  13525. - fi
  13526. - if test -z "$dlname"; then
  13527. - dlname=$soname
  13528. - fi
  13529. + program_name = (char *) xstrdup (base_name (argv[0]));
  13530. + LTWRAPPER_DEBUGPRINTF (("(main) argv[0] : %s\n", argv[0]));
  13531. + LTWRAPPER_DEBUGPRINTF (("(main) program_name : %s\n", program_name));
  13532. - lib="$output_objdir/$realname"
  13533. - linknames=
  13534. - for link
  13535. - do
  13536. - linknames="$linknames $link"
  13537. - done
  13538. + /* very simple arg parsing; don't want to rely on getopt */
  13539. + for (i = 1; i < argc; i++)
  13540. + {
  13541. + if (strcmp (argv[i], dumpscript_opt) == 0)
  13542. + {
  13543. +EOF
  13544. + case "$host" in
  13545. + *mingw* | *cygwin* )
  13546. + # make stdout use "unix" line endings
  13547. + echo " setmode(1,_O_BINARY);"
  13548. + ;;
  13549. + esac
  13550. - # Use standard objects if they are pic
  13551. - test -z "$pic_flag" && libobjs=`$echo "X$libobjs" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP`
  13552. + cat <<"EOF"
  13553. + printf ("%s", script_text_part1);
  13554. + printf ("%s", script_text_part2);
  13555. + return 0;
  13556. + }
  13557. + }
  13558. - # Prepare the list of exported symbols
  13559. - if test -z "$export_symbols"; then
  13560. - if test "$always_export_symbols" = yes || test -n "$export_symbols_regex"; then
  13561. - $show "generating symbol list for \`$libname.la'"
  13562. - export_symbols="$output_objdir/$libname.exp"
  13563. - $run $rm $export_symbols
  13564. - cmds=$export_symbols_cmds
  13565. - save_ifs="$IFS"; IFS='~'
  13566. - for cmd in $cmds; do
  13567. - IFS="$save_ifs"
  13568. - eval cmd=\"$cmd\"
  13569. - if len=`expr "X$cmd" : ".*"` &&
  13570. - test "$len" -le "$max_cmd_len" || test "$max_cmd_len" -le -1; then
  13571. - $show "$cmd"
  13572. - $run eval "$cmd" || exit $?
  13573. - skipped_export=false
  13574. - else
  13575. - # The command line is too long to execute in one step.
  13576. - $show "using reloadable object file for export list..."
  13577. - skipped_export=:
  13578. - # Break out early, otherwise skipped_export may be
  13579. - # set to false by a later but shorter cmd.
  13580. - break
  13581. - fi
  13582. - done
  13583. - IFS="$save_ifs"
  13584. - if test -n "$export_symbols_regex"; then
  13585. - $show "$EGREP -e \"$export_symbols_regex\" \"$export_symbols\" > \"${export_symbols}T\""
  13586. - $run eval '$EGREP -e "$export_symbols_regex" "$export_symbols" > "${export_symbols}T"'
  13587. - $show "$mv \"${export_symbols}T\" \"$export_symbols\""
  13588. - $run eval '$mv "${export_symbols}T" "$export_symbols"'
  13589. - fi
  13590. - fi
  13591. - fi
  13592. + newargz = XMALLOC (char *, argc + 1);
  13593. + tmp_pathspec = find_executable (argv[0]);
  13594. + if (tmp_pathspec == NULL)
  13595. + lt_fatal ("Couldn't find %s", argv[0]);
  13596. + LTWRAPPER_DEBUGPRINTF (("(main) found exe (before symlink chase) at : %s\n",
  13597. + tmp_pathspec));
  13598. +
  13599. + actual_cwrapper_path = chase_symlinks (tmp_pathspec);
  13600. + LTWRAPPER_DEBUGPRINTF (("(main) found exe (after symlink chase) at : %s\n",
  13601. + actual_cwrapper_path));
  13602. + XFREE (tmp_pathspec);
  13603. +
  13604. + actual_cwrapper_name = xstrdup( base_name (actual_cwrapper_path));
  13605. + strendzap (actual_cwrapper_path, actual_cwrapper_name);
  13606. +
  13607. + /* wrapper name transforms */
  13608. + strendzap (actual_cwrapper_name, ".exe");
  13609. + tmp_pathspec = lt_extend_str (actual_cwrapper_name, ".exe", 1);
  13610. + XFREE (actual_cwrapper_name);
  13611. + actual_cwrapper_name = tmp_pathspec;
  13612. + tmp_pathspec = 0;
  13613. +
  13614. + /* target_name transforms -- use actual target program name; might have lt- prefix */
  13615. + target_name = xstrdup (base_name (TARGET_PROGRAM_NAME));
  13616. + strendzap (target_name, ".exe");
  13617. + tmp_pathspec = lt_extend_str (target_name, ".exe", 1);
  13618. + XFREE (target_name);
  13619. + target_name = tmp_pathspec;
  13620. + tmp_pathspec = 0;
  13621. - if test -n "$export_symbols" && test -n "$include_expsyms"; then
  13622. - $run eval '$echo "X$include_expsyms" | $SP2NL >> "$export_symbols"'
  13623. - fi
  13624. + LTWRAPPER_DEBUGPRINTF (("(main) libtool target name: %s\n",
  13625. + target_name));
  13626. +EOF
  13627. - tmp_deplibs=
  13628. - for test_deplib in $deplibs; do
  13629. - case " $convenience " in
  13630. - *" $test_deplib "*) ;;
  13631. - *)
  13632. - tmp_deplibs="$tmp_deplibs $test_deplib"
  13633. - ;;
  13634. - esac
  13635. - done
  13636. - deplibs="$tmp_deplibs"
  13637. + cat <<EOF
  13638. + newargz[0] =
  13639. + XMALLOC (char, (strlen (actual_cwrapper_path) +
  13640. + strlen ("$objdir") + 1 + strlen (actual_cwrapper_name) + 1));
  13641. + strcpy (newargz[0], actual_cwrapper_path);
  13642. + strcat (newargz[0], "$objdir");
  13643. + strcat (newargz[0], "/");
  13644. +EOF
  13645. - if test -n "$convenience"; then
  13646. - if test -n "$whole_archive_flag_spec"; then
  13647. - save_libobjs=$libobjs
  13648. - eval libobjs=\"\$libobjs $whole_archive_flag_spec\"
  13649. - else
  13650. - gentop="$output_objdir/${outputname}x"
  13651. - generated="$generated $gentop"
  13652. + cat <<"EOF"
  13653. + /* stop here, and copy so we don't have to do this twice */
  13654. + tmp_pathspec = xstrdup (newargz[0]);
  13655. +
  13656. + /* do NOT want the lt- prefix here, so use actual_cwrapper_name */
  13657. + strcat (newargz[0], actual_cwrapper_name);
  13658. +
  13659. + /* DO want the lt- prefix here if it exists, so use target_name */
  13660. + lt_argv_zero = lt_extend_str (tmp_pathspec, target_name, 1);
  13661. + XFREE (tmp_pathspec);
  13662. + tmp_pathspec = NULL;
  13663. +EOF
  13664. - func_extract_archives $gentop $convenience
  13665. - libobjs="$libobjs $func_extract_archives_result"
  13666. - fi
  13667. - fi
  13668. -
  13669. - if test "$thread_safe" = yes && test -n "$thread_safe_flag_spec"; then
  13670. - eval flag=\"$thread_safe_flag_spec\"
  13671. - linker_flags="$linker_flags $flag"
  13672. - fi
  13673. + case $host_os in
  13674. + mingw*)
  13675. + cat <<"EOF"
  13676. + {
  13677. + char* p;
  13678. + while ((p = strchr (newargz[0], '\\')) != NULL)
  13679. + {
  13680. + *p = '/';
  13681. + }
  13682. + while ((p = strchr (lt_argv_zero, '\\')) != NULL)
  13683. + {
  13684. + *p = '/';
  13685. + }
  13686. + }
  13687. +EOF
  13688. + ;;
  13689. + esac
  13690. - # Make a backup of the uninstalled library when relinking
  13691. - if test "$mode" = relink; then
  13692. - $run eval '(cd $output_objdir && $rm ${realname}U && $mv $realname ${realname}U)' || exit $?
  13693. - fi
  13694. + cat <<"EOF"
  13695. + XFREE (target_name);
  13696. + XFREE (actual_cwrapper_path);
  13697. + XFREE (actual_cwrapper_name);
  13698. +
  13699. + lt_setenv ("BIN_SH", "xpg4"); /* for Tru64 */
  13700. + lt_setenv ("DUALCASE", "1"); /* for MSK sh */
  13701. + lt_update_lib_path (LIB_PATH_VARNAME, LIB_PATH_VALUE);
  13702. + lt_update_exe_path (EXE_PATH_VARNAME, EXE_PATH_VALUE);
  13703. - # Do each of the archive commands.
  13704. - if test "$module" = yes && test -n "$module_cmds" ; then
  13705. - if test -n "$export_symbols" && test -n "$module_expsym_cmds"; then
  13706. - eval test_cmds=\"$module_expsym_cmds\"
  13707. - cmds=$module_expsym_cmds
  13708. - else
  13709. - eval test_cmds=\"$module_cmds\"
  13710. - cmds=$module_cmds
  13711. - fi
  13712. - else
  13713. - if test -n "$export_symbols" && test -n "$archive_expsym_cmds"; then
  13714. - eval test_cmds=\"$archive_expsym_cmds\"
  13715. - cmds=$archive_expsym_cmds
  13716. - else
  13717. - eval test_cmds=\"$archive_cmds\"
  13718. - cmds=$archive_cmds
  13719. - fi
  13720. - fi
  13721. + newargc=0;
  13722. + for (i = 1; i < argc; i++)
  13723. + {
  13724. + if (strncmp (argv[i], env_set_opt, env_set_opt_len) == 0)
  13725. + {
  13726. + if (argv[i][env_set_opt_len] == '=')
  13727. + {
  13728. + const char *p = argv[i] + env_set_opt_len + 1;
  13729. + lt_opt_process_env_set (p);
  13730. + }
  13731. + else if (argv[i][env_set_opt_len] == '\0' && i + 1 < argc)
  13732. + {
  13733. + lt_opt_process_env_set (argv[++i]); /* don't copy */
  13734. + }
  13735. + else
  13736. + lt_fatal ("%s missing required argument", env_set_opt);
  13737. + continue;
  13738. + }
  13739. + if (strncmp (argv[i], env_prepend_opt, env_prepend_opt_len) == 0)
  13740. + {
  13741. + if (argv[i][env_prepend_opt_len] == '=')
  13742. + {
  13743. + const char *p = argv[i] + env_prepend_opt_len + 1;
  13744. + lt_opt_process_env_prepend (p);
  13745. + }
  13746. + else if (argv[i][env_prepend_opt_len] == '\0' && i + 1 < argc)
  13747. + {
  13748. + lt_opt_process_env_prepend (argv[++i]); /* don't copy */
  13749. + }
  13750. + else
  13751. + lt_fatal ("%s missing required argument", env_prepend_opt);
  13752. + continue;
  13753. + }
  13754. + if (strncmp (argv[i], env_append_opt, env_append_opt_len) == 0)
  13755. + {
  13756. + if (argv[i][env_append_opt_len] == '=')
  13757. + {
  13758. + const char *p = argv[i] + env_append_opt_len + 1;
  13759. + lt_opt_process_env_append (p);
  13760. + }
  13761. + else if (argv[i][env_append_opt_len] == '\0' && i + 1 < argc)
  13762. + {
  13763. + lt_opt_process_env_append (argv[++i]); /* don't copy */
  13764. + }
  13765. + else
  13766. + lt_fatal ("%s missing required argument", env_append_opt);
  13767. + continue;
  13768. + }
  13769. + if (strncmp (argv[i], ltwrapper_option_prefix, opt_prefix_len) == 0)
  13770. + {
  13771. + /* however, if there is an option in the LTWRAPPER_OPTION_PREFIX
  13772. + namespace, but it is not one of the ones we know about and
  13773. + have already dealt with, above (inluding dump-script), then
  13774. + report an error. Otherwise, targets might begin to believe
  13775. + they are allowed to use options in the LTWRAPPER_OPTION_PREFIX
  13776. + namespace. The first time any user complains about this, we'll
  13777. + need to make LTWRAPPER_OPTION_PREFIX a configure-time option
  13778. + or a configure.ac-settable value.
  13779. + */
  13780. + lt_fatal ("Unrecognized option in %s namespace: '%s'",
  13781. + ltwrapper_option_prefix, argv[i]);
  13782. + }
  13783. + /* otherwise ... */
  13784. + newargz[++newargc] = xstrdup (argv[i]);
  13785. + }
  13786. + newargz[++newargc] = NULL;
  13787. - if test "X$skipped_export" != "X:" &&
  13788. - len=`expr "X$test_cmds" : ".*" 2>/dev/null` &&
  13789. - test "$len" -le "$max_cmd_len" || test "$max_cmd_len" -le -1; then
  13790. - :
  13791. - else
  13792. - # The command line is too long to link in one step, link piecewise.
  13793. - $echo "creating reloadable object files..."
  13794. + LTWRAPPER_DEBUGPRINTF (("(main) lt_argv_zero : %s\n", (lt_argv_zero ? lt_argv_zero : "<NULL>")));
  13795. + for (i = 0; i < newargc; i++)
  13796. + {
  13797. + LTWRAPPER_DEBUGPRINTF (("(main) newargz[%d] : %s\n", i, (newargz[i] ? newargz[i] : "<NULL>")));
  13798. + }
  13799. - # Save the value of $output and $libobjs because we want to
  13800. - # use them later. If we have whole_archive_flag_spec, we
  13801. - # want to use save_libobjs as it was before
  13802. - # whole_archive_flag_spec was expanded, because we can't
  13803. - # assume the linker understands whole_archive_flag_spec.
  13804. - # This may have to be revisited, in case too many
  13805. - # convenience libraries get linked in and end up exceeding
  13806. - # the spec.
  13807. - if test -z "$convenience" || test -z "$whole_archive_flag_spec"; then
  13808. - save_libobjs=$libobjs
  13809. - fi
  13810. - save_output=$output
  13811. - output_la=`$echo "X$output" | $Xsed -e "$basename"`
  13812. +EOF
  13813. - # Clear the reloadable object creation command queue and
  13814. - # initialize k to one.
  13815. - test_cmds=
  13816. - concat_cmds=
  13817. - objlist=
  13818. - delfiles=
  13819. - last_robj=
  13820. - k=1
  13821. - output=$output_objdir/$output_la-${k}.$objext
  13822. - # Loop over the list of objects to be linked.
  13823. - for obj in $save_libobjs
  13824. - do
  13825. - eval test_cmds=\"$reload_cmds $objlist $last_robj\"
  13826. - if test "X$objlist" = X ||
  13827. - { len=`expr "X$test_cmds" : ".*" 2>/dev/null` &&
  13828. - test "$len" -le "$max_cmd_len"; }; then
  13829. - objlist="$objlist $obj"
  13830. - else
  13831. - # The command $test_cmds is almost too long, add a
  13832. - # command to the queue.
  13833. - if test "$k" -eq 1 ; then
  13834. - # The first file doesn't have a previous command to add.
  13835. - eval concat_cmds=\"$reload_cmds $objlist $last_robj\"
  13836. - else
  13837. - # All subsequent reloadable object files will link in
  13838. - # the last one created.
  13839. - eval concat_cmds=\"\$concat_cmds~$reload_cmds $objlist $last_robj\"
  13840. - fi
  13841. - last_robj=$output_objdir/$output_la-${k}.$objext
  13842. - k=`expr $k + 1`
  13843. - output=$output_objdir/$output_la-${k}.$objext
  13844. - objlist=$obj
  13845. - len=1
  13846. - fi
  13847. - done
  13848. - # Handle the remaining objects by creating one last
  13849. - # reloadable object file. All subsequent reloadable object
  13850. - # files will link in the last one created.
  13851. - test -z "$concat_cmds" || concat_cmds=$concat_cmds~
  13852. - eval concat_cmds=\"\${concat_cmds}$reload_cmds $objlist $last_robj\"
  13853. + case $host_os in
  13854. + mingw*)
  13855. + cat <<"EOF"
  13856. + /* execv doesn't actually work on mingw as expected on unix */
  13857. + rval = _spawnv (_P_WAIT, lt_argv_zero, (const char * const *) newargz);
  13858. + if (rval == -1)
  13859. + {
  13860. + /* failed to start process */
  13861. + LTWRAPPER_DEBUGPRINTF (("(main) failed to launch target \"%s\": errno = %d\n", lt_argv_zero, errno));
  13862. + return 127;
  13863. + }
  13864. + return rval;
  13865. +EOF
  13866. + ;;
  13867. + *)
  13868. + cat <<"EOF"
  13869. + execv (lt_argv_zero, newargz);
  13870. + return rval; /* =127, but avoids unused variable warning */
  13871. +EOF
  13872. + ;;
  13873. + esac
  13874. - if ${skipped_export-false}; then
  13875. - $show "generating symbol list for \`$libname.la'"
  13876. - export_symbols="$output_objdir/$libname.exp"
  13877. - $run $rm $export_symbols
  13878. - libobjs=$output
  13879. - # Append the command to create the export file.
  13880. - eval concat_cmds=\"\$concat_cmds~$export_symbols_cmds\"
  13881. - fi
  13882. -
  13883. - # Set up a command to remove the reloadable object files
  13884. - # after they are used.
  13885. - i=0
  13886. - while test "$i" -lt "$k"
  13887. - do
  13888. - i=`expr $i + 1`
  13889. - delfiles="$delfiles $output_objdir/$output_la-${i}.$objext"
  13890. - done
  13891. + cat <<"EOF"
  13892. +}
  13893. - $echo "creating a temporary reloadable object file: $output"
  13894. +void *
  13895. +xmalloc (size_t num)
  13896. +{
  13897. + void *p = (void *) malloc (num);
  13898. + if (!p)
  13899. + lt_fatal ("Memory exhausted");
  13900. - # Loop through the commands generated above and execute them.
  13901. - save_ifs="$IFS"; IFS='~'
  13902. - for cmd in $concat_cmds; do
  13903. - IFS="$save_ifs"
  13904. - $show "$cmd"
  13905. - $run eval "$cmd" || exit $?
  13906. - done
  13907. - IFS="$save_ifs"
  13908. + return p;
  13909. +}
  13910. - libobjs=$output
  13911. - # Restore the value of output.
  13912. - output=$save_output
  13913. +char *
  13914. +xstrdup (const char *string)
  13915. +{
  13916. + return string ? strcpy ((char *) xmalloc (strlen (string) + 1),
  13917. + string) : NULL;
  13918. +}
  13919. - if test -n "$convenience" && test -n "$whole_archive_flag_spec"; then
  13920. - eval libobjs=\"\$libobjs $whole_archive_flag_spec\"
  13921. - fi
  13922. - # Expand the library linking commands again to reset the
  13923. - # value of $libobjs for piecewise linking.
  13924. +const char *
  13925. +base_name (const char *name)
  13926. +{
  13927. + const char *base;
  13928. - # Do each of the archive commands.
  13929. - if test "$module" = yes && test -n "$module_cmds" ; then
  13930. - if test -n "$export_symbols" && test -n "$module_expsym_cmds"; then
  13931. - cmds=$module_expsym_cmds
  13932. - else
  13933. - cmds=$module_cmds
  13934. - fi
  13935. - else
  13936. - if test -n "$export_symbols" && test -n "$archive_expsym_cmds"; then
  13937. - cmds=$archive_expsym_cmds
  13938. - else
  13939. - cmds=$archive_cmds
  13940. - fi
  13941. - fi
  13942. +#if defined (HAVE_DOS_BASED_FILE_SYSTEM)
  13943. + /* Skip over the disk name in MSDOS pathnames. */
  13944. + if (isalpha ((unsigned char) name[0]) && name[1] == ':')
  13945. + name += 2;
  13946. +#endif
  13947. - # Append the command to remove the reloadable object files
  13948. - # to the just-reset $cmds.
  13949. - eval cmds=\"\$cmds~\$rm $delfiles\"
  13950. - fi
  13951. - save_ifs="$IFS"; IFS='~'
  13952. - for cmd in $cmds; do
  13953. - IFS="$save_ifs"
  13954. - eval cmd=\"$cmd\"
  13955. - $show "$cmd"
  13956. - $run eval "$cmd" || {
  13957. - lt_exit=$?
  13958. + for (base = name; *name; name++)
  13959. + if (IS_DIR_SEPARATOR (*name))
  13960. + base = name + 1;
  13961. + return base;
  13962. +}
  13963. - # Restore the uninstalled library and exit
  13964. - if test "$mode" = relink; then
  13965. - $run eval '(cd $output_objdir && $rm ${realname}T && $mv ${realname}U $realname)'
  13966. - fi
  13967. +int
  13968. +check_executable (const char *path)
  13969. +{
  13970. + struct stat st;
  13971. - exit $lt_exit
  13972. - }
  13973. - done
  13974. - IFS="$save_ifs"
  13975. + LTWRAPPER_DEBUGPRINTF (("(check_executable) : %s\n",
  13976. + path ? (*path ? path : "EMPTY!") : "NULL!"));
  13977. + if ((!path) || (!*path))
  13978. + return 0;
  13979. - # Restore the uninstalled library and exit
  13980. - if test "$mode" = relink; then
  13981. - $run eval '(cd $output_objdir && $rm ${realname}T && $mv $realname ${realname}T && $mv "$realname"U $realname)' || exit $?
  13982. + if ((stat (path, &st) >= 0)
  13983. + && (st.st_mode & (S_IXUSR | S_IXGRP | S_IXOTH)))
  13984. + return 1;
  13985. + else
  13986. + return 0;
  13987. +}
  13988. - if test -n "$convenience"; then
  13989. - if test -z "$whole_archive_flag_spec"; then
  13990. - $show "${rm}r $gentop"
  13991. - $run ${rm}r "$gentop"
  13992. - fi
  13993. - fi
  13994. +int
  13995. +make_executable (const char *path)
  13996. +{
  13997. + int rval = 0;
  13998. + struct stat st;
  13999. - exit $EXIT_SUCCESS
  14000. - fi
  14001. + LTWRAPPER_DEBUGPRINTF (("(make_executable) : %s\n",
  14002. + path ? (*path ? path : "EMPTY!") : "NULL!"));
  14003. + if ((!path) || (!*path))
  14004. + return 0;
  14005. - # Create links to the real library.
  14006. - for linkname in $linknames; do
  14007. - if test "$realname" != "$linkname"; then
  14008. - $show "(cd $output_objdir && $rm $linkname && $LN_S $realname $linkname)"
  14009. - $run eval '(cd $output_objdir && $rm $linkname && $LN_S $realname $linkname)' || exit $?
  14010. - fi
  14011. - done
  14012. + if (stat (path, &st) >= 0)
  14013. + {
  14014. + rval = chmod (path, st.st_mode | S_IXOTH | S_IXGRP | S_IXUSR);
  14015. + }
  14016. + return rval;
  14017. +}
  14018. - # If -module or -export-dynamic was specified, set the dlname.
  14019. - if test "$module" = yes || test "$export_dynamic" = yes; then
  14020. - # On all known operating systems, these are identical.
  14021. - dlname="$soname"
  14022. - fi
  14023. - fi
  14024. - ;;
  14025. +/* Searches for the full path of the wrapper. Returns
  14026. + newly allocated full path name if found, NULL otherwise
  14027. + Does not chase symlinks, even on platforms that support them.
  14028. +*/
  14029. +char *
  14030. +find_executable (const char *wrapper)
  14031. +{
  14032. + int has_slash = 0;
  14033. + const char *p;
  14034. + const char *p_next;
  14035. + /* static buffer for getcwd */
  14036. + char tmp[LT_PATHMAX + 1];
  14037. + int tmp_len;
  14038. + char *concat_name;
  14039. - obj)
  14040. - if test -n "$deplibs"; then
  14041. - $echo "$modename: warning: \`-l' and \`-L' are ignored for objects" 1>&2
  14042. - fi
  14043. + LTWRAPPER_DEBUGPRINTF (("(find_executable) : %s\n",
  14044. + wrapper ? (*wrapper ? wrapper : "EMPTY!") : "NULL!"));
  14045. - if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then
  14046. - $echo "$modename: warning: \`-dlopen' is ignored for objects" 1>&2
  14047. - fi
  14048. + if ((wrapper == NULL) || (*wrapper == '\0'))
  14049. + return NULL;
  14050. - if test -n "$rpath"; then
  14051. - $echo "$modename: warning: \`-rpath' is ignored for objects" 1>&2
  14052. - fi
  14053. + /* Absolute path? */
  14054. +#if defined (HAVE_DOS_BASED_FILE_SYSTEM)
  14055. + if (isalpha ((unsigned char) wrapper[0]) && wrapper[1] == ':')
  14056. + {
  14057. + concat_name = xstrdup (wrapper);
  14058. + if (check_executable (concat_name))
  14059. + return concat_name;
  14060. + XFREE (concat_name);
  14061. + }
  14062. + else
  14063. + {
  14064. +#endif
  14065. + if (IS_DIR_SEPARATOR (wrapper[0]))
  14066. + {
  14067. + concat_name = xstrdup (wrapper);
  14068. + if (check_executable (concat_name))
  14069. + return concat_name;
  14070. + XFREE (concat_name);
  14071. + }
  14072. +#if defined (HAVE_DOS_BASED_FILE_SYSTEM)
  14073. + }
  14074. +#endif
  14075. - if test -n "$xrpath"; then
  14076. - $echo "$modename: warning: \`-R' is ignored for objects" 1>&2
  14077. - fi
  14078. + for (p = wrapper; *p; p++)
  14079. + if (*p == '/')
  14080. + {
  14081. + has_slash = 1;
  14082. + break;
  14083. + }
  14084. + if (!has_slash)
  14085. + {
  14086. + /* no slashes; search PATH */
  14087. + const char *path = getenv ("PATH");
  14088. + if (path != NULL)
  14089. + {
  14090. + for (p = path; *p; p = p_next)
  14091. + {
  14092. + const char *q;
  14093. + size_t p_len;
  14094. + for (q = p; *q; q++)
  14095. + if (IS_PATH_SEPARATOR (*q))
  14096. + break;
  14097. + p_len = q - p;
  14098. + p_next = (*q == '\0' ? q : q + 1);
  14099. + if (p_len == 0)
  14100. + {
  14101. + /* empty path: current directory */
  14102. + if (getcwd (tmp, LT_PATHMAX) == NULL)
  14103. + lt_fatal ("getcwd failed");
  14104. + tmp_len = strlen (tmp);
  14105. + concat_name =
  14106. + XMALLOC (char, tmp_len + 1 + strlen (wrapper) + 1);
  14107. + memcpy (concat_name, tmp, tmp_len);
  14108. + concat_name[tmp_len] = '/';
  14109. + strcpy (concat_name + tmp_len + 1, wrapper);
  14110. + }
  14111. + else
  14112. + {
  14113. + concat_name =
  14114. + XMALLOC (char, p_len + 1 + strlen (wrapper) + 1);
  14115. + memcpy (concat_name, p, p_len);
  14116. + concat_name[p_len] = '/';
  14117. + strcpy (concat_name + p_len + 1, wrapper);
  14118. + }
  14119. + if (check_executable (concat_name))
  14120. + return concat_name;
  14121. + XFREE (concat_name);
  14122. + }
  14123. + }
  14124. + /* not found in PATH; assume curdir */
  14125. + }
  14126. + /* Relative path | not found in path: prepend cwd */
  14127. + if (getcwd (tmp, LT_PATHMAX) == NULL)
  14128. + lt_fatal ("getcwd failed");
  14129. + tmp_len = strlen (tmp);
  14130. + concat_name = XMALLOC (char, tmp_len + 1 + strlen (wrapper) + 1);
  14131. + memcpy (concat_name, tmp, tmp_len);
  14132. + concat_name[tmp_len] = '/';
  14133. + strcpy (concat_name + tmp_len + 1, wrapper);
  14134. - if test -n "$vinfo"; then
  14135. - $echo "$modename: warning: \`-version-info' is ignored for objects" 1>&2
  14136. - fi
  14137. + if (check_executable (concat_name))
  14138. + return concat_name;
  14139. + XFREE (concat_name);
  14140. + return NULL;
  14141. +}
  14142. - if test -n "$release"; then
  14143. - $echo "$modename: warning: \`-release' is ignored for objects" 1>&2
  14144. - fi
  14145. +char *
  14146. +chase_symlinks (const char *pathspec)
  14147. +{
  14148. +#ifndef S_ISLNK
  14149. + return xstrdup (pathspec);
  14150. +#else
  14151. + char buf[LT_PATHMAX];
  14152. + struct stat s;
  14153. + char *tmp_pathspec = xstrdup (pathspec);
  14154. + char *p;
  14155. + int has_symlinks = 0;
  14156. + while (strlen (tmp_pathspec) && !has_symlinks)
  14157. + {
  14158. + LTWRAPPER_DEBUGPRINTF (("checking path component for symlinks: %s\n",
  14159. + tmp_pathspec));
  14160. + if (lstat (tmp_pathspec, &s) == 0)
  14161. + {
  14162. + if (S_ISLNK (s.st_mode) != 0)
  14163. + {
  14164. + has_symlinks = 1;
  14165. + break;
  14166. + }
  14167. - case $output in
  14168. - *.lo)
  14169. - if test -n "$objs$old_deplibs"; then
  14170. - $echo "$modename: cannot build library object \`$output' from non-libtool objects" 1>&2
  14171. - exit $EXIT_FAILURE
  14172. - fi
  14173. - libobj="$output"
  14174. - obj=`$echo "X$output" | $Xsed -e "$lo2o"`
  14175. - ;;
  14176. - *)
  14177. - libobj=
  14178. - obj="$output"
  14179. - ;;
  14180. - esac
  14181. + /* search backwards for last DIR_SEPARATOR */
  14182. + p = tmp_pathspec + strlen (tmp_pathspec) - 1;
  14183. + while ((p > tmp_pathspec) && (!IS_DIR_SEPARATOR (*p)))
  14184. + p--;
  14185. + if ((p == tmp_pathspec) && (!IS_DIR_SEPARATOR (*p)))
  14186. + {
  14187. + /* no more DIR_SEPARATORS left */
  14188. + break;
  14189. + }
  14190. + *p = '\0';
  14191. + }
  14192. + else
  14193. + {
  14194. + char *errstr = strerror (errno);
  14195. + lt_fatal ("Error accessing file %s (%s)", tmp_pathspec, errstr);
  14196. + }
  14197. + }
  14198. + XFREE (tmp_pathspec);
  14199. - # Delete the old objects.
  14200. - $run $rm $obj $libobj
  14201. + if (!has_symlinks)
  14202. + {
  14203. + return xstrdup (pathspec);
  14204. + }
  14205. - # Objects from convenience libraries. This assumes
  14206. - # single-version convenience libraries. Whenever we create
  14207. - # different ones for PIC/non-PIC, this we'll have to duplicate
  14208. - # the extraction.
  14209. - reload_conv_objs=
  14210. - gentop=
  14211. - # reload_cmds runs $LD directly, so let us get rid of
  14212. - # -Wl from whole_archive_flag_spec
  14213. - wl=
  14214. + tmp_pathspec = realpath (pathspec, buf);
  14215. + if (tmp_pathspec == 0)
  14216. + {
  14217. + lt_fatal ("Could not follow symlinks for %s", pathspec);
  14218. + }
  14219. + return xstrdup (tmp_pathspec);
  14220. +#endif
  14221. +}
  14222. - if test -n "$convenience"; then
  14223. - if test -n "$whole_archive_flag_spec"; then
  14224. - eval reload_conv_objs=\"\$reload_objs $whole_archive_flag_spec\"
  14225. - else
  14226. - gentop="$output_objdir/${obj}x"
  14227. - generated="$generated $gentop"
  14228. +char *
  14229. +strendzap (char *str, const char *pat)
  14230. +{
  14231. + size_t len, patlen;
  14232. - func_extract_archives $gentop $convenience
  14233. - reload_conv_objs="$reload_objs $func_extract_archives_result"
  14234. - fi
  14235. - fi
  14236. + assert (str != NULL);
  14237. + assert (pat != NULL);
  14238. - # Create the old-style object.
  14239. - 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
  14240. + len = strlen (str);
  14241. + patlen = strlen (pat);
  14242. - output="$obj"
  14243. - cmds=$reload_cmds
  14244. - save_ifs="$IFS"; IFS='~'
  14245. - for cmd in $cmds; do
  14246. - IFS="$save_ifs"
  14247. - eval cmd=\"$cmd\"
  14248. - $show "$cmd"
  14249. - $run eval "$cmd" || exit $?
  14250. - done
  14251. - IFS="$save_ifs"
  14252. + if (patlen <= len)
  14253. + {
  14254. + str += len - patlen;
  14255. + if (strcmp (str, pat) == 0)
  14256. + *str = '\0';
  14257. + }
  14258. + return str;
  14259. +}
  14260. - # Exit if we aren't doing a library object file.
  14261. - if test -z "$libobj"; then
  14262. - if test -n "$gentop"; then
  14263. - $show "${rm}r $gentop"
  14264. - $run ${rm}r $gentop
  14265. - fi
  14266. +static void
  14267. +lt_error_core (int exit_status, const char *mode,
  14268. + const char *message, va_list ap)
  14269. +{
  14270. + fprintf (stderr, "%s: %s: ", program_name, mode);
  14271. + vfprintf (stderr, message, ap);
  14272. + fprintf (stderr, ".\n");
  14273. - exit $EXIT_SUCCESS
  14274. - fi
  14275. + if (exit_status >= 0)
  14276. + exit (exit_status);
  14277. +}
  14278. - if test "$build_libtool_libs" != yes; then
  14279. - if test -n "$gentop"; then
  14280. - $show "${rm}r $gentop"
  14281. - $run ${rm}r $gentop
  14282. - fi
  14283. +void
  14284. +lt_fatal (const char *message, ...)
  14285. +{
  14286. + va_list ap;
  14287. + va_start (ap, message);
  14288. + lt_error_core (EXIT_FAILURE, "FATAL", message, ap);
  14289. + va_end (ap);
  14290. +}
  14291. - # Create an invalid libtool object if no PIC, so that we don't
  14292. - # accidentally link it into a program.
  14293. - # $show "echo timestamp > $libobj"
  14294. - # $run eval "echo timestamp > $libobj" || exit $?
  14295. - exit $EXIT_SUCCESS
  14296. - fi
  14297. +void
  14298. +lt_setenv (const char *name, const char *value)
  14299. +{
  14300. + LTWRAPPER_DEBUGPRINTF (("(lt_setenv) setting '%s' to '%s'\n",
  14301. + (name ? name : "<NULL>"),
  14302. + (value ? value : "<NULL>")));
  14303. + {
  14304. +#ifdef HAVE_SETENV
  14305. + /* always make a copy, for consistency with !HAVE_SETENV */
  14306. + char *str = xstrdup (value);
  14307. + setenv (name, str, 1);
  14308. +#else
  14309. + int len = strlen (name) + 1 + strlen (value) + 1;
  14310. + char *str = XMALLOC (char, len);
  14311. + sprintf (str, "%s=%s", name, value);
  14312. + if (putenv (str) != EXIT_SUCCESS)
  14313. + {
  14314. + XFREE (str);
  14315. + }
  14316. +#endif
  14317. + }
  14318. +}
  14319. - if test -n "$pic_flag" || test "$pic_mode" != default; then
  14320. - # Only do commands if we really have different PIC objects.
  14321. - reload_objs="$libobjs $reload_conv_objs"
  14322. - output="$libobj"
  14323. - cmds=$reload_cmds
  14324. - save_ifs="$IFS"; IFS='~'
  14325. - for cmd in $cmds; do
  14326. - IFS="$save_ifs"
  14327. - eval cmd=\"$cmd\"
  14328. - $show "$cmd"
  14329. - $run eval "$cmd" || exit $?
  14330. - done
  14331. - IFS="$save_ifs"
  14332. - fi
  14333. +char *
  14334. +lt_extend_str (const char *orig_value, const char *add, int to_end)
  14335. +{
  14336. + char *new_value;
  14337. + if (orig_value && *orig_value)
  14338. + {
  14339. + int orig_value_len = strlen (orig_value);
  14340. + int add_len = strlen (add);
  14341. + new_value = XMALLOC (char, add_len + orig_value_len + 1);
  14342. + if (to_end)
  14343. + {
  14344. + strcpy (new_value, orig_value);
  14345. + strcpy (new_value + orig_value_len, add);
  14346. + }
  14347. + else
  14348. + {
  14349. + strcpy (new_value, add);
  14350. + strcpy (new_value + add_len, orig_value);
  14351. + }
  14352. + }
  14353. + else
  14354. + {
  14355. + new_value = xstrdup (add);
  14356. + }
  14357. + return new_value;
  14358. +}
  14359. - if test -n "$gentop"; then
  14360. - $show "${rm}r $gentop"
  14361. - $run ${rm}r $gentop
  14362. - fi
  14363. +int
  14364. +lt_split_name_value (const char *arg, char** name, char** value)
  14365. +{
  14366. + const char *p;
  14367. + int len;
  14368. + if (!arg || !*arg)
  14369. + return 1;
  14370. - exit $EXIT_SUCCESS
  14371. - ;;
  14372. + p = strchr (arg, (int)'=');
  14373. - prog)
  14374. - case $host in
  14375. - *cygwin*) output=`$echo $output | ${SED} -e 's,.exe$,,;s,$,.exe,'` ;;
  14376. - esac
  14377. - if test -n "$vinfo"; then
  14378. - $echo "$modename: warning: \`-version-info' is ignored for programs" 1>&2
  14379. - fi
  14380. + if (!p)
  14381. + return 1;
  14382. - if test -n "$release"; then
  14383. - $echo "$modename: warning: \`-release' is ignored for programs" 1>&2
  14384. - fi
  14385. + *value = xstrdup (++p);
  14386. - if test "$preload" = yes; then
  14387. - if test "$dlopen_support" = unknown && test "$dlopen_self" = unknown &&
  14388. - test "$dlopen_self_static" = unknown; then
  14389. - $echo "$modename: warning: \`AC_LIBTOOL_DLOPEN' not used. Assuming no dlopen support."
  14390. - fi
  14391. - fi
  14392. + len = strlen (arg) - strlen (*value);
  14393. + *name = XMALLOC (char, len);
  14394. + strncpy (*name, arg, len-1);
  14395. + (*name)[len - 1] = '\0';
  14396. - case $host in
  14397. - *-*-rhapsody* | *-*-darwin1.[012])
  14398. - # On Rhapsody replace the C library is the System framework
  14399. - compile_deplibs=`$echo "X $compile_deplibs" | $Xsed -e 's/ -lc / -framework System /'`
  14400. - finalize_deplibs=`$echo "X $finalize_deplibs" | $Xsed -e 's/ -lc / -framework System /'`
  14401. - ;;
  14402. - esac
  14403. + return 0;
  14404. +}
  14405. - case $host in
  14406. - *darwin*)
  14407. - # Don't allow lazy linking, it breaks C++ global constructors
  14408. - if test "$tagname" = CXX ; then
  14409. - compile_command="$compile_command ${wl}-bind_at_load"
  14410. - finalize_command="$finalize_command ${wl}-bind_at_load"
  14411. - fi
  14412. - ;;
  14413. - esac
  14414. +void
  14415. +lt_opt_process_env_set (const char *arg)
  14416. +{
  14417. + char *name = NULL;
  14418. + char *value = NULL;
  14419. + if (lt_split_name_value (arg, &name, &value) != 0)
  14420. + {
  14421. + XFREE (name);
  14422. + XFREE (value);
  14423. + lt_fatal ("bad argument for %s: '%s'", env_set_opt, arg);
  14424. + }
  14425. - # move library search paths that coincide with paths to not yet
  14426. - # installed libraries to the beginning of the library search list
  14427. - new_libs=
  14428. - for path in $notinst_path; do
  14429. - case " $new_libs " in
  14430. - *" -L$path/$objdir "*) ;;
  14431. - *)
  14432. - case " $compile_deplibs " in
  14433. - *" -L$path/$objdir "*)
  14434. - new_libs="$new_libs -L$path/$objdir" ;;
  14435. - esac
  14436. - ;;
  14437. - esac
  14438. - done
  14439. - for deplib in $compile_deplibs; do
  14440. - case $deplib in
  14441. - -L*)
  14442. - case " $new_libs " in
  14443. - *" $deplib "*) ;;
  14444. - *) new_libs="$new_libs $deplib" ;;
  14445. - esac
  14446. - ;;
  14447. - *) new_libs="$new_libs $deplib" ;;
  14448. - esac
  14449. - done
  14450. - compile_deplibs="$new_libs"
  14451. -
  14452. + lt_setenv (name, value);
  14453. + XFREE (name);
  14454. + XFREE (value);
  14455. +}
  14456. - compile_command="$compile_command $compile_deplibs"
  14457. - finalize_command="$finalize_command $finalize_deplibs"
  14458. +void
  14459. +lt_opt_process_env_prepend (const char *arg)
  14460. +{
  14461. + char *name = NULL;
  14462. + char *value = NULL;
  14463. + char *new_value = NULL;
  14464. - if test -n "$rpath$xrpath"; then
  14465. - # If the user specified any rpath flags, then add them.
  14466. - for libdir in $rpath $xrpath; do
  14467. - # This is the magic to use -rpath.
  14468. - case "$finalize_rpath " in
  14469. - *" $libdir "*) ;;
  14470. - *) finalize_rpath="$finalize_rpath $libdir" ;;
  14471. - esac
  14472. - done
  14473. - fi
  14474. + if (lt_split_name_value (arg, &name, &value) != 0)
  14475. + {
  14476. + XFREE (name);
  14477. + XFREE (value);
  14478. + lt_fatal ("bad argument for %s: '%s'", env_prepend_opt, arg);
  14479. + }
  14480. - # Now hardcode the library paths
  14481. - rpath=
  14482. - hardcode_libdirs=
  14483. - for libdir in $compile_rpath $finalize_rpath; do
  14484. - if test -n "$hardcode_libdir_flag_spec"; then
  14485. - if test -n "$hardcode_libdir_separator"; then
  14486. - if test -z "$hardcode_libdirs"; then
  14487. - hardcode_libdirs="$libdir"
  14488. - else
  14489. - # Just accumulate the unique libdirs.
  14490. - case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in
  14491. - *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*)
  14492. - ;;
  14493. - *)
  14494. - hardcode_libdirs="$hardcode_libdirs$hardcode_libdir_separator$libdir"
  14495. - ;;
  14496. - esac
  14497. - fi
  14498. - else
  14499. - eval flag=\"$hardcode_libdir_flag_spec\"
  14500. - rpath="$rpath $flag"
  14501. - fi
  14502. - elif test -n "$runpath_var"; then
  14503. - case "$perm_rpath " in
  14504. - *" $libdir "*) ;;
  14505. - *) perm_rpath="$perm_rpath $libdir" ;;
  14506. - esac
  14507. - fi
  14508. - case $host in
  14509. - *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2*)
  14510. - testbindir=`$echo "X$libdir" | $Xsed -e 's*/lib$*/bin*'`
  14511. - case :$dllsearchpath: in
  14512. - *":$libdir:"*) ;;
  14513. - *) dllsearchpath="$dllsearchpath:$libdir";;
  14514. - esac
  14515. - case :$dllsearchpath: in
  14516. - *":$testbindir:"*) ;;
  14517. - *) dllsearchpath="$dllsearchpath:$testbindir";;
  14518. - esac
  14519. - ;;
  14520. - esac
  14521. - done
  14522. - # Substitute the hardcoded libdirs into the rpath.
  14523. - if test -n "$hardcode_libdir_separator" &&
  14524. - test -n "$hardcode_libdirs"; then
  14525. - libdir="$hardcode_libdirs"
  14526. - eval rpath=\" $hardcode_libdir_flag_spec\"
  14527. - fi
  14528. - compile_rpath="$rpath"
  14529. + new_value = lt_extend_str (getenv (name), value, 0);
  14530. + lt_setenv (name, new_value);
  14531. + XFREE (new_value);
  14532. + XFREE (name);
  14533. + XFREE (value);
  14534. +}
  14535. - rpath=
  14536. - hardcode_libdirs=
  14537. - for libdir in $finalize_rpath; do
  14538. - if test -n "$hardcode_libdir_flag_spec"; then
  14539. - if test -n "$hardcode_libdir_separator"; then
  14540. - if test -z "$hardcode_libdirs"; then
  14541. - hardcode_libdirs="$libdir"
  14542. - else
  14543. - # Just accumulate the unique libdirs.
  14544. - case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in
  14545. - *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*)
  14546. - ;;
  14547. - *)
  14548. - hardcode_libdirs="$hardcode_libdirs$hardcode_libdir_separator$libdir"
  14549. - ;;
  14550. - esac
  14551. - fi
  14552. - else
  14553. - eval flag=\"$hardcode_libdir_flag_spec\"
  14554. - rpath="$rpath $flag"
  14555. - fi
  14556. - elif test -n "$runpath_var"; then
  14557. - case "$finalize_perm_rpath " in
  14558. - *" $libdir "*) ;;
  14559. - *) finalize_perm_rpath="$finalize_perm_rpath $libdir" ;;
  14560. - esac
  14561. - fi
  14562. - done
  14563. - # Substitute the hardcoded libdirs into the rpath.
  14564. - if test -n "$hardcode_libdir_separator" &&
  14565. - test -n "$hardcode_libdirs"; then
  14566. - libdir="$hardcode_libdirs"
  14567. - eval rpath=\" $hardcode_libdir_flag_spec\"
  14568. - fi
  14569. - finalize_rpath="$rpath"
  14570. +void
  14571. +lt_opt_process_env_append (const char *arg)
  14572. +{
  14573. + char *name = NULL;
  14574. + char *value = NULL;
  14575. + char *new_value = NULL;
  14576. - if test -n "$libobjs" && test "$build_old_libs" = yes; then
  14577. - # Transform all the library objects into standard objects.
  14578. - compile_command=`$echo "X$compile_command" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP`
  14579. - finalize_command=`$echo "X$finalize_command" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP`
  14580. - fi
  14581. + if (lt_split_name_value (arg, &name, &value) != 0)
  14582. + {
  14583. + XFREE (name);
  14584. + XFREE (value);
  14585. + lt_fatal ("bad argument for %s: '%s'", env_append_opt, arg);
  14586. + }
  14587. - dlsyms=
  14588. - if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then
  14589. - if test -n "$NM" && test -n "$global_symbol_pipe"; then
  14590. - dlsyms="${outputname}S.c"
  14591. - else
  14592. - $echo "$modename: not configured to extract global symbols from dlpreopened files" 1>&2
  14593. - fi
  14594. - fi
  14595. + new_value = lt_extend_str (getenv (name), value, 1);
  14596. + lt_setenv (name, new_value);
  14597. + XFREE (new_value);
  14598. + XFREE (name);
  14599. + XFREE (value);
  14600. +}
  14601. - if test -n "$dlsyms"; then
  14602. - case $dlsyms in
  14603. - "") ;;
  14604. - *.c)
  14605. - # Discover the nlist of each of the dlfiles.
  14606. - nlist="$output_objdir/${outputname}.nm"
  14607. +void
  14608. +lt_update_exe_path (const char *name, const char *value)
  14609. +{
  14610. + LTWRAPPER_DEBUGPRINTF (("(lt_update_exe_path) modifying '%s' by prepending '%s'\n",
  14611. + (name ? name : "<NULL>"),
  14612. + (value ? value : "<NULL>")));
  14613. - $show "$rm $nlist ${nlist}S ${nlist}T"
  14614. - $run $rm "$nlist" "${nlist}S" "${nlist}T"
  14615. + if (name && *name && value && *value)
  14616. + {
  14617. + char *new_value = lt_extend_str (getenv (name), value, 0);
  14618. + /* some systems can't cope with a ':'-terminated path #' */
  14619. + int len = strlen (new_value);
  14620. + while (((len = strlen (new_value)) > 0) && IS_PATH_SEPARATOR (new_value[len-1]))
  14621. + {
  14622. + new_value[len-1] = '\0';
  14623. + }
  14624. + lt_setenv (name, new_value);
  14625. + XFREE (new_value);
  14626. + }
  14627. +}
  14628. - # Parse the name list into a source file.
  14629. - $show "creating $output_objdir/$dlsyms"
  14630. +void
  14631. +lt_update_lib_path (const char *name, const char *value)
  14632. +{
  14633. + LTWRAPPER_DEBUGPRINTF (("(lt_update_lib_path) modifying '%s' by prepending '%s'\n",
  14634. + (name ? name : "<NULL>"),
  14635. + (value ? value : "<NULL>")));
  14636. - test -z "$run" && $echo > "$output_objdir/$dlsyms" "\
  14637. -/* $dlsyms - symbol resolution table for \`$outputname' dlsym emulation. */
  14638. -/* Generated by $PROGRAM - GNU $PACKAGE $VERSION$TIMESTAMP */
  14639. + if (name && *name && value && *value)
  14640. + {
  14641. + char *new_value = lt_extend_str (getenv (name), value, 0);
  14642. + lt_setenv (name, new_value);
  14643. + XFREE (new_value);
  14644. + }
  14645. +}
  14646. -#ifdef __cplusplus
  14647. -extern \"C\" {
  14648. -#endif
  14649. -/* Prevent the only kind of declaration conflicts we can make. */
  14650. -#define lt_preloaded_symbols some_other_symbol
  14651. +EOF
  14652. +}
  14653. +# end: func_emit_cwrapperexe_src
  14654. -/* External symbol declarations for the compiler. */\
  14655. -"
  14656. +# func_mode_link arg...
  14657. +func_mode_link ()
  14658. +{
  14659. + $opt_debug
  14660. + case $host in
  14661. + *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-cegcc*)
  14662. + # It is impossible to link a dll without this setting, and
  14663. + # we shouldn't force the makefile maintainer to figure out
  14664. + # which system we are compiling for in order to pass an extra
  14665. + # flag for every libtool invocation.
  14666. + # allow_undefined=no
  14667. - if test "$dlself" = yes; then
  14668. - $show "generating symbol list for \`$output'"
  14669. + # FIXME: Unfortunately, there are problems with the above when trying
  14670. + # to make a dll which has undefined symbols, in which case not
  14671. + # even a static library is built. For now, we need to specify
  14672. + # -no-undefined on the libtool link line when we can be certain
  14673. + # that all symbols are satisfied, otherwise we get a static library.
  14674. + allow_undefined=yes
  14675. + ;;
  14676. + *)
  14677. + allow_undefined=yes
  14678. + ;;
  14679. + esac
  14680. + libtool_args=$nonopt
  14681. + base_compile="$nonopt $@"
  14682. + compile_command=$nonopt
  14683. + finalize_command=$nonopt
  14684. - test -z "$run" && $echo ': @PROGRAM@ ' > "$nlist"
  14685. + compile_rpath=
  14686. + finalize_rpath=
  14687. + compile_shlibpath=
  14688. + finalize_shlibpath=
  14689. + convenience=
  14690. + old_convenience=
  14691. + deplibs=
  14692. + old_deplibs=
  14693. + compiler_flags=
  14694. + linker_flags=
  14695. + dllsearchpath=
  14696. + lib_search_path=`pwd`
  14697. + inst_prefix_dir=
  14698. + new_inherited_linker_flags=
  14699. - # Add our own program objects to the symbol list.
  14700. - progfiles=`$echo "X$objs$old_deplibs" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP`
  14701. - for arg in $progfiles; do
  14702. - $show "extracting global C symbols from \`$arg'"
  14703. - $run eval "$NM $arg | $global_symbol_pipe >> '$nlist'"
  14704. - done
  14705. + avoid_version=no
  14706. + dlfiles=
  14707. + dlprefiles=
  14708. + dlself=no
  14709. + export_dynamic=no
  14710. + export_symbols=
  14711. + export_symbols_regex=
  14712. + generated=
  14713. + libobjs=
  14714. + ltlibs=
  14715. + module=no
  14716. + no_install=no
  14717. + objs=
  14718. + non_pic_objects=
  14719. + precious_files_regex=
  14720. + prefer_static_libs=no
  14721. + preload=no
  14722. + prev=
  14723. + prevarg=
  14724. + release=
  14725. + rpath=
  14726. + xrpath=
  14727. + perm_rpath=
  14728. + temp_rpath=
  14729. + thread_safe=no
  14730. + vinfo=
  14731. + vinfo_number=no
  14732. + weak_libs=
  14733. + single_module="${wl}-single_module"
  14734. + func_infer_tag $base_compile
  14735. - if test -n "$exclude_expsyms"; then
  14736. - $run eval '$EGREP -v " ($exclude_expsyms)$" "$nlist" > "$nlist"T'
  14737. - $run eval '$mv "$nlist"T "$nlist"'
  14738. - fi
  14739. -
  14740. - if test -n "$export_symbols_regex"; then
  14741. - $run eval '$EGREP -e "$export_symbols_regex" "$nlist" > "$nlist"T'
  14742. - $run eval '$mv "$nlist"T "$nlist"'
  14743. - fi
  14744. -
  14745. - # Prepare the list of exported symbols
  14746. - if test -z "$export_symbols"; then
  14747. - export_symbols="$output_objdir/$outputname.exp"
  14748. - $run $rm $export_symbols
  14749. - $run eval "${SED} -n -e '/^: @PROGRAM@ $/d' -e 's/^.* \(.*\)$/\1/p' "'< "$nlist" > "$export_symbols"'
  14750. - case $host in
  14751. - *cygwin* | *mingw* )
  14752. - $run eval "echo EXPORTS "'> "$output_objdir/$outputname.def"'
  14753. - $run eval 'cat "$export_symbols" >> "$output_objdir/$outputname.def"'
  14754. - ;;
  14755. - esac
  14756. - else
  14757. - $run eval "${SED} -e 's/\([].[*^$]\)/\\\\\1/g' -e 's/^/ /' -e 's/$/$/'"' < "$export_symbols" > "$output_objdir/$outputname.exp"'
  14758. - $run eval 'grep -f "$output_objdir/$outputname.exp" < "$nlist" > "$nlist"T'
  14759. - $run eval 'mv "$nlist"T "$nlist"'
  14760. - case $host in
  14761. - *cygwin* | *mingw* )
  14762. - $run eval "echo EXPORTS "'> "$output_objdir/$outputname.def"'
  14763. - $run eval 'cat "$nlist" >> "$output_objdir/$outputname.def"'
  14764. - ;;
  14765. - esac
  14766. - fi
  14767. + # We need to know -static, to get the right output filenames.
  14768. + for arg
  14769. + do
  14770. + case $arg in
  14771. + -shared)
  14772. + test "$build_libtool_libs" != yes && \
  14773. + func_fatal_configuration "can not build a shared library"
  14774. + build_old_libs=no
  14775. + break
  14776. + ;;
  14777. + -all-static | -static | -static-libtool-libs)
  14778. + case $arg in
  14779. + -all-static)
  14780. + if test "$build_libtool_libs" = yes && test -z "$link_static_flag"; then
  14781. + func_warning "complete static linking is impossible in this configuration"
  14782. fi
  14783. + if test -n "$link_static_flag"; then
  14784. + dlopen_self=$dlopen_self_static
  14785. + fi
  14786. + prefer_static_libs=yes
  14787. + ;;
  14788. + -static)
  14789. + if test -z "$pic_flag" && test -n "$link_static_flag"; then
  14790. + dlopen_self=$dlopen_self_static
  14791. + fi
  14792. + prefer_static_libs=built
  14793. + ;;
  14794. + -static-libtool-libs)
  14795. + if test -z "$pic_flag" && test -n "$link_static_flag"; then
  14796. + dlopen_self=$dlopen_self_static
  14797. + fi
  14798. + prefer_static_libs=yes
  14799. + ;;
  14800. + esac
  14801. + build_libtool_libs=no
  14802. + build_old_libs=yes
  14803. + break
  14804. + ;;
  14805. + esac
  14806. + done
  14807. - for arg in $dlprefiles; do
  14808. - $show "extracting global C symbols from \`$arg'"
  14809. - name=`$echo "$arg" | ${SED} -e 's%^.*/%%'`
  14810. - $run eval '$echo ": $name " >> "$nlist"'
  14811. - $run eval "$NM $arg | $global_symbol_pipe >> '$nlist'"
  14812. - done
  14813. -
  14814. - if test -z "$run"; then
  14815. - # Make sure we have at least an empty file.
  14816. - test -f "$nlist" || : > "$nlist"
  14817. -
  14818. - if test -n "$exclude_expsyms"; then
  14819. - $EGREP -v " ($exclude_expsyms)$" "$nlist" > "$nlist"T
  14820. - $mv "$nlist"T "$nlist"
  14821. - fi
  14822. + # See if our shared archives depend on static archives.
  14823. + test -n "$old_archive_from_new_cmds" && build_old_libs=yes
  14824. - # Try sorting and uniquifying the output.
  14825. - if grep -v "^: " < "$nlist" |
  14826. - if sort -k 3 </dev/null >/dev/null 2>&1; then
  14827. - sort -k 3
  14828. - else
  14829. - sort +2
  14830. - fi |
  14831. - uniq > "$nlist"S; then
  14832. - :
  14833. + # Go through the arguments, transforming them on the way.
  14834. + while test "$#" -gt 0; do
  14835. + arg="$1"
  14836. + shift
  14837. + func_quote_for_eval "$arg"
  14838. + qarg=$func_quote_for_eval_unquoted_result
  14839. + func_append libtool_args " $func_quote_for_eval_result"
  14840. +
  14841. + # If the previous option needs an argument, assign it.
  14842. + if test -n "$prev"; then
  14843. + case $prev in
  14844. + output)
  14845. + func_append compile_command " @OUTPUT@"
  14846. + func_append finalize_command " @OUTPUT@"
  14847. + ;;
  14848. + esac
  14849. +
  14850. + case $prev in
  14851. + dlfiles|dlprefiles)
  14852. + if test "$preload" = no; then
  14853. + # Add the symbol object into the linking commands.
  14854. + func_append compile_command " @SYMFILE@"
  14855. + func_append finalize_command " @SYMFILE@"
  14856. + preload=yes
  14857. + fi
  14858. + case $arg in
  14859. + *.la | *.lo) ;; # We handle these cases below.
  14860. + force)
  14861. + if test "$dlself" = no; then
  14862. + dlself=needless
  14863. + export_dynamic=yes
  14864. + fi
  14865. + prev=
  14866. + continue
  14867. + ;;
  14868. + self)
  14869. + if test "$prev" = dlprefiles; then
  14870. + dlself=yes
  14871. + elif test "$prev" = dlfiles && test "$dlopen_self" != yes; then
  14872. + dlself=yes
  14873. else
  14874. - grep -v "^: " < "$nlist" > "$nlist"S
  14875. + dlself=needless
  14876. + export_dynamic=yes
  14877. fi
  14878. -
  14879. - if test -f "$nlist"S; then
  14880. - eval "$global_symbol_to_cdecl"' < "$nlist"S >> "$output_objdir/$dlsyms"'
  14881. + prev=
  14882. + continue
  14883. + ;;
  14884. + *)
  14885. + if test "$prev" = dlfiles; then
  14886. + dlfiles="$dlfiles $arg"
  14887. else
  14888. - $echo '/* NONE */' >> "$output_objdir/$dlsyms"
  14889. + dlprefiles="$dlprefiles $arg"
  14890. fi
  14891. + prev=
  14892. + continue
  14893. + ;;
  14894. + esac
  14895. + ;;
  14896. + expsyms)
  14897. + export_symbols="$arg"
  14898. + test -f "$arg" \
  14899. + || func_fatal_error "symbol file \`$arg' does not exist"
  14900. + prev=
  14901. + continue
  14902. + ;;
  14903. + expsyms_regex)
  14904. + export_symbols_regex="$arg"
  14905. + prev=
  14906. + continue
  14907. + ;;
  14908. + framework)
  14909. + case $host in
  14910. + *-*-darwin*)
  14911. + case "$deplibs " in
  14912. + *" $qarg.ltframework "*) ;;
  14913. + *) deplibs="$deplibs $qarg.ltframework" # this is fixed later
  14914. + ;;
  14915. + esac
  14916. + ;;
  14917. + esac
  14918. + prev=
  14919. + continue
  14920. + ;;
  14921. + inst_prefix)
  14922. + inst_prefix_dir="$arg"
  14923. + prev=
  14924. + continue
  14925. + ;;
  14926. + objectlist)
  14927. + if test -f "$arg"; then
  14928. + save_arg=$arg
  14929. + moreargs=
  14930. + for fil in `cat "$save_arg"`
  14931. + do
  14932. +# moreargs="$moreargs $fil"
  14933. + arg=$fil
  14934. + # A libtool-controlled object.
  14935. - $echo >> "$output_objdir/$dlsyms" "\
  14936. + # Check to see that this really is a libtool object.
  14937. + if func_lalib_unsafe_p "$arg"; then
  14938. + pic_object=
  14939. + non_pic_object=
  14940. -#undef lt_preloaded_symbols
  14941. + # Read the .lo file
  14942. + func_source "$arg"
  14943. -#if defined (__STDC__) && __STDC__
  14944. -# define lt_ptr void *
  14945. -#else
  14946. -# define lt_ptr char *
  14947. -# define const
  14948. -#endif
  14949. + if test -z "$pic_object" ||
  14950. + test -z "$non_pic_object" ||
  14951. + test "$pic_object" = none &&
  14952. + test "$non_pic_object" = none; then
  14953. + func_fatal_error "cannot find name of object for \`$arg'"
  14954. + fi
  14955. -/* The mapping between symbol names and symbols. */
  14956. -"
  14957. + # Extract subdirectory from the argument.
  14958. + func_dirname "$arg" "/" ""
  14959. + xdir="$func_dirname_result"
  14960. - case $host in
  14961. - *cygwin* | *mingw* )
  14962. - $echo >> "$output_objdir/$dlsyms" "\
  14963. -/* DATA imports from DLLs on WIN32 can't be const, because
  14964. - runtime relocations are performed -- see ld's documentation
  14965. - on pseudo-relocs */
  14966. -struct {
  14967. -"
  14968. - ;;
  14969. - * )
  14970. - $echo >> "$output_objdir/$dlsyms" "\
  14971. -const struct {
  14972. -"
  14973. - ;;
  14974. - esac
  14975. + if test "$pic_object" != none; then
  14976. + # Prepend the subdirectory the object is found in.
  14977. + pic_object="$xdir$pic_object"
  14978. + if test "$prev" = dlfiles; then
  14979. + if test "$build_libtool_libs" = yes && test "$dlopen_support" = yes; then
  14980. + dlfiles="$dlfiles $pic_object"
  14981. + prev=
  14982. + continue
  14983. + else
  14984. + # If libtool objects are unsupported, then we need to preload.
  14985. + prev=dlprefiles
  14986. + fi
  14987. + fi
  14988. - $echo >> "$output_objdir/$dlsyms" "\
  14989. - const char *name;
  14990. - lt_ptr address;
  14991. -}
  14992. -lt_preloaded_symbols[] =
  14993. -{\
  14994. -"
  14995. + # CHECK ME: I think I busted this. -Ossama
  14996. + if test "$prev" = dlprefiles; then
  14997. + # Preload the old-style object.
  14998. + dlprefiles="$dlprefiles $pic_object"
  14999. + prev=
  15000. + fi
  15001. - eval "$global_symbol_to_c_name_address" < "$nlist" >> "$output_objdir/$dlsyms"
  15002. + # A PIC object.
  15003. + func_append libobjs " $pic_object"
  15004. + arg="$pic_object"
  15005. + fi
  15006. - $echo >> "$output_objdir/$dlsyms" "\
  15007. - {0, (lt_ptr) 0}
  15008. -};
  15009. + # Non-PIC object.
  15010. + if test "$non_pic_object" != none; then
  15011. + # Prepend the subdirectory the object is found in.
  15012. + non_pic_object="$xdir$non_pic_object"
  15013. -/* This works around a problem in FreeBSD linker */
  15014. -#ifdef FREEBSD_WORKAROUND
  15015. -static const void *lt_preloaded_setup() {
  15016. - return lt_preloaded_symbols;
  15017. -}
  15018. -#endif
  15019. + # A standard non-PIC object
  15020. + func_append non_pic_objects " $non_pic_object"
  15021. + if test -z "$pic_object" || test "$pic_object" = none ; then
  15022. + arg="$non_pic_object"
  15023. + fi
  15024. + else
  15025. + # If the PIC object exists, use it instead.
  15026. + # $xdir was prepended to $pic_object above.
  15027. + non_pic_object="$pic_object"
  15028. + func_append non_pic_objects " $non_pic_object"
  15029. + fi
  15030. + else
  15031. + # Only an error if not doing a dry-run.
  15032. + if $opt_dry_run; then
  15033. + # Extract subdirectory from the argument.
  15034. + func_dirname "$arg" "/" ""
  15035. + xdir="$func_dirname_result"
  15036. -#ifdef __cplusplus
  15037. -}
  15038. -#endif\
  15039. -"
  15040. + func_lo2o "$arg"
  15041. + pic_object=$xdir$objdir/$func_lo2o_result
  15042. + non_pic_object=$xdir$func_lo2o_result
  15043. + func_append libobjs " $pic_object"
  15044. + func_append non_pic_objects " $non_pic_object"
  15045. + else
  15046. + func_fatal_error "\`$arg' is not a valid libtool object"
  15047. + fi
  15048. + fi
  15049. + done
  15050. + else
  15051. + func_fatal_error "link input file \`$arg' does not exist"
  15052. fi
  15053. -
  15054. - pic_flag_for_symtable=
  15055. - case $host in
  15056. - # compiling the symbol table file with pic_flag works around
  15057. - # a FreeBSD bug that causes programs to crash when -lm is
  15058. - # linked before any other PIC object. But we must not use
  15059. - # pic_flag when linking with -static. The problem exists in
  15060. - # FreeBSD 2.2.6 and is fixed in FreeBSD 3.1.
  15061. - *-*-freebsd2*|*-*-freebsd3.0*|*-*-freebsdelf3.0*)
  15062. - case "$compile_command " in
  15063. - *" -static "*) ;;
  15064. - *) pic_flag_for_symtable=" $pic_flag -DFREEBSD_WORKAROUND";;
  15065. - esac;;
  15066. - *-*-hpux*)
  15067. - case "$compile_command " in
  15068. - *" -static "*) ;;
  15069. - *) pic_flag_for_symtable=" $pic_flag";;
  15070. - esac
  15071. + arg=$save_arg
  15072. + prev=
  15073. + continue
  15074. + ;;
  15075. + precious_regex)
  15076. + precious_files_regex="$arg"
  15077. + prev=
  15078. + continue
  15079. + ;;
  15080. + release)
  15081. + release="-$arg"
  15082. + prev=
  15083. + continue
  15084. + ;;
  15085. + rpath | xrpath)
  15086. + # We need an absolute path.
  15087. + case $arg in
  15088. + [\\/]* | [A-Za-z]:[\\/]*) ;;
  15089. + *)
  15090. + func_fatal_error "only absolute run-paths are allowed"
  15091. + ;;
  15092. esac
  15093. -
  15094. - # Now compile the dynamic symbol file.
  15095. - $show "(cd $output_objdir && $LTCC $LTCFLAGS -c$no_builtin_flag$pic_flag_for_symtable \"$dlsyms\")"
  15096. - $run eval '(cd $output_objdir && $LTCC $LTCFLAGS -c$no_builtin_flag$pic_flag_for_symtable "$dlsyms")' || exit $?
  15097. -
  15098. - # Clean up the generated files.
  15099. - $show "$rm $output_objdir/$dlsyms $nlist ${nlist}S ${nlist}T"
  15100. - $run $rm "$output_objdir/$dlsyms" "$nlist" "${nlist}S" "${nlist}T"
  15101. -
  15102. - # Transform the symbol file into the correct name.
  15103. - case $host in
  15104. - *cygwin* | *mingw* )
  15105. - if test -f "$output_objdir/${outputname}.def" ; then
  15106. - compile_command=`$echo "X$compile_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}.def $output_objdir/${outputname}S.${objext}%"`
  15107. - finalize_command=`$echo "X$finalize_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}.def $output_objdir/${outputname}S.${objext}%"`
  15108. - else
  15109. - compile_command=`$echo "X$compile_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%"`
  15110. - finalize_command=`$echo "X$finalize_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%"`
  15111. - fi
  15112. - ;;
  15113. - * )
  15114. - compile_command=`$echo "X$compile_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%"`
  15115. - finalize_command=`$echo "X$finalize_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%"`
  15116. - ;;
  15117. - esac
  15118. + if test "$prev" = rpath; then
  15119. + case "$rpath " in
  15120. + *" $arg "*) ;;
  15121. + *) rpath="$rpath $arg" ;;
  15122. + esac
  15123. + else
  15124. + case "$xrpath " in
  15125. + *" $arg "*) ;;
  15126. + *) xrpath="$xrpath $arg" ;;
  15127. + esac
  15128. + fi
  15129. + prev=
  15130. + continue
  15131. + ;;
  15132. + shrext)
  15133. + shrext_cmds="$arg"
  15134. + prev=
  15135. + continue
  15136. + ;;
  15137. + weak)
  15138. + weak_libs="$weak_libs $arg"
  15139. + prev=
  15140. + continue
  15141. + ;;
  15142. + xcclinker)
  15143. + linker_flags="$linker_flags $qarg"
  15144. + compiler_flags="$compiler_flags $qarg"
  15145. + prev=
  15146. + func_append compile_command " $qarg"
  15147. + func_append finalize_command " $qarg"
  15148. + continue
  15149. + ;;
  15150. + xcompiler)
  15151. + compiler_flags="$compiler_flags $qarg"
  15152. + prev=
  15153. + func_append compile_command " $qarg"
  15154. + func_append finalize_command " $qarg"
  15155. + continue
  15156. + ;;
  15157. + xlinker)
  15158. + linker_flags="$linker_flags $qarg"
  15159. + compiler_flags="$compiler_flags $wl$qarg"
  15160. + prev=
  15161. + func_append compile_command " $wl$qarg"
  15162. + func_append finalize_command " $wl$qarg"
  15163. + continue
  15164. ;;
  15165. *)
  15166. - $echo "$modename: unknown suffix for \`$dlsyms'" 1>&2
  15167. - exit $EXIT_FAILURE
  15168. + eval "$prev=\"\$arg\""
  15169. + prev=
  15170. + continue
  15171. ;;
  15172. esac
  15173. - else
  15174. - # We keep going just in case the user didn't refer to
  15175. - # lt_preloaded_symbols. The linker will fail if global_symbol_pipe
  15176. - # really was required.
  15177. + fi # test -n "$prev"
  15178. - # Nullify the symbol file.
  15179. - compile_command=`$echo "X$compile_command" | $Xsed -e "s% @SYMFILE@%%"`
  15180. - finalize_command=`$echo "X$finalize_command" | $Xsed -e "s% @SYMFILE@%%"`
  15181. - fi
  15182. + prevarg="$arg"
  15183. - if test "$need_relink" = no || test "$build_libtool_libs" != yes; then
  15184. - # Replace the output file specification.
  15185. - compile_command=`$echo "X$compile_command" | $Xsed -e 's%@OUTPUT@%'"$output"'%g'`
  15186. - link_command="$compile_command$compile_rpath"
  15187. + case $arg in
  15188. + -all-static)
  15189. + if test -n "$link_static_flag"; then
  15190. + # See comment for -static flag below, for more details.
  15191. + func_append compile_command " $link_static_flag"
  15192. + func_append finalize_command " $link_static_flag"
  15193. + fi
  15194. + continue
  15195. + ;;
  15196. - # We have no uninstalled library dependencies, so finalize right now.
  15197. - $show "$link_command"
  15198. - $run eval "$link_command"
  15199. - exit_status=$?
  15200. + -allow-undefined)
  15201. + # FIXME: remove this flag sometime in the future.
  15202. + func_fatal_error "\`-allow-undefined' must not be used because it is the default"
  15203. + ;;
  15204. - # Delete the generated files.
  15205. - if test -n "$dlsyms"; then
  15206. - $show "$rm $output_objdir/${outputname}S.${objext}"
  15207. - $run $rm "$output_objdir/${outputname}S.${objext}"
  15208. - fi
  15209. + -avoid-version)
  15210. + avoid_version=yes
  15211. + continue
  15212. + ;;
  15213. - exit $exit_status
  15214. - fi
  15215. + -dlopen)
  15216. + prev=dlfiles
  15217. + continue
  15218. + ;;
  15219. - if test -n "$shlibpath_var"; then
  15220. - # We should set the shlibpath_var
  15221. - rpath=
  15222. - for dir in $temp_rpath; do
  15223. - case $dir in
  15224. - [\\/]* | [A-Za-z]:[\\/]*)
  15225. - # Absolute path.
  15226. - rpath="$rpath$dir:"
  15227. - ;;
  15228. - *)
  15229. - # Relative path: add a thisdir entry.
  15230. - rpath="$rpath\$thisdir/$dir:"
  15231. - ;;
  15232. - esac
  15233. - done
  15234. - temp_rpath="$rpath"
  15235. - fi
  15236. + -dlpreopen)
  15237. + prev=dlprefiles
  15238. + continue
  15239. + ;;
  15240. - if test -n "$compile_shlibpath$finalize_shlibpath"; then
  15241. - compile_command="$shlibpath_var=\"$compile_shlibpath$finalize_shlibpath\$$shlibpath_var\" $compile_command"
  15242. - fi
  15243. - if test -n "$finalize_shlibpath"; then
  15244. - finalize_command="$shlibpath_var=\"$finalize_shlibpath\$$shlibpath_var\" $finalize_command"
  15245. - fi
  15246. + -export-dynamic)
  15247. + export_dynamic=yes
  15248. + continue
  15249. + ;;
  15250. - compile_var=
  15251. - finalize_var=
  15252. - if test -n "$runpath_var"; then
  15253. - if test -n "$perm_rpath"; then
  15254. - # We should set the runpath_var.
  15255. - rpath=
  15256. - for dir in $perm_rpath; do
  15257. - rpath="$rpath$dir:"
  15258. - done
  15259. - compile_var="$runpath_var=\"$rpath\$$runpath_var\" "
  15260. + -export-symbols | -export-symbols-regex)
  15261. + if test -n "$export_symbols" || test -n "$export_symbols_regex"; then
  15262. + func_fatal_error "more than one -exported-symbols argument is not allowed"
  15263. fi
  15264. - if test -n "$finalize_perm_rpath"; then
  15265. - # We should set the runpath_var.
  15266. - rpath=
  15267. - for dir in $finalize_perm_rpath; do
  15268. - rpath="$rpath$dir:"
  15269. - done
  15270. - finalize_var="$runpath_var=\"$rpath\$$runpath_var\" "
  15271. + if test "X$arg" = "X-export-symbols"; then
  15272. + prev=expsyms
  15273. + else
  15274. + prev=expsyms_regex
  15275. fi
  15276. - fi
  15277. + continue
  15278. + ;;
  15279. - if test "$no_install" = yes; then
  15280. - # We don't need to create a wrapper script.
  15281. - link_command="$compile_var$compile_command$compile_rpath"
  15282. - # Replace the output file specification.
  15283. - link_command=`$echo "X$link_command" | $Xsed -e 's%@OUTPUT@%'"$output"'%g'`
  15284. - # Delete the old output file.
  15285. - $run $rm $output
  15286. - # Link the executable and exit
  15287. - $show "$link_command"
  15288. - $run eval "$link_command" || exit $?
  15289. - exit $EXIT_SUCCESS
  15290. - fi
  15291. + -framework)
  15292. + prev=framework
  15293. + continue
  15294. + ;;
  15295. - if test "$hardcode_action" = relink; then
  15296. - # Fast installation is not supported
  15297. - link_command="$compile_var$compile_command$compile_rpath"
  15298. - relink_command="$finalize_var$finalize_command$finalize_rpath"
  15299. + -inst-prefix-dir)
  15300. + prev=inst_prefix
  15301. + continue
  15302. + ;;
  15303. - $echo "$modename: warning: this platform does not like uninstalled shared libraries" 1>&2
  15304. - $echo "$modename: \`$output' will be relinked during installation" 1>&2
  15305. - else
  15306. - if test "$fast_install" != no; then
  15307. - link_command="$finalize_var$compile_command$finalize_rpath"
  15308. - if test "$fast_install" = yes; then
  15309. - relink_command=`$echo "X$compile_var$compile_command$compile_rpath" | $Xsed -e 's%@OUTPUT@%\$progdir/\$file%g'`
  15310. + # The native IRIX linker understands -LANG:*, -LIST:* and -LNO:*
  15311. + # so, if we see these flags be careful not to treat them like -L
  15312. + -L[A-Z][A-Z]*:*)
  15313. + case $with_gcc/$host in
  15314. + no/*-*-irix* | /*-*-irix*)
  15315. + func_append compile_command " $arg"
  15316. + func_append finalize_command " $arg"
  15317. + ;;
  15318. + esac
  15319. + continue
  15320. + ;;
  15321. +
  15322. + -L*)
  15323. + func_stripname '-L' '' "$arg"
  15324. + dir=$func_stripname_result
  15325. + if test -z "$dir"; then
  15326. + if test "$#" -gt 0; then
  15327. + func_fatal_error "require no space between \`-L' and \`$1'"
  15328. else
  15329. - # fast_install is set to needless
  15330. - relink_command=
  15331. + func_fatal_error "need path for \`-L' option"
  15332. fi
  15333. - else
  15334. - link_command="$compile_var$compile_command$compile_rpath"
  15335. - relink_command="$finalize_var$finalize_command$finalize_rpath"
  15336. fi
  15337. - fi
  15338. + # We need an absolute path.
  15339. + case $dir in
  15340. + [\\/]* | [A-Za-z]:[\\/]*) ;;
  15341. + *)
  15342. + absdir=`cd "$dir" && pwd`
  15343. + test -z "$absdir" && \
  15344. + func_fatal_error "cannot determine absolute directory name of \`$dir'"
  15345. + dir="$absdir"
  15346. + ;;
  15347. + esac
  15348. + case "$deplibs " in
  15349. + *" -L$dir "*) ;;
  15350. + *)
  15351. + deplibs="$deplibs -L$dir"
  15352. + lib_search_path="$lib_search_path $dir"
  15353. + ;;
  15354. + esac
  15355. + case $host in
  15356. + *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-cegcc*)
  15357. + testbindir=`$ECHO "X$dir" | $Xsed -e 's*/lib$*/bin*'`
  15358. + case :$dllsearchpath: in
  15359. + *":$dir:"*) ;;
  15360. + ::) dllsearchpath=$dir;;
  15361. + *) dllsearchpath="$dllsearchpath:$dir";;
  15362. + esac
  15363. + case :$dllsearchpath: in
  15364. + *":$testbindir:"*) ;;
  15365. + ::) dllsearchpath=$testbindir;;
  15366. + *) dllsearchpath="$dllsearchpath:$testbindir";;
  15367. + esac
  15368. + ;;
  15369. + esac
  15370. + continue
  15371. + ;;
  15372. - # Replace the output file specification.
  15373. - link_command=`$echo "X$link_command" | $Xsed -e 's%@OUTPUT@%'"$output_objdir/$outputname"'%g'`
  15374. + -l*)
  15375. + if test "X$arg" = "X-lc" || test "X$arg" = "X-lm"; then
  15376. + case $host in
  15377. + *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-beos* | *-cegcc*)
  15378. + # These systems don't actually have a C or math library (as such)
  15379. + continue
  15380. + ;;
  15381. + *-*-os2*)
  15382. + # These systems don't actually have a C library (as such)
  15383. + test "X$arg" = "X-lc" && continue
  15384. + ;;
  15385. + *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*)
  15386. + # Do not include libc due to us having libc/libc_r.
  15387. + test "X$arg" = "X-lc" && continue
  15388. + ;;
  15389. + *-*-rhapsody* | *-*-darwin1.[012])
  15390. + # Rhapsody C and math libraries are in the System framework
  15391. + deplibs="$deplibs System.ltframework"
  15392. + continue
  15393. + ;;
  15394. + *-*-sco3.2v5* | *-*-sco5v6*)
  15395. + # Causes problems with __ctype
  15396. + test "X$arg" = "X-lc" && continue
  15397. + ;;
  15398. + *-*-sysv4.2uw2* | *-*-sysv5* | *-*-unixware* | *-*-OpenUNIX*)
  15399. + # Compiler inserts libc in the correct place for threads to work
  15400. + test "X$arg" = "X-lc" && continue
  15401. + ;;
  15402. + esac
  15403. + elif test "X$arg" = "X-lc_r"; then
  15404. + case $host in
  15405. + *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*)
  15406. + # Do not include libc_r directly, use -pthread flag.
  15407. + continue
  15408. + ;;
  15409. + esac
  15410. + fi
  15411. + deplibs="$deplibs $arg"
  15412. + continue
  15413. + ;;
  15414. - # Delete the old output files.
  15415. - $run $rm $output $output_objdir/$outputname $output_objdir/lt-$outputname
  15416. + -module)
  15417. + module=yes
  15418. + continue
  15419. + ;;
  15420. - $show "$link_command"
  15421. - $run eval "$link_command" || exit $?
  15422. + # Tru64 UNIX uses -model [arg] to determine the layout of C++
  15423. + # classes, name mangling, and exception handling.
  15424. + # Darwin uses the -arch flag to determine output architecture.
  15425. + -model|-arch|-isysroot)
  15426. + compiler_flags="$compiler_flags $arg"
  15427. + func_append compile_command " $arg"
  15428. + func_append finalize_command " $arg"
  15429. + prev=xcompiler
  15430. + continue
  15431. + ;;
  15432. - # Now create the wrapper script.
  15433. - $show "creating $output"
  15434. + -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe|-threads)
  15435. + compiler_flags="$compiler_flags $arg"
  15436. + func_append compile_command " $arg"
  15437. + func_append finalize_command " $arg"
  15438. + case "$new_inherited_linker_flags " in
  15439. + *" $arg "*) ;;
  15440. + * ) new_inherited_linker_flags="$new_inherited_linker_flags $arg" ;;
  15441. + esac
  15442. + continue
  15443. + ;;
  15444. - # Quote the relink command for shipping.
  15445. - if test -n "$relink_command"; then
  15446. - # Preserve any variables that may affect compiler behavior
  15447. - for var in $variables_saved_for_relink; do
  15448. - if eval test -z \"\${$var+set}\"; then
  15449. - relink_command="{ test -z \"\${$var+set}\" || unset $var || { $var=; export $var; }; }; $relink_command"
  15450. - elif eval var_value=\$$var; test -z "$var_value"; then
  15451. - relink_command="$var=; export $var; $relink_command"
  15452. - else
  15453. - var_value=`$echo "X$var_value" | $Xsed -e "$sed_quote_subst"`
  15454. - relink_command="$var=\"$var_value\"; export $var; $relink_command"
  15455. - fi
  15456. - done
  15457. - relink_command="(cd `pwd`; $relink_command)"
  15458. - relink_command=`$echo "X$relink_command" | $Xsed -e "$sed_quote_subst"`
  15459. - fi
  15460. + -multi_module)
  15461. + single_module="${wl}-multi_module"
  15462. + continue
  15463. + ;;
  15464. - # Quote $echo for shipping.
  15465. - if test "X$echo" = "X$SHELL $progpath --fallback-echo"; then
  15466. - case $progpath in
  15467. - [\\/]* | [A-Za-z]:[\\/]*) qecho="$SHELL $progpath --fallback-echo";;
  15468. - *) qecho="$SHELL `pwd`/$progpath --fallback-echo";;
  15469. - esac
  15470. - qecho=`$echo "X$qecho" | $Xsed -e "$sed_quote_subst"`
  15471. - else
  15472. - qecho=`$echo "X$echo" | $Xsed -e "$sed_quote_subst"`
  15473. - fi
  15474. + -no-fast-install)
  15475. + fast_install=no
  15476. + continue
  15477. + ;;
  15478. - # Only actually do things if our run command is non-null.
  15479. - if test -z "$run"; then
  15480. - # win32 will think the script is a binary if it has
  15481. - # a .exe suffix, so we strip it off here.
  15482. - case $output in
  15483. - *.exe) output=`$echo $output|${SED} 's,.exe$,,'` ;;
  15484. - esac
  15485. - # test for cygwin because mv fails w/o .exe extensions
  15486. + -no-install)
  15487. case $host in
  15488. - *cygwin*)
  15489. - exeext=.exe
  15490. - outputname=`$echo $outputname|${SED} 's,.exe$,,'` ;;
  15491. - *) exeext= ;;
  15492. + *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-*-darwin* | *-cegcc*)
  15493. + # The PATH hackery in wrapper scripts is required on Windows
  15494. + # and Darwin in order for the loader to find any dlls it needs.
  15495. + func_warning "\`-no-install' is ignored for $host"
  15496. + func_warning "assuming \`-no-fast-install' instead"
  15497. + fast_install=no
  15498. + ;;
  15499. + *) no_install=yes ;;
  15500. esac
  15501. - case $host in
  15502. - *cygwin* | *mingw* )
  15503. - output_name=`basename $output`
  15504. - output_path=`dirname $output`
  15505. - cwrappersource="$output_path/$objdir/lt-$output_name.c"
  15506. - cwrapper="$output_path/$output_name.exe"
  15507. - $rm $cwrappersource $cwrapper
  15508. - trap "$rm $cwrappersource $cwrapper; exit $EXIT_FAILURE" 1 2 15
  15509. -
  15510. - cat > $cwrappersource <<EOF
  15511. + continue
  15512. + ;;
  15513. -/* $cwrappersource - temporary wrapper executable for $objdir/$outputname
  15514. - Generated by $PROGRAM - GNU $PACKAGE $VERSION$TIMESTAMP
  15515. + -no-undefined)
  15516. + allow_undefined=no
  15517. + continue
  15518. + ;;
  15519. - The $output program cannot be directly executed until all the libtool
  15520. - libraries that it depends on are installed.
  15521. + -objectlist)
  15522. + prev=objectlist
  15523. + continue
  15524. + ;;
  15525. - This wrapper executable should never be moved out of the build directory.
  15526. - If it is, it will not operate correctly.
  15527. + -o) prev=output ;;
  15528. - Currently, it simply execs the wrapper *script* "/bin/sh $output",
  15529. - but could eventually absorb all of the scripts functionality and
  15530. - exec $objdir/$outputname directly.
  15531. -*/
  15532. -EOF
  15533. - cat >> $cwrappersource<<"EOF"
  15534. -#include <stdio.h>
  15535. -#include <stdlib.h>
  15536. -#include <unistd.h>
  15537. -#include <malloc.h>
  15538. -#include <stdarg.h>
  15539. -#include <assert.h>
  15540. -#include <string.h>
  15541. -#include <ctype.h>
  15542. -#include <sys/stat.h>
  15543. + -precious-files-regex)
  15544. + prev=precious_regex
  15545. + continue
  15546. + ;;
  15547. -#if defined(PATH_MAX)
  15548. -# define LT_PATHMAX PATH_MAX
  15549. -#elif defined(MAXPATHLEN)
  15550. -# define LT_PATHMAX MAXPATHLEN
  15551. -#else
  15552. -# define LT_PATHMAX 1024
  15553. -#endif
  15554. + -release)
  15555. + prev=release
  15556. + continue
  15557. + ;;
  15558. -#ifndef DIR_SEPARATOR
  15559. -# define DIR_SEPARATOR '/'
  15560. -# define PATH_SEPARATOR ':'
  15561. -#endif
  15562. + -rpath)
  15563. + prev=rpath
  15564. + continue
  15565. + ;;
  15566. -#if defined (_WIN32) || defined (__MSDOS__) || defined (__DJGPP__) || \
  15567. - defined (__OS2__)
  15568. -# define HAVE_DOS_BASED_FILE_SYSTEM
  15569. -# ifndef DIR_SEPARATOR_2
  15570. -# define DIR_SEPARATOR_2 '\\'
  15571. -# endif
  15572. -# ifndef PATH_SEPARATOR_2
  15573. -# define PATH_SEPARATOR_2 ';'
  15574. -# endif
  15575. -#endif
  15576. + -R)
  15577. + prev=xrpath
  15578. + continue
  15579. + ;;
  15580. -#ifndef DIR_SEPARATOR_2
  15581. -# define IS_DIR_SEPARATOR(ch) ((ch) == DIR_SEPARATOR)
  15582. -#else /* DIR_SEPARATOR_2 */
  15583. -# define IS_DIR_SEPARATOR(ch) \
  15584. - (((ch) == DIR_SEPARATOR) || ((ch) == DIR_SEPARATOR_2))
  15585. -#endif /* DIR_SEPARATOR_2 */
  15586. + -R*)
  15587. + func_stripname '-R' '' "$arg"
  15588. + dir=$func_stripname_result
  15589. + # We need an absolute path.
  15590. + case $dir in
  15591. + [\\/]* | [A-Za-z]:[\\/]*) ;;
  15592. + *)
  15593. + func_fatal_error "only absolute run-paths are allowed"
  15594. + ;;
  15595. + esac
  15596. + case "$xrpath " in
  15597. + *" $dir "*) ;;
  15598. + *) xrpath="$xrpath $dir" ;;
  15599. + esac
  15600. + continue
  15601. + ;;
  15602. -#ifndef PATH_SEPARATOR_2
  15603. -# define IS_PATH_SEPARATOR(ch) ((ch) == PATH_SEPARATOR)
  15604. -#else /* PATH_SEPARATOR_2 */
  15605. -# define IS_PATH_SEPARATOR(ch) ((ch) == PATH_SEPARATOR_2)
  15606. -#endif /* PATH_SEPARATOR_2 */
  15607. + -shared)
  15608. + # The effects of -shared are defined in a previous loop.
  15609. + continue
  15610. + ;;
  15611. -#define XMALLOC(type, num) ((type *) xmalloc ((num) * sizeof(type)))
  15612. -#define XFREE(stale) do { \
  15613. - if (stale) { free ((void *) stale); stale = 0; } \
  15614. -} while (0)
  15615. + -shrext)
  15616. + prev=shrext
  15617. + continue
  15618. + ;;
  15619. -/* -DDEBUG is fairly common in CFLAGS. */
  15620. -#undef DEBUG
  15621. -#if defined DEBUGWRAPPER
  15622. -# define DEBUG(format, ...) fprintf(stderr, format, __VA_ARGS__)
  15623. -#else
  15624. -# define DEBUG(format, ...)
  15625. -#endif
  15626. + -static | -static-libtool-libs)
  15627. + # The effects of -static are defined in a previous loop.
  15628. + # We used to do the same as -all-static on platforms that
  15629. + # didn't have a PIC flag, but the assumption that the effects
  15630. + # would be equivalent was wrong. It would break on at least
  15631. + # Digital Unix and AIX.
  15632. + continue
  15633. + ;;
  15634. -const char *program_name = NULL;
  15635. + -thread-safe)
  15636. + thread_safe=yes
  15637. + continue
  15638. + ;;
  15639. -void * xmalloc (size_t num);
  15640. -char * xstrdup (const char *string);
  15641. -const char * base_name (const char *name);
  15642. -char * find_executable(const char *wrapper);
  15643. -int check_executable(const char *path);
  15644. -char * strendzap(char *str, const char *pat);
  15645. -void lt_fatal (const char *message, ...);
  15646. + -version-info)
  15647. + prev=vinfo
  15648. + continue
  15649. + ;;
  15650. -int
  15651. -main (int argc, char *argv[])
  15652. -{
  15653. - char **newargz;
  15654. - int i;
  15655. + -version-number)
  15656. + prev=vinfo
  15657. + vinfo_number=yes
  15658. + continue
  15659. + ;;
  15660. - program_name = (char *) xstrdup (base_name (argv[0]));
  15661. - DEBUG("(main) argv[0] : %s\n",argv[0]);
  15662. - DEBUG("(main) program_name : %s\n",program_name);
  15663. - newargz = XMALLOC(char *, argc+2);
  15664. -EOF
  15665. + -weak)
  15666. + prev=weak
  15667. + continue
  15668. + ;;
  15669. - cat >> $cwrappersource <<EOF
  15670. - newargz[0] = (char *) xstrdup("$SHELL");
  15671. -EOF
  15672. + -Wc,*)
  15673. + func_stripname '-Wc,' '' "$arg"
  15674. + args=$func_stripname_result
  15675. + arg=
  15676. + save_ifs="$IFS"; IFS=','
  15677. + for flag in $args; do
  15678. + IFS="$save_ifs"
  15679. + func_quote_for_eval "$flag"
  15680. + arg="$arg $wl$func_quote_for_eval_result"
  15681. + compiler_flags="$compiler_flags $func_quote_for_eval_result"
  15682. + done
  15683. + IFS="$save_ifs"
  15684. + func_stripname ' ' '' "$arg"
  15685. + arg=$func_stripname_result
  15686. + ;;
  15687. - cat >> $cwrappersource <<"EOF"
  15688. - newargz[1] = find_executable(argv[0]);
  15689. - if (newargz[1] == NULL)
  15690. - lt_fatal("Couldn't find %s", argv[0]);
  15691. - DEBUG("(main) found exe at : %s\n",newargz[1]);
  15692. - /* we know the script has the same name, without the .exe */
  15693. - /* so make sure newargz[1] doesn't end in .exe */
  15694. - strendzap(newargz[1],".exe");
  15695. - for (i = 1; i < argc; i++)
  15696. - newargz[i+1] = xstrdup(argv[i]);
  15697. - newargz[argc+1] = NULL;
  15698. + -Wl,*)
  15699. + func_stripname '-Wl,' '' "$arg"
  15700. + args=$func_stripname_result
  15701. + arg=
  15702. + save_ifs="$IFS"; IFS=','
  15703. + for flag in $args; do
  15704. + IFS="$save_ifs"
  15705. + func_quote_for_eval "$flag"
  15706. + arg="$arg $wl$func_quote_for_eval_result"
  15707. + compiler_flags="$compiler_flags $wl$func_quote_for_eval_result"
  15708. + linker_flags="$linker_flags $func_quote_for_eval_result"
  15709. + done
  15710. + IFS="$save_ifs"
  15711. + func_stripname ' ' '' "$arg"
  15712. + arg=$func_stripname_result
  15713. + ;;
  15714. - for (i=0; i<argc+1; i++)
  15715. - {
  15716. - DEBUG("(main) newargz[%d] : %s\n",i,newargz[i]);
  15717. - ;
  15718. - }
  15719. + -Xcompiler)
  15720. + prev=xcompiler
  15721. + continue
  15722. + ;;
  15723. -EOF
  15724. + -Xlinker)
  15725. + prev=xlinker
  15726. + continue
  15727. + ;;
  15728. - case $host_os in
  15729. - mingw*)
  15730. - cat >> $cwrappersource <<EOF
  15731. - execv("$SHELL",(char const **)newargz);
  15732. -EOF
  15733. - ;;
  15734. - *)
  15735. - cat >> $cwrappersource <<EOF
  15736. - execv("$SHELL",newargz);
  15737. -EOF
  15738. - ;;
  15739. - esac
  15740. + -XCClinker)
  15741. + prev=xcclinker
  15742. + continue
  15743. + ;;
  15744. - cat >> $cwrappersource <<"EOF"
  15745. - return 127;
  15746. -}
  15747. + # -msg_* for osf cc
  15748. + -msg_*)
  15749. + func_quote_for_eval "$arg"
  15750. + arg="$func_quote_for_eval_result"
  15751. + ;;
  15752. -void *
  15753. -xmalloc (size_t num)
  15754. -{
  15755. - void * p = (void *) malloc (num);
  15756. - if (!p)
  15757. - lt_fatal ("Memory exhausted");
  15758. + # -64, -mips[0-9] enable 64-bit mode on the SGI compiler
  15759. + # -r[0-9][0-9]* specifies the processor on the SGI compiler
  15760. + # -xarch=*, -xtarget=* enable 64-bit mode on the Sun compiler
  15761. + # +DA*, +DD* enable 64-bit mode on the HP compiler
  15762. + # -q* pass through compiler args for the IBM compiler
  15763. + # -m*, -t[45]*, -txscale* pass through architecture-specific
  15764. + # compiler args for GCC
  15765. + # -F/path gives path to uninstalled frameworks, gcc on darwin
  15766. + # -p, -pg, --coverage, -fprofile-* pass through profiling flag for GCC
  15767. + # @file GCC response files
  15768. + -64|-mips[0-9]|-r[0-9][0-9]*|-xarch=*|-xtarget=*|+DA*|+DD*|-q*|-m*| \
  15769. + -t[45]*|-txscale*|-p|-pg|--coverage|-fprofile-*|-F*|@*|-fstack-protector*|-flto)
  15770. + func_quote_for_eval "$arg"
  15771. + arg="$func_quote_for_eval_result"
  15772. + func_append compile_command " $arg"
  15773. + func_append finalize_command " $arg"
  15774. + compiler_flags="$compiler_flags $arg"
  15775. + continue
  15776. + ;;
  15777. - return p;
  15778. -}
  15779. + # Some other compiler flag.
  15780. + -* | +*)
  15781. + func_quote_for_eval "$arg"
  15782. + arg="$func_quote_for_eval_result"
  15783. + ;;
  15784. -char *
  15785. -xstrdup (const char *string)
  15786. -{
  15787. - return string ? strcpy ((char *) xmalloc (strlen (string) + 1), string) : NULL
  15788. -;
  15789. -}
  15790. + *.$objext)
  15791. + # A standard object.
  15792. + objs="$objs $arg"
  15793. + ;;
  15794. -const char *
  15795. -base_name (const char *name)
  15796. -{
  15797. - const char *base;
  15798. + *.lo)
  15799. + # A libtool-controlled object.
  15800. -#if defined (HAVE_DOS_BASED_FILE_SYSTEM)
  15801. - /* Skip over the disk name in MSDOS pathnames. */
  15802. - if (isalpha ((unsigned char)name[0]) && name[1] == ':')
  15803. - name += 2;
  15804. -#endif
  15805. + # Check to see that this really is a libtool object.
  15806. + if func_lalib_unsafe_p "$arg"; then
  15807. + pic_object=
  15808. + non_pic_object=
  15809. - for (base = name; *name; name++)
  15810. - if (IS_DIR_SEPARATOR (*name))
  15811. - base = name + 1;
  15812. - return base;
  15813. -}
  15814. + # Read the .lo file
  15815. + func_source "$arg"
  15816. -int
  15817. -check_executable(const char * path)
  15818. -{
  15819. - struct stat st;
  15820. + if test -z "$pic_object" ||
  15821. + test -z "$non_pic_object" ||
  15822. + test "$pic_object" = none &&
  15823. + test "$non_pic_object" = none; then
  15824. + func_fatal_error "cannot find name of object for \`$arg'"
  15825. + fi
  15826. - DEBUG("(check_executable) : %s\n", path ? (*path ? path : "EMPTY!") : "NULL!");
  15827. - if ((!path) || (!*path))
  15828. - return 0;
  15829. + # Extract subdirectory from the argument.
  15830. + func_dirname "$arg" "/" ""
  15831. + xdir="$func_dirname_result"
  15832. - if ((stat (path, &st) >= 0) &&
  15833. - (
  15834. - /* MinGW & native WIN32 do not support S_IXOTH or S_IXGRP */
  15835. -#if defined (S_IXOTH)
  15836. - ((st.st_mode & S_IXOTH) == S_IXOTH) ||
  15837. -#endif
  15838. -#if defined (S_IXGRP)
  15839. - ((st.st_mode & S_IXGRP) == S_IXGRP) ||
  15840. -#endif
  15841. - ((st.st_mode & S_IXUSR) == S_IXUSR))
  15842. - )
  15843. - return 1;
  15844. - else
  15845. - return 0;
  15846. -}
  15847. + if test "$pic_object" != none; then
  15848. + # Prepend the subdirectory the object is found in.
  15849. + pic_object="$xdir$pic_object"
  15850. -/* Searches for the full path of the wrapper. Returns
  15851. - newly allocated full path name if found, NULL otherwise */
  15852. -char *
  15853. -find_executable (const char* wrapper)
  15854. -{
  15855. - int has_slash = 0;
  15856. - const char* p;
  15857. - const char* p_next;
  15858. - /* static buffer for getcwd */
  15859. - char tmp[LT_PATHMAX + 1];
  15860. - int tmp_len;
  15861. - char* concat_name;
  15862. + if test "$prev" = dlfiles; then
  15863. + if test "$build_libtool_libs" = yes && test "$dlopen_support" = yes; then
  15864. + dlfiles="$dlfiles $pic_object"
  15865. + prev=
  15866. + continue
  15867. + else
  15868. + # If libtool objects are unsupported, then we need to preload.
  15869. + prev=dlprefiles
  15870. + fi
  15871. + fi
  15872. - DEBUG("(find_executable) : %s\n", wrapper ? (*wrapper ? wrapper : "EMPTY!") : "NULL!");
  15873. + # CHECK ME: I think I busted this. -Ossama
  15874. + if test "$prev" = dlprefiles; then
  15875. + # Preload the old-style object.
  15876. + dlprefiles="$dlprefiles $pic_object"
  15877. + prev=
  15878. + fi
  15879. - if ((wrapper == NULL) || (*wrapper == '\0'))
  15880. - return NULL;
  15881. + # A PIC object.
  15882. + func_append libobjs " $pic_object"
  15883. + arg="$pic_object"
  15884. + fi
  15885. - /* Absolute path? */
  15886. -#if defined (HAVE_DOS_BASED_FILE_SYSTEM)
  15887. - if (isalpha ((unsigned char)wrapper[0]) && wrapper[1] == ':')
  15888. - {
  15889. - concat_name = xstrdup (wrapper);
  15890. - if (check_executable(concat_name))
  15891. - return concat_name;
  15892. - XFREE(concat_name);
  15893. - }
  15894. - else
  15895. - {
  15896. -#endif
  15897. - if (IS_DIR_SEPARATOR (wrapper[0]))
  15898. - {
  15899. - concat_name = xstrdup (wrapper);
  15900. - if (check_executable(concat_name))
  15901. - return concat_name;
  15902. - XFREE(concat_name);
  15903. - }
  15904. -#if defined (HAVE_DOS_BASED_FILE_SYSTEM)
  15905. - }
  15906. -#endif
  15907. + # Non-PIC object.
  15908. + if test "$non_pic_object" != none; then
  15909. + # Prepend the subdirectory the object is found in.
  15910. + non_pic_object="$xdir$non_pic_object"
  15911. - for (p = wrapper; *p; p++)
  15912. - if (*p == '/')
  15913. - {
  15914. - has_slash = 1;
  15915. - break;
  15916. - }
  15917. - if (!has_slash)
  15918. - {
  15919. - /* no slashes; search PATH */
  15920. - const char* path = getenv ("PATH");
  15921. - if (path != NULL)
  15922. - {
  15923. - for (p = path; *p; p = p_next)
  15924. - {
  15925. - const char* q;
  15926. - size_t p_len;
  15927. - for (q = p; *q; q++)
  15928. - if (IS_PATH_SEPARATOR(*q))
  15929. - break;
  15930. - p_len = q - p;
  15931. - p_next = (*q == '\0' ? q : q + 1);
  15932. - if (p_len == 0)
  15933. - {
  15934. - /* empty path: current directory */
  15935. - if (getcwd (tmp, LT_PATHMAX) == NULL)
  15936. - lt_fatal ("getcwd failed");
  15937. - tmp_len = strlen(tmp);
  15938. - concat_name = XMALLOC(char, tmp_len + 1 + strlen(wrapper) + 1);
  15939. - memcpy (concat_name, tmp, tmp_len);
  15940. - concat_name[tmp_len] = '/';
  15941. - strcpy (concat_name + tmp_len + 1, wrapper);
  15942. - }
  15943. - else
  15944. - {
  15945. - concat_name = XMALLOC(char, p_len + 1 + strlen(wrapper) + 1);
  15946. - memcpy (concat_name, p, p_len);
  15947. - concat_name[p_len] = '/';
  15948. - strcpy (concat_name + p_len + 1, wrapper);
  15949. - }
  15950. - if (check_executable(concat_name))
  15951. - return concat_name;
  15952. - XFREE(concat_name);
  15953. - }
  15954. - }
  15955. - /* not found in PATH; assume curdir */
  15956. - }
  15957. - /* Relative path | not found in path: prepend cwd */
  15958. - if (getcwd (tmp, LT_PATHMAX) == NULL)
  15959. - lt_fatal ("getcwd failed");
  15960. - tmp_len = strlen(tmp);
  15961. - concat_name = XMALLOC(char, tmp_len + 1 + strlen(wrapper) + 1);
  15962. - memcpy (concat_name, tmp, tmp_len);
  15963. - concat_name[tmp_len] = '/';
  15964. - strcpy (concat_name + tmp_len + 1, wrapper);
  15965. + # A standard non-PIC object
  15966. + func_append non_pic_objects " $non_pic_object"
  15967. + if test -z "$pic_object" || test "$pic_object" = none ; then
  15968. + arg="$non_pic_object"
  15969. + fi
  15970. + else
  15971. + # If the PIC object exists, use it instead.
  15972. + # $xdir was prepended to $pic_object above.
  15973. + non_pic_object="$pic_object"
  15974. + func_append non_pic_objects " $non_pic_object"
  15975. + fi
  15976. + else
  15977. + # Only an error if not doing a dry-run.
  15978. + if $opt_dry_run; then
  15979. + # Extract subdirectory from the argument.
  15980. + func_dirname "$arg" "/" ""
  15981. + xdir="$func_dirname_result"
  15982. - if (check_executable(concat_name))
  15983. - return concat_name;
  15984. - XFREE(concat_name);
  15985. - return NULL;
  15986. -}
  15987. + func_lo2o "$arg"
  15988. + pic_object=$xdir$objdir/$func_lo2o_result
  15989. + non_pic_object=$xdir$func_lo2o_result
  15990. + func_append libobjs " $pic_object"
  15991. + func_append non_pic_objects " $non_pic_object"
  15992. + else
  15993. + func_fatal_error "\`$arg' is not a valid libtool object"
  15994. + fi
  15995. + fi
  15996. + ;;
  15997. -char *
  15998. -strendzap(char *str, const char *pat)
  15999. -{
  16000. - size_t len, patlen;
  16001. + *.$libext)
  16002. + # An archive.
  16003. + deplibs="$deplibs $arg"
  16004. + old_deplibs="$old_deplibs $arg"
  16005. + continue
  16006. + ;;
  16007. - assert(str != NULL);
  16008. - assert(pat != NULL);
  16009. + *.la)
  16010. + # A libtool-controlled library.
  16011. - len = strlen(str);
  16012. - patlen = strlen(pat);
  16013. + if test "$prev" = dlfiles; then
  16014. + # This library was specified with -dlopen.
  16015. + dlfiles="$dlfiles $arg"
  16016. + prev=
  16017. + elif test "$prev" = dlprefiles; then
  16018. + # The library was specified with -dlpreopen.
  16019. + dlprefiles="$dlprefiles $arg"
  16020. + prev=
  16021. + else
  16022. + deplibs="$deplibs $arg"
  16023. + fi
  16024. + continue
  16025. + ;;
  16026. - if (patlen <= len)
  16027. - {
  16028. - str += len - patlen;
  16029. - if (strcmp(str, pat) == 0)
  16030. - *str = '\0';
  16031. - }
  16032. - return str;
  16033. -}
  16034. + # Some other compiler argument.
  16035. + *)
  16036. + # Unknown arguments in both finalize_command and compile_command need
  16037. + # to be aesthetically quoted because they are evaled later.
  16038. + func_quote_for_eval "$arg"
  16039. + arg="$func_quote_for_eval_result"
  16040. + ;;
  16041. + esac # arg
  16042. -static void
  16043. -lt_error_core (int exit_status, const char * mode,
  16044. - const char * message, va_list ap)
  16045. -{
  16046. - fprintf (stderr, "%s: %s: ", program_name, mode);
  16047. - vfprintf (stderr, message, ap);
  16048. - fprintf (stderr, ".\n");
  16049. + # Now actually substitute the argument into the commands.
  16050. + if test -n "$arg"; then
  16051. + func_append compile_command " $arg"
  16052. + func_append finalize_command " $arg"
  16053. + fi
  16054. + done # argument parsing loop
  16055. - if (exit_status >= 0)
  16056. - exit (exit_status);
  16057. -}
  16058. + test -n "$prev" && \
  16059. + func_fatal_help "the \`$prevarg' option requires an argument"
  16060. -void
  16061. -lt_fatal (const char *message, ...)
  16062. -{
  16063. - va_list ap;
  16064. - va_start (ap, message);
  16065. - lt_error_core (EXIT_FAILURE, "FATAL", message, ap);
  16066. - va_end (ap);
  16067. -}
  16068. -EOF
  16069. - # we should really use a build-platform specific compiler
  16070. - # here, but OTOH, the wrappers (shell script and this C one)
  16071. - # are only useful if you want to execute the "real" binary.
  16072. - # Since the "real" binary is built for $host, then this
  16073. - # wrapper might as well be built for $host, too.
  16074. - $run $LTCC $LTCFLAGS -s -o $cwrapper $cwrappersource
  16075. - ;;
  16076. - esac
  16077. - $rm $output
  16078. - trap "$rm $output; exit $EXIT_FAILURE" 1 2 15
  16079. + if test "$export_dynamic" = yes && test -n "$export_dynamic_flag_spec"; then
  16080. + eval arg=\"$export_dynamic_flag_spec\"
  16081. + func_append compile_command " $arg"
  16082. + func_append finalize_command " $arg"
  16083. + fi
  16084. - $echo > $output "\
  16085. -#! $SHELL
  16086. + oldlibs=
  16087. + # calculate the name of the file, without its directory
  16088. + func_basename "$output"
  16089. + outputname="$func_basename_result"
  16090. + libobjs_save="$libobjs"
  16091. -# $output - temporary wrapper script for $objdir/$outputname
  16092. -# Generated by $PROGRAM - GNU $PACKAGE $VERSION$TIMESTAMP
  16093. -#
  16094. -# The $output program cannot be directly executed until all the libtool
  16095. -# libraries that it depends on are installed.
  16096. -#
  16097. -# This wrapper script should never be moved out of the build directory.
  16098. -# If it is, it will not operate correctly.
  16099. + if test -n "$shlibpath_var"; then
  16100. + # get the directories listed in $shlibpath_var
  16101. + eval shlib_search_path=\`\$ECHO \"X\${$shlibpath_var}\" \| \$Xsed -e \'s/:/ /g\'\`
  16102. + else
  16103. + shlib_search_path=
  16104. + fi
  16105. + eval sys_lib_search_path=\"$sys_lib_search_path_spec\"
  16106. + eval sys_lib_dlsearch_path=\"$sys_lib_dlsearch_path_spec\"
  16107. -# Sed substitution that helps us do robust quoting. It backslashifies
  16108. -# metacharacters that are still active within double-quoted strings.
  16109. -Xsed='${SED} -e 1s/^X//'
  16110. -sed_quote_subst='$sed_quote_subst'
  16111. + func_dirname "$output" "/" ""
  16112. + output_objdir="$func_dirname_result$objdir"
  16113. + # Create the object directory.
  16114. + func_mkdir_p "$output_objdir"
  16115. -# The HP-UX ksh and POSIX shell print the target directory to stdout
  16116. -# if CDPATH is set.
  16117. -(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  16118. + # Determine the type of output
  16119. + case $output in
  16120. + "")
  16121. + func_fatal_help "you must specify an output file"
  16122. + ;;
  16123. + *.$libext) linkmode=oldlib ;;
  16124. + *.lo | *.$objext) linkmode=obj ;;
  16125. + *.la) linkmode=lib ;;
  16126. + *) linkmode=prog ;; # Anything else should be a program.
  16127. + esac
  16128. -relink_command=\"$relink_command\"
  16129. + specialdeplibs=
  16130. -# This environment variable determines our operation mode.
  16131. -if test \"\$libtool_install_magic\" = \"$magic\"; then
  16132. - # install mode needs the following variable:
  16133. - notinst_deplibs='$notinst_deplibs'
  16134. -else
  16135. - # When we are sourced in execute mode, \$file and \$echo are already set.
  16136. - if test \"\$libtool_execute_magic\" != \"$magic\"; then
  16137. - echo=\"$qecho\"
  16138. - file=\"\$0\"
  16139. - # Make sure echo works.
  16140. - if test \"X\$1\" = X--no-reexec; then
  16141. - # Discard the --no-reexec flag, and continue.
  16142. - shift
  16143. - elif test \"X\`(\$echo '\t') 2>/dev/null\`\" = 'X\t'; then
  16144. - # Yippee, \$echo works!
  16145. - :
  16146. - else
  16147. - # Restart under the correct shell, and then maybe \$echo will work.
  16148. - exec $SHELL \"\$0\" --no-reexec \${1+\"\$@\"}
  16149. + libs=
  16150. + # Find all interdependent deplibs by searching for libraries
  16151. + # that are linked more than once (e.g. -la -lb -la)
  16152. + for deplib in $deplibs; do
  16153. + if $opt_duplicate_deps ; then
  16154. + case "$libs " in
  16155. + *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
  16156. + esac
  16157. + fi
  16158. + libs="$libs $deplib"
  16159. + done
  16160. +
  16161. + if test "$linkmode" = lib; then
  16162. + libs="$predeps $libs $compiler_lib_search_path $postdeps"
  16163. +
  16164. + # Compute libraries that are listed more than once in $predeps
  16165. + # $postdeps and mark them as special (i.e., whose duplicates are
  16166. + # not to be eliminated).
  16167. + pre_post_deps=
  16168. + if $opt_duplicate_compiler_generated_deps; then
  16169. + for pre_post_dep in $predeps $postdeps; do
  16170. + case "$pre_post_deps " in
  16171. + *" $pre_post_dep "*) specialdeplibs="$specialdeplibs $pre_post_deps" ;;
  16172. + esac
  16173. + pre_post_deps="$pre_post_deps $pre_post_dep"
  16174. + done
  16175. + fi
  16176. + pre_post_deps=
  16177. fi
  16178. - fi\
  16179. -"
  16180. - $echo >> $output "\
  16181. - # Find the directory that this script lives in.
  16182. - thisdir=\`\$echo \"X\$file\" | \$Xsed -e 's%/[^/]*$%%'\`
  16183. - test \"x\$thisdir\" = \"x\$file\" && thisdir=.
  16184. + deplibs=
  16185. + newdependency_libs=
  16186. + newlib_search_path=
  16187. + need_relink=no # whether we're linking any uninstalled libtool libraries
  16188. + notinst_deplibs= # not-installed libtool libraries
  16189. + notinst_path= # paths that contain not-installed libtool libraries
  16190. - # Follow symbolic links until we get to the real thisdir.
  16191. - file=\`ls -ld \"\$file\" | ${SED} -n 's/.*-> //p'\`
  16192. - while test -n \"\$file\"; do
  16193. - destdir=\`\$echo \"X\$file\" | \$Xsed -e 's%/[^/]*\$%%'\`
  16194. + case $linkmode in
  16195. + lib)
  16196. + passes="conv dlpreopen link"
  16197. + for file in $dlfiles $dlprefiles; do
  16198. + case $file in
  16199. + *.la) ;;
  16200. + *)
  16201. + func_fatal_help "libraries can \`-dlopen' only libtool libraries: $file"
  16202. + ;;
  16203. + esac
  16204. + done
  16205. + ;;
  16206. + prog)
  16207. + compile_deplibs=
  16208. + finalize_deplibs=
  16209. + alldeplibs=no
  16210. + newdlfiles=
  16211. + newdlprefiles=
  16212. + passes="conv scan dlopen dlpreopen link"
  16213. + ;;
  16214. + *) passes="conv"
  16215. + ;;
  16216. + esac
  16217. - # If there was a directory component, then change thisdir.
  16218. - if test \"x\$destdir\" != \"x\$file\"; then
  16219. - case \"\$destdir\" in
  16220. - [\\\\/]* | [A-Za-z]:[\\\\/]*) thisdir=\"\$destdir\" ;;
  16221. - *) thisdir=\"\$thisdir/\$destdir\" ;;
  16222. - esac
  16223. - fi
  16224. + for pass in $passes; do
  16225. + # The preopen pass in lib mode reverses $deplibs; put it back here
  16226. + # so that -L comes before libs that need it for instance...
  16227. + if test "$linkmode,$pass" = "lib,link"; then
  16228. + ## FIXME: Find the place where the list is rebuilt in the wrong
  16229. + ## order, and fix it there properly
  16230. + tmp_deplibs=
  16231. + for deplib in $deplibs; do
  16232. + tmp_deplibs="$deplib $tmp_deplibs"
  16233. + done
  16234. + deplibs="$tmp_deplibs"
  16235. + fi
  16236. - file=\`\$echo \"X\$file\" | \$Xsed -e 's%^.*/%%'\`
  16237. - file=\`ls -ld \"\$thisdir/\$file\" | ${SED} -n 's/.*-> //p'\`
  16238. - done
  16239. + if test "$linkmode,$pass" = "lib,link" ||
  16240. + test "$linkmode,$pass" = "prog,scan"; then
  16241. + libs="$deplibs"
  16242. + deplibs=
  16243. + fi
  16244. + if test "$linkmode" = prog; then
  16245. + case $pass in
  16246. + dlopen) libs="$dlfiles" ;;
  16247. + dlpreopen) libs="$dlprefiles" ;;
  16248. + link)
  16249. + libs="$deplibs %DEPLIBS%"
  16250. + test "X$link_all_deplibs" != Xno && libs="$libs $dependency_libs"
  16251. + ;;
  16252. + esac
  16253. + fi
  16254. + if test "$linkmode,$pass" = "lib,dlpreopen"; then
  16255. + # Collect and forward deplibs of preopened libtool libs
  16256. + for lib in $dlprefiles; do
  16257. + # Ignore non-libtool-libs
  16258. + dependency_libs=
  16259. + case $lib in
  16260. + *.la) func_source "$lib" ;;
  16261. + esac
  16262. +
  16263. + # Collect preopened libtool deplibs, except any this library
  16264. + # has declared as weak libs
  16265. + for deplib in $dependency_libs; do
  16266. + deplib_base=`$ECHO "X$deplib" | $Xsed -e "$basename"`
  16267. + case " $weak_libs " in
  16268. + *" $deplib_base "*) ;;
  16269. + *) deplibs="$deplibs $deplib" ;;
  16270. + esac
  16271. + done
  16272. + done
  16273. + libs="$dlprefiles"
  16274. + fi
  16275. + if test "$pass" = dlopen; then
  16276. + # Collect dlpreopened libraries
  16277. + save_deplibs="$deplibs"
  16278. + deplibs=
  16279. + fi
  16280. +
  16281. + for deplib in $libs; do
  16282. + lib=
  16283. + found=no
  16284. + case $deplib in
  16285. + -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe|-threads)
  16286. + if test "$linkmode,$pass" = "prog,link"; then
  16287. + compile_deplibs="$deplib $compile_deplibs"
  16288. + finalize_deplibs="$deplib $finalize_deplibs"
  16289. + else
  16290. + compiler_flags="$compiler_flags $deplib"
  16291. + if test "$linkmode" = lib ; then
  16292. + case "$new_inherited_linker_flags " in
  16293. + *" $deplib "*) ;;
  16294. + * ) new_inherited_linker_flags="$new_inherited_linker_flags $deplib" ;;
  16295. + esac
  16296. + fi
  16297. + fi
  16298. + continue
  16299. + ;;
  16300. + -l*)
  16301. + if test "$linkmode" != lib && test "$linkmode" != prog; then
  16302. + func_warning "\`-l' is ignored for archives/objects"
  16303. + continue
  16304. + fi
  16305. + func_stripname '-l' '' "$deplib"
  16306. + name=$func_stripname_result
  16307. + if test "$linkmode" = lib; then
  16308. + searchdirs="$newlib_search_path $lib_search_path $compiler_lib_search_dirs $sys_lib_search_path $shlib_search_path"
  16309. + else
  16310. + searchdirs="$newlib_search_path $lib_search_path $sys_lib_search_path $shlib_search_path"
  16311. + fi
  16312. + for searchdir in $searchdirs; do
  16313. + for search_ext in .la $std_shrext .so .a; do
  16314. + # Search the libtool library
  16315. + lib="$searchdir/lib${name}${search_ext}"
  16316. + if test -f "$lib"; then
  16317. + if test "$search_ext" = ".la"; then
  16318. + found=yes
  16319. + else
  16320. + found=no
  16321. + fi
  16322. + break 2
  16323. + fi
  16324. + done
  16325. + done
  16326. + if test "$found" != yes; then
  16327. + # deplib doesn't seem to be a libtool library
  16328. + if test "$linkmode,$pass" = "prog,link"; then
  16329. + compile_deplibs="$deplib $compile_deplibs"
  16330. + finalize_deplibs="$deplib $finalize_deplibs"
  16331. + else
  16332. + deplibs="$deplib $deplibs"
  16333. + test "$linkmode" = lib && newdependency_libs="$deplib $newdependency_libs"
  16334. + fi
  16335. + continue
  16336. + else # deplib is a libtool library
  16337. + # If $allow_libtool_libs_with_static_runtimes && $deplib is a stdlib,
  16338. + # We need to do some special things here, and not later.
  16339. + if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
  16340. + case " $predeps $postdeps " in
  16341. + *" $deplib "*)
  16342. + if func_lalib_p "$lib"; then
  16343. + library_names=
  16344. + old_library=
  16345. + func_source "$lib"
  16346. + for l in $old_library $library_names; do
  16347. + ll="$l"
  16348. + done
  16349. + if test "X$ll" = "X$old_library" ; then # only static version available
  16350. + found=no
  16351. + func_dirname "$lib" "" "."
  16352. + ladir="$func_dirname_result"
  16353. + lib=$ladir/$old_library
  16354. + if test "$linkmode,$pass" = "prog,link"; then
  16355. + compile_deplibs="$deplib $compile_deplibs"
  16356. + finalize_deplibs="$deplib $finalize_deplibs"
  16357. + else
  16358. + deplibs="$deplib $deplibs"
  16359. + test "$linkmode" = lib && newdependency_libs="$deplib $newdependency_libs"
  16360. + fi
  16361. + continue
  16362. + fi
  16363. + fi
  16364. + ;;
  16365. + *) ;;
  16366. + esac
  16367. + fi
  16368. + fi
  16369. + ;; # -l
  16370. + *.ltframework)
  16371. + if test "$linkmode,$pass" = "prog,link"; then
  16372. + compile_deplibs="$deplib $compile_deplibs"
  16373. + finalize_deplibs="$deplib $finalize_deplibs"
  16374. + else
  16375. + deplibs="$deplib $deplibs"
  16376. + if test "$linkmode" = lib ; then
  16377. + case "$new_inherited_linker_flags " in
  16378. + *" $deplib "*) ;;
  16379. + * ) new_inherited_linker_flags="$new_inherited_linker_flags $deplib" ;;
  16380. + esac
  16381. + fi
  16382. + fi
  16383. + continue
  16384. + ;;
  16385. + -L*)
  16386. + case $linkmode in
  16387. + lib)
  16388. + deplibs="$deplib $deplibs"
  16389. + test "$pass" = conv && continue
  16390. + newdependency_libs="$deplib $newdependency_libs"
  16391. + func_stripname '-L' '' "$deplib"
  16392. + newlib_search_path="$newlib_search_path $func_stripname_result"
  16393. + ;;
  16394. + prog)
  16395. + if test "$pass" = conv; then
  16396. + deplibs="$deplib $deplibs"
  16397. + continue
  16398. + fi
  16399. + if test "$pass" = scan; then
  16400. + deplibs="$deplib $deplibs"
  16401. + else
  16402. + compile_deplibs="$deplib $compile_deplibs"
  16403. + finalize_deplibs="$deplib $finalize_deplibs"
  16404. + fi
  16405. + func_stripname '-L' '' "$deplib"
  16406. + newlib_search_path="$newlib_search_path $func_stripname_result"
  16407. + ;;
  16408. + *)
  16409. + func_warning "\`-L' is ignored for archives/objects"
  16410. + ;;
  16411. + esac # linkmode
  16412. + continue
  16413. + ;; # -L
  16414. + -R*)
  16415. + if test "$pass" = link; then
  16416. + func_stripname '-R' '' "$deplib"
  16417. + dir=$func_stripname_result
  16418. + # Make sure the xrpath contains only unique directories.
  16419. + case "$xrpath " in
  16420. + *" $dir "*) ;;
  16421. + *) xrpath="$xrpath $dir" ;;
  16422. + esac
  16423. + fi
  16424. + deplibs="$deplib $deplibs"
  16425. + continue
  16426. + ;;
  16427. + *.la) lib="$deplib" ;;
  16428. + *.$libext)
  16429. + if test "$pass" = conv; then
  16430. + deplibs="$deplib $deplibs"
  16431. + continue
  16432. + fi
  16433. + case $linkmode in
  16434. + lib)
  16435. + # Linking convenience modules into shared libraries is allowed,
  16436. + # but linking other static libraries is non-portable.
  16437. + case " $dlpreconveniencelibs " in
  16438. + *" $deplib "*) ;;
  16439. + *)
  16440. + valid_a_lib=no
  16441. + case $deplibs_check_method in
  16442. + match_pattern*)
  16443. + set dummy $deplibs_check_method; shift
  16444. + match_pattern_regex=`expr "$deplibs_check_method" : "$1 \(.*\)"`
  16445. + if eval "\$ECHO \"X$deplib\"" 2>/dev/null | $Xsed -e 10q \
  16446. + | $EGREP "$match_pattern_regex" > /dev/null; then
  16447. + valid_a_lib=yes
  16448. + fi
  16449. + ;;
  16450. + pass_all)
  16451. + valid_a_lib=yes
  16452. + ;;
  16453. + esac
  16454. + if test "$valid_a_lib" != yes; then
  16455. + $ECHO
  16456. + $ECHO "*** Warning: Trying to link with static lib archive $deplib."
  16457. + $ECHO "*** I have the capability to make that library automatically link in when"
  16458. + $ECHO "*** you link to this library. But I can only do this if you have a"
  16459. + $ECHO "*** shared version of the library, which you do not appear to have"
  16460. + $ECHO "*** because the file extensions .$libext of this argument makes me believe"
  16461. + $ECHO "*** that it is just a static archive that I should not use here."
  16462. + else
  16463. + $ECHO
  16464. + $ECHO "*** Warning: Linking the shared library $output against the"
  16465. + $ECHO "*** static library $deplib is not portable!"
  16466. + deplibs="$deplib $deplibs"
  16467. + fi
  16468. + ;;
  16469. + esac
  16470. + continue
  16471. + ;;
  16472. + prog)
  16473. + if test "$pass" != link; then
  16474. + deplibs="$deplib $deplibs"
  16475. + else
  16476. + compile_deplibs="$deplib $compile_deplibs"
  16477. + finalize_deplibs="$deplib $finalize_deplibs"
  16478. + fi
  16479. + continue
  16480. + ;;
  16481. + esac # linkmode
  16482. + ;; # *.$libext
  16483. + *.lo | *.$objext)
  16484. + if test "$pass" = conv; then
  16485. + deplibs="$deplib $deplibs"
  16486. + elif test "$linkmode" = prog; then
  16487. + if test "$pass" = dlpreopen || test "$dlopen_support" != yes || test "$build_libtool_libs" = no; then
  16488. + # If there is no dlopen support or we're linking statically,
  16489. + # we need to preload.
  16490. + newdlprefiles="$newdlprefiles $deplib"
  16491. + compile_deplibs="$deplib $compile_deplibs"
  16492. + finalize_deplibs="$deplib $finalize_deplibs"
  16493. + else
  16494. + newdlfiles="$newdlfiles $deplib"
  16495. + fi
  16496. + fi
  16497. + continue
  16498. + ;;
  16499. + %DEPLIBS%)
  16500. + alldeplibs=yes
  16501. + continue
  16502. + ;;
  16503. + esac # case $deplib
  16504. +
  16505. + if test "$found" = yes || test -f "$lib"; then :
  16506. + else
  16507. + func_fatal_error "cannot find the library \`$lib' or unhandled argument \`$deplib'"
  16508. + fi
  16509. +
  16510. + # Check to see that this really is a libtool archive.
  16511. + func_lalib_unsafe_p "$lib" \
  16512. + || func_fatal_error "\`$lib' is not a valid libtool archive"
  16513. +
  16514. + func_dirname "$lib" "" "."
  16515. + ladir="$func_dirname_result"
  16516. +
  16517. + dlname=
  16518. + dlopen=
  16519. + dlpreopen=
  16520. + libdir=
  16521. + library_names=
  16522. + old_library=
  16523. + inherited_linker_flags=
  16524. + # If the library was installed with an old release of libtool,
  16525. + # it will not redefine variables installed, or shouldnotlink
  16526. + installed=yes
  16527. + shouldnotlink=no
  16528. + avoidtemprpath=
  16529. +
  16530. +
  16531. + # Read the .la file
  16532. + func_source "$lib"
  16533. +
  16534. + # Convert "-framework foo" to "foo.ltframework"
  16535. + if test -n "$inherited_linker_flags"; then
  16536. + tmp_inherited_linker_flags=`$ECHO "X$inherited_linker_flags" | $Xsed -e 's/-framework \([^ $]*\)/\1.ltframework/g'`
  16537. + for tmp_inherited_linker_flag in $tmp_inherited_linker_flags; do
  16538. + case " $new_inherited_linker_flags " in
  16539. + *" $tmp_inherited_linker_flag "*) ;;
  16540. + *) new_inherited_linker_flags="$new_inherited_linker_flags $tmp_inherited_linker_flag";;
  16541. + esac
  16542. + done
  16543. + fi
  16544. + dependency_libs=`$ECHO "X $dependency_libs" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'`
  16545. + if test "$linkmode,$pass" = "lib,link" ||
  16546. + test "$linkmode,$pass" = "prog,scan" ||
  16547. + { test "$linkmode" != prog && test "$linkmode" != lib; }; then
  16548. + test -n "$dlopen" && dlfiles="$dlfiles $dlopen"
  16549. + test -n "$dlpreopen" && dlprefiles="$dlprefiles $dlpreopen"
  16550. + fi
  16551. +
  16552. + if test "$pass" = conv; then
  16553. + # Only check for convenience libraries
  16554. + deplibs="$lib $deplibs"
  16555. + if test -z "$libdir"; then
  16556. + if test -z "$old_library"; then
  16557. + func_fatal_error "cannot find name of link library for \`$lib'"
  16558. + fi
  16559. + # It is a libtool convenience library, so add in its objects.
  16560. + convenience="$convenience $ladir/$objdir/$old_library"
  16561. + old_convenience="$old_convenience $ladir/$objdir/$old_library"
  16562. + tmp_libs=
  16563. + for deplib in $dependency_libs; do
  16564. + deplibs="$deplib $deplibs"
  16565. + if $opt_duplicate_deps ; then
  16566. + case "$tmp_libs " in
  16567. + *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
  16568. + esac
  16569. + fi
  16570. + tmp_libs="$tmp_libs $deplib"
  16571. + done
  16572. + elif test "$linkmode" != prog && test "$linkmode" != lib; then
  16573. + func_fatal_error "\`$lib' is not a convenience library"
  16574. + fi
  16575. + continue
  16576. + fi # $pass = conv
  16577. +
  16578. +
  16579. + # Get the name of the library we link against.
  16580. + linklib=
  16581. + for l in $old_library $library_names; do
  16582. + linklib="$l"
  16583. + done
  16584. + if test -z "$linklib"; then
  16585. + func_fatal_error "cannot find name of link library for \`$lib'"
  16586. + fi
  16587. +
  16588. + # This library was specified with -dlopen.
  16589. + if test "$pass" = dlopen; then
  16590. + if test -z "$libdir"; then
  16591. + func_fatal_error "cannot -dlopen a convenience library: \`$lib'"
  16592. + fi
  16593. + if test -z "$dlname" ||
  16594. + test "$dlopen_support" != yes ||
  16595. + test "$build_libtool_libs" = no; then
  16596. + # If there is no dlname, no dlopen support or we're linking
  16597. + # statically, we need to preload. We also need to preload any
  16598. + # dependent libraries so libltdl's deplib preloader doesn't
  16599. + # bomb out in the load deplibs phase.
  16600. + dlprefiles="$dlprefiles $lib $dependency_libs"
  16601. + else
  16602. + newdlfiles="$newdlfiles $lib"
  16603. + fi
  16604. + continue
  16605. + fi # $pass = dlopen
  16606. +
  16607. + # We need an absolute path.
  16608. + case $ladir in
  16609. + [\\/]* | [A-Za-z]:[\\/]*) abs_ladir="$ladir" ;;
  16610. + *)
  16611. + abs_ladir=`cd "$ladir" && pwd`
  16612. + if test -z "$abs_ladir"; then
  16613. + func_warning "cannot determine absolute directory name of \`$ladir'"
  16614. + func_warning "passing it literally to the linker, although it might fail"
  16615. + abs_ladir="$ladir"
  16616. + fi
  16617. + ;;
  16618. + esac
  16619. + func_basename "$lib"
  16620. + laname="$func_basename_result"
  16621. +
  16622. + # Find the relevant object directory and library name.
  16623. + if test "X$installed" = Xyes; then
  16624. + if test ! -f "$libdir/$linklib" && test -f "$abs_ladir/$linklib"; then
  16625. + func_warning "library \`$lib' was moved."
  16626. + dir="$ladir"
  16627. + absdir="$abs_ladir"
  16628. + libdir="$abs_ladir"
  16629. + else
  16630. + dir="$libdir"
  16631. + absdir="$libdir"
  16632. + fi
  16633. + test "X$hardcode_automatic" = Xyes && avoidtemprpath=yes
  16634. + else
  16635. + if test ! -f "$ladir/$objdir/$linklib" && test -f "$abs_ladir/$linklib"; then
  16636. + dir="$ladir"
  16637. + absdir="$abs_ladir"
  16638. + # Remove this search path later
  16639. + notinst_path="$notinst_path $abs_ladir"
  16640. + else
  16641. + dir="$ladir/$objdir"
  16642. + absdir="$abs_ladir/$objdir"
  16643. + # Remove this search path later
  16644. + notinst_path="$notinst_path $abs_ladir"
  16645. + fi
  16646. + fi # $installed = yes
  16647. + func_stripname 'lib' '.la' "$laname"
  16648. + name=$func_stripname_result
  16649. +
  16650. + # This library was specified with -dlpreopen.
  16651. + if test "$pass" = dlpreopen; then
  16652. + if test -z "$libdir" && test "$linkmode" = prog; then
  16653. + func_fatal_error "only libraries may -dlpreopen a convenience library: \`$lib'"
  16654. + fi
  16655. + # Prefer using a static library (so that no silly _DYNAMIC symbols
  16656. + # are required to link).
  16657. + if test -n "$old_library"; then
  16658. + newdlprefiles="$newdlprefiles $dir/$old_library"
  16659. + # Keep a list of preopened convenience libraries to check
  16660. + # that they are being used correctly in the link pass.
  16661. + test -z "$libdir" && \
  16662. + dlpreconveniencelibs="$dlpreconveniencelibs $dir/$old_library"
  16663. + # Otherwise, use the dlname, so that lt_dlopen finds it.
  16664. + elif test -n "$dlname"; then
  16665. + newdlprefiles="$newdlprefiles $dir/$dlname"
  16666. + else
  16667. + newdlprefiles="$newdlprefiles $dir/$linklib"
  16668. + fi
  16669. + fi # $pass = dlpreopen
  16670. +
  16671. + if test -z "$libdir"; then
  16672. + # Link the convenience library
  16673. + if test "$linkmode" = lib; then
  16674. + deplibs="$dir/$old_library $deplibs"
  16675. + elif test "$linkmode,$pass" = "prog,link"; then
  16676. + compile_deplibs="$dir/$old_library $compile_deplibs"
  16677. + finalize_deplibs="$dir/$old_library $finalize_deplibs"
  16678. + else
  16679. + deplibs="$lib $deplibs" # used for prog,scan pass
  16680. + fi
  16681. + continue
  16682. + fi
  16683. +
  16684. +
  16685. + if test "$linkmode" = prog && test "$pass" != link; then
  16686. + newlib_search_path="$newlib_search_path $ladir"
  16687. + deplibs="$lib $deplibs"
  16688. +
  16689. + linkalldeplibs=no
  16690. + if test "$link_all_deplibs" != no || test -z "$library_names" ||
  16691. + test "$build_libtool_libs" = no; then
  16692. + linkalldeplibs=yes
  16693. + fi
  16694. +
  16695. + tmp_libs=
  16696. + for deplib in $dependency_libs; do
  16697. + case $deplib in
  16698. + -L*) func_stripname '-L' '' "$deplib"
  16699. + newlib_search_path="$newlib_search_path $func_stripname_result"
  16700. + ;;
  16701. + esac
  16702. + # Need to link against all dependency_libs?
  16703. + if test "$linkalldeplibs" = yes; then
  16704. + deplibs="$deplib $deplibs"
  16705. + else
  16706. + # Need to hardcode shared library paths
  16707. + # or/and link against static libraries
  16708. + newdependency_libs="$deplib $newdependency_libs"
  16709. + fi
  16710. + if $opt_duplicate_deps ; then
  16711. + case "$tmp_libs " in
  16712. + *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
  16713. + esac
  16714. + fi
  16715. + tmp_libs="$tmp_libs $deplib"
  16716. + done # for deplib
  16717. + continue
  16718. + fi # $linkmode = prog...
  16719. +
  16720. + if test "$linkmode,$pass" = "prog,link"; then
  16721. + if test -n "$library_names" &&
  16722. + { { test "$prefer_static_libs" = no ||
  16723. + test "$prefer_static_libs,$installed" = "built,yes"; } ||
  16724. + test -z "$old_library"; }; then
  16725. + # We need to hardcode the library path
  16726. + if test -n "$shlibpath_var" && test -z "$avoidtemprpath" ; then
  16727. + # Make sure the rpath contains only unique directories.
  16728. + case "$temp_rpath:" in
  16729. + *"$absdir:"*) ;;
  16730. + *) temp_rpath="$temp_rpath$absdir:" ;;
  16731. + esac
  16732. + fi
  16733. +
  16734. + # Hardcode the library path.
  16735. + # Skip directories that are in the system default run-time
  16736. + # search path.
  16737. + case " $sys_lib_dlsearch_path " in
  16738. + *" $absdir "*) ;;
  16739. + *)
  16740. + case "$compile_rpath " in
  16741. + *" $absdir "*) ;;
  16742. + *) compile_rpath="$compile_rpath $absdir"
  16743. + esac
  16744. + ;;
  16745. + esac
  16746. + case " $sys_lib_dlsearch_path " in
  16747. + *" $libdir "*) ;;
  16748. + *)
  16749. + case "$finalize_rpath " in
  16750. + *" $libdir "*) ;;
  16751. + *) finalize_rpath="$finalize_rpath $libdir"
  16752. + esac
  16753. + ;;
  16754. + esac
  16755. + fi # $linkmode,$pass = prog,link...
  16756. +
  16757. + if test "$alldeplibs" = yes &&
  16758. + { test "$deplibs_check_method" = pass_all ||
  16759. + { test "$build_libtool_libs" = yes &&
  16760. + test -n "$library_names"; }; }; then
  16761. + # We only need to search for static libraries
  16762. + continue
  16763. + fi
  16764. + fi
  16765. +
  16766. + link_static=no # Whether the deplib will be linked statically
  16767. + use_static_libs=$prefer_static_libs
  16768. + if test "$use_static_libs" = built && test "$installed" = yes; then
  16769. + use_static_libs=no
  16770. + fi
  16771. + if test -n "$library_names" &&
  16772. + { test "$use_static_libs" = no || test -z "$old_library"; }; then
  16773. + case $host in
  16774. + *cygwin* | *mingw* | *cegcc*)
  16775. + # No point in relinking DLLs because paths are not encoded
  16776. + notinst_deplibs="$notinst_deplibs $lib"
  16777. + need_relink=no
  16778. + ;;
  16779. + *)
  16780. + if test "$installed" = no; then
  16781. + notinst_deplibs="$notinst_deplibs $lib"
  16782. + need_relink=yes
  16783. + fi
  16784. + ;;
  16785. + esac
  16786. + # This is a shared library
  16787. +
  16788. + # Warn about portability, can't link against -module's on some
  16789. + # systems (darwin). Don't bleat about dlopened modules though!
  16790. + dlopenmodule=""
  16791. + for dlpremoduletest in $dlprefiles; do
  16792. + if test "X$dlpremoduletest" = "X$lib"; then
  16793. + dlopenmodule="$dlpremoduletest"
  16794. + break
  16795. + fi
  16796. + done
  16797. + if test -z "$dlopenmodule" && test "$shouldnotlink" = yes && test "$pass" = link; then
  16798. + $ECHO
  16799. + if test "$linkmode" = prog; then
  16800. + $ECHO "*** Warning: Linking the executable $output against the loadable module"
  16801. + else
  16802. + $ECHO "*** Warning: Linking the shared library $output against the loadable module"
  16803. + fi
  16804. + $ECHO "*** $linklib is not portable!"
  16805. + fi
  16806. + if test "$linkmode" = lib &&
  16807. + test "$hardcode_into_libs" = yes; then
  16808. + # Hardcode the library path.
  16809. + # Skip directories that are in the system default run-time
  16810. + # search path.
  16811. + case " $sys_lib_dlsearch_path " in
  16812. + *" $absdir "*) ;;
  16813. + *)
  16814. + case "$compile_rpath " in
  16815. + *" $absdir "*) ;;
  16816. + *) compile_rpath="$compile_rpath $absdir"
  16817. + esac
  16818. + ;;
  16819. + esac
  16820. + case " $sys_lib_dlsearch_path " in
  16821. + *" $libdir "*) ;;
  16822. + *)
  16823. + case "$finalize_rpath " in
  16824. + *" $libdir "*) ;;
  16825. + *) finalize_rpath="$finalize_rpath $libdir"
  16826. + esac
  16827. + ;;
  16828. + esac
  16829. + fi
  16830. +
  16831. + if test -n "$old_archive_from_expsyms_cmds"; then
  16832. + # figure out the soname
  16833. + set dummy $library_names
  16834. + shift
  16835. + realname="$1"
  16836. + shift
  16837. + libname=`eval "\\$ECHO \"$libname_spec\""`
  16838. + # use dlname if we got it. it's perfectly good, no?
  16839. + if test -n "$dlname"; then
  16840. + soname="$dlname"
  16841. + elif test -n "$soname_spec"; then
  16842. + # bleh windows
  16843. + case $host in
  16844. + *cygwin* | mingw* | *cegcc*)
  16845. + func_arith $current - $age
  16846. + major=$func_arith_result
  16847. + versuffix="-$major"
  16848. + ;;
  16849. + esac
  16850. + eval soname=\"$soname_spec\"
  16851. + else
  16852. + soname="$realname"
  16853. + fi
  16854. +
  16855. + # Make a new name for the extract_expsyms_cmds to use
  16856. + soroot="$soname"
  16857. + func_basename "$soroot"
  16858. + soname="$func_basename_result"
  16859. + func_stripname 'lib' '.dll' "$soname"
  16860. + newlib=libimp-$func_stripname_result.a
  16861. +
  16862. + # If the library has no export list, then create one now
  16863. + if test -f "$output_objdir/$soname-def"; then :
  16864. + else
  16865. + func_verbose "extracting exported symbol list from \`$soname'"
  16866. + func_execute_cmds "$extract_expsyms_cmds" 'exit $?'
  16867. + fi
  16868. +
  16869. + # Create $newlib
  16870. + if test -f "$output_objdir/$newlib"; then :; else
  16871. + func_verbose "generating import library for \`$soname'"
  16872. + func_execute_cmds "$old_archive_from_expsyms_cmds" 'exit $?'
  16873. + fi
  16874. + # make sure the library variables are pointing to the new library
  16875. + dir=$output_objdir
  16876. + linklib=$newlib
  16877. + fi # test -n "$old_archive_from_expsyms_cmds"
  16878. +
  16879. + if test "$linkmode" = prog || test "$mode" != relink; then
  16880. + add_shlibpath=
  16881. + add_dir=
  16882. + add=
  16883. + lib_linked=yes
  16884. + case $hardcode_action in
  16885. + immediate | unsupported)
  16886. + if test "$hardcode_direct" = no; then
  16887. + add="$dir/$linklib"
  16888. + case $host in
  16889. + *-*-sco3.2v5.0.[024]*) add_dir="-L$dir" ;;
  16890. + *-*-sysv4*uw2*) add_dir="-L$dir" ;;
  16891. + *-*-sysv5OpenUNIX* | *-*-sysv5UnixWare7.[01].[10]* | \
  16892. + *-*-unixware7*) add_dir="-L$dir" ;;
  16893. + *-*-darwin* )
  16894. + # if the lib is a (non-dlopened) module then we can not
  16895. + # link against it, someone is ignoring the earlier warnings
  16896. + if /usr/bin/file -L $add 2> /dev/null |
  16897. + $GREP ": [^:]* bundle" >/dev/null ; then
  16898. + if test "X$dlopenmodule" != "X$lib"; then
  16899. + $ECHO "*** Warning: lib $linklib is a module, not a shared library"
  16900. + if test -z "$old_library" ; then
  16901. + $ECHO
  16902. + $ECHO "*** And there doesn't seem to be a static archive available"
  16903. + $ECHO "*** The link will probably fail, sorry"
  16904. + else
  16905. + add="$dir/$old_library"
  16906. + fi
  16907. + elif test -n "$old_library"; then
  16908. + add="$dir/$old_library"
  16909. + fi
  16910. + fi
  16911. + esac
  16912. + elif test "$hardcode_minus_L" = no; then
  16913. + case $host in
  16914. + *-*-sunos*) add_shlibpath="$dir" ;;
  16915. + esac
  16916. + add_dir="-L$dir"
  16917. + add="-l$name"
  16918. + elif test "$hardcode_shlibpath_var" = no; then
  16919. + add_shlibpath="$dir"
  16920. + add="-l$name"
  16921. + else
  16922. + lib_linked=no
  16923. + fi
  16924. + ;;
  16925. + relink)
  16926. + if test "$hardcode_direct" = yes &&
  16927. + test "$hardcode_direct_absolute" = no; then
  16928. + add="$dir/$linklib"
  16929. + elif test "$hardcode_minus_L" = yes; then
  16930. + add_dir="-L$dir"
  16931. + # Try looking first in the location we're being installed to.
  16932. + if test -n "$inst_prefix_dir"; then
  16933. + case $libdir in
  16934. + [\\/]*)
  16935. + add_dir="$add_dir -L$inst_prefix_dir$libdir"
  16936. + ;;
  16937. + esac
  16938. + fi
  16939. + add="-l$name"
  16940. + elif test "$hardcode_shlibpath_var" = yes; then
  16941. + add_shlibpath="$dir"
  16942. + add="-l$name"
  16943. + else
  16944. + lib_linked=no
  16945. + fi
  16946. + ;;
  16947. + *) lib_linked=no ;;
  16948. + esac
  16949. +
  16950. + if test "$lib_linked" != yes; then
  16951. + func_fatal_configuration "unsupported hardcode properties"
  16952. + fi
  16953. +
  16954. + if test -n "$add_shlibpath"; then
  16955. + case :$compile_shlibpath: in
  16956. + *":$add_shlibpath:"*) ;;
  16957. + *) compile_shlibpath="$compile_shlibpath$add_shlibpath:" ;;
  16958. + esac
  16959. + fi
  16960. + if test "$linkmode" = prog; then
  16961. + test -n "$add_dir" && compile_deplibs="$add_dir $compile_deplibs"
  16962. + test -n "$add" && compile_deplibs="$add $compile_deplibs"
  16963. + else
  16964. + test -n "$add_dir" && deplibs="$add_dir $deplibs"
  16965. + test -n "$add" && deplibs="$add $deplibs"
  16966. + if test "$hardcode_direct" != yes &&
  16967. + test "$hardcode_minus_L" != yes &&
  16968. + test "$hardcode_shlibpath_var" = yes; then
  16969. + case :$finalize_shlibpath: in
  16970. + *":$libdir:"*) ;;
  16971. + *) finalize_shlibpath="$finalize_shlibpath$libdir:" ;;
  16972. + esac
  16973. + fi
  16974. + fi
  16975. + fi
  16976. +
  16977. + if test "$linkmode" = prog || test "$mode" = relink; then
  16978. + add_shlibpath=
  16979. + add_dir=
  16980. + add=
  16981. + # Finalize command for both is simple: just hardcode it.
  16982. + if test "$hardcode_direct" = yes &&
  16983. + test "$hardcode_direct_absolute" = no; then
  16984. + add="$libdir/$linklib"
  16985. + elif test "$hardcode_minus_L" = yes; then
  16986. + add_dir="-L$libdir"
  16987. + add="-l$name"
  16988. + elif test "$hardcode_shlibpath_var" = yes; then
  16989. + case :$finalize_shlibpath: in
  16990. + *":$libdir:"*) ;;
  16991. + *) finalize_shlibpath="$finalize_shlibpath$libdir:" ;;
  16992. + esac
  16993. + add="-l$name"
  16994. + elif test "$hardcode_automatic" = yes; then
  16995. + if test -n "$inst_prefix_dir" &&
  16996. + test -f "$inst_prefix_dir$libdir/$linklib" ; then
  16997. + add="$inst_prefix_dir$libdir/$linklib"
  16998. + else
  16999. + add="$libdir/$linklib"
  17000. + fi
  17001. + else
  17002. + # We cannot seem to hardcode it, guess we'll fake it.
  17003. + add_dir="-L$libdir"
  17004. + # Try looking first in the location we're being installed to.
  17005. + if test -n "$inst_prefix_dir"; then
  17006. + case $libdir in
  17007. + [\\/]*)
  17008. + add_dir="$add_dir -L$inst_prefix_dir$libdir"
  17009. + ;;
  17010. + esac
  17011. + fi
  17012. + add="-l$name"
  17013. + fi
  17014. +
  17015. + if test "$linkmode" = prog; then
  17016. + test -n "$add_dir" && finalize_deplibs="$add_dir $finalize_deplibs"
  17017. + test -n "$add" && finalize_deplibs="$add $finalize_deplibs"
  17018. + else
  17019. + test -n "$add_dir" && deplibs="$add_dir $deplibs"
  17020. + test -n "$add" && deplibs="$add $deplibs"
  17021. + fi
  17022. + fi
  17023. + elif test "$linkmode" = prog; then
  17024. + # Here we assume that one of hardcode_direct or hardcode_minus_L
  17025. + # is not unsupported. This is valid on all known static and
  17026. + # shared platforms.
  17027. + if test "$hardcode_direct" != unsupported; then
  17028. + test -n "$old_library" && linklib="$old_library"
  17029. + compile_deplibs="$dir/$linklib $compile_deplibs"
  17030. + finalize_deplibs="$dir/$linklib $finalize_deplibs"
  17031. + else
  17032. + compile_deplibs="-l$name -L$dir $compile_deplibs"
  17033. + finalize_deplibs="-l$name -L$dir $finalize_deplibs"
  17034. + fi
  17035. + elif test "$build_libtool_libs" = yes; then
  17036. + # Not a shared library
  17037. + if test "$deplibs_check_method" != pass_all; then
  17038. + # We're trying link a shared library against a static one
  17039. + # but the system doesn't support it.
  17040. +
  17041. + # Just print a warning and add the library to dependency_libs so
  17042. + # that the program can be linked against the static library.
  17043. + $ECHO
  17044. + $ECHO "*** Warning: This system can not link to static lib archive $lib."
  17045. + $ECHO "*** I have the capability to make that library automatically link in when"
  17046. + $ECHO "*** you link to this library. But I can only do this if you have a"
  17047. + $ECHO "*** shared version of the library, which you do not appear to have."
  17048. + if test "$module" = yes; then
  17049. + $ECHO "*** But as you try to build a module library, libtool will still create "
  17050. + $ECHO "*** a static module, that should work as long as the dlopening application"
  17051. + $ECHO "*** is linked with the -dlopen flag to resolve symbols at runtime."
  17052. + if test -z "$global_symbol_pipe"; then
  17053. + $ECHO
  17054. + $ECHO "*** However, this would only work if libtool was able to extract symbol"
  17055. + $ECHO "*** lists from a program, using \`nm' or equivalent, but libtool could"
  17056. + $ECHO "*** not find such a program. So, this module is probably useless."
  17057. + $ECHO "*** \`nm' from GNU binutils and a full rebuild may help."
  17058. + fi
  17059. + if test "$build_old_libs" = no; then
  17060. + build_libtool_libs=module
  17061. + build_old_libs=yes
  17062. + else
  17063. + build_libtool_libs=no
  17064. + fi
  17065. + fi
  17066. + else
  17067. + deplibs="$dir/$old_library $deplibs"
  17068. + link_static=yes
  17069. + fi
  17070. + fi # link shared/static library?
  17071. +
  17072. + if test "$linkmode" = lib; then
  17073. + if test -n "$dependency_libs" &&
  17074. + { test "$hardcode_into_libs" != yes ||
  17075. + test "$build_old_libs" = yes ||
  17076. + test "$link_static" = yes; }; then
  17077. + # Extract -R from dependency_libs
  17078. + temp_deplibs=
  17079. + for libdir in $dependency_libs; do
  17080. + case $libdir in
  17081. + -R*) func_stripname '-R' '' "$libdir"
  17082. + temp_xrpath=$func_stripname_result
  17083. + case " $xrpath " in
  17084. + *" $temp_xrpath "*) ;;
  17085. + *) xrpath="$xrpath $temp_xrpath";;
  17086. + esac;;
  17087. + *) temp_deplibs="$temp_deplibs $libdir";;
  17088. + esac
  17089. + done
  17090. + dependency_libs="$temp_deplibs"
  17091. + fi
  17092. +
  17093. + newlib_search_path="$newlib_search_path $absdir"
  17094. + # Link against this library
  17095. + test "$link_static" = no && newdependency_libs="$abs_ladir/$laname $newdependency_libs"
  17096. + # ... and its dependency_libs
  17097. + tmp_libs=
  17098. + for deplib in $dependency_libs; do
  17099. + newdependency_libs="$deplib $newdependency_libs"
  17100. + if $opt_duplicate_deps ; then
  17101. + case "$tmp_libs " in
  17102. + *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
  17103. + esac
  17104. + fi
  17105. + tmp_libs="$tmp_libs $deplib"
  17106. + done
  17107. +
  17108. + if test "$link_all_deplibs" != no; then
  17109. + # Add the search paths of all dependency libraries
  17110. + for deplib in $dependency_libs; do
  17111. + path=
  17112. + case $deplib in
  17113. + -L*) path="$deplib" ;;
  17114. + *.la)
  17115. + func_dirname "$deplib" "" "."
  17116. + dir="$func_dirname_result"
  17117. + # We need an absolute path.
  17118. + case $dir in
  17119. + [\\/]* | [A-Za-z]:[\\/]*) absdir="$dir" ;;
  17120. + *)
  17121. + absdir=`cd "$dir" && pwd`
  17122. + if test -z "$absdir"; then
  17123. + func_warning "cannot determine absolute directory name of \`$dir'"
  17124. + absdir="$dir"
  17125. + fi
  17126. + ;;
  17127. + esac
  17128. + if $GREP "^installed=no" $deplib > /dev/null; then
  17129. + case $host in
  17130. + *-*-darwin*)
  17131. + depdepl=
  17132. + eval deplibrary_names=`${SED} -n -e 's/^library_names=\(.*\)$/\1/p' $deplib`
  17133. + if test -n "$deplibrary_names" ; then
  17134. + for tmp in $deplibrary_names ; do
  17135. + depdepl=$tmp
  17136. + done
  17137. + if test -f "$absdir/$objdir/$depdepl" ; then
  17138. + depdepl="$absdir/$objdir/$depdepl"
  17139. + darwin_install_name=`${OTOOL} -L $depdepl | awk '{if (NR == 2) {print $1;exit}}'`
  17140. + if test -z "$darwin_install_name"; then
  17141. + darwin_install_name=`${OTOOL64} -L $depdepl | awk '{if (NR == 2) {print $1;exit}}'`
  17142. + fi
  17143. + compiler_flags="$compiler_flags ${wl}-dylib_file ${wl}${darwin_install_name}:${depdepl}"
  17144. + linker_flags="$linker_flags -dylib_file ${darwin_install_name}:${depdepl}"
  17145. + path=
  17146. + fi
  17147. + fi
  17148. + ;;
  17149. + *)
  17150. + path="-L$absdir/$objdir"
  17151. + ;;
  17152. + esac
  17153. + else
  17154. + eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib`
  17155. + test -z "$libdir" && \
  17156. + func_fatal_error "\`$deplib' is not a valid libtool archive"
  17157. + test "$absdir" != "$libdir" && \
  17158. + func_warning "\`$deplib' seems to be moved"
  17159. +
  17160. + path="-L$absdir"
  17161. + fi
  17162. + ;;
  17163. + esac
  17164. + case " $deplibs " in
  17165. + *" $path "*) ;;
  17166. + *) deplibs="$path $deplibs" ;;
  17167. + esac
  17168. + done
  17169. + fi # link_all_deplibs != no
  17170. + fi # linkmode = lib
  17171. + done # for deplib in $libs
  17172. + if test "$pass" = link; then
  17173. + if test "$linkmode" = "prog"; then
  17174. + compile_deplibs="$new_inherited_linker_flags $compile_deplibs"
  17175. + finalize_deplibs="$new_inherited_linker_flags $finalize_deplibs"
  17176. + else
  17177. + compiler_flags="$compiler_flags "`$ECHO "X $new_inherited_linker_flags" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'`
  17178. + fi
  17179. + fi
  17180. + dependency_libs="$newdependency_libs"
  17181. + if test "$pass" = dlpreopen; then
  17182. + # Link the dlpreopened libraries before other libraries
  17183. + for deplib in $save_deplibs; do
  17184. + deplibs="$deplib $deplibs"
  17185. + done
  17186. + fi
  17187. + if test "$pass" != dlopen; then
  17188. + if test "$pass" != conv; then
  17189. + # Make sure lib_search_path contains only unique directories.
  17190. + lib_search_path=
  17191. + for dir in $newlib_search_path; do
  17192. + case "$lib_search_path " in
  17193. + *" $dir "*) ;;
  17194. + *) lib_search_path="$lib_search_path $dir" ;;
  17195. + esac
  17196. + done
  17197. + newlib_search_path=
  17198. + fi
  17199. +
  17200. + if test "$linkmode,$pass" != "prog,link"; then
  17201. + vars="deplibs"
  17202. + else
  17203. + vars="compile_deplibs finalize_deplibs"
  17204. + fi
  17205. + for var in $vars dependency_libs; do
  17206. + # Add libraries to $var in reverse order
  17207. + eval tmp_libs=\"\$$var\"
  17208. + new_libs=
  17209. + for deplib in $tmp_libs; do
  17210. + # FIXME: Pedantically, this is the right thing to do, so
  17211. + # that some nasty dependency loop isn't accidentally
  17212. + # broken:
  17213. + #new_libs="$deplib $new_libs"
  17214. + # Pragmatically, this seems to cause very few problems in
  17215. + # practice:
  17216. + case $deplib in
  17217. + -L*) new_libs="$deplib $new_libs" ;;
  17218. + -R*) ;;
  17219. + *)
  17220. + # And here is the reason: when a library appears more
  17221. + # than once as an explicit dependence of a library, or
  17222. + # is implicitly linked in more than once by the
  17223. + # compiler, it is considered special, and multiple
  17224. + # occurrences thereof are not removed. Compare this
  17225. + # with having the same library being listed as a
  17226. + # dependency of multiple other libraries: in this case,
  17227. + # we know (pedantically, we assume) the library does not
  17228. + # need to be listed more than once, so we keep only the
  17229. + # last copy. This is not always right, but it is rare
  17230. + # enough that we require users that really mean to play
  17231. + # such unportable linking tricks to link the library
  17232. + # using -Wl,-lname, so that libtool does not consider it
  17233. + # for duplicate removal.
  17234. + case " $specialdeplibs " in
  17235. + *" $deplib "*) new_libs="$deplib $new_libs" ;;
  17236. + *)
  17237. + case " $new_libs " in
  17238. + *" $deplib "*) ;;
  17239. + *) new_libs="$deplib $new_libs" ;;
  17240. + esac
  17241. + ;;
  17242. + esac
  17243. + ;;
  17244. + esac
  17245. + done
  17246. + tmp_libs=
  17247. + for deplib in $new_libs; do
  17248. + case $deplib in
  17249. + -L*)
  17250. + case " $tmp_libs " in
  17251. + *" $deplib "*) ;;
  17252. + *) tmp_libs="$tmp_libs $deplib" ;;
  17253. + esac
  17254. + ;;
  17255. + *) tmp_libs="$tmp_libs $deplib" ;;
  17256. + esac
  17257. + done
  17258. + eval $var=\"$tmp_libs\"
  17259. + done # for var
  17260. + fi
  17261. + # Last step: remove runtime libs from dependency_libs
  17262. + # (they stay in deplibs)
  17263. + tmp_libs=
  17264. + for i in $dependency_libs ; do
  17265. + case " $predeps $postdeps $compiler_lib_search_path " in
  17266. + *" $i "*)
  17267. + i=""
  17268. + ;;
  17269. + esac
  17270. + if test -n "$i" ; then
  17271. + tmp_libs="$tmp_libs $i"
  17272. + fi
  17273. + done
  17274. + dependency_libs=$tmp_libs
  17275. + done # for pass
  17276. + if test "$linkmode" = prog; then
  17277. + dlfiles="$newdlfiles"
  17278. + fi
  17279. + if test "$linkmode" = prog || test "$linkmode" = lib; then
  17280. + dlprefiles="$newdlprefiles"
  17281. + fi
  17282. +
  17283. + case $linkmode in
  17284. + oldlib)
  17285. + if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then
  17286. + func_warning "\`-dlopen' is ignored for archives"
  17287. + fi
  17288. +
  17289. + case " $deplibs" in
  17290. + *\ -l* | *\ -L*)
  17291. + func_warning "\`-l' and \`-L' are ignored for archives" ;;
  17292. + esac
  17293. +
  17294. + test -n "$rpath" && \
  17295. + func_warning "\`-rpath' is ignored for archives"
  17296. +
  17297. + test -n "$xrpath" && \
  17298. + func_warning "\`-R' is ignored for archives"
  17299. +
  17300. + test -n "$vinfo" && \
  17301. + func_warning "\`-version-info/-version-number' is ignored for archives"
  17302. +
  17303. + test -n "$release" && \
  17304. + func_warning "\`-release' is ignored for archives"
  17305. +
  17306. + test -n "$export_symbols$export_symbols_regex" && \
  17307. + func_warning "\`-export-symbols' is ignored for archives"
  17308. +
  17309. + # Now set the variables for building old libraries.
  17310. + build_libtool_libs=no
  17311. + oldlibs="$output"
  17312. + objs="$objs$old_deplibs"
  17313. + ;;
  17314. +
  17315. + lib)
  17316. + # Make sure we only generate libraries of the form `libNAME.la'.
  17317. + case $outputname in
  17318. + lib*)
  17319. + func_stripname 'lib' '.la' "$outputname"
  17320. + name=$func_stripname_result
  17321. + eval shared_ext=\"$shrext_cmds\"
  17322. + eval libname=\"$libname_spec\"
  17323. + ;;
  17324. + *)
  17325. + test "$module" = no && \
  17326. + func_fatal_help "libtool library \`$output' must begin with \`lib'"
  17327. +
  17328. + if test "$need_lib_prefix" != no; then
  17329. + # Add the "lib" prefix for modules if required
  17330. + func_stripname '' '.la' "$outputname"
  17331. + name=$func_stripname_result
  17332. + eval shared_ext=\"$shrext_cmds\"
  17333. + eval libname=\"$libname_spec\"
  17334. + else
  17335. + func_stripname '' '.la' "$outputname"
  17336. + libname=$func_stripname_result
  17337. + fi
  17338. + ;;
  17339. + esac
  17340. +
  17341. + if test -n "$objs"; then
  17342. + if test "$deplibs_check_method" != pass_all; then
  17343. + func_fatal_error "cannot build libtool library \`$output' from non-libtool objects on this host:$objs"
  17344. + else
  17345. + $ECHO
  17346. + $ECHO "*** Warning: Linking the shared library $output against the non-libtool"
  17347. + $ECHO "*** objects $objs is not portable!"
  17348. + libobjs="$libobjs $objs"
  17349. + fi
  17350. + fi
  17351. +
  17352. + test "$dlself" != no && \
  17353. + func_warning "\`-dlopen self' is ignored for libtool libraries"
  17354. +
  17355. + set dummy $rpath
  17356. + shift
  17357. + test "$#" -gt 1 && \
  17358. + func_warning "ignoring multiple \`-rpath's for a libtool library"
  17359. +
  17360. + install_libdir="$1"
  17361. +
  17362. + oldlibs=
  17363. + if test -z "$rpath"; then
  17364. + if test "$build_libtool_libs" = yes; then
  17365. + # Building a libtool convenience library.
  17366. + # Some compilers have problems with a `.al' extension so
  17367. + # convenience libraries should have the same extension an
  17368. + # archive normally would.
  17369. + oldlibs="$output_objdir/$libname.$libext $oldlibs"
  17370. + build_libtool_libs=convenience
  17371. + build_old_libs=yes
  17372. + fi
  17373. +
  17374. + test -n "$vinfo" && \
  17375. + func_warning "\`-version-info/-version-number' is ignored for convenience libraries"
  17376. +
  17377. + test -n "$release" && \
  17378. + func_warning "\`-release' is ignored for convenience libraries"
  17379. + else
  17380. +
  17381. + # Parse the version information argument.
  17382. + save_ifs="$IFS"; IFS=':'
  17383. + set dummy $vinfo 0 0 0
  17384. + shift
  17385. + IFS="$save_ifs"
  17386. +
  17387. + test -n "$7" && \
  17388. + func_fatal_help "too many parameters to \`-version-info'"
  17389. +
  17390. + # convert absolute version numbers to libtool ages
  17391. + # this retains compatibility with .la files and attempts
  17392. + # to make the code below a bit more comprehensible
  17393. +
  17394. + case $vinfo_number in
  17395. + yes)
  17396. + number_major="$1"
  17397. + number_minor="$2"
  17398. + number_revision="$3"
  17399. + #
  17400. + # There are really only two kinds -- those that
  17401. + # use the current revision as the major version
  17402. + # and those that subtract age and use age as
  17403. + # a minor version. But, then there is irix
  17404. + # which has an extra 1 added just for fun
  17405. + #
  17406. + case $version_type in
  17407. + darwin|linux|osf|windows|none)
  17408. + func_arith $number_major + $number_minor
  17409. + current=$func_arith_result
  17410. + age="$number_minor"
  17411. + revision="$number_revision"
  17412. + ;;
  17413. + freebsd-aout|freebsd-elf|sunos)
  17414. + current="$number_major"
  17415. + revision="$number_minor"
  17416. + age="0"
  17417. + ;;
  17418. + irix|nonstopux)
  17419. + func_arith $number_major + $number_minor
  17420. + current=$func_arith_result
  17421. + age="$number_minor"
  17422. + revision="$number_minor"
  17423. + lt_irix_increment=no
  17424. + ;;
  17425. + *)
  17426. + func_fatal_configuration "$modename: unknown library version type \`$version_type'"
  17427. + ;;
  17428. + esac
  17429. + ;;
  17430. + no)
  17431. + current="$1"
  17432. + revision="$2"
  17433. + age="$3"
  17434. + ;;
  17435. + esac
  17436. +
  17437. + # Check that each of the things are valid numbers.
  17438. + case $current in
  17439. + 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]) ;;
  17440. + *)
  17441. + func_error "CURRENT \`$current' must be a nonnegative integer"
  17442. + func_fatal_error "\`$vinfo' is not valid version information"
  17443. + ;;
  17444. + esac
  17445. +
  17446. + case $revision in
  17447. + 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]) ;;
  17448. + *)
  17449. + func_error "REVISION \`$revision' must be a nonnegative integer"
  17450. + func_fatal_error "\`$vinfo' is not valid version information"
  17451. + ;;
  17452. + esac
  17453. +
  17454. + case $age in
  17455. + 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]) ;;
  17456. + *)
  17457. + func_error "AGE \`$age' must be a nonnegative integer"
  17458. + func_fatal_error "\`$vinfo' is not valid version information"
  17459. + ;;
  17460. + esac
  17461. +
  17462. + if test "$age" -gt "$current"; then
  17463. + func_error "AGE \`$age' is greater than the current interface number \`$current'"
  17464. + func_fatal_error "\`$vinfo' is not valid version information"
  17465. + fi
  17466. +
  17467. + # Calculate the version variables.
  17468. + major=
  17469. + versuffix=
  17470. + verstring=
  17471. + case $version_type in
  17472. + none) ;;
  17473. +
  17474. + darwin)
  17475. + # Like Linux, but with the current version available in
  17476. + # verstring for coding it into the library header
  17477. + func_arith $current - $age
  17478. + major=.$func_arith_result
  17479. + versuffix="$major.$age.$revision"
  17480. + # Darwin ld doesn't like 0 for these options...
  17481. + func_arith $current + 1
  17482. + minor_current=$func_arith_result
  17483. + xlcverstring="${wl}-compatibility_version ${wl}$minor_current ${wl}-current_version ${wl}$minor_current.$revision"
  17484. + verstring="-compatibility_version $minor_current -current_version $minor_current.$revision"
  17485. + ;;
  17486. +
  17487. + freebsd-aout)
  17488. + major=".$current"
  17489. + versuffix=".$current.$revision";
  17490. + ;;
  17491. +
  17492. + freebsd-elf)
  17493. + major=".$current"
  17494. + versuffix=".$current"
  17495. + ;;
  17496. +
  17497. + irix | nonstopux)
  17498. + if test "X$lt_irix_increment" = "Xno"; then
  17499. + func_arith $current - $age
  17500. + else
  17501. + func_arith $current - $age + 1
  17502. + fi
  17503. + major=$func_arith_result
  17504. +
  17505. + case $version_type in
  17506. + nonstopux) verstring_prefix=nonstopux ;;
  17507. + *) verstring_prefix=sgi ;;
  17508. + esac
  17509. + verstring="$verstring_prefix$major.$revision"
  17510. +
  17511. + # Add in all the interfaces that we are compatible with.
  17512. + loop=$revision
  17513. + while test "$loop" -ne 0; do
  17514. + func_arith $revision - $loop
  17515. + iface=$func_arith_result
  17516. + func_arith $loop - 1
  17517. + loop=$func_arith_result
  17518. + verstring="$verstring_prefix$major.$iface:$verstring"
  17519. + done
  17520. +
  17521. + # Before this point, $major must not contain `.'.
  17522. + major=.$major
  17523. + versuffix="$major.$revision"
  17524. + ;;
  17525. +
  17526. + linux)
  17527. + func_arith $current - $age
  17528. + major=.$func_arith_result
  17529. + versuffix="$major.$age.$revision"
  17530. + ;;
  17531. +
  17532. + osf)
  17533. + func_arith $current - $age
  17534. + major=.$func_arith_result
  17535. + versuffix=".$current.$age.$revision"
  17536. + verstring="$current.$age.$revision"
  17537. +
  17538. + # Add in all the interfaces that we are compatible with.
  17539. + loop=$age
  17540. + while test "$loop" -ne 0; do
  17541. + func_arith $current - $loop
  17542. + iface=$func_arith_result
  17543. + func_arith $loop - 1
  17544. + loop=$func_arith_result
  17545. + verstring="$verstring:${iface}.0"
  17546. + done
  17547. +
  17548. + # Make executables depend on our current version.
  17549. + verstring="$verstring:${current}.0"
  17550. + ;;
  17551. +
  17552. + qnx)
  17553. + major=".$current"
  17554. + versuffix=".$current"
  17555. + ;;
  17556. +
  17557. + sunos)
  17558. + major=".$current"
  17559. + versuffix=".$current.$revision"
  17560. + ;;
  17561. +
  17562. + windows)
  17563. + # Use '-' rather than '.', since we only want one
  17564. + # extension on DOS 8.3 filesystems.
  17565. + func_arith $current - $age
  17566. + major=$func_arith_result
  17567. + versuffix="-$major"
  17568. + ;;
  17569. +
  17570. + *)
  17571. + func_fatal_configuration "unknown library version type \`$version_type'"
  17572. + ;;
  17573. + esac
  17574. +
  17575. + # Clear the version info if we defaulted, and they specified a release.
  17576. + if test -z "$vinfo" && test -n "$release"; then
  17577. + major=
  17578. + case $version_type in
  17579. + darwin)
  17580. + # we can't check for "0.0" in archive_cmds due to quoting
  17581. + # problems, so we reset it completely
  17582. + verstring=
  17583. + ;;
  17584. + *)
  17585. + verstring="0.0"
  17586. + ;;
  17587. + esac
  17588. + if test "$need_version" = no; then
  17589. + versuffix=
  17590. + else
  17591. + versuffix=".0.0"
  17592. + fi
  17593. + fi
  17594. +
  17595. + # Remove version info from name if versioning should be avoided
  17596. + if test "$avoid_version" = yes && test "$need_version" = no; then
  17597. + major=
  17598. + versuffix=
  17599. + verstring=""
  17600. + fi
  17601. +
  17602. + # Check to see if the archive will have undefined symbols.
  17603. + if test "$allow_undefined" = yes; then
  17604. + if test "$allow_undefined_flag" = unsupported; then
  17605. + func_warning "undefined symbols not allowed in $host shared libraries"
  17606. + build_libtool_libs=no
  17607. + build_old_libs=yes
  17608. + fi
  17609. + else
  17610. + # Don't allow undefined symbols.
  17611. + allow_undefined_flag="$no_undefined_flag"
  17612. + fi
  17613. +
  17614. + fi
  17615. +
  17616. + func_generate_dlsyms "$libname" "$libname" "yes"
  17617. + libobjs="$libobjs $symfileobj"
  17618. + test "X$libobjs" = "X " && libobjs=
  17619. +
  17620. + if test "$mode" != relink; then
  17621. + # Remove our outputs, but don't remove object files since they
  17622. + # may have been created when compiling PIC objects.
  17623. + removelist=
  17624. + tempremovelist=`$ECHO "$output_objdir/*"`
  17625. + for p in $tempremovelist; do
  17626. + case $p in
  17627. + *.$objext | *.gcno)
  17628. + ;;
  17629. + $output_objdir/$outputname | $output_objdir/$libname.* | $output_objdir/${libname}${release}.*)
  17630. + if test "X$precious_files_regex" != "X"; then
  17631. + if $ECHO "$p" | $EGREP -e "$precious_files_regex" >/dev/null 2>&1
  17632. + then
  17633. + continue
  17634. + fi
  17635. + fi
  17636. + removelist="$removelist $p"
  17637. + ;;
  17638. + *) ;;
  17639. + esac
  17640. + done
  17641. + test -n "$removelist" && \
  17642. + func_show_eval "${RM}r \$removelist"
  17643. + fi
  17644. +
  17645. + # Now set the variables for building old libraries.
  17646. + if test "$build_old_libs" = yes && test "$build_libtool_libs" != convenience ; then
  17647. + oldlibs="$oldlibs $output_objdir/$libname.$libext"
  17648. +
  17649. + # Transform .lo files to .o files.
  17650. + oldobjs="$objs "`$ECHO "X$libobjs" | $SP2NL | $Xsed -e '/\.'${libext}'$/d' -e "$lo2o" | $NL2SP`
  17651. + fi
  17652. +
  17653. + # Eliminate all temporary directories.
  17654. + #for path in $notinst_path; do
  17655. + # lib_search_path=`$ECHO "X$lib_search_path " | $Xsed -e "s% $path % %g"`
  17656. + # deplibs=`$ECHO "X$deplibs " | $Xsed -e "s% -L$path % %g"`
  17657. + # dependency_libs=`$ECHO "X$dependency_libs " | $Xsed -e "s% -L$path % %g"`
  17658. + #done
  17659. +
  17660. + if test -n "$xrpath"; then
  17661. + # If the user specified any rpath flags, then add them.
  17662. + temp_xrpath=
  17663. + for libdir in $xrpath; do
  17664. + temp_xrpath="$temp_xrpath -R$libdir"
  17665. + case "$finalize_rpath " in
  17666. + *" $libdir "*) ;;
  17667. + *) finalize_rpath="$finalize_rpath $libdir" ;;
  17668. + esac
  17669. + done
  17670. + if test "$hardcode_into_libs" != yes || test "$build_old_libs" = yes; then
  17671. + dependency_libs="$temp_xrpath $dependency_libs"
  17672. + fi
  17673. + fi
  17674. +
  17675. + # Make sure dlfiles contains only unique files that won't be dlpreopened
  17676. + old_dlfiles="$dlfiles"
  17677. + dlfiles=
  17678. + for lib in $old_dlfiles; do
  17679. + case " $dlprefiles $dlfiles " in
  17680. + *" $lib "*) ;;
  17681. + *) dlfiles="$dlfiles $lib" ;;
  17682. + esac
  17683. + done
  17684. +
  17685. + # Make sure dlprefiles contains only unique files
  17686. + old_dlprefiles="$dlprefiles"
  17687. + dlprefiles=
  17688. + for lib in $old_dlprefiles; do
  17689. + case "$dlprefiles " in
  17690. + *" $lib "*) ;;
  17691. + *) dlprefiles="$dlprefiles $lib" ;;
  17692. + esac
  17693. + done
  17694. +
  17695. + if test "$build_libtool_libs" = yes; then
  17696. + if test -n "$rpath"; then
  17697. + case $host in
  17698. + *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-*-beos* | *-cegcc*)
  17699. + # these systems don't actually have a c library (as such)!
  17700. + ;;
  17701. + *-*-rhapsody* | *-*-darwin1.[012])
  17702. + # Rhapsody C library is in the System framework
  17703. + deplibs="$deplibs System.ltframework"
  17704. + ;;
  17705. + *-*-netbsd*)
  17706. + # Don't link with libc until the a.out ld.so is fixed.
  17707. + ;;
  17708. + *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*)
  17709. + # Do not include libc due to us having libc/libc_r.
  17710. + ;;
  17711. + *-*-sco3.2v5* | *-*-sco5v6*)
  17712. + # Causes problems with __ctype
  17713. + ;;
  17714. + *-*-sysv4.2uw2* | *-*-sysv5* | *-*-unixware* | *-*-OpenUNIX*)
  17715. + # Compiler inserts libc in the correct place for threads to work
  17716. + ;;
  17717. + *)
  17718. + # Add libc to deplibs on all other systems if necessary.
  17719. + if test "$build_libtool_need_lc" = "yes"; then
  17720. + deplibs="$deplibs -lc"
  17721. + fi
  17722. + ;;
  17723. + esac
  17724. + fi
  17725. +
  17726. + # Transform deplibs into only deplibs that can be linked in shared.
  17727. + name_save=$name
  17728. + libname_save=$libname
  17729. + release_save=$release
  17730. + versuffix_save=$versuffix
  17731. + major_save=$major
  17732. + # I'm not sure if I'm treating the release correctly. I think
  17733. + # release should show up in the -l (ie -lgmp5) so we don't want to
  17734. + # add it in twice. Is that correct?
  17735. + release=""
  17736. + versuffix=""
  17737. + major=""
  17738. + newdeplibs=
  17739. + droppeddeps=no
  17740. + case $deplibs_check_method in
  17741. + pass_all)
  17742. + # Don't check for shared/static. Everything works.
  17743. + # This might be a little naive. We might want to check
  17744. + # whether the library exists or not. But this is on
  17745. + # osf3 & osf4 and I'm not really sure... Just
  17746. + # implementing what was already the behavior.
  17747. + newdeplibs=$deplibs
  17748. + ;;
  17749. + test_compile)
  17750. + # This code stresses the "libraries are programs" paradigm to its
  17751. + # limits. Maybe even breaks it. We compile a program, linking it
  17752. + # against the deplibs as a proxy for the library. Then we can check
  17753. + # whether they linked in statically or dynamically with ldd.
  17754. + $opt_dry_run || $RM conftest.c
  17755. + cat > conftest.c <<EOF
  17756. + int main() { return 0; }
  17757. +EOF
  17758. + $opt_dry_run || $RM conftest
  17759. + if $LTCC $LTCFLAGS -o conftest conftest.c $deplibs; then
  17760. + ldd_output=`ldd conftest`
  17761. + for i in $deplibs; do
  17762. + case $i in
  17763. + -l*)
  17764. + func_stripname -l '' "$i"
  17765. + name=$func_stripname_result
  17766. + if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
  17767. + case " $predeps $postdeps " in
  17768. + *" $i "*)
  17769. + newdeplibs="$newdeplibs $i"
  17770. + i=""
  17771. + ;;
  17772. + esac
  17773. + fi
  17774. + if test -n "$i" ; then
  17775. + libname=`eval "\\$ECHO \"$libname_spec\""`
  17776. + deplib_matches=`eval "\\$ECHO \"$library_names_spec\""`
  17777. + set dummy $deplib_matches; shift
  17778. + deplib_match=$1
  17779. + if test `expr "$ldd_output" : ".*$deplib_match"` -ne 0 ; then
  17780. + newdeplibs="$newdeplibs $i"
  17781. + else
  17782. + droppeddeps=yes
  17783. + $ECHO
  17784. + $ECHO "*** Warning: dynamic linker does not accept needed library $i."
  17785. + $ECHO "*** I have the capability to make that library automatically link in when"
  17786. + $ECHO "*** you link to this library. But I can only do this if you have a"
  17787. + $ECHO "*** shared version of the library, which I believe you do not have"
  17788. + $ECHO "*** because a test_compile did reveal that the linker did not use it for"
  17789. + $ECHO "*** its dynamic dependency list that programs get resolved with at runtime."
  17790. + fi
  17791. + fi
  17792. + ;;
  17793. + *)
  17794. + newdeplibs="$newdeplibs $i"
  17795. + ;;
  17796. + esac
  17797. + done
  17798. + else
  17799. + # Error occurred in the first compile. Let's try to salvage
  17800. + # the situation: Compile a separate program for each library.
  17801. + for i in $deplibs; do
  17802. + case $i in
  17803. + -l*)
  17804. + func_stripname -l '' "$i"
  17805. + name=$func_stripname_result
  17806. + $opt_dry_run || $RM conftest
  17807. + if $LTCC $LTCFLAGS -o conftest conftest.c $i; then
  17808. + ldd_output=`ldd conftest`
  17809. + if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
  17810. + case " $predeps $postdeps " in
  17811. + *" $i "*)
  17812. + newdeplibs="$newdeplibs $i"
  17813. + i=""
  17814. + ;;
  17815. + esac
  17816. + fi
  17817. + if test -n "$i" ; then
  17818. + libname=`eval "\\$ECHO \"$libname_spec\""`
  17819. + deplib_matches=`eval "\\$ECHO \"$library_names_spec\""`
  17820. + set dummy $deplib_matches; shift
  17821. + deplib_match=$1
  17822. + if test `expr "$ldd_output" : ".*$deplib_match"` -ne 0 ; then
  17823. + newdeplibs="$newdeplibs $i"
  17824. + else
  17825. + droppeddeps=yes
  17826. + $ECHO
  17827. + $ECHO "*** Warning: dynamic linker does not accept needed library $i."
  17828. + $ECHO "*** I have the capability to make that library automatically link in when"
  17829. + $ECHO "*** you link to this library. But I can only do this if you have a"
  17830. + $ECHO "*** shared version of the library, which you do not appear to have"
  17831. + $ECHO "*** because a test_compile did reveal that the linker did not use this one"
  17832. + $ECHO "*** as a dynamic dependency that programs can get resolved with at runtime."
  17833. + fi
  17834. + fi
  17835. + else
  17836. + droppeddeps=yes
  17837. + $ECHO
  17838. + $ECHO "*** Warning! Library $i is needed by this library but I was not able to"
  17839. + $ECHO "*** make it link in! You will probably need to install it or some"
  17840. + $ECHO "*** library that it depends on before this library will be fully"
  17841. + $ECHO "*** functional. Installing it before continuing would be even better."
  17842. + fi
  17843. + ;;
  17844. + *)
  17845. + newdeplibs="$newdeplibs $i"
  17846. + ;;
  17847. + esac
  17848. + done
  17849. + fi
  17850. + ;;
  17851. + file_magic*)
  17852. + set dummy $deplibs_check_method; shift
  17853. + file_magic_regex=`expr "$deplibs_check_method" : "$1 \(.*\)"`
  17854. + for a_deplib in $deplibs; do
  17855. + case $a_deplib in
  17856. + -l*)
  17857. + func_stripname -l '' "$a_deplib"
  17858. + name=$func_stripname_result
  17859. + if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
  17860. + case " $predeps $postdeps " in
  17861. + *" $a_deplib "*)
  17862. + newdeplibs="$newdeplibs $a_deplib"
  17863. + a_deplib=""
  17864. + ;;
  17865. + esac
  17866. + fi
  17867. + if test -n "$a_deplib" ; then
  17868. + libname=`eval "\\$ECHO \"$libname_spec\""`
  17869. + for i in $lib_search_path $sys_lib_search_path $shlib_search_path; do
  17870. + potential_libs=`ls $i/$libname[.-]* 2>/dev/null`
  17871. + for potent_lib in $potential_libs; do
  17872. + # Follow soft links.
  17873. + if ls -lLd "$potent_lib" 2>/dev/null |
  17874. + $GREP " -> " >/dev/null; then
  17875. + continue
  17876. + fi
  17877. + # The statement above tries to avoid entering an
  17878. + # endless loop below, in case of cyclic links.
  17879. + # We might still enter an endless loop, since a link
  17880. + # loop can be closed while we follow links,
  17881. + # but so what?
  17882. + potlib="$potent_lib"
  17883. + while test -h "$potlib" 2>/dev/null; do
  17884. + potliblink=`ls -ld $potlib | ${SED} 's/.* -> //'`
  17885. + case $potliblink in
  17886. + [\\/]* | [A-Za-z]:[\\/]*) potlib="$potliblink";;
  17887. + *) potlib=`$ECHO "X$potlib" | $Xsed -e 's,[^/]*$,,'`"$potliblink";;
  17888. + esac
  17889. + done
  17890. + if eval $file_magic_cmd \"\$potlib\" 2>/dev/null |
  17891. + $SED -e 10q |
  17892. + $EGREP "$file_magic_regex" > /dev/null; then
  17893. + newdeplibs="$newdeplibs $a_deplib"
  17894. + a_deplib=""
  17895. + break 2
  17896. + fi
  17897. + done
  17898. + done
  17899. + fi
  17900. + if test -n "$a_deplib" ; then
  17901. + droppeddeps=yes
  17902. + $ECHO
  17903. + $ECHO "*** Warning: linker path does not have real file for library $a_deplib."
  17904. + $ECHO "*** I have the capability to make that library automatically link in when"
  17905. + $ECHO "*** you link to this library. But I can only do this if you have a"
  17906. + $ECHO "*** shared version of the library, which you do not appear to have"
  17907. + $ECHO "*** because I did check the linker path looking for a file starting"
  17908. + if test -z "$potlib" ; then
  17909. + $ECHO "*** with $libname but no candidates were found. (...for file magic test)"
  17910. + else
  17911. + $ECHO "*** with $libname and none of the candidates passed a file format test"
  17912. + $ECHO "*** using a file magic. Last file checked: $potlib"
  17913. + fi
  17914. + fi
  17915. + ;;
  17916. + *)
  17917. + # Add a -L argument.
  17918. + newdeplibs="$newdeplibs $a_deplib"
  17919. + ;;
  17920. + esac
  17921. + done # Gone through all deplibs.
  17922. + ;;
  17923. + match_pattern*)
  17924. + set dummy $deplibs_check_method; shift
  17925. + match_pattern_regex=`expr "$deplibs_check_method" : "$1 \(.*\)"`
  17926. + for a_deplib in $deplibs; do
  17927. + case $a_deplib in
  17928. + -l*)
  17929. + func_stripname -l '' "$a_deplib"
  17930. + name=$func_stripname_result
  17931. + if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
  17932. + case " $predeps $postdeps " in
  17933. + *" $a_deplib "*)
  17934. + newdeplibs="$newdeplibs $a_deplib"
  17935. + a_deplib=""
  17936. + ;;
  17937. + esac
  17938. + fi
  17939. + if test -n "$a_deplib" ; then
  17940. + libname=`eval "\\$ECHO \"$libname_spec\""`
  17941. + for i in $lib_search_path $sys_lib_search_path $shlib_search_path; do
  17942. + potential_libs=`ls $i/$libname[.-]* 2>/dev/null`
  17943. + for potent_lib in $potential_libs; do
  17944. + potlib="$potent_lib" # see symlink-check above in file_magic test
  17945. + if eval "\$ECHO \"X$potent_lib\"" 2>/dev/null | $Xsed -e 10q | \
  17946. + $EGREP "$match_pattern_regex" > /dev/null; then
  17947. + newdeplibs="$newdeplibs $a_deplib"
  17948. + a_deplib=""
  17949. + break 2
  17950. + fi
  17951. + done
  17952. + done
  17953. + fi
  17954. + if test -n "$a_deplib" ; then
  17955. + droppeddeps=yes
  17956. + $ECHO
  17957. + $ECHO "*** Warning: linker path does not have real file for library $a_deplib."
  17958. + $ECHO "*** I have the capability to make that library automatically link in when"
  17959. + $ECHO "*** you link to this library. But I can only do this if you have a"
  17960. + $ECHO "*** shared version of the library, which you do not appear to have"
  17961. + $ECHO "*** because I did check the linker path looking for a file starting"
  17962. + if test -z "$potlib" ; then
  17963. + $ECHO "*** with $libname but no candidates were found. (...for regex pattern test)"
  17964. + else
  17965. + $ECHO "*** with $libname and none of the candidates passed a file format test"
  17966. + $ECHO "*** using a regex pattern. Last file checked: $potlib"
  17967. + fi
  17968. + fi
  17969. + ;;
  17970. + *)
  17971. + # Add a -L argument.
  17972. + newdeplibs="$newdeplibs $a_deplib"
  17973. + ;;
  17974. + esac
  17975. + done # Gone through all deplibs.
  17976. + ;;
  17977. + none | unknown | *)
  17978. + newdeplibs=""
  17979. + tmp_deplibs=`$ECHO "X $deplibs" | $Xsed \
  17980. + -e 's/ -lc$//' -e 's/ -[LR][^ ]*//g'`
  17981. + if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
  17982. + for i in $predeps $postdeps ; do
  17983. + # can't use Xsed below, because $i might contain '/'
  17984. + tmp_deplibs=`$ECHO "X $tmp_deplibs" | $Xsed -e "s,$i,,"`
  17985. + done
  17986. + fi
  17987. + if $ECHO "X $tmp_deplibs" | $Xsed -e 's/[ ]//g' |
  17988. + $GREP . >/dev/null; then
  17989. + $ECHO
  17990. + if test "X$deplibs_check_method" = "Xnone"; then
  17991. + $ECHO "*** Warning: inter-library dependencies are not supported in this platform."
  17992. + else
  17993. + $ECHO "*** Warning: inter-library dependencies are not known to be supported."
  17994. + fi
  17995. + $ECHO "*** All declared inter-library dependencies are being dropped."
  17996. + droppeddeps=yes
  17997. + fi
  17998. + ;;
  17999. + esac
  18000. + versuffix=$versuffix_save
  18001. + major=$major_save
  18002. + release=$release_save
  18003. + libname=$libname_save
  18004. + name=$name_save
  18005. +
  18006. + case $host in
  18007. + *-*-rhapsody* | *-*-darwin1.[012])
  18008. + # On Rhapsody replace the C library with the System framework
  18009. + newdeplibs=`$ECHO "X $newdeplibs" | $Xsed -e 's/ -lc / System.ltframework /'`
  18010. + ;;
  18011. + esac
  18012. +
  18013. + if test "$droppeddeps" = yes; then
  18014. + if test "$module" = yes; then
  18015. + $ECHO
  18016. + $ECHO "*** Warning: libtool could not satisfy all declared inter-library"
  18017. + $ECHO "*** dependencies of module $libname. Therefore, libtool will create"
  18018. + $ECHO "*** a static module, that should work as long as the dlopening"
  18019. + $ECHO "*** application is linked with the -dlopen flag."
  18020. + if test -z "$global_symbol_pipe"; then
  18021. + $ECHO
  18022. + $ECHO "*** However, this would only work if libtool was able to extract symbol"
  18023. + $ECHO "*** lists from a program, using \`nm' or equivalent, but libtool could"
  18024. + $ECHO "*** not find such a program. So, this module is probably useless."
  18025. + $ECHO "*** \`nm' from GNU binutils and a full rebuild may help."
  18026. + fi
  18027. + if test "$build_old_libs" = no; then
  18028. + oldlibs="$output_objdir/$libname.$libext"
  18029. + build_libtool_libs=module
  18030. + build_old_libs=yes
  18031. + else
  18032. + build_libtool_libs=no
  18033. + fi
  18034. + else
  18035. + $ECHO "*** The inter-library dependencies that have been dropped here will be"
  18036. + $ECHO "*** automatically added whenever a program is linked with this library"
  18037. + $ECHO "*** or is declared to -dlopen it."
  18038. +
  18039. + if test "$allow_undefined" = no; then
  18040. + $ECHO
  18041. + $ECHO "*** Since this library must not contain undefined symbols,"
  18042. + $ECHO "*** because either the platform does not support them or"
  18043. + $ECHO "*** it was explicitly requested with -no-undefined,"
  18044. + $ECHO "*** libtool will only create a static version of it."
  18045. + if test "$build_old_libs" = no; then
  18046. + oldlibs="$output_objdir/$libname.$libext"
  18047. + build_libtool_libs=module
  18048. + build_old_libs=yes
  18049. + else
  18050. + build_libtool_libs=no
  18051. + fi
  18052. + fi
  18053. + fi
  18054. + fi
  18055. + # Done checking deplibs!
  18056. + deplibs=$newdeplibs
  18057. + fi
  18058. + # Time to change all our "foo.ltframework" stuff back to "-framework foo"
  18059. + case $host in
  18060. + *-*-darwin*)
  18061. + newdeplibs=`$ECHO "X $newdeplibs" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'`
  18062. + new_inherited_linker_flags=`$ECHO "X $new_inherited_linker_flags" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'`
  18063. + deplibs=`$ECHO "X $deplibs" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'`
  18064. + ;;
  18065. + esac
  18066. +
  18067. + # move library search paths that coincide with paths to not yet
  18068. + # installed libraries to the beginning of the library search list
  18069. + new_libs=
  18070. + for path in $notinst_path; do
  18071. + case " $new_libs " in
  18072. + *" -L$path/$objdir "*) ;;
  18073. + *)
  18074. + case " $deplibs " in
  18075. + *" -L$path/$objdir "*)
  18076. + new_libs="$new_libs -L$path/$objdir" ;;
  18077. + esac
  18078. + ;;
  18079. + esac
  18080. + done
  18081. + for deplib in $deplibs; do
  18082. + case $deplib in
  18083. + -L*)
  18084. + case " $new_libs " in
  18085. + *" $deplib "*) ;;
  18086. + *) new_libs="$new_libs $deplib" ;;
  18087. + esac
  18088. + ;;
  18089. + *) new_libs="$new_libs $deplib" ;;
  18090. + esac
  18091. + done
  18092. + deplibs="$new_libs"
  18093. +
  18094. + # All the library-specific variables (install_libdir is set above).
  18095. + library_names=
  18096. + old_library=
  18097. + dlname=
  18098. +
  18099. + # Test again, we may have decided not to build it any more
  18100. + if test "$build_libtool_libs" = yes; then
  18101. + if test "$hardcode_into_libs" = yes; then
  18102. + # Hardcode the library paths
  18103. + hardcode_libdirs=
  18104. + dep_rpath=
  18105. + rpath="$finalize_rpath"
  18106. + test "$mode" != relink && rpath="$compile_rpath$rpath"
  18107. + for libdir in $rpath; do
  18108. + if test -n "$hardcode_libdir_flag_spec"; then
  18109. + if test -n "$hardcode_libdir_separator"; then
  18110. + if test -z "$hardcode_libdirs"; then
  18111. + hardcode_libdirs="$libdir"
  18112. + else
  18113. + # Just accumulate the unique libdirs.
  18114. + case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in
  18115. + *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*)
  18116. + ;;
  18117. + *)
  18118. + hardcode_libdirs="$hardcode_libdirs$hardcode_libdir_separator$libdir"
  18119. + ;;
  18120. + esac
  18121. + fi
  18122. + else
  18123. + eval flag=\"$hardcode_libdir_flag_spec\"
  18124. + dep_rpath="$dep_rpath $flag"
  18125. + fi
  18126. + elif test -n "$runpath_var"; then
  18127. + case "$perm_rpath " in
  18128. + *" $libdir "*) ;;
  18129. + *) perm_rpath="$perm_rpath $libdir" ;;
  18130. + esac
  18131. + fi
  18132. + done
  18133. + # Substitute the hardcoded libdirs into the rpath.
  18134. + if test -n "$hardcode_libdir_separator" &&
  18135. + test -n "$hardcode_libdirs"; then
  18136. + libdir="$hardcode_libdirs"
  18137. + if test -n "$hardcode_libdir_flag_spec_ld"; then
  18138. + eval dep_rpath=\"$hardcode_libdir_flag_spec_ld\"
  18139. + else
  18140. + eval dep_rpath=\"$hardcode_libdir_flag_spec\"
  18141. + fi
  18142. + fi
  18143. + if test -n "$runpath_var" && test -n "$perm_rpath"; then
  18144. + # We should set the runpath_var.
  18145. + rpath=
  18146. + for dir in $perm_rpath; do
  18147. + rpath="$rpath$dir:"
  18148. + done
  18149. + eval "$runpath_var='$rpath\$$runpath_var'; export $runpath_var"
  18150. + fi
  18151. + test -n "$dep_rpath" && deplibs="$dep_rpath $deplibs"
  18152. + fi
  18153. - # Try to get the absolute directory name.
  18154. - absdir=\`cd \"\$thisdir\" && pwd\`
  18155. - test -n \"\$absdir\" && thisdir=\"\$absdir\"
  18156. -"
  18157. + shlibpath="$finalize_shlibpath"
  18158. + test "$mode" != relink && shlibpath="$compile_shlibpath$shlibpath"
  18159. + if test -n "$shlibpath"; then
  18160. + eval "$shlibpath_var='$shlibpath\$$shlibpath_var'; export $shlibpath_var"
  18161. + fi
  18162. - if test "$fast_install" = yes; then
  18163. - $echo >> $output "\
  18164. - program=lt-'$outputname'$exeext
  18165. - progdir=\"\$thisdir/$objdir\"
  18166. + # Get the real and link names of the library.
  18167. + eval shared_ext=\"$shrext_cmds\"
  18168. + eval library_names=\"$library_names_spec\"
  18169. + set dummy $library_names
  18170. + shift
  18171. + realname="$1"
  18172. + shift
  18173. - if test ! -f \"\$progdir/\$program\" || \\
  18174. - { file=\`ls -1dt \"\$progdir/\$program\" \"\$progdir/../\$program\" 2>/dev/null | ${SED} 1q\`; \\
  18175. - test \"X\$file\" != \"X\$progdir/\$program\"; }; then
  18176. + if test -n "$soname_spec"; then
  18177. + eval soname=\"$soname_spec\"
  18178. + else
  18179. + soname="$realname"
  18180. + fi
  18181. + if test -z "$dlname"; then
  18182. + dlname=$soname
  18183. + fi
  18184. - file=\"\$\$-\$program\"
  18185. + lib="$output_objdir/$realname"
  18186. + linknames=
  18187. + for link
  18188. + do
  18189. + linknames="$linknames $link"
  18190. + done
  18191. - if test ! -d \"\$progdir\"; then
  18192. - $mkdir \"\$progdir\"
  18193. - else
  18194. - $rm \"\$progdir/\$file\"
  18195. - fi"
  18196. + # Use standard objects if they are pic
  18197. + test -z "$pic_flag" && libobjs=`$ECHO "X$libobjs" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP`
  18198. + test "X$libobjs" = "X " && libobjs=
  18199. - $echo >> $output "\
  18200. + delfiles=
  18201. + if test -n "$export_symbols" && test -n "$include_expsyms"; then
  18202. + $opt_dry_run || cp "$export_symbols" "$output_objdir/$libname.uexp"
  18203. + export_symbols="$output_objdir/$libname.uexp"
  18204. + delfiles="$delfiles $export_symbols"
  18205. + fi
  18206. +
  18207. + orig_export_symbols=
  18208. + case $host_os in
  18209. + cygwin* | mingw* | cegcc*)
  18210. + if test -n "$export_symbols" && test -z "$export_symbols_regex"; then
  18211. + # exporting using user supplied symfile
  18212. + if test "x`$SED 1q $export_symbols`" != xEXPORTS; then
  18213. + # and it's NOT already a .def file. Must figure out
  18214. + # which of the given symbols are data symbols and tag
  18215. + # them as such. So, trigger use of export_symbols_cmds.
  18216. + # export_symbols gets reassigned inside the "prepare
  18217. + # the list of exported symbols" if statement, so the
  18218. + # include_expsyms logic still works.
  18219. + orig_export_symbols="$export_symbols"
  18220. + export_symbols=
  18221. + always_export_symbols=yes
  18222. + fi
  18223. + fi
  18224. + ;;
  18225. + esac
  18226. - # relink executable if necessary
  18227. - if test -n \"\$relink_command\"; then
  18228. - if relink_command_output=\`eval \$relink_command 2>&1\`; then :
  18229. - else
  18230. - $echo \"\$relink_command_output\" >&2
  18231. - $rm \"\$progdir/\$file\"
  18232. - exit $EXIT_FAILURE
  18233. - fi
  18234. - fi
  18235. + # Prepare the list of exported symbols
  18236. + if test -z "$export_symbols"; then
  18237. + if test "$always_export_symbols" = yes || test -n "$export_symbols_regex"; then
  18238. + func_verbose "generating symbol list for \`$libname.la'"
  18239. + export_symbols="$output_objdir/$libname.exp"
  18240. + $opt_dry_run || $RM $export_symbols
  18241. + cmds=$export_symbols_cmds
  18242. + save_ifs="$IFS"; IFS='~'
  18243. + for cmd in $cmds; do
  18244. + IFS="$save_ifs"
  18245. + eval cmd=\"$cmd\"
  18246. + func_len " $cmd"
  18247. + len=$func_len_result
  18248. + if test "$len" -lt "$max_cmd_len" || test "$max_cmd_len" -le -1; then
  18249. + func_show_eval "$cmd" 'exit $?'
  18250. + skipped_export=false
  18251. + else
  18252. + # The command line is too long to execute in one step.
  18253. + func_verbose "using reloadable object file for export list..."
  18254. + skipped_export=:
  18255. + # Break out early, otherwise skipped_export may be
  18256. + # set to false by a later but shorter cmd.
  18257. + break
  18258. + fi
  18259. + done
  18260. + IFS="$save_ifs"
  18261. + if test -n "$export_symbols_regex" && test "X$skipped_export" != "X:"; then
  18262. + func_show_eval '$EGREP -e "$export_symbols_regex" "$export_symbols" > "${export_symbols}T"'
  18263. + func_show_eval '$MV "${export_symbols}T" "$export_symbols"'
  18264. + fi
  18265. + fi
  18266. + fi
  18267. - $mv \"\$progdir/\$file\" \"\$progdir/\$program\" 2>/dev/null ||
  18268. - { $rm \"\$progdir/\$program\";
  18269. - $mv \"\$progdir/\$file\" \"\$progdir/\$program\"; }
  18270. - $rm \"\$progdir/\$file\"
  18271. - fi"
  18272. - else
  18273. - $echo >> $output "\
  18274. - program='$outputname'
  18275. - progdir=\"\$thisdir/$objdir\"
  18276. -"
  18277. + if test -n "$export_symbols" && test -n "$include_expsyms"; then
  18278. + tmp_export_symbols="$export_symbols"
  18279. + test -n "$orig_export_symbols" && tmp_export_symbols="$orig_export_symbols"
  18280. + $opt_dry_run || eval '$ECHO "X$include_expsyms" | $Xsed | $SP2NL >> "$tmp_export_symbols"'
  18281. + fi
  18282. +
  18283. + if test "X$skipped_export" != "X:" && test -n "$orig_export_symbols"; then
  18284. + # The given exports_symbols file has to be filtered, so filter it.
  18285. + func_verbose "filter symbol list for \`$libname.la' to tag DATA exports"
  18286. + # FIXME: $output_objdir/$libname.filter potentially contains lots of
  18287. + # 's' commands which not all seds can handle. GNU sed should be fine
  18288. + # though. Also, the filter scales superlinearly with the number of
  18289. + # global variables. join(1) would be nice here, but unfortunately
  18290. + # isn't a blessed tool.
  18291. + $opt_dry_run || $SED -e '/[ ,]DATA/!d;s,\(.*\)\([ \,].*\),s|^\1$|\1\2|,' < $export_symbols > $output_objdir/$libname.filter
  18292. + delfiles="$delfiles $export_symbols $output_objdir/$libname.filter"
  18293. + export_symbols=$output_objdir/$libname.def
  18294. + $opt_dry_run || $SED -f $output_objdir/$libname.filter < $orig_export_symbols > $export_symbols
  18295. fi
  18296. - $echo >> $output "\
  18297. + tmp_deplibs=
  18298. + for test_deplib in $deplibs; do
  18299. + case " $convenience " in
  18300. + *" $test_deplib "*) ;;
  18301. + *)
  18302. + tmp_deplibs="$tmp_deplibs $test_deplib"
  18303. + ;;
  18304. + esac
  18305. + done
  18306. + deplibs="$tmp_deplibs"
  18307. - if test -f \"\$progdir/\$program\"; then"
  18308. + if test -n "$convenience"; then
  18309. + if test -n "$whole_archive_flag_spec" &&
  18310. + test "$compiler_needs_object" = yes &&
  18311. + test -z "$libobjs"; then
  18312. + # extract the archives, so we have objects to list.
  18313. + # TODO: could optimize this to just extract one archive.
  18314. + whole_archive_flag_spec=
  18315. + fi
  18316. + if test -n "$whole_archive_flag_spec"; then
  18317. + save_libobjs=$libobjs
  18318. + eval libobjs=\"\$libobjs $whole_archive_flag_spec\"
  18319. + test "X$libobjs" = "X " && libobjs=
  18320. + else
  18321. + gentop="$output_objdir/${outputname}x"
  18322. + generated="$generated $gentop"
  18323. - # Export our shlibpath_var if we have one.
  18324. - if test "$shlibpath_overrides_runpath" = yes && test -n "$shlibpath_var" && test -n "$temp_rpath"; then
  18325. - $echo >> $output "\
  18326. - # Add our own library path to $shlibpath_var
  18327. - $shlibpath_var=\"$temp_rpath\$$shlibpath_var\"
  18328. + func_extract_archives $gentop $convenience
  18329. + libobjs="$libobjs $func_extract_archives_result"
  18330. + test "X$libobjs" = "X " && libobjs=
  18331. + fi
  18332. + fi
  18333. - # Some systems cannot cope with colon-terminated $shlibpath_var
  18334. - # The second colon is a workaround for a bug in BeOS R4 sed
  18335. - $shlibpath_var=\`\$echo \"X\$$shlibpath_var\" | \$Xsed -e 's/::*\$//'\`
  18336. + if test "$thread_safe" = yes && test -n "$thread_safe_flag_spec"; then
  18337. + eval flag=\"$thread_safe_flag_spec\"
  18338. + linker_flags="$linker_flags $flag"
  18339. + fi
  18340. - export $shlibpath_var
  18341. -"
  18342. + # Make a backup of the uninstalled library when relinking
  18343. + if test "$mode" = relink; then
  18344. + $opt_dry_run || eval '(cd $output_objdir && $RM ${realname}U && $MV $realname ${realname}U)' || exit $?
  18345. fi
  18346. - # fixup the dll searchpath if we need to.
  18347. - if test -n "$dllsearchpath"; then
  18348. - $echo >> $output "\
  18349. - # Add the dll search path components to the executable PATH
  18350. - PATH=$dllsearchpath:\$PATH
  18351. -"
  18352. + # Do each of the archive commands.
  18353. + if test "$module" = yes && test -n "$module_cmds" ; then
  18354. + if test -n "$export_symbols" && test -n "$module_expsym_cmds"; then
  18355. + eval test_cmds=\"$module_expsym_cmds\"
  18356. + cmds=$module_expsym_cmds
  18357. + else
  18358. + eval test_cmds=\"$module_cmds\"
  18359. + cmds=$module_cmds
  18360. + fi
  18361. + else
  18362. + if test -n "$export_symbols" && test -n "$archive_expsym_cmds"; then
  18363. + eval test_cmds=\"$archive_expsym_cmds\"
  18364. + cmds=$archive_expsym_cmds
  18365. + else
  18366. + eval test_cmds=\"$archive_cmds\"
  18367. + cmds=$archive_cmds
  18368. + fi
  18369. fi
  18370. - $echo >> $output "\
  18371. - if test \"\$libtool_execute_magic\" != \"$magic\"; then
  18372. - # Run the actual program with our arguments.
  18373. -"
  18374. - case $host in
  18375. - # Backslashes separate directories on plain windows
  18376. - *-*-mingw | *-*-os2*)
  18377. - $echo >> $output "\
  18378. - exec \"\$progdir\\\\\$program\" \${1+\"\$@\"}
  18379. -"
  18380. - ;;
  18381. + if test "X$skipped_export" != "X:" &&
  18382. + func_len " $test_cmds" &&
  18383. + len=$func_len_result &&
  18384. + test "$len" -lt "$max_cmd_len" || test "$max_cmd_len" -le -1; then
  18385. + :
  18386. + else
  18387. + # The command line is too long to link in one step, link piecewise
  18388. + # or, if using GNU ld and skipped_export is not :, use a linker
  18389. + # script.
  18390. - *)
  18391. - $echo >> $output "\
  18392. - exec \"\$progdir/\$program\" \${1+\"\$@\"}
  18393. -"
  18394. - ;;
  18395. - esac
  18396. - $echo >> $output "\
  18397. - \$echo \"\$0: cannot exec \$program \${1+\"\$@\"}\"
  18398. - exit $EXIT_FAILURE
  18399. - fi
  18400. - else
  18401. - # The program doesn't exist.
  18402. - \$echo \"\$0: error: \\\`\$progdir/\$program' does not exist\" 1>&2
  18403. - \$echo \"This script is just a wrapper for \$program.\" 1>&2
  18404. - $echo \"See the $PACKAGE documentation for more information.\" 1>&2
  18405. - exit $EXIT_FAILURE
  18406. - fi
  18407. -fi\
  18408. -"
  18409. - chmod +x $output
  18410. - fi
  18411. - exit $EXIT_SUCCESS
  18412. - ;;
  18413. - esac
  18414. + # Save the value of $output and $libobjs because we want to
  18415. + # use them later. If we have whole_archive_flag_spec, we
  18416. + # want to use save_libobjs as it was before
  18417. + # whole_archive_flag_spec was expanded, because we can't
  18418. + # assume the linker understands whole_archive_flag_spec.
  18419. + # This may have to be revisited, in case too many
  18420. + # convenience libraries get linked in and end up exceeding
  18421. + # the spec.
  18422. + if test -z "$convenience" || test -z "$whole_archive_flag_spec"; then
  18423. + save_libobjs=$libobjs
  18424. + fi
  18425. + save_output=$output
  18426. + output_la=`$ECHO "X$output" | $Xsed -e "$basename"`
  18427. - # See if we need to build an old-fashioned archive.
  18428. - for oldlib in $oldlibs; do
  18429. + # Clear the reloadable object creation command queue and
  18430. + # initialize k to one.
  18431. + test_cmds=
  18432. + concat_cmds=
  18433. + objlist=
  18434. + last_robj=
  18435. + k=1
  18436. - if test "$build_libtool_libs" = convenience; then
  18437. - oldobjs="$libobjs_save"
  18438. - addlibs="$convenience"
  18439. - build_libtool_libs=no
  18440. - else
  18441. - if test "$build_libtool_libs" = module; then
  18442. - oldobjs="$libobjs_save"
  18443. - build_libtool_libs=no
  18444. - else
  18445. - oldobjs="$old_deplibs $non_pic_objects"
  18446. - fi
  18447. - addlibs="$old_convenience"
  18448. - fi
  18449. + if test -n "$save_libobjs" && test "X$skipped_export" != "X:" && test "$with_gnu_ld" = yes; then
  18450. + output=${output_objdir}/${output_la}.lnkscript
  18451. + func_verbose "creating GNU ld script: $output"
  18452. + $ECHO 'INPUT (' > $output
  18453. + for obj in $save_libobjs
  18454. + do
  18455. + $ECHO "$obj" >> $output
  18456. + done
  18457. + $ECHO ')' >> $output
  18458. + delfiles="$delfiles $output"
  18459. + elif test -n "$save_libobjs" && test "X$skipped_export" != "X:" && test "X$file_list_spec" != X; then
  18460. + output=${output_objdir}/${output_la}.lnk
  18461. + func_verbose "creating linker input file list: $output"
  18462. + : > $output
  18463. + set x $save_libobjs
  18464. + shift
  18465. + firstobj=
  18466. + if test "$compiler_needs_object" = yes; then
  18467. + firstobj="$1 "
  18468. + shift
  18469. + fi
  18470. + for obj
  18471. + do
  18472. + $ECHO "$obj" >> $output
  18473. + done
  18474. + delfiles="$delfiles $output"
  18475. + output=$firstobj\"$file_list_spec$output\"
  18476. + else
  18477. + if test -n "$save_libobjs"; then
  18478. + func_verbose "creating reloadable object files..."
  18479. + output=$output_objdir/$output_la-${k}.$objext
  18480. + eval test_cmds=\"$reload_cmds\"
  18481. + func_len " $test_cmds"
  18482. + len0=$func_len_result
  18483. + len=$len0
  18484. +
  18485. + # Loop over the list of objects to be linked.
  18486. + for obj in $save_libobjs
  18487. + do
  18488. + func_len " $obj"
  18489. + func_arith $len + $func_len_result
  18490. + len=$func_arith_result
  18491. + if test "X$objlist" = X ||
  18492. + test "$len" -lt "$max_cmd_len"; then
  18493. + func_append objlist " $obj"
  18494. + else
  18495. + # The command $test_cmds is almost too long, add a
  18496. + # command to the queue.
  18497. + if test "$k" -eq 1 ; then
  18498. + # The first file doesn't have a previous command to add.
  18499. + eval concat_cmds=\"$reload_cmds $objlist $last_robj\"
  18500. + else
  18501. + # All subsequent reloadable object files will link in
  18502. + # the last one created.
  18503. + eval concat_cmds=\"\$concat_cmds~$reload_cmds $objlist $last_robj~\$RM $last_robj\"
  18504. + fi
  18505. + last_robj=$output_objdir/$output_la-${k}.$objext
  18506. + func_arith $k + 1
  18507. + k=$func_arith_result
  18508. + output=$output_objdir/$output_la-${k}.$objext
  18509. + objlist=$obj
  18510. + func_len " $last_robj"
  18511. + func_arith $len0 + $func_len_result
  18512. + len=$func_arith_result
  18513. + fi
  18514. + done
  18515. + # Handle the remaining objects by creating one last
  18516. + # reloadable object file. All subsequent reloadable object
  18517. + # files will link in the last one created.
  18518. + test -z "$concat_cmds" || concat_cmds=$concat_cmds~
  18519. + eval concat_cmds=\"\${concat_cmds}$reload_cmds $objlist $last_robj\"
  18520. + if test -n "$last_robj"; then
  18521. + eval concat_cmds=\"\${concat_cmds}~\$RM $last_robj\"
  18522. + fi
  18523. + delfiles="$delfiles $output"
  18524. +
  18525. + else
  18526. + output=
  18527. + fi
  18528. - if test -n "$addlibs"; then
  18529. - gentop="$output_objdir/${outputname}x"
  18530. - generated="$generated $gentop"
  18531. + if ${skipped_export-false}; then
  18532. + func_verbose "generating symbol list for \`$libname.la'"
  18533. + export_symbols="$output_objdir/$libname.exp"
  18534. + $opt_dry_run || $RM $export_symbols
  18535. + libobjs=$output
  18536. + # Append the command to create the export file.
  18537. + test -z "$concat_cmds" || concat_cmds=$concat_cmds~
  18538. + eval concat_cmds=\"\$concat_cmds$export_symbols_cmds\"
  18539. + if test -n "$last_robj"; then
  18540. + eval concat_cmds=\"\$concat_cmds~\$RM $last_robj\"
  18541. + fi
  18542. + fi
  18543. - func_extract_archives $gentop $addlibs
  18544. - oldobjs="$oldobjs $func_extract_archives_result"
  18545. - fi
  18546. + test -n "$save_libobjs" &&
  18547. + func_verbose "creating a temporary reloadable object file: $output"
  18548. - # Do each command in the archive commands.
  18549. - if test -n "$old_archive_from_new_cmds" && test "$build_libtool_libs" = yes; then
  18550. - cmds=$old_archive_from_new_cmds
  18551. - else
  18552. - # POSIX demands no paths to be encoded in archives. We have
  18553. - # to avoid creating archives with duplicate basenames if we
  18554. - # might have to extract them afterwards, e.g., when creating a
  18555. - # static archive out of a convenience library, or when linking
  18556. - # the entirety of a libtool archive into another (currently
  18557. - # not supported by libtool).
  18558. - if (for obj in $oldobjs
  18559. - do
  18560. - $echo "X$obj" | $Xsed -e 's%^.*/%%'
  18561. - done | sort | sort -uc >/dev/null 2>&1); then
  18562. - :
  18563. - else
  18564. - $echo "copying selected object files to avoid basename conflicts..."
  18565. + # Loop through the commands generated above and execute them.
  18566. + save_ifs="$IFS"; IFS='~'
  18567. + for cmd in $concat_cmds; do
  18568. + IFS="$save_ifs"
  18569. + $opt_silent || {
  18570. + func_quote_for_expand "$cmd"
  18571. + eval "func_echo $func_quote_for_expand_result"
  18572. + }
  18573. + $opt_dry_run || eval "$cmd" || {
  18574. + lt_exit=$?
  18575. +
  18576. + # Restore the uninstalled library and exit
  18577. + if test "$mode" = relink; then
  18578. + ( cd "$output_objdir" && \
  18579. + $RM "${realname}T" && \
  18580. + $MV "${realname}U" "$realname" )
  18581. + fi
  18582. - if test -z "$gentop"; then
  18583. - gentop="$output_objdir/${outputname}x"
  18584. - generated="$generated $gentop"
  18585. + exit $lt_exit
  18586. + }
  18587. + done
  18588. + IFS="$save_ifs"
  18589. - $show "${rm}r $gentop"
  18590. - $run ${rm}r "$gentop"
  18591. - $show "$mkdir $gentop"
  18592. - $run $mkdir "$gentop"
  18593. - exit_status=$?
  18594. - if test "$exit_status" -ne 0 && test ! -d "$gentop"; then
  18595. - exit $exit_status
  18596. + if test -n "$export_symbols_regex" && ${skipped_export-false}; then
  18597. + func_show_eval '$EGREP -e "$export_symbols_regex" "$export_symbols" > "${export_symbols}T"'
  18598. + func_show_eval '$MV "${export_symbols}T" "$export_symbols"'
  18599. fi
  18600. fi
  18601. - save_oldobjs=$oldobjs
  18602. - oldobjs=
  18603. - counter=1
  18604. - for obj in $save_oldobjs
  18605. - do
  18606. - objbase=`$echo "X$obj" | $Xsed -e 's%^.*/%%'`
  18607. - case " $oldobjs " in
  18608. - " ") oldobjs=$obj ;;
  18609. - *[\ /]"$objbase "*)
  18610. - while :; do
  18611. - # Make sure we don't pick an alternate name that also
  18612. - # overlaps.
  18613. - newobj=lt$counter-$objbase
  18614. - counter=`expr $counter + 1`
  18615. - case " $oldobjs " in
  18616. - *[\ /]"$newobj "*) ;;
  18617. - *) if test ! -f "$gentop/$newobj"; then break; fi ;;
  18618. - esac
  18619. - done
  18620. - $show "ln $obj $gentop/$newobj || cp $obj $gentop/$newobj"
  18621. - $run ln "$obj" "$gentop/$newobj" ||
  18622. - $run cp "$obj" "$gentop/$newobj"
  18623. - oldobjs="$oldobjs $gentop/$newobj"
  18624. - ;;
  18625. - *) oldobjs="$oldobjs $obj" ;;
  18626. - esac
  18627. - done
  18628. - fi
  18629. + if ${skipped_export-false}; then
  18630. + if test -n "$export_symbols" && test -n "$include_expsyms"; then
  18631. + tmp_export_symbols="$export_symbols"
  18632. + test -n "$orig_export_symbols" && tmp_export_symbols="$orig_export_symbols"
  18633. + $opt_dry_run || eval '$ECHO "X$include_expsyms" | $Xsed | $SP2NL >> "$tmp_export_symbols"'
  18634. + fi
  18635. +
  18636. + if test -n "$orig_export_symbols"; then
  18637. + # The given exports_symbols file has to be filtered, so filter it.
  18638. + func_verbose "filter symbol list for \`$libname.la' to tag DATA exports"
  18639. + # FIXME: $output_objdir/$libname.filter potentially contains lots of
  18640. + # 's' commands which not all seds can handle. GNU sed should be fine
  18641. + # though. Also, the filter scales superlinearly with the number of
  18642. + # global variables. join(1) would be nice here, but unfortunately
  18643. + # isn't a blessed tool.
  18644. + $opt_dry_run || $SED -e '/[ ,]DATA/!d;s,\(.*\)\([ \,].*\),s|^\1$|\1\2|,' < $export_symbols > $output_objdir/$libname.filter
  18645. + delfiles="$delfiles $export_symbols $output_objdir/$libname.filter"
  18646. + export_symbols=$output_objdir/$libname.def
  18647. + $opt_dry_run || $SED -f $output_objdir/$libname.filter < $orig_export_symbols > $export_symbols
  18648. + fi
  18649. + fi
  18650. - eval cmds=\"$old_archive_cmds\"
  18651. + libobjs=$output
  18652. + # Restore the value of output.
  18653. + output=$save_output
  18654. - if len=`expr "X$cmds" : ".*"` &&
  18655. - test "$len" -le "$max_cmd_len" || test "$max_cmd_len" -le -1; then
  18656. - cmds=$old_archive_cmds
  18657. - else
  18658. - # the command line is too long to link in one step, link in parts
  18659. - $echo "using piecewise archive linking..."
  18660. - save_RANLIB=$RANLIB
  18661. - RANLIB=:
  18662. - objlist=
  18663. - concat_cmds=
  18664. - save_oldobjs=$oldobjs
  18665. + if test -n "$convenience" && test -n "$whole_archive_flag_spec"; then
  18666. + eval libobjs=\"\$libobjs $whole_archive_flag_spec\"
  18667. + test "X$libobjs" = "X " && libobjs=
  18668. + fi
  18669. + # Expand the library linking commands again to reset the
  18670. + # value of $libobjs for piecewise linking.
  18671. - # Is there a better way of finding the last object in the list?
  18672. - for obj in $save_oldobjs
  18673. - do
  18674. - last_oldobj=$obj
  18675. - done
  18676. - for obj in $save_oldobjs
  18677. - do
  18678. - oldobjs="$objlist $obj"
  18679. - objlist="$objlist $obj"
  18680. - eval test_cmds=\"$old_archive_cmds\"
  18681. - if len=`expr "X$test_cmds" : ".*" 2>/dev/null` &&
  18682. - test "$len" -le "$max_cmd_len"; then
  18683. - :
  18684. + # Do each of the archive commands.
  18685. + if test "$module" = yes && test -n "$module_cmds" ; then
  18686. + if test -n "$export_symbols" && test -n "$module_expsym_cmds"; then
  18687. + cmds=$module_expsym_cmds
  18688. else
  18689. - # the above command should be used before it gets too long
  18690. - oldobjs=$objlist
  18691. - if test "$obj" = "$last_oldobj" ; then
  18692. - RANLIB=$save_RANLIB
  18693. - fi
  18694. - test -z "$concat_cmds" || concat_cmds=$concat_cmds~
  18695. - eval concat_cmds=\"\${concat_cmds}$old_archive_cmds\"
  18696. - objlist=
  18697. + cmds=$module_cmds
  18698. fi
  18699. - done
  18700. - RANLIB=$save_RANLIB
  18701. - oldobjs=$objlist
  18702. - if test "X$oldobjs" = "X" ; then
  18703. - eval cmds=\"\$concat_cmds\"
  18704. else
  18705. - eval cmds=\"\$concat_cmds~\$old_archive_cmds\"
  18706. + if test -n "$export_symbols" && test -n "$archive_expsym_cmds"; then
  18707. + cmds=$archive_expsym_cmds
  18708. + else
  18709. + cmds=$archive_cmds
  18710. + fi
  18711. fi
  18712. fi
  18713. - fi
  18714. - save_ifs="$IFS"; IFS='~'
  18715. - for cmd in $cmds; do
  18716. - eval cmd=\"$cmd\"
  18717. - IFS="$save_ifs"
  18718. - $show "$cmd"
  18719. - $run eval "$cmd" || exit $?
  18720. - done
  18721. - IFS="$save_ifs"
  18722. - done
  18723. - if test -n "$generated"; then
  18724. - $show "${rm}r$generated"
  18725. - $run ${rm}r$generated
  18726. - fi
  18727. + if test -n "$delfiles"; then
  18728. + # Append the command to remove temporary files to $cmds.
  18729. + eval cmds=\"\$cmds~\$RM $delfiles\"
  18730. + fi
  18731. - # Now create the libtool archive.
  18732. - case $output in
  18733. - *.la)
  18734. - old_library=
  18735. - test "$build_old_libs" = yes && old_library="$libname.$libext"
  18736. - $show "creating $output"
  18737. + # Add any objects from preloaded convenience libraries
  18738. + if test -n "$dlprefiles"; then
  18739. + gentop="$output_objdir/${outputname}x"
  18740. + generated="$generated $gentop"
  18741. - # Preserve any variables that may affect compiler behavior
  18742. - for var in $variables_saved_for_relink; do
  18743. - if eval test -z \"\${$var+set}\"; then
  18744. - relink_command="{ test -z \"\${$var+set}\" || unset $var || { $var=; export $var; }; }; $relink_command"
  18745. - elif eval var_value=\$$var; test -z "$var_value"; then
  18746. - relink_command="$var=; export $var; $relink_command"
  18747. - else
  18748. - var_value=`$echo "X$var_value" | $Xsed -e "$sed_quote_subst"`
  18749. - relink_command="$var=\"$var_value\"; export $var; $relink_command"
  18750. + func_extract_archives $gentop $dlprefiles
  18751. + libobjs="$libobjs $func_extract_archives_result"
  18752. + test "X$libobjs" = "X " && libobjs=
  18753. fi
  18754. - done
  18755. - # Quote the link command for shipping.
  18756. - relink_command="(cd `pwd`; $SHELL $progpath $preserve_args --mode=relink $libtool_args @inst_prefix_dir@)"
  18757. - relink_command=`$echo "X$relink_command" | $Xsed -e "$sed_quote_subst"`
  18758. - if test "$hardcode_automatic" = yes ; then
  18759. - relink_command=
  18760. - fi
  18761. + save_ifs="$IFS"; IFS='~'
  18762. + for cmd in $cmds; do
  18763. + IFS="$save_ifs"
  18764. + eval cmd=\"$cmd\"
  18765. + $opt_silent || {
  18766. + func_quote_for_expand "$cmd"
  18767. + eval "func_echo $func_quote_for_expand_result"
  18768. + }
  18769. + $opt_dry_run || eval "$cmd" || {
  18770. + lt_exit=$?
  18771. - # Only create the output if not a dry run.
  18772. - if test -z "$run"; then
  18773. - for installed in no yes; do
  18774. - if test "$installed" = yes; then
  18775. - if test -z "$install_libdir"; then
  18776. - break
  18777. + # Restore the uninstalled library and exit
  18778. + if test "$mode" = relink; then
  18779. + ( cd "$output_objdir" && \
  18780. + $RM "${realname}T" && \
  18781. + $MV "${realname}U" "$realname" )
  18782. fi
  18783. - output="$output_objdir/$outputname"i
  18784. - # Replace all uninstalled libtool libraries with the installed ones
  18785. - newdependency_libs=
  18786. - for deplib in $dependency_libs; do
  18787. - case $deplib in
  18788. - *.la)
  18789. - name=`$echo "X$deplib" | $Xsed -e 's%^.*/%%'`
  18790. - eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib`
  18791. - if test -z "$libdir"; then
  18792. - $echo "$modename: \`$deplib' is not a valid libtool archive" 1>&2
  18793. - exit $EXIT_FAILURE
  18794. - fi
  18795. - newdependency_libs="$newdependency_libs $libdir/$name"
  18796. - ;;
  18797. - *) newdependency_libs="$newdependency_libs $deplib" ;;
  18798. - esac
  18799. - done
  18800. - dependency_libs="$newdependency_libs"
  18801. - newdlfiles=
  18802. - for lib in $dlfiles; do
  18803. - name=`$echo "X$lib" | $Xsed -e 's%^.*/%%'`
  18804. - eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $lib`
  18805. - if test -z "$libdir"; then
  18806. - $echo "$modename: \`$lib' is not a valid libtool archive" 1>&2
  18807. - exit $EXIT_FAILURE
  18808. - fi
  18809. - newdlfiles="$newdlfiles $libdir/$name"
  18810. - done
  18811. - dlfiles="$newdlfiles"
  18812. - newdlprefiles=
  18813. - for lib in $dlprefiles; do
  18814. - name=`$echo "X$lib" | $Xsed -e 's%^.*/%%'`
  18815. - eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $lib`
  18816. - if test -z "$libdir"; then
  18817. - $echo "$modename: \`$lib' is not a valid libtool archive" 1>&2
  18818. - exit $EXIT_FAILURE
  18819. - fi
  18820. - newdlprefiles="$newdlprefiles $libdir/$name"
  18821. - done
  18822. - dlprefiles="$newdlprefiles"
  18823. - else
  18824. - newdlfiles=
  18825. - for lib in $dlfiles; do
  18826. - case $lib in
  18827. - [\\/]* | [A-Za-z]:[\\/]*) abs="$lib" ;;
  18828. - *) abs=`pwd`"/$lib" ;;
  18829. - esac
  18830. - newdlfiles="$newdlfiles $abs"
  18831. - done
  18832. - dlfiles="$newdlfiles"
  18833. - newdlprefiles=
  18834. - for lib in $dlprefiles; do
  18835. - case $lib in
  18836. - [\\/]* | [A-Za-z]:[\\/]*) abs="$lib" ;;
  18837. - *) abs=`pwd`"/$lib" ;;
  18838. - esac
  18839. - newdlprefiles="$newdlprefiles $abs"
  18840. - done
  18841. - dlprefiles="$newdlprefiles"
  18842. - fi
  18843. - $rm $output
  18844. - # place dlname in correct position for cygwin
  18845. - tdlname=$dlname
  18846. - case $host,$output,$installed,$module,$dlname in
  18847. - *cygwin*,*lai,yes,no,*.dll | *mingw*,*lai,yes,no,*.dll) tdlname=../bin/$dlname ;;
  18848. - esac
  18849. - $echo > $output "\
  18850. -# $outputname - a libtool library file
  18851. -# Generated by $PROGRAM - GNU $PACKAGE $VERSION$TIMESTAMP
  18852. -#
  18853. -# Please DO NOT delete this file!
  18854. -# It is necessary for linking the library.
  18855. -
  18856. -# The name that we can dlopen(3).
  18857. -dlname='$tdlname'
  18858. -# Names of this library.
  18859. -library_names='$library_names'
  18860. -
  18861. -# The name of the static archive.
  18862. -old_library='$old_library'
  18863. -
  18864. -# Libraries that this one depends upon.
  18865. -dependency_libs='$dependency_libs'
  18866. -
  18867. -# Version information for $libname.
  18868. -current=$current
  18869. -age=$age
  18870. -revision=$revision
  18871. + exit $lt_exit
  18872. + }
  18873. + done
  18874. + IFS="$save_ifs"
  18875. -# Is this an already installed library?
  18876. -installed=$installed
  18877. + # Restore the uninstalled library and exit
  18878. + if test "$mode" = relink; then
  18879. + $opt_dry_run || eval '(cd $output_objdir && $RM ${realname}T && $MV $realname ${realname}T && $MV ${realname}U $realname)' || exit $?
  18880. -# Should we warn about portability when linking against -modules?
  18881. -shouldnotlink=$module
  18882. + if test -n "$convenience"; then
  18883. + if test -z "$whole_archive_flag_spec"; then
  18884. + func_show_eval '${RM}r "$gentop"'
  18885. + fi
  18886. + fi
  18887. -# Files to dlopen/dlpreopen
  18888. -dlopen='$dlfiles'
  18889. -dlpreopen='$dlprefiles'
  18890. + exit $EXIT_SUCCESS
  18891. + fi
  18892. -# Directory that this library needs to be installed in:
  18893. -libdir='$install_libdir'"
  18894. - if test "$installed" = no && test "$need_relink" = yes; then
  18895. - $echo >> $output "\
  18896. -relink_command=\"$relink_command\""
  18897. + # Create links to the real library.
  18898. + for linkname in $linknames; do
  18899. + if test "$realname" != "$linkname"; then
  18900. + func_show_eval '(cd "$output_objdir" && $RM "$linkname" && $LN_S "$realname" "$linkname")' 'exit $?'
  18901. fi
  18902. done
  18903. - fi
  18904. -
  18905. - # Do a symbolic link so that the libtool archive can be found in
  18906. - # LD_LIBRARY_PATH before the program is installed.
  18907. - $show "(cd $output_objdir && $rm $outputname && $LN_S ../$outputname $outputname)"
  18908. - $run eval '(cd $output_objdir && $rm $outputname && $LN_S ../$outputname $outputname)' || exit $?
  18909. - ;;
  18910. - esac
  18911. - exit $EXIT_SUCCESS
  18912. - ;;
  18913. -
  18914. - # libtool install mode
  18915. - install)
  18916. - modename="$modename: install"
  18917. -
  18918. - # There may be an optional sh(1) argument at the beginning of
  18919. - # install_prog (especially on Windows NT).
  18920. - if test "$nonopt" = "$SHELL" || test "$nonopt" = /bin/sh ||
  18921. - # Allow the use of GNU shtool's install command.
  18922. - $echo "X$nonopt" | grep shtool > /dev/null; then
  18923. - # Aesthetically quote it.
  18924. - arg=`$echo "X$nonopt" | $Xsed -e "$sed_quote_subst"`
  18925. - case $arg in
  18926. - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
  18927. - arg="\"$arg\""
  18928. - ;;
  18929. - esac
  18930. - install_prog="$arg "
  18931. - arg="$1"
  18932. - shift
  18933. - else
  18934. - install_prog=
  18935. - arg=$nonopt
  18936. - fi
  18937. - # The real first argument should be the name of the installation program.
  18938. - # Aesthetically quote it.
  18939. - arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`
  18940. - case $arg in
  18941. - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
  18942. - arg="\"$arg\""
  18943. + # If -module or -export-dynamic was specified, set the dlname.
  18944. + if test "$module" = yes || test "$export_dynamic" = yes; then
  18945. + # On all known operating systems, these are identical.
  18946. + dlname="$soname"
  18947. + fi
  18948. + fi
  18949. ;;
  18950. - esac
  18951. - install_prog="$install_prog$arg"
  18952. - # We need to accept at least all the BSD install flags.
  18953. - dest=
  18954. - files=
  18955. - opts=
  18956. - prev=
  18957. - install_type=
  18958. - isdir=no
  18959. - stripme=
  18960. - for arg
  18961. - do
  18962. - if test -n "$dest"; then
  18963. - files="$files $dest"
  18964. - dest=$arg
  18965. - continue
  18966. + obj)
  18967. + if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then
  18968. + func_warning "\`-dlopen' is ignored for objects"
  18969. fi
  18970. - case $arg in
  18971. - -d) isdir=yes ;;
  18972. - -f)
  18973. - case " $install_prog " in
  18974. - *[\\\ /]cp\ *) ;;
  18975. - *) prev=$arg ;;
  18976. - esac
  18977. - ;;
  18978. - -g | -m | -o) prev=$arg ;;
  18979. - -s)
  18980. - stripme=" -s"
  18981. - continue
  18982. - ;;
  18983. - -*)
  18984. + case " $deplibs" in
  18985. + *\ -l* | *\ -L*)
  18986. + func_warning "\`-l' and \`-L' are ignored for objects" ;;
  18987. + esac
  18988. +
  18989. + test -n "$rpath" && \
  18990. + func_warning "\`-rpath' is ignored for objects"
  18991. +
  18992. + test -n "$xrpath" && \
  18993. + func_warning "\`-R' is ignored for objects"
  18994. +
  18995. + test -n "$vinfo" && \
  18996. + func_warning "\`-version-info' is ignored for objects"
  18997. +
  18998. + test -n "$release" && \
  18999. + func_warning "\`-release' is ignored for objects"
  19000. +
  19001. + case $output in
  19002. + *.lo)
  19003. + test -n "$objs$old_deplibs" && \
  19004. + func_fatal_error "cannot build library object \`$output' from non-libtool objects"
  19005. +
  19006. + libobj=$output
  19007. + func_lo2o "$libobj"
  19008. + obj=$func_lo2o_result
  19009. ;;
  19010. *)
  19011. - # If the previous option needed an argument, then skip it.
  19012. - if test -n "$prev"; then
  19013. - prev=
  19014. - else
  19015. - dest=$arg
  19016. - continue
  19017. - fi
  19018. + libobj=
  19019. + obj="$output"
  19020. ;;
  19021. esac
  19022. - # Aesthetically quote the argument.
  19023. - arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`
  19024. - case $arg in
  19025. - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
  19026. - arg="\"$arg\""
  19027. - ;;
  19028. - esac
  19029. - install_prog="$install_prog $arg"
  19030. - done
  19031. + # Delete the old objects.
  19032. + $opt_dry_run || $RM $obj $libobj
  19033. - if test -z "$install_prog"; then
  19034. - $echo "$modename: you must specify an install program" 1>&2
  19035. - $echo "$help" 1>&2
  19036. - exit $EXIT_FAILURE
  19037. - fi
  19038. + # Objects from convenience libraries. This assumes
  19039. + # single-version convenience libraries. Whenever we create
  19040. + # different ones for PIC/non-PIC, this we'll have to duplicate
  19041. + # the extraction.
  19042. + reload_conv_objs=
  19043. + gentop=
  19044. + # reload_cmds runs $LD directly, so let us get rid of
  19045. + # -Wl from whole_archive_flag_spec and hope we can get by with
  19046. + # turning comma into space..
  19047. + wl=
  19048. - if test -n "$prev"; then
  19049. - $echo "$modename: the \`$prev' option requires an argument" 1>&2
  19050. - $echo "$help" 1>&2
  19051. - exit $EXIT_FAILURE
  19052. - fi
  19053. + if test -n "$convenience"; then
  19054. + if test -n "$whole_archive_flag_spec"; then
  19055. + eval tmp_whole_archive_flags=\"$whole_archive_flag_spec\"
  19056. + reload_conv_objs=$reload_objs\ `$ECHO "X$tmp_whole_archive_flags" | $Xsed -e 's|,| |g'`
  19057. + else
  19058. + gentop="$output_objdir/${obj}x"
  19059. + generated="$generated $gentop"
  19060. - if test -z "$files"; then
  19061. - if test -z "$dest"; then
  19062. - $echo "$modename: no file or destination specified" 1>&2
  19063. - else
  19064. - $echo "$modename: you must specify a destination" 1>&2
  19065. + func_extract_archives $gentop $convenience
  19066. + reload_conv_objs="$reload_objs $func_extract_archives_result"
  19067. + fi
  19068. fi
  19069. - $echo "$help" 1>&2
  19070. - exit $EXIT_FAILURE
  19071. - fi
  19072. - # Strip any trailing slash from the destination.
  19073. - dest=`$echo "X$dest" | $Xsed -e 's%/$%%'`
  19074. + # Create the old-style object.
  19075. + 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
  19076. - # Check to see that the destination is a directory.
  19077. - test -d "$dest" && isdir=yes
  19078. - if test "$isdir" = yes; then
  19079. - destdir="$dest"
  19080. - destname=
  19081. - else
  19082. - destdir=`$echo "X$dest" | $Xsed -e 's%/[^/]*$%%'`
  19083. - test "X$destdir" = "X$dest" && destdir=.
  19084. - destname=`$echo "X$dest" | $Xsed -e 's%^.*/%%'`
  19085. + output="$obj"
  19086. + func_execute_cmds "$reload_cmds" 'exit $?'
  19087. - # Not a directory, so check to see that there is only one file specified.
  19088. - set dummy $files
  19089. - if test "$#" -gt 2; then
  19090. - $echo "$modename: \`$dest' is not a directory" 1>&2
  19091. - $echo "$help" 1>&2
  19092. - exit $EXIT_FAILURE
  19093. + # Exit if we aren't doing a library object file.
  19094. + if test -z "$libobj"; then
  19095. + if test -n "$gentop"; then
  19096. + func_show_eval '${RM}r "$gentop"'
  19097. + fi
  19098. +
  19099. + exit $EXIT_SUCCESS
  19100. fi
  19101. - fi
  19102. - case $destdir in
  19103. - [\\/]* | [A-Za-z]:[\\/]*) ;;
  19104. - *)
  19105. - for file in $files; do
  19106. - case $file in
  19107. - *.lo) ;;
  19108. - *)
  19109. - $echo "$modename: \`$destdir' must be an absolute directory name" 1>&2
  19110. - $echo "$help" 1>&2
  19111. - exit $EXIT_FAILURE
  19112. - ;;
  19113. - esac
  19114. - done
  19115. +
  19116. + if test "$build_libtool_libs" != yes; then
  19117. + if test -n "$gentop"; then
  19118. + func_show_eval '${RM}r "$gentop"'
  19119. + fi
  19120. +
  19121. + # Create an invalid libtool object if no PIC, so that we don't
  19122. + # accidentally link it into a program.
  19123. + # $show "echo timestamp > $libobj"
  19124. + # $opt_dry_run || eval "echo timestamp > $libobj" || exit $?
  19125. + exit $EXIT_SUCCESS
  19126. + fi
  19127. +
  19128. + if test -n "$pic_flag" || test "$pic_mode" != default; then
  19129. + # Only do commands if we really have different PIC objects.
  19130. + reload_objs="$libobjs $reload_conv_objs"
  19131. + output="$libobj"
  19132. + func_execute_cmds "$reload_cmds" 'exit $?'
  19133. + fi
  19134. +
  19135. + if test -n "$gentop"; then
  19136. + func_show_eval '${RM}r "$gentop"'
  19137. + fi
  19138. +
  19139. + exit $EXIT_SUCCESS
  19140. ;;
  19141. - esac
  19142. - # This variable tells wrapper scripts just to set variables rather
  19143. - # than running their programs.
  19144. - libtool_install_magic="$magic"
  19145. + prog)
  19146. + case $host in
  19147. + *cygwin*) func_stripname '' '.exe' "$output"
  19148. + output=$func_stripname_result.exe;;
  19149. + esac
  19150. + test -n "$vinfo" && \
  19151. + func_warning "\`-version-info' is ignored for programs"
  19152. - staticlibs=
  19153. - future_libdirs=
  19154. - current_libdirs=
  19155. - for file in $files; do
  19156. + test -n "$release" && \
  19157. + func_warning "\`-release' is ignored for programs"
  19158. - # Do each installation.
  19159. - case $file in
  19160. - *.$libext)
  19161. - # Do the static libraries later.
  19162. - staticlibs="$staticlibs $file"
  19163. + test "$preload" = yes \
  19164. + && test "$dlopen_support" = unknown \
  19165. + && test "$dlopen_self" = unknown \
  19166. + && test "$dlopen_self_static" = unknown && \
  19167. + func_warning "\`LT_INIT([dlopen])' not used. Assuming no dlopen support."
  19168. +
  19169. + case $host in
  19170. + *-*-rhapsody* | *-*-darwin1.[012])
  19171. + # On Rhapsody replace the C library is the System framework
  19172. + compile_deplibs=`$ECHO "X $compile_deplibs" | $Xsed -e 's/ -lc / System.ltframework /'`
  19173. + finalize_deplibs=`$ECHO "X $finalize_deplibs" | $Xsed -e 's/ -lc / System.ltframework /'`
  19174. ;;
  19175. + esac
  19176. - *.la)
  19177. - # Check to see that this really is a libtool archive.
  19178. - if (${SED} -e '2q' $file | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then :
  19179. - else
  19180. - $echo "$modename: \`$file' is not a valid libtool archive" 1>&2
  19181. - $echo "$help" 1>&2
  19182. - exit $EXIT_FAILURE
  19183. + case $host in
  19184. + *-*-darwin*)
  19185. + # Don't allow lazy linking, it breaks C++ global constructors
  19186. + # But is supposedly fixed on 10.4 or later (yay!).
  19187. + if test "$tagname" = CXX ; then
  19188. + case ${MACOSX_DEPLOYMENT_TARGET-10.0} in
  19189. + 10.[0123])
  19190. + compile_command="$compile_command ${wl}-bind_at_load"
  19191. + finalize_command="$finalize_command ${wl}-bind_at_load"
  19192. + ;;
  19193. + esac
  19194. fi
  19195. + # Time to change all our "foo.ltframework" stuff back to "-framework foo"
  19196. + compile_deplibs=`$ECHO "X $compile_deplibs" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'`
  19197. + finalize_deplibs=`$ECHO "X $finalize_deplibs" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'`
  19198. + ;;
  19199. + esac
  19200. - library_names=
  19201. - old_library=
  19202. - relink_command=
  19203. - # If there is no directory component, then add one.
  19204. - case $file in
  19205. - */* | *\\*) . $file ;;
  19206. - *) . ./$file ;;
  19207. - esac
  19208. - # Add the libdir to current_libdirs if it is the destination.
  19209. - if test "X$destdir" = "X$libdir"; then
  19210. - case "$current_libdirs " in
  19211. - *" $libdir "*) ;;
  19212. - *) current_libdirs="$current_libdirs $libdir" ;;
  19213. + # move library search paths that coincide with paths to not yet
  19214. + # installed libraries to the beginning of the library search list
  19215. + new_libs=
  19216. + for path in $notinst_path; do
  19217. + case " $new_libs " in
  19218. + *" -L$path/$objdir "*) ;;
  19219. + *)
  19220. + case " $compile_deplibs " in
  19221. + *" -L$path/$objdir "*)
  19222. + new_libs="$new_libs -L$path/$objdir" ;;
  19223. esac
  19224. - else
  19225. - # Note the libdir as a future libdir.
  19226. - case "$future_libdirs " in
  19227. - *" $libdir "*) ;;
  19228. - *) future_libdirs="$future_libdirs $libdir" ;;
  19229. + ;;
  19230. + esac
  19231. + done
  19232. + for deplib in $compile_deplibs; do
  19233. + case $deplib in
  19234. + -L*)
  19235. + case " $new_libs " in
  19236. + *" $deplib "*) ;;
  19237. + *) new_libs="$new_libs $deplib" ;;
  19238. esac
  19239. - fi
  19240. + ;;
  19241. + *) new_libs="$new_libs $deplib" ;;
  19242. + esac
  19243. + done
  19244. + compile_deplibs="$new_libs"
  19245. - dir=`$echo "X$file" | $Xsed -e 's%/[^/]*$%%'`/
  19246. - test "X$dir" = "X$file/" && dir=
  19247. - dir="$dir$objdir"
  19248. - if test -n "$relink_command"; then
  19249. - # Determine the prefix the user has applied to our future dir.
  19250. - inst_prefix_dir=`$echo "$destdir" | $SED "s%$libdir\$%%"`
  19251. + compile_command="$compile_command $compile_deplibs"
  19252. + finalize_command="$finalize_command $finalize_deplibs"
  19253. - # Don't allow the user to place us outside of our expected
  19254. - # location b/c this prevents finding dependent libraries that
  19255. - # are installed to the same prefix.
  19256. - # At present, this check doesn't affect windows .dll's that
  19257. - # are installed into $libdir/../bin (currently, that works fine)
  19258. - # but it's something to keep an eye on.
  19259. - if test "$inst_prefix_dir" = "$destdir"; then
  19260. - $echo "$modename: error: cannot install \`$file' to a directory not ending in $libdir" 1>&2
  19261. - exit $EXIT_FAILURE
  19262. - fi
  19263. + if test -n "$rpath$xrpath"; then
  19264. + # If the user specified any rpath flags, then add them.
  19265. + for libdir in $rpath $xrpath; do
  19266. + # This is the magic to use -rpath.
  19267. + case "$finalize_rpath " in
  19268. + *" $libdir "*) ;;
  19269. + *) finalize_rpath="$finalize_rpath $libdir" ;;
  19270. + esac
  19271. + done
  19272. + fi
  19273. - if test -n "$inst_prefix_dir"; then
  19274. - # Stick the inst_prefix_dir data into the link command.
  19275. - relink_command=`$echo "$relink_command" | $SED "s%@inst_prefix_dir@%-inst-prefix-dir $inst_prefix_dir%"`
  19276. + # Now hardcode the library paths
  19277. + rpath=
  19278. + hardcode_libdirs=
  19279. + for libdir in $compile_rpath $finalize_rpath; do
  19280. + if test -n "$hardcode_libdir_flag_spec"; then
  19281. + if test -n "$hardcode_libdir_separator"; then
  19282. + if test -z "$hardcode_libdirs"; then
  19283. + hardcode_libdirs="$libdir"
  19284. + else
  19285. + # Just accumulate the unique libdirs.
  19286. + case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in
  19287. + *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*)
  19288. + ;;
  19289. + *)
  19290. + hardcode_libdirs="$hardcode_libdirs$hardcode_libdir_separator$libdir"
  19291. + ;;
  19292. + esac
  19293. + fi
  19294. else
  19295. - relink_command=`$echo "$relink_command" | $SED "s%@inst_prefix_dir@%%"`
  19296. + eval flag=\"$hardcode_libdir_flag_spec\"
  19297. + rpath="$rpath $flag"
  19298. fi
  19299. + elif test -n "$runpath_var"; then
  19300. + case "$perm_rpath " in
  19301. + *" $libdir "*) ;;
  19302. + *) perm_rpath="$perm_rpath $libdir" ;;
  19303. + esac
  19304. + fi
  19305. + case $host in
  19306. + *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-cegcc*)
  19307. + testbindir=`${ECHO} "$libdir" | ${SED} -e 's*/lib$*/bin*'`
  19308. + case :$dllsearchpath: in
  19309. + *":$libdir:"*) ;;
  19310. + ::) dllsearchpath=$libdir;;
  19311. + *) dllsearchpath="$dllsearchpath:$libdir";;
  19312. + esac
  19313. + case :$dllsearchpath: in
  19314. + *":$testbindir:"*) ;;
  19315. + ::) dllsearchpath=$testbindir;;
  19316. + *) dllsearchpath="$dllsearchpath:$testbindir";;
  19317. + esac
  19318. + ;;
  19319. + esac
  19320. + done
  19321. + # Substitute the hardcoded libdirs into the rpath.
  19322. + if test -n "$hardcode_libdir_separator" &&
  19323. + test -n "$hardcode_libdirs"; then
  19324. + libdir="$hardcode_libdirs"
  19325. + eval rpath=\" $hardcode_libdir_flag_spec\"
  19326. + fi
  19327. + compile_rpath="$rpath"
  19328. - $echo "$modename: warning: relinking \`$file'" 1>&2
  19329. - $show "$relink_command"
  19330. - if $run eval "$relink_command"; then :
  19331. + rpath=
  19332. + hardcode_libdirs=
  19333. + for libdir in $finalize_rpath; do
  19334. + if test -n "$hardcode_libdir_flag_spec"; then
  19335. + if test -n "$hardcode_libdir_separator"; then
  19336. + if test -z "$hardcode_libdirs"; then
  19337. + hardcode_libdirs="$libdir"
  19338. + else
  19339. + # Just accumulate the unique libdirs.
  19340. + case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in
  19341. + *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*)
  19342. + ;;
  19343. + *)
  19344. + hardcode_libdirs="$hardcode_libdirs$hardcode_libdir_separator$libdir"
  19345. + ;;
  19346. + esac
  19347. + fi
  19348. else
  19349. - $echo "$modename: error: relink \`$file' with the above command before installing it" 1>&2
  19350. - exit $EXIT_FAILURE
  19351. + eval flag=\"$hardcode_libdir_flag_spec\"
  19352. + rpath="$rpath $flag"
  19353. fi
  19354. + elif test -n "$runpath_var"; then
  19355. + case "$finalize_perm_rpath " in
  19356. + *" $libdir "*) ;;
  19357. + *) finalize_perm_rpath="$finalize_perm_rpath $libdir" ;;
  19358. + esac
  19359. fi
  19360. + done
  19361. + # Substitute the hardcoded libdirs into the rpath.
  19362. + if test -n "$hardcode_libdir_separator" &&
  19363. + test -n "$hardcode_libdirs"; then
  19364. + libdir="$hardcode_libdirs"
  19365. + eval rpath=\" $hardcode_libdir_flag_spec\"
  19366. + fi
  19367. + finalize_rpath="$rpath"
  19368. - # See the names of the shared library.
  19369. - set dummy $library_names
  19370. - if test -n "$2"; then
  19371. - realname="$2"
  19372. - shift
  19373. - shift
  19374. + if test -n "$libobjs" && test "$build_old_libs" = yes; then
  19375. + # Transform all the library objects into standard objects.
  19376. + compile_command=`$ECHO "X$compile_command" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP`
  19377. + finalize_command=`$ECHO "X$finalize_command" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP`
  19378. + fi
  19379. - srcname="$realname"
  19380. - test -n "$relink_command" && srcname="$realname"T
  19381. + func_generate_dlsyms "$outputname" "@PROGRAM@" "no"
  19382. - # Install the shared library and build the symlinks.
  19383. - $show "$install_prog $dir/$srcname $destdir/$realname"
  19384. - $run eval "$install_prog $dir/$srcname $destdir/$realname" || exit $?
  19385. - if test -n "$stripme" && test -n "$striplib"; then
  19386. - $show "$striplib $destdir/$realname"
  19387. - $run eval "$striplib $destdir/$realname" || exit $?
  19388. - fi
  19389. + # template prelinking step
  19390. + if test -n "$prelink_cmds"; then
  19391. + func_execute_cmds "$prelink_cmds" 'exit $?'
  19392. + fi
  19393. - if test "$#" -gt 0; then
  19394. - # Delete the old symlinks, and create new ones.
  19395. - # Try `ln -sf' first, because the `ln' binary might depend on
  19396. - # the symlink we replace! Solaris /bin/ln does not understand -f,
  19397. - # so we also need to try rm && ln -s.
  19398. - for linkname
  19399. - do
  19400. - if test "$linkname" != "$realname"; then
  19401. - $show "(cd $destdir && { $LN_S -f $realname $linkname || { $rm $linkname && $LN_S $realname $linkname; }; })"
  19402. - $run eval "(cd $destdir && { $LN_S -f $realname $linkname || { $rm $linkname && $LN_S $realname $linkname; }; })"
  19403. - fi
  19404. - done
  19405. - fi
  19406. + wrappers_required=yes
  19407. + case $host in
  19408. + *cygwin* | *mingw* )
  19409. + if test "$build_libtool_libs" != yes; then
  19410. + wrappers_required=no
  19411. + fi
  19412. + ;;
  19413. + *cegcc)
  19414. + # Disable wrappers for cegcc, we are cross compiling anyway.
  19415. + wrappers_required=no
  19416. + ;;
  19417. + *)
  19418. + if test "$need_relink" = no || test "$build_libtool_libs" != yes; then
  19419. + wrappers_required=no
  19420. + fi
  19421. + ;;
  19422. + esac
  19423. + if test "$wrappers_required" = no; then
  19424. + # Replace the output file specification.
  19425. + compile_command=`$ECHO "X$compile_command" | $Xsed -e 's%@OUTPUT@%'"$output"'%g'`
  19426. + link_command="$compile_command$compile_rpath"
  19427. - # Do each command in the postinstall commands.
  19428. - lib="$destdir/$realname"
  19429. - cmds=$postinstall_cmds
  19430. - save_ifs="$IFS"; IFS='~'
  19431. - for cmd in $cmds; do
  19432. - IFS="$save_ifs"
  19433. - eval cmd=\"$cmd\"
  19434. - $show "$cmd"
  19435. - $run eval "$cmd" || {
  19436. - lt_exit=$?
  19437. -
  19438. - # Restore the uninstalled library and exit
  19439. - if test "$mode" = relink; then
  19440. - $run eval '(cd $output_objdir && $rm ${realname}T && $mv ${realname}U $realname)'
  19441. - fi
  19442. + # We have no uninstalled library dependencies, so finalize right now.
  19443. + exit_status=0
  19444. + func_show_eval "$link_command" 'exit_status=$?'
  19445. - exit $lt_exit
  19446. - }
  19447. - done
  19448. - IFS="$save_ifs"
  19449. + # Delete the generated files.
  19450. + if test -f "$output_objdir/${outputname}S.${objext}"; then
  19451. + func_show_eval '$RM "$output_objdir/${outputname}S.${objext}"'
  19452. fi
  19453. - # Install the pseudo-library for information purposes.
  19454. - name=`$echo "X$file" | $Xsed -e 's%^.*/%%'`
  19455. - instname="$dir/$name"i
  19456. - $show "$install_prog $instname $destdir/$name"
  19457. - $run eval "$install_prog $instname $destdir/$name" || exit $?
  19458. -
  19459. - # Maybe install the static library, too.
  19460. - test -n "$old_library" && staticlibs="$staticlibs $dir/$old_library"
  19461. - ;;
  19462. + exit $exit_status
  19463. + fi
  19464. - *.lo)
  19465. - # Install (i.e. copy) a libtool object.
  19466. + if test -n "$compile_shlibpath$finalize_shlibpath"; then
  19467. + compile_command="$shlibpath_var=\"$compile_shlibpath$finalize_shlibpath\$$shlibpath_var\" $compile_command"
  19468. + fi
  19469. + if test -n "$finalize_shlibpath"; then
  19470. + finalize_command="$shlibpath_var=\"$finalize_shlibpath\$$shlibpath_var\" $finalize_command"
  19471. + fi
  19472. - # Figure out destination file name, if it wasn't already specified.
  19473. - if test -n "$destname"; then
  19474. - destfile="$destdir/$destname"
  19475. - else
  19476. - destfile=`$echo "X$file" | $Xsed -e 's%^.*/%%'`
  19477. - destfile="$destdir/$destfile"
  19478. + compile_var=
  19479. + finalize_var=
  19480. + if test -n "$runpath_var"; then
  19481. + if test -n "$perm_rpath"; then
  19482. + # We should set the runpath_var.
  19483. + rpath=
  19484. + for dir in $perm_rpath; do
  19485. + rpath="$rpath$dir:"
  19486. + done
  19487. + compile_var="$runpath_var=\"$rpath\$$runpath_var\" "
  19488. fi
  19489. -
  19490. - # Deduce the name of the destination old-style object file.
  19491. - case $destfile in
  19492. - *.lo)
  19493. - staticdest=`$echo "X$destfile" | $Xsed -e "$lo2o"`
  19494. - ;;
  19495. - *.$objext)
  19496. - staticdest="$destfile"
  19497. - destfile=
  19498. - ;;
  19499. - *)
  19500. - $echo "$modename: cannot copy a libtool object to \`$destfile'" 1>&2
  19501. - $echo "$help" 1>&2
  19502. - exit $EXIT_FAILURE
  19503. - ;;
  19504. - esac
  19505. -
  19506. - # Install the libtool object if requested.
  19507. - if test -n "$destfile"; then
  19508. - $show "$install_prog $file $destfile"
  19509. - $run eval "$install_prog $file $destfile" || exit $?
  19510. + if test -n "$finalize_perm_rpath"; then
  19511. + # We should set the runpath_var.
  19512. + rpath=
  19513. + for dir in $finalize_perm_rpath; do
  19514. + rpath="$rpath$dir:"
  19515. + done
  19516. + finalize_var="$runpath_var=\"$rpath\$$runpath_var\" "
  19517. fi
  19518. + fi
  19519. - # Install the old object if enabled.
  19520. - if test "$build_old_libs" = yes; then
  19521. - # Deduce the name of the old-style object file.
  19522. - staticobj=`$echo "X$file" | $Xsed -e "$lo2o"`
  19523. -
  19524. - $show "$install_prog $staticobj $staticdest"
  19525. - $run eval "$install_prog \$staticobj \$staticdest" || exit $?
  19526. - fi
  19527. + if test "$no_install" = yes; then
  19528. + # We don't need to create a wrapper script.
  19529. + link_command="$compile_var$compile_command$compile_rpath"
  19530. + # Replace the output file specification.
  19531. + link_command=`$ECHO "X$link_command" | $Xsed -e 's%@OUTPUT@%'"$output"'%g'`
  19532. + # Delete the old output file.
  19533. + $opt_dry_run || $RM $output
  19534. + # Link the executable and exit
  19535. + func_show_eval "$link_command" 'exit $?'
  19536. exit $EXIT_SUCCESS
  19537. - ;;
  19538. + fi
  19539. - *)
  19540. - # Figure out destination file name, if it wasn't already specified.
  19541. - if test -n "$destname"; then
  19542. - destfile="$destdir/$destname"
  19543. + if test "$hardcode_action" = relink; then
  19544. + # Fast installation is not supported
  19545. + link_command="$compile_var$compile_command$compile_rpath"
  19546. + relink_command="$finalize_var$finalize_command$finalize_rpath"
  19547. +
  19548. + func_warning "this platform does not like uninstalled shared libraries"
  19549. + func_warning "\`$output' will be relinked during installation"
  19550. + else
  19551. + if test "$fast_install" != no; then
  19552. + link_command="$finalize_var$compile_command$finalize_rpath"
  19553. + if test "$fast_install" = yes; then
  19554. + relink_command=`$ECHO "X$compile_var$compile_command$compile_rpath" | $Xsed -e 's%@OUTPUT@%\$progdir/\$file%g'`
  19555. + else
  19556. + # fast_install is set to needless
  19557. + relink_command=
  19558. + fi
  19559. else
  19560. - destfile=`$echo "X$file" | $Xsed -e 's%^.*/%%'`
  19561. - destfile="$destdir/$destfile"
  19562. + link_command="$compile_var$compile_command$compile_rpath"
  19563. + relink_command="$finalize_var$finalize_command$finalize_rpath"
  19564. fi
  19565. + fi
  19566. - # If the file is missing, and there is a .exe on the end, strip it
  19567. - # because it is most likely a libtool script we actually want to
  19568. - # install
  19569. - stripped_ext=""
  19570. - case $file in
  19571. - *.exe)
  19572. - if test ! -f "$file"; then
  19573. - file=`$echo $file|${SED} 's,.exe$,,'`
  19574. - stripped_ext=".exe"
  19575. - fi
  19576. - ;;
  19577. - esac
  19578. -
  19579. - # Do a test to see if this is really a libtool program.
  19580. - case $host in
  19581. - *cygwin*|*mingw*)
  19582. - wrapper=`$echo $file | ${SED} -e 's,.exe$,,'`
  19583. - ;;
  19584. - *)
  19585. - wrapper=$file
  19586. - ;;
  19587. - esac
  19588. - if (${SED} -e '4q' $wrapper | grep "^# Generated by .*$PACKAGE")>/dev/null 2>&1; then
  19589. - notinst_deplibs=
  19590. - relink_command=
  19591. -
  19592. - # Note that it is not necessary on cygwin/mingw to append a dot to
  19593. - # foo even if both foo and FILE.exe exist: automatic-append-.exe
  19594. - # behavior happens only for exec(3), not for open(2)! Also, sourcing
  19595. - # `FILE.' does not work on cygwin managed mounts.
  19596. - #
  19597. - # If there is no directory component, then add one.
  19598. - case $wrapper in
  19599. - */* | *\\*) . ${wrapper} ;;
  19600. - *) . ./${wrapper} ;;
  19601. - esac
  19602. -
  19603. - # Check the variables that should have been set.
  19604. - if test -z "$notinst_deplibs"; then
  19605. - $echo "$modename: invalid libtool wrapper script \`$wrapper'" 1>&2
  19606. - exit $EXIT_FAILURE
  19607. - fi
  19608. + # Replace the output file specification.
  19609. + link_command=`$ECHO "X$link_command" | $Xsed -e 's%@OUTPUT@%'"$output_objdir/$outputname"'%g'`
  19610. - finalize=yes
  19611. - for lib in $notinst_deplibs; do
  19612. - # Check to see that each library is installed.
  19613. - libdir=
  19614. - if test -f "$lib"; then
  19615. - # If there is no directory component, then add one.
  19616. - case $lib in
  19617. - */* | *\\*) . $lib ;;
  19618. - *) . ./$lib ;;
  19619. - esac
  19620. - fi
  19621. - libfile="$libdir/"`$echo "X$lib" | $Xsed -e 's%^.*/%%g'` ### testsuite: skip nested quoting test
  19622. - if test -n "$libdir" && test ! -f "$libfile"; then
  19623. - $echo "$modename: warning: \`$lib' has not been installed in \`$libdir'" 1>&2
  19624. - finalize=no
  19625. - fi
  19626. - done
  19627. + # Delete the old output files.
  19628. + $opt_dry_run || $RM $output $output_objdir/$outputname $output_objdir/lt-$outputname
  19629. - relink_command=
  19630. - # Note that it is not necessary on cygwin/mingw to append a dot to
  19631. - # foo even if both foo and FILE.exe exist: automatic-append-.exe
  19632. - # behavior happens only for exec(3), not for open(2)! Also, sourcing
  19633. - # `FILE.' does not work on cygwin managed mounts.
  19634. - #
  19635. - # If there is no directory component, then add one.
  19636. - case $wrapper in
  19637. - */* | *\\*) . ${wrapper} ;;
  19638. - *) . ./${wrapper} ;;
  19639. - esac
  19640. + func_show_eval "$link_command" 'exit $?'
  19641. - outputname=
  19642. - if test "$fast_install" = no && test -n "$relink_command"; then
  19643. - if test "$finalize" = yes && test -z "$run"; then
  19644. - tmpdir=`func_mktempdir`
  19645. - file=`$echo "X$file$stripped_ext" | $Xsed -e 's%^.*/%%'`
  19646. - outputname="$tmpdir/$file"
  19647. - # Replace the output file specification.
  19648. - relink_command=`$echo "X$relink_command" | $Xsed -e 's%@OUTPUT@%'"$outputname"'%g'`
  19649. + # Now create the wrapper script.
  19650. + func_verbose "creating $output"
  19651. - $show "$relink_command"
  19652. - if $run eval "$relink_command"; then :
  19653. - else
  19654. - $echo "$modename: error: relink \`$file' with the above command before installing it" 1>&2
  19655. - ${rm}r "$tmpdir"
  19656. - continue
  19657. - fi
  19658. - file="$outputname"
  19659. - else
  19660. - $echo "$modename: warning: cannot relink \`$file'" 1>&2
  19661. - fi
  19662. + # Quote the relink command for shipping.
  19663. + if test -n "$relink_command"; then
  19664. + # Preserve any variables that may affect compiler behavior
  19665. + for var in $variables_saved_for_relink; do
  19666. + if eval test -z \"\${$var+set}\"; then
  19667. + relink_command="{ test -z \"\${$var+set}\" || $lt_unset $var || { $var=; export $var; }; }; $relink_command"
  19668. + elif eval var_value=\$$var; test -z "$var_value"; then
  19669. + relink_command="$var=; export $var; $relink_command"
  19670. else
  19671. - # Install the binary that we compiled earlier.
  19672. - file=`$echo "X$file$stripped_ext" | $Xsed -e "s%\([^/]*\)$%$objdir/\1%"`
  19673. + func_quote_for_eval "$var_value"
  19674. + relink_command="$var=$func_quote_for_eval_result; export $var; $relink_command"
  19675. fi
  19676. - fi
  19677. + done
  19678. + relink_command="(cd `pwd`; $relink_command)"
  19679. + relink_command=`$ECHO "X$relink_command" | $Xsed -e "$sed_quote_subst"`
  19680. + fi
  19681. - # remove .exe since cygwin /usr/bin/install will append another
  19682. - # one anyway
  19683. - case $install_prog,$host in
  19684. - */usr/bin/install*,*cygwin*)
  19685. - case $file:$destfile in
  19686. - *.exe:*.exe)
  19687. - # this is ok
  19688. - ;;
  19689. - *.exe:*)
  19690. - destfile=$destfile.exe
  19691. - ;;
  19692. - *:*.exe)
  19693. - destfile=`$echo $destfile | ${SED} -e 's,.exe$,,'`
  19694. - ;;
  19695. - esac
  19696. - ;;
  19697. + # Quote $ECHO for shipping.
  19698. + if test "X$ECHO" = "X$SHELL $progpath --fallback-echo"; then
  19699. + case $progpath in
  19700. + [\\/]* | [A-Za-z]:[\\/]*) qecho="$SHELL $progpath --fallback-echo";;
  19701. + *) qecho="$SHELL `pwd`/$progpath --fallback-echo";;
  19702. + esac
  19703. + qecho=`$ECHO "X$qecho" | $Xsed -e "$sed_quote_subst"`
  19704. + else
  19705. + qecho=`$ECHO "X$ECHO" | $Xsed -e "$sed_quote_subst"`
  19706. + fi
  19707. +
  19708. + # Only actually do things if not in dry run mode.
  19709. + $opt_dry_run || {
  19710. + # win32 will think the script is a binary if it has
  19711. + # a .exe suffix, so we strip it off here.
  19712. + case $output in
  19713. + *.exe) func_stripname '' '.exe' "$output"
  19714. + output=$func_stripname_result ;;
  19715. esac
  19716. - $show "$install_prog$stripme $file $destfile"
  19717. - $run eval "$install_prog\$stripme \$file \$destfile" || exit $?
  19718. - test -n "$outputname" && ${rm}r "$tmpdir"
  19719. - ;;
  19720. - esac
  19721. - done
  19722. + # test for cygwin because mv fails w/o .exe extensions
  19723. + case $host in
  19724. + *cygwin*)
  19725. + exeext=.exe
  19726. + func_stripname '' '.exe' "$outputname"
  19727. + outputname=$func_stripname_result ;;
  19728. + *) exeext= ;;
  19729. + esac
  19730. + case $host in
  19731. + *cygwin* | *mingw* )
  19732. + func_dirname_and_basename "$output" "" "."
  19733. + output_name=$func_basename_result
  19734. + output_path=$func_dirname_result
  19735. + cwrappersource="$output_path/$objdir/lt-$output_name.c"
  19736. + cwrapper="$output_path/$output_name.exe"
  19737. + $RM $cwrappersource $cwrapper
  19738. + trap "$RM $cwrappersource $cwrapper; exit $EXIT_FAILURE" 1 2 15
  19739. +
  19740. + func_emit_cwrapperexe_src > $cwrappersource
  19741. +
  19742. + # The wrapper executable is built using the $host compiler,
  19743. + # because it contains $host paths and files. If cross-
  19744. + # compiling, it, like the target executable, must be
  19745. + # executed on the $host or under an emulation environment.
  19746. + $opt_dry_run || {
  19747. + $LTCC $LTCFLAGS -o $cwrapper $cwrappersource
  19748. + $STRIP $cwrapper
  19749. + }
  19750. - for file in $staticlibs; do
  19751. - name=`$echo "X$file" | $Xsed -e 's%^.*/%%'`
  19752. + # Now, create the wrapper script for func_source use:
  19753. + func_ltwrapper_scriptname $cwrapper
  19754. + $RM $func_ltwrapper_scriptname_result
  19755. + trap "$RM $func_ltwrapper_scriptname_result; exit $EXIT_FAILURE" 1 2 15
  19756. + $opt_dry_run || {
  19757. + # note: this script will not be executed, so do not chmod.
  19758. + if test "x$build" = "x$host" ; then
  19759. + $cwrapper --lt-dump-script > $func_ltwrapper_scriptname_result
  19760. + else
  19761. + func_emit_wrapper no > $func_ltwrapper_scriptname_result
  19762. + fi
  19763. + }
  19764. + ;;
  19765. + * )
  19766. + $RM $output
  19767. + trap "$RM $output; exit $EXIT_FAILURE" 1 2 15
  19768. - # Set up the ranlib parameters.
  19769. - oldlib="$destdir/$name"
  19770. + func_emit_wrapper no > $output
  19771. + chmod +x $output
  19772. + ;;
  19773. + esac
  19774. + }
  19775. + exit $EXIT_SUCCESS
  19776. + ;;
  19777. + esac
  19778. - $show "$install_prog $file $oldlib"
  19779. - $run eval "$install_prog \$file \$oldlib" || exit $?
  19780. + # See if we need to build an old-fashioned archive.
  19781. + for oldlib in $oldlibs; do
  19782. - if test -n "$stripme" && test -n "$old_striplib"; then
  19783. - $show "$old_striplib $oldlib"
  19784. - $run eval "$old_striplib $oldlib" || exit $?
  19785. + if test "$build_libtool_libs" = convenience; then
  19786. + oldobjs="$libobjs_save $symfileobj"
  19787. + addlibs="$convenience"
  19788. + build_libtool_libs=no
  19789. + else
  19790. + if test "$build_libtool_libs" = module; then
  19791. + oldobjs="$libobjs_save"
  19792. + build_libtool_libs=no
  19793. + else
  19794. + oldobjs="$old_deplibs $non_pic_objects"
  19795. + if test "$preload" = yes && test -f "$symfileobj"; then
  19796. + oldobjs="$oldobjs $symfileobj"
  19797. + fi
  19798. + fi
  19799. + addlibs="$old_convenience"
  19800. fi
  19801. - # Do each command in the postinstall commands.
  19802. - cmds=$old_postinstall_cmds
  19803. - save_ifs="$IFS"; IFS='~'
  19804. - for cmd in $cmds; do
  19805. - IFS="$save_ifs"
  19806. - eval cmd=\"$cmd\"
  19807. - $show "$cmd"
  19808. - $run eval "$cmd" || exit $?
  19809. - done
  19810. - IFS="$save_ifs"
  19811. - done
  19812. + if test -n "$addlibs"; then
  19813. + gentop="$output_objdir/${outputname}x"
  19814. + generated="$generated $gentop"
  19815. - if test -n "$future_libdirs"; then
  19816. - $echo "$modename: warning: remember to run \`$progname --finish$future_libdirs'" 1>&2
  19817. - fi
  19818. + func_extract_archives $gentop $addlibs
  19819. + oldobjs="$oldobjs $func_extract_archives_result"
  19820. + fi
  19821. - if test -n "$current_libdirs"; then
  19822. - # Maybe just do a dry run.
  19823. - test -n "$run" && current_libdirs=" -n$current_libdirs"
  19824. - exec_cmd='$SHELL $progpath $preserve_args --finish$current_libdirs'
  19825. - else
  19826. - exit $EXIT_SUCCESS
  19827. - fi
  19828. - ;;
  19829. + # Do each command in the archive commands.
  19830. + if test -n "$old_archive_from_new_cmds" && test "$build_libtool_libs" = yes; then
  19831. + cmds=$old_archive_from_new_cmds
  19832. + else
  19833. - # libtool finish mode
  19834. - finish)
  19835. - modename="$modename: finish"
  19836. - libdirs="$nonopt"
  19837. - admincmds=
  19838. + # Add any objects from preloaded convenience libraries
  19839. + if test -n "$dlprefiles"; then
  19840. + gentop="$output_objdir/${outputname}x"
  19841. + generated="$generated $gentop"
  19842. - if test -n "$finish_cmds$finish_eval" && test -n "$libdirs"; then
  19843. - for dir
  19844. - do
  19845. - libdirs="$libdirs $dir"
  19846. - done
  19847. + func_extract_archives $gentop $dlprefiles
  19848. + oldobjs="$oldobjs $func_extract_archives_result"
  19849. + fi
  19850. - for libdir in $libdirs; do
  19851. - if test -n "$finish_cmds"; then
  19852. - # Do each command in the finish commands.
  19853. - cmds=$finish_cmds
  19854. - save_ifs="$IFS"; IFS='~'
  19855. - for cmd in $cmds; do
  19856. - IFS="$save_ifs"
  19857. - eval cmd=\"$cmd\"
  19858. - $show "$cmd"
  19859. - $run eval "$cmd" || admincmds="$admincmds
  19860. - $cmd"
  19861. + # POSIX demands no paths to be encoded in archives. We have
  19862. + # to avoid creating archives with duplicate basenames if we
  19863. + # might have to extract them afterwards, e.g., when creating a
  19864. + # static archive out of a convenience library, or when linking
  19865. + # the entirety of a libtool archive into another (currently
  19866. + # not supported by libtool).
  19867. + if (for obj in $oldobjs
  19868. + do
  19869. + func_basename "$obj"
  19870. + $ECHO "$func_basename_result"
  19871. + done | sort | sort -uc >/dev/null 2>&1); then
  19872. + :
  19873. + else
  19874. + $ECHO "copying selected object files to avoid basename conflicts..."
  19875. + gentop="$output_objdir/${outputname}x"
  19876. + generated="$generated $gentop"
  19877. + func_mkdir_p "$gentop"
  19878. + save_oldobjs=$oldobjs
  19879. + oldobjs=
  19880. + counter=1
  19881. + for obj in $save_oldobjs
  19882. + do
  19883. + func_basename "$obj"
  19884. + objbase="$func_basename_result"
  19885. + case " $oldobjs " in
  19886. + " ") oldobjs=$obj ;;
  19887. + *[\ /]"$objbase "*)
  19888. + while :; do
  19889. + # Make sure we don't pick an alternate name that also
  19890. + # overlaps.
  19891. + newobj=lt$counter-$objbase
  19892. + func_arith $counter + 1
  19893. + counter=$func_arith_result
  19894. + case " $oldobjs " in
  19895. + *[\ /]"$newobj "*) ;;
  19896. + *) if test ! -f "$gentop/$newobj"; then break; fi ;;
  19897. + esac
  19898. + done
  19899. + func_show_eval "ln $obj $gentop/$newobj || cp $obj $gentop/$newobj"
  19900. + oldobjs="$oldobjs $gentop/$newobj"
  19901. + ;;
  19902. + *) oldobjs="$oldobjs $obj" ;;
  19903. + esac
  19904. done
  19905. - IFS="$save_ifs"
  19906. - fi
  19907. - if test -n "$finish_eval"; then
  19908. - # Do the single finish_eval.
  19909. - eval cmds=\"$finish_eval\"
  19910. - $run eval "$cmds" || admincmds="$admincmds
  19911. - $cmds"
  19912. fi
  19913. - done
  19914. - fi
  19915. -
  19916. - # Exit here if they wanted silent mode.
  19917. - test "$show" = : && exit $EXIT_SUCCESS
  19918. + eval cmds=\"$old_archive_cmds\"
  19919. - $echo "X----------------------------------------------------------------------" | $Xsed
  19920. - $echo "Libraries have been installed in:"
  19921. - for libdir in $libdirs; do
  19922. - $echo " $libdir"
  19923. + func_len " $cmds"
  19924. + len=$func_len_result
  19925. + if test "$len" -lt "$max_cmd_len" || test "$max_cmd_len" -le -1; then
  19926. + cmds=$old_archive_cmds
  19927. + else
  19928. + # the command line is too long to link in one step, link in parts
  19929. + func_verbose "using piecewise archive linking..."
  19930. + save_RANLIB=$RANLIB
  19931. + RANLIB=:
  19932. + objlist=
  19933. + concat_cmds=
  19934. + save_oldobjs=$oldobjs
  19935. + oldobjs=
  19936. + # Is there a better way of finding the last object in the list?
  19937. + for obj in $save_oldobjs
  19938. + do
  19939. + last_oldobj=$obj
  19940. + done
  19941. + eval test_cmds=\"$old_archive_cmds\"
  19942. + func_len " $test_cmds"
  19943. + len0=$func_len_result
  19944. + len=$len0
  19945. + for obj in $save_oldobjs
  19946. + do
  19947. + func_len " $obj"
  19948. + func_arith $len + $func_len_result
  19949. + len=$func_arith_result
  19950. + func_append objlist " $obj"
  19951. + if test "$len" -lt "$max_cmd_len"; then
  19952. + :
  19953. + else
  19954. + # the above command should be used before it gets too long
  19955. + oldobjs=$objlist
  19956. + if test "$obj" = "$last_oldobj" ; then
  19957. + RANLIB=$save_RANLIB
  19958. + fi
  19959. + test -z "$concat_cmds" || concat_cmds=$concat_cmds~
  19960. + eval concat_cmds=\"\${concat_cmds}$old_archive_cmds\"
  19961. + objlist=
  19962. + len=$len0
  19963. + fi
  19964. + done
  19965. + RANLIB=$save_RANLIB
  19966. + oldobjs=$objlist
  19967. + if test "X$oldobjs" = "X" ; then
  19968. + eval cmds=\"\$concat_cmds\"
  19969. + else
  19970. + eval cmds=\"\$concat_cmds~\$old_archive_cmds\"
  19971. + fi
  19972. + fi
  19973. + fi
  19974. + func_execute_cmds "$cmds" 'exit $?'
  19975. done
  19976. - $echo
  19977. - $echo "If you ever happen to want to link against installed libraries"
  19978. - $echo "in a given directory, LIBDIR, you must either use libtool, and"
  19979. - $echo "specify the full pathname of the library, or use the \`-LLIBDIR'"
  19980. - $echo "flag during linking and do at least one of the following:"
  19981. - if test -n "$shlibpath_var"; then
  19982. - $echo " - add LIBDIR to the \`$shlibpath_var' environment variable"
  19983. - $echo " during execution"
  19984. - fi
  19985. - if test -n "$runpath_var"; then
  19986. - $echo " - add LIBDIR to the \`$runpath_var' environment variable"
  19987. - $echo " during linking"
  19988. - fi
  19989. - if test -n "$hardcode_libdir_flag_spec"; then
  19990. - libdir=LIBDIR
  19991. - eval flag=\"$hardcode_libdir_flag_spec\"
  19992. -
  19993. - $echo " - use the \`$flag' linker flag"
  19994. - fi
  19995. - if test -n "$admincmds"; then
  19996. - $echo " - have your system administrator run these commands:$admincmds"
  19997. - fi
  19998. - if test -f /etc/ld.so.conf; then
  19999. - $echo " - have your system administrator add LIBDIR to \`/etc/ld.so.conf'"
  20000. - fi
  20001. - $echo
  20002. - $echo "See any operating system documentation about shared libraries for"
  20003. - $echo "more information, such as the ld(1) and ld.so(8) manual pages."
  20004. - $echo "X----------------------------------------------------------------------" | $Xsed
  20005. - exit $EXIT_SUCCESS
  20006. - ;;
  20007. - # libtool execute mode
  20008. - execute)
  20009. - modename="$modename: execute"
  20010. + test -n "$generated" && \
  20011. + func_show_eval "${RM}r$generated"
  20012. - # The first argument is the command name.
  20013. - cmd="$nonopt"
  20014. - if test -z "$cmd"; then
  20015. - $echo "$modename: you must specify a COMMAND" 1>&2
  20016. - $echo "$help"
  20017. - exit $EXIT_FAILURE
  20018. - fi
  20019. -
  20020. - # Handle -dlopen flags immediately.
  20021. - for file in $execute_dlfiles; do
  20022. - if test ! -f "$file"; then
  20023. - $echo "$modename: \`$file' is not a file" 1>&2
  20024. - $echo "$help" 1>&2
  20025. - exit $EXIT_FAILURE
  20026. - fi
  20027. + # Now create the libtool archive.
  20028. + case $output in
  20029. + *.la)
  20030. + old_library=
  20031. + test "$build_old_libs" = yes && old_library="$libname.$libext"
  20032. + func_verbose "creating $output"
  20033. - dir=
  20034. - case $file in
  20035. - *.la)
  20036. - # Check to see that this really is a libtool archive.
  20037. - if (${SED} -e '2q' $file | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then :
  20038. + # Preserve any variables that may affect compiler behavior
  20039. + for var in $variables_saved_for_relink; do
  20040. + if eval test -z \"\${$var+set}\"; then
  20041. + relink_command="{ test -z \"\${$var+set}\" || $lt_unset $var || { $var=; export $var; }; }; $relink_command"
  20042. + elif eval var_value=\$$var; test -z "$var_value"; then
  20043. + relink_command="$var=; export $var; $relink_command"
  20044. else
  20045. - $echo "$modename: \`$lib' is not a valid libtool archive" 1>&2
  20046. - $echo "$help" 1>&2
  20047. - exit $EXIT_FAILURE
  20048. + func_quote_for_eval "$var_value"
  20049. + relink_command="$var=$func_quote_for_eval_result; export $var; $relink_command"
  20050. fi
  20051. + done
  20052. + # Quote the link command for shipping.
  20053. + relink_command="(cd `pwd`; $SHELL $progpath $preserve_args --mode=relink $libtool_args @inst_prefix_dir@)"
  20054. + relink_command=`$ECHO "X$relink_command" | $Xsed -e "$sed_quote_subst"`
  20055. + if test "$hardcode_automatic" = yes ; then
  20056. + relink_command=
  20057. + fi
  20058. - # Read the libtool library.
  20059. - dlname=
  20060. - library_names=
  20061. + # Only create the output if not a dry run.
  20062. + $opt_dry_run || {
  20063. + for installed in no yes; do
  20064. + if test "$installed" = yes; then
  20065. + if test -z "$install_libdir"; then
  20066. + break
  20067. + fi
  20068. + output="$output_objdir/$outputname"i
  20069. + # Replace all uninstalled libtool libraries with the installed ones
  20070. + newdependency_libs=
  20071. + for deplib in $dependency_libs; do
  20072. + case $deplib in
  20073. + *.la)
  20074. + func_basename "$deplib"
  20075. + name="$func_basename_result"
  20076. + eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib`
  20077. + test -z "$libdir" && \
  20078. + func_fatal_error "\`$deplib' is not a valid libtool archive"
  20079. + newdependency_libs="$newdependency_libs $libdir/$name"
  20080. + ;;
  20081. + *) newdependency_libs="$newdependency_libs $deplib" ;;
  20082. + esac
  20083. + done
  20084. + dependency_libs="$newdependency_libs"
  20085. + newdlfiles=
  20086. +
  20087. + for lib in $dlfiles; do
  20088. + case $lib in
  20089. + *.la)
  20090. + func_basename "$lib"
  20091. + name="$func_basename_result"
  20092. + eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $lib`
  20093. + test -z "$libdir" && \
  20094. + func_fatal_error "\`$lib' is not a valid libtool archive"
  20095. + newdlfiles="$newdlfiles $libdir/$name"
  20096. + ;;
  20097. + *) newdlfiles="$newdlfiles $lib" ;;
  20098. + esac
  20099. + done
  20100. + dlfiles="$newdlfiles"
  20101. + newdlprefiles=
  20102. + for lib in $dlprefiles; do
  20103. + case $lib in
  20104. + *.la)
  20105. + # Only pass preopened files to the pseudo-archive (for
  20106. + # eventual linking with the app. that links it) if we
  20107. + # didn't already link the preopened objects directly into
  20108. + # the library:
  20109. + func_basename "$lib"
  20110. + name="$func_basename_result"
  20111. + eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $lib`
  20112. + test -z "$libdir" && \
  20113. + func_fatal_error "\`$lib' is not a valid libtool archive"
  20114. + newdlprefiles="$newdlprefiles $libdir/$name"
  20115. + ;;
  20116. + esac
  20117. + done
  20118. + dlprefiles="$newdlprefiles"
  20119. + else
  20120. + newdlfiles=
  20121. + for lib in $dlfiles; do
  20122. + case $lib in
  20123. + [\\/]* | [A-Za-z]:[\\/]*) abs="$lib" ;;
  20124. + *) abs=`pwd`"/$lib" ;;
  20125. + esac
  20126. + newdlfiles="$newdlfiles $abs"
  20127. + done
  20128. + dlfiles="$newdlfiles"
  20129. + newdlprefiles=
  20130. + for lib in $dlprefiles; do
  20131. + case $lib in
  20132. + [\\/]* | [A-Za-z]:[\\/]*) abs="$lib" ;;
  20133. + *) abs=`pwd`"/$lib" ;;
  20134. + esac
  20135. + newdlprefiles="$newdlprefiles $abs"
  20136. + done
  20137. + dlprefiles="$newdlprefiles"
  20138. + fi
  20139. + $RM $output
  20140. + # place dlname in correct position for cygwin
  20141. + tdlname=$dlname
  20142. + case $host,$output,$installed,$module,$dlname in
  20143. + *cygwin*,*lai,yes,no,*.dll | *mingw*,*lai,yes,no,*.dll | *cegcc*,*lai,yes,no,*.dll) tdlname=../bin/$dlname ;;
  20144. + esac
  20145. + $ECHO > $output "\
  20146. +# $outputname - a libtool library file
  20147. +# Generated by $PROGRAM (GNU $PACKAGE$TIMESTAMP) $VERSION
  20148. +#
  20149. +# Please DO NOT delete this file!
  20150. +# It is necessary for linking the library.
  20151. - # If there is no directory component, then add one.
  20152. - case $file in
  20153. - */* | *\\*) . $file ;;
  20154. - *) . ./$file ;;
  20155. - esac
  20156. +# The name that we can dlopen(3).
  20157. +dlname='$tdlname'
  20158. - # Skip this library if it cannot be dlopened.
  20159. - if test -z "$dlname"; then
  20160. - # Warn if it was a shared library.
  20161. - test -n "$library_names" && $echo "$modename: warning: \`$file' was not linked with \`-export-dynamic'"
  20162. - continue
  20163. - fi
  20164. +# Names of this library.
  20165. +library_names='$library_names'
  20166. - dir=`$echo "X$file" | $Xsed -e 's%/[^/]*$%%'`
  20167. - test "X$dir" = "X$file" && dir=.
  20168. +# The name of the static archive.
  20169. +old_library='$old_library'
  20170. - if test -f "$dir/$objdir/$dlname"; then
  20171. - dir="$dir/$objdir"
  20172. - else
  20173. - $echo "$modename: cannot find \`$dlname' in \`$dir' or \`$dir/$objdir'" 1>&2
  20174. - exit $EXIT_FAILURE
  20175. - fi
  20176. - ;;
  20177. +# Linker flags that can not go in dependency_libs.
  20178. +inherited_linker_flags='$new_inherited_linker_flags'
  20179. - *.lo)
  20180. - # Just add the directory containing the .lo file.
  20181. - dir=`$echo "X$file" | $Xsed -e 's%/[^/]*$%%'`
  20182. - test "X$dir" = "X$file" && dir=.
  20183. - ;;
  20184. +# Libraries that this one depends upon.
  20185. +dependency_libs='$dependency_libs'
  20186. - *)
  20187. - $echo "$modename: warning \`-dlopen' is ignored for non-libtool libraries and objects" 1>&2
  20188. - continue
  20189. - ;;
  20190. - esac
  20191. +# Names of additional weak libraries provided by this library
  20192. +weak_library_names='$weak_libs'
  20193. - # Get the absolute pathname.
  20194. - absdir=`cd "$dir" && pwd`
  20195. - test -n "$absdir" && dir="$absdir"
  20196. +# Version information for $libname.
  20197. +current=$current
  20198. +age=$age
  20199. +revision=$revision
  20200. - # Now add the directory to shlibpath_var.
  20201. - if eval "test -z \"\$$shlibpath_var\""; then
  20202. - eval "$shlibpath_var=\"\$dir\""
  20203. - else
  20204. - eval "$shlibpath_var=\"\$dir:\$$shlibpath_var\""
  20205. - fi
  20206. - done
  20207. +# Is this an already installed library?
  20208. +installed=$installed
  20209. - # This variable tells wrapper scripts just to set shlibpath_var
  20210. - # rather than running their programs.
  20211. - libtool_execute_magic="$magic"
  20212. +# Should we warn about portability when linking against -modules?
  20213. +shouldnotlink=$module
  20214. - # Check if any of the arguments is a wrapper script.
  20215. - args=
  20216. - for file
  20217. - do
  20218. - case $file in
  20219. - -*) ;;
  20220. - *)
  20221. - # Do a test to see if this is really a libtool program.
  20222. - if (${SED} -e '4q' $file | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
  20223. - # If there is no directory component, then add one.
  20224. - case $file in
  20225. - */* | *\\*) . $file ;;
  20226. - *) . ./$file ;;
  20227. - esac
  20228. +# Files to dlopen/dlpreopen
  20229. +dlopen='$dlfiles'
  20230. +dlpreopen='$dlprefiles'
  20231. - # Transform arg to wrapped name.
  20232. - file="$progdir/$program"
  20233. - fi
  20234. - ;;
  20235. - esac
  20236. - # Quote arguments (to preserve shell metacharacters).
  20237. - file=`$echo "X$file" | $Xsed -e "$sed_quote_subst"`
  20238. - args="$args \"$file\""
  20239. - done
  20240. +# Directory that this library needs to be installed in:
  20241. +libdir='$install_libdir'"
  20242. + if test "$installed" = no && test "$need_relink" = yes; then
  20243. + $ECHO >> $output "\
  20244. +relink_command=\"$relink_command\""
  20245. + fi
  20246. + done
  20247. + }
  20248. - if test -z "$run"; then
  20249. - if test -n "$shlibpath_var"; then
  20250. - # Export the shlibpath_var.
  20251. - eval "export $shlibpath_var"
  20252. - fi
  20253. + # Do a symbolic link so that the libtool archive can be found in
  20254. + # LD_LIBRARY_PATH before the program is installed.
  20255. + func_show_eval '( cd "$output_objdir" && $RM "$outputname" && $LN_S "../$outputname" "$outputname" )' 'exit $?'
  20256. + ;;
  20257. + esac
  20258. + exit $EXIT_SUCCESS
  20259. +}
  20260. - # Restore saved environment variables
  20261. - if test "${save_LC_ALL+set}" = set; then
  20262. - LC_ALL="$save_LC_ALL"; export LC_ALL
  20263. - fi
  20264. - if test "${save_LANG+set}" = set; then
  20265. - LANG="$save_LANG"; export LANG
  20266. - fi
  20267. +{ test "$mode" = link || test "$mode" = relink; } &&
  20268. + func_mode_link ${1+"$@"}
  20269. - # Now prepare to actually exec the command.
  20270. - exec_cmd="\$cmd$args"
  20271. - else
  20272. - # Display what would be done.
  20273. - if test -n "$shlibpath_var"; then
  20274. - eval "\$echo \"\$shlibpath_var=\$$shlibpath_var\""
  20275. - $echo "export $shlibpath_var"
  20276. - fi
  20277. - $echo "$cmd$args"
  20278. - exit $EXIT_SUCCESS
  20279. - fi
  20280. - ;;
  20281. - # libtool clean and uninstall mode
  20282. - clean | uninstall)
  20283. - modename="$modename: $mode"
  20284. - rm="$nonopt"
  20285. +# func_mode_uninstall arg...
  20286. +func_mode_uninstall ()
  20287. +{
  20288. + $opt_debug
  20289. + RM="$nonopt"
  20290. files=
  20291. rmforce=
  20292. exit_status=0
  20293. @@ -6448,30 +8209,28 @@
  20294. for arg
  20295. do
  20296. case $arg in
  20297. - -f) rm="$rm $arg"; rmforce=yes ;;
  20298. - -*) rm="$rm $arg" ;;
  20299. + -f) RM="$RM $arg"; rmforce=yes ;;
  20300. + -*) RM="$RM $arg" ;;
  20301. *) files="$files $arg" ;;
  20302. esac
  20303. done
  20304. - if test -z "$rm"; then
  20305. - $echo "$modename: you must specify an RM program" 1>&2
  20306. - $echo "$help" 1>&2
  20307. - exit $EXIT_FAILURE
  20308. - fi
  20309. + test -z "$RM" && \
  20310. + func_fatal_help "you must specify an RM program"
  20311. rmdirs=
  20312. origobjdir="$objdir"
  20313. for file in $files; do
  20314. - dir=`$echo "X$file" | $Xsed -e 's%/[^/]*$%%'`
  20315. - if test "X$dir" = "X$file"; then
  20316. - dir=.
  20317. + func_dirname "$file" "" "."
  20318. + dir="$func_dirname_result"
  20319. + if test "X$dir" = X.; then
  20320. objdir="$origobjdir"
  20321. else
  20322. objdir="$dir/$origobjdir"
  20323. fi
  20324. - name=`$echo "X$file" | $Xsed -e 's%^.*/%%'`
  20325. + func_basename "$file"
  20326. + name="$func_basename_result"
  20327. test "$mode" = uninstall && objdir="$dir"
  20328. # Remember objdir for removal later, being careful to avoid duplicates
  20329. @@ -6483,9 +8242,9 @@
  20330. fi
  20331. # Don't error if the file doesn't exist and rm -f was used.
  20332. - if (test -L "$file") >/dev/null 2>&1 \
  20333. - || (test -h "$file") >/dev/null 2>&1 \
  20334. - || test -f "$file"; then
  20335. + if { test -L "$file"; } >/dev/null 2>&1 ||
  20336. + { test -h "$file"; } >/dev/null 2>&1 ||
  20337. + test -f "$file"; then
  20338. :
  20339. elif test -d "$file"; then
  20340. exit_status=1
  20341. @@ -6499,8 +8258,8 @@
  20342. case $name in
  20343. *.la)
  20344. # Possibly a libtool archive, so verify it.
  20345. - if (${SED} -e '2q' $file | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
  20346. - . $dir/$name
  20347. + if func_lalib_p "$file"; then
  20348. + func_source $dir/$name
  20349. # Delete the libtool libraries and symlinks.
  20350. for n in $library_names; do
  20351. @@ -6515,39 +8274,17 @@
  20352. *" $dlname "*) ;;
  20353. *) rmfiles="$rmfiles $objdir/$dlname" ;;
  20354. esac
  20355. - test -n "$libdir" && rmfiles="$rmfiles $objdir/$name $objdir/${name}i"
  20356. + test -n "$libdir" && rmfiles="$rmfiles $objdir/$name $objdir/${name}i"
  20357. ;;
  20358. uninstall)
  20359. if test -n "$library_names"; then
  20360. # Do each command in the postuninstall commands.
  20361. - cmds=$postuninstall_cmds
  20362. - save_ifs="$IFS"; IFS='~'
  20363. - for cmd in $cmds; do
  20364. - IFS="$save_ifs"
  20365. - eval cmd=\"$cmd\"
  20366. - $show "$cmd"
  20367. - $run eval "$cmd"
  20368. - if test "$?" -ne 0 && test "$rmforce" != yes; then
  20369. - exit_status=1
  20370. - fi
  20371. - done
  20372. - IFS="$save_ifs"
  20373. + func_execute_cmds "$postuninstall_cmds" 'test "$rmforce" = yes || exit_status=1'
  20374. fi
  20375. if test -n "$old_library"; then
  20376. # Do each command in the old_postuninstall commands.
  20377. - cmds=$old_postuninstall_cmds
  20378. - save_ifs="$IFS"; IFS='~'
  20379. - for cmd in $cmds; do
  20380. - IFS="$save_ifs"
  20381. - eval cmd=\"$cmd\"
  20382. - $show "$cmd"
  20383. - $run eval "$cmd"
  20384. - if test "$?" -ne 0 && test "$rmforce" != yes; then
  20385. - exit_status=1
  20386. - fi
  20387. - done
  20388. - IFS="$save_ifs"
  20389. + func_execute_cmds "$old_postuninstall_cmds" 'test "$rmforce" = yes || exit_status=1'
  20390. fi
  20391. # FIXME: should reinstall the best remaining shared library.
  20392. ;;
  20393. @@ -6557,20 +8294,20 @@
  20394. *.lo)
  20395. # Possibly a libtool object, so verify it.
  20396. - if (${SED} -e '2q' $file | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
  20397. + if func_lalib_p "$file"; then
  20398. # Read the .lo file
  20399. - . $dir/$name
  20400. + func_source $dir/$name
  20401. # Add PIC object to the list of files to remove.
  20402. - if test -n "$pic_object" \
  20403. - && test "$pic_object" != none; then
  20404. + if test -n "$pic_object" &&
  20405. + test "$pic_object" != none; then
  20406. rmfiles="$rmfiles $dir/$pic_object"
  20407. fi
  20408. # Add non-PIC object to the list of files to remove.
  20409. - if test -n "$non_pic_object" \
  20410. - && test "$non_pic_object" != none; then
  20411. + if test -n "$non_pic_object" &&
  20412. + test "$non_pic_object" != none; then
  20413. rmfiles="$rmfiles $dir/$non_pic_object"
  20414. fi
  20415. fi
  20416. @@ -6581,17 +8318,26 @@
  20417. noexename=$name
  20418. case $file in
  20419. *.exe)
  20420. - file=`$echo $file|${SED} 's,.exe$,,'`
  20421. - noexename=`$echo $name|${SED} 's,.exe$,,'`
  20422. + func_stripname '' '.exe' "$file"
  20423. + file=$func_stripname_result
  20424. + func_stripname '' '.exe' "$name"
  20425. + noexename=$func_stripname_result
  20426. # $file with .exe has already been added to rmfiles,
  20427. # add $file without .exe
  20428. rmfiles="$rmfiles $file"
  20429. ;;
  20430. esac
  20431. # Do a test to see if this is a libtool program.
  20432. - if (${SED} -e '4q' $file | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
  20433. - relink_command=
  20434. - . $dir/$noexename
  20435. + if func_ltwrapper_p "$file"; then
  20436. + if func_ltwrapper_executable_p "$file"; then
  20437. + func_ltwrapper_scriptname "$file"
  20438. + relink_command=
  20439. + func_source $func_ltwrapper_scriptname_result
  20440. + rmfiles="$rmfiles $func_ltwrapper_scriptname_result"
  20441. + else
  20442. + relink_command=
  20443. + func_source $dir/$noexename
  20444. + fi
  20445. # note $name still contains .exe if it was in $file originally
  20446. # as does the version of $file that was added into $rmfiles
  20447. @@ -6606,237 +8352,38 @@
  20448. fi
  20449. ;;
  20450. esac
  20451. - $show "$rm $rmfiles"
  20452. - $run $rm $rmfiles || exit_status=1
  20453. + func_show_eval "$RM $rmfiles" 'exit_status=1'
  20454. done
  20455. objdir="$origobjdir"
  20456. # Try to remove the ${objdir}s in the directories where we deleted files
  20457. for dir in $rmdirs; do
  20458. if test -d "$dir"; then
  20459. - $show "rmdir $dir"
  20460. - $run rmdir $dir >/dev/null 2>&1
  20461. + func_show_eval "rmdir $dir >/dev/null 2>&1"
  20462. fi
  20463. done
  20464. exit $exit_status
  20465. - ;;
  20466. +}
  20467. - "")
  20468. - $echo "$modename: you must specify a MODE" 1>&2
  20469. - $echo "$generic_help" 1>&2
  20470. - exit $EXIT_FAILURE
  20471. - ;;
  20472. - esac
  20473. +{ test "$mode" = uninstall || test "$mode" = clean; } &&
  20474. + func_mode_uninstall ${1+"$@"}
  20475. - if test -z "$exec_cmd"; then
  20476. - $echo "$modename: invalid operation mode \`$mode'" 1>&2
  20477. - $echo "$generic_help" 1>&2
  20478. - exit $EXIT_FAILURE
  20479. - fi
  20480. -fi # test -z "$show_help"
  20481. +test -z "$mode" && {
  20482. + help="$generic_help"
  20483. + func_fatal_help "you must specify a MODE"
  20484. +}
  20485. +
  20486. +test -z "$exec_cmd" && \
  20487. + func_fatal_help "invalid operation mode \`$mode'"
  20488. if test -n "$exec_cmd"; then
  20489. - eval exec $exec_cmd
  20490. + eval exec "$exec_cmd"
  20491. exit $EXIT_FAILURE
  20492. fi
  20493. -# We need to display help for each of the modes.
  20494. -case $mode in
  20495. -"") $echo \
  20496. -"Usage: $modename [OPTION]... [MODE-ARG]...
  20497. -
  20498. -Provide generalized library-building support services.
  20499. -
  20500. - --config show all configuration variables
  20501. - --debug enable verbose shell tracing
  20502. --n, --dry-run display commands without modifying any files
  20503. - --features display basic configuration information and exit
  20504. - --finish same as \`--mode=finish'
  20505. - --help display this help message and exit
  20506. - --mode=MODE use operation mode MODE [default=inferred from MODE-ARGS]
  20507. - --quiet same as \`--silent'
  20508. - --silent don't print informational messages
  20509. - --tag=TAG use configuration variables from tag TAG
  20510. - --version print version information
  20511. -
  20512. -MODE must be one of the following:
  20513. -
  20514. - clean remove files from the build directory
  20515. - compile compile a source file into a libtool object
  20516. - execute automatically set library path, then run a program
  20517. - finish complete the installation of libtool libraries
  20518. - install install libraries or executables
  20519. - link create a library or an executable
  20520. - uninstall remove libraries from an installed directory
  20521. -
  20522. -MODE-ARGS vary depending on the MODE. Try \`$modename --help --mode=MODE' for
  20523. -a more detailed description of MODE.
  20524. -
  20525. -Report bugs to <bug-libtool@gnu.org>."
  20526. - exit $EXIT_SUCCESS
  20527. - ;;
  20528. -
  20529. -clean)
  20530. - $echo \
  20531. -"Usage: $modename [OPTION]... --mode=clean RM [RM-OPTION]... FILE...
  20532. -
  20533. -Remove files from the build directory.
  20534. -
  20535. -RM is the name of the program to use to delete files associated with each FILE
  20536. -(typically \`/bin/rm'). RM-OPTIONS are options (such as \`-f') to be passed
  20537. -to RM.
  20538. -
  20539. -If FILE is a libtool library, object or program, all the files associated
  20540. -with it are deleted. Otherwise, only FILE itself is deleted using RM."
  20541. - ;;
  20542. -
  20543. -compile)
  20544. - $echo \
  20545. -"Usage: $modename [OPTION]... --mode=compile COMPILE-COMMAND... SOURCEFILE
  20546. -
  20547. -Compile a source file into a libtool library object.
  20548. -
  20549. -This mode accepts the following additional options:
  20550. -
  20551. - -o OUTPUT-FILE set the output file name to OUTPUT-FILE
  20552. - -prefer-pic try to building PIC objects only
  20553. - -prefer-non-pic try to building non-PIC objects only
  20554. - -static always build a \`.o' file suitable for static linking
  20555. -
  20556. -COMPILE-COMMAND is a command to be used in creating a \`standard' object file
  20557. -from the given SOURCEFILE.
  20558. -
  20559. -The output file name is determined by removing the directory component from
  20560. -SOURCEFILE, then substituting the C source code suffix \`.c' with the
  20561. -library object suffix, \`.lo'."
  20562. - ;;
  20563. -
  20564. -execute)
  20565. - $echo \
  20566. -"Usage: $modename [OPTION]... --mode=execute COMMAND [ARGS]...
  20567. -
  20568. -Automatically set library path, then run a program.
  20569. -
  20570. -This mode accepts the following additional options:
  20571. -
  20572. - -dlopen FILE add the directory containing FILE to the library path
  20573. -
  20574. -This mode sets the library path environment variable according to \`-dlopen'
  20575. -flags.
  20576. -
  20577. -If any of the ARGS are libtool executable wrappers, then they are translated
  20578. -into their corresponding uninstalled binary, and any of their required library
  20579. -directories are added to the library path.
  20580. -
  20581. -Then, COMMAND is executed, with ARGS as arguments."
  20582. - ;;
  20583. -
  20584. -finish)
  20585. - $echo \
  20586. -"Usage: $modename [OPTION]... --mode=finish [LIBDIR]...
  20587. -
  20588. -Complete the installation of libtool libraries.
  20589. -
  20590. -Each LIBDIR is a directory that contains libtool libraries.
  20591. -
  20592. -The commands that this mode executes may require superuser privileges. Use
  20593. -the \`--dry-run' option if you just want to see what would be executed."
  20594. - ;;
  20595. -
  20596. -install)
  20597. - $echo \
  20598. -"Usage: $modename [OPTION]... --mode=install INSTALL-COMMAND...
  20599. -
  20600. -Install executables or libraries.
  20601. -
  20602. -INSTALL-COMMAND is the installation command. The first component should be
  20603. -either the \`install' or \`cp' program.
  20604. -
  20605. -The rest of the components are interpreted as arguments to that command (only
  20606. -BSD-compatible install options are recognized)."
  20607. - ;;
  20608. -
  20609. -link)
  20610. - $echo \
  20611. -"Usage: $modename [OPTION]... --mode=link LINK-COMMAND...
  20612. -
  20613. -Link object files or libraries together to form another library, or to
  20614. -create an executable program.
  20615. -
  20616. -LINK-COMMAND is a command using the C compiler that you would use to create
  20617. -a program from several object files.
  20618. -
  20619. -The following components of LINK-COMMAND are treated specially:
  20620. -
  20621. - -all-static do not do any dynamic linking at all
  20622. - -avoid-version do not add a version suffix if possible
  20623. - -dlopen FILE \`-dlpreopen' FILE if it cannot be dlopened at runtime
  20624. - -dlpreopen FILE link in FILE and add its symbols to lt_preloaded_symbols
  20625. - -export-dynamic allow symbols from OUTPUT-FILE to be resolved with dlsym(3)
  20626. - -export-symbols SYMFILE
  20627. - try to export only the symbols listed in SYMFILE
  20628. - -export-symbols-regex REGEX
  20629. - try to export only the symbols matching REGEX
  20630. - -LLIBDIR search LIBDIR for required installed libraries
  20631. - -lNAME OUTPUT-FILE requires the installed library libNAME
  20632. - -module build a library that can dlopened
  20633. - -no-fast-install disable the fast-install mode
  20634. - -no-install link a not-installable executable
  20635. - -no-undefined declare that a library does not refer to external symbols
  20636. - -o OUTPUT-FILE create OUTPUT-FILE from the specified objects
  20637. - -objectlist FILE Use a list of object files found in FILE to specify objects
  20638. - -precious-files-regex REGEX
  20639. - don't remove output files matching REGEX
  20640. - -release RELEASE specify package release information
  20641. - -rpath LIBDIR the created library will eventually be installed in LIBDIR
  20642. - -R[ ]LIBDIR add LIBDIR to the runtime path of programs and libraries
  20643. - -static do not do any dynamic linking of libtool libraries
  20644. - -version-info CURRENT[:REVISION[:AGE]]
  20645. - specify library version info [each variable defaults to 0]
  20646. -
  20647. -All other options (arguments beginning with \`-') are ignored.
  20648. -
  20649. -Every other argument is treated as a filename. Files ending in \`.la' are
  20650. -treated as uninstalled libtool libraries, other files are standard or library
  20651. -object files.
  20652. -
  20653. -If the OUTPUT-FILE ends in \`.la', then a libtool library is created,
  20654. -only library objects (\`.lo' files) may be specified, and \`-rpath' is
  20655. -required, except when creating a convenience library.
  20656. -
  20657. -If OUTPUT-FILE ends in \`.a' or \`.lib', then a standard library is created
  20658. -using \`ar' and \`ranlib', or on Windows using \`lib'.
  20659. -
  20660. -If OUTPUT-FILE ends in \`.lo' or \`.${objext}', then a reloadable object file
  20661. -is created, otherwise an executable program is created."
  20662. - ;;
  20663. -
  20664. -uninstall)
  20665. - $echo \
  20666. -"Usage: $modename [OPTION]... --mode=uninstall RM [RM-OPTION]... FILE...
  20667. -
  20668. -Remove libraries from an installation directory.
  20669. -
  20670. -RM is the name of the program to use to delete files associated with each FILE
  20671. -(typically \`/bin/rm'). RM-OPTIONS are options (such as \`-f') to be passed
  20672. -to RM.
  20673. +exit $exit_status
  20674. -If FILE is a libtool library, all the files associated with it are deleted.
  20675. -Otherwise, only FILE itself is deleted using RM."
  20676. - ;;
  20677. -
  20678. -*)
  20679. - $echo "$modename: invalid operation mode \`$mode'" 1>&2
  20680. - $echo "$help" 1>&2
  20681. - exit $EXIT_FAILURE
  20682. - ;;
  20683. -esac
  20684. -
  20685. -$echo
  20686. -$echo "Try \`$modename --help' for more information about other modes."
  20687. -
  20688. -exit $?
  20689. # The TAGs below are defined such that we never get into a situation
  20690. # in which we disable both kinds of libraries. Given conflicting
  20691. @@ -6850,14 +8397,17 @@
  20692. # configuration. But we'll never go from static-only to shared-only.
  20693. # ### BEGIN LIBTOOL TAG CONFIG: disable-shared
  20694. -disable_libs=shared
  20695. +build_libtool_libs=no
  20696. +build_old_libs=yes
  20697. # ### END LIBTOOL TAG CONFIG: disable-shared
  20698. # ### BEGIN LIBTOOL TAG CONFIG: disable-static
  20699. -disable_libs=static
  20700. +build_old_libs=`case $build_libtool_libs in yes) echo no;; *) echo yes;; esac`
  20701. # ### END LIBTOOL TAG CONFIG: disable-static
  20702. # Local Variables:
  20703. # mode:shell-script
  20704. # sh-indentation:2
  20705. # End:
  20706. +# vi:sw=2
  20707. +
  20708. diff -Nur libupnp-1.6.6.orig/configure libupnp-1.6.6/configure
  20709. --- libupnp-1.6.6.orig/configure 2008-04-25 13:47:24.000000000 +0200
  20710. +++ libupnp-1.6.6/configure 2010-02-18 22:36:58.764852322 +0100
  20711. @@ -1,59 +1,86 @@
  20712. #! /bin/sh
  20713. # From configure.ac Revision: 1.11 .
  20714. # Guess values for system-dependent variables and create Makefiles.
  20715. -# Generated by GNU Autoconf 2.60 for libupnp 1.6.6.
  20716. +# Generated by GNU Autoconf 2.65 for libupnp 1.6.6.
  20717. #
  20718. # Report bugs to <mroberto@users.sourceforge.net>.
  20719. #
  20720. +#
  20721. # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
  20722. -# 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
  20723. +# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
  20724. +# Inc.
  20725. +#
  20726. +#
  20727. # This configure script is free software; the Free Software Foundation
  20728. # gives unlimited permission to copy, distribute and modify it.
  20729. -## --------------------- ##
  20730. -## M4sh Initialization. ##
  20731. -## --------------------- ##
  20732. +## -------------------- ##
  20733. +## M4sh Initialization. ##
  20734. +## -------------------- ##
  20735. -# Be Bourne compatible
  20736. -if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  20737. +# Be more Bourne compatible
  20738. +DUALCASE=1; export DUALCASE # for MKS sh
  20739. +if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  20740. emulate sh
  20741. NULLCMD=:
  20742. - # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  20743. + # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  20744. # is contrary to our usage. Disable this feature.
  20745. alias -g '${1+"$@"}'='"$@"'
  20746. setopt NO_GLOB_SUBST
  20747. else
  20748. - case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
  20749. + case `(set -o) 2>/dev/null` in #(
  20750. + *posix*) :
  20751. + set -o posix ;; #(
  20752. + *) :
  20753. + ;;
  20754. +esac
  20755. fi
  20756. -BIN_SH=xpg4; export BIN_SH # for Tru64
  20757. -DUALCASE=1; export DUALCASE # for MKS sh
  20758. -
  20759. -# PATH needs CR
  20760. -# Avoid depending upon Character Ranges.
  20761. -as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  20762. -as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  20763. -as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  20764. -as_cr_digits='0123456789'
  20765. -as_cr_alnum=$as_cr_Letters$as_cr_digits
  20766. -# The user is always right.
  20767. -if test "${PATH_SEPARATOR+set}" != set; then
  20768. - echo "#! /bin/sh" >conf$$.sh
  20769. - echo "exit 0" >>conf$$.sh
  20770. - chmod +x conf$$.sh
  20771. - if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  20772. - PATH_SEPARATOR=';'
  20773. - else
  20774. - PATH_SEPARATOR=:
  20775. +as_nl='
  20776. +'
  20777. +export as_nl
  20778. +# Printing a long string crashes Solaris 7 /usr/bin/printf.
  20779. +as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  20780. +as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  20781. +as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  20782. +# Prefer a ksh shell builtin over an external printf program on Solaris,
  20783. +# but without wasting forks for bash or zsh.
  20784. +if test -z "$BASH_VERSION$ZSH_VERSION" \
  20785. + && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  20786. + as_echo='print -r --'
  20787. + as_echo_n='print -rn --'
  20788. +elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  20789. + as_echo='printf %s\n'
  20790. + as_echo_n='printf %s'
  20791. +else
  20792. + if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  20793. + as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  20794. + as_echo_n='/usr/ucb/echo -n'
  20795. + else
  20796. + as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  20797. + as_echo_n_body='eval
  20798. + arg=$1;
  20799. + case $arg in #(
  20800. + *"$as_nl"*)
  20801. + expr "X$arg" : "X\\(.*\\)$as_nl";
  20802. + arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  20803. + esac;
  20804. + expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  20805. + '
  20806. + export as_echo_n_body
  20807. + as_echo_n='sh -c $as_echo_n_body as_echo'
  20808. fi
  20809. - rm -f conf$$.sh
  20810. + export as_echo_body
  20811. + as_echo='sh -c $as_echo_body as_echo'
  20812. fi
  20813. -# Support unset when possible.
  20814. -if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  20815. - as_unset=unset
  20816. -else
  20817. - as_unset=false
  20818. +# The user is always right.
  20819. +if test "${PATH_SEPARATOR+set}" != set; then
  20820. + PATH_SEPARATOR=:
  20821. + (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  20822. + (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  20823. + PATH_SEPARATOR=';'
  20824. + }
  20825. fi
  20826. @@ -62,20 +89,18 @@
  20827. # there to prevent editors from complaining about space-tab.
  20828. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  20829. # splitting by setting IFS to empty value.)
  20830. -as_nl='
  20831. -'
  20832. IFS=" "" $as_nl"
  20833. # Find who we are. Look in the path if we contain no directory separator.
  20834. -case $0 in
  20835. +case $0 in #((
  20836. *[\\/]* ) as_myself=$0 ;;
  20837. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  20838. for as_dir in $PATH
  20839. do
  20840. IFS=$as_save_IFS
  20841. test -z "$as_dir" && as_dir=.
  20842. - test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  20843. -done
  20844. + test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  20845. + done
  20846. IFS=$as_save_IFS
  20847. ;;
  20848. @@ -86,352 +111,322 @@
  20849. as_myself=$0
  20850. fi
  20851. if test ! -f "$as_myself"; then
  20852. - echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  20853. - { (exit 1); exit 1; }
  20854. + $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  20855. + exit 1
  20856. fi
  20857. -# Work around bugs in pre-3.0 UWIN ksh.
  20858. -for as_var in ENV MAIL MAILPATH
  20859. -do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  20860. +# Unset variables that we do not need and which cause bugs (e.g. in
  20861. +# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  20862. +# suppresses any "Segmentation fault" message there. '((' could
  20863. +# trigger a bug in pdksh 5.2.14.
  20864. +for as_var in BASH_ENV ENV MAIL MAILPATH
  20865. +do eval test x\${$as_var+set} = xset \
  20866. + && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  20867. done
  20868. PS1='$ '
  20869. PS2='> '
  20870. PS4='+ '
  20871. # NLS nuisances.
  20872. -for as_var in \
  20873. - LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
  20874. - LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
  20875. - LC_TELEPHONE LC_TIME
  20876. -do
  20877. - if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
  20878. - eval $as_var=C; export $as_var
  20879. - else
  20880. - ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  20881. - fi
  20882. -done
  20883. -
  20884. -# Required to use basename.
  20885. -if expr a : '\(a\)' >/dev/null 2>&1 &&
  20886. - test "X`expr 00001 : '.*\(...\)'`" = X001; then
  20887. - as_expr=expr
  20888. -else
  20889. - as_expr=false
  20890. -fi
  20891. -
  20892. -if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  20893. - as_basename=basename
  20894. -else
  20895. - as_basename=false
  20896. -fi
  20897. -
  20898. -
  20899. -# Name of the executable.
  20900. -as_me=`$as_basename -- "$0" ||
  20901. -$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  20902. - X"$0" : 'X\(//\)$' \| \
  20903. - X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  20904. -echo X/"$0" |
  20905. - sed '/^.*\/\([^/][^/]*\)\/*$/{
  20906. - s//\1/
  20907. - q
  20908. - }
  20909. - /^X\/\(\/\/\)$/{
  20910. - s//\1/
  20911. - q
  20912. - }
  20913. - /^X\/\(\/\).*/{
  20914. - s//\1/
  20915. - q
  20916. - }
  20917. - s/.*/./; q'`
  20918. +LC_ALL=C
  20919. +export LC_ALL
  20920. +LANGUAGE=C
  20921. +export LANGUAGE
  20922. # CDPATH.
  20923. -$as_unset CDPATH
  20924. -
  20925. +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  20926. if test "x$CONFIG_SHELL" = x; then
  20927. - if (eval ":") 2>/dev/null; then
  20928. - as_have_required=yes
  20929. + as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
  20930. + emulate sh
  20931. + NULLCMD=:
  20932. + # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
  20933. + # is contrary to our usage. Disable this feature.
  20934. + alias -g '\${1+\"\$@\"}'='\"\$@\"'
  20935. + setopt NO_GLOB_SUBST
  20936. else
  20937. - as_have_required=no
  20938. + case \`(set -o) 2>/dev/null\` in #(
  20939. + *posix*) :
  20940. + set -o posix ;; #(
  20941. + *) :
  20942. + ;;
  20943. +esac
  20944. fi
  20945. -
  20946. - if test $as_have_required = yes && (eval ":
  20947. -(as_func_return () {
  20948. - (exit \$1)
  20949. -}
  20950. -as_func_success () {
  20951. - as_func_return 0
  20952. -}
  20953. -as_func_failure () {
  20954. - as_func_return 1
  20955. -}
  20956. -as_func_ret_success () {
  20957. - return 0
  20958. -}
  20959. -as_func_ret_failure () {
  20960. - return 1
  20961. -}
  20962. +"
  20963. + as_required="as_fn_return () { (exit \$1); }
  20964. +as_fn_success () { as_fn_return 0; }
  20965. +as_fn_failure () { as_fn_return 1; }
  20966. +as_fn_ret_success () { return 0; }
  20967. +as_fn_ret_failure () { return 1; }
  20968. exitcode=0
  20969. -if as_func_success; then
  20970. - :
  20971. -else
  20972. - exitcode=1
  20973. - echo as_func_success failed.
  20974. -fi
  20975. -
  20976. -if as_func_failure; then
  20977. - exitcode=1
  20978. - echo as_func_failure succeeded.
  20979. -fi
  20980. -
  20981. -if as_func_ret_success; then
  20982. - :
  20983. -else
  20984. - exitcode=1
  20985. - echo as_func_ret_success failed.
  20986. -fi
  20987. -
  20988. -if as_func_ret_failure; then
  20989. - exitcode=1
  20990. - echo as_func_ret_failure succeeded.
  20991. -fi
  20992. -
  20993. -if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
  20994. - :
  20995. +as_fn_success || { exitcode=1; echo as_fn_success failed.; }
  20996. +as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
  20997. +as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
  20998. +as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
  20999. +if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
  21000. +
  21001. +else
  21002. + exitcode=1; echo positional parameters were not saved.
  21003. +fi
  21004. +test x\$exitcode = x0 || exit 1"
  21005. + as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
  21006. + as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
  21007. + eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
  21008. + test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
  21009. +test \$(( 1 + 1 )) = 2 || exit 1"
  21010. + if (eval "$as_required") 2>/dev/null; then :
  21011. + as_have_required=yes
  21012. else
  21013. - exitcode=1
  21014. - echo positional parameters were not saved.
  21015. + as_have_required=no
  21016. fi
  21017. + if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
  21018. -test \$exitcode = 0) || { (exit 1); exit 1; }
  21019. -
  21020. -(
  21021. - as_lineno_1=\$LINENO
  21022. - as_lineno_2=\$LINENO
  21023. - test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
  21024. - test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
  21025. -") 2> /dev/null; then
  21026. - :
  21027. else
  21028. - as_candidate_shells=
  21029. - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  21030. -for as_dir in /usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  21031. + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  21032. +as_found=false
  21033. +for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  21034. do
  21035. IFS=$as_save_IFS
  21036. test -z "$as_dir" && as_dir=.
  21037. - case $as_dir in
  21038. + as_found=:
  21039. + case $as_dir in #(
  21040. /*)
  21041. for as_base in sh bash ksh sh5; do
  21042. - as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
  21043. + # Try only shells that exist, to save several forks.
  21044. + as_shell=$as_dir/$as_base
  21045. + if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  21046. + { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
  21047. + CONFIG_SHELL=$as_shell as_have_required=yes
  21048. + if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
  21049. + break 2
  21050. +fi
  21051. +fi
  21052. done;;
  21053. esac
  21054. + as_found=false
  21055. done
  21056. +$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
  21057. + { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
  21058. + CONFIG_SHELL=$SHELL as_have_required=yes
  21059. +fi; }
  21060. IFS=$as_save_IFS
  21061. - for as_shell in $as_candidate_shells $SHELL; do
  21062. - # Try only shells that exist, to save several forks.
  21063. - if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  21064. - { ("$as_shell") 2> /dev/null <<\_ASEOF
  21065. -# Be Bourne compatible
  21066. -if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  21067. - emulate sh
  21068. - NULLCMD=:
  21069. - # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  21070. - # is contrary to our usage. Disable this feature.
  21071. - alias -g '${1+"$@"}'='"$@"'
  21072. - setopt NO_GLOB_SUBST
  21073. -else
  21074. - case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
  21075. -fi
  21076. -BIN_SH=xpg4; export BIN_SH # for Tru64
  21077. -DUALCASE=1; export DUALCASE # for MKS sh
  21078. -
  21079. -:
  21080. -_ASEOF
  21081. -}; then
  21082. - CONFIG_SHELL=$as_shell
  21083. - as_have_required=yes
  21084. - if { "$as_shell" 2> /dev/null <<\_ASEOF
  21085. -# Be Bourne compatible
  21086. -if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  21087. - emulate sh
  21088. - NULLCMD=:
  21089. - # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  21090. - # is contrary to our usage. Disable this feature.
  21091. - alias -g '${1+"$@"}'='"$@"'
  21092. - setopt NO_GLOB_SUBST
  21093. -else
  21094. - case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
  21095. -fi
  21096. -BIN_SH=xpg4; export BIN_SH # for Tru64
  21097. -DUALCASE=1; export DUALCASE # for MKS sh
  21098. -
  21099. -:
  21100. -(as_func_return () {
  21101. - (exit $1)
  21102. -}
  21103. -as_func_success () {
  21104. - as_func_return 0
  21105. -}
  21106. -as_func_failure () {
  21107. - as_func_return 1
  21108. -}
  21109. -as_func_ret_success () {
  21110. - return 0
  21111. -}
  21112. -as_func_ret_failure () {
  21113. - return 1
  21114. -}
  21115. -
  21116. -exitcode=0
  21117. -if as_func_success; then
  21118. - :
  21119. -else
  21120. - exitcode=1
  21121. - echo as_func_success failed.
  21122. -fi
  21123. -
  21124. -if as_func_failure; then
  21125. - exitcode=1
  21126. - echo as_func_failure succeeded.
  21127. -fi
  21128. -
  21129. -if as_func_ret_success; then
  21130. - :
  21131. -else
  21132. - exitcode=1
  21133. - echo as_func_ret_success failed.
  21134. -fi
  21135. -
  21136. -if as_func_ret_failure; then
  21137. - exitcode=1
  21138. - echo as_func_ret_failure succeeded.
  21139. -fi
  21140. -
  21141. -if ( set x; as_func_ret_success y && test x = "$1" ); then
  21142. - :
  21143. -else
  21144. - exitcode=1
  21145. - echo positional parameters were not saved.
  21146. + if test "x$CONFIG_SHELL" != x; then :
  21147. + # We cannot yet assume a decent shell, so we have to provide a
  21148. + # neutralization value for shells without unset; and this also
  21149. + # works around shells that cannot unset nonexistent variables.
  21150. + BASH_ENV=/dev/null
  21151. + ENV=/dev/null
  21152. + (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  21153. + export CONFIG_SHELL
  21154. + exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
  21155. fi
  21156. -test $exitcode = 0) || { (exit 1); exit 1; }
  21157. -
  21158. -(
  21159. - as_lineno_1=$LINENO
  21160. - as_lineno_2=$LINENO
  21161. - test "x$as_lineno_1" != "x$as_lineno_2" &&
  21162. - test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
  21163. -
  21164. -_ASEOF
  21165. -}; then
  21166. - break
  21167. + if test x$as_have_required = xno; then :
  21168. + $as_echo "$0: This script requires a shell more modern than all"
  21169. + $as_echo "$0: the shells that I found on your system."
  21170. + if test x${ZSH_VERSION+set} = xset ; then
  21171. + $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
  21172. + $as_echo "$0: be upgraded to zsh 4.3.4 or later."
  21173. + else
  21174. + $as_echo "$0: Please tell bug-autoconf@gnu.org and
  21175. +$0: mroberto@users.sourceforge.net about your system,
  21176. +$0: including any error possibly output before this
  21177. +$0: message. Then install a modern shell, or manually run
  21178. +$0: the script under such a shell if you do have one."
  21179. + fi
  21180. + exit 1
  21181. fi
  21182. -
  21183. fi
  21184. -
  21185. - done
  21186. -
  21187. - if test "x$CONFIG_SHELL" != x; then
  21188. - for as_var in BASH_ENV ENV
  21189. - do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  21190. - done
  21191. - export CONFIG_SHELL
  21192. - exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
  21193. fi
  21194. +SHELL=${CONFIG_SHELL-/bin/sh}
  21195. +export SHELL
  21196. +# Unset more variables known to interfere with behavior of common tools.
  21197. +CLICOLOR_FORCE= GREP_OPTIONS=
  21198. +unset CLICOLOR_FORCE GREP_OPTIONS
  21199. +## --------------------- ##
  21200. +## M4sh Shell Functions. ##
  21201. +## --------------------- ##
  21202. +# as_fn_unset VAR
  21203. +# ---------------
  21204. +# Portably unset VAR.
  21205. +as_fn_unset ()
  21206. +{
  21207. + { eval $1=; unset $1;}
  21208. +}
  21209. +as_unset=as_fn_unset
  21210. +
  21211. +# as_fn_set_status STATUS
  21212. +# -----------------------
  21213. +# Set $? to STATUS, without forking.
  21214. +as_fn_set_status ()
  21215. +{
  21216. + return $1
  21217. +} # as_fn_set_status
  21218. +
  21219. +# as_fn_exit STATUS
  21220. +# -----------------
  21221. +# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  21222. +as_fn_exit ()
  21223. +{
  21224. + set +e
  21225. + as_fn_set_status $1
  21226. + exit $1
  21227. +} # as_fn_exit
  21228. +
  21229. +# as_fn_mkdir_p
  21230. +# -------------
  21231. +# Create "$as_dir" as a directory, including parents if necessary.
  21232. +as_fn_mkdir_p ()
  21233. +{
  21234. - if test $as_have_required = no; then
  21235. - echo This script requires a shell more modern than all the
  21236. - echo shells that I found on your system. Please install a
  21237. - echo modern shell, or manually run the script under such a
  21238. - echo shell if you do have one.
  21239. - { (exit 1); exit 1; }
  21240. -fi
  21241. -
  21242. + case $as_dir in #(
  21243. + -*) as_dir=./$as_dir;;
  21244. + esac
  21245. + test -d "$as_dir" || eval $as_mkdir_p || {
  21246. + as_dirs=
  21247. + while :; do
  21248. + case $as_dir in #(
  21249. + *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  21250. + *) as_qdir=$as_dir;;
  21251. + esac
  21252. + as_dirs="'$as_qdir' $as_dirs"
  21253. + as_dir=`$as_dirname -- "$as_dir" ||
  21254. +$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  21255. + X"$as_dir" : 'X\(//\)[^/]' \| \
  21256. + X"$as_dir" : 'X\(//\)$' \| \
  21257. + X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  21258. +$as_echo X"$as_dir" |
  21259. + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  21260. + s//\1/
  21261. + q
  21262. + }
  21263. + /^X\(\/\/\)[^/].*/{
  21264. + s//\1/
  21265. + q
  21266. + }
  21267. + /^X\(\/\/\)$/{
  21268. + s//\1/
  21269. + q
  21270. + }
  21271. + /^X\(\/\).*/{
  21272. + s//\1/
  21273. + q
  21274. + }
  21275. + s/.*/./; q'`
  21276. + test -d "$as_dir" && break
  21277. + done
  21278. + test -z "$as_dirs" || eval "mkdir $as_dirs"
  21279. + } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
  21280. -fi
  21281. -fi
  21282. +} # as_fn_mkdir_p
  21283. +# as_fn_append VAR VALUE
  21284. +# ----------------------
  21285. +# Append the text in VALUE to the end of the definition contained in VAR. Take
  21286. +# advantage of any shell optimizations that allow amortized linear growth over
  21287. +# repeated appends, instead of the typical quadratic growth present in naive
  21288. +# implementations.
  21289. +if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  21290. + eval 'as_fn_append ()
  21291. + {
  21292. + eval $1+=\$2
  21293. + }'
  21294. +else
  21295. + as_fn_append ()
  21296. + {
  21297. + eval $1=\$$1\$2
  21298. + }
  21299. +fi # as_fn_append
  21300. +# as_fn_arith ARG...
  21301. +# ------------------
  21302. +# Perform arithmetic evaluation on the ARGs, and store the result in the
  21303. +# global $as_val. Take advantage of shells that can avoid forks. The arguments
  21304. +# must be portable across $(()) and expr.
  21305. +if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  21306. + eval 'as_fn_arith ()
  21307. + {
  21308. + as_val=$(( $* ))
  21309. + }'
  21310. +else
  21311. + as_fn_arith ()
  21312. + {
  21313. + as_val=`expr "$@" || test $? -eq 1`
  21314. + }
  21315. +fi # as_fn_arith
  21316. -(eval "as_func_return () {
  21317. - (exit \$1)
  21318. -}
  21319. -as_func_success () {
  21320. - as_func_return 0
  21321. -}
  21322. -as_func_failure () {
  21323. - as_func_return 1
  21324. -}
  21325. -as_func_ret_success () {
  21326. - return 0
  21327. -}
  21328. -as_func_ret_failure () {
  21329. - return 1
  21330. -}
  21331. +# as_fn_error ERROR [LINENO LOG_FD]
  21332. +# ---------------------------------
  21333. +# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  21334. +# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  21335. +# script with status $?, using 1 if that was 0.
  21336. +as_fn_error ()
  21337. +{
  21338. + as_status=$?; test $as_status -eq 0 && as_status=1
  21339. + if test "$3"; then
  21340. + as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  21341. + $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
  21342. + fi
  21343. + $as_echo "$as_me: error: $1" >&2
  21344. + as_fn_exit $as_status
  21345. +} # as_fn_error
  21346. -exitcode=0
  21347. -if as_func_success; then
  21348. - :
  21349. +if expr a : '\(a\)' >/dev/null 2>&1 &&
  21350. + test "X`expr 00001 : '.*\(...\)'`" = X001; then
  21351. + as_expr=expr
  21352. else
  21353. - exitcode=1
  21354. - echo as_func_success failed.
  21355. -fi
  21356. -
  21357. -if as_func_failure; then
  21358. - exitcode=1
  21359. - echo as_func_failure succeeded.
  21360. + as_expr=false
  21361. fi
  21362. -if as_func_ret_success; then
  21363. - :
  21364. +if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  21365. + as_basename=basename
  21366. else
  21367. - exitcode=1
  21368. - echo as_func_ret_success failed.
  21369. -fi
  21370. -
  21371. -if as_func_ret_failure; then
  21372. - exitcode=1
  21373. - echo as_func_ret_failure succeeded.
  21374. + as_basename=false
  21375. fi
  21376. -if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
  21377. - :
  21378. +if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  21379. + as_dirname=dirname
  21380. else
  21381. - exitcode=1
  21382. - echo positional parameters were not saved.
  21383. + as_dirname=false
  21384. fi
  21385. -test \$exitcode = 0") || {
  21386. - echo No shell found that supports shell functions.
  21387. - echo Please tell autoconf@gnu.org about your system,
  21388. - echo including any error possibly output before this
  21389. - echo message
  21390. -}
  21391. +as_me=`$as_basename -- "$0" ||
  21392. +$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  21393. + X"$0" : 'X\(//\)$' \| \
  21394. + X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  21395. +$as_echo X/"$0" |
  21396. + sed '/^.*\/\([^/][^/]*\)\/*$/{
  21397. + s//\1/
  21398. + q
  21399. + }
  21400. + /^X\/\(\/\/\)$/{
  21401. + s//\1/
  21402. + q
  21403. + }
  21404. + /^X\/\(\/\).*/{
  21405. + s//\1/
  21406. + q
  21407. + }
  21408. + s/.*/./; q'`
  21409. +# Avoid depending upon Character Ranges.
  21410. +as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  21411. +as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  21412. +as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  21413. +as_cr_digits='0123456789'
  21414. +as_cr_alnum=$as_cr_Letters$as_cr_digits
  21415. - as_lineno_1=$LINENO
  21416. - as_lineno_2=$LINENO
  21417. - test "x$as_lineno_1" != "x$as_lineno_2" &&
  21418. - test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
  21419. -
  21420. - # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  21421. - # uniformly replaced by the line number. The first 'sed' inserts a
  21422. - # line-number line after each line using $LINENO; the second 'sed'
  21423. - # does the real work. The second script uses 'N' to pair each
  21424. - # line-number line with the line containing $LINENO, and appends
  21425. - # trailing '-' during substitution so that $LINENO is not a special
  21426. - # case at line end.
  21427. - # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  21428. - # scripts with optimization help from Paolo Bonzini. Blame Lee
  21429. - # E. McMahon (1931-1989) for sed's syntax. :-)
  21430. + as_lineno_1=$LINENO as_lineno_1a=$LINENO
  21431. + as_lineno_2=$LINENO as_lineno_2a=$LINENO
  21432. + eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
  21433. + test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
  21434. + # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
  21435. sed -n '
  21436. p
  21437. /[$]LINENO/=
  21438. @@ -448,8 +443,7 @@
  21439. s/-\n.*//
  21440. ' >$as_me.lineno &&
  21441. chmod +x "$as_me.lineno" ||
  21442. - { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
  21443. - { (exit 1); exit 1; }; }
  21444. + { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
  21445. # Don't try to exec as it changes $[0], causing all sort of problems
  21446. # (the dirname of $[0] is not the place where we might find the
  21447. @@ -459,49 +453,40 @@
  21448. exit
  21449. }
  21450. -
  21451. -if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  21452. - as_dirname=dirname
  21453. -else
  21454. - as_dirname=false
  21455. -fi
  21456. -
  21457. ECHO_C= ECHO_N= ECHO_T=
  21458. -case `echo -n x` in
  21459. +case `echo -n x` in #(((((
  21460. -n*)
  21461. - case `echo 'x\c'` in
  21462. + case `echo 'xy\c'` in
  21463. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  21464. - *) ECHO_C='\c';;
  21465. + xy) ECHO_C='\c';;
  21466. + *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  21467. + ECHO_T=' ';;
  21468. esac;;
  21469. *)
  21470. ECHO_N='-n';;
  21471. esac
  21472. -if expr a : '\(a\)' >/dev/null 2>&1 &&
  21473. - test "X`expr 00001 : '.*\(...\)'`" = X001; then
  21474. - as_expr=expr
  21475. -else
  21476. - as_expr=false
  21477. -fi
  21478. -
  21479. rm -f conf$$ conf$$.exe conf$$.file
  21480. if test -d conf$$.dir; then
  21481. rm -f conf$$.dir/conf$$.file
  21482. else
  21483. rm -f conf$$.dir
  21484. - mkdir conf$$.dir
  21485. + mkdir conf$$.dir 2>/dev/null
  21486. fi
  21487. -echo >conf$$.file
  21488. -if ln -s conf$$.file conf$$ 2>/dev/null; then
  21489. - as_ln_s='ln -s'
  21490. - # ... but there are two gotchas:
  21491. - # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  21492. - # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  21493. - # In both cases, we have to default to `cp -p'.
  21494. - ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  21495. +if (echo >conf$$.file) 2>/dev/null; then
  21496. + if ln -s conf$$.file conf$$ 2>/dev/null; then
  21497. + as_ln_s='ln -s'
  21498. + # ... but there are two gotchas:
  21499. + # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  21500. + # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  21501. + # In both cases, we have to default to `cp -p'.
  21502. + ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  21503. + as_ln_s='cp -p'
  21504. + elif ln conf$$.file conf$$ 2>/dev/null; then
  21505. + as_ln_s=ln
  21506. + else
  21507. as_ln_s='cp -p'
  21508. -elif ln conf$$.file conf$$ 2>/dev/null; then
  21509. - as_ln_s=ln
  21510. + fi
  21511. else
  21512. as_ln_s='cp -p'
  21513. fi
  21514. @@ -509,25 +494,34 @@
  21515. rmdir conf$$.dir 2>/dev/null
  21516. if mkdir -p . 2>/dev/null; then
  21517. - as_mkdir_p=:
  21518. + as_mkdir_p='mkdir -p "$as_dir"'
  21519. else
  21520. test -d ./-p && rmdir ./-p
  21521. as_mkdir_p=false
  21522. fi
  21523. -# Find out whether ``test -x'' works. Don't use a zero-byte file, as
  21524. -# systems may use methods other than mode bits to determine executability.
  21525. -cat >conf$$.file <<_ASEOF
  21526. -#! /bin/sh
  21527. -exit 0
  21528. -_ASEOF
  21529. -chmod +x conf$$.file
  21530. -if test -x conf$$.file >/dev/null 2>&1; then
  21531. - as_executable_p="test -x"
  21532. +if test -x / >/dev/null 2>&1; then
  21533. + as_test_x='test -x'
  21534. else
  21535. - as_executable_p=:
  21536. + if ls -dL / >/dev/null 2>&1; then
  21537. + as_ls_L_option=L
  21538. + else
  21539. + as_ls_L_option=
  21540. + fi
  21541. + as_test_x='
  21542. + eval sh -c '\''
  21543. + if test -d "$1"; then
  21544. + test -d "$1/.";
  21545. + else
  21546. + case $1 in #(
  21547. + -*)set "./$1";;
  21548. + esac;
  21549. + case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
  21550. + ???[sx]*):;;*)false;;esac;fi
  21551. + '\'' sh
  21552. + '
  21553. fi
  21554. -rm -f conf$$.file
  21555. +as_executable_p=$as_test_x
  21556. # Sed expression to map a string onto a valid CPP name.
  21557. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  21558. @@ -537,26 +531,25 @@
  21559. -
  21560. # Check that we are running under the correct shell.
  21561. SHELL=${CONFIG_SHELL-/bin/sh}
  21562. -case X$ECHO in
  21563. +case X$lt_ECHO in
  21564. X*--fallback-echo)
  21565. # Remove one level of quotation (which was required for Make).
  21566. - ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
  21567. + ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
  21568. ;;
  21569. esac
  21570. -echo=${ECHO-echo}
  21571. +ECHO=${lt_ECHO-echo}
  21572. if test "X$1" = X--no-reexec; then
  21573. # Discard the --no-reexec flag, and continue.
  21574. shift
  21575. elif test "X$1" = X--fallback-echo; then
  21576. # Avoid inline document here, it may be left over
  21577. :
  21578. -elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
  21579. - # Yippee, $echo works!
  21580. +elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
  21581. + # Yippee, $ECHO works!
  21582. :
  21583. else
  21584. # Restart under the correct shell.
  21585. @@ -566,9 +559,9 @@
  21586. if test "X$1" = X--fallback-echo; then
  21587. # used as fallback echo
  21588. shift
  21589. - cat <<EOF
  21590. + cat <<_LT_EOF
  21591. $*
  21592. -EOF
  21593. +_LT_EOF
  21594. exit 0
  21595. fi
  21596. @@ -576,122 +569,118 @@
  21597. # if CDPATH is set.
  21598. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  21599. -if test -z "$ECHO"; then
  21600. -if test "X${echo_test_string+set}" != Xset; then
  21601. -# find a string as large as possible, as long as the shell can cope with it
  21602. - for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
  21603. - # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
  21604. - if (echo_test_string=`eval $cmd`) 2>/dev/null &&
  21605. - echo_test_string=`eval $cmd` &&
  21606. - (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
  21607. - then
  21608. - break
  21609. - fi
  21610. - done
  21611. -fi
  21612. +if test -z "$lt_ECHO"; then
  21613. + if test "X${echo_test_string+set}" != Xset; then
  21614. + # find a string as large as possible, as long as the shell can cope with it
  21615. + for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
  21616. + # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
  21617. + if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
  21618. + { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
  21619. + then
  21620. + break
  21621. + fi
  21622. + done
  21623. + fi
  21624. -if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
  21625. - echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
  21626. - test "X$echo_testing_string" = "X$echo_test_string"; then
  21627. - :
  21628. -else
  21629. - # The Solaris, AIX, and Digital Unix default echo programs unquote
  21630. - # backslashes. This makes it impossible to quote backslashes using
  21631. - # echo "$something" | sed 's/\\/\\\\/g'
  21632. - #
  21633. - # So, first we look for a working echo in the user's PATH.
  21634. + if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
  21635. + echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
  21636. + test "X$echo_testing_string" = "X$echo_test_string"; then
  21637. + :
  21638. + else
  21639. + # The Solaris, AIX, and Digital Unix default echo programs unquote
  21640. + # backslashes. This makes it impossible to quote backslashes using
  21641. + # echo "$something" | sed 's/\\/\\\\/g'
  21642. + #
  21643. + # So, first we look for a working echo in the user's PATH.
  21644. - lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  21645. - for dir in $PATH /usr/ucb; do
  21646. + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  21647. + for dir in $PATH /usr/ucb; do
  21648. + IFS="$lt_save_ifs"
  21649. + if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
  21650. + test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
  21651. + echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
  21652. + test "X$echo_testing_string" = "X$echo_test_string"; then
  21653. + ECHO="$dir/echo"
  21654. + break
  21655. + fi
  21656. + done
  21657. IFS="$lt_save_ifs"
  21658. - if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
  21659. - test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
  21660. - echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
  21661. - test "X$echo_testing_string" = "X$echo_test_string"; then
  21662. - echo="$dir/echo"
  21663. - break
  21664. - fi
  21665. - done
  21666. - IFS="$lt_save_ifs"
  21667. - if test "X$echo" = Xecho; then
  21668. - # We didn't find a better echo, so look for alternatives.
  21669. - if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
  21670. - echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
  21671. - test "X$echo_testing_string" = "X$echo_test_string"; then
  21672. - # This shell has a builtin print -r that does the trick.
  21673. - echo='print -r'
  21674. - elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
  21675. - test "X$CONFIG_SHELL" != X/bin/ksh; then
  21676. - # If we have ksh, try running configure again with it.
  21677. - ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
  21678. - export ORIGINAL_CONFIG_SHELL
  21679. - CONFIG_SHELL=/bin/ksh
  21680. - export CONFIG_SHELL
  21681. - exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
  21682. - else
  21683. - # Try using printf.
  21684. - echo='printf %s\n'
  21685. - if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
  21686. - echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
  21687. - test "X$echo_testing_string" = "X$echo_test_string"; then
  21688. - # Cool, printf works
  21689. - :
  21690. - elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
  21691. - test "X$echo_testing_string" = 'X\t' &&
  21692. - echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  21693. - test "X$echo_testing_string" = "X$echo_test_string"; then
  21694. - CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
  21695. - export CONFIG_SHELL
  21696. - SHELL="$CONFIG_SHELL"
  21697. - export SHELL
  21698. - echo="$CONFIG_SHELL $0 --fallback-echo"
  21699. - elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
  21700. - test "X$echo_testing_string" = 'X\t' &&
  21701. - echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  21702. - test "X$echo_testing_string" = "X$echo_test_string"; then
  21703. - echo="$CONFIG_SHELL $0 --fallback-echo"
  21704. + if test "X$ECHO" = Xecho; then
  21705. + # We didn't find a better echo, so look for alternatives.
  21706. + if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
  21707. + echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
  21708. + test "X$echo_testing_string" = "X$echo_test_string"; then
  21709. + # This shell has a builtin print -r that does the trick.
  21710. + ECHO='print -r'
  21711. + elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
  21712. + test "X$CONFIG_SHELL" != X/bin/ksh; then
  21713. + # If we have ksh, try running configure again with it.
  21714. + ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
  21715. + export ORIGINAL_CONFIG_SHELL
  21716. + CONFIG_SHELL=/bin/ksh
  21717. + export CONFIG_SHELL
  21718. + exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
  21719. else
  21720. - # maybe with a smaller string...
  21721. - prev=:
  21722. + # Try using printf.
  21723. + ECHO='printf %s\n'
  21724. + if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
  21725. + echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
  21726. + test "X$echo_testing_string" = "X$echo_test_string"; then
  21727. + # Cool, printf works
  21728. + :
  21729. + elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
  21730. + test "X$echo_testing_string" = 'X\t' &&
  21731. + echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  21732. + test "X$echo_testing_string" = "X$echo_test_string"; then
  21733. + CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
  21734. + export CONFIG_SHELL
  21735. + SHELL="$CONFIG_SHELL"
  21736. + export SHELL
  21737. + ECHO="$CONFIG_SHELL $0 --fallback-echo"
  21738. + elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
  21739. + test "X$echo_testing_string" = 'X\t' &&
  21740. + echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  21741. + test "X$echo_testing_string" = "X$echo_test_string"; then
  21742. + ECHO="$CONFIG_SHELL $0 --fallback-echo"
  21743. + else
  21744. + # maybe with a smaller string...
  21745. + prev=:
  21746. - for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
  21747. - if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
  21748. - then
  21749. - break
  21750. - fi
  21751. - prev="$cmd"
  21752. - done
  21753. + for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
  21754. + if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
  21755. + then
  21756. + break
  21757. + fi
  21758. + prev="$cmd"
  21759. + done
  21760. - if test "$prev" != 'sed 50q "$0"'; then
  21761. - echo_test_string=`eval $prev`
  21762. - export echo_test_string
  21763. - exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
  21764. - else
  21765. - # Oops. We lost completely, so just stick with echo.
  21766. - echo=echo
  21767. - fi
  21768. + if test "$prev" != 'sed 50q "$0"'; then
  21769. + echo_test_string=`eval $prev`
  21770. + export echo_test_string
  21771. + exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
  21772. + else
  21773. + # Oops. We lost completely, so just stick with echo.
  21774. + ECHO=echo
  21775. + fi
  21776. + fi
  21777. fi
  21778. fi
  21779. fi
  21780. fi
  21781. -fi
  21782. # Copy echo and quote the copy suitably for passing to libtool from
  21783. # the Makefile, instead of quoting the original, which is used later.
  21784. -ECHO=$echo
  21785. -if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
  21786. - ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
  21787. +lt_ECHO=$ECHO
  21788. +if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
  21789. + lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
  21790. fi
  21791. -tagnames=${tagnames+${tagnames},}CXX
  21792. -
  21793. -tagnames=${tagnames+${tagnames},}F77
  21794. -
  21795. -exec 7<&0 </dev/null 6>&1
  21796. +test -n "$DJDIR" || exec 7<&0 </dev/null
  21797. +exec 6>&1
  21798. # Name of the host.
  21799. # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
  21800. @@ -709,7 +698,6 @@
  21801. subdirs=
  21802. MFLAGS=
  21803. MAKEFLAGS=
  21804. -SHELL=${CONFIG_SHELL-/bin/sh}
  21805. # Identity of this package.
  21806. PACKAGE_NAME='libupnp'
  21807. @@ -717,231 +705,253 @@
  21808. PACKAGE_VERSION='1.6.6'
  21809. PACKAGE_STRING='libupnp 1.6.6'
  21810. PACKAGE_BUGREPORT='mroberto@users.sourceforge.net'
  21811. +PACKAGE_URL=''
  21812. ac_unique_file="upnp/inc/upnp.h"
  21813. # Factoring default headers for most tests.
  21814. ac_includes_default="\
  21815. #include <stdio.h>
  21816. -#if HAVE_SYS_TYPES_H
  21817. +#ifdef HAVE_SYS_TYPES_H
  21818. # include <sys/types.h>
  21819. #endif
  21820. -#if HAVE_SYS_STAT_H
  21821. +#ifdef HAVE_SYS_STAT_H
  21822. # include <sys/stat.h>
  21823. #endif
  21824. -#if STDC_HEADERS
  21825. +#ifdef STDC_HEADERS
  21826. # include <stdlib.h>
  21827. # include <stddef.h>
  21828. #else
  21829. -# if HAVE_STDLIB_H
  21830. +# ifdef HAVE_STDLIB_H
  21831. # include <stdlib.h>
  21832. # endif
  21833. #endif
  21834. -#if HAVE_STRING_H
  21835. -# if !STDC_HEADERS && HAVE_MEMORY_H
  21836. +#ifdef HAVE_STRING_H
  21837. +# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  21838. # include <memory.h>
  21839. # endif
  21840. # include <string.h>
  21841. #endif
  21842. -#if HAVE_STRINGS_H
  21843. +#ifdef HAVE_STRINGS_H
  21844. # include <strings.h>
  21845. #endif
  21846. -#if HAVE_INTTYPES_H
  21847. +#ifdef HAVE_INTTYPES_H
  21848. # include <inttypes.h>
  21849. #endif
  21850. -#if HAVE_STDINT_H
  21851. +#ifdef HAVE_STDINT_H
  21852. # include <stdint.h>
  21853. #endif
  21854. -#if HAVE_UNISTD_H
  21855. +#ifdef HAVE_UNISTD_H
  21856. # include <unistd.h>
  21857. #endif"
  21858. -ac_subst_vars='SHELL
  21859. -PATH_SEPARATOR
  21860. -PACKAGE_NAME
  21861. -PACKAGE_TARNAME
  21862. -PACKAGE_VERSION
  21863. -PACKAGE_STRING
  21864. -PACKAGE_BUGREPORT
  21865. -exec_prefix
  21866. -prefix
  21867. -program_transform_name
  21868. -bindir
  21869. -sbindir
  21870. -libexecdir
  21871. -datarootdir
  21872. -datadir
  21873. -sysconfdir
  21874. -sharedstatedir
  21875. -localstatedir
  21876. -includedir
  21877. -oldincludedir
  21878. -docdir
  21879. -infodir
  21880. -htmldir
  21881. -dvidir
  21882. -pdfdir
  21883. -psdir
  21884. -libdir
  21885. -localedir
  21886. -mandir
  21887. -DEFS
  21888. -ECHO_C
  21889. -ECHO_N
  21890. -ECHO_T
  21891. -LIBS
  21892. -build_alias
  21893. -host_alias
  21894. -target_alias
  21895. -LT_VERSION_IXML
  21896. -LT_VERSION_THREADUTIL
  21897. -LT_VERSION_UPNP
  21898. -INSTALL_PROGRAM
  21899. -INSTALL_SCRIPT
  21900. -INSTALL_DATA
  21901. -CYGPATH_W
  21902. -PACKAGE
  21903. -VERSION
  21904. -ACLOCAL
  21905. -AUTOCONF
  21906. -AUTOMAKE
  21907. -AUTOHEADER
  21908. -MAKEINFO
  21909. -install_sh
  21910. -STRIP
  21911. -INSTALL_STRIP_PROGRAM
  21912. -mkdir_p
  21913. -AWK
  21914. -SET_MAKE
  21915. -am__leading_dot
  21916. -AMTAR
  21917. -am__tar
  21918. -am__untar
  21919. -build
  21920. -build_cpu
  21921. -build_vendor
  21922. -build_os
  21923. -host
  21924. -host_cpu
  21925. -host_vendor
  21926. -host_os
  21927. -ENABLE_DEBUG_TRUE
  21928. -ENABLE_DEBUG_FALSE
  21929. -ENABLE_CLIENT_TRUE
  21930. -ENABLE_CLIENT_FALSE
  21931. -ENABLE_DEVICE_TRUE
  21932. -ENABLE_DEVICE_FALSE
  21933. -ENABLE_WEBSERVER_TRUE
  21934. -ENABLE_WEBSERVER_FALSE
  21935. -ENABLE_TOOLS_TRUE
  21936. -ENABLE_TOOLS_FALSE
  21937. -ENABLE_SAMPLES_TRUE
  21938. -ENABLE_SAMPLES_FALSE
  21939. -WITH_DOCUMENTATION_TRUE
  21940. -WITH_DOCUMENTATION_FALSE
  21941. -CC
  21942. -CFLAGS
  21943. -LDFLAGS
  21944. -CPPFLAGS
  21945. -ac_ct_CC
  21946. -EXEEXT
  21947. -OBJEXT
  21948. -DEPDIR
  21949. -am__include
  21950. -am__quote
  21951. -AMDEP_TRUE
  21952. -AMDEP_FALSE
  21953. -AMDEPBACKSLASH
  21954. -CCDEPMODE
  21955. -am__fastdepCC_TRUE
  21956. -am__fastdepCC_FALSE
  21957. -GREP
  21958. -EGREP
  21959. -LN_S
  21960. -ECHO
  21961. -AR
  21962. -RANLIB
  21963. +ac_subst_vars='am__EXEEXT_FALSE
  21964. +am__EXEEXT_TRUE
  21965. +LTLIBOBJS
  21966. +LIBOBJS
  21967. +PTHREAD_CFLAGS
  21968. +PTHREAD_LIBS
  21969. +PTHREAD_CC
  21970. +acx_pthread_config
  21971. CPP
  21972. -CXX
  21973. -CXXFLAGS
  21974. -ac_ct_CXX
  21975. -CXXDEPMODE
  21976. -am__fastdepCXX_TRUE
  21977. -am__fastdepCXX_FALSE
  21978. -CXXCPP
  21979. -F77
  21980. -FFLAGS
  21981. -ac_ct_F77
  21982. +OTOOL64
  21983. +OTOOL
  21984. +LIPO
  21985. +NMEDIT
  21986. +DSYMUTIL
  21987. +lt_ECHO
  21988. +RANLIB
  21989. +AR
  21990. +OBJDUMP
  21991. +LN_S
  21992. +NM
  21993. +ac_ct_DUMPBIN
  21994. +DUMPBIN
  21995. +LD
  21996. +FGREP
  21997. +EGREP
  21998. +GREP
  21999. +SED
  22000. LIBTOOL
  22001. -acx_pthread_config
  22002. -PTHREAD_CC
  22003. -PTHREAD_LIBS
  22004. -PTHREAD_CFLAGS
  22005. -LIBOBJS
  22006. -LTLIBOBJS'
  22007. -ac_subst_files=''
  22008. - ac_precious_vars='build_alias
  22009. -host_alias
  22010. -target_alias
  22011. -CC
  22012. -CFLAGS
  22013. -LDFLAGS
  22014. +am__fastdepCC_FALSE
  22015. +am__fastdepCC_TRUE
  22016. +CCDEPMODE
  22017. +AMDEPBACKSLASH
  22018. +AMDEP_FALSE
  22019. +AMDEP_TRUE
  22020. +am__quote
  22021. +am__include
  22022. +DEPDIR
  22023. +OBJEXT
  22024. +EXEEXT
  22025. +ac_ct_CC
  22026. CPPFLAGS
  22027. -CPP
  22028. -CXX
  22029. -CXXFLAGS
  22030. -CCC
  22031. -CXXCPP
  22032. -F77
  22033. -FFLAGS'
  22034. -
  22035. -
  22036. -# Initialize some variables set by options.
  22037. -ac_init_help=
  22038. -ac_init_version=false
  22039. -# The variables have the same names as the options, with
  22040. -# dashes changed to underlines.
  22041. -cache_file=/dev/null
  22042. -exec_prefix=NONE
  22043. -no_create=
  22044. -no_recursion=
  22045. -prefix=NONE
  22046. -program_prefix=NONE
  22047. -program_suffix=NONE
  22048. -program_transform_name=s,x,x,
  22049. -silent=
  22050. -site=
  22051. -srcdir=
  22052. -verbose=
  22053. -x_includes=NONE
  22054. -x_libraries=NONE
  22055. -
  22056. -# Installation directory options.
  22057. -# These are left unexpanded so users can "make install exec_prefix=/foo"
  22058. -# and all the variables that are supposed to be based on exec_prefix
  22059. -# by default will actually change.
  22060. -# Use braces instead of parens because sh, perl, etc. also accept them.
  22061. -# (The list follows the same order as the GNU Coding Standards.)
  22062. -bindir='${exec_prefix}/bin'
  22063. -sbindir='${exec_prefix}/sbin'
  22064. -libexecdir='${exec_prefix}/libexec'
  22065. -datarootdir='${prefix}/share'
  22066. -datadir='${datarootdir}'
  22067. -sysconfdir='${prefix}/etc'
  22068. -sharedstatedir='${prefix}/com'
  22069. -localstatedir='${prefix}/var'
  22070. -includedir='${prefix}/include'
  22071. -oldincludedir='/usr/include'
  22072. -docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
  22073. -infodir='${datarootdir}/info'
  22074. -htmldir='${docdir}'
  22075. -dvidir='${docdir}'
  22076. -pdfdir='${docdir}'
  22077. -psdir='${docdir}'
  22078. -libdir='${exec_prefix}/lib'
  22079. -localedir='${datarootdir}/locale'
  22080. -mandir='${datarootdir}/man'
  22081. -
  22082. -ac_prev=
  22083. +LDFLAGS
  22084. +CFLAGS
  22085. +CC
  22086. +WITH_DOCUMENTATION_FALSE
  22087. +WITH_DOCUMENTATION_TRUE
  22088. +ENABLE_SAMPLES_FALSE
  22089. +ENABLE_SAMPLES_TRUE
  22090. +ENABLE_TOOLS_FALSE
  22091. +ENABLE_TOOLS_TRUE
  22092. +ENABLE_WEBSERVER_FALSE
  22093. +ENABLE_WEBSERVER_TRUE
  22094. +ENABLE_DEVICE_FALSE
  22095. +ENABLE_DEVICE_TRUE
  22096. +ENABLE_CLIENT_FALSE
  22097. +ENABLE_CLIENT_TRUE
  22098. +ENABLE_DEBUG_FALSE
  22099. +ENABLE_DEBUG_TRUE
  22100. +host_os
  22101. +host_vendor
  22102. +host_cpu
  22103. +host
  22104. +build_os
  22105. +build_vendor
  22106. +build_cpu
  22107. +build
  22108. +am__untar
  22109. +am__tar
  22110. +AMTAR
  22111. +am__leading_dot
  22112. +SET_MAKE
  22113. +AWK
  22114. +mkdir_p
  22115. +MKDIR_P
  22116. +INSTALL_STRIP_PROGRAM
  22117. +STRIP
  22118. +install_sh
  22119. +MAKEINFO
  22120. +AUTOHEADER
  22121. +AUTOMAKE
  22122. +AUTOCONF
  22123. +ACLOCAL
  22124. +VERSION
  22125. +PACKAGE
  22126. +CYGPATH_W
  22127. +am__isrc
  22128. +INSTALL_DATA
  22129. +INSTALL_SCRIPT
  22130. +INSTALL_PROGRAM
  22131. +LT_VERSION_UPNP
  22132. +LT_VERSION_THREADUTIL
  22133. +LT_VERSION_IXML
  22134. +target_alias
  22135. +host_alias
  22136. +build_alias
  22137. +LIBS
  22138. +ECHO_T
  22139. +ECHO_N
  22140. +ECHO_C
  22141. +DEFS
  22142. +mandir
  22143. +localedir
  22144. +libdir
  22145. +psdir
  22146. +pdfdir
  22147. +dvidir
  22148. +htmldir
  22149. +infodir
  22150. +docdir
  22151. +oldincludedir
  22152. +includedir
  22153. +localstatedir
  22154. +sharedstatedir
  22155. +sysconfdir
  22156. +datadir
  22157. +datarootdir
  22158. +libexecdir
  22159. +sbindir
  22160. +bindir
  22161. +program_transform_name
  22162. +prefix
  22163. +exec_prefix
  22164. +PACKAGE_URL
  22165. +PACKAGE_BUGREPORT
  22166. +PACKAGE_STRING
  22167. +PACKAGE_VERSION
  22168. +PACKAGE_TARNAME
  22169. +PACKAGE_NAME
  22170. +PATH_SEPARATOR
  22171. +SHELL'
  22172. +ac_subst_files=''
  22173. +ac_user_opts='
  22174. +enable_option_checking
  22175. +enable_debug
  22176. +enable_client
  22177. +enable_device
  22178. +enable_webserver
  22179. +enable_tools
  22180. +enable_samples
  22181. +with_documentation
  22182. +enable_dependency_tracking
  22183. +enable_shared
  22184. +enable_static
  22185. +with_pic
  22186. +enable_fast_install
  22187. +with_gnu_ld
  22188. +enable_libtool_lock
  22189. +'
  22190. + ac_precious_vars='build_alias
  22191. +host_alias
  22192. +target_alias
  22193. +CC
  22194. +CFLAGS
  22195. +LDFLAGS
  22196. +LIBS
  22197. +CPPFLAGS
  22198. +CPP'
  22199. +
  22200. +
  22201. +# Initialize some variables set by options.
  22202. +ac_init_help=
  22203. +ac_init_version=false
  22204. +ac_unrecognized_opts=
  22205. +ac_unrecognized_sep=
  22206. +# The variables have the same names as the options, with
  22207. +# dashes changed to underlines.
  22208. +cache_file=/dev/null
  22209. +exec_prefix=NONE
  22210. +no_create=
  22211. +no_recursion=
  22212. +prefix=NONE
  22213. +program_prefix=NONE
  22214. +program_suffix=NONE
  22215. +program_transform_name=s,x,x,
  22216. +silent=
  22217. +site=
  22218. +srcdir=
  22219. +verbose=
  22220. +x_includes=NONE
  22221. +x_libraries=NONE
  22222. +
  22223. +# Installation directory options.
  22224. +# These are left unexpanded so users can "make install exec_prefix=/foo"
  22225. +# and all the variables that are supposed to be based on exec_prefix
  22226. +# by default will actually change.
  22227. +# Use braces instead of parens because sh, perl, etc. also accept them.
  22228. +# (The list follows the same order as the GNU Coding Standards.)
  22229. +bindir='${exec_prefix}/bin'
  22230. +sbindir='${exec_prefix}/sbin'
  22231. +libexecdir='${exec_prefix}/libexec'
  22232. +datarootdir='${prefix}/share'
  22233. +datadir='${datarootdir}'
  22234. +sysconfdir='${prefix}/etc'
  22235. +sharedstatedir='${prefix}/com'
  22236. +localstatedir='${prefix}/var'
  22237. +includedir='${prefix}/include'
  22238. +oldincludedir='/usr/include'
  22239. +docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
  22240. +infodir='${datarootdir}/info'
  22241. +htmldir='${docdir}'
  22242. +dvidir='${docdir}'
  22243. +pdfdir='${docdir}'
  22244. +psdir='${docdir}'
  22245. +libdir='${exec_prefix}/lib'
  22246. +localedir='${datarootdir}/locale'
  22247. +mandir='${datarootdir}/man'
  22248. +
  22249. +ac_prev=
  22250. ac_dashdash=
  22251. for ac_option
  22252. do
  22253. @@ -996,13 +1006,20 @@
  22254. datarootdir=$ac_optarg ;;
  22255. -disable-* | --disable-*)
  22256. - ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  22257. + ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  22258. # Reject names that are not valid shell variable names.
  22259. - expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  22260. - { echo "$as_me: error: invalid feature name: $ac_feature" >&2
  22261. - { (exit 1); exit 1; }; }
  22262. - ac_feature=`echo $ac_feature | sed 's/-/_/g'`
  22263. - eval enable_$ac_feature=no ;;
  22264. + expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  22265. + as_fn_error "invalid feature name: $ac_useropt"
  22266. + ac_useropt_orig=$ac_useropt
  22267. + ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  22268. + case $ac_user_opts in
  22269. + *"
  22270. +"enable_$ac_useropt"
  22271. +"*) ;;
  22272. + *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  22273. + ac_unrecognized_sep=', ';;
  22274. + esac
  22275. + eval enable_$ac_useropt=no ;;
  22276. -docdir | --docdir | --docdi | --doc | --do)
  22277. ac_prev=docdir ;;
  22278. @@ -1015,13 +1032,20 @@
  22279. dvidir=$ac_optarg ;;
  22280. -enable-* | --enable-*)
  22281. - ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  22282. + ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  22283. # Reject names that are not valid shell variable names.
  22284. - expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  22285. - { echo "$as_me: error: invalid feature name: $ac_feature" >&2
  22286. - { (exit 1); exit 1; }; }
  22287. - ac_feature=`echo $ac_feature | sed 's/-/_/g'`
  22288. - eval enable_$ac_feature=\$ac_optarg ;;
  22289. + expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  22290. + as_fn_error "invalid feature name: $ac_useropt"
  22291. + ac_useropt_orig=$ac_useropt
  22292. + ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  22293. + case $ac_user_opts in
  22294. + *"
  22295. +"enable_$ac_useropt"
  22296. +"*) ;;
  22297. + *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  22298. + ac_unrecognized_sep=', ';;
  22299. + esac
  22300. + eval enable_$ac_useropt=\$ac_optarg ;;
  22301. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  22302. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  22303. @@ -1212,22 +1236,36 @@
  22304. ac_init_version=: ;;
  22305. -with-* | --with-*)
  22306. - ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  22307. + ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  22308. # Reject names that are not valid shell variable names.
  22309. - expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  22310. - { echo "$as_me: error: invalid package name: $ac_package" >&2
  22311. - { (exit 1); exit 1; }; }
  22312. - ac_package=`echo $ac_package| sed 's/-/_/g'`
  22313. - eval with_$ac_package=\$ac_optarg ;;
  22314. + expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  22315. + as_fn_error "invalid package name: $ac_useropt"
  22316. + ac_useropt_orig=$ac_useropt
  22317. + ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  22318. + case $ac_user_opts in
  22319. + *"
  22320. +"with_$ac_useropt"
  22321. +"*) ;;
  22322. + *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  22323. + ac_unrecognized_sep=', ';;
  22324. + esac
  22325. + eval with_$ac_useropt=\$ac_optarg ;;
  22326. -without-* | --without-*)
  22327. - ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  22328. + ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  22329. # Reject names that are not valid shell variable names.
  22330. - expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  22331. - { echo "$as_me: error: invalid package name: $ac_package" >&2
  22332. - { (exit 1); exit 1; }; }
  22333. - ac_package=`echo $ac_package | sed 's/-/_/g'`
  22334. - eval with_$ac_package=no ;;
  22335. + expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  22336. + as_fn_error "invalid package name: $ac_useropt"
  22337. + ac_useropt_orig=$ac_useropt
  22338. + ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  22339. + case $ac_user_opts in
  22340. + *"
  22341. +"with_$ac_useropt"
  22342. +"*) ;;
  22343. + *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  22344. + ac_unrecognized_sep=', ';;
  22345. + esac
  22346. + eval with_$ac_useropt=no ;;
  22347. --x)
  22348. # Obsolete; use --with-x.
  22349. @@ -1247,25 +1285,25 @@
  22350. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  22351. x_libraries=$ac_optarg ;;
  22352. - -*) { echo "$as_me: error: unrecognized option: $ac_option
  22353. -Try \`$0 --help' for more information." >&2
  22354. - { (exit 1); exit 1; }; }
  22355. + -*) as_fn_error "unrecognized option: \`$ac_option'
  22356. +Try \`$0 --help' for more information."
  22357. ;;
  22358. *=*)
  22359. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  22360. # Reject names that are not valid shell variable names.
  22361. - expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
  22362. - { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
  22363. - { (exit 1); exit 1; }; }
  22364. + case $ac_envvar in #(
  22365. + '' | [0-9]* | *[!_$as_cr_alnum]* )
  22366. + as_fn_error "invalid variable name: \`$ac_envvar'" ;;
  22367. + esac
  22368. eval $ac_envvar=\$ac_optarg
  22369. export $ac_envvar ;;
  22370. *)
  22371. # FIXME: should be removed in autoconf 3.0.
  22372. - echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  22373. + $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  22374. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  22375. - echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  22376. + $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  22377. : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
  22378. ;;
  22379. @@ -1274,23 +1312,36 @@
  22380. if test -n "$ac_prev"; then
  22381. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  22382. - { echo "$as_me: error: missing argument to $ac_option" >&2
  22383. - { (exit 1); exit 1; }; }
  22384. + as_fn_error "missing argument to $ac_option"
  22385. +fi
  22386. +
  22387. +if test -n "$ac_unrecognized_opts"; then
  22388. + case $enable_option_checking in
  22389. + no) ;;
  22390. + fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
  22391. + *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  22392. + esac
  22393. fi
  22394. -# Be sure to have absolute directory names.
  22395. +# Check all directory arguments for consistency.
  22396. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  22397. datadir sysconfdir sharedstatedir localstatedir includedir \
  22398. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  22399. libdir localedir mandir
  22400. do
  22401. eval ac_val=\$$ac_var
  22402. + # Remove trailing slashes.
  22403. + case $ac_val in
  22404. + */ )
  22405. + ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  22406. + eval $ac_var=\$ac_val;;
  22407. + esac
  22408. + # Be sure to have absolute directory names.
  22409. case $ac_val in
  22410. [\\/$]* | ?:[\\/]* ) continue;;
  22411. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  22412. esac
  22413. - { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
  22414. - { (exit 1); exit 1; }; }
  22415. + as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
  22416. done
  22417. # There might be people who depend on the old broken behavior: `$host'
  22418. @@ -1304,7 +1355,7 @@
  22419. if test "x$host_alias" != x; then
  22420. if test "x$build_alias" = x; then
  22421. cross_compiling=maybe
  22422. - echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
  22423. + $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
  22424. If a cross compiler is detected then cross compile mode will be used." >&2
  22425. elif test "x$build_alias" != "x$host_alias"; then
  22426. cross_compiling=yes
  22427. @@ -1320,23 +1371,21 @@
  22428. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  22429. ac_ls_di=`ls -di .` &&
  22430. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  22431. - { echo "$as_me: error: Working directory cannot be determined" >&2
  22432. - { (exit 1); exit 1; }; }
  22433. + as_fn_error "working directory cannot be determined"
  22434. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  22435. - { echo "$as_me: error: pwd does not report name of working directory" >&2
  22436. - { (exit 1); exit 1; }; }
  22437. + as_fn_error "pwd does not report name of working directory"
  22438. # Find the source files, if location was not specified.
  22439. if test -z "$srcdir"; then
  22440. ac_srcdir_defaulted=yes
  22441. # Try the directory containing this script, then the parent directory.
  22442. - ac_confdir=`$as_dirname -- "$0" ||
  22443. -$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  22444. - X"$0" : 'X\(//\)[^/]' \| \
  22445. - X"$0" : 'X\(//\)$' \| \
  22446. - X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  22447. -echo X"$0" |
  22448. + ac_confdir=`$as_dirname -- "$as_myself" ||
  22449. +$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  22450. + X"$as_myself" : 'X\(//\)[^/]' \| \
  22451. + X"$as_myself" : 'X\(//\)$' \| \
  22452. + X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  22453. +$as_echo X"$as_myself" |
  22454. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  22455. s//\1/
  22456. q
  22457. @@ -1363,13 +1412,11 @@
  22458. fi
  22459. if test ! -r "$srcdir/$ac_unique_file"; then
  22460. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  22461. - { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
  22462. - { (exit 1); exit 1; }; }
  22463. + as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
  22464. fi
  22465. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  22466. ac_abs_confdir=`(
  22467. - cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
  22468. - { (exit 1); exit 1; }; }
  22469. + cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
  22470. pwd)`
  22471. # When building in place, set srcdir=.
  22472. if test "$ac_abs_confdir" = "$ac_pwd"; then
  22473. @@ -1417,9 +1464,9 @@
  22474. Installation directories:
  22475. --prefix=PREFIX install architecture-independent files in PREFIX
  22476. - [$ac_default_prefix]
  22477. + [$ac_default_prefix]
  22478. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  22479. - [PREFIX]
  22480. + [PREFIX]
  22481. By default, \`make install' will install all the files in
  22482. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  22483. @@ -1429,25 +1476,25 @@
  22484. For better control, use the options below.
  22485. Fine tuning of the installation directories:
  22486. - --bindir=DIR user executables [EPREFIX/bin]
  22487. - --sbindir=DIR system admin executables [EPREFIX/sbin]
  22488. - --libexecdir=DIR program executables [EPREFIX/libexec]
  22489. - --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  22490. - --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  22491. - --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  22492. - --libdir=DIR object code libraries [EPREFIX/lib]
  22493. - --includedir=DIR C header files [PREFIX/include]
  22494. - --oldincludedir=DIR C header files for non-gcc [/usr/include]
  22495. - --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  22496. - --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  22497. - --infodir=DIR info documentation [DATAROOTDIR/info]
  22498. - --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  22499. - --mandir=DIR man documentation [DATAROOTDIR/man]
  22500. - --docdir=DIR documentation root [DATAROOTDIR/doc/libupnp]
  22501. - --htmldir=DIR html documentation [DOCDIR]
  22502. - --dvidir=DIR dvi documentation [DOCDIR]
  22503. - --pdfdir=DIR pdf documentation [DOCDIR]
  22504. - --psdir=DIR ps documentation [DOCDIR]
  22505. + --bindir=DIR user executables [EPREFIX/bin]
  22506. + --sbindir=DIR system admin executables [EPREFIX/sbin]
  22507. + --libexecdir=DIR program executables [EPREFIX/libexec]
  22508. + --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  22509. + --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  22510. + --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  22511. + --libdir=DIR object code libraries [EPREFIX/lib]
  22512. + --includedir=DIR C header files [PREFIX/include]
  22513. + --oldincludedir=DIR C header files for non-gcc [/usr/include]
  22514. + --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  22515. + --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  22516. + --infodir=DIR info documentation [DATAROOTDIR/info]
  22517. + --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  22518. + --mandir=DIR man documentation [DATAROOTDIR/man]
  22519. + --docdir=DIR documentation root [DATAROOTDIR/doc/libupnp]
  22520. + --htmldir=DIR html documentation [DOCDIR]
  22521. + --dvidir=DIR dvi documentation [DOCDIR]
  22522. + --pdfdir=DIR pdf documentation [DOCDIR]
  22523. + --psdir=DIR ps documentation [DOCDIR]
  22524. _ACEOF
  22525. cat <<\_ACEOF
  22526. @@ -1470,6 +1517,7 @@
  22527. cat <<\_ACEOF
  22528. Optional Features:
  22529. + --disable-option-checking ignore unrecognized --enable/--with options
  22530. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  22531. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  22532. --enable-debug enable extra debugging code [default=disabled]
  22533. @@ -1494,26 +1542,21 @@
  22534. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  22535. --with-documentation=directory_name
  22536. where documentation is installed
  22537. - [DATADIR/doc/libupnp-1.6.6]
  22538. + [[DATADIR/doc/]libupnp[-]1.6.6]
  22539. --without-documentation do not install the documentation
  22540. - --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  22541. --with-pic try to use only PIC/non-PIC objects [default=use
  22542. both]
  22543. - --with-tags[=TAGS] include additional configurations [automatic]
  22544. + --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  22545. Some influential environment variables:
  22546. CC C compiler command
  22547. CFLAGS C compiler flags
  22548. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  22549. nonstandard directory <lib dir>
  22550. - CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
  22551. + LIBS libraries to pass to the linker, e.g. -l<library>
  22552. + CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  22553. you have headers in a nonstandard directory <include dir>
  22554. CPP C preprocessor
  22555. - CXX C++ compiler command
  22556. - CXXFLAGS C++ compiler flags
  22557. - CXXCPP C++ preprocessor
  22558. - F77 Fortran 77 compiler command
  22559. - FFLAGS Fortran 77 compiler flags
  22560. Use these variables to override the choices made by `configure' or to help
  22561. it to find libraries and programs with nonstandard names/locations.
  22562. @@ -1526,15 +1569,17 @@
  22563. if test "$ac_init_help" = "recursive"; then
  22564. # If there are subdirs, report their specific --help.
  22565. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  22566. - test -d "$ac_dir" || continue
  22567. + test -d "$ac_dir" ||
  22568. + { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  22569. + continue
  22570. ac_builddir=.
  22571. case "$ac_dir" in
  22572. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  22573. *)
  22574. - ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  22575. + ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  22576. # A ".." for each directory in $ac_dir_suffix.
  22577. - ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
  22578. + ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  22579. case $ac_top_builddir_sub in
  22580. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  22581. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  22582. @@ -1570,7 +1615,7 @@
  22583. echo &&
  22584. $SHELL "$ac_srcdir/configure" --help=recursive
  22585. else
  22586. - echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  22587. + $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  22588. fi || ac_status=$?
  22589. cd "$ac_pwd" || { ac_status=$?; break; }
  22590. done
  22591. @@ -1580,75 +1625,486 @@
  22592. if $ac_init_version; then
  22593. cat <<\_ACEOF
  22594. libupnp configure 1.6.6
  22595. -generated by GNU Autoconf 2.60
  22596. +generated by GNU Autoconf 2.65
  22597. -Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
  22598. -2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
  22599. +Copyright (C) 2009 Free Software Foundation, Inc.
  22600. This configure script is free software; the Free Software Foundation
  22601. gives unlimited permission to copy, distribute and modify it.
  22602. _ACEOF
  22603. exit
  22604. fi
  22605. -cat >config.log <<_ACEOF
  22606. -This file contains any messages produced by compilers while
  22607. -running configure, to aid debugging if configure makes a mistake.
  22608. -
  22609. -It was created by libupnp $as_me 1.6.6, which was
  22610. -generated by GNU Autoconf 2.60. Invocation command line was
  22611. -
  22612. - $ $0 $@
  22613. -_ACEOF
  22614. -exec 5>>config.log
  22615. +## ------------------------ ##
  22616. +## Autoconf initialization. ##
  22617. +## ------------------------ ##
  22618. +
  22619. +# ac_fn_c_try_compile LINENO
  22620. +# --------------------------
  22621. +# Try to compile conftest.$ac_ext, and return whether this succeeded.
  22622. +ac_fn_c_try_compile ()
  22623. {
  22624. -cat <<_ASUNAME
  22625. -## --------- ##
  22626. -## Platform. ##
  22627. -## --------- ##
  22628. + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  22629. + rm -f conftest.$ac_objext
  22630. + if { { ac_try="$ac_compile"
  22631. +case "(($ac_try" in
  22632. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  22633. + *) ac_try_echo=$ac_try;;
  22634. +esac
  22635. +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  22636. +$as_echo "$ac_try_echo"; } >&5
  22637. + (eval "$ac_compile") 2>conftest.err
  22638. + ac_status=$?
  22639. + if test -s conftest.err; then
  22640. + grep -v '^ *+' conftest.err >conftest.er1
  22641. + cat conftest.er1 >&5
  22642. + mv -f conftest.er1 conftest.err
  22643. + fi
  22644. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  22645. + test $ac_status = 0; } && {
  22646. + test -z "$ac_c_werror_flag" ||
  22647. + test ! -s conftest.err
  22648. + } && test -s conftest.$ac_objext; then :
  22649. + ac_retval=0
  22650. +else
  22651. + $as_echo "$as_me: failed program was:" >&5
  22652. +sed 's/^/| /' conftest.$ac_ext >&5
  22653. -hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  22654. -uname -m = `(uname -m) 2>/dev/null || echo unknown`
  22655. -uname -r = `(uname -r) 2>/dev/null || echo unknown`
  22656. -uname -s = `(uname -s) 2>/dev/null || echo unknown`
  22657. -uname -v = `(uname -v) 2>/dev/null || echo unknown`
  22658. + ac_retval=1
  22659. +fi
  22660. + eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  22661. + as_fn_set_status $ac_retval
  22662. -/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  22663. -/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  22664. +} # ac_fn_c_try_compile
  22665. -/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  22666. -/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  22667. -/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  22668. -/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  22669. -/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  22670. -/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  22671. -/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  22672. +# ac_fn_c_try_link LINENO
  22673. +# -----------------------
  22674. +# Try to link conftest.$ac_ext, and return whether this succeeded.
  22675. +ac_fn_c_try_link ()
  22676. +{
  22677. + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  22678. + rm -f conftest.$ac_objext conftest$ac_exeext
  22679. + if { { ac_try="$ac_link"
  22680. +case "(($ac_try" in
  22681. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  22682. + *) ac_try_echo=$ac_try;;
  22683. +esac
  22684. +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  22685. +$as_echo "$ac_try_echo"; } >&5
  22686. + (eval "$ac_link") 2>conftest.err
  22687. + ac_status=$?
  22688. + if test -s conftest.err; then
  22689. + grep -v '^ *+' conftest.err >conftest.er1
  22690. + cat conftest.er1 >&5
  22691. + mv -f conftest.er1 conftest.err
  22692. + fi
  22693. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  22694. + test $ac_status = 0; } && {
  22695. + test -z "$ac_c_werror_flag" ||
  22696. + test ! -s conftest.err
  22697. + } && test -s conftest$ac_exeext && {
  22698. + test "$cross_compiling" = yes ||
  22699. + $as_test_x conftest$ac_exeext
  22700. + }; then :
  22701. + ac_retval=0
  22702. +else
  22703. + $as_echo "$as_me: failed program was:" >&5
  22704. +sed 's/^/| /' conftest.$ac_ext >&5
  22705. +
  22706. + ac_retval=1
  22707. +fi
  22708. + # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  22709. + # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  22710. + # interfere with the next link command; also delete a directory that is
  22711. + # left behind by Apple's compiler. We do this before executing the actions.
  22712. + rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  22713. + eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  22714. + as_fn_set_status $ac_retval
  22715. +
  22716. +} # ac_fn_c_try_link
  22717. +
  22718. +# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  22719. +# -------------------------------------------------------
  22720. +# Tests whether HEADER exists and can be compiled using the include files in
  22721. +# INCLUDES, setting the cache variable VAR accordingly.
  22722. +ac_fn_c_check_header_compile ()
  22723. +{
  22724. + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  22725. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  22726. +$as_echo_n "checking for $2... " >&6; }
  22727. +if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  22728. + $as_echo_n "(cached) " >&6
  22729. +else
  22730. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22731. +/* end confdefs.h. */
  22732. +$4
  22733. +#include <$2>
  22734. +_ACEOF
  22735. +if ac_fn_c_try_compile "$LINENO"; then :
  22736. + eval "$3=yes"
  22737. +else
  22738. + eval "$3=no"
  22739. +fi
  22740. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  22741. +fi
  22742. +eval ac_res=\$$3
  22743. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  22744. +$as_echo "$ac_res" >&6; }
  22745. + eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  22746. -_ASUNAME
  22747. +} # ac_fn_c_check_header_compile
  22748. -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  22749. -for as_dir in $PATH
  22750. -do
  22751. - IFS=$as_save_IFS
  22752. - test -z "$as_dir" && as_dir=.
  22753. - echo "PATH: $as_dir"
  22754. -done
  22755. -IFS=$as_save_IFS
  22756. +# ac_fn_c_try_cpp LINENO
  22757. +# ----------------------
  22758. +# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  22759. +ac_fn_c_try_cpp ()
  22760. +{
  22761. + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  22762. + if { { ac_try="$ac_cpp conftest.$ac_ext"
  22763. +case "(($ac_try" in
  22764. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  22765. + *) ac_try_echo=$ac_try;;
  22766. +esac
  22767. +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  22768. +$as_echo "$ac_try_echo"; } >&5
  22769. + (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  22770. + ac_status=$?
  22771. + if test -s conftest.err; then
  22772. + grep -v '^ *+' conftest.err >conftest.er1
  22773. + cat conftest.er1 >&5
  22774. + mv -f conftest.er1 conftest.err
  22775. + fi
  22776. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  22777. + test $ac_status = 0; } >/dev/null && {
  22778. + test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  22779. + test ! -s conftest.err
  22780. + }; then :
  22781. + ac_retval=0
  22782. +else
  22783. + $as_echo "$as_me: failed program was:" >&5
  22784. +sed 's/^/| /' conftest.$ac_ext >&5
  22785. -} >&5
  22786. + ac_retval=1
  22787. +fi
  22788. + eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  22789. + as_fn_set_status $ac_retval
  22790. -cat >&5 <<_ACEOF
  22791. +} # ac_fn_c_try_cpp
  22792. +# ac_fn_c_try_run LINENO
  22793. +# ----------------------
  22794. +# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  22795. +# that executables *can* be run.
  22796. +ac_fn_c_try_run ()
  22797. +{
  22798. + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  22799. + if { { ac_try="$ac_link"
  22800. +case "(($ac_try" in
  22801. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  22802. + *) ac_try_echo=$ac_try;;
  22803. +esac
  22804. +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  22805. +$as_echo "$ac_try_echo"; } >&5
  22806. + (eval "$ac_link") 2>&5
  22807. + ac_status=$?
  22808. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  22809. + test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  22810. + { { case "(($ac_try" in
  22811. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  22812. + *) ac_try_echo=$ac_try;;
  22813. +esac
  22814. +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  22815. +$as_echo "$ac_try_echo"; } >&5
  22816. + (eval "$ac_try") 2>&5
  22817. + ac_status=$?
  22818. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  22819. + test $ac_status = 0; }; }; then :
  22820. + ac_retval=0
  22821. +else
  22822. + $as_echo "$as_me: program exited with status $ac_status" >&5
  22823. + $as_echo "$as_me: failed program was:" >&5
  22824. +sed 's/^/| /' conftest.$ac_ext >&5
  22825. -## ----------- ##
  22826. -## Core tests. ##
  22827. -## ----------- ##
  22828. + ac_retval=$ac_status
  22829. +fi
  22830. + rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  22831. + eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  22832. + as_fn_set_status $ac_retval
  22833. -_ACEOF
  22834. +} # ac_fn_c_try_run
  22835. +# ac_fn_c_check_func LINENO FUNC VAR
  22836. +# ----------------------------------
  22837. +# Tests whether FUNC exists, setting the cache variable VAR accordingly
  22838. +ac_fn_c_check_func ()
  22839. +{
  22840. + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  22841. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  22842. +$as_echo_n "checking for $2... " >&6; }
  22843. +if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  22844. + $as_echo_n "(cached) " >&6
  22845. +else
  22846. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22847. +/* end confdefs.h. */
  22848. +/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  22849. + For example, HP-UX 11i <limits.h> declares gettimeofday. */
  22850. +#define $2 innocuous_$2
  22851. -# Keep a trace of the command line.
  22852. -# Strip out --no-create and --no-recursion so they do not pile up.
  22853. -# Strip out --silent because we don't want to record it for future runs.
  22854. +/* System header to define __stub macros and hopefully few prototypes,
  22855. + which can conflict with char $2 (); below.
  22856. + Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  22857. + <limits.h> exists even on freestanding compilers. */
  22858. +
  22859. +#ifdef __STDC__
  22860. +# include <limits.h>
  22861. +#else
  22862. +# include <assert.h>
  22863. +#endif
  22864. +
  22865. +#undef $2
  22866. +
  22867. +/* Override any GCC internal prototype to avoid an error.
  22868. + Use char because int might match the return type of a GCC
  22869. + builtin and then its argument prototype would still apply. */
  22870. +#ifdef __cplusplus
  22871. +extern "C"
  22872. +#endif
  22873. +char $2 ();
  22874. +/* The GNU C library defines this for functions which it implements
  22875. + to always fail with ENOSYS. Some functions are actually named
  22876. + something starting with __ and the normal name is an alias. */
  22877. +#if defined __stub_$2 || defined __stub___$2
  22878. +choke me
  22879. +#endif
  22880. +
  22881. +int
  22882. +main ()
  22883. +{
  22884. +return $2 ();
  22885. + ;
  22886. + return 0;
  22887. +}
  22888. +_ACEOF
  22889. +if ac_fn_c_try_link "$LINENO"; then :
  22890. + eval "$3=yes"
  22891. +else
  22892. + eval "$3=no"
  22893. +fi
  22894. +rm -f core conftest.err conftest.$ac_objext \
  22895. + conftest$ac_exeext conftest.$ac_ext
  22896. +fi
  22897. +eval ac_res=\$$3
  22898. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  22899. +$as_echo "$ac_res" >&6; }
  22900. + eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  22901. +
  22902. +} # ac_fn_c_check_func
  22903. +
  22904. +# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
  22905. +# -------------------------------------------
  22906. +# Tests whether TYPE exists after having included INCLUDES, setting cache
  22907. +# variable VAR accordingly.
  22908. +ac_fn_c_check_type ()
  22909. +{
  22910. + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  22911. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  22912. +$as_echo_n "checking for $2... " >&6; }
  22913. +if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  22914. + $as_echo_n "(cached) " >&6
  22915. +else
  22916. + eval "$3=no"
  22917. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22918. +/* end confdefs.h. */
  22919. +$4
  22920. +int
  22921. +main ()
  22922. +{
  22923. +if (sizeof ($2))
  22924. + return 0;
  22925. + ;
  22926. + return 0;
  22927. +}
  22928. +_ACEOF
  22929. +if ac_fn_c_try_compile "$LINENO"; then :
  22930. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22931. +/* end confdefs.h. */
  22932. +$4
  22933. +int
  22934. +main ()
  22935. +{
  22936. +if (sizeof (($2)))
  22937. + return 0;
  22938. + ;
  22939. + return 0;
  22940. +}
  22941. +_ACEOF
  22942. +if ac_fn_c_try_compile "$LINENO"; then :
  22943. +
  22944. +else
  22945. + eval "$3=yes"
  22946. +fi
  22947. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  22948. +fi
  22949. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  22950. +fi
  22951. +eval ac_res=\$$3
  22952. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  22953. +$as_echo "$ac_res" >&6; }
  22954. + eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  22955. +
  22956. +} # ac_fn_c_check_type
  22957. +
  22958. +# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
  22959. +# -------------------------------------------------------
  22960. +# Tests whether HEADER exists, giving a warning if it cannot be compiled using
  22961. +# the include files in INCLUDES and setting the cache variable VAR
  22962. +# accordingly.
  22963. +ac_fn_c_check_header_mongrel ()
  22964. +{
  22965. + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  22966. + if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  22967. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  22968. +$as_echo_n "checking for $2... " >&6; }
  22969. +if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  22970. + $as_echo_n "(cached) " >&6
  22971. +fi
  22972. +eval ac_res=\$$3
  22973. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  22974. +$as_echo "$ac_res" >&6; }
  22975. +else
  22976. + # Is the header compilable?
  22977. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  22978. +$as_echo_n "checking $2 usability... " >&6; }
  22979. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22980. +/* end confdefs.h. */
  22981. +$4
  22982. +#include <$2>
  22983. +_ACEOF
  22984. +if ac_fn_c_try_compile "$LINENO"; then :
  22985. + ac_header_compiler=yes
  22986. +else
  22987. + ac_header_compiler=no
  22988. +fi
  22989. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  22990. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  22991. +$as_echo "$ac_header_compiler" >&6; }
  22992. +
  22993. +# Is the header present?
  22994. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  22995. +$as_echo_n "checking $2 presence... " >&6; }
  22996. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22997. +/* end confdefs.h. */
  22998. +#include <$2>
  22999. +_ACEOF
  23000. +if ac_fn_c_try_cpp "$LINENO"; then :
  23001. + ac_header_preproc=yes
  23002. +else
  23003. + ac_header_preproc=no
  23004. +fi
  23005. +rm -f conftest.err conftest.$ac_ext
  23006. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  23007. +$as_echo "$ac_header_preproc" >&6; }
  23008. +
  23009. +# So? What about this header?
  23010. +case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
  23011. + yes:no: )
  23012. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  23013. +$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  23014. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  23015. +$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  23016. + ;;
  23017. + no:yes:* )
  23018. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  23019. +$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  23020. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
  23021. +$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
  23022. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  23023. +$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  23024. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
  23025. +$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
  23026. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  23027. +$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  23028. +( cat <<\_ASBOX
  23029. +## --------------------------------------------- ##
  23030. +## Report this to mroberto@users.sourceforge.net ##
  23031. +## --------------------------------------------- ##
  23032. +_ASBOX
  23033. + ) | sed "s/^/$as_me: WARNING: /" >&2
  23034. + ;;
  23035. +esac
  23036. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  23037. +$as_echo_n "checking for $2... " >&6; }
  23038. +if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  23039. + $as_echo_n "(cached) " >&6
  23040. +else
  23041. + eval "$3=\$ac_header_compiler"
  23042. +fi
  23043. +eval ac_res=\$$3
  23044. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  23045. +$as_echo "$ac_res" >&6; }
  23046. +fi
  23047. + eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  23048. +
  23049. +} # ac_fn_c_check_header_mongrel
  23050. +cat >config.log <<_ACEOF
  23051. +This file contains any messages produced by compilers while
  23052. +running configure, to aid debugging if configure makes a mistake.
  23053. +
  23054. +It was created by libupnp $as_me 1.6.6, which was
  23055. +generated by GNU Autoconf 2.65. Invocation command line was
  23056. +
  23057. + $ $0 $@
  23058. +
  23059. +_ACEOF
  23060. +exec 5>>config.log
  23061. +{
  23062. +cat <<_ASUNAME
  23063. +## --------- ##
  23064. +## Platform. ##
  23065. +## --------- ##
  23066. +
  23067. +hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  23068. +uname -m = `(uname -m) 2>/dev/null || echo unknown`
  23069. +uname -r = `(uname -r) 2>/dev/null || echo unknown`
  23070. +uname -s = `(uname -s) 2>/dev/null || echo unknown`
  23071. +uname -v = `(uname -v) 2>/dev/null || echo unknown`
  23072. +
  23073. +/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  23074. +/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  23075. +
  23076. +/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  23077. +/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  23078. +/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  23079. +/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  23080. +/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  23081. +/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  23082. +/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  23083. +
  23084. +_ASUNAME
  23085. +
  23086. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  23087. +for as_dir in $PATH
  23088. +do
  23089. + IFS=$as_save_IFS
  23090. + test -z "$as_dir" && as_dir=.
  23091. + $as_echo "PATH: $as_dir"
  23092. + done
  23093. +IFS=$as_save_IFS
  23094. +
  23095. +} >&5
  23096. +
  23097. +cat >&5 <<_ACEOF
  23098. +
  23099. +
  23100. +## ----------- ##
  23101. +## Core tests. ##
  23102. +## ----------- ##
  23103. +
  23104. +_ACEOF
  23105. +
  23106. +
  23107. +# Keep a trace of the command line.
  23108. +# Strip out --no-create and --no-recursion so they do not pile up.
  23109. +# Strip out --silent because we don't want to record it for future runs.
  23110. # Also quote any args containing shell meta-characters.
  23111. # Make two passes to allow for proper duplicate-argument suppression.
  23112. ac_configure_args=
  23113. @@ -1665,12 +2121,12 @@
  23114. | -silent | --silent | --silen | --sile | --sil)
  23115. continue ;;
  23116. *\'*)
  23117. - ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  23118. + ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  23119. esac
  23120. case $ac_pass in
  23121. - 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
  23122. + 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  23123. 2)
  23124. - ac_configure_args1="$ac_configure_args1 '$ac_arg'"
  23125. + as_fn_append ac_configure_args1 " '$ac_arg'"
  23126. if test $ac_must_keep_next = true; then
  23127. ac_must_keep_next=false # Got value, back to normal.
  23128. else
  23129. @@ -1686,13 +2142,13 @@
  23130. -* ) ac_must_keep_next=true ;;
  23131. esac
  23132. fi
  23133. - ac_configure_args="$ac_configure_args '$ac_arg'"
  23134. + as_fn_append ac_configure_args " '$ac_arg'"
  23135. ;;
  23136. esac
  23137. done
  23138. done
  23139. -$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
  23140. -$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
  23141. +{ ac_configure_args0=; unset ac_configure_args0;}
  23142. +{ ac_configure_args1=; unset ac_configure_args1;}
  23143. # When interrupted or exit'd, cleanup temporary files, and complete
  23144. # config.log. We remove comments because anyway the quotes in there
  23145. @@ -1717,12 +2173,13 @@
  23146. case $ac_val in #(
  23147. *${as_nl}*)
  23148. case $ac_var in #(
  23149. - *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
  23150. -echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
  23151. + *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  23152. +$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  23153. esac
  23154. case $ac_var in #(
  23155. _ | IFS | as_nl) ;; #(
  23156. - *) $as_unset $ac_var ;;
  23157. + BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  23158. + *) { eval $ac_var=; unset $ac_var;} ;;
  23159. esac ;;
  23160. esac
  23161. done
  23162. @@ -1751,9 +2208,9 @@
  23163. do
  23164. eval ac_val=\$$ac_var
  23165. case $ac_val in
  23166. - *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  23167. + *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  23168. esac
  23169. - echo "$ac_var='\''$ac_val'\''"
  23170. + $as_echo "$ac_var='\''$ac_val'\''"
  23171. done | sort
  23172. echo
  23173. @@ -1768,9 +2225,9 @@
  23174. do
  23175. eval ac_val=\$$ac_var
  23176. case $ac_val in
  23177. - *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  23178. + *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  23179. esac
  23180. - echo "$ac_var='\''$ac_val'\''"
  23181. + $as_echo "$ac_var='\''$ac_val'\''"
  23182. done | sort
  23183. echo
  23184. fi
  23185. @@ -1786,83 +2243,88 @@
  23186. echo
  23187. fi
  23188. test "$ac_signal" != 0 &&
  23189. - echo "$as_me: caught signal $ac_signal"
  23190. - echo "$as_me: exit $exit_status"
  23191. + $as_echo "$as_me: caught signal $ac_signal"
  23192. + $as_echo "$as_me: exit $exit_status"
  23193. } >&5
  23194. rm -f core *.core core.conftest.* &&
  23195. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  23196. exit $exit_status
  23197. ' 0
  23198. for ac_signal in 1 2 13 15; do
  23199. - trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
  23200. + trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  23201. done
  23202. ac_signal=0
  23203. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  23204. rm -f -r conftest* confdefs.h
  23205. +$as_echo "/* confdefs.h */" > confdefs.h
  23206. +
  23207. # Predefined preprocessor variables.
  23208. cat >>confdefs.h <<_ACEOF
  23209. #define PACKAGE_NAME "$PACKAGE_NAME"
  23210. _ACEOF
  23211. -
  23212. cat >>confdefs.h <<_ACEOF
  23213. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  23214. _ACEOF
  23215. -
  23216. cat >>confdefs.h <<_ACEOF
  23217. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  23218. _ACEOF
  23219. -
  23220. cat >>confdefs.h <<_ACEOF
  23221. #define PACKAGE_STRING "$PACKAGE_STRING"
  23222. _ACEOF
  23223. -
  23224. cat >>confdefs.h <<_ACEOF
  23225. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  23226. _ACEOF
  23227. +cat >>confdefs.h <<_ACEOF
  23228. +#define PACKAGE_URL "$PACKAGE_URL"
  23229. +_ACEOF
  23230. +
  23231. # Let the site file select an alternate cache file if it wants to.
  23232. -# Prefer explicitly selected file to automatically selected ones.
  23233. +# Prefer an explicitly selected file to automatically selected ones.
  23234. +ac_site_file1=NONE
  23235. +ac_site_file2=NONE
  23236. if test -n "$CONFIG_SITE"; then
  23237. - set x "$CONFIG_SITE"
  23238. + ac_site_file1=$CONFIG_SITE
  23239. elif test "x$prefix" != xNONE; then
  23240. - set x "$prefix/share/config.site" "$prefix/etc/config.site"
  23241. + ac_site_file1=$prefix/share/config.site
  23242. + ac_site_file2=$prefix/etc/config.site
  23243. else
  23244. - set x "$ac_default_prefix/share/config.site" \
  23245. - "$ac_default_prefix/etc/config.site"
  23246. + ac_site_file1=$ac_default_prefix/share/config.site
  23247. + ac_site_file2=$ac_default_prefix/etc/config.site
  23248. fi
  23249. -shift
  23250. -for ac_site_file
  23251. +for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  23252. do
  23253. - if test -r "$ac_site_file"; then
  23254. - { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
  23255. -echo "$as_me: loading site script $ac_site_file" >&6;}
  23256. + test "x$ac_site_file" = xNONE && continue
  23257. + if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
  23258. + { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  23259. +$as_echo "$as_me: loading site script $ac_site_file" >&6;}
  23260. sed 's/^/| /' "$ac_site_file" >&5
  23261. . "$ac_site_file"
  23262. fi
  23263. done
  23264. if test -r "$cache_file"; then
  23265. - # Some versions of bash will fail to source /dev/null (special
  23266. - # files actually), so we avoid doing that.
  23267. - if test -f "$cache_file"; then
  23268. - { echo "$as_me:$LINENO: loading cache $cache_file" >&5
  23269. -echo "$as_me: loading cache $cache_file" >&6;}
  23270. + # Some versions of bash will fail to source /dev/null (special files
  23271. + # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  23272. + if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  23273. + { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  23274. +$as_echo "$as_me: loading cache $cache_file" >&6;}
  23275. case $cache_file in
  23276. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  23277. *) . "./$cache_file";;
  23278. esac
  23279. fi
  23280. else
  23281. - { echo "$as_me:$LINENO: creating cache $cache_file" >&5
  23282. -echo "$as_me: creating cache $cache_file" >&6;}
  23283. + { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  23284. +$as_echo "$as_me: creating cache $cache_file" >&6;}
  23285. >$cache_file
  23286. fi
  23287. @@ -1876,68 +2338,56 @@
  23288. eval ac_new_val=\$ac_env_${ac_var}_value
  23289. case $ac_old_set,$ac_new_set in
  23290. set,)
  23291. - { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  23292. -echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  23293. + { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  23294. +$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  23295. ac_cache_corrupted=: ;;
  23296. ,set)
  23297. - { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
  23298. -echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  23299. + { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  23300. +$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  23301. ac_cache_corrupted=: ;;
  23302. ,);;
  23303. *)
  23304. if test "x$ac_old_val" != "x$ac_new_val"; then
  23305. - { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
  23306. -echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  23307. - { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
  23308. -echo "$as_me: former value: $ac_old_val" >&2;}
  23309. - { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
  23310. -echo "$as_me: current value: $ac_new_val" >&2;}
  23311. - ac_cache_corrupted=:
  23312. + # differences in whitespace do not lead to failure.
  23313. + ac_old_val_w=`echo x $ac_old_val`
  23314. + ac_new_val_w=`echo x $ac_new_val`
  23315. + if test "$ac_old_val_w" != "$ac_new_val_w"; then
  23316. + { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  23317. +$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  23318. + ac_cache_corrupted=:
  23319. + else
  23320. + { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  23321. +$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  23322. + eval $ac_var=\$ac_old_val
  23323. + fi
  23324. + { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  23325. +$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  23326. + { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  23327. +$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  23328. fi;;
  23329. esac
  23330. # Pass precious variables to config.status.
  23331. if test "$ac_new_set" = set; then
  23332. case $ac_new_val in
  23333. - *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  23334. + *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  23335. *) ac_arg=$ac_var=$ac_new_val ;;
  23336. esac
  23337. case " $ac_configure_args " in
  23338. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  23339. - *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  23340. + *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  23341. esac
  23342. fi
  23343. done
  23344. if $ac_cache_corrupted; then
  23345. - { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
  23346. -echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  23347. - { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
  23348. -echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
  23349. - { (exit 1); exit 1; }; }
  23350. -fi
  23351. -
  23352. -
  23353. -
  23354. -
  23355. -
  23356. -
  23357. -
  23358. -
  23359. -
  23360. -
  23361. -
  23362. -
  23363. -
  23364. -
  23365. -
  23366. -
  23367. -
  23368. -
  23369. -
  23370. -
  23371. -
  23372. -
  23373. -
  23374. -
  23375. + { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  23376. +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  23377. + { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  23378. +$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  23379. + as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  23380. +fi
  23381. +## -------------------- ##
  23382. +## Main body of script. ##
  23383. +## -------------------- ##
  23384. ac_ext=c
  23385. ac_cpp='$CPP $CPPFLAGS'
  23386. @@ -1956,24 +2406,16 @@
  23387. ac_aux_dir=
  23388. for ac_dir in build-aux "$srcdir"/build-aux; do
  23389. - if test -f "$ac_dir/install-sh"; then
  23390. - ac_aux_dir=$ac_dir
  23391. - ac_install_sh="$ac_aux_dir/install-sh -c"
  23392. - break
  23393. - elif test -f "$ac_dir/install.sh"; then
  23394. - ac_aux_dir=$ac_dir
  23395. - ac_install_sh="$ac_aux_dir/install.sh -c"
  23396. - break
  23397. - elif test -f "$ac_dir/shtool"; then
  23398. - ac_aux_dir=$ac_dir
  23399. - ac_install_sh="$ac_aux_dir/shtool install -c"
  23400. - break
  23401. - fi
  23402. + for ac_t in install-sh install.sh shtool; do
  23403. + if test -f "$ac_dir/$ac_t"; then
  23404. + ac_aux_dir=$ac_dir
  23405. + ac_install_sh="$ac_aux_dir/$ac_t -c"
  23406. + break 2
  23407. + fi
  23408. + done
  23409. done
  23410. if test -z "$ac_aux_dir"; then
  23411. - { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in build-aux \"$srcdir\"/build-aux" >&5
  23412. -echo "$as_me: error: cannot find install-sh or install.sh in build-aux \"$srcdir\"/build-aux" >&2;}
  23413. - { (exit 1); exit 1; }; }
  23414. + as_fn_error "cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5
  23415. fi
  23416. # These three variables are undocumented and unsupported,
  23417. @@ -1985,19 +2427,12 @@
  23418. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  23419. -case m4 in
  23420. - [\\/]* | ?:[\\/]* ) ac_macro_dir=m4 ;;
  23421. - *) ac_macro_dir=$srcdir/m4 ;;
  23422. -esac
  23423. -test -d "$ac_macro_dir" ||
  23424. - { { echo "$as_me:$LINENO: error: cannot find macro directory \`m4'" >&5
  23425. -echo "$as_me: error: cannot find macro directory \`m4'" >&2;}
  23426. - { (exit 1); exit 1; }; }
  23427. -am__api_version="1.9"
  23428. +am__api_version='1.11'
  23429. +
  23430. # Find a good install program. We prefer a C program (faster),
  23431. # so one script is as good as another. But avoid the broken or
  23432. # incompatible versions:
  23433. @@ -2011,22 +2446,23 @@
  23434. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  23435. # OS/2's system install, which has a completely different semantic
  23436. # ./install, which can be erroneously created by make from ./install.sh.
  23437. -{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
  23438. -echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
  23439. +# Reject install programs that cannot install multiple files.
  23440. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  23441. +$as_echo_n "checking for a BSD-compatible install... " >&6; }
  23442. if test -z "$INSTALL"; then
  23443. -if test "${ac_cv_path_install+set}" = set; then
  23444. - echo $ECHO_N "(cached) $ECHO_C" >&6
  23445. +if test "${ac_cv_path_install+set}" = set; then :
  23446. + $as_echo_n "(cached) " >&6
  23447. else
  23448. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  23449. for as_dir in $PATH
  23450. do
  23451. IFS=$as_save_IFS
  23452. test -z "$as_dir" && as_dir=.
  23453. - # Account for people who put trailing slashes in PATH elements.
  23454. -case $as_dir/ in
  23455. - ./ | .// | /cC/* | \
  23456. + # Account for people who put trailing slashes in PATH elements.
  23457. +case $as_dir/ in #((
  23458. + ./ | .// | /[cC]/* | \
  23459. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  23460. - ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
  23461. + ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  23462. /usr/ucb/* ) ;;
  23463. *)
  23464. # OSF1 and SCO ODT 3.0 have their own names for install.
  23465. @@ -2034,7 +2470,7 @@
  23466. # by default.
  23467. for ac_prog in ginstall scoinst install; do
  23468. for ac_exec_ext in '' $ac_executable_extensions; do
  23469. - if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
  23470. + if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
  23471. if test $ac_prog = install &&
  23472. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  23473. # AIX install. It has an incompatible calling convention.
  23474. @@ -2044,17 +2480,29 @@
  23475. # program-specific install script used by HP pwplus--don't use.
  23476. :
  23477. else
  23478. - ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  23479. - break 3
  23480. + rm -rf conftest.one conftest.two conftest.dir
  23481. + echo one > conftest.one
  23482. + echo two > conftest.two
  23483. + mkdir conftest.dir
  23484. + if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  23485. + test -s conftest.one && test -s conftest.two &&
  23486. + test -s conftest.dir/conftest.one &&
  23487. + test -s conftest.dir/conftest.two
  23488. + then
  23489. + ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  23490. + break 3
  23491. + fi
  23492. fi
  23493. fi
  23494. done
  23495. done
  23496. ;;
  23497. esac
  23498. -done
  23499. +
  23500. + done
  23501. IFS=$as_save_IFS
  23502. +rm -rf conftest.one conftest.two conftest.dir
  23503. fi
  23504. if test "${ac_cv_path_install+set}" = set; then
  23505. @@ -2067,8 +2515,8 @@
  23506. INSTALL=$ac_install_sh
  23507. fi
  23508. fi
  23509. -{ echo "$as_me:$LINENO: result: $INSTALL" >&5
  23510. -echo "${ECHO_T}$INSTALL" >&6; }
  23511. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  23512. +$as_echo "$INSTALL" >&6; }
  23513. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  23514. # It thinks the first close brace ends the variable substitution.
  23515. @@ -2078,21 +2526,34 @@
  23516. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  23517. -{ echo "$as_me:$LINENO: checking whether build environment is sane" >&5
  23518. -echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
  23519. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
  23520. +$as_echo_n "checking whether build environment is sane... " >&6; }
  23521. # Just in case
  23522. sleep 1
  23523. echo timestamp > conftest.file
  23524. +# Reject unsafe characters in $srcdir or the absolute working directory
  23525. +# name. Accept space and tab only in the latter.
  23526. +am_lf='
  23527. +'
  23528. +case `pwd` in
  23529. + *[\\\"\#\$\&\'\`$am_lf]*)
  23530. + as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
  23531. +esac
  23532. +case $srcdir in
  23533. + *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
  23534. + as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
  23535. +esac
  23536. +
  23537. # Do `set' in a subshell so we don't clobber the current shell's
  23538. # arguments. Must try -L first in case configure is actually a
  23539. # symlink; some systems play weird games with the mod time of symlinks
  23540. # (eg FreeBSD returns the mod time of the symlink's containing
  23541. # directory).
  23542. if (
  23543. - set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
  23544. + set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
  23545. if test "$*" = "X"; then
  23546. # -L didn't work.
  23547. - set X `ls -t $srcdir/configure conftest.file`
  23548. + set X `ls -t "$srcdir/configure" conftest.file`
  23549. fi
  23550. rm -f conftest.file
  23551. if test "$*" != "X $srcdir/configure conftest.file" \
  23552. @@ -2102,11 +2563,8 @@
  23553. # if, for instance, CONFIG_SHELL is bash and it inherits a
  23554. # broken ls alias from the environment. This has actually
  23555. # happened. Such a system could not be considered "sane".
  23556. - { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
  23557. -alias in your environment" >&5
  23558. -echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
  23559. -alias in your environment" >&2;}
  23560. - { (exit 1); exit 1; }; }
  23561. + as_fn_error "ls -t appears to fail. Make sure there is not a broken
  23562. +alias in your environment" "$LINENO" 5
  23563. fi
  23564. test "$2" = conftest.file
  23565. @@ -2115,129 +2573,255 @@
  23566. # Ok.
  23567. :
  23568. else
  23569. - { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
  23570. -Check your system clock" >&5
  23571. -echo "$as_me: error: newly created file is older than distributed files!
  23572. -Check your system clock" >&2;}
  23573. - { (exit 1); exit 1; }; }
  23574. + as_fn_error "newly created file is older than distributed files!
  23575. +Check your system clock" "$LINENO" 5
  23576. fi
  23577. -{ echo "$as_me:$LINENO: result: yes" >&5
  23578. -echo "${ECHO_T}yes" >&6; }
  23579. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  23580. +$as_echo "yes" >&6; }
  23581. test "$program_prefix" != NONE &&
  23582. program_transform_name="s&^&$program_prefix&;$program_transform_name"
  23583. # Use a double $ so make ignores it.
  23584. test "$program_suffix" != NONE &&
  23585. program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  23586. -# Double any \ or $. echo might interpret backslashes.
  23587. +# Double any \ or $.
  23588. # By default was `s,x,x', remove it if useless.
  23589. -cat <<\_ACEOF >conftest.sed
  23590. -s/[\\$]/&&/g;s/;s,x,x,$//
  23591. -_ACEOF
  23592. -program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
  23593. -rm -f conftest.sed
  23594. +ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
  23595. +program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
  23596. # expand $ac_aux_dir to an absolute path
  23597. am_aux_dir=`cd $ac_aux_dir && pwd`
  23598. -test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
  23599. +if test x"${MISSING+set}" != xset; then
  23600. + case $am_aux_dir in
  23601. + *\ * | *\ *)
  23602. + MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
  23603. + *)
  23604. + MISSING="\${SHELL} $am_aux_dir/missing" ;;
  23605. + esac
  23606. +fi
  23607. # Use eval to expand $SHELL
  23608. if eval "$MISSING --run true"; then
  23609. am_missing_run="$MISSING --run "
  23610. else
  23611. am_missing_run=
  23612. - { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
  23613. -echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
  23614. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
  23615. +$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
  23616. fi
  23617. -if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
  23618. - # We used to keeping the `.' as first argument, in order to
  23619. - # allow $(mkdir_p) to be used without argument. As in
  23620. - # $(mkdir_p) $(somedir)
  23621. - # where $(somedir) is conditionally defined. However this is wrong
  23622. - # for two reasons:
  23623. - # 1. if the package is installed by a user who cannot write `.'
  23624. - # make install will fail,
  23625. - # 2. the above comment should most certainly read
  23626. - # $(mkdir_p) $(DESTDIR)$(somedir)
  23627. - # so it does not work when $(somedir) is undefined and
  23628. - # $(DESTDIR) is not.
  23629. - # To support the latter case, we have to write
  23630. - # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
  23631. - # so the `.' trick is pointless.
  23632. - mkdir_p='mkdir -p --'
  23633. -else
  23634. - # On NextStep and OpenStep, the `mkdir' command does not
  23635. - # recognize any option. It will interpret all options as
  23636. - # directories to create, and then abort because `.' already
  23637. - # exists.
  23638. - for d in ./-p ./--version;
  23639. - do
  23640. - test -d $d && rmdir $d
  23641. - done
  23642. - # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
  23643. - if test -f "$ac_aux_dir/mkinstalldirs"; then
  23644. - mkdir_p='$(mkinstalldirs)'
  23645. - else
  23646. - mkdir_p='$(install_sh) -d'
  23647. - fi
  23648. +if test x"${install_sh}" != xset; then
  23649. + case $am_aux_dir in
  23650. + *\ * | *\ *)
  23651. + install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
  23652. + *)
  23653. + install_sh="\${SHELL} $am_aux_dir/install-sh"
  23654. + esac
  23655. fi
  23656. -for ac_prog in gawk mawk nawk awk
  23657. -do
  23658. - # Extract the first word of "$ac_prog", so it can be a program name with args.
  23659. -set dummy $ac_prog; ac_word=$2
  23660. -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
  23661. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  23662. -if test "${ac_cv_prog_AWK+set}" = set; then
  23663. - echo $ECHO_N "(cached) $ECHO_C" >&6
  23664. +# Installed binaries are usually stripped using `strip' when the user
  23665. +# run `make install-strip'. However `strip' might not be the right
  23666. +# tool to use in cross-compilation environments, therefore Automake
  23667. +# will honor the `STRIP' environment variable to overrule this program.
  23668. +if test "$cross_compiling" != no; then
  23669. + if test -n "$ac_tool_prefix"; then
  23670. + # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  23671. +set dummy ${ac_tool_prefix}strip; ac_word=$2
  23672. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  23673. +$as_echo_n "checking for $ac_word... " >&6; }
  23674. +if test "${ac_cv_prog_STRIP+set}" = set; then :
  23675. + $as_echo_n "(cached) " >&6
  23676. else
  23677. - if test -n "$AWK"; then
  23678. - ac_cv_prog_AWK="$AWK" # Let the user override the test.
  23679. + if test -n "$STRIP"; then
  23680. + ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  23681. else
  23682. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  23683. for as_dir in $PATH
  23684. do
  23685. IFS=$as_save_IFS
  23686. test -z "$as_dir" && as_dir=.
  23687. - for ac_exec_ext in '' $ac_executable_extensions; do
  23688. - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
  23689. - ac_cv_prog_AWK="$ac_prog"
  23690. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  23691. + for ac_exec_ext in '' $ac_executable_extensions; do
  23692. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  23693. + ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  23694. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  23695. break 2
  23696. fi
  23697. done
  23698. -done
  23699. + done
  23700. IFS=$as_save_IFS
  23701. fi
  23702. fi
  23703. -AWK=$ac_cv_prog_AWK
  23704. -if test -n "$AWK"; then
  23705. - { echo "$as_me:$LINENO: result: $AWK" >&5
  23706. -echo "${ECHO_T}$AWK" >&6; }
  23707. +STRIP=$ac_cv_prog_STRIP
  23708. +if test -n "$STRIP"; then
  23709. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  23710. +$as_echo "$STRIP" >&6; }
  23711. else
  23712. - { echo "$as_me:$LINENO: result: no" >&5
  23713. -echo "${ECHO_T}no" >&6; }
  23714. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  23715. +$as_echo "no" >&6; }
  23716. fi
  23717. - test -n "$AWK" && break
  23718. -done
  23719. -
  23720. -{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  23721. -echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
  23722. -set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  23723. -if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
  23724. - echo $ECHO_N "(cached) $ECHO_C" >&6
  23725. +fi
  23726. +if test -z "$ac_cv_prog_STRIP"; then
  23727. + ac_ct_STRIP=$STRIP
  23728. + # Extract the first word of "strip", so it can be a program name with args.
  23729. +set dummy strip; ac_word=$2
  23730. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  23731. +$as_echo_n "checking for $ac_word... " >&6; }
  23732. +if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
  23733. + $as_echo_n "(cached) " >&6
  23734. else
  23735. - cat >conftest.make <<\_ACEOF
  23736. -SHELL = /bin/sh
  23737. -all:
  23738. - @echo '@@@%%%=$(MAKE)=@@@%%%'
  23739. -_ACEOF
  23740. -# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  23741. -case `${MAKE-make} -f conftest.make 2>/dev/null` in
  23742. - *@@@%%%=?*=@@@%%%*)
  23743. + if test -n "$ac_ct_STRIP"; then
  23744. + ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  23745. +else
  23746. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  23747. +for as_dir in $PATH
  23748. +do
  23749. + IFS=$as_save_IFS
  23750. + test -z "$as_dir" && as_dir=.
  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_ac_ct_STRIP="strip"
  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. +IFS=$as_save_IFS
  23760. +
  23761. +fi
  23762. +fi
  23763. +ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  23764. +if test -n "$ac_ct_STRIP"; then
  23765. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  23766. +$as_echo "$ac_ct_STRIP" >&6; }
  23767. +else
  23768. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  23769. +$as_echo "no" >&6; }
  23770. +fi
  23771. +
  23772. + if test "x$ac_ct_STRIP" = x; then
  23773. + STRIP=":"
  23774. + else
  23775. + case $cross_compiling:$ac_tool_warned in
  23776. +yes:)
  23777. +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  23778. +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  23779. +ac_tool_warned=yes ;;
  23780. +esac
  23781. + STRIP=$ac_ct_STRIP
  23782. + fi
  23783. +else
  23784. + STRIP="$ac_cv_prog_STRIP"
  23785. +fi
  23786. +
  23787. +fi
  23788. +INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  23789. +
  23790. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
  23791. +$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
  23792. +if test -z "$MKDIR_P"; then
  23793. + if test "${ac_cv_path_mkdir+set}" = set; then :
  23794. + $as_echo_n "(cached) " >&6
  23795. +else
  23796. + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  23797. +for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
  23798. +do
  23799. + IFS=$as_save_IFS
  23800. + test -z "$as_dir" && as_dir=.
  23801. + for ac_prog in mkdir gmkdir; do
  23802. + for ac_exec_ext in '' $ac_executable_extensions; do
  23803. + { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
  23804. + case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
  23805. + 'mkdir (GNU coreutils) '* | \
  23806. + 'mkdir (coreutils) '* | \
  23807. + 'mkdir (fileutils) '4.1*)
  23808. + ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
  23809. + break 3;;
  23810. + esac
  23811. + done
  23812. + done
  23813. + done
  23814. +IFS=$as_save_IFS
  23815. +
  23816. +fi
  23817. +
  23818. + test -d ./--version && rmdir ./--version
  23819. + if test "${ac_cv_path_mkdir+set}" = set; then
  23820. + MKDIR_P="$ac_cv_path_mkdir -p"
  23821. + else
  23822. + # As a last resort, use the slow shell script. Don't cache a
  23823. + # value for MKDIR_P within a source directory, because that will
  23824. + # break other packages using the cache if that directory is
  23825. + # removed, or if the value is a relative name.
  23826. + MKDIR_P="$ac_install_sh -d"
  23827. + fi
  23828. +fi
  23829. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
  23830. +$as_echo "$MKDIR_P" >&6; }
  23831. +
  23832. +mkdir_p="$MKDIR_P"
  23833. +case $mkdir_p in
  23834. + [\\/$]* | ?:[\\/]*) ;;
  23835. + */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
  23836. +esac
  23837. +
  23838. +for ac_prog in gawk mawk nawk awk
  23839. +do
  23840. + # Extract the first word of "$ac_prog", so it can be a program name with args.
  23841. +set dummy $ac_prog; ac_word=$2
  23842. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  23843. +$as_echo_n "checking for $ac_word... " >&6; }
  23844. +if test "${ac_cv_prog_AWK+set}" = set; then :
  23845. + $as_echo_n "(cached) " >&6
  23846. +else
  23847. + if test -n "$AWK"; then
  23848. + ac_cv_prog_AWK="$AWK" # Let the user override the test.
  23849. +else
  23850. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  23851. +for as_dir in $PATH
  23852. +do
  23853. + IFS=$as_save_IFS
  23854. + test -z "$as_dir" && as_dir=.
  23855. + for ac_exec_ext in '' $ac_executable_extensions; do
  23856. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  23857. + ac_cv_prog_AWK="$ac_prog"
  23858. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  23859. + break 2
  23860. + fi
  23861. +done
  23862. + done
  23863. +IFS=$as_save_IFS
  23864. +
  23865. +fi
  23866. +fi
  23867. +AWK=$ac_cv_prog_AWK
  23868. +if test -n "$AWK"; then
  23869. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  23870. +$as_echo "$AWK" >&6; }
  23871. +else
  23872. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  23873. +$as_echo "no" >&6; }
  23874. +fi
  23875. +
  23876. +
  23877. + test -n "$AWK" && break
  23878. +done
  23879. +
  23880. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  23881. +$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  23882. +set x ${MAKE-make}
  23883. +ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  23884. +if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
  23885. + $as_echo_n "(cached) " >&6
  23886. +else
  23887. + cat >conftest.make <<\_ACEOF
  23888. +SHELL = /bin/sh
  23889. +all:
  23890. + @echo '@@@%%%=$(MAKE)=@@@%%%'
  23891. +_ACEOF
  23892. +# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  23893. +case `${MAKE-make} -f conftest.make 2>/dev/null` in
  23894. + *@@@%%%=?*=@@@%%%*)
  23895. eval ac_cv_prog_make_${ac_make}_set=yes;;
  23896. *)
  23897. eval ac_cv_prog_make_${ac_make}_set=no;;
  23898. @@ -2245,12 +2829,12 @@
  23899. rm -f conftest.make
  23900. fi
  23901. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  23902. - { echo "$as_me:$LINENO: result: yes" >&5
  23903. -echo "${ECHO_T}yes" >&6; }
  23904. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  23905. +$as_echo "yes" >&6; }
  23906. SET_MAKE=
  23907. else
  23908. - { echo "$as_me:$LINENO: result: no" >&5
  23909. -echo "${ECHO_T}no" >&6; }
  23910. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  23911. +$as_echo "no" >&6; }
  23912. SET_MAKE="MAKE=${MAKE-make}"
  23913. fi
  23914. @@ -2263,12 +2847,14 @@
  23915. fi
  23916. rmdir .tst 2>/dev/null
  23917. -# test to see if srcdir already configured
  23918. -if test "`cd $srcdir && pwd`" != "`pwd`" &&
  23919. - test -f $srcdir/config.status; then
  23920. - { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
  23921. -echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
  23922. - { (exit 1); exit 1; }; }
  23923. +if test "`cd $srcdir && pwd`" != "`pwd`"; then
  23924. + # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  23925. + # is not polluted with repeated "-I."
  23926. + am__isrc=' -I$(srcdir)'
  23927. + # test to see if srcdir already configured
  23928. + if test -f $srcdir/config.status; then
  23929. + as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
  23930. + fi
  23931. fi
  23932. # test whether we have cygpath
  23933. @@ -2311,112 +2897,6 @@
  23934. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  23935. -install_sh=${install_sh-"$am_aux_dir/install-sh"}
  23936. -
  23937. -# Installed binaries are usually stripped using `strip' when the user
  23938. -# run `make install-strip'. However `strip' might not be the right
  23939. -# tool to use in cross-compilation environments, therefore Automake
  23940. -# will honor the `STRIP' environment variable to overrule this program.
  23941. -if test "$cross_compiling" != no; then
  23942. - if test -n "$ac_tool_prefix"; then
  23943. - # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  23944. -set dummy ${ac_tool_prefix}strip; ac_word=$2
  23945. -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
  23946. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  23947. -if test "${ac_cv_prog_STRIP+set}" = set; then
  23948. - echo $ECHO_N "(cached) $ECHO_C" >&6
  23949. -else
  23950. - if test -n "$STRIP"; then
  23951. - ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  23952. -else
  23953. -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  23954. -for as_dir in $PATH
  23955. -do
  23956. - IFS=$as_save_IFS
  23957. - test -z "$as_dir" && as_dir=.
  23958. - for ac_exec_ext in '' $ac_executable_extensions; do
  23959. - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
  23960. - ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  23961. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  23962. - break 2
  23963. - fi
  23964. -done
  23965. -done
  23966. -IFS=$as_save_IFS
  23967. -
  23968. -fi
  23969. -fi
  23970. -STRIP=$ac_cv_prog_STRIP
  23971. -if test -n "$STRIP"; then
  23972. - { echo "$as_me:$LINENO: result: $STRIP" >&5
  23973. -echo "${ECHO_T}$STRIP" >&6; }
  23974. -else
  23975. - { echo "$as_me:$LINENO: result: no" >&5
  23976. -echo "${ECHO_T}no" >&6; }
  23977. -fi
  23978. -
  23979. -
  23980. -fi
  23981. -if test -z "$ac_cv_prog_STRIP"; then
  23982. - ac_ct_STRIP=$STRIP
  23983. - # Extract the first word of "strip", so it can be a program name with args.
  23984. -set dummy strip; ac_word=$2
  23985. -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
  23986. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  23987. -if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
  23988. - echo $ECHO_N "(cached) $ECHO_C" >&6
  23989. -else
  23990. - if test -n "$ac_ct_STRIP"; then
  23991. - ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  23992. -else
  23993. -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  23994. -for as_dir in $PATH
  23995. -do
  23996. - IFS=$as_save_IFS
  23997. - test -z "$as_dir" && as_dir=.
  23998. - for ac_exec_ext in '' $ac_executable_extensions; do
  23999. - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
  24000. - ac_cv_prog_ac_ct_STRIP="strip"
  24001. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  24002. - break 2
  24003. - fi
  24004. -done
  24005. -done
  24006. -IFS=$as_save_IFS
  24007. -
  24008. -fi
  24009. -fi
  24010. -ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  24011. -if test -n "$ac_ct_STRIP"; then
  24012. - { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
  24013. -echo "${ECHO_T}$ac_ct_STRIP" >&6; }
  24014. -else
  24015. - { echo "$as_me:$LINENO: result: no" >&5
  24016. -echo "${ECHO_T}no" >&6; }
  24017. -fi
  24018. -
  24019. - if test "x$ac_ct_STRIP" = x; then
  24020. - STRIP=":"
  24021. - else
  24022. - case $cross_compiling:$ac_tool_warned in
  24023. -yes:)
  24024. -{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  24025. -whose name does not start with the host triplet. If you think this
  24026. -configuration is useful to you, please write to autoconf@gnu.org." >&5
  24027. -echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  24028. -whose name does not start with the host triplet. If you think this
  24029. -configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  24030. -ac_tool_warned=yes ;;
  24031. -esac
  24032. - STRIP=$ac_ct_STRIP
  24033. - fi
  24034. -else
  24035. - STRIP="$ac_cv_prog_STRIP"
  24036. -fi
  24037. -
  24038. -fi
  24039. -INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
  24040. -
  24041. # We need awk for the "check" target. The system "awk" is bad on
  24042. # some platforms.
  24043. # Always define AMTAR for backward compatibility.
  24044. @@ -2436,35 +2916,27 @@
  24045. #
  24046. # Make sure we can run config.sub.
  24047. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  24048. - { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
  24049. -echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
  24050. - { (exit 1); exit 1; }; }
  24051. -
  24052. -{ echo "$as_me:$LINENO: checking build system type" >&5
  24053. -echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
  24054. -if test "${ac_cv_build+set}" = set; then
  24055. - echo $ECHO_N "(cached) $ECHO_C" >&6
  24056. + as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  24057. +
  24058. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  24059. +$as_echo_n "checking build system type... " >&6; }
  24060. +if test "${ac_cv_build+set}" = set; then :
  24061. + $as_echo_n "(cached) " >&6
  24062. else
  24063. ac_build_alias=$build_alias
  24064. test "x$ac_build_alias" = x &&
  24065. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  24066. test "x$ac_build_alias" = x &&
  24067. - { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
  24068. -echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
  24069. - { (exit 1); exit 1; }; }
  24070. + as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
  24071. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  24072. - { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
  24073. -echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
  24074. - { (exit 1); exit 1; }; }
  24075. + as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  24076. fi
  24077. -{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
  24078. -echo "${ECHO_T}$ac_cv_build" >&6; }
  24079. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  24080. +$as_echo "$ac_cv_build" >&6; }
  24081. case $ac_cv_build in
  24082. *-*-*) ;;
  24083. -*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
  24084. -echo "$as_me: error: invalid value of canonical build" >&2;}
  24085. - { (exit 1); exit 1; }; };;
  24086. +*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
  24087. esac
  24088. build=$ac_cv_build
  24089. ac_save_IFS=$IFS; IFS='-'
  24090. @@ -2480,28 +2952,24 @@
  24091. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  24092. -{ echo "$as_me:$LINENO: checking host system type" >&5
  24093. -echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
  24094. -if test "${ac_cv_host+set}" = set; then
  24095. - echo $ECHO_N "(cached) $ECHO_C" >&6
  24096. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  24097. +$as_echo_n "checking host system type... " >&6; }
  24098. +if test "${ac_cv_host+set}" = set; then :
  24099. + $as_echo_n "(cached) " >&6
  24100. else
  24101. if test "x$host_alias" = x; then
  24102. ac_cv_host=$ac_cv_build
  24103. else
  24104. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  24105. - { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
  24106. -echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
  24107. - { (exit 1); exit 1; }; }
  24108. + as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  24109. fi
  24110. fi
  24111. -{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
  24112. -echo "${ECHO_T}$ac_cv_host" >&6; }
  24113. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  24114. +$as_echo "$ac_cv_host" >&6; }
  24115. case $ac_cv_host in
  24116. *-*-*) ;;
  24117. -*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
  24118. -echo "$as_me: error: invalid value of canonical host" >&2;}
  24119. - { (exit 1); exit 1; }; };;
  24120. +*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
  24121. esac
  24122. host=$ac_cv_host
  24123. ac_save_IFS=$IFS; IFS='-'
  24124. @@ -2564,19 +3032,17 @@
  24125. # Check for DEBUG flag
  24126. #
  24127. - { echo "$as_me:$LINENO: checking for --enable-debug" >&5
  24128. -echo $ECHO_N "checking for --enable-debug... $ECHO_C" >&6; }
  24129. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-debug" >&5
  24130. +$as_echo_n "checking for --enable-debug... " >&6; }
  24131. # Check whether --enable-debug was given.
  24132. -if test "${enable_debug+set}" = set; then
  24133. +if test "${enable_debug+set}" = set; then :
  24134. enableval=$enable_debug;
  24135. fi
  24136. test "x$enable_debug" != xyes && enable_debug=no
  24137. - { echo "$as_me:$LINENO: result: $enable_debug" >&5
  24138. -echo "${ECHO_T}$enable_debug" >&6; }
  24139. -
  24140. -
  24141. -if test x"$enable_debug" = xyes; then
  24142. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_debug" >&5
  24143. +$as_echo "$enable_debug" >&6; }
  24144. + if test x"$enable_debug" = xyes; then
  24145. ENABLE_DEBUG_TRUE=
  24146. ENABLE_DEBUG_FALSE='#'
  24147. else
  24148. @@ -2587,25 +3053,17 @@
  24149. if test "x$enable_debug" = xyes ; then
  24150. -cat >>confdefs.h <<\_ACEOF
  24151. -#define UPNP_HAVE_DEBUG 1
  24152. -_ACEOF
  24153. +$as_echo "#define UPNP_HAVE_DEBUG 1" >>confdefs.h
  24154. -cat >>confdefs.h <<\_ACEOF
  24155. -#define DEBUG 1
  24156. -_ACEOF
  24157. +$as_echo "#define DEBUG 1" >>confdefs.h
  24158. else
  24159. -cat >>confdefs.h <<\_ACEOF
  24160. -#define NO_DEBUG 1
  24161. -_ACEOF
  24162. +$as_echo "#define NO_DEBUG 1" >>confdefs.h
  24163. -cat >>confdefs.h <<\_ACEOF
  24164. -#define NDEBUG 1
  24165. -_ACEOF
  24166. +$as_echo "#define NDEBUG 1" >>confdefs.h
  24167. fi
  24168. @@ -2614,19 +3072,17 @@
  24169. # Check for libupnp subsets
  24170. #
  24171. - { echo "$as_me:$LINENO: checking for --enable-client" >&5
  24172. -echo $ECHO_N "checking for --enable-client... $ECHO_C" >&6; }
  24173. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-client" >&5
  24174. +$as_echo_n "checking for --enable-client... " >&6; }
  24175. # Check whether --enable-client was given.
  24176. -if test "${enable_client+set}" = set; then
  24177. +if test "${enable_client+set}" = set; then :
  24178. enableval=$enable_client;
  24179. fi
  24180. test "x$enable_client" != xno && enable_client=yes
  24181. - { echo "$as_me:$LINENO: result: $enable_client" >&5
  24182. -echo "${ECHO_T}$enable_client" >&6; }
  24183. -
  24184. -
  24185. -if test x"$enable_client" = xyes; then
  24186. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_client" >&5
  24187. +$as_echo "$enable_client" >&6; }
  24188. + if test x"$enable_client" = xyes; then
  24189. ENABLE_CLIENT_TRUE=
  24190. ENABLE_CLIENT_FALSE='#'
  24191. else
  24192. @@ -2637,27 +3093,23 @@
  24193. if test "x$enable_client" = xyes ; then
  24194. -cat >>confdefs.h <<\_ACEOF
  24195. -#define UPNP_HAVE_CLIENT 1
  24196. -_ACEOF
  24197. +$as_echo "#define UPNP_HAVE_CLIENT 1" >>confdefs.h
  24198. fi
  24199. - { echo "$as_me:$LINENO: checking for --enable-device" >&5
  24200. -echo $ECHO_N "checking for --enable-device... $ECHO_C" >&6; }
  24201. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-device" >&5
  24202. +$as_echo_n "checking for --enable-device... " >&6; }
  24203. # Check whether --enable-device was given.
  24204. -if test "${enable_device+set}" = set; then
  24205. +if test "${enable_device+set}" = set; then :
  24206. enableval=$enable_device;
  24207. fi
  24208. test "x$enable_device" != xno && enable_device=yes
  24209. - { echo "$as_me:$LINENO: result: $enable_device" >&5
  24210. -echo "${ECHO_T}$enable_device" >&6; }
  24211. -
  24212. -
  24213. -if test x"$enable_device" = xyes; then
  24214. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_device" >&5
  24215. +$as_echo "$enable_device" >&6; }
  24216. + if test x"$enable_device" = xyes; then
  24217. ENABLE_DEVICE_TRUE=
  24218. ENABLE_DEVICE_FALSE='#'
  24219. else
  24220. @@ -2668,9 +3120,7 @@
  24221. if test "x$enable_device" = xyes ; then
  24222. -cat >>confdefs.h <<\_ACEOF
  24223. -#define UPNP_HAVE_DEVICE 1
  24224. -_ACEOF
  24225. +$as_echo "#define UPNP_HAVE_DEVICE 1" >>confdefs.h
  24226. fi
  24227. @@ -2679,19 +3129,17 @@
  24228. enable_webserver=no
  24229. else
  24230. - { echo "$as_me:$LINENO: checking for --enable-webserver" >&5
  24231. -echo $ECHO_N "checking for --enable-webserver... $ECHO_C" >&6; }
  24232. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-webserver" >&5
  24233. +$as_echo_n "checking for --enable-webserver... " >&6; }
  24234. # Check whether --enable-webserver was given.
  24235. -if test "${enable_webserver+set}" = set; then
  24236. +if test "${enable_webserver+set}" = set; then :
  24237. enableval=$enable_webserver;
  24238. fi
  24239. test "x$enable_webserver" != xno && enable_webserver=yes
  24240. - { echo "$as_me:$LINENO: result: $enable_webserver" >&5
  24241. -echo "${ECHO_T}$enable_webserver" >&6; }
  24242. -
  24243. -
  24244. -if test x"$enable_webserver" = xyes; then
  24245. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_webserver" >&5
  24246. +$as_echo "$enable_webserver" >&6; }
  24247. + if test x"$enable_webserver" = xyes; then
  24248. ENABLE_WEBSERVER_TRUE=
  24249. ENABLE_WEBSERVER_FALSE='#'
  24250. else
  24251. @@ -2701,9 +3149,7 @@
  24252. fi
  24253. -
  24254. -
  24255. -if test x"$enable_webserver" = xyes; then
  24256. + if test x"$enable_webserver" = xyes; then
  24257. ENABLE_WEBSERVER_TRUE=
  24258. ENABLE_WEBSERVER_FALSE='#'
  24259. else
  24260. @@ -2713,27 +3159,23 @@
  24261. if test "x$enable_webserver" = xyes ; then
  24262. -cat >>confdefs.h <<\_ACEOF
  24263. -#define UPNP_HAVE_WEBSERVER 1
  24264. -_ACEOF
  24265. +$as_echo "#define UPNP_HAVE_WEBSERVER 1" >>confdefs.h
  24266. fi
  24267. - { echo "$as_me:$LINENO: checking for --enable-tools" >&5
  24268. -echo $ECHO_N "checking for --enable-tools... $ECHO_C" >&6; }
  24269. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-tools" >&5
  24270. +$as_echo_n "checking for --enable-tools... " >&6; }
  24271. # Check whether --enable-tools was given.
  24272. -if test "${enable_tools+set}" = set; then
  24273. +if test "${enable_tools+set}" = set; then :
  24274. enableval=$enable_tools;
  24275. fi
  24276. test "x$enable_tools" != xno && enable_tools=yes
  24277. - { echo "$as_me:$LINENO: result: $enable_tools" >&5
  24278. -echo "${ECHO_T}$enable_tools" >&6; }
  24279. -
  24280. -
  24281. -if test x"$enable_tools" = xyes; then
  24282. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_tools" >&5
  24283. +$as_echo "$enable_tools" >&6; }
  24284. + if test x"$enable_tools" = xyes; then
  24285. ENABLE_TOOLS_TRUE=
  24286. ENABLE_TOOLS_FALSE='#'
  24287. else
  24288. @@ -2744,27 +3186,23 @@
  24289. if test "x$enable_tools" = xyes ; then
  24290. -cat >>confdefs.h <<\_ACEOF
  24291. -#define UPNP_HAVE_TOOLS 1
  24292. -_ACEOF
  24293. +$as_echo "#define UPNP_HAVE_TOOLS 1" >>confdefs.h
  24294. fi
  24295. - { echo "$as_me:$LINENO: checking for --enable-samples" >&5
  24296. -echo $ECHO_N "checking for --enable-samples... $ECHO_C" >&6; }
  24297. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-samples" >&5
  24298. +$as_echo_n "checking for --enable-samples... " >&6; }
  24299. # Check whether --enable-samples was given.
  24300. -if test "${enable_samples+set}" = set; then
  24301. +if test "${enable_samples+set}" = set; then :
  24302. enableval=$enable_samples;
  24303. fi
  24304. test "x$enable_samples" != xno && enable_samples=yes
  24305. - { echo "$as_me:$LINENO: result: $enable_samples" >&5
  24306. -echo "${ECHO_T}$enable_samples" >&6; }
  24307. -
  24308. -
  24309. -if test x"$enable_samples" = xyes; then
  24310. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_samples" >&5
  24311. +$as_echo "$enable_samples" >&6; }
  24312. + if test x"$enable_samples" = xyes; then
  24313. ENABLE_SAMPLES_TRUE=
  24314. ENABLE_SAMPLES_FALSE='#'
  24315. else
  24316. @@ -2783,11 +3221,11 @@
  24317. # version on that.
  24318. #
  24319. docdir="${datadir}/doc/${PACKAGE_NAME}-${PACKAGE_VERSION}"
  24320. -{ echo "$as_me:$LINENO: checking for documentation directory" >&5
  24321. -echo $ECHO_N "checking for documentation directory... $ECHO_C" >&6; }
  24322. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for documentation directory" >&5
  24323. +$as_echo_n "checking for documentation directory... " >&6; }
  24324. # Check whether --with-documentation was given.
  24325. -if test "${with_documentation+set}" = set; then
  24326. +if test "${with_documentation+set}" = set; then :
  24327. withval=$with_documentation;
  24328. else
  24329. with_documentation=no
  24330. @@ -2800,9 +3238,7 @@
  24331. if test x"$with_documentation" != xyes -a x"$with_documentation" != xno; then
  24332. docdir="$with_documentation"
  24333. fi
  24334. -
  24335. -
  24336. -if test x"$with_documentation" != xno; then
  24337. + if test x"$with_documentation" != xno; then
  24338. WITH_DOCUMENTATION_TRUE=
  24339. WITH_DOCUMENTATION_FALSE='#'
  24340. else
  24341. @@ -2811,8 +3247,8 @@
  24342. fi
  24343. -{ echo "$as_me:$LINENO: result: $docdir" >&5
  24344. -echo "${ECHO_T}$docdir" >&6; }
  24345. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $docdir" >&5
  24346. +$as_echo "$docdir" >&6; }
  24347. #
  24348. @@ -2826,10 +3262,10 @@
  24349. if test -n "$ac_tool_prefix"; then
  24350. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  24351. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  24352. -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
  24353. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  24354. -if test "${ac_cv_prog_CC+set}" = set; then
  24355. - echo $ECHO_N "(cached) $ECHO_C" >&6
  24356. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  24357. +$as_echo_n "checking for $ac_word... " >&6; }
  24358. +if test "${ac_cv_prog_CC+set}" = set; then :
  24359. + $as_echo_n "(cached) " >&6
  24360. else
  24361. if test -n "$CC"; then
  24362. ac_cv_prog_CC="$CC" # Let the user override the test.
  24363. @@ -2839,25 +3275,25 @@
  24364. do
  24365. IFS=$as_save_IFS
  24366. test -z "$as_dir" && as_dir=.
  24367. - for ac_exec_ext in '' $ac_executable_extensions; do
  24368. - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
  24369. + for ac_exec_ext in '' $ac_executable_extensions; do
  24370. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  24371. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  24372. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  24373. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  24374. break 2
  24375. fi
  24376. done
  24377. -done
  24378. + done
  24379. IFS=$as_save_IFS
  24380. fi
  24381. fi
  24382. CC=$ac_cv_prog_CC
  24383. if test -n "$CC"; then
  24384. - { echo "$as_me:$LINENO: result: $CC" >&5
  24385. -echo "${ECHO_T}$CC" >&6; }
  24386. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  24387. +$as_echo "$CC" >&6; }
  24388. else
  24389. - { echo "$as_me:$LINENO: result: no" >&5
  24390. -echo "${ECHO_T}no" >&6; }
  24391. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  24392. +$as_echo "no" >&6; }
  24393. fi
  24394. @@ -2866,10 +3302,10 @@
  24395. ac_ct_CC=$CC
  24396. # Extract the first word of "gcc", so it can be a program name with args.
  24397. set dummy gcc; ac_word=$2
  24398. -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
  24399. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  24400. -if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  24401. - echo $ECHO_N "(cached) $ECHO_C" >&6
  24402. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  24403. +$as_echo_n "checking for $ac_word... " >&6; }
  24404. +if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
  24405. + $as_echo_n "(cached) " >&6
  24406. else
  24407. if test -n "$ac_ct_CC"; then
  24408. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  24409. @@ -2879,25 +3315,25 @@
  24410. do
  24411. IFS=$as_save_IFS
  24412. test -z "$as_dir" && as_dir=.
  24413. - for ac_exec_ext in '' $ac_executable_extensions; do
  24414. - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
  24415. + for ac_exec_ext in '' $ac_executable_extensions; do
  24416. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  24417. ac_cv_prog_ac_ct_CC="gcc"
  24418. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  24419. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  24420. break 2
  24421. fi
  24422. done
  24423. -done
  24424. + done
  24425. IFS=$as_save_IFS
  24426. fi
  24427. fi
  24428. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  24429. if test -n "$ac_ct_CC"; then
  24430. - { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  24431. -echo "${ECHO_T}$ac_ct_CC" >&6; }
  24432. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  24433. +$as_echo "$ac_ct_CC" >&6; }
  24434. else
  24435. - { echo "$as_me:$LINENO: result: no" >&5
  24436. -echo "${ECHO_T}no" >&6; }
  24437. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  24438. +$as_echo "no" >&6; }
  24439. fi
  24440. if test "x$ac_ct_CC" = x; then
  24441. @@ -2905,12 +3341,8 @@
  24442. else
  24443. case $cross_compiling:$ac_tool_warned in
  24444. yes:)
  24445. -{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  24446. -whose name does not start with the host triplet. If you think this
  24447. -configuration is useful to you, please write to autoconf@gnu.org." >&5
  24448. -echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  24449. -whose name does not start with the host triplet. If you think this
  24450. -configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  24451. +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  24452. +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  24453. ac_tool_warned=yes ;;
  24454. esac
  24455. CC=$ac_ct_CC
  24456. @@ -2923,10 +3355,10 @@
  24457. if test -n "$ac_tool_prefix"; then
  24458. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  24459. set dummy ${ac_tool_prefix}cc; ac_word=$2
  24460. -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
  24461. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  24462. -if test "${ac_cv_prog_CC+set}" = set; then
  24463. - echo $ECHO_N "(cached) $ECHO_C" >&6
  24464. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  24465. +$as_echo_n "checking for $ac_word... " >&6; }
  24466. +if test "${ac_cv_prog_CC+set}" = set; then :
  24467. + $as_echo_n "(cached) " >&6
  24468. else
  24469. if test -n "$CC"; then
  24470. ac_cv_prog_CC="$CC" # Let the user override the test.
  24471. @@ -2936,25 +3368,25 @@
  24472. do
  24473. IFS=$as_save_IFS
  24474. test -z "$as_dir" && as_dir=.
  24475. - for ac_exec_ext in '' $ac_executable_extensions; do
  24476. - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
  24477. + for ac_exec_ext in '' $ac_executable_extensions; do
  24478. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  24479. ac_cv_prog_CC="${ac_tool_prefix}cc"
  24480. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  24481. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  24482. break 2
  24483. fi
  24484. done
  24485. -done
  24486. + done
  24487. IFS=$as_save_IFS
  24488. fi
  24489. fi
  24490. CC=$ac_cv_prog_CC
  24491. if test -n "$CC"; then
  24492. - { echo "$as_me:$LINENO: result: $CC" >&5
  24493. -echo "${ECHO_T}$CC" >&6; }
  24494. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  24495. +$as_echo "$CC" >&6; }
  24496. else
  24497. - { echo "$as_me:$LINENO: result: no" >&5
  24498. -echo "${ECHO_T}no" >&6; }
  24499. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  24500. +$as_echo "no" >&6; }
  24501. fi
  24502. @@ -2963,10 +3395,10 @@
  24503. if test -z "$CC"; then
  24504. # Extract the first word of "cc", so it can be a program name with args.
  24505. set dummy cc; ac_word=$2
  24506. -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
  24507. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  24508. -if test "${ac_cv_prog_CC+set}" = set; then
  24509. - echo $ECHO_N "(cached) $ECHO_C" >&6
  24510. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  24511. +$as_echo_n "checking for $ac_word... " >&6; }
  24512. +if test "${ac_cv_prog_CC+set}" = set; then :
  24513. + $as_echo_n "(cached) " >&6
  24514. else
  24515. if test -n "$CC"; then
  24516. ac_cv_prog_CC="$CC" # Let the user override the test.
  24517. @@ -2977,18 +3409,18 @@
  24518. do
  24519. IFS=$as_save_IFS
  24520. test -z "$as_dir" && as_dir=.
  24521. - for ac_exec_ext in '' $ac_executable_extensions; do
  24522. - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
  24523. + for ac_exec_ext in '' $ac_executable_extensions; do
  24524. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  24525. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  24526. ac_prog_rejected=yes
  24527. continue
  24528. fi
  24529. ac_cv_prog_CC="cc"
  24530. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  24531. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  24532. break 2
  24533. fi
  24534. done
  24535. -done
  24536. + done
  24537. IFS=$as_save_IFS
  24538. if test $ac_prog_rejected = yes; then
  24539. @@ -3007,11 +3439,11 @@
  24540. fi
  24541. CC=$ac_cv_prog_CC
  24542. if test -n "$CC"; then
  24543. - { echo "$as_me:$LINENO: result: $CC" >&5
  24544. -echo "${ECHO_T}$CC" >&6; }
  24545. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  24546. +$as_echo "$CC" >&6; }
  24547. else
  24548. - { echo "$as_me:$LINENO: result: no" >&5
  24549. -echo "${ECHO_T}no" >&6; }
  24550. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  24551. +$as_echo "no" >&6; }
  24552. fi
  24553. @@ -3022,10 +3454,10 @@
  24554. do
  24555. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  24556. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  24557. -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
  24558. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  24559. -if test "${ac_cv_prog_CC+set}" = set; then
  24560. - echo $ECHO_N "(cached) $ECHO_C" >&6
  24561. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  24562. +$as_echo_n "checking for $ac_word... " >&6; }
  24563. +if test "${ac_cv_prog_CC+set}" = set; then :
  24564. + $as_echo_n "(cached) " >&6
  24565. else
  24566. if test -n "$CC"; then
  24567. ac_cv_prog_CC="$CC" # Let the user override the test.
  24568. @@ -3035,25 +3467,25 @@
  24569. do
  24570. IFS=$as_save_IFS
  24571. test -z "$as_dir" && as_dir=.
  24572. - for ac_exec_ext in '' $ac_executable_extensions; do
  24573. - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
  24574. + for ac_exec_ext in '' $ac_executable_extensions; do
  24575. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  24576. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  24577. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  24578. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  24579. break 2
  24580. fi
  24581. done
  24582. -done
  24583. + done
  24584. IFS=$as_save_IFS
  24585. fi
  24586. fi
  24587. CC=$ac_cv_prog_CC
  24588. if test -n "$CC"; then
  24589. - { echo "$as_me:$LINENO: result: $CC" >&5
  24590. -echo "${ECHO_T}$CC" >&6; }
  24591. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  24592. +$as_echo "$CC" >&6; }
  24593. else
  24594. - { echo "$as_me:$LINENO: result: no" >&5
  24595. -echo "${ECHO_T}no" >&6; }
  24596. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  24597. +$as_echo "no" >&6; }
  24598. fi
  24599. @@ -3066,10 +3498,10 @@
  24600. do
  24601. # Extract the first word of "$ac_prog", so it can be a program name with args.
  24602. set dummy $ac_prog; ac_word=$2
  24603. -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
  24604. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  24605. -if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  24606. - echo $ECHO_N "(cached) $ECHO_C" >&6
  24607. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  24608. +$as_echo_n "checking for $ac_word... " >&6; }
  24609. +if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
  24610. + $as_echo_n "(cached) " >&6
  24611. else
  24612. if test -n "$ac_ct_CC"; then
  24613. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  24614. @@ -3079,25 +3511,25 @@
  24615. do
  24616. IFS=$as_save_IFS
  24617. test -z "$as_dir" && as_dir=.
  24618. - for ac_exec_ext in '' $ac_executable_extensions; do
  24619. - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
  24620. + for ac_exec_ext in '' $ac_executable_extensions; do
  24621. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  24622. ac_cv_prog_ac_ct_CC="$ac_prog"
  24623. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  24624. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  24625. break 2
  24626. fi
  24627. done
  24628. -done
  24629. + done
  24630. IFS=$as_save_IFS
  24631. fi
  24632. fi
  24633. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  24634. if test -n "$ac_ct_CC"; then
  24635. - { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  24636. -echo "${ECHO_T}$ac_ct_CC" >&6; }
  24637. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  24638. +$as_echo "$ac_ct_CC" >&6; }
  24639. else
  24640. - { echo "$as_me:$LINENO: result: no" >&5
  24641. -echo "${ECHO_T}no" >&6; }
  24642. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  24643. +$as_echo "no" >&6; }
  24644. fi
  24645. @@ -3109,12 +3541,8 @@
  24646. else
  24647. case $cross_compiling:$ac_tool_warned in
  24648. yes:)
  24649. -{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  24650. -whose name does not start with the host triplet. If you think this
  24651. -configuration is useful to you, please write to autoconf@gnu.org." >&5
  24652. -echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  24653. -whose name does not start with the host triplet. If you think this
  24654. -configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  24655. +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  24656. +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  24657. ac_tool_warned=yes ;;
  24658. esac
  24659. CC=$ac_ct_CC
  24660. @@ -3124,51 +3552,37 @@
  24661. fi
  24662. -test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
  24663. -See \`config.log' for more details." >&5
  24664. -echo "$as_me: error: no acceptable C compiler found in \$PATH
  24665. -See \`config.log' for more details." >&2;}
  24666. - { (exit 1); exit 1; }; }
  24667. +test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  24668. +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  24669. +as_fn_error "no acceptable C compiler found in \$PATH
  24670. +See \`config.log' for more details." "$LINENO" 5; }
  24671. # Provide some information about the compiler.
  24672. -echo "$as_me:$LINENO: checking for C compiler version" >&5
  24673. -ac_compiler=`set X $ac_compile; echo $2`
  24674. -{ (ac_try="$ac_compiler --version >&5"
  24675. -case "(($ac_try" in
  24676. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  24677. - *) ac_try_echo=$ac_try;;
  24678. -esac
  24679. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  24680. - (eval "$ac_compiler --version >&5") 2>&5
  24681. - ac_status=$?
  24682. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24683. - (exit $ac_status); }
  24684. -{ (ac_try="$ac_compiler -v >&5"
  24685. -case "(($ac_try" in
  24686. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  24687. - *) ac_try_echo=$ac_try;;
  24688. -esac
  24689. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  24690. - (eval "$ac_compiler -v >&5") 2>&5
  24691. - ac_status=$?
  24692. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24693. - (exit $ac_status); }
  24694. -{ (ac_try="$ac_compiler -V >&5"
  24695. +$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  24696. +set X $ac_compile
  24697. +ac_compiler=$2
  24698. +for ac_option in --version -v -V -qversion; do
  24699. + { { ac_try="$ac_compiler $ac_option >&5"
  24700. case "(($ac_try" in
  24701. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  24702. *) ac_try_echo=$ac_try;;
  24703. esac
  24704. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  24705. - (eval "$ac_compiler -V >&5") 2>&5
  24706. +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  24707. +$as_echo "$ac_try_echo"; } >&5
  24708. + (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  24709. ac_status=$?
  24710. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24711. - (exit $ac_status); }
  24712. + if test -s conftest.err; then
  24713. + sed '10a\
  24714. +... rest of stderr output deleted ...
  24715. + 10q' conftest.err >conftest.er1
  24716. + cat conftest.er1 >&5
  24717. + fi
  24718. + rm -f conftest.er1 conftest.err
  24719. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  24720. + test $ac_status = 0; }
  24721. +done
  24722. -cat >conftest.$ac_ext <<_ACEOF
  24723. -/* confdefs.h. */
  24724. -_ACEOF
  24725. -cat confdefs.h >>conftest.$ac_ext
  24726. -cat >>conftest.$ac_ext <<_ACEOF
  24727. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24728. /* end confdefs.h. */
  24729. int
  24730. @@ -3180,59 +3594,55 @@
  24731. }
  24732. _ACEOF
  24733. ac_clean_files_save=$ac_clean_files
  24734. -ac_clean_files="$ac_clean_files a.out a.exe b.out"
  24735. +ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  24736. # Try to create an executable without -o first, disregard a.out.
  24737. # It will help us diagnose broken compilers, and finding out an intuition
  24738. # of exeext.
  24739. -{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
  24740. -echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
  24741. -ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  24742. -#
  24743. -# List of possible output files, starting from the most likely.
  24744. -# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
  24745. -# only as a last resort. b.out is created by i960 compilers.
  24746. -ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
  24747. -#
  24748. -# The IRIX 6 linker writes into existing files which may not be
  24749. -# executable, retaining their permissions. Remove them first so a
  24750. -# subsequent execution test works.
  24751. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  24752. +$as_echo_n "checking whether the C compiler works... " >&6; }
  24753. +ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  24754. +
  24755. +# The possible output files:
  24756. +ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  24757. +
  24758. ac_rmfiles=
  24759. for ac_file in $ac_files
  24760. do
  24761. case $ac_file in
  24762. - *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
  24763. + *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  24764. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  24765. esac
  24766. done
  24767. rm -f $ac_rmfiles
  24768. -if { (ac_try="$ac_link_default"
  24769. +if { { ac_try="$ac_link_default"
  24770. case "(($ac_try" in
  24771. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  24772. *) ac_try_echo=$ac_try;;
  24773. esac
  24774. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  24775. +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  24776. +$as_echo "$ac_try_echo"; } >&5
  24777. (eval "$ac_link_default") 2>&5
  24778. ac_status=$?
  24779. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24780. - (exit $ac_status); }; then
  24781. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  24782. + test $ac_status = 0; }; then :
  24783. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  24784. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  24785. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  24786. # so that the user can short-circuit this test for compilers unknown to
  24787. # Autoconf.
  24788. -for ac_file in $ac_files
  24789. +for ac_file in $ac_files ''
  24790. do
  24791. test -f "$ac_file" || continue
  24792. case $ac_file in
  24793. - *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
  24794. + *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  24795. ;;
  24796. [ab].out )
  24797. # We found the default executable, but exeext='' is most
  24798. # certainly right.
  24799. break;;
  24800. *.* )
  24801. - if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  24802. + if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  24803. then :; else
  24804. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  24805. fi
  24806. @@ -3249,76 +3659,44 @@
  24807. test "$ac_cv_exeext" = no && ac_cv_exeext=
  24808. else
  24809. - echo "$as_me: failed program was:" >&5
  24810. -sed 's/^/| /' conftest.$ac_ext >&5
  24811. -
  24812. -{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
  24813. -See \`config.log' for more details." >&5
  24814. -echo "$as_me: error: C compiler cannot create executables
  24815. -See \`config.log' for more details." >&2;}
  24816. - { (exit 77); exit 77; }; }
  24817. + ac_file=''
  24818. fi
  24819. -
  24820. +if test -z "$ac_file"; then :
  24821. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  24822. +$as_echo "no" >&6; }
  24823. +$as_echo "$as_me: failed program was:" >&5
  24824. +sed 's/^/| /' conftest.$ac_ext >&5
  24825. +
  24826. +{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  24827. +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  24828. +{ as_fn_set_status 77
  24829. +as_fn_error "C compiler cannot create executables
  24830. +See \`config.log' for more details." "$LINENO" 5; }; }
  24831. +else
  24832. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  24833. +$as_echo "yes" >&6; }
  24834. +fi
  24835. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  24836. +$as_echo_n "checking for C compiler default output file name... " >&6; }
  24837. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  24838. +$as_echo "$ac_file" >&6; }
  24839. ac_exeext=$ac_cv_exeext
  24840. -{ echo "$as_me:$LINENO: result: $ac_file" >&5
  24841. -echo "${ECHO_T}$ac_file" >&6; }
  24842. -# Check that the compiler produces executables we can run. If not, either
  24843. -# the compiler is broken, or we cross compile.
  24844. -{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
  24845. -echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
  24846. -# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
  24847. -# If not cross compiling, check that we can run a simple program.
  24848. -if test "$cross_compiling" != yes; then
  24849. - if { ac_try='./$ac_file'
  24850. - { (case "(($ac_try" in
  24851. +rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  24852. +ac_clean_files=$ac_clean_files_save
  24853. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  24854. +$as_echo_n "checking for suffix of executables... " >&6; }
  24855. +if { { ac_try="$ac_link"
  24856. +case "(($ac_try" in
  24857. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  24858. *) ac_try_echo=$ac_try;;
  24859. esac
  24860. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  24861. - (eval "$ac_try") 2>&5
  24862. +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  24863. +$as_echo "$ac_try_echo"; } >&5
  24864. + (eval "$ac_link") 2>&5
  24865. ac_status=$?
  24866. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24867. - (exit $ac_status); }; }; then
  24868. - cross_compiling=no
  24869. - else
  24870. - if test "$cross_compiling" = maybe; then
  24871. - cross_compiling=yes
  24872. - else
  24873. - { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
  24874. -If you meant to cross compile, use \`--host'.
  24875. -See \`config.log' for more details." >&5
  24876. -echo "$as_me: error: cannot run C compiled programs.
  24877. -If you meant to cross compile, use \`--host'.
  24878. -See \`config.log' for more details." >&2;}
  24879. - { (exit 1); exit 1; }; }
  24880. - fi
  24881. - fi
  24882. -fi
  24883. -{ echo "$as_me:$LINENO: result: yes" >&5
  24884. -echo "${ECHO_T}yes" >&6; }
  24885. -
  24886. -rm -f a.out a.exe conftest$ac_cv_exeext b.out
  24887. -ac_clean_files=$ac_clean_files_save
  24888. -# Check that the compiler produces executables we can run. If not, either
  24889. -# the compiler is broken, or we cross compile.
  24890. -{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
  24891. -echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
  24892. -{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
  24893. -echo "${ECHO_T}$cross_compiling" >&6; }
  24894. -
  24895. -{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
  24896. -echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
  24897. -if { (ac_try="$ac_link"
  24898. -case "(($ac_try" in
  24899. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  24900. - *) ac_try_echo=$ac_try;;
  24901. -esac
  24902. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  24903. - (eval "$ac_link") 2>&5
  24904. - ac_status=$?
  24905. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24906. - (exit $ac_status); }; then
  24907. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  24908. + test $ac_status = 0; }; then :
  24909. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  24910. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  24911. # work properly (i.e., refer to `conftest.exe'), while it won't with
  24912. @@ -3326,37 +3704,90 @@
  24913. for ac_file in conftest.exe conftest conftest.*; do
  24914. test -f "$ac_file" || continue
  24915. case $ac_file in
  24916. - *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
  24917. + *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  24918. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  24919. break;;
  24920. * ) break;;
  24921. esac
  24922. done
  24923. else
  24924. - { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
  24925. -See \`config.log' for more details." >&5
  24926. -echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
  24927. -See \`config.log' for more details." >&2;}
  24928. - { (exit 1); exit 1; }; }
  24929. -fi
  24930. -
  24931. -rm -f conftest$ac_cv_exeext
  24932. -{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
  24933. -echo "${ECHO_T}$ac_cv_exeext" >&6; }
  24934. + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  24935. +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  24936. +as_fn_error "cannot compute suffix of executables: cannot compile and link
  24937. +See \`config.log' for more details." "$LINENO" 5; }
  24938. +fi
  24939. +rm -f conftest conftest$ac_cv_exeext
  24940. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  24941. +$as_echo "$ac_cv_exeext" >&6; }
  24942. rm -f conftest.$ac_ext
  24943. EXEEXT=$ac_cv_exeext
  24944. ac_exeext=$EXEEXT
  24945. -{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
  24946. -echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
  24947. -if test "${ac_cv_objext+set}" = set; then
  24948. - echo $ECHO_N "(cached) $ECHO_C" >&6
  24949. -else
  24950. - cat >conftest.$ac_ext <<_ACEOF
  24951. -/* confdefs.h. */
  24952. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24953. +/* end confdefs.h. */
  24954. +#include <stdio.h>
  24955. +int
  24956. +main ()
  24957. +{
  24958. +FILE *f = fopen ("conftest.out", "w");
  24959. + return ferror (f) || fclose (f) != 0;
  24960. +
  24961. + ;
  24962. + return 0;
  24963. +}
  24964. _ACEOF
  24965. -cat confdefs.h >>conftest.$ac_ext
  24966. -cat >>conftest.$ac_ext <<_ACEOF
  24967. +ac_clean_files="$ac_clean_files conftest.out"
  24968. +# Check that the compiler produces executables we can run. If not, either
  24969. +# the compiler is broken, or we cross compile.
  24970. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  24971. +$as_echo_n "checking whether we are cross compiling... " >&6; }
  24972. +if test "$cross_compiling" != yes; then
  24973. + { { ac_try="$ac_link"
  24974. +case "(($ac_try" in
  24975. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  24976. + *) ac_try_echo=$ac_try;;
  24977. +esac
  24978. +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  24979. +$as_echo "$ac_try_echo"; } >&5
  24980. + (eval "$ac_link") 2>&5
  24981. + ac_status=$?
  24982. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  24983. + test $ac_status = 0; }
  24984. + if { ac_try='./conftest$ac_cv_exeext'
  24985. + { { case "(($ac_try" in
  24986. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  24987. + *) ac_try_echo=$ac_try;;
  24988. +esac
  24989. +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  24990. +$as_echo "$ac_try_echo"; } >&5
  24991. + (eval "$ac_try") 2>&5
  24992. + ac_status=$?
  24993. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  24994. + test $ac_status = 0; }; }; then
  24995. + cross_compiling=no
  24996. + else
  24997. + if test "$cross_compiling" = maybe; then
  24998. + cross_compiling=yes
  24999. + else
  25000. + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  25001. +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  25002. +as_fn_error "cannot run C compiled programs.
  25003. +If you meant to cross compile, use \`--host'.
  25004. +See \`config.log' for more details." "$LINENO" 5; }
  25005. + fi
  25006. + fi
  25007. +fi
  25008. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  25009. +$as_echo "$cross_compiling" >&6; }
  25010. +
  25011. +rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  25012. +ac_clean_files=$ac_clean_files_save
  25013. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  25014. +$as_echo_n "checking for suffix of object files... " >&6; }
  25015. +if test "${ac_cv_objext+set}" = set; then :
  25016. + $as_echo_n "(cached) " >&6
  25017. +else
  25018. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  25019. /* end confdefs.h. */
  25020. int
  25021. @@ -3368,51 +3799,46 @@
  25022. }
  25023. _ACEOF
  25024. rm -f conftest.o conftest.obj
  25025. -if { (ac_try="$ac_compile"
  25026. +if { { ac_try="$ac_compile"
  25027. case "(($ac_try" in
  25028. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  25029. *) ac_try_echo=$ac_try;;
  25030. esac
  25031. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  25032. +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  25033. +$as_echo "$ac_try_echo"; } >&5
  25034. (eval "$ac_compile") 2>&5
  25035. ac_status=$?
  25036. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25037. - (exit $ac_status); }; then
  25038. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  25039. + test $ac_status = 0; }; then :
  25040. for ac_file in conftest.o conftest.obj conftest.*; do
  25041. test -f "$ac_file" || continue;
  25042. case $ac_file in
  25043. - *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
  25044. + *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  25045. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  25046. break;;
  25047. esac
  25048. done
  25049. else
  25050. - echo "$as_me: failed program was:" >&5
  25051. + $as_echo "$as_me: failed program was:" >&5
  25052. sed 's/^/| /' conftest.$ac_ext >&5
  25053. -{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
  25054. -See \`config.log' for more details." >&5
  25055. -echo "$as_me: error: cannot compute suffix of object files: cannot compile
  25056. -See \`config.log' for more details." >&2;}
  25057. - { (exit 1); exit 1; }; }
  25058. +{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  25059. +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  25060. +as_fn_error "cannot compute suffix of object files: cannot compile
  25061. +See \`config.log' for more details." "$LINENO" 5; }
  25062. fi
  25063. -
  25064. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  25065. fi
  25066. -{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
  25067. -echo "${ECHO_T}$ac_cv_objext" >&6; }
  25068. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  25069. +$as_echo "$ac_cv_objext" >&6; }
  25070. OBJEXT=$ac_cv_objext
  25071. ac_objext=$OBJEXT
  25072. -{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
  25073. -echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
  25074. -if test "${ac_cv_c_compiler_gnu+set}" = set; then
  25075. - echo $ECHO_N "(cached) $ECHO_C" >&6
  25076. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  25077. +$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  25078. +if test "${ac_cv_c_compiler_gnu+set}" = set; then :
  25079. + $as_echo_n "(cached) " >&6
  25080. else
  25081. - cat >conftest.$ac_ext <<_ACEOF
  25082. -/* confdefs.h. */
  25083. -_ACEOF
  25084. -cat confdefs.h >>conftest.$ac_ext
  25085. -cat >>conftest.$ac_ext <<_ACEOF
  25086. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  25087. /* end confdefs.h. */
  25088. int
  25089. @@ -3426,71 +3852,34 @@
  25090. return 0;
  25091. }
  25092. _ACEOF
  25093. -rm -f conftest.$ac_objext
  25094. -if { (ac_try="$ac_compile"
  25095. -case "(($ac_try" in
  25096. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  25097. - *) ac_try_echo=$ac_try;;
  25098. -esac
  25099. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  25100. - (eval "$ac_compile") 2>conftest.er1
  25101. - ac_status=$?
  25102. - grep -v '^ *+' conftest.er1 >conftest.err
  25103. - rm -f conftest.er1
  25104. - cat conftest.err >&5
  25105. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25106. - (exit $ac_status); } &&
  25107. - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  25108. - { (case "(($ac_try" in
  25109. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  25110. - *) ac_try_echo=$ac_try;;
  25111. -esac
  25112. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  25113. - (eval "$ac_try") 2>&5
  25114. - ac_status=$?
  25115. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25116. - (exit $ac_status); }; } &&
  25117. - { ac_try='test -s conftest.$ac_objext'
  25118. - { (case "(($ac_try" in
  25119. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  25120. - *) ac_try_echo=$ac_try;;
  25121. -esac
  25122. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  25123. - (eval "$ac_try") 2>&5
  25124. - ac_status=$?
  25125. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25126. - (exit $ac_status); }; }; then
  25127. +if ac_fn_c_try_compile "$LINENO"; then :
  25128. ac_compiler_gnu=yes
  25129. else
  25130. - echo "$as_me: failed program was:" >&5
  25131. -sed 's/^/| /' conftest.$ac_ext >&5
  25132. -
  25133. - ac_compiler_gnu=no
  25134. + ac_compiler_gnu=no
  25135. fi
  25136. -
  25137. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  25138. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  25139. fi
  25140. -{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
  25141. -echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
  25142. -GCC=`test $ac_compiler_gnu = yes && echo yes`
  25143. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  25144. +$as_echo "$ac_cv_c_compiler_gnu" >&6; }
  25145. +if test $ac_compiler_gnu = yes; then
  25146. + GCC=yes
  25147. +else
  25148. + GCC=
  25149. +fi
  25150. ac_test_CFLAGS=${CFLAGS+set}
  25151. ac_save_CFLAGS=$CFLAGS
  25152. -{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
  25153. -echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
  25154. -if test "${ac_cv_prog_cc_g+set}" = set; then
  25155. - echo $ECHO_N "(cached) $ECHO_C" >&6
  25156. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  25157. +$as_echo_n "checking whether $CC accepts -g... " >&6; }
  25158. +if test "${ac_cv_prog_cc_g+set}" = set; then :
  25159. + $as_echo_n "(cached) " >&6
  25160. else
  25161. ac_save_c_werror_flag=$ac_c_werror_flag
  25162. ac_c_werror_flag=yes
  25163. ac_cv_prog_cc_g=no
  25164. CFLAGS="-g"
  25165. - cat >conftest.$ac_ext <<_ACEOF
  25166. -/* confdefs.h. */
  25167. -_ACEOF
  25168. -cat confdefs.h >>conftest.$ac_ext
  25169. -cat >>conftest.$ac_ext <<_ACEOF
  25170. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  25171. /* end confdefs.h. */
  25172. int
  25173. @@ -3501,51 +3890,11 @@
  25174. return 0;
  25175. }
  25176. _ACEOF
  25177. -rm -f conftest.$ac_objext
  25178. -if { (ac_try="$ac_compile"
  25179. -case "(($ac_try" in
  25180. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  25181. - *) ac_try_echo=$ac_try;;
  25182. -esac
  25183. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  25184. - (eval "$ac_compile") 2>conftest.er1
  25185. - ac_status=$?
  25186. - grep -v '^ *+' conftest.er1 >conftest.err
  25187. - rm -f conftest.er1
  25188. - cat conftest.err >&5
  25189. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25190. - (exit $ac_status); } &&
  25191. - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  25192. - { (case "(($ac_try" in
  25193. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  25194. - *) ac_try_echo=$ac_try;;
  25195. -esac
  25196. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  25197. - (eval "$ac_try") 2>&5
  25198. - ac_status=$?
  25199. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25200. - (exit $ac_status); }; } &&
  25201. - { ac_try='test -s conftest.$ac_objext'
  25202. - { (case "(($ac_try" in
  25203. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  25204. - *) ac_try_echo=$ac_try;;
  25205. -esac
  25206. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  25207. - (eval "$ac_try") 2>&5
  25208. - ac_status=$?
  25209. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25210. - (exit $ac_status); }; }; then
  25211. +if ac_fn_c_try_compile "$LINENO"; then :
  25212. ac_cv_prog_cc_g=yes
  25213. else
  25214. - echo "$as_me: failed program was:" >&5
  25215. -sed 's/^/| /' conftest.$ac_ext >&5
  25216. -
  25217. - CFLAGS=""
  25218. - cat >conftest.$ac_ext <<_ACEOF
  25219. -/* confdefs.h. */
  25220. -_ACEOF
  25221. -cat confdefs.h >>conftest.$ac_ext
  25222. -cat >>conftest.$ac_ext <<_ACEOF
  25223. + CFLAGS=""
  25224. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  25225. /* end confdefs.h. */
  25226. int
  25227. @@ -3556,52 +3905,12 @@
  25228. return 0;
  25229. }
  25230. _ACEOF
  25231. -rm -f conftest.$ac_objext
  25232. -if { (ac_try="$ac_compile"
  25233. -case "(($ac_try" in
  25234. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  25235. - *) ac_try_echo=$ac_try;;
  25236. -esac
  25237. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  25238. - (eval "$ac_compile") 2>conftest.er1
  25239. - ac_status=$?
  25240. - grep -v '^ *+' conftest.er1 >conftest.err
  25241. - rm -f conftest.er1
  25242. - cat conftest.err >&5
  25243. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25244. - (exit $ac_status); } &&
  25245. - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  25246. - { (case "(($ac_try" in
  25247. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  25248. - *) ac_try_echo=$ac_try;;
  25249. -esac
  25250. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  25251. - (eval "$ac_try") 2>&5
  25252. - ac_status=$?
  25253. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25254. - (exit $ac_status); }; } &&
  25255. - { ac_try='test -s conftest.$ac_objext'
  25256. - { (case "(($ac_try" in
  25257. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  25258. - *) ac_try_echo=$ac_try;;
  25259. -esac
  25260. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  25261. - (eval "$ac_try") 2>&5
  25262. - ac_status=$?
  25263. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25264. - (exit $ac_status); }; }; then
  25265. - :
  25266. -else
  25267. - echo "$as_me: failed program was:" >&5
  25268. -sed 's/^/| /' conftest.$ac_ext >&5
  25269. +if ac_fn_c_try_compile "$LINENO"; then :
  25270. - ac_c_werror_flag=$ac_save_c_werror_flag
  25271. +else
  25272. + ac_c_werror_flag=$ac_save_c_werror_flag
  25273. CFLAGS="-g"
  25274. - cat >conftest.$ac_ext <<_ACEOF
  25275. -/* confdefs.h. */
  25276. -_ACEOF
  25277. -cat confdefs.h >>conftest.$ac_ext
  25278. -cat >>conftest.$ac_ext <<_ACEOF
  25279. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  25280. /* end confdefs.h. */
  25281. int
  25282. @@ -3612,59 +3921,18 @@
  25283. return 0;
  25284. }
  25285. _ACEOF
  25286. -rm -f conftest.$ac_objext
  25287. -if { (ac_try="$ac_compile"
  25288. -case "(($ac_try" in
  25289. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  25290. - *) ac_try_echo=$ac_try;;
  25291. -esac
  25292. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  25293. - (eval "$ac_compile") 2>conftest.er1
  25294. - ac_status=$?
  25295. - grep -v '^ *+' conftest.er1 >conftest.err
  25296. - rm -f conftest.er1
  25297. - cat conftest.err >&5
  25298. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25299. - (exit $ac_status); } &&
  25300. - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  25301. - { (case "(($ac_try" in
  25302. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  25303. - *) ac_try_echo=$ac_try;;
  25304. -esac
  25305. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  25306. - (eval "$ac_try") 2>&5
  25307. - ac_status=$?
  25308. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25309. - (exit $ac_status); }; } &&
  25310. - { ac_try='test -s conftest.$ac_objext'
  25311. - { (case "(($ac_try" in
  25312. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  25313. - *) ac_try_echo=$ac_try;;
  25314. -esac
  25315. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  25316. - (eval "$ac_try") 2>&5
  25317. - ac_status=$?
  25318. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25319. - (exit $ac_status); }; }; then
  25320. +if ac_fn_c_try_compile "$LINENO"; then :
  25321. ac_cv_prog_cc_g=yes
  25322. -else
  25323. - echo "$as_me: failed program was:" >&5
  25324. -sed 's/^/| /' conftest.$ac_ext >&5
  25325. -
  25326. -
  25327. fi
  25328. -
  25329. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  25330. fi
  25331. -
  25332. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  25333. fi
  25334. -
  25335. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  25336. ac_c_werror_flag=$ac_save_c_werror_flag
  25337. fi
  25338. -{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
  25339. -echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
  25340. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  25341. +$as_echo "$ac_cv_prog_cc_g" >&6; }
  25342. if test "$ac_test_CFLAGS" = set; then
  25343. CFLAGS=$ac_save_CFLAGS
  25344. elif test $ac_cv_prog_cc_g = yes; then
  25345. @@ -3680,18 +3948,14 @@
  25346. CFLAGS=
  25347. fi
  25348. fi
  25349. -{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
  25350. -echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
  25351. -if test "${ac_cv_prog_cc_c89+set}" = set; then
  25352. - echo $ECHO_N "(cached) $ECHO_C" >&6
  25353. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  25354. +$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  25355. +if test "${ac_cv_prog_cc_c89+set}" = set; then :
  25356. + $as_echo_n "(cached) " >&6
  25357. else
  25358. ac_cv_prog_cc_c89=no
  25359. ac_save_CC=$CC
  25360. -cat >conftest.$ac_ext <<_ACEOF
  25361. -/* confdefs.h. */
  25362. -_ACEOF
  25363. -cat confdefs.h >>conftest.$ac_ext
  25364. -cat >>conftest.$ac_ext <<_ACEOF
  25365. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  25366. /* end confdefs.h. */
  25367. #include <stdarg.h>
  25368. #include <stdio.h>
  25369. @@ -3748,48 +4012,9 @@
  25370. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  25371. do
  25372. CC="$ac_save_CC $ac_arg"
  25373. - rm -f conftest.$ac_objext
  25374. -if { (ac_try="$ac_compile"
  25375. -case "(($ac_try" in
  25376. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  25377. - *) ac_try_echo=$ac_try;;
  25378. -esac
  25379. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  25380. - (eval "$ac_compile") 2>conftest.er1
  25381. - ac_status=$?
  25382. - grep -v '^ *+' conftest.er1 >conftest.err
  25383. - rm -f conftest.er1
  25384. - cat conftest.err >&5
  25385. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25386. - (exit $ac_status); } &&
  25387. - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  25388. - { (case "(($ac_try" in
  25389. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  25390. - *) ac_try_echo=$ac_try;;
  25391. -esac
  25392. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  25393. - (eval "$ac_try") 2>&5
  25394. - ac_status=$?
  25395. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25396. - (exit $ac_status); }; } &&
  25397. - { ac_try='test -s conftest.$ac_objext'
  25398. - { (case "(($ac_try" in
  25399. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  25400. - *) ac_try_echo=$ac_try;;
  25401. -esac
  25402. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  25403. - (eval "$ac_try") 2>&5
  25404. - ac_status=$?
  25405. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25406. - (exit $ac_status); }; }; then
  25407. + if ac_fn_c_try_compile "$LINENO"; then :
  25408. ac_cv_prog_cc_c89=$ac_arg
  25409. -else
  25410. - echo "$as_me: failed program was:" >&5
  25411. -sed 's/^/| /' conftest.$ac_ext >&5
  25412. -
  25413. -
  25414. fi
  25415. -
  25416. rm -f core conftest.err conftest.$ac_objext
  25417. test "x$ac_cv_prog_cc_c89" != "xno" && break
  25418. done
  25419. @@ -3800,17 +4025,19 @@
  25420. # AC_CACHE_VAL
  25421. case "x$ac_cv_prog_cc_c89" in
  25422. x)
  25423. - { echo "$as_me:$LINENO: result: none needed" >&5
  25424. -echo "${ECHO_T}none needed" >&6; } ;;
  25425. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  25426. +$as_echo "none needed" >&6; } ;;
  25427. xno)
  25428. - { echo "$as_me:$LINENO: result: unsupported" >&5
  25429. -echo "${ECHO_T}unsupported" >&6; } ;;
  25430. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  25431. +$as_echo "unsupported" >&6; } ;;
  25432. *)
  25433. CC="$CC $ac_cv_prog_cc_c89"
  25434. - { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
  25435. -echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
  25436. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  25437. +$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  25438. esac
  25439. +if test "x$ac_cv_prog_cc_c89" != xno; then :
  25440. +fi
  25441. ac_ext=c
  25442. ac_cpp='$CPP $CPPFLAGS'
  25443. @@ -3825,44 +4052,44 @@
  25444. am_make=${MAKE-make}
  25445. cat > confinc << 'END'
  25446. am__doit:
  25447. - @echo done
  25448. + @echo this is the am__doit target
  25449. .PHONY: am__doit
  25450. END
  25451. # If we don't find an include directive, just comment out the code.
  25452. -{ echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
  25453. -echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
  25454. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
  25455. +$as_echo_n "checking for style of include used by $am_make... " >&6; }
  25456. am__include="#"
  25457. am__quote=
  25458. _am_result=none
  25459. # First try GNU make style include.
  25460. echo "include confinc" > confmf
  25461. -# We grep out `Entering directory' and `Leaving directory'
  25462. -# messages which can occur if `w' ends up in MAKEFLAGS.
  25463. -# In particular we don't look at `^make:' because GNU make might
  25464. -# be invoked under some other name (usually "gmake"), in which
  25465. -# case it prints its new name instead of `make'.
  25466. -if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
  25467. - am__include=include
  25468. - am__quote=
  25469. - _am_result=GNU
  25470. -fi
  25471. +# Ignore all kinds of additional output from `make'.
  25472. +case `$am_make -s -f confmf 2> /dev/null` in #(
  25473. +*the\ am__doit\ target*)
  25474. + am__include=include
  25475. + am__quote=
  25476. + _am_result=GNU
  25477. + ;;
  25478. +esac
  25479. # Now try BSD make style include.
  25480. if test "$am__include" = "#"; then
  25481. echo '.include "confinc"' > confmf
  25482. - if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
  25483. - am__include=.include
  25484. - am__quote="\""
  25485. - _am_result=BSD
  25486. - fi
  25487. + case `$am_make -s -f confmf 2> /dev/null` in #(
  25488. + *the\ am__doit\ target*)
  25489. + am__include=.include
  25490. + am__quote="\""
  25491. + _am_result=BSD
  25492. + ;;
  25493. + esac
  25494. fi
  25495. -{ echo "$as_me:$LINENO: result: $_am_result" >&5
  25496. -echo "${ECHO_T}$_am_result" >&6; }
  25497. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
  25498. +$as_echo "$_am_result" >&6; }
  25499. rm -f confinc confmf
  25500. # Check whether --enable-dependency-tracking was given.
  25501. -if test "${enable_dependency_tracking+set}" = set; then
  25502. +if test "${enable_dependency_tracking+set}" = set; then :
  25503. enableval=$enable_dependency_tracking;
  25504. fi
  25505. @@ -3870,9 +4097,7 @@
  25506. am_depcomp="$ac_aux_dir/depcomp"
  25507. AMDEPBACKSLASH='\'
  25508. fi
  25509. -
  25510. -
  25511. -if test "x$enable_dependency_tracking" != xno; then
  25512. + if test "x$enable_dependency_tracking" != xno; then
  25513. AMDEP_TRUE=
  25514. AMDEP_FALSE='#'
  25515. else
  25516. @@ -3882,13 +4107,12 @@
  25517. -
  25518. depcc="$CC" am_compiler_list=
  25519. -{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
  25520. -echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
  25521. -if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
  25522. - echo $ECHO_N "(cached) $ECHO_C" >&6
  25523. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  25524. +$as_echo_n "checking dependency style of $depcc... " >&6; }
  25525. +if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
  25526. + $as_echo_n "(cached) " >&6
  25527. else
  25528. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  25529. # We make a subdir and do the tests there. Otherwise we can end up
  25530. @@ -3913,6 +4137,11 @@
  25531. if test "$am_compiler_list" = ""; then
  25532. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  25533. fi
  25534. + am__universal=false
  25535. + case " $depcc " in #(
  25536. + *\ -arch\ *\ -arch\ *) am__universal=true ;;
  25537. + esac
  25538. +
  25539. for depmode in $am_compiler_list; do
  25540. # Setup a source with many dependencies, because some compilers
  25541. # like to wrap large dependency lists on column 80 (with \), and
  25542. @@ -3930,7 +4159,17 @@
  25543. done
  25544. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  25545. + # We check with `-c' and `-o' for the sake of the "dashmstdout"
  25546. + # mode. It turns out that the SunPro C++ compiler does not properly
  25547. + # handle `-M -o', and we need to detect this. Also, some Intel
  25548. + # versions had trouble with output in subdirs
  25549. + am__obj=sub/conftest.${OBJEXT-o}
  25550. + am__minus_obj="-o $am__obj"
  25551. case $depmode in
  25552. + gcc)
  25553. + # This depmode causes a compiler race in universal mode.
  25554. + test "$am__universal" = false || continue
  25555. + ;;
  25556. nosideeffect)
  25557. # after this tag, mechanisms are not by side-effect, so they'll
  25558. # only be used when explicitly requested
  25559. @@ -3940,18 +4179,23 @@
  25560. break
  25561. fi
  25562. ;;
  25563. + msvisualcpp | msvcmsys)
  25564. + # This compiler won't grok `-c -o', but also, the minuso test has
  25565. + # not run yet. These depmodes are late enough in the game, and
  25566. + # so weak that their functioning should not be impacted.
  25567. + am__obj=conftest.${OBJEXT-o}
  25568. + am__minus_obj=
  25569. + ;;
  25570. none) break ;;
  25571. esac
  25572. - # We check with `-c' and `-o' for the sake of the "dashmstdout"
  25573. - # mode. It turns out that the SunPro C++ compiler does not properly
  25574. - # handle `-M -o', and we need to detect this.
  25575. if depmode=$depmode \
  25576. - source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
  25577. + source=sub/conftest.c object=$am__obj \
  25578. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  25579. - $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
  25580. + $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  25581. >/dev/null 2>conftest.err &&
  25582. + grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  25583. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  25584. - grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
  25585. + grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  25586. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  25587. # icc doesn't choke on unknown options, it will just issue warnings
  25588. # or remarks (even with -Werror). So we grep stderr for any message
  25589. @@ -3975,13 +4219,11 @@
  25590. fi
  25591. fi
  25592. -{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
  25593. -echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
  25594. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
  25595. +$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
  25596. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  25597. -
  25598. -
  25599. -if
  25600. + if
  25601. test "x$enable_dependency_tracking" != xno \
  25602. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  25603. am__fastdepCC_TRUE=
  25604. @@ -3993,22 +4235,18 @@
  25605. if test "x$CC" != xcc; then
  25606. - { echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
  25607. -echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6; }
  25608. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
  25609. +$as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
  25610. else
  25611. - { echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
  25612. -echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6; }
  25613. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
  25614. +$as_echo_n "checking whether cc understands -c and -o together... " >&6; }
  25615. fi
  25616. -set dummy $CC; ac_cc=`echo $2 |
  25617. +set dummy $CC; ac_cc=`$as_echo "$2" |
  25618. sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
  25619. -if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then
  25620. - echo $ECHO_N "(cached) $ECHO_C" >&6
  25621. +if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
  25622. + $as_echo_n "(cached) " >&6
  25623. else
  25624. - cat >conftest.$ac_ext <<_ACEOF
  25625. -/* confdefs.h. */
  25626. -_ACEOF
  25627. -cat confdefs.h >>conftest.$ac_ext
  25628. -cat >>conftest.$ac_ext <<_ACEOF
  25629. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  25630. /* end confdefs.h. */
  25631. int
  25632. @@ -4024,58 +4262,63 @@
  25633. # existing .o file with -o, though they will create one.
  25634. ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
  25635. rm -f conftest2.*
  25636. -if { (case "(($ac_try" in
  25637. +if { { case "(($ac_try" in
  25638. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  25639. *) ac_try_echo=$ac_try;;
  25640. esac
  25641. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  25642. +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  25643. +$as_echo "$ac_try_echo"; } >&5
  25644. (eval "$ac_try") 2>&5
  25645. ac_status=$?
  25646. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25647. - (exit $ac_status); } &&
  25648. - test -f conftest2.$ac_objext && { (case "(($ac_try" in
  25649. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  25650. + test $ac_status = 0; } &&
  25651. + test -f conftest2.$ac_objext && { { case "(($ac_try" in
  25652. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  25653. *) ac_try_echo=$ac_try;;
  25654. esac
  25655. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  25656. +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  25657. +$as_echo "$ac_try_echo"; } >&5
  25658. (eval "$ac_try") 2>&5
  25659. ac_status=$?
  25660. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25661. - (exit $ac_status); };
  25662. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  25663. + test $ac_status = 0; };
  25664. then
  25665. eval ac_cv_prog_cc_${ac_cc}_c_o=yes
  25666. if test "x$CC" != xcc; then
  25667. # Test first that cc exists at all.
  25668. if { ac_try='cc -c conftest.$ac_ext >&5'
  25669. - { (case "(($ac_try" in
  25670. + { { case "(($ac_try" in
  25671. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  25672. *) ac_try_echo=$ac_try;;
  25673. esac
  25674. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  25675. +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  25676. +$as_echo "$ac_try_echo"; } >&5
  25677. (eval "$ac_try") 2>&5
  25678. ac_status=$?
  25679. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25680. - (exit $ac_status); }; }; then
  25681. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  25682. + test $ac_status = 0; }; }; then
  25683. ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
  25684. rm -f conftest2.*
  25685. - if { (case "(($ac_try" in
  25686. + if { { case "(($ac_try" in
  25687. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  25688. *) ac_try_echo=$ac_try;;
  25689. esac
  25690. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  25691. +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  25692. +$as_echo "$ac_try_echo"; } >&5
  25693. (eval "$ac_try") 2>&5
  25694. ac_status=$?
  25695. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25696. - (exit $ac_status); } &&
  25697. - test -f conftest2.$ac_objext && { (case "(($ac_try" in
  25698. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  25699. + test $ac_status = 0; } &&
  25700. + test -f conftest2.$ac_objext && { { case "(($ac_try" in
  25701. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  25702. *) ac_try_echo=$ac_try;;
  25703. esac
  25704. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  25705. +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  25706. +$as_echo "$ac_try_echo"; } >&5
  25707. (eval "$ac_try") 2>&5
  25708. ac_status=$?
  25709. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25710. - (exit $ac_status); };
  25711. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  25712. + test $ac_status = 0; };
  25713. then
  25714. # cc works too.
  25715. :
  25716. @@ -4092,23 +4335,22 @@
  25717. fi
  25718. if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
  25719. - { echo "$as_me:$LINENO: result: yes" >&5
  25720. -echo "${ECHO_T}yes" >&6; }
  25721. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  25722. +$as_echo "yes" >&6; }
  25723. else
  25724. - { echo "$as_me:$LINENO: result: no" >&5
  25725. -echo "${ECHO_T}no" >&6; }
  25726. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  25727. +$as_echo "no" >&6; }
  25728. -cat >>confdefs.h <<\_ACEOF
  25729. -#define NO_MINUS_C_MINUS_O 1
  25730. -_ACEOF
  25731. +$as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
  25732. fi
  25733. # FIXME: we rely on the cache variable name because
  25734. # there is no other way.
  25735. set dummy $CC
  25736. -ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
  25737. -if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
  25738. +am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
  25739. +eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
  25740. +if test "$am_t" != yes; then
  25741. # Losing compiler, so override with the script.
  25742. # FIXME: It is wrong to rewrite CC.
  25743. # But if we don't then we get into trouble of one sort or another.
  25744. @@ -4117,174 +4359,148 @@
  25745. CC="$am_aux_dir/compile $CC"
  25746. fi
  25747. -# Check whether --enable-shared was given.
  25748. -if test "${enable_shared+set}" = set; then
  25749. - enableval=$enable_shared; p=${PACKAGE-default}
  25750. - case $enableval in
  25751. - yes) enable_shared=yes ;;
  25752. - no) enable_shared=no ;;
  25753. - *)
  25754. - enable_shared=no
  25755. - # Look at the argument we got. We use all the common list separators.
  25756. - lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  25757. - for pkg in $enableval; do
  25758. - IFS="$lt_save_ifs"
  25759. - if test "X$pkg" = "X$p"; then
  25760. - enable_shared=yes
  25761. - fi
  25762. - done
  25763. - IFS="$lt_save_ifs"
  25764. - ;;
  25765. - esac
  25766. -else
  25767. - enable_shared=yes
  25768. -fi
  25769. +case `pwd` in
  25770. + *\ * | *\ *)
  25771. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
  25772. +$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
  25773. +esac
  25774. -# Check whether --enable-static was given.
  25775. -if test "${enable_static+set}" = set; then
  25776. - enableval=$enable_static; p=${PACKAGE-default}
  25777. - case $enableval in
  25778. - yes) enable_static=yes ;;
  25779. - no) enable_static=no ;;
  25780. - *)
  25781. - enable_static=no
  25782. - # Look at the argument we got. We use all the common list separators.
  25783. - lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  25784. - for pkg in $enableval; do
  25785. - IFS="$lt_save_ifs"
  25786. - if test "X$pkg" = "X$p"; then
  25787. - enable_static=yes
  25788. - fi
  25789. - done
  25790. - IFS="$lt_save_ifs"
  25791. - ;;
  25792. - esac
  25793. -else
  25794. - enable_static=yes
  25795. -fi
  25796. -# Check whether --enable-fast-install was given.
  25797. -if test "${enable_fast_install+set}" = set; then
  25798. - enableval=$enable_fast_install; p=${PACKAGE-default}
  25799. - case $enableval in
  25800. - yes) enable_fast_install=yes ;;
  25801. - no) enable_fast_install=no ;;
  25802. - *)
  25803. - enable_fast_install=no
  25804. - # Look at the argument we got. We use all the common list separators.
  25805. - lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  25806. - for pkg in $enableval; do
  25807. - IFS="$lt_save_ifs"
  25808. - if test "X$pkg" = "X$p"; then
  25809. - enable_fast_install=yes
  25810. - fi
  25811. - done
  25812. - IFS="$lt_save_ifs"
  25813. - ;;
  25814. - esac
  25815. -else
  25816. - enable_fast_install=yes
  25817. -fi
  25818. +macro_version='2.2.6b'
  25819. +macro_revision='1.3017'
  25820. -{ echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
  25821. -echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
  25822. -if test "${lt_cv_path_SED+set}" = set; then
  25823. - echo $ECHO_N "(cached) $ECHO_C" >&6
  25824. -else
  25825. - # Loop through the user's path and test for sed and gsed.
  25826. -# Then use that list of sed's as ones to test for truncation.
  25827. -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  25828. -for as_dir in $PATH
  25829. -do
  25830. - IFS=$as_save_IFS
  25831. - test -z "$as_dir" && as_dir=.
  25832. - for lt_ac_prog in sed gsed; do
  25833. - for ac_exec_ext in '' $ac_executable_extensions; do
  25834. - if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
  25835. - lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
  25836. - fi
  25837. - done
  25838. - done
  25839. -done
  25840. -lt_ac_max=0
  25841. -lt_ac_count=0
  25842. -# Add /usr/xpg4/bin/sed as it is typically found on Solaris
  25843. -# along with /bin/sed that truncates output.
  25844. -for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
  25845. - test ! -f $lt_ac_sed && continue
  25846. - cat /dev/null > conftest.in
  25847. - lt_ac_count=0
  25848. - echo $ECHO_N "0123456789$ECHO_C" >conftest.in
  25849. - # Check for GNU sed and select it if it is found.
  25850. - if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
  25851. - lt_cv_path_SED=$lt_ac_sed
  25852. - break
  25853. - fi
  25854. - while true; do
  25855. - cat conftest.in conftest.in >conftest.tmp
  25856. - mv conftest.tmp conftest.in
  25857. - cp conftest.in conftest.nl
  25858. - echo >>conftest.nl
  25859. - $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
  25860. - cmp -s conftest.out conftest.nl || break
  25861. - # 10000 chars as input seems more than enough
  25862. - test $lt_ac_count -gt 10 && break
  25863. - lt_ac_count=`expr $lt_ac_count + 1`
  25864. - if test $lt_ac_count -gt $lt_ac_max; then
  25865. - lt_ac_max=$lt_ac_count
  25866. - lt_cv_path_SED=$lt_ac_sed
  25867. +
  25868. +
  25869. +
  25870. +
  25871. +
  25872. +
  25873. +
  25874. +
  25875. +
  25876. +
  25877. +
  25878. +ltmain="$ac_aux_dir/ltmain.sh"
  25879. +
  25880. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  25881. +$as_echo_n "checking for a sed that does not truncate output... " >&6; }
  25882. +if test "${ac_cv_path_SED+set}" = set; then :
  25883. + $as_echo_n "(cached) " >&6
  25884. +else
  25885. + ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  25886. + for ac_i in 1 2 3 4 5 6 7; do
  25887. + ac_script="$ac_script$as_nl$ac_script"
  25888. + done
  25889. + echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  25890. + { ac_script=; unset ac_script;}
  25891. + if test -z "$SED"; then
  25892. + ac_path_SED_found=false
  25893. + # Loop through the user's path and test for each of PROGNAME-LIST
  25894. + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  25895. +for as_dir in $PATH
  25896. +do
  25897. + IFS=$as_save_IFS
  25898. + test -z "$as_dir" && as_dir=.
  25899. + for ac_prog in sed gsed; do
  25900. + for ac_exec_ext in '' $ac_executable_extensions; do
  25901. + ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  25902. + { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
  25903. +# Check for GNU ac_path_SED and select it if it is found.
  25904. + # Check for GNU $ac_path_SED
  25905. +case `"$ac_path_SED" --version 2>&1` in
  25906. +*GNU*)
  25907. + ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  25908. +*)
  25909. + ac_count=0
  25910. + $as_echo_n 0123456789 >"conftest.in"
  25911. + while :
  25912. + do
  25913. + cat "conftest.in" "conftest.in" >"conftest.tmp"
  25914. + mv "conftest.tmp" "conftest.in"
  25915. + cp "conftest.in" "conftest.nl"
  25916. + $as_echo '' >> "conftest.nl"
  25917. + "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  25918. + diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  25919. + as_fn_arith $ac_count + 1 && ac_count=$as_val
  25920. + if test $ac_count -gt ${ac_path_SED_max-0}; then
  25921. + # Best one so far, save it but keep looking for a better one
  25922. + ac_cv_path_SED="$ac_path_SED"
  25923. + ac_path_SED_max=$ac_count
  25924. fi
  25925. + # 10*(2^10) chars as input seems more than enough
  25926. + test $ac_count -gt 10 && break
  25927. done
  25928. -done
  25929. + rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  25930. +esac
  25931. +
  25932. + $ac_path_SED_found && break 3
  25933. + done
  25934. + done
  25935. + done
  25936. +IFS=$as_save_IFS
  25937. + if test -z "$ac_cv_path_SED"; then
  25938. + as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
  25939. + fi
  25940. +else
  25941. + ac_cv_path_SED=$SED
  25942. +fi
  25943. fi
  25944. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  25945. +$as_echo "$ac_cv_path_SED" >&6; }
  25946. + SED="$ac_cv_path_SED"
  25947. + rm -f conftest.sed
  25948. +
  25949. +test -z "$SED" && SED=sed
  25950. +Xsed="$SED -e 1s/^X//"
  25951. +
  25952. +
  25953. +
  25954. -SED=$lt_cv_path_SED
  25955. -{ echo "$as_me:$LINENO: result: $SED" >&5
  25956. -echo "${ECHO_T}$SED" >&6; }
  25957. -
  25958. -{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
  25959. -echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
  25960. -if test "${ac_cv_path_GREP+set}" = set; then
  25961. - echo $ECHO_N "(cached) $ECHO_C" >&6
  25962. -else
  25963. - # Extract the first word of "grep ggrep" to use in msg output
  25964. -if test -z "$GREP"; then
  25965. -set dummy grep ggrep; ac_prog_name=$2
  25966. -if test "${ac_cv_path_GREP+set}" = set; then
  25967. - echo $ECHO_N "(cached) $ECHO_C" >&6
  25968. +
  25969. +
  25970. +
  25971. +
  25972. +
  25973. +
  25974. +
  25975. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  25976. +$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  25977. +if test "${ac_cv_path_GREP+set}" = set; then :
  25978. + $as_echo_n "(cached) " >&6
  25979. else
  25980. + if test -z "$GREP"; then
  25981. ac_path_GREP_found=false
  25982. -# Loop through the user's path and test for each of PROGNAME-LIST
  25983. -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  25984. + # Loop through the user's path and test for each of PROGNAME-LIST
  25985. + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  25986. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  25987. do
  25988. IFS=$as_save_IFS
  25989. test -z "$as_dir" && as_dir=.
  25990. - for ac_prog in grep ggrep; do
  25991. - for ac_exec_ext in '' $ac_executable_extensions; do
  25992. - ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  25993. - { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
  25994. - # Check for GNU ac_path_GREP and select it if it is found.
  25995. + for ac_prog in grep ggrep; do
  25996. + for ac_exec_ext in '' $ac_executable_extensions; do
  25997. + ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  25998. + { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
  25999. +# Check for GNU ac_path_GREP and select it if it is found.
  26000. # Check for GNU $ac_path_GREP
  26001. case `"$ac_path_GREP" --version 2>&1` in
  26002. *GNU*)
  26003. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  26004. *)
  26005. ac_count=0
  26006. - echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
  26007. + $as_echo_n 0123456789 >"conftest.in"
  26008. while :
  26009. do
  26010. cat "conftest.in" "conftest.in" >"conftest.tmp"
  26011. mv "conftest.tmp" "conftest.in"
  26012. cp "conftest.in" "conftest.nl"
  26013. - echo 'GREP' >> "conftest.nl"
  26014. + $as_echo 'GREP' >> "conftest.nl"
  26015. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  26016. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  26017. - ac_count=`expr $ac_count + 1`
  26018. + as_fn_arith $ac_count + 1 && ac_count=$as_val
  26019. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  26020. # Best one so far, save it but keep looking for a better one
  26021. ac_cv_path_GREP="$ac_path_GREP"
  26022. @@ -4296,77 +4512,61 @@
  26023. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  26024. esac
  26025. -
  26026. - $ac_path_GREP_found && break 3
  26027. + $ac_path_GREP_found && break 3
  26028. + done
  26029. + done
  26030. done
  26031. -done
  26032. -
  26033. -done
  26034. IFS=$as_save_IFS
  26035. -
  26036. -
  26037. -fi
  26038. -
  26039. -GREP="$ac_cv_path_GREP"
  26040. -if test -z "$GREP"; then
  26041. - { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
  26042. -echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
  26043. - { (exit 1); exit 1; }; }
  26044. -fi
  26045. -
  26046. + if test -z "$ac_cv_path_GREP"; then
  26047. + as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  26048. + fi
  26049. else
  26050. ac_cv_path_GREP=$GREP
  26051. fi
  26052. -
  26053. fi
  26054. -{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
  26055. -echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
  26056. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  26057. +$as_echo "$ac_cv_path_GREP" >&6; }
  26058. GREP="$ac_cv_path_GREP"
  26059. -{ echo "$as_me:$LINENO: checking for egrep" >&5
  26060. -echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
  26061. -if test "${ac_cv_path_EGREP+set}" = set; then
  26062. - echo $ECHO_N "(cached) $ECHO_C" >&6
  26063. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  26064. +$as_echo_n "checking for egrep... " >&6; }
  26065. +if test "${ac_cv_path_EGREP+set}" = set; then :
  26066. + $as_echo_n "(cached) " >&6
  26067. else
  26068. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  26069. then ac_cv_path_EGREP="$GREP -E"
  26070. else
  26071. - # Extract the first word of "egrep" to use in msg output
  26072. -if test -z "$EGREP"; then
  26073. -set dummy egrep; ac_prog_name=$2
  26074. -if test "${ac_cv_path_EGREP+set}" = set; then
  26075. - echo $ECHO_N "(cached) $ECHO_C" >&6
  26076. -else
  26077. + if test -z "$EGREP"; then
  26078. ac_path_EGREP_found=false
  26079. -# Loop through the user's path and test for each of PROGNAME-LIST
  26080. -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  26081. + # Loop through the user's path and test for each of PROGNAME-LIST
  26082. + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  26083. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  26084. do
  26085. IFS=$as_save_IFS
  26086. test -z "$as_dir" && as_dir=.
  26087. - for ac_prog in egrep; do
  26088. - for ac_exec_ext in '' $ac_executable_extensions; do
  26089. - ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  26090. - { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
  26091. - # Check for GNU ac_path_EGREP and select it if it is found.
  26092. + for ac_prog in egrep; do
  26093. + for ac_exec_ext in '' $ac_executable_extensions; do
  26094. + ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  26095. + { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
  26096. +# Check for GNU ac_path_EGREP and select it if it is found.
  26097. # Check for GNU $ac_path_EGREP
  26098. case `"$ac_path_EGREP" --version 2>&1` in
  26099. *GNU*)
  26100. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  26101. *)
  26102. ac_count=0
  26103. - echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
  26104. + $as_echo_n 0123456789 >"conftest.in"
  26105. while :
  26106. do
  26107. cat "conftest.in" "conftest.in" >"conftest.tmp"
  26108. mv "conftest.tmp" "conftest.in"
  26109. cp "conftest.in" "conftest.nl"
  26110. - echo 'EGREP' >> "conftest.nl"
  26111. + $as_echo 'EGREP' >> "conftest.nl"
  26112. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  26113. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  26114. - ac_count=`expr $ac_count + 1`
  26115. + as_fn_arith $ac_count + 1 && ac_count=$as_val
  26116. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  26117. # Best one so far, save it but keep looking for a better one
  26118. ac_cv_path_EGREP="$ac_path_EGREP"
  26119. @@ -4378,39 +4578,114 @@
  26120. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  26121. esac
  26122. -
  26123. - $ac_path_EGREP_found && break 3
  26124. + $ac_path_EGREP_found && break 3
  26125. + done
  26126. + done
  26127. done
  26128. -done
  26129. -
  26130. -done
  26131. IFS=$as_save_IFS
  26132. -
  26133. -
  26134. + if test -z "$ac_cv_path_EGREP"; then
  26135. + as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  26136. + fi
  26137. +else
  26138. + ac_cv_path_EGREP=$EGREP
  26139. fi
  26140. -EGREP="$ac_cv_path_EGREP"
  26141. -if test -z "$EGREP"; then
  26142. - { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
  26143. -echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
  26144. - { (exit 1); exit 1; }; }
  26145. + fi
  26146. fi
  26147. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  26148. +$as_echo "$ac_cv_path_EGREP" >&6; }
  26149. + EGREP="$ac_cv_path_EGREP"
  26150. +
  26151. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
  26152. +$as_echo_n "checking for fgrep... " >&6; }
  26153. +if test "${ac_cv_path_FGREP+set}" = set; then :
  26154. + $as_echo_n "(cached) " >&6
  26155. else
  26156. - ac_cv_path_EGREP=$EGREP
  26157. -fi
  26158. + if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  26159. + then ac_cv_path_FGREP="$GREP -F"
  26160. + else
  26161. + if test -z "$FGREP"; then
  26162. + ac_path_FGREP_found=false
  26163. + # Loop through the user's path and test for each of PROGNAME-LIST
  26164. + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  26165. +for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  26166. +do
  26167. + IFS=$as_save_IFS
  26168. + test -z "$as_dir" && as_dir=.
  26169. + for ac_prog in fgrep; do
  26170. + for ac_exec_ext in '' $ac_executable_extensions; do
  26171. + ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
  26172. + { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
  26173. +# Check for GNU ac_path_FGREP and select it if it is found.
  26174. + # Check for GNU $ac_path_FGREP
  26175. +case `"$ac_path_FGREP" --version 2>&1` in
  26176. +*GNU*)
  26177. + ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  26178. +*)
  26179. + ac_count=0
  26180. + $as_echo_n 0123456789 >"conftest.in"
  26181. + while :
  26182. + do
  26183. + cat "conftest.in" "conftest.in" >"conftest.tmp"
  26184. + mv "conftest.tmp" "conftest.in"
  26185. + cp "conftest.in" "conftest.nl"
  26186. + $as_echo 'FGREP' >> "conftest.nl"
  26187. + "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  26188. + diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  26189. + as_fn_arith $ac_count + 1 && ac_count=$as_val
  26190. + if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  26191. + # Best one so far, save it but keep looking for a better one
  26192. + ac_cv_path_FGREP="$ac_path_FGREP"
  26193. + ac_path_FGREP_max=$ac_count
  26194. + fi
  26195. + # 10*(2^10) chars as input seems more than enough
  26196. + test $ac_count -gt 10 && break
  26197. + done
  26198. + rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  26199. +esac
  26200. + $ac_path_FGREP_found && break 3
  26201. + done
  26202. + done
  26203. + done
  26204. +IFS=$as_save_IFS
  26205. + if test -z "$ac_cv_path_FGREP"; then
  26206. + as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  26207. + fi
  26208. +else
  26209. + ac_cv_path_FGREP=$FGREP
  26210. +fi
  26211. fi
  26212. fi
  26213. -{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
  26214. -echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
  26215. - EGREP="$ac_cv_path_EGREP"
  26216. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
  26217. +$as_echo "$ac_cv_path_FGREP" >&6; }
  26218. + FGREP="$ac_cv_path_FGREP"
  26219. +
  26220. +
  26221. +test -z "$GREP" && GREP=grep
  26222. +
  26223. +
  26224. +
  26225. +
  26226. +
  26227. +
  26228. +
  26229. +
  26230. +
  26231. +
  26232. +
  26233. +
  26234. +
  26235. +
  26236. +
  26237. +
  26238. # Check whether --with-gnu-ld was given.
  26239. -if test "${with_gnu_ld+set}" = set; then
  26240. +if test "${with_gnu_ld+set}" = set; then :
  26241. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  26242. else
  26243. with_gnu_ld=no
  26244. @@ -4419,8 +4694,8 @@
  26245. ac_prog=ld
  26246. if test "$GCC" = yes; then
  26247. # Check if gcc -print-prog-name=ld gives a path.
  26248. - { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
  26249. -echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
  26250. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  26251. +$as_echo_n "checking for ld used by $CC... " >&6; }
  26252. case $host in
  26253. *-*-mingw*)
  26254. # gcc leaves a trailing carriage return which upsets mingw
  26255. @@ -4433,9 +4708,9 @@
  26256. [\\/]* | ?:[\\/]*)
  26257. re_direlt='/[^/][^/]*/\.\./'
  26258. # Canonicalize the pathname of ld
  26259. - ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
  26260. - while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
  26261. - ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
  26262. + ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  26263. + while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  26264. + ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  26265. done
  26266. test -z "$LD" && LD="$ac_prog"
  26267. ;;
  26268. @@ -4449,14 +4724,14 @@
  26269. ;;
  26270. esac
  26271. elif test "$with_gnu_ld" = yes; then
  26272. - { echo "$as_me:$LINENO: checking for GNU ld" >&5
  26273. -echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
  26274. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  26275. +$as_echo_n "checking for GNU ld... " >&6; }
  26276. else
  26277. - { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
  26278. -echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
  26279. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  26280. +$as_echo_n "checking for non-GNU ld... " >&6; }
  26281. fi
  26282. -if test "${lt_cv_path_LD+set}" = set; then
  26283. - echo $ECHO_N "(cached) $ECHO_C" >&6
  26284. +if test "${lt_cv_path_LD+set}" = set; then :
  26285. + $as_echo_n "(cached) " >&6
  26286. else
  26287. if test -z "$LD"; then
  26288. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  26289. @@ -4486,19 +4761,17 @@
  26290. LD="$lt_cv_path_LD"
  26291. if test -n "$LD"; then
  26292. - { echo "$as_me:$LINENO: result: $LD" >&5
  26293. -echo "${ECHO_T}$LD" >&6; }
  26294. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  26295. +$as_echo "$LD" >&6; }
  26296. else
  26297. - { echo "$as_me:$LINENO: result: no" >&5
  26298. -echo "${ECHO_T}no" >&6; }
  26299. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  26300. +$as_echo "no" >&6; }
  26301. fi
  26302. -test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
  26303. -echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
  26304. - { (exit 1); exit 1; }; }
  26305. -{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
  26306. -echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
  26307. -if test "${lt_cv_prog_gnu_ld+set}" = set; then
  26308. - echo $ECHO_N "(cached) $ECHO_C" >&6
  26309. +test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
  26310. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  26311. +$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  26312. +if test "${lt_cv_prog_gnu_ld+set}" = set; then :
  26313. + $as_echo_n "(cached) " >&6
  26314. else
  26315. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  26316. case `$LD -v 2>&1 </dev/null` in
  26317. @@ -4510,40 +4783,22 @@
  26318. ;;
  26319. esac
  26320. fi
  26321. -{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
  26322. -echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
  26323. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  26324. +$as_echo "$lt_cv_prog_gnu_ld" >&6; }
  26325. with_gnu_ld=$lt_cv_prog_gnu_ld
  26326. -{ echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
  26327. -echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
  26328. -if test "${lt_cv_ld_reload_flag+set}" = set; then
  26329. - echo $ECHO_N "(cached) $ECHO_C" >&6
  26330. -else
  26331. - lt_cv_ld_reload_flag='-r'
  26332. -fi
  26333. -{ echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
  26334. -echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
  26335. -reload_flag=$lt_cv_ld_reload_flag
  26336. -case $reload_flag in
  26337. -"" | " "*) ;;
  26338. -*) reload_flag=" $reload_flag" ;;
  26339. -esac
  26340. -reload_cmds='$LD$reload_flag -o $output$reload_objs'
  26341. -case $host_os in
  26342. - darwin*)
  26343. - if test "$GCC" = yes; then
  26344. - reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
  26345. - else
  26346. - reload_cmds='$LD$reload_flag -o $output$reload_objs'
  26347. - fi
  26348. - ;;
  26349. -esac
  26350. -{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
  26351. -echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
  26352. -if test "${lt_cv_path_NM+set}" = set; then
  26353. - echo $ECHO_N "(cached) $ECHO_C" >&6
  26354. +
  26355. +
  26356. +
  26357. +
  26358. +
  26359. +
  26360. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
  26361. +$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
  26362. +if test "${lt_cv_path_NM+set}" = set; then :
  26363. + $as_echo_n "(cached) " >&6
  26364. else
  26365. if test -n "$NM"; then
  26366. # Let the user override the test.
  26367. @@ -4586,12443 +4841,2819 @@
  26368. done
  26369. IFS="$lt_save_ifs"
  26370. done
  26371. - test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
  26372. + : ${lt_cv_path_NM=no}
  26373. fi
  26374. fi
  26375. -{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
  26376. -echo "${ECHO_T}$lt_cv_path_NM" >&6; }
  26377. -NM="$lt_cv_path_NM"
  26378. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
  26379. +$as_echo "$lt_cv_path_NM" >&6; }
  26380. +if test "$lt_cv_path_NM" != "no"; then
  26381. + NM="$lt_cv_path_NM"
  26382. +else
  26383. + # Didn't find any BSD compatible name lister, look for dumpbin.
  26384. + if test -n "$ac_tool_prefix"; then
  26385. + for ac_prog in "dumpbin -symbols" "link -dump -symbols"
  26386. + do
  26387. + # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  26388. +set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  26389. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  26390. +$as_echo_n "checking for $ac_word... " >&6; }
  26391. +if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
  26392. + $as_echo_n "(cached) " >&6
  26393. +else
  26394. + if test -n "$DUMPBIN"; then
  26395. + ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
  26396. +else
  26397. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  26398. +for as_dir in $PATH
  26399. +do
  26400. + IFS=$as_save_IFS
  26401. + test -z "$as_dir" && as_dir=.
  26402. + for ac_exec_ext in '' $ac_executable_extensions; do
  26403. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  26404. + ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
  26405. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  26406. + break 2
  26407. + fi
  26408. +done
  26409. + done
  26410. +IFS=$as_save_IFS
  26411. -{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
  26412. -echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
  26413. -LN_S=$as_ln_s
  26414. -if test "$LN_S" = "ln -s"; then
  26415. - { echo "$as_me:$LINENO: result: yes" >&5
  26416. -echo "${ECHO_T}yes" >&6; }
  26417. +fi
  26418. +fi
  26419. +DUMPBIN=$ac_cv_prog_DUMPBIN
  26420. +if test -n "$DUMPBIN"; then
  26421. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
  26422. +$as_echo "$DUMPBIN" >&6; }
  26423. else
  26424. - { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
  26425. -echo "${ECHO_T}no, using $LN_S" >&6; }
  26426. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  26427. +$as_echo "no" >&6; }
  26428. fi
  26429. -{ echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
  26430. -echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
  26431. -if test "${lt_cv_deplibs_check_method+set}" = set; then
  26432. - echo $ECHO_N "(cached) $ECHO_C" >&6
  26433. +
  26434. + test -n "$DUMPBIN" && break
  26435. + done
  26436. +fi
  26437. +if test -z "$DUMPBIN"; then
  26438. + ac_ct_DUMPBIN=$DUMPBIN
  26439. + for ac_prog in "dumpbin -symbols" "link -dump -symbols"
  26440. +do
  26441. + # Extract the first word of "$ac_prog", so it can be a program name with args.
  26442. +set dummy $ac_prog; ac_word=$2
  26443. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  26444. +$as_echo_n "checking for $ac_word... " >&6; }
  26445. +if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
  26446. + $as_echo_n "(cached) " >&6
  26447. else
  26448. - lt_cv_file_magic_cmd='$MAGIC_CMD'
  26449. -lt_cv_file_magic_test_file=
  26450. -lt_cv_deplibs_check_method='unknown'
  26451. -# Need to set the preceding variable on all platforms that support
  26452. -# interlibrary dependencies.
  26453. -# 'none' -- dependencies not supported.
  26454. -# `unknown' -- same as none, but documents that we really don't know.
  26455. -# 'pass_all' -- all dependencies passed with no checks.
  26456. -# 'test_compile' -- check by making test program.
  26457. -# 'file_magic [[regex]]' -- check by looking for files in library path
  26458. -# which responds to the $file_magic_cmd with a given extended regex.
  26459. -# If you have `file' or equivalent on your system and you're not sure
  26460. -# whether `pass_all' will *always* work, you probably want this one.
  26461. + if test -n "$ac_ct_DUMPBIN"; then
  26462. + ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
  26463. +else
  26464. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  26465. +for as_dir in $PATH
  26466. +do
  26467. + IFS=$as_save_IFS
  26468. + test -z "$as_dir" && as_dir=.
  26469. + for ac_exec_ext in '' $ac_executable_extensions; do
  26470. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  26471. + ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
  26472. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  26473. + break 2
  26474. + fi
  26475. +done
  26476. + done
  26477. +IFS=$as_save_IFS
  26478. -case $host_os in
  26479. -aix4* | aix5*)
  26480. - lt_cv_deplibs_check_method=pass_all
  26481. - ;;
  26482. +fi
  26483. +fi
  26484. +ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
  26485. +if test -n "$ac_ct_DUMPBIN"; then
  26486. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
  26487. +$as_echo "$ac_ct_DUMPBIN" >&6; }
  26488. +else
  26489. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  26490. +$as_echo "no" >&6; }
  26491. +fi
  26492. -beos*)
  26493. - lt_cv_deplibs_check_method=pass_all
  26494. - ;;
  26495. -bsdi[45]*)
  26496. - lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  26497. - lt_cv_file_magic_cmd='/usr/bin/file -L'
  26498. - lt_cv_file_magic_test_file=/shlib/libc.so
  26499. - ;;
  26500. + test -n "$ac_ct_DUMPBIN" && break
  26501. +done
  26502. -cygwin*)
  26503. - # func_win32_libid is a shell function defined in ltmain.sh
  26504. - lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  26505. - lt_cv_file_magic_cmd='func_win32_libid'
  26506. - ;;
  26507. + if test "x$ac_ct_DUMPBIN" = x; then
  26508. + DUMPBIN=":"
  26509. + else
  26510. + case $cross_compiling:$ac_tool_warned in
  26511. +yes:)
  26512. +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  26513. +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  26514. +ac_tool_warned=yes ;;
  26515. +esac
  26516. + DUMPBIN=$ac_ct_DUMPBIN
  26517. + fi
  26518. +fi
  26519. -mingw* | pw32*)
  26520. - # Base MSYS/MinGW do not provide the 'file' command needed by
  26521. - # func_win32_libid shell function, so use a weaker test based on 'objdump'.
  26522. - lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
  26523. - lt_cv_file_magic_cmd='$OBJDUMP -f'
  26524. - ;;
  26525. -darwin* | rhapsody*)
  26526. - lt_cv_deplibs_check_method=pass_all
  26527. - ;;
  26528. + if test "$DUMPBIN" != ":"; then
  26529. + NM="$DUMPBIN"
  26530. + fi
  26531. +fi
  26532. +test -z "$NM" && NM=nm
  26533. -freebsd* | kfreebsd*-gnu | dragonfly*)
  26534. - if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
  26535. - case $host_cpu in
  26536. - i*86 )
  26537. - # Not sure whether the presence of OpenBSD here was a mistake.
  26538. - # Let's accept both of them until this is cleared up.
  26539. - lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  26540. - lt_cv_file_magic_cmd=/usr/bin/file
  26541. - lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  26542. - ;;
  26543. - esac
  26544. - else
  26545. - lt_cv_deplibs_check_method=pass_all
  26546. - fi
  26547. - ;;
  26548. -
  26549. -gnu*)
  26550. - lt_cv_deplibs_check_method=pass_all
  26551. - ;;
  26552. -hpux10.20* | hpux11*)
  26553. - lt_cv_file_magic_cmd=/usr/bin/file
  26554. - case $host_cpu in
  26555. - ia64*)
  26556. - lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  26557. - lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  26558. - ;;
  26559. - hppa*64*)
  26560. - 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]'
  26561. - lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  26562. - ;;
  26563. - *)
  26564. - lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
  26565. - lt_cv_file_magic_test_file=/usr/lib/libc.sl
  26566. - ;;
  26567. - esac
  26568. - ;;
  26569. -interix3*)
  26570. - # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  26571. - lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  26572. - ;;
  26573. -irix5* | irix6* | nonstopux*)
  26574. - case $LD in
  26575. - *-32|*"-32 ") libmagic=32-bit;;
  26576. - *-n32|*"-n32 ") libmagic=N32;;
  26577. - *-64|*"-64 ") libmagic=64-bit;;
  26578. - *) libmagic=never-match;;
  26579. - esac
  26580. - lt_cv_deplibs_check_method=pass_all
  26581. - ;;
  26582. -# This must be Linux ELF.
  26583. -linux*)
  26584. - lt_cv_deplibs_check_method=pass_all
  26585. - ;;
  26586. -netbsd*)
  26587. - if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
  26588. - lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  26589. - else
  26590. - lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  26591. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
  26592. +$as_echo_n "checking the name lister ($NM) interface... " >&6; }
  26593. +if test "${lt_cv_nm_interface+set}" = set; then :
  26594. + $as_echo_n "(cached) " >&6
  26595. +else
  26596. + lt_cv_nm_interface="BSD nm"
  26597. + echo "int some_variable = 0;" > conftest.$ac_ext
  26598. + (eval echo "\"\$as_me:4972: $ac_compile\"" >&5)
  26599. + (eval "$ac_compile" 2>conftest.err)
  26600. + cat conftest.err >&5
  26601. + (eval echo "\"\$as_me:4975: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  26602. + (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  26603. + cat conftest.err >&5
  26604. + (eval echo "\"\$as_me:4978: output\"" >&5)
  26605. + cat conftest.out >&5
  26606. + if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  26607. + lt_cv_nm_interface="MS dumpbin"
  26608. fi
  26609. - ;;
  26610. + rm -f conftest*
  26611. +fi
  26612. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
  26613. +$as_echo "$lt_cv_nm_interface" >&6; }
  26614. -newos6*)
  26615. - lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  26616. - lt_cv_file_magic_cmd=/usr/bin/file
  26617. - lt_cv_file_magic_test_file=/usr/lib/libnls.so
  26618. - ;;
  26619. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  26620. +$as_echo_n "checking whether ln -s works... " >&6; }
  26621. +LN_S=$as_ln_s
  26622. +if test "$LN_S" = "ln -s"; then
  26623. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  26624. +$as_echo "yes" >&6; }
  26625. +else
  26626. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  26627. +$as_echo "no, using $LN_S" >&6; }
  26628. +fi
  26629. -nto-qnx*)
  26630. - lt_cv_deplibs_check_method=unknown
  26631. - ;;
  26632. +# find the maximum length of command line arguments
  26633. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
  26634. +$as_echo_n "checking the maximum length of command line arguments... " >&6; }
  26635. +if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
  26636. + $as_echo_n "(cached) " >&6
  26637. +else
  26638. + i=0
  26639. + teststring="ABCD"
  26640. -openbsd*)
  26641. - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  26642. - lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  26643. - else
  26644. - lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  26645. - fi
  26646. - ;;
  26647. + case $build_os in
  26648. + msdosdjgpp*)
  26649. + # On DJGPP, this test can blow up pretty badly due to problems in libc
  26650. + # (any single argument exceeding 2000 bytes causes a buffer overrun
  26651. + # during glob expansion). Even if it were fixed, the result of this
  26652. + # check would be larger than it should be.
  26653. + lt_cv_sys_max_cmd_len=12288; # 12K is about right
  26654. + ;;
  26655. -osf3* | osf4* | osf5*)
  26656. - lt_cv_deplibs_check_method=pass_all
  26657. - ;;
  26658. + gnu*)
  26659. + # Under GNU Hurd, this test is not required because there is
  26660. + # no limit to the length of command line arguments.
  26661. + # Libtool will interpret -1 as no limit whatsoever
  26662. + lt_cv_sys_max_cmd_len=-1;
  26663. + ;;
  26664. -solaris*)
  26665. - lt_cv_deplibs_check_method=pass_all
  26666. - ;;
  26667. + cygwin* | mingw* | cegcc*)
  26668. + # On Win9x/ME, this test blows up -- it succeeds, but takes
  26669. + # about 5 minutes as the teststring grows exponentially.
  26670. + # Worse, since 9x/ME are not pre-emptively multitasking,
  26671. + # you end up with a "frozen" computer, even though with patience
  26672. + # the test eventually succeeds (with a max line length of 256k).
  26673. + # Instead, let's just punt: use the minimum linelength reported by
  26674. + # all of the supported platforms: 8192 (on NT/2K/XP).
  26675. + lt_cv_sys_max_cmd_len=8192;
  26676. + ;;
  26677. -sysv4 | sysv4.3*)
  26678. - case $host_vendor in
  26679. - motorola)
  26680. - 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]'
  26681. - lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  26682. + amigaos*)
  26683. + # On AmigaOS with pdksh, this test takes hours, literally.
  26684. + # So we just punt and use a minimum line length of 8192.
  26685. + lt_cv_sys_max_cmd_len=8192;
  26686. ;;
  26687. - ncr)
  26688. - lt_cv_deplibs_check_method=pass_all
  26689. +
  26690. + netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  26691. + # This has been around since 386BSD, at least. Likely further.
  26692. + if test -x /sbin/sysctl; then
  26693. + lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  26694. + elif test -x /usr/sbin/sysctl; then
  26695. + lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  26696. + else
  26697. + lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  26698. + fi
  26699. + # And add a safety zone
  26700. + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  26701. + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  26702. ;;
  26703. - sequent)
  26704. - lt_cv_file_magic_cmd='/bin/file'
  26705. - lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  26706. +
  26707. + interix*)
  26708. + # We know the value 262144 and hardcode it with a safety zone (like BSD)
  26709. + lt_cv_sys_max_cmd_len=196608
  26710. ;;
  26711. - sni)
  26712. - lt_cv_file_magic_cmd='/bin/file'
  26713. - lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  26714. - lt_cv_file_magic_test_file=/lib/libc.so
  26715. +
  26716. + osf*)
  26717. + # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  26718. + # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  26719. + # nice to cause kernel panics so lets avoid the loop below.
  26720. + # First set a reasonable default.
  26721. + lt_cv_sys_max_cmd_len=16384
  26722. + #
  26723. + if test -x /sbin/sysconfig; then
  26724. + case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  26725. + *1*) lt_cv_sys_max_cmd_len=-1 ;;
  26726. + esac
  26727. + fi
  26728. ;;
  26729. - siemens)
  26730. - lt_cv_deplibs_check_method=pass_all
  26731. + sco3.2v5*)
  26732. + lt_cv_sys_max_cmd_len=102400
  26733. ;;
  26734. - pc)
  26735. - lt_cv_deplibs_check_method=pass_all
  26736. + sysv5* | sco5v6* | sysv4.2uw2*)
  26737. + kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  26738. + if test -n "$kargmax"; then
  26739. + lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  26740. + else
  26741. + lt_cv_sys_max_cmd_len=32768
  26742. + fi
  26743. + ;;
  26744. + *)
  26745. + lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  26746. + if test -n "$lt_cv_sys_max_cmd_len"; then
  26747. + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  26748. + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  26749. + else
  26750. + # Make teststring a little bigger before we do anything with it.
  26751. + # a 1K string should be a reasonable start.
  26752. + for i in 1 2 3 4 5 6 7 8 ; do
  26753. + teststring=$teststring$teststring
  26754. + done
  26755. + SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  26756. + # If test is not a shell built-in, we'll probably end up computing a
  26757. + # maximum length that is only half of the actual maximum length, but
  26758. + # we can't tell.
  26759. + while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
  26760. + = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
  26761. + test $i != 17 # 1/2 MB should be enough
  26762. + do
  26763. + i=`expr $i + 1`
  26764. + teststring=$teststring$teststring
  26765. + done
  26766. + # Only check the string length outside the loop.
  26767. + lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  26768. + teststring=
  26769. + # Add a significant safety factor because C++ compilers can tack on
  26770. + # massive amounts of additional arguments before passing them to the
  26771. + # linker. It appears as though 1/2 is a usable value.
  26772. + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  26773. + fi
  26774. ;;
  26775. esac
  26776. - ;;
  26777. -sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  26778. - lt_cv_deplibs_check_method=pass_all
  26779. - ;;
  26780. -esac
  26781. +fi
  26782. +if test -n $lt_cv_sys_max_cmd_len ; then
  26783. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
  26784. +$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
  26785. +else
  26786. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
  26787. +$as_echo "none" >&6; }
  26788. fi
  26789. -{ echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
  26790. -echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
  26791. -file_magic_cmd=$lt_cv_file_magic_cmd
  26792. -deplibs_check_method=$lt_cv_deplibs_check_method
  26793. -test -z "$deplibs_check_method" && deplibs_check_method=unknown
  26794. +max_cmd_len=$lt_cv_sys_max_cmd_len
  26795. -# If no C compiler was specified, use CC.
  26796. -LTCC=${LTCC-"$CC"}
  26797. -# If no C compiler flags were specified, use CFLAGS.
  26798. -LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  26799. -# Allow CC to be a program name with arguments.
  26800. -compiler=$CC
  26801. +: ${CP="cp -f"}
  26802. +: ${MV="mv -f"}
  26803. +: ${RM="rm -f"}
  26804. +
  26805. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
  26806. +$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
  26807. +# Try some XSI features
  26808. +xsi_shell=no
  26809. +( _lt_dummy="a/b/c"
  26810. + test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
  26811. + = c,a/b,, \
  26812. + && eval 'test $(( 1 + 1 )) -eq 2 \
  26813. + && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
  26814. + && xsi_shell=yes
  26815. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
  26816. +$as_echo "$xsi_shell" >&6; }
  26817. +
  26818. +
  26819. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
  26820. +$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
  26821. +lt_shell_append=no
  26822. +( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
  26823. + >/dev/null 2>&1 \
  26824. + && lt_shell_append=yes
  26825. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
  26826. +$as_echo "$lt_shell_append" >&6; }
  26827. -# Check whether --enable-libtool-lock was given.
  26828. -if test "${enable_libtool_lock+set}" = set; then
  26829. - enableval=$enable_libtool_lock;
  26830. +if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  26831. + lt_unset=unset
  26832. +else
  26833. + lt_unset=false
  26834. fi
  26835. -test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  26836. -# Some flags need to be propagated to the compiler or linker for good
  26837. -# libtool support.
  26838. -case $host in
  26839. -ia64-*-hpux*)
  26840. - # Find out which ABI we are using.
  26841. - echo 'int i;' > conftest.$ac_ext
  26842. - if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  26843. - (eval $ac_compile) 2>&5
  26844. - ac_status=$?
  26845. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26846. - (exit $ac_status); }; then
  26847. - case `/usr/bin/file conftest.$ac_objext` in
  26848. - *ELF-32*)
  26849. - HPUX_IA64_MODE="32"
  26850. - ;;
  26851. - *ELF-64*)
  26852. - HPUX_IA64_MODE="64"
  26853. - ;;
  26854. - esac
  26855. - fi
  26856. - rm -rf conftest*
  26857. +
  26858. +
  26859. +
  26860. +# test EBCDIC or ASCII
  26861. +case `echo X|tr X '\101'` in
  26862. + A) # ASCII based system
  26863. + # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  26864. + lt_SP2NL='tr \040 \012'
  26865. + lt_NL2SP='tr \015\012 \040\040'
  26866. ;;
  26867. -*-*-irix6*)
  26868. - # Find out which ABI we are using.
  26869. - echo '#line 4833 "configure"' > conftest.$ac_ext
  26870. - if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  26871. - (eval $ac_compile) 2>&5
  26872. - ac_status=$?
  26873. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26874. - (exit $ac_status); }; then
  26875. - if test "$lt_cv_prog_gnu_ld" = yes; then
  26876. - case `/usr/bin/file conftest.$ac_objext` in
  26877. - *32-bit*)
  26878. - LD="${LD-ld} -melf32bsmip"
  26879. - ;;
  26880. - *N32*)
  26881. - LD="${LD-ld} -melf32bmipn32"
  26882. - ;;
  26883. - *64-bit*)
  26884. - LD="${LD-ld} -melf64bmip"
  26885. - ;;
  26886. - esac
  26887. - else
  26888. - case `/usr/bin/file conftest.$ac_objext` in
  26889. - *32-bit*)
  26890. - LD="${LD-ld} -32"
  26891. - ;;
  26892. - *N32*)
  26893. - LD="${LD-ld} -n32"
  26894. - ;;
  26895. - *64-bit*)
  26896. - LD="${LD-ld} -64"
  26897. - ;;
  26898. - esac
  26899. - fi
  26900. - fi
  26901. - rm -rf conftest*
  26902. + *) # EBCDIC based system
  26903. + lt_SP2NL='tr \100 \n'
  26904. + lt_NL2SP='tr \r\n \100\100'
  26905. ;;
  26906. +esac
  26907. -x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
  26908. - # Find out which ABI we are using.
  26909. - echo 'int i;' > conftest.$ac_ext
  26910. - if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  26911. - (eval $ac_compile) 2>&5
  26912. - ac_status=$?
  26913. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26914. - (exit $ac_status); }; then
  26915. - case `/usr/bin/file conftest.o` in
  26916. - *32-bit*)
  26917. - case $host in
  26918. - x86_64-*linux*)
  26919. - LD="${LD-ld} -m elf_i386"
  26920. - ;;
  26921. - ppc64-*linux*|powerpc64-*linux*)
  26922. - LD="${LD-ld} -m elf32ppclinux"
  26923. - ;;
  26924. - s390x-*linux*)
  26925. - LD="${LD-ld} -m elf_s390"
  26926. - ;;
  26927. - sparc64-*linux*)
  26928. - LD="${LD-ld} -m elf32_sparc"
  26929. - ;;
  26930. - esac
  26931. - ;;
  26932. - *64-bit*)
  26933. - case $host in
  26934. - x86_64-*linux*)
  26935. - LD="${LD-ld} -m elf_x86_64"
  26936. - ;;
  26937. - ppc*-*linux*|powerpc*-*linux*)
  26938. - LD="${LD-ld} -m elf64ppc"
  26939. - ;;
  26940. - s390*-*linux*)
  26941. - LD="${LD-ld} -m elf64_s390"
  26942. - ;;
  26943. - sparc*-*linux*)
  26944. - LD="${LD-ld} -m elf64_sparc"
  26945. - ;;
  26946. - esac
  26947. - ;;
  26948. - esac
  26949. - fi
  26950. - rm -rf conftest*
  26951. - ;;
  26952. -*-*-sco3.2v5*)
  26953. - # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  26954. - SAVE_CFLAGS="$CFLAGS"
  26955. - CFLAGS="$CFLAGS -belf"
  26956. - { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
  26957. -echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
  26958. -if test "${lt_cv_cc_needs_belf+set}" = set; then
  26959. - echo $ECHO_N "(cached) $ECHO_C" >&6
  26960. -else
  26961. - ac_ext=c
  26962. -ac_cpp='$CPP $CPPFLAGS'
  26963. -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  26964. -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  26965. -ac_compiler_gnu=$ac_cv_c_compiler_gnu
  26966. - cat >conftest.$ac_ext <<_ACEOF
  26967. -/* confdefs.h. */
  26968. -_ACEOF
  26969. -cat confdefs.h >>conftest.$ac_ext
  26970. -cat >>conftest.$ac_ext <<_ACEOF
  26971. -/* end confdefs.h. */
  26972. -int
  26973. -main ()
  26974. -{
  26975. - ;
  26976. - return 0;
  26977. -}
  26978. -_ACEOF
  26979. -rm -f conftest.$ac_objext conftest$ac_exeext
  26980. -if { (ac_try="$ac_link"
  26981. -case "(($ac_try" in
  26982. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  26983. - *) ac_try_echo=$ac_try;;
  26984. -esac
  26985. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  26986. - (eval "$ac_link") 2>conftest.er1
  26987. - ac_status=$?
  26988. - grep -v '^ *+' conftest.er1 >conftest.err
  26989. - rm -f conftest.er1
  26990. - cat conftest.err >&5
  26991. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26992. - (exit $ac_status); } &&
  26993. - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  26994. - { (case "(($ac_try" in
  26995. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  26996. - *) ac_try_echo=$ac_try;;
  26997. +
  26998. +
  26999. +
  27000. +
  27001. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
  27002. +$as_echo_n "checking for $LD option to reload object files... " >&6; }
  27003. +if test "${lt_cv_ld_reload_flag+set}" = set; then :
  27004. + $as_echo_n "(cached) " >&6
  27005. +else
  27006. + lt_cv_ld_reload_flag='-r'
  27007. +fi
  27008. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
  27009. +$as_echo "$lt_cv_ld_reload_flag" >&6; }
  27010. +reload_flag=$lt_cv_ld_reload_flag
  27011. +case $reload_flag in
  27012. +"" | " "*) ;;
  27013. +*) reload_flag=" $reload_flag" ;;
  27014. esac
  27015. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  27016. - (eval "$ac_try") 2>&5
  27017. - ac_status=$?
  27018. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27019. - (exit $ac_status); }; } &&
  27020. - { ac_try='test -s conftest$ac_exeext'
  27021. - { (case "(($ac_try" in
  27022. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  27023. - *) ac_try_echo=$ac_try;;
  27024. +reload_cmds='$LD$reload_flag -o $output$reload_objs'
  27025. +case $host_os in
  27026. + darwin*)
  27027. + if test "$GCC" = yes; then
  27028. + reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
  27029. + else
  27030. + reload_cmds='$LD$reload_flag -o $output$reload_objs'
  27031. + fi
  27032. + ;;
  27033. esac
  27034. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  27035. - (eval "$ac_try") 2>&5
  27036. - ac_status=$?
  27037. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27038. - (exit $ac_status); }; }; then
  27039. - lt_cv_cc_needs_belf=yes
  27040. -else
  27041. - echo "$as_me: failed program was:" >&5
  27042. -sed 's/^/| /' conftest.$ac_ext >&5
  27043. - lt_cv_cc_needs_belf=no
  27044. -fi
  27045. -rm -f core conftest.err conftest.$ac_objext \
  27046. - conftest$ac_exeext conftest.$ac_ext
  27047. - ac_ext=c
  27048. -ac_cpp='$CPP $CPPFLAGS'
  27049. -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  27050. -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  27051. -ac_compiler_gnu=$ac_cv_c_compiler_gnu
  27052. -fi
  27053. -{ echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
  27054. -echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
  27055. - if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  27056. - # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  27057. - CFLAGS="$SAVE_CFLAGS"
  27058. - fi
  27059. - ;;
  27060. -sparc*-*solaris*)
  27061. - # Find out which ABI we are using.
  27062. - echo 'int i;' > conftest.$ac_ext
  27063. - if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  27064. - (eval $ac_compile) 2>&5
  27065. - ac_status=$?
  27066. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27067. - (exit $ac_status); }; then
  27068. - case `/usr/bin/file conftest.o` in
  27069. - *64-bit*)
  27070. - case $lt_cv_prog_gnu_ld in
  27071. - yes*) LD="${LD-ld} -m elf64_sparc" ;;
  27072. - *) LD="${LD-ld} -64" ;;
  27073. - esac
  27074. - ;;
  27075. - esac
  27076. - fi
  27077. - rm -rf conftest*
  27078. - ;;
  27079. -esac
  27080. -need_locks="$enable_libtool_lock"
  27081. -ac_ext=c
  27082. -ac_cpp='$CPP $CPPFLAGS'
  27083. -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  27084. -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  27085. -ac_compiler_gnu=$ac_cv_c_compiler_gnu
  27086. -{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
  27087. -echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
  27088. -# On Suns, sometimes $CPP names a directory.
  27089. -if test -n "$CPP" && test -d "$CPP"; then
  27090. - CPP=
  27091. -fi
  27092. -if test -z "$CPP"; then
  27093. - if test "${ac_cv_prog_CPP+set}" = set; then
  27094. - echo $ECHO_N "(cached) $ECHO_C" >&6
  27095. +
  27096. +if test -n "$ac_tool_prefix"; then
  27097. + # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  27098. +set dummy ${ac_tool_prefix}objdump; ac_word=$2
  27099. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  27100. +$as_echo_n "checking for $ac_word... " >&6; }
  27101. +if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
  27102. + $as_echo_n "(cached) " >&6
  27103. else
  27104. - # Double quotes because CPP needs to be expanded
  27105. - for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  27106. - do
  27107. - ac_preproc_ok=false
  27108. -for ac_c_preproc_warn_flag in '' yes
  27109. + if test -n "$OBJDUMP"; then
  27110. + ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  27111. +else
  27112. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  27113. +for as_dir in $PATH
  27114. do
  27115. - # Use a header file that comes with gcc, so configuring glibc
  27116. - # with a fresh cross-compiler works.
  27117. - # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  27118. - # <limits.h> exists even on freestanding compilers.
  27119. - # On the NeXT, cc -E runs the code through the compiler's parser,
  27120. - # not just through cpp. "Syntax error" is here to catch this case.
  27121. - cat >conftest.$ac_ext <<_ACEOF
  27122. -/* confdefs.h. */
  27123. -_ACEOF
  27124. -cat confdefs.h >>conftest.$ac_ext
  27125. -cat >>conftest.$ac_ext <<_ACEOF
  27126. -/* end confdefs.h. */
  27127. -#ifdef __STDC__
  27128. -# include <limits.h>
  27129. -#else
  27130. -# include <assert.h>
  27131. -#endif
  27132. - Syntax error
  27133. -_ACEOF
  27134. -if { (ac_try="$ac_cpp conftest.$ac_ext"
  27135. -case "(($ac_try" in
  27136. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  27137. - *) ac_try_echo=$ac_try;;
  27138. -esac
  27139. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  27140. - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  27141. - ac_status=$?
  27142. - grep -v '^ *+' conftest.er1 >conftest.err
  27143. - rm -f conftest.er1
  27144. - cat conftest.err >&5
  27145. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27146. - (exit $ac_status); } >/dev/null; then
  27147. - if test -s conftest.err; then
  27148. - ac_cpp_err=$ac_c_preproc_warn_flag
  27149. - ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  27150. - else
  27151. - ac_cpp_err=
  27152. + IFS=$as_save_IFS
  27153. + test -z "$as_dir" && as_dir=.
  27154. + for ac_exec_ext in '' $ac_executable_extensions; do
  27155. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  27156. + ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  27157. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  27158. + break 2
  27159. fi
  27160. -else
  27161. - ac_cpp_err=yes
  27162. -fi
  27163. -if test -z "$ac_cpp_err"; then
  27164. - :
  27165. -else
  27166. - echo "$as_me: failed program was:" >&5
  27167. -sed 's/^/| /' conftest.$ac_ext >&5
  27168. +done
  27169. + done
  27170. +IFS=$as_save_IFS
  27171. - # Broken: fails on valid input.
  27172. -continue
  27173. fi
  27174. -
  27175. -rm -f conftest.err conftest.$ac_ext
  27176. -
  27177. - # OK, works on sane cases. Now check whether nonexistent headers
  27178. - # can be detected and how.
  27179. - cat >conftest.$ac_ext <<_ACEOF
  27180. -/* confdefs.h. */
  27181. -_ACEOF
  27182. -cat confdefs.h >>conftest.$ac_ext
  27183. -cat >>conftest.$ac_ext <<_ACEOF
  27184. -/* end confdefs.h. */
  27185. -#include <ac_nonexistent.h>
  27186. -_ACEOF
  27187. -if { (ac_try="$ac_cpp conftest.$ac_ext"
  27188. -case "(($ac_try" in
  27189. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  27190. - *) ac_try_echo=$ac_try;;
  27191. -esac
  27192. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  27193. - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  27194. - ac_status=$?
  27195. - grep -v '^ *+' conftest.er1 >conftest.err
  27196. - rm -f conftest.er1
  27197. - cat conftest.err >&5
  27198. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27199. - (exit $ac_status); } >/dev/null; then
  27200. - if test -s conftest.err; then
  27201. - ac_cpp_err=$ac_c_preproc_warn_flag
  27202. - ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  27203. - else
  27204. - ac_cpp_err=
  27205. - fi
  27206. -else
  27207. - ac_cpp_err=yes
  27208. fi
  27209. -if test -z "$ac_cpp_err"; then
  27210. - # Broken: success on invalid input.
  27211. -continue
  27212. +OBJDUMP=$ac_cv_prog_OBJDUMP
  27213. +if test -n "$OBJDUMP"; then
  27214. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  27215. +$as_echo "$OBJDUMP" >&6; }
  27216. else
  27217. - echo "$as_me: failed program was:" >&5
  27218. -sed 's/^/| /' conftest.$ac_ext >&5
  27219. -
  27220. - # Passes both tests.
  27221. -ac_preproc_ok=:
  27222. -break
  27223. -fi
  27224. -
  27225. -rm -f conftest.err conftest.$ac_ext
  27226. -
  27227. -done
  27228. -# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  27229. -rm -f conftest.err conftest.$ac_ext
  27230. -if $ac_preproc_ok; then
  27231. - break
  27232. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  27233. +$as_echo "no" >&6; }
  27234. fi
  27235. - done
  27236. - ac_cv_prog_CPP=$CPP
  27237. fi
  27238. - CPP=$ac_cv_prog_CPP
  27239. +if test -z "$ac_cv_prog_OBJDUMP"; then
  27240. + ac_ct_OBJDUMP=$OBJDUMP
  27241. + # Extract the first word of "objdump", so it can be a program name with args.
  27242. +set dummy objdump; ac_word=$2
  27243. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  27244. +$as_echo_n "checking for $ac_word... " >&6; }
  27245. +if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
  27246. + $as_echo_n "(cached) " >&6
  27247. else
  27248. - ac_cv_prog_CPP=$CPP
  27249. -fi
  27250. -{ echo "$as_me:$LINENO: result: $CPP" >&5
  27251. -echo "${ECHO_T}$CPP" >&6; }
  27252. -ac_preproc_ok=false
  27253. -for ac_c_preproc_warn_flag in '' yes
  27254. + if test -n "$ac_ct_OBJDUMP"; then
  27255. + ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  27256. +else
  27257. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  27258. +for as_dir in $PATH
  27259. do
  27260. - # Use a header file that comes with gcc, so configuring glibc
  27261. - # with a fresh cross-compiler works.
  27262. - # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  27263. - # <limits.h> exists even on freestanding compilers.
  27264. - # On the NeXT, cc -E runs the code through the compiler's parser,
  27265. - # not just through cpp. "Syntax error" is here to catch this case.
  27266. - cat >conftest.$ac_ext <<_ACEOF
  27267. -/* confdefs.h. */
  27268. -_ACEOF
  27269. -cat confdefs.h >>conftest.$ac_ext
  27270. -cat >>conftest.$ac_ext <<_ACEOF
  27271. -/* end confdefs.h. */
  27272. -#ifdef __STDC__
  27273. -# include <limits.h>
  27274. -#else
  27275. -# include <assert.h>
  27276. -#endif
  27277. - Syntax error
  27278. -_ACEOF
  27279. -if { (ac_try="$ac_cpp conftest.$ac_ext"
  27280. -case "(($ac_try" in
  27281. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  27282. - *) ac_try_echo=$ac_try;;
  27283. -esac
  27284. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  27285. - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  27286. - ac_status=$?
  27287. - grep -v '^ *+' conftest.er1 >conftest.err
  27288. - rm -f conftest.er1
  27289. - cat conftest.err >&5
  27290. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27291. - (exit $ac_status); } >/dev/null; then
  27292. - if test -s conftest.err; then
  27293. - ac_cpp_err=$ac_c_preproc_warn_flag
  27294. - ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  27295. - else
  27296. - ac_cpp_err=
  27297. + IFS=$as_save_IFS
  27298. + test -z "$as_dir" && as_dir=.
  27299. + for ac_exec_ext in '' $ac_executable_extensions; do
  27300. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  27301. + ac_cv_prog_ac_ct_OBJDUMP="objdump"
  27302. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  27303. + break 2
  27304. fi
  27305. -else
  27306. - ac_cpp_err=yes
  27307. +done
  27308. + done
  27309. +IFS=$as_save_IFS
  27310. +
  27311. fi
  27312. -if test -z "$ac_cpp_err"; then
  27313. - :
  27314. +fi
  27315. +ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  27316. +if test -n "$ac_ct_OBJDUMP"; then
  27317. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  27318. +$as_echo "$ac_ct_OBJDUMP" >&6; }
  27319. else
  27320. - echo "$as_me: failed program was:" >&5
  27321. -sed 's/^/| /' conftest.$ac_ext >&5
  27322. -
  27323. - # Broken: fails on valid input.
  27324. -continue
  27325. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  27326. +$as_echo "no" >&6; }
  27327. fi
  27328. -rm -f conftest.err conftest.$ac_ext
  27329. -
  27330. - # OK, works on sane cases. Now check whether nonexistent headers
  27331. - # can be detected and how.
  27332. - cat >conftest.$ac_ext <<_ACEOF
  27333. -/* confdefs.h. */
  27334. -_ACEOF
  27335. -cat confdefs.h >>conftest.$ac_ext
  27336. -cat >>conftest.$ac_ext <<_ACEOF
  27337. -/* end confdefs.h. */
  27338. -#include <ac_nonexistent.h>
  27339. -_ACEOF
  27340. -if { (ac_try="$ac_cpp conftest.$ac_ext"
  27341. -case "(($ac_try" in
  27342. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  27343. - *) ac_try_echo=$ac_try;;
  27344. -esac
  27345. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  27346. - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  27347. - ac_status=$?
  27348. - grep -v '^ *+' conftest.er1 >conftest.err
  27349. - rm -f conftest.er1
  27350. - cat conftest.err >&5
  27351. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27352. - (exit $ac_status); } >/dev/null; then
  27353. - if test -s conftest.err; then
  27354. - ac_cpp_err=$ac_c_preproc_warn_flag
  27355. - ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  27356. + if test "x$ac_ct_OBJDUMP" = x; then
  27357. + OBJDUMP="false"
  27358. else
  27359. - ac_cpp_err=
  27360. + case $cross_compiling:$ac_tool_warned in
  27361. +yes:)
  27362. +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  27363. +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  27364. +ac_tool_warned=yes ;;
  27365. +esac
  27366. + OBJDUMP=$ac_ct_OBJDUMP
  27367. fi
  27368. else
  27369. - ac_cpp_err=yes
  27370. + OBJDUMP="$ac_cv_prog_OBJDUMP"
  27371. fi
  27372. -if test -z "$ac_cpp_err"; then
  27373. - # Broken: success on invalid input.
  27374. -continue
  27375. -else
  27376. - echo "$as_me: failed program was:" >&5
  27377. -sed 's/^/| /' conftest.$ac_ext >&5
  27378. - # Passes both tests.
  27379. -ac_preproc_ok=:
  27380. -break
  27381. -fi
  27382. +test -z "$OBJDUMP" && OBJDUMP=objdump
  27383. -rm -f conftest.err conftest.$ac_ext
  27384. -done
  27385. -# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  27386. -rm -f conftest.err conftest.$ac_ext
  27387. -if $ac_preproc_ok; then
  27388. - :
  27389. -else
  27390. - { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
  27391. -See \`config.log' for more details." >&5
  27392. -echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
  27393. -See \`config.log' for more details." >&2;}
  27394. - { (exit 1); exit 1; }; }
  27395. -fi
  27396. -ac_ext=c
  27397. -ac_cpp='$CPP $CPPFLAGS'
  27398. -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  27399. -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  27400. -ac_compiler_gnu=$ac_cv_c_compiler_gnu
  27401. -
  27402. -
  27403. -{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
  27404. -echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
  27405. -if test "${ac_cv_header_stdc+set}" = set; then
  27406. - echo $ECHO_N "(cached) $ECHO_C" >&6
  27407. -else
  27408. - cat >conftest.$ac_ext <<_ACEOF
  27409. -/* confdefs.h. */
  27410. -_ACEOF
  27411. -cat confdefs.h >>conftest.$ac_ext
  27412. -cat >>conftest.$ac_ext <<_ACEOF
  27413. -/* end confdefs.h. */
  27414. -#include <stdlib.h>
  27415. -#include <stdarg.h>
  27416. -#include <string.h>
  27417. -#include <float.h>
  27418. -int
  27419. -main ()
  27420. -{
  27421. - ;
  27422. - return 0;
  27423. -}
  27424. -_ACEOF
  27425. -rm -f conftest.$ac_objext
  27426. -if { (ac_try="$ac_compile"
  27427. -case "(($ac_try" in
  27428. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  27429. - *) ac_try_echo=$ac_try;;
  27430. -esac
  27431. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  27432. - (eval "$ac_compile") 2>conftest.er1
  27433. - ac_status=$?
  27434. - grep -v '^ *+' conftest.er1 >conftest.err
  27435. - rm -f conftest.er1
  27436. - cat conftest.err >&5
  27437. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27438. - (exit $ac_status); } &&
  27439. - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  27440. - { (case "(($ac_try" in
  27441. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  27442. - *) ac_try_echo=$ac_try;;
  27443. -esac
  27444. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  27445. - (eval "$ac_try") 2>&5
  27446. - ac_status=$?
  27447. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27448. - (exit $ac_status); }; } &&
  27449. - { ac_try='test -s conftest.$ac_objext'
  27450. - { (case "(($ac_try" in
  27451. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  27452. - *) ac_try_echo=$ac_try;;
  27453. -esac
  27454. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  27455. - (eval "$ac_try") 2>&5
  27456. - ac_status=$?
  27457. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27458. - (exit $ac_status); }; }; then
  27459. - ac_cv_header_stdc=yes
  27460. -else
  27461. - echo "$as_me: failed program was:" >&5
  27462. -sed 's/^/| /' conftest.$ac_ext >&5
  27463. - ac_cv_header_stdc=no
  27464. -fi
  27465. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  27466. -if test $ac_cv_header_stdc = yes; then
  27467. - # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  27468. - cat >conftest.$ac_ext <<_ACEOF
  27469. -/* confdefs.h. */
  27470. -_ACEOF
  27471. -cat confdefs.h >>conftest.$ac_ext
  27472. -cat >>conftest.$ac_ext <<_ACEOF
  27473. -/* end confdefs.h. */
  27474. -#include <string.h>
  27475. -_ACEOF
  27476. -if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  27477. - $EGREP "memchr" >/dev/null 2>&1; then
  27478. - :
  27479. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
  27480. +$as_echo_n "checking how to recognize dependent libraries... " >&6; }
  27481. +if test "${lt_cv_deplibs_check_method+set}" = set; then :
  27482. + $as_echo_n "(cached) " >&6
  27483. else
  27484. - ac_cv_header_stdc=no
  27485. -fi
  27486. -rm -f conftest*
  27487. + lt_cv_file_magic_cmd='$MAGIC_CMD'
  27488. +lt_cv_file_magic_test_file=
  27489. +lt_cv_deplibs_check_method='unknown'
  27490. +# Need to set the preceding variable on all platforms that support
  27491. +# interlibrary dependencies.
  27492. +# 'none' -- dependencies not supported.
  27493. +# `unknown' -- same as none, but documents that we really don't know.
  27494. +# 'pass_all' -- all dependencies passed with no checks.
  27495. +# 'test_compile' -- check by making test program.
  27496. +# 'file_magic [[regex]]' -- check by looking for files in library path
  27497. +# which responds to the $file_magic_cmd with a given extended regex.
  27498. +# If you have `file' or equivalent on your system and you're not sure
  27499. +# whether `pass_all' will *always* work, you probably want this one.
  27500. -fi
  27501. +case $host_os in
  27502. +aix[4-9]*)
  27503. + lt_cv_deplibs_check_method=pass_all
  27504. + ;;
  27505. -if test $ac_cv_header_stdc = yes; then
  27506. - # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  27507. - cat >conftest.$ac_ext <<_ACEOF
  27508. -/* confdefs.h. */
  27509. -_ACEOF
  27510. -cat confdefs.h >>conftest.$ac_ext
  27511. -cat >>conftest.$ac_ext <<_ACEOF
  27512. -/* end confdefs.h. */
  27513. -#include <stdlib.h>
  27514. +beos*)
  27515. + lt_cv_deplibs_check_method=pass_all
  27516. + ;;
  27517. -_ACEOF
  27518. -if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  27519. - $EGREP "free" >/dev/null 2>&1; then
  27520. - :
  27521. -else
  27522. - ac_cv_header_stdc=no
  27523. -fi
  27524. -rm -f conftest*
  27525. +bsdi[45]*)
  27526. + lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  27527. + lt_cv_file_magic_cmd='/usr/bin/file -L'
  27528. + lt_cv_file_magic_test_file=/shlib/libc.so
  27529. + ;;
  27530. -fi
  27531. +cygwin*)
  27532. + # func_win32_libid is a shell function defined in ltmain.sh
  27533. + lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  27534. + lt_cv_file_magic_cmd='func_win32_libid'
  27535. + ;;
  27536. -if test $ac_cv_header_stdc = yes; then
  27537. - # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  27538. - if test "$cross_compiling" = yes; then
  27539. - :
  27540. -else
  27541. - cat >conftest.$ac_ext <<_ACEOF
  27542. -/* confdefs.h. */
  27543. -_ACEOF
  27544. -cat confdefs.h >>conftest.$ac_ext
  27545. -cat >>conftest.$ac_ext <<_ACEOF
  27546. -/* end confdefs.h. */
  27547. -#include <ctype.h>
  27548. -#include <stdlib.h>
  27549. -#if ((' ' & 0x0FF) == 0x020)
  27550. -# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  27551. -# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  27552. -#else
  27553. -# define ISLOWER(c) \
  27554. - (('a' <= (c) && (c) <= 'i') \
  27555. - || ('j' <= (c) && (c) <= 'r') \
  27556. - || ('s' <= (c) && (c) <= 'z'))
  27557. -# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  27558. -#endif
  27559. +mingw* | pw32*)
  27560. + # Base MSYS/MinGW do not provide the 'file' command needed by
  27561. + # func_win32_libid shell function, so use a weaker test based on 'objdump',
  27562. + # unless we find 'file', for example because we are cross-compiling.
  27563. + if ( file / ) >/dev/null 2>&1; then
  27564. + lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  27565. + lt_cv_file_magic_cmd='func_win32_libid'
  27566. + else
  27567. + lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
  27568. + lt_cv_file_magic_cmd='$OBJDUMP -f'
  27569. + fi
  27570. + ;;
  27571. -#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  27572. -int
  27573. -main ()
  27574. -{
  27575. - int i;
  27576. - for (i = 0; i < 256; i++)
  27577. - if (XOR (islower (i), ISLOWER (i))
  27578. - || toupper (i) != TOUPPER (i))
  27579. - return 2;
  27580. - return 0;
  27581. -}
  27582. -_ACEOF
  27583. -rm -f conftest$ac_exeext
  27584. -if { (ac_try="$ac_link"
  27585. -case "(($ac_try" in
  27586. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  27587. - *) ac_try_echo=$ac_try;;
  27588. -esac
  27589. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  27590. - (eval "$ac_link") 2>&5
  27591. - ac_status=$?
  27592. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27593. - (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  27594. - { (case "(($ac_try" in
  27595. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  27596. - *) ac_try_echo=$ac_try;;
  27597. -esac
  27598. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  27599. - (eval "$ac_try") 2>&5
  27600. - ac_status=$?
  27601. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27602. - (exit $ac_status); }; }; then
  27603. - :
  27604. -else
  27605. - echo "$as_me: program exited with status $ac_status" >&5
  27606. -echo "$as_me: failed program was:" >&5
  27607. -sed 's/^/| /' conftest.$ac_ext >&5
  27608. +cegcc)
  27609. + # use the weaker test based on 'objdump'. See mingw*.
  27610. + lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  27611. + lt_cv_file_magic_cmd='$OBJDUMP -f'
  27612. + ;;
  27613. -( exit $ac_status )
  27614. -ac_cv_header_stdc=no
  27615. -fi
  27616. -rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  27617. -fi
  27618. +darwin* | rhapsody*)
  27619. + lt_cv_deplibs_check_method=pass_all
  27620. + ;;
  27621. +freebsd* | dragonfly*)
  27622. + if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  27623. + case $host_cpu in
  27624. + i*86 )
  27625. + # Not sure whether the presence of OpenBSD here was a mistake.
  27626. + # Let's accept both of them until this is cleared up.
  27627. + lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  27628. + lt_cv_file_magic_cmd=/usr/bin/file
  27629. + lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  27630. + ;;
  27631. + esac
  27632. + else
  27633. + lt_cv_deplibs_check_method=pass_all
  27634. + fi
  27635. + ;;
  27636. -fi
  27637. -fi
  27638. -{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
  27639. -echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
  27640. -if test $ac_cv_header_stdc = yes; then
  27641. +gnu*)
  27642. + lt_cv_deplibs_check_method=pass_all
  27643. + ;;
  27644. -cat >>confdefs.h <<\_ACEOF
  27645. -#define STDC_HEADERS 1
  27646. -_ACEOF
  27647. +hpux10.20* | hpux11*)
  27648. + lt_cv_file_magic_cmd=/usr/bin/file
  27649. + case $host_cpu in
  27650. + ia64*)
  27651. + lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  27652. + lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  27653. + ;;
  27654. + hppa*64*)
  27655. + 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]'
  27656. + lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  27657. + ;;
  27658. + *)
  27659. + lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
  27660. + lt_cv_file_magic_test_file=/usr/lib/libc.sl
  27661. + ;;
  27662. + esac
  27663. + ;;
  27664. -fi
  27665. +interix[3-9]*)
  27666. + # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  27667. + lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  27668. + ;;
  27669. -# On IRIX 5.3, sys/types and inttypes.h are conflicting.
  27670. +irix5* | irix6* | nonstopux*)
  27671. + case $LD in
  27672. + *-32|*"-32 ") libmagic=32-bit;;
  27673. + *-n32|*"-n32 ") libmagic=N32;;
  27674. + *-64|*"-64 ") libmagic=64-bit;;
  27675. + *) libmagic=never-match;;
  27676. + esac
  27677. + lt_cv_deplibs_check_method=pass_all
  27678. + ;;
  27679. +# This must be Linux ELF.
  27680. +linux* | k*bsd*-gnu | kopensolaris*-gnu)
  27681. + lt_cv_deplibs_check_method=pass_all
  27682. + ;;
  27683. +netbsd* | netbsdelf*-gnu)
  27684. + if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  27685. + lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  27686. + else
  27687. + lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  27688. + fi
  27689. + ;;
  27690. +newos6*)
  27691. + lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  27692. + lt_cv_file_magic_cmd=/usr/bin/file
  27693. + lt_cv_file_magic_test_file=/usr/lib/libnls.so
  27694. + ;;
  27695. +*nto* | *qnx*)
  27696. + lt_cv_deplibs_check_method=pass_all
  27697. + ;;
  27698. +openbsd*)
  27699. + if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  27700. + lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  27701. + else
  27702. + lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  27703. + fi
  27704. + ;;
  27705. +osf3* | osf4* | osf5*)
  27706. + lt_cv_deplibs_check_method=pass_all
  27707. + ;;
  27708. +rdos*)
  27709. + lt_cv_deplibs_check_method=pass_all
  27710. + ;;
  27711. +solaris*)
  27712. + lt_cv_deplibs_check_method=pass_all
  27713. + ;;
  27714. -for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  27715. - inttypes.h stdint.h unistd.h
  27716. -do
  27717. -as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  27718. -{ echo "$as_me:$LINENO: checking for $ac_header" >&5
  27719. -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  27720. -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  27721. - echo $ECHO_N "(cached) $ECHO_C" >&6
  27722. -else
  27723. - cat >conftest.$ac_ext <<_ACEOF
  27724. -/* confdefs.h. */
  27725. -_ACEOF
  27726. -cat confdefs.h >>conftest.$ac_ext
  27727. -cat >>conftest.$ac_ext <<_ACEOF
  27728. -/* end confdefs.h. */
  27729. -$ac_includes_default
  27730. +sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  27731. + lt_cv_deplibs_check_method=pass_all
  27732. + ;;
  27733. -#include <$ac_header>
  27734. -_ACEOF
  27735. -rm -f conftest.$ac_objext
  27736. -if { (ac_try="$ac_compile"
  27737. -case "(($ac_try" in
  27738. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  27739. - *) ac_try_echo=$ac_try;;
  27740. -esac
  27741. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  27742. - (eval "$ac_compile") 2>conftest.er1
  27743. - ac_status=$?
  27744. - grep -v '^ *+' conftest.er1 >conftest.err
  27745. - rm -f conftest.er1
  27746. - cat conftest.err >&5
  27747. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27748. - (exit $ac_status); } &&
  27749. - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  27750. - { (case "(($ac_try" in
  27751. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  27752. - *) ac_try_echo=$ac_try;;
  27753. -esac
  27754. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  27755. - (eval "$ac_try") 2>&5
  27756. - ac_status=$?
  27757. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27758. - (exit $ac_status); }; } &&
  27759. - { ac_try='test -s conftest.$ac_objext'
  27760. - { (case "(($ac_try" in
  27761. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  27762. - *) ac_try_echo=$ac_try;;
  27763. -esac
  27764. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  27765. - (eval "$ac_try") 2>&5
  27766. - ac_status=$?
  27767. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27768. - (exit $ac_status); }; }; then
  27769. - eval "$as_ac_Header=yes"
  27770. -else
  27771. - echo "$as_me: failed program was:" >&5
  27772. -sed 's/^/| /' conftest.$ac_ext >&5
  27773. +sysv4 | sysv4.3*)
  27774. + case $host_vendor in
  27775. + motorola)
  27776. + 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]'
  27777. + lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  27778. + ;;
  27779. + ncr)
  27780. + lt_cv_deplibs_check_method=pass_all
  27781. + ;;
  27782. + sequent)
  27783. + lt_cv_file_magic_cmd='/bin/file'
  27784. + lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  27785. + ;;
  27786. + sni)
  27787. + lt_cv_file_magic_cmd='/bin/file'
  27788. + lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  27789. + lt_cv_file_magic_test_file=/lib/libc.so
  27790. + ;;
  27791. + siemens)
  27792. + lt_cv_deplibs_check_method=pass_all
  27793. + ;;
  27794. + pc)
  27795. + lt_cv_deplibs_check_method=pass_all
  27796. + ;;
  27797. + esac
  27798. + ;;
  27799. - eval "$as_ac_Header=no"
  27800. -fi
  27801. +tpf*)
  27802. + lt_cv_deplibs_check_method=pass_all
  27803. + ;;
  27804. +esac
  27805. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  27806. fi
  27807. -ac_res=`eval echo '${'$as_ac_Header'}'`
  27808. - { echo "$as_me:$LINENO: result: $ac_res" >&5
  27809. -echo "${ECHO_T}$ac_res" >&6; }
  27810. -if test `eval echo '${'$as_ac_Header'}'` = yes; then
  27811. - cat >>confdefs.h <<_ACEOF
  27812. -#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  27813. -_ACEOF
  27814. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
  27815. +$as_echo "$lt_cv_deplibs_check_method" >&6; }
  27816. +file_magic_cmd=$lt_cv_file_magic_cmd
  27817. +deplibs_check_method=$lt_cv_deplibs_check_method
  27818. +test -z "$deplibs_check_method" && deplibs_check_method=unknown
  27819. -fi
  27820. -done
  27821. -for ac_header in dlfcn.h
  27822. -do
  27823. -as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  27824. -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  27825. - { echo "$as_me:$LINENO: checking for $ac_header" >&5
  27826. -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  27827. -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  27828. - echo $ECHO_N "(cached) $ECHO_C" >&6
  27829. -fi
  27830. -ac_res=`eval echo '${'$as_ac_Header'}'`
  27831. - { echo "$as_me:$LINENO: result: $ac_res" >&5
  27832. -echo "${ECHO_T}$ac_res" >&6; }
  27833. +
  27834. +
  27835. +
  27836. +
  27837. +
  27838. +
  27839. +
  27840. +if test -n "$ac_tool_prefix"; then
  27841. + # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
  27842. +set dummy ${ac_tool_prefix}ar; ac_word=$2
  27843. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  27844. +$as_echo_n "checking for $ac_word... " >&6; }
  27845. +if test "${ac_cv_prog_AR+set}" = set; then :
  27846. + $as_echo_n "(cached) " >&6
  27847. else
  27848. - # Is the header compilable?
  27849. -{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
  27850. -echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  27851. -cat >conftest.$ac_ext <<_ACEOF
  27852. -/* confdefs.h. */
  27853. -_ACEOF
  27854. -cat confdefs.h >>conftest.$ac_ext
  27855. -cat >>conftest.$ac_ext <<_ACEOF
  27856. -/* end confdefs.h. */
  27857. -$ac_includes_default
  27858. -#include <$ac_header>
  27859. -_ACEOF
  27860. -rm -f conftest.$ac_objext
  27861. -if { (ac_try="$ac_compile"
  27862. -case "(($ac_try" in
  27863. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  27864. - *) ac_try_echo=$ac_try;;
  27865. -esac
  27866. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  27867. - (eval "$ac_compile") 2>conftest.er1
  27868. - ac_status=$?
  27869. - grep -v '^ *+' conftest.er1 >conftest.err
  27870. - rm -f conftest.er1
  27871. - cat conftest.err >&5
  27872. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27873. - (exit $ac_status); } &&
  27874. - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  27875. - { (case "(($ac_try" in
  27876. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  27877. - *) ac_try_echo=$ac_try;;
  27878. -esac
  27879. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  27880. - (eval "$ac_try") 2>&5
  27881. - ac_status=$?
  27882. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27883. - (exit $ac_status); }; } &&
  27884. - { ac_try='test -s conftest.$ac_objext'
  27885. - { (case "(($ac_try" in
  27886. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  27887. - *) ac_try_echo=$ac_try;;
  27888. -esac
  27889. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  27890. - (eval "$ac_try") 2>&5
  27891. - ac_status=$?
  27892. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27893. - (exit $ac_status); }; }; then
  27894. - ac_header_compiler=yes
  27895. + if test -n "$AR"; then
  27896. + ac_cv_prog_AR="$AR" # Let the user override the test.
  27897. else
  27898. - echo "$as_me: failed program was:" >&5
  27899. -sed 's/^/| /' conftest.$ac_ext >&5
  27900. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  27901. +for as_dir in $PATH
  27902. +do
  27903. + IFS=$as_save_IFS
  27904. + test -z "$as_dir" && as_dir=.
  27905. + for ac_exec_ext in '' $ac_executable_extensions; do
  27906. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  27907. + ac_cv_prog_AR="${ac_tool_prefix}ar"
  27908. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  27909. + break 2
  27910. + fi
  27911. +done
  27912. + done
  27913. +IFS=$as_save_IFS
  27914. - ac_header_compiler=no
  27915. +fi
  27916. +fi
  27917. +AR=$ac_cv_prog_AR
  27918. +if test -n "$AR"; then
  27919. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  27920. +$as_echo "$AR" >&6; }
  27921. +else
  27922. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  27923. +$as_echo "no" >&6; }
  27924. fi
  27925. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  27926. -{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  27927. -echo "${ECHO_T}$ac_header_compiler" >&6; }
  27928. -# Is the header present?
  27929. -{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
  27930. -echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  27931. -cat >conftest.$ac_ext <<_ACEOF
  27932. -/* confdefs.h. */
  27933. -_ACEOF
  27934. -cat confdefs.h >>conftest.$ac_ext
  27935. -cat >>conftest.$ac_ext <<_ACEOF
  27936. -/* end confdefs.h. */
  27937. -#include <$ac_header>
  27938. -_ACEOF
  27939. -if { (ac_try="$ac_cpp conftest.$ac_ext"
  27940. -case "(($ac_try" in
  27941. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  27942. - *) ac_try_echo=$ac_try;;
  27943. -esac
  27944. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  27945. - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  27946. - ac_status=$?
  27947. - grep -v '^ *+' conftest.er1 >conftest.err
  27948. - rm -f conftest.er1
  27949. - cat conftest.err >&5
  27950. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27951. - (exit $ac_status); } >/dev/null; then
  27952. - if test -s conftest.err; then
  27953. - ac_cpp_err=$ac_c_preproc_warn_flag
  27954. - ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  27955. - else
  27956. - ac_cpp_err=
  27957. - fi
  27958. -else
  27959. - ac_cpp_err=yes
  27960. fi
  27961. -if test -z "$ac_cpp_err"; then
  27962. - ac_header_preproc=yes
  27963. +if test -z "$ac_cv_prog_AR"; then
  27964. + ac_ct_AR=$AR
  27965. + # Extract the first word of "ar", so it can be a program name with args.
  27966. +set dummy ar; ac_word=$2
  27967. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  27968. +$as_echo_n "checking for $ac_word... " >&6; }
  27969. +if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
  27970. + $as_echo_n "(cached) " >&6
  27971. else
  27972. - echo "$as_me: failed program was:" >&5
  27973. -sed 's/^/| /' conftest.$ac_ext >&5
  27974. + if test -n "$ac_ct_AR"; then
  27975. + ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  27976. +else
  27977. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  27978. +for as_dir in $PATH
  27979. +do
  27980. + IFS=$as_save_IFS
  27981. + test -z "$as_dir" && as_dir=.
  27982. + for ac_exec_ext in '' $ac_executable_extensions; do
  27983. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  27984. + ac_cv_prog_ac_ct_AR="ar"
  27985. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  27986. + break 2
  27987. + fi
  27988. +done
  27989. + done
  27990. +IFS=$as_save_IFS
  27991. - ac_header_preproc=no
  27992. +fi
  27993. +fi
  27994. +ac_ct_AR=$ac_cv_prog_ac_ct_AR
  27995. +if test -n "$ac_ct_AR"; then
  27996. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  27997. +$as_echo "$ac_ct_AR" >&6; }
  27998. +else
  27999. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  28000. +$as_echo "no" >&6; }
  28001. fi
  28002. -rm -f conftest.err conftest.$ac_ext
  28003. -{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  28004. -echo "${ECHO_T}$ac_header_preproc" >&6; }
  28005. -
  28006. -# So? What about this header?
  28007. -case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  28008. - yes:no: )
  28009. - { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  28010. -echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  28011. - { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  28012. -echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  28013. - ac_header_preproc=yes
  28014. - ;;
  28015. - no:yes:* )
  28016. - { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  28017. -echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  28018. - { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  28019. -echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  28020. - { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  28021. -echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  28022. - { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  28023. -echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  28024. - { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  28025. -echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  28026. - { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  28027. -echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  28028. - ( cat <<\_ASBOX
  28029. -## --------------------------------------------- ##
  28030. -## Report this to mroberto@users.sourceforge.net ##
  28031. -## --------------------------------------------- ##
  28032. -_ASBOX
  28033. - ) | sed "s/^/$as_me: WARNING: /" >&2
  28034. - ;;
  28035. + if test "x$ac_ct_AR" = x; then
  28036. + AR="false"
  28037. + else
  28038. + case $cross_compiling:$ac_tool_warned in
  28039. +yes:)
  28040. +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  28041. +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  28042. +ac_tool_warned=yes ;;
  28043. esac
  28044. -{ echo "$as_me:$LINENO: checking for $ac_header" >&5
  28045. -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  28046. -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  28047. - echo $ECHO_N "(cached) $ECHO_C" >&6
  28048. + AR=$ac_ct_AR
  28049. + fi
  28050. else
  28051. - eval "$as_ac_Header=\$ac_header_preproc"
  28052. + AR="$ac_cv_prog_AR"
  28053. fi
  28054. -ac_res=`eval echo '${'$as_ac_Header'}'`
  28055. - { echo "$as_me:$LINENO: result: $ac_res" >&5
  28056. -echo "${ECHO_T}$ac_res" >&6; }
  28057. -fi
  28058. -if test `eval echo '${'$as_ac_Header'}'` = yes; then
  28059. - cat >>confdefs.h <<_ACEOF
  28060. -#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  28061. -_ACEOF
  28062. +test -z "$AR" && AR=ar
  28063. +test -z "$AR_FLAGS" && AR_FLAGS=cru
  28064. -fi
  28065. -done
  28066. -ac_ext=cpp
  28067. -ac_cpp='$CXXCPP $CPPFLAGS'
  28068. -ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  28069. -ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  28070. -ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  28071. -if test -z "$CXX"; then
  28072. - if test -n "$CCC"; then
  28073. - CXX=$CCC
  28074. - else
  28075. - if test -n "$ac_tool_prefix"; then
  28076. - for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  28077. - do
  28078. - # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  28079. -set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  28080. -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
  28081. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  28082. -if test "${ac_cv_prog_CXX+set}" = set; then
  28083. - echo $ECHO_N "(cached) $ECHO_C" >&6
  28084. +
  28085. +
  28086. +
  28087. +
  28088. +
  28089. +
  28090. +
  28091. +
  28092. +if test -n "$ac_tool_prefix"; then
  28093. + # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  28094. +set dummy ${ac_tool_prefix}strip; ac_word=$2
  28095. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  28096. +$as_echo_n "checking for $ac_word... " >&6; }
  28097. +if test "${ac_cv_prog_STRIP+set}" = set; then :
  28098. + $as_echo_n "(cached) " >&6
  28099. else
  28100. - if test -n "$CXX"; then
  28101. - ac_cv_prog_CXX="$CXX" # Let the user override the test.
  28102. + if test -n "$STRIP"; then
  28103. + ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  28104. else
  28105. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  28106. for as_dir in $PATH
  28107. do
  28108. IFS=$as_save_IFS
  28109. test -z "$as_dir" && as_dir=.
  28110. - for ac_exec_ext in '' $ac_executable_extensions; do
  28111. - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
  28112. - ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  28113. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  28114. + for ac_exec_ext in '' $ac_executable_extensions; do
  28115. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  28116. + ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  28117. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  28118. break 2
  28119. fi
  28120. done
  28121. -done
  28122. + done
  28123. IFS=$as_save_IFS
  28124. fi
  28125. fi
  28126. -CXX=$ac_cv_prog_CXX
  28127. -if test -n "$CXX"; then
  28128. - { echo "$as_me:$LINENO: result: $CXX" >&5
  28129. -echo "${ECHO_T}$CXX" >&6; }
  28130. +STRIP=$ac_cv_prog_STRIP
  28131. +if test -n "$STRIP"; then
  28132. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  28133. +$as_echo "$STRIP" >&6; }
  28134. else
  28135. - { echo "$as_me:$LINENO: result: no" >&5
  28136. -echo "${ECHO_T}no" >&6; }
  28137. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  28138. +$as_echo "no" >&6; }
  28139. fi
  28140. - test -n "$CXX" && break
  28141. - done
  28142. fi
  28143. -if test -z "$CXX"; then
  28144. - ac_ct_CXX=$CXX
  28145. - for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  28146. -do
  28147. - # Extract the first word of "$ac_prog", so it can be a program name with args.
  28148. -set dummy $ac_prog; ac_word=$2
  28149. -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
  28150. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  28151. -if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
  28152. - echo $ECHO_N "(cached) $ECHO_C" >&6
  28153. +if test -z "$ac_cv_prog_STRIP"; then
  28154. + ac_ct_STRIP=$STRIP
  28155. + # Extract the first word of "strip", so it can be a program name with args.
  28156. +set dummy strip; ac_word=$2
  28157. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  28158. +$as_echo_n "checking for $ac_word... " >&6; }
  28159. +if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
  28160. + $as_echo_n "(cached) " >&6
  28161. else
  28162. - if test -n "$ac_ct_CXX"; then
  28163. - ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  28164. + if test -n "$ac_ct_STRIP"; then
  28165. + ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  28166. else
  28167. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  28168. for as_dir in $PATH
  28169. do
  28170. IFS=$as_save_IFS
  28171. test -z "$as_dir" && as_dir=.
  28172. - for ac_exec_ext in '' $ac_executable_extensions; do
  28173. - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
  28174. - ac_cv_prog_ac_ct_CXX="$ac_prog"
  28175. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  28176. + for ac_exec_ext in '' $ac_executable_extensions; do
  28177. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  28178. + ac_cv_prog_ac_ct_STRIP="strip"
  28179. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  28180. break 2
  28181. fi
  28182. done
  28183. -done
  28184. + done
  28185. IFS=$as_save_IFS
  28186. fi
  28187. fi
  28188. -ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  28189. -if test -n "$ac_ct_CXX"; then
  28190. - { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
  28191. -echo "${ECHO_T}$ac_ct_CXX" >&6; }
  28192. +ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  28193. +if test -n "$ac_ct_STRIP"; then
  28194. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  28195. +$as_echo "$ac_ct_STRIP" >&6; }
  28196. else
  28197. - { echo "$as_me:$LINENO: result: no" >&5
  28198. -echo "${ECHO_T}no" >&6; }
  28199. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  28200. +$as_echo "no" >&6; }
  28201. fi
  28202. -
  28203. - test -n "$ac_ct_CXX" && break
  28204. -done
  28205. -
  28206. - if test "x$ac_ct_CXX" = x; then
  28207. - CXX="g++"
  28208. + if test "x$ac_ct_STRIP" = x; then
  28209. + STRIP=":"
  28210. else
  28211. case $cross_compiling:$ac_tool_warned in
  28212. yes:)
  28213. -{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  28214. -whose name does not start with the host triplet. If you think this
  28215. -configuration is useful to you, please write to autoconf@gnu.org." >&5
  28216. -echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  28217. -whose name does not start with the host triplet. If you think this
  28218. -configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  28219. +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  28220. +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  28221. ac_tool_warned=yes ;;
  28222. esac
  28223. - CXX=$ac_ct_CXX
  28224. + STRIP=$ac_ct_STRIP
  28225. fi
  28226. +else
  28227. + STRIP="$ac_cv_prog_STRIP"
  28228. fi
  28229. - fi
  28230. -fi
  28231. -# Provide some information about the compiler.
  28232. -echo "$as_me:$LINENO: checking for C++ compiler version" >&5
  28233. -ac_compiler=`set X $ac_compile; echo $2`
  28234. -{ (ac_try="$ac_compiler --version >&5"
  28235. -case "(($ac_try" in
  28236. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  28237. - *) ac_try_echo=$ac_try;;
  28238. -esac
  28239. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  28240. - (eval "$ac_compiler --version >&5") 2>&5
  28241. - ac_status=$?
  28242. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28243. - (exit $ac_status); }
  28244. -{ (ac_try="$ac_compiler -v >&5"
  28245. -case "(($ac_try" in
  28246. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  28247. - *) ac_try_echo=$ac_try;;
  28248. -esac
  28249. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  28250. - (eval "$ac_compiler -v >&5") 2>&5
  28251. - ac_status=$?
  28252. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28253. - (exit $ac_status); }
  28254. -{ (ac_try="$ac_compiler -V >&5"
  28255. -case "(($ac_try" in
  28256. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  28257. - *) ac_try_echo=$ac_try;;
  28258. -esac
  28259. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  28260. - (eval "$ac_compiler -V >&5") 2>&5
  28261. - ac_status=$?
  28262. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28263. - (exit $ac_status); }
  28264. +test -z "$STRIP" && STRIP=:
  28265. -{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
  28266. -echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
  28267. -if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
  28268. - echo $ECHO_N "(cached) $ECHO_C" >&6
  28269. -else
  28270. - cat >conftest.$ac_ext <<_ACEOF
  28271. -/* confdefs.h. */
  28272. -_ACEOF
  28273. -cat confdefs.h >>conftest.$ac_ext
  28274. -cat >>conftest.$ac_ext <<_ACEOF
  28275. -/* end confdefs.h. */
  28276. -int
  28277. -main ()
  28278. -{
  28279. -#ifndef __GNUC__
  28280. - choke me
  28281. -#endif
  28282. - ;
  28283. - return 0;
  28284. -}
  28285. -_ACEOF
  28286. -rm -f conftest.$ac_objext
  28287. -if { (ac_try="$ac_compile"
  28288. -case "(($ac_try" in
  28289. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  28290. - *) ac_try_echo=$ac_try;;
  28291. -esac
  28292. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  28293. - (eval "$ac_compile") 2>conftest.er1
  28294. - ac_status=$?
  28295. - grep -v '^ *+' conftest.er1 >conftest.err
  28296. - rm -f conftest.er1
  28297. - cat conftest.err >&5
  28298. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28299. - (exit $ac_status); } &&
  28300. - { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  28301. - { (case "(($ac_try" in
  28302. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  28303. - *) ac_try_echo=$ac_try;;
  28304. -esac
  28305. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  28306. - (eval "$ac_try") 2>&5
  28307. - ac_status=$?
  28308. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28309. - (exit $ac_status); }; } &&
  28310. - { ac_try='test -s conftest.$ac_objext'
  28311. - { (case "(($ac_try" in
  28312. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  28313. - *) ac_try_echo=$ac_try;;
  28314. -esac
  28315. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  28316. - (eval "$ac_try") 2>&5
  28317. - ac_status=$?
  28318. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28319. - (exit $ac_status); }; }; then
  28320. - ac_compiler_gnu=yes
  28321. +
  28322. +
  28323. +
  28324. +if test -n "$ac_tool_prefix"; then
  28325. + # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  28326. +set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  28327. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  28328. +$as_echo_n "checking for $ac_word... " >&6; }
  28329. +if test "${ac_cv_prog_RANLIB+set}" = set; then :
  28330. + $as_echo_n "(cached) " >&6
  28331. else
  28332. - echo "$as_me: failed program was:" >&5
  28333. -sed 's/^/| /' conftest.$ac_ext >&5
  28334. + if test -n "$RANLIB"; then
  28335. + ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  28336. +else
  28337. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  28338. +for as_dir in $PATH
  28339. +do
  28340. + IFS=$as_save_IFS
  28341. + test -z "$as_dir" && as_dir=.
  28342. + for ac_exec_ext in '' $ac_executable_extensions; do
  28343. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  28344. + ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  28345. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  28346. + break 2
  28347. + fi
  28348. +done
  28349. + done
  28350. +IFS=$as_save_IFS
  28351. - ac_compiler_gnu=no
  28352. +fi
  28353. +fi
  28354. +RANLIB=$ac_cv_prog_RANLIB
  28355. +if test -n "$RANLIB"; then
  28356. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  28357. +$as_echo "$RANLIB" >&6; }
  28358. +else
  28359. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  28360. +$as_echo "no" >&6; }
  28361. fi
  28362. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  28363. -ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  28364. fi
  28365. -{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
  28366. -echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
  28367. -GXX=`test $ac_compiler_gnu = yes && echo yes`
  28368. -ac_test_CXXFLAGS=${CXXFLAGS+set}
  28369. -ac_save_CXXFLAGS=$CXXFLAGS
  28370. -{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
  28371. -echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
  28372. -if test "${ac_cv_prog_cxx_g+set}" = set; then
  28373. - echo $ECHO_N "(cached) $ECHO_C" >&6
  28374. -else
  28375. - ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  28376. - ac_cxx_werror_flag=yes
  28377. - ac_cv_prog_cxx_g=no
  28378. - CXXFLAGS="-g"
  28379. - cat >conftest.$ac_ext <<_ACEOF
  28380. -/* confdefs.h. */
  28381. -_ACEOF
  28382. -cat confdefs.h >>conftest.$ac_ext
  28383. -cat >>conftest.$ac_ext <<_ACEOF
  28384. -/* end confdefs.h. */
  28385. +if test -z "$ac_cv_prog_RANLIB"; then
  28386. + ac_ct_RANLIB=$RANLIB
  28387. + # Extract the first word of "ranlib", so it can be a program name with args.
  28388. +set dummy ranlib; ac_word=$2
  28389. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  28390. +$as_echo_n "checking for $ac_word... " >&6; }
  28391. +if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
  28392. + $as_echo_n "(cached) " >&6
  28393. +else
  28394. + if test -n "$ac_ct_RANLIB"; then
  28395. + ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  28396. +else
  28397. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  28398. +for as_dir in $PATH
  28399. +do
  28400. + IFS=$as_save_IFS
  28401. + test -z "$as_dir" && as_dir=.
  28402. + for ac_exec_ext in '' $ac_executable_extensions; do
  28403. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  28404. + ac_cv_prog_ac_ct_RANLIB="ranlib"
  28405. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  28406. + break 2
  28407. + fi
  28408. +done
  28409. + done
  28410. +IFS=$as_save_IFS
  28411. -int
  28412. -main ()
  28413. -{
  28414. +fi
  28415. +fi
  28416. +ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  28417. +if test -n "$ac_ct_RANLIB"; then
  28418. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  28419. +$as_echo "$ac_ct_RANLIB" >&6; }
  28420. +else
  28421. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  28422. +$as_echo "no" >&6; }
  28423. +fi
  28424. - ;
  28425. - return 0;
  28426. -}
  28427. -_ACEOF
  28428. -rm -f conftest.$ac_objext
  28429. -if { (ac_try="$ac_compile"
  28430. -case "(($ac_try" in
  28431. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  28432. - *) ac_try_echo=$ac_try;;
  28433. -esac
  28434. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  28435. - (eval "$ac_compile") 2>conftest.er1
  28436. - ac_status=$?
  28437. - grep -v '^ *+' conftest.er1 >conftest.err
  28438. - rm -f conftest.er1
  28439. - cat conftest.err >&5
  28440. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28441. - (exit $ac_status); } &&
  28442. - { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  28443. - { (case "(($ac_try" in
  28444. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  28445. - *) ac_try_echo=$ac_try;;
  28446. -esac
  28447. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  28448. - (eval "$ac_try") 2>&5
  28449. - ac_status=$?
  28450. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28451. - (exit $ac_status); }; } &&
  28452. - { ac_try='test -s conftest.$ac_objext'
  28453. - { (case "(($ac_try" in
  28454. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  28455. - *) ac_try_echo=$ac_try;;
  28456. + if test "x$ac_ct_RANLIB" = x; then
  28457. + RANLIB=":"
  28458. + else
  28459. + case $cross_compiling:$ac_tool_warned in
  28460. +yes:)
  28461. +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  28462. +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  28463. +ac_tool_warned=yes ;;
  28464. esac
  28465. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  28466. - (eval "$ac_try") 2>&5
  28467. - ac_status=$?
  28468. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28469. - (exit $ac_status); }; }; then
  28470. - ac_cv_prog_cxx_g=yes
  28471. + RANLIB=$ac_ct_RANLIB
  28472. + fi
  28473. else
  28474. - echo "$as_me: failed program was:" >&5
  28475. -sed 's/^/| /' conftest.$ac_ext >&5
  28476. + RANLIB="$ac_cv_prog_RANLIB"
  28477. +fi
  28478. - CXXFLAGS=""
  28479. - cat >conftest.$ac_ext <<_ACEOF
  28480. -/* confdefs.h. */
  28481. -_ACEOF
  28482. -cat confdefs.h >>conftest.$ac_ext
  28483. -cat >>conftest.$ac_ext <<_ACEOF
  28484. -/* end confdefs.h. */
  28485. +test -z "$RANLIB" && RANLIB=:
  28486. -int
  28487. -main ()
  28488. -{
  28489. - ;
  28490. - return 0;
  28491. -}
  28492. -_ACEOF
  28493. -rm -f conftest.$ac_objext
  28494. -if { (ac_try="$ac_compile"
  28495. -case "(($ac_try" in
  28496. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  28497. - *) ac_try_echo=$ac_try;;
  28498. -esac
  28499. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  28500. - (eval "$ac_compile") 2>conftest.er1
  28501. - ac_status=$?
  28502. - grep -v '^ *+' conftest.er1 >conftest.err
  28503. - rm -f conftest.er1
  28504. - cat conftest.err >&5
  28505. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28506. - (exit $ac_status); } &&
  28507. - { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  28508. - { (case "(($ac_try" in
  28509. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  28510. - *) ac_try_echo=$ac_try;;
  28511. -esac
  28512. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  28513. - (eval "$ac_try") 2>&5
  28514. - ac_status=$?
  28515. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28516. - (exit $ac_status); }; } &&
  28517. - { ac_try='test -s conftest.$ac_objext'
  28518. - { (case "(($ac_try" in
  28519. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  28520. - *) ac_try_echo=$ac_try;;
  28521. -esac
  28522. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  28523. - (eval "$ac_try") 2>&5
  28524. - ac_status=$?
  28525. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28526. - (exit $ac_status); }; }; then
  28527. - :
  28528. -else
  28529. - echo "$as_me: failed program was:" >&5
  28530. -sed 's/^/| /' conftest.$ac_ext >&5
  28531. - ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  28532. - CXXFLAGS="-g"
  28533. - cat >conftest.$ac_ext <<_ACEOF
  28534. -/* confdefs.h. */
  28535. -_ACEOF
  28536. -cat confdefs.h >>conftest.$ac_ext
  28537. -cat >>conftest.$ac_ext <<_ACEOF
  28538. -/* end confdefs.h. */
  28539. -int
  28540. -main ()
  28541. -{
  28542. - ;
  28543. - return 0;
  28544. -}
  28545. -_ACEOF
  28546. -rm -f conftest.$ac_objext
  28547. -if { (ac_try="$ac_compile"
  28548. -case "(($ac_try" in
  28549. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  28550. - *) ac_try_echo=$ac_try;;
  28551. -esac
  28552. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  28553. - (eval "$ac_compile") 2>conftest.er1
  28554. - ac_status=$?
  28555. - grep -v '^ *+' conftest.er1 >conftest.err
  28556. - rm -f conftest.er1
  28557. - cat conftest.err >&5
  28558. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28559. - (exit $ac_status); } &&
  28560. - { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  28561. - { (case "(($ac_try" in
  28562. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  28563. - *) ac_try_echo=$ac_try;;
  28564. -esac
  28565. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  28566. - (eval "$ac_try") 2>&5
  28567. - ac_status=$?
  28568. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28569. - (exit $ac_status); }; } &&
  28570. - { ac_try='test -s conftest.$ac_objext'
  28571. - { (case "(($ac_try" in
  28572. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  28573. - *) ac_try_echo=$ac_try;;
  28574. -esac
  28575. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  28576. - (eval "$ac_try") 2>&5
  28577. - ac_status=$?
  28578. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28579. - (exit $ac_status); }; }; then
  28580. - ac_cv_prog_cxx_g=yes
  28581. -else
  28582. - echo "$as_me: failed program was:" >&5
  28583. -sed 's/^/| /' conftest.$ac_ext >&5
  28584. +# Determine commands to create old-style static archives.
  28585. +old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  28586. +old_postinstall_cmds='chmod 644 $oldlib'
  28587. +old_postuninstall_cmds=
  28588. +if test -n "$RANLIB"; then
  28589. + case $host_os in
  28590. + openbsd*)
  28591. + old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
  28592. + ;;
  28593. + *)
  28594. + old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
  28595. + ;;
  28596. + esac
  28597. + old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
  28598. fi
  28599. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  28600. -fi
  28601. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  28602. -fi
  28603. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  28604. - ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  28605. -fi
  28606. -{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
  28607. -echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
  28608. -if test "$ac_test_CXXFLAGS" = set; then
  28609. - CXXFLAGS=$ac_save_CXXFLAGS
  28610. -elif test $ac_cv_prog_cxx_g = yes; then
  28611. - if test "$GXX" = yes; then
  28612. - CXXFLAGS="-g -O2"
  28613. - else
  28614. - CXXFLAGS="-g"
  28615. - fi
  28616. -else
  28617. - if test "$GXX" = yes; then
  28618. - CXXFLAGS="-O2"
  28619. - else
  28620. - CXXFLAGS=
  28621. - fi
  28622. -fi
  28623. -ac_ext=cpp
  28624. -ac_cpp='$CXXCPP $CPPFLAGS'
  28625. -ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  28626. -ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  28627. -ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  28628. -depcc="$CXX" am_compiler_list=
  28629. -{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
  28630. -echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
  28631. -if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
  28632. - echo $ECHO_N "(cached) $ECHO_C" >&6
  28633. -else
  28634. - if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  28635. - # We make a subdir and do the tests there. Otherwise we can end up
  28636. - # making bogus files that we don't know about and never remove. For
  28637. - # instance it was reported that on HP-UX the gcc test will end up
  28638. - # making a dummy file named `D' -- because `-MD' means `put the output
  28639. - # in D'.
  28640. - mkdir conftest.dir
  28641. - # Copy depcomp to subdir because otherwise we won't find it if we're
  28642. - # using a relative directory.
  28643. - cp "$am_depcomp" conftest.dir
  28644. - cd conftest.dir
  28645. - # We will build objects and dependencies in a subdirectory because
  28646. - # it helps to detect inapplicable dependency modes. For instance
  28647. - # both Tru64's cc and ICC support -MD to output dependencies as a
  28648. - # side effect of compilation, but ICC will put the dependencies in
  28649. - # the current directory while Tru64 will put them in the object
  28650. - # directory.
  28651. - mkdir sub
  28652. - am_cv_CXX_dependencies_compiler_type=none
  28653. - if test "$am_compiler_list" = ""; then
  28654. - am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  28655. - fi
  28656. - for depmode in $am_compiler_list; do
  28657. - # Setup a source with many dependencies, because some compilers
  28658. - # like to wrap large dependency lists on column 80 (with \), and
  28659. - # we should not choose a depcomp mode which is confused by this.
  28660. - #
  28661. - # We need to recreate these files for each test, as the compiler may
  28662. - # overwrite some of them when testing with obscure command lines.
  28663. - # This happens at least with the AIX C compiler.
  28664. - : > sub/conftest.c
  28665. - for i in 1 2 3 4 5 6; do
  28666. - echo '#include "conftst'$i'.h"' >> sub/conftest.c
  28667. - # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  28668. - # Solaris 8's {/usr,}/bin/sh.
  28669. - touch sub/conftst$i.h
  28670. - done
  28671. - echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  28672. - case $depmode in
  28673. - nosideeffect)
  28674. - # after this tag, mechanisms are not by side-effect, so they'll
  28675. - # only be used when explicitly requested
  28676. - if test "x$enable_dependency_tracking" = xyes; then
  28677. - continue
  28678. - else
  28679. - break
  28680. - fi
  28681. - ;;
  28682. - none) break ;;
  28683. - esac
  28684. - # We check with `-c' and `-o' for the sake of the "dashmstdout"
  28685. - # mode. It turns out that the SunPro C++ compiler does not properly
  28686. - # handle `-M -o', and we need to detect this.
  28687. - if depmode=$depmode \
  28688. - source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
  28689. - depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  28690. - $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
  28691. - >/dev/null 2>conftest.err &&
  28692. - grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  28693. - grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
  28694. - ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  28695. - # icc doesn't choke on unknown options, it will just issue warnings
  28696. - # or remarks (even with -Werror). So we grep stderr for any message
  28697. - # that says an option was ignored or not supported.
  28698. - # When given -MP, icc 7.0 and 7.1 complain thusly:
  28699. - # icc: Command line warning: ignoring option '-M'; no argument required
  28700. - # The diagnosis changed in icc 8.0:
  28701. - # icc: Command line remark: option '-MP' not supported
  28702. - if (grep 'ignoring option' conftest.err ||
  28703. - grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  28704. - am_cv_CXX_dependencies_compiler_type=$depmode
  28705. - break
  28706. - fi
  28707. - fi
  28708. - done
  28709. - cd ..
  28710. - rm -rf conftest.dir
  28711. -else
  28712. - am_cv_CXX_dependencies_compiler_type=none
  28713. -fi
  28714. -fi
  28715. -{ echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
  28716. -echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
  28717. -CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
  28718. -if
  28719. - test "x$enable_dependency_tracking" != xno \
  28720. - && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
  28721. - am__fastdepCXX_TRUE=
  28722. - am__fastdepCXX_FALSE='#'
  28723. -else
  28724. - am__fastdepCXX_TRUE='#'
  28725. - am__fastdepCXX_FALSE=
  28726. -fi
  28727. -if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
  28728. - ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
  28729. - (test "X$CXX" != "Xg++"))) ; then
  28730. - ac_ext=cpp
  28731. -ac_cpp='$CXXCPP $CPPFLAGS'
  28732. -ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  28733. -ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  28734. -ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  28735. -{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
  28736. -echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
  28737. -if test -z "$CXXCPP"; then
  28738. - if test "${ac_cv_prog_CXXCPP+set}" = set; then
  28739. - echo $ECHO_N "(cached) $ECHO_C" >&6
  28740. -else
  28741. - # Double quotes because CXXCPP needs to be expanded
  28742. - for CXXCPP in "$CXX -E" "/lib/cpp"
  28743. - do
  28744. - ac_preproc_ok=false
  28745. -for ac_cxx_preproc_warn_flag in '' yes
  28746. -do
  28747. - # Use a header file that comes with gcc, so configuring glibc
  28748. - # with a fresh cross-compiler works.
  28749. - # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  28750. - # <limits.h> exists even on freestanding compilers.
  28751. - # On the NeXT, cc -E runs the code through the compiler's parser,
  28752. - # not just through cpp. "Syntax error" is here to catch this case.
  28753. - cat >conftest.$ac_ext <<_ACEOF
  28754. -/* confdefs.h. */
  28755. -_ACEOF
  28756. -cat confdefs.h >>conftest.$ac_ext
  28757. -cat >>conftest.$ac_ext <<_ACEOF
  28758. -/* end confdefs.h. */
  28759. -#ifdef __STDC__
  28760. -# include <limits.h>
  28761. -#else
  28762. -# include <assert.h>
  28763. -#endif
  28764. - Syntax error
  28765. -_ACEOF
  28766. -if { (ac_try="$ac_cpp conftest.$ac_ext"
  28767. -case "(($ac_try" in
  28768. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  28769. - *) ac_try_echo=$ac_try;;
  28770. -esac
  28771. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  28772. - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  28773. - ac_status=$?
  28774. - grep -v '^ *+' conftest.er1 >conftest.err
  28775. - rm -f conftest.er1
  28776. - cat conftest.err >&5
  28777. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28778. - (exit $ac_status); } >/dev/null; then
  28779. - if test -s conftest.err; then
  28780. - ac_cpp_err=$ac_cxx_preproc_warn_flag
  28781. - ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
  28782. - else
  28783. - ac_cpp_err=
  28784. - fi
  28785. -else
  28786. - ac_cpp_err=yes
  28787. -fi
  28788. -if test -z "$ac_cpp_err"; then
  28789. - :
  28790. -else
  28791. - echo "$as_me: failed program was:" >&5
  28792. -sed 's/^/| /' conftest.$ac_ext >&5
  28793. - # Broken: fails on valid input.
  28794. -continue
  28795. -fi
  28796. -rm -f conftest.err conftest.$ac_ext
  28797. - # OK, works on sane cases. Now check whether nonexistent headers
  28798. - # can be detected and how.
  28799. - cat >conftest.$ac_ext <<_ACEOF
  28800. -/* confdefs.h. */
  28801. -_ACEOF
  28802. -cat confdefs.h >>conftest.$ac_ext
  28803. -cat >>conftest.$ac_ext <<_ACEOF
  28804. -/* end confdefs.h. */
  28805. -#include <ac_nonexistent.h>
  28806. -_ACEOF
  28807. -if { (ac_try="$ac_cpp conftest.$ac_ext"
  28808. -case "(($ac_try" in
  28809. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  28810. - *) ac_try_echo=$ac_try;;
  28811. -esac
  28812. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  28813. - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  28814. - ac_status=$?
  28815. - grep -v '^ *+' conftest.er1 >conftest.err
  28816. - rm -f conftest.er1
  28817. - cat conftest.err >&5
  28818. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28819. - (exit $ac_status); } >/dev/null; then
  28820. - if test -s conftest.err; then
  28821. - ac_cpp_err=$ac_cxx_preproc_warn_flag
  28822. - ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
  28823. - else
  28824. - ac_cpp_err=
  28825. - fi
  28826. -else
  28827. - ac_cpp_err=yes
  28828. -fi
  28829. -if test -z "$ac_cpp_err"; then
  28830. - # Broken: success on invalid input.
  28831. -continue
  28832. -else
  28833. - echo "$as_me: failed program was:" >&5
  28834. -sed 's/^/| /' conftest.$ac_ext >&5
  28835. - # Passes both tests.
  28836. -ac_preproc_ok=:
  28837. -break
  28838. -fi
  28839. -rm -f conftest.err conftest.$ac_ext
  28840. -done
  28841. -# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  28842. -rm -f conftest.err conftest.$ac_ext
  28843. -if $ac_preproc_ok; then
  28844. - break
  28845. -fi
  28846. - done
  28847. - ac_cv_prog_CXXCPP=$CXXCPP
  28848. -fi
  28849. - CXXCPP=$ac_cv_prog_CXXCPP
  28850. -else
  28851. - ac_cv_prog_CXXCPP=$CXXCPP
  28852. -fi
  28853. -{ echo "$as_me:$LINENO: result: $CXXCPP" >&5
  28854. -echo "${ECHO_T}$CXXCPP" >&6; }
  28855. -ac_preproc_ok=false
  28856. -for ac_cxx_preproc_warn_flag in '' yes
  28857. -do
  28858. - # Use a header file that comes with gcc, so configuring glibc
  28859. - # with a fresh cross-compiler works.
  28860. - # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  28861. - # <limits.h> exists even on freestanding compilers.
  28862. - # On the NeXT, cc -E runs the code through the compiler's parser,
  28863. - # not just through cpp. "Syntax error" is here to catch this case.
  28864. - cat >conftest.$ac_ext <<_ACEOF
  28865. -/* confdefs.h. */
  28866. -_ACEOF
  28867. -cat confdefs.h >>conftest.$ac_ext
  28868. -cat >>conftest.$ac_ext <<_ACEOF
  28869. -/* end confdefs.h. */
  28870. -#ifdef __STDC__
  28871. -# include <limits.h>
  28872. -#else
  28873. -# include <assert.h>
  28874. -#endif
  28875. - Syntax error
  28876. -_ACEOF
  28877. -if { (ac_try="$ac_cpp conftest.$ac_ext"
  28878. -case "(($ac_try" in
  28879. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  28880. - *) ac_try_echo=$ac_try;;
  28881. -esac
  28882. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  28883. - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  28884. - ac_status=$?
  28885. - grep -v '^ *+' conftest.er1 >conftest.err
  28886. - rm -f conftest.er1
  28887. - cat conftest.err >&5
  28888. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28889. - (exit $ac_status); } >/dev/null; then
  28890. - if test -s conftest.err; then
  28891. - ac_cpp_err=$ac_cxx_preproc_warn_flag
  28892. - ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
  28893. - else
  28894. - ac_cpp_err=
  28895. - fi
  28896. -else
  28897. - ac_cpp_err=yes
  28898. -fi
  28899. -if test -z "$ac_cpp_err"; then
  28900. - :
  28901. -else
  28902. - echo "$as_me: failed program was:" >&5
  28903. -sed 's/^/| /' conftest.$ac_ext >&5
  28904. - # Broken: fails on valid input.
  28905. -continue
  28906. -fi
  28907. -rm -f conftest.err conftest.$ac_ext
  28908. - # OK, works on sane cases. Now check whether nonexistent headers
  28909. - # can be detected and how.
  28910. - cat >conftest.$ac_ext <<_ACEOF
  28911. -/* confdefs.h. */
  28912. -_ACEOF
  28913. -cat confdefs.h >>conftest.$ac_ext
  28914. -cat >>conftest.$ac_ext <<_ACEOF
  28915. -/* end confdefs.h. */
  28916. -#include <ac_nonexistent.h>
  28917. -_ACEOF
  28918. -if { (ac_try="$ac_cpp conftest.$ac_ext"
  28919. -case "(($ac_try" in
  28920. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  28921. - *) ac_try_echo=$ac_try;;
  28922. -esac
  28923. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  28924. - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  28925. - ac_status=$?
  28926. - grep -v '^ *+' conftest.er1 >conftest.err
  28927. - rm -f conftest.er1
  28928. - cat conftest.err >&5
  28929. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28930. - (exit $ac_status); } >/dev/null; then
  28931. - if test -s conftest.err; then
  28932. - ac_cpp_err=$ac_cxx_preproc_warn_flag
  28933. - ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
  28934. - else
  28935. - ac_cpp_err=
  28936. - fi
  28937. -else
  28938. - ac_cpp_err=yes
  28939. -fi
  28940. -if test -z "$ac_cpp_err"; then
  28941. - # Broken: success on invalid input.
  28942. -continue
  28943. -else
  28944. - echo "$as_me: failed program was:" >&5
  28945. -sed 's/^/| /' conftest.$ac_ext >&5
  28946. - # Passes both tests.
  28947. -ac_preproc_ok=:
  28948. -break
  28949. -fi
  28950. -rm -f conftest.err conftest.$ac_ext
  28951. -done
  28952. -# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  28953. -rm -f conftest.err conftest.$ac_ext
  28954. -if $ac_preproc_ok; then
  28955. - :
  28956. -else
  28957. - { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
  28958. -See \`config.log' for more details." >&5
  28959. -echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
  28960. -See \`config.log' for more details." >&2;}
  28961. - { (exit 1); exit 1; }; }
  28962. -fi
  28963. -ac_ext=cpp
  28964. -ac_cpp='$CXXCPP $CPPFLAGS'
  28965. -ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  28966. -ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  28967. -ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  28968. -fi
  28969. -ac_ext=f
  28970. -ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
  28971. -ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  28972. -ac_compiler_gnu=$ac_cv_f77_compiler_gnu
  28973. -if test -n "$ac_tool_prefix"; then
  28974. - 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
  28975. - do
  28976. - # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  28977. -set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  28978. -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
  28979. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  28980. -if test "${ac_cv_prog_F77+set}" = set; then
  28981. - echo $ECHO_N "(cached) $ECHO_C" >&6
  28982. -else
  28983. - if test -n "$F77"; then
  28984. - ac_cv_prog_F77="$F77" # Let the user override the test.
  28985. -else
  28986. -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  28987. -for as_dir in $PATH
  28988. -do
  28989. - IFS=$as_save_IFS
  28990. - test -z "$as_dir" && as_dir=.
  28991. - for ac_exec_ext in '' $ac_executable_extensions; do
  28992. - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
  28993. - ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
  28994. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  28995. - break 2
  28996. - fi
  28997. -done
  28998. -done
  28999. -IFS=$as_save_IFS
  29000. +# If no C compiler was specified, use CC.
  29001. +LTCC=${LTCC-"$CC"}
  29002. -fi
  29003. -fi
  29004. -F77=$ac_cv_prog_F77
  29005. -if test -n "$F77"; then
  29006. - { echo "$as_me:$LINENO: result: $F77" >&5
  29007. -echo "${ECHO_T}$F77" >&6; }
  29008. -else
  29009. - { echo "$as_me:$LINENO: result: no" >&5
  29010. -echo "${ECHO_T}no" >&6; }
  29011. -fi
  29012. +# If no C compiler flags were specified, use CFLAGS.
  29013. +LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  29014. +# Allow CC to be a program name with arguments.
  29015. +compiler=$CC
  29016. - test -n "$F77" && break
  29017. - done
  29018. -fi
  29019. -if test -z "$F77"; then
  29020. - ac_ct_F77=$F77
  29021. - 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
  29022. -do
  29023. - # Extract the first word of "$ac_prog", so it can be a program name with args.
  29024. -set dummy $ac_prog; ac_word=$2
  29025. -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
  29026. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  29027. -if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
  29028. - echo $ECHO_N "(cached) $ECHO_C" >&6
  29029. -else
  29030. - if test -n "$ac_ct_F77"; then
  29031. - ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
  29032. +
  29033. +# Check for command to grab the raw symbol name followed by C symbol from nm.
  29034. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
  29035. +$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
  29036. +if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
  29037. + $as_echo_n "(cached) " >&6
  29038. else
  29039. -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  29040. -for as_dir in $PATH
  29041. -do
  29042. - IFS=$as_save_IFS
  29043. - test -z "$as_dir" && as_dir=.
  29044. - for ac_exec_ext in '' $ac_executable_extensions; do
  29045. - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
  29046. - ac_cv_prog_ac_ct_F77="$ac_prog"
  29047. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  29048. - break 2
  29049. +
  29050. +# These are sane defaults that work on at least a few old systems.
  29051. +# [They come from Ultrix. What could be older than Ultrix?!! ;)]
  29052. +
  29053. +# Character class describing NM global symbol codes.
  29054. +symcode='[BCDEGRST]'
  29055. +
  29056. +# Regexp to match symbols that can be accessed directly from C.
  29057. +sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  29058. +
  29059. +# Define system-specific variables.
  29060. +case $host_os in
  29061. +aix*)
  29062. + symcode='[BCDT]'
  29063. + ;;
  29064. +cygwin* | mingw* | pw32* | cegcc*)
  29065. + symcode='[ABCDGISTW]'
  29066. + ;;
  29067. +hpux*)
  29068. + if test "$host_cpu" = ia64; then
  29069. + symcode='[ABCDEGRST]'
  29070. fi
  29071. -done
  29072. -done
  29073. -IFS=$as_save_IFS
  29074. + ;;
  29075. +irix* | nonstopux*)
  29076. + symcode='[BCDEGRST]'
  29077. + ;;
  29078. +osf*)
  29079. + symcode='[BCDEGQRST]'
  29080. + ;;
  29081. +solaris*)
  29082. + symcode='[BDRT]'
  29083. + ;;
  29084. +sco3.2v5*)
  29085. + symcode='[DT]'
  29086. + ;;
  29087. +sysv4.2uw2*)
  29088. + symcode='[DT]'
  29089. + ;;
  29090. +sysv5* | sco5v6* | unixware* | OpenUNIX*)
  29091. + symcode='[ABDT]'
  29092. + ;;
  29093. +sysv4)
  29094. + symcode='[DFNSTU]'
  29095. + ;;
  29096. +esac
  29097. -fi
  29098. -fi
  29099. -ac_ct_F77=$ac_cv_prog_ac_ct_F77
  29100. -if test -n "$ac_ct_F77"; then
  29101. - { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
  29102. -echo "${ECHO_T}$ac_ct_F77" >&6; }
  29103. -else
  29104. - { echo "$as_me:$LINENO: result: no" >&5
  29105. -echo "${ECHO_T}no" >&6; }
  29106. -fi
  29107. +# If we're using GNU nm, then use its standard symbol codes.
  29108. +case `$NM -V 2>&1` in
  29109. +*GNU* | *'with BFD'*)
  29110. + symcode='[ABCDGIRSTW]' ;;
  29111. +esac
  29112. +# Transform an extracted symbol line into a proper C declaration.
  29113. +# Some systems (esp. on ia64) link data and code symbols differently,
  29114. +# so use this general approach.
  29115. +lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  29116. - test -n "$ac_ct_F77" && break
  29117. -done
  29118. +# Transform an extracted symbol line into symbol name and symbol address
  29119. +lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
  29120. +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'"
  29121. - if test "x$ac_ct_F77" = x; then
  29122. - F77=""
  29123. - else
  29124. - case $cross_compiling:$ac_tool_warned in
  29125. -yes:)
  29126. -{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  29127. -whose name does not start with the host triplet. If you think this
  29128. -configuration is useful to you, please write to autoconf@gnu.org." >&5
  29129. -echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  29130. -whose name does not start with the host triplet. If you think this
  29131. -configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  29132. -ac_tool_warned=yes ;;
  29133. +# Handle CRLF in mingw tool chain
  29134. +opt_cr=
  29135. +case $build_os in
  29136. +mingw*)
  29137. + opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  29138. + ;;
  29139. esac
  29140. - F77=$ac_ct_F77
  29141. +
  29142. +# Try without a prefix underscore, then with it.
  29143. +for ac_symprfx in "" "_"; do
  29144. +
  29145. + # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  29146. + symxfrm="\\1 $ac_symprfx\\2 \\2"
  29147. +
  29148. + # Write the raw and C identifiers.
  29149. + if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  29150. + # Fake it for dumpbin and say T for any non-static function
  29151. + # and D for any global variable.
  29152. + # Also find C++ and __fastcall symbols from MSVC++,
  29153. + # which start with @ or ?.
  29154. + lt_cv_sys_global_symbol_pipe="$AWK '"\
  29155. +" {last_section=section; section=\$ 3};"\
  29156. +" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  29157. +" \$ 0!~/External *\|/{next};"\
  29158. +" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  29159. +" {if(hide[section]) next};"\
  29160. +" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
  29161. +" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
  29162. +" s[1]~/^[@?]/{print s[1], s[1]; next};"\
  29163. +" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
  29164. +" ' prfx=^$ac_symprfx"
  29165. + else
  29166. + lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  29167. fi
  29168. -fi
  29169. + # Check to see that the pipe works correctly.
  29170. + pipe_works=no
  29171. -# Provide some information about the compiler.
  29172. -echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
  29173. -ac_compiler=`set X $ac_compile; echo $2`
  29174. -{ (ac_try="$ac_compiler --version >&5"
  29175. -case "(($ac_try" in
  29176. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  29177. - *) ac_try_echo=$ac_try;;
  29178. -esac
  29179. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  29180. - (eval "$ac_compiler --version >&5") 2>&5
  29181. - ac_status=$?
  29182. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29183. - (exit $ac_status); }
  29184. -{ (ac_try="$ac_compiler -v >&5"
  29185. -case "(($ac_try" in
  29186. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  29187. - *) ac_try_echo=$ac_try;;
  29188. -esac
  29189. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  29190. - (eval "$ac_compiler -v >&5") 2>&5
  29191. - ac_status=$?
  29192. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29193. - (exit $ac_status); }
  29194. -{ (ac_try="$ac_compiler -V >&5"
  29195. -case "(($ac_try" in
  29196. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  29197. - *) ac_try_echo=$ac_try;;
  29198. -esac
  29199. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  29200. - (eval "$ac_compiler -V >&5") 2>&5
  29201. - ac_status=$?
  29202. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29203. - (exit $ac_status); }
  29204. -rm -f a.out
  29205. -
  29206. -# If we don't use `.F' as extension, the preprocessor is not run on the
  29207. -# input file. (Note that this only needs to work for GNU compilers.)
  29208. -ac_save_ext=$ac_ext
  29209. -ac_ext=F
  29210. -{ echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
  29211. -echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
  29212. -if test "${ac_cv_f77_compiler_gnu+set}" = set; then
  29213. - echo $ECHO_N "(cached) $ECHO_C" >&6
  29214. -else
  29215. - cat >conftest.$ac_ext <<_ACEOF
  29216. - program main
  29217. -#ifndef __GNUC__
  29218. - choke me
  29219. + rm -f conftest*
  29220. + cat > conftest.$ac_ext <<_LT_EOF
  29221. +#ifdef __cplusplus
  29222. +extern "C" {
  29223. +#endif
  29224. +char nm_test_var;
  29225. +void nm_test_func(void);
  29226. +void nm_test_func(void){}
  29227. +#ifdef __cplusplus
  29228. +}
  29229. #endif
  29230. +int main(){nm_test_var='a';nm_test_func();return(0);}
  29231. +_LT_EOF
  29232. - end
  29233. -_ACEOF
  29234. -rm -f conftest.$ac_objext
  29235. -if { (ac_try="$ac_compile"
  29236. -case "(($ac_try" in
  29237. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  29238. - *) ac_try_echo=$ac_try;;
  29239. -esac
  29240. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  29241. - (eval "$ac_compile") 2>conftest.er1
  29242. - ac_status=$?
  29243. - grep -v '^ *+' conftest.er1 >conftest.err
  29244. - rm -f conftest.er1
  29245. - cat conftest.err >&5
  29246. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29247. - (exit $ac_status); } &&
  29248. - { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
  29249. - { (case "(($ac_try" in
  29250. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  29251. - *) ac_try_echo=$ac_try;;
  29252. -esac
  29253. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  29254. - (eval "$ac_try") 2>&5
  29255. + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  29256. + (eval $ac_compile) 2>&5
  29257. ac_status=$?
  29258. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29259. - (exit $ac_status); }; } &&
  29260. - { ac_try='test -s conftest.$ac_objext'
  29261. - { (case "(($ac_try" in
  29262. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  29263. - *) ac_try_echo=$ac_try;;
  29264. -esac
  29265. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  29266. - (eval "$ac_try") 2>&5
  29267. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  29268. + test $ac_status = 0; }; then
  29269. + # Now try to grab the symbols.
  29270. + nlist=conftest.nm
  29271. + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
  29272. + (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
  29273. ac_status=$?
  29274. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29275. - (exit $ac_status); }; }; then
  29276. - ac_compiler_gnu=yes
  29277. -else
  29278. - echo "$as_me: failed program was:" >&5
  29279. -sed 's/^/| /' conftest.$ac_ext >&5
  29280. -
  29281. - ac_compiler_gnu=no
  29282. -fi
  29283. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  29284. + test $ac_status = 0; } && test -s "$nlist"; then
  29285. + # Try sorting and uniquifying the output.
  29286. + if sort "$nlist" | uniq > "$nlist"T; then
  29287. + mv -f "$nlist"T "$nlist"
  29288. + else
  29289. + rm -f "$nlist"T
  29290. + fi
  29291. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  29292. -ac_cv_f77_compiler_gnu=$ac_compiler_gnu
  29293. + # Make sure that we snagged all the symbols we need.
  29294. + if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  29295. + if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  29296. + cat <<_LT_EOF > conftest.$ac_ext
  29297. +#ifdef __cplusplus
  29298. +extern "C" {
  29299. +#endif
  29300. -fi
  29301. -{ echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
  29302. -echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
  29303. -ac_ext=$ac_save_ext
  29304. -ac_test_FFLAGS=${FFLAGS+set}
  29305. -ac_save_FFLAGS=$FFLAGS
  29306. -FFLAGS=
  29307. -{ echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
  29308. -echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
  29309. -if test "${ac_cv_prog_f77_g+set}" = set; then
  29310. - echo $ECHO_N "(cached) $ECHO_C" >&6
  29311. -else
  29312. - FFLAGS=-g
  29313. -cat >conftest.$ac_ext <<_ACEOF
  29314. - program main
  29315. +_LT_EOF
  29316. + # Now generate the symbol file.
  29317. + eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  29318. - end
  29319. -_ACEOF
  29320. -rm -f conftest.$ac_objext
  29321. -if { (ac_try="$ac_compile"
  29322. -case "(($ac_try" in
  29323. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  29324. - *) ac_try_echo=$ac_try;;
  29325. -esac
  29326. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  29327. - (eval "$ac_compile") 2>conftest.er1
  29328. - ac_status=$?
  29329. - grep -v '^ *+' conftest.er1 >conftest.err
  29330. - rm -f conftest.er1
  29331. - cat conftest.err >&5
  29332. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29333. - (exit $ac_status); } &&
  29334. - { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
  29335. - { (case "(($ac_try" in
  29336. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  29337. - *) ac_try_echo=$ac_try;;
  29338. -esac
  29339. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  29340. - (eval "$ac_try") 2>&5
  29341. - ac_status=$?
  29342. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29343. - (exit $ac_status); }; } &&
  29344. - { ac_try='test -s conftest.$ac_objext'
  29345. - { (case "(($ac_try" in
  29346. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  29347. - *) ac_try_echo=$ac_try;;
  29348. -esac
  29349. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  29350. - (eval "$ac_try") 2>&5
  29351. - ac_status=$?
  29352. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29353. - (exit $ac_status); }; }; then
  29354. - ac_cv_prog_f77_g=yes
  29355. -else
  29356. - echo "$as_me: failed program was:" >&5
  29357. -sed 's/^/| /' conftest.$ac_ext >&5
  29358. + cat <<_LT_EOF >> conftest.$ac_ext
  29359. - ac_cv_prog_f77_g=no
  29360. -fi
  29361. +/* The mapping between symbol names and symbols. */
  29362. +const struct {
  29363. + const char *name;
  29364. + void *address;
  29365. +}
  29366. +lt__PROGRAM__LTX_preloaded_symbols[] =
  29367. +{
  29368. + { "@PROGRAM@", (void *) 0 },
  29369. +_LT_EOF
  29370. + $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  29371. + cat <<\_LT_EOF >> conftest.$ac_ext
  29372. + {0, (void *) 0}
  29373. +};
  29374. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  29375. +/* This works around a problem in FreeBSD linker */
  29376. +#ifdef FREEBSD_WORKAROUND
  29377. +static const void *lt_preloaded_setup() {
  29378. + return lt__PROGRAM__LTX_preloaded_symbols;
  29379. +}
  29380. +#endif
  29381. -fi
  29382. -{ echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
  29383. -echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
  29384. -if test "$ac_test_FFLAGS" = set; then
  29385. - FFLAGS=$ac_save_FFLAGS
  29386. -elif test $ac_cv_prog_f77_g = yes; then
  29387. - if test "x$ac_cv_f77_compiler_gnu" = xyes; then
  29388. - FFLAGS="-g -O2"
  29389. +#ifdef __cplusplus
  29390. +}
  29391. +#endif
  29392. +_LT_EOF
  29393. + # Now try linking the two files.
  29394. + mv conftest.$ac_objext conftstm.$ac_objext
  29395. + lt_save_LIBS="$LIBS"
  29396. + lt_save_CFLAGS="$CFLAGS"
  29397. + LIBS="conftstm.$ac_objext"
  29398. + CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  29399. + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  29400. + (eval $ac_link) 2>&5
  29401. + ac_status=$?
  29402. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  29403. + test $ac_status = 0; } && test -s conftest${ac_exeext}; then
  29404. + pipe_works=yes
  29405. + fi
  29406. + LIBS="$lt_save_LIBS"
  29407. + CFLAGS="$lt_save_CFLAGS"
  29408. + else
  29409. + echo "cannot find nm_test_func in $nlist" >&5
  29410. + fi
  29411. + else
  29412. + echo "cannot find nm_test_var in $nlist" >&5
  29413. + fi
  29414. + else
  29415. + echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  29416. + fi
  29417. else
  29418. - FFLAGS="-g"
  29419. + echo "$progname: failed program was:" >&5
  29420. + cat conftest.$ac_ext >&5
  29421. fi
  29422. -else
  29423. - if test "x$ac_cv_f77_compiler_gnu" = xyes; then
  29424. - FFLAGS="-O2"
  29425. + rm -rf conftest* conftst*
  29426. +
  29427. + # Do not use the global_symbol_pipe unless it works.
  29428. + if test "$pipe_works" = yes; then
  29429. + break
  29430. else
  29431. - FFLAGS=
  29432. + lt_cv_sys_global_symbol_pipe=
  29433. fi
  29434. +done
  29435. +
  29436. fi
  29437. -G77=`test $ac_compiler_gnu = yes && echo yes`
  29438. -ac_ext=c
  29439. -ac_cpp='$CPP $CPPFLAGS'
  29440. -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  29441. -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  29442. -ac_compiler_gnu=$ac_cv_c_compiler_gnu
  29443. +if test -z "$lt_cv_sys_global_symbol_pipe"; then
  29444. + lt_cv_sys_global_symbol_to_cdecl=
  29445. +fi
  29446. +if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  29447. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
  29448. +$as_echo "failed" >&6; }
  29449. +else
  29450. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  29451. +$as_echo "ok" >&6; }
  29452. +fi
  29453. -# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
  29454. -# find the maximum length of command line arguments
  29455. -{ echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
  29456. -echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
  29457. -if test "${lt_cv_sys_max_cmd_len+set}" = set; then
  29458. - echo $ECHO_N "(cached) $ECHO_C" >&6
  29459. -else
  29460. - i=0
  29461. - teststring="ABCD"
  29462. - case $build_os in
  29463. - msdosdjgpp*)
  29464. - # On DJGPP, this test can blow up pretty badly due to problems in libc
  29465. - # (any single argument exceeding 2000 bytes causes a buffer overrun
  29466. - # during glob expansion). Even if it were fixed, the result of this
  29467. - # check would be larger than it should be.
  29468. - lt_cv_sys_max_cmd_len=12288; # 12K is about right
  29469. - ;;
  29470. - gnu*)
  29471. - # Under GNU Hurd, this test is not required because there is
  29472. - # no limit to the length of command line arguments.
  29473. - # Libtool will interpret -1 as no limit whatsoever
  29474. - lt_cv_sys_max_cmd_len=-1;
  29475. - ;;
  29476. - cygwin* | mingw*)
  29477. - # On Win9x/ME, this test blows up -- it succeeds, but takes
  29478. - # about 5 minutes as the teststring grows exponentially.
  29479. - # Worse, since 9x/ME are not pre-emptively multitasking,
  29480. - # you end up with a "frozen" computer, even though with patience
  29481. - # the test eventually succeeds (with a max line length of 256k).
  29482. - # Instead, let's just punt: use the minimum linelength reported by
  29483. - # all of the supported platforms: 8192 (on NT/2K/XP).
  29484. - lt_cv_sys_max_cmd_len=8192;
  29485. - ;;
  29486. - amigaos*)
  29487. - # On AmigaOS with pdksh, this test takes hours, literally.
  29488. - # So we just punt and use a minimum line length of 8192.
  29489. - lt_cv_sys_max_cmd_len=8192;
  29490. - ;;
  29491. - netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  29492. - # This has been around since 386BSD, at least. Likely further.
  29493. - if test -x /sbin/sysctl; then
  29494. - lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  29495. - elif test -x /usr/sbin/sysctl; then
  29496. - lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  29497. - else
  29498. - lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  29499. - fi
  29500. - # And add a safety zone
  29501. - lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  29502. - lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  29503. - ;;
  29504. - interix*)
  29505. - # We know the value 262144 and hardcode it with a safety zone (like BSD)
  29506. - lt_cv_sys_max_cmd_len=196608
  29507. - ;;
  29508. - osf*)
  29509. - # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  29510. - # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  29511. - # nice to cause kernel panics so lets avoid the loop below.
  29512. - # First set a reasonable default.
  29513. - lt_cv_sys_max_cmd_len=16384
  29514. - #
  29515. - if test -x /sbin/sysconfig; then
  29516. - case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  29517. - *1*) lt_cv_sys_max_cmd_len=-1 ;;
  29518. - esac
  29519. - fi
  29520. - ;;
  29521. - sco3.2v5*)
  29522. - lt_cv_sys_max_cmd_len=102400
  29523. - ;;
  29524. - sysv5* | sco5v6* | sysv4.2uw2*)
  29525. - kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  29526. - if test -n "$kargmax"; then
  29527. - lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  29528. - else
  29529. - lt_cv_sys_max_cmd_len=32768
  29530. - fi
  29531. - ;;
  29532. - *)
  29533. - # If test is not a shell built-in, we'll probably end up computing a
  29534. - # maximum length that is only half of the actual maximum length, but
  29535. - # we can't tell.
  29536. - SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  29537. - while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
  29538. - = "XX$teststring") >/dev/null 2>&1 &&
  29539. - new_result=`expr "X$teststring" : ".*" 2>&1` &&
  29540. - lt_cv_sys_max_cmd_len=$new_result &&
  29541. - test $i != 17 # 1/2 MB should be enough
  29542. - do
  29543. - i=`expr $i + 1`
  29544. - teststring=$teststring$teststring
  29545. - done
  29546. - teststring=
  29547. - # Add a significant safety factor because C++ compilers can tack on massive
  29548. - # amounts of additional arguments before passing them to the linker.
  29549. - # It appears as though 1/2 is a usable value.
  29550. - lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  29551. - ;;
  29552. - esac
  29553. -fi
  29554. -if test -n $lt_cv_sys_max_cmd_len ; then
  29555. - { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
  29556. -echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
  29557. -else
  29558. - { echo "$as_me:$LINENO: result: none" >&5
  29559. -echo "${ECHO_T}none" >&6; }
  29560. -fi
  29561. -# Check for command to grab the raw symbol name followed by C symbol from nm.
  29562. -{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
  29563. -echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
  29564. -if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
  29565. - echo $ECHO_N "(cached) $ECHO_C" >&6
  29566. -else
  29567. -# These are sane defaults that work on at least a few old systems.
  29568. -# [They come from Ultrix. What could be older than Ultrix?!! ;)]
  29569. -# Character class describing NM global symbol codes.
  29570. -symcode='[BCDEGRST]'
  29571. -# Regexp to match symbols that can be accessed directly from C.
  29572. -sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  29573. -# Transform an extracted symbol line into a proper C declaration
  29574. -lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
  29575. -# Transform an extracted symbol line into symbol name and symbol address
  29576. -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'"
  29577. -# Define system-specific variables.
  29578. -case $host_os in
  29579. -aix*)
  29580. - symcode='[BCDT]'
  29581. - ;;
  29582. -cygwin* | mingw* | pw32*)
  29583. - symcode='[ABCDGISTW]'
  29584. - ;;
  29585. -hpux*) # Its linker distinguishes data from code symbols
  29586. - if test "$host_cpu" = ia64; then
  29587. - symcode='[ABCDEGRST]'
  29588. +# Check whether --enable-libtool-lock was given.
  29589. +if test "${enable_libtool_lock+set}" = set; then :
  29590. + enableval=$enable_libtool_lock;
  29591. +fi
  29592. +
  29593. +test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  29594. +
  29595. +# Some flags need to be propagated to the compiler or linker for good
  29596. +# libtool support.
  29597. +case $host in
  29598. +ia64-*-hpux*)
  29599. + # Find out which ABI we are using.
  29600. + echo 'int i;' > conftest.$ac_ext
  29601. + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  29602. + (eval $ac_compile) 2>&5
  29603. + ac_status=$?
  29604. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  29605. + test $ac_status = 0; }; then
  29606. + case `/usr/bin/file conftest.$ac_objext` in
  29607. + *ELF-32*)
  29608. + HPUX_IA64_MODE="32"
  29609. + ;;
  29610. + *ELF-64*)
  29611. + HPUX_IA64_MODE="64"
  29612. + ;;
  29613. + esac
  29614. fi
  29615. - lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  29616. - 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'"
  29617. + rm -rf conftest*
  29618. ;;
  29619. -linux*)
  29620. - if test "$host_cpu" = ia64; then
  29621. - symcode='[ABCDGIRSTW]'
  29622. - lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  29623. - 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'"
  29624. +*-*-irix6*)
  29625. + # Find out which ABI we are using.
  29626. + echo '#line 6184 "configure"' > conftest.$ac_ext
  29627. + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  29628. + (eval $ac_compile) 2>&5
  29629. + ac_status=$?
  29630. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  29631. + test $ac_status = 0; }; then
  29632. + if test "$lt_cv_prog_gnu_ld" = yes; then
  29633. + case `/usr/bin/file conftest.$ac_objext` in
  29634. + *32-bit*)
  29635. + LD="${LD-ld} -melf32bsmip"
  29636. + ;;
  29637. + *N32*)
  29638. + LD="${LD-ld} -melf32bmipn32"
  29639. + ;;
  29640. + *64-bit*)
  29641. + LD="${LD-ld} -melf64bmip"
  29642. + ;;
  29643. + esac
  29644. + else
  29645. + case `/usr/bin/file conftest.$ac_objext` in
  29646. + *32-bit*)
  29647. + LD="${LD-ld} -32"
  29648. + ;;
  29649. + *N32*)
  29650. + LD="${LD-ld} -n32"
  29651. + ;;
  29652. + *64-bit*)
  29653. + LD="${LD-ld} -64"
  29654. + ;;
  29655. + esac
  29656. + fi
  29657. fi
  29658. + rm -rf conftest*
  29659. ;;
  29660. -irix* | nonstopux*)
  29661. - symcode='[BCDEGRST]'
  29662. - ;;
  29663. -osf*)
  29664. - symcode='[BCDEGQRST]'
  29665. - ;;
  29666. -solaris*)
  29667. - symcode='[BDRT]'
  29668. - ;;
  29669. -sco3.2v5*)
  29670. - symcode='[DT]'
  29671. - ;;
  29672. -sysv4.2uw2*)
  29673. - symcode='[DT]'
  29674. - ;;
  29675. -sysv5* | sco5v6* | unixware* | OpenUNIX*)
  29676. - symcode='[ABDT]'
  29677. - ;;
  29678. -sysv4)
  29679. - symcode='[DFNSTU]'
  29680. - ;;
  29681. -esac
  29682. -
  29683. -# Handle CRLF in mingw tool chain
  29684. -opt_cr=
  29685. -case $build_os in
  29686. -mingw*)
  29687. - opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  29688. - ;;
  29689. -esac
  29690. -
  29691. -# If we're using GNU nm, then use its standard symbol codes.
  29692. -case `$NM -V 2>&1` in
  29693. -*GNU* | *'with BFD'*)
  29694. - symcode='[ABCDGIRSTW]' ;;
  29695. -esac
  29696. -
  29697. -# Try without a prefix undercore, then with it.
  29698. -for ac_symprfx in "" "_"; do
  29699. -
  29700. - # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  29701. - symxfrm="\\1 $ac_symprfx\\2 \\2"
  29702. -
  29703. - # Write the raw and C identifiers.
  29704. - lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  29705. -
  29706. - # Check to see that the pipe works correctly.
  29707. - pipe_works=no
  29708. -
  29709. - rm -f conftest*
  29710. - cat > conftest.$ac_ext <<EOF
  29711. -#ifdef __cplusplus
  29712. -extern "C" {
  29713. -#endif
  29714. -char nm_test_var;
  29715. -void nm_test_func(){}
  29716. -#ifdef __cplusplus
  29717. -}
  29718. -#endif
  29719. -int main(){nm_test_var='a';nm_test_func();return(0);}
  29720. -EOF
  29721. - if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  29722. +x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
  29723. +s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  29724. + # Find out which ABI we are using.
  29725. + echo 'int i;' > conftest.$ac_ext
  29726. + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  29727. (eval $ac_compile) 2>&5
  29728. ac_status=$?
  29729. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29730. - (exit $ac_status); }; then
  29731. - # Now try to grab the symbols.
  29732. - nlist=conftest.nm
  29733. - if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
  29734. - (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
  29735. - ac_status=$?
  29736. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29737. - (exit $ac_status); } && test -s "$nlist"; then
  29738. - # Try sorting and uniquifying the output.
  29739. - if sort "$nlist" | uniq > "$nlist"T; then
  29740. - mv -f "$nlist"T "$nlist"
  29741. - else
  29742. - rm -f "$nlist"T
  29743. - fi
  29744. -
  29745. - # Make sure that we snagged all the symbols we need.
  29746. - if grep ' nm_test_var$' "$nlist" >/dev/null; then
  29747. - if grep ' nm_test_func$' "$nlist" >/dev/null; then
  29748. - cat <<EOF > conftest.$ac_ext
  29749. -#ifdef __cplusplus
  29750. -extern "C" {
  29751. -#endif
  29752. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  29753. + test $ac_status = 0; }; then
  29754. + case `/usr/bin/file conftest.o` in
  29755. + *32-bit*)
  29756. + case $host in
  29757. + x86_64-*kfreebsd*-gnu)
  29758. + LD="${LD-ld} -m elf_i386_fbsd"
  29759. + ;;
  29760. + x86_64-*linux*)
  29761. + LD="${LD-ld} -m elf_i386"
  29762. + ;;
  29763. + ppc64-*linux*|powerpc64-*linux*)
  29764. + LD="${LD-ld} -m elf32ppclinux"
  29765. + ;;
  29766. + s390x-*linux*)
  29767. + LD="${LD-ld} -m elf_s390"
  29768. + ;;
  29769. + sparc64-*linux*)
  29770. + LD="${LD-ld} -m elf32_sparc"
  29771. + ;;
  29772. + esac
  29773. + ;;
  29774. + *64-bit*)
  29775. + case $host in
  29776. + x86_64-*kfreebsd*-gnu)
  29777. + LD="${LD-ld} -m elf_x86_64_fbsd"
  29778. + ;;
  29779. + x86_64-*linux*)
  29780. + LD="${LD-ld} -m elf_x86_64"
  29781. + ;;
  29782. + ppc*-*linux*|powerpc*-*linux*)
  29783. + LD="${LD-ld} -m elf64ppc"
  29784. + ;;
  29785. + s390*-*linux*|s390*-*tpf*)
  29786. + LD="${LD-ld} -m elf64_s390"
  29787. + ;;
  29788. + sparc*-*linux*)
  29789. + LD="${LD-ld} -m elf64_sparc"
  29790. + ;;
  29791. + esac
  29792. + ;;
  29793. + esac
  29794. + fi
  29795. + rm -rf conftest*
  29796. + ;;
  29797. -EOF
  29798. - # Now generate the symbol file.
  29799. - eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
  29800. +*-*-sco3.2v5*)
  29801. + # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  29802. + SAVE_CFLAGS="$CFLAGS"
  29803. + CFLAGS="$CFLAGS -belf"
  29804. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
  29805. +$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
  29806. +if test "${lt_cv_cc_needs_belf+set}" = set; then :
  29807. + $as_echo_n "(cached) " >&6
  29808. +else
  29809. + ac_ext=c
  29810. +ac_cpp='$CPP $CPPFLAGS'
  29811. +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  29812. +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  29813. +ac_compiler_gnu=$ac_cv_c_compiler_gnu
  29814. - cat <<EOF >> conftest.$ac_ext
  29815. -#if defined (__STDC__) && __STDC__
  29816. -# define lt_ptr_t void *
  29817. -#else
  29818. -# define lt_ptr_t char *
  29819. -# define const
  29820. -#endif
  29821. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  29822. +/* end confdefs.h. */
  29823. -/* The mapping between symbol names and symbols. */
  29824. -const struct {
  29825. - const char *name;
  29826. - lt_ptr_t address;
  29827. -}
  29828. -lt_preloaded_symbols[] =
  29829. +int
  29830. +main ()
  29831. {
  29832. -EOF
  29833. - $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
  29834. - cat <<\EOF >> conftest.$ac_ext
  29835. - {0, (lt_ptr_t) 0}
  29836. -};
  29837. -#ifdef __cplusplus
  29838. + ;
  29839. + return 0;
  29840. }
  29841. -#endif
  29842. -EOF
  29843. - # Now try linking the two files.
  29844. - mv conftest.$ac_objext conftstm.$ac_objext
  29845. - lt_save_LIBS="$LIBS"
  29846. - lt_save_CFLAGS="$CFLAGS"
  29847. - LIBS="conftstm.$ac_objext"
  29848. - CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  29849. - if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  29850. - (eval $ac_link) 2>&5
  29851. - ac_status=$?
  29852. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29853. - (exit $ac_status); } && test -s conftest${ac_exeext}; then
  29854. - pipe_works=yes
  29855. - fi
  29856. - LIBS="$lt_save_LIBS"
  29857. - CFLAGS="$lt_save_CFLAGS"
  29858. - else
  29859. - echo "cannot find nm_test_func in $nlist" >&5
  29860. - fi
  29861. - else
  29862. - echo "cannot find nm_test_var in $nlist" >&5
  29863. - fi
  29864. - else
  29865. - echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  29866. - fi
  29867. - else
  29868. - echo "$progname: failed program was:" >&5
  29869. - cat conftest.$ac_ext >&5
  29870. - fi
  29871. - rm -f conftest* conftst*
  29872. -
  29873. - # Do not use the global_symbol_pipe unless it works.
  29874. - if test "$pipe_works" = yes; then
  29875. - break
  29876. - else
  29877. - lt_cv_sys_global_symbol_pipe=
  29878. - fi
  29879. -done
  29880. -
  29881. -fi
  29882. -
  29883. -if test -z "$lt_cv_sys_global_symbol_pipe"; then
  29884. - lt_cv_sys_global_symbol_to_cdecl=
  29885. -fi
  29886. -if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  29887. - { echo "$as_me:$LINENO: result: failed" >&5
  29888. -echo "${ECHO_T}failed" >&6; }
  29889. +_ACEOF
  29890. +if ac_fn_c_try_link "$LINENO"; then :
  29891. + lt_cv_cc_needs_belf=yes
  29892. else
  29893. - { echo "$as_me:$LINENO: result: ok" >&5
  29894. -echo "${ECHO_T}ok" >&6; }
  29895. + lt_cv_cc_needs_belf=no
  29896. fi
  29897. +rm -f core conftest.err conftest.$ac_objext \
  29898. + conftest$ac_exeext conftest.$ac_ext
  29899. + ac_ext=c
  29900. +ac_cpp='$CPP $CPPFLAGS'
  29901. +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  29902. +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  29903. +ac_compiler_gnu=$ac_cv_c_compiler_gnu
  29904. -{ echo "$as_me:$LINENO: checking for objdir" >&5
  29905. -echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
  29906. -if test "${lt_cv_objdir+set}" = set; then
  29907. - echo $ECHO_N "(cached) $ECHO_C" >&6
  29908. -else
  29909. - rm -f .libs 2>/dev/null
  29910. -mkdir .libs 2>/dev/null
  29911. -if test -d .libs; then
  29912. - lt_cv_objdir=.libs
  29913. -else
  29914. - # MS-DOS does not allow filenames that begin with a dot.
  29915. - lt_cv_objdir=_libs
  29916. -fi
  29917. -rmdir .libs 2>/dev/null
  29918. fi
  29919. -{ echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
  29920. -echo "${ECHO_T}$lt_cv_objdir" >&6; }
  29921. -objdir=$lt_cv_objdir
  29922. -
  29923. -
  29924. -
  29925. -
  29926. -
  29927. -case $host_os in
  29928. -aix3*)
  29929. - # AIX sometimes has problems with the GCC collect2 program. For some
  29930. - # reason, if we set the COLLECT_NAMES environment variable, the problems
  29931. - # vanish in a puff of smoke.
  29932. - if test "X${COLLECT_NAMES+set}" != Xset; then
  29933. - COLLECT_NAMES=
  29934. - export COLLECT_NAMES
  29935. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
  29936. +$as_echo "$lt_cv_cc_needs_belf" >&6; }
  29937. + if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  29938. + # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  29939. + CFLAGS="$SAVE_CFLAGS"
  29940. + fi
  29941. + ;;
  29942. +sparc*-*solaris*)
  29943. + # Find out which ABI we are using.
  29944. + echo 'int i;' > conftest.$ac_ext
  29945. + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  29946. + (eval $ac_compile) 2>&5
  29947. + ac_status=$?
  29948. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  29949. + test $ac_status = 0; }; then
  29950. + case `/usr/bin/file conftest.o` in
  29951. + *64-bit*)
  29952. + case $lt_cv_prog_gnu_ld in
  29953. + yes*) LD="${LD-ld} -m elf64_sparc" ;;
  29954. + *)
  29955. + if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  29956. + LD="${LD-ld} -64"
  29957. + fi
  29958. + ;;
  29959. + esac
  29960. + ;;
  29961. + esac
  29962. fi
  29963. + rm -rf conftest*
  29964. ;;
  29965. esac
  29966. -# Sed substitution that helps us do robust quoting. It backslashifies
  29967. -# metacharacters that are still active within double-quoted strings.
  29968. -Xsed='sed -e 1s/^X//'
  29969. -sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
  29970. -
  29971. -# Same as above, but do not quote variable references.
  29972. -double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
  29973. -
  29974. -# Sed substitution to delay expansion of an escaped shell variable in a
  29975. -# double_quote_subst'ed string.
  29976. -delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  29977. -
  29978. -# Sed substitution to avoid accidental globbing in evaled expressions
  29979. -no_glob_subst='s/\*/\\\*/g'
  29980. -
  29981. -# Constants:
  29982. -rm="rm -f"
  29983. -
  29984. -# Global variables:
  29985. -default_ofile=libtool
  29986. -can_build_shared=yes
  29987. +need_locks="$enable_libtool_lock"
  29988. -# All known linkers require a `.a' archive for static linking (except MSVC,
  29989. -# which needs '.lib').
  29990. -libext=a
  29991. -ltmain="$ac_aux_dir/ltmain.sh"
  29992. -ofile="$default_ofile"
  29993. -with_gnu_ld="$lt_cv_prog_gnu_ld"
  29994. -if test -n "$ac_tool_prefix"; then
  29995. - # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
  29996. -set dummy ${ac_tool_prefix}ar; ac_word=$2
  29997. -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
  29998. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  29999. -if test "${ac_cv_prog_AR+set}" = set; then
  30000. - echo $ECHO_N "(cached) $ECHO_C" >&6
  30001. + case $host_os in
  30002. + rhapsody* | darwin*)
  30003. + if test -n "$ac_tool_prefix"; then
  30004. + # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  30005. +set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  30006. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  30007. +$as_echo_n "checking for $ac_word... " >&6; }
  30008. +if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
  30009. + $as_echo_n "(cached) " >&6
  30010. else
  30011. - if test -n "$AR"; then
  30012. - ac_cv_prog_AR="$AR" # Let the user override the test.
  30013. + if test -n "$DSYMUTIL"; then
  30014. + ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  30015. else
  30016. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  30017. for as_dir in $PATH
  30018. do
  30019. IFS=$as_save_IFS
  30020. test -z "$as_dir" && as_dir=.
  30021. - for ac_exec_ext in '' $ac_executable_extensions; do
  30022. - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
  30023. - ac_cv_prog_AR="${ac_tool_prefix}ar"
  30024. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  30025. + for ac_exec_ext in '' $ac_executable_extensions; do
  30026. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  30027. + ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  30028. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  30029. break 2
  30030. fi
  30031. done
  30032. -done
  30033. + done
  30034. IFS=$as_save_IFS
  30035. fi
  30036. fi
  30037. -AR=$ac_cv_prog_AR
  30038. -if test -n "$AR"; then
  30039. - { echo "$as_me:$LINENO: result: $AR" >&5
  30040. -echo "${ECHO_T}$AR" >&6; }
  30041. +DSYMUTIL=$ac_cv_prog_DSYMUTIL
  30042. +if test -n "$DSYMUTIL"; then
  30043. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
  30044. +$as_echo "$DSYMUTIL" >&6; }
  30045. else
  30046. - { echo "$as_me:$LINENO: result: no" >&5
  30047. -echo "${ECHO_T}no" >&6; }
  30048. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  30049. +$as_echo "no" >&6; }
  30050. fi
  30051. fi
  30052. -if test -z "$ac_cv_prog_AR"; then
  30053. - ac_ct_AR=$AR
  30054. - # Extract the first word of "ar", so it can be a program name with args.
  30055. -set dummy ar; ac_word=$2
  30056. -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
  30057. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  30058. -if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
  30059. - echo $ECHO_N "(cached) $ECHO_C" >&6
  30060. +if test -z "$ac_cv_prog_DSYMUTIL"; then
  30061. + ac_ct_DSYMUTIL=$DSYMUTIL
  30062. + # Extract the first word of "dsymutil", so it can be a program name with args.
  30063. +set dummy dsymutil; ac_word=$2
  30064. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  30065. +$as_echo_n "checking for $ac_word... " >&6; }
  30066. +if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
  30067. + $as_echo_n "(cached) " >&6
  30068. else
  30069. - if test -n "$ac_ct_AR"; then
  30070. - ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  30071. + if test -n "$ac_ct_DSYMUTIL"; then
  30072. + ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  30073. else
  30074. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  30075. for as_dir in $PATH
  30076. do
  30077. IFS=$as_save_IFS
  30078. test -z "$as_dir" && as_dir=.
  30079. - for ac_exec_ext in '' $ac_executable_extensions; do
  30080. - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
  30081. - ac_cv_prog_ac_ct_AR="ar"
  30082. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  30083. + for ac_exec_ext in '' $ac_executable_extensions; do
  30084. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  30085. + ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  30086. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  30087. break 2
  30088. fi
  30089. done
  30090. -done
  30091. + done
  30092. IFS=$as_save_IFS
  30093. fi
  30094. fi
  30095. -ac_ct_AR=$ac_cv_prog_ac_ct_AR
  30096. -if test -n "$ac_ct_AR"; then
  30097. - { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
  30098. -echo "${ECHO_T}$ac_ct_AR" >&6; }
  30099. +ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  30100. +if test -n "$ac_ct_DSYMUTIL"; then
  30101. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
  30102. +$as_echo "$ac_ct_DSYMUTIL" >&6; }
  30103. else
  30104. - { echo "$as_me:$LINENO: result: no" >&5
  30105. -echo "${ECHO_T}no" >&6; }
  30106. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  30107. +$as_echo "no" >&6; }
  30108. fi
  30109. - if test "x$ac_ct_AR" = x; then
  30110. - AR="false"
  30111. + if test "x$ac_ct_DSYMUTIL" = x; then
  30112. + DSYMUTIL=":"
  30113. else
  30114. case $cross_compiling:$ac_tool_warned in
  30115. yes:)
  30116. -{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  30117. -whose name does not start with the host triplet. If you think this
  30118. -configuration is useful to you, please write to autoconf@gnu.org." >&5
  30119. -echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  30120. -whose name does not start with the host triplet. If you think this
  30121. -configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  30122. +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  30123. +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  30124. ac_tool_warned=yes ;;
  30125. esac
  30126. - AR=$ac_ct_AR
  30127. + DSYMUTIL=$ac_ct_DSYMUTIL
  30128. fi
  30129. else
  30130. - AR="$ac_cv_prog_AR"
  30131. + DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  30132. fi
  30133. -if test -n "$ac_tool_prefix"; then
  30134. - # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  30135. -set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  30136. -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
  30137. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  30138. -if test "${ac_cv_prog_RANLIB+set}" = set; then
  30139. - echo $ECHO_N "(cached) $ECHO_C" >&6
  30140. + if test -n "$ac_tool_prefix"; then
  30141. + # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  30142. +set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  30143. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  30144. +$as_echo_n "checking for $ac_word... " >&6; }
  30145. +if test "${ac_cv_prog_NMEDIT+set}" = set; then :
  30146. + $as_echo_n "(cached) " >&6
  30147. else
  30148. - if test -n "$RANLIB"; then
  30149. - ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  30150. + if test -n "$NMEDIT"; then
  30151. + ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  30152. else
  30153. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  30154. for as_dir in $PATH
  30155. do
  30156. IFS=$as_save_IFS
  30157. test -z "$as_dir" && as_dir=.
  30158. - for ac_exec_ext in '' $ac_executable_extensions; do
  30159. - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
  30160. - ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  30161. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  30162. + for ac_exec_ext in '' $ac_executable_extensions; do
  30163. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  30164. + ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  30165. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  30166. break 2
  30167. fi
  30168. done
  30169. -done
  30170. + done
  30171. IFS=$as_save_IFS
  30172. fi
  30173. fi
  30174. -RANLIB=$ac_cv_prog_RANLIB
  30175. -if test -n "$RANLIB"; then
  30176. - { echo "$as_me:$LINENO: result: $RANLIB" >&5
  30177. -echo "${ECHO_T}$RANLIB" >&6; }
  30178. +NMEDIT=$ac_cv_prog_NMEDIT
  30179. +if test -n "$NMEDIT"; then
  30180. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
  30181. +$as_echo "$NMEDIT" >&6; }
  30182. else
  30183. - { echo "$as_me:$LINENO: result: no" >&5
  30184. -echo "${ECHO_T}no" >&6; }
  30185. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  30186. +$as_echo "no" >&6; }
  30187. fi
  30188. fi
  30189. -if test -z "$ac_cv_prog_RANLIB"; then
  30190. - ac_ct_RANLIB=$RANLIB
  30191. - # Extract the first word of "ranlib", so it can be a program name with args.
  30192. -set dummy ranlib; ac_word=$2
  30193. -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
  30194. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  30195. -if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
  30196. - echo $ECHO_N "(cached) $ECHO_C" >&6
  30197. +if test -z "$ac_cv_prog_NMEDIT"; then
  30198. + ac_ct_NMEDIT=$NMEDIT
  30199. + # Extract the first word of "nmedit", so it can be a program name with args.
  30200. +set dummy nmedit; ac_word=$2
  30201. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  30202. +$as_echo_n "checking for $ac_word... " >&6; }
  30203. +if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
  30204. + $as_echo_n "(cached) " >&6
  30205. else
  30206. - if test -n "$ac_ct_RANLIB"; then
  30207. - ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  30208. + if test -n "$ac_ct_NMEDIT"; then
  30209. + ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  30210. else
  30211. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  30212. for as_dir in $PATH
  30213. do
  30214. IFS=$as_save_IFS
  30215. test -z "$as_dir" && as_dir=.
  30216. - for ac_exec_ext in '' $ac_executable_extensions; do
  30217. - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
  30218. - ac_cv_prog_ac_ct_RANLIB="ranlib"
  30219. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  30220. + for ac_exec_ext in '' $ac_executable_extensions; do
  30221. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  30222. + ac_cv_prog_ac_ct_NMEDIT="nmedit"
  30223. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  30224. break 2
  30225. fi
  30226. done
  30227. -done
  30228. + done
  30229. IFS=$as_save_IFS
  30230. fi
  30231. fi
  30232. -ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  30233. -if test -n "$ac_ct_RANLIB"; then
  30234. - { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
  30235. -echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
  30236. +ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  30237. +if test -n "$ac_ct_NMEDIT"; then
  30238. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
  30239. +$as_echo "$ac_ct_NMEDIT" >&6; }
  30240. else
  30241. - { echo "$as_me:$LINENO: result: no" >&5
  30242. -echo "${ECHO_T}no" >&6; }
  30243. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  30244. +$as_echo "no" >&6; }
  30245. fi
  30246. - if test "x$ac_ct_RANLIB" = x; then
  30247. - RANLIB=":"
  30248. + if test "x$ac_ct_NMEDIT" = x; then
  30249. + NMEDIT=":"
  30250. else
  30251. case $cross_compiling:$ac_tool_warned in
  30252. yes:)
  30253. -{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  30254. -whose name does not start with the host triplet. If you think this
  30255. -configuration is useful to you, please write to autoconf@gnu.org." >&5
  30256. -echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  30257. -whose name does not start with the host triplet. If you think this
  30258. -configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  30259. +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  30260. +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  30261. ac_tool_warned=yes ;;
  30262. esac
  30263. - RANLIB=$ac_ct_RANLIB
  30264. + NMEDIT=$ac_ct_NMEDIT
  30265. fi
  30266. else
  30267. - RANLIB="$ac_cv_prog_RANLIB"
  30268. + NMEDIT="$ac_cv_prog_NMEDIT"
  30269. fi
  30270. -if test -n "$ac_tool_prefix"; then
  30271. - # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  30272. -set dummy ${ac_tool_prefix}strip; ac_word=$2
  30273. -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
  30274. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  30275. -if test "${ac_cv_prog_STRIP+set}" = set; then
  30276. - echo $ECHO_N "(cached) $ECHO_C" >&6
  30277. + if test -n "$ac_tool_prefix"; then
  30278. + # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
  30279. +set dummy ${ac_tool_prefix}lipo; ac_word=$2
  30280. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  30281. +$as_echo_n "checking for $ac_word... " >&6; }
  30282. +if test "${ac_cv_prog_LIPO+set}" = set; then :
  30283. + $as_echo_n "(cached) " >&6
  30284. else
  30285. - if test -n "$STRIP"; then
  30286. - ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  30287. + if test -n "$LIPO"; then
  30288. + ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  30289. else
  30290. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  30291. for as_dir in $PATH
  30292. do
  30293. IFS=$as_save_IFS
  30294. test -z "$as_dir" && as_dir=.
  30295. - for ac_exec_ext in '' $ac_executable_extensions; do
  30296. - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
  30297. - ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  30298. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  30299. + for ac_exec_ext in '' $ac_executable_extensions; do
  30300. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  30301. + ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
  30302. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  30303. break 2
  30304. fi
  30305. done
  30306. -done
  30307. + done
  30308. IFS=$as_save_IFS
  30309. fi
  30310. fi
  30311. -STRIP=$ac_cv_prog_STRIP
  30312. -if test -n "$STRIP"; then
  30313. - { echo "$as_me:$LINENO: result: $STRIP" >&5
  30314. -echo "${ECHO_T}$STRIP" >&6; }
  30315. +LIPO=$ac_cv_prog_LIPO
  30316. +if test -n "$LIPO"; then
  30317. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
  30318. +$as_echo "$LIPO" >&6; }
  30319. else
  30320. - { echo "$as_me:$LINENO: result: no" >&5
  30321. -echo "${ECHO_T}no" >&6; }
  30322. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  30323. +$as_echo "no" >&6; }
  30324. fi
  30325. fi
  30326. -if test -z "$ac_cv_prog_STRIP"; then
  30327. - ac_ct_STRIP=$STRIP
  30328. - # Extract the first word of "strip", so it can be a program name with args.
  30329. -set dummy strip; ac_word=$2
  30330. -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
  30331. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  30332. -if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
  30333. - echo $ECHO_N "(cached) $ECHO_C" >&6
  30334. +if test -z "$ac_cv_prog_LIPO"; then
  30335. + ac_ct_LIPO=$LIPO
  30336. + # Extract the first word of "lipo", so it can be a program name with args.
  30337. +set dummy lipo; ac_word=$2
  30338. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  30339. +$as_echo_n "checking for $ac_word... " >&6; }
  30340. +if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
  30341. + $as_echo_n "(cached) " >&6
  30342. else
  30343. - if test -n "$ac_ct_STRIP"; then
  30344. - ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  30345. + if test -n "$ac_ct_LIPO"; then
  30346. + ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
  30347. else
  30348. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  30349. for as_dir in $PATH
  30350. do
  30351. IFS=$as_save_IFS
  30352. test -z "$as_dir" && as_dir=.
  30353. - for ac_exec_ext in '' $ac_executable_extensions; do
  30354. - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
  30355. - ac_cv_prog_ac_ct_STRIP="strip"
  30356. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  30357. + for ac_exec_ext in '' $ac_executable_extensions; do
  30358. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  30359. + ac_cv_prog_ac_ct_LIPO="lipo"
  30360. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  30361. break 2
  30362. fi
  30363. done
  30364. -done
  30365. + done
  30366. IFS=$as_save_IFS
  30367. fi
  30368. fi
  30369. -ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  30370. -if test -n "$ac_ct_STRIP"; then
  30371. - { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
  30372. -echo "${ECHO_T}$ac_ct_STRIP" >&6; }
  30373. +ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
  30374. +if test -n "$ac_ct_LIPO"; then
  30375. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
  30376. +$as_echo "$ac_ct_LIPO" >&6; }
  30377. else
  30378. - { echo "$as_me:$LINENO: result: no" >&5
  30379. -echo "${ECHO_T}no" >&6; }
  30380. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  30381. +$as_echo "no" >&6; }
  30382. fi
  30383. - if test "x$ac_ct_STRIP" = x; then
  30384. - STRIP=":"
  30385. + if test "x$ac_ct_LIPO" = x; then
  30386. + LIPO=":"
  30387. else
  30388. case $cross_compiling:$ac_tool_warned in
  30389. yes:)
  30390. -{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  30391. -whose name does not start with the host triplet. If you think this
  30392. -configuration is useful to you, please write to autoconf@gnu.org." >&5
  30393. -echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  30394. -whose name does not start with the host triplet. If you think this
  30395. -configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  30396. +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  30397. +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  30398. ac_tool_warned=yes ;;
  30399. esac
  30400. - STRIP=$ac_ct_STRIP
  30401. + LIPO=$ac_ct_LIPO
  30402. fi
  30403. else
  30404. - STRIP="$ac_cv_prog_STRIP"
  30405. -fi
  30406. -
  30407. -
  30408. -old_CC="$CC"
  30409. -old_CFLAGS="$CFLAGS"
  30410. -
  30411. -# Set sane defaults for various variables
  30412. -test -z "$AR" && AR=ar
  30413. -test -z "$AR_FLAGS" && AR_FLAGS=cru
  30414. -test -z "$AS" && AS=as
  30415. -test -z "$CC" && CC=cc
  30416. -test -z "$LTCC" && LTCC=$CC
  30417. -test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  30418. -test -z "$DLLTOOL" && DLLTOOL=dlltool
  30419. -test -z "$LD" && LD=ld
  30420. -test -z "$LN_S" && LN_S="ln -s"
  30421. -test -z "$MAGIC_CMD" && MAGIC_CMD=file
  30422. -test -z "$NM" && NM=nm
  30423. -test -z "$SED" && SED=sed
  30424. -test -z "$OBJDUMP" && OBJDUMP=objdump
  30425. -test -z "$RANLIB" && RANLIB=:
  30426. -test -z "$STRIP" && STRIP=:
  30427. -test -z "$ac_objext" && ac_objext=o
  30428. -
  30429. -# Determine commands to create old-style static archives.
  30430. -old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
  30431. -old_postinstall_cmds='chmod 644 $oldlib'
  30432. -old_postuninstall_cmds=
  30433. -
  30434. -if test -n "$RANLIB"; then
  30435. - case $host_os in
  30436. - openbsd*)
  30437. - old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
  30438. - ;;
  30439. - *)
  30440. - old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
  30441. - ;;
  30442. - esac
  30443. - old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
  30444. + LIPO="$ac_cv_prog_LIPO"
  30445. fi
  30446. -for cc_temp in $compiler""; do
  30447. - case $cc_temp in
  30448. - compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  30449. - distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  30450. - \-*) ;;
  30451. - *) break;;
  30452. - esac
  30453. + if test -n "$ac_tool_prefix"; then
  30454. + # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
  30455. +set dummy ${ac_tool_prefix}otool; ac_word=$2
  30456. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  30457. +$as_echo_n "checking for $ac_word... " >&6; }
  30458. +if test "${ac_cv_prog_OTOOL+set}" = set; then :
  30459. + $as_echo_n "(cached) " >&6
  30460. +else
  30461. + if test -n "$OTOOL"; then
  30462. + ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
  30463. +else
  30464. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  30465. +for as_dir in $PATH
  30466. +do
  30467. + IFS=$as_save_IFS
  30468. + test -z "$as_dir" && as_dir=.
  30469. + for ac_exec_ext in '' $ac_executable_extensions; do
  30470. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  30471. + ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
  30472. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  30473. + break 2
  30474. + fi
  30475. done
  30476. -cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  30477. -
  30478. + done
  30479. +IFS=$as_save_IFS
  30480. -# Only perform the check for file, if the check method requires it
  30481. -case $deplibs_check_method in
  30482. -file_magic*)
  30483. - if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  30484. - { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
  30485. -echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
  30486. -if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
  30487. - echo $ECHO_N "(cached) $ECHO_C" >&6
  30488. +fi
  30489. +fi
  30490. +OTOOL=$ac_cv_prog_OTOOL
  30491. +if test -n "$OTOOL"; then
  30492. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
  30493. +$as_echo "$OTOOL" >&6; }
  30494. else
  30495. - case $MAGIC_CMD in
  30496. -[\\/*] | ?:[\\/]*)
  30497. - lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  30498. - ;;
  30499. -*)
  30500. - lt_save_MAGIC_CMD="$MAGIC_CMD"
  30501. - lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  30502. - ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  30503. - for ac_dir in $ac_dummy; do
  30504. - IFS="$lt_save_ifs"
  30505. - test -z "$ac_dir" && ac_dir=.
  30506. - if test -f $ac_dir/${ac_tool_prefix}file; then
  30507. - lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
  30508. - if test -n "$file_magic_test_file"; then
  30509. - case $deplibs_check_method in
  30510. - "file_magic "*)
  30511. - file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  30512. - MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  30513. - if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  30514. - $EGREP "$file_magic_regex" > /dev/null; then
  30515. - :
  30516. - else
  30517. - cat <<EOF 1>&2
  30518. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  30519. +$as_echo "no" >&6; }
  30520. +fi
  30521. -*** Warning: the command libtool uses to detect shared libraries,
  30522. -*** $file_magic_cmd, produces output that libtool cannot recognize.
  30523. -*** The result is that libtool may fail to recognize shared libraries
  30524. -*** as such. This will affect the creation of libtool libraries that
  30525. -*** depend on shared libraries, but programs linked with such libtool
  30526. -*** libraries will work regardless of this problem. Nevertheless, you
  30527. -*** may want to report the problem to your system manager and/or to
  30528. -*** bug-libtool@gnu.org
  30529. -EOF
  30530. - fi ;;
  30531. - esac
  30532. - fi
  30533. - break
  30534. - fi
  30535. - done
  30536. - IFS="$lt_save_ifs"
  30537. - MAGIC_CMD="$lt_save_MAGIC_CMD"
  30538. - ;;
  30539. -esac
  30540. fi
  30541. -
  30542. -MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  30543. -if test -n "$MAGIC_CMD"; then
  30544. - { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
  30545. -echo "${ECHO_T}$MAGIC_CMD" >&6; }
  30546. +if test -z "$ac_cv_prog_OTOOL"; then
  30547. + ac_ct_OTOOL=$OTOOL
  30548. + # Extract the first word of "otool", so it can be a program name with args.
  30549. +set dummy otool; ac_word=$2
  30550. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  30551. +$as_echo_n "checking for $ac_word... " >&6; }
  30552. +if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
  30553. + $as_echo_n "(cached) " >&6
  30554. else
  30555. - { echo "$as_me:$LINENO: result: no" >&5
  30556. -echo "${ECHO_T}no" >&6; }
  30557. -fi
  30558. -
  30559. -if test -z "$lt_cv_path_MAGIC_CMD"; then
  30560. - if test -n "$ac_tool_prefix"; then
  30561. - { echo "$as_me:$LINENO: checking for file" >&5
  30562. -echo $ECHO_N "checking for file... $ECHO_C" >&6; }
  30563. -if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
  30564. - echo $ECHO_N "(cached) $ECHO_C" >&6
  30565. + if test -n "$ac_ct_OTOOL"; then
  30566. + ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
  30567. else
  30568. - case $MAGIC_CMD in
  30569. -[\\/*] | ?:[\\/]*)
  30570. - lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  30571. - ;;
  30572. -*)
  30573. - lt_save_MAGIC_CMD="$MAGIC_CMD"
  30574. - lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  30575. - ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  30576. - for ac_dir in $ac_dummy; do
  30577. - IFS="$lt_save_ifs"
  30578. - test -z "$ac_dir" && ac_dir=.
  30579. - if test -f $ac_dir/file; then
  30580. - lt_cv_path_MAGIC_CMD="$ac_dir/file"
  30581. - if test -n "$file_magic_test_file"; then
  30582. - case $deplibs_check_method in
  30583. - "file_magic "*)
  30584. - file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  30585. - MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  30586. - if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  30587. - $EGREP "$file_magic_regex" > /dev/null; then
  30588. - :
  30589. - else
  30590. - cat <<EOF 1>&2
  30591. -
  30592. -*** Warning: the command libtool uses to detect shared libraries,
  30593. -*** $file_magic_cmd, produces output that libtool cannot recognize.
  30594. -*** The result is that libtool may fail to recognize shared libraries
  30595. -*** as such. This will affect the creation of libtool libraries that
  30596. -*** depend on shared libraries, but programs linked with such libtool
  30597. -*** libraries will work regardless of this problem. Nevertheless, you
  30598. -*** may want to report the problem to your system manager and/or to
  30599. -*** bug-libtool@gnu.org
  30600. -
  30601. -EOF
  30602. - fi ;;
  30603. - esac
  30604. - fi
  30605. - break
  30606. - fi
  30607. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  30608. +for as_dir in $PATH
  30609. +do
  30610. + IFS=$as_save_IFS
  30611. + test -z "$as_dir" && as_dir=.
  30612. + for ac_exec_ext in '' $ac_executable_extensions; do
  30613. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  30614. + ac_cv_prog_ac_ct_OTOOL="otool"
  30615. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  30616. + break 2
  30617. + fi
  30618. +done
  30619. done
  30620. - IFS="$lt_save_ifs"
  30621. - MAGIC_CMD="$lt_save_MAGIC_CMD"
  30622. - ;;
  30623. -esac
  30624. -fi
  30625. +IFS=$as_save_IFS
  30626. -MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  30627. -if test -n "$MAGIC_CMD"; then
  30628. - { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
  30629. -echo "${ECHO_T}$MAGIC_CMD" >&6; }
  30630. +fi
  30631. +fi
  30632. +ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
  30633. +if test -n "$ac_ct_OTOOL"; then
  30634. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
  30635. +$as_echo "$ac_ct_OTOOL" >&6; }
  30636. else
  30637. - { echo "$as_me:$LINENO: result: no" >&5
  30638. -echo "${ECHO_T}no" >&6; }
  30639. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  30640. +$as_echo "no" >&6; }
  30641. fi
  30642. + if test "x$ac_ct_OTOOL" = x; then
  30643. + OTOOL=":"
  30644. else
  30645. - MAGIC_CMD=:
  30646. - fi
  30647. -fi
  30648. -
  30649. - fi
  30650. - ;;
  30651. + case $cross_compiling:$ac_tool_warned in
  30652. +yes:)
  30653. +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  30654. +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  30655. +ac_tool_warned=yes ;;
  30656. esac
  30657. -
  30658. -enable_dlopen=no
  30659. -enable_win32_dll=no
  30660. -
  30661. -# Check whether --enable-libtool-lock was given.
  30662. -if test "${enable_libtool_lock+set}" = set; then
  30663. - enableval=$enable_libtool_lock;
  30664. + OTOOL=$ac_ct_OTOOL
  30665. + fi
  30666. +else
  30667. + OTOOL="$ac_cv_prog_OTOOL"
  30668. fi
  30669. -test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  30670. -
  30671. + if test -n "$ac_tool_prefix"; then
  30672. + # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
  30673. +set dummy ${ac_tool_prefix}otool64; ac_word=$2
  30674. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  30675. +$as_echo_n "checking for $ac_word... " >&6; }
  30676. +if test "${ac_cv_prog_OTOOL64+set}" = set; then :
  30677. + $as_echo_n "(cached) " >&6
  30678. +else
  30679. + if test -n "$OTOOL64"; then
  30680. + ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
  30681. +else
  30682. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  30683. +for as_dir in $PATH
  30684. +do
  30685. + IFS=$as_save_IFS
  30686. + test -z "$as_dir" && as_dir=.
  30687. + for ac_exec_ext in '' $ac_executable_extensions; do
  30688. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  30689. + ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
  30690. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  30691. + break 2
  30692. + fi
  30693. +done
  30694. + done
  30695. +IFS=$as_save_IFS
  30696. -# Check whether --with-pic was given.
  30697. -if test "${with_pic+set}" = set; then
  30698. - withval=$with_pic; pic_mode="$withval"
  30699. +fi
  30700. +fi
  30701. +OTOOL64=$ac_cv_prog_OTOOL64
  30702. +if test -n "$OTOOL64"; then
  30703. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
  30704. +$as_echo "$OTOOL64" >&6; }
  30705. else
  30706. - pic_mode=default
  30707. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  30708. +$as_echo "no" >&6; }
  30709. fi
  30710. -test -z "$pic_mode" && pic_mode=default
  30711. -
  30712. -# Use C for the default configuration in the libtool script
  30713. -tagname=
  30714. -lt_save_CC="$CC"
  30715. -ac_ext=c
  30716. -ac_cpp='$CPP $CPPFLAGS'
  30717. -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  30718. -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  30719. -ac_compiler_gnu=$ac_cv_c_compiler_gnu
  30720. +fi
  30721. +if test -z "$ac_cv_prog_OTOOL64"; then
  30722. + ac_ct_OTOOL64=$OTOOL64
  30723. + # Extract the first word of "otool64", so it can be a program name with args.
  30724. +set dummy otool64; ac_word=$2
  30725. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  30726. +$as_echo_n "checking for $ac_word... " >&6; }
  30727. +if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
  30728. + $as_echo_n "(cached) " >&6
  30729. +else
  30730. + if test -n "$ac_ct_OTOOL64"; then
  30731. + ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
  30732. +else
  30733. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  30734. +for as_dir in $PATH
  30735. +do
  30736. + IFS=$as_save_IFS
  30737. + test -z "$as_dir" && as_dir=.
  30738. + for ac_exec_ext in '' $ac_executable_extensions; do
  30739. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  30740. + ac_cv_prog_ac_ct_OTOOL64="otool64"
  30741. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  30742. + break 2
  30743. + fi
  30744. +done
  30745. + done
  30746. +IFS=$as_save_IFS
  30747. -# Source file extension for C test sources.
  30748. -ac_ext=c
  30749. +fi
  30750. +fi
  30751. +ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
  30752. +if test -n "$ac_ct_OTOOL64"; then
  30753. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
  30754. +$as_echo "$ac_ct_OTOOL64" >&6; }
  30755. +else
  30756. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  30757. +$as_echo "no" >&6; }
  30758. +fi
  30759. -# Object file extension for compiled C test sources.
  30760. -objext=o
  30761. -objext=$objext
  30762. + if test "x$ac_ct_OTOOL64" = x; then
  30763. + OTOOL64=":"
  30764. + else
  30765. + case $cross_compiling:$ac_tool_warned in
  30766. +yes:)
  30767. +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  30768. +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  30769. +ac_tool_warned=yes ;;
  30770. +esac
  30771. + OTOOL64=$ac_ct_OTOOL64
  30772. + fi
  30773. +else
  30774. + OTOOL64="$ac_cv_prog_OTOOL64"
  30775. +fi
  30776. -# Code to be used in simple compile tests
  30777. -lt_simple_compile_test_code="int some_variable = 0;\n"
  30778. -# Code to be used in simple link tests
  30779. -lt_simple_link_test_code='int main(){return(0);}\n'
  30780. -# If no C compiler was specified, use CC.
  30781. -LTCC=${LTCC-"$CC"}
  30782. -# If no C compiler flags were specified, use CFLAGS.
  30783. -LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  30784. -# Allow CC to be a program name with arguments.
  30785. -compiler=$CC
  30786. -# save warnings/boilerplate of simple test code
  30787. -ac_outfile=conftest.$ac_objext
  30788. -printf "$lt_simple_compile_test_code" >conftest.$ac_ext
  30789. -eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  30790. -_lt_compiler_boilerplate=`cat conftest.err`
  30791. -$rm conftest*
  30792. -ac_outfile=conftest.$ac_objext
  30793. -printf "$lt_simple_link_test_code" >conftest.$ac_ext
  30794. -eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  30795. -_lt_linker_boilerplate=`cat conftest.err`
  30796. -$rm conftest*
  30797. -lt_prog_compiler_no_builtin_flag=
  30798. -if test "$GCC" = yes; then
  30799. - lt_prog_compiler_no_builtin_flag=' -fno-builtin'
  30800. -{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  30801. -echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
  30802. -if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
  30803. - echo $ECHO_N "(cached) $ECHO_C" >&6
  30804. -else
  30805. - lt_cv_prog_compiler_rtti_exceptions=no
  30806. - ac_outfile=conftest.$ac_objext
  30807. - printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  30808. - lt_compiler_flag="-fno-rtti -fno-exceptions"
  30809. - # Insert the option either (1) after the last *FLAGS variable, or
  30810. - # (2) before a word containing "conftest.", or (3) at the end.
  30811. - # Note that $ac_compile itself does not contain backslashes and begins
  30812. - # with a dollar sign (not a hyphen), so the echo should work correctly.
  30813. - # The option is referenced via a variable to avoid confusing sed.
  30814. - lt_compile=`echo "$ac_compile" | $SED \
  30815. - -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  30816. - -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  30817. - -e 's:$: $lt_compiler_flag:'`
  30818. - (eval echo "\"\$as_me:7797: $lt_compile\"" >&5)
  30819. - (eval "$lt_compile" 2>conftest.err)
  30820. - ac_status=$?
  30821. - cat conftest.err >&5
  30822. - echo "$as_me:7801: \$? = $ac_status" >&5
  30823. - if (exit $ac_status) && test -s "$ac_outfile"; then
  30824. - # The compiler can only warn and ignore the option if not recognized
  30825. - # So say no if there are warnings other than the usual output.
  30826. - $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  30827. - $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  30828. - if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  30829. - lt_cv_prog_compiler_rtti_exceptions=yes
  30830. - fi
  30831. - fi
  30832. - $rm conftest*
  30833. -fi
  30834. -{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  30835. -echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  30836. -if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  30837. - lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  30838. -else
  30839. - :
  30840. -fi
  30841. -fi
  30842. -lt_prog_compiler_wl=
  30843. -lt_prog_compiler_pic=
  30844. -lt_prog_compiler_static=
  30845. -{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
  30846. -echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
  30847. - if test "$GCC" = yes; then
  30848. - lt_prog_compiler_wl='-Wl,'
  30849. - lt_prog_compiler_static='-static'
  30850. - case $host_os in
  30851. - aix*)
  30852. - # All AIX code is PIC.
  30853. - if test "$host_cpu" = ia64; then
  30854. - # AIX 5 now supports IA64 processor
  30855. - lt_prog_compiler_static='-Bstatic'
  30856. - fi
  30857. - ;;
  30858. - amigaos*)
  30859. - # FIXME: we need at least 68020 code to build shared libraries, but
  30860. - # adding the `-m68020' flag to GCC prevents building anything better,
  30861. - # like `-m68040'.
  30862. - lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  30863. - ;;
  30864. - beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  30865. - # PIC is the default for these OSes.
  30866. - ;;
  30867. - mingw* | pw32* | os2*)
  30868. - # This hack is so that the source file can tell whether it is being
  30869. - # built for inclusion in a dll (and should export symbols for example).
  30870. - lt_prog_compiler_pic='-DDLL_EXPORT'
  30871. - ;;
  30872. - darwin* | rhapsody*)
  30873. - # PIC is the default on this platform
  30874. - # Common symbols not allowed in MH_DYLIB files
  30875. - lt_prog_compiler_pic='-fno-common'
  30876. - ;;
  30877. - interix3*)
  30878. - # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  30879. - # Instead, we relocate shared libraries at runtime.
  30880. - ;;
  30881. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
  30882. +$as_echo_n "checking for -single_module linker flag... " >&6; }
  30883. +if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
  30884. + $as_echo_n "(cached) " >&6
  30885. +else
  30886. + lt_cv_apple_cc_single_mod=no
  30887. + if test -z "${LT_MULTI_MODULE}"; then
  30888. + # By default we will add the -single_module flag. You can override
  30889. + # by either setting the environment variable LT_MULTI_MODULE
  30890. + # non-empty at configure time, or by adding -multi_module to the
  30891. + # link flags.
  30892. + rm -rf libconftest.dylib*
  30893. + echo "int foo(void){return 1;}" > conftest.c
  30894. + echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  30895. +-dynamiclib -Wl,-single_module conftest.c" >&5
  30896. + $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  30897. + -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  30898. + _lt_result=$?
  30899. + if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
  30900. + lt_cv_apple_cc_single_mod=yes
  30901. + else
  30902. + cat conftest.err >&5
  30903. + fi
  30904. + rm -rf libconftest.dylib*
  30905. + rm -f conftest.*
  30906. + fi
  30907. +fi
  30908. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
  30909. +$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
  30910. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
  30911. +$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
  30912. +if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
  30913. + $as_echo_n "(cached) " >&6
  30914. +else
  30915. + lt_cv_ld_exported_symbols_list=no
  30916. + save_LDFLAGS=$LDFLAGS
  30917. + echo "_main" > conftest.sym
  30918. + LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  30919. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  30920. +/* end confdefs.h. */
  30921. - msdosdjgpp*)
  30922. - # Just because we use GCC doesn't mean we suddenly get shared libraries
  30923. - # on systems that don't support them.
  30924. - lt_prog_compiler_can_build_shared=no
  30925. - enable_shared=no
  30926. - ;;
  30927. +int
  30928. +main ()
  30929. +{
  30930. - sysv4*MP*)
  30931. - if test -d /usr/nec; then
  30932. - lt_prog_compiler_pic=-Kconform_pic
  30933. - fi
  30934. - ;;
  30935. + ;
  30936. + return 0;
  30937. +}
  30938. +_ACEOF
  30939. +if ac_fn_c_try_link "$LINENO"; then :
  30940. + lt_cv_ld_exported_symbols_list=yes
  30941. +else
  30942. + lt_cv_ld_exported_symbols_list=no
  30943. +fi
  30944. +rm -f core conftest.err conftest.$ac_objext \
  30945. + conftest$ac_exeext conftest.$ac_ext
  30946. + LDFLAGS="$save_LDFLAGS"
  30947. - hpux*)
  30948. - # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  30949. - # not for PA HP-UX.
  30950. - case $host_cpu in
  30951. - hppa*64*|ia64*)
  30952. - # +Z the default
  30953. - ;;
  30954. - *)
  30955. - lt_prog_compiler_pic='-fPIC'
  30956. - ;;
  30957. +fi
  30958. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
  30959. +$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
  30960. + case $host_os in
  30961. + rhapsody* | darwin1.[012])
  30962. + _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
  30963. + darwin1.*)
  30964. + _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  30965. + darwin*) # darwin 5.x on
  30966. + # if running on 10.5 or later, the deployment target defaults
  30967. + # to the OS version, if on x86, and 10.4, the deployment
  30968. + # target defaults to 10.4. Don't you love it?
  30969. + case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
  30970. + 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
  30971. + _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  30972. + 10.[012]*)
  30973. + _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  30974. + 10.*)
  30975. + _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  30976. esac
  30977. - ;;
  30978. + ;;
  30979. + esac
  30980. + if test "$lt_cv_apple_cc_single_mod" = "yes"; then
  30981. + _lt_dar_single_mod='$single_module'
  30982. + fi
  30983. + if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
  30984. + _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
  30985. + else
  30986. + _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
  30987. + fi
  30988. + if test "$DSYMUTIL" != ":"; then
  30989. + _lt_dsymutil='~$DSYMUTIL $lib || :'
  30990. + else
  30991. + _lt_dsymutil=
  30992. + fi
  30993. + ;;
  30994. + esac
  30995. - *)
  30996. - lt_prog_compiler_pic='-fPIC'
  30997. - ;;
  30998. - esac
  30999. - else
  31000. - # PORTME Check for flag to pass linker flags through the system compiler.
  31001. - case $host_os in
  31002. - aix*)
  31003. - lt_prog_compiler_wl='-Wl,'
  31004. - if test "$host_cpu" = ia64; then
  31005. - # AIX 5 now supports IA64 processor
  31006. - lt_prog_compiler_static='-Bstatic'
  31007. - else
  31008. - lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  31009. - fi
  31010. - ;;
  31011. - darwin*)
  31012. - # PIC is the default on this platform
  31013. - # Common symbols not allowed in MH_DYLIB files
  31014. - case $cc_basename in
  31015. - xlc*)
  31016. - lt_prog_compiler_pic='-qnocommon'
  31017. - lt_prog_compiler_wl='-Wl,'
  31018. - ;;
  31019. - esac
  31020. - ;;
  31021. +ac_ext=c
  31022. +ac_cpp='$CPP $CPPFLAGS'
  31023. +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  31024. +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  31025. +ac_compiler_gnu=$ac_cv_c_compiler_gnu
  31026. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  31027. +$as_echo_n "checking how to run the C preprocessor... " >&6; }
  31028. +# On Suns, sometimes $CPP names a directory.
  31029. +if test -n "$CPP" && test -d "$CPP"; then
  31030. + CPP=
  31031. +fi
  31032. +if test -z "$CPP"; then
  31033. + if test "${ac_cv_prog_CPP+set}" = set; then :
  31034. + $as_echo_n "(cached) " >&6
  31035. +else
  31036. + # Double quotes because CPP needs to be expanded
  31037. + for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  31038. + do
  31039. + ac_preproc_ok=false
  31040. +for ac_c_preproc_warn_flag in '' yes
  31041. +do
  31042. + # Use a header file that comes with gcc, so configuring glibc
  31043. + # with a fresh cross-compiler works.
  31044. + # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  31045. + # <limits.h> exists even on freestanding compilers.
  31046. + # On the NeXT, cc -E runs the code through the compiler's parser,
  31047. + # not just through cpp. "Syntax error" is here to catch this case.
  31048. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  31049. +/* end confdefs.h. */
  31050. +#ifdef __STDC__
  31051. +# include <limits.h>
  31052. +#else
  31053. +# include <assert.h>
  31054. +#endif
  31055. + Syntax error
  31056. +_ACEOF
  31057. +if ac_fn_c_try_cpp "$LINENO"; then :
  31058. - mingw* | pw32* | os2*)
  31059. - # This hack is so that the source file can tell whether it is being
  31060. - # built for inclusion in a dll (and should export symbols for example).
  31061. - lt_prog_compiler_pic='-DDLL_EXPORT'
  31062. - ;;
  31063. +else
  31064. + # Broken: fails on valid input.
  31065. +continue
  31066. +fi
  31067. +rm -f conftest.err conftest.$ac_ext
  31068. - hpux9* | hpux10* | hpux11*)
  31069. - lt_prog_compiler_wl='-Wl,'
  31070. - # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  31071. - # not for PA HP-UX.
  31072. - case $host_cpu in
  31073. - hppa*64*|ia64*)
  31074. - # +Z the default
  31075. - ;;
  31076. - *)
  31077. - lt_prog_compiler_pic='+Z'
  31078. - ;;
  31079. - esac
  31080. - # Is there a better lt_prog_compiler_static that works with the bundled CC?
  31081. - lt_prog_compiler_static='${wl}-a ${wl}archive'
  31082. - ;;
  31083. -
  31084. - irix5* | irix6* | nonstopux*)
  31085. - lt_prog_compiler_wl='-Wl,'
  31086. - # PIC (with -KPIC) is the default.
  31087. - lt_prog_compiler_static='-non_shared'
  31088. - ;;
  31089. -
  31090. - newsos6)
  31091. - lt_prog_compiler_pic='-KPIC'
  31092. - lt_prog_compiler_static='-Bstatic'
  31093. - ;;
  31094. + # OK, works on sane cases. Now check whether nonexistent headers
  31095. + # can be detected and how.
  31096. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  31097. +/* end confdefs.h. */
  31098. +#include <ac_nonexistent.h>
  31099. +_ACEOF
  31100. +if ac_fn_c_try_cpp "$LINENO"; then :
  31101. + # Broken: success on invalid input.
  31102. +continue
  31103. +else
  31104. + # Passes both tests.
  31105. +ac_preproc_ok=:
  31106. +break
  31107. +fi
  31108. +rm -f conftest.err conftest.$ac_ext
  31109. - linux*)
  31110. - case $cc_basename in
  31111. - icc* | ecc*)
  31112. - lt_prog_compiler_wl='-Wl,'
  31113. - lt_prog_compiler_pic='-KPIC'
  31114. - lt_prog_compiler_static='-static'
  31115. - ;;
  31116. - pgcc* | pgf77* | pgf90* | pgf95*)
  31117. - # Portland Group compilers (*not* the Pentium gcc compiler,
  31118. - # which looks to be a dead project)
  31119. - lt_prog_compiler_wl='-Wl,'
  31120. - lt_prog_compiler_pic='-fpic'
  31121. - lt_prog_compiler_static='-Bstatic'
  31122. - ;;
  31123. - ccc*)
  31124. - lt_prog_compiler_wl='-Wl,'
  31125. - # All Alpha code is PIC.
  31126. - lt_prog_compiler_static='-non_shared'
  31127. - ;;
  31128. - esac
  31129. - ;;
  31130. +done
  31131. +# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  31132. +rm -f conftest.err conftest.$ac_ext
  31133. +if $ac_preproc_ok; then :
  31134. + break
  31135. +fi
  31136. - osf3* | osf4* | osf5*)
  31137. - lt_prog_compiler_wl='-Wl,'
  31138. - # All OSF/1 code is PIC.
  31139. - lt_prog_compiler_static='-non_shared'
  31140. - ;;
  31141. + done
  31142. + ac_cv_prog_CPP=$CPP
  31143. - solaris*)
  31144. - lt_prog_compiler_pic='-KPIC'
  31145. - lt_prog_compiler_static='-Bstatic'
  31146. - case $cc_basename in
  31147. - f77* | f90* | f95*)
  31148. - lt_prog_compiler_wl='-Qoption ld ';;
  31149. - *)
  31150. - lt_prog_compiler_wl='-Wl,';;
  31151. - esac
  31152. - ;;
  31153. +fi
  31154. + CPP=$ac_cv_prog_CPP
  31155. +else
  31156. + ac_cv_prog_CPP=$CPP
  31157. +fi
  31158. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  31159. +$as_echo "$CPP" >&6; }
  31160. +ac_preproc_ok=false
  31161. +for ac_c_preproc_warn_flag in '' yes
  31162. +do
  31163. + # Use a header file that comes with gcc, so configuring glibc
  31164. + # with a fresh cross-compiler works.
  31165. + # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  31166. + # <limits.h> exists even on freestanding compilers.
  31167. + # On the NeXT, cc -E runs the code through the compiler's parser,
  31168. + # not just through cpp. "Syntax error" is here to catch this case.
  31169. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  31170. +/* end confdefs.h. */
  31171. +#ifdef __STDC__
  31172. +# include <limits.h>
  31173. +#else
  31174. +# include <assert.h>
  31175. +#endif
  31176. + Syntax error
  31177. +_ACEOF
  31178. +if ac_fn_c_try_cpp "$LINENO"; then :
  31179. - sunos4*)
  31180. - lt_prog_compiler_wl='-Qoption ld '
  31181. - lt_prog_compiler_pic='-PIC'
  31182. - lt_prog_compiler_static='-Bstatic'
  31183. - ;;
  31184. +else
  31185. + # Broken: fails on valid input.
  31186. +continue
  31187. +fi
  31188. +rm -f conftest.err conftest.$ac_ext
  31189. - sysv4 | sysv4.2uw2* | sysv4.3*)
  31190. - lt_prog_compiler_wl='-Wl,'
  31191. - lt_prog_compiler_pic='-KPIC'
  31192. - lt_prog_compiler_static='-Bstatic'
  31193. - ;;
  31194. + # OK, works on sane cases. Now check whether nonexistent headers
  31195. + # can be detected and how.
  31196. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  31197. +/* end confdefs.h. */
  31198. +#include <ac_nonexistent.h>
  31199. +_ACEOF
  31200. +if ac_fn_c_try_cpp "$LINENO"; then :
  31201. + # Broken: success on invalid input.
  31202. +continue
  31203. +else
  31204. + # Passes both tests.
  31205. +ac_preproc_ok=:
  31206. +break
  31207. +fi
  31208. +rm -f conftest.err conftest.$ac_ext
  31209. - sysv4*MP*)
  31210. - if test -d /usr/nec ;then
  31211. - lt_prog_compiler_pic='-Kconform_pic'
  31212. - lt_prog_compiler_static='-Bstatic'
  31213. - fi
  31214. - ;;
  31215. +done
  31216. +# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  31217. +rm -f conftest.err conftest.$ac_ext
  31218. +if $ac_preproc_ok; then :
  31219. - sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  31220. - lt_prog_compiler_wl='-Wl,'
  31221. - lt_prog_compiler_pic='-KPIC'
  31222. - lt_prog_compiler_static='-Bstatic'
  31223. - ;;
  31224. +else
  31225. + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  31226. +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  31227. +as_fn_error "C preprocessor \"$CPP\" fails sanity check
  31228. +See \`config.log' for more details." "$LINENO" 5; }
  31229. +fi
  31230. - unicos*)
  31231. - lt_prog_compiler_wl='-Wl,'
  31232. - lt_prog_compiler_can_build_shared=no
  31233. - ;;
  31234. +ac_ext=c
  31235. +ac_cpp='$CPP $CPPFLAGS'
  31236. +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  31237. +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  31238. +ac_compiler_gnu=$ac_cv_c_compiler_gnu
  31239. - uts4*)
  31240. - lt_prog_compiler_pic='-pic'
  31241. - lt_prog_compiler_static='-Bstatic'
  31242. - ;;
  31243. - *)
  31244. - lt_prog_compiler_can_build_shared=no
  31245. - ;;
  31246. - esac
  31247. - fi
  31248. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  31249. +$as_echo_n "checking for ANSI C header files... " >&6; }
  31250. +if test "${ac_cv_header_stdc+set}" = set; then :
  31251. + $as_echo_n "(cached) " >&6
  31252. +else
  31253. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  31254. +/* end confdefs.h. */
  31255. +#include <stdlib.h>
  31256. +#include <stdarg.h>
  31257. +#include <string.h>
  31258. +#include <float.h>
  31259. -{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
  31260. -echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
  31261. +int
  31262. +main ()
  31263. +{
  31264. -#
  31265. -# Check to make sure the PIC flag actually works.
  31266. -#
  31267. -if test -n "$lt_prog_compiler_pic"; then
  31268. + ;
  31269. + return 0;
  31270. +}
  31271. +_ACEOF
  31272. +if ac_fn_c_try_compile "$LINENO"; then :
  31273. + ac_cv_header_stdc=yes
  31274. +else
  31275. + ac_cv_header_stdc=no
  31276. +fi
  31277. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  31278. -{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  31279. -echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
  31280. -if test "${lt_prog_compiler_pic_works+set}" = set; then
  31281. - echo $ECHO_N "(cached) $ECHO_C" >&6
  31282. -else
  31283. - lt_prog_compiler_pic_works=no
  31284. - ac_outfile=conftest.$ac_objext
  31285. - printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  31286. - lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
  31287. - # Insert the option either (1) after the last *FLAGS variable, or
  31288. - # (2) before a word containing "conftest.", or (3) at the end.
  31289. - # Note that $ac_compile itself does not contain backslashes and begins
  31290. - # with a dollar sign (not a hyphen), so the echo should work correctly.
  31291. - # The option is referenced via a variable to avoid confusing sed.
  31292. - lt_compile=`echo "$ac_compile" | $SED \
  31293. - -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  31294. - -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  31295. - -e 's:$: $lt_compiler_flag:'`
  31296. - (eval echo "\"\$as_me:8065: $lt_compile\"" >&5)
  31297. - (eval "$lt_compile" 2>conftest.err)
  31298. - ac_status=$?
  31299. - cat conftest.err >&5
  31300. - echo "$as_me:8069: \$? = $ac_status" >&5
  31301. - if (exit $ac_status) && test -s "$ac_outfile"; then
  31302. - # The compiler can only warn and ignore the option if not recognized
  31303. - # So say no if there are warnings other than the usual output.
  31304. - $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  31305. - $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  31306. - if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  31307. - lt_prog_compiler_pic_works=yes
  31308. - fi
  31309. - fi
  31310. - $rm conftest*
  31311. +if test $ac_cv_header_stdc = yes; then
  31312. + # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  31313. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  31314. +/* end confdefs.h. */
  31315. +#include <string.h>
  31316. -fi
  31317. -{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
  31318. -echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
  31319. +_ACEOF
  31320. +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  31321. + $EGREP "memchr" >/dev/null 2>&1; then :
  31322. -if test x"$lt_prog_compiler_pic_works" = xyes; then
  31323. - case $lt_prog_compiler_pic in
  31324. - "" | " "*) ;;
  31325. - *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  31326. - esac
  31327. else
  31328. - lt_prog_compiler_pic=
  31329. - lt_prog_compiler_can_build_shared=no
  31330. + ac_cv_header_stdc=no
  31331. fi
  31332. +rm -f conftest*
  31333. fi
  31334. -case $host_os in
  31335. - # For platforms which do not support PIC, -DPIC is meaningless:
  31336. - *djgpp*)
  31337. - lt_prog_compiler_pic=
  31338. - ;;
  31339. - *)
  31340. - lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  31341. - ;;
  31342. -esac
  31343. -#
  31344. -# Check to make sure the static flag actually works.
  31345. -#
  31346. -wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  31347. -{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  31348. -echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
  31349. -if test "${lt_prog_compiler_static_works+set}" = set; then
  31350. - echo $ECHO_N "(cached) $ECHO_C" >&6
  31351. -else
  31352. - lt_prog_compiler_static_works=no
  31353. - save_LDFLAGS="$LDFLAGS"
  31354. - LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  31355. - printf "$lt_simple_link_test_code" > conftest.$ac_ext
  31356. - if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  31357. - # The linker can only warn and ignore the option if not recognized
  31358. - # So say no if there are warnings
  31359. - if test -s conftest.err; then
  31360. - # Append any errors to the config.log.
  31361. - cat conftest.err 1>&5
  31362. - $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
  31363. - $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  31364. - if diff conftest.exp conftest.er2 >/dev/null; then
  31365. - lt_prog_compiler_static_works=yes
  31366. - fi
  31367. - else
  31368. - lt_prog_compiler_static_works=yes
  31369. - fi
  31370. - fi
  31371. - $rm conftest*
  31372. - LDFLAGS="$save_LDFLAGS"
  31373. +if test $ac_cv_header_stdc = yes; then
  31374. + # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  31375. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  31376. +/* end confdefs.h. */
  31377. +#include <stdlib.h>
  31378. -fi
  31379. -{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
  31380. -echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
  31381. +_ACEOF
  31382. +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  31383. + $EGREP "free" >/dev/null 2>&1; then :
  31384. -if test x"$lt_prog_compiler_static_works" = xyes; then
  31385. - :
  31386. else
  31387. - lt_prog_compiler_static=
  31388. + ac_cv_header_stdc=no
  31389. fi
  31390. +rm -f conftest*
  31391. +fi
  31392. -{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
  31393. -echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
  31394. -if test "${lt_cv_prog_compiler_c_o+set}" = set; then
  31395. - echo $ECHO_N "(cached) $ECHO_C" >&6
  31396. +if test $ac_cv_header_stdc = yes; then
  31397. + # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  31398. + if test "$cross_compiling" = yes; then :
  31399. + :
  31400. else
  31401. - lt_cv_prog_compiler_c_o=no
  31402. - $rm -r conftest 2>/dev/null
  31403. - mkdir conftest
  31404. - cd conftest
  31405. - mkdir out
  31406. - printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  31407. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  31408. +/* end confdefs.h. */
  31409. +#include <ctype.h>
  31410. +#include <stdlib.h>
  31411. +#if ((' ' & 0x0FF) == 0x020)
  31412. +# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  31413. +# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  31414. +#else
  31415. +# define ISLOWER(c) \
  31416. + (('a' <= (c) && (c) <= 'i') \
  31417. + || ('j' <= (c) && (c) <= 'r') \
  31418. + || ('s' <= (c) && (c) <= 'z'))
  31419. +# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  31420. +#endif
  31421. - lt_compiler_flag="-o out/conftest2.$ac_objext"
  31422. - # Insert the option either (1) after the last *FLAGS variable, or
  31423. - # (2) before a word containing "conftest.", or (3) at the end.
  31424. - # Note that $ac_compile itself does not contain backslashes and begins
  31425. - # with a dollar sign (not a hyphen), so the echo should work correctly.
  31426. - lt_compile=`echo "$ac_compile" | $SED \
  31427. - -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  31428. - -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  31429. - -e 's:$: $lt_compiler_flag:'`
  31430. - (eval echo "\"\$as_me:8169: $lt_compile\"" >&5)
  31431. - (eval "$lt_compile" 2>out/conftest.err)
  31432. - ac_status=$?
  31433. - cat out/conftest.err >&5
  31434. - echo "$as_me:8173: \$? = $ac_status" >&5
  31435. - if (exit $ac_status) && test -s out/conftest2.$ac_objext
  31436. - then
  31437. - # The compiler can only warn and ignore the option if not recognized
  31438. - # So say no if there are warnings
  31439. - $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  31440. - $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  31441. - if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  31442. - lt_cv_prog_compiler_c_o=yes
  31443. - fi
  31444. - fi
  31445. - chmod u+w . 2>&5
  31446. - $rm conftest*
  31447. - # SGI C++ compiler will create directory out/ii_files/ for
  31448. - # template instantiation
  31449. - test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
  31450. - $rm out/* && rmdir out
  31451. - cd ..
  31452. - rmdir conftest
  31453. - $rm conftest*
  31454. +#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  31455. +int
  31456. +main ()
  31457. +{
  31458. + int i;
  31459. + for (i = 0; i < 256; i++)
  31460. + if (XOR (islower (i), ISLOWER (i))
  31461. + || toupper (i) != TOUPPER (i))
  31462. + return 2;
  31463. + return 0;
  31464. +}
  31465. +_ACEOF
  31466. +if ac_fn_c_try_run "$LINENO"; then :
  31467. +else
  31468. + ac_cv_header_stdc=no
  31469. +fi
  31470. +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  31471. + conftest.$ac_objext conftest.beam conftest.$ac_ext
  31472. fi
  31473. -{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
  31474. -echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
  31475. +fi
  31476. +fi
  31477. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  31478. +$as_echo "$ac_cv_header_stdc" >&6; }
  31479. +if test $ac_cv_header_stdc = yes; then
  31480. +
  31481. +$as_echo "#define STDC_HEADERS 1" >>confdefs.h
  31482. -hard_links="nottested"
  31483. -if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
  31484. - # do not overwrite the value of need_locks provided by the user
  31485. - { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
  31486. -echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
  31487. - hard_links=yes
  31488. - $rm conftest*
  31489. - ln conftest.a conftest.b 2>/dev/null && hard_links=no
  31490. - touch conftest.a
  31491. - ln conftest.a conftest.b 2>&5 || hard_links=no
  31492. - ln conftest.a conftest.b 2>/dev/null && hard_links=no
  31493. - { echo "$as_me:$LINENO: result: $hard_links" >&5
  31494. -echo "${ECHO_T}$hard_links" >&6; }
  31495. - if test "$hard_links" = no; then
  31496. - { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  31497. -echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  31498. - need_locks=warn
  31499. - fi
  31500. -else
  31501. - need_locks=no
  31502. fi
  31503. -{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  31504. -echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
  31505. +# On IRIX 5.3, sys/types and inttypes.h are conflicting.
  31506. +for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  31507. + inttypes.h stdint.h unistd.h
  31508. +do :
  31509. + as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  31510. +ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  31511. +"
  31512. +eval as_val=\$$as_ac_Header
  31513. + if test "x$as_val" = x""yes; then :
  31514. + cat >>confdefs.h <<_ACEOF
  31515. +#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  31516. +_ACEOF
  31517. +
  31518. +fi
  31519. - runpath_var=
  31520. - allow_undefined_flag=
  31521. - enable_shared_with_static_runtimes=no
  31522. - archive_cmds=
  31523. - archive_expsym_cmds=
  31524. - old_archive_From_new_cmds=
  31525. - old_archive_from_expsyms_cmds=
  31526. - export_dynamic_flag_spec=
  31527. - whole_archive_flag_spec=
  31528. - thread_safe_flag_spec=
  31529. - hardcode_libdir_flag_spec=
  31530. - hardcode_libdir_flag_spec_ld=
  31531. - hardcode_libdir_separator=
  31532. - hardcode_direct=no
  31533. - hardcode_minus_L=no
  31534. - hardcode_shlibpath_var=unsupported
  31535. - link_all_deplibs=unknown
  31536. - hardcode_automatic=no
  31537. - module_cmds=
  31538. - module_expsym_cmds=
  31539. - always_export_symbols=no
  31540. - export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  31541. - # include_expsyms should be a list of space-separated symbols to be *always*
  31542. - # included in the symbol list
  31543. - include_expsyms=
  31544. - # exclude_expsyms can be an extended regexp of symbols to exclude
  31545. - # it will be wrapped by ` (' and `)$', so one must not match beginning or
  31546. - # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  31547. - # as well as any symbol that contains `d'.
  31548. - exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
  31549. - # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  31550. - # platforms (ab)use it in PIC code, but their linkers get confused if
  31551. - # the symbol is explicitly referenced. Since portable code cannot
  31552. - # rely on this symbol name, it's probably fine to never include it in
  31553. - # preloaded symbol tables.
  31554. - extract_expsyms_cmds=
  31555. - # Just being paranoid about ensuring that cc_basename is set.
  31556. - for cc_temp in $compiler""; do
  31557. - case $cc_temp in
  31558. - compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  31559. - distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  31560. - \-*) ;;
  31561. - *) break;;
  31562. - esac
  31563. done
  31564. -cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  31565. - case $host_os in
  31566. - cygwin* | mingw* | pw32*)
  31567. - # FIXME: the MSVC++ port hasn't been tested in a loooong time
  31568. - # When not using gcc, we currently assume that we are using
  31569. - # Microsoft Visual C++.
  31570. - if test "$GCC" != yes; then
  31571. - with_gnu_ld=no
  31572. - fi
  31573. - ;;
  31574. - interix*)
  31575. - # we just hope/assume this is gcc and not c89 (= MSVC++)
  31576. - with_gnu_ld=yes
  31577. - ;;
  31578. - openbsd*)
  31579. - with_gnu_ld=no
  31580. - ;;
  31581. - esac
  31582. - ld_shlibs=yes
  31583. - if test "$with_gnu_ld" = yes; then
  31584. - # If archive_cmds runs LD, not CC, wlarc should be empty
  31585. - wlarc='${wl}'
  31586. +for ac_header in dlfcn.h
  31587. +do :
  31588. + ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
  31589. +"
  31590. +if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
  31591. + cat >>confdefs.h <<_ACEOF
  31592. +#define HAVE_DLFCN_H 1
  31593. +_ACEOF
  31594. - # Set some defaults for GNU ld with shared library support. These
  31595. - # are reset later if shared libraries are not supported. Putting them
  31596. - # here allows them to be overridden if necessary.
  31597. - runpath_var=LD_RUN_PATH
  31598. - hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
  31599. - export_dynamic_flag_spec='${wl}--export-dynamic'
  31600. - # ancient GNU ld didn't support --whole-archive et. al.
  31601. - if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
  31602. - whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  31603. - else
  31604. - whole_archive_flag_spec=
  31605. - fi
  31606. - supports_anon_versioning=no
  31607. - case `$LD -v 2>/dev/null` in
  31608. - *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  31609. - *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  31610. - *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  31611. - *\ 2.11.*) ;; # other 2.11 versions
  31612. - *) supports_anon_versioning=yes ;;
  31613. - esac
  31614. +fi
  31615. - # See if GNU ld supports shared libraries.
  31616. - case $host_os in
  31617. - aix3* | aix4* | aix5*)
  31618. - # On AIX/PPC, the GNU linker is very broken
  31619. - if test "$host_cpu" != ia64; then
  31620. - ld_shlibs=no
  31621. - cat <<EOF 1>&2
  31622. +done
  31623. -*** Warning: the GNU linker, at least up to release 2.9.1, is reported
  31624. -*** to be unable to reliably create shared libraries on AIX.
  31625. -*** Therefore, libtool is disabling shared libraries support. If you
  31626. -*** really care for shared libraries, you may want to modify your PATH
  31627. -*** so that a non-GNU linker is found, and then restart.
  31628. -EOF
  31629. - fi
  31630. - ;;
  31631. - amigaos*)
  31632. - 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)'
  31633. - hardcode_libdir_flag_spec='-L$libdir'
  31634. - hardcode_minus_L=yes
  31635. +# Set options
  31636. - # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
  31637. - # that the semantics of dynamic libraries on AmigaOS, at least up
  31638. - # to version 4, is to share data among multiple programs linked
  31639. - # with the same dynamic library. Since this doesn't match the
  31640. - # behavior of shared libraries on other platforms, we can't use
  31641. - # them.
  31642. - ld_shlibs=no
  31643. - ;;
  31644. - beos*)
  31645. - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  31646. - allow_undefined_flag=unsupported
  31647. - # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  31648. - # support --undefined. This deserves some investigation. FIXME
  31649. - archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  31650. - else
  31651. - ld_shlibs=no
  31652. - fi
  31653. - ;;
  31654. - cygwin* | mingw* | pw32*)
  31655. - # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  31656. - # as there is no search path for DLLs.
  31657. - hardcode_libdir_flag_spec='-L$libdir'
  31658. - allow_undefined_flag=unsupported
  31659. - always_export_symbols=no
  31660. - enable_shared_with_static_runtimes=yes
  31661. - export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
  31662. + enable_dlopen=no
  31663. - if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
  31664. - archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  31665. - # If the export-symbols file already is a .def file (1st line
  31666. - # is EXPORTS), use it as is; otherwise, prepend...
  31667. - archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  31668. - cp $export_symbols $output_objdir/$soname.def;
  31669. - else
  31670. - echo EXPORTS > $output_objdir/$soname.def;
  31671. - cat $export_symbols >> $output_objdir/$soname.def;
  31672. - fi~
  31673. - $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  31674. - else
  31675. - ld_shlibs=no
  31676. - fi
  31677. - ;;
  31678. - interix3*)
  31679. - hardcode_direct=no
  31680. - hardcode_shlibpath_var=no
  31681. - hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  31682. - export_dynamic_flag_spec='${wl}-E'
  31683. - # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  31684. - # Instead, shared libraries are loaded at an image base (0x10000000 by
  31685. - # default) and relocated if they conflict, which is a slow very memory
  31686. - # consuming and fragmenting process. To avoid this, we pick a random,
  31687. - # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  31688. - # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  31689. - archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  31690. - 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'
  31691. - ;;
  31692. + enable_win32_dll=no
  31693. - linux*)
  31694. - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  31695. - tmp_addflag=
  31696. - case $cc_basename,$host_cpu in
  31697. - pgcc*) # Portland Group C compiler
  31698. - 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'
  31699. - tmp_addflag=' $pic_flag'
  31700. - ;;
  31701. - pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
  31702. - 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'
  31703. - tmp_addflag=' $pic_flag -Mnomain' ;;
  31704. - ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  31705. - tmp_addflag=' -i_dynamic' ;;
  31706. - efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  31707. - tmp_addflag=' -i_dynamic -nofor_main' ;;
  31708. - ifc* | ifort*) # Intel Fortran compiler
  31709. - tmp_addflag=' -nofor_main' ;;
  31710. - esac
  31711. - archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  31712. - if test $supports_anon_versioning = yes; then
  31713. - archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
  31714. - cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  31715. - $echo "local: *; };" >> $output_objdir/$libname.ver~
  31716. - $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  31717. + # Check whether --enable-shared was given.
  31718. +if test "${enable_shared+set}" = set; then :
  31719. + enableval=$enable_shared; p=${PACKAGE-default}
  31720. + case $enableval in
  31721. + yes) enable_shared=yes ;;
  31722. + no) enable_shared=no ;;
  31723. + *)
  31724. + enable_shared=no
  31725. + # Look at the argument we got. We use all the common list separators.
  31726. + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  31727. + for pkg in $enableval; do
  31728. + IFS="$lt_save_ifs"
  31729. + if test "X$pkg" = "X$p"; then
  31730. + enable_shared=yes
  31731. fi
  31732. - else
  31733. - ld_shlibs=no
  31734. - fi
  31735. + done
  31736. + IFS="$lt_save_ifs"
  31737. ;;
  31738. + esac
  31739. +else
  31740. + enable_shared=yes
  31741. +fi
  31742. - netbsd*)
  31743. - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  31744. - archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  31745. - wlarc=
  31746. - else
  31747. - archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  31748. - archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  31749. - fi
  31750. - ;;
  31751. - solaris*)
  31752. - if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
  31753. - ld_shlibs=no
  31754. - cat <<EOF 1>&2
  31755. -*** Warning: The releases 2.8.* of the GNU linker cannot reliably
  31756. -*** create shared libraries on Solaris systems. Therefore, libtool
  31757. -*** is disabling shared libraries support. We urge you to upgrade GNU
  31758. -*** binutils to release 2.9.1 or newer. Another option is to modify
  31759. -*** your PATH or compiler configuration so that the native linker is
  31760. -*** used, and then restart.
  31761. -EOF
  31762. - elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  31763. - archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  31764. - archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  31765. - else
  31766. - ld_shlibs=no
  31767. - fi
  31768. - ;;
  31769. - sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  31770. - case `$LD -v 2>&1` in
  31771. - *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  31772. - ld_shlibs=no
  31773. - cat <<_LT_EOF 1>&2
  31774. -*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  31775. -*** reliably create shared libraries on SCO systems. Therefore, libtool
  31776. -*** is disabling shared libraries support. We urge you to upgrade GNU
  31777. -*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  31778. -*** your PATH or compiler configuration so that the native linker is
  31779. -*** used, and then restart.
  31780. -_LT_EOF
  31781. - ;;
  31782. - *)
  31783. - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  31784. - hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
  31785. - archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
  31786. - archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
  31787. - else
  31788. - ld_shlibs=no
  31789. - fi
  31790. - ;;
  31791. - esac
  31792. - ;;
  31793. - sunos4*)
  31794. - archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  31795. - wlarc=
  31796. - hardcode_direct=yes
  31797. - hardcode_shlibpath_var=no
  31798. - ;;
  31799. + # Check whether --enable-static was given.
  31800. +if test "${enable_static+set}" = set; then :
  31801. + enableval=$enable_static; p=${PACKAGE-default}
  31802. + case $enableval in
  31803. + yes) enable_static=yes ;;
  31804. + no) enable_static=no ;;
  31805. *)
  31806. - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  31807. - archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  31808. - archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  31809. - else
  31810. - ld_shlibs=no
  31811. - fi
  31812. + enable_static=no
  31813. + # Look at the argument we got. We use all the common list separators.
  31814. + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  31815. + for pkg in $enableval; do
  31816. + IFS="$lt_save_ifs"
  31817. + if test "X$pkg" = "X$p"; then
  31818. + enable_static=yes
  31819. + fi
  31820. + done
  31821. + IFS="$lt_save_ifs"
  31822. ;;
  31823. esac
  31824. +else
  31825. + enable_static=yes
  31826. +fi
  31827. - if test "$ld_shlibs" = no; then
  31828. - runpath_var=
  31829. - hardcode_libdir_flag_spec=
  31830. - export_dynamic_flag_spec=
  31831. - whole_archive_flag_spec=
  31832. - fi
  31833. - else
  31834. - # PORTME fill in a description of your system's linker (not GNU ld)
  31835. - case $host_os in
  31836. - aix3*)
  31837. - allow_undefined_flag=unsupported
  31838. - always_export_symbols=yes
  31839. - 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'
  31840. - # Note: this linker hardcodes the directories in LIBPATH if there
  31841. - # are no directories specified by -L.
  31842. - hardcode_minus_L=yes
  31843. - if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  31844. - # Neither direct hardcoding nor static linking is supported with a
  31845. - # broken collect2.
  31846. - hardcode_direct=unsupported
  31847. - fi
  31848. - ;;
  31849. -
  31850. - aix4* | aix5*)
  31851. - if test "$host_cpu" = ia64; then
  31852. - # On IA64, the linker does run time linking by default, so we don't
  31853. - # have to do anything special.
  31854. - aix_use_runtimelinking=no
  31855. - exp_sym_flag='-Bexport'
  31856. - no_entry_flag=""
  31857. - else
  31858. - # If we're using GNU nm, then we don't want the "-C" option.
  31859. - # -C means demangle to AIX nm, but means don't demangle with GNU nm
  31860. - if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
  31861. - 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'
  31862. - else
  31863. - 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'
  31864. - fi
  31865. - aix_use_runtimelinking=no
  31866. - # Test if we are trying to use run time linking or normal
  31867. - # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  31868. - # need to do runtime linking.
  31869. - case $host_os in aix4.[23]|aix4.[23].*|aix5*)
  31870. - for ld_flag in $LDFLAGS; do
  31871. - if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  31872. - aix_use_runtimelinking=yes
  31873. - break
  31874. - fi
  31875. - done
  31876. - ;;
  31877. - esac
  31878. - exp_sym_flag='-bexport'
  31879. - no_entry_flag='-bnoentry'
  31880. - fi
  31881. - # When large executables or shared objects are built, AIX ld can
  31882. - # have problems creating the table of contents. If linking a library
  31883. - # or program results in "error TOC overflow" add -mminimal-toc to
  31884. - # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  31885. - # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  31886. - archive_cmds=''
  31887. - hardcode_direct=yes
  31888. - hardcode_libdir_separator=':'
  31889. - link_all_deplibs=yes
  31890. - if test "$GCC" = yes; then
  31891. - case $host_os in aix4.[012]|aix4.[012].*)
  31892. - # We only want to do this on AIX 4.2 and lower, the check
  31893. - # below for broken collect2 doesn't work under 4.3+
  31894. - collect2name=`${CC} -print-prog-name=collect2`
  31895. - if test -f "$collect2name" && \
  31896. - strings "$collect2name" | grep resolve_lib_name >/dev/null
  31897. - then
  31898. - # We have reworked collect2
  31899. - hardcode_direct=yes
  31900. - else
  31901. - # We have old collect2
  31902. - hardcode_direct=unsupported
  31903. - # It fails to find uninstalled libraries when the uninstalled
  31904. - # path is not listed in the libpath. Setting hardcode_minus_L
  31905. - # to unsupported forces relinking
  31906. - hardcode_minus_L=yes
  31907. - hardcode_libdir_flag_spec='-L$libdir'
  31908. - hardcode_libdir_separator=
  31909. - fi
  31910. - ;;
  31911. - esac
  31912. - shared_flag='-shared'
  31913. - if test "$aix_use_runtimelinking" = yes; then
  31914. - shared_flag="$shared_flag "'${wl}-G'
  31915. - fi
  31916. - else
  31917. - # not using gcc
  31918. - if test "$host_cpu" = ia64; then
  31919. - # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  31920. - # chokes on -Wl,-G. The following line is correct:
  31921. - shared_flag='-G'
  31922. - else
  31923. - if test "$aix_use_runtimelinking" = yes; then
  31924. - shared_flag='${wl}-G'
  31925. - else
  31926. - shared_flag='${wl}-bM:SRE'
  31927. - fi
  31928. - fi
  31929. - fi
  31930. - # It seems that -bexpall does not export symbols beginning with
  31931. - # underscore (_), so it is better to generate a list of symbols to export.
  31932. - always_export_symbols=yes
  31933. - if test "$aix_use_runtimelinking" = yes; then
  31934. - # Warning - without using the other runtime loading flags (-brtl),
  31935. - # -berok will link without error, but may produce a broken library.
  31936. - allow_undefined_flag='-berok'
  31937. - # Determine the default libpath from the value encoded in an empty executable.
  31938. - cat >conftest.$ac_ext <<_ACEOF
  31939. -/* confdefs.h. */
  31940. -_ACEOF
  31941. -cat confdefs.h >>conftest.$ac_ext
  31942. -cat >>conftest.$ac_ext <<_ACEOF
  31943. -/* end confdefs.h. */
  31944. -int
  31945. -main ()
  31946. -{
  31947. - ;
  31948. - return 0;
  31949. -}
  31950. -_ACEOF
  31951. -rm -f conftest.$ac_objext conftest$ac_exeext
  31952. -if { (ac_try="$ac_link"
  31953. -case "(($ac_try" in
  31954. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  31955. - *) ac_try_echo=$ac_try;;
  31956. -esac
  31957. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  31958. - (eval "$ac_link") 2>conftest.er1
  31959. - ac_status=$?
  31960. - grep -v '^ *+' conftest.er1 >conftest.err
  31961. - rm -f conftest.er1
  31962. - cat conftest.err >&5
  31963. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  31964. - (exit $ac_status); } &&
  31965. - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  31966. - { (case "(($ac_try" in
  31967. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  31968. - *) ac_try_echo=$ac_try;;
  31969. -esac
  31970. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  31971. - (eval "$ac_try") 2>&5
  31972. - ac_status=$?
  31973. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  31974. - (exit $ac_status); }; } &&
  31975. - { ac_try='test -s conftest$ac_exeext'
  31976. - { (case "(($ac_try" in
  31977. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  31978. - *) ac_try_echo=$ac_try;;
  31979. -esac
  31980. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  31981. - (eval "$ac_try") 2>&5
  31982. - ac_status=$?
  31983. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  31984. - (exit $ac_status); }; }; then
  31985. -aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  31986. -}'`
  31987. -# Check for a 64-bit object if we didn't find anything.
  31988. -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; }
  31989. -}'`; fi
  31990. +# Check whether --with-pic was given.
  31991. +if test "${with_pic+set}" = set; then :
  31992. + withval=$with_pic; pic_mode="$withval"
  31993. else
  31994. - echo "$as_me: failed program was:" >&5
  31995. -sed 's/^/| /' conftest.$ac_ext >&5
  31996. -
  31997. -
  31998. + pic_mode=default
  31999. fi
  32000. -rm -f core conftest.err conftest.$ac_objext \
  32001. - conftest$ac_exeext conftest.$ac_ext
  32002. -if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  32003. - hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  32004. - archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  32005. - else
  32006. - if test "$host_cpu" = ia64; then
  32007. - hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
  32008. - allow_undefined_flag="-z nodefs"
  32009. - 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"
  32010. - else
  32011. - # Determine the default libpath from the value encoded in an empty executable.
  32012. - cat >conftest.$ac_ext <<_ACEOF
  32013. -/* confdefs.h. */
  32014. -_ACEOF
  32015. -cat confdefs.h >>conftest.$ac_ext
  32016. -cat >>conftest.$ac_ext <<_ACEOF
  32017. -/* end confdefs.h. */
  32018. +test -z "$pic_mode" && pic_mode=default
  32019. -int
  32020. -main ()
  32021. -{
  32022. - ;
  32023. - return 0;
  32024. -}
  32025. -_ACEOF
  32026. -rm -f conftest.$ac_objext conftest$ac_exeext
  32027. -if { (ac_try="$ac_link"
  32028. -case "(($ac_try" in
  32029. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  32030. - *) ac_try_echo=$ac_try;;
  32031. -esac
  32032. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  32033. - (eval "$ac_link") 2>conftest.er1
  32034. - ac_status=$?
  32035. - grep -v '^ *+' conftest.er1 >conftest.err
  32036. - rm -f conftest.er1
  32037. - cat conftest.err >&5
  32038. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  32039. - (exit $ac_status); } &&
  32040. - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  32041. - { (case "(($ac_try" in
  32042. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  32043. - *) ac_try_echo=$ac_try;;
  32044. -esac
  32045. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  32046. - (eval "$ac_try") 2>&5
  32047. - ac_status=$?
  32048. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  32049. - (exit $ac_status); }; } &&
  32050. - { ac_try='test -s conftest$ac_exeext'
  32051. - { (case "(($ac_try" in
  32052. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  32053. - *) ac_try_echo=$ac_try;;
  32054. -esac
  32055. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  32056. - (eval "$ac_try") 2>&5
  32057. - ac_status=$?
  32058. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  32059. - (exit $ac_status); }; }; then
  32060. -aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  32061. -}'`
  32062. -# Check for a 64-bit object if we didn't find anything.
  32063. -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; }
  32064. -}'`; fi
  32065. -else
  32066. - echo "$as_me: failed program was:" >&5
  32067. -sed 's/^/| /' conftest.$ac_ext >&5
  32068. -fi
  32069. -rm -f core conftest.err conftest.$ac_objext \
  32070. - conftest$ac_exeext conftest.$ac_ext
  32071. -if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  32072. - hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  32073. - # Warning - without using the other run time loading flags,
  32074. - # -berok will link without error, but may produce a broken library.
  32075. - no_undefined_flag=' ${wl}-bernotok'
  32076. - allow_undefined_flag=' ${wl}-berok'
  32077. - # Exported symbols can be pulled into shared objects from archives
  32078. - whole_archive_flag_spec='$convenience'
  32079. - archive_cmds_need_lc=yes
  32080. - # This is similar to how AIX traditionally builds its shared libraries.
  32081. - 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'
  32082. + # Check whether --enable-fast-install was given.
  32083. +if test "${enable_fast_install+set}" = set; then :
  32084. + enableval=$enable_fast_install; p=${PACKAGE-default}
  32085. + case $enableval in
  32086. + yes) enable_fast_install=yes ;;
  32087. + no) enable_fast_install=no ;;
  32088. + *)
  32089. + enable_fast_install=no
  32090. + # Look at the argument we got. We use all the common list separators.
  32091. + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  32092. + for pkg in $enableval; do
  32093. + IFS="$lt_save_ifs"
  32094. + if test "X$pkg" = "X$p"; then
  32095. + enable_fast_install=yes
  32096. fi
  32097. - fi
  32098. + done
  32099. + IFS="$lt_save_ifs"
  32100. ;;
  32101. + esac
  32102. +else
  32103. + enable_fast_install=yes
  32104. +fi
  32105. - amigaos*)
  32106. - 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)'
  32107. - hardcode_libdir_flag_spec='-L$libdir'
  32108. - hardcode_minus_L=yes
  32109. - # see comment about different semantics on the GNU ld section
  32110. - ld_shlibs=no
  32111. - ;;
  32112. - bsdi[45]*)
  32113. - export_dynamic_flag_spec=-rdynamic
  32114. - ;;
  32115. - cygwin* | mingw* | pw32*)
  32116. - # When not using gcc, we currently assume that we are using
  32117. - # Microsoft Visual C++.
  32118. - # hardcode_libdir_flag_spec is actually meaningless, as there is
  32119. - # no search path for DLLs.
  32120. - hardcode_libdir_flag_spec=' '
  32121. - allow_undefined_flag=unsupported
  32122. - # Tell ltmain to make .lib files, not .a files.
  32123. - libext=lib
  32124. - # Tell ltmain to make .dll files, not .so files.
  32125. - shrext_cmds=".dll"
  32126. - # FIXME: Setting linknames here is a bad hack.
  32127. - archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
  32128. - # The linker will automatically build a .lib file if we build a DLL.
  32129. - old_archive_From_new_cmds='true'
  32130. - # FIXME: Should let the user specify the lib program.
  32131. - old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
  32132. - fix_srcfile_path='`cygpath -w "$srcfile"`'
  32133. - enable_shared_with_static_runtimes=yes
  32134. - ;;
  32135. - darwin* | rhapsody*)
  32136. - case $host_os in
  32137. - rhapsody* | darwin1.[012])
  32138. - allow_undefined_flag='${wl}-undefined ${wl}suppress'
  32139. - ;;
  32140. - *) # Darwin 1.3 on
  32141. - if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
  32142. - allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  32143. - else
  32144. - case ${MACOSX_DEPLOYMENT_TARGET} in
  32145. - 10.[012])
  32146. - allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  32147. - ;;
  32148. - 10.*)
  32149. - allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
  32150. - ;;
  32151. - esac
  32152. - fi
  32153. - ;;
  32154. - esac
  32155. - archive_cmds_need_lc=no
  32156. - hardcode_direct=no
  32157. - hardcode_automatic=yes
  32158. - hardcode_shlibpath_var=unsupported
  32159. - whole_archive_flag_spec=''
  32160. - link_all_deplibs=yes
  32161. - if test "$GCC" = yes ; then
  32162. - output_verbose_link_cmd='echo'
  32163. - archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
  32164. - module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  32165. - # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  32166. - 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}'
  32167. - 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}'
  32168. - else
  32169. - case $cc_basename in
  32170. - xlc*)
  32171. - output_verbose_link_cmd='echo'
  32172. - archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
  32173. - module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  32174. - # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  32175. - 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}'
  32176. - 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}'
  32177. - ;;
  32178. - *)
  32179. - ld_shlibs=no
  32180. - ;;
  32181. - esac
  32182. - fi
  32183. - ;;
  32184. - dgux*)
  32185. - archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  32186. - hardcode_libdir_flag_spec='-L$libdir'
  32187. - hardcode_shlibpath_var=no
  32188. - ;;
  32189. - freebsd1*)
  32190. - ld_shlibs=no
  32191. - ;;
  32192. - # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  32193. - # support. Future versions do this automatically, but an explicit c++rt0.o
  32194. - # does not break anything, and helps significantly (at the cost of a little
  32195. - # extra space).
  32196. - freebsd2.2*)
  32197. - archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  32198. - hardcode_libdir_flag_spec='-R$libdir'
  32199. - hardcode_direct=yes
  32200. - hardcode_shlibpath_var=no
  32201. - ;;
  32202. - # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  32203. - freebsd2*)
  32204. - archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  32205. - hardcode_direct=yes
  32206. - hardcode_minus_L=yes
  32207. - hardcode_shlibpath_var=no
  32208. - ;;
  32209. - # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  32210. - freebsd* | kfreebsd*-gnu | dragonfly*)
  32211. - archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  32212. - hardcode_libdir_flag_spec='-R$libdir'
  32213. - hardcode_direct=yes
  32214. - hardcode_shlibpath_var=no
  32215. - ;;
  32216. - hpux9*)
  32217. - if test "$GCC" = yes; then
  32218. - 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'
  32219. - else
  32220. - 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'
  32221. - fi
  32222. - hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  32223. - hardcode_libdir_separator=:
  32224. - hardcode_direct=yes
  32225. - # hardcode_minus_L: Not really in the search PATH,
  32226. - # but as the default location of the library.
  32227. - hardcode_minus_L=yes
  32228. - export_dynamic_flag_spec='${wl}-E'
  32229. - ;;
  32230. +# This can be used to rebuild libtool when needed
  32231. +LIBTOOL_DEPS="$ltmain"
  32232. - hpux10*)
  32233. - if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  32234. - archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  32235. - else
  32236. - archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  32237. - fi
  32238. - if test "$with_gnu_ld" = no; then
  32239. - hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  32240. - hardcode_libdir_separator=:
  32241. +# Always use our own libtool.
  32242. +LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  32243. - hardcode_direct=yes
  32244. - export_dynamic_flag_spec='${wl}-E'
  32245. - # hardcode_minus_L: Not really in the search PATH,
  32246. - # but as the default location of the library.
  32247. - hardcode_minus_L=yes
  32248. - fi
  32249. - ;;
  32250. - hpux11*)
  32251. - if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  32252. - case $host_cpu in
  32253. - hppa*64*)
  32254. - archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  32255. - ;;
  32256. - ia64*)
  32257. - archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  32258. - ;;
  32259. - *)
  32260. - archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  32261. - ;;
  32262. - esac
  32263. - else
  32264. - case $host_cpu in
  32265. - hppa*64*)
  32266. - archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  32267. - ;;
  32268. - ia64*)
  32269. - archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  32270. - ;;
  32271. - *)
  32272. - archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  32273. - ;;
  32274. - esac
  32275. - fi
  32276. - if test "$with_gnu_ld" = no; then
  32277. - hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  32278. - hardcode_libdir_separator=:
  32279. - case $host_cpu in
  32280. - hppa*64*|ia64*)
  32281. - hardcode_libdir_flag_spec_ld='+b $libdir'
  32282. - hardcode_direct=no
  32283. - hardcode_shlibpath_var=no
  32284. - ;;
  32285. - *)
  32286. - hardcode_direct=yes
  32287. - export_dynamic_flag_spec='${wl}-E'
  32288. - # hardcode_minus_L: Not really in the search PATH,
  32289. - # but as the default location of the library.
  32290. - hardcode_minus_L=yes
  32291. - ;;
  32292. - esac
  32293. - fi
  32294. - ;;
  32295. - irix5* | irix6* | nonstopux*)
  32296. - if test "$GCC" = yes; then
  32297. - 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'
  32298. - else
  32299. - 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'
  32300. - hardcode_libdir_flag_spec_ld='-rpath $libdir'
  32301. - fi
  32302. - hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  32303. - hardcode_libdir_separator=:
  32304. - link_all_deplibs=yes
  32305. - ;;
  32306. - netbsd*)
  32307. - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  32308. - archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  32309. - else
  32310. - archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  32311. - fi
  32312. - hardcode_libdir_flag_spec='-R$libdir'
  32313. - hardcode_direct=yes
  32314. - hardcode_shlibpath_var=no
  32315. - ;;
  32316. - newsos6)
  32317. - archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  32318. - hardcode_direct=yes
  32319. - hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  32320. - hardcode_libdir_separator=:
  32321. - hardcode_shlibpath_var=no
  32322. - ;;
  32323. - openbsd*)
  32324. - hardcode_direct=yes
  32325. - hardcode_shlibpath_var=no
  32326. - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  32327. - archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  32328. - archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  32329. - hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  32330. - export_dynamic_flag_spec='${wl}-E'
  32331. - else
  32332. - case $host_os in
  32333. - openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  32334. - archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  32335. - hardcode_libdir_flag_spec='-R$libdir'
  32336. - ;;
  32337. - *)
  32338. - archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  32339. - hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  32340. - ;;
  32341. - esac
  32342. - fi
  32343. - ;;
  32344. - os2*)
  32345. - hardcode_libdir_flag_spec='-L$libdir'
  32346. - hardcode_minus_L=yes
  32347. - allow_undefined_flag=unsupported
  32348. - 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'
  32349. - old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  32350. - ;;
  32351. - osf3*)
  32352. - if test "$GCC" = yes; then
  32353. - allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  32354. - 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'
  32355. - else
  32356. - allow_undefined_flag=' -expect_unresolved \*'
  32357. - 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'
  32358. - fi
  32359. - hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  32360. - hardcode_libdir_separator=:
  32361. - ;;
  32362. - osf4* | osf5*) # as osf3* with the addition of -msym flag
  32363. - if test "$GCC" = yes; then
  32364. - allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  32365. - 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'
  32366. - hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  32367. - else
  32368. - allow_undefined_flag=' -expect_unresolved \*'
  32369. - 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'
  32370. - archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
  32371. - $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
  32372. - # Both c and cxx compiler support -rpath directly
  32373. - hardcode_libdir_flag_spec='-rpath $libdir'
  32374. - fi
  32375. - hardcode_libdir_separator=:
  32376. - ;;
  32377. - solaris*)
  32378. - no_undefined_flag=' -z text'
  32379. - if test "$GCC" = yes; then
  32380. - wlarc='${wl}'
  32381. - archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  32382. - archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  32383. - $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
  32384. - else
  32385. - wlarc=''
  32386. - archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  32387. - archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  32388. - $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
  32389. - fi
  32390. - hardcode_libdir_flag_spec='-R$libdir'
  32391. - hardcode_shlibpath_var=no
  32392. - case $host_os in
  32393. - solaris2.[0-5] | solaris2.[0-5].*) ;;
  32394. - *)
  32395. - # The compiler driver will combine linker options so we
  32396. - # cannot just pass the convience library names through
  32397. - # without $wl, iff we do not link with $LD.
  32398. - # Luckily, gcc supports the same syntax we need for Sun Studio.
  32399. - # Supported since Solaris 2.6 (maybe 2.5.1?)
  32400. - case $wlarc in
  32401. - '')
  32402. - whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
  32403. - *)
  32404. - whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
  32405. - esac ;;
  32406. - esac
  32407. - link_all_deplibs=yes
  32408. - ;;
  32409. - sunos4*)
  32410. - if test "x$host_vendor" = xsequent; then
  32411. - # Use $CC to link under sequent, because it throws in some extra .o
  32412. - # files that make .init and .fini sections work.
  32413. - archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  32414. - else
  32415. - archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  32416. - fi
  32417. - hardcode_libdir_flag_spec='-L$libdir'
  32418. - hardcode_direct=yes
  32419. - hardcode_minus_L=yes
  32420. - hardcode_shlibpath_var=no
  32421. - ;;
  32422. - sysv4)
  32423. - case $host_vendor in
  32424. - sni)
  32425. - archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  32426. - hardcode_direct=yes # is this really true???
  32427. - ;;
  32428. - siemens)
  32429. - ## LD is ld it makes a PLAMLIB
  32430. - ## CC just makes a GrossModule.
  32431. - archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  32432. - reload_cmds='$CC -r -o $output$reload_objs'
  32433. - hardcode_direct=no
  32434. - ;;
  32435. - motorola)
  32436. - archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  32437. - hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  32438. - ;;
  32439. - esac
  32440. - runpath_var='LD_RUN_PATH'
  32441. - hardcode_shlibpath_var=no
  32442. - ;;
  32443. - sysv4.3*)
  32444. - archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  32445. - hardcode_shlibpath_var=no
  32446. - export_dynamic_flag_spec='-Bexport'
  32447. - ;;
  32448. - sysv4*MP*)
  32449. - if test -d /usr/nec; then
  32450. - archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  32451. - hardcode_shlibpath_var=no
  32452. - runpath_var=LD_RUN_PATH
  32453. - hardcode_runpath_var=yes
  32454. - ld_shlibs=yes
  32455. - fi
  32456. - ;;
  32457. - sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
  32458. - no_undefined_flag='${wl}-z,text'
  32459. - archive_cmds_need_lc=no
  32460. - hardcode_shlibpath_var=no
  32461. - runpath_var='LD_RUN_PATH'
  32462. - if test "$GCC" = yes; then
  32463. - archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  32464. - archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  32465. - else
  32466. - archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  32467. - archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  32468. - fi
  32469. - ;;
  32470. - sysv5* | sco3.2v5* | sco5v6*)
  32471. - # Note: We can NOT use -z defs as we might desire, because we do not
  32472. - # link with -lc, and that would cause any symbols used from libc to
  32473. - # always be unresolved, which means just about no library would
  32474. - # ever link correctly. If we're not using GNU ld we use -z text
  32475. - # though, which does catch some bad symbols but isn't as heavy-handed
  32476. - # as -z defs.
  32477. - no_undefined_flag='${wl}-z,text'
  32478. - allow_undefined_flag='${wl}-z,nodefs'
  32479. - archive_cmds_need_lc=no
  32480. - hardcode_shlibpath_var=no
  32481. - hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
  32482. - hardcode_libdir_separator=':'
  32483. - link_all_deplibs=yes
  32484. - export_dynamic_flag_spec='${wl}-Bexport'
  32485. - runpath_var='LD_RUN_PATH'
  32486. - if test "$GCC" = yes; then
  32487. - archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  32488. - archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  32489. - else
  32490. - archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  32491. - archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  32492. - fi
  32493. - ;;
  32494. - uts4*)
  32495. - archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  32496. - hardcode_libdir_flag_spec='-L$libdir'
  32497. - hardcode_shlibpath_var=no
  32498. - ;;
  32499. - *)
  32500. - ld_shlibs=no
  32501. - ;;
  32502. - esac
  32503. - fi
  32504. -{ echo "$as_me:$LINENO: result: $ld_shlibs" >&5
  32505. -echo "${ECHO_T}$ld_shlibs" >&6; }
  32506. -test "$ld_shlibs" = no && can_build_shared=no
  32507. +test -z "$LN_S" && LN_S="ln -s"
  32508. -#
  32509. -# Do we need to explicitly link libc?
  32510. -#
  32511. -case "x$archive_cmds_need_lc" in
  32512. -x|xyes)
  32513. - # Assume -lc should be added
  32514. - archive_cmds_need_lc=yes
  32515. - if test "$enable_shared" = yes && test "$GCC" = yes; then
  32516. - case $archive_cmds in
  32517. - *'~'*)
  32518. - # FIXME: we may have to deal with multi-command sequences.
  32519. - ;;
  32520. - '$CC '*)
  32521. - # Test whether the compiler implicitly links with -lc since on some
  32522. - # systems, -lgcc has to come before -lc. If gcc already passes -lc
  32523. - # to ld, don't add -lc before -lgcc.
  32524. - { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
  32525. -echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
  32526. - $rm conftest*
  32527. - printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  32528. - if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  32529. - (eval $ac_compile) 2>&5
  32530. - ac_status=$?
  32531. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  32532. - (exit $ac_status); } 2>conftest.err; then
  32533. - soname=conftest
  32534. - lib=conftest
  32535. - libobjs=conftest.$ac_objext
  32536. - deplibs=
  32537. - wl=$lt_prog_compiler_wl
  32538. - pic_flag=$lt_prog_compiler_pic
  32539. - compiler_flags=-v
  32540. - linker_flags=-v
  32541. - verstring=
  32542. - output_objdir=.
  32543. - libname=conftest
  32544. - lt_save_allow_undefined_flag=$allow_undefined_flag
  32545. - allow_undefined_flag=
  32546. - if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
  32547. - (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
  32548. - ac_status=$?
  32549. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  32550. - (exit $ac_status); }
  32551. - then
  32552. - archive_cmds_need_lc=no
  32553. - else
  32554. - archive_cmds_need_lc=yes
  32555. - fi
  32556. - allow_undefined_flag=$lt_save_allow_undefined_flag
  32557. - else
  32558. - cat conftest.err 1>&5
  32559. - fi
  32560. - $rm conftest*
  32561. - { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
  32562. -echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
  32563. - ;;
  32564. - esac
  32565. - fi
  32566. - ;;
  32567. -esac
  32568. -{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
  32569. -echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
  32570. -library_names_spec=
  32571. -libname_spec='lib$name'
  32572. -soname_spec=
  32573. -shrext_cmds=".so"
  32574. -postinstall_cmds=
  32575. -postuninstall_cmds=
  32576. -finish_cmds=
  32577. -finish_eval=
  32578. -shlibpath_var=
  32579. -shlibpath_overrides_runpath=unknown
  32580. -version_type=none
  32581. -dynamic_linker="$host_os ld.so"
  32582. -sys_lib_dlsearch_path_spec="/lib /usr/lib"
  32583. -if test "$GCC" = yes; then
  32584. - sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  32585. - if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
  32586. - # if the path contains ";" then we assume it to be the separator
  32587. - # otherwise default to the standard path separator (i.e. ":") - it is
  32588. - # assumed that no part of a normal pathname contains ";" but that should
  32589. - # okay in the real world where ";" in dirpaths is itself problematic.
  32590. - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  32591. - else
  32592. - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  32593. - fi
  32594. +
  32595. +
  32596. +
  32597. +
  32598. +
  32599. +
  32600. +
  32601. +
  32602. +
  32603. +
  32604. +if test -n "${ZSH_VERSION+set}" ; then
  32605. + setopt NO_GLOB_SUBST
  32606. +fi
  32607. +
  32608. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
  32609. +$as_echo_n "checking for objdir... " >&6; }
  32610. +if test "${lt_cv_objdir+set}" = set; then :
  32611. + $as_echo_n "(cached) " >&6
  32612. else
  32613. - sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  32614. + rm -f .libs 2>/dev/null
  32615. +mkdir .libs 2>/dev/null
  32616. +if test -d .libs; then
  32617. + lt_cv_objdir=.libs
  32618. +else
  32619. + # MS-DOS does not allow filenames that begin with a dot.
  32620. + lt_cv_objdir=_libs
  32621. fi
  32622. -need_lib_prefix=unknown
  32623. -hardcode_into_libs=no
  32624. +rmdir .libs 2>/dev/null
  32625. +fi
  32626. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
  32627. +$as_echo "$lt_cv_objdir" >&6; }
  32628. +objdir=$lt_cv_objdir
  32629. -# when you set need_version to no, make sure it does not cause -set_version
  32630. -# flags to be left without arguments
  32631. -need_version=unknown
  32632. -case $host_os in
  32633. -aix3*)
  32634. - version_type=linux
  32635. - library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  32636. - shlibpath_var=LIBPATH
  32637. - # AIX 3 has no versioning support, so we append a major version to the name.
  32638. - soname_spec='${libname}${release}${shared_ext}$major'
  32639. - ;;
  32640. -aix4* | aix5*)
  32641. - version_type=linux
  32642. - need_lib_prefix=no
  32643. - need_version=no
  32644. - hardcode_into_libs=yes
  32645. - if test "$host_cpu" = ia64; then
  32646. - # AIX 5 supports IA64
  32647. - library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  32648. - shlibpath_var=LD_LIBRARY_PATH
  32649. - else
  32650. - # With GCC up to 2.95.x, collect2 would create an import file
  32651. - # for dependence libraries. The import file would start with
  32652. - # the line `#! .'. This would cause the generated library to
  32653. - # depend on `.', always an invalid library. This was fixed in
  32654. - # development snapshots of GCC prior to 3.0.
  32655. - case $host_os in
  32656. - aix4 | aix4.[01] | aix4.[01].*)
  32657. - if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  32658. - echo ' yes '
  32659. - echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
  32660. - :
  32661. - else
  32662. - can_build_shared=no
  32663. - fi
  32664. - ;;
  32665. - esac
  32666. - # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  32667. - # soname into executable. Probably we can add versioning support to
  32668. - # collect2, so additional links can be useful in future.
  32669. - if test "$aix_use_runtimelinking" = yes; then
  32670. - # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  32671. - # instead of lib<name>.a to let people know that these are not
  32672. - # typical AIX shared libraries.
  32673. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  32674. - else
  32675. - # We preserve .a as extension for shared libraries through AIX4.2
  32676. - # and later when we are not doing run time linking.
  32677. - library_names_spec='${libname}${release}.a $libname.a'
  32678. - soname_spec='${libname}${release}${shared_ext}$major'
  32679. - fi
  32680. - shlibpath_var=LIBPATH
  32681. - fi
  32682. - ;;
  32683. -amigaos*)
  32684. - library_names_spec='$libname.ixlibrary $libname.a'
  32685. - # Create ${libname}_ixlibrary.a entries in /sys/libs.
  32686. - 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'
  32687. - ;;
  32688. +cat >>confdefs.h <<_ACEOF
  32689. +#define LT_OBJDIR "$lt_cv_objdir/"
  32690. +_ACEOF
  32691. -beos*)
  32692. - library_names_spec='${libname}${shared_ext}'
  32693. - dynamic_linker="$host_os ld.so"
  32694. - shlibpath_var=LIBRARY_PATH
  32695. - ;;
  32696. -bsdi[45]*)
  32697. - version_type=linux
  32698. - need_version=no
  32699. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  32700. - soname_spec='${libname}${release}${shared_ext}$major'
  32701. - finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  32702. - shlibpath_var=LD_LIBRARY_PATH
  32703. - sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  32704. - sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  32705. - # the default ld.so.conf also contains /usr/contrib/lib and
  32706. - # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  32707. - # libtool to hard-code these into programs
  32708. - ;;
  32709. -cygwin* | mingw* | pw32*)
  32710. - version_type=windows
  32711. - shrext_cmds=".dll"
  32712. - need_version=no
  32713. - need_lib_prefix=no
  32714. - case $GCC,$host_os in
  32715. - yes,cygwin* | yes,mingw* | yes,pw32*)
  32716. - library_names_spec='$libname.dll.a'
  32717. - # DLL is installed to $(libdir)/../bin by postinstall_cmds
  32718. - postinstall_cmds='base_file=`basename \${file}`~
  32719. - dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
  32720. - dldir=$destdir/`dirname \$dlpath`~
  32721. - test -d \$dldir || mkdir -p \$dldir~
  32722. - $install_prog $dir/$dlname \$dldir/$dlname~
  32723. - chmod a+x \$dldir/$dlname'
  32724. - postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  32725. - dlpath=$dir/\$dldll~
  32726. - $rm \$dlpath'
  32727. - shlibpath_overrides_runpath=yes
  32728. - case $host_os in
  32729. - cygwin*)
  32730. - # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  32731. - soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  32732. - sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  32733. - ;;
  32734. - mingw*)
  32735. - # MinGW DLLs use traditional 'lib' prefix
  32736. - soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  32737. - sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  32738. - if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
  32739. - # It is most probably a Windows format PATH printed by
  32740. - # mingw gcc, but we are running on Cygwin. Gcc prints its search
  32741. - # path with ; separators, and with drive letters. We can handle the
  32742. - # drive letters (cygwin fileutils understands them), so leave them,
  32743. - # especially as we might pass files found there to a mingw objdump,
  32744. - # which wouldn't understand a cygwinified path. Ahh.
  32745. - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  32746. - else
  32747. - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  32748. - fi
  32749. - ;;
  32750. - pw32*)
  32751. - # pw32 DLLs use 'pw' prefix rather than 'lib'
  32752. - library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  32753. - ;;
  32754. - esac
  32755. - ;;
  32756. - *)
  32757. - library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  32758. - ;;
  32759. - esac
  32760. - dynamic_linker='Win32 ld.exe'
  32761. - # FIXME: first we should search . and the directory the executable is in
  32762. - shlibpath_var=PATH
  32763. - ;;
  32764. -darwin* | rhapsody*)
  32765. - dynamic_linker="$host_os dyld"
  32766. - version_type=darwin
  32767. - need_lib_prefix=no
  32768. - need_version=no
  32769. - library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  32770. - soname_spec='${libname}${release}${major}$shared_ext'
  32771. - shlibpath_overrides_runpath=yes
  32772. - shlibpath_var=DYLD_LIBRARY_PATH
  32773. - shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  32774. - # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
  32775. - if test "$GCC" = yes; then
  32776. - 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"`
  32777. - else
  32778. - sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
  32779. - fi
  32780. - sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  32781. - ;;
  32782. -
  32783. -dgux*)
  32784. - version_type=linux
  32785. - need_lib_prefix=no
  32786. - need_version=no
  32787. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  32788. - soname_spec='${libname}${release}${shared_ext}$major'
  32789. - shlibpath_var=LD_LIBRARY_PATH
  32790. - ;;
  32791. -
  32792. -freebsd1*)
  32793. - dynamic_linker=no
  32794. - ;;
  32795. -
  32796. -kfreebsd*-gnu)
  32797. - version_type=linux
  32798. - need_lib_prefix=no
  32799. - need_version=no
  32800. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  32801. - soname_spec='${libname}${release}${shared_ext}$major'
  32802. - shlibpath_var=LD_LIBRARY_PATH
  32803. - shlibpath_overrides_runpath=no
  32804. - hardcode_into_libs=yes
  32805. - dynamic_linker='GNU ld.so'
  32806. - ;;
  32807. -
  32808. -freebsd* | dragonfly*)
  32809. - # DragonFly does not have aout. When/if they implement a new
  32810. - # versioning mechanism, adjust this.
  32811. - if test -x /usr/bin/objformat; then
  32812. - objformat=`/usr/bin/objformat`
  32813. - else
  32814. - case $host_os in
  32815. - freebsd[123]*) objformat=aout ;;
  32816. - *) objformat=elf ;;
  32817. - esac
  32818. - fi
  32819. - version_type=freebsd-$objformat
  32820. - case $version_type in
  32821. - freebsd-elf*)
  32822. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  32823. - need_version=no
  32824. - need_lib_prefix=no
  32825. - ;;
  32826. - freebsd-*)
  32827. - library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  32828. - need_version=yes
  32829. - ;;
  32830. - esac
  32831. - shlibpath_var=LD_LIBRARY_PATH
  32832. - case $host_os in
  32833. - freebsd2*)
  32834. - shlibpath_overrides_runpath=yes
  32835. - ;;
  32836. - freebsd3.[01]* | freebsdelf3.[01]*)
  32837. - shlibpath_overrides_runpath=yes
  32838. - hardcode_into_libs=yes
  32839. - ;;
  32840. - freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  32841. - freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  32842. - shlibpath_overrides_runpath=no
  32843. - hardcode_into_libs=yes
  32844. - ;;
  32845. - freebsd*) # from 4.6 on
  32846. - shlibpath_overrides_runpath=yes
  32847. - hardcode_into_libs=yes
  32848. - ;;
  32849. - esac
  32850. - ;;
  32851. -
  32852. -gnu*)
  32853. - version_type=linux
  32854. - need_lib_prefix=no
  32855. - need_version=no
  32856. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  32857. - soname_spec='${libname}${release}${shared_ext}$major'
  32858. - shlibpath_var=LD_LIBRARY_PATH
  32859. - hardcode_into_libs=yes
  32860. - ;;
  32861. -
  32862. -hpux9* | hpux10* | hpux11*)
  32863. - # Give a soname corresponding to the major version so that dld.sl refuses to
  32864. - # link against other versions.
  32865. - version_type=sunos
  32866. - need_lib_prefix=no
  32867. - need_version=no
  32868. - case $host_cpu in
  32869. - ia64*)
  32870. - shrext_cmds='.so'
  32871. - hardcode_into_libs=yes
  32872. - dynamic_linker="$host_os dld.so"
  32873. - shlibpath_var=LD_LIBRARY_PATH
  32874. - shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  32875. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  32876. - soname_spec='${libname}${release}${shared_ext}$major'
  32877. - if test "X$HPUX_IA64_MODE" = X32; then
  32878. - sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  32879. - else
  32880. - sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  32881. - fi
  32882. - sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  32883. - ;;
  32884. - hppa*64*)
  32885. - shrext_cmds='.sl'
  32886. - hardcode_into_libs=yes
  32887. - dynamic_linker="$host_os dld.sl"
  32888. - shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  32889. - shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  32890. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  32891. - soname_spec='${libname}${release}${shared_ext}$major'
  32892. - sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  32893. - sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  32894. - ;;
  32895. - *)
  32896. - shrext_cmds='.sl'
  32897. - dynamic_linker="$host_os dld.sl"
  32898. - shlibpath_var=SHLIB_PATH
  32899. - shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  32900. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  32901. - soname_spec='${libname}${release}${shared_ext}$major'
  32902. - ;;
  32903. - esac
  32904. - # HP-UX runs *really* slowly unless shared libraries are mode 555.
  32905. - postinstall_cmds='chmod 555 $lib'
  32906. - ;;
  32907. -
  32908. -interix3*)
  32909. - version_type=linux
  32910. - need_lib_prefix=no
  32911. - need_version=no
  32912. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  32913. - soname_spec='${libname}${release}${shared_ext}$major'
  32914. - dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  32915. - shlibpath_var=LD_LIBRARY_PATH
  32916. - shlibpath_overrides_runpath=no
  32917. - hardcode_into_libs=yes
  32918. - ;;
  32919. -
  32920. -irix5* | irix6* | nonstopux*)
  32921. - case $host_os in
  32922. - nonstopux*) version_type=nonstopux ;;
  32923. - *)
  32924. - if test "$lt_cv_prog_gnu_ld" = yes; then
  32925. - version_type=linux
  32926. - else
  32927. - version_type=irix
  32928. - fi ;;
  32929. - esac
  32930. - need_lib_prefix=no
  32931. - need_version=no
  32932. - soname_spec='${libname}${release}${shared_ext}$major'
  32933. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  32934. - case $host_os in
  32935. - irix5* | nonstopux*)
  32936. - libsuff= shlibsuff=
  32937. - ;;
  32938. - *)
  32939. - case $LD in # libtool.m4 will add one of these switches to LD
  32940. - *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  32941. - libsuff= shlibsuff= libmagic=32-bit;;
  32942. - *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  32943. - libsuff=32 shlibsuff=N32 libmagic=N32;;
  32944. - *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  32945. - libsuff=64 shlibsuff=64 libmagic=64-bit;;
  32946. - *) libsuff= shlibsuff= libmagic=never-match;;
  32947. - esac
  32948. - ;;
  32949. - esac
  32950. - shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  32951. - shlibpath_overrides_runpath=no
  32952. - sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  32953. - sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  32954. - hardcode_into_libs=yes
  32955. - ;;
  32956. -
  32957. -# No shared lib support for Linux oldld, aout, or coff.
  32958. -linux*oldld* | linux*aout* | linux*coff*)
  32959. - dynamic_linker=no
  32960. - ;;
  32961. -
  32962. -# This must be Linux ELF.
  32963. -linux*)
  32964. - version_type=linux
  32965. - need_lib_prefix=no
  32966. - need_version=no
  32967. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  32968. - soname_spec='${libname}${release}${shared_ext}$major'
  32969. - finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  32970. - shlibpath_var=LD_LIBRARY_PATH
  32971. - shlibpath_overrides_runpath=no
  32972. - # This implies no fast_install, which is unacceptable.
  32973. - # Some rework will be needed to allow for fast_install
  32974. - # before this can be enabled.
  32975. - hardcode_into_libs=yes
  32976. -
  32977. - # Append ld.so.conf contents to the search path
  32978. - if test -f /etc/ld.so.conf; then
  32979. - lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
  32980. - sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  32981. - fi
  32982. -
  32983. - # We used to test for /lib/ld.so.1 and disable shared libraries on
  32984. - # powerpc, because MkLinux only supported shared libraries with the
  32985. - # GNU dynamic linker. Since this was broken with cross compilers,
  32986. - # most powerpc-linux boxes support dynamic linking these days and
  32987. - # people can always --disable-shared, the test was removed, and we
  32988. - # assume the GNU/Linux dynamic linker is in use.
  32989. - dynamic_linker='GNU/Linux ld.so'
  32990. - ;;
  32991. -
  32992. -knetbsd*-gnu)
  32993. - version_type=linux
  32994. - need_lib_prefix=no
  32995. - need_version=no
  32996. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  32997. - soname_spec='${libname}${release}${shared_ext}$major'
  32998. - shlibpath_var=LD_LIBRARY_PATH
  32999. - shlibpath_overrides_runpath=no
  33000. - hardcode_into_libs=yes
  33001. - dynamic_linker='GNU ld.so'
  33002. - ;;
  33003. -
  33004. -netbsd*)
  33005. - version_type=sunos
  33006. - need_lib_prefix=no
  33007. - need_version=no
  33008. - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  33009. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  33010. - finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  33011. - dynamic_linker='NetBSD (a.out) ld.so'
  33012. - else
  33013. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  33014. - soname_spec='${libname}${release}${shared_ext}$major'
  33015. - dynamic_linker='NetBSD ld.elf_so'
  33016. - fi
  33017. - shlibpath_var=LD_LIBRARY_PATH
  33018. - shlibpath_overrides_runpath=yes
  33019. - hardcode_into_libs=yes
  33020. - ;;
  33021. -
  33022. -newsos6)
  33023. - version_type=linux
  33024. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  33025. - shlibpath_var=LD_LIBRARY_PATH
  33026. - shlibpath_overrides_runpath=yes
  33027. - ;;
  33028. -
  33029. -nto-qnx*)
  33030. - version_type=linux
  33031. - need_lib_prefix=no
  33032. - need_version=no
  33033. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  33034. - soname_spec='${libname}${release}${shared_ext}$major'
  33035. - shlibpath_var=LD_LIBRARY_PATH
  33036. - shlibpath_overrides_runpath=yes
  33037. - ;;
  33038. -
  33039. -openbsd*)
  33040. - version_type=sunos
  33041. - sys_lib_dlsearch_path_spec="/usr/lib"
  33042. - need_lib_prefix=no
  33043. - # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  33044. - case $host_os in
  33045. - openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  33046. - *) need_version=no ;;
  33047. - esac
  33048. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  33049. - finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  33050. - shlibpath_var=LD_LIBRARY_PATH
  33051. - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  33052. - case $host_os in
  33053. - openbsd2.[89] | openbsd2.[89].*)
  33054. - shlibpath_overrides_runpath=no
  33055. - ;;
  33056. - *)
  33057. - shlibpath_overrides_runpath=yes
  33058. - ;;
  33059. - esac
  33060. - else
  33061. - shlibpath_overrides_runpath=yes
  33062. - fi
  33063. - ;;
  33064. -
  33065. -os2*)
  33066. - libname_spec='$name'
  33067. - shrext_cmds=".dll"
  33068. - need_lib_prefix=no
  33069. - library_names_spec='$libname${shared_ext} $libname.a'
  33070. - dynamic_linker='OS/2 ld.exe'
  33071. - shlibpath_var=LIBPATH
  33072. - ;;
  33073. -
  33074. -osf3* | osf4* | osf5*)
  33075. - version_type=osf
  33076. - need_lib_prefix=no
  33077. - need_version=no
  33078. - soname_spec='${libname}${release}${shared_ext}$major'
  33079. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  33080. - shlibpath_var=LD_LIBRARY_PATH
  33081. - sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  33082. - sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  33083. - ;;
  33084. -
  33085. -solaris*)
  33086. - version_type=linux
  33087. - need_lib_prefix=no
  33088. - need_version=no
  33089. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  33090. - soname_spec='${libname}${release}${shared_ext}$major'
  33091. - shlibpath_var=LD_LIBRARY_PATH
  33092. - shlibpath_overrides_runpath=yes
  33093. - hardcode_into_libs=yes
  33094. - # ldd complains unless libraries are executable
  33095. - postinstall_cmds='chmod +x $lib'
  33096. - ;;
  33097. -
  33098. -sunos4*)
  33099. - version_type=sunos
  33100. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  33101. - finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  33102. - shlibpath_var=LD_LIBRARY_PATH
  33103. - shlibpath_overrides_runpath=yes
  33104. - if test "$with_gnu_ld" = yes; then
  33105. - need_lib_prefix=no
  33106. - fi
  33107. - need_version=yes
  33108. - ;;
  33109. -
  33110. -sysv4 | sysv4.3*)
  33111. - version_type=linux
  33112. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  33113. - soname_spec='${libname}${release}${shared_ext}$major'
  33114. - shlibpath_var=LD_LIBRARY_PATH
  33115. - case $host_vendor in
  33116. - sni)
  33117. - shlibpath_overrides_runpath=no
  33118. - need_lib_prefix=no
  33119. - export_dynamic_flag_spec='${wl}-Blargedynsym'
  33120. - runpath_var=LD_RUN_PATH
  33121. - ;;
  33122. - siemens)
  33123. - need_lib_prefix=no
  33124. - ;;
  33125. - motorola)
  33126. - need_lib_prefix=no
  33127. - need_version=no
  33128. - shlibpath_overrides_runpath=no
  33129. - sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  33130. - ;;
  33131. - esac
  33132. - ;;
  33133. -
  33134. -sysv4*MP*)
  33135. - if test -d /usr/nec ;then
  33136. - version_type=linux
  33137. - library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  33138. - soname_spec='$libname${shared_ext}.$major'
  33139. - shlibpath_var=LD_LIBRARY_PATH
  33140. - fi
  33141. - ;;
  33142. -
  33143. -sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  33144. - version_type=freebsd-elf
  33145. - need_lib_prefix=no
  33146. - need_version=no
  33147. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  33148. - soname_spec='${libname}${release}${shared_ext}$major'
  33149. - shlibpath_var=LD_LIBRARY_PATH
  33150. - hardcode_into_libs=yes
  33151. - if test "$with_gnu_ld" = yes; then
  33152. - sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  33153. - shlibpath_overrides_runpath=no
  33154. - else
  33155. - sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  33156. - shlibpath_overrides_runpath=yes
  33157. - case $host_os in
  33158. - sco3.2v5*)
  33159. - sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  33160. - ;;
  33161. - esac
  33162. - fi
  33163. - sys_lib_dlsearch_path_spec='/usr/lib'
  33164. - ;;
  33165. -
  33166. -uts4*)
  33167. - version_type=linux
  33168. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  33169. - soname_spec='${libname}${release}${shared_ext}$major'
  33170. - shlibpath_var=LD_LIBRARY_PATH
  33171. - ;;
  33172. -
  33173. -*)
  33174. - dynamic_linker=no
  33175. - ;;
  33176. -esac
  33177. -{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
  33178. -echo "${ECHO_T}$dynamic_linker" >&6; }
  33179. -test "$dynamic_linker" = no && can_build_shared=no
  33180. -
  33181. -variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  33182. -if test "$GCC" = yes; then
  33183. - variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  33184. -fi
  33185. -
  33186. -{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
  33187. -echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
  33188. -hardcode_action=
  33189. -if test -n "$hardcode_libdir_flag_spec" || \
  33190. - test -n "$runpath_var" || \
  33191. - test "X$hardcode_automatic" = "Xyes" ; then
  33192. -
  33193. - # We can hardcode non-existant directories.
  33194. - if test "$hardcode_direct" != no &&
  33195. - # If the only mechanism to avoid hardcoding is shlibpath_var, we
  33196. - # have to relink, otherwise we might link with an installed library
  33197. - # when we should be linking with a yet-to-be-installed one
  33198. - ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
  33199. - test "$hardcode_minus_L" != no; then
  33200. - # Linking always hardcodes the temporary library directory.
  33201. - hardcode_action=relink
  33202. - else
  33203. - # We can link without hardcoding, and we can hardcode nonexisting dirs.
  33204. - hardcode_action=immediate
  33205. - fi
  33206. -else
  33207. - # We cannot hardcode anything, or else we can only hardcode existing
  33208. - # directories.
  33209. - hardcode_action=unsupported
  33210. -fi
  33211. -{ echo "$as_me:$LINENO: result: $hardcode_action" >&5
  33212. -echo "${ECHO_T}$hardcode_action" >&6; }
  33213. -
  33214. -if test "$hardcode_action" = relink; then
  33215. - # Fast installation is not supported
  33216. - enable_fast_install=no
  33217. -elif test "$shlibpath_overrides_runpath" = yes ||
  33218. - test "$enable_shared" = no; then
  33219. - # Fast installation is not necessary
  33220. - enable_fast_install=needless
  33221. -fi
  33222. -
  33223. -striplib=
  33224. -old_striplib=
  33225. -{ echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
  33226. -echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
  33227. -if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
  33228. - test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  33229. - test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  33230. - { echo "$as_me:$LINENO: result: yes" >&5
  33231. -echo "${ECHO_T}yes" >&6; }
  33232. -else
  33233. -# FIXME - insert some real tests, host_os isn't really good enough
  33234. - case $host_os in
  33235. - darwin*)
  33236. - if test -n "$STRIP" ; then
  33237. - striplib="$STRIP -x"
  33238. - { echo "$as_me:$LINENO: result: yes" >&5
  33239. -echo "${ECHO_T}yes" >&6; }
  33240. - else
  33241. - { echo "$as_me:$LINENO: result: no" >&5
  33242. -echo "${ECHO_T}no" >&6; }
  33243. -fi
  33244. - ;;
  33245. - *)
  33246. - { echo "$as_me:$LINENO: result: no" >&5
  33247. -echo "${ECHO_T}no" >&6; }
  33248. - ;;
  33249. - esac
  33250. -fi
  33251. -
  33252. -if test "x$enable_dlopen" != xyes; then
  33253. - enable_dlopen=unknown
  33254. - enable_dlopen_self=unknown
  33255. - enable_dlopen_self_static=unknown
  33256. -else
  33257. - lt_cv_dlopen=no
  33258. - lt_cv_dlopen_libs=
  33259. -
  33260. - case $host_os in
  33261. - beos*)
  33262. - lt_cv_dlopen="load_add_on"
  33263. - lt_cv_dlopen_libs=
  33264. - lt_cv_dlopen_self=yes
  33265. - ;;
  33266. -
  33267. - mingw* | pw32*)
  33268. - lt_cv_dlopen="LoadLibrary"
  33269. - lt_cv_dlopen_libs=
  33270. - ;;
  33271. -
  33272. - cygwin*)
  33273. - lt_cv_dlopen="dlopen"
  33274. - lt_cv_dlopen_libs=
  33275. - ;;
  33276. -
  33277. - darwin*)
  33278. - # if libdl is installed we need to link against it
  33279. - { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
  33280. -echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
  33281. -if test "${ac_cv_lib_dl_dlopen+set}" = set; then
  33282. - echo $ECHO_N "(cached) $ECHO_C" >&6
  33283. -else
  33284. - ac_check_lib_save_LIBS=$LIBS
  33285. -LIBS="-ldl $LIBS"
  33286. -cat >conftest.$ac_ext <<_ACEOF
  33287. -/* confdefs.h. */
  33288. -_ACEOF
  33289. -cat confdefs.h >>conftest.$ac_ext
  33290. -cat >>conftest.$ac_ext <<_ACEOF
  33291. -/* end confdefs.h. */
  33292. -
  33293. -/* Override any GCC internal prototype to avoid an error.
  33294. - Use char because int might match the return type of a GCC
  33295. - builtin and then its argument prototype would still apply. */
  33296. -#ifdef __cplusplus
  33297. -extern "C"
  33298. -#endif
  33299. -char dlopen ();
  33300. -int
  33301. -main ()
  33302. -{
  33303. -return dlopen ();
  33304. - ;
  33305. - return 0;
  33306. -}
  33307. -_ACEOF
  33308. -rm -f conftest.$ac_objext conftest$ac_exeext
  33309. -if { (ac_try="$ac_link"
  33310. -case "(($ac_try" in
  33311. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  33312. - *) ac_try_echo=$ac_try;;
  33313. -esac
  33314. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  33315. - (eval "$ac_link") 2>conftest.er1
  33316. - ac_status=$?
  33317. - grep -v '^ *+' conftest.er1 >conftest.err
  33318. - rm -f conftest.er1
  33319. - cat conftest.err >&5
  33320. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  33321. - (exit $ac_status); } &&
  33322. - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  33323. - { (case "(($ac_try" in
  33324. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  33325. - *) ac_try_echo=$ac_try;;
  33326. -esac
  33327. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  33328. - (eval "$ac_try") 2>&5
  33329. - ac_status=$?
  33330. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  33331. - (exit $ac_status); }; } &&
  33332. - { ac_try='test -s conftest$ac_exeext'
  33333. - { (case "(($ac_try" in
  33334. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  33335. - *) ac_try_echo=$ac_try;;
  33336. -esac
  33337. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  33338. - (eval "$ac_try") 2>&5
  33339. - ac_status=$?
  33340. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  33341. - (exit $ac_status); }; }; then
  33342. - ac_cv_lib_dl_dlopen=yes
  33343. -else
  33344. - echo "$as_me: failed program was:" >&5
  33345. -sed 's/^/| /' conftest.$ac_ext >&5
  33346. -
  33347. - ac_cv_lib_dl_dlopen=no
  33348. -fi
  33349. -
  33350. -rm -f core conftest.err conftest.$ac_objext \
  33351. - conftest$ac_exeext conftest.$ac_ext
  33352. -LIBS=$ac_check_lib_save_LIBS
  33353. -fi
  33354. -{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
  33355. -echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
  33356. -if test $ac_cv_lib_dl_dlopen = yes; then
  33357. - lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  33358. -else
  33359. -
  33360. - lt_cv_dlopen="dyld"
  33361. - lt_cv_dlopen_libs=
  33362. - lt_cv_dlopen_self=yes
  33363. -
  33364. -fi
  33365. -
  33366. - ;;
  33367. -
  33368. - *)
  33369. - { echo "$as_me:$LINENO: checking for shl_load" >&5
  33370. -echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
  33371. -if test "${ac_cv_func_shl_load+set}" = set; then
  33372. - echo $ECHO_N "(cached) $ECHO_C" >&6
  33373. -else
  33374. - cat >conftest.$ac_ext <<_ACEOF
  33375. -/* confdefs.h. */
  33376. -_ACEOF
  33377. -cat confdefs.h >>conftest.$ac_ext
  33378. -cat >>conftest.$ac_ext <<_ACEOF
  33379. -/* end confdefs.h. */
  33380. -/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
  33381. - For example, HP-UX 11i <limits.h> declares gettimeofday. */
  33382. -#define shl_load innocuous_shl_load
  33383. -
  33384. -/* System header to define __stub macros and hopefully few prototypes,
  33385. - which can conflict with char shl_load (); below.
  33386. - Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  33387. - <limits.h> exists even on freestanding compilers. */
  33388. -
  33389. -#ifdef __STDC__
  33390. -# include <limits.h>
  33391. -#else
  33392. -# include <assert.h>
  33393. -#endif
  33394. -
  33395. -#undef shl_load
  33396. -
  33397. -/* Override any GCC internal prototype to avoid an error.
  33398. - Use char because int might match the return type of a GCC
  33399. - builtin and then its argument prototype would still apply. */
  33400. -#ifdef __cplusplus
  33401. -extern "C"
  33402. -#endif
  33403. -char shl_load ();
  33404. -/* The GNU C library defines this for functions which it implements
  33405. - to always fail with ENOSYS. Some functions are actually named
  33406. - something starting with __ and the normal name is an alias. */
  33407. -#if defined __stub_shl_load || defined __stub___shl_load
  33408. -choke me
  33409. -#endif
  33410. -
  33411. -int
  33412. -main ()
  33413. -{
  33414. -return shl_load ();
  33415. - ;
  33416. - return 0;
  33417. -}
  33418. -_ACEOF
  33419. -rm -f conftest.$ac_objext conftest$ac_exeext
  33420. -if { (ac_try="$ac_link"
  33421. -case "(($ac_try" in
  33422. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  33423. - *) ac_try_echo=$ac_try;;
  33424. -esac
  33425. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  33426. - (eval "$ac_link") 2>conftest.er1
  33427. - ac_status=$?
  33428. - grep -v '^ *+' conftest.er1 >conftest.err
  33429. - rm -f conftest.er1
  33430. - cat conftest.err >&5
  33431. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  33432. - (exit $ac_status); } &&
  33433. - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  33434. - { (case "(($ac_try" in
  33435. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  33436. - *) ac_try_echo=$ac_try;;
  33437. -esac
  33438. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  33439. - (eval "$ac_try") 2>&5
  33440. - ac_status=$?
  33441. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  33442. - (exit $ac_status); }; } &&
  33443. - { ac_try='test -s conftest$ac_exeext'
  33444. - { (case "(($ac_try" in
  33445. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  33446. - *) ac_try_echo=$ac_try;;
  33447. -esac
  33448. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  33449. - (eval "$ac_try") 2>&5
  33450. - ac_status=$?
  33451. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  33452. - (exit $ac_status); }; }; then
  33453. - ac_cv_func_shl_load=yes
  33454. -else
  33455. - echo "$as_me: failed program was:" >&5
  33456. -sed 's/^/| /' conftest.$ac_ext >&5
  33457. -
  33458. - ac_cv_func_shl_load=no
  33459. -fi
  33460. -
  33461. -rm -f core conftest.err conftest.$ac_objext \
  33462. - conftest$ac_exeext conftest.$ac_ext
  33463. -fi
  33464. -{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
  33465. -echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
  33466. -if test $ac_cv_func_shl_load = yes; then
  33467. - lt_cv_dlopen="shl_load"
  33468. -else
  33469. - { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
  33470. -echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
  33471. -if test "${ac_cv_lib_dld_shl_load+set}" = set; then
  33472. - echo $ECHO_N "(cached) $ECHO_C" >&6
  33473. -else
  33474. - ac_check_lib_save_LIBS=$LIBS
  33475. -LIBS="-ldld $LIBS"
  33476. -cat >conftest.$ac_ext <<_ACEOF
  33477. -/* confdefs.h. */
  33478. -_ACEOF
  33479. -cat confdefs.h >>conftest.$ac_ext
  33480. -cat >>conftest.$ac_ext <<_ACEOF
  33481. -/* end confdefs.h. */
  33482. -
  33483. -/* Override any GCC internal prototype to avoid an error.
  33484. - Use char because int might match the return type of a GCC
  33485. - builtin and then its argument prototype would still apply. */
  33486. -#ifdef __cplusplus
  33487. -extern "C"
  33488. -#endif
  33489. -char shl_load ();
  33490. -int
  33491. -main ()
  33492. -{
  33493. -return shl_load ();
  33494. - ;
  33495. - return 0;
  33496. -}
  33497. -_ACEOF
  33498. -rm -f conftest.$ac_objext conftest$ac_exeext
  33499. -if { (ac_try="$ac_link"
  33500. -case "(($ac_try" in
  33501. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  33502. - *) ac_try_echo=$ac_try;;
  33503. -esac
  33504. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  33505. - (eval "$ac_link") 2>conftest.er1
  33506. - ac_status=$?
  33507. - grep -v '^ *+' conftest.er1 >conftest.err
  33508. - rm -f conftest.er1
  33509. - cat conftest.err >&5
  33510. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  33511. - (exit $ac_status); } &&
  33512. - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  33513. - { (case "(($ac_try" in
  33514. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  33515. - *) ac_try_echo=$ac_try;;
  33516. -esac
  33517. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  33518. - (eval "$ac_try") 2>&5
  33519. - ac_status=$?
  33520. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  33521. - (exit $ac_status); }; } &&
  33522. - { ac_try='test -s conftest$ac_exeext'
  33523. - { (case "(($ac_try" in
  33524. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  33525. - *) ac_try_echo=$ac_try;;
  33526. -esac
  33527. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  33528. - (eval "$ac_try") 2>&5
  33529. - ac_status=$?
  33530. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  33531. - (exit $ac_status); }; }; then
  33532. - ac_cv_lib_dld_shl_load=yes
  33533. -else
  33534. - echo "$as_me: failed program was:" >&5
  33535. -sed 's/^/| /' conftest.$ac_ext >&5
  33536. -
  33537. - ac_cv_lib_dld_shl_load=no
  33538. -fi
  33539. -
  33540. -rm -f core conftest.err conftest.$ac_objext \
  33541. - conftest$ac_exeext conftest.$ac_ext
  33542. -LIBS=$ac_check_lib_save_LIBS
  33543. -fi
  33544. -{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
  33545. -echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
  33546. -if test $ac_cv_lib_dld_shl_load = yes; then
  33547. - lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
  33548. -else
  33549. - { echo "$as_me:$LINENO: checking for dlopen" >&5
  33550. -echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
  33551. -if test "${ac_cv_func_dlopen+set}" = set; then
  33552. - echo $ECHO_N "(cached) $ECHO_C" >&6
  33553. -else
  33554. - cat >conftest.$ac_ext <<_ACEOF
  33555. -/* confdefs.h. */
  33556. -_ACEOF
  33557. -cat confdefs.h >>conftest.$ac_ext
  33558. -cat >>conftest.$ac_ext <<_ACEOF
  33559. -/* end confdefs.h. */
  33560. -/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
  33561. - For example, HP-UX 11i <limits.h> declares gettimeofday. */
  33562. -#define dlopen innocuous_dlopen
  33563. -
  33564. -/* System header to define __stub macros and hopefully few prototypes,
  33565. - which can conflict with char dlopen (); below.
  33566. - Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  33567. - <limits.h> exists even on freestanding compilers. */
  33568. -
  33569. -#ifdef __STDC__
  33570. -# include <limits.h>
  33571. -#else
  33572. -# include <assert.h>
  33573. -#endif
  33574. -
  33575. -#undef dlopen
  33576. -
  33577. -/* Override any GCC internal prototype to avoid an error.
  33578. - Use char because int might match the return type of a GCC
  33579. - builtin and then its argument prototype would still apply. */
  33580. -#ifdef __cplusplus
  33581. -extern "C"
  33582. -#endif
  33583. -char dlopen ();
  33584. -/* The GNU C library defines this for functions which it implements
  33585. - to always fail with ENOSYS. Some functions are actually named
  33586. - something starting with __ and the normal name is an alias. */
  33587. -#if defined __stub_dlopen || defined __stub___dlopen
  33588. -choke me
  33589. -#endif
  33590. -
  33591. -int
  33592. -main ()
  33593. -{
  33594. -return dlopen ();
  33595. - ;
  33596. - return 0;
  33597. -}
  33598. -_ACEOF
  33599. -rm -f conftest.$ac_objext conftest$ac_exeext
  33600. -if { (ac_try="$ac_link"
  33601. -case "(($ac_try" in
  33602. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  33603. - *) ac_try_echo=$ac_try;;
  33604. -esac
  33605. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  33606. - (eval "$ac_link") 2>conftest.er1
  33607. - ac_status=$?
  33608. - grep -v '^ *+' conftest.er1 >conftest.err
  33609. - rm -f conftest.er1
  33610. - cat conftest.err >&5
  33611. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  33612. - (exit $ac_status); } &&
  33613. - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  33614. - { (case "(($ac_try" in
  33615. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  33616. - *) ac_try_echo=$ac_try;;
  33617. -esac
  33618. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  33619. - (eval "$ac_try") 2>&5
  33620. - ac_status=$?
  33621. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  33622. - (exit $ac_status); }; } &&
  33623. - { ac_try='test -s conftest$ac_exeext'
  33624. - { (case "(($ac_try" in
  33625. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  33626. - *) ac_try_echo=$ac_try;;
  33627. -esac
  33628. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  33629. - (eval "$ac_try") 2>&5
  33630. - ac_status=$?
  33631. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  33632. - (exit $ac_status); }; }; then
  33633. - ac_cv_func_dlopen=yes
  33634. -else
  33635. - echo "$as_me: failed program was:" >&5
  33636. -sed 's/^/| /' conftest.$ac_ext >&5
  33637. -
  33638. - ac_cv_func_dlopen=no
  33639. -fi
  33640. -
  33641. -rm -f core conftest.err conftest.$ac_objext \
  33642. - conftest$ac_exeext conftest.$ac_ext
  33643. -fi
  33644. -{ echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
  33645. -echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
  33646. -if test $ac_cv_func_dlopen = yes; then
  33647. - lt_cv_dlopen="dlopen"
  33648. -else
  33649. - { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
  33650. -echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
  33651. -if test "${ac_cv_lib_dl_dlopen+set}" = set; then
  33652. - echo $ECHO_N "(cached) $ECHO_C" >&6
  33653. -else
  33654. - ac_check_lib_save_LIBS=$LIBS
  33655. -LIBS="-ldl $LIBS"
  33656. -cat >conftest.$ac_ext <<_ACEOF
  33657. -/* confdefs.h. */
  33658. -_ACEOF
  33659. -cat confdefs.h >>conftest.$ac_ext
  33660. -cat >>conftest.$ac_ext <<_ACEOF
  33661. -/* end confdefs.h. */
  33662. -
  33663. -/* Override any GCC internal prototype to avoid an error.
  33664. - Use char because int might match the return type of a GCC
  33665. - builtin and then its argument prototype would still apply. */
  33666. -#ifdef __cplusplus
  33667. -extern "C"
  33668. -#endif
  33669. -char dlopen ();
  33670. -int
  33671. -main ()
  33672. -{
  33673. -return dlopen ();
  33674. - ;
  33675. - return 0;
  33676. -}
  33677. -_ACEOF
  33678. -rm -f conftest.$ac_objext conftest$ac_exeext
  33679. -if { (ac_try="$ac_link"
  33680. -case "(($ac_try" in
  33681. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  33682. - *) ac_try_echo=$ac_try;;
  33683. -esac
  33684. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  33685. - (eval "$ac_link") 2>conftest.er1
  33686. - ac_status=$?
  33687. - grep -v '^ *+' conftest.er1 >conftest.err
  33688. - rm -f conftest.er1
  33689. - cat conftest.err >&5
  33690. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  33691. - (exit $ac_status); } &&
  33692. - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  33693. - { (case "(($ac_try" in
  33694. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  33695. - *) ac_try_echo=$ac_try;;
  33696. -esac
  33697. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  33698. - (eval "$ac_try") 2>&5
  33699. - ac_status=$?
  33700. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  33701. - (exit $ac_status); }; } &&
  33702. - { ac_try='test -s conftest$ac_exeext'
  33703. - { (case "(($ac_try" in
  33704. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  33705. - *) ac_try_echo=$ac_try;;
  33706. -esac
  33707. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  33708. - (eval "$ac_try") 2>&5
  33709. - ac_status=$?
  33710. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  33711. - (exit $ac_status); }; }; then
  33712. - ac_cv_lib_dl_dlopen=yes
  33713. -else
  33714. - echo "$as_me: failed program was:" >&5
  33715. -sed 's/^/| /' conftest.$ac_ext >&5
  33716. -
  33717. - ac_cv_lib_dl_dlopen=no
  33718. -fi
  33719. -
  33720. -rm -f core conftest.err conftest.$ac_objext \
  33721. - conftest$ac_exeext conftest.$ac_ext
  33722. -LIBS=$ac_check_lib_save_LIBS
  33723. -fi
  33724. -{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
  33725. -echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
  33726. -if test $ac_cv_lib_dl_dlopen = yes; then
  33727. - lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  33728. -else
  33729. - { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
  33730. -echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
  33731. -if test "${ac_cv_lib_svld_dlopen+set}" = set; then
  33732. - echo $ECHO_N "(cached) $ECHO_C" >&6
  33733. -else
  33734. - ac_check_lib_save_LIBS=$LIBS
  33735. -LIBS="-lsvld $LIBS"
  33736. -cat >conftest.$ac_ext <<_ACEOF
  33737. -/* confdefs.h. */
  33738. -_ACEOF
  33739. -cat confdefs.h >>conftest.$ac_ext
  33740. -cat >>conftest.$ac_ext <<_ACEOF
  33741. -/* end confdefs.h. */
  33742. -
  33743. -/* Override any GCC internal prototype to avoid an error.
  33744. - Use char because int might match the return type of a GCC
  33745. - builtin and then its argument prototype would still apply. */
  33746. -#ifdef __cplusplus
  33747. -extern "C"
  33748. -#endif
  33749. -char dlopen ();
  33750. -int
  33751. -main ()
  33752. -{
  33753. -return dlopen ();
  33754. - ;
  33755. - return 0;
  33756. -}
  33757. -_ACEOF
  33758. -rm -f conftest.$ac_objext conftest$ac_exeext
  33759. -if { (ac_try="$ac_link"
  33760. -case "(($ac_try" in
  33761. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  33762. - *) ac_try_echo=$ac_try;;
  33763. -esac
  33764. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  33765. - (eval "$ac_link") 2>conftest.er1
  33766. - ac_status=$?
  33767. - grep -v '^ *+' conftest.er1 >conftest.err
  33768. - rm -f conftest.er1
  33769. - cat conftest.err >&5
  33770. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  33771. - (exit $ac_status); } &&
  33772. - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  33773. - { (case "(($ac_try" in
  33774. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  33775. - *) ac_try_echo=$ac_try;;
  33776. -esac
  33777. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  33778. - (eval "$ac_try") 2>&5
  33779. - ac_status=$?
  33780. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  33781. - (exit $ac_status); }; } &&
  33782. - { ac_try='test -s conftest$ac_exeext'
  33783. - { (case "(($ac_try" in
  33784. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  33785. - *) ac_try_echo=$ac_try;;
  33786. -esac
  33787. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  33788. - (eval "$ac_try") 2>&5
  33789. - ac_status=$?
  33790. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  33791. - (exit $ac_status); }; }; then
  33792. - ac_cv_lib_svld_dlopen=yes
  33793. -else
  33794. - echo "$as_me: failed program was:" >&5
  33795. -sed 's/^/| /' conftest.$ac_ext >&5
  33796. -
  33797. - ac_cv_lib_svld_dlopen=no
  33798. -fi
  33799. -
  33800. -rm -f core conftest.err conftest.$ac_objext \
  33801. - conftest$ac_exeext conftest.$ac_ext
  33802. -LIBS=$ac_check_lib_save_LIBS
  33803. -fi
  33804. -{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
  33805. -echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
  33806. -if test $ac_cv_lib_svld_dlopen = yes; then
  33807. - lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  33808. -else
  33809. - { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
  33810. -echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
  33811. -if test "${ac_cv_lib_dld_dld_link+set}" = set; then
  33812. - echo $ECHO_N "(cached) $ECHO_C" >&6
  33813. -else
  33814. - ac_check_lib_save_LIBS=$LIBS
  33815. -LIBS="-ldld $LIBS"
  33816. -cat >conftest.$ac_ext <<_ACEOF
  33817. -/* confdefs.h. */
  33818. -_ACEOF
  33819. -cat confdefs.h >>conftest.$ac_ext
  33820. -cat >>conftest.$ac_ext <<_ACEOF
  33821. -/* end confdefs.h. */
  33822. -
  33823. -/* Override any GCC internal prototype to avoid an error.
  33824. - Use char because int might match the return type of a GCC
  33825. - builtin and then its argument prototype would still apply. */
  33826. -#ifdef __cplusplus
  33827. -extern "C"
  33828. -#endif
  33829. -char dld_link ();
  33830. -int
  33831. -main ()
  33832. -{
  33833. -return dld_link ();
  33834. - ;
  33835. - return 0;
  33836. -}
  33837. -_ACEOF
  33838. -rm -f conftest.$ac_objext conftest$ac_exeext
  33839. -if { (ac_try="$ac_link"
  33840. -case "(($ac_try" in
  33841. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  33842. - *) ac_try_echo=$ac_try;;
  33843. -esac
  33844. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  33845. - (eval "$ac_link") 2>conftest.er1
  33846. - ac_status=$?
  33847. - grep -v '^ *+' conftest.er1 >conftest.err
  33848. - rm -f conftest.er1
  33849. - cat conftest.err >&5
  33850. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  33851. - (exit $ac_status); } &&
  33852. - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  33853. - { (case "(($ac_try" in
  33854. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  33855. - *) ac_try_echo=$ac_try;;
  33856. -esac
  33857. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  33858. - (eval "$ac_try") 2>&5
  33859. - ac_status=$?
  33860. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  33861. - (exit $ac_status); }; } &&
  33862. - { ac_try='test -s conftest$ac_exeext'
  33863. - { (case "(($ac_try" in
  33864. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  33865. - *) ac_try_echo=$ac_try;;
  33866. -esac
  33867. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  33868. - (eval "$ac_try") 2>&5
  33869. - ac_status=$?
  33870. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  33871. - (exit $ac_status); }; }; then
  33872. - ac_cv_lib_dld_dld_link=yes
  33873. -else
  33874. - echo "$as_me: failed program was:" >&5
  33875. -sed 's/^/| /' conftest.$ac_ext >&5
  33876. -
  33877. - ac_cv_lib_dld_dld_link=no
  33878. -fi
  33879. -
  33880. -rm -f core conftest.err conftest.$ac_objext \
  33881. - conftest$ac_exeext conftest.$ac_ext
  33882. -LIBS=$ac_check_lib_save_LIBS
  33883. -fi
  33884. -{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
  33885. -echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
  33886. -if test $ac_cv_lib_dld_dld_link = yes; then
  33887. - lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
  33888. -fi
  33889. -
  33890. -
  33891. -fi
  33892. -
  33893. -
  33894. -fi
  33895. -
  33896. -
  33897. -fi
  33898. -
  33899. -
  33900. -fi
  33901. -
  33902. -
  33903. -fi
  33904. -
  33905. - ;;
  33906. - esac
  33907. -
  33908. - if test "x$lt_cv_dlopen" != xno; then
  33909. - enable_dlopen=yes
  33910. - else
  33911. - enable_dlopen=no
  33912. - fi
  33913. -
  33914. - case $lt_cv_dlopen in
  33915. - dlopen)
  33916. - save_CPPFLAGS="$CPPFLAGS"
  33917. - test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  33918. -
  33919. - save_LDFLAGS="$LDFLAGS"
  33920. - wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  33921. -
  33922. - save_LIBS="$LIBS"
  33923. - LIBS="$lt_cv_dlopen_libs $LIBS"
  33924. -
  33925. - { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
  33926. -echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
  33927. -if test "${lt_cv_dlopen_self+set}" = set; then
  33928. - echo $ECHO_N "(cached) $ECHO_C" >&6
  33929. -else
  33930. - if test "$cross_compiling" = yes; then :
  33931. - lt_cv_dlopen_self=cross
  33932. -else
  33933. - lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  33934. - lt_status=$lt_dlunknown
  33935. - cat > conftest.$ac_ext <<EOF
  33936. -#line 10621 "configure"
  33937. -#include "confdefs.h"
  33938. -
  33939. -#if HAVE_DLFCN_H
  33940. -#include <dlfcn.h>
  33941. -#endif
  33942. -
  33943. -#include <stdio.h>
  33944. -
  33945. -#ifdef RTLD_GLOBAL
  33946. -# define LT_DLGLOBAL RTLD_GLOBAL
  33947. -#else
  33948. -# ifdef DL_GLOBAL
  33949. -# define LT_DLGLOBAL DL_GLOBAL
  33950. -# else
  33951. -# define LT_DLGLOBAL 0
  33952. -# endif
  33953. -#endif
  33954. -
  33955. -/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  33956. - find out it does not work in some platform. */
  33957. -#ifndef LT_DLLAZY_OR_NOW
  33958. -# ifdef RTLD_LAZY
  33959. -# define LT_DLLAZY_OR_NOW RTLD_LAZY
  33960. -# else
  33961. -# ifdef DL_LAZY
  33962. -# define LT_DLLAZY_OR_NOW DL_LAZY
  33963. -# else
  33964. -# ifdef RTLD_NOW
  33965. -# define LT_DLLAZY_OR_NOW RTLD_NOW
  33966. -# else
  33967. -# ifdef DL_NOW
  33968. -# define LT_DLLAZY_OR_NOW DL_NOW
  33969. -# else
  33970. -# define LT_DLLAZY_OR_NOW 0
  33971. -# endif
  33972. -# endif
  33973. -# endif
  33974. -# endif
  33975. -#endif
  33976. -
  33977. -#ifdef __cplusplus
  33978. -extern "C" void exit (int);
  33979. -#endif
  33980. -
  33981. -void fnord() { int i=42;}
  33982. -int main ()
  33983. -{
  33984. - void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  33985. - int status = $lt_dlunknown;
  33986. -
  33987. - if (self)
  33988. - {
  33989. - if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  33990. - else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  33991. - /* dlclose (self); */
  33992. - }
  33993. - else
  33994. - puts (dlerror ());
  33995. -
  33996. - exit (status);
  33997. -}
  33998. -EOF
  33999. - if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  34000. - (eval $ac_link) 2>&5
  34001. - ac_status=$?
  34002. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  34003. - (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
  34004. - (./conftest; exit; ) >&5 2>/dev/null
  34005. - lt_status=$?
  34006. - case x$lt_status in
  34007. - x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  34008. - x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  34009. - x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  34010. - esac
  34011. - else :
  34012. - # compilation failed
  34013. - lt_cv_dlopen_self=no
  34014. - fi
  34015. -fi
  34016. -rm -fr conftest*
  34017. -
  34018. -
  34019. -fi
  34020. -{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
  34021. -echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
  34022. -
  34023. - if test "x$lt_cv_dlopen_self" = xyes; then
  34024. - wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  34025. - { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
  34026. -echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
  34027. -if test "${lt_cv_dlopen_self_static+set}" = set; then
  34028. - echo $ECHO_N "(cached) $ECHO_C" >&6
  34029. -else
  34030. - if test "$cross_compiling" = yes; then :
  34031. - lt_cv_dlopen_self_static=cross
  34032. -else
  34033. - lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  34034. - lt_status=$lt_dlunknown
  34035. - cat > conftest.$ac_ext <<EOF
  34036. -#line 10721 "configure"
  34037. -#include "confdefs.h"
  34038. -
  34039. -#if HAVE_DLFCN_H
  34040. -#include <dlfcn.h>
  34041. -#endif
  34042. -
  34043. -#include <stdio.h>
  34044. -
  34045. -#ifdef RTLD_GLOBAL
  34046. -# define LT_DLGLOBAL RTLD_GLOBAL
  34047. -#else
  34048. -# ifdef DL_GLOBAL
  34049. -# define LT_DLGLOBAL DL_GLOBAL
  34050. -# else
  34051. -# define LT_DLGLOBAL 0
  34052. -# endif
  34053. -#endif
  34054. -
  34055. -/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  34056. - find out it does not work in some platform. */
  34057. -#ifndef LT_DLLAZY_OR_NOW
  34058. -# ifdef RTLD_LAZY
  34059. -# define LT_DLLAZY_OR_NOW RTLD_LAZY
  34060. -# else
  34061. -# ifdef DL_LAZY
  34062. -# define LT_DLLAZY_OR_NOW DL_LAZY
  34063. -# else
  34064. -# ifdef RTLD_NOW
  34065. -# define LT_DLLAZY_OR_NOW RTLD_NOW
  34066. -# else
  34067. -# ifdef DL_NOW
  34068. -# define LT_DLLAZY_OR_NOW DL_NOW
  34069. -# else
  34070. -# define LT_DLLAZY_OR_NOW 0
  34071. -# endif
  34072. -# endif
  34073. -# endif
  34074. -# endif
  34075. -#endif
  34076. -
  34077. -#ifdef __cplusplus
  34078. -extern "C" void exit (int);
  34079. -#endif
  34080. -
  34081. -void fnord() { int i=42;}
  34082. -int main ()
  34083. -{
  34084. - void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  34085. - int status = $lt_dlunknown;
  34086. -
  34087. - if (self)
  34088. - {
  34089. - if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  34090. - else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  34091. - /* dlclose (self); */
  34092. - }
  34093. - else
  34094. - puts (dlerror ());
  34095. -
  34096. - exit (status);
  34097. -}
  34098. -EOF
  34099. - if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  34100. - (eval $ac_link) 2>&5
  34101. - ac_status=$?
  34102. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  34103. - (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
  34104. - (./conftest; exit; ) >&5 2>/dev/null
  34105. - lt_status=$?
  34106. - case x$lt_status in
  34107. - x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  34108. - x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  34109. - x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  34110. - esac
  34111. - else :
  34112. - # compilation failed
  34113. - lt_cv_dlopen_self_static=no
  34114. - fi
  34115. -fi
  34116. -rm -fr conftest*
  34117. -
  34118. -
  34119. -fi
  34120. -{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
  34121. -echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
  34122. - fi
  34123. -
  34124. - CPPFLAGS="$save_CPPFLAGS"
  34125. - LDFLAGS="$save_LDFLAGS"
  34126. - LIBS="$save_LIBS"
  34127. - ;;
  34128. - esac
  34129. -
  34130. - case $lt_cv_dlopen_self in
  34131. - yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  34132. - *) enable_dlopen_self=unknown ;;
  34133. - esac
  34134. -
  34135. - case $lt_cv_dlopen_self_static in
  34136. - yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  34137. - *) enable_dlopen_self_static=unknown ;;
  34138. - esac
  34139. -fi
  34140. -
  34141. -
  34142. -# Report which library types will actually be built
  34143. -{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
  34144. -echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
  34145. -{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
  34146. -echo "${ECHO_T}$can_build_shared" >&6; }
  34147. -
  34148. -{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
  34149. -echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
  34150. -test "$can_build_shared" = "no" && enable_shared=no
  34151. -
  34152. -# On AIX, shared libraries and static libraries use the same namespace, and
  34153. -# are all built from PIC.
  34154. -case $host_os in
  34155. -aix3*)
  34156. - test "$enable_shared" = yes && enable_static=no
  34157. - if test -n "$RANLIB"; then
  34158. - archive_cmds="$archive_cmds~\$RANLIB \$lib"
  34159. - postinstall_cmds='$RANLIB $lib'
  34160. - fi
  34161. - ;;
  34162. -
  34163. -aix4* | aix5*)
  34164. - if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  34165. - test "$enable_shared" = yes && enable_static=no
  34166. - fi
  34167. - ;;
  34168. -esac
  34169. -{ echo "$as_me:$LINENO: result: $enable_shared" >&5
  34170. -echo "${ECHO_T}$enable_shared" >&6; }
  34171. -
  34172. -{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
  34173. -echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
  34174. -# Make sure either enable_shared or enable_static is yes.
  34175. -test "$enable_shared" = yes || enable_static=yes
  34176. -{ echo "$as_me:$LINENO: result: $enable_static" >&5
  34177. -echo "${ECHO_T}$enable_static" >&6; }
  34178. -
  34179. -# The else clause should only fire when bootstrapping the
  34180. -# libtool distribution, otherwise you forgot to ship ltmain.sh
  34181. -# with your package, and you will get complaints that there are
  34182. -# no rules to generate ltmain.sh.
  34183. -if test -f "$ltmain"; then
  34184. - # See if we are running on zsh, and set the options which allow our commands through
  34185. - # without removal of \ escapes.
  34186. - if test -n "${ZSH_VERSION+set}" ; then
  34187. - setopt NO_GLOB_SUBST
  34188. - fi
  34189. - # Now quote all the things that may contain metacharacters while being
  34190. - # careful not to overquote the AC_SUBSTed values. We take copies of the
  34191. - # variables and quote the copies for generation of the libtool script.
  34192. - for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
  34193. - SED SHELL STRIP \
  34194. - libname_spec library_names_spec soname_spec extract_expsyms_cmds \
  34195. - old_striplib striplib file_magic_cmd finish_cmds finish_eval \
  34196. - deplibs_check_method reload_flag reload_cmds need_locks \
  34197. - lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
  34198. - lt_cv_sys_global_symbol_to_c_name_address \
  34199. - sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  34200. - old_postinstall_cmds old_postuninstall_cmds \
  34201. - compiler \
  34202. - CC \
  34203. - LD \
  34204. - lt_prog_compiler_wl \
  34205. - lt_prog_compiler_pic \
  34206. - lt_prog_compiler_static \
  34207. - lt_prog_compiler_no_builtin_flag \
  34208. - export_dynamic_flag_spec \
  34209. - thread_safe_flag_spec \
  34210. - whole_archive_flag_spec \
  34211. - enable_shared_with_static_runtimes \
  34212. - old_archive_cmds \
  34213. - old_archive_from_new_cmds \
  34214. - predep_objects \
  34215. - postdep_objects \
  34216. - predeps \
  34217. - postdeps \
  34218. - compiler_lib_search_path \
  34219. - archive_cmds \
  34220. - archive_expsym_cmds \
  34221. - postinstall_cmds \
  34222. - postuninstall_cmds \
  34223. - old_archive_from_expsyms_cmds \
  34224. - allow_undefined_flag \
  34225. - no_undefined_flag \
  34226. - export_symbols_cmds \
  34227. - hardcode_libdir_flag_spec \
  34228. - hardcode_libdir_flag_spec_ld \
  34229. - hardcode_libdir_separator \
  34230. - hardcode_automatic \
  34231. - module_cmds \
  34232. - module_expsym_cmds \
  34233. - lt_cv_prog_compiler_c_o \
  34234. - exclude_expsyms \
  34235. - include_expsyms; do
  34236. -
  34237. - case $var in
  34238. - old_archive_cmds | \
  34239. - old_archive_from_new_cmds | \
  34240. - archive_cmds | \
  34241. - archive_expsym_cmds | \
  34242. - module_cmds | \
  34243. - module_expsym_cmds | \
  34244. - old_archive_from_expsyms_cmds | \
  34245. - export_symbols_cmds | \
  34246. - extract_expsyms_cmds | reload_cmds | finish_cmds | \
  34247. - postinstall_cmds | postuninstall_cmds | \
  34248. - old_postinstall_cmds | old_postuninstall_cmds | \
  34249. - sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  34250. - # Double-quote double-evaled strings.
  34251. - eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
  34252. - ;;
  34253. - *)
  34254. - eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
  34255. - ;;
  34256. - esac
  34257. - done
  34258. -
  34259. - case $lt_echo in
  34260. - *'\$0 --fallback-echo"')
  34261. - lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
  34262. - ;;
  34263. - esac
  34264. -
  34265. -cfgfile="${ofile}T"
  34266. - trap "$rm \"$cfgfile\"; exit 1" 1 2 15
  34267. - $rm -f "$cfgfile"
  34268. - { echo "$as_me:$LINENO: creating $ofile" >&5
  34269. -echo "$as_me: creating $ofile" >&6;}
  34270. -
  34271. - cat <<__EOF__ >> "$cfgfile"
  34272. -#! $SHELL
  34273. -
  34274. -# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  34275. -# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
  34276. -# NOTE: Changes made to this file will be lost: look at ltmain.sh.
  34277. -#
  34278. -# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
  34279. -# Free Software Foundation, Inc.
  34280. -#
  34281. -# This file is part of GNU Libtool:
  34282. -# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
  34283. -#
  34284. -# This program is free software; you can redistribute it and/or modify
  34285. -# it under the terms of the GNU General Public License as published by
  34286. -# the Free Software Foundation; either version 2 of the License, or
  34287. -# (at your option) any later version.
  34288. -#
  34289. -# This program is distributed in the hope that it will be useful, but
  34290. -# WITHOUT ANY WARRANTY; without even the implied warranty of
  34291. -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  34292. -# General Public License for more details.
  34293. -#
  34294. -# You should have received a copy of the GNU General Public License
  34295. -# along with this program; if not, write to the Free Software
  34296. -# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  34297. -#
  34298. -# As a special exception to the GNU General Public License, if you
  34299. -# distribute this file as part of a program that contains a
  34300. -# configuration script generated by Autoconf, you may include it under
  34301. -# the same distribution terms that you use for the rest of that program.
  34302. -
  34303. -# A sed program that does not truncate output.
  34304. -SED=$lt_SED
  34305. -
  34306. -# Sed that helps us avoid accidentally triggering echo(1) options like -n.
  34307. -Xsed="$SED -e 1s/^X//"
  34308. -
  34309. -# The HP-UX ksh and POSIX shell print the target directory to stdout
  34310. -# if CDPATH is set.
  34311. -(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  34312. -
  34313. -# The names of the tagged configurations supported by this script.
  34314. -available_tags=
  34315. -
  34316. -# ### BEGIN LIBTOOL CONFIG
  34317. -
  34318. -# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  34319. -
  34320. -# Shell to use when invoking shell scripts.
  34321. -SHELL=$lt_SHELL
  34322. -
  34323. -# Whether or not to build shared libraries.
  34324. -build_libtool_libs=$enable_shared
  34325. -
  34326. -# Whether or not to build static libraries.
  34327. -build_old_libs=$enable_static
  34328. -
  34329. -# Whether or not to add -lc for building shared libraries.
  34330. -build_libtool_need_lc=$archive_cmds_need_lc
  34331. -
  34332. -# Whether or not to disallow shared libs when runtime libs are static
  34333. -allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  34334. -
  34335. -# Whether or not to optimize for fast installation.
  34336. -fast_install=$enable_fast_install
  34337. -
  34338. -# The host system.
  34339. -host_alias=$host_alias
  34340. -host=$host
  34341. -host_os=$host_os
  34342. -
  34343. -# The build system.
  34344. -build_alias=$build_alias
  34345. -build=$build
  34346. -build_os=$build_os
  34347. -
  34348. -# An echo program that does not interpret backslashes.
  34349. -echo=$lt_echo
  34350. -
  34351. -# The archiver.
  34352. -AR=$lt_AR
  34353. -AR_FLAGS=$lt_AR_FLAGS
  34354. -
  34355. -# A C compiler.
  34356. -LTCC=$lt_LTCC
  34357. -
  34358. -# LTCC compiler flags.
  34359. -LTCFLAGS=$lt_LTCFLAGS
  34360. -
  34361. -# A language-specific compiler.
  34362. -CC=$lt_compiler
  34363. -
  34364. -# Is the compiler the GNU C compiler?
  34365. -with_gcc=$GCC
  34366. -
  34367. -# An ERE matcher.
  34368. -EGREP=$lt_EGREP
  34369. -
  34370. -# The linker used to build libraries.
  34371. -LD=$lt_LD
  34372. -
  34373. -# Whether we need hard or soft links.
  34374. -LN_S=$lt_LN_S
  34375. -
  34376. -# A BSD-compatible nm program.
  34377. -NM=$lt_NM
  34378. -
  34379. -# A symbol stripping program
  34380. -STRIP=$lt_STRIP
  34381. -
  34382. -# Used to examine libraries when file_magic_cmd begins "file"
  34383. -MAGIC_CMD=$MAGIC_CMD
  34384. -
  34385. -# Used on cygwin: DLL creation program.
  34386. -DLLTOOL="$DLLTOOL"
  34387. -
  34388. -# Used on cygwin: object dumper.
  34389. -OBJDUMP="$OBJDUMP"
  34390. -
  34391. -# Used on cygwin: assembler.
  34392. -AS="$AS"
  34393. -
  34394. -# The name of the directory that contains temporary libtool files.
  34395. -objdir=$objdir
  34396. -
  34397. -# How to create reloadable object files.
  34398. -reload_flag=$lt_reload_flag
  34399. -reload_cmds=$lt_reload_cmds
  34400. -
  34401. -# How to pass a linker flag through the compiler.
  34402. -wl=$lt_lt_prog_compiler_wl
  34403. -
  34404. -# Object file suffix (normally "o").
  34405. -objext="$ac_objext"
  34406. -
  34407. -# Old archive suffix (normally "a").
  34408. -libext="$libext"
  34409. -
  34410. -# Shared library suffix (normally ".so").
  34411. -shrext_cmds='$shrext_cmds'
  34412. -
  34413. -# Executable file suffix (normally "").
  34414. -exeext="$exeext"
  34415. -
  34416. -# Additional compiler flags for building library objects.
  34417. -pic_flag=$lt_lt_prog_compiler_pic
  34418. -pic_mode=$pic_mode
  34419. -
  34420. -# What is the maximum length of a command?
  34421. -max_cmd_len=$lt_cv_sys_max_cmd_len
  34422. -
  34423. -# Does compiler simultaneously support -c and -o options?
  34424. -compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  34425. -
  34426. -# Must we lock files when doing compilation?
  34427. -need_locks=$lt_need_locks
  34428. -
  34429. -# Do we need the lib prefix for modules?
  34430. -need_lib_prefix=$need_lib_prefix
  34431. -
  34432. -# Do we need a version for libraries?
  34433. -need_version=$need_version
  34434. -
  34435. -# Whether dlopen is supported.
  34436. -dlopen_support=$enable_dlopen
  34437. -
  34438. -# Whether dlopen of programs is supported.
  34439. -dlopen_self=$enable_dlopen_self
  34440. -
  34441. -# Whether dlopen of statically linked programs is supported.
  34442. -dlopen_self_static=$enable_dlopen_self_static
  34443. -
  34444. -# Compiler flag to prevent dynamic linking.
  34445. -link_static_flag=$lt_lt_prog_compiler_static
  34446. -
  34447. -# Compiler flag to turn off builtin functions.
  34448. -no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  34449. -
  34450. -# Compiler flag to allow reflexive dlopens.
  34451. -export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  34452. -
  34453. -# Compiler flag to generate shared objects directly from archives.
  34454. -whole_archive_flag_spec=$lt_whole_archive_flag_spec
  34455. -
  34456. -# Compiler flag to generate thread-safe objects.
  34457. -thread_safe_flag_spec=$lt_thread_safe_flag_spec
  34458. -
  34459. -# Library versioning type.
  34460. -version_type=$version_type
  34461. -
  34462. -# Format of library name prefix.
  34463. -libname_spec=$lt_libname_spec
  34464. -
  34465. -# List of archive names. First name is the real one, the rest are links.
  34466. -# The last name is the one that the linker finds with -lNAME.
  34467. -library_names_spec=$lt_library_names_spec
  34468. -
  34469. -# The coded name of the library, if different from the real name.
  34470. -soname_spec=$lt_soname_spec
  34471. -
  34472. -# Commands used to build and install an old-style archive.
  34473. -RANLIB=$lt_RANLIB
  34474. -old_archive_cmds=$lt_old_archive_cmds
  34475. -old_postinstall_cmds=$lt_old_postinstall_cmds
  34476. -old_postuninstall_cmds=$lt_old_postuninstall_cmds
  34477. -
  34478. -# Create an old-style archive from a shared archive.
  34479. -old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  34480. -
  34481. -# Create a temporary old-style archive to link instead of a shared archive.
  34482. -old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  34483. -
  34484. -# Commands used to build and install a shared archive.
  34485. -archive_cmds=$lt_archive_cmds
  34486. -archive_expsym_cmds=$lt_archive_expsym_cmds
  34487. -postinstall_cmds=$lt_postinstall_cmds
  34488. -postuninstall_cmds=$lt_postuninstall_cmds
  34489. -
  34490. -# Commands used to build a loadable module (assumed same as above if empty)
  34491. -module_cmds=$lt_module_cmds
  34492. -module_expsym_cmds=$lt_module_expsym_cmds
  34493. -
  34494. -# Commands to strip libraries.
  34495. -old_striplib=$lt_old_striplib
  34496. -striplib=$lt_striplib
  34497. -
  34498. -# Dependencies to place before the objects being linked to create a
  34499. -# shared library.
  34500. -predep_objects=$lt_predep_objects
  34501. -
  34502. -# Dependencies to place after the objects being linked to create a
  34503. -# shared library.
  34504. -postdep_objects=$lt_postdep_objects
  34505. -
  34506. -# Dependencies to place before the objects being linked to create a
  34507. -# shared library.
  34508. -predeps=$lt_predeps
  34509. -
  34510. -# Dependencies to place after the objects being linked to create a
  34511. -# shared library.
  34512. -postdeps=$lt_postdeps
  34513. -
  34514. -# The library search path used internally by the compiler when linking
  34515. -# a shared library.
  34516. -compiler_lib_search_path=$lt_compiler_lib_search_path
  34517. -
  34518. -# Method to check whether dependent libraries are shared objects.
  34519. -deplibs_check_method=$lt_deplibs_check_method
  34520. -
  34521. -# Command to use when deplibs_check_method == file_magic.
  34522. -file_magic_cmd=$lt_file_magic_cmd
  34523. -
  34524. -# Flag that allows shared libraries with undefined symbols to be built.
  34525. -allow_undefined_flag=$lt_allow_undefined_flag
  34526. -
  34527. -# Flag that forces no undefined symbols.
  34528. -no_undefined_flag=$lt_no_undefined_flag
  34529. -
  34530. -# Commands used to finish a libtool library installation in a directory.
  34531. -finish_cmds=$lt_finish_cmds
  34532. -
  34533. -# Same as above, but a single script fragment to be evaled but not shown.
  34534. -finish_eval=$lt_finish_eval
  34535. -
  34536. -# Take the output of nm and produce a listing of raw symbols and C names.
  34537. -global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  34538. -
  34539. -# Transform the output of nm in a proper C declaration
  34540. -global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  34541. -
  34542. -# Transform the output of nm in a C name address pair
  34543. -global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  34544. -
  34545. -# This is the shared library runtime path variable.
  34546. -runpath_var=$runpath_var
  34547. -
  34548. -# This is the shared library path variable.
  34549. -shlibpath_var=$shlibpath_var
  34550. -
  34551. -# Is shlibpath searched before the hard-coded library search path?
  34552. -shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  34553. -
  34554. -# How to hardcode a shared library path into an executable.
  34555. -hardcode_action=$hardcode_action
  34556. -
  34557. -# Whether we should hardcode library paths into libraries.
  34558. -hardcode_into_libs=$hardcode_into_libs
  34559. -
  34560. -# Flag to hardcode \$libdir into a binary during linking.
  34561. -# This must work even if \$libdir does not exist.
  34562. -hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  34563. -
  34564. -# If ld is used when linking, flag to hardcode \$libdir into
  34565. -# a binary during linking. This must work even if \$libdir does
  34566. -# not exist.
  34567. -hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
  34568. -
  34569. -# Whether we need a single -rpath flag with a separated argument.
  34570. -hardcode_libdir_separator=$lt_hardcode_libdir_separator
  34571. -
  34572. -# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
  34573. -# resulting binary.
  34574. -hardcode_direct=$hardcode_direct
  34575. -
  34576. -# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  34577. -# resulting binary.
  34578. -hardcode_minus_L=$hardcode_minus_L
  34579. -
  34580. -# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
  34581. -# the resulting binary.
  34582. -hardcode_shlibpath_var=$hardcode_shlibpath_var
  34583. -
  34584. -# Set to yes if building a shared library automatically hardcodes DIR into the library
  34585. -# and all subsequent libraries and executables linked against it.
  34586. -hardcode_automatic=$hardcode_automatic
  34587. -
  34588. -# Variables whose values should be saved in libtool wrapper scripts and
  34589. -# restored at relink time.
  34590. -variables_saved_for_relink="$variables_saved_for_relink"
  34591. -
  34592. -# Whether libtool must link a program against all its dependency libraries.
  34593. -link_all_deplibs=$link_all_deplibs
  34594. -
  34595. -# Compile-time system search path for libraries
  34596. -sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  34597. -
  34598. -# Run-time system search path for libraries
  34599. -sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  34600. -
  34601. -# Fix the shell variable \$srcfile for the compiler.
  34602. -fix_srcfile_path="$fix_srcfile_path"
  34603. -
  34604. -# Set to yes if exported symbols are required.
  34605. -always_export_symbols=$always_export_symbols
  34606. -
  34607. -# The commands to list exported symbols.
  34608. -export_symbols_cmds=$lt_export_symbols_cmds
  34609. -
  34610. -# The commands to extract the exported symbol list from a shared archive.
  34611. -extract_expsyms_cmds=$lt_extract_expsyms_cmds
  34612. -
  34613. -# Symbols that should not be listed in the preloaded symbols.
  34614. -exclude_expsyms=$lt_exclude_expsyms
  34615. -
  34616. -# Symbols that must always be exported.
  34617. -include_expsyms=$lt_include_expsyms
  34618. -
  34619. -# ### END LIBTOOL CONFIG
  34620. -
  34621. -__EOF__
  34622. -
  34623. -
  34624. - case $host_os in
  34625. - aix3*)
  34626. - cat <<\EOF >> "$cfgfile"
  34627. -
  34628. -# AIX sometimes has problems with the GCC collect2 program. For some
  34629. -# reason, if we set the COLLECT_NAMES environment variable, the problems
  34630. -# vanish in a puff of smoke.
  34631. -if test "X${COLLECT_NAMES+set}" != Xset; then
  34632. - COLLECT_NAMES=
  34633. - export COLLECT_NAMES
  34634. -fi
  34635. -EOF
  34636. - ;;
  34637. - esac
  34638. -
  34639. - # We use sed instead of cat because bash on DJGPP gets confused if
  34640. - # if finds mixed CR/LF and LF-only lines. Since sed operates in
  34641. - # text mode, it properly converts lines to CR/LF. This bash problem
  34642. - # is reportedly fixed, but why not run on old versions too?
  34643. - sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
  34644. -
  34645. - mv -f "$cfgfile" "$ofile" || \
  34646. - (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  34647. - chmod +x "$ofile"
  34648. -
  34649. -else
  34650. - # If there is no Makefile yet, we rely on a make rule to execute
  34651. - # `config.status --recheck' to rerun these tests and create the
  34652. - # libtool script then.
  34653. - ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  34654. - if test -f "$ltmain_in"; then
  34655. - test -f Makefile && make "$ltmain"
  34656. - fi
  34657. -fi
  34658. -
  34659. -
  34660. -ac_ext=c
  34661. -ac_cpp='$CPP $CPPFLAGS'
  34662. -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  34663. -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  34664. -ac_compiler_gnu=$ac_cv_c_compiler_gnu
  34665. -
  34666. -CC="$lt_save_CC"
  34667. -
  34668. -
  34669. -# Check whether --with-tags was given.
  34670. -if test "${with_tags+set}" = set; then
  34671. - withval=$with_tags; tagnames="$withval"
  34672. -fi
  34673. -
  34674. -
  34675. -if test -f "$ltmain" && test -n "$tagnames"; then
  34676. - if test ! -f "${ofile}"; then
  34677. - { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
  34678. -echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
  34679. - fi
  34680. -
  34681. - if test -z "$LTCC"; then
  34682. - eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
  34683. - if test -z "$LTCC"; then
  34684. - { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
  34685. -echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
  34686. - else
  34687. - { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
  34688. -echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
  34689. - fi
  34690. - fi
  34691. - if test -z "$LTCFLAGS"; then
  34692. - eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
  34693. - fi
  34694. -
  34695. - # Extract list of available tagged configurations in $ofile.
  34696. - # Note that this assumes the entire list is on one line.
  34697. - available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
  34698. -
  34699. - lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  34700. - for tagname in $tagnames; do
  34701. - IFS="$lt_save_ifs"
  34702. - # Check whether tagname contains only valid characters
  34703. - case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
  34704. - "") ;;
  34705. - *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
  34706. -echo "$as_me: error: invalid tag name: $tagname" >&2;}
  34707. - { (exit 1); exit 1; }; }
  34708. - ;;
  34709. - esac
  34710. -
  34711. - if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
  34712. - then
  34713. - { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
  34714. -echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
  34715. - { (exit 1); exit 1; }; }
  34716. - fi
  34717. -
  34718. - # Update the list of available tags.
  34719. - if test -n "$tagname"; then
  34720. - echo appending configuration tag \"$tagname\" to $ofile
  34721. -
  34722. - case $tagname in
  34723. - CXX)
  34724. - if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
  34725. - ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
  34726. - (test "X$CXX" != "Xg++"))) ; then
  34727. - ac_ext=cpp
  34728. -ac_cpp='$CXXCPP $CPPFLAGS'
  34729. -ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  34730. -ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  34731. -ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  34732. -
  34733. -
  34734. -
  34735. -
  34736. -archive_cmds_need_lc_CXX=no
  34737. -allow_undefined_flag_CXX=
  34738. -always_export_symbols_CXX=no
  34739. -archive_expsym_cmds_CXX=
  34740. -export_dynamic_flag_spec_CXX=
  34741. -hardcode_direct_CXX=no
  34742. -hardcode_libdir_flag_spec_CXX=
  34743. -hardcode_libdir_flag_spec_ld_CXX=
  34744. -hardcode_libdir_separator_CXX=
  34745. -hardcode_minus_L_CXX=no
  34746. -hardcode_shlibpath_var_CXX=unsupported
  34747. -hardcode_automatic_CXX=no
  34748. -module_cmds_CXX=
  34749. -module_expsym_cmds_CXX=
  34750. -link_all_deplibs_CXX=unknown
  34751. -old_archive_cmds_CXX=$old_archive_cmds
  34752. -no_undefined_flag_CXX=
  34753. -whole_archive_flag_spec_CXX=
  34754. -enable_shared_with_static_runtimes_CXX=no
  34755. -
  34756. -# Dependencies to place before and after the object being linked:
  34757. -predep_objects_CXX=
  34758. -postdep_objects_CXX=
  34759. -predeps_CXX=
  34760. -postdeps_CXX=
  34761. -compiler_lib_search_path_CXX=
  34762. -
  34763. -# Source file extension for C++ test sources.
  34764. -ac_ext=cpp
  34765. -
  34766. -# Object file extension for compiled C++ test sources.
  34767. -objext=o
  34768. -objext_CXX=$objext
  34769. -
  34770. -# Code to be used in simple compile tests
  34771. -lt_simple_compile_test_code="int some_variable = 0;\n"
  34772. -
  34773. -# Code to be used in simple link tests
  34774. -lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
  34775. -
  34776. -# ltmain only uses $CC for tagged configurations so make sure $CC is set.
  34777. -
  34778. -# If no C compiler was specified, use CC.
  34779. -LTCC=${LTCC-"$CC"}
  34780. -
  34781. -# If no C compiler flags were specified, use CFLAGS.
  34782. -LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  34783. -
  34784. -# Allow CC to be a program name with arguments.
  34785. -compiler=$CC
  34786. -
  34787. -
  34788. -# save warnings/boilerplate of simple test code
  34789. -ac_outfile=conftest.$ac_objext
  34790. -printf "$lt_simple_compile_test_code" >conftest.$ac_ext
  34791. -eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  34792. -_lt_compiler_boilerplate=`cat conftest.err`
  34793. -$rm conftest*
  34794. -
  34795. -ac_outfile=conftest.$ac_objext
  34796. -printf "$lt_simple_link_test_code" >conftest.$ac_ext
  34797. -eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  34798. -_lt_linker_boilerplate=`cat conftest.err`
  34799. -$rm conftest*
  34800. -
  34801. -
  34802. -# Allow CC to be a program name with arguments.
  34803. -lt_save_CC=$CC
  34804. -lt_save_LD=$LD
  34805. -lt_save_GCC=$GCC
  34806. -GCC=$GXX
  34807. -lt_save_with_gnu_ld=$with_gnu_ld
  34808. -lt_save_path_LD=$lt_cv_path_LD
  34809. -if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
  34810. - lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  34811. -else
  34812. - $as_unset lt_cv_prog_gnu_ld
  34813. -fi
  34814. -if test -n "${lt_cv_path_LDCXX+set}"; then
  34815. - lt_cv_path_LD=$lt_cv_path_LDCXX
  34816. -else
  34817. - $as_unset lt_cv_path_LD
  34818. -fi
  34819. -test -z "${LDCXX+set}" || LD=$LDCXX
  34820. -CC=${CXX-"c++"}
  34821. -compiler=$CC
  34822. -compiler_CXX=$CC
  34823. -for cc_temp in $compiler""; do
  34824. - case $cc_temp in
  34825. - compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  34826. - distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  34827. - \-*) ;;
  34828. - *) break;;
  34829. - esac
  34830. -done
  34831. -cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  34832. -
  34833. -
  34834. -# We don't want -fno-exception wen compiling C++ code, so set the
  34835. -# no_builtin_flag separately
  34836. -if test "$GXX" = yes; then
  34837. - lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
  34838. -else
  34839. - lt_prog_compiler_no_builtin_flag_CXX=
  34840. -fi
  34841. -
  34842. -if test "$GXX" = yes; then
  34843. - # Set up default GNU C++ configuration
  34844. -
  34845. -
  34846. -# Check whether --with-gnu-ld was given.
  34847. -if test "${with_gnu_ld+set}" = set; then
  34848. - withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  34849. -else
  34850. - with_gnu_ld=no
  34851. -fi
  34852. -
  34853. -ac_prog=ld
  34854. -if test "$GCC" = yes; then
  34855. - # Check if gcc -print-prog-name=ld gives a path.
  34856. - { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
  34857. -echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
  34858. - case $host in
  34859. - *-*-mingw*)
  34860. - # gcc leaves a trailing carriage return which upsets mingw
  34861. - ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  34862. - *)
  34863. - ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  34864. - esac
  34865. - case $ac_prog in
  34866. - # Accept absolute paths.
  34867. - [\\/]* | ?:[\\/]*)
  34868. - re_direlt='/[^/][^/]*/\.\./'
  34869. - # Canonicalize the pathname of ld
  34870. - ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
  34871. - while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
  34872. - ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
  34873. - done
  34874. - test -z "$LD" && LD="$ac_prog"
  34875. - ;;
  34876. - "")
  34877. - # If it fails, then pretend we aren't using GCC.
  34878. - ac_prog=ld
  34879. - ;;
  34880. - *)
  34881. - # If it is relative, then search for the first ld in PATH.
  34882. - with_gnu_ld=unknown
  34883. - ;;
  34884. - esac
  34885. -elif test "$with_gnu_ld" = yes; then
  34886. - { echo "$as_me:$LINENO: checking for GNU ld" >&5
  34887. -echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
  34888. -else
  34889. - { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
  34890. -echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
  34891. -fi
  34892. -if test "${lt_cv_path_LD+set}" = set; then
  34893. - echo $ECHO_N "(cached) $ECHO_C" >&6
  34894. -else
  34895. - if test -z "$LD"; then
  34896. - lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  34897. - for ac_dir in $PATH; do
  34898. - IFS="$lt_save_ifs"
  34899. - test -z "$ac_dir" && ac_dir=.
  34900. - if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  34901. - lt_cv_path_LD="$ac_dir/$ac_prog"
  34902. - # Check to see if the program is GNU ld. I'd rather use --version,
  34903. - # but apparently some variants of GNU ld only accept -v.
  34904. - # Break only if it was the GNU/non-GNU ld that we prefer.
  34905. - case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  34906. - *GNU* | *'with BFD'*)
  34907. - test "$with_gnu_ld" != no && break
  34908. - ;;
  34909. - *)
  34910. - test "$with_gnu_ld" != yes && break
  34911. - ;;
  34912. - esac
  34913. - fi
  34914. - done
  34915. - IFS="$lt_save_ifs"
  34916. -else
  34917. - lt_cv_path_LD="$LD" # Let the user override the test with a path.
  34918. -fi
  34919. -fi
  34920. -
  34921. -LD="$lt_cv_path_LD"
  34922. -if test -n "$LD"; then
  34923. - { echo "$as_me:$LINENO: result: $LD" >&5
  34924. -echo "${ECHO_T}$LD" >&6; }
  34925. -else
  34926. - { echo "$as_me:$LINENO: result: no" >&5
  34927. -echo "${ECHO_T}no" >&6; }
  34928. -fi
  34929. -test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
  34930. -echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
  34931. - { (exit 1); exit 1; }; }
  34932. -{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
  34933. -echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
  34934. -if test "${lt_cv_prog_gnu_ld+set}" = set; then
  34935. - echo $ECHO_N "(cached) $ECHO_C" >&6
  34936. -else
  34937. - # I'd rather use --version here, but apparently some GNU lds only accept -v.
  34938. -case `$LD -v 2>&1 </dev/null` in
  34939. -*GNU* | *'with BFD'*)
  34940. - lt_cv_prog_gnu_ld=yes
  34941. - ;;
  34942. -*)
  34943. - lt_cv_prog_gnu_ld=no
  34944. - ;;
  34945. -esac
  34946. -fi
  34947. -{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
  34948. -echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
  34949. -with_gnu_ld=$lt_cv_prog_gnu_ld
  34950. -
  34951. -
  34952. -
  34953. - # Check if GNU C++ uses GNU ld as the underlying linker, since the
  34954. - # archiving commands below assume that GNU ld is being used.
  34955. - if test "$with_gnu_ld" = yes; then
  34956. - archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  34957. - 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'
  34958. -
  34959. - hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
  34960. - export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  34961. -
  34962. - # If archive_cmds runs LD, not CC, wlarc should be empty
  34963. - # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
  34964. - # investigate it a little bit more. (MM)
  34965. - wlarc='${wl}'
  34966. -
  34967. - # ancient GNU ld didn't support --whole-archive et. al.
  34968. - if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
  34969. - grep 'no-whole-archive' > /dev/null; then
  34970. - whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  34971. - else
  34972. - whole_archive_flag_spec_CXX=
  34973. - fi
  34974. - else
  34975. - with_gnu_ld=no
  34976. - wlarc=
  34977. -
  34978. - # A generic and very simple default shared library creation
  34979. - # command for GNU C++ for the case where it uses the native
  34980. - # linker, instead of GNU ld. If possible, this setting should
  34981. - # overridden to take advantage of the native linker features on
  34982. - # the platform it is being used on.
  34983. - archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  34984. - fi
  34985. -
  34986. - # Commands to make compiler produce verbose output that lists
  34987. - # what "hidden" libraries, object files and flags are used when
  34988. - # linking a shared library.
  34989. - output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
  34990. -
  34991. -else
  34992. - GXX=no
  34993. - with_gnu_ld=no
  34994. - wlarc=
  34995. -fi
  34996. -
  34997. -# PORTME: fill in a description of your system's C++ link characteristics
  34998. -{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  34999. -echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
  35000. -ld_shlibs_CXX=yes
  35001. -case $host_os in
  35002. - aix3*)
  35003. - # FIXME: insert proper C++ library support
  35004. - ld_shlibs_CXX=no
  35005. - ;;
  35006. - aix4* | aix5*)
  35007. - if test "$host_cpu" = ia64; then
  35008. - # On IA64, the linker does run time linking by default, so we don't
  35009. - # have to do anything special.
  35010. - aix_use_runtimelinking=no
  35011. - exp_sym_flag='-Bexport'
  35012. - no_entry_flag=""
  35013. - else
  35014. - aix_use_runtimelinking=no
  35015. -
  35016. - # Test if we are trying to use run time linking or normal
  35017. - # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  35018. - # need to do runtime linking.
  35019. - case $host_os in aix4.[23]|aix4.[23].*|aix5*)
  35020. - for ld_flag in $LDFLAGS; do
  35021. - case $ld_flag in
  35022. - *-brtl*)
  35023. - aix_use_runtimelinking=yes
  35024. - break
  35025. - ;;
  35026. - esac
  35027. - done
  35028. - ;;
  35029. - esac
  35030. -
  35031. - exp_sym_flag='-bexport'
  35032. - no_entry_flag='-bnoentry'
  35033. - fi
  35034. -
  35035. - # When large executables or shared objects are built, AIX ld can
  35036. - # have problems creating the table of contents. If linking a library
  35037. - # or program results in "error TOC overflow" add -mminimal-toc to
  35038. - # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  35039. - # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  35040. -
  35041. - archive_cmds_CXX=''
  35042. - hardcode_direct_CXX=yes
  35043. - hardcode_libdir_separator_CXX=':'
  35044. - link_all_deplibs_CXX=yes
  35045. -
  35046. - if test "$GXX" = yes; then
  35047. - case $host_os in aix4.[012]|aix4.[012].*)
  35048. - # We only want to do this on AIX 4.2 and lower, the check
  35049. - # below for broken collect2 doesn't work under 4.3+
  35050. - collect2name=`${CC} -print-prog-name=collect2`
  35051. - if test -f "$collect2name" && \
  35052. - strings "$collect2name" | grep resolve_lib_name >/dev/null
  35053. - then
  35054. - # We have reworked collect2
  35055. - hardcode_direct_CXX=yes
  35056. - else
  35057. - # We have old collect2
  35058. - hardcode_direct_CXX=unsupported
  35059. - # It fails to find uninstalled libraries when the uninstalled
  35060. - # path is not listed in the libpath. Setting hardcode_minus_L
  35061. - # to unsupported forces relinking
  35062. - hardcode_minus_L_CXX=yes
  35063. - hardcode_libdir_flag_spec_CXX='-L$libdir'
  35064. - hardcode_libdir_separator_CXX=
  35065. - fi
  35066. - ;;
  35067. - esac
  35068. - shared_flag='-shared'
  35069. - if test "$aix_use_runtimelinking" = yes; then
  35070. - shared_flag="$shared_flag "'${wl}-G'
  35071. - fi
  35072. - else
  35073. - # not using gcc
  35074. - if test "$host_cpu" = ia64; then
  35075. - # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  35076. - # chokes on -Wl,-G. The following line is correct:
  35077. - shared_flag='-G'
  35078. - else
  35079. - if test "$aix_use_runtimelinking" = yes; then
  35080. - shared_flag='${wl}-G'
  35081. - else
  35082. - shared_flag='${wl}-bM:SRE'
  35083. - fi
  35084. - fi
  35085. - fi
  35086. -
  35087. - # It seems that -bexpall does not export symbols beginning with
  35088. - # underscore (_), so it is better to generate a list of symbols to export.
  35089. - always_export_symbols_CXX=yes
  35090. - if test "$aix_use_runtimelinking" = yes; then
  35091. - # Warning - without using the other runtime loading flags (-brtl),
  35092. - # -berok will link without error, but may produce a broken library.
  35093. - allow_undefined_flag_CXX='-berok'
  35094. - # Determine the default libpath from the value encoded in an empty executable.
  35095. - cat >conftest.$ac_ext <<_ACEOF
  35096. -/* confdefs.h. */
  35097. -_ACEOF
  35098. -cat confdefs.h >>conftest.$ac_ext
  35099. -cat >>conftest.$ac_ext <<_ACEOF
  35100. -/* end confdefs.h. */
  35101. -
  35102. -int
  35103. -main ()
  35104. -{
  35105. -
  35106. - ;
  35107. - return 0;
  35108. -}
  35109. -_ACEOF
  35110. -rm -f conftest.$ac_objext conftest$ac_exeext
  35111. -if { (ac_try="$ac_link"
  35112. -case "(($ac_try" in
  35113. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  35114. - *) ac_try_echo=$ac_try;;
  35115. -esac
  35116. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  35117. - (eval "$ac_link") 2>conftest.er1
  35118. - ac_status=$?
  35119. - grep -v '^ *+' conftest.er1 >conftest.err
  35120. - rm -f conftest.er1
  35121. - cat conftest.err >&5
  35122. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  35123. - (exit $ac_status); } &&
  35124. - { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  35125. - { (case "(($ac_try" in
  35126. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  35127. - *) ac_try_echo=$ac_try;;
  35128. -esac
  35129. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  35130. - (eval "$ac_try") 2>&5
  35131. - ac_status=$?
  35132. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  35133. - (exit $ac_status); }; } &&
  35134. - { ac_try='test -s conftest$ac_exeext'
  35135. - { (case "(($ac_try" in
  35136. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  35137. - *) ac_try_echo=$ac_try;;
  35138. -esac
  35139. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  35140. - (eval "$ac_try") 2>&5
  35141. - ac_status=$?
  35142. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  35143. - (exit $ac_status); }; }; then
  35144. -
  35145. -aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  35146. -}'`
  35147. -# Check for a 64-bit object if we didn't find anything.
  35148. -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; }
  35149. -}'`; fi
  35150. -else
  35151. - echo "$as_me: failed program was:" >&5
  35152. -sed 's/^/| /' conftest.$ac_ext >&5
  35153. -
  35154. -
  35155. -fi
  35156. -
  35157. -rm -f core conftest.err conftest.$ac_objext \
  35158. - conftest$ac_exeext conftest.$ac_ext
  35159. -if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  35160. -
  35161. - hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  35162. -
  35163. - archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  35164. - else
  35165. - if test "$host_cpu" = ia64; then
  35166. - hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
  35167. - allow_undefined_flag_CXX="-z nodefs"
  35168. - archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
  35169. - else
  35170. - # Determine the default libpath from the value encoded in an empty executable.
  35171. - cat >conftest.$ac_ext <<_ACEOF
  35172. -/* confdefs.h. */
  35173. -_ACEOF
  35174. -cat confdefs.h >>conftest.$ac_ext
  35175. -cat >>conftest.$ac_ext <<_ACEOF
  35176. -/* end confdefs.h. */
  35177. -
  35178. -int
  35179. -main ()
  35180. -{
  35181. -
  35182. - ;
  35183. - return 0;
  35184. -}
  35185. -_ACEOF
  35186. -rm -f conftest.$ac_objext conftest$ac_exeext
  35187. -if { (ac_try="$ac_link"
  35188. -case "(($ac_try" in
  35189. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  35190. - *) ac_try_echo=$ac_try;;
  35191. -esac
  35192. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  35193. - (eval "$ac_link") 2>conftest.er1
  35194. - ac_status=$?
  35195. - grep -v '^ *+' conftest.er1 >conftest.err
  35196. - rm -f conftest.er1
  35197. - cat conftest.err >&5
  35198. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  35199. - (exit $ac_status); } &&
  35200. - { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  35201. - { (case "(($ac_try" in
  35202. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  35203. - *) ac_try_echo=$ac_try;;
  35204. -esac
  35205. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  35206. - (eval "$ac_try") 2>&5
  35207. - ac_status=$?
  35208. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  35209. - (exit $ac_status); }; } &&
  35210. - { ac_try='test -s conftest$ac_exeext'
  35211. - { (case "(($ac_try" in
  35212. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  35213. - *) ac_try_echo=$ac_try;;
  35214. -esac
  35215. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  35216. - (eval "$ac_try") 2>&5
  35217. - ac_status=$?
  35218. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  35219. - (exit $ac_status); }; }; then
  35220. -
  35221. -aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  35222. -}'`
  35223. -# Check for a 64-bit object if we didn't find anything.
  35224. -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; }
  35225. -}'`; fi
  35226. -else
  35227. - echo "$as_me: failed program was:" >&5
  35228. -sed 's/^/| /' conftest.$ac_ext >&5
  35229. -
  35230. -
  35231. -fi
  35232. -
  35233. -rm -f core conftest.err conftest.$ac_objext \
  35234. - conftest$ac_exeext conftest.$ac_ext
  35235. -if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  35236. -
  35237. - hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  35238. - # Warning - without using the other run time loading flags,
  35239. - # -berok will link without error, but may produce a broken library.
  35240. - no_undefined_flag_CXX=' ${wl}-bernotok'
  35241. - allow_undefined_flag_CXX=' ${wl}-berok'
  35242. - # Exported symbols can be pulled into shared objects from archives
  35243. - whole_archive_flag_spec_CXX='$convenience'
  35244. - archive_cmds_need_lc_CXX=yes
  35245. - # This is similar to how AIX traditionally builds its shared libraries.
  35246. - archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
  35247. - fi
  35248. - fi
  35249. - ;;
  35250. -
  35251. - beos*)
  35252. - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  35253. - allow_undefined_flag_CXX=unsupported
  35254. - # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  35255. - # support --undefined. This deserves some investigation. FIXME
  35256. - archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  35257. - else
  35258. - ld_shlibs_CXX=no
  35259. - fi
  35260. - ;;
  35261. -
  35262. - chorus*)
  35263. - case $cc_basename in
  35264. - *)
  35265. - # FIXME: insert proper C++ library support
  35266. - ld_shlibs_CXX=no
  35267. - ;;
  35268. - esac
  35269. - ;;
  35270. -
  35271. - cygwin* | mingw* | pw32*)
  35272. - # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
  35273. - # as there is no search path for DLLs.
  35274. - hardcode_libdir_flag_spec_CXX='-L$libdir'
  35275. - allow_undefined_flag_CXX=unsupported
  35276. - always_export_symbols_CXX=no
  35277. - enable_shared_with_static_runtimes_CXX=yes
  35278. -
  35279. - if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
  35280. - archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  35281. - # If the export-symbols file already is a .def file (1st line
  35282. - # is EXPORTS), use it as is; otherwise, prepend...
  35283. - archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  35284. - cp $export_symbols $output_objdir/$soname.def;
  35285. - else
  35286. - echo EXPORTS > $output_objdir/$soname.def;
  35287. - cat $export_symbols >> $output_objdir/$soname.def;
  35288. - fi~
  35289. - $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'
  35290. - else
  35291. - ld_shlibs_CXX=no
  35292. - fi
  35293. - ;;
  35294. - darwin* | rhapsody*)
  35295. - case $host_os in
  35296. - rhapsody* | darwin1.[012])
  35297. - allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
  35298. - ;;
  35299. - *) # Darwin 1.3 on
  35300. - if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
  35301. - allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  35302. - else
  35303. - case ${MACOSX_DEPLOYMENT_TARGET} in
  35304. - 10.[012])
  35305. - allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  35306. - ;;
  35307. - 10.*)
  35308. - allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
  35309. - ;;
  35310. - esac
  35311. - fi
  35312. - ;;
  35313. - esac
  35314. - archive_cmds_need_lc_CXX=no
  35315. - hardcode_direct_CXX=no
  35316. - hardcode_automatic_CXX=yes
  35317. - hardcode_shlibpath_var_CXX=unsupported
  35318. - whole_archive_flag_spec_CXX=''
  35319. - link_all_deplibs_CXX=yes
  35320. -
  35321. - if test "$GXX" = yes ; then
  35322. - lt_int_apple_cc_single_mod=no
  35323. - output_verbose_link_cmd='echo'
  35324. - if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
  35325. - lt_int_apple_cc_single_mod=yes
  35326. - fi
  35327. - if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
  35328. - archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
  35329. - else
  35330. - 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'
  35331. - fi
  35332. - module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  35333. - # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  35334. - if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
  35335. - 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}'
  35336. - else
  35337. - 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}'
  35338. - fi
  35339. - 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}'
  35340. - else
  35341. - case $cc_basename in
  35342. - xlc*)
  35343. - output_verbose_link_cmd='echo'
  35344. - 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'
  35345. - module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  35346. - # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  35347. - 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}'
  35348. - 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}'
  35349. - ;;
  35350. - *)
  35351. - ld_shlibs_CXX=no
  35352. - ;;
  35353. - esac
  35354. - fi
  35355. - ;;
  35356. -
  35357. - dgux*)
  35358. - case $cc_basename in
  35359. - ec++*)
  35360. - # FIXME: insert proper C++ library support
  35361. - ld_shlibs_CXX=no
  35362. - ;;
  35363. - ghcx*)
  35364. - # Green Hills C++ Compiler
  35365. - # FIXME: insert proper C++ library support
  35366. - ld_shlibs_CXX=no
  35367. - ;;
  35368. - *)
  35369. - # FIXME: insert proper C++ library support
  35370. - ld_shlibs_CXX=no
  35371. - ;;
  35372. - esac
  35373. - ;;
  35374. - freebsd[12]*)
  35375. - # C++ shared libraries reported to be fairly broken before switch to ELF
  35376. - ld_shlibs_CXX=no
  35377. - ;;
  35378. - freebsd-elf*)
  35379. - archive_cmds_need_lc_CXX=no
  35380. - ;;
  35381. - freebsd* | kfreebsd*-gnu | dragonfly*)
  35382. - # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
  35383. - # conventions
  35384. - ld_shlibs_CXX=yes
  35385. - ;;
  35386. - gnu*)
  35387. - ;;
  35388. - hpux9*)
  35389. - hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  35390. - hardcode_libdir_separator_CXX=:
  35391. - export_dynamic_flag_spec_CXX='${wl}-E'
  35392. - hardcode_direct_CXX=yes
  35393. - hardcode_minus_L_CXX=yes # Not in the search PATH,
  35394. - # but as the default
  35395. - # location of the library.
  35396. -
  35397. - case $cc_basename in
  35398. - CC*)
  35399. - # FIXME: insert proper C++ library support
  35400. - ld_shlibs_CXX=no
  35401. - ;;
  35402. - aCC*)
  35403. - 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'
  35404. - # Commands to make compiler produce verbose output that lists
  35405. - # what "hidden" libraries, object files and flags are used when
  35406. - # linking a shared library.
  35407. - #
  35408. - # There doesn't appear to be a way to prevent this compiler from
  35409. - # explicitly linking system object files so we need to strip them
  35410. - # from the output so that they don't get included in the library
  35411. - # dependencies.
  35412. - 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'
  35413. - ;;
  35414. - *)
  35415. - if test "$GXX" = yes; then
  35416. - 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'
  35417. - else
  35418. - # FIXME: insert proper C++ library support
  35419. - ld_shlibs_CXX=no
  35420. - fi
  35421. - ;;
  35422. - esac
  35423. - ;;
  35424. - hpux10*|hpux11*)
  35425. - if test $with_gnu_ld = no; then
  35426. - hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  35427. - hardcode_libdir_separator_CXX=:
  35428. -
  35429. - case $host_cpu in
  35430. - hppa*64*|ia64*)
  35431. - hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
  35432. - ;;
  35433. - *)
  35434. - export_dynamic_flag_spec_CXX='${wl}-E'
  35435. - ;;
  35436. - esac
  35437. - fi
  35438. - case $host_cpu in
  35439. - hppa*64*|ia64*)
  35440. - hardcode_direct_CXX=no
  35441. - hardcode_shlibpath_var_CXX=no
  35442. - ;;
  35443. - *)
  35444. - hardcode_direct_CXX=yes
  35445. - hardcode_minus_L_CXX=yes # Not in the search PATH,
  35446. - # but as the default
  35447. - # location of the library.
  35448. - ;;
  35449. - esac
  35450. -
  35451. - case $cc_basename in
  35452. - CC*)
  35453. - # FIXME: insert proper C++ library support
  35454. - ld_shlibs_CXX=no
  35455. - ;;
  35456. - aCC*)
  35457. - case $host_cpu in
  35458. - hppa*64*)
  35459. - archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  35460. - ;;
  35461. - ia64*)
  35462. - archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  35463. - ;;
  35464. - *)
  35465. - archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  35466. - ;;
  35467. - esac
  35468. - # Commands to make compiler produce verbose output that lists
  35469. - # what "hidden" libraries, object files and flags are used when
  35470. - # linking a shared library.
  35471. - #
  35472. - # There doesn't appear to be a way to prevent this compiler from
  35473. - # explicitly linking system object files so we need to strip them
  35474. - # from the output so that they don't get included in the library
  35475. - # dependencies.
  35476. - 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'
  35477. - ;;
  35478. - *)
  35479. - if test "$GXX" = yes; then
  35480. - if test $with_gnu_ld = no; then
  35481. - case $host_cpu in
  35482. - hppa*64*)
  35483. - archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  35484. - ;;
  35485. - ia64*)
  35486. - archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  35487. - ;;
  35488. - *)
  35489. - 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'
  35490. - ;;
  35491. - esac
  35492. - fi
  35493. - else
  35494. - # FIXME: insert proper C++ library support
  35495. - ld_shlibs_CXX=no
  35496. - fi
  35497. - ;;
  35498. - esac
  35499. - ;;
  35500. - interix3*)
  35501. - hardcode_direct_CXX=no
  35502. - hardcode_shlibpath_var_CXX=no
  35503. - hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  35504. - export_dynamic_flag_spec_CXX='${wl}-E'
  35505. - # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  35506. - # Instead, shared libraries are loaded at an image base (0x10000000 by
  35507. - # default) and relocated if they conflict, which is a slow very memory
  35508. - # consuming and fragmenting process. To avoid this, we pick a random,
  35509. - # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  35510. - # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  35511. - archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  35512. - archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  35513. - ;;
  35514. - irix5* | irix6*)
  35515. - case $cc_basename in
  35516. - CC*)
  35517. - # SGI C++
  35518. - archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
  35519. -
  35520. - # Archives containing C++ object files must be created using
  35521. - # "CC -ar", where "CC" is the IRIX C++ compiler. This is
  35522. - # necessary to make sure instantiated templates are included
  35523. - # in the archive.
  35524. - old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
  35525. - ;;
  35526. - *)
  35527. - if test "$GXX" = yes; then
  35528. - if test "$with_gnu_ld" = no; then
  35529. - archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  35530. - else
  35531. - 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'
  35532. - fi
  35533. - fi
  35534. - link_all_deplibs_CXX=yes
  35535. - ;;
  35536. - esac
  35537. - hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  35538. - hardcode_libdir_separator_CXX=:
  35539. - ;;
  35540. - linux*)
  35541. - case $cc_basename in
  35542. - KCC*)
  35543. - # Kuck and Associates, Inc. (KAI) C++ Compiler
  35544. -
  35545. - # KCC will only create a shared library if the output file
  35546. - # ends with ".so" (or ".sl" for HP-UX), so rename the library
  35547. - # to its proper name (with version) after linking.
  35548. - 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'
  35549. - 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'
  35550. - # Commands to make compiler produce verbose output that lists
  35551. - # what "hidden" libraries, object files and flags are used when
  35552. - # linking a shared library.
  35553. - #
  35554. - # There doesn't appear to be a way to prevent this compiler from
  35555. - # explicitly linking system object files so we need to strip them
  35556. - # from the output so that they don't get included in the library
  35557. - # dependencies.
  35558. - 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'
  35559. -
  35560. - hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
  35561. - export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  35562. -
  35563. - # Archives containing C++ object files must be created using
  35564. - # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  35565. - old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
  35566. - ;;
  35567. - icpc*)
  35568. - # Intel C++
  35569. - with_gnu_ld=yes
  35570. - # version 8.0 and above of icpc choke on multiply defined symbols
  35571. - # if we add $predep_objects and $postdep_objects, however 7.1 and
  35572. - # earlier do not add the objects themselves.
  35573. - case `$CC -V 2>&1` in
  35574. - *"Version 7."*)
  35575. - archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  35576. - 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'
  35577. - ;;
  35578. - *) # Version 8.0 or newer
  35579. - tmp_idyn=
  35580. - case $host_cpu in
  35581. - ia64*) tmp_idyn=' -i_dynamic';;
  35582. - esac
  35583. - archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  35584. - archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  35585. - ;;
  35586. - esac
  35587. - archive_cmds_need_lc_CXX=no
  35588. - hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  35589. - export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  35590. - whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  35591. - ;;
  35592. - pgCC*)
  35593. - # Portland Group C++ compiler
  35594. - archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  35595. - archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
  35596. -
  35597. - hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
  35598. - export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  35599. - whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
  35600. - ;;
  35601. - cxx*)
  35602. - # Compaq C++
  35603. - archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  35604. - 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'
  35605. -
  35606. - runpath_var=LD_RUN_PATH
  35607. - hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  35608. - hardcode_libdir_separator_CXX=:
  35609. -
  35610. - # Commands to make compiler produce verbose output that lists
  35611. - # what "hidden" libraries, object files and flags are used when
  35612. - # linking a shared library.
  35613. - #
  35614. - # There doesn't appear to be a way to prevent this compiler from
  35615. - # explicitly linking system object files so we need to strip them
  35616. - # from the output so that they don't get included in the library
  35617. - # dependencies.
  35618. - 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'
  35619. - ;;
  35620. - esac
  35621. - ;;
  35622. - lynxos*)
  35623. - # FIXME: insert proper C++ library support
  35624. - ld_shlibs_CXX=no
  35625. - ;;
  35626. - m88k*)
  35627. - # FIXME: insert proper C++ library support
  35628. - ld_shlibs_CXX=no
  35629. - ;;
  35630. - mvs*)
  35631. - case $cc_basename in
  35632. - cxx*)
  35633. - # FIXME: insert proper C++ library support
  35634. - ld_shlibs_CXX=no
  35635. - ;;
  35636. - *)
  35637. - # FIXME: insert proper C++ library support
  35638. - ld_shlibs_CXX=no
  35639. - ;;
  35640. - esac
  35641. - ;;
  35642. - netbsd*)
  35643. - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  35644. - archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
  35645. - wlarc=
  35646. - hardcode_libdir_flag_spec_CXX='-R$libdir'
  35647. - hardcode_direct_CXX=yes
  35648. - hardcode_shlibpath_var_CXX=no
  35649. - fi
  35650. - # Workaround some broken pre-1.5 toolchains
  35651. - output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
  35652. - ;;
  35653. - openbsd2*)
  35654. - # C++ shared libraries are fairly broken
  35655. - ld_shlibs_CXX=no
  35656. - ;;
  35657. - openbsd*)
  35658. - hardcode_direct_CXX=yes
  35659. - hardcode_shlibpath_var_CXX=no
  35660. - archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  35661. - hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  35662. - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  35663. - archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
  35664. - export_dynamic_flag_spec_CXX='${wl}-E'
  35665. - whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  35666. - fi
  35667. - output_verbose_link_cmd='echo'
  35668. - ;;
  35669. - osf3*)
  35670. - case $cc_basename in
  35671. - KCC*)
  35672. - # Kuck and Associates, Inc. (KAI) C++ Compiler
  35673. -
  35674. - # KCC will only create a shared library if the output file
  35675. - # ends with ".so" (or ".sl" for HP-UX), so rename the library
  35676. - # to its proper name (with version) after linking.
  35677. - 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'
  35678. -
  35679. - hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  35680. - hardcode_libdir_separator_CXX=:
  35681. -
  35682. - # Archives containing C++ object files must be created using
  35683. - # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  35684. - old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
  35685. -
  35686. - ;;
  35687. - RCC*)
  35688. - # Rational C++ 2.4.1
  35689. - # FIXME: insert proper C++ library support
  35690. - ld_shlibs_CXX=no
  35691. - ;;
  35692. - cxx*)
  35693. - allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  35694. - archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
  35695. -
  35696. - hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  35697. - hardcode_libdir_separator_CXX=:
  35698. -
  35699. - # Commands to make compiler produce verbose output that lists
  35700. - # what "hidden" libraries, object files and flags are used when
  35701. - # linking a shared library.
  35702. - #
  35703. - # There doesn't appear to be a way to prevent this compiler from
  35704. - # explicitly linking system object files so we need to strip them
  35705. - # from the output so that they don't get included in the library
  35706. - # dependencies.
  35707. - 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'
  35708. - ;;
  35709. - *)
  35710. - if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  35711. - allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  35712. - archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  35713. -
  35714. - hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  35715. - hardcode_libdir_separator_CXX=:
  35716. -
  35717. - # Commands to make compiler produce verbose output that lists
  35718. - # what "hidden" libraries, object files and flags are used when
  35719. - # linking a shared library.
  35720. - output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
  35721. -
  35722. - else
  35723. - # FIXME: insert proper C++ library support
  35724. - ld_shlibs_CXX=no
  35725. - fi
  35726. - ;;
  35727. - esac
  35728. - ;;
  35729. - osf4* | osf5*)
  35730. - case $cc_basename in
  35731. - KCC*)
  35732. - # Kuck and Associates, Inc. (KAI) C++ Compiler
  35733. -
  35734. - # KCC will only create a shared library if the output file
  35735. - # ends with ".so" (or ".sl" for HP-UX), so rename the library
  35736. - # to its proper name (with version) after linking.
  35737. - 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'
  35738. -
  35739. - hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  35740. - hardcode_libdir_separator_CXX=:
  35741. -
  35742. - # Archives containing C++ object files must be created using
  35743. - # the KAI C++ compiler.
  35744. - old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
  35745. - ;;
  35746. - RCC*)
  35747. - # Rational C++ 2.4.1
  35748. - # FIXME: insert proper C++ library support
  35749. - ld_shlibs_CXX=no
  35750. - ;;
  35751. - cxx*)
  35752. - allow_undefined_flag_CXX=' -expect_unresolved \*'
  35753. - archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
  35754. - archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
  35755. - echo "-hidden">> $lib.exp~
  35756. - $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~
  35757. - $rm $lib.exp'
  35758. -
  35759. - hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  35760. - hardcode_libdir_separator_CXX=:
  35761. -
  35762. - # Commands to make compiler produce verbose output that lists
  35763. - # what "hidden" libraries, object files and flags are used when
  35764. - # linking a shared library.
  35765. - #
  35766. - # There doesn't appear to be a way to prevent this compiler from
  35767. - # explicitly linking system object files so we need to strip them
  35768. - # from the output so that they don't get included in the library
  35769. - # dependencies.
  35770. - 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'
  35771. - ;;
  35772. - *)
  35773. - if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  35774. - allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  35775. - archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  35776. -
  35777. - hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  35778. - hardcode_libdir_separator_CXX=:
  35779. -
  35780. - # Commands to make compiler produce verbose output that lists
  35781. - # what "hidden" libraries, object files and flags are used when
  35782. - # linking a shared library.
  35783. - output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
  35784. -
  35785. - else
  35786. - # FIXME: insert proper C++ library support
  35787. - ld_shlibs_CXX=no
  35788. - fi
  35789. - ;;
  35790. - esac
  35791. - ;;
  35792. - psos*)
  35793. - # FIXME: insert proper C++ library support
  35794. - ld_shlibs_CXX=no
  35795. - ;;
  35796. - sunos4*)
  35797. - case $cc_basename in
  35798. - CC*)
  35799. - # Sun C++ 4.x
  35800. - # FIXME: insert proper C++ library support
  35801. - ld_shlibs_CXX=no
  35802. - ;;
  35803. - lcc*)
  35804. - # Lucid
  35805. - # FIXME: insert proper C++ library support
  35806. - ld_shlibs_CXX=no
  35807. - ;;
  35808. - *)
  35809. - # FIXME: insert proper C++ library support
  35810. - ld_shlibs_CXX=no
  35811. - ;;
  35812. - esac
  35813. - ;;
  35814. - solaris*)
  35815. - case $cc_basename in
  35816. - CC*)
  35817. - # Sun C++ 4.2, 5.x and Centerline C++
  35818. - archive_cmds_need_lc_CXX=yes
  35819. - no_undefined_flag_CXX=' -zdefs'
  35820. - archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  35821. - archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  35822. - $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'
  35823. -
  35824. - hardcode_libdir_flag_spec_CXX='-R$libdir'
  35825. - hardcode_shlibpath_var_CXX=no
  35826. - case $host_os in
  35827. - solaris2.[0-5] | solaris2.[0-5].*) ;;
  35828. - *)
  35829. - # The C++ compiler is used as linker so we must use $wl
  35830. - # flag to pass the commands to the underlying system
  35831. - # linker. We must also pass each convience library through
  35832. - # to the system linker between allextract/defaultextract.
  35833. - # The C++ compiler will combine linker options so we
  35834. - # cannot just pass the convience library names through
  35835. - # without $wl.
  35836. - # Supported since Solaris 2.6 (maybe 2.5.1?)
  35837. - whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract'
  35838. - ;;
  35839. - esac
  35840. - link_all_deplibs_CXX=yes
  35841. -
  35842. - output_verbose_link_cmd='echo'
  35843. -
  35844. - # Archives containing C++ object files must be created using
  35845. - # "CC -xar", where "CC" is the Sun C++ compiler. This is
  35846. - # necessary to make sure instantiated templates are included
  35847. - # in the archive.
  35848. - old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  35849. - ;;
  35850. - gcx*)
  35851. - # Green Hills C++ Compiler
  35852. - archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  35853. -
  35854. - # The C++ compiler must be used to create the archive.
  35855. - old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
  35856. - ;;
  35857. - *)
  35858. - # GNU C++ compiler with Solaris linker
  35859. - if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  35860. - no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
  35861. - if $CC --version | grep -v '^2\.7' > /dev/null; then
  35862. - archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  35863. - archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  35864. - $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
  35865. -
  35866. - # Commands to make compiler produce verbose output that lists
  35867. - # what "hidden" libraries, object files and flags are used when
  35868. - # linking a shared library.
  35869. - output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
  35870. - else
  35871. - # g++ 2.7 appears to require `-G' NOT `-shared' on this
  35872. - # platform.
  35873. - archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  35874. - archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  35875. - $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
  35876. -
  35877. - # Commands to make compiler produce verbose output that lists
  35878. - # what "hidden" libraries, object files and flags are used when
  35879. - # linking a shared library.
  35880. - output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
  35881. - fi
  35882. -
  35883. - hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
  35884. - fi
  35885. - ;;
  35886. - esac
  35887. - ;;
  35888. - sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  35889. - no_undefined_flag_CXX='${wl}-z,text'
  35890. - archive_cmds_need_lc_CXX=no
  35891. - hardcode_shlibpath_var_CXX=no
  35892. - runpath_var='LD_RUN_PATH'
  35893. -
  35894. - case $cc_basename in
  35895. - CC*)
  35896. - archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  35897. - archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  35898. - ;;
  35899. - *)
  35900. - archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  35901. - archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  35902. - ;;
  35903. - esac
  35904. - ;;
  35905. - sysv5* | sco3.2v5* | sco5v6*)
  35906. - # Note: We can NOT use -z defs as we might desire, because we do not
  35907. - # link with -lc, and that would cause any symbols used from libc to
  35908. - # always be unresolved, which means just about no library would
  35909. - # ever link correctly. If we're not using GNU ld we use -z text
  35910. - # though, which does catch some bad symbols but isn't as heavy-handed
  35911. - # as -z defs.
  35912. - # For security reasons, it is highly recommended that you always
  35913. - # use absolute paths for naming shared libraries, and exclude the
  35914. - # DT_RUNPATH tag from executables and libraries. But doing so
  35915. - # requires that you compile everything twice, which is a pain.
  35916. - # So that behaviour is only enabled if SCOABSPATH is set to a
  35917. - # non-empty value in the environment. Most likely only useful for
  35918. - # creating official distributions of packages.
  35919. - # This is a hack until libtool officially supports absolute path
  35920. - # names for shared libraries.
  35921. - no_undefined_flag_CXX='${wl}-z,text'
  35922. - allow_undefined_flag_CXX='${wl}-z,nodefs'
  35923. - archive_cmds_need_lc_CXX=no
  35924. - hardcode_shlibpath_var_CXX=no
  35925. - hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
  35926. - hardcode_libdir_separator_CXX=':'
  35927. - link_all_deplibs_CXX=yes
  35928. - export_dynamic_flag_spec_CXX='${wl}-Bexport'
  35929. - runpath_var='LD_RUN_PATH'
  35930. -
  35931. - case $cc_basename in
  35932. - CC*)
  35933. - archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  35934. - archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  35935. - ;;
  35936. - *)
  35937. - archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  35938. - archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  35939. - ;;
  35940. - esac
  35941. - ;;
  35942. - tandem*)
  35943. - case $cc_basename in
  35944. - NCC*)
  35945. - # NonStop-UX NCC 3.20
  35946. - # FIXME: insert proper C++ library support
  35947. - ld_shlibs_CXX=no
  35948. - ;;
  35949. - *)
  35950. - # FIXME: insert proper C++ library support
  35951. - ld_shlibs_CXX=no
  35952. - ;;
  35953. - esac
  35954. - ;;
  35955. - vxworks*)
  35956. - # FIXME: insert proper C++ library support
  35957. - ld_shlibs_CXX=no
  35958. - ;;
  35959. - *)
  35960. - # FIXME: insert proper C++ library support
  35961. - ld_shlibs_CXX=no
  35962. - ;;
  35963. -esac
  35964. -{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
  35965. -echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
  35966. -test "$ld_shlibs_CXX" = no && can_build_shared=no
  35967. -
  35968. -GCC_CXX="$GXX"
  35969. -LD_CXX="$LD"
  35970. -
  35971. -
  35972. -cat > conftest.$ac_ext <<EOF
  35973. -class Foo
  35974. -{
  35975. -public:
  35976. - Foo (void) { a = 0; }
  35977. -private:
  35978. - int a;
  35979. -};
  35980. -EOF
  35981. -
  35982. -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  35983. - (eval $ac_compile) 2>&5
  35984. - ac_status=$?
  35985. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  35986. - (exit $ac_status); }; then
  35987. - # Parse the compiler output and extract the necessary
  35988. - # objects, libraries and library flags.
  35989. -
  35990. - # Sentinel used to keep track of whether or not we are before
  35991. - # the conftest object file.
  35992. - pre_test_object_deps_done=no
  35993. -
  35994. - # The `*' in the case matches for architectures that use `case' in
  35995. - # $output_verbose_cmd can trigger glob expansion during the loop
  35996. - # eval without this substitution.
  35997. - output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
  35998. -
  35999. - for p in `eval $output_verbose_link_cmd`; do
  36000. - case $p in
  36001. -
  36002. - -L* | -R* | -l*)
  36003. - # Some compilers place space between "-{L,R}" and the path.
  36004. - # Remove the space.
  36005. - if test $p = "-L" \
  36006. - || test $p = "-R"; then
  36007. - prev=$p
  36008. - continue
  36009. - else
  36010. - prev=
  36011. - fi
  36012. -
  36013. - if test "$pre_test_object_deps_done" = no; then
  36014. - case $p in
  36015. - -L* | -R*)
  36016. - # Internal compiler library paths should come after those
  36017. - # provided the user. The postdeps already come after the
  36018. - # user supplied libs so there is no need to process them.
  36019. - if test -z "$compiler_lib_search_path_CXX"; then
  36020. - compiler_lib_search_path_CXX="${prev}${p}"
  36021. - else
  36022. - compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
  36023. - fi
  36024. - ;;
  36025. - # The "-l" case would never come before the object being
  36026. - # linked, so don't bother handling this case.
  36027. - esac
  36028. - else
  36029. - if test -z "$postdeps_CXX"; then
  36030. - postdeps_CXX="${prev}${p}"
  36031. - else
  36032. - postdeps_CXX="${postdeps_CXX} ${prev}${p}"
  36033. - fi
  36034. - fi
  36035. - ;;
  36036. -
  36037. - *.$objext)
  36038. - # This assumes that the test object file only shows up
  36039. - # once in the compiler output.
  36040. - if test "$p" = "conftest.$objext"; then
  36041. - pre_test_object_deps_done=yes
  36042. - continue
  36043. - fi
  36044. -
  36045. - if test "$pre_test_object_deps_done" = no; then
  36046. - if test -z "$predep_objects_CXX"; then
  36047. - predep_objects_CXX="$p"
  36048. - else
  36049. - predep_objects_CXX="$predep_objects_CXX $p"
  36050. - fi
  36051. - else
  36052. - if test -z "$postdep_objects_CXX"; then
  36053. - postdep_objects_CXX="$p"
  36054. - else
  36055. - postdep_objects_CXX="$postdep_objects_CXX $p"
  36056. - fi
  36057. - fi
  36058. - ;;
  36059. -
  36060. - *) ;; # Ignore the rest.
  36061. -
  36062. - esac
  36063. - done
  36064. -
  36065. - # Clean up.
  36066. - rm -f a.out a.exe
  36067. -else
  36068. - echo "libtool.m4: error: problem compiling CXX test program"
  36069. -fi
  36070. -
  36071. -$rm -f confest.$objext
  36072. -
  36073. -# PORTME: override above test on systems where it is broken
  36074. -case $host_os in
  36075. -interix3*)
  36076. - # Interix 3.5 installs completely hosed .la files for C++, so rather than
  36077. - # hack all around it, let's just trust "g++" to DTRT.
  36078. - predep_objects_CXX=
  36079. - postdep_objects_CXX=
  36080. - postdeps_CXX=
  36081. - ;;
  36082. -
  36083. -solaris*)
  36084. - case $cc_basename in
  36085. - CC*)
  36086. - # Adding this requires a known-good setup of shared libraries for
  36087. - # Sun compiler versions before 5.6, else PIC objects from an old
  36088. - # archive will be linked into the output, leading to subtle bugs.
  36089. - postdeps_CXX='-lCstd -lCrun'
  36090. - ;;
  36091. - esac
  36092. - ;;
  36093. -esac
  36094. -
  36095. -
  36096. -case " $postdeps_CXX " in
  36097. -*" -lc "*) archive_cmds_need_lc_CXX=no ;;
  36098. -esac
  36099. -
  36100. -lt_prog_compiler_wl_CXX=
  36101. -lt_prog_compiler_pic_CXX=
  36102. -lt_prog_compiler_static_CXX=
  36103. -
  36104. -{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
  36105. -echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
  36106. -
  36107. - # C++ specific cases for pic, static, wl, etc.
  36108. - if test "$GXX" = yes; then
  36109. - lt_prog_compiler_wl_CXX='-Wl,'
  36110. - lt_prog_compiler_static_CXX='-static'
  36111. -
  36112. - case $host_os in
  36113. - aix*)
  36114. - # All AIX code is PIC.
  36115. - if test "$host_cpu" = ia64; then
  36116. - # AIX 5 now supports IA64 processor
  36117. - lt_prog_compiler_static_CXX='-Bstatic'
  36118. - fi
  36119. - ;;
  36120. - amigaos*)
  36121. - # FIXME: we need at least 68020 code to build shared libraries, but
  36122. - # adding the `-m68020' flag to GCC prevents building anything better,
  36123. - # like `-m68040'.
  36124. - lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
  36125. - ;;
  36126. - beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  36127. - # PIC is the default for these OSes.
  36128. - ;;
  36129. - mingw* | os2* | pw32*)
  36130. - # This hack is so that the source file can tell whether it is being
  36131. - # built for inclusion in a dll (and should export symbols for example).
  36132. - lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  36133. - ;;
  36134. - darwin* | rhapsody*)
  36135. - # PIC is the default on this platform
  36136. - # Common symbols not allowed in MH_DYLIB files
  36137. - lt_prog_compiler_pic_CXX='-fno-common'
  36138. - ;;
  36139. - *djgpp*)
  36140. - # DJGPP does not support shared libraries at all
  36141. - lt_prog_compiler_pic_CXX=
  36142. - ;;
  36143. - interix3*)
  36144. - # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  36145. - # Instead, we relocate shared libraries at runtime.
  36146. - ;;
  36147. - sysv4*MP*)
  36148. - if test -d /usr/nec; then
  36149. - lt_prog_compiler_pic_CXX=-Kconform_pic
  36150. - fi
  36151. - ;;
  36152. - hpux*)
  36153. - # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  36154. - # not for PA HP-UX.
  36155. - case $host_cpu in
  36156. - hppa*64*|ia64*)
  36157. - ;;
  36158. - *)
  36159. - lt_prog_compiler_pic_CXX='-fPIC'
  36160. - ;;
  36161. - esac
  36162. - ;;
  36163. - *)
  36164. - lt_prog_compiler_pic_CXX='-fPIC'
  36165. - ;;
  36166. - esac
  36167. - else
  36168. - case $host_os in
  36169. - aix4* | aix5*)
  36170. - # All AIX code is PIC.
  36171. - if test "$host_cpu" = ia64; then
  36172. - # AIX 5 now supports IA64 processor
  36173. - lt_prog_compiler_static_CXX='-Bstatic'
  36174. - else
  36175. - lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
  36176. - fi
  36177. - ;;
  36178. - chorus*)
  36179. - case $cc_basename in
  36180. - cxch68*)
  36181. - # Green Hills C++ Compiler
  36182. - # _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"
  36183. - ;;
  36184. - esac
  36185. - ;;
  36186. - darwin*)
  36187. - # PIC is the default on this platform
  36188. - # Common symbols not allowed in MH_DYLIB files
  36189. - case $cc_basename in
  36190. - xlc*)
  36191. - lt_prog_compiler_pic_CXX='-qnocommon'
  36192. - lt_prog_compiler_wl_CXX='-Wl,'
  36193. - ;;
  36194. - esac
  36195. - ;;
  36196. - dgux*)
  36197. - case $cc_basename in
  36198. - ec++*)
  36199. - lt_prog_compiler_pic_CXX='-KPIC'
  36200. - ;;
  36201. - ghcx*)
  36202. - # Green Hills C++ Compiler
  36203. - lt_prog_compiler_pic_CXX='-pic'
  36204. - ;;
  36205. - *)
  36206. - ;;
  36207. - esac
  36208. - ;;
  36209. - freebsd* | kfreebsd*-gnu | dragonfly*)
  36210. - # FreeBSD uses GNU C++
  36211. - ;;
  36212. - hpux9* | hpux10* | hpux11*)
  36213. - case $cc_basename in
  36214. - CC*)
  36215. - lt_prog_compiler_wl_CXX='-Wl,'
  36216. - lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  36217. - if test "$host_cpu" != ia64; then
  36218. - lt_prog_compiler_pic_CXX='+Z'
  36219. - fi
  36220. - ;;
  36221. - aCC*)
  36222. - lt_prog_compiler_wl_CXX='-Wl,'
  36223. - lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  36224. - case $host_cpu in
  36225. - hppa*64*|ia64*)
  36226. - # +Z the default
  36227. - ;;
  36228. - *)
  36229. - lt_prog_compiler_pic_CXX='+Z'
  36230. - ;;
  36231. - esac
  36232. - ;;
  36233. - *)
  36234. - ;;
  36235. - esac
  36236. - ;;
  36237. - interix*)
  36238. - # This is c89, which is MS Visual C++ (no shared libs)
  36239. - # Anyone wants to do a port?
  36240. - ;;
  36241. - irix5* | irix6* | nonstopux*)
  36242. - case $cc_basename in
  36243. - CC*)
  36244. - lt_prog_compiler_wl_CXX='-Wl,'
  36245. - lt_prog_compiler_static_CXX='-non_shared'
  36246. - # CC pic flag -KPIC is the default.
  36247. - ;;
  36248. - *)
  36249. - ;;
  36250. - esac
  36251. - ;;
  36252. - linux*)
  36253. - case $cc_basename in
  36254. - KCC*)
  36255. - # KAI C++ Compiler
  36256. - lt_prog_compiler_wl_CXX='--backend -Wl,'
  36257. - lt_prog_compiler_pic_CXX='-fPIC'
  36258. - ;;
  36259. - icpc* | ecpc*)
  36260. - # Intel C++
  36261. - lt_prog_compiler_wl_CXX='-Wl,'
  36262. - lt_prog_compiler_pic_CXX='-KPIC'
  36263. - lt_prog_compiler_static_CXX='-static'
  36264. - ;;
  36265. - pgCC*)
  36266. - # Portland Group C++ compiler.
  36267. - lt_prog_compiler_wl_CXX='-Wl,'
  36268. - lt_prog_compiler_pic_CXX='-fpic'
  36269. - lt_prog_compiler_static_CXX='-Bstatic'
  36270. - ;;
  36271. - cxx*)
  36272. - # Compaq C++
  36273. - # Make sure the PIC flag is empty. It appears that all Alpha
  36274. - # Linux and Compaq Tru64 Unix objects are PIC.
  36275. - lt_prog_compiler_pic_CXX=
  36276. - lt_prog_compiler_static_CXX='-non_shared'
  36277. - ;;
  36278. - *)
  36279. - ;;
  36280. - esac
  36281. - ;;
  36282. - lynxos*)
  36283. - ;;
  36284. - m88k*)
  36285. - ;;
  36286. - mvs*)
  36287. - case $cc_basename in
  36288. - cxx*)
  36289. - lt_prog_compiler_pic_CXX='-W c,exportall'
  36290. - ;;
  36291. - *)
  36292. - ;;
  36293. - esac
  36294. - ;;
  36295. - netbsd*)
  36296. - ;;
  36297. - osf3* | osf4* | osf5*)
  36298. - case $cc_basename in
  36299. - KCC*)
  36300. - lt_prog_compiler_wl_CXX='--backend -Wl,'
  36301. - ;;
  36302. - RCC*)
  36303. - # Rational C++ 2.4.1
  36304. - lt_prog_compiler_pic_CXX='-pic'
  36305. - ;;
  36306. - cxx*)
  36307. - # Digital/Compaq C++
  36308. - lt_prog_compiler_wl_CXX='-Wl,'
  36309. - # Make sure the PIC flag is empty. It appears that all Alpha
  36310. - # Linux and Compaq Tru64 Unix objects are PIC.
  36311. - lt_prog_compiler_pic_CXX=
  36312. - lt_prog_compiler_static_CXX='-non_shared'
  36313. - ;;
  36314. - *)
  36315. - ;;
  36316. - esac
  36317. - ;;
  36318. - psos*)
  36319. - ;;
  36320. - solaris*)
  36321. - case $cc_basename in
  36322. - CC*)
  36323. - # Sun C++ 4.2, 5.x and Centerline C++
  36324. - lt_prog_compiler_pic_CXX='-KPIC'
  36325. - lt_prog_compiler_static_CXX='-Bstatic'
  36326. - lt_prog_compiler_wl_CXX='-Qoption ld '
  36327. - ;;
  36328. - gcx*)
  36329. - # Green Hills C++ Compiler
  36330. - lt_prog_compiler_pic_CXX='-PIC'
  36331. - ;;
  36332. - *)
  36333. - ;;
  36334. - esac
  36335. - ;;
  36336. - sunos4*)
  36337. - case $cc_basename in
  36338. - CC*)
  36339. - # Sun C++ 4.x
  36340. - lt_prog_compiler_pic_CXX='-pic'
  36341. - lt_prog_compiler_static_CXX='-Bstatic'
  36342. - ;;
  36343. - lcc*)
  36344. - # Lucid
  36345. - lt_prog_compiler_pic_CXX='-pic'
  36346. - ;;
  36347. - *)
  36348. - ;;
  36349. - esac
  36350. - ;;
  36351. - tandem*)
  36352. - case $cc_basename in
  36353. - NCC*)
  36354. - # NonStop-UX NCC 3.20
  36355. - lt_prog_compiler_pic_CXX='-KPIC'
  36356. - ;;
  36357. - *)
  36358. - ;;
  36359. - esac
  36360. - ;;
  36361. - sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  36362. - case $cc_basename in
  36363. - CC*)
  36364. - lt_prog_compiler_wl_CXX='-Wl,'
  36365. - lt_prog_compiler_pic_CXX='-KPIC'
  36366. - lt_prog_compiler_static_CXX='-Bstatic'
  36367. - ;;
  36368. - esac
  36369. - ;;
  36370. - vxworks*)
  36371. - ;;
  36372. - *)
  36373. - lt_prog_compiler_can_build_shared_CXX=no
  36374. - ;;
  36375. - esac
  36376. - fi
  36377. -
  36378. -{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
  36379. -echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
  36380. -
  36381. -#
  36382. -# Check to make sure the PIC flag actually works.
  36383. -#
  36384. -if test -n "$lt_prog_compiler_pic_CXX"; then
  36385. -
  36386. -{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
  36387. -echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
  36388. -if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
  36389. - echo $ECHO_N "(cached) $ECHO_C" >&6
  36390. -else
  36391. - lt_prog_compiler_pic_works_CXX=no
  36392. - ac_outfile=conftest.$ac_objext
  36393. - printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  36394. - lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
  36395. - # Insert the option either (1) after the last *FLAGS variable, or
  36396. - # (2) before a word containing "conftest.", or (3) at the end.
  36397. - # Note that $ac_compile itself does not contain backslashes and begins
  36398. - # with a dollar sign (not a hyphen), so the echo should work correctly.
  36399. - # The option is referenced via a variable to avoid confusing sed.
  36400. - lt_compile=`echo "$ac_compile" | $SED \
  36401. - -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  36402. - -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  36403. - -e 's:$: $lt_compiler_flag:'`
  36404. - (eval echo "\"\$as_me:13089: $lt_compile\"" >&5)
  36405. - (eval "$lt_compile" 2>conftest.err)
  36406. - ac_status=$?
  36407. - cat conftest.err >&5
  36408. - echo "$as_me:13093: \$? = $ac_status" >&5
  36409. - if (exit $ac_status) && test -s "$ac_outfile"; then
  36410. - # The compiler can only warn and ignore the option if not recognized
  36411. - # So say no if there are warnings other than the usual output.
  36412. - $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  36413. - $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  36414. - if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  36415. - lt_prog_compiler_pic_works_CXX=yes
  36416. - fi
  36417. - fi
  36418. - $rm conftest*
  36419. -
  36420. -fi
  36421. -{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
  36422. -echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
  36423. -
  36424. -if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
  36425. - case $lt_prog_compiler_pic_CXX in
  36426. - "" | " "*) ;;
  36427. - *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
  36428. - esac
  36429. -else
  36430. - lt_prog_compiler_pic_CXX=
  36431. - lt_prog_compiler_can_build_shared_CXX=no
  36432. -fi
  36433. -
  36434. -fi
  36435. -case $host_os in
  36436. - # For platforms which do not support PIC, -DPIC is meaningless:
  36437. - *djgpp*)
  36438. - lt_prog_compiler_pic_CXX=
  36439. - ;;
  36440. - *)
  36441. - lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
  36442. - ;;
  36443. -esac
  36444. -
  36445. -#
  36446. -# Check to make sure the static flag actually works.
  36447. -#
  36448. -wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
  36449. -{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  36450. -echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
  36451. -if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
  36452. - echo $ECHO_N "(cached) $ECHO_C" >&6
  36453. -else
  36454. - lt_prog_compiler_static_works_CXX=no
  36455. - save_LDFLAGS="$LDFLAGS"
  36456. - LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  36457. - printf "$lt_simple_link_test_code" > conftest.$ac_ext
  36458. - if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  36459. - # The linker can only warn and ignore the option if not recognized
  36460. - # So say no if there are warnings
  36461. - if test -s conftest.err; then
  36462. - # Append any errors to the config.log.
  36463. - cat conftest.err 1>&5
  36464. - $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
  36465. - $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  36466. - if diff conftest.exp conftest.er2 >/dev/null; then
  36467. - lt_prog_compiler_static_works_CXX=yes
  36468. - fi
  36469. - else
  36470. - lt_prog_compiler_static_works_CXX=yes
  36471. - fi
  36472. - fi
  36473. - $rm conftest*
  36474. - LDFLAGS="$save_LDFLAGS"
  36475. -
  36476. -fi
  36477. -{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
  36478. -echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
  36479. -
  36480. -if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
  36481. - :
  36482. -else
  36483. - lt_prog_compiler_static_CXX=
  36484. -fi
  36485. -
  36486. -
  36487. -{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
  36488. -echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
  36489. -if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
  36490. - echo $ECHO_N "(cached) $ECHO_C" >&6
  36491. -else
  36492. - lt_cv_prog_compiler_c_o_CXX=no
  36493. - $rm -r conftest 2>/dev/null
  36494. - mkdir conftest
  36495. - cd conftest
  36496. - mkdir out
  36497. - printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  36498. -
  36499. - lt_compiler_flag="-o out/conftest2.$ac_objext"
  36500. - # Insert the option either (1) after the last *FLAGS variable, or
  36501. - # (2) before a word containing "conftest.", or (3) at the end.
  36502. - # Note that $ac_compile itself does not contain backslashes and begins
  36503. - # with a dollar sign (not a hyphen), so the echo should work correctly.
  36504. - lt_compile=`echo "$ac_compile" | $SED \
  36505. - -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  36506. - -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  36507. - -e 's:$: $lt_compiler_flag:'`
  36508. - (eval echo "\"\$as_me:13193: $lt_compile\"" >&5)
  36509. - (eval "$lt_compile" 2>out/conftest.err)
  36510. - ac_status=$?
  36511. - cat out/conftest.err >&5
  36512. - echo "$as_me:13197: \$? = $ac_status" >&5
  36513. - if (exit $ac_status) && test -s out/conftest2.$ac_objext
  36514. - then
  36515. - # The compiler can only warn and ignore the option if not recognized
  36516. - # So say no if there are warnings
  36517. - $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  36518. - $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  36519. - if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  36520. - lt_cv_prog_compiler_c_o_CXX=yes
  36521. - fi
  36522. - fi
  36523. - chmod u+w . 2>&5
  36524. - $rm conftest*
  36525. - # SGI C++ compiler will create directory out/ii_files/ for
  36526. - # template instantiation
  36527. - test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
  36528. - $rm out/* && rmdir out
  36529. - cd ..
  36530. - rmdir conftest
  36531. - $rm conftest*
  36532. -
  36533. -fi
  36534. -{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  36535. -echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
  36536. -
  36537. -
  36538. -hard_links="nottested"
  36539. -if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
  36540. - # do not overwrite the value of need_locks provided by the user
  36541. - { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
  36542. -echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
  36543. - hard_links=yes
  36544. - $rm conftest*
  36545. - ln conftest.a conftest.b 2>/dev/null && hard_links=no
  36546. - touch conftest.a
  36547. - ln conftest.a conftest.b 2>&5 || hard_links=no
  36548. - ln conftest.a conftest.b 2>/dev/null && hard_links=no
  36549. - { echo "$as_me:$LINENO: result: $hard_links" >&5
  36550. -echo "${ECHO_T}$hard_links" >&6; }
  36551. - if test "$hard_links" = no; then
  36552. - { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  36553. -echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  36554. - need_locks=warn
  36555. - fi
  36556. -else
  36557. - need_locks=no
  36558. -fi
  36559. -
  36560. -{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  36561. -echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
  36562. -
  36563. - export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  36564. - case $host_os in
  36565. - aix4* | aix5*)
  36566. - # If we're using GNU nm, then we don't want the "-C" option.
  36567. - # -C means demangle to AIX nm, but means don't demangle with GNU nm
  36568. - if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
  36569. - 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'
  36570. - else
  36571. - 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'
  36572. - fi
  36573. - ;;
  36574. - pw32*)
  36575. - export_symbols_cmds_CXX="$ltdll_cmds"
  36576. - ;;
  36577. - cygwin* | mingw*)
  36578. - export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/;/^.* __nm__/s/^.* __nm__\([^ ]*\) [^ ]*/\1 DATA/;/^I /d;/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
  36579. - ;;
  36580. - *)
  36581. - export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  36582. - ;;
  36583. - esac
  36584. -
  36585. -{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
  36586. -echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
  36587. -test "$ld_shlibs_CXX" = no && can_build_shared=no
  36588. -
  36589. -#
  36590. -# Do we need to explicitly link libc?
  36591. -#
  36592. -case "x$archive_cmds_need_lc_CXX" in
  36593. -x|xyes)
  36594. - # Assume -lc should be added
  36595. - archive_cmds_need_lc_CXX=yes
  36596. -
  36597. - if test "$enable_shared" = yes && test "$GCC" = yes; then
  36598. - case $archive_cmds_CXX in
  36599. - *'~'*)
  36600. - # FIXME: we may have to deal with multi-command sequences.
  36601. - ;;
  36602. - '$CC '*)
  36603. - # Test whether the compiler implicitly links with -lc since on some
  36604. - # systems, -lgcc has to come before -lc. If gcc already passes -lc
  36605. - # to ld, don't add -lc before -lgcc.
  36606. - { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
  36607. -echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
  36608. - $rm conftest*
  36609. - printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  36610. -
  36611. - if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  36612. - (eval $ac_compile) 2>&5
  36613. - ac_status=$?
  36614. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  36615. - (exit $ac_status); } 2>conftest.err; then
  36616. - soname=conftest
  36617. - lib=conftest
  36618. - libobjs=conftest.$ac_objext
  36619. - deplibs=
  36620. - wl=$lt_prog_compiler_wl_CXX
  36621. - pic_flag=$lt_prog_compiler_pic_CXX
  36622. - compiler_flags=-v
  36623. - linker_flags=-v
  36624. - verstring=
  36625. - output_objdir=.
  36626. - libname=conftest
  36627. - lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
  36628. - allow_undefined_flag_CXX=
  36629. - if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
  36630. - (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
  36631. - ac_status=$?
  36632. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  36633. - (exit $ac_status); }
  36634. - then
  36635. - archive_cmds_need_lc_CXX=no
  36636. - else
  36637. - archive_cmds_need_lc_CXX=yes
  36638. - fi
  36639. - allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
  36640. - else
  36641. - cat conftest.err 1>&5
  36642. - fi
  36643. - $rm conftest*
  36644. - { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
  36645. -echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
  36646. - ;;
  36647. - esac
  36648. - fi
  36649. - ;;
  36650. -esac
  36651. -
  36652. -{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
  36653. -echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
  36654. -library_names_spec=
  36655. -libname_spec='lib$name'
  36656. -soname_spec=
  36657. -shrext_cmds=".so"
  36658. -postinstall_cmds=
  36659. -postuninstall_cmds=
  36660. -finish_cmds=
  36661. -finish_eval=
  36662. -shlibpath_var=
  36663. -shlibpath_overrides_runpath=unknown
  36664. -version_type=none
  36665. -dynamic_linker="$host_os ld.so"
  36666. -sys_lib_dlsearch_path_spec="/lib /usr/lib"
  36667. -if test "$GCC" = yes; then
  36668. - sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  36669. - if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
  36670. - # if the path contains ";" then we assume it to be the separator
  36671. - # otherwise default to the standard path separator (i.e. ":") - it is
  36672. - # assumed that no part of a normal pathname contains ";" but that should
  36673. - # okay in the real world where ";" in dirpaths is itself problematic.
  36674. - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  36675. - else
  36676. - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  36677. - fi
  36678. -else
  36679. - sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  36680. -fi
  36681. -need_lib_prefix=unknown
  36682. -hardcode_into_libs=no
  36683. -
  36684. -# when you set need_version to no, make sure it does not cause -set_version
  36685. -# flags to be left without arguments
  36686. -need_version=unknown
  36687. -
  36688. -case $host_os in
  36689. -aix3*)
  36690. - version_type=linux
  36691. - library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  36692. - shlibpath_var=LIBPATH
  36693. -
  36694. - # AIX 3 has no versioning support, so we append a major version to the name.
  36695. - soname_spec='${libname}${release}${shared_ext}$major'
  36696. - ;;
  36697. -
  36698. -aix4* | aix5*)
  36699. - version_type=linux
  36700. - need_lib_prefix=no
  36701. - need_version=no
  36702. - hardcode_into_libs=yes
  36703. - if test "$host_cpu" = ia64; then
  36704. - # AIX 5 supports IA64
  36705. - library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  36706. - shlibpath_var=LD_LIBRARY_PATH
  36707. - else
  36708. - # With GCC up to 2.95.x, collect2 would create an import file
  36709. - # for dependence libraries. The import file would start with
  36710. - # the line `#! .'. This would cause the generated library to
  36711. - # depend on `.', always an invalid library. This was fixed in
  36712. - # development snapshots of GCC prior to 3.0.
  36713. - case $host_os in
  36714. - aix4 | aix4.[01] | aix4.[01].*)
  36715. - if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  36716. - echo ' yes '
  36717. - echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
  36718. - :
  36719. - else
  36720. - can_build_shared=no
  36721. - fi
  36722. - ;;
  36723. - esac
  36724. - # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  36725. - # soname into executable. Probably we can add versioning support to
  36726. - # collect2, so additional links can be useful in future.
  36727. - if test "$aix_use_runtimelinking" = yes; then
  36728. - # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  36729. - # instead of lib<name>.a to let people know that these are not
  36730. - # typical AIX shared libraries.
  36731. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  36732. - else
  36733. - # We preserve .a as extension for shared libraries through AIX4.2
  36734. - # and later when we are not doing run time linking.
  36735. - library_names_spec='${libname}${release}.a $libname.a'
  36736. - soname_spec='${libname}${release}${shared_ext}$major'
  36737. - fi
  36738. - shlibpath_var=LIBPATH
  36739. - fi
  36740. - ;;
  36741. -
  36742. -amigaos*)
  36743. - library_names_spec='$libname.ixlibrary $libname.a'
  36744. - # Create ${libname}_ixlibrary.a entries in /sys/libs.
  36745. - 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'
  36746. - ;;
  36747. -
  36748. -beos*)
  36749. - library_names_spec='${libname}${shared_ext}'
  36750. - dynamic_linker="$host_os ld.so"
  36751. - shlibpath_var=LIBRARY_PATH
  36752. - ;;
  36753. -
  36754. -bsdi[45]*)
  36755. - version_type=linux
  36756. - need_version=no
  36757. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  36758. - soname_spec='${libname}${release}${shared_ext}$major'
  36759. - finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  36760. - shlibpath_var=LD_LIBRARY_PATH
  36761. - sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  36762. - sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  36763. - # the default ld.so.conf also contains /usr/contrib/lib and
  36764. - # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  36765. - # libtool to hard-code these into programs
  36766. - ;;
  36767. -
  36768. -cygwin* | mingw* | pw32*)
  36769. - version_type=windows
  36770. - shrext_cmds=".dll"
  36771. - need_version=no
  36772. - need_lib_prefix=no
  36773. -
  36774. - case $GCC,$host_os in
  36775. - yes,cygwin* | yes,mingw* | yes,pw32*)
  36776. - library_names_spec='$libname.dll.a'
  36777. - # DLL is installed to $(libdir)/../bin by postinstall_cmds
  36778. - postinstall_cmds='base_file=`basename \${file}`~
  36779. - dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
  36780. - dldir=$destdir/`dirname \$dlpath`~
  36781. - test -d \$dldir || mkdir -p \$dldir~
  36782. - $install_prog $dir/$dlname \$dldir/$dlname~
  36783. - chmod a+x \$dldir/$dlname'
  36784. - postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  36785. - dlpath=$dir/\$dldll~
  36786. - $rm \$dlpath'
  36787. - shlibpath_overrides_runpath=yes
  36788. -
  36789. - case $host_os in
  36790. - cygwin*)
  36791. - # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  36792. - soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  36793. - sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  36794. - ;;
  36795. - mingw*)
  36796. - # MinGW DLLs use traditional 'lib' prefix
  36797. - soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  36798. - sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  36799. - if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
  36800. - # It is most probably a Windows format PATH printed by
  36801. - # mingw gcc, but we are running on Cygwin. Gcc prints its search
  36802. - # path with ; separators, and with drive letters. We can handle the
  36803. - # drive letters (cygwin fileutils understands them), so leave them,
  36804. - # especially as we might pass files found there to a mingw objdump,
  36805. - # which wouldn't understand a cygwinified path. Ahh.
  36806. - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  36807. - else
  36808. - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  36809. - fi
  36810. - ;;
  36811. - pw32*)
  36812. - # pw32 DLLs use 'pw' prefix rather than 'lib'
  36813. - library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  36814. - ;;
  36815. - esac
  36816. - ;;
  36817. -
  36818. - *)
  36819. - library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  36820. - ;;
  36821. - esac
  36822. - dynamic_linker='Win32 ld.exe'
  36823. - # FIXME: first we should search . and the directory the executable is in
  36824. - shlibpath_var=PATH
  36825. - ;;
  36826. -
  36827. -darwin* | rhapsody*)
  36828. - dynamic_linker="$host_os dyld"
  36829. - version_type=darwin
  36830. - need_lib_prefix=no
  36831. - need_version=no
  36832. - library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  36833. - soname_spec='${libname}${release}${major}$shared_ext'
  36834. - shlibpath_overrides_runpath=yes
  36835. - shlibpath_var=DYLD_LIBRARY_PATH
  36836. - shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  36837. - # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
  36838. - if test "$GCC" = yes; then
  36839. - 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"`
  36840. - else
  36841. - sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
  36842. - fi
  36843. - sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  36844. - ;;
  36845. -
  36846. -dgux*)
  36847. - version_type=linux
  36848. - need_lib_prefix=no
  36849. - need_version=no
  36850. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  36851. - soname_spec='${libname}${release}${shared_ext}$major'
  36852. - shlibpath_var=LD_LIBRARY_PATH
  36853. - ;;
  36854. -
  36855. -freebsd1*)
  36856. - dynamic_linker=no
  36857. - ;;
  36858. -
  36859. -kfreebsd*-gnu)
  36860. - version_type=linux
  36861. - need_lib_prefix=no
  36862. - need_version=no
  36863. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  36864. - soname_spec='${libname}${release}${shared_ext}$major'
  36865. - shlibpath_var=LD_LIBRARY_PATH
  36866. - shlibpath_overrides_runpath=no
  36867. - hardcode_into_libs=yes
  36868. - dynamic_linker='GNU ld.so'
  36869. - ;;
  36870. -
  36871. -freebsd* | dragonfly*)
  36872. - # DragonFly does not have aout. When/if they implement a new
  36873. - # versioning mechanism, adjust this.
  36874. - if test -x /usr/bin/objformat; then
  36875. - objformat=`/usr/bin/objformat`
  36876. - else
  36877. - case $host_os in
  36878. - freebsd[123]*) objformat=aout ;;
  36879. - *) objformat=elf ;;
  36880. - esac
  36881. - fi
  36882. - version_type=freebsd-$objformat
  36883. - case $version_type in
  36884. - freebsd-elf*)
  36885. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  36886. - need_version=no
  36887. - need_lib_prefix=no
  36888. - ;;
  36889. - freebsd-*)
  36890. - library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  36891. - need_version=yes
  36892. - ;;
  36893. - esac
  36894. - shlibpath_var=LD_LIBRARY_PATH
  36895. - case $host_os in
  36896. - freebsd2*)
  36897. - shlibpath_overrides_runpath=yes
  36898. - ;;
  36899. - freebsd3.[01]* | freebsdelf3.[01]*)
  36900. - shlibpath_overrides_runpath=yes
  36901. - hardcode_into_libs=yes
  36902. - ;;
  36903. - freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  36904. - freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  36905. - shlibpath_overrides_runpath=no
  36906. - hardcode_into_libs=yes
  36907. - ;;
  36908. - freebsd*) # from 4.6 on
  36909. - shlibpath_overrides_runpath=yes
  36910. - hardcode_into_libs=yes
  36911. - ;;
  36912. - esac
  36913. - ;;
  36914. -
  36915. -gnu*)
  36916. - version_type=linux
  36917. - need_lib_prefix=no
  36918. - need_version=no
  36919. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  36920. - soname_spec='${libname}${release}${shared_ext}$major'
  36921. - shlibpath_var=LD_LIBRARY_PATH
  36922. - hardcode_into_libs=yes
  36923. - ;;
  36924. -
  36925. -hpux9* | hpux10* | hpux11*)
  36926. - # Give a soname corresponding to the major version so that dld.sl refuses to
  36927. - # link against other versions.
  36928. - version_type=sunos
  36929. - need_lib_prefix=no
  36930. - need_version=no
  36931. - case $host_cpu in
  36932. - ia64*)
  36933. - shrext_cmds='.so'
  36934. - hardcode_into_libs=yes
  36935. - dynamic_linker="$host_os dld.so"
  36936. - shlibpath_var=LD_LIBRARY_PATH
  36937. - shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  36938. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  36939. - soname_spec='${libname}${release}${shared_ext}$major'
  36940. - if test "X$HPUX_IA64_MODE" = X32; then
  36941. - sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  36942. - else
  36943. - sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  36944. - fi
  36945. - sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  36946. - ;;
  36947. - hppa*64*)
  36948. - shrext_cmds='.sl'
  36949. - hardcode_into_libs=yes
  36950. - dynamic_linker="$host_os dld.sl"
  36951. - shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  36952. - shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  36953. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  36954. - soname_spec='${libname}${release}${shared_ext}$major'
  36955. - sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  36956. - sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  36957. - ;;
  36958. - *)
  36959. - shrext_cmds='.sl'
  36960. - dynamic_linker="$host_os dld.sl"
  36961. - shlibpath_var=SHLIB_PATH
  36962. - shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  36963. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  36964. - soname_spec='${libname}${release}${shared_ext}$major'
  36965. - ;;
  36966. - esac
  36967. - # HP-UX runs *really* slowly unless shared libraries are mode 555.
  36968. - postinstall_cmds='chmod 555 $lib'
  36969. - ;;
  36970. -
  36971. -interix3*)
  36972. - version_type=linux
  36973. - need_lib_prefix=no
  36974. - need_version=no
  36975. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  36976. - soname_spec='${libname}${release}${shared_ext}$major'
  36977. - dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  36978. - shlibpath_var=LD_LIBRARY_PATH
  36979. - shlibpath_overrides_runpath=no
  36980. - hardcode_into_libs=yes
  36981. - ;;
  36982. -
  36983. -irix5* | irix6* | nonstopux*)
  36984. - case $host_os in
  36985. - nonstopux*) version_type=nonstopux ;;
  36986. - *)
  36987. - if test "$lt_cv_prog_gnu_ld" = yes; then
  36988. - version_type=linux
  36989. - else
  36990. - version_type=irix
  36991. - fi ;;
  36992. - esac
  36993. - need_lib_prefix=no
  36994. - need_version=no
  36995. - soname_spec='${libname}${release}${shared_ext}$major'
  36996. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  36997. - case $host_os in
  36998. - irix5* | nonstopux*)
  36999. - libsuff= shlibsuff=
  37000. - ;;
  37001. - *)
  37002. - case $LD in # libtool.m4 will add one of these switches to LD
  37003. - *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  37004. - libsuff= shlibsuff= libmagic=32-bit;;
  37005. - *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  37006. - libsuff=32 shlibsuff=N32 libmagic=N32;;
  37007. - *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  37008. - libsuff=64 shlibsuff=64 libmagic=64-bit;;
  37009. - *) libsuff= shlibsuff= libmagic=never-match;;
  37010. - esac
  37011. - ;;
  37012. - esac
  37013. - shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  37014. - shlibpath_overrides_runpath=no
  37015. - sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  37016. - sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  37017. - hardcode_into_libs=yes
  37018. - ;;
  37019. -
  37020. -# No shared lib support for Linux oldld, aout, or coff.
  37021. -linux*oldld* | linux*aout* | linux*coff*)
  37022. - dynamic_linker=no
  37023. - ;;
  37024. -
  37025. -# This must be Linux ELF.
  37026. -linux*)
  37027. - version_type=linux
  37028. - need_lib_prefix=no
  37029. - need_version=no
  37030. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  37031. - soname_spec='${libname}${release}${shared_ext}$major'
  37032. - finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  37033. - shlibpath_var=LD_LIBRARY_PATH
  37034. - shlibpath_overrides_runpath=no
  37035. - # This implies no fast_install, which is unacceptable.
  37036. - # Some rework will be needed to allow for fast_install
  37037. - # before this can be enabled.
  37038. - hardcode_into_libs=yes
  37039. -
  37040. - # Append ld.so.conf contents to the search path
  37041. - if test -f /etc/ld.so.conf; then
  37042. - lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
  37043. - sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  37044. - fi
  37045. -
  37046. - # We used to test for /lib/ld.so.1 and disable shared libraries on
  37047. - # powerpc, because MkLinux only supported shared libraries with the
  37048. - # GNU dynamic linker. Since this was broken with cross compilers,
  37049. - # most powerpc-linux boxes support dynamic linking these days and
  37050. - # people can always --disable-shared, the test was removed, and we
  37051. - # assume the GNU/Linux dynamic linker is in use.
  37052. - dynamic_linker='GNU/Linux ld.so'
  37053. - ;;
  37054. -
  37055. -knetbsd*-gnu)
  37056. - version_type=linux
  37057. - need_lib_prefix=no
  37058. - need_version=no
  37059. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  37060. - soname_spec='${libname}${release}${shared_ext}$major'
  37061. - shlibpath_var=LD_LIBRARY_PATH
  37062. - shlibpath_overrides_runpath=no
  37063. - hardcode_into_libs=yes
  37064. - dynamic_linker='GNU ld.so'
  37065. - ;;
  37066. -
  37067. -netbsd*)
  37068. - version_type=sunos
  37069. - need_lib_prefix=no
  37070. - need_version=no
  37071. - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  37072. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  37073. - finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  37074. - dynamic_linker='NetBSD (a.out) ld.so'
  37075. - else
  37076. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  37077. - soname_spec='${libname}${release}${shared_ext}$major'
  37078. - dynamic_linker='NetBSD ld.elf_so'
  37079. - fi
  37080. - shlibpath_var=LD_LIBRARY_PATH
  37081. - shlibpath_overrides_runpath=yes
  37082. - hardcode_into_libs=yes
  37083. - ;;
  37084. -
  37085. -newsos6)
  37086. - version_type=linux
  37087. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  37088. - shlibpath_var=LD_LIBRARY_PATH
  37089. - shlibpath_overrides_runpath=yes
  37090. - ;;
  37091. -
  37092. -nto-qnx*)
  37093. - version_type=linux
  37094. - need_lib_prefix=no
  37095. - need_version=no
  37096. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  37097. - soname_spec='${libname}${release}${shared_ext}$major'
  37098. - shlibpath_var=LD_LIBRARY_PATH
  37099. - shlibpath_overrides_runpath=yes
  37100. - ;;
  37101. -
  37102. -openbsd*)
  37103. - version_type=sunos
  37104. - sys_lib_dlsearch_path_spec="/usr/lib"
  37105. - need_lib_prefix=no
  37106. - # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  37107. - case $host_os in
  37108. - openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  37109. - *) need_version=no ;;
  37110. - esac
  37111. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  37112. - finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  37113. - shlibpath_var=LD_LIBRARY_PATH
  37114. - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  37115. - case $host_os in
  37116. - openbsd2.[89] | openbsd2.[89].*)
  37117. - shlibpath_overrides_runpath=no
  37118. - ;;
  37119. - *)
  37120. - shlibpath_overrides_runpath=yes
  37121. - ;;
  37122. - esac
  37123. - else
  37124. - shlibpath_overrides_runpath=yes
  37125. - fi
  37126. - ;;
  37127. -
  37128. -os2*)
  37129. - libname_spec='$name'
  37130. - shrext_cmds=".dll"
  37131. - need_lib_prefix=no
  37132. - library_names_spec='$libname${shared_ext} $libname.a'
  37133. - dynamic_linker='OS/2 ld.exe'
  37134. - shlibpath_var=LIBPATH
  37135. - ;;
  37136. -
  37137. -osf3* | osf4* | osf5*)
  37138. - version_type=osf
  37139. - need_lib_prefix=no
  37140. - need_version=no
  37141. - soname_spec='${libname}${release}${shared_ext}$major'
  37142. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  37143. - shlibpath_var=LD_LIBRARY_PATH
  37144. - sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  37145. - sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  37146. - ;;
  37147. -
  37148. -solaris*)
  37149. - version_type=linux
  37150. - need_lib_prefix=no
  37151. - need_version=no
  37152. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  37153. - soname_spec='${libname}${release}${shared_ext}$major'
  37154. - shlibpath_var=LD_LIBRARY_PATH
  37155. - shlibpath_overrides_runpath=yes
  37156. - hardcode_into_libs=yes
  37157. - # ldd complains unless libraries are executable
  37158. - postinstall_cmds='chmod +x $lib'
  37159. - ;;
  37160. -
  37161. -sunos4*)
  37162. - version_type=sunos
  37163. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  37164. - finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  37165. - shlibpath_var=LD_LIBRARY_PATH
  37166. - shlibpath_overrides_runpath=yes
  37167. - if test "$with_gnu_ld" = yes; then
  37168. - need_lib_prefix=no
  37169. - fi
  37170. - need_version=yes
  37171. - ;;
  37172. -
  37173. -sysv4 | sysv4.3*)
  37174. - version_type=linux
  37175. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  37176. - soname_spec='${libname}${release}${shared_ext}$major'
  37177. - shlibpath_var=LD_LIBRARY_PATH
  37178. - case $host_vendor in
  37179. - sni)
  37180. - shlibpath_overrides_runpath=no
  37181. - need_lib_prefix=no
  37182. - export_dynamic_flag_spec='${wl}-Blargedynsym'
  37183. - runpath_var=LD_RUN_PATH
  37184. - ;;
  37185. - siemens)
  37186. - need_lib_prefix=no
  37187. - ;;
  37188. - motorola)
  37189. - need_lib_prefix=no
  37190. - need_version=no
  37191. - shlibpath_overrides_runpath=no
  37192. - sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  37193. - ;;
  37194. - esac
  37195. - ;;
  37196. -
  37197. -sysv4*MP*)
  37198. - if test -d /usr/nec ;then
  37199. - version_type=linux
  37200. - library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  37201. - soname_spec='$libname${shared_ext}.$major'
  37202. - shlibpath_var=LD_LIBRARY_PATH
  37203. - fi
  37204. - ;;
  37205. -
  37206. -sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  37207. - version_type=freebsd-elf
  37208. - need_lib_prefix=no
  37209. - need_version=no
  37210. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  37211. - soname_spec='${libname}${release}${shared_ext}$major'
  37212. - shlibpath_var=LD_LIBRARY_PATH
  37213. - hardcode_into_libs=yes
  37214. - if test "$with_gnu_ld" = yes; then
  37215. - sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  37216. - shlibpath_overrides_runpath=no
  37217. - else
  37218. - sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  37219. - shlibpath_overrides_runpath=yes
  37220. - case $host_os in
  37221. - sco3.2v5*)
  37222. - sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  37223. - ;;
  37224. - esac
  37225. - fi
  37226. - sys_lib_dlsearch_path_spec='/usr/lib'
  37227. - ;;
  37228. -
  37229. -uts4*)
  37230. - version_type=linux
  37231. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  37232. - soname_spec='${libname}${release}${shared_ext}$major'
  37233. - shlibpath_var=LD_LIBRARY_PATH
  37234. - ;;
  37235. -
  37236. -*)
  37237. - dynamic_linker=no
  37238. - ;;
  37239. -esac
  37240. -{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
  37241. -echo "${ECHO_T}$dynamic_linker" >&6; }
  37242. -test "$dynamic_linker" = no && can_build_shared=no
  37243. -
  37244. -variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  37245. -if test "$GCC" = yes; then
  37246. - variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  37247. -fi
  37248. -
  37249. -{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
  37250. -echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
  37251. -hardcode_action_CXX=
  37252. -if test -n "$hardcode_libdir_flag_spec_CXX" || \
  37253. - test -n "$runpath_var_CXX" || \
  37254. - test "X$hardcode_automatic_CXX" = "Xyes" ; then
  37255. -
  37256. - # We can hardcode non-existant directories.
  37257. - if test "$hardcode_direct_CXX" != no &&
  37258. - # If the only mechanism to avoid hardcoding is shlibpath_var, we
  37259. - # have to relink, otherwise we might link with an installed library
  37260. - # when we should be linking with a yet-to-be-installed one
  37261. - ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
  37262. - test "$hardcode_minus_L_CXX" != no; then
  37263. - # Linking always hardcodes the temporary library directory.
  37264. - hardcode_action_CXX=relink
  37265. - else
  37266. - # We can link without hardcoding, and we can hardcode nonexisting dirs.
  37267. - hardcode_action_CXX=immediate
  37268. - fi
  37269. -else
  37270. - # We cannot hardcode anything, or else we can only hardcode existing
  37271. - # directories.
  37272. - hardcode_action_CXX=unsupported
  37273. -fi
  37274. -{ echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
  37275. -echo "${ECHO_T}$hardcode_action_CXX" >&6; }
  37276. -
  37277. -if test "$hardcode_action_CXX" = relink; then
  37278. - # Fast installation is not supported
  37279. - enable_fast_install=no
  37280. -elif test "$shlibpath_overrides_runpath" = yes ||
  37281. - test "$enable_shared" = no; then
  37282. - # Fast installation is not necessary
  37283. - enable_fast_install=needless
  37284. -fi
  37285. -
  37286. -
  37287. -# The else clause should only fire when bootstrapping the
  37288. -# libtool distribution, otherwise you forgot to ship ltmain.sh
  37289. -# with your package, and you will get complaints that there are
  37290. -# no rules to generate ltmain.sh.
  37291. -if test -f "$ltmain"; then
  37292. - # See if we are running on zsh, and set the options which allow our commands through
  37293. - # without removal of \ escapes.
  37294. - if test -n "${ZSH_VERSION+set}" ; then
  37295. - setopt NO_GLOB_SUBST
  37296. - fi
  37297. - # Now quote all the things that may contain metacharacters while being
  37298. - # careful not to overquote the AC_SUBSTed values. We take copies of the
  37299. - # variables and quote the copies for generation of the libtool script.
  37300. - for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
  37301. - SED SHELL STRIP \
  37302. - libname_spec library_names_spec soname_spec extract_expsyms_cmds \
  37303. - old_striplib striplib file_magic_cmd finish_cmds finish_eval \
  37304. - deplibs_check_method reload_flag reload_cmds need_locks \
  37305. - lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
  37306. - lt_cv_sys_global_symbol_to_c_name_address \
  37307. - sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  37308. - old_postinstall_cmds old_postuninstall_cmds \
  37309. - compiler_CXX \
  37310. - CC_CXX \
  37311. - LD_CXX \
  37312. - lt_prog_compiler_wl_CXX \
  37313. - lt_prog_compiler_pic_CXX \
  37314. - lt_prog_compiler_static_CXX \
  37315. - lt_prog_compiler_no_builtin_flag_CXX \
  37316. - export_dynamic_flag_spec_CXX \
  37317. - thread_safe_flag_spec_CXX \
  37318. - whole_archive_flag_spec_CXX \
  37319. - enable_shared_with_static_runtimes_CXX \
  37320. - old_archive_cmds_CXX \
  37321. - old_archive_from_new_cmds_CXX \
  37322. - predep_objects_CXX \
  37323. - postdep_objects_CXX \
  37324. - predeps_CXX \
  37325. - postdeps_CXX \
  37326. - compiler_lib_search_path_CXX \
  37327. - archive_cmds_CXX \
  37328. - archive_expsym_cmds_CXX \
  37329. - postinstall_cmds_CXX \
  37330. - postuninstall_cmds_CXX \
  37331. - old_archive_from_expsyms_cmds_CXX \
  37332. - allow_undefined_flag_CXX \
  37333. - no_undefined_flag_CXX \
  37334. - export_symbols_cmds_CXX \
  37335. - hardcode_libdir_flag_spec_CXX \
  37336. - hardcode_libdir_flag_spec_ld_CXX \
  37337. - hardcode_libdir_separator_CXX \
  37338. - hardcode_automatic_CXX \
  37339. - module_cmds_CXX \
  37340. - module_expsym_cmds_CXX \
  37341. - lt_cv_prog_compiler_c_o_CXX \
  37342. - exclude_expsyms_CXX \
  37343. - include_expsyms_CXX; do
  37344. -
  37345. - case $var in
  37346. - old_archive_cmds_CXX | \
  37347. - old_archive_from_new_cmds_CXX | \
  37348. - archive_cmds_CXX | \
  37349. - archive_expsym_cmds_CXX | \
  37350. - module_cmds_CXX | \
  37351. - module_expsym_cmds_CXX | \
  37352. - old_archive_from_expsyms_cmds_CXX | \
  37353. - export_symbols_cmds_CXX | \
  37354. - extract_expsyms_cmds | reload_cmds | finish_cmds | \
  37355. - postinstall_cmds | postuninstall_cmds | \
  37356. - old_postinstall_cmds | old_postuninstall_cmds | \
  37357. - sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  37358. - # Double-quote double-evaled strings.
  37359. - eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
  37360. - ;;
  37361. - *)
  37362. - eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
  37363. - ;;
  37364. - esac
  37365. - done
  37366. -
  37367. - case $lt_echo in
  37368. - *'\$0 --fallback-echo"')
  37369. - lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
  37370. - ;;
  37371. - esac
  37372. -
  37373. -cfgfile="$ofile"
  37374. -
  37375. - cat <<__EOF__ >> "$cfgfile"
  37376. -# ### BEGIN LIBTOOL TAG CONFIG: $tagname
  37377. -
  37378. -# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  37379. -
  37380. -# Shell to use when invoking shell scripts.
  37381. -SHELL=$lt_SHELL
  37382. -
  37383. -# Whether or not to build shared libraries.
  37384. -build_libtool_libs=$enable_shared
  37385. -
  37386. -# Whether or not to build static libraries.
  37387. -build_old_libs=$enable_static
  37388. -
  37389. -# Whether or not to add -lc for building shared libraries.
  37390. -build_libtool_need_lc=$archive_cmds_need_lc_CXX
  37391. -
  37392. -# Whether or not to disallow shared libs when runtime libs are static
  37393. -allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
  37394. -
  37395. -# Whether or not to optimize for fast installation.
  37396. -fast_install=$enable_fast_install
  37397. -
  37398. -# The host system.
  37399. -host_alias=$host_alias
  37400. -host=$host
  37401. -host_os=$host_os
  37402. -
  37403. -# The build system.
  37404. -build_alias=$build_alias
  37405. -build=$build
  37406. -build_os=$build_os
  37407. -
  37408. -# An echo program that does not interpret backslashes.
  37409. -echo=$lt_echo
  37410. -
  37411. -# The archiver.
  37412. -AR=$lt_AR
  37413. -AR_FLAGS=$lt_AR_FLAGS
  37414. -
  37415. -# A C compiler.
  37416. -LTCC=$lt_LTCC
  37417. -
  37418. -# LTCC compiler flags.
  37419. -LTCFLAGS=$lt_LTCFLAGS
  37420. -
  37421. -# A language-specific compiler.
  37422. -CC=$lt_compiler_CXX
  37423. -
  37424. -# Is the compiler the GNU C compiler?
  37425. -with_gcc=$GCC_CXX
  37426. -
  37427. -# An ERE matcher.
  37428. -EGREP=$lt_EGREP
  37429. -
  37430. -# The linker used to build libraries.
  37431. -LD=$lt_LD_CXX
  37432. -
  37433. -# Whether we need hard or soft links.
  37434. -LN_S=$lt_LN_S
  37435. -
  37436. -# A BSD-compatible nm program.
  37437. -NM=$lt_NM
  37438. -
  37439. -# A symbol stripping program
  37440. -STRIP=$lt_STRIP
  37441. -
  37442. -# Used to examine libraries when file_magic_cmd begins "file"
  37443. -MAGIC_CMD=$MAGIC_CMD
  37444. -
  37445. -# Used on cygwin: DLL creation program.
  37446. -DLLTOOL="$DLLTOOL"
  37447. -
  37448. -# Used on cygwin: object dumper.
  37449. -OBJDUMP="$OBJDUMP"
  37450. -
  37451. -# Used on cygwin: assembler.
  37452. -AS="$AS"
  37453. -
  37454. -# The name of the directory that contains temporary libtool files.
  37455. -objdir=$objdir
  37456. -
  37457. -# How to create reloadable object files.
  37458. -reload_flag=$lt_reload_flag
  37459. -reload_cmds=$lt_reload_cmds
  37460. -
  37461. -# How to pass a linker flag through the compiler.
  37462. -wl=$lt_lt_prog_compiler_wl_CXX
  37463. -
  37464. -# Object file suffix (normally "o").
  37465. -objext="$ac_objext"
  37466. -
  37467. -# Old archive suffix (normally "a").
  37468. -libext="$libext"
  37469. -
  37470. -# Shared library suffix (normally ".so").
  37471. -shrext_cmds='$shrext_cmds'
  37472. -
  37473. -# Executable file suffix (normally "").
  37474. -exeext="$exeext"
  37475. -
  37476. -# Additional compiler flags for building library objects.
  37477. -pic_flag=$lt_lt_prog_compiler_pic_CXX
  37478. -pic_mode=$pic_mode
  37479. -
  37480. -# What is the maximum length of a command?
  37481. -max_cmd_len=$lt_cv_sys_max_cmd_len
  37482. -
  37483. -# Does compiler simultaneously support -c and -o options?
  37484. -compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
  37485. -
  37486. -# Must we lock files when doing compilation?
  37487. -need_locks=$lt_need_locks
  37488. -
  37489. -# Do we need the lib prefix for modules?
  37490. -need_lib_prefix=$need_lib_prefix
  37491. -
  37492. -# Do we need a version for libraries?
  37493. -need_version=$need_version
  37494. -
  37495. -# Whether dlopen is supported.
  37496. -dlopen_support=$enable_dlopen
  37497. -
  37498. -# Whether dlopen of programs is supported.
  37499. -dlopen_self=$enable_dlopen_self
  37500. -
  37501. -# Whether dlopen of statically linked programs is supported.
  37502. -dlopen_self_static=$enable_dlopen_self_static
  37503. -
  37504. -# Compiler flag to prevent dynamic linking.
  37505. -link_static_flag=$lt_lt_prog_compiler_static_CXX
  37506. -
  37507. -# Compiler flag to turn off builtin functions.
  37508. -no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
  37509. -
  37510. -# Compiler flag to allow reflexive dlopens.
  37511. -export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
  37512. -
  37513. -# Compiler flag to generate shared objects directly from archives.
  37514. -whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
  37515. -
  37516. -# Compiler flag to generate thread-safe objects.
  37517. -thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
  37518. -
  37519. -# Library versioning type.
  37520. -version_type=$version_type
  37521. -
  37522. -# Format of library name prefix.
  37523. -libname_spec=$lt_libname_spec
  37524. -
  37525. -# List of archive names. First name is the real one, the rest are links.
  37526. -# The last name is the one that the linker finds with -lNAME.
  37527. -library_names_spec=$lt_library_names_spec
  37528. -
  37529. -# The coded name of the library, if different from the real name.
  37530. -soname_spec=$lt_soname_spec
  37531. -
  37532. -# Commands used to build and install an old-style archive.
  37533. -RANLIB=$lt_RANLIB
  37534. -old_archive_cmds=$lt_old_archive_cmds_CXX
  37535. -old_postinstall_cmds=$lt_old_postinstall_cmds
  37536. -old_postuninstall_cmds=$lt_old_postuninstall_cmds
  37537. -
  37538. -# Create an old-style archive from a shared archive.
  37539. -old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
  37540. -
  37541. -# Create a temporary old-style archive to link instead of a shared archive.
  37542. -old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
  37543. -
  37544. -# Commands used to build and install a shared archive.
  37545. -archive_cmds=$lt_archive_cmds_CXX
  37546. -archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
  37547. -postinstall_cmds=$lt_postinstall_cmds
  37548. -postuninstall_cmds=$lt_postuninstall_cmds
  37549. -
  37550. -# Commands used to build a loadable module (assumed same as above if empty)
  37551. -module_cmds=$lt_module_cmds_CXX
  37552. -module_expsym_cmds=$lt_module_expsym_cmds_CXX
  37553. -
  37554. -# Commands to strip libraries.
  37555. -old_striplib=$lt_old_striplib
  37556. -striplib=$lt_striplib
  37557. -
  37558. -# Dependencies to place before the objects being linked to create a
  37559. -# shared library.
  37560. -predep_objects=$lt_predep_objects_CXX
  37561. -
  37562. -# Dependencies to place after the objects being linked to create a
  37563. -# shared library.
  37564. -postdep_objects=$lt_postdep_objects_CXX
  37565. -
  37566. -# Dependencies to place before the objects being linked to create a
  37567. -# shared library.
  37568. -predeps=$lt_predeps_CXX
  37569. -
  37570. -# Dependencies to place after the objects being linked to create a
  37571. -# shared library.
  37572. -postdeps=$lt_postdeps_CXX
  37573. -
  37574. -# The library search path used internally by the compiler when linking
  37575. -# a shared library.
  37576. -compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
  37577. -
  37578. -# Method to check whether dependent libraries are shared objects.
  37579. -deplibs_check_method=$lt_deplibs_check_method
  37580. -
  37581. -# Command to use when deplibs_check_method == file_magic.
  37582. -file_magic_cmd=$lt_file_magic_cmd
  37583. -
  37584. -# Flag that allows shared libraries with undefined symbols to be built.
  37585. -allow_undefined_flag=$lt_allow_undefined_flag_CXX
  37586. -
  37587. -# Flag that forces no undefined symbols.
  37588. -no_undefined_flag=$lt_no_undefined_flag_CXX
  37589. -
  37590. -# Commands used to finish a libtool library installation in a directory.
  37591. -finish_cmds=$lt_finish_cmds
  37592. -
  37593. -# Same as above, but a single script fragment to be evaled but not shown.
  37594. -finish_eval=$lt_finish_eval
  37595. -
  37596. -# Take the output of nm and produce a listing of raw symbols and C names.
  37597. -global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  37598. -
  37599. -# Transform the output of nm in a proper C declaration
  37600. -global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  37601. -
  37602. -# Transform the output of nm in a C name address pair
  37603. -global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  37604. -
  37605. -# This is the shared library runtime path variable.
  37606. -runpath_var=$runpath_var
  37607. -
  37608. -# This is the shared library path variable.
  37609. -shlibpath_var=$shlibpath_var
  37610. -
  37611. -# Is shlibpath searched before the hard-coded library search path?
  37612. -shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  37613. -
  37614. -# How to hardcode a shared library path into an executable.
  37615. -hardcode_action=$hardcode_action_CXX
  37616. -
  37617. -# Whether we should hardcode library paths into libraries.
  37618. -hardcode_into_libs=$hardcode_into_libs
  37619. -
  37620. -# Flag to hardcode \$libdir into a binary during linking.
  37621. -# This must work even if \$libdir does not exist.
  37622. -hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
  37623. -
  37624. -# If ld is used when linking, flag to hardcode \$libdir into
  37625. -# a binary during linking. This must work even if \$libdir does
  37626. -# not exist.
  37627. -hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
  37628. -
  37629. -# Whether we need a single -rpath flag with a separated argument.
  37630. -hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
  37631. -
  37632. -# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
  37633. -# resulting binary.
  37634. -hardcode_direct=$hardcode_direct_CXX
  37635. -
  37636. -# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  37637. -# resulting binary.
  37638. -hardcode_minus_L=$hardcode_minus_L_CXX
  37639. -
  37640. -# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
  37641. -# the resulting binary.
  37642. -hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
  37643. -
  37644. -# Set to yes if building a shared library automatically hardcodes DIR into the library
  37645. -# and all subsequent libraries and executables linked against it.
  37646. -hardcode_automatic=$hardcode_automatic_CXX
  37647. -
  37648. -# Variables whose values should be saved in libtool wrapper scripts and
  37649. -# restored at relink time.
  37650. -variables_saved_for_relink="$variables_saved_for_relink"
  37651. -
  37652. -# Whether libtool must link a program against all its dependency libraries.
  37653. -link_all_deplibs=$link_all_deplibs_CXX
  37654. -
  37655. -# Compile-time system search path for libraries
  37656. -sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  37657. -
  37658. -# Run-time system search path for libraries
  37659. -sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  37660. -
  37661. -# Fix the shell variable \$srcfile for the compiler.
  37662. -fix_srcfile_path="$fix_srcfile_path_CXX"
  37663. -
  37664. -# Set to yes if exported symbols are required.
  37665. -always_export_symbols=$always_export_symbols_CXX
  37666. -
  37667. -# The commands to list exported symbols.
  37668. -export_symbols_cmds=$lt_export_symbols_cmds_CXX
  37669. -
  37670. -# The commands to extract the exported symbol list from a shared archive.
  37671. -extract_expsyms_cmds=$lt_extract_expsyms_cmds
  37672. -
  37673. -# Symbols that should not be listed in the preloaded symbols.
  37674. -exclude_expsyms=$lt_exclude_expsyms_CXX
  37675. -
  37676. -# Symbols that must always be exported.
  37677. -include_expsyms=$lt_include_expsyms_CXX
  37678. -
  37679. -# ### END LIBTOOL TAG CONFIG: $tagname
  37680. -
  37681. -__EOF__
  37682. -
  37683. -
  37684. -else
  37685. - # If there is no Makefile yet, we rely on a make rule to execute
  37686. - # `config.status --recheck' to rerun these tests and create the
  37687. - # libtool script then.
  37688. - ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  37689. - if test -f "$ltmain_in"; then
  37690. - test -f Makefile && make "$ltmain"
  37691. - fi
  37692. -fi
  37693. -
  37694. -
  37695. -ac_ext=c
  37696. -ac_cpp='$CPP $CPPFLAGS'
  37697. -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  37698. -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  37699. -ac_compiler_gnu=$ac_cv_c_compiler_gnu
  37700. -
  37701. -CC=$lt_save_CC
  37702. -LDCXX=$LD
  37703. -LD=$lt_save_LD
  37704. -GCC=$lt_save_GCC
  37705. -with_gnu_ldcxx=$with_gnu_ld
  37706. -with_gnu_ld=$lt_save_with_gnu_ld
  37707. -lt_cv_path_LDCXX=$lt_cv_path_LD
  37708. -lt_cv_path_LD=$lt_save_path_LD
  37709. -lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  37710. -lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
  37711. -
  37712. - else
  37713. - tagname=""
  37714. - fi
  37715. - ;;
  37716. -
  37717. - F77)
  37718. - if test -n "$F77" && test "X$F77" != "Xno"; then
  37719. -
  37720. -ac_ext=f
  37721. -ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
  37722. -ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  37723. -ac_compiler_gnu=$ac_cv_f77_compiler_gnu
  37724. -
  37725. -
  37726. -archive_cmds_need_lc_F77=no
  37727. -allow_undefined_flag_F77=
  37728. -always_export_symbols_F77=no
  37729. -archive_expsym_cmds_F77=
  37730. -export_dynamic_flag_spec_F77=
  37731. -hardcode_direct_F77=no
  37732. -hardcode_libdir_flag_spec_F77=
  37733. -hardcode_libdir_flag_spec_ld_F77=
  37734. -hardcode_libdir_separator_F77=
  37735. -hardcode_minus_L_F77=no
  37736. -hardcode_automatic_F77=no
  37737. -module_cmds_F77=
  37738. -module_expsym_cmds_F77=
  37739. -link_all_deplibs_F77=unknown
  37740. -old_archive_cmds_F77=$old_archive_cmds
  37741. -no_undefined_flag_F77=
  37742. -whole_archive_flag_spec_F77=
  37743. -enable_shared_with_static_runtimes_F77=no
  37744. -
  37745. -# Source file extension for f77 test sources.
  37746. -ac_ext=f
  37747. -
  37748. -# Object file extension for compiled f77 test sources.
  37749. -objext=o
  37750. -objext_F77=$objext
  37751. -
  37752. -# Code to be used in simple compile tests
  37753. -lt_simple_compile_test_code=" subroutine t\n return\n end\n"
  37754. -
  37755. -# Code to be used in simple link tests
  37756. -lt_simple_link_test_code=" program t\n end\n"
  37757. -
  37758. -# ltmain only uses $CC for tagged configurations so make sure $CC is set.
  37759. -
  37760. -# If no C compiler was specified, use CC.
  37761. -LTCC=${LTCC-"$CC"}
  37762. -
  37763. -# If no C compiler flags were specified, use CFLAGS.
  37764. -LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  37765. -
  37766. -# Allow CC to be a program name with arguments.
  37767. -compiler=$CC
  37768. -
  37769. -
  37770. -# save warnings/boilerplate of simple test code
  37771. -ac_outfile=conftest.$ac_objext
  37772. -printf "$lt_simple_compile_test_code" >conftest.$ac_ext
  37773. -eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  37774. -_lt_compiler_boilerplate=`cat conftest.err`
  37775. -$rm conftest*
  37776. -
  37777. -ac_outfile=conftest.$ac_objext
  37778. -printf "$lt_simple_link_test_code" >conftest.$ac_ext
  37779. -eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  37780. -_lt_linker_boilerplate=`cat conftest.err`
  37781. -$rm conftest*
  37782. -
  37783. -
  37784. -# Allow CC to be a program name with arguments.
  37785. -lt_save_CC="$CC"
  37786. -CC=${F77-"f77"}
  37787. -compiler=$CC
  37788. -compiler_F77=$CC
  37789. -for cc_temp in $compiler""; do
  37790. - case $cc_temp in
  37791. - compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  37792. - distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  37793. - \-*) ;;
  37794. - *) break;;
  37795. - esac
  37796. -done
  37797. -cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  37798. -
  37799. -
  37800. -{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
  37801. -echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
  37802. -{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
  37803. -echo "${ECHO_T}$can_build_shared" >&6; }
  37804. -
  37805. -{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
  37806. -echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
  37807. -test "$can_build_shared" = "no" && enable_shared=no
  37808. -
  37809. -# On AIX, shared libraries and static libraries use the same namespace, and
  37810. -# are all built from PIC.
  37811. -case $host_os in
  37812. -aix3*)
  37813. - test "$enable_shared" = yes && enable_static=no
  37814. - if test -n "$RANLIB"; then
  37815. - archive_cmds="$archive_cmds~\$RANLIB \$lib"
  37816. - postinstall_cmds='$RANLIB $lib'
  37817. - fi
  37818. - ;;
  37819. -aix4* | aix5*)
  37820. - if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  37821. - test "$enable_shared" = yes && enable_static=no
  37822. - fi
  37823. - ;;
  37824. -esac
  37825. -{ echo "$as_me:$LINENO: result: $enable_shared" >&5
  37826. -echo "${ECHO_T}$enable_shared" >&6; }
  37827. -
  37828. -{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
  37829. -echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
  37830. -# Make sure either enable_shared or enable_static is yes.
  37831. -test "$enable_shared" = yes || enable_static=yes
  37832. -{ echo "$as_me:$LINENO: result: $enable_static" >&5
  37833. -echo "${ECHO_T}$enable_static" >&6; }
  37834. -
  37835. -GCC_F77="$G77"
  37836. -LD_F77="$LD"
  37837. -
  37838. -lt_prog_compiler_wl_F77=
  37839. -lt_prog_compiler_pic_F77=
  37840. -lt_prog_compiler_static_F77=
  37841. -
  37842. -{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
  37843. -echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
  37844. -
  37845. - if test "$GCC" = yes; then
  37846. - lt_prog_compiler_wl_F77='-Wl,'
  37847. - lt_prog_compiler_static_F77='-static'
  37848. -
  37849. - case $host_os in
  37850. - aix*)
  37851. - # All AIX code is PIC.
  37852. - if test "$host_cpu" = ia64; then
  37853. - # AIX 5 now supports IA64 processor
  37854. - lt_prog_compiler_static_F77='-Bstatic'
  37855. - fi
  37856. - ;;
  37857. -
  37858. - amigaos*)
  37859. - # FIXME: we need at least 68020 code to build shared libraries, but
  37860. - # adding the `-m68020' flag to GCC prevents building anything better,
  37861. - # like `-m68040'.
  37862. - lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
  37863. - ;;
  37864. -
  37865. - beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  37866. - # PIC is the default for these OSes.
  37867. - ;;
  37868. -
  37869. - mingw* | pw32* | os2*)
  37870. - # This hack is so that the source file can tell whether it is being
  37871. - # built for inclusion in a dll (and should export symbols for example).
  37872. - lt_prog_compiler_pic_F77='-DDLL_EXPORT'
  37873. - ;;
  37874. -
  37875. - darwin* | rhapsody*)
  37876. - # PIC is the default on this platform
  37877. - # Common symbols not allowed in MH_DYLIB files
  37878. - lt_prog_compiler_pic_F77='-fno-common'
  37879. - ;;
  37880. -
  37881. - interix3*)
  37882. - # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  37883. - # Instead, we relocate shared libraries at runtime.
  37884. - ;;
  37885. -
  37886. - msdosdjgpp*)
  37887. - # Just because we use GCC doesn't mean we suddenly get shared libraries
  37888. - # on systems that don't support them.
  37889. - lt_prog_compiler_can_build_shared_F77=no
  37890. - enable_shared=no
  37891. - ;;
  37892. -
  37893. - sysv4*MP*)
  37894. - if test -d /usr/nec; then
  37895. - lt_prog_compiler_pic_F77=-Kconform_pic
  37896. - fi
  37897. - ;;
  37898. -
  37899. - hpux*)
  37900. - # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  37901. - # not for PA HP-UX.
  37902. - case $host_cpu in
  37903. - hppa*64*|ia64*)
  37904. - # +Z the default
  37905. - ;;
  37906. - *)
  37907. - lt_prog_compiler_pic_F77='-fPIC'
  37908. - ;;
  37909. - esac
  37910. - ;;
  37911. -
  37912. - *)
  37913. - lt_prog_compiler_pic_F77='-fPIC'
  37914. - ;;
  37915. - esac
  37916. - else
  37917. - # PORTME Check for flag to pass linker flags through the system compiler.
  37918. - case $host_os in
  37919. - aix*)
  37920. - lt_prog_compiler_wl_F77='-Wl,'
  37921. - if test "$host_cpu" = ia64; then
  37922. - # AIX 5 now supports IA64 processor
  37923. - lt_prog_compiler_static_F77='-Bstatic'
  37924. - else
  37925. - lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
  37926. - fi
  37927. - ;;
  37928. - darwin*)
  37929. - # PIC is the default on this platform
  37930. - # Common symbols not allowed in MH_DYLIB files
  37931. - case $cc_basename in
  37932. - xlc*)
  37933. - lt_prog_compiler_pic_F77='-qnocommon'
  37934. - lt_prog_compiler_wl_F77='-Wl,'
  37935. - ;;
  37936. - esac
  37937. - ;;
  37938. -
  37939. - mingw* | pw32* | os2*)
  37940. - # This hack is so that the source file can tell whether it is being
  37941. - # built for inclusion in a dll (and should export symbols for example).
  37942. - lt_prog_compiler_pic_F77='-DDLL_EXPORT'
  37943. - ;;
  37944. -
  37945. - hpux9* | hpux10* | hpux11*)
  37946. - lt_prog_compiler_wl_F77='-Wl,'
  37947. - # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  37948. - # not for PA HP-UX.
  37949. - case $host_cpu in
  37950. - hppa*64*|ia64*)
  37951. - # +Z the default
  37952. - ;;
  37953. - *)
  37954. - lt_prog_compiler_pic_F77='+Z'
  37955. - ;;
  37956. - esac
  37957. - # Is there a better lt_prog_compiler_static that works with the bundled CC?
  37958. - lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
  37959. - ;;
  37960. -
  37961. - irix5* | irix6* | nonstopux*)
  37962. - lt_prog_compiler_wl_F77='-Wl,'
  37963. - # PIC (with -KPIC) is the default.
  37964. - lt_prog_compiler_static_F77='-non_shared'
  37965. - ;;
  37966. -
  37967. - newsos6)
  37968. - lt_prog_compiler_pic_F77='-KPIC'
  37969. - lt_prog_compiler_static_F77='-Bstatic'
  37970. - ;;
  37971. -
  37972. - linux*)
  37973. - case $cc_basename in
  37974. - icc* | ecc*)
  37975. - lt_prog_compiler_wl_F77='-Wl,'
  37976. - lt_prog_compiler_pic_F77='-KPIC'
  37977. - lt_prog_compiler_static_F77='-static'
  37978. - ;;
  37979. - pgcc* | pgf77* | pgf90* | pgf95*)
  37980. - # Portland Group compilers (*not* the Pentium gcc compiler,
  37981. - # which looks to be a dead project)
  37982. - lt_prog_compiler_wl_F77='-Wl,'
  37983. - lt_prog_compiler_pic_F77='-fpic'
  37984. - lt_prog_compiler_static_F77='-Bstatic'
  37985. - ;;
  37986. - ccc*)
  37987. - lt_prog_compiler_wl_F77='-Wl,'
  37988. - # All Alpha code is PIC.
  37989. - lt_prog_compiler_static_F77='-non_shared'
  37990. - ;;
  37991. - esac
  37992. - ;;
  37993. -
  37994. - osf3* | osf4* | osf5*)
  37995. - lt_prog_compiler_wl_F77='-Wl,'
  37996. - # All OSF/1 code is PIC.
  37997. - lt_prog_compiler_static_F77='-non_shared'
  37998. - ;;
  37999. -
  38000. - solaris*)
  38001. - lt_prog_compiler_pic_F77='-KPIC'
  38002. - lt_prog_compiler_static_F77='-Bstatic'
  38003. - case $cc_basename in
  38004. - f77* | f90* | f95*)
  38005. - lt_prog_compiler_wl_F77='-Qoption ld ';;
  38006. - *)
  38007. - lt_prog_compiler_wl_F77='-Wl,';;
  38008. - esac
  38009. - ;;
  38010. -
  38011. - sunos4*)
  38012. - lt_prog_compiler_wl_F77='-Qoption ld '
  38013. - lt_prog_compiler_pic_F77='-PIC'
  38014. - lt_prog_compiler_static_F77='-Bstatic'
  38015. - ;;
  38016. -
  38017. - sysv4 | sysv4.2uw2* | sysv4.3*)
  38018. - lt_prog_compiler_wl_F77='-Wl,'
  38019. - lt_prog_compiler_pic_F77='-KPIC'
  38020. - lt_prog_compiler_static_F77='-Bstatic'
  38021. - ;;
  38022. -
  38023. - sysv4*MP*)
  38024. - if test -d /usr/nec ;then
  38025. - lt_prog_compiler_pic_F77='-Kconform_pic'
  38026. - lt_prog_compiler_static_F77='-Bstatic'
  38027. - fi
  38028. - ;;
  38029. -
  38030. - sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  38031. - lt_prog_compiler_wl_F77='-Wl,'
  38032. - lt_prog_compiler_pic_F77='-KPIC'
  38033. - lt_prog_compiler_static_F77='-Bstatic'
  38034. - ;;
  38035. -
  38036. - unicos*)
  38037. - lt_prog_compiler_wl_F77='-Wl,'
  38038. - lt_prog_compiler_can_build_shared_F77=no
  38039. - ;;
  38040. -
  38041. - uts4*)
  38042. - lt_prog_compiler_pic_F77='-pic'
  38043. - lt_prog_compiler_static_F77='-Bstatic'
  38044. - ;;
  38045. -
  38046. - *)
  38047. - lt_prog_compiler_can_build_shared_F77=no
  38048. - ;;
  38049. - esac
  38050. - fi
  38051. -
  38052. -{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
  38053. -echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
  38054. -
  38055. -#
  38056. -# Check to make sure the PIC flag actually works.
  38057. -#
  38058. -if test -n "$lt_prog_compiler_pic_F77"; then
  38059. -
  38060. -{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
  38061. -echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
  38062. -if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
  38063. - echo $ECHO_N "(cached) $ECHO_C" >&6
  38064. -else
  38065. - lt_prog_compiler_pic_works_F77=no
  38066. - ac_outfile=conftest.$ac_objext
  38067. - printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  38068. - lt_compiler_flag="$lt_prog_compiler_pic_F77"
  38069. - # Insert the option either (1) after the last *FLAGS variable, or
  38070. - # (2) before a word containing "conftest.", or (3) at the end.
  38071. - # Note that $ac_compile itself does not contain backslashes and begins
  38072. - # with a dollar sign (not a hyphen), so the echo should work correctly.
  38073. - # The option is referenced via a variable to avoid confusing sed.
  38074. - lt_compile=`echo "$ac_compile" | $SED \
  38075. - -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  38076. - -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  38077. - -e 's:$: $lt_compiler_flag:'`
  38078. - (eval echo "\"\$as_me:14763: $lt_compile\"" >&5)
  38079. - (eval "$lt_compile" 2>conftest.err)
  38080. - ac_status=$?
  38081. - cat conftest.err >&5
  38082. - echo "$as_me:14767: \$? = $ac_status" >&5
  38083. - if (exit $ac_status) && test -s "$ac_outfile"; then
  38084. - # The compiler can only warn and ignore the option if not recognized
  38085. - # So say no if there are warnings other than the usual output.
  38086. - $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  38087. - $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  38088. - if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  38089. - lt_prog_compiler_pic_works_F77=yes
  38090. - fi
  38091. - fi
  38092. - $rm conftest*
  38093. -
  38094. -fi
  38095. -{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
  38096. -echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
  38097. -
  38098. -if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
  38099. - case $lt_prog_compiler_pic_F77 in
  38100. - "" | " "*) ;;
  38101. - *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
  38102. - esac
  38103. -else
  38104. - lt_prog_compiler_pic_F77=
  38105. - lt_prog_compiler_can_build_shared_F77=no
  38106. -fi
  38107. -
  38108. -fi
  38109. -case $host_os in
  38110. - # For platforms which do not support PIC, -DPIC is meaningless:
  38111. - *djgpp*)
  38112. - lt_prog_compiler_pic_F77=
  38113. - ;;
  38114. - *)
  38115. - lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
  38116. - ;;
  38117. -esac
  38118. -
  38119. -#
  38120. -# Check to make sure the static flag actually works.
  38121. -#
  38122. -wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
  38123. -{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  38124. -echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
  38125. -if test "${lt_prog_compiler_static_works_F77+set}" = set; then
  38126. - echo $ECHO_N "(cached) $ECHO_C" >&6
  38127. -else
  38128. - lt_prog_compiler_static_works_F77=no
  38129. - save_LDFLAGS="$LDFLAGS"
  38130. - LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  38131. - printf "$lt_simple_link_test_code" > conftest.$ac_ext
  38132. - if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  38133. - # The linker can only warn and ignore the option if not recognized
  38134. - # So say no if there are warnings
  38135. - if test -s conftest.err; then
  38136. - # Append any errors to the config.log.
  38137. - cat conftest.err 1>&5
  38138. - $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
  38139. - $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  38140. - if diff conftest.exp conftest.er2 >/dev/null; then
  38141. - lt_prog_compiler_static_works_F77=yes
  38142. - fi
  38143. - else
  38144. - lt_prog_compiler_static_works_F77=yes
  38145. - fi
  38146. - fi
  38147. - $rm conftest*
  38148. - LDFLAGS="$save_LDFLAGS"
  38149. -
  38150. -fi
  38151. -{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
  38152. -echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
  38153. -
  38154. -if test x"$lt_prog_compiler_static_works_F77" = xyes; then
  38155. - :
  38156. -else
  38157. - lt_prog_compiler_static_F77=
  38158. -fi
  38159. -
  38160. -
  38161. -{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
  38162. -echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
  38163. -if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
  38164. - echo $ECHO_N "(cached) $ECHO_C" >&6
  38165. -else
  38166. - lt_cv_prog_compiler_c_o_F77=no
  38167. - $rm -r conftest 2>/dev/null
  38168. - mkdir conftest
  38169. - cd conftest
  38170. - mkdir out
  38171. - printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  38172. -
  38173. - lt_compiler_flag="-o out/conftest2.$ac_objext"
  38174. - # Insert the option either (1) after the last *FLAGS variable, or
  38175. - # (2) before a word containing "conftest.", or (3) at the end.
  38176. - # Note that $ac_compile itself does not contain backslashes and begins
  38177. - # with a dollar sign (not a hyphen), so the echo should work correctly.
  38178. - lt_compile=`echo "$ac_compile" | $SED \
  38179. - -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  38180. - -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  38181. - -e 's:$: $lt_compiler_flag:'`
  38182. - (eval echo "\"\$as_me:14867: $lt_compile\"" >&5)
  38183. - (eval "$lt_compile" 2>out/conftest.err)
  38184. - ac_status=$?
  38185. - cat out/conftest.err >&5
  38186. - echo "$as_me:14871: \$? = $ac_status" >&5
  38187. - if (exit $ac_status) && test -s out/conftest2.$ac_objext
  38188. - then
  38189. - # The compiler can only warn and ignore the option if not recognized
  38190. - # So say no if there are warnings
  38191. - $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  38192. - $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  38193. - if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  38194. - lt_cv_prog_compiler_c_o_F77=yes
  38195. - fi
  38196. - fi
  38197. - chmod u+w . 2>&5
  38198. - $rm conftest*
  38199. - # SGI C++ compiler will create directory out/ii_files/ for
  38200. - # template instantiation
  38201. - test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
  38202. - $rm out/* && rmdir out
  38203. - cd ..
  38204. - rmdir conftest
  38205. - $rm conftest*
  38206. -
  38207. -fi
  38208. -{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
  38209. -echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
  38210. -
  38211. -
  38212. -hard_links="nottested"
  38213. -if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
  38214. - # do not overwrite the value of need_locks provided by the user
  38215. - { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
  38216. -echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
  38217. - hard_links=yes
  38218. - $rm conftest*
  38219. - ln conftest.a conftest.b 2>/dev/null && hard_links=no
  38220. - touch conftest.a
  38221. - ln conftest.a conftest.b 2>&5 || hard_links=no
  38222. - ln conftest.a conftest.b 2>/dev/null && hard_links=no
  38223. - { echo "$as_me:$LINENO: result: $hard_links" >&5
  38224. -echo "${ECHO_T}$hard_links" >&6; }
  38225. - if test "$hard_links" = no; then
  38226. - { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  38227. -echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  38228. - need_locks=warn
  38229. - fi
  38230. -else
  38231. - need_locks=no
  38232. -fi
  38233. -
  38234. -{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  38235. -echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
  38236. -
  38237. - runpath_var=
  38238. - allow_undefined_flag_F77=
  38239. - enable_shared_with_static_runtimes_F77=no
  38240. - archive_cmds_F77=
  38241. - archive_expsym_cmds_F77=
  38242. - old_archive_From_new_cmds_F77=
  38243. - old_archive_from_expsyms_cmds_F77=
  38244. - export_dynamic_flag_spec_F77=
  38245. - whole_archive_flag_spec_F77=
  38246. - thread_safe_flag_spec_F77=
  38247. - hardcode_libdir_flag_spec_F77=
  38248. - hardcode_libdir_flag_spec_ld_F77=
  38249. - hardcode_libdir_separator_F77=
  38250. - hardcode_direct_F77=no
  38251. - hardcode_minus_L_F77=no
  38252. - hardcode_shlibpath_var_F77=unsupported
  38253. - link_all_deplibs_F77=unknown
  38254. - hardcode_automatic_F77=no
  38255. - module_cmds_F77=
  38256. - module_expsym_cmds_F77=
  38257. - always_export_symbols_F77=no
  38258. - export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  38259. - # include_expsyms should be a list of space-separated symbols to be *always*
  38260. - # included in the symbol list
  38261. - include_expsyms_F77=
  38262. - # exclude_expsyms can be an extended regexp of symbols to exclude
  38263. - # it will be wrapped by ` (' and `)$', so one must not match beginning or
  38264. - # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  38265. - # as well as any symbol that contains `d'.
  38266. - exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
  38267. - # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  38268. - # platforms (ab)use it in PIC code, but their linkers get confused if
  38269. - # the symbol is explicitly referenced. Since portable code cannot
  38270. - # rely on this symbol name, it's probably fine to never include it in
  38271. - # preloaded symbol tables.
  38272. - extract_expsyms_cmds=
  38273. - # Just being paranoid about ensuring that cc_basename is set.
  38274. - for cc_temp in $compiler""; do
  38275. - case $cc_temp in
  38276. - compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  38277. - distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  38278. - \-*) ;;
  38279. - *) break;;
  38280. - esac
  38281. -done
  38282. -cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  38283. -
  38284. - case $host_os in
  38285. - cygwin* | mingw* | pw32*)
  38286. - # FIXME: the MSVC++ port hasn't been tested in a loooong time
  38287. - # When not using gcc, we currently assume that we are using
  38288. - # Microsoft Visual C++.
  38289. - if test "$GCC" != yes; then
  38290. - with_gnu_ld=no
  38291. - fi
  38292. - ;;
  38293. - interix*)
  38294. - # we just hope/assume this is gcc and not c89 (= MSVC++)
  38295. - with_gnu_ld=yes
  38296. - ;;
  38297. - openbsd*)
  38298. - with_gnu_ld=no
  38299. - ;;
  38300. - esac
  38301. -
  38302. - ld_shlibs_F77=yes
  38303. - if test "$with_gnu_ld" = yes; then
  38304. - # If archive_cmds runs LD, not CC, wlarc should be empty
  38305. - wlarc='${wl}'
  38306. -
  38307. - # Set some defaults for GNU ld with shared library support. These
  38308. - # are reset later if shared libraries are not supported. Putting them
  38309. - # here allows them to be overridden if necessary.
  38310. - runpath_var=LD_RUN_PATH
  38311. - hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
  38312. - export_dynamic_flag_spec_F77='${wl}--export-dynamic'
  38313. - # ancient GNU ld didn't support --whole-archive et. al.
  38314. - if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
  38315. - whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  38316. - else
  38317. - whole_archive_flag_spec_F77=
  38318. - fi
  38319. - supports_anon_versioning=no
  38320. - case `$LD -v 2>/dev/null` in
  38321. - *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  38322. - *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  38323. - *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  38324. - *\ 2.11.*) ;; # other 2.11 versions
  38325. - *) supports_anon_versioning=yes ;;
  38326. - esac
  38327. -
  38328. - # See if GNU ld supports shared libraries.
  38329. - case $host_os in
  38330. - aix3* | aix4* | aix5*)
  38331. - # On AIX/PPC, the GNU linker is very broken
  38332. - if test "$host_cpu" != ia64; then
  38333. - ld_shlibs_F77=no
  38334. - cat <<EOF 1>&2
  38335. -
  38336. -*** Warning: the GNU linker, at least up to release 2.9.1, is reported
  38337. -*** to be unable to reliably create shared libraries on AIX.
  38338. -*** Therefore, libtool is disabling shared libraries support. If you
  38339. -*** really care for shared libraries, you may want to modify your PATH
  38340. -*** so that a non-GNU linker is found, and then restart.
  38341. -
  38342. -EOF
  38343. - fi
  38344. - ;;
  38345. -
  38346. - amigaos*)
  38347. - 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)'
  38348. - hardcode_libdir_flag_spec_F77='-L$libdir'
  38349. - hardcode_minus_L_F77=yes
  38350. -
  38351. - # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
  38352. - # that the semantics of dynamic libraries on AmigaOS, at least up
  38353. - # to version 4, is to share data among multiple programs linked
  38354. - # with the same dynamic library. Since this doesn't match the
  38355. - # behavior of shared libraries on other platforms, we can't use
  38356. - # them.
  38357. - ld_shlibs_F77=no
  38358. - ;;
  38359. -
  38360. - beos*)
  38361. - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  38362. - allow_undefined_flag_F77=unsupported
  38363. - # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  38364. - # support --undefined. This deserves some investigation. FIXME
  38365. - archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  38366. - else
  38367. - ld_shlibs_F77=no
  38368. - fi
  38369. - ;;
  38370. -
  38371. - cygwin* | mingw* | pw32*)
  38372. - # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
  38373. - # as there is no search path for DLLs.
  38374. - hardcode_libdir_flag_spec_F77='-L$libdir'
  38375. - allow_undefined_flag_F77=unsupported
  38376. - always_export_symbols_F77=no
  38377. - enable_shared_with_static_runtimes_F77=yes
  38378. - export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
  38379. -
  38380. - if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
  38381. - archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  38382. - # If the export-symbols file already is a .def file (1st line
  38383. - # is EXPORTS), use it as is; otherwise, prepend...
  38384. - archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  38385. - cp $export_symbols $output_objdir/$soname.def;
  38386. - else
  38387. - echo EXPORTS > $output_objdir/$soname.def;
  38388. - cat $export_symbols >> $output_objdir/$soname.def;
  38389. - fi~
  38390. - $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  38391. - else
  38392. - ld_shlibs_F77=no
  38393. - fi
  38394. - ;;
  38395. -
  38396. - interix3*)
  38397. - hardcode_direct_F77=no
  38398. - hardcode_shlibpath_var_F77=no
  38399. - hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
  38400. - export_dynamic_flag_spec_F77='${wl}-E'
  38401. - # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  38402. - # Instead, shared libraries are loaded at an image base (0x10000000 by
  38403. - # default) and relocated if they conflict, which is a slow very memory
  38404. - # consuming and fragmenting process. To avoid this, we pick a random,
  38405. - # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  38406. - # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  38407. - archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  38408. - archive_expsym_cmds_F77='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  38409. - ;;
  38410. -
  38411. - linux*)
  38412. - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  38413. - tmp_addflag=
  38414. - case $cc_basename,$host_cpu in
  38415. - pgcc*) # Portland Group C compiler
  38416. - whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
  38417. - tmp_addflag=' $pic_flag'
  38418. - ;;
  38419. - pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
  38420. - whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
  38421. - tmp_addflag=' $pic_flag -Mnomain' ;;
  38422. - ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  38423. - tmp_addflag=' -i_dynamic' ;;
  38424. - efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  38425. - tmp_addflag=' -i_dynamic -nofor_main' ;;
  38426. - ifc* | ifort*) # Intel Fortran compiler
  38427. - tmp_addflag=' -nofor_main' ;;
  38428. - esac
  38429. - archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  38430. -
  38431. - if test $supports_anon_versioning = yes; then
  38432. - archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
  38433. - cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  38434. - $echo "local: *; };" >> $output_objdir/$libname.ver~
  38435. - $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  38436. - fi
  38437. - else
  38438. - ld_shlibs_F77=no
  38439. - fi
  38440. - ;;
  38441. -
  38442. - netbsd*)
  38443. - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  38444. - archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  38445. - wlarc=
  38446. - else
  38447. - archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  38448. - archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  38449. - fi
  38450. - ;;
  38451. -
  38452. - solaris*)
  38453. - if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
  38454. - ld_shlibs_F77=no
  38455. - cat <<EOF 1>&2
  38456. -
  38457. -*** Warning: The releases 2.8.* of the GNU linker cannot reliably
  38458. -*** create shared libraries on Solaris systems. Therefore, libtool
  38459. -*** is disabling shared libraries support. We urge you to upgrade GNU
  38460. -*** binutils to release 2.9.1 or newer. Another option is to modify
  38461. -*** your PATH or compiler configuration so that the native linker is
  38462. -*** used, and then restart.
  38463. -
  38464. -EOF
  38465. - elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  38466. - archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  38467. - archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  38468. - else
  38469. - ld_shlibs_F77=no
  38470. - fi
  38471. - ;;
  38472. -
  38473. - sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  38474. - case `$LD -v 2>&1` in
  38475. - *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  38476. - ld_shlibs_F77=no
  38477. - cat <<_LT_EOF 1>&2
  38478. -
  38479. -*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  38480. -*** reliably create shared libraries on SCO systems. Therefore, libtool
  38481. -*** is disabling shared libraries support. We urge you to upgrade GNU
  38482. -*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  38483. -*** your PATH or compiler configuration so that the native linker is
  38484. -*** used, and then restart.
  38485. -
  38486. -_LT_EOF
  38487. - ;;
  38488. - *)
  38489. - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  38490. - hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
  38491. - archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
  38492. - archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
  38493. - else
  38494. - ld_shlibs_F77=no
  38495. - fi
  38496. - ;;
  38497. - esac
  38498. - ;;
  38499. -
  38500. - sunos4*)
  38501. - archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  38502. - wlarc=
  38503. - hardcode_direct_F77=yes
  38504. - hardcode_shlibpath_var_F77=no
  38505. - ;;
  38506. -
  38507. - *)
  38508. - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  38509. - archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  38510. - archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  38511. - else
  38512. - ld_shlibs_F77=no
  38513. - fi
  38514. - ;;
  38515. - esac
  38516. -
  38517. - if test "$ld_shlibs_F77" = no; then
  38518. - runpath_var=
  38519. - hardcode_libdir_flag_spec_F77=
  38520. - export_dynamic_flag_spec_F77=
  38521. - whole_archive_flag_spec_F77=
  38522. - fi
  38523. - else
  38524. - # PORTME fill in a description of your system's linker (not GNU ld)
  38525. - case $host_os in
  38526. - aix3*)
  38527. - allow_undefined_flag_F77=unsupported
  38528. - always_export_symbols_F77=yes
  38529. - 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'
  38530. - # Note: this linker hardcodes the directories in LIBPATH if there
  38531. - # are no directories specified by -L.
  38532. - hardcode_minus_L_F77=yes
  38533. - if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  38534. - # Neither direct hardcoding nor static linking is supported with a
  38535. - # broken collect2.
  38536. - hardcode_direct_F77=unsupported
  38537. - fi
  38538. - ;;
  38539. -
  38540. - aix4* | aix5*)
  38541. - if test "$host_cpu" = ia64; then
  38542. - # On IA64, the linker does run time linking by default, so we don't
  38543. - # have to do anything special.
  38544. - aix_use_runtimelinking=no
  38545. - exp_sym_flag='-Bexport'
  38546. - no_entry_flag=""
  38547. - else
  38548. - # If we're using GNU nm, then we don't want the "-C" option.
  38549. - # -C means demangle to AIX nm, but means don't demangle with GNU nm
  38550. - if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
  38551. - 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'
  38552. - else
  38553. - 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'
  38554. - fi
  38555. - aix_use_runtimelinking=no
  38556. -
  38557. - # Test if we are trying to use run time linking or normal
  38558. - # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  38559. - # need to do runtime linking.
  38560. - case $host_os in aix4.[23]|aix4.[23].*|aix5*)
  38561. - for ld_flag in $LDFLAGS; do
  38562. - if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  38563. - aix_use_runtimelinking=yes
  38564. - break
  38565. - fi
  38566. - done
  38567. - ;;
  38568. - esac
  38569. -
  38570. - exp_sym_flag='-bexport'
  38571. - no_entry_flag='-bnoentry'
  38572. - fi
  38573. -
  38574. - # When large executables or shared objects are built, AIX ld can
  38575. - # have problems creating the table of contents. If linking a library
  38576. - # or program results in "error TOC overflow" add -mminimal-toc to
  38577. - # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  38578. - # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  38579. -
  38580. - archive_cmds_F77=''
  38581. - hardcode_direct_F77=yes
  38582. - hardcode_libdir_separator_F77=':'
  38583. - link_all_deplibs_F77=yes
  38584. -
  38585. - if test "$GCC" = yes; then
  38586. - case $host_os in aix4.[012]|aix4.[012].*)
  38587. - # We only want to do this on AIX 4.2 and lower, the check
  38588. - # below for broken collect2 doesn't work under 4.3+
  38589. - collect2name=`${CC} -print-prog-name=collect2`
  38590. - if test -f "$collect2name" && \
  38591. - strings "$collect2name" | grep resolve_lib_name >/dev/null
  38592. - then
  38593. - # We have reworked collect2
  38594. - hardcode_direct_F77=yes
  38595. - else
  38596. - # We have old collect2
  38597. - hardcode_direct_F77=unsupported
  38598. - # It fails to find uninstalled libraries when the uninstalled
  38599. - # path is not listed in the libpath. Setting hardcode_minus_L
  38600. - # to unsupported forces relinking
  38601. - hardcode_minus_L_F77=yes
  38602. - hardcode_libdir_flag_spec_F77='-L$libdir'
  38603. - hardcode_libdir_separator_F77=
  38604. - fi
  38605. - ;;
  38606. - esac
  38607. - shared_flag='-shared'
  38608. - if test "$aix_use_runtimelinking" = yes; then
  38609. - shared_flag="$shared_flag "'${wl}-G'
  38610. - fi
  38611. - else
  38612. - # not using gcc
  38613. - if test "$host_cpu" = ia64; then
  38614. - # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  38615. - # chokes on -Wl,-G. The following line is correct:
  38616. - shared_flag='-G'
  38617. - else
  38618. - if test "$aix_use_runtimelinking" = yes; then
  38619. - shared_flag='${wl}-G'
  38620. - else
  38621. - shared_flag='${wl}-bM:SRE'
  38622. - fi
  38623. - fi
  38624. - fi
  38625. -
  38626. - # It seems that -bexpall does not export symbols beginning with
  38627. - # underscore (_), so it is better to generate a list of symbols to export.
  38628. - always_export_symbols_F77=yes
  38629. - if test "$aix_use_runtimelinking" = yes; then
  38630. - # Warning - without using the other runtime loading flags (-brtl),
  38631. - # -berok will link without error, but may produce a broken library.
  38632. - allow_undefined_flag_F77='-berok'
  38633. - # Determine the default libpath from the value encoded in an empty executable.
  38634. - cat >conftest.$ac_ext <<_ACEOF
  38635. - program main
  38636. -
  38637. - end
  38638. -_ACEOF
  38639. -rm -f conftest.$ac_objext conftest$ac_exeext
  38640. -if { (ac_try="$ac_link"
  38641. -case "(($ac_try" in
  38642. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  38643. - *) ac_try_echo=$ac_try;;
  38644. -esac
  38645. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  38646. - (eval "$ac_link") 2>conftest.er1
  38647. - ac_status=$?
  38648. - grep -v '^ *+' conftest.er1 >conftest.err
  38649. - rm -f conftest.er1
  38650. - cat conftest.err >&5
  38651. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  38652. - (exit $ac_status); } &&
  38653. - { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
  38654. - { (case "(($ac_try" in
  38655. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  38656. - *) ac_try_echo=$ac_try;;
  38657. -esac
  38658. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  38659. - (eval "$ac_try") 2>&5
  38660. - ac_status=$?
  38661. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  38662. - (exit $ac_status); }; } &&
  38663. - { ac_try='test -s conftest$ac_exeext'
  38664. - { (case "(($ac_try" in
  38665. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  38666. - *) ac_try_echo=$ac_try;;
  38667. -esac
  38668. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  38669. - (eval "$ac_try") 2>&5
  38670. - ac_status=$?
  38671. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  38672. - (exit $ac_status); }; }; then
  38673. -
  38674. -aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  38675. -}'`
  38676. -# Check for a 64-bit object if we didn't find anything.
  38677. -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; }
  38678. -}'`; fi
  38679. -else
  38680. - echo "$as_me: failed program was:" >&5
  38681. -sed 's/^/| /' conftest.$ac_ext >&5
  38682. -
  38683. -
  38684. -fi
  38685. -
  38686. -rm -f core conftest.err conftest.$ac_objext \
  38687. - conftest$ac_exeext conftest.$ac_ext
  38688. -if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  38689. -
  38690. - hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
  38691. - archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  38692. - else
  38693. - if test "$host_cpu" = ia64; then
  38694. - hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
  38695. - allow_undefined_flag_F77="-z nodefs"
  38696. - archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
  38697. - else
  38698. - # Determine the default libpath from the value encoded in an empty executable.
  38699. - cat >conftest.$ac_ext <<_ACEOF
  38700. - program main
  38701. -
  38702. - end
  38703. -_ACEOF
  38704. -rm -f conftest.$ac_objext conftest$ac_exeext
  38705. -if { (ac_try="$ac_link"
  38706. -case "(($ac_try" in
  38707. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  38708. - *) ac_try_echo=$ac_try;;
  38709. -esac
  38710. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  38711. - (eval "$ac_link") 2>conftest.er1
  38712. - ac_status=$?
  38713. - grep -v '^ *+' conftest.er1 >conftest.err
  38714. - rm -f conftest.er1
  38715. - cat conftest.err >&5
  38716. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  38717. - (exit $ac_status); } &&
  38718. - { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
  38719. - { (case "(($ac_try" in
  38720. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  38721. - *) ac_try_echo=$ac_try;;
  38722. -esac
  38723. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  38724. - (eval "$ac_try") 2>&5
  38725. - ac_status=$?
  38726. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  38727. - (exit $ac_status); }; } &&
  38728. - { ac_try='test -s conftest$ac_exeext'
  38729. - { (case "(($ac_try" in
  38730. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  38731. - *) ac_try_echo=$ac_try;;
  38732. -esac
  38733. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  38734. - (eval "$ac_try") 2>&5
  38735. - ac_status=$?
  38736. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  38737. - (exit $ac_status); }; }; then
  38738. -
  38739. -aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  38740. -}'`
  38741. -# Check for a 64-bit object if we didn't find anything.
  38742. -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; }
  38743. -}'`; fi
  38744. -else
  38745. - echo "$as_me: failed program was:" >&5
  38746. -sed 's/^/| /' conftest.$ac_ext >&5
  38747. -
  38748. -
  38749. -fi
  38750. -
  38751. -rm -f core conftest.err conftest.$ac_objext \
  38752. - conftest$ac_exeext conftest.$ac_ext
  38753. -if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  38754. -
  38755. - hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
  38756. - # Warning - without using the other run time loading flags,
  38757. - # -berok will link without error, but may produce a broken library.
  38758. - no_undefined_flag_F77=' ${wl}-bernotok'
  38759. - allow_undefined_flag_F77=' ${wl}-berok'
  38760. - # Exported symbols can be pulled into shared objects from archives
  38761. - whole_archive_flag_spec_F77='$convenience'
  38762. - archive_cmds_need_lc_F77=yes
  38763. - # This is similar to how AIX traditionally builds its shared libraries.
  38764. - archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
  38765. - fi
  38766. - fi
  38767. - ;;
  38768. -
  38769. - amigaos*)
  38770. - 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)'
  38771. - hardcode_libdir_flag_spec_F77='-L$libdir'
  38772. - hardcode_minus_L_F77=yes
  38773. - # see comment about different semantics on the GNU ld section
  38774. - ld_shlibs_F77=no
  38775. - ;;
  38776. -
  38777. - bsdi[45]*)
  38778. - export_dynamic_flag_spec_F77=-rdynamic
  38779. - ;;
  38780. -
  38781. - cygwin* | mingw* | pw32*)
  38782. - # When not using gcc, we currently assume that we are using
  38783. - # Microsoft Visual C++.
  38784. - # hardcode_libdir_flag_spec is actually meaningless, as there is
  38785. - # no search path for DLLs.
  38786. - hardcode_libdir_flag_spec_F77=' '
  38787. - allow_undefined_flag_F77=unsupported
  38788. - # Tell ltmain to make .lib files, not .a files.
  38789. - libext=lib
  38790. - # Tell ltmain to make .dll files, not .so files.
  38791. - shrext_cmds=".dll"
  38792. - # FIXME: Setting linknames here is a bad hack.
  38793. - archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
  38794. - # The linker will automatically build a .lib file if we build a DLL.
  38795. - old_archive_From_new_cmds_F77='true'
  38796. - # FIXME: Should let the user specify the lib program.
  38797. - old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
  38798. - fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
  38799. - enable_shared_with_static_runtimes_F77=yes
  38800. - ;;
  38801. -
  38802. - darwin* | rhapsody*)
  38803. - case $host_os in
  38804. - rhapsody* | darwin1.[012])
  38805. - allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
  38806. - ;;
  38807. - *) # Darwin 1.3 on
  38808. - if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
  38809. - allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  38810. - else
  38811. - case ${MACOSX_DEPLOYMENT_TARGET} in
  38812. - 10.[012])
  38813. - allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  38814. - ;;
  38815. - 10.*)
  38816. - allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
  38817. - ;;
  38818. - esac
  38819. - fi
  38820. - ;;
  38821. - esac
  38822. - archive_cmds_need_lc_F77=no
  38823. - hardcode_direct_F77=no
  38824. - hardcode_automatic_F77=yes
  38825. - hardcode_shlibpath_var_F77=unsupported
  38826. - whole_archive_flag_spec_F77=''
  38827. - link_all_deplibs_F77=yes
  38828. - if test "$GCC" = yes ; then
  38829. - output_verbose_link_cmd='echo'
  38830. - archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
  38831. - module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  38832. - # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  38833. - 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}'
  38834. - 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}'
  38835. - else
  38836. - case $cc_basename in
  38837. - xlc*)
  38838. - output_verbose_link_cmd='echo'
  38839. - archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
  38840. - module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  38841. - # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  38842. - 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}'
  38843. - 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}'
  38844. - ;;
  38845. - *)
  38846. - ld_shlibs_F77=no
  38847. - ;;
  38848. - esac
  38849. - fi
  38850. - ;;
  38851. -
  38852. - dgux*)
  38853. - archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  38854. - hardcode_libdir_flag_spec_F77='-L$libdir'
  38855. - hardcode_shlibpath_var_F77=no
  38856. - ;;
  38857. -
  38858. - freebsd1*)
  38859. - ld_shlibs_F77=no
  38860. - ;;
  38861. -
  38862. - # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  38863. - # support. Future versions do this automatically, but an explicit c++rt0.o
  38864. - # does not break anything, and helps significantly (at the cost of a little
  38865. - # extra space).
  38866. - freebsd2.2*)
  38867. - archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  38868. - hardcode_libdir_flag_spec_F77='-R$libdir'
  38869. - hardcode_direct_F77=yes
  38870. - hardcode_shlibpath_var_F77=no
  38871. - ;;
  38872. -
  38873. - # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  38874. - freebsd2*)
  38875. - archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  38876. - hardcode_direct_F77=yes
  38877. - hardcode_minus_L_F77=yes
  38878. - hardcode_shlibpath_var_F77=no
  38879. - ;;
  38880. -
  38881. - # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  38882. - freebsd* | kfreebsd*-gnu | dragonfly*)
  38883. - archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  38884. - hardcode_libdir_flag_spec_F77='-R$libdir'
  38885. - hardcode_direct_F77=yes
  38886. - hardcode_shlibpath_var_F77=no
  38887. - ;;
  38888. -
  38889. - hpux9*)
  38890. - if test "$GCC" = yes; then
  38891. - 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'
  38892. - else
  38893. - 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'
  38894. - fi
  38895. - hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
  38896. - hardcode_libdir_separator_F77=:
  38897. - hardcode_direct_F77=yes
  38898. -
  38899. - # hardcode_minus_L: Not really in the search PATH,
  38900. - # but as the default location of the library.
  38901. - hardcode_minus_L_F77=yes
  38902. - export_dynamic_flag_spec_F77='${wl}-E'
  38903. - ;;
  38904. -
  38905. - hpux10*)
  38906. - if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  38907. - archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  38908. - else
  38909. - archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  38910. - fi
  38911. - if test "$with_gnu_ld" = no; then
  38912. - hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
  38913. - hardcode_libdir_separator_F77=:
  38914. -
  38915. - hardcode_direct_F77=yes
  38916. - export_dynamic_flag_spec_F77='${wl}-E'
  38917. -
  38918. - # hardcode_minus_L: Not really in the search PATH,
  38919. - # but as the default location of the library.
  38920. - hardcode_minus_L_F77=yes
  38921. - fi
  38922. - ;;
  38923. -
  38924. - hpux11*)
  38925. - if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  38926. - case $host_cpu in
  38927. - hppa*64*)
  38928. - archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  38929. - ;;
  38930. - ia64*)
  38931. - archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  38932. - ;;
  38933. - *)
  38934. - archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  38935. - ;;
  38936. - esac
  38937. - else
  38938. - case $host_cpu in
  38939. - hppa*64*)
  38940. - archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  38941. - ;;
  38942. - ia64*)
  38943. - archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  38944. - ;;
  38945. - *)
  38946. - archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  38947. - ;;
  38948. - esac
  38949. - fi
  38950. - if test "$with_gnu_ld" = no; then
  38951. - hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
  38952. - hardcode_libdir_separator_F77=:
  38953. -
  38954. - case $host_cpu in
  38955. - hppa*64*|ia64*)
  38956. - hardcode_libdir_flag_spec_ld_F77='+b $libdir'
  38957. - hardcode_direct_F77=no
  38958. - hardcode_shlibpath_var_F77=no
  38959. - ;;
  38960. - *)
  38961. - hardcode_direct_F77=yes
  38962. - export_dynamic_flag_spec_F77='${wl}-E'
  38963. -
  38964. - # hardcode_minus_L: Not really in the search PATH,
  38965. - # but as the default location of the library.
  38966. - hardcode_minus_L_F77=yes
  38967. - ;;
  38968. - esac
  38969. - fi
  38970. - ;;
  38971. -
  38972. - irix5* | irix6* | nonstopux*)
  38973. - if test "$GCC" = yes; then
  38974. - 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'
  38975. - else
  38976. - 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'
  38977. - hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
  38978. - fi
  38979. - hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
  38980. - hardcode_libdir_separator_F77=:
  38981. - link_all_deplibs_F77=yes
  38982. - ;;
  38983. -
  38984. - netbsd*)
  38985. - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  38986. - archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  38987. - else
  38988. - archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  38989. - fi
  38990. - hardcode_libdir_flag_spec_F77='-R$libdir'
  38991. - hardcode_direct_F77=yes
  38992. - hardcode_shlibpath_var_F77=no
  38993. - ;;
  38994. -
  38995. - newsos6)
  38996. - archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  38997. - hardcode_direct_F77=yes
  38998. - hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
  38999. - hardcode_libdir_separator_F77=:
  39000. - hardcode_shlibpath_var_F77=no
  39001. - ;;
  39002. -
  39003. - openbsd*)
  39004. - hardcode_direct_F77=yes
  39005. - hardcode_shlibpath_var_F77=no
  39006. - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  39007. - archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  39008. - archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  39009. - hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
  39010. - export_dynamic_flag_spec_F77='${wl}-E'
  39011. - else
  39012. - case $host_os in
  39013. - openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  39014. - archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  39015. - hardcode_libdir_flag_spec_F77='-R$libdir'
  39016. - ;;
  39017. - *)
  39018. - archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  39019. - hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
  39020. - ;;
  39021. - esac
  39022. - fi
  39023. - ;;
  39024. -
  39025. - os2*)
  39026. - hardcode_libdir_flag_spec_F77='-L$libdir'
  39027. - hardcode_minus_L_F77=yes
  39028. - allow_undefined_flag_F77=unsupported
  39029. - 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'
  39030. - old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  39031. - ;;
  39032. -
  39033. - osf3*)
  39034. - if test "$GCC" = yes; then
  39035. - allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
  39036. - 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'
  39037. - else
  39038. - allow_undefined_flag_F77=' -expect_unresolved \*'
  39039. - 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'
  39040. - fi
  39041. - hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
  39042. - hardcode_libdir_separator_F77=:
  39043. - ;;
  39044. -
  39045. - osf4* | osf5*) # as osf3* with the addition of -msym flag
  39046. - if test "$GCC" = yes; then
  39047. - allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
  39048. - 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'
  39049. - hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
  39050. - else
  39051. - allow_undefined_flag_F77=' -expect_unresolved \*'
  39052. - 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'
  39053. - 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~
  39054. - $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
  39055. -
  39056. - # Both c and cxx compiler support -rpath directly
  39057. - hardcode_libdir_flag_spec_F77='-rpath $libdir'
  39058. - fi
  39059. - hardcode_libdir_separator_F77=:
  39060. - ;;
  39061. -
  39062. - solaris*)
  39063. - no_undefined_flag_F77=' -z text'
  39064. - if test "$GCC" = yes; then
  39065. - wlarc='${wl}'
  39066. - archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  39067. - archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  39068. - $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
  39069. - else
  39070. - wlarc=''
  39071. - archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  39072. - archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  39073. - $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
  39074. - fi
  39075. - hardcode_libdir_flag_spec_F77='-R$libdir'
  39076. - hardcode_shlibpath_var_F77=no
  39077. - case $host_os in
  39078. - solaris2.[0-5] | solaris2.[0-5].*) ;;
  39079. - *)
  39080. - # The compiler driver will combine linker options so we
  39081. - # cannot just pass the convience library names through
  39082. - # without $wl, iff we do not link with $LD.
  39083. - # Luckily, gcc supports the same syntax we need for Sun Studio.
  39084. - # Supported since Solaris 2.6 (maybe 2.5.1?)
  39085. - case $wlarc in
  39086. - '')
  39087. - whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
  39088. - *)
  39089. - whole_archive_flag_spec_F77='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
  39090. - esac ;;
  39091. - esac
  39092. - link_all_deplibs_F77=yes
  39093. - ;;
  39094. -
  39095. - sunos4*)
  39096. - if test "x$host_vendor" = xsequent; then
  39097. - # Use $CC to link under sequent, because it throws in some extra .o
  39098. - # files that make .init and .fini sections work.
  39099. - archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  39100. - else
  39101. - archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  39102. - fi
  39103. - hardcode_libdir_flag_spec_F77='-L$libdir'
  39104. - hardcode_direct_F77=yes
  39105. - hardcode_minus_L_F77=yes
  39106. - hardcode_shlibpath_var_F77=no
  39107. - ;;
  39108. -
  39109. - sysv4)
  39110. - case $host_vendor in
  39111. - sni)
  39112. - archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  39113. - hardcode_direct_F77=yes # is this really true???
  39114. - ;;
  39115. - siemens)
  39116. - ## LD is ld it makes a PLAMLIB
  39117. - ## CC just makes a GrossModule.
  39118. - archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  39119. - reload_cmds_F77='$CC -r -o $output$reload_objs'
  39120. - hardcode_direct_F77=no
  39121. - ;;
  39122. - motorola)
  39123. - archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  39124. - hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
  39125. - ;;
  39126. - esac
  39127. - runpath_var='LD_RUN_PATH'
  39128. - hardcode_shlibpath_var_F77=no
  39129. - ;;
  39130. -
  39131. - sysv4.3*)
  39132. - archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  39133. - hardcode_shlibpath_var_F77=no
  39134. - export_dynamic_flag_spec_F77='-Bexport'
  39135. - ;;
  39136. -
  39137. - sysv4*MP*)
  39138. - if test -d /usr/nec; then
  39139. - archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  39140. - hardcode_shlibpath_var_F77=no
  39141. - runpath_var=LD_RUN_PATH
  39142. - hardcode_runpath_var=yes
  39143. - ld_shlibs_F77=yes
  39144. - fi
  39145. - ;;
  39146. -
  39147. - sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
  39148. - no_undefined_flag_F77='${wl}-z,text'
  39149. - archive_cmds_need_lc_F77=no
  39150. - hardcode_shlibpath_var_F77=no
  39151. - runpath_var='LD_RUN_PATH'
  39152. -
  39153. - if test "$GCC" = yes; then
  39154. - archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  39155. - archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  39156. - else
  39157. - archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  39158. - archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  39159. - fi
  39160. - ;;
  39161. -
  39162. - sysv5* | sco3.2v5* | sco5v6*)
  39163. - # Note: We can NOT use -z defs as we might desire, because we do not
  39164. - # link with -lc, and that would cause any symbols used from libc to
  39165. - # always be unresolved, which means just about no library would
  39166. - # ever link correctly. If we're not using GNU ld we use -z text
  39167. - # though, which does catch some bad symbols but isn't as heavy-handed
  39168. - # as -z defs.
  39169. - no_undefined_flag_F77='${wl}-z,text'
  39170. - allow_undefined_flag_F77='${wl}-z,nodefs'
  39171. - archive_cmds_need_lc_F77=no
  39172. - hardcode_shlibpath_var_F77=no
  39173. - hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
  39174. - hardcode_libdir_separator_F77=':'
  39175. - link_all_deplibs_F77=yes
  39176. - export_dynamic_flag_spec_F77='${wl}-Bexport'
  39177. - runpath_var='LD_RUN_PATH'
  39178. -
  39179. - if test "$GCC" = yes; then
  39180. - archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  39181. - archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  39182. - else
  39183. - archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  39184. - archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  39185. - fi
  39186. - ;;
  39187. -
  39188. - uts4*)
  39189. - archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  39190. - hardcode_libdir_flag_spec_F77='-L$libdir'
  39191. - hardcode_shlibpath_var_F77=no
  39192. - ;;
  39193. -
  39194. - *)
  39195. - ld_shlibs_F77=no
  39196. - ;;
  39197. - esac
  39198. - fi
  39199. -
  39200. -{ echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
  39201. -echo "${ECHO_T}$ld_shlibs_F77" >&6; }
  39202. -test "$ld_shlibs_F77" = no && can_build_shared=no
  39203. -
  39204. -#
  39205. -# Do we need to explicitly link libc?
  39206. -#
  39207. -case "x$archive_cmds_need_lc_F77" in
  39208. -x|xyes)
  39209. - # Assume -lc should be added
  39210. - archive_cmds_need_lc_F77=yes
  39211. -
  39212. - if test "$enable_shared" = yes && test "$GCC" = yes; then
  39213. - case $archive_cmds_F77 in
  39214. - *'~'*)
  39215. - # FIXME: we may have to deal with multi-command sequences.
  39216. - ;;
  39217. - '$CC '*)
  39218. - # Test whether the compiler implicitly links with -lc since on some
  39219. - # systems, -lgcc has to come before -lc. If gcc already passes -lc
  39220. - # to ld, don't add -lc before -lgcc.
  39221. - { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
  39222. -echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
  39223. - $rm conftest*
  39224. - printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  39225. -
  39226. - if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  39227. - (eval $ac_compile) 2>&5
  39228. - ac_status=$?
  39229. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  39230. - (exit $ac_status); } 2>conftest.err; then
  39231. - soname=conftest
  39232. - lib=conftest
  39233. - libobjs=conftest.$ac_objext
  39234. - deplibs=
  39235. - wl=$lt_prog_compiler_wl_F77
  39236. - pic_flag=$lt_prog_compiler_pic_F77
  39237. - compiler_flags=-v
  39238. - linker_flags=-v
  39239. - verstring=
  39240. - output_objdir=.
  39241. - libname=conftest
  39242. - lt_save_allow_undefined_flag=$allow_undefined_flag_F77
  39243. - allow_undefined_flag_F77=
  39244. - if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
  39245. - (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
  39246. - ac_status=$?
  39247. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  39248. - (exit $ac_status); }
  39249. - then
  39250. - archive_cmds_need_lc_F77=no
  39251. - else
  39252. - archive_cmds_need_lc_F77=yes
  39253. - fi
  39254. - allow_undefined_flag_F77=$lt_save_allow_undefined_flag
  39255. - else
  39256. - cat conftest.err 1>&5
  39257. - fi
  39258. - $rm conftest*
  39259. - { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
  39260. -echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
  39261. - ;;
  39262. - esac
  39263. - fi
  39264. - ;;
  39265. -esac
  39266. -
  39267. -{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
  39268. -echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
  39269. -library_names_spec=
  39270. -libname_spec='lib$name'
  39271. -soname_spec=
  39272. -shrext_cmds=".so"
  39273. -postinstall_cmds=
  39274. -postuninstall_cmds=
  39275. -finish_cmds=
  39276. -finish_eval=
  39277. -shlibpath_var=
  39278. -shlibpath_overrides_runpath=unknown
  39279. -version_type=none
  39280. -dynamic_linker="$host_os ld.so"
  39281. -sys_lib_dlsearch_path_spec="/lib /usr/lib"
  39282. -if test "$GCC" = yes; then
  39283. - sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  39284. - if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
  39285. - # if the path contains ";" then we assume it to be the separator
  39286. - # otherwise default to the standard path separator (i.e. ":") - it is
  39287. - # assumed that no part of a normal pathname contains ";" but that should
  39288. - # okay in the real world where ";" in dirpaths is itself problematic.
  39289. - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  39290. - else
  39291. - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  39292. - fi
  39293. -else
  39294. - sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  39295. -fi
  39296. -need_lib_prefix=unknown
  39297. -hardcode_into_libs=no
  39298. -
  39299. -# when you set need_version to no, make sure it does not cause -set_version
  39300. -# flags to be left without arguments
  39301. -need_version=unknown
  39302. -
  39303. -case $host_os in
  39304. -aix3*)
  39305. - version_type=linux
  39306. - library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  39307. - shlibpath_var=LIBPATH
  39308. -
  39309. - # AIX 3 has no versioning support, so we append a major version to the name.
  39310. - soname_spec='${libname}${release}${shared_ext}$major'
  39311. - ;;
  39312. -
  39313. -aix4* | aix5*)
  39314. - version_type=linux
  39315. - need_lib_prefix=no
  39316. - need_version=no
  39317. - hardcode_into_libs=yes
  39318. - if test "$host_cpu" = ia64; then
  39319. - # AIX 5 supports IA64
  39320. - library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  39321. - shlibpath_var=LD_LIBRARY_PATH
  39322. - else
  39323. - # With GCC up to 2.95.x, collect2 would create an import file
  39324. - # for dependence libraries. The import file would start with
  39325. - # the line `#! .'. This would cause the generated library to
  39326. - # depend on `.', always an invalid library. This was fixed in
  39327. - # development snapshots of GCC prior to 3.0.
  39328. - case $host_os in
  39329. - aix4 | aix4.[01] | aix4.[01].*)
  39330. - if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  39331. - echo ' yes '
  39332. - echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
  39333. - :
  39334. - else
  39335. - can_build_shared=no
  39336. - fi
  39337. - ;;
  39338. - esac
  39339. - # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  39340. - # soname into executable. Probably we can add versioning support to
  39341. - # collect2, so additional links can be useful in future.
  39342. - if test "$aix_use_runtimelinking" = yes; then
  39343. - # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  39344. - # instead of lib<name>.a to let people know that these are not
  39345. - # typical AIX shared libraries.
  39346. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  39347. - else
  39348. - # We preserve .a as extension for shared libraries through AIX4.2
  39349. - # and later when we are not doing run time linking.
  39350. - library_names_spec='${libname}${release}.a $libname.a'
  39351. - soname_spec='${libname}${release}${shared_ext}$major'
  39352. - fi
  39353. - shlibpath_var=LIBPATH
  39354. - fi
  39355. - ;;
  39356. -
  39357. -amigaos*)
  39358. - library_names_spec='$libname.ixlibrary $libname.a'
  39359. - # Create ${libname}_ixlibrary.a entries in /sys/libs.
  39360. - 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'
  39361. - ;;
  39362. -
  39363. -beos*)
  39364. - library_names_spec='${libname}${shared_ext}'
  39365. - dynamic_linker="$host_os ld.so"
  39366. - shlibpath_var=LIBRARY_PATH
  39367. - ;;
  39368. -
  39369. -bsdi[45]*)
  39370. - version_type=linux
  39371. - need_version=no
  39372. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  39373. - soname_spec='${libname}${release}${shared_ext}$major'
  39374. - finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  39375. - shlibpath_var=LD_LIBRARY_PATH
  39376. - sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  39377. - sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  39378. - # the default ld.so.conf also contains /usr/contrib/lib and
  39379. - # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  39380. - # libtool to hard-code these into programs
  39381. - ;;
  39382. -
  39383. -cygwin* | mingw* | pw32*)
  39384. - version_type=windows
  39385. - shrext_cmds=".dll"
  39386. - need_version=no
  39387. - need_lib_prefix=no
  39388. -
  39389. - case $GCC,$host_os in
  39390. - yes,cygwin* | yes,mingw* | yes,pw32*)
  39391. - library_names_spec='$libname.dll.a'
  39392. - # DLL is installed to $(libdir)/../bin by postinstall_cmds
  39393. - postinstall_cmds='base_file=`basename \${file}`~
  39394. - dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
  39395. - dldir=$destdir/`dirname \$dlpath`~
  39396. - test -d \$dldir || mkdir -p \$dldir~
  39397. - $install_prog $dir/$dlname \$dldir/$dlname~
  39398. - chmod a+x \$dldir/$dlname'
  39399. - postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  39400. - dlpath=$dir/\$dldll~
  39401. - $rm \$dlpath'
  39402. - shlibpath_overrides_runpath=yes
  39403. -
  39404. - case $host_os in
  39405. - cygwin*)
  39406. - # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  39407. - soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  39408. - sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  39409. - ;;
  39410. - mingw*)
  39411. - # MinGW DLLs use traditional 'lib' prefix
  39412. - soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  39413. - sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  39414. - if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
  39415. - # It is most probably a Windows format PATH printed by
  39416. - # mingw gcc, but we are running on Cygwin. Gcc prints its search
  39417. - # path with ; separators, and with drive letters. We can handle the
  39418. - # drive letters (cygwin fileutils understands them), so leave them,
  39419. - # especially as we might pass files found there to a mingw objdump,
  39420. - # which wouldn't understand a cygwinified path. Ahh.
  39421. - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  39422. - else
  39423. - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  39424. - fi
  39425. - ;;
  39426. - pw32*)
  39427. - # pw32 DLLs use 'pw' prefix rather than 'lib'
  39428. - library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  39429. - ;;
  39430. - esac
  39431. - ;;
  39432. -
  39433. - *)
  39434. - library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  39435. - ;;
  39436. - esac
  39437. - dynamic_linker='Win32 ld.exe'
  39438. - # FIXME: first we should search . and the directory the executable is in
  39439. - shlibpath_var=PATH
  39440. - ;;
  39441. -
  39442. -darwin* | rhapsody*)
  39443. - dynamic_linker="$host_os dyld"
  39444. - version_type=darwin
  39445. - need_lib_prefix=no
  39446. - need_version=no
  39447. - library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  39448. - soname_spec='${libname}${release}${major}$shared_ext'
  39449. - shlibpath_overrides_runpath=yes
  39450. - shlibpath_var=DYLD_LIBRARY_PATH
  39451. - shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  39452. - # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
  39453. - if test "$GCC" = yes; then
  39454. - 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"`
  39455. - else
  39456. - sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
  39457. - fi
  39458. - sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  39459. - ;;
  39460. -
  39461. -dgux*)
  39462. - version_type=linux
  39463. - need_lib_prefix=no
  39464. - need_version=no
  39465. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  39466. - soname_spec='${libname}${release}${shared_ext}$major'
  39467. - shlibpath_var=LD_LIBRARY_PATH
  39468. - ;;
  39469. -
  39470. -freebsd1*)
  39471. - dynamic_linker=no
  39472. - ;;
  39473. -
  39474. -kfreebsd*-gnu)
  39475. - version_type=linux
  39476. - need_lib_prefix=no
  39477. - need_version=no
  39478. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  39479. - soname_spec='${libname}${release}${shared_ext}$major'
  39480. - shlibpath_var=LD_LIBRARY_PATH
  39481. - shlibpath_overrides_runpath=no
  39482. - hardcode_into_libs=yes
  39483. - dynamic_linker='GNU ld.so'
  39484. - ;;
  39485. -
  39486. -freebsd* | dragonfly*)
  39487. - # DragonFly does not have aout. When/if they implement a new
  39488. - # versioning mechanism, adjust this.
  39489. - if test -x /usr/bin/objformat; then
  39490. - objformat=`/usr/bin/objformat`
  39491. - else
  39492. - case $host_os in
  39493. - freebsd[123]*) objformat=aout ;;
  39494. - *) objformat=elf ;;
  39495. - esac
  39496. - fi
  39497. - version_type=freebsd-$objformat
  39498. - case $version_type in
  39499. - freebsd-elf*)
  39500. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  39501. - need_version=no
  39502. - need_lib_prefix=no
  39503. - ;;
  39504. - freebsd-*)
  39505. - library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  39506. - need_version=yes
  39507. - ;;
  39508. - esac
  39509. - shlibpath_var=LD_LIBRARY_PATH
  39510. - case $host_os in
  39511. - freebsd2*)
  39512. - shlibpath_overrides_runpath=yes
  39513. - ;;
  39514. - freebsd3.[01]* | freebsdelf3.[01]*)
  39515. - shlibpath_overrides_runpath=yes
  39516. - hardcode_into_libs=yes
  39517. - ;;
  39518. - freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  39519. - freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  39520. - shlibpath_overrides_runpath=no
  39521. - hardcode_into_libs=yes
  39522. - ;;
  39523. - freebsd*) # from 4.6 on
  39524. - shlibpath_overrides_runpath=yes
  39525. - hardcode_into_libs=yes
  39526. - ;;
  39527. - esac
  39528. - ;;
  39529. -
  39530. -gnu*)
  39531. - version_type=linux
  39532. - need_lib_prefix=no
  39533. - need_version=no
  39534. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  39535. - soname_spec='${libname}${release}${shared_ext}$major'
  39536. - shlibpath_var=LD_LIBRARY_PATH
  39537. - hardcode_into_libs=yes
  39538. - ;;
  39539. -
  39540. -hpux9* | hpux10* | hpux11*)
  39541. - # Give a soname corresponding to the major version so that dld.sl refuses to
  39542. - # link against other versions.
  39543. - version_type=sunos
  39544. - need_lib_prefix=no
  39545. - need_version=no
  39546. - case $host_cpu in
  39547. - ia64*)
  39548. - shrext_cmds='.so'
  39549. - hardcode_into_libs=yes
  39550. - dynamic_linker="$host_os dld.so"
  39551. - shlibpath_var=LD_LIBRARY_PATH
  39552. - shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  39553. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  39554. - soname_spec='${libname}${release}${shared_ext}$major'
  39555. - if test "X$HPUX_IA64_MODE" = X32; then
  39556. - sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  39557. - else
  39558. - sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  39559. - fi
  39560. - sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  39561. - ;;
  39562. - hppa*64*)
  39563. - shrext_cmds='.sl'
  39564. - hardcode_into_libs=yes
  39565. - dynamic_linker="$host_os dld.sl"
  39566. - shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  39567. - shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  39568. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  39569. - soname_spec='${libname}${release}${shared_ext}$major'
  39570. - sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  39571. - sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  39572. - ;;
  39573. - *)
  39574. - shrext_cmds='.sl'
  39575. - dynamic_linker="$host_os dld.sl"
  39576. - shlibpath_var=SHLIB_PATH
  39577. - shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  39578. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  39579. - soname_spec='${libname}${release}${shared_ext}$major'
  39580. - ;;
  39581. - esac
  39582. - # HP-UX runs *really* slowly unless shared libraries are mode 555.
  39583. - postinstall_cmds='chmod 555 $lib'
  39584. - ;;
  39585. -
  39586. -interix3*)
  39587. - version_type=linux
  39588. - need_lib_prefix=no
  39589. - need_version=no
  39590. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  39591. - soname_spec='${libname}${release}${shared_ext}$major'
  39592. - dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  39593. - shlibpath_var=LD_LIBRARY_PATH
  39594. - shlibpath_overrides_runpath=no
  39595. - hardcode_into_libs=yes
  39596. - ;;
  39597. -
  39598. -irix5* | irix6* | nonstopux*)
  39599. - case $host_os in
  39600. - nonstopux*) version_type=nonstopux ;;
  39601. - *)
  39602. - if test "$lt_cv_prog_gnu_ld" = yes; then
  39603. - version_type=linux
  39604. - else
  39605. - version_type=irix
  39606. - fi ;;
  39607. - esac
  39608. - need_lib_prefix=no
  39609. - need_version=no
  39610. - soname_spec='${libname}${release}${shared_ext}$major'
  39611. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  39612. - case $host_os in
  39613. - irix5* | nonstopux*)
  39614. - libsuff= shlibsuff=
  39615. - ;;
  39616. - *)
  39617. - case $LD in # libtool.m4 will add one of these switches to LD
  39618. - *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  39619. - libsuff= shlibsuff= libmagic=32-bit;;
  39620. - *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  39621. - libsuff=32 shlibsuff=N32 libmagic=N32;;
  39622. - *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  39623. - libsuff=64 shlibsuff=64 libmagic=64-bit;;
  39624. - *) libsuff= shlibsuff= libmagic=never-match;;
  39625. - esac
  39626. - ;;
  39627. - esac
  39628. - shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  39629. - shlibpath_overrides_runpath=no
  39630. - sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  39631. - sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  39632. - hardcode_into_libs=yes
  39633. - ;;
  39634. -
  39635. -# No shared lib support for Linux oldld, aout, or coff.
  39636. -linux*oldld* | linux*aout* | linux*coff*)
  39637. - dynamic_linker=no
  39638. - ;;
  39639. -
  39640. -# This must be Linux ELF.
  39641. -linux*)
  39642. - version_type=linux
  39643. - need_lib_prefix=no
  39644. - need_version=no
  39645. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  39646. - soname_spec='${libname}${release}${shared_ext}$major'
  39647. - finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  39648. - shlibpath_var=LD_LIBRARY_PATH
  39649. - shlibpath_overrides_runpath=no
  39650. - # This implies no fast_install, which is unacceptable.
  39651. - # Some rework will be needed to allow for fast_install
  39652. - # before this can be enabled.
  39653. - hardcode_into_libs=yes
  39654. -
  39655. - # Append ld.so.conf contents to the search path
  39656. - if test -f /etc/ld.so.conf; then
  39657. - lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
  39658. - sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  39659. - fi
  39660. -
  39661. - # We used to test for /lib/ld.so.1 and disable shared libraries on
  39662. - # powerpc, because MkLinux only supported shared libraries with the
  39663. - # GNU dynamic linker. Since this was broken with cross compilers,
  39664. - # most powerpc-linux boxes support dynamic linking these days and
  39665. - # people can always --disable-shared, the test was removed, and we
  39666. - # assume the GNU/Linux dynamic linker is in use.
  39667. - dynamic_linker='GNU/Linux ld.so'
  39668. - ;;
  39669. -
  39670. -knetbsd*-gnu)
  39671. - version_type=linux
  39672. - need_lib_prefix=no
  39673. - need_version=no
  39674. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  39675. - soname_spec='${libname}${release}${shared_ext}$major'
  39676. - shlibpath_var=LD_LIBRARY_PATH
  39677. - shlibpath_overrides_runpath=no
  39678. - hardcode_into_libs=yes
  39679. - dynamic_linker='GNU ld.so'
  39680. - ;;
  39681. -
  39682. -netbsd*)
  39683. - version_type=sunos
  39684. - need_lib_prefix=no
  39685. - need_version=no
  39686. - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  39687. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  39688. - finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  39689. - dynamic_linker='NetBSD (a.out) ld.so'
  39690. - else
  39691. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  39692. - soname_spec='${libname}${release}${shared_ext}$major'
  39693. - dynamic_linker='NetBSD ld.elf_so'
  39694. - fi
  39695. - shlibpath_var=LD_LIBRARY_PATH
  39696. - shlibpath_overrides_runpath=yes
  39697. - hardcode_into_libs=yes
  39698. - ;;
  39699. -
  39700. -newsos6)
  39701. - version_type=linux
  39702. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  39703. - shlibpath_var=LD_LIBRARY_PATH
  39704. - shlibpath_overrides_runpath=yes
  39705. - ;;
  39706. -
  39707. -nto-qnx*)
  39708. - version_type=linux
  39709. - need_lib_prefix=no
  39710. - need_version=no
  39711. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  39712. - soname_spec='${libname}${release}${shared_ext}$major'
  39713. - shlibpath_var=LD_LIBRARY_PATH
  39714. - shlibpath_overrides_runpath=yes
  39715. - ;;
  39716. -
  39717. -openbsd*)
  39718. - version_type=sunos
  39719. - sys_lib_dlsearch_path_spec="/usr/lib"
  39720. - need_lib_prefix=no
  39721. - # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  39722. - case $host_os in
  39723. - openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  39724. - *) need_version=no ;;
  39725. - esac
  39726. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  39727. - finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  39728. - shlibpath_var=LD_LIBRARY_PATH
  39729. - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  39730. - case $host_os in
  39731. - openbsd2.[89] | openbsd2.[89].*)
  39732. - shlibpath_overrides_runpath=no
  39733. - ;;
  39734. - *)
  39735. - shlibpath_overrides_runpath=yes
  39736. - ;;
  39737. - esac
  39738. - else
  39739. - shlibpath_overrides_runpath=yes
  39740. - fi
  39741. - ;;
  39742. -
  39743. -os2*)
  39744. - libname_spec='$name'
  39745. - shrext_cmds=".dll"
  39746. - need_lib_prefix=no
  39747. - library_names_spec='$libname${shared_ext} $libname.a'
  39748. - dynamic_linker='OS/2 ld.exe'
  39749. - shlibpath_var=LIBPATH
  39750. - ;;
  39751. -
  39752. -osf3* | osf4* | osf5*)
  39753. - version_type=osf
  39754. - need_lib_prefix=no
  39755. - need_version=no
  39756. - soname_spec='${libname}${release}${shared_ext}$major'
  39757. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  39758. - shlibpath_var=LD_LIBRARY_PATH
  39759. - sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  39760. - sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  39761. - ;;
  39762. -
  39763. -solaris*)
  39764. - version_type=linux
  39765. - need_lib_prefix=no
  39766. - need_version=no
  39767. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  39768. - soname_spec='${libname}${release}${shared_ext}$major'
  39769. - shlibpath_var=LD_LIBRARY_PATH
  39770. - shlibpath_overrides_runpath=yes
  39771. - hardcode_into_libs=yes
  39772. - # ldd complains unless libraries are executable
  39773. - postinstall_cmds='chmod +x $lib'
  39774. - ;;
  39775. -
  39776. -sunos4*)
  39777. - version_type=sunos
  39778. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  39779. - finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  39780. - shlibpath_var=LD_LIBRARY_PATH
  39781. - shlibpath_overrides_runpath=yes
  39782. - if test "$with_gnu_ld" = yes; then
  39783. - need_lib_prefix=no
  39784. - fi
  39785. - need_version=yes
  39786. - ;;
  39787. -
  39788. -sysv4 | sysv4.3*)
  39789. - version_type=linux
  39790. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  39791. - soname_spec='${libname}${release}${shared_ext}$major'
  39792. - shlibpath_var=LD_LIBRARY_PATH
  39793. - case $host_vendor in
  39794. - sni)
  39795. - shlibpath_overrides_runpath=no
  39796. - need_lib_prefix=no
  39797. - export_dynamic_flag_spec='${wl}-Blargedynsym'
  39798. - runpath_var=LD_RUN_PATH
  39799. - ;;
  39800. - siemens)
  39801. - need_lib_prefix=no
  39802. - ;;
  39803. - motorola)
  39804. - need_lib_prefix=no
  39805. - need_version=no
  39806. - shlibpath_overrides_runpath=no
  39807. - sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  39808. - ;;
  39809. - esac
  39810. - ;;
  39811. -
  39812. -sysv4*MP*)
  39813. - if test -d /usr/nec ;then
  39814. - version_type=linux
  39815. - library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  39816. - soname_spec='$libname${shared_ext}.$major'
  39817. - shlibpath_var=LD_LIBRARY_PATH
  39818. - fi
  39819. - ;;
  39820. -
  39821. -sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  39822. - version_type=freebsd-elf
  39823. - need_lib_prefix=no
  39824. - need_version=no
  39825. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  39826. - soname_spec='${libname}${release}${shared_ext}$major'
  39827. - shlibpath_var=LD_LIBRARY_PATH
  39828. - hardcode_into_libs=yes
  39829. - if test "$with_gnu_ld" = yes; then
  39830. - sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  39831. - shlibpath_overrides_runpath=no
  39832. - else
  39833. - sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  39834. - shlibpath_overrides_runpath=yes
  39835. - case $host_os in
  39836. - sco3.2v5*)
  39837. - sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  39838. - ;;
  39839. - esac
  39840. - fi
  39841. - sys_lib_dlsearch_path_spec='/usr/lib'
  39842. - ;;
  39843. -
  39844. -uts4*)
  39845. - version_type=linux
  39846. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  39847. - soname_spec='${libname}${release}${shared_ext}$major'
  39848. - shlibpath_var=LD_LIBRARY_PATH
  39849. - ;;
  39850. -
  39851. -*)
  39852. - dynamic_linker=no
  39853. - ;;
  39854. -esac
  39855. -{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
  39856. -echo "${ECHO_T}$dynamic_linker" >&6; }
  39857. -test "$dynamic_linker" = no && can_build_shared=no
  39858. -
  39859. -variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  39860. -if test "$GCC" = yes; then
  39861. - variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  39862. -fi
  39863. -
  39864. -{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
  39865. -echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
  39866. -hardcode_action_F77=
  39867. -if test -n "$hardcode_libdir_flag_spec_F77" || \
  39868. - test -n "$runpath_var_F77" || \
  39869. - test "X$hardcode_automatic_F77" = "Xyes" ; then
  39870. -
  39871. - # We can hardcode non-existant directories.
  39872. - if test "$hardcode_direct_F77" != no &&
  39873. - # If the only mechanism to avoid hardcoding is shlibpath_var, we
  39874. - # have to relink, otherwise we might link with an installed library
  39875. - # when we should be linking with a yet-to-be-installed one
  39876. - ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
  39877. - test "$hardcode_minus_L_F77" != no; then
  39878. - # Linking always hardcodes the temporary library directory.
  39879. - hardcode_action_F77=relink
  39880. - else
  39881. - # We can link without hardcoding, and we can hardcode nonexisting dirs.
  39882. - hardcode_action_F77=immediate
  39883. - fi
  39884. -else
  39885. - # We cannot hardcode anything, or else we can only hardcode existing
  39886. - # directories.
  39887. - hardcode_action_F77=unsupported
  39888. -fi
  39889. -{ echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
  39890. -echo "${ECHO_T}$hardcode_action_F77" >&6; }
  39891. -
  39892. -if test "$hardcode_action_F77" = relink; then
  39893. - # Fast installation is not supported
  39894. - enable_fast_install=no
  39895. -elif test "$shlibpath_overrides_runpath" = yes ||
  39896. - test "$enable_shared" = no; then
  39897. - # Fast installation is not necessary
  39898. - enable_fast_install=needless
  39899. -fi
  39900. -
  39901. -
  39902. -# The else clause should only fire when bootstrapping the
  39903. -# libtool distribution, otherwise you forgot to ship ltmain.sh
  39904. -# with your package, and you will get complaints that there are
  39905. -# no rules to generate ltmain.sh.
  39906. -if test -f "$ltmain"; then
  39907. - # See if we are running on zsh, and set the options which allow our commands through
  39908. - # without removal of \ escapes.
  39909. - if test -n "${ZSH_VERSION+set}" ; then
  39910. - setopt NO_GLOB_SUBST
  39911. - fi
  39912. - # Now quote all the things that may contain metacharacters while being
  39913. - # careful not to overquote the AC_SUBSTed values. We take copies of the
  39914. - # variables and quote the copies for generation of the libtool script.
  39915. - for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
  39916. - SED SHELL STRIP \
  39917. - libname_spec library_names_spec soname_spec extract_expsyms_cmds \
  39918. - old_striplib striplib file_magic_cmd finish_cmds finish_eval \
  39919. - deplibs_check_method reload_flag reload_cmds need_locks \
  39920. - lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
  39921. - lt_cv_sys_global_symbol_to_c_name_address \
  39922. - sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  39923. - old_postinstall_cmds old_postuninstall_cmds \
  39924. - compiler_F77 \
  39925. - CC_F77 \
  39926. - LD_F77 \
  39927. - lt_prog_compiler_wl_F77 \
  39928. - lt_prog_compiler_pic_F77 \
  39929. - lt_prog_compiler_static_F77 \
  39930. - lt_prog_compiler_no_builtin_flag_F77 \
  39931. - export_dynamic_flag_spec_F77 \
  39932. - thread_safe_flag_spec_F77 \
  39933. - whole_archive_flag_spec_F77 \
  39934. - enable_shared_with_static_runtimes_F77 \
  39935. - old_archive_cmds_F77 \
  39936. - old_archive_from_new_cmds_F77 \
  39937. - predep_objects_F77 \
  39938. - postdep_objects_F77 \
  39939. - predeps_F77 \
  39940. - postdeps_F77 \
  39941. - compiler_lib_search_path_F77 \
  39942. - archive_cmds_F77 \
  39943. - archive_expsym_cmds_F77 \
  39944. - postinstall_cmds_F77 \
  39945. - postuninstall_cmds_F77 \
  39946. - old_archive_from_expsyms_cmds_F77 \
  39947. - allow_undefined_flag_F77 \
  39948. - no_undefined_flag_F77 \
  39949. - export_symbols_cmds_F77 \
  39950. - hardcode_libdir_flag_spec_F77 \
  39951. - hardcode_libdir_flag_spec_ld_F77 \
  39952. - hardcode_libdir_separator_F77 \
  39953. - hardcode_automatic_F77 \
  39954. - module_cmds_F77 \
  39955. - module_expsym_cmds_F77 \
  39956. - lt_cv_prog_compiler_c_o_F77 \
  39957. - exclude_expsyms_F77 \
  39958. - include_expsyms_F77; do
  39959. -
  39960. - case $var in
  39961. - old_archive_cmds_F77 | \
  39962. - old_archive_from_new_cmds_F77 | \
  39963. - archive_cmds_F77 | \
  39964. - archive_expsym_cmds_F77 | \
  39965. - module_cmds_F77 | \
  39966. - module_expsym_cmds_F77 | \
  39967. - old_archive_from_expsyms_cmds_F77 | \
  39968. - export_symbols_cmds_F77 | \
  39969. - extract_expsyms_cmds | reload_cmds | finish_cmds | \
  39970. - postinstall_cmds | postuninstall_cmds | \
  39971. - old_postinstall_cmds | old_postuninstall_cmds | \
  39972. - sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  39973. - # Double-quote double-evaled strings.
  39974. - eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
  39975. - ;;
  39976. - *)
  39977. - eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
  39978. - ;;
  39979. - esac
  39980. - done
  39981. -
  39982. - case $lt_echo in
  39983. - *'\$0 --fallback-echo"')
  39984. - lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
  39985. - ;;
  39986. - esac
  39987. -
  39988. -cfgfile="$ofile"
  39989. -
  39990. - cat <<__EOF__ >> "$cfgfile"
  39991. -# ### BEGIN LIBTOOL TAG CONFIG: $tagname
  39992. -
  39993. -# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  39994. -
  39995. -# Shell to use when invoking shell scripts.
  39996. -SHELL=$lt_SHELL
  39997. -
  39998. -# Whether or not to build shared libraries.
  39999. -build_libtool_libs=$enable_shared
  40000. -
  40001. -# Whether or not to build static libraries.
  40002. -build_old_libs=$enable_static
  40003. -
  40004. -# Whether or not to add -lc for building shared libraries.
  40005. -build_libtool_need_lc=$archive_cmds_need_lc_F77
  40006. -
  40007. -# Whether or not to disallow shared libs when runtime libs are static
  40008. -allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
  40009. -
  40010. -# Whether or not to optimize for fast installation.
  40011. -fast_install=$enable_fast_install
  40012. -
  40013. -# The host system.
  40014. -host_alias=$host_alias
  40015. -host=$host
  40016. -host_os=$host_os
  40017. -
  40018. -# The build system.
  40019. -build_alias=$build_alias
  40020. -build=$build
  40021. -build_os=$build_os
  40022. -
  40023. -# An echo program that does not interpret backslashes.
  40024. -echo=$lt_echo
  40025. -
  40026. -# The archiver.
  40027. -AR=$lt_AR
  40028. -AR_FLAGS=$lt_AR_FLAGS
  40029. -
  40030. -# A C compiler.
  40031. -LTCC=$lt_LTCC
  40032. -
  40033. -# LTCC compiler flags.
  40034. -LTCFLAGS=$lt_LTCFLAGS
  40035. -
  40036. -# A language-specific compiler.
  40037. -CC=$lt_compiler_F77
  40038. -
  40039. -# Is the compiler the GNU C compiler?
  40040. -with_gcc=$GCC_F77
  40041. -
  40042. -# An ERE matcher.
  40043. -EGREP=$lt_EGREP
  40044. -
  40045. -# The linker used to build libraries.
  40046. -LD=$lt_LD_F77
  40047. -
  40048. -# Whether we need hard or soft links.
  40049. -LN_S=$lt_LN_S
  40050. -
  40051. -# A BSD-compatible nm program.
  40052. -NM=$lt_NM
  40053. -
  40054. -# A symbol stripping program
  40055. -STRIP=$lt_STRIP
  40056. -# Used to examine libraries when file_magic_cmd begins "file"
  40057. -MAGIC_CMD=$MAGIC_CMD
  40058. -
  40059. -# Used on cygwin: DLL creation program.
  40060. -DLLTOOL="$DLLTOOL"
  40061. -
  40062. -# Used on cygwin: object dumper.
  40063. -OBJDUMP="$OBJDUMP"
  40064. -
  40065. -# Used on cygwin: assembler.
  40066. -AS="$AS"
  40067. -
  40068. -# The name of the directory that contains temporary libtool files.
  40069. -objdir=$objdir
  40070. -
  40071. -# How to create reloadable object files.
  40072. -reload_flag=$lt_reload_flag
  40073. -reload_cmds=$lt_reload_cmds
  40074. -
  40075. -# How to pass a linker flag through the compiler.
  40076. -wl=$lt_lt_prog_compiler_wl_F77
  40077. -
  40078. -# Object file suffix (normally "o").
  40079. -objext="$ac_objext"
  40080. -
  40081. -# Old archive suffix (normally "a").
  40082. -libext="$libext"
  40083. -
  40084. -# Shared library suffix (normally ".so").
  40085. -shrext_cmds='$shrext_cmds'
  40086. -
  40087. -# Executable file suffix (normally "").
  40088. -exeext="$exeext"
  40089. -
  40090. -# Additional compiler flags for building library objects.
  40091. -pic_flag=$lt_lt_prog_compiler_pic_F77
  40092. -pic_mode=$pic_mode
  40093. -
  40094. -# What is the maximum length of a command?
  40095. -max_cmd_len=$lt_cv_sys_max_cmd_len
  40096. -
  40097. -# Does compiler simultaneously support -c and -o options?
  40098. -compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
  40099. -
  40100. -# Must we lock files when doing compilation?
  40101. -need_locks=$lt_need_locks
  40102. -
  40103. -# Do we need the lib prefix for modules?
  40104. -need_lib_prefix=$need_lib_prefix
  40105. -
  40106. -# Do we need a version for libraries?
  40107. -need_version=$need_version
  40108. -
  40109. -# Whether dlopen is supported.
  40110. -dlopen_support=$enable_dlopen
  40111. -
  40112. -# Whether dlopen of programs is supported.
  40113. -dlopen_self=$enable_dlopen_self
  40114. -
  40115. -# Whether dlopen of statically linked programs is supported.
  40116. -dlopen_self_static=$enable_dlopen_self_static
  40117. -
  40118. -# Compiler flag to prevent dynamic linking.
  40119. -link_static_flag=$lt_lt_prog_compiler_static_F77
  40120. -
  40121. -# Compiler flag to turn off builtin functions.
  40122. -no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
  40123. -
  40124. -# Compiler flag to allow reflexive dlopens.
  40125. -export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
  40126. -
  40127. -# Compiler flag to generate shared objects directly from archives.
  40128. -whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
  40129. -
  40130. -# Compiler flag to generate thread-safe objects.
  40131. -thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
  40132. -
  40133. -# Library versioning type.
  40134. -version_type=$version_type
  40135. -
  40136. -# Format of library name prefix.
  40137. -libname_spec=$lt_libname_spec
  40138. -
  40139. -# List of archive names. First name is the real one, the rest are links.
  40140. -# The last name is the one that the linker finds with -lNAME.
  40141. -library_names_spec=$lt_library_names_spec
  40142. -# The coded name of the library, if different from the real name.
  40143. -soname_spec=$lt_soname_spec
  40144. -
  40145. -# Commands used to build and install an old-style archive.
  40146. -RANLIB=$lt_RANLIB
  40147. -old_archive_cmds=$lt_old_archive_cmds_F77
  40148. -old_postinstall_cmds=$lt_old_postinstall_cmds
  40149. -old_postuninstall_cmds=$lt_old_postuninstall_cmds
  40150. -
  40151. -# Create an old-style archive from a shared archive.
  40152. -old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
  40153. -# Create a temporary old-style archive to link instead of a shared archive.
  40154. -old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
  40155. -
  40156. -# Commands used to build and install a shared archive.
  40157. -archive_cmds=$lt_archive_cmds_F77
  40158. -archive_expsym_cmds=$lt_archive_expsym_cmds_F77
  40159. -postinstall_cmds=$lt_postinstall_cmds
  40160. -postuninstall_cmds=$lt_postuninstall_cmds
  40161. -# Commands used to build a loadable module (assumed same as above if empty)
  40162. -module_cmds=$lt_module_cmds_F77
  40163. -module_expsym_cmds=$lt_module_expsym_cmds_F77
  40164. -# Commands to strip libraries.
  40165. -old_striplib=$lt_old_striplib
  40166. -striplib=$lt_striplib
  40167. -# Dependencies to place before the objects being linked to create a
  40168. -# shared library.
  40169. -predep_objects=$lt_predep_objects_F77
  40170. -
  40171. -# Dependencies to place after the objects being linked to create a
  40172. -# shared library.
  40173. -postdep_objects=$lt_postdep_objects_F77
  40174. -
  40175. -# Dependencies to place before the objects being linked to create a
  40176. -# shared library.
  40177. -predeps=$lt_predeps_F77
  40178. -
  40179. -# Dependencies to place after the objects being linked to create a
  40180. -# shared library.
  40181. -postdeps=$lt_postdeps_F77
  40182. -
  40183. -# The library search path used internally by the compiler when linking
  40184. -# a shared library.
  40185. -compiler_lib_search_path=$lt_compiler_lib_search_path_F77
  40186. -# Method to check whether dependent libraries are shared objects.
  40187. -deplibs_check_method=$lt_deplibs_check_method
  40188. -# Command to use when deplibs_check_method == file_magic.
  40189. -file_magic_cmd=$lt_file_magic_cmd
  40190. -# Flag that allows shared libraries with undefined symbols to be built.
  40191. -allow_undefined_flag=$lt_allow_undefined_flag_F77
  40192. -# Flag that forces no undefined symbols.
  40193. -no_undefined_flag=$lt_no_undefined_flag_F77
  40194. +case $host_os in
  40195. +aix3*)
  40196. + # AIX sometimes has problems with the GCC collect2 program. For some
  40197. + # reason, if we set the COLLECT_NAMES environment variable, the problems
  40198. + # vanish in a puff of smoke.
  40199. + if test "X${COLLECT_NAMES+set}" != Xset; then
  40200. + COLLECT_NAMES=
  40201. + export COLLECT_NAMES
  40202. + fi
  40203. + ;;
  40204. +esac
  40205. -# Commands used to finish a libtool library installation in a directory.
  40206. -finish_cmds=$lt_finish_cmds
  40207. +# Sed substitution that helps us do robust quoting. It backslashifies
  40208. +# metacharacters that are still active within double-quoted strings.
  40209. +sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
  40210. -# Same as above, but a single script fragment to be evaled but not shown.
  40211. -finish_eval=$lt_finish_eval
  40212. +# Same as above, but do not quote variable references.
  40213. +double_quote_subst='s/\(["`\\]\)/\\\1/g'
  40214. -# Take the output of nm and produce a listing of raw symbols and C names.
  40215. -global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  40216. +# Sed substitution to delay expansion of an escaped shell variable in a
  40217. +# double_quote_subst'ed string.
  40218. +delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  40219. -# Transform the output of nm in a proper C declaration
  40220. -global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  40221. +# Sed substitution to delay expansion of an escaped single quote.
  40222. +delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  40223. -# Transform the output of nm in a C name address pair
  40224. -global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  40225. +# Sed substitution to avoid accidental globbing in evaled expressions
  40226. +no_glob_subst='s/\*/\\\*/g'
  40227. -# This is the shared library runtime path variable.
  40228. -runpath_var=$runpath_var
  40229. +# Global variables:
  40230. +ofile=libtool
  40231. +can_build_shared=yes
  40232. -# This is the shared library path variable.
  40233. -shlibpath_var=$shlibpath_var
  40234. +# All known linkers require a `.a' archive for static linking (except MSVC,
  40235. +# which needs '.lib').
  40236. +libext=a
  40237. -# Is shlibpath searched before the hard-coded library search path?
  40238. -shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  40239. +with_gnu_ld="$lt_cv_prog_gnu_ld"
  40240. -# How to hardcode a shared library path into an executable.
  40241. -hardcode_action=$hardcode_action_F77
  40242. +old_CC="$CC"
  40243. +old_CFLAGS="$CFLAGS"
  40244. -# Whether we should hardcode library paths into libraries.
  40245. -hardcode_into_libs=$hardcode_into_libs
  40246. +# Set sane defaults for various variables
  40247. +test -z "$CC" && CC=cc
  40248. +test -z "$LTCC" && LTCC=$CC
  40249. +test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  40250. +test -z "$LD" && LD=ld
  40251. +test -z "$ac_objext" && ac_objext=o
  40252. -# Flag to hardcode \$libdir into a binary during linking.
  40253. -# This must work even if \$libdir does not exist.
  40254. -hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
  40255. +for cc_temp in $compiler""; do
  40256. + case $cc_temp in
  40257. + compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  40258. + distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  40259. + \-*) ;;
  40260. + *) break;;
  40261. + esac
  40262. +done
  40263. +cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  40264. -# If ld is used when linking, flag to hardcode \$libdir into
  40265. -# a binary during linking. This must work even if \$libdir does
  40266. -# not exist.
  40267. -hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
  40268. -
  40269. -# Whether we need a single -rpath flag with a separated argument.
  40270. -hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
  40271. -
  40272. -# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
  40273. -# resulting binary.
  40274. -hardcode_direct=$hardcode_direct_F77
  40275. -
  40276. -# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  40277. -# resulting binary.
  40278. -hardcode_minus_L=$hardcode_minus_L_F77
  40279. -
  40280. -# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
  40281. -# the resulting binary.
  40282. -hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
  40283. -
  40284. -# Set to yes if building a shared library automatically hardcodes DIR into the library
  40285. -# and all subsequent libraries and executables linked against it.
  40286. -hardcode_automatic=$hardcode_automatic_F77
  40287. -# Variables whose values should be saved in libtool wrapper scripts and
  40288. -# restored at relink time.
  40289. -variables_saved_for_relink="$variables_saved_for_relink"
  40290. +# Only perform the check for file, if the check method requires it
  40291. +test -z "$MAGIC_CMD" && MAGIC_CMD=file
  40292. +case $deplibs_check_method in
  40293. +file_magic*)
  40294. + if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  40295. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
  40296. +$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
  40297. +if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
  40298. + $as_echo_n "(cached) " >&6
  40299. +else
  40300. + case $MAGIC_CMD in
  40301. +[\\/*] | ?:[\\/]*)
  40302. + lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  40303. + ;;
  40304. +*)
  40305. + lt_save_MAGIC_CMD="$MAGIC_CMD"
  40306. + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  40307. + ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  40308. + for ac_dir in $ac_dummy; do
  40309. + IFS="$lt_save_ifs"
  40310. + test -z "$ac_dir" && ac_dir=.
  40311. + if test -f $ac_dir/${ac_tool_prefix}file; then
  40312. + lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
  40313. + if test -n "$file_magic_test_file"; then
  40314. + case $deplibs_check_method in
  40315. + "file_magic "*)
  40316. + file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  40317. + MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  40318. + if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  40319. + $EGREP "$file_magic_regex" > /dev/null; then
  40320. + :
  40321. + else
  40322. + cat <<_LT_EOF 1>&2
  40323. -# Whether libtool must link a program against all its dependency libraries.
  40324. -link_all_deplibs=$link_all_deplibs_F77
  40325. +*** Warning: the command libtool uses to detect shared libraries,
  40326. +*** $file_magic_cmd, produces output that libtool cannot recognize.
  40327. +*** The result is that libtool may fail to recognize shared libraries
  40328. +*** as such. This will affect the creation of libtool libraries that
  40329. +*** depend on shared libraries, but programs linked with such libtool
  40330. +*** libraries will work regardless of this problem. Nevertheless, you
  40331. +*** may want to report the problem to your system manager and/or to
  40332. +*** bug-libtool@gnu.org
  40333. -# Compile-time system search path for libraries
  40334. -sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  40335. +_LT_EOF
  40336. + fi ;;
  40337. + esac
  40338. + fi
  40339. + break
  40340. + fi
  40341. + done
  40342. + IFS="$lt_save_ifs"
  40343. + MAGIC_CMD="$lt_save_MAGIC_CMD"
  40344. + ;;
  40345. +esac
  40346. +fi
  40347. -# Run-time system search path for libraries
  40348. -sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  40349. +MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  40350. +if test -n "$MAGIC_CMD"; then
  40351. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  40352. +$as_echo "$MAGIC_CMD" >&6; }
  40353. +else
  40354. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  40355. +$as_echo "no" >&6; }
  40356. +fi
  40357. -# Fix the shell variable \$srcfile for the compiler.
  40358. -fix_srcfile_path="$fix_srcfile_path_F77"
  40359. -# Set to yes if exported symbols are required.
  40360. -always_export_symbols=$always_export_symbols_F77
  40361. -# The commands to list exported symbols.
  40362. -export_symbols_cmds=$lt_export_symbols_cmds_F77
  40363. -# The commands to extract the exported symbol list from a shared archive.
  40364. -extract_expsyms_cmds=$lt_extract_expsyms_cmds
  40365. -# Symbols that should not be listed in the preloaded symbols.
  40366. -exclude_expsyms=$lt_exclude_expsyms_F77
  40367. +if test -z "$lt_cv_path_MAGIC_CMD"; then
  40368. + if test -n "$ac_tool_prefix"; then
  40369. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
  40370. +$as_echo_n "checking for file... " >&6; }
  40371. +if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
  40372. + $as_echo_n "(cached) " >&6
  40373. +else
  40374. + case $MAGIC_CMD in
  40375. +[\\/*] | ?:[\\/]*)
  40376. + lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  40377. + ;;
  40378. +*)
  40379. + lt_save_MAGIC_CMD="$MAGIC_CMD"
  40380. + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  40381. + ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  40382. + for ac_dir in $ac_dummy; do
  40383. + IFS="$lt_save_ifs"
  40384. + test -z "$ac_dir" && ac_dir=.
  40385. + if test -f $ac_dir/file; then
  40386. + lt_cv_path_MAGIC_CMD="$ac_dir/file"
  40387. + if test -n "$file_magic_test_file"; then
  40388. + case $deplibs_check_method in
  40389. + "file_magic "*)
  40390. + file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  40391. + MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  40392. + if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  40393. + $EGREP "$file_magic_regex" > /dev/null; then
  40394. + :
  40395. + else
  40396. + cat <<_LT_EOF 1>&2
  40397. -# Symbols that must always be exported.
  40398. -include_expsyms=$lt_include_expsyms_F77
  40399. +*** Warning: the command libtool uses to detect shared libraries,
  40400. +*** $file_magic_cmd, produces output that libtool cannot recognize.
  40401. +*** The result is that libtool may fail to recognize shared libraries
  40402. +*** as such. This will affect the creation of libtool libraries that
  40403. +*** depend on shared libraries, but programs linked with such libtool
  40404. +*** libraries will work regardless of this problem. Nevertheless, you
  40405. +*** may want to report the problem to your system manager and/or to
  40406. +*** bug-libtool@gnu.org
  40407. -# ### END LIBTOOL TAG CONFIG: $tagname
  40408. +_LT_EOF
  40409. + fi ;;
  40410. + esac
  40411. + fi
  40412. + break
  40413. + fi
  40414. + done
  40415. + IFS="$lt_save_ifs"
  40416. + MAGIC_CMD="$lt_save_MAGIC_CMD"
  40417. + ;;
  40418. +esac
  40419. +fi
  40420. -__EOF__
  40421. +MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  40422. +if test -n "$MAGIC_CMD"; then
  40423. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  40424. +$as_echo "$MAGIC_CMD" >&6; }
  40425. +else
  40426. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  40427. +$as_echo "no" >&6; }
  40428. +fi
  40429. -else
  40430. - # If there is no Makefile yet, we rely on a make rule to execute
  40431. - # `config.status --recheck' to rerun these tests and create the
  40432. - # libtool script then.
  40433. - ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  40434. - if test -f "$ltmain_in"; then
  40435. - test -f Makefile && make "$ltmain"
  40436. + else
  40437. + MAGIC_CMD=:
  40438. fi
  40439. fi
  40440. + fi
  40441. + ;;
  40442. +esac
  40443. +
  40444. +# Use C for the default configuration in the libtool script
  40445. +lt_save_CC="$CC"
  40446. ac_ext=c
  40447. ac_cpp='$CPP $CPPFLAGS'
  40448. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  40449. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  40450. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  40451. -CC="$lt_save_CC"
  40452. -
  40453. - else
  40454. - tagname=""
  40455. - fi
  40456. - ;;
  40457. -
  40458. - GCJ)
  40459. - if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
  40460. -
  40461. -# Source file extension for Java test sources.
  40462. -ac_ext=java
  40463. +# Source file extension for C test sources.
  40464. +ac_ext=c
  40465. -# Object file extension for compiled Java test sources.
  40466. +# Object file extension for compiled C test sources.
  40467. objext=o
  40468. -objext_GCJ=$objext
  40469. +objext=$objext
  40470. # Code to be used in simple compile tests
  40471. -lt_simple_compile_test_code="class foo {}\n"
  40472. +lt_simple_compile_test_code="int some_variable = 0;"
  40473. # Code to be used in simple link tests
  40474. -lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
  40475. +lt_simple_link_test_code='int main(){return(0);}'
  40476. +
  40477. +
  40478. +
  40479. +
  40480. +
  40481. -# ltmain only uses $CC for tagged configurations so make sure $CC is set.
  40482. # If no C compiler was specified, use CC.
  40483. LTCC=${LTCC-"$CC"}
  40484. @@ -17033,57 +7664,43 @@
  40485. # Allow CC to be a program name with arguments.
  40486. compiler=$CC
  40487. +# Save the default compiler, since it gets overwritten when the other
  40488. +# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  40489. +compiler_DEFAULT=$CC
  40490. # save warnings/boilerplate of simple test code
  40491. ac_outfile=conftest.$ac_objext
  40492. -printf "$lt_simple_compile_test_code" >conftest.$ac_ext
  40493. +echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  40494. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  40495. _lt_compiler_boilerplate=`cat conftest.err`
  40496. -$rm conftest*
  40497. +$RM conftest*
  40498. ac_outfile=conftest.$ac_objext
  40499. -printf "$lt_simple_link_test_code" >conftest.$ac_ext
  40500. +echo "$lt_simple_link_test_code" >conftest.$ac_ext
  40501. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  40502. _lt_linker_boilerplate=`cat conftest.err`
  40503. -$rm conftest*
  40504. -
  40505. -
  40506. -# Allow CC to be a program name with arguments.
  40507. -lt_save_CC="$CC"
  40508. -CC=${GCJ-"gcj"}
  40509. -compiler=$CC
  40510. -compiler_GCJ=$CC
  40511. -for cc_temp in $compiler""; do
  40512. - case $cc_temp in
  40513. - compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  40514. - distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  40515. - \-*) ;;
  40516. - *) break;;
  40517. - esac
  40518. -done
  40519. -cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  40520. +$RM -r conftest*
  40521. -# GCJ did not exist at the time GCC didn't implicitly link libc in.
  40522. -archive_cmds_need_lc_GCJ=no
  40523. +## CAVEAT EMPTOR:
  40524. +## There is no encapsulation within the following macros, do not change
  40525. +## the running order or otherwise move them around unless you know exactly
  40526. +## what you are doing...
  40527. +if test -n "$compiler"; then
  40528. -old_archive_cmds_GCJ=$old_archive_cmds
  40529. -
  40530. -
  40531. -lt_prog_compiler_no_builtin_flag_GCJ=
  40532. +lt_prog_compiler_no_builtin_flag=
  40533. if test "$GCC" = yes; then
  40534. - lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
  40535. -
  40536. + lt_prog_compiler_no_builtin_flag=' -fno-builtin'
  40537. -{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  40538. -echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
  40539. -if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
  40540. - echo $ECHO_N "(cached) $ECHO_C" >&6
  40541. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  40542. +$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  40543. +if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
  40544. + $as_echo_n "(cached) " >&6
  40545. else
  40546. lt_cv_prog_compiler_rtti_exceptions=no
  40547. - ac_outfile=conftest.$ac_objext
  40548. - printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  40549. + ac_outfile=conftest.$ac_objext
  40550. + echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  40551. lt_compiler_flag="-fno-rtti -fno-exceptions"
  40552. # Insert the option either (1) after the last *FLAGS variable, or
  40553. # (2) before a word containing "conftest.", or (3) at the end.
  40554. @@ -17094,78 +7711,107 @@
  40555. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  40556. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  40557. -e 's:$: $lt_compiler_flag:'`
  40558. - (eval echo "\"\$as_me:17097: $lt_compile\"" >&5)
  40559. + (eval echo "\"\$as_me:7714: $lt_compile\"" >&5)
  40560. (eval "$lt_compile" 2>conftest.err)
  40561. ac_status=$?
  40562. cat conftest.err >&5
  40563. - echo "$as_me:17101: \$? = $ac_status" >&5
  40564. + echo "$as_me:7718: \$? = $ac_status" >&5
  40565. if (exit $ac_status) && test -s "$ac_outfile"; then
  40566. # The compiler can only warn and ignore the option if not recognized
  40567. # So say no if there are warnings other than the usual output.
  40568. - $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  40569. + $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  40570. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  40571. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  40572. lt_cv_prog_compiler_rtti_exceptions=yes
  40573. fi
  40574. fi
  40575. - $rm conftest*
  40576. + $RM conftest*
  40577. fi
  40578. -{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  40579. -echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  40580. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  40581. +$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  40582. if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  40583. - lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
  40584. + lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  40585. else
  40586. :
  40587. fi
  40588. fi
  40589. -lt_prog_compiler_wl_GCJ=
  40590. -lt_prog_compiler_pic_GCJ=
  40591. -lt_prog_compiler_static_GCJ=
  40592. -{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
  40593. -echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
  40594. +
  40595. +
  40596. +
  40597. +
  40598. + lt_prog_compiler_wl=
  40599. +lt_prog_compiler_pic=
  40600. +lt_prog_compiler_static=
  40601. +
  40602. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  40603. +$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  40604. if test "$GCC" = yes; then
  40605. - lt_prog_compiler_wl_GCJ='-Wl,'
  40606. - lt_prog_compiler_static_GCJ='-static'
  40607. + lt_prog_compiler_wl='-Wl,'
  40608. + lt_prog_compiler_static='-static'
  40609. case $host_os in
  40610. aix*)
  40611. # All AIX code is PIC.
  40612. if test "$host_cpu" = ia64; then
  40613. # AIX 5 now supports IA64 processor
  40614. - lt_prog_compiler_static_GCJ='-Bstatic'
  40615. + lt_prog_compiler_static='-Bstatic'
  40616. fi
  40617. ;;
  40618. amigaos*)
  40619. - # FIXME: we need at least 68020 code to build shared libraries, but
  40620. - # adding the `-m68020' flag to GCC prevents building anything better,
  40621. - # like `-m68040'.
  40622. - lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
  40623. + case $host_cpu in
  40624. + powerpc)
  40625. + # see comment about AmigaOS4 .so support
  40626. + lt_prog_compiler_pic='-fPIC'
  40627. + ;;
  40628. + m68k)
  40629. + # FIXME: we need at least 68020 code to build shared libraries, but
  40630. + # adding the `-m68020' flag to GCC prevents building anything better,
  40631. + # like `-m68040'.
  40632. + lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  40633. + ;;
  40634. + esac
  40635. ;;
  40636. - beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  40637. + beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  40638. # PIC is the default for these OSes.
  40639. ;;
  40640. - mingw* | pw32* | os2*)
  40641. + mingw* | cygwin* | pw32* | os2* | cegcc*)
  40642. # This hack is so that the source file can tell whether it is being
  40643. # built for inclusion in a dll (and should export symbols for example).
  40644. - lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
  40645. + # Although the cygwin gcc ignores -fPIC, still need this for old-style
  40646. + # (--disable-auto-import) libraries
  40647. + lt_prog_compiler_pic='-DDLL_EXPORT'
  40648. ;;
  40649. darwin* | rhapsody*)
  40650. # PIC is the default on this platform
  40651. # Common symbols not allowed in MH_DYLIB files
  40652. - lt_prog_compiler_pic_GCJ='-fno-common'
  40653. + lt_prog_compiler_pic='-fno-common'
  40654. + ;;
  40655. +
  40656. + hpux*)
  40657. + # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  40658. + # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  40659. + # sets the default TLS model and affects inlining.
  40660. + case $host_cpu in
  40661. + hppa*64*)
  40662. + # +Z the default
  40663. + ;;
  40664. + *)
  40665. + lt_prog_compiler_pic='-fPIC'
  40666. + ;;
  40667. + esac
  40668. ;;
  40669. - interix3*)
  40670. + interix[3-9]*)
  40671. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  40672. # Instead, we relocate shared libraries at runtime.
  40673. ;;
  40674. @@ -17173,64 +7819,47 @@
  40675. msdosdjgpp*)
  40676. # Just because we use GCC doesn't mean we suddenly get shared libraries
  40677. # on systems that don't support them.
  40678. - lt_prog_compiler_can_build_shared_GCJ=no
  40679. + lt_prog_compiler_can_build_shared=no
  40680. enable_shared=no
  40681. ;;
  40682. + *nto* | *qnx*)
  40683. + # QNX uses GNU C++, but need to define -shared option too, otherwise
  40684. + # it will coredump.
  40685. + lt_prog_compiler_pic='-fPIC -shared'
  40686. + ;;
  40687. +
  40688. sysv4*MP*)
  40689. if test -d /usr/nec; then
  40690. - lt_prog_compiler_pic_GCJ=-Kconform_pic
  40691. + lt_prog_compiler_pic=-Kconform_pic
  40692. fi
  40693. ;;
  40694. - hpux*)
  40695. - # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  40696. - # not for PA HP-UX.
  40697. - case $host_cpu in
  40698. - hppa*64*|ia64*)
  40699. - # +Z the default
  40700. - ;;
  40701. - *)
  40702. - lt_prog_compiler_pic_GCJ='-fPIC'
  40703. - ;;
  40704. - esac
  40705. - ;;
  40706. -
  40707. *)
  40708. - lt_prog_compiler_pic_GCJ='-fPIC'
  40709. + lt_prog_compiler_pic='-fPIC'
  40710. ;;
  40711. esac
  40712. else
  40713. # PORTME Check for flag to pass linker flags through the system compiler.
  40714. case $host_os in
  40715. aix*)
  40716. - lt_prog_compiler_wl_GCJ='-Wl,'
  40717. + lt_prog_compiler_wl='-Wl,'
  40718. if test "$host_cpu" = ia64; then
  40719. # AIX 5 now supports IA64 processor
  40720. - lt_prog_compiler_static_GCJ='-Bstatic'
  40721. + lt_prog_compiler_static='-Bstatic'
  40722. else
  40723. - lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
  40724. + lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  40725. fi
  40726. ;;
  40727. - darwin*)
  40728. - # PIC is the default on this platform
  40729. - # Common symbols not allowed in MH_DYLIB files
  40730. - case $cc_basename in
  40731. - xlc*)
  40732. - lt_prog_compiler_pic_GCJ='-qnocommon'
  40733. - lt_prog_compiler_wl_GCJ='-Wl,'
  40734. - ;;
  40735. - esac
  40736. - ;;
  40737. - mingw* | pw32* | os2*)
  40738. + mingw* | cygwin* | pw32* | os2* | cegcc*)
  40739. # This hack is so that the source file can tell whether it is being
  40740. # built for inclusion in a dll (and should export symbols for example).
  40741. - lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
  40742. + lt_prog_compiler_pic='-DDLL_EXPORT'
  40743. ;;
  40744. hpux9* | hpux10* | hpux11*)
  40745. - lt_prog_compiler_wl_GCJ='-Wl,'
  40746. + lt_prog_compiler_wl='-Wl,'
  40747. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  40748. # not for PA HP-UX.
  40749. case $host_cpu in
  40750. @@ -17238,121 +7867,180 @@
  40751. # +Z the default
  40752. ;;
  40753. *)
  40754. - lt_prog_compiler_pic_GCJ='+Z'
  40755. + lt_prog_compiler_pic='+Z'
  40756. ;;
  40757. esac
  40758. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  40759. - lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
  40760. + lt_prog_compiler_static='${wl}-a ${wl}archive'
  40761. ;;
  40762. irix5* | irix6* | nonstopux*)
  40763. - lt_prog_compiler_wl_GCJ='-Wl,'
  40764. + lt_prog_compiler_wl='-Wl,'
  40765. # PIC (with -KPIC) is the default.
  40766. - lt_prog_compiler_static_GCJ='-non_shared'
  40767. - ;;
  40768. -
  40769. - newsos6)
  40770. - lt_prog_compiler_pic_GCJ='-KPIC'
  40771. - lt_prog_compiler_static_GCJ='-Bstatic'
  40772. + lt_prog_compiler_static='-non_shared'
  40773. ;;
  40774. - linux*)
  40775. + linux* | k*bsd*-gnu | kopensolaris*-gnu)
  40776. case $cc_basename in
  40777. - icc* | ecc*)
  40778. - lt_prog_compiler_wl_GCJ='-Wl,'
  40779. - lt_prog_compiler_pic_GCJ='-KPIC'
  40780. - lt_prog_compiler_static_GCJ='-static'
  40781. + # old Intel for x86_64 which still supported -KPIC.
  40782. + ecc*)
  40783. + lt_prog_compiler_wl='-Wl,'
  40784. + lt_prog_compiler_pic='-KPIC'
  40785. + lt_prog_compiler_static='-static'
  40786. + ;;
  40787. + # icc used to be incompatible with GCC.
  40788. + # ICC 10 doesn't accept -KPIC any more.
  40789. + icc* | ifort*)
  40790. + lt_prog_compiler_wl='-Wl,'
  40791. + lt_prog_compiler_pic='-fPIC'
  40792. + lt_prog_compiler_static='-static'
  40793. ;;
  40794. + # Lahey Fortran 8.1.
  40795. + lf95*)
  40796. + lt_prog_compiler_wl='-Wl,'
  40797. + lt_prog_compiler_pic='--shared'
  40798. + lt_prog_compiler_static='--static'
  40799. + ;;
  40800. pgcc* | pgf77* | pgf90* | pgf95*)
  40801. # Portland Group compilers (*not* the Pentium gcc compiler,
  40802. # which looks to be a dead project)
  40803. - lt_prog_compiler_wl_GCJ='-Wl,'
  40804. - lt_prog_compiler_pic_GCJ='-fpic'
  40805. - lt_prog_compiler_static_GCJ='-Bstatic'
  40806. + lt_prog_compiler_wl='-Wl,'
  40807. + lt_prog_compiler_pic='-fpic'
  40808. + lt_prog_compiler_static='-Bstatic'
  40809. ;;
  40810. ccc*)
  40811. - lt_prog_compiler_wl_GCJ='-Wl,'
  40812. + lt_prog_compiler_wl='-Wl,'
  40813. # All Alpha code is PIC.
  40814. - lt_prog_compiler_static_GCJ='-non_shared'
  40815. + lt_prog_compiler_static='-non_shared'
  40816. ;;
  40817. + xl*)
  40818. + # IBM XL C 8.0/Fortran 10.1 on PPC
  40819. + lt_prog_compiler_wl='-Wl,'
  40820. + lt_prog_compiler_pic='-qpic'
  40821. + lt_prog_compiler_static='-qstaticlink'
  40822. + ;;
  40823. + *)
  40824. + case `$CC -V 2>&1 | sed 5q` in
  40825. + *Sun\ C*)
  40826. + # Sun C 5.9
  40827. + lt_prog_compiler_pic='-KPIC'
  40828. + lt_prog_compiler_static='-Bstatic'
  40829. + lt_prog_compiler_wl='-Wl,'
  40830. + ;;
  40831. + *Sun\ F*)
  40832. + # Sun Fortran 8.3 passes all unrecognized flags to the linker
  40833. + lt_prog_compiler_pic='-KPIC'
  40834. + lt_prog_compiler_static='-Bstatic'
  40835. + lt_prog_compiler_wl=''
  40836. + ;;
  40837. + esac
  40838. + ;;
  40839. esac
  40840. ;;
  40841. + newsos6)
  40842. + lt_prog_compiler_pic='-KPIC'
  40843. + lt_prog_compiler_static='-Bstatic'
  40844. + ;;
  40845. +
  40846. + *nto* | *qnx*)
  40847. + # QNX uses GNU C++, but need to define -shared option too, otherwise
  40848. + # it will coredump.
  40849. + lt_prog_compiler_pic='-fPIC -shared'
  40850. + ;;
  40851. +
  40852. osf3* | osf4* | osf5*)
  40853. - lt_prog_compiler_wl_GCJ='-Wl,'
  40854. + lt_prog_compiler_wl='-Wl,'
  40855. # All OSF/1 code is PIC.
  40856. - lt_prog_compiler_static_GCJ='-non_shared'
  40857. + lt_prog_compiler_static='-non_shared'
  40858. + ;;
  40859. +
  40860. + rdos*)
  40861. + lt_prog_compiler_static='-non_shared'
  40862. ;;
  40863. solaris*)
  40864. - lt_prog_compiler_pic_GCJ='-KPIC'
  40865. - lt_prog_compiler_static_GCJ='-Bstatic'
  40866. + lt_prog_compiler_pic='-KPIC'
  40867. + lt_prog_compiler_static='-Bstatic'
  40868. case $cc_basename in
  40869. f77* | f90* | f95*)
  40870. - lt_prog_compiler_wl_GCJ='-Qoption ld ';;
  40871. + lt_prog_compiler_wl='-Qoption ld ';;
  40872. *)
  40873. - lt_prog_compiler_wl_GCJ='-Wl,';;
  40874. + lt_prog_compiler_wl='-Wl,';;
  40875. esac
  40876. ;;
  40877. sunos4*)
  40878. - lt_prog_compiler_wl_GCJ='-Qoption ld '
  40879. - lt_prog_compiler_pic_GCJ='-PIC'
  40880. - lt_prog_compiler_static_GCJ='-Bstatic'
  40881. + lt_prog_compiler_wl='-Qoption ld '
  40882. + lt_prog_compiler_pic='-PIC'
  40883. + lt_prog_compiler_static='-Bstatic'
  40884. ;;
  40885. sysv4 | sysv4.2uw2* | sysv4.3*)
  40886. - lt_prog_compiler_wl_GCJ='-Wl,'
  40887. - lt_prog_compiler_pic_GCJ='-KPIC'
  40888. - lt_prog_compiler_static_GCJ='-Bstatic'
  40889. + lt_prog_compiler_wl='-Wl,'
  40890. + lt_prog_compiler_pic='-KPIC'
  40891. + lt_prog_compiler_static='-Bstatic'
  40892. ;;
  40893. sysv4*MP*)
  40894. if test -d /usr/nec ;then
  40895. - lt_prog_compiler_pic_GCJ='-Kconform_pic'
  40896. - lt_prog_compiler_static_GCJ='-Bstatic'
  40897. + lt_prog_compiler_pic='-Kconform_pic'
  40898. + lt_prog_compiler_static='-Bstatic'
  40899. fi
  40900. ;;
  40901. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  40902. - lt_prog_compiler_wl_GCJ='-Wl,'
  40903. - lt_prog_compiler_pic_GCJ='-KPIC'
  40904. - lt_prog_compiler_static_GCJ='-Bstatic'
  40905. + lt_prog_compiler_wl='-Wl,'
  40906. + lt_prog_compiler_pic='-KPIC'
  40907. + lt_prog_compiler_static='-Bstatic'
  40908. ;;
  40909. unicos*)
  40910. - lt_prog_compiler_wl_GCJ='-Wl,'
  40911. - lt_prog_compiler_can_build_shared_GCJ=no
  40912. + lt_prog_compiler_wl='-Wl,'
  40913. + lt_prog_compiler_can_build_shared=no
  40914. ;;
  40915. uts4*)
  40916. - lt_prog_compiler_pic_GCJ='-pic'
  40917. - lt_prog_compiler_static_GCJ='-Bstatic'
  40918. + lt_prog_compiler_pic='-pic'
  40919. + lt_prog_compiler_static='-Bstatic'
  40920. ;;
  40921. *)
  40922. - lt_prog_compiler_can_build_shared_GCJ=no
  40923. + lt_prog_compiler_can_build_shared=no
  40924. ;;
  40925. esac
  40926. fi
  40927. -{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
  40928. -echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
  40929. +case $host_os in
  40930. + # For platforms which do not support PIC, -DPIC is meaningless:
  40931. + *djgpp*)
  40932. + lt_prog_compiler_pic=
  40933. + ;;
  40934. + *)
  40935. + lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  40936. + ;;
  40937. +esac
  40938. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
  40939. +$as_echo "$lt_prog_compiler_pic" >&6; }
  40940. +
  40941. +
  40942. +
  40943. +
  40944. +
  40945. #
  40946. # Check to make sure the PIC flag actually works.
  40947. #
  40948. -if test -n "$lt_prog_compiler_pic_GCJ"; then
  40949. -
  40950. -{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
  40951. -echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
  40952. -if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
  40953. - echo $ECHO_N "(cached) $ECHO_C" >&6
  40954. -else
  40955. - lt_prog_compiler_pic_works_GCJ=no
  40956. - ac_outfile=conftest.$ac_objext
  40957. - printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  40958. - lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
  40959. +if test -n "$lt_prog_compiler_pic"; then
  40960. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  40961. +$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  40962. +if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
  40963. + $as_echo_n "(cached) " >&6
  40964. +else
  40965. + lt_cv_prog_compiler_pic_works=no
  40966. + ac_outfile=conftest.$ac_objext
  40967. + echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  40968. + lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
  40969. # Insert the option either (1) after the last *FLAGS variable, or
  40970. # (2) before a word containing "conftest.", or (3) at the end.
  40971. # Note that $ac_compile itself does not contain backslashes and begins
  40972. @@ -17362,100 +8050,156 @@
  40973. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  40974. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  40975. -e 's:$: $lt_compiler_flag:'`
  40976. - (eval echo "\"\$as_me:17365: $lt_compile\"" >&5)
  40977. + (eval echo "\"\$as_me:8053: $lt_compile\"" >&5)
  40978. (eval "$lt_compile" 2>conftest.err)
  40979. ac_status=$?
  40980. cat conftest.err >&5
  40981. - echo "$as_me:17369: \$? = $ac_status" >&5
  40982. + echo "$as_me:8057: \$? = $ac_status" >&5
  40983. if (exit $ac_status) && test -s "$ac_outfile"; then
  40984. # The compiler can only warn and ignore the option if not recognized
  40985. # So say no if there are warnings other than the usual output.
  40986. - $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  40987. + $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  40988. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  40989. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  40990. - lt_prog_compiler_pic_works_GCJ=yes
  40991. + lt_cv_prog_compiler_pic_works=yes
  40992. fi
  40993. fi
  40994. - $rm conftest*
  40995. + $RM conftest*
  40996. fi
  40997. -{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
  40998. -echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
  40999. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
  41000. +$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
  41001. -if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
  41002. - case $lt_prog_compiler_pic_GCJ in
  41003. +if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
  41004. + case $lt_prog_compiler_pic in
  41005. "" | " "*) ;;
  41006. - *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
  41007. + *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  41008. esac
  41009. else
  41010. - lt_prog_compiler_pic_GCJ=
  41011. - lt_prog_compiler_can_build_shared_GCJ=no
  41012. + lt_prog_compiler_pic=
  41013. + lt_prog_compiler_can_build_shared=no
  41014. fi
  41015. fi
  41016. -case $host_os in
  41017. - # For platforms which do not support PIC, -DPIC is meaningless:
  41018. - *djgpp*)
  41019. - lt_prog_compiler_pic_GCJ=
  41020. - ;;
  41021. - *)
  41022. - lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
  41023. - ;;
  41024. -esac
  41025. +
  41026. +
  41027. +
  41028. +
  41029. +
  41030. #
  41031. # Check to make sure the static flag actually works.
  41032. #
  41033. -wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
  41034. -{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  41035. -echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
  41036. -if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
  41037. - echo $ECHO_N "(cached) $ECHO_C" >&6
  41038. +wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  41039. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  41040. +$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  41041. +if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
  41042. + $as_echo_n "(cached) " >&6
  41043. else
  41044. - lt_prog_compiler_static_works_GCJ=no
  41045. + lt_cv_prog_compiler_static_works=no
  41046. save_LDFLAGS="$LDFLAGS"
  41047. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  41048. - printf "$lt_simple_link_test_code" > conftest.$ac_ext
  41049. + echo "$lt_simple_link_test_code" > conftest.$ac_ext
  41050. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  41051. # The linker can only warn and ignore the option if not recognized
  41052. # So say no if there are warnings
  41053. if test -s conftest.err; then
  41054. # Append any errors to the config.log.
  41055. cat conftest.err 1>&5
  41056. - $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
  41057. + $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
  41058. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  41059. if diff conftest.exp conftest.er2 >/dev/null; then
  41060. - lt_prog_compiler_static_works_GCJ=yes
  41061. + lt_cv_prog_compiler_static_works=yes
  41062. fi
  41063. else
  41064. - lt_prog_compiler_static_works_GCJ=yes
  41065. + lt_cv_prog_compiler_static_works=yes
  41066. fi
  41067. fi
  41068. - $rm conftest*
  41069. + $RM -r conftest*
  41070. LDFLAGS="$save_LDFLAGS"
  41071. fi
  41072. -{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
  41073. -echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
  41074. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
  41075. +$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
  41076. -if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
  41077. +if test x"$lt_cv_prog_compiler_static_works" = xyes; then
  41078. :
  41079. else
  41080. - lt_prog_compiler_static_GCJ=
  41081. + lt_prog_compiler_static=
  41082. +fi
  41083. +
  41084. +
  41085. +
  41086. +
  41087. +
  41088. +
  41089. +
  41090. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  41091. +$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  41092. +if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
  41093. + $as_echo_n "(cached) " >&6
  41094. +else
  41095. + lt_cv_prog_compiler_c_o=no
  41096. + $RM -r conftest 2>/dev/null
  41097. + mkdir conftest
  41098. + cd conftest
  41099. + mkdir out
  41100. + echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  41101. +
  41102. + lt_compiler_flag="-o out/conftest2.$ac_objext"
  41103. + # Insert the option either (1) after the last *FLAGS variable, or
  41104. + # (2) before a word containing "conftest.", or (3) at the end.
  41105. + # Note that $ac_compile itself does not contain backslashes and begins
  41106. + # with a dollar sign (not a hyphen), so the echo should work correctly.
  41107. + lt_compile=`echo "$ac_compile" | $SED \
  41108. + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  41109. + -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  41110. + -e 's:$: $lt_compiler_flag:'`
  41111. + (eval echo "\"\$as_me:8158: $lt_compile\"" >&5)
  41112. + (eval "$lt_compile" 2>out/conftest.err)
  41113. + ac_status=$?
  41114. + cat out/conftest.err >&5
  41115. + echo "$as_me:8162: \$? = $ac_status" >&5
  41116. + if (exit $ac_status) && test -s out/conftest2.$ac_objext
  41117. + then
  41118. + # The compiler can only warn and ignore the option if not recognized
  41119. + # So say no if there are warnings
  41120. + $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  41121. + $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  41122. + if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  41123. + lt_cv_prog_compiler_c_o=yes
  41124. + fi
  41125. + fi
  41126. + chmod u+w . 2>&5
  41127. + $RM conftest*
  41128. + # SGI C++ compiler will create directory out/ii_files/ for
  41129. + # template instantiation
  41130. + test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  41131. + $RM out/* && rmdir out
  41132. + cd ..
  41133. + $RM -r conftest
  41134. + $RM conftest*
  41135. +
  41136. fi
  41137. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  41138. +$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  41139. +
  41140. +
  41141. +
  41142. -{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
  41143. -echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
  41144. -if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
  41145. - echo $ECHO_N "(cached) $ECHO_C" >&6
  41146. +
  41147. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  41148. +$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  41149. +if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
  41150. + $as_echo_n "(cached) " >&6
  41151. else
  41152. - lt_cv_prog_compiler_c_o_GCJ=no
  41153. - $rm -r conftest 2>/dev/null
  41154. + lt_cv_prog_compiler_c_o=no
  41155. + $RM -r conftest 2>/dev/null
  41156. mkdir conftest
  41157. cd conftest
  41158. mkdir out
  41159. - printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  41160. + echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  41161. lt_compiler_flag="-o out/conftest2.$ac_objext"
  41162. # Insert the option either (1) after the last *FLAGS variable, or
  41163. @@ -17466,110 +8210,111 @@
  41164. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  41165. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  41166. -e 's:$: $lt_compiler_flag:'`
  41167. - (eval echo "\"\$as_me:17469: $lt_compile\"" >&5)
  41168. + (eval echo "\"\$as_me:8213: $lt_compile\"" >&5)
  41169. (eval "$lt_compile" 2>out/conftest.err)
  41170. ac_status=$?
  41171. cat out/conftest.err >&5
  41172. - echo "$as_me:17473: \$? = $ac_status" >&5
  41173. + echo "$as_me:8217: \$? = $ac_status" >&5
  41174. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  41175. then
  41176. # The compiler can only warn and ignore the option if not recognized
  41177. # So say no if there are warnings
  41178. - $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  41179. + $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  41180. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  41181. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  41182. - lt_cv_prog_compiler_c_o_GCJ=yes
  41183. + lt_cv_prog_compiler_c_o=yes
  41184. fi
  41185. fi
  41186. chmod u+w . 2>&5
  41187. - $rm conftest*
  41188. + $RM conftest*
  41189. # SGI C++ compiler will create directory out/ii_files/ for
  41190. # template instantiation
  41191. - test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
  41192. - $rm out/* && rmdir out
  41193. + test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  41194. + $RM out/* && rmdir out
  41195. cd ..
  41196. - rmdir conftest
  41197. - $rm conftest*
  41198. + $RM -r conftest
  41199. + $RM conftest*
  41200. fi
  41201. -{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
  41202. -echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
  41203. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  41204. +$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  41205. +
  41206. +
  41207. hard_links="nottested"
  41208. -if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
  41209. +if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
  41210. # do not overwrite the value of need_locks provided by the user
  41211. - { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
  41212. -echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
  41213. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  41214. +$as_echo_n "checking if we can lock with hard links... " >&6; }
  41215. hard_links=yes
  41216. - $rm conftest*
  41217. + $RM conftest*
  41218. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  41219. touch conftest.a
  41220. ln conftest.a conftest.b 2>&5 || hard_links=no
  41221. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  41222. - { echo "$as_me:$LINENO: result: $hard_links" >&5
  41223. -echo "${ECHO_T}$hard_links" >&6; }
  41224. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  41225. +$as_echo "$hard_links" >&6; }
  41226. if test "$hard_links" = no; then
  41227. - { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  41228. -echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  41229. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  41230. +$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  41231. need_locks=warn
  41232. fi
  41233. else
  41234. need_locks=no
  41235. fi
  41236. -{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  41237. -echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
  41238. +
  41239. +
  41240. +
  41241. +
  41242. +
  41243. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  41244. +$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  41245. runpath_var=
  41246. - allow_undefined_flag_GCJ=
  41247. - enable_shared_with_static_runtimes_GCJ=no
  41248. - archive_cmds_GCJ=
  41249. - archive_expsym_cmds_GCJ=
  41250. - old_archive_From_new_cmds_GCJ=
  41251. - old_archive_from_expsyms_cmds_GCJ=
  41252. - export_dynamic_flag_spec_GCJ=
  41253. - whole_archive_flag_spec_GCJ=
  41254. - thread_safe_flag_spec_GCJ=
  41255. - hardcode_libdir_flag_spec_GCJ=
  41256. - hardcode_libdir_flag_spec_ld_GCJ=
  41257. - hardcode_libdir_separator_GCJ=
  41258. - hardcode_direct_GCJ=no
  41259. - hardcode_minus_L_GCJ=no
  41260. - hardcode_shlibpath_var_GCJ=unsupported
  41261. - link_all_deplibs_GCJ=unknown
  41262. - hardcode_automatic_GCJ=no
  41263. - module_cmds_GCJ=
  41264. - module_expsym_cmds_GCJ=
  41265. - always_export_symbols_GCJ=no
  41266. - export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  41267. + allow_undefined_flag=
  41268. + always_export_symbols=no
  41269. + archive_cmds=
  41270. + archive_expsym_cmds=
  41271. + compiler_needs_object=no
  41272. + enable_shared_with_static_runtimes=no
  41273. + export_dynamic_flag_spec=
  41274. + export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  41275. + hardcode_automatic=no
  41276. + hardcode_direct=no
  41277. + hardcode_direct_absolute=no
  41278. + hardcode_libdir_flag_spec=
  41279. + hardcode_libdir_flag_spec_ld=
  41280. + hardcode_libdir_separator=
  41281. + hardcode_minus_L=no
  41282. + hardcode_shlibpath_var=unsupported
  41283. + inherit_rpath=no
  41284. + link_all_deplibs=unknown
  41285. + module_cmds=
  41286. + module_expsym_cmds=
  41287. + old_archive_from_new_cmds=
  41288. + old_archive_from_expsyms_cmds=
  41289. + thread_safe_flag_spec=
  41290. + whole_archive_flag_spec=
  41291. # include_expsyms should be a list of space-separated symbols to be *always*
  41292. # included in the symbol list
  41293. - include_expsyms_GCJ=
  41294. + include_expsyms=
  41295. # exclude_expsyms can be an extended regexp of symbols to exclude
  41296. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  41297. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  41298. # as well as any symbol that contains `d'.
  41299. - exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
  41300. + exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  41301. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  41302. # platforms (ab)use it in PIC code, but their linkers get confused if
  41303. # the symbol is explicitly referenced. Since portable code cannot
  41304. # rely on this symbol name, it's probably fine to never include it in
  41305. # preloaded symbol tables.
  41306. + # Exclude shared library initialization/finalization symbols.
  41307. extract_expsyms_cmds=
  41308. - # Just being paranoid about ensuring that cc_basename is set.
  41309. - for cc_temp in $compiler""; do
  41310. - case $cc_temp in
  41311. - compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  41312. - distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  41313. - \-*) ;;
  41314. - *) break;;
  41315. - esac
  41316. -done
  41317. -cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  41318. case $host_os in
  41319. - cygwin* | mingw* | pw32*)
  41320. + cygwin* | mingw* | pw32* | cegcc*)
  41321. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  41322. # When not using gcc, we currently assume that we are using
  41323. # Microsoft Visual C++.
  41324. @@ -17584,9 +8329,12 @@
  41325. openbsd*)
  41326. with_gnu_ld=no
  41327. ;;
  41328. + linux* | k*bsd*-gnu)
  41329. + link_all_deplibs=no
  41330. + ;;
  41331. esac
  41332. - ld_shlibs_GCJ=yes
  41333. + ld_shlibs=yes
  41334. if test "$with_gnu_ld" = yes; then
  41335. # If archive_cmds runs LD, not CC, wlarc should be empty
  41336. wlarc='${wl}'
  41337. @@ -17595,16 +8343,17 @@
  41338. # are reset later if shared libraries are not supported. Putting them
  41339. # here allows them to be overridden if necessary.
  41340. runpath_var=LD_RUN_PATH
  41341. - hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
  41342. - export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
  41343. + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  41344. + export_dynamic_flag_spec='${wl}--export-dynamic'
  41345. # ancient GNU ld didn't support --whole-archive et. al.
  41346. - if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
  41347. - whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  41348. - else
  41349. - whole_archive_flag_spec_GCJ=
  41350. + if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  41351. + whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  41352. + else
  41353. + whole_archive_flag_spec=
  41354. fi
  41355. supports_anon_versioning=no
  41356. - case `$LD -v 2>/dev/null` in
  41357. + case `$LD -v 2>&1` in
  41358. + *GNU\ gold*) supports_anon_versioning=yes ;;
  41359. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  41360. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  41361. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  41362. @@ -17614,11 +8363,11 @@
  41363. # See if GNU ld supports shared libraries.
  41364. case $host_os in
  41365. - aix3* | aix4* | aix5*)
  41366. + aix[3-9]*)
  41367. # On AIX/PPC, the GNU linker is very broken
  41368. if test "$host_cpu" != ia64; then
  41369. - ld_shlibs_GCJ=no
  41370. - cat <<EOF 1>&2
  41371. + ld_shlibs=no
  41372. + cat <<_LT_EOF 1>&2
  41373. *** Warning: the GNU linker, at least up to release 2.9.1, is reported
  41374. *** to be unable to reliably create shared libraries on AIX.
  41375. @@ -17626,49 +8375,50 @@
  41376. *** really care for shared libraries, you may want to modify your PATH
  41377. *** so that a non-GNU linker is found, and then restart.
  41378. -EOF
  41379. +_LT_EOF
  41380. fi
  41381. ;;
  41382. amigaos*)
  41383. - 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)'
  41384. - hardcode_libdir_flag_spec_GCJ='-L$libdir'
  41385. - hardcode_minus_L_GCJ=yes
  41386. -
  41387. - # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
  41388. - # that the semantics of dynamic libraries on AmigaOS, at least up
  41389. - # to version 4, is to share data among multiple programs linked
  41390. - # with the same dynamic library. Since this doesn't match the
  41391. - # behavior of shared libraries on other platforms, we can't use
  41392. - # them.
  41393. - ld_shlibs_GCJ=no
  41394. + case $host_cpu in
  41395. + powerpc)
  41396. + # see comment about AmigaOS4 .so support
  41397. + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  41398. + archive_expsym_cmds=''
  41399. + ;;
  41400. + m68k)
  41401. + 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)'
  41402. + hardcode_libdir_flag_spec='-L$libdir'
  41403. + hardcode_minus_L=yes
  41404. + ;;
  41405. + esac
  41406. ;;
  41407. beos*)
  41408. - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  41409. - allow_undefined_flag_GCJ=unsupported
  41410. + if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  41411. + allow_undefined_flag=unsupported
  41412. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  41413. # support --undefined. This deserves some investigation. FIXME
  41414. - archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  41415. + archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  41416. else
  41417. - ld_shlibs_GCJ=no
  41418. + ld_shlibs=no
  41419. fi
  41420. ;;
  41421. - cygwin* | mingw* | pw32*)
  41422. - # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
  41423. + cygwin* | mingw* | pw32* | cegcc*)
  41424. + # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  41425. # as there is no search path for DLLs.
  41426. - hardcode_libdir_flag_spec_GCJ='-L$libdir'
  41427. - allow_undefined_flag_GCJ=unsupported
  41428. - always_export_symbols_GCJ=no
  41429. - enable_shared_with_static_runtimes_GCJ=yes
  41430. - export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
  41431. + hardcode_libdir_flag_spec='-L$libdir'
  41432. + allow_undefined_flag=unsupported
  41433. + always_export_symbols=no
  41434. + enable_shared_with_static_runtimes=yes
  41435. + export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  41436. - if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
  41437. - archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  41438. + if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  41439. + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  41440. # If the export-symbols file already is a .def file (1st line
  41441. # is EXPORTS), use it as is; otherwise, prepend...
  41442. - archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  41443. + archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  41444. cp $export_symbols $output_objdir/$soname.def;
  41445. else
  41446. echo EXPORTS > $output_objdir/$soname.def;
  41447. @@ -17676,70 +8426,109 @@
  41448. fi~
  41449. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  41450. else
  41451. - ld_shlibs_GCJ=no
  41452. + ld_shlibs=no
  41453. fi
  41454. ;;
  41455. - interix3*)
  41456. - hardcode_direct_GCJ=no
  41457. - hardcode_shlibpath_var_GCJ=no
  41458. - hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
  41459. - export_dynamic_flag_spec_GCJ='${wl}-E'
  41460. + interix[3-9]*)
  41461. + hardcode_direct=no
  41462. + hardcode_shlibpath_var=no
  41463. + hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  41464. + export_dynamic_flag_spec='${wl}-E'
  41465. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  41466. # Instead, shared libraries are loaded at an image base (0x10000000 by
  41467. # default) and relocated if they conflict, which is a slow very memory
  41468. # consuming and fragmenting process. To avoid this, we pick a random,
  41469. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  41470. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  41471. - archive_cmds_GCJ='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  41472. - archive_expsym_cmds_GCJ='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  41473. + archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  41474. + 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'
  41475. ;;
  41476. - linux*)
  41477. - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  41478. + gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
  41479. + tmp_diet=no
  41480. + if test "$host_os" = linux-dietlibc; then
  41481. + case $cc_basename in
  41482. + diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  41483. + esac
  41484. + fi
  41485. + if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  41486. + && test "$tmp_diet" = no
  41487. + then
  41488. tmp_addflag=
  41489. + tmp_sharedflag='-shared'
  41490. case $cc_basename,$host_cpu in
  41491. - pgcc*) # Portland Group C compiler
  41492. - whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
  41493. + pgcc*) # Portland Group C compiler
  41494. + 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'
  41495. tmp_addflag=' $pic_flag'
  41496. ;;
  41497. pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
  41498. - whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
  41499. + 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'
  41500. tmp_addflag=' $pic_flag -Mnomain' ;;
  41501. - ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  41502. + ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  41503. tmp_addflag=' -i_dynamic' ;;
  41504. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  41505. tmp_addflag=' -i_dynamic -nofor_main' ;;
  41506. ifc* | ifort*) # Intel Fortran compiler
  41507. tmp_addflag=' -nofor_main' ;;
  41508. + lf95*) # Lahey Fortran 8.1
  41509. + whole_archive_flag_spec=
  41510. + tmp_sharedflag='--shared' ;;
  41511. + xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  41512. + tmp_sharedflag='-qmkshrobj'
  41513. + tmp_addflag= ;;
  41514. esac
  41515. - archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  41516. + case `$CC -V 2>&1 | sed 5q` in
  41517. + *Sun\ C*) # Sun C 5.9
  41518. + 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'
  41519. + compiler_needs_object=yes
  41520. + tmp_sharedflag='-G' ;;
  41521. + *Sun\ F*) # Sun Fortran 8.3
  41522. + tmp_sharedflag='-G' ;;
  41523. + esac
  41524. + archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  41525. - if test $supports_anon_versioning = yes; then
  41526. - archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
  41527. - cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  41528. - $echo "local: *; };" >> $output_objdir/$libname.ver~
  41529. - $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  41530. - fi
  41531. + if test "x$supports_anon_versioning" = xyes; then
  41532. + archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  41533. + cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  41534. + echo "local: *; };" >> $output_objdir/$libname.ver~
  41535. + $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  41536. + fi
  41537. +
  41538. + case $cc_basename in
  41539. + xlf*)
  41540. + # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  41541. + whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
  41542. + hardcode_libdir_flag_spec=
  41543. + hardcode_libdir_flag_spec_ld='-rpath $libdir'
  41544. + archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
  41545. + if test "x$supports_anon_versioning" = xyes; then
  41546. + archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  41547. + cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  41548. + echo "local: *; };" >> $output_objdir/$libname.ver~
  41549. + $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  41550. + fi
  41551. + ;;
  41552. + esac
  41553. else
  41554. - ld_shlibs_GCJ=no
  41555. + ld_shlibs=no
  41556. fi
  41557. ;;
  41558. - netbsd*)
  41559. - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  41560. - archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  41561. + netbsd* | netbsdelf*-gnu)
  41562. + if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  41563. + archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  41564. wlarc=
  41565. else
  41566. - archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  41567. - archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  41568. + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  41569. + archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  41570. fi
  41571. ;;
  41572. solaris*)
  41573. - if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
  41574. - ld_shlibs_GCJ=no
  41575. - cat <<EOF 1>&2
  41576. + if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  41577. + ld_shlibs=no
  41578. + cat <<_LT_EOF 1>&2
  41579. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  41580. *** create shared libraries on Solaris systems. Therefore, libtool
  41581. @@ -17748,19 +8537,19 @@
  41582. *** your PATH or compiler configuration so that the native linker is
  41583. *** used, and then restart.
  41584. -EOF
  41585. - elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  41586. - archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  41587. - archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  41588. +_LT_EOF
  41589. + elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  41590. + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  41591. + archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  41592. else
  41593. - ld_shlibs_GCJ=no
  41594. + ld_shlibs=no
  41595. fi
  41596. ;;
  41597. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  41598. case `$LD -v 2>&1` in
  41599. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  41600. - ld_shlibs_GCJ=no
  41601. + ld_shlibs=no
  41602. cat <<_LT_EOF 1>&2
  41603. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  41604. @@ -17773,58 +8562,62 @@
  41605. _LT_EOF
  41606. ;;
  41607. *)
  41608. - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  41609. - hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
  41610. - archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
  41611. - archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
  41612. + # For security reasons, it is highly recommended that you always
  41613. + # use absolute paths for naming shared libraries, and exclude the
  41614. + # DT_RUNPATH tag from executables and libraries. But doing so
  41615. + # requires that you compile everything twice, which is a pain.
  41616. + if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  41617. + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  41618. + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  41619. + archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  41620. else
  41621. - ld_shlibs_GCJ=no
  41622. + ld_shlibs=no
  41623. fi
  41624. ;;
  41625. esac
  41626. ;;
  41627. sunos4*)
  41628. - archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  41629. + archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  41630. wlarc=
  41631. - hardcode_direct_GCJ=yes
  41632. - hardcode_shlibpath_var_GCJ=no
  41633. + hardcode_direct=yes
  41634. + hardcode_shlibpath_var=no
  41635. ;;
  41636. *)
  41637. - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  41638. - archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  41639. - archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  41640. + if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  41641. + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  41642. + archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  41643. else
  41644. - ld_shlibs_GCJ=no
  41645. + ld_shlibs=no
  41646. fi
  41647. ;;
  41648. esac
  41649. - if test "$ld_shlibs_GCJ" = no; then
  41650. + if test "$ld_shlibs" = no; then
  41651. runpath_var=
  41652. - hardcode_libdir_flag_spec_GCJ=
  41653. - export_dynamic_flag_spec_GCJ=
  41654. - whole_archive_flag_spec_GCJ=
  41655. + hardcode_libdir_flag_spec=
  41656. + export_dynamic_flag_spec=
  41657. + whole_archive_flag_spec=
  41658. fi
  41659. else
  41660. # PORTME fill in a description of your system's linker (not GNU ld)
  41661. case $host_os in
  41662. aix3*)
  41663. - allow_undefined_flag_GCJ=unsupported
  41664. - always_export_symbols_GCJ=yes
  41665. - 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'
  41666. + allow_undefined_flag=unsupported
  41667. + always_export_symbols=yes
  41668. + 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'
  41669. # Note: this linker hardcodes the directories in LIBPATH if there
  41670. # are no directories specified by -L.
  41671. - hardcode_minus_L_GCJ=yes
  41672. + hardcode_minus_L=yes
  41673. if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  41674. # Neither direct hardcoding nor static linking is supported with a
  41675. # broken collect2.
  41676. - hardcode_direct_GCJ=unsupported
  41677. + hardcode_direct=unsupported
  41678. fi
  41679. ;;
  41680. - aix4* | aix5*)
  41681. + aix[4-9]*)
  41682. if test "$host_cpu" = ia64; then
  41683. # On IA64, the linker does run time linking by default, so we don't
  41684. # have to do anything special.
  41685. @@ -17834,22 +8627,22 @@
  41686. else
  41687. # If we're using GNU nm, then we don't want the "-C" option.
  41688. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  41689. - if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
  41690. - 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'
  41691. + if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  41692. + 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'
  41693. else
  41694. - 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'
  41695. + 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'
  41696. fi
  41697. aix_use_runtimelinking=no
  41698. # Test if we are trying to use run time linking or normal
  41699. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  41700. # need to do runtime linking.
  41701. - case $host_os in aix4.[23]|aix4.[23].*|aix5*)
  41702. + case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  41703. for ld_flag in $LDFLAGS; do
  41704. - if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  41705. - aix_use_runtimelinking=yes
  41706. - break
  41707. - fi
  41708. + if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  41709. + aix_use_runtimelinking=yes
  41710. + break
  41711. + fi
  41712. done
  41713. ;;
  41714. esac
  41715. @@ -17864,30 +8657,32 @@
  41716. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  41717. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  41718. - archive_cmds_GCJ=''
  41719. - hardcode_direct_GCJ=yes
  41720. - hardcode_libdir_separator_GCJ=':'
  41721. - link_all_deplibs_GCJ=yes
  41722. + archive_cmds=''
  41723. + hardcode_direct=yes
  41724. + hardcode_direct_absolute=yes
  41725. + hardcode_libdir_separator=':'
  41726. + link_all_deplibs=yes
  41727. + file_list_spec='${wl}-f,'
  41728. if test "$GCC" = yes; then
  41729. case $host_os in aix4.[012]|aix4.[012].*)
  41730. # We only want to do this on AIX 4.2 and lower, the check
  41731. # below for broken collect2 doesn't work under 4.3+
  41732. collect2name=`${CC} -print-prog-name=collect2`
  41733. - if test -f "$collect2name" && \
  41734. - strings "$collect2name" | grep resolve_lib_name >/dev/null
  41735. + if test -f "$collect2name" &&
  41736. + strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  41737. then
  41738. - # We have reworked collect2
  41739. - hardcode_direct_GCJ=yes
  41740. + # We have reworked collect2
  41741. + :
  41742. else
  41743. - # We have old collect2
  41744. - hardcode_direct_GCJ=unsupported
  41745. - # It fails to find uninstalled libraries when the uninstalled
  41746. - # path is not listed in the libpath. Setting hardcode_minus_L
  41747. - # to unsupported forces relinking
  41748. - hardcode_minus_L_GCJ=yes
  41749. - hardcode_libdir_flag_spec_GCJ='-L$libdir'
  41750. - hardcode_libdir_separator_GCJ=
  41751. + # We have old collect2
  41752. + hardcode_direct=unsupported
  41753. + # It fails to find uninstalled libraries when the uninstalled
  41754. + # path is not listed in the libpath. Setting hardcode_minus_L
  41755. + # to unsupported forces relinking
  41756. + hardcode_minus_L=yes
  41757. + hardcode_libdir_flag_spec='-L$libdir'
  41758. + hardcode_libdir_separator=
  41759. fi
  41760. ;;
  41761. esac
  41762. @@ -17895,11 +8690,12 @@
  41763. if test "$aix_use_runtimelinking" = yes; then
  41764. shared_flag="$shared_flag "'${wl}-G'
  41765. fi
  41766. + link_all_deplibs=no
  41767. else
  41768. # not using gcc
  41769. if test "$host_cpu" = ia64; then
  41770. - # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  41771. - # chokes on -Wl,-G. The following line is correct:
  41772. + # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  41773. + # chokes on -Wl,-G. The following line is correct:
  41774. shared_flag='-G'
  41775. else
  41776. if test "$aix_use_runtimelinking" = yes; then
  41777. @@ -17910,19 +8706,17 @@
  41778. fi
  41779. fi
  41780. + export_dynamic_flag_spec='${wl}-bexpall'
  41781. # It seems that -bexpall does not export symbols beginning with
  41782. # underscore (_), so it is better to generate a list of symbols to export.
  41783. - always_export_symbols_GCJ=yes
  41784. + always_export_symbols=yes
  41785. if test "$aix_use_runtimelinking" = yes; then
  41786. # Warning - without using the other runtime loading flags (-brtl),
  41787. # -berok will link without error, but may produce a broken library.
  41788. - allow_undefined_flag_GCJ='-berok'
  41789. - # Determine the default libpath from the value encoded in an empty executable.
  41790. - cat >conftest.$ac_ext <<_ACEOF
  41791. -/* confdefs.h. */
  41792. -_ACEOF
  41793. -cat confdefs.h >>conftest.$ac_ext
  41794. -cat >>conftest.$ac_ext <<_ACEOF
  41795. + allow_undefined_flag='-berok'
  41796. + # Determine the default libpath from the value encoded in an
  41797. + # empty executable.
  41798. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  41799. /* end confdefs.h. */
  41800. int
  41801. @@ -17933,71 +8727,36 @@
  41802. return 0;
  41803. }
  41804. _ACEOF
  41805. -rm -f conftest.$ac_objext conftest$ac_exeext
  41806. -if { (ac_try="$ac_link"
  41807. -case "(($ac_try" in
  41808. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  41809. - *) ac_try_echo=$ac_try;;
  41810. -esac
  41811. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  41812. - (eval "$ac_link") 2>conftest.er1
  41813. - ac_status=$?
  41814. - grep -v '^ *+' conftest.er1 >conftest.err
  41815. - rm -f conftest.er1
  41816. - cat conftest.err >&5
  41817. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  41818. - (exit $ac_status); } &&
  41819. - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  41820. - { (case "(($ac_try" in
  41821. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  41822. - *) ac_try_echo=$ac_try;;
  41823. -esac
  41824. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  41825. - (eval "$ac_try") 2>&5
  41826. - ac_status=$?
  41827. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  41828. - (exit $ac_status); }; } &&
  41829. - { ac_try='test -s conftest$ac_exeext'
  41830. - { (case "(($ac_try" in
  41831. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  41832. - *) ac_try_echo=$ac_try;;
  41833. -esac
  41834. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  41835. - (eval "$ac_try") 2>&5
  41836. - ac_status=$?
  41837. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  41838. - (exit $ac_status); }; }; then
  41839. +if ac_fn_c_try_link "$LINENO"; then :
  41840. -aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  41841. -}'`
  41842. +lt_aix_libpath_sed='
  41843. + /Import File Strings/,/^$/ {
  41844. + /^0/ {
  41845. + s/^0 *\(.*\)$/\1/
  41846. + p
  41847. + }
  41848. + }'
  41849. +aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  41850. # Check for a 64-bit object if we didn't find anything.
  41851. -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; }
  41852. -}'`; fi
  41853. -else
  41854. - echo "$as_me: failed program was:" >&5
  41855. -sed 's/^/| /' conftest.$ac_ext >&5
  41856. -
  41857. -
  41858. +if test -z "$aix_libpath"; then
  41859. + aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  41860. +fi
  41861. fi
  41862. -
  41863. rm -f core conftest.err conftest.$ac_objext \
  41864. - conftest$ac_exeext conftest.$ac_ext
  41865. + conftest$ac_exeext conftest.$ac_ext
  41866. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  41867. - hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
  41868. - archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  41869. - else
  41870. + hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  41871. + 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"
  41872. + else
  41873. if test "$host_cpu" = ia64; then
  41874. - hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
  41875. - allow_undefined_flag_GCJ="-z nodefs"
  41876. - archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
  41877. + hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
  41878. + allow_undefined_flag="-z nodefs"
  41879. + 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"
  41880. else
  41881. - # Determine the default libpath from the value encoded in an empty executable.
  41882. - cat >conftest.$ac_ext <<_ACEOF
  41883. -/* confdefs.h. */
  41884. -_ACEOF
  41885. -cat confdefs.h >>conftest.$ac_ext
  41886. -cat >>conftest.$ac_ext <<_ACEOF
  41887. + # Determine the default libpath from the value encoded in an
  41888. + # empty executable.
  41889. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  41890. /* end confdefs.h. */
  41891. int
  41892. @@ -18008,162 +8767,114 @@
  41893. return 0;
  41894. }
  41895. _ACEOF
  41896. -rm -f conftest.$ac_objext conftest$ac_exeext
  41897. -if { (ac_try="$ac_link"
  41898. -case "(($ac_try" in
  41899. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  41900. - *) ac_try_echo=$ac_try;;
  41901. -esac
  41902. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  41903. - (eval "$ac_link") 2>conftest.er1
  41904. - ac_status=$?
  41905. - grep -v '^ *+' conftest.er1 >conftest.err
  41906. - rm -f conftest.er1
  41907. - cat conftest.err >&5
  41908. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  41909. - (exit $ac_status); } &&
  41910. - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  41911. - { (case "(($ac_try" in
  41912. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  41913. - *) ac_try_echo=$ac_try;;
  41914. -esac
  41915. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  41916. - (eval "$ac_try") 2>&5
  41917. - ac_status=$?
  41918. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  41919. - (exit $ac_status); }; } &&
  41920. - { ac_try='test -s conftest$ac_exeext'
  41921. - { (case "(($ac_try" in
  41922. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  41923. - *) ac_try_echo=$ac_try;;
  41924. -esac
  41925. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  41926. - (eval "$ac_try") 2>&5
  41927. - ac_status=$?
  41928. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  41929. - (exit $ac_status); }; }; then
  41930. +if ac_fn_c_try_link "$LINENO"; then :
  41931. -aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  41932. -}'`
  41933. +lt_aix_libpath_sed='
  41934. + /Import File Strings/,/^$/ {
  41935. + /^0/ {
  41936. + s/^0 *\(.*\)$/\1/
  41937. + p
  41938. + }
  41939. + }'
  41940. +aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  41941. # Check for a 64-bit object if we didn't find anything.
  41942. -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; }
  41943. -}'`; fi
  41944. -else
  41945. - echo "$as_me: failed program was:" >&5
  41946. -sed 's/^/| /' conftest.$ac_ext >&5
  41947. -
  41948. -
  41949. +if test -z "$aix_libpath"; then
  41950. + aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  41951. +fi
  41952. fi
  41953. -
  41954. rm -f core conftest.err conftest.$ac_objext \
  41955. - conftest$ac_exeext conftest.$ac_ext
  41956. + conftest$ac_exeext conftest.$ac_ext
  41957. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  41958. - hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
  41959. + hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  41960. # Warning - without using the other run time loading flags,
  41961. # -berok will link without error, but may produce a broken library.
  41962. - no_undefined_flag_GCJ=' ${wl}-bernotok'
  41963. - allow_undefined_flag_GCJ=' ${wl}-berok'
  41964. + no_undefined_flag=' ${wl}-bernotok'
  41965. + allow_undefined_flag=' ${wl}-berok'
  41966. # Exported symbols can be pulled into shared objects from archives
  41967. - whole_archive_flag_spec_GCJ='$convenience'
  41968. - archive_cmds_need_lc_GCJ=yes
  41969. + whole_archive_flag_spec='$convenience'
  41970. + archive_cmds_need_lc=yes
  41971. # This is similar to how AIX traditionally builds its shared libraries.
  41972. - archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
  41973. + 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'
  41974. fi
  41975. fi
  41976. ;;
  41977. amigaos*)
  41978. - 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)'
  41979. - hardcode_libdir_flag_spec_GCJ='-L$libdir'
  41980. - hardcode_minus_L_GCJ=yes
  41981. - # see comment about different semantics on the GNU ld section
  41982. - ld_shlibs_GCJ=no
  41983. + case $host_cpu in
  41984. + powerpc)
  41985. + # see comment about AmigaOS4 .so support
  41986. + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  41987. + archive_expsym_cmds=''
  41988. + ;;
  41989. + m68k)
  41990. + 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)'
  41991. + hardcode_libdir_flag_spec='-L$libdir'
  41992. + hardcode_minus_L=yes
  41993. + ;;
  41994. + esac
  41995. ;;
  41996. bsdi[45]*)
  41997. - export_dynamic_flag_spec_GCJ=-rdynamic
  41998. + export_dynamic_flag_spec=-rdynamic
  41999. ;;
  42000. - cygwin* | mingw* | pw32*)
  42001. + cygwin* | mingw* | pw32* | cegcc*)
  42002. # When not using gcc, we currently assume that we are using
  42003. # Microsoft Visual C++.
  42004. # hardcode_libdir_flag_spec is actually meaningless, as there is
  42005. # no search path for DLLs.
  42006. - hardcode_libdir_flag_spec_GCJ=' '
  42007. - allow_undefined_flag_GCJ=unsupported
  42008. + hardcode_libdir_flag_spec=' '
  42009. + allow_undefined_flag=unsupported
  42010. # Tell ltmain to make .lib files, not .a files.
  42011. libext=lib
  42012. # Tell ltmain to make .dll files, not .so files.
  42013. shrext_cmds=".dll"
  42014. # FIXME: Setting linknames here is a bad hack.
  42015. - archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
  42016. + archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
  42017. # The linker will automatically build a .lib file if we build a DLL.
  42018. - old_archive_From_new_cmds_GCJ='true'
  42019. + old_archive_from_new_cmds='true'
  42020. # FIXME: Should let the user specify the lib program.
  42021. - old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
  42022. - fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
  42023. - enable_shared_with_static_runtimes_GCJ=yes
  42024. + old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  42025. + fix_srcfile_path='`cygpath -w "$srcfile"`'
  42026. + enable_shared_with_static_runtimes=yes
  42027. ;;
  42028. darwin* | rhapsody*)
  42029. - case $host_os in
  42030. - rhapsody* | darwin1.[012])
  42031. - allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
  42032. - ;;
  42033. - *) # Darwin 1.3 on
  42034. - if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
  42035. - allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  42036. - else
  42037. - case ${MACOSX_DEPLOYMENT_TARGET} in
  42038. - 10.[012])
  42039. - allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  42040. - ;;
  42041. - 10.*)
  42042. - allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
  42043. - ;;
  42044. - esac
  42045. - fi
  42046. - ;;
  42047. - esac
  42048. - archive_cmds_need_lc_GCJ=no
  42049. - hardcode_direct_GCJ=no
  42050. - hardcode_automatic_GCJ=yes
  42051. - hardcode_shlibpath_var_GCJ=unsupported
  42052. - whole_archive_flag_spec_GCJ=''
  42053. - link_all_deplibs_GCJ=yes
  42054. - if test "$GCC" = yes ; then
  42055. - output_verbose_link_cmd='echo'
  42056. - archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
  42057. - module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  42058. - # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  42059. - 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}'
  42060. - 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}'
  42061. - else
  42062. - case $cc_basename in
  42063. - xlc*)
  42064. - output_verbose_link_cmd='echo'
  42065. - archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
  42066. - module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  42067. - # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  42068. - 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}'
  42069. - 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}'
  42070. - ;;
  42071. - *)
  42072. - ld_shlibs_GCJ=no
  42073. - ;;
  42074. - esac
  42075. - fi
  42076. +
  42077. +
  42078. + archive_cmds_need_lc=no
  42079. + hardcode_direct=no
  42080. + hardcode_automatic=yes
  42081. + hardcode_shlibpath_var=unsupported
  42082. + whole_archive_flag_spec=''
  42083. + link_all_deplibs=yes
  42084. + allow_undefined_flag="$_lt_dar_allow_undefined"
  42085. + case $cc_basename in
  42086. + ifort*) _lt_dar_can_shared=yes ;;
  42087. + *) _lt_dar_can_shared=$GCC ;;
  42088. + esac
  42089. + if test "$_lt_dar_can_shared" = "yes"; then
  42090. + output_verbose_link_cmd=echo
  42091. + archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
  42092. + module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  42093. + 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}"
  42094. + 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}"
  42095. +
  42096. + else
  42097. + ld_shlibs=no
  42098. + fi
  42099. +
  42100. ;;
  42101. dgux*)
  42102. - archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  42103. - hardcode_libdir_flag_spec_GCJ='-L$libdir'
  42104. - hardcode_shlibpath_var_GCJ=no
  42105. + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  42106. + hardcode_libdir_flag_spec='-L$libdir'
  42107. + hardcode_shlibpath_var=no
  42108. ;;
  42109. freebsd1*)
  42110. - ld_shlibs_GCJ=no
  42111. + ld_shlibs=no
  42112. ;;
  42113. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  42114. @@ -18171,60 +8882,60 @@
  42115. # does not break anything, and helps significantly (at the cost of a little
  42116. # extra space).
  42117. freebsd2.2*)
  42118. - archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  42119. - hardcode_libdir_flag_spec_GCJ='-R$libdir'
  42120. - hardcode_direct_GCJ=yes
  42121. - hardcode_shlibpath_var_GCJ=no
  42122. + archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  42123. + hardcode_libdir_flag_spec='-R$libdir'
  42124. + hardcode_direct=yes
  42125. + hardcode_shlibpath_var=no
  42126. ;;
  42127. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  42128. freebsd2*)
  42129. - archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  42130. - hardcode_direct_GCJ=yes
  42131. - hardcode_minus_L_GCJ=yes
  42132. - hardcode_shlibpath_var_GCJ=no
  42133. + archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  42134. + hardcode_direct=yes
  42135. + hardcode_minus_L=yes
  42136. + hardcode_shlibpath_var=no
  42137. ;;
  42138. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  42139. - freebsd* | kfreebsd*-gnu | dragonfly*)
  42140. - archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  42141. - hardcode_libdir_flag_spec_GCJ='-R$libdir'
  42142. - hardcode_direct_GCJ=yes
  42143. - hardcode_shlibpath_var_GCJ=no
  42144. + freebsd* | dragonfly*)
  42145. + archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  42146. + hardcode_libdir_flag_spec='-R$libdir'
  42147. + hardcode_direct=yes
  42148. + hardcode_shlibpath_var=no
  42149. ;;
  42150. hpux9*)
  42151. if test "$GCC" = yes; then
  42152. - 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'
  42153. + 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'
  42154. else
  42155. - 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'
  42156. + 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'
  42157. fi
  42158. - hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
  42159. - hardcode_libdir_separator_GCJ=:
  42160. - hardcode_direct_GCJ=yes
  42161. + hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  42162. + hardcode_libdir_separator=:
  42163. + hardcode_direct=yes
  42164. # hardcode_minus_L: Not really in the search PATH,
  42165. # but as the default location of the library.
  42166. - hardcode_minus_L_GCJ=yes
  42167. - export_dynamic_flag_spec_GCJ='${wl}-E'
  42168. + hardcode_minus_L=yes
  42169. + export_dynamic_flag_spec='${wl}-E'
  42170. ;;
  42171. hpux10*)
  42172. if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  42173. - archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  42174. + archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  42175. else
  42176. - archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  42177. + archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  42178. fi
  42179. if test "$with_gnu_ld" = no; then
  42180. - hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
  42181. - hardcode_libdir_separator_GCJ=:
  42182. -
  42183. - hardcode_direct_GCJ=yes
  42184. - export_dynamic_flag_spec_GCJ='${wl}-E'
  42185. -
  42186. + hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  42187. + hardcode_libdir_flag_spec_ld='+b $libdir'
  42188. + hardcode_libdir_separator=:
  42189. + hardcode_direct=yes
  42190. + hardcode_direct_absolute=yes
  42191. + export_dynamic_flag_spec='${wl}-E'
  42192. # hardcode_minus_L: Not really in the search PATH,
  42193. # but as the default location of the library.
  42194. - hardcode_minus_L_GCJ=yes
  42195. + hardcode_minus_L=yes
  42196. fi
  42197. ;;
  42198. @@ -18232,45 +8943,45 @@
  42199. if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  42200. case $host_cpu in
  42201. hppa*64*)
  42202. - archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  42203. + archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  42204. ;;
  42205. ia64*)
  42206. - archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  42207. + archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  42208. ;;
  42209. *)
  42210. - archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  42211. + archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  42212. ;;
  42213. esac
  42214. else
  42215. case $host_cpu in
  42216. hppa*64*)
  42217. - archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  42218. + archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  42219. ;;
  42220. ia64*)
  42221. - archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  42222. + archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  42223. ;;
  42224. *)
  42225. - archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  42226. + archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  42227. ;;
  42228. esac
  42229. fi
  42230. if test "$with_gnu_ld" = no; then
  42231. - hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
  42232. - hardcode_libdir_separator_GCJ=:
  42233. + hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  42234. + hardcode_libdir_separator=:
  42235. case $host_cpu in
  42236. hppa*64*|ia64*)
  42237. - hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
  42238. - hardcode_direct_GCJ=no
  42239. - hardcode_shlibpath_var_GCJ=no
  42240. + hardcode_direct=no
  42241. + hardcode_shlibpath_var=no
  42242. ;;
  42243. *)
  42244. - hardcode_direct_GCJ=yes
  42245. - export_dynamic_flag_spec_GCJ='${wl}-E'
  42246. + hardcode_direct=yes
  42247. + hardcode_direct_absolute=yes
  42248. + export_dynamic_flag_spec='${wl}-E'
  42249. # hardcode_minus_L: Not really in the search PATH,
  42250. # but as the default location of the library.
  42251. - hardcode_minus_L_GCJ=yes
  42252. + hardcode_minus_L=yes
  42253. ;;
  42254. esac
  42255. fi
  42256. @@ -18278,191 +8989,228 @@
  42257. irix5* | irix6* | nonstopux*)
  42258. if test "$GCC" = yes; then
  42259. - 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'
  42260. + 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'
  42261. + # Try to use the -exported_symbol ld option, if it does not
  42262. + # work, assume that -exports_file does not work either and
  42263. + # implicitly export all symbols.
  42264. + save_LDFLAGS="$LDFLAGS"
  42265. + LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
  42266. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  42267. +/* end confdefs.h. */
  42268. +int foo(void) {}
  42269. +_ACEOF
  42270. +if ac_fn_c_try_link "$LINENO"; then :
  42271. + 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'
  42272. +
  42273. +fi
  42274. +rm -f core conftest.err conftest.$ac_objext \
  42275. + conftest$ac_exeext conftest.$ac_ext
  42276. + LDFLAGS="$save_LDFLAGS"
  42277. else
  42278. - 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'
  42279. - hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
  42280. + 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'
  42281. + 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'
  42282. fi
  42283. - hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
  42284. - hardcode_libdir_separator_GCJ=:
  42285. - link_all_deplibs_GCJ=yes
  42286. + archive_cmds_need_lc='no'
  42287. + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  42288. + hardcode_libdir_separator=:
  42289. + inherit_rpath=yes
  42290. + link_all_deplibs=yes
  42291. ;;
  42292. - netbsd*)
  42293. - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  42294. - archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  42295. + netbsd* | netbsdelf*-gnu)
  42296. + if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  42297. + archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  42298. else
  42299. - archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  42300. + archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  42301. fi
  42302. - hardcode_libdir_flag_spec_GCJ='-R$libdir'
  42303. - hardcode_direct_GCJ=yes
  42304. - hardcode_shlibpath_var_GCJ=no
  42305. + hardcode_libdir_flag_spec='-R$libdir'
  42306. + hardcode_direct=yes
  42307. + hardcode_shlibpath_var=no
  42308. ;;
  42309. newsos6)
  42310. - archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  42311. - hardcode_direct_GCJ=yes
  42312. - hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
  42313. - hardcode_libdir_separator_GCJ=:
  42314. - hardcode_shlibpath_var_GCJ=no
  42315. + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  42316. + hardcode_direct=yes
  42317. + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  42318. + hardcode_libdir_separator=:
  42319. + hardcode_shlibpath_var=no
  42320. + ;;
  42321. +
  42322. + *nto* | *qnx*)
  42323. ;;
  42324. openbsd*)
  42325. - hardcode_direct_GCJ=yes
  42326. - hardcode_shlibpath_var_GCJ=no
  42327. - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  42328. - archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  42329. - archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  42330. - hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
  42331. - export_dynamic_flag_spec_GCJ='${wl}-E'
  42332. + if test -f /usr/libexec/ld.so; then
  42333. + hardcode_direct=yes
  42334. + hardcode_shlibpath_var=no
  42335. + hardcode_direct_absolute=yes
  42336. + if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  42337. + archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  42338. + archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  42339. + hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  42340. + export_dynamic_flag_spec='${wl}-E'
  42341. + else
  42342. + case $host_os in
  42343. + openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  42344. + archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  42345. + hardcode_libdir_flag_spec='-R$libdir'
  42346. + ;;
  42347. + *)
  42348. + archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  42349. + hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  42350. + ;;
  42351. + esac
  42352. + fi
  42353. else
  42354. - case $host_os in
  42355. - openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  42356. - archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  42357. - hardcode_libdir_flag_spec_GCJ='-R$libdir'
  42358. - ;;
  42359. - *)
  42360. - archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  42361. - hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
  42362. - ;;
  42363. - esac
  42364. + ld_shlibs=no
  42365. fi
  42366. ;;
  42367. os2*)
  42368. - hardcode_libdir_flag_spec_GCJ='-L$libdir'
  42369. - hardcode_minus_L_GCJ=yes
  42370. - allow_undefined_flag_GCJ=unsupported
  42371. - 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'
  42372. - old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  42373. + hardcode_libdir_flag_spec='-L$libdir'
  42374. + hardcode_minus_L=yes
  42375. + allow_undefined_flag=unsupported
  42376. + 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'
  42377. + old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  42378. ;;
  42379. osf3*)
  42380. if test "$GCC" = yes; then
  42381. - allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
  42382. - 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'
  42383. + allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  42384. + 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'
  42385. else
  42386. - allow_undefined_flag_GCJ=' -expect_unresolved \*'
  42387. - 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'
  42388. + allow_undefined_flag=' -expect_unresolved \*'
  42389. + 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'
  42390. fi
  42391. - hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
  42392. - hardcode_libdir_separator_GCJ=:
  42393. + archive_cmds_need_lc='no'
  42394. + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  42395. + hardcode_libdir_separator=:
  42396. ;;
  42397. osf4* | osf5*) # as osf3* with the addition of -msym flag
  42398. if test "$GCC" = yes; then
  42399. - allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
  42400. - 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'
  42401. - hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
  42402. + allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  42403. + 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'
  42404. + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  42405. else
  42406. - allow_undefined_flag_GCJ=' -expect_unresolved \*'
  42407. - 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'
  42408. - 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~
  42409. - $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
  42410. + allow_undefined_flag=' -expect_unresolved \*'
  42411. + 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'
  42412. + 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~
  42413. + $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'
  42414. # Both c and cxx compiler support -rpath directly
  42415. - hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
  42416. + hardcode_libdir_flag_spec='-rpath $libdir'
  42417. fi
  42418. - hardcode_libdir_separator_GCJ=:
  42419. + archive_cmds_need_lc='no'
  42420. + hardcode_libdir_separator=:
  42421. ;;
  42422. solaris*)
  42423. - no_undefined_flag_GCJ=' -z text'
  42424. + no_undefined_flag=' -z defs'
  42425. if test "$GCC" = yes; then
  42426. wlarc='${wl}'
  42427. - archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  42428. - archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  42429. - $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
  42430. + archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  42431. + archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  42432. + $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  42433. else
  42434. - wlarc=''
  42435. - archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  42436. - archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  42437. - $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
  42438. + case `$CC -V 2>&1` in
  42439. + *"Compilers 5.0"*)
  42440. + wlarc=''
  42441. + archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  42442. + archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  42443. + $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  42444. + ;;
  42445. + *)
  42446. + wlarc='${wl}'
  42447. + archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  42448. + archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  42449. + $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  42450. + ;;
  42451. + esac
  42452. fi
  42453. - hardcode_libdir_flag_spec_GCJ='-R$libdir'
  42454. - hardcode_shlibpath_var_GCJ=no
  42455. + hardcode_libdir_flag_spec='-R$libdir'
  42456. + hardcode_shlibpath_var=no
  42457. case $host_os in
  42458. solaris2.[0-5] | solaris2.[0-5].*) ;;
  42459. *)
  42460. - # The compiler driver will combine linker options so we
  42461. - # cannot just pass the convience library names through
  42462. - # without $wl, iff we do not link with $LD.
  42463. - # Luckily, gcc supports the same syntax we need for Sun Studio.
  42464. - # Supported since Solaris 2.6 (maybe 2.5.1?)
  42465. - case $wlarc in
  42466. - '')
  42467. - whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
  42468. - *)
  42469. - whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
  42470. - esac ;;
  42471. + # The compiler driver will combine and reorder linker options,
  42472. + # but understands `-z linker_flag'. GCC discards it without `$wl',
  42473. + # but is careful enough not to reorder.
  42474. + # Supported since Solaris 2.6 (maybe 2.5.1?)
  42475. + if test "$GCC" = yes; then
  42476. + whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  42477. + else
  42478. + whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  42479. + fi
  42480. + ;;
  42481. esac
  42482. - link_all_deplibs_GCJ=yes
  42483. + link_all_deplibs=yes
  42484. ;;
  42485. sunos4*)
  42486. if test "x$host_vendor" = xsequent; then
  42487. # Use $CC to link under sequent, because it throws in some extra .o
  42488. # files that make .init and .fini sections work.
  42489. - archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  42490. + archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  42491. else
  42492. - archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  42493. + archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  42494. fi
  42495. - hardcode_libdir_flag_spec_GCJ='-L$libdir'
  42496. - hardcode_direct_GCJ=yes
  42497. - hardcode_minus_L_GCJ=yes
  42498. - hardcode_shlibpath_var_GCJ=no
  42499. + hardcode_libdir_flag_spec='-L$libdir'
  42500. + hardcode_direct=yes
  42501. + hardcode_minus_L=yes
  42502. + hardcode_shlibpath_var=no
  42503. ;;
  42504. sysv4)
  42505. case $host_vendor in
  42506. sni)
  42507. - archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  42508. - hardcode_direct_GCJ=yes # is this really true???
  42509. + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  42510. + hardcode_direct=yes # is this really true???
  42511. ;;
  42512. siemens)
  42513. ## LD is ld it makes a PLAMLIB
  42514. ## CC just makes a GrossModule.
  42515. - archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  42516. - reload_cmds_GCJ='$CC -r -o $output$reload_objs'
  42517. - hardcode_direct_GCJ=no
  42518. + archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  42519. + reload_cmds='$CC -r -o $output$reload_objs'
  42520. + hardcode_direct=no
  42521. ;;
  42522. motorola)
  42523. - archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  42524. - hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
  42525. + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  42526. + hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  42527. ;;
  42528. esac
  42529. runpath_var='LD_RUN_PATH'
  42530. - hardcode_shlibpath_var_GCJ=no
  42531. + hardcode_shlibpath_var=no
  42532. ;;
  42533. sysv4.3*)
  42534. - archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  42535. - hardcode_shlibpath_var_GCJ=no
  42536. - export_dynamic_flag_spec_GCJ='-Bexport'
  42537. + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  42538. + hardcode_shlibpath_var=no
  42539. + export_dynamic_flag_spec='-Bexport'
  42540. ;;
  42541. sysv4*MP*)
  42542. if test -d /usr/nec; then
  42543. - archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  42544. - hardcode_shlibpath_var_GCJ=no
  42545. + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  42546. + hardcode_shlibpath_var=no
  42547. runpath_var=LD_RUN_PATH
  42548. hardcode_runpath_var=yes
  42549. - ld_shlibs_GCJ=yes
  42550. + ld_shlibs=yes
  42551. fi
  42552. ;;
  42553. - sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
  42554. - no_undefined_flag_GCJ='${wl}-z,text'
  42555. - archive_cmds_need_lc_GCJ=no
  42556. - hardcode_shlibpath_var_GCJ=no
  42557. + sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  42558. + no_undefined_flag='${wl}-z,text'
  42559. + archive_cmds_need_lc=no
  42560. + hardcode_shlibpath_var=no
  42561. runpath_var='LD_RUN_PATH'
  42562. if test "$GCC" = yes; then
  42563. - archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  42564. - archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  42565. + archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  42566. + archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  42567. else
  42568. - archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  42569. - archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  42570. + archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  42571. + archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  42572. fi
  42573. ;;
  42574. @@ -18473,51 +9221,75 @@
  42575. # ever link correctly. If we're not using GNU ld we use -z text
  42576. # though, which does catch some bad symbols but isn't as heavy-handed
  42577. # as -z defs.
  42578. - no_undefined_flag_GCJ='${wl}-z,text'
  42579. - allow_undefined_flag_GCJ='${wl}-z,nodefs'
  42580. - archive_cmds_need_lc_GCJ=no
  42581. - hardcode_shlibpath_var_GCJ=no
  42582. - hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
  42583. - hardcode_libdir_separator_GCJ=':'
  42584. - link_all_deplibs_GCJ=yes
  42585. - export_dynamic_flag_spec_GCJ='${wl}-Bexport'
  42586. + no_undefined_flag='${wl}-z,text'
  42587. + allow_undefined_flag='${wl}-z,nodefs'
  42588. + archive_cmds_need_lc=no
  42589. + hardcode_shlibpath_var=no
  42590. + hardcode_libdir_flag_spec='${wl}-R,$libdir'
  42591. + hardcode_libdir_separator=':'
  42592. + link_all_deplibs=yes
  42593. + export_dynamic_flag_spec='${wl}-Bexport'
  42594. runpath_var='LD_RUN_PATH'
  42595. if test "$GCC" = yes; then
  42596. - archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  42597. - archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  42598. + archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  42599. + archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  42600. else
  42601. - archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  42602. - archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  42603. + archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  42604. + archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  42605. fi
  42606. ;;
  42607. uts4*)
  42608. - archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  42609. - hardcode_libdir_flag_spec_GCJ='-L$libdir'
  42610. - hardcode_shlibpath_var_GCJ=no
  42611. + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  42612. + hardcode_libdir_flag_spec='-L$libdir'
  42613. + hardcode_shlibpath_var=no
  42614. ;;
  42615. *)
  42616. - ld_shlibs_GCJ=no
  42617. + ld_shlibs=no
  42618. ;;
  42619. esac
  42620. +
  42621. + if test x$host_vendor = xsni; then
  42622. + case $host in
  42623. + sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  42624. + export_dynamic_flag_spec='${wl}-Blargedynsym'
  42625. + ;;
  42626. + esac
  42627. + fi
  42628. fi
  42629. -{ echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
  42630. -echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
  42631. -test "$ld_shlibs_GCJ" = no && can_build_shared=no
  42632. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
  42633. +$as_echo "$ld_shlibs" >&6; }
  42634. +test "$ld_shlibs" = no && can_build_shared=no
  42635. +
  42636. +with_gnu_ld=$with_gnu_ld
  42637. +
  42638. +
  42639. +
  42640. +
  42641. +
  42642. +
  42643. +
  42644. +
  42645. +
  42646. +
  42647. +
  42648. +
  42649. +
  42650. +
  42651. #
  42652. # Do we need to explicitly link libc?
  42653. #
  42654. -case "x$archive_cmds_need_lc_GCJ" in
  42655. +case "x$archive_cmds_need_lc" in
  42656. x|xyes)
  42657. # Assume -lc should be added
  42658. - archive_cmds_need_lc_GCJ=yes
  42659. + archive_cmds_need_lc=yes
  42660. if test "$enable_shared" = yes && test "$GCC" = yes; then
  42661. - case $archive_cmds_GCJ in
  42662. + case $archive_cmds in
  42663. *'~'*)
  42664. # FIXME: we may have to deal with multi-command sequences.
  42665. ;;
  42666. @@ -18525,54 +9297,262 @@
  42667. # Test whether the compiler implicitly links with -lc since on some
  42668. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  42669. # to ld, don't add -lc before -lgcc.
  42670. - { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
  42671. -echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
  42672. - $rm conftest*
  42673. - printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  42674. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  42675. +$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  42676. + $RM conftest*
  42677. + echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  42678. - if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  42679. + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  42680. (eval $ac_compile) 2>&5
  42681. ac_status=$?
  42682. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  42683. - (exit $ac_status); } 2>conftest.err; then
  42684. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  42685. + test $ac_status = 0; } 2>conftest.err; then
  42686. soname=conftest
  42687. lib=conftest
  42688. libobjs=conftest.$ac_objext
  42689. deplibs=
  42690. - wl=$lt_prog_compiler_wl_GCJ
  42691. - pic_flag=$lt_prog_compiler_pic_GCJ
  42692. + wl=$lt_prog_compiler_wl
  42693. + pic_flag=$lt_prog_compiler_pic
  42694. compiler_flags=-v
  42695. linker_flags=-v
  42696. verstring=
  42697. output_objdir=.
  42698. libname=conftest
  42699. - lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
  42700. - allow_undefined_flag_GCJ=
  42701. - if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
  42702. - (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
  42703. + lt_save_allow_undefined_flag=$allow_undefined_flag
  42704. + allow_undefined_flag=
  42705. + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  42706. + (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  42707. ac_status=$?
  42708. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  42709. - (exit $ac_status); }
  42710. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  42711. + test $ac_status = 0; }
  42712. then
  42713. - archive_cmds_need_lc_GCJ=no
  42714. + archive_cmds_need_lc=no
  42715. else
  42716. - archive_cmds_need_lc_GCJ=yes
  42717. + archive_cmds_need_lc=yes
  42718. fi
  42719. - allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
  42720. + allow_undefined_flag=$lt_save_allow_undefined_flag
  42721. else
  42722. cat conftest.err 1>&5
  42723. fi
  42724. - $rm conftest*
  42725. - { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
  42726. -echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
  42727. + $RM conftest*
  42728. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
  42729. +$as_echo "$archive_cmds_need_lc" >&6; }
  42730. ;;
  42731. esac
  42732. fi
  42733. ;;
  42734. esac
  42735. -{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
  42736. -echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
  42737. +
  42738. +
  42739. +
  42740. +
  42741. +
  42742. +
  42743. +
  42744. +
  42745. +
  42746. +
  42747. +
  42748. +
  42749. +
  42750. +
  42751. +
  42752. +
  42753. +
  42754. +
  42755. +
  42756. +
  42757. +
  42758. +
  42759. +
  42760. +
  42761. +
  42762. +
  42763. +
  42764. +
  42765. +
  42766. +
  42767. +
  42768. +
  42769. +
  42770. +
  42771. +
  42772. +
  42773. +
  42774. +
  42775. +
  42776. +
  42777. +
  42778. +
  42779. +
  42780. +
  42781. +
  42782. +
  42783. +
  42784. +
  42785. +
  42786. +
  42787. +
  42788. +
  42789. +
  42790. +
  42791. +
  42792. +
  42793. +
  42794. +
  42795. +
  42796. +
  42797. +
  42798. +
  42799. +
  42800. +
  42801. +
  42802. +
  42803. +
  42804. +
  42805. +
  42806. +
  42807. +
  42808. +
  42809. +
  42810. +
  42811. +
  42812. +
  42813. +
  42814. +
  42815. +
  42816. +
  42817. +
  42818. +
  42819. +
  42820. +
  42821. +
  42822. +
  42823. +
  42824. +
  42825. +
  42826. +
  42827. +
  42828. +
  42829. +
  42830. +
  42831. +
  42832. +
  42833. +
  42834. +
  42835. +
  42836. +
  42837. +
  42838. +
  42839. +
  42840. +
  42841. +
  42842. +
  42843. +
  42844. +
  42845. +
  42846. +
  42847. +
  42848. +
  42849. +
  42850. +
  42851. +
  42852. +
  42853. +
  42854. +
  42855. +
  42856. +
  42857. +
  42858. +
  42859. +
  42860. +
  42861. +
  42862. +
  42863. +
  42864. +
  42865. +
  42866. +
  42867. +
  42868. +
  42869. +
  42870. +
  42871. +
  42872. +
  42873. +
  42874. +
  42875. +
  42876. +
  42877. +
  42878. +
  42879. +
  42880. +
  42881. +
  42882. +
  42883. +
  42884. +
  42885. +
  42886. +
  42887. +
  42888. +
  42889. +
  42890. +
  42891. +
  42892. +
  42893. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  42894. +$as_echo_n "checking dynamic linker characteristics... " >&6; }
  42895. +
  42896. +if test "$GCC" = yes; then
  42897. + case $host_os in
  42898. + darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
  42899. + *) lt_awk_arg="/^libraries:/" ;;
  42900. + esac
  42901. + lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  42902. + if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
  42903. + # if the path contains ";" then we assume it to be the separator
  42904. + # otherwise default to the standard path separator (i.e. ":") - it is
  42905. + # assumed that no part of a normal pathname contains ";" but that should
  42906. + # okay in the real world where ";" in dirpaths is itself problematic.
  42907. + lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
  42908. + else
  42909. + lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  42910. + fi
  42911. + # Ok, now we have the path, separated by spaces, we can step through it
  42912. + # and add multilib dir if necessary.
  42913. + lt_tmp_lt_search_path_spec=
  42914. + lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  42915. + for lt_sys_path in $lt_search_path_spec; do
  42916. + if test -d "$lt_sys_path/$lt_multi_os_dir"; then
  42917. + lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
  42918. + else
  42919. + test -d "$lt_sys_path" && \
  42920. + lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  42921. + fi
  42922. + done
  42923. + lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
  42924. +BEGIN {RS=" "; FS="/|\n";} {
  42925. + lt_foo="";
  42926. + lt_count=0;
  42927. + for (lt_i = NF; lt_i > 0; lt_i--) {
  42928. + if ($lt_i != "" && $lt_i != ".") {
  42929. + if ($lt_i == "..") {
  42930. + lt_count++;
  42931. + } else {
  42932. + if (lt_count == 0) {
  42933. + lt_foo="/" $lt_i lt_foo;
  42934. + } else {
  42935. + lt_count--;
  42936. + }
  42937. + }
  42938. + }
  42939. + }
  42940. + if (lt_foo != "") { lt_freq[lt_foo]++; }
  42941. + if (lt_freq[lt_foo] == 1) { print lt_foo; }
  42942. +}'`
  42943. + sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
  42944. +else
  42945. + sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  42946. +fi
  42947. library_names_spec=
  42948. libname_spec='lib$name'
  42949. soname_spec=
  42950. @@ -18586,20 +9566,6 @@
  42951. version_type=none
  42952. dynamic_linker="$host_os ld.so"
  42953. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  42954. -if test "$GCC" = yes; then
  42955. - sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  42956. - if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
  42957. - # if the path contains ";" then we assume it to be the separator
  42958. - # otherwise default to the standard path separator (i.e. ":") - it is
  42959. - # assumed that no part of a normal pathname contains ";" but that should
  42960. - # okay in the real world where ";" in dirpaths is itself problematic.
  42961. - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  42962. - else
  42963. - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  42964. - fi
  42965. -else
  42966. - sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  42967. -fi
  42968. need_lib_prefix=unknown
  42969. hardcode_into_libs=no
  42970. @@ -18617,7 +9583,7 @@
  42971. soname_spec='${libname}${release}${shared_ext}$major'
  42972. ;;
  42973. -aix4* | aix5*)
  42974. +aix[4-9]*)
  42975. version_type=linux
  42976. need_lib_prefix=no
  42977. need_version=no
  42978. @@ -18636,7 +9602,7 @@
  42979. aix4 | aix4.[01] | aix4.[01].*)
  42980. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  42981. echo ' yes '
  42982. - echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
  42983. + echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  42984. :
  42985. else
  42986. can_build_shared=no
  42987. @@ -18662,9 +9628,18 @@
  42988. ;;
  42989. amigaos*)
  42990. - library_names_spec='$libname.ixlibrary $libname.a'
  42991. - # Create ${libname}_ixlibrary.a entries in /sys/libs.
  42992. - 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'
  42993. + case $host_cpu in
  42994. + powerpc)
  42995. + # Since July 2007 AmigaOS4 officially supports .so libraries.
  42996. + # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  42997. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  42998. + ;;
  42999. + m68k)
  43000. + library_names_spec='$libname.ixlibrary $libname.a'
  43001. + # Create ${libname}_ixlibrary.a entries in /sys/libs.
  43002. + 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'
  43003. + ;;
  43004. + esac
  43005. ;;
  43006. beos*)
  43007. @@ -18687,25 +9662,28 @@
  43008. # libtool to hard-code these into programs
  43009. ;;
  43010. -cygwin* | mingw* | pw32*)
  43011. +cygwin* | mingw* | pw32* | cegcc*)
  43012. version_type=windows
  43013. shrext_cmds=".dll"
  43014. need_version=no
  43015. need_lib_prefix=no
  43016. case $GCC,$host_os in
  43017. - yes,cygwin* | yes,mingw* | yes,pw32*)
  43018. + yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
  43019. library_names_spec='$libname.dll.a'
  43020. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  43021. postinstall_cmds='base_file=`basename \${file}`~
  43022. - dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
  43023. + dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  43024. dldir=$destdir/`dirname \$dlpath`~
  43025. test -d \$dldir || mkdir -p \$dldir~
  43026. $install_prog $dir/$dlname \$dldir/$dlname~
  43027. - chmod a+x \$dldir/$dlname'
  43028. + chmod a+x \$dldir/$dlname~
  43029. + if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  43030. + eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  43031. + fi'
  43032. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  43033. dlpath=$dir/\$dldll~
  43034. - $rm \$dlpath'
  43035. + $RM \$dlpath'
  43036. shlibpath_overrides_runpath=yes
  43037. case $host_os in
  43038. @@ -18714,20 +9692,20 @@
  43039. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  43040. sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  43041. ;;
  43042. - mingw*)
  43043. + mingw* | cegcc*)
  43044. # MinGW DLLs use traditional 'lib' prefix
  43045. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  43046. - sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  43047. - if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
  43048. + sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  43049. + if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  43050. # It is most probably a Windows format PATH printed by
  43051. # mingw gcc, but we are running on Cygwin. Gcc prints its search
  43052. # path with ; separators, and with drive letters. We can handle the
  43053. # drive letters (cygwin fileutils understands them), so leave them,
  43054. # especially as we might pass files found there to a mingw objdump,
  43055. # which wouldn't understand a cygwinified path. Ahh.
  43056. - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  43057. + sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  43058. else
  43059. - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  43060. + sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  43061. fi
  43062. ;;
  43063. pw32*)
  43064. @@ -18751,17 +9729,13 @@
  43065. version_type=darwin
  43066. need_lib_prefix=no
  43067. need_version=no
  43068. - library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  43069. + library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  43070. soname_spec='${libname}${release}${major}$shared_ext'
  43071. shlibpath_overrides_runpath=yes
  43072. shlibpath_var=DYLD_LIBRARY_PATH
  43073. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  43074. - # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
  43075. - if test "$GCC" = yes; then
  43076. - 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"`
  43077. - else
  43078. - sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
  43079. - fi
  43080. +
  43081. + sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  43082. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  43083. ;;
  43084. @@ -18778,18 +9752,6 @@
  43085. dynamic_linker=no
  43086. ;;
  43087. -kfreebsd*-gnu)
  43088. - version_type=linux
  43089. - need_lib_prefix=no
  43090. - need_version=no
  43091. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  43092. - soname_spec='${libname}${release}${shared_ext}$major'
  43093. - shlibpath_var=LD_LIBRARY_PATH
  43094. - shlibpath_overrides_runpath=no
  43095. - hardcode_into_libs=yes
  43096. - dynamic_linker='GNU ld.so'
  43097. - ;;
  43098. -
  43099. freebsd* | dragonfly*)
  43100. # DragonFly does not have aout. When/if they implement a new
  43101. # versioning mechanism, adjust this.
  43102. @@ -18827,7 +9789,7 @@
  43103. shlibpath_overrides_runpath=no
  43104. hardcode_into_libs=yes
  43105. ;;
  43106. - freebsd*) # from 4.6 on
  43107. + *) # from 4.6 on, and DragonFly
  43108. shlibpath_overrides_runpath=yes
  43109. hardcode_into_libs=yes
  43110. ;;
  43111. @@ -18866,18 +9828,18 @@
  43112. fi
  43113. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  43114. ;;
  43115. - hppa*64*)
  43116. - shrext_cmds='.sl'
  43117. - hardcode_into_libs=yes
  43118. - dynamic_linker="$host_os dld.sl"
  43119. - shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  43120. - shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  43121. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  43122. - soname_spec='${libname}${release}${shared_ext}$major'
  43123. - sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  43124. - sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  43125. - ;;
  43126. - *)
  43127. + hppa*64*)
  43128. + shrext_cmds='.sl'
  43129. + hardcode_into_libs=yes
  43130. + dynamic_linker="$host_os dld.sl"
  43131. + shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  43132. + shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  43133. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  43134. + soname_spec='${libname}${release}${shared_ext}$major'
  43135. + sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  43136. + sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  43137. + ;;
  43138. + *)
  43139. shrext_cmds='.sl'
  43140. dynamic_linker="$host_os dld.sl"
  43141. shlibpath_var=SHLIB_PATH
  43142. @@ -18890,7 +9852,7 @@
  43143. postinstall_cmds='chmod 555 $lib'
  43144. ;;
  43145. -interix3*)
  43146. +interix[3-9]*)
  43147. version_type=linux
  43148. need_lib_prefix=no
  43149. need_version=no
  43150. @@ -18945,7 +9907,7 @@
  43151. ;;
  43152. # This must be Linux ELF.
  43153. -linux*)
  43154. +linux* | k*bsd*-gnu | kopensolaris*-gnu)
  43155. version_type=linux
  43156. need_lib_prefix=no
  43157. need_version=no
  43158. @@ -18954,6 +9916,32 @@
  43159. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  43160. shlibpath_var=LD_LIBRARY_PATH
  43161. shlibpath_overrides_runpath=no
  43162. + # Some binutils ld are patched to set DT_RUNPATH
  43163. + save_LDFLAGS=$LDFLAGS
  43164. + save_libdir=$libdir
  43165. + eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
  43166. + LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
  43167. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  43168. +/* end confdefs.h. */
  43169. +
  43170. +int
  43171. +main ()
  43172. +{
  43173. +
  43174. + ;
  43175. + return 0;
  43176. +}
  43177. +_ACEOF
  43178. +if ac_fn_c_try_link "$LINENO"; then :
  43179. + if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  43180. + shlibpath_overrides_runpath=yes
  43181. +fi
  43182. +fi
  43183. +rm -f core conftest.err conftest.$ac_objext \
  43184. + conftest$ac_exeext conftest.$ac_ext
  43185. + LDFLAGS=$save_LDFLAGS
  43186. + libdir=$save_libdir
  43187. +
  43188. # This implies no fast_install, which is unacceptable.
  43189. # Some rework will be needed to allow for fast_install
  43190. # before this can be enabled.
  43191. @@ -18961,7 +9949,7 @@
  43192. # Append ld.so.conf contents to the search path
  43193. if test -f /etc/ld.so.conf; then
  43194. - lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
  43195. + 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' ' '`
  43196. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  43197. fi
  43198. @@ -18974,7 +9962,7 @@
  43199. dynamic_linker='GNU/Linux ld.so'
  43200. ;;
  43201. -knetbsd*-gnu)
  43202. +netbsdelf*-gnu)
  43203. version_type=linux
  43204. need_lib_prefix=no
  43205. need_version=no
  43206. @@ -18983,14 +9971,14 @@
  43207. shlibpath_var=LD_LIBRARY_PATH
  43208. shlibpath_overrides_runpath=no
  43209. hardcode_into_libs=yes
  43210. - dynamic_linker='GNU ld.so'
  43211. + dynamic_linker='NetBSD ld.elf_so'
  43212. ;;
  43213. netbsd*)
  43214. version_type=sunos
  43215. need_lib_prefix=no
  43216. need_version=no
  43217. - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  43218. + if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  43219. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  43220. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  43221. dynamic_linker='NetBSD (a.out) ld.so'
  43222. @@ -19011,14 +9999,16 @@
  43223. shlibpath_overrides_runpath=yes
  43224. ;;
  43225. -nto-qnx*)
  43226. - version_type=linux
  43227. +*nto* | *qnx*)
  43228. + version_type=qnx
  43229. need_lib_prefix=no
  43230. need_version=no
  43231. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  43232. soname_spec='${libname}${release}${shared_ext}$major'
  43233. shlibpath_var=LD_LIBRARY_PATH
  43234. - shlibpath_overrides_runpath=yes
  43235. + shlibpath_overrides_runpath=no
  43236. + hardcode_into_libs=yes
  43237. + dynamic_linker='ldqnx.so'
  43238. ;;
  43239. openbsd*)
  43240. @@ -19027,13 +10017,13 @@
  43241. need_lib_prefix=no
  43242. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  43243. case $host_os in
  43244. - openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  43245. - *) need_version=no ;;
  43246. + openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  43247. + *) need_version=no ;;
  43248. esac
  43249. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  43250. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  43251. shlibpath_var=LD_LIBRARY_PATH
  43252. - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  43253. + if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  43254. case $host_os in
  43255. openbsd2.[89] | openbsd2.[89].*)
  43256. shlibpath_overrides_runpath=no
  43257. @@ -19067,6 +10057,10 @@
  43258. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  43259. ;;
  43260. +rdos*)
  43261. + dynamic_linker=no
  43262. + ;;
  43263. +
  43264. solaris*)
  43265. version_type=linux
  43266. need_lib_prefix=no
  43267. @@ -19101,7 +10095,6 @@
  43268. sni)
  43269. shlibpath_overrides_runpath=no
  43270. need_lib_prefix=no
  43271. - export_dynamic_flag_spec='${wl}-Blargedynsym'
  43272. runpath_var=LD_RUN_PATH
  43273. ;;
  43274. siemens)
  43275. @@ -19132,13 +10125,12 @@
  43276. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  43277. soname_spec='${libname}${release}${shared_ext}$major'
  43278. shlibpath_var=LD_LIBRARY_PATH
  43279. + shlibpath_overrides_runpath=yes
  43280. hardcode_into_libs=yes
  43281. if test "$with_gnu_ld" = yes; then
  43282. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  43283. - shlibpath_overrides_runpath=no
  43284. else
  43285. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  43286. - shlibpath_overrides_runpath=yes
  43287. case $host_os in
  43288. sco3.2v5*)
  43289. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  43290. @@ -19148,6 +10140,17 @@
  43291. sys_lib_dlsearch_path_spec='/usr/lib'
  43292. ;;
  43293. +tpf*)
  43294. + # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  43295. + version_type=linux
  43296. + need_lib_prefix=no
  43297. + need_version=no
  43298. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  43299. + shlibpath_var=LD_LIBRARY_PATH
  43300. + shlibpath_overrides_runpath=no
  43301. + hardcode_into_libs=yes
  43302. + ;;
  43303. +
  43304. uts4*)
  43305. version_type=linux
  43306. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  43307. @@ -19159,8 +10162,8 @@
  43308. dynamic_linker=no
  43309. ;;
  43310. esac
  43311. -{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
  43312. -echo "${ECHO_T}$dynamic_linker" >&6; }
  43313. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  43314. +$as_echo "$dynamic_linker" >&6; }
  43315. test "$dynamic_linker" = no && can_build_shared=no
  43316. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  43317. @@ -19168,932 +10171,724 @@
  43318. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  43319. fi
  43320. -{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
  43321. -echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
  43322. -hardcode_action_GCJ=
  43323. -if test -n "$hardcode_libdir_flag_spec_GCJ" || \
  43324. - test -n "$runpath_var_GCJ" || \
  43325. - test "X$hardcode_automatic_GCJ" = "Xyes" ; then
  43326. -
  43327. - # We can hardcode non-existant directories.
  43328. - if test "$hardcode_direct_GCJ" != no &&
  43329. - # If the only mechanism to avoid hardcoding is shlibpath_var, we
  43330. - # have to relink, otherwise we might link with an installed library
  43331. - # when we should be linking with a yet-to-be-installed one
  43332. - ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
  43333. - test "$hardcode_minus_L_GCJ" != no; then
  43334. - # Linking always hardcodes the temporary library directory.
  43335. - hardcode_action_GCJ=relink
  43336. - else
  43337. - # We can link without hardcoding, and we can hardcode nonexisting dirs.
  43338. - hardcode_action_GCJ=immediate
  43339. - fi
  43340. -else
  43341. - # We cannot hardcode anything, or else we can only hardcode existing
  43342. - # directories.
  43343. - hardcode_action_GCJ=unsupported
  43344. +if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  43345. + sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  43346. fi
  43347. -{ echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
  43348. -echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
  43349. -
  43350. -if test "$hardcode_action_GCJ" = relink; then
  43351. - # Fast installation is not supported
  43352. - enable_fast_install=no
  43353. -elif test "$shlibpath_overrides_runpath" = yes ||
  43354. - test "$enable_shared" = no; then
  43355. - # Fast installation is not necessary
  43356. - enable_fast_install=needless
  43357. +if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  43358. + sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  43359. fi
  43360. -# The else clause should only fire when bootstrapping the
  43361. -# libtool distribution, otherwise you forgot to ship ltmain.sh
  43362. -# with your package, and you will get complaints that there are
  43363. -# no rules to generate ltmain.sh.
  43364. -if test -f "$ltmain"; then
  43365. - # See if we are running on zsh, and set the options which allow our commands through
  43366. - # without removal of \ escapes.
  43367. - if test -n "${ZSH_VERSION+set}" ; then
  43368. - setopt NO_GLOB_SUBST
  43369. - fi
  43370. - # Now quote all the things that may contain metacharacters while being
  43371. - # careful not to overquote the AC_SUBSTed values. We take copies of the
  43372. - # variables and quote the copies for generation of the libtool script.
  43373. - for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
  43374. - SED SHELL STRIP \
  43375. - libname_spec library_names_spec soname_spec extract_expsyms_cmds \
  43376. - old_striplib striplib file_magic_cmd finish_cmds finish_eval \
  43377. - deplibs_check_method reload_flag reload_cmds need_locks \
  43378. - lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
  43379. - lt_cv_sys_global_symbol_to_c_name_address \
  43380. - sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  43381. - old_postinstall_cmds old_postuninstall_cmds \
  43382. - compiler_GCJ \
  43383. - CC_GCJ \
  43384. - LD_GCJ \
  43385. - lt_prog_compiler_wl_GCJ \
  43386. - lt_prog_compiler_pic_GCJ \
  43387. - lt_prog_compiler_static_GCJ \
  43388. - lt_prog_compiler_no_builtin_flag_GCJ \
  43389. - export_dynamic_flag_spec_GCJ \
  43390. - thread_safe_flag_spec_GCJ \
  43391. - whole_archive_flag_spec_GCJ \
  43392. - enable_shared_with_static_runtimes_GCJ \
  43393. - old_archive_cmds_GCJ \
  43394. - old_archive_from_new_cmds_GCJ \
  43395. - predep_objects_GCJ \
  43396. - postdep_objects_GCJ \
  43397. - predeps_GCJ \
  43398. - postdeps_GCJ \
  43399. - compiler_lib_search_path_GCJ \
  43400. - archive_cmds_GCJ \
  43401. - archive_expsym_cmds_GCJ \
  43402. - postinstall_cmds_GCJ \
  43403. - postuninstall_cmds_GCJ \
  43404. - old_archive_from_expsyms_cmds_GCJ \
  43405. - allow_undefined_flag_GCJ \
  43406. - no_undefined_flag_GCJ \
  43407. - export_symbols_cmds_GCJ \
  43408. - hardcode_libdir_flag_spec_GCJ \
  43409. - hardcode_libdir_flag_spec_ld_GCJ \
  43410. - hardcode_libdir_separator_GCJ \
  43411. - hardcode_automatic_GCJ \
  43412. - module_cmds_GCJ \
  43413. - module_expsym_cmds_GCJ \
  43414. - lt_cv_prog_compiler_c_o_GCJ \
  43415. - exclude_expsyms_GCJ \
  43416. - include_expsyms_GCJ; do
  43417. -
  43418. - case $var in
  43419. - old_archive_cmds_GCJ | \
  43420. - old_archive_from_new_cmds_GCJ | \
  43421. - archive_cmds_GCJ | \
  43422. - archive_expsym_cmds_GCJ | \
  43423. - module_cmds_GCJ | \
  43424. - module_expsym_cmds_GCJ | \
  43425. - old_archive_from_expsyms_cmds_GCJ | \
  43426. - export_symbols_cmds_GCJ | \
  43427. - extract_expsyms_cmds | reload_cmds | finish_cmds | \
  43428. - postinstall_cmds | postuninstall_cmds | \
  43429. - old_postinstall_cmds | old_postuninstall_cmds | \
  43430. - sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  43431. - # Double-quote double-evaled strings.
  43432. - eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
  43433. - ;;
  43434. - *)
  43435. - eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
  43436. - ;;
  43437. - esac
  43438. - done
  43439. -
  43440. - case $lt_echo in
  43441. - *'\$0 --fallback-echo"')
  43442. - lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
  43443. - ;;
  43444. - esac
  43445. -
  43446. -cfgfile="$ofile"
  43447. -
  43448. - cat <<__EOF__ >> "$cfgfile"
  43449. -# ### BEGIN LIBTOOL TAG CONFIG: $tagname
  43450. -
  43451. -# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  43452. -
  43453. -# Shell to use when invoking shell scripts.
  43454. -SHELL=$lt_SHELL
  43455. -
  43456. -# Whether or not to build shared libraries.
  43457. -build_libtool_libs=$enable_shared
  43458. -
  43459. -# Whether or not to build static libraries.
  43460. -build_old_libs=$enable_static
  43461. -
  43462. -# Whether or not to add -lc for building shared libraries.
  43463. -build_libtool_need_lc=$archive_cmds_need_lc_GCJ
  43464. -
  43465. -# Whether or not to disallow shared libs when runtime libs are static
  43466. -allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
  43467. -
  43468. -# Whether or not to optimize for fast installation.
  43469. -fast_install=$enable_fast_install
  43470. -
  43471. -# The host system.
  43472. -host_alias=$host_alias
  43473. -host=$host
  43474. -host_os=$host_os
  43475. -
  43476. -# The build system.
  43477. -build_alias=$build_alias
  43478. -build=$build
  43479. -build_os=$build_os
  43480. -
  43481. -# An echo program that does not interpret backslashes.
  43482. -echo=$lt_echo
  43483. -
  43484. -# The archiver.
  43485. -AR=$lt_AR
  43486. -AR_FLAGS=$lt_AR_FLAGS
  43487. -
  43488. -# A C compiler.
  43489. -LTCC=$lt_LTCC
  43490. -
  43491. -# LTCC compiler flags.
  43492. -LTCFLAGS=$lt_LTCFLAGS
  43493. -
  43494. -# A language-specific compiler.
  43495. -CC=$lt_compiler_GCJ
  43496. -# Is the compiler the GNU C compiler?
  43497. -with_gcc=$GCC_GCJ
  43498. -# An ERE matcher.
  43499. -EGREP=$lt_EGREP
  43500. -# The linker used to build libraries.
  43501. -LD=$lt_LD_GCJ
  43502. -# Whether we need hard or soft links.
  43503. -LN_S=$lt_LN_S
  43504. -# A BSD-compatible nm program.
  43505. -NM=$lt_NM
  43506. -# A symbol stripping program
  43507. -STRIP=$lt_STRIP
  43508. -# Used to examine libraries when file_magic_cmd begins "file"
  43509. -MAGIC_CMD=$MAGIC_CMD
  43510. -# Used on cygwin: DLL creation program.
  43511. -DLLTOOL="$DLLTOOL"
  43512. -# Used on cygwin: object dumper.
  43513. -OBJDUMP="$OBJDUMP"
  43514. -# Used on cygwin: assembler.
  43515. -AS="$AS"
  43516. -# The name of the directory that contains temporary libtool files.
  43517. -objdir=$objdir
  43518. -# How to create reloadable object files.
  43519. -reload_flag=$lt_reload_flag
  43520. -reload_cmds=$lt_reload_cmds
  43521. -# How to pass a linker flag through the compiler.
  43522. -wl=$lt_lt_prog_compiler_wl_GCJ
  43523. -# Object file suffix (normally "o").
  43524. -objext="$ac_objext"
  43525. -# Old archive suffix (normally "a").
  43526. -libext="$libext"
  43527. -# Shared library suffix (normally ".so").
  43528. -shrext_cmds='$shrext_cmds'
  43529. -# Executable file suffix (normally "").
  43530. -exeext="$exeext"
  43531. -# Additional compiler flags for building library objects.
  43532. -pic_flag=$lt_lt_prog_compiler_pic_GCJ
  43533. -pic_mode=$pic_mode
  43534. -# What is the maximum length of a command?
  43535. -max_cmd_len=$lt_cv_sys_max_cmd_len
  43536. -# Does compiler simultaneously support -c and -o options?
  43537. -compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
  43538. -# Must we lock files when doing compilation?
  43539. -need_locks=$lt_need_locks
  43540. -# Do we need the lib prefix for modules?
  43541. -need_lib_prefix=$need_lib_prefix
  43542. -# Do we need a version for libraries?
  43543. -need_version=$need_version
  43544. -# Whether dlopen is supported.
  43545. -dlopen_support=$enable_dlopen
  43546. -# Whether dlopen of programs is supported.
  43547. -dlopen_self=$enable_dlopen_self
  43548. -# Whether dlopen of statically linked programs is supported.
  43549. -dlopen_self_static=$enable_dlopen_self_static
  43550. -# Compiler flag to prevent dynamic linking.
  43551. -link_static_flag=$lt_lt_prog_compiler_static_GCJ
  43552. -# Compiler flag to turn off builtin functions.
  43553. -no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
  43554. -# Compiler flag to allow reflexive dlopens.
  43555. -export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
  43556. -# Compiler flag to generate shared objects directly from archives.
  43557. -whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
  43558. -# Compiler flag to generate thread-safe objects.
  43559. -thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
  43560. -# Library versioning type.
  43561. -version_type=$version_type
  43562. -# Format of library name prefix.
  43563. -libname_spec=$lt_libname_spec
  43564. -# List of archive names. First name is the real one, the rest are links.
  43565. -# The last name is the one that the linker finds with -lNAME.
  43566. -library_names_spec=$lt_library_names_spec
  43567. -# The coded name of the library, if different from the real name.
  43568. -soname_spec=$lt_soname_spec
  43569. -# Commands used to build and install an old-style archive.
  43570. -RANLIB=$lt_RANLIB
  43571. -old_archive_cmds=$lt_old_archive_cmds_GCJ
  43572. -old_postinstall_cmds=$lt_old_postinstall_cmds
  43573. -old_postuninstall_cmds=$lt_old_postuninstall_cmds
  43574. -# Create an old-style archive from a shared archive.
  43575. -old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
  43576. -# Create a temporary old-style archive to link instead of a shared archive.
  43577. -old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
  43578. -# Commands used to build and install a shared archive.
  43579. -archive_cmds=$lt_archive_cmds_GCJ
  43580. -archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
  43581. -postinstall_cmds=$lt_postinstall_cmds
  43582. -postuninstall_cmds=$lt_postuninstall_cmds
  43583. -# Commands used to build a loadable module (assumed same as above if empty)
  43584. -module_cmds=$lt_module_cmds_GCJ
  43585. -module_expsym_cmds=$lt_module_expsym_cmds_GCJ
  43586. -# Commands to strip libraries.
  43587. -old_striplib=$lt_old_striplib
  43588. -striplib=$lt_striplib
  43589. -# Dependencies to place before the objects being linked to create a
  43590. -# shared library.
  43591. -predep_objects=$lt_predep_objects_GCJ
  43592. -
  43593. -# Dependencies to place after the objects being linked to create a
  43594. -# shared library.
  43595. -postdep_objects=$lt_postdep_objects_GCJ
  43596. -
  43597. -# Dependencies to place before the objects being linked to create a
  43598. -# shared library.
  43599. -predeps=$lt_predeps_GCJ
  43600. -
  43601. -# Dependencies to place after the objects being linked to create a
  43602. -# shared library.
  43603. -postdeps=$lt_postdeps_GCJ
  43604. -
  43605. -# The library search path used internally by the compiler when linking
  43606. -# a shared library.
  43607. -compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
  43608. -# Method to check whether dependent libraries are shared objects.
  43609. -deplibs_check_method=$lt_deplibs_check_method
  43610. -# Command to use when deplibs_check_method == file_magic.
  43611. -file_magic_cmd=$lt_file_magic_cmd
  43612. -# Flag that allows shared libraries with undefined symbols to be built.
  43613. -allow_undefined_flag=$lt_allow_undefined_flag_GCJ
  43614. -# Flag that forces no undefined symbols.
  43615. -no_undefined_flag=$lt_no_undefined_flag_GCJ
  43616. -# Commands used to finish a libtool library installation in a directory.
  43617. -finish_cmds=$lt_finish_cmds
  43618. -# Same as above, but a single script fragment to be evaled but not shown.
  43619. -finish_eval=$lt_finish_eval
  43620. -# Take the output of nm and produce a listing of raw symbols and C names.
  43621. -global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  43622. -# Transform the output of nm in a proper C declaration
  43623. -global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  43624. -# Transform the output of nm in a C name address pair
  43625. -global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  43626. -# This is the shared library runtime path variable.
  43627. -runpath_var=$runpath_var
  43628. -# This is the shared library path variable.
  43629. -shlibpath_var=$shlibpath_var
  43630. -# Is shlibpath searched before the hard-coded library search path?
  43631. -shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  43632. -# How to hardcode a shared library path into an executable.
  43633. -hardcode_action=$hardcode_action_GCJ
  43634. -# Whether we should hardcode library paths into libraries.
  43635. -hardcode_into_libs=$hardcode_into_libs
  43636. -# Flag to hardcode \$libdir into a binary during linking.
  43637. -# This must work even if \$libdir does not exist.
  43638. -hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
  43639. -# If ld is used when linking, flag to hardcode \$libdir into
  43640. -# a binary during linking. This must work even if \$libdir does
  43641. -# not exist.
  43642. -hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
  43643. -
  43644. -# Whether we need a single -rpath flag with a separated argument.
  43645. -hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
  43646. -
  43647. -# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
  43648. -# resulting binary.
  43649. -hardcode_direct=$hardcode_direct_GCJ
  43650. -
  43651. -# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  43652. -# resulting binary.
  43653. -hardcode_minus_L=$hardcode_minus_L_GCJ
  43654. -
  43655. -# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
  43656. -# the resulting binary.
  43657. -hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
  43658. -
  43659. -# Set to yes if building a shared library automatically hardcodes DIR into the library
  43660. -# and all subsequent libraries and executables linked against it.
  43661. -hardcode_automatic=$hardcode_automatic_GCJ
  43662. -# Variables whose values should be saved in libtool wrapper scripts and
  43663. -# restored at relink time.
  43664. -variables_saved_for_relink="$variables_saved_for_relink"
  43665. -# Whether libtool must link a program against all its dependency libraries.
  43666. -link_all_deplibs=$link_all_deplibs_GCJ
  43667. -# Compile-time system search path for libraries
  43668. -sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  43669. -# Run-time system search path for libraries
  43670. -sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  43671. -# Fix the shell variable \$srcfile for the compiler.
  43672. -fix_srcfile_path="$fix_srcfile_path_GCJ"
  43673. -# Set to yes if exported symbols are required.
  43674. -always_export_symbols=$always_export_symbols_GCJ
  43675. -# The commands to list exported symbols.
  43676. -export_symbols_cmds=$lt_export_symbols_cmds_GCJ
  43677. -# The commands to extract the exported symbol list from a shared archive.
  43678. -extract_expsyms_cmds=$lt_extract_expsyms_cmds
  43679. -# Symbols that should not be listed in the preloaded symbols.
  43680. -exclude_expsyms=$lt_exclude_expsyms_GCJ
  43681. -# Symbols that must always be exported.
  43682. -include_expsyms=$lt_include_expsyms_GCJ
  43683. -# ### END LIBTOOL TAG CONFIG: $tagname
  43684. -__EOF__
  43685. -else
  43686. - # If there is no Makefile yet, we rely on a make rule to execute
  43687. - # `config.status --recheck' to rerun these tests and create the
  43688. - # libtool script then.
  43689. - ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  43690. - if test -f "$ltmain_in"; then
  43691. - test -f Makefile && make "$ltmain"
  43692. - fi
  43693. -fi
  43694. -ac_ext=c
  43695. -ac_cpp='$CPP $CPPFLAGS'
  43696. -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  43697. -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  43698. -ac_compiler_gnu=$ac_cv_c_compiler_gnu
  43699. -CC="$lt_save_CC"
  43700. - else
  43701. - tagname=""
  43702. - fi
  43703. - ;;
  43704. - RC)
  43705. -# Source file extension for RC test sources.
  43706. -ac_ext=rc
  43707. -# Object file extension for compiled RC test sources.
  43708. -objext=o
  43709. -objext_RC=$objext
  43710. -# Code to be used in simple compile tests
  43711. -lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
  43712. -# Code to be used in simple link tests
  43713. -lt_simple_link_test_code="$lt_simple_compile_test_code"
  43714. -# ltmain only uses $CC for tagged configurations so make sure $CC is set.
  43715. -# If no C compiler was specified, use CC.
  43716. -LTCC=${LTCC-"$CC"}
  43717. -# If no C compiler flags were specified, use CFLAGS.
  43718. -LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  43719. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  43720. +$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  43721. +hardcode_action=
  43722. +if test -n "$hardcode_libdir_flag_spec" ||
  43723. + test -n "$runpath_var" ||
  43724. + test "X$hardcode_automatic" = "Xyes" ; then
  43725. -# Allow CC to be a program name with arguments.
  43726. -compiler=$CC
  43727. + # We can hardcode non-existent directories.
  43728. + if test "$hardcode_direct" != no &&
  43729. + # If the only mechanism to avoid hardcoding is shlibpath_var, we
  43730. + # have to relink, otherwise we might link with an installed library
  43731. + # when we should be linking with a yet-to-be-installed one
  43732. + ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
  43733. + test "$hardcode_minus_L" != no; then
  43734. + # Linking always hardcodes the temporary library directory.
  43735. + hardcode_action=relink
  43736. + else
  43737. + # We can link without hardcoding, and we can hardcode nonexisting dirs.
  43738. + hardcode_action=immediate
  43739. + fi
  43740. +else
  43741. + # We cannot hardcode anything, or else we can only hardcode existing
  43742. + # directories.
  43743. + hardcode_action=unsupported
  43744. +fi
  43745. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
  43746. +$as_echo "$hardcode_action" >&6; }
  43747. +if test "$hardcode_action" = relink ||
  43748. + test "$inherit_rpath" = yes; then
  43749. + # Fast installation is not supported
  43750. + enable_fast_install=no
  43751. +elif test "$shlibpath_overrides_runpath" = yes ||
  43752. + test "$enable_shared" = no; then
  43753. + # Fast installation is not necessary
  43754. + enable_fast_install=needless
  43755. +fi
  43756. -# save warnings/boilerplate of simple test code
  43757. -ac_outfile=conftest.$ac_objext
  43758. -printf "$lt_simple_compile_test_code" >conftest.$ac_ext
  43759. -eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  43760. -_lt_compiler_boilerplate=`cat conftest.err`
  43761. -$rm conftest*
  43762. -ac_outfile=conftest.$ac_objext
  43763. -printf "$lt_simple_link_test_code" >conftest.$ac_ext
  43764. -eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  43765. -_lt_linker_boilerplate=`cat conftest.err`
  43766. -$rm conftest*
  43767. -# Allow CC to be a program name with arguments.
  43768. -lt_save_CC="$CC"
  43769. -CC=${RC-"windres"}
  43770. -compiler=$CC
  43771. -compiler_RC=$CC
  43772. -for cc_temp in $compiler""; do
  43773. - case $cc_temp in
  43774. - compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  43775. - distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  43776. - \-*) ;;
  43777. - *) break;;
  43778. - esac
  43779. -done
  43780. -cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  43781. -lt_cv_prog_compiler_c_o_RC=yes
  43782. -# The else clause should only fire when bootstrapping the
  43783. -# libtool distribution, otherwise you forgot to ship ltmain.sh
  43784. -# with your package, and you will get complaints that there are
  43785. -# no rules to generate ltmain.sh.
  43786. -if test -f "$ltmain"; then
  43787. - # See if we are running on zsh, and set the options which allow our commands through
  43788. - # without removal of \ escapes.
  43789. - if test -n "${ZSH_VERSION+set}" ; then
  43790. - setopt NO_GLOB_SUBST
  43791. - fi
  43792. - # Now quote all the things that may contain metacharacters while being
  43793. - # careful not to overquote the AC_SUBSTed values. We take copies of the
  43794. - # variables and quote the copies for generation of the libtool script.
  43795. - for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
  43796. - SED SHELL STRIP \
  43797. - libname_spec library_names_spec soname_spec extract_expsyms_cmds \
  43798. - old_striplib striplib file_magic_cmd finish_cmds finish_eval \
  43799. - deplibs_check_method reload_flag reload_cmds need_locks \
  43800. - lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
  43801. - lt_cv_sys_global_symbol_to_c_name_address \
  43802. - sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  43803. - old_postinstall_cmds old_postuninstall_cmds \
  43804. - compiler_RC \
  43805. - CC_RC \
  43806. - LD_RC \
  43807. - lt_prog_compiler_wl_RC \
  43808. - lt_prog_compiler_pic_RC \
  43809. - lt_prog_compiler_static_RC \
  43810. - lt_prog_compiler_no_builtin_flag_RC \
  43811. - export_dynamic_flag_spec_RC \
  43812. - thread_safe_flag_spec_RC \
  43813. - whole_archive_flag_spec_RC \
  43814. - enable_shared_with_static_runtimes_RC \
  43815. - old_archive_cmds_RC \
  43816. - old_archive_from_new_cmds_RC \
  43817. - predep_objects_RC \
  43818. - postdep_objects_RC \
  43819. - predeps_RC \
  43820. - postdeps_RC \
  43821. - compiler_lib_search_path_RC \
  43822. - archive_cmds_RC \
  43823. - archive_expsym_cmds_RC \
  43824. - postinstall_cmds_RC \
  43825. - postuninstall_cmds_RC \
  43826. - old_archive_from_expsyms_cmds_RC \
  43827. - allow_undefined_flag_RC \
  43828. - no_undefined_flag_RC \
  43829. - export_symbols_cmds_RC \
  43830. - hardcode_libdir_flag_spec_RC \
  43831. - hardcode_libdir_flag_spec_ld_RC \
  43832. - hardcode_libdir_separator_RC \
  43833. - hardcode_automatic_RC \
  43834. - module_cmds_RC \
  43835. - module_expsym_cmds_RC \
  43836. - lt_cv_prog_compiler_c_o_RC \
  43837. - exclude_expsyms_RC \
  43838. - include_expsyms_RC; do
  43839. -
  43840. - case $var in
  43841. - old_archive_cmds_RC | \
  43842. - old_archive_from_new_cmds_RC | \
  43843. - archive_cmds_RC | \
  43844. - archive_expsym_cmds_RC | \
  43845. - module_cmds_RC | \
  43846. - module_expsym_cmds_RC | \
  43847. - old_archive_from_expsyms_cmds_RC | \
  43848. - export_symbols_cmds_RC | \
  43849. - extract_expsyms_cmds | reload_cmds | finish_cmds | \
  43850. - postinstall_cmds | postuninstall_cmds | \
  43851. - old_postinstall_cmds | old_postuninstall_cmds | \
  43852. - sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  43853. - # Double-quote double-evaled strings.
  43854. - eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
  43855. - ;;
  43856. - *)
  43857. - eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
  43858. - ;;
  43859. - esac
  43860. - done
  43861. + if test "x$enable_dlopen" != xyes; then
  43862. + enable_dlopen=unknown
  43863. + enable_dlopen_self=unknown
  43864. + enable_dlopen_self_static=unknown
  43865. +else
  43866. + lt_cv_dlopen=no
  43867. + lt_cv_dlopen_libs=
  43868. - case $lt_echo in
  43869. - *'\$0 --fallback-echo"')
  43870. - lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
  43871. + case $host_os in
  43872. + beos*)
  43873. + lt_cv_dlopen="load_add_on"
  43874. + lt_cv_dlopen_libs=
  43875. + lt_cv_dlopen_self=yes
  43876. ;;
  43877. - esac
  43878. -
  43879. -cfgfile="$ofile"
  43880. - cat <<__EOF__ >> "$cfgfile"
  43881. -# ### BEGIN LIBTOOL TAG CONFIG: $tagname
  43882. -
  43883. -# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  43884. + mingw* | pw32* | cegcc*)
  43885. + lt_cv_dlopen="LoadLibrary"
  43886. + lt_cv_dlopen_libs=
  43887. + ;;
  43888. -# Shell to use when invoking shell scripts.
  43889. -SHELL=$lt_SHELL
  43890. + cygwin*)
  43891. + lt_cv_dlopen="dlopen"
  43892. + lt_cv_dlopen_libs=
  43893. + ;;
  43894. -# Whether or not to build shared libraries.
  43895. -build_libtool_libs=$enable_shared
  43896. + darwin*)
  43897. + # if libdl is installed we need to link against it
  43898. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  43899. +$as_echo_n "checking for dlopen in -ldl... " >&6; }
  43900. +if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
  43901. + $as_echo_n "(cached) " >&6
  43902. +else
  43903. + ac_check_lib_save_LIBS=$LIBS
  43904. +LIBS="-ldl $LIBS"
  43905. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  43906. +/* end confdefs.h. */
  43907. -# Whether or not to build static libraries.
  43908. -build_old_libs=$enable_static
  43909. +/* Override any GCC internal prototype to avoid an error.
  43910. + Use char because int might match the return type of a GCC
  43911. + builtin and then its argument prototype would still apply. */
  43912. +#ifdef __cplusplus
  43913. +extern "C"
  43914. +#endif
  43915. +char dlopen ();
  43916. +int
  43917. +main ()
  43918. +{
  43919. +return dlopen ();
  43920. + ;
  43921. + return 0;
  43922. +}
  43923. +_ACEOF
  43924. +if ac_fn_c_try_link "$LINENO"; then :
  43925. + ac_cv_lib_dl_dlopen=yes
  43926. +else
  43927. + ac_cv_lib_dl_dlopen=no
  43928. +fi
  43929. +rm -f core conftest.err conftest.$ac_objext \
  43930. + conftest$ac_exeext conftest.$ac_ext
  43931. +LIBS=$ac_check_lib_save_LIBS
  43932. +fi
  43933. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  43934. +$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  43935. +if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
  43936. + lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  43937. +else
  43938. -# Whether or not to add -lc for building shared libraries.
  43939. -build_libtool_need_lc=$archive_cmds_need_lc_RC
  43940. + lt_cv_dlopen="dyld"
  43941. + lt_cv_dlopen_libs=
  43942. + lt_cv_dlopen_self=yes
  43943. -# Whether or not to disallow shared libs when runtime libs are static
  43944. -allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
  43945. +fi
  43946. -# Whether or not to optimize for fast installation.
  43947. -fast_install=$enable_fast_install
  43948. + ;;
  43949. -# The host system.
  43950. -host_alias=$host_alias
  43951. -host=$host
  43952. -host_os=$host_os
  43953. + *)
  43954. + ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
  43955. +if test "x$ac_cv_func_shl_load" = x""yes; then :
  43956. + lt_cv_dlopen="shl_load"
  43957. +else
  43958. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
  43959. +$as_echo_n "checking for shl_load in -ldld... " >&6; }
  43960. +if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
  43961. + $as_echo_n "(cached) " >&6
  43962. +else
  43963. + ac_check_lib_save_LIBS=$LIBS
  43964. +LIBS="-ldld $LIBS"
  43965. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  43966. +/* end confdefs.h. */
  43967. -# The build system.
  43968. -build_alias=$build_alias
  43969. -build=$build
  43970. -build_os=$build_os
  43971. +/* Override any GCC internal prototype to avoid an error.
  43972. + Use char because int might match the return type of a GCC
  43973. + builtin and then its argument prototype would still apply. */
  43974. +#ifdef __cplusplus
  43975. +extern "C"
  43976. +#endif
  43977. +char shl_load ();
  43978. +int
  43979. +main ()
  43980. +{
  43981. +return shl_load ();
  43982. + ;
  43983. + return 0;
  43984. +}
  43985. +_ACEOF
  43986. +if ac_fn_c_try_link "$LINENO"; then :
  43987. + ac_cv_lib_dld_shl_load=yes
  43988. +else
  43989. + ac_cv_lib_dld_shl_load=no
  43990. +fi
  43991. +rm -f core conftest.err conftest.$ac_objext \
  43992. + conftest$ac_exeext conftest.$ac_ext
  43993. +LIBS=$ac_check_lib_save_LIBS
  43994. +fi
  43995. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
  43996. +$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
  43997. +if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
  43998. + lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
  43999. +else
  44000. + ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
  44001. +if test "x$ac_cv_func_dlopen" = x""yes; then :
  44002. + lt_cv_dlopen="dlopen"
  44003. +else
  44004. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  44005. +$as_echo_n "checking for dlopen in -ldl... " >&6; }
  44006. +if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
  44007. + $as_echo_n "(cached) " >&6
  44008. +else
  44009. + ac_check_lib_save_LIBS=$LIBS
  44010. +LIBS="-ldl $LIBS"
  44011. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  44012. +/* end confdefs.h. */
  44013. -# An echo program that does not interpret backslashes.
  44014. -echo=$lt_echo
  44015. +/* Override any GCC internal prototype to avoid an error.
  44016. + Use char because int might match the return type of a GCC
  44017. + builtin and then its argument prototype would still apply. */
  44018. +#ifdef __cplusplus
  44019. +extern "C"
  44020. +#endif
  44021. +char dlopen ();
  44022. +int
  44023. +main ()
  44024. +{
  44025. +return dlopen ();
  44026. + ;
  44027. + return 0;
  44028. +}
  44029. +_ACEOF
  44030. +if ac_fn_c_try_link "$LINENO"; then :
  44031. + ac_cv_lib_dl_dlopen=yes
  44032. +else
  44033. + ac_cv_lib_dl_dlopen=no
  44034. +fi
  44035. +rm -f core conftest.err conftest.$ac_objext \
  44036. + conftest$ac_exeext conftest.$ac_ext
  44037. +LIBS=$ac_check_lib_save_LIBS
  44038. +fi
  44039. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  44040. +$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  44041. +if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
  44042. + lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  44043. +else
  44044. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
  44045. +$as_echo_n "checking for dlopen in -lsvld... " >&6; }
  44046. +if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
  44047. + $as_echo_n "(cached) " >&6
  44048. +else
  44049. + ac_check_lib_save_LIBS=$LIBS
  44050. +LIBS="-lsvld $LIBS"
  44051. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  44052. +/* end confdefs.h. */
  44053. -# The archiver.
  44054. -AR=$lt_AR
  44055. -AR_FLAGS=$lt_AR_FLAGS
  44056. +/* Override any GCC internal prototype to avoid an error.
  44057. + Use char because int might match the return type of a GCC
  44058. + builtin and then its argument prototype would still apply. */
  44059. +#ifdef __cplusplus
  44060. +extern "C"
  44061. +#endif
  44062. +char dlopen ();
  44063. +int
  44064. +main ()
  44065. +{
  44066. +return dlopen ();
  44067. + ;
  44068. + return 0;
  44069. +}
  44070. +_ACEOF
  44071. +if ac_fn_c_try_link "$LINENO"; then :
  44072. + ac_cv_lib_svld_dlopen=yes
  44073. +else
  44074. + ac_cv_lib_svld_dlopen=no
  44075. +fi
  44076. +rm -f core conftest.err conftest.$ac_objext \
  44077. + conftest$ac_exeext conftest.$ac_ext
  44078. +LIBS=$ac_check_lib_save_LIBS
  44079. +fi
  44080. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
  44081. +$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
  44082. +if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
  44083. + lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  44084. +else
  44085. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
  44086. +$as_echo_n "checking for dld_link in -ldld... " >&6; }
  44087. +if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
  44088. + $as_echo_n "(cached) " >&6
  44089. +else
  44090. + ac_check_lib_save_LIBS=$LIBS
  44091. +LIBS="-ldld $LIBS"
  44092. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  44093. +/* end confdefs.h. */
  44094. -# A C compiler.
  44095. -LTCC=$lt_LTCC
  44096. +/* Override any GCC internal prototype to avoid an error.
  44097. + Use char because int might match the return type of a GCC
  44098. + builtin and then its argument prototype would still apply. */
  44099. +#ifdef __cplusplus
  44100. +extern "C"
  44101. +#endif
  44102. +char dld_link ();
  44103. +int
  44104. +main ()
  44105. +{
  44106. +return dld_link ();
  44107. + ;
  44108. + return 0;
  44109. +}
  44110. +_ACEOF
  44111. +if ac_fn_c_try_link "$LINENO"; then :
  44112. + ac_cv_lib_dld_dld_link=yes
  44113. +else
  44114. + ac_cv_lib_dld_dld_link=no
  44115. +fi
  44116. +rm -f core conftest.err conftest.$ac_objext \
  44117. + conftest$ac_exeext conftest.$ac_ext
  44118. +LIBS=$ac_check_lib_save_LIBS
  44119. +fi
  44120. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
  44121. +$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
  44122. +if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
  44123. + lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
  44124. +fi
  44125. -# LTCC compiler flags.
  44126. -LTCFLAGS=$lt_LTCFLAGS
  44127. -# A language-specific compiler.
  44128. -CC=$lt_compiler_RC
  44129. +fi
  44130. -# Is the compiler the GNU C compiler?
  44131. -with_gcc=$GCC_RC
  44132. -# An ERE matcher.
  44133. -EGREP=$lt_EGREP
  44134. +fi
  44135. -# The linker used to build libraries.
  44136. -LD=$lt_LD_RC
  44137. -# Whether we need hard or soft links.
  44138. -LN_S=$lt_LN_S
  44139. +fi
  44140. -# A BSD-compatible nm program.
  44141. -NM=$lt_NM
  44142. -# A symbol stripping program
  44143. -STRIP=$lt_STRIP
  44144. +fi
  44145. -# Used to examine libraries when file_magic_cmd begins "file"
  44146. -MAGIC_CMD=$MAGIC_CMD
  44147. -# Used on cygwin: DLL creation program.
  44148. -DLLTOOL="$DLLTOOL"
  44149. +fi
  44150. -# Used on cygwin: object dumper.
  44151. -OBJDUMP="$OBJDUMP"
  44152. + ;;
  44153. + esac
  44154. -# Used on cygwin: assembler.
  44155. -AS="$AS"
  44156. + if test "x$lt_cv_dlopen" != xno; then
  44157. + enable_dlopen=yes
  44158. + else
  44159. + enable_dlopen=no
  44160. + fi
  44161. -# The name of the directory that contains temporary libtool files.
  44162. -objdir=$objdir
  44163. + case $lt_cv_dlopen in
  44164. + dlopen)
  44165. + save_CPPFLAGS="$CPPFLAGS"
  44166. + test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  44167. -# How to create reloadable object files.
  44168. -reload_flag=$lt_reload_flag
  44169. -reload_cmds=$lt_reload_cmds
  44170. + save_LDFLAGS="$LDFLAGS"
  44171. + wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  44172. -# How to pass a linker flag through the compiler.
  44173. -wl=$lt_lt_prog_compiler_wl_RC
  44174. + save_LIBS="$LIBS"
  44175. + LIBS="$lt_cv_dlopen_libs $LIBS"
  44176. -# Object file suffix (normally "o").
  44177. -objext="$ac_objext"
  44178. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
  44179. +$as_echo_n "checking whether a program can dlopen itself... " >&6; }
  44180. +if test "${lt_cv_dlopen_self+set}" = set; then :
  44181. + $as_echo_n "(cached) " >&6
  44182. +else
  44183. + if test "$cross_compiling" = yes; then :
  44184. + lt_cv_dlopen_self=cross
  44185. +else
  44186. + lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  44187. + lt_status=$lt_dlunknown
  44188. + cat > conftest.$ac_ext <<_LT_EOF
  44189. +#line 10597 "configure"
  44190. +#include "confdefs.h"
  44191. -# Old archive suffix (normally "a").
  44192. -libext="$libext"
  44193. +#if HAVE_DLFCN_H
  44194. +#include <dlfcn.h>
  44195. +#endif
  44196. -# Shared library suffix (normally ".so").
  44197. -shrext_cmds='$shrext_cmds'
  44198. +#include <stdio.h>
  44199. -# Executable file suffix (normally "").
  44200. -exeext="$exeext"
  44201. +#ifdef RTLD_GLOBAL
  44202. +# define LT_DLGLOBAL RTLD_GLOBAL
  44203. +#else
  44204. +# ifdef DL_GLOBAL
  44205. +# define LT_DLGLOBAL DL_GLOBAL
  44206. +# else
  44207. +# define LT_DLGLOBAL 0
  44208. +# endif
  44209. +#endif
  44210. -# Additional compiler flags for building library objects.
  44211. -pic_flag=$lt_lt_prog_compiler_pic_RC
  44212. -pic_mode=$pic_mode
  44213. +/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  44214. + find out it does not work in some platform. */
  44215. +#ifndef LT_DLLAZY_OR_NOW
  44216. +# ifdef RTLD_LAZY
  44217. +# define LT_DLLAZY_OR_NOW RTLD_LAZY
  44218. +# else
  44219. +# ifdef DL_LAZY
  44220. +# define LT_DLLAZY_OR_NOW DL_LAZY
  44221. +# else
  44222. +# ifdef RTLD_NOW
  44223. +# define LT_DLLAZY_OR_NOW RTLD_NOW
  44224. +# else
  44225. +# ifdef DL_NOW
  44226. +# define LT_DLLAZY_OR_NOW DL_NOW
  44227. +# else
  44228. +# define LT_DLLAZY_OR_NOW 0
  44229. +# endif
  44230. +# endif
  44231. +# endif
  44232. +# endif
  44233. +#endif
  44234. -# What is the maximum length of a command?
  44235. -max_cmd_len=$lt_cv_sys_max_cmd_len
  44236. +void fnord() { int i=42;}
  44237. +int main ()
  44238. +{
  44239. + void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  44240. + int status = $lt_dlunknown;
  44241. -# Does compiler simultaneously support -c and -o options?
  44242. -compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
  44243. + if (self)
  44244. + {
  44245. + if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  44246. + else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  44247. + /* dlclose (self); */
  44248. + }
  44249. + else
  44250. + puts (dlerror ());
  44251. -# Must we lock files when doing compilation?
  44252. -need_locks=$lt_need_locks
  44253. + return status;
  44254. +}
  44255. +_LT_EOF
  44256. + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  44257. + (eval $ac_link) 2>&5
  44258. + ac_status=$?
  44259. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  44260. + test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  44261. + (./conftest; exit; ) >&5 2>/dev/null
  44262. + lt_status=$?
  44263. + case x$lt_status in
  44264. + x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  44265. + x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  44266. + x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  44267. + esac
  44268. + else :
  44269. + # compilation failed
  44270. + lt_cv_dlopen_self=no
  44271. + fi
  44272. +fi
  44273. +rm -fr conftest*
  44274. -# Do we need the lib prefix for modules?
  44275. -need_lib_prefix=$need_lib_prefix
  44276. -# Do we need a version for libraries?
  44277. -need_version=$need_version
  44278. +fi
  44279. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
  44280. +$as_echo "$lt_cv_dlopen_self" >&6; }
  44281. -# Whether dlopen is supported.
  44282. -dlopen_support=$enable_dlopen
  44283. + if test "x$lt_cv_dlopen_self" = xyes; then
  44284. + wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  44285. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
  44286. +$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
  44287. +if test "${lt_cv_dlopen_self_static+set}" = set; then :
  44288. + $as_echo_n "(cached) " >&6
  44289. +else
  44290. + if test "$cross_compiling" = yes; then :
  44291. + lt_cv_dlopen_self_static=cross
  44292. +else
  44293. + lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  44294. + lt_status=$lt_dlunknown
  44295. + cat > conftest.$ac_ext <<_LT_EOF
  44296. +#line 10693 "configure"
  44297. +#include "confdefs.h"
  44298. -# Whether dlopen of programs is supported.
  44299. -dlopen_self=$enable_dlopen_self
  44300. +#if HAVE_DLFCN_H
  44301. +#include <dlfcn.h>
  44302. +#endif
  44303. -# Whether dlopen of statically linked programs is supported.
  44304. -dlopen_self_static=$enable_dlopen_self_static
  44305. +#include <stdio.h>
  44306. -# Compiler flag to prevent dynamic linking.
  44307. -link_static_flag=$lt_lt_prog_compiler_static_RC
  44308. +#ifdef RTLD_GLOBAL
  44309. +# define LT_DLGLOBAL RTLD_GLOBAL
  44310. +#else
  44311. +# ifdef DL_GLOBAL
  44312. +# define LT_DLGLOBAL DL_GLOBAL
  44313. +# else
  44314. +# define LT_DLGLOBAL 0
  44315. +# endif
  44316. +#endif
  44317. -# Compiler flag to turn off builtin functions.
  44318. -no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
  44319. +/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  44320. + find out it does not work in some platform. */
  44321. +#ifndef LT_DLLAZY_OR_NOW
  44322. +# ifdef RTLD_LAZY
  44323. +# define LT_DLLAZY_OR_NOW RTLD_LAZY
  44324. +# else
  44325. +# ifdef DL_LAZY
  44326. +# define LT_DLLAZY_OR_NOW DL_LAZY
  44327. +# else
  44328. +# ifdef RTLD_NOW
  44329. +# define LT_DLLAZY_OR_NOW RTLD_NOW
  44330. +# else
  44331. +# ifdef DL_NOW
  44332. +# define LT_DLLAZY_OR_NOW DL_NOW
  44333. +# else
  44334. +# define LT_DLLAZY_OR_NOW 0
  44335. +# endif
  44336. +# endif
  44337. +# endif
  44338. +# endif
  44339. +#endif
  44340. -# Compiler flag to allow reflexive dlopens.
  44341. -export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
  44342. +void fnord() { int i=42;}
  44343. +int main ()
  44344. +{
  44345. + void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  44346. + int status = $lt_dlunknown;
  44347. -# Compiler flag to generate shared objects directly from archives.
  44348. -whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
  44349. + if (self)
  44350. + {
  44351. + if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  44352. + else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  44353. + /* dlclose (self); */
  44354. + }
  44355. + else
  44356. + puts (dlerror ());
  44357. -# Compiler flag to generate thread-safe objects.
  44358. -thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
  44359. + return status;
  44360. +}
  44361. +_LT_EOF
  44362. + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  44363. + (eval $ac_link) 2>&5
  44364. + ac_status=$?
  44365. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  44366. + test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  44367. + (./conftest; exit; ) >&5 2>/dev/null
  44368. + lt_status=$?
  44369. + case x$lt_status in
  44370. + x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  44371. + x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  44372. + x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  44373. + esac
  44374. + else :
  44375. + # compilation failed
  44376. + lt_cv_dlopen_self_static=no
  44377. + fi
  44378. +fi
  44379. +rm -fr conftest*
  44380. -# Library versioning type.
  44381. -version_type=$version_type
  44382. -# Format of library name prefix.
  44383. -libname_spec=$lt_libname_spec
  44384. +fi
  44385. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
  44386. +$as_echo "$lt_cv_dlopen_self_static" >&6; }
  44387. + fi
  44388. -# List of archive names. First name is the real one, the rest are links.
  44389. -# The last name is the one that the linker finds with -lNAME.
  44390. -library_names_spec=$lt_library_names_spec
  44391. + CPPFLAGS="$save_CPPFLAGS"
  44392. + LDFLAGS="$save_LDFLAGS"
  44393. + LIBS="$save_LIBS"
  44394. + ;;
  44395. + esac
  44396. -# The coded name of the library, if different from the real name.
  44397. -soname_spec=$lt_soname_spec
  44398. + case $lt_cv_dlopen_self in
  44399. + yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  44400. + *) enable_dlopen_self=unknown ;;
  44401. + esac
  44402. -# Commands used to build and install an old-style archive.
  44403. -RANLIB=$lt_RANLIB
  44404. -old_archive_cmds=$lt_old_archive_cmds_RC
  44405. -old_postinstall_cmds=$lt_old_postinstall_cmds
  44406. -old_postuninstall_cmds=$lt_old_postuninstall_cmds
  44407. + case $lt_cv_dlopen_self_static in
  44408. + yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  44409. + *) enable_dlopen_self_static=unknown ;;
  44410. + esac
  44411. +fi
  44412. -# Create an old-style archive from a shared archive.
  44413. -old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
  44414. -# Create a temporary old-style archive to link instead of a shared archive.
  44415. -old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
  44416. -# Commands used to build and install a shared archive.
  44417. -archive_cmds=$lt_archive_cmds_RC
  44418. -archive_expsym_cmds=$lt_archive_expsym_cmds_RC
  44419. -postinstall_cmds=$lt_postinstall_cmds
  44420. -postuninstall_cmds=$lt_postuninstall_cmds
  44421. -# Commands used to build a loadable module (assumed same as above if empty)
  44422. -module_cmds=$lt_module_cmds_RC
  44423. -module_expsym_cmds=$lt_module_expsym_cmds_RC
  44424. -# Commands to strip libraries.
  44425. -old_striplib=$lt_old_striplib
  44426. -striplib=$lt_striplib
  44427. -# Dependencies to place before the objects being linked to create a
  44428. -# shared library.
  44429. -predep_objects=$lt_predep_objects_RC
  44430. -
  44431. -# Dependencies to place after the objects being linked to create a
  44432. -# shared library.
  44433. -postdep_objects=$lt_postdep_objects_RC
  44434. -
  44435. -# Dependencies to place before the objects being linked to create a
  44436. -# shared library.
  44437. -predeps=$lt_predeps_RC
  44438. -
  44439. -# Dependencies to place after the objects being linked to create a
  44440. -# shared library.
  44441. -postdeps=$lt_postdeps_RC
  44442. -
  44443. -# The library search path used internally by the compiler when linking
  44444. -# a shared library.
  44445. -compiler_lib_search_path=$lt_compiler_lib_search_path_RC
  44446. -# Method to check whether dependent libraries are shared objects.
  44447. -deplibs_check_method=$lt_deplibs_check_method
  44448. -# Command to use when deplibs_check_method == file_magic.
  44449. -file_magic_cmd=$lt_file_magic_cmd
  44450. -# Flag that allows shared libraries with undefined symbols to be built.
  44451. -allow_undefined_flag=$lt_allow_undefined_flag_RC
  44452. -# Flag that forces no undefined symbols.
  44453. -no_undefined_flag=$lt_no_undefined_flag_RC
  44454. -# Commands used to finish a libtool library installation in a directory.
  44455. -finish_cmds=$lt_finish_cmds
  44456. -# Same as above, but a single script fragment to be evaled but not shown.
  44457. -finish_eval=$lt_finish_eval
  44458. -# Take the output of nm and produce a listing of raw symbols and C names.
  44459. -global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  44460. -# Transform the output of nm in a proper C declaration
  44461. -global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  44462. -# Transform the output of nm in a C name address pair
  44463. -global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  44464. -# This is the shared library runtime path variable.
  44465. -runpath_var=$runpath_var
  44466. -# This is the shared library path variable.
  44467. -shlibpath_var=$shlibpath_var
  44468. +striplib=
  44469. +old_striplib=
  44470. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
  44471. +$as_echo_n "checking whether stripping libraries is possible... " >&6; }
  44472. +if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  44473. + test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  44474. + test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  44475. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  44476. +$as_echo "yes" >&6; }
  44477. +else
  44478. +# FIXME - insert some real tests, host_os isn't really good enough
  44479. + case $host_os in
  44480. + darwin*)
  44481. + if test -n "$STRIP" ; then
  44482. + striplib="$STRIP -x"
  44483. + old_striplib="$STRIP -S"
  44484. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  44485. +$as_echo "yes" >&6; }
  44486. + else
  44487. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  44488. +$as_echo "no" >&6; }
  44489. + fi
  44490. + ;;
  44491. + *)
  44492. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  44493. +$as_echo "no" >&6; }
  44494. + ;;
  44495. + esac
  44496. +fi
  44497. -# Is shlibpath searched before the hard-coded library search path?
  44498. -shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  44499. -# How to hardcode a shared library path into an executable.
  44500. -hardcode_action=$hardcode_action_RC
  44501. -# Whether we should hardcode library paths into libraries.
  44502. -hardcode_into_libs=$hardcode_into_libs
  44503. -# Flag to hardcode \$libdir into a binary during linking.
  44504. -# This must work even if \$libdir does not exist.
  44505. -hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
  44506. -# If ld is used when linking, flag to hardcode \$libdir into
  44507. -# a binary during linking. This must work even if \$libdir does
  44508. -# not exist.
  44509. -hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
  44510. -
  44511. -# Whether we need a single -rpath flag with a separated argument.
  44512. -hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
  44513. -
  44514. -# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
  44515. -# resulting binary.
  44516. -hardcode_direct=$hardcode_direct_RC
  44517. -
  44518. -# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  44519. -# resulting binary.
  44520. -hardcode_minus_L=$hardcode_minus_L_RC
  44521. -
  44522. -# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
  44523. -# the resulting binary.
  44524. -hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
  44525. -
  44526. -# Set to yes if building a shared library automatically hardcodes DIR into the library
  44527. -# and all subsequent libraries and executables linked against it.
  44528. -hardcode_automatic=$hardcode_automatic_RC
  44529. -# Variables whose values should be saved in libtool wrapper scripts and
  44530. -# restored at relink time.
  44531. -variables_saved_for_relink="$variables_saved_for_relink"
  44532. -# Whether libtool must link a program against all its dependency libraries.
  44533. -link_all_deplibs=$link_all_deplibs_RC
  44534. -# Compile-time system search path for libraries
  44535. -sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  44536. -# Run-time system search path for libraries
  44537. -sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  44538. -# Fix the shell variable \$srcfile for the compiler.
  44539. -fix_srcfile_path="$fix_srcfile_path_RC"
  44540. -# Set to yes if exported symbols are required.
  44541. -always_export_symbols=$always_export_symbols_RC
  44542. -# The commands to list exported symbols.
  44543. -export_symbols_cmds=$lt_export_symbols_cmds_RC
  44544. + # Report which library types will actually be built
  44545. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
  44546. +$as_echo_n "checking if libtool supports shared libraries... " >&6; }
  44547. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
  44548. +$as_echo "$can_build_shared" >&6; }
  44549. -# The commands to extract the exported symbol list from a shared archive.
  44550. -extract_expsyms_cmds=$lt_extract_expsyms_cmds
  44551. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
  44552. +$as_echo_n "checking whether to build shared libraries... " >&6; }
  44553. + test "$can_build_shared" = "no" && enable_shared=no
  44554. +
  44555. + # On AIX, shared libraries and static libraries use the same namespace, and
  44556. + # are all built from PIC.
  44557. + case $host_os in
  44558. + aix3*)
  44559. + test "$enable_shared" = yes && enable_static=no
  44560. + if test -n "$RANLIB"; then
  44561. + archive_cmds="$archive_cmds~\$RANLIB \$lib"
  44562. + postinstall_cmds='$RANLIB $lib'
  44563. + fi
  44564. + ;;
  44565. -# Symbols that should not be listed in the preloaded symbols.
  44566. -exclude_expsyms=$lt_exclude_expsyms_RC
  44567. + aix[4-9]*)
  44568. + if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  44569. + test "$enable_shared" = yes && enable_static=no
  44570. + fi
  44571. + ;;
  44572. + esac
  44573. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
  44574. +$as_echo "$enable_shared" >&6; }
  44575. -# Symbols that must always be exported.
  44576. -include_expsyms=$lt_include_expsyms_RC
  44577. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
  44578. +$as_echo_n "checking whether to build static libraries... " >&6; }
  44579. + # Make sure either enable_shared or enable_static is yes.
  44580. + test "$enable_shared" = yes || enable_static=yes
  44581. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
  44582. +$as_echo "$enable_static" >&6; }
  44583. -# ### END LIBTOOL TAG CONFIG: $tagname
  44584. -__EOF__
  44585. -else
  44586. - # If there is no Makefile yet, we rely on a make rule to execute
  44587. - # `config.status --recheck' to rerun these tests and create the
  44588. - # libtool script then.
  44589. - ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  44590. - if test -f "$ltmain_in"; then
  44591. - test -f Makefile && make "$ltmain"
  44592. - fi
  44593. fi
  44594. -
  44595. -
  44596. ac_ext=c
  44597. ac_cpp='$CPP $CPPFLAGS'
  44598. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  44599. @@ -20102,4098 +10897,3551 @@
  44600. CC="$lt_save_CC"
  44601. - ;;
  44602. - *)
  44603. - { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
  44604. -echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
  44605. - { (exit 1); exit 1; }; }
  44606. - ;;
  44607. - esac
  44608. - # Append the new tag name to the list of available tags.
  44609. - if test -n "$tagname" ; then
  44610. - available_tags="$available_tags $tagname"
  44611. - fi
  44612. - fi
  44613. - done
  44614. - IFS="$lt_save_ifs"
  44615. - # Now substitute the updated list of available tags.
  44616. - if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
  44617. - mv "${ofile}T" "$ofile"
  44618. - chmod +x "$ofile"
  44619. - else
  44620. - rm -f "${ofile}T"
  44621. - { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
  44622. -echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
  44623. - { (exit 1); exit 1; }; }
  44624. - fi
  44625. -fi
  44626. -# This can be used to rebuild libtool when needed
  44627. -LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
  44628. -# Always use our own libtool.
  44629. -LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  44630. -# Prevent multiple expansion
  44631. + ac_config_commands="$ac_config_commands libtool"
  44632. +# Only expand once:
  44633. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  44634. +$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  44635. +set x ${MAKE-make}
  44636. +ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  44637. +if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
  44638. + $as_echo_n "(cached) " >&6
  44639. +else
  44640. + cat >conftest.make <<\_ACEOF
  44641. +SHELL = /bin/sh
  44642. +all:
  44643. + @echo '@@@%%%=$(MAKE)=@@@%%%'
  44644. +_ACEOF
  44645. +# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  44646. +case `${MAKE-make} -f conftest.make 2>/dev/null` in
  44647. + *@@@%%%=?*=@@@%%%*)
  44648. + eval ac_cv_prog_make_${ac_make}_set=yes;;
  44649. + *)
  44650. + eval ac_cv_prog_make_${ac_make}_set=no;;
  44651. +esac
  44652. +rm -f conftest.make
  44653. +fi
  44654. +if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  44655. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  44656. +$as_echo "yes" >&6; }
  44657. + SET_MAKE=
  44658. +else
  44659. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  44660. +$as_echo "no" >&6; }
  44661. + SET_MAKE="MAKE=${MAKE-make}"
  44662. +fi
  44663. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  44664. +$as_echo_n "checking for egrep... " >&6; }
  44665. +if test "${ac_cv_path_EGREP+set}" = set; then :
  44666. + $as_echo_n "(cached) " >&6
  44667. +else
  44668. + if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  44669. + then ac_cv_path_EGREP="$GREP -E"
  44670. + else
  44671. + if test -z "$EGREP"; then
  44672. + ac_path_EGREP_found=false
  44673. + # Loop through the user's path and test for each of PROGNAME-LIST
  44674. + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  44675. +for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  44676. +do
  44677. + IFS=$as_save_IFS
  44678. + test -z "$as_dir" && as_dir=.
  44679. + for ac_prog in egrep; do
  44680. + for ac_exec_ext in '' $ac_executable_extensions; do
  44681. + ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  44682. + { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
  44683. +# Check for GNU ac_path_EGREP and select it if it is found.
  44684. + # Check for GNU $ac_path_EGREP
  44685. +case `"$ac_path_EGREP" --version 2>&1` in
  44686. +*GNU*)
  44687. + ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  44688. +*)
  44689. + ac_count=0
  44690. + $as_echo_n 0123456789 >"conftest.in"
  44691. + while :
  44692. + do
  44693. + cat "conftest.in" "conftest.in" >"conftest.tmp"
  44694. + mv "conftest.tmp" "conftest.in"
  44695. + cp "conftest.in" "conftest.nl"
  44696. + $as_echo 'EGREP' >> "conftest.nl"
  44697. + "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  44698. + diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  44699. + as_fn_arith $ac_count + 1 && ac_count=$as_val
  44700. + if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  44701. + # Best one so far, save it but keep looking for a better one
  44702. + ac_cv_path_EGREP="$ac_path_EGREP"
  44703. + ac_path_EGREP_max=$ac_count
  44704. + fi
  44705. + # 10*(2^10) chars as input seems more than enough
  44706. + test $ac_count -gt 10 && break
  44707. + done
  44708. + rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  44709. +esac
  44710. + $ac_path_EGREP_found && break 3
  44711. + done
  44712. + done
  44713. + done
  44714. +IFS=$as_save_IFS
  44715. + if test -z "$ac_cv_path_EGREP"; then
  44716. + as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  44717. + fi
  44718. +else
  44719. + ac_cv_path_EGREP=$EGREP
  44720. +fi
  44721. + fi
  44722. +fi
  44723. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  44724. +$as_echo "$ac_cv_path_EGREP" >&6; }
  44725. + EGREP="$ac_cv_path_EGREP"
  44726. +#
  44727. +# Default compilation flags
  44728. +#
  44729. +echo "--------------------- Default compilation flags -------------------------------"
  44730. +echo host is $host
  44731. +echo host_os is $host_os
  44732. +case $host_os in
  44733. +freebsd*)
  44734. + echo "Using FreeBSD specific compiler settings"
  44735. + # Put FreeBSD specific compiler flags here
  44736. + ;;
  44737. +*)
  44738. + echo "Using non-specific system compiler settings"
  44739. + if test x"$enable_debug" = xyes; then
  44740. + # AC_PROG_CC already sets CFLAGS to "-g -O2" by default
  44741. + #:
  44742. + # Use -O0 in debug so that variables do not get optimized out
  44743. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking CFLAGS for gcc -O0" >&5
  44744. +$as_echo_n "checking CFLAGS for gcc -O0... " >&6; }
  44745. +if test "${ac_cv_cflags_gcc_option__O0+set}" = set; then :
  44746. + $as_echo_n "(cached) " >&6
  44747. +else
  44748. + ac_cv_cflags_gcc_option__O0="no, unknown"
  44749. + ac_ext=c
  44750. +ac_cpp='$CPP $CPPFLAGS'
  44751. +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  44752. +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  44753. +ac_compiler_gnu=$ac_cv_c_compiler_gnu
  44754. + ac_save_CFLAGS="$CFLAGS"
  44755. +for ac_arg in "-pedantic -Werror % -O0" "-pedantic % -O0 %% no, obsolete" #
  44756. +do CFLAGS="$ac_save_CFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
  44757. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  44758. +/* end confdefs.h. */
  44759. -# Find a good install program. We prefer a C program (faster),
  44760. -# so one script is as good as another. But avoid the broken or
  44761. -# incompatible versions:
  44762. -# SysV /etc/install, /usr/sbin/install
  44763. -# SunOS /usr/etc/install
  44764. -# IRIX /sbin/install
  44765. -# AIX /bin/install
  44766. -# AmigaOS /C/install, which installs bootblocks on floppy discs
  44767. -# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  44768. -# AFS /usr/afsws/bin/install, which mishandles nonexistent args
  44769. -# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  44770. -# OS/2's system install, which has a completely different semantic
  44771. -# ./install, which can be erroneously created by make from ./install.sh.
  44772. -{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
  44773. -echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
  44774. -if test -z "$INSTALL"; then
  44775. -if test "${ac_cv_path_install+set}" = set; then
  44776. - echo $ECHO_N "(cached) $ECHO_C" >&6
  44777. +int
  44778. +main ()
  44779. +{
  44780. +return 0;
  44781. + ;
  44782. + return 0;
  44783. +}
  44784. +_ACEOF
  44785. +if ac_fn_c_try_compile "$LINENO"; then :
  44786. + ac_cv_cflags_gcc_option__O0=`echo $ac_arg | sed -e 's,.*% *,,'` ; break
  44787. +fi
  44788. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  44789. +done
  44790. + CFLAGS="$ac_save_CFLAGS"
  44791. + ac_ext=c
  44792. +ac_cpp='$CPP $CPPFLAGS'
  44793. +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  44794. +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  44795. +ac_compiler_gnu=$ac_cv_c_compiler_gnu
  44796. +
  44797. +
  44798. +fi
  44799. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags_gcc_option__O0" >&5
  44800. +$as_echo "$ac_cv_cflags_gcc_option__O0" >&6; }
  44801. +case ".$ac_cv_cflags_gcc_option__O0" in
  44802. + .ok|.ok,*) ;;
  44803. + .|.no|.no,*) ;;
  44804. + *)
  44805. + if echo " $CFLAGS " | grep " $ac_cv_cflags_gcc_option__O0 " 2>&1 >/dev/null
  44806. + then { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS does contain \$ac_cv_cflags_gcc_option__O0"; } >&5
  44807. + (: CFLAGS does contain $ac_cv_cflags_gcc_option__O0) 2>&5
  44808. + ac_status=$?
  44809. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  44810. + test $ac_status = 0; }
  44811. + else { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$ac_cv_cflags_gcc_option__O0\""; } >&5
  44812. + (: CFLAGS="$CFLAGS $ac_cv_cflags_gcc_option__O0") 2>&5
  44813. + ac_status=$?
  44814. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  44815. + test $ac_status = 0; }
  44816. + CFLAGS="$CFLAGS $ac_cv_cflags_gcc_option__O0"
  44817. + fi
  44818. + ;;
  44819. +esac
  44820. +
  44821. + else
  44822. + # add optimise for size
  44823. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking CFLAGS for gcc -Os" >&5
  44824. +$as_echo_n "checking CFLAGS for gcc -Os... " >&6; }
  44825. +if test "${ac_cv_cflags_gcc_option__Os+set}" = set; then :
  44826. + $as_echo_n "(cached) " >&6
  44827. else
  44828. - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  44829. -for as_dir in $PATH
  44830. -do
  44831. - IFS=$as_save_IFS
  44832. - test -z "$as_dir" && as_dir=.
  44833. - # Account for people who put trailing slashes in PATH elements.
  44834. -case $as_dir/ in
  44835. - ./ | .// | /cC/* | \
  44836. - /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  44837. - ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
  44838. - /usr/ucb/* ) ;;
  44839. - *)
  44840. - # OSF1 and SCO ODT 3.0 have their own names for install.
  44841. - # Don't use installbsd from OSF since it installs stuff as root
  44842. - # by default.
  44843. - for ac_prog in ginstall scoinst install; do
  44844. - for ac_exec_ext in '' $ac_executable_extensions; do
  44845. - if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
  44846. - if test $ac_prog = install &&
  44847. - grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  44848. - # AIX install. It has an incompatible calling convention.
  44849. - :
  44850. - elif test $ac_prog = install &&
  44851. - grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  44852. - # program-specific install script used by HP pwplus--don't use.
  44853. - :
  44854. - else
  44855. - ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  44856. - break 3
  44857. - fi
  44858. + ac_cv_cflags_gcc_option__Os="no, unknown"
  44859. +
  44860. + ac_ext=c
  44861. +ac_cpp='$CPP $CPPFLAGS'
  44862. +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  44863. +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  44864. +ac_compiler_gnu=$ac_cv_c_compiler_gnu
  44865. +
  44866. + ac_save_CFLAGS="$CFLAGS"
  44867. +for ac_arg in "-pedantic -Werror % -Os" "-pedantic % -Os %% no, obsolete" #
  44868. +do CFLAGS="$ac_save_CFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
  44869. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  44870. +/* end confdefs.h. */
  44871. +
  44872. +int
  44873. +main ()
  44874. +{
  44875. +return 0;
  44876. + ;
  44877. + return 0;
  44878. +}
  44879. +_ACEOF
  44880. +if ac_fn_c_try_compile "$LINENO"; then :
  44881. + ac_cv_cflags_gcc_option__Os=`echo $ac_arg | sed -e 's,.*% *,,'` ; break
  44882. +fi
  44883. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  44884. +done
  44885. + CFLAGS="$ac_save_CFLAGS"
  44886. + ac_ext=c
  44887. +ac_cpp='$CPP $CPPFLAGS'
  44888. +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  44889. +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  44890. +ac_compiler_gnu=$ac_cv_c_compiler_gnu
  44891. +
  44892. +
  44893. +fi
  44894. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags_gcc_option__Os" >&5
  44895. +$as_echo "$ac_cv_cflags_gcc_option__Os" >&6; }
  44896. +case ".$ac_cv_cflags_gcc_option__Os" in
  44897. + .ok|.ok,*) ;;
  44898. + .|.no|.no,*) ;;
  44899. + *)
  44900. + if echo " $CFLAGS " | grep " $ac_cv_cflags_gcc_option__Os " 2>&1 >/dev/null
  44901. + then { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS does contain \$ac_cv_cflags_gcc_option__Os"; } >&5
  44902. + (: CFLAGS does contain $ac_cv_cflags_gcc_option__Os) 2>&5
  44903. + ac_status=$?
  44904. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  44905. + test $ac_status = 0; }
  44906. + else { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$ac_cv_cflags_gcc_option__Os\""; } >&5
  44907. + (: CFLAGS="$CFLAGS $ac_cv_cflags_gcc_option__Os") 2>&5
  44908. + ac_status=$?
  44909. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  44910. + test $ac_status = 0; }
  44911. + CFLAGS="$CFLAGS $ac_cv_cflags_gcc_option__Os"
  44912. + fi
  44913. + ;;
  44914. +esac
  44915. +
  44916. fi
  44917. - done
  44918. - done
  44919. - ;;
  44920. + ;;
  44921. esac
  44922. -done
  44923. -IFS=$as_save_IFS
  44924. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking CFLAGS for maximum warnings" >&5
  44925. +$as_echo_n "checking CFLAGS for maximum warnings... " >&6; }
  44926. +if test "${ac_cv_cflags_warn_all+set}" = set; then :
  44927. + $as_echo_n "(cached) " >&6
  44928. +else
  44929. + ac_cv_cflags_warn_all="no, unknown"
  44930. +
  44931. + ac_ext=c
  44932. +ac_cpp='$CPP $CPPFLAGS'
  44933. +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  44934. +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  44935. +ac_compiler_gnu=$ac_cv_c_compiler_gnu
  44936. +
  44937. + ac_save_CFLAGS="$CFLAGS"
  44938. +for ac_arg in "-pedantic % -Wall" "-xstrconst % -v" "-std1 % -verbose -w0 -warnprotos" "-qlanglvl=ansi % -qsrcmsg -qinfo=all:noppt:noppc:noobs:nocnd" "-ansi -ansiE % -fullwarn" "+ESlit % +w1" "-Xc % -pvctl,fullmsg" "-h conform % -h msglevel 2" #
  44939. +do CFLAGS="$ac_save_CFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
  44940. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  44941. +/* end confdefs.h. */
  44942. +int
  44943. +main ()
  44944. +{
  44945. +return 0;
  44946. + ;
  44947. + return 0;
  44948. +}
  44949. +_ACEOF
  44950. +if ac_fn_c_try_compile "$LINENO"; then :
  44951. + ac_cv_cflags_warn_all=`echo $ac_arg | sed -e 's,.*% *,,'` ; break
  44952. fi
  44953. - if test "${ac_cv_path_install+set}" = set; then
  44954. - INSTALL=$ac_cv_path_install
  44955. - else
  44956. - # As a last resort, use the slow shell script. Don't cache a
  44957. - # value for INSTALL within a source directory, because that will
  44958. - # break other packages using the cache if that directory is
  44959. - # removed, or if the value is a relative name.
  44960. - INSTALL=$ac_install_sh
  44961. - fi
  44962. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  44963. +done
  44964. + CFLAGS="$ac_save_CFLAGS"
  44965. + ac_ext=c
  44966. +ac_cpp='$CPP $CPPFLAGS'
  44967. +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  44968. +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  44969. +ac_compiler_gnu=$ac_cv_c_compiler_gnu
  44970. +
  44971. +
  44972. fi
  44973. -{ echo "$as_me:$LINENO: result: $INSTALL" >&5
  44974. -echo "${ECHO_T}$INSTALL" >&6; }
  44975. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags_warn_all" >&5
  44976. +$as_echo "$ac_cv_cflags_warn_all" >&6; }
  44977. +case ".$ac_cv_cflags_warn_all" in
  44978. + .ok|.ok,*) ;;
  44979. + .|.no|.no,*)
  44980. + ;;
  44981. + *)
  44982. + if echo " $CFLAGS " | grep " $ac_cv_cflags_warn_all " 2>&1 >/dev/null
  44983. + then { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS does contain \$ac_cv_cflags_warn_all"; } >&5
  44984. + (: CFLAGS does contain $ac_cv_cflags_warn_all) 2>&5
  44985. + ac_status=$?
  44986. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  44987. + test $ac_status = 0; }
  44988. + else { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$ac_cv_cflags_warn_all\""; } >&5
  44989. + (: CFLAGS="$CFLAGS $ac_cv_cflags_warn_all") 2>&5
  44990. + ac_status=$?
  44991. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  44992. + test $ac_status = 0; }
  44993. + CFLAGS="$CFLAGS $ac_cv_cflags_warn_all"
  44994. + fi
  44995. + ;;
  44996. +esac
  44997. -# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  44998. -# It thinks the first close brace ends the variable substitution.
  44999. -test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  45000. +echo "-------------------------------------------------------------------------------"
  45001. -test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  45002. -test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  45003. +#
  45004. +# Lot's of stuff to ensure large file support
  45005. +#
  45006. +ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
  45007. +if test "x$ac_cv_type_size_t" = x""yes; then :
  45008. -{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  45009. -echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
  45010. -set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  45011. -if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
  45012. - echo $ECHO_N "(cached) $ECHO_C" >&6
  45013. else
  45014. - cat >conftest.make <<\_ACEOF
  45015. -SHELL = /bin/sh
  45016. -all:
  45017. - @echo '@@@%%%=$(MAKE)=@@@%%%'
  45018. +
  45019. +cat >>confdefs.h <<_ACEOF
  45020. +#define size_t unsigned int
  45021. _ACEOF
  45022. -# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  45023. -case `${MAKE-make} -f conftest.make 2>/dev/null` in
  45024. - *@@@%%%=?*=@@@%%%*)
  45025. - eval ac_cv_prog_make_${ac_make}_set=yes;;
  45026. - *)
  45027. - eval ac_cv_prog_make_${ac_make}_set=no;;
  45028. -esac
  45029. -rm -f conftest.make
  45030. +
  45031. fi
  45032. -if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  45033. - { echo "$as_me:$LINENO: result: yes" >&5
  45034. -echo "${ECHO_T}yes" >&6; }
  45035. - SET_MAKE=
  45036. +
  45037. +ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
  45038. +if test "x$ac_cv_type_off_t" = x""yes; then :
  45039. +
  45040. else
  45041. - { echo "$as_me:$LINENO: result: no" >&5
  45042. -echo "${ECHO_T}no" >&6; }
  45043. - SET_MAKE="MAKE=${MAKE-make}"
  45044. +
  45045. +cat >>confdefs.h <<_ACEOF
  45046. +#define off_t long int
  45047. +_ACEOF
  45048. +
  45049. fi
  45050. -{ echo "$as_me:$LINENO: checking for egrep" >&5
  45051. -echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
  45052. -if test "${ac_cv_path_EGREP+set}" = set; then
  45053. - echo $ECHO_N "(cached) $ECHO_C" >&6
  45054. -else
  45055. - if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  45056. - then ac_cv_path_EGREP="$GREP -E"
  45057. - else
  45058. - # Extract the first word of "egrep" to use in msg output
  45059. -if test -z "$EGREP"; then
  45060. -set dummy egrep; ac_prog_name=$2
  45061. -if test "${ac_cv_path_EGREP+set}" = set; then
  45062. - echo $ECHO_N "(cached) $ECHO_C" >&6
  45063. -else
  45064. - ac_path_EGREP_found=false
  45065. -# Loop through the user's path and test for each of PROGNAME-LIST
  45066. -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  45067. -for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  45068. -do
  45069. - IFS=$as_save_IFS
  45070. - test -z "$as_dir" && as_dir=.
  45071. - for ac_prog in egrep; do
  45072. - for ac_exec_ext in '' $ac_executable_extensions; do
  45073. - ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  45074. - { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
  45075. - # Check for GNU ac_path_EGREP and select it if it is found.
  45076. - # Check for GNU $ac_path_EGREP
  45077. -case `"$ac_path_EGREP" --version 2>&1` in
  45078. -*GNU*)
  45079. - ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  45080. -*)
  45081. - ac_count=0
  45082. - echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
  45083. - while :
  45084. - do
  45085. - cat "conftest.in" "conftest.in" >"conftest.tmp"
  45086. - mv "conftest.tmp" "conftest.in"
  45087. - cp "conftest.in" "conftest.nl"
  45088. - echo 'EGREP' >> "conftest.nl"
  45089. - "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  45090. - diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  45091. - ac_count=`expr $ac_count + 1`
  45092. - if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  45093. - # Best one so far, save it but keep looking for a better one
  45094. - ac_cv_path_EGREP="$ac_path_EGREP"
  45095. - ac_path_EGREP_max=$ac_count
  45096. - fi
  45097. - # 10*(2^10) chars as input seems more than enough
  45098. - test $ac_count -gt 10 && break
  45099. - done
  45100. - rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  45101. -esac
  45102. +$as_echo "#define _LARGE_FILE_SOURCE /**/" >>confdefs.h
  45103. - $ac_path_EGREP_found && break 3
  45104. - done
  45105. -done
  45106. -done
  45107. -IFS=$as_save_IFS
  45108. +$as_echo "#define _FILE_OFFSET_BITS 64" >>confdefs.h
  45109. -fi
  45110. -EGREP="$ac_cv_path_EGREP"
  45111. -if test -z "$EGREP"; then
  45112. - { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
  45113. -echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
  45114. - { (exit 1); exit 1; }; }
  45115. -fi
  45116. +#
  45117. +# Checks for header files
  45118. +#
  45119. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  45120. +$as_echo_n "checking for ANSI C header files... " >&6; }
  45121. +if test "${ac_cv_header_stdc+set}" = set; then :
  45122. + $as_echo_n "(cached) " >&6
  45123. +else
  45124. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  45125. +/* end confdefs.h. */
  45126. +#include <stdlib.h>
  45127. +#include <stdarg.h>
  45128. +#include <string.h>
  45129. +#include <float.h>
  45130. +
  45131. +int
  45132. +main ()
  45133. +{
  45134. + ;
  45135. + return 0;
  45136. +}
  45137. +_ACEOF
  45138. +if ac_fn_c_try_compile "$LINENO"; then :
  45139. + ac_cv_header_stdc=yes
  45140. else
  45141. - ac_cv_path_EGREP=$EGREP
  45142. + ac_cv_header_stdc=no
  45143. fi
  45144. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  45145. +
  45146. +if test $ac_cv_header_stdc = yes; then
  45147. + # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  45148. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  45149. +/* end confdefs.h. */
  45150. +#include <string.h>
  45151. +_ACEOF
  45152. +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  45153. + $EGREP "memchr" >/dev/null 2>&1; then :
  45154. - fi
  45155. +else
  45156. + ac_cv_header_stdc=no
  45157. fi
  45158. -{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
  45159. -echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
  45160. - EGREP="$ac_cv_path_EGREP"
  45161. +rm -f conftest*
  45162. +fi
  45163. +if test $ac_cv_header_stdc = yes; then
  45164. + # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  45165. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  45166. +/* end confdefs.h. */
  45167. +#include <stdlib.h>
  45168. +
  45169. +_ACEOF
  45170. +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  45171. + $EGREP "free" >/dev/null 2>&1; then :
  45172. -#
  45173. -# Default compilation flags
  45174. -#
  45175. -echo "--------------------- Default compilation flags -------------------------------"
  45176. -echo host is $host
  45177. -echo host_os is $host_os
  45178. -case $host_os in
  45179. -freebsd*)
  45180. - echo "Using FreeBSD specific compiler settings"
  45181. - # Put FreeBSD specific compiler flags here
  45182. - ;;
  45183. -*)
  45184. - echo "Using non-specific system compiler settings"
  45185. - if test x"$enable_debug" = xyes; then
  45186. - # AC_PROG_CC already sets CFLAGS to "-g -O2" by default
  45187. - #:
  45188. - # Use -O0 in debug so that variables do not get optimized out
  45189. - { echo "$as_me:$LINENO: checking CFLAGS for gcc -O0" >&5
  45190. -echo $ECHO_N "checking CFLAGS for gcc -O0... $ECHO_C" >&6; }
  45191. -if test "${ac_cv_cflags_gcc_option__O0+set}" = set; then
  45192. - echo $ECHO_N "(cached) $ECHO_C" >&6
  45193. else
  45194. - ac_cv_cflags_gcc_option__O0="no, unknown"
  45195. + ac_cv_header_stdc=no
  45196. +fi
  45197. +rm -f conftest*
  45198. - ac_ext=c
  45199. -ac_cpp='$CPP $CPPFLAGS'
  45200. -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  45201. -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  45202. -ac_compiler_gnu=$ac_cv_c_compiler_gnu
  45203. +fi
  45204. - ac_save_CFLAGS="$CFLAGS"
  45205. -for ac_arg in "-pedantic -Werror % -O0" "-pedantic % -O0 %% no, obsolete" #
  45206. -do CFLAGS="$ac_save_CFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
  45207. - cat >conftest.$ac_ext <<_ACEOF
  45208. -/* confdefs.h. */
  45209. -_ACEOF
  45210. -cat confdefs.h >>conftest.$ac_ext
  45211. -cat >>conftest.$ac_ext <<_ACEOF
  45212. +if test $ac_cv_header_stdc = yes; then
  45213. + # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  45214. + if test "$cross_compiling" = yes; then :
  45215. + :
  45216. +else
  45217. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  45218. /* end confdefs.h. */
  45219. +#include <ctype.h>
  45220. +#include <stdlib.h>
  45221. +#if ((' ' & 0x0FF) == 0x020)
  45222. +# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  45223. +# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  45224. +#else
  45225. +# define ISLOWER(c) \
  45226. + (('a' <= (c) && (c) <= 'i') \
  45227. + || ('j' <= (c) && (c) <= 'r') \
  45228. + || ('s' <= (c) && (c) <= 'z'))
  45229. +# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  45230. +#endif
  45231. +#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  45232. int
  45233. main ()
  45234. {
  45235. -return 0;
  45236. - ;
  45237. + int i;
  45238. + for (i = 0; i < 256; i++)
  45239. + if (XOR (islower (i), ISLOWER (i))
  45240. + || toupper (i) != TOUPPER (i))
  45241. + return 2;
  45242. return 0;
  45243. }
  45244. _ACEOF
  45245. -rm -f conftest.$ac_objext
  45246. -if { (ac_try="$ac_compile"
  45247. -case "(($ac_try" in
  45248. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  45249. - *) ac_try_echo=$ac_try;;
  45250. -esac
  45251. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  45252. - (eval "$ac_compile") 2>conftest.er1
  45253. - ac_status=$?
  45254. - grep -v '^ *+' conftest.er1 >conftest.err
  45255. - rm -f conftest.er1
  45256. - cat conftest.err >&5
  45257. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  45258. - (exit $ac_status); } &&
  45259. - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  45260. - { (case "(($ac_try" in
  45261. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  45262. - *) ac_try_echo=$ac_try;;
  45263. -esac
  45264. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  45265. - (eval "$ac_try") 2>&5
  45266. - ac_status=$?
  45267. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  45268. - (exit $ac_status); }; } &&
  45269. - { ac_try='test -s conftest.$ac_objext'
  45270. - { (case "(($ac_try" in
  45271. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  45272. - *) ac_try_echo=$ac_try;;
  45273. -esac
  45274. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  45275. - (eval "$ac_try") 2>&5
  45276. - ac_status=$?
  45277. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  45278. - (exit $ac_status); }; }; then
  45279. - ac_cv_cflags_gcc_option__O0=`echo $ac_arg | sed -e 's,.*% *,,'` ; break
  45280. +if ac_fn_c_try_run "$LINENO"; then :
  45281. +
  45282. else
  45283. - echo "$as_me: failed program was:" >&5
  45284. -sed 's/^/| /' conftest.$ac_ext >&5
  45285. + ac_cv_header_stdc=no
  45286. +fi
  45287. +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  45288. + conftest.$ac_objext conftest.beam conftest.$ac_ext
  45289. +fi
  45290. +
  45291. +fi
  45292. +fi
  45293. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  45294. +$as_echo "$ac_cv_header_stdc" >&6; }
  45295. +if test $ac_cv_header_stdc = yes; then
  45296. +
  45297. +$as_echo "#define STDC_HEADERS 1" >>confdefs.h
  45298. +
  45299. +fi
  45300. +
  45301. +# libupnp code doesn't use autoconf variables yet,
  45302. +# so just abort if a header file is not found.
  45303. +for ac_header in \
  45304. + arpa/inet.h \
  45305. + fcntl.h \
  45306. + inttypes.h \
  45307. + limits.h \
  45308. + netdb.h \
  45309. + netinet/in.h \
  45310. + stdlib.h \
  45311. + string.h \
  45312. + sys/ioctl.h \
  45313. + sys/socket.h \
  45314. + sys/time.h \
  45315. + syslog.h \
  45316. + unistd.h \
  45317. +do :
  45318. + as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  45319. +ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  45320. +eval as_val=\$$as_ac_Header
  45321. + if test "x$as_val" = x""yes; then :
  45322. + cat >>confdefs.h <<_ACEOF
  45323. +#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  45324. +_ACEOF
  45325. +else
  45326. + as_fn_error "required header file missing" "$LINENO" 5
  45327. fi
  45328. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  45329. done
  45330. - CFLAGS="$ac_save_CFLAGS"
  45331. - ac_ext=c
  45332. -ac_cpp='$CPP $CPPFLAGS'
  45333. -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  45334. -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  45335. -ac_compiler_gnu=$ac_cv_c_compiler_gnu
  45336. -fi
  45337. -{ echo "$as_me:$LINENO: result: $ac_cv_cflags_gcc_option__O0" >&5
  45338. -echo "${ECHO_T}$ac_cv_cflags_gcc_option__O0" >&6; }
  45339. -case ".$ac_cv_cflags_gcc_option__O0" in
  45340. - .ok|.ok,*) ;;
  45341. - .|.no|.no,*) ;;
  45342. - *)
  45343. - if echo " $CFLAGS " | grep " $ac_cv_cflags_gcc_option__O0 " 2>&1 >/dev/null
  45344. - then { (echo "$as_me:$LINENO: : CFLAGS does contain \$ac_cv_cflags_gcc_option__O0") >&5
  45345. - (: CFLAGS does contain $ac_cv_cflags_gcc_option__O0) 2>&5
  45346. - ac_status=$?
  45347. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  45348. - (exit $ac_status); }
  45349. - else { (echo "$as_me:$LINENO: : CFLAGS=\"\$CFLAGS \$ac_cv_cflags_gcc_option__O0\"") >&5
  45350. - (: CFLAGS="$CFLAGS $ac_cv_cflags_gcc_option__O0") 2>&5
  45351. - ac_status=$?
  45352. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  45353. - (exit $ac_status); }
  45354. - CFLAGS="$CFLAGS $ac_cv_cflags_gcc_option__O0"
  45355. - fi
  45356. - ;;
  45357. -esac
  45358. - else
  45359. - # add optimise for size
  45360. - { echo "$as_me:$LINENO: checking CFLAGS for gcc -Os" >&5
  45361. -echo $ECHO_N "checking CFLAGS for gcc -Os... $ECHO_C" >&6; }
  45362. -if test "${ac_cv_cflags_gcc_option__Os+set}" = set; then
  45363. - echo $ECHO_N "(cached) $ECHO_C" >&6
  45364. +#
  45365. +# Checks for typedefs, structures, and compiler characteristics
  45366. +#
  45367. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
  45368. +$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
  45369. +if test "${ac_cv_c_const+set}" = set; then :
  45370. + $as_echo_n "(cached) " >&6
  45371. else
  45372. - ac_cv_cflags_gcc_option__Os="no, unknown"
  45373. -
  45374. - ac_ext=c
  45375. -ac_cpp='$CPP $CPPFLAGS'
  45376. -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  45377. -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  45378. -ac_compiler_gnu=$ac_cv_c_compiler_gnu
  45379. -
  45380. - ac_save_CFLAGS="$CFLAGS"
  45381. -for ac_arg in "-pedantic -Werror % -Os" "-pedantic % -Os %% no, obsolete" #
  45382. -do CFLAGS="$ac_save_CFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
  45383. - cat >conftest.$ac_ext <<_ACEOF
  45384. -/* confdefs.h. */
  45385. -_ACEOF
  45386. -cat confdefs.h >>conftest.$ac_ext
  45387. -cat >>conftest.$ac_ext <<_ACEOF
  45388. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  45389. /* end confdefs.h. */
  45390. int
  45391. main ()
  45392. {
  45393. -return 0;
  45394. +/* FIXME: Include the comments suggested by Paul. */
  45395. +#ifndef __cplusplus
  45396. + /* Ultrix mips cc rejects this. */
  45397. + typedef int charset[2];
  45398. + const charset cs;
  45399. + /* SunOS 4.1.1 cc rejects this. */
  45400. + char const *const *pcpcc;
  45401. + char **ppc;
  45402. + /* NEC SVR4.0.2 mips cc rejects this. */
  45403. + struct point {int x, y;};
  45404. + static struct point const zero = {0,0};
  45405. + /* AIX XL C 1.02.0.0 rejects this.
  45406. + It does not let you subtract one const X* pointer from another in
  45407. + an arm of an if-expression whose if-part is not a constant
  45408. + expression */
  45409. + const char *g = "string";
  45410. + pcpcc = &g + (g ? g-g : 0);
  45411. + /* HPUX 7.0 cc rejects these. */
  45412. + ++pcpcc;
  45413. + ppc = (char**) pcpcc;
  45414. + pcpcc = (char const *const *) ppc;
  45415. + { /* SCO 3.2v4 cc rejects this. */
  45416. + char *t;
  45417. + char const *s = 0 ? (char *) 0 : (char const *) 0;
  45418. +
  45419. + *t++ = 0;
  45420. + if (s) return 0;
  45421. + }
  45422. + { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  45423. + int x[] = {25, 17};
  45424. + const int *foo = &x[0];
  45425. + ++foo;
  45426. + }
  45427. + { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  45428. + typedef const int *iptr;
  45429. + iptr p = 0;
  45430. + ++p;
  45431. + }
  45432. + { /* AIX XL C 1.02.0.0 rejects this saying
  45433. + "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  45434. + struct s { int j; const int *ap[3]; };
  45435. + struct s *b; b->j = 5;
  45436. + }
  45437. + { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  45438. + const int foo = 10;
  45439. + if (!foo) return 0;
  45440. + }
  45441. + return !cs[0] && !zero.x;
  45442. +#endif
  45443. +
  45444. ;
  45445. return 0;
  45446. }
  45447. _ACEOF
  45448. -rm -f conftest.$ac_objext
  45449. -if { (ac_try="$ac_compile"
  45450. -case "(($ac_try" in
  45451. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  45452. - *) ac_try_echo=$ac_try;;
  45453. -esac
  45454. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  45455. - (eval "$ac_compile") 2>conftest.er1
  45456. - ac_status=$?
  45457. - grep -v '^ *+' conftest.er1 >conftest.err
  45458. - rm -f conftest.er1
  45459. - cat conftest.err >&5
  45460. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  45461. - (exit $ac_status); } &&
  45462. - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  45463. - { (case "(($ac_try" in
  45464. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  45465. - *) ac_try_echo=$ac_try;;
  45466. -esac
  45467. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  45468. - (eval "$ac_try") 2>&5
  45469. - ac_status=$?
  45470. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  45471. - (exit $ac_status); }; } &&
  45472. - { ac_try='test -s conftest.$ac_objext'
  45473. - { (case "(($ac_try" in
  45474. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  45475. - *) ac_try_echo=$ac_try;;
  45476. -esac
  45477. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  45478. - (eval "$ac_try") 2>&5
  45479. - ac_status=$?
  45480. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  45481. - (exit $ac_status); }; }; then
  45482. - ac_cv_cflags_gcc_option__Os=`echo $ac_arg | sed -e 's,.*% *,,'` ; break
  45483. +if ac_fn_c_try_compile "$LINENO"; then :
  45484. + ac_cv_c_const=yes
  45485. else
  45486. - echo "$as_me: failed program was:" >&5
  45487. -sed 's/^/| /' conftest.$ac_ext >&5
  45488. -
  45489. -
  45490. + ac_cv_c_const=no
  45491. fi
  45492. -
  45493. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  45494. -done
  45495. - CFLAGS="$ac_save_CFLAGS"
  45496. - ac_ext=c
  45497. -ac_cpp='$CPP $CPPFLAGS'
  45498. -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  45499. -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  45500. -ac_compiler_gnu=$ac_cv_c_compiler_gnu
  45501. +fi
  45502. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
  45503. +$as_echo "$ac_cv_c_const" >&6; }
  45504. +if test $ac_cv_c_const = no; then
  45505. +$as_echo "#define const /**/" >>confdefs.h
  45506. fi
  45507. -{ echo "$as_me:$LINENO: result: $ac_cv_cflags_gcc_option__Os" >&5
  45508. -echo "${ECHO_T}$ac_cv_cflags_gcc_option__Os" >&6; }
  45509. -case ".$ac_cv_cflags_gcc_option__Os" in
  45510. - .ok|.ok,*) ;;
  45511. - .|.no|.no,*) ;;
  45512. - *)
  45513. - if echo " $CFLAGS " | grep " $ac_cv_cflags_gcc_option__Os " 2>&1 >/dev/null
  45514. - then { (echo "$as_me:$LINENO: : CFLAGS does contain \$ac_cv_cflags_gcc_option__Os") >&5
  45515. - (: CFLAGS does contain $ac_cv_cflags_gcc_option__Os) 2>&5
  45516. - ac_status=$?
  45517. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  45518. - (exit $ac_status); }
  45519. - else { (echo "$as_me:$LINENO: : CFLAGS=\"\$CFLAGS \$ac_cv_cflags_gcc_option__Os\"") >&5
  45520. - (: CFLAGS="$CFLAGS $ac_cv_cflags_gcc_option__Os") 2>&5
  45521. - ac_status=$?
  45522. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  45523. - (exit $ac_status); }
  45524. - CFLAGS="$CFLAGS $ac_cv_cflags_gcc_option__Os"
  45525. - fi
  45526. - ;;
  45527. -esac
  45528. -
  45529. - fi
  45530. - ;;
  45531. -esac
  45532. -{ echo "$as_me:$LINENO: checking CFLAGS for maximum warnings" >&5
  45533. -echo $ECHO_N "checking CFLAGS for maximum warnings... $ECHO_C" >&6; }
  45534. -if test "${ac_cv_cflags_warn_all+set}" = set; then
  45535. - echo $ECHO_N "(cached) $ECHO_C" >&6
  45536. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t" >&5
  45537. +$as_echo_n "checking for socklen_t... " >&6; }
  45538. +if test "${ac_cv_type_socklen_t+set}" = set; then :
  45539. + $as_echo_n "(cached) " >&6
  45540. else
  45541. - ac_cv_cflags_warn_all="no, unknown"
  45542. -
  45543. - ac_ext=c
  45544. -ac_cpp='$CPP $CPPFLAGS'
  45545. -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  45546. -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  45547. -ac_compiler_gnu=$ac_cv_c_compiler_gnu
  45548. - ac_save_CFLAGS="$CFLAGS"
  45549. -for ac_arg in "-pedantic % -Wall" "-xstrconst % -v" "-std1 % -verbose -w0 -warnprotos" "-qlanglvl=ansi % -qsrcmsg -qinfo=all:noppt:noppc:noobs:nocnd" "-ansi -ansiE % -fullwarn" "+ESlit % +w1" "-Xc % -pvctl,fullmsg" "-h conform % -h msglevel 2" #
  45550. -do CFLAGS="$ac_save_CFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
  45551. - cat >conftest.$ac_ext <<_ACEOF
  45552. -/* confdefs.h. */
  45553. -_ACEOF
  45554. -cat confdefs.h >>conftest.$ac_ext
  45555. -cat >>conftest.$ac_ext <<_ACEOF
  45556. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  45557. /* end confdefs.h. */
  45558. -
  45559. +#include <sys/types.h>
  45560. + #include <sys/socket.h>
  45561. int
  45562. main ()
  45563. {
  45564. -return 0;
  45565. +socklen_t len = 42; return 0;
  45566. ;
  45567. return 0;
  45568. }
  45569. _ACEOF
  45570. -rm -f conftest.$ac_objext
  45571. -if { (ac_try="$ac_compile"
  45572. -case "(($ac_try" in
  45573. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  45574. - *) ac_try_echo=$ac_try;;
  45575. -esac
  45576. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  45577. - (eval "$ac_compile") 2>conftest.er1
  45578. - ac_status=$?
  45579. - grep -v '^ *+' conftest.er1 >conftest.err
  45580. - rm -f conftest.er1
  45581. - cat conftest.err >&5
  45582. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  45583. - (exit $ac_status); } &&
  45584. - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  45585. - { (case "(($ac_try" in
  45586. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  45587. - *) ac_try_echo=$ac_try;;
  45588. -esac
  45589. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  45590. - (eval "$ac_try") 2>&5
  45591. - ac_status=$?
  45592. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  45593. - (exit $ac_status); }; } &&
  45594. - { ac_try='test -s conftest.$ac_objext'
  45595. - { (case "(($ac_try" in
  45596. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  45597. - *) ac_try_echo=$ac_try;;
  45598. -esac
  45599. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  45600. - (eval "$ac_try") 2>&5
  45601. - ac_status=$?
  45602. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  45603. - (exit $ac_status); }; }; then
  45604. - ac_cv_cflags_warn_all=`echo $ac_arg | sed -e 's,.*% *,,'` ; break
  45605. +if ac_fn_c_try_compile "$LINENO"; then :
  45606. + ac_cv_type_socklen_t=yes
  45607. else
  45608. - echo "$as_me: failed program was:" >&5
  45609. -sed 's/^/| /' conftest.$ac_ext >&5
  45610. -
  45611. -
  45612. + ac_cv_type_socklen_t=no
  45613. fi
  45614. -
  45615. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  45616. -done
  45617. - CFLAGS="$ac_save_CFLAGS"
  45618. - ac_ext=c
  45619. -ac_cpp='$CPP $CPPFLAGS'
  45620. -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  45621. -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  45622. -ac_compiler_gnu=$ac_cv_c_compiler_gnu
  45623. -
  45624. fi
  45625. -{ echo "$as_me:$LINENO: result: $ac_cv_cflags_warn_all" >&5
  45626. -echo "${ECHO_T}$ac_cv_cflags_warn_all" >&6; }
  45627. -case ".$ac_cv_cflags_warn_all" in
  45628. - .ok|.ok,*) ;;
  45629. - .|.no|.no,*)
  45630. - ;;
  45631. - *)
  45632. - if echo " $CFLAGS " | grep " $ac_cv_cflags_warn_all " 2>&1 >/dev/null
  45633. - then { (echo "$as_me:$LINENO: : CFLAGS does contain \$ac_cv_cflags_warn_all") >&5
  45634. - (: CFLAGS does contain $ac_cv_cflags_warn_all) 2>&5
  45635. - ac_status=$?
  45636. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  45637. - (exit $ac_status); }
  45638. - else { (echo "$as_me:$LINENO: : CFLAGS=\"\$CFLAGS \$ac_cv_cflags_warn_all\"") >&5
  45639. - (: CFLAGS="$CFLAGS $ac_cv_cflags_warn_all") 2>&5
  45640. - ac_status=$?
  45641. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  45642. - (exit $ac_status); }
  45643. - CFLAGS="$CFLAGS $ac_cv_cflags_warn_all"
  45644. - fi
  45645. - ;;
  45646. -esac
  45647. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_socklen_t" >&5
  45648. +$as_echo "$ac_cv_type_socklen_t" >&6; }
  45649. + if test $ac_cv_type_socklen_t != yes; then
  45650. +
  45651. +$as_echo "#define socklen_t int" >>confdefs.h
  45652. +
  45653. + fi
  45654. -echo "-------------------------------------------------------------------------------"
  45655. #
  45656. -# Lot's of stuff to ensure large file support
  45657. +# Checks for library functions
  45658. #
  45659. -{ echo "$as_me:$LINENO: checking for size_t" >&5
  45660. -echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
  45661. -if test "${ac_cv_type_size_t+set}" = set; then
  45662. - echo $ECHO_N "(cached) $ECHO_C" >&6
  45663. -else
  45664. - cat >conftest.$ac_ext <<_ACEOF
  45665. -/* confdefs.h. */
  45666. +for ac_func in vprintf
  45667. +do :
  45668. + ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
  45669. +if test "x$ac_cv_func_vprintf" = x""yes; then :
  45670. + cat >>confdefs.h <<_ACEOF
  45671. +#define HAVE_VPRINTF 1
  45672. _ACEOF
  45673. -cat confdefs.h >>conftest.$ac_ext
  45674. -cat >>conftest.$ac_ext <<_ACEOF
  45675. +
  45676. +ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
  45677. +if test "x$ac_cv_func__doprnt" = x""yes; then :
  45678. +
  45679. +$as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
  45680. +
  45681. +fi
  45682. +
  45683. +fi
  45684. +done
  45685. +
  45686. +
  45687. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
  45688. +$as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
  45689. +if test "${ac_cv_sys_largefile_source+set}" = set; then :
  45690. + $as_echo_n "(cached) " >&6
  45691. +else
  45692. + while :; do
  45693. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  45694. /* end confdefs.h. */
  45695. -$ac_includes_default
  45696. -typedef size_t ac__type_new_;
  45697. +#include <sys/types.h> /* for off_t */
  45698. + #include <stdio.h>
  45699. int
  45700. main ()
  45701. {
  45702. -if ((ac__type_new_ *) 0)
  45703. - return 0;
  45704. -if (sizeof (ac__type_new_))
  45705. +int (*fp) (FILE *, off_t, int) = fseeko;
  45706. + return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
  45707. + ;
  45708. return 0;
  45709. +}
  45710. +_ACEOF
  45711. +if ac_fn_c_try_link "$LINENO"; then :
  45712. + ac_cv_sys_largefile_source=no; break
  45713. +fi
  45714. +rm -f core conftest.err conftest.$ac_objext \
  45715. + conftest$ac_exeext conftest.$ac_ext
  45716. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  45717. +/* end confdefs.h. */
  45718. +#define _LARGEFILE_SOURCE 1
  45719. +#include <sys/types.h> /* for off_t */
  45720. + #include <stdio.h>
  45721. +int
  45722. +main ()
  45723. +{
  45724. +int (*fp) (FILE *, off_t, int) = fseeko;
  45725. + return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
  45726. ;
  45727. return 0;
  45728. }
  45729. _ACEOF
  45730. -rm -f conftest.$ac_objext
  45731. -if { (ac_try="$ac_compile"
  45732. -case "(($ac_try" in
  45733. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  45734. - *) ac_try_echo=$ac_try;;
  45735. -esac
  45736. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  45737. - (eval "$ac_compile") 2>conftest.er1
  45738. - ac_status=$?
  45739. - grep -v '^ *+' conftest.er1 >conftest.err
  45740. - rm -f conftest.er1
  45741. - cat conftest.err >&5
  45742. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  45743. - (exit $ac_status); } &&
  45744. - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  45745. - { (case "(($ac_try" in
  45746. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  45747. - *) ac_try_echo=$ac_try;;
  45748. -esac
  45749. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  45750. - (eval "$ac_try") 2>&5
  45751. - ac_status=$?
  45752. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  45753. - (exit $ac_status); }; } &&
  45754. - { ac_try='test -s conftest.$ac_objext'
  45755. - { (case "(($ac_try" in
  45756. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  45757. - *) ac_try_echo=$ac_try;;
  45758. -esac
  45759. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  45760. - (eval "$ac_try") 2>&5
  45761. - ac_status=$?
  45762. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  45763. - (exit $ac_status); }; }; then
  45764. - ac_cv_type_size_t=yes
  45765. -else
  45766. - echo "$as_me: failed program was:" >&5
  45767. -sed 's/^/| /' conftest.$ac_ext >&5
  45768. -
  45769. - ac_cv_type_size_t=no
  45770. +if ac_fn_c_try_link "$LINENO"; then :
  45771. + ac_cv_sys_largefile_source=1; break
  45772. fi
  45773. -
  45774. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  45775. +rm -f core conftest.err conftest.$ac_objext \
  45776. + conftest$ac_exeext conftest.$ac_ext
  45777. + ac_cv_sys_largefile_source=unknown
  45778. + break
  45779. +done
  45780. fi
  45781. -{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
  45782. -echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
  45783. -if test $ac_cv_type_size_t = yes; then
  45784. - :
  45785. -else
  45786. -
  45787. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
  45788. +$as_echo "$ac_cv_sys_largefile_source" >&6; }
  45789. +case $ac_cv_sys_largefile_source in #(
  45790. + no | unknown) ;;
  45791. + *)
  45792. cat >>confdefs.h <<_ACEOF
  45793. -#define size_t unsigned int
  45794. +#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
  45795. _ACEOF
  45796. +;;
  45797. +esac
  45798. +rm -rf conftest*
  45799. +
  45800. +# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
  45801. +# in glibc 2.1.3, but that breaks too many other things.
  45802. +# If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
  45803. +if test $ac_cv_sys_largefile_source != unknown; then
  45804. +
  45805. +$as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
  45806. fi
  45807. -{ echo "$as_me:$LINENO: checking for off_t" >&5
  45808. -echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
  45809. -if test "${ac_cv_type_off_t+set}" = set; then
  45810. - echo $ECHO_N "(cached) $ECHO_C" >&6
  45811. -else
  45812. - cat >conftest.$ac_ext <<_ACEOF
  45813. -/* confdefs.h. */
  45814. +for ac_func in ftime
  45815. +do :
  45816. + ac_fn_c_check_func "$LINENO" "ftime" "ac_cv_func_ftime"
  45817. +if test "x$ac_cv_func_ftime" = x""yes; then :
  45818. + cat >>confdefs.h <<_ACEOF
  45819. +#define HAVE_FTIME 1
  45820. _ACEOF
  45821. -cat confdefs.h >>conftest.$ac_ext
  45822. -cat >>conftest.$ac_ext <<_ACEOF
  45823. +
  45824. +else
  45825. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ftime in -lcompat" >&5
  45826. +$as_echo_n "checking for ftime in -lcompat... " >&6; }
  45827. +if test "${ac_cv_lib_compat_ftime+set}" = set; then :
  45828. + $as_echo_n "(cached) " >&6
  45829. +else
  45830. + ac_check_lib_save_LIBS=$LIBS
  45831. +LIBS="-lcompat $LIBS"
  45832. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  45833. /* end confdefs.h. */
  45834. -$ac_includes_default
  45835. -typedef off_t ac__type_new_;
  45836. +
  45837. +/* Override any GCC internal prototype to avoid an error.
  45838. + Use char because int might match the return type of a GCC
  45839. + builtin and then its argument prototype would still apply. */
  45840. +#ifdef __cplusplus
  45841. +extern "C"
  45842. +#endif
  45843. +char ftime ();
  45844. int
  45845. main ()
  45846. {
  45847. -if ((ac__type_new_ *) 0)
  45848. - return 0;
  45849. -if (sizeof (ac__type_new_))
  45850. - return 0;
  45851. +return ftime ();
  45852. ;
  45853. return 0;
  45854. }
  45855. _ACEOF
  45856. -rm -f conftest.$ac_objext
  45857. -if { (ac_try="$ac_compile"
  45858. -case "(($ac_try" in
  45859. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  45860. - *) ac_try_echo=$ac_try;;
  45861. -esac
  45862. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  45863. - (eval "$ac_compile") 2>conftest.er1
  45864. - ac_status=$?
  45865. - grep -v '^ *+' conftest.er1 >conftest.err
  45866. - rm -f conftest.er1
  45867. - cat conftest.err >&5
  45868. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  45869. - (exit $ac_status); } &&
  45870. - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  45871. - { (case "(($ac_try" in
  45872. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  45873. - *) ac_try_echo=$ac_try;;
  45874. -esac
  45875. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  45876. - (eval "$ac_try") 2>&5
  45877. - ac_status=$?
  45878. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  45879. - (exit $ac_status); }; } &&
  45880. - { ac_try='test -s conftest.$ac_objext'
  45881. - { (case "(($ac_try" in
  45882. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  45883. - *) ac_try_echo=$ac_try;;
  45884. -esac
  45885. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  45886. - (eval "$ac_try") 2>&5
  45887. - ac_status=$?
  45888. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  45889. - (exit $ac_status); }; }; then
  45890. - ac_cv_type_off_t=yes
  45891. +if ac_fn_c_try_link "$LINENO"; then :
  45892. + ac_cv_lib_compat_ftime=yes
  45893. else
  45894. - echo "$as_me: failed program was:" >&5
  45895. -sed 's/^/| /' conftest.$ac_ext >&5
  45896. + ac_cv_lib_compat_ftime=no
  45897. +fi
  45898. +rm -f core conftest.err conftest.$ac_objext \
  45899. + conftest$ac_exeext conftest.$ac_ext
  45900. +LIBS=$ac_check_lib_save_LIBS
  45901. +fi
  45902. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_compat_ftime" >&5
  45903. +$as_echo "$ac_cv_lib_compat_ftime" >&6; }
  45904. +if test "x$ac_cv_lib_compat_ftime" = x""yes; then :
  45905. + cat >>confdefs.h <<_ACEOF
  45906. +#define HAVE_LIBCOMPAT 1
  45907. +_ACEOF
  45908. +
  45909. + LIBS="-lcompat $LIBS"
  45910. - ac_cv_type_off_t=no
  45911. fi
  45912. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  45913. fi
  45914. -{ echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
  45915. -echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
  45916. -if test $ac_cv_type_off_t = yes; then
  45917. - :
  45918. -else
  45919. +done
  45920. -cat >>confdefs.h <<_ACEOF
  45921. -#define off_t long int
  45922. -_ACEOF
  45923. -fi
  45924. +#
  45925. +# Checks for POSIX Threads
  45926. +#
  45927. +echo "--------------------------- pthread stuff -------------------------------------"
  45928. -cat >>confdefs.h <<\_ACEOF
  45929. -#define _LARGE_FILE_SOURCE
  45930. -_ACEOF
  45931. -cat >>confdefs.h <<\_ACEOF
  45932. -#define _FILE_OFFSET_BITS 64
  45933. -_ACEOF
  45934. +ac_ext=c
  45935. +ac_cpp='$CPP $CPPFLAGS'
  45936. +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  45937. +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  45938. +ac_compiler_gnu=$ac_cv_c_compiler_gnu
  45939. +acx_pthread_ok=no
  45940. +# We used to check for pthread.h first, but this fails if pthread.h
  45941. +# requires special compiler flags (e.g. on True64 or Sequent).
  45942. +# It gets checked for in the link test anyway.
  45943. -#
  45944. -# Checks for header files
  45945. -#
  45946. -{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
  45947. -echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
  45948. -if test "${ac_cv_header_stdc+set}" = set; then
  45949. - echo $ECHO_N "(cached) $ECHO_C" >&6
  45950. -else
  45951. - cat >conftest.$ac_ext <<_ACEOF
  45952. -/* confdefs.h. */
  45953. -_ACEOF
  45954. -cat confdefs.h >>conftest.$ac_ext
  45955. -cat >>conftest.$ac_ext <<_ACEOF
  45956. +# First of all, check if the user has set any of the PTHREAD_LIBS,
  45957. +# etcetera environment variables, and if threads linking works using
  45958. +# them:
  45959. +if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
  45960. + save_CFLAGS="$CFLAGS"
  45961. + CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
  45962. + save_LIBS="$LIBS"
  45963. + LIBS="$PTHREAD_LIBS $LIBS"
  45964. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
  45965. +$as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
  45966. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  45967. /* end confdefs.h. */
  45968. -#include <stdlib.h>
  45969. -#include <stdarg.h>
  45970. -#include <string.h>
  45971. -#include <float.h>
  45972. +/* Override any GCC internal prototype to avoid an error.
  45973. + Use char because int might match the return type of a GCC
  45974. + builtin and then its argument prototype would still apply. */
  45975. +#ifdef __cplusplus
  45976. +extern "C"
  45977. +#endif
  45978. +char pthread_join ();
  45979. int
  45980. main ()
  45981. {
  45982. -
  45983. +return pthread_join ();
  45984. ;
  45985. return 0;
  45986. }
  45987. _ACEOF
  45988. -rm -f conftest.$ac_objext
  45989. -if { (ac_try="$ac_compile"
  45990. -case "(($ac_try" in
  45991. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  45992. - *) ac_try_echo=$ac_try;;
  45993. -esac
  45994. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  45995. - (eval "$ac_compile") 2>conftest.er1
  45996. - ac_status=$?
  45997. - grep -v '^ *+' conftest.er1 >conftest.err
  45998. - rm -f conftest.er1
  45999. - cat conftest.err >&5
  46000. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  46001. - (exit $ac_status); } &&
  46002. - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  46003. - { (case "(($ac_try" in
  46004. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  46005. - *) ac_try_echo=$ac_try;;
  46006. -esac
  46007. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  46008. - (eval "$ac_try") 2>&5
  46009. - ac_status=$?
  46010. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  46011. - (exit $ac_status); }; } &&
  46012. - { ac_try='test -s conftest.$ac_objext'
  46013. - { (case "(($ac_try" in
  46014. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  46015. - *) ac_try_echo=$ac_try;;
  46016. +if ac_fn_c_try_link "$LINENO"; then :
  46017. + acx_pthread_ok=yes
  46018. +fi
  46019. +rm -f core conftest.err conftest.$ac_objext \
  46020. + conftest$ac_exeext conftest.$ac_ext
  46021. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5
  46022. +$as_echo "$acx_pthread_ok" >&6; }
  46023. + if test x"$acx_pthread_ok" = xno; then
  46024. + PTHREAD_LIBS=""
  46025. + PTHREAD_CFLAGS=""
  46026. + fi
  46027. + LIBS="$save_LIBS"
  46028. + CFLAGS="$save_CFLAGS"
  46029. +fi
  46030. +
  46031. +# We must check for the threads library under a number of different
  46032. +# names; the ordering is very important because some systems
  46033. +# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
  46034. +# libraries is broken (non-POSIX).
  46035. +
  46036. +# Create a list of thread flags to try. Items starting with a "-" are
  46037. +# C compiler flags, and other items are library names, except for "none"
  46038. +# which indicates that we try without any flags at all, and "pthread-config"
  46039. +# which is a program returning the flags for the Pth emulation library.
  46040. +
  46041. +acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
  46042. +
  46043. +# The ordering *is* (sometimes) important. Some notes on the
  46044. +# individual items follow:
  46045. +
  46046. +# pthreads: AIX (must check this before -lpthread)
  46047. +# none: in case threads are in libc; should be tried before -Kthread and
  46048. +# other compiler flags to prevent continual compiler warnings
  46049. +# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
  46050. +# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
  46051. +# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
  46052. +# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
  46053. +# -pthreads: Solaris/gcc
  46054. +# -mthreads: Mingw32/gcc, Lynx/gcc
  46055. +# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
  46056. +# doesn't hurt to check since this sometimes defines pthreads too;
  46057. +# also defines -D_REENTRANT)
  46058. +# ... -mt is also the pthreads flag for HP/aCC
  46059. +# pthread: Linux, etcetera
  46060. +# --thread-safe: KAI C++
  46061. +# pthread-config: use pthread-config program (for GNU Pth library)
  46062. +
  46063. +case "${host_cpu}-${host_os}" in
  46064. + *solaris*)
  46065. +
  46066. + # On Solaris (at least, for some versions), libc contains stubbed
  46067. + # (non-functional) versions of the pthreads routines, so link-based
  46068. + # tests will erroneously succeed. (We need to link with -pthreads/-mt/
  46069. + # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
  46070. + # a function called by this macro, so we could check for that, but
  46071. + # who knows whether they'll stub that too in a future libc.) So,
  46072. + # we'll just look for -pthreads and -lpthread first:
  46073. +
  46074. + acx_pthread_flags="-pthreads pthread -mt -pthread $acx_pthread_flags"
  46075. + ;;
  46076. esac
  46077. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  46078. - (eval "$ac_try") 2>&5
  46079. - ac_status=$?
  46080. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  46081. - (exit $ac_status); }; }; then
  46082. - ac_cv_header_stdc=yes
  46083. +
  46084. +if test x"$acx_pthread_ok" = xno; then
  46085. +for flag in $acx_pthread_flags; do
  46086. +
  46087. + case $flag in
  46088. + none)
  46089. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
  46090. +$as_echo_n "checking whether pthreads work without any flags... " >&6; }
  46091. + ;;
  46092. +
  46093. + -*)
  46094. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
  46095. +$as_echo_n "checking whether pthreads work with $flag... " >&6; }
  46096. + PTHREAD_CFLAGS="$flag"
  46097. + ;;
  46098. +
  46099. + pthread-config)
  46100. + # Extract the first word of "pthread-config", so it can be a program name with args.
  46101. +set dummy pthread-config; ac_word=$2
  46102. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  46103. +$as_echo_n "checking for $ac_word... " >&6; }
  46104. +if test "${ac_cv_prog_acx_pthread_config+set}" = set; then :
  46105. + $as_echo_n "(cached) " >&6
  46106. else
  46107. - echo "$as_me: failed program was:" >&5
  46108. -sed 's/^/| /' conftest.$ac_ext >&5
  46109. + if test -n "$acx_pthread_config"; then
  46110. + ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test.
  46111. +else
  46112. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  46113. +for as_dir in $PATH
  46114. +do
  46115. + IFS=$as_save_IFS
  46116. + test -z "$as_dir" && as_dir=.
  46117. + for ac_exec_ext in '' $ac_executable_extensions; do
  46118. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  46119. + ac_cv_prog_acx_pthread_config="yes"
  46120. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  46121. + break 2
  46122. + fi
  46123. +done
  46124. + done
  46125. +IFS=$as_save_IFS
  46126. - ac_cv_header_stdc=no
  46127. + test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no"
  46128. +fi
  46129. +fi
  46130. +acx_pthread_config=$ac_cv_prog_acx_pthread_config
  46131. +if test -n "$acx_pthread_config"; then
  46132. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_config" >&5
  46133. +$as_echo "$acx_pthread_config" >&6; }
  46134. +else
  46135. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  46136. +$as_echo "no" >&6; }
  46137. fi
  46138. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  46139. -if test $ac_cv_header_stdc = yes; then
  46140. - # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  46141. - cat >conftest.$ac_ext <<_ACEOF
  46142. -/* confdefs.h. */
  46143. -_ACEOF
  46144. -cat confdefs.h >>conftest.$ac_ext
  46145. -cat >>conftest.$ac_ext <<_ACEOF
  46146. -/* end confdefs.h. */
  46147. -#include <string.h>
  46148. + if test x"$acx_pthread_config" = xno; then continue; fi
  46149. + PTHREAD_CFLAGS="`pthread-config --cflags`"
  46150. + PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
  46151. + ;;
  46152. +
  46153. + *)
  46154. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
  46155. +$as_echo_n "checking for the pthreads library -l$flag... " >&6; }
  46156. + PTHREAD_LIBS="-l$flag"
  46157. + ;;
  46158. + esac
  46159. +
  46160. + save_LIBS="$LIBS"
  46161. + save_CFLAGS="$CFLAGS"
  46162. + LIBS="$PTHREAD_LIBS $LIBS"
  46163. + CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
  46164. + # Check for various functions. We must include pthread.h,
  46165. + # since some functions may be macros. (On the Sequent, we
  46166. + # need a special flag -Kthread to make this header compile.)
  46167. + # We check for pthread_join because it is in -lpthread on IRIX
  46168. + # while pthread_create is in libc. We check for pthread_attr_init
  46169. + # due to DEC craziness with -lpthreads. We check for
  46170. + # pthread_cleanup_push because it is one of the few pthread
  46171. + # functions on Solaris that doesn't have a non-functional libc stub.
  46172. + # We try pthread_create on general principles.
  46173. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  46174. +/* end confdefs.h. */
  46175. +#include <pthread.h>
  46176. +int
  46177. +main ()
  46178. +{
  46179. +pthread_t th; pthread_join(th, 0);
  46180. + pthread_attr_init(0); pthread_cleanup_push(0, 0);
  46181. + pthread_create(0,0,0,0); pthread_cleanup_pop(0);
  46182. + ;
  46183. + return 0;
  46184. +}
  46185. _ACEOF
  46186. -if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  46187. - $EGREP "memchr" >/dev/null 2>&1; then
  46188. - :
  46189. -else
  46190. - ac_cv_header_stdc=no
  46191. +if ac_fn_c_try_link "$LINENO"; then :
  46192. + acx_pthread_ok=yes
  46193. fi
  46194. -rm -f conftest*
  46195. +rm -f core conftest.err conftest.$ac_objext \
  46196. + conftest$ac_exeext conftest.$ac_ext
  46197. -fi
  46198. + LIBS="$save_LIBS"
  46199. + CFLAGS="$save_CFLAGS"
  46200. -if test $ac_cv_header_stdc = yes; then
  46201. - # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  46202. - cat >conftest.$ac_ext <<_ACEOF
  46203. -/* confdefs.h. */
  46204. -_ACEOF
  46205. -cat confdefs.h >>conftest.$ac_ext
  46206. -cat >>conftest.$ac_ext <<_ACEOF
  46207. -/* end confdefs.h. */
  46208. -#include <stdlib.h>
  46209. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5
  46210. +$as_echo "$acx_pthread_ok" >&6; }
  46211. + if test "x$acx_pthread_ok" = xyes; then
  46212. + break;
  46213. + fi
  46214. -_ACEOF
  46215. -if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  46216. - $EGREP "free" >/dev/null 2>&1; then
  46217. - :
  46218. -else
  46219. - ac_cv_header_stdc=no
  46220. + PTHREAD_LIBS=""
  46221. + PTHREAD_CFLAGS=""
  46222. +done
  46223. fi
  46224. -rm -f conftest*
  46225. -fi
  46226. +# Various other checks:
  46227. +if test "x$acx_pthread_ok" = xyes; then
  46228. + save_LIBS="$LIBS"
  46229. + LIBS="$PTHREAD_LIBS $LIBS"
  46230. + save_CFLAGS="$CFLAGS"
  46231. + CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
  46232. -if test $ac_cv_header_stdc = yes; then
  46233. - # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  46234. - if test "$cross_compiling" = yes; then
  46235. - :
  46236. -else
  46237. - cat >conftest.$ac_ext <<_ACEOF
  46238. -/* confdefs.h. */
  46239. -_ACEOF
  46240. -cat confdefs.h >>conftest.$ac_ext
  46241. -cat >>conftest.$ac_ext <<_ACEOF
  46242. + # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
  46243. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
  46244. +$as_echo_n "checking for joinable pthread attribute... " >&6; }
  46245. + attr_name=unknown
  46246. + for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
  46247. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  46248. /* end confdefs.h. */
  46249. -#include <ctype.h>
  46250. -#include <stdlib.h>
  46251. -#if ((' ' & 0x0FF) == 0x020)
  46252. -# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  46253. -# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  46254. -#else
  46255. -# define ISLOWER(c) \
  46256. - (('a' <= (c) && (c) <= 'i') \
  46257. - || ('j' <= (c) && (c) <= 'r') \
  46258. - || ('s' <= (c) && (c) <= 'z'))
  46259. -# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  46260. -#endif
  46261. -
  46262. -#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  46263. +#include <pthread.h>
  46264. int
  46265. main ()
  46266. {
  46267. - int i;
  46268. - for (i = 0; i < 256; i++)
  46269. - if (XOR (islower (i), ISLOWER (i))
  46270. - || toupper (i) != TOUPPER (i))
  46271. - return 2;
  46272. +int attr=$attr; return attr;
  46273. + ;
  46274. return 0;
  46275. }
  46276. _ACEOF
  46277. -rm -f conftest$ac_exeext
  46278. -if { (ac_try="$ac_link"
  46279. -case "(($ac_try" in
  46280. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  46281. - *) ac_try_echo=$ac_try;;
  46282. -esac
  46283. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  46284. - (eval "$ac_link") 2>&5
  46285. - ac_status=$?
  46286. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  46287. - (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  46288. - { (case "(($ac_try" in
  46289. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  46290. - *) ac_try_echo=$ac_try;;
  46291. -esac
  46292. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  46293. - (eval "$ac_try") 2>&5
  46294. - ac_status=$?
  46295. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  46296. - (exit $ac_status); }; }; then
  46297. - :
  46298. -else
  46299. - echo "$as_me: program exited with status $ac_status" >&5
  46300. -echo "$as_me: failed program was:" >&5
  46301. -sed 's/^/| /' conftest.$ac_ext >&5
  46302. -
  46303. -( exit $ac_status )
  46304. -ac_cv_header_stdc=no
  46305. -fi
  46306. -rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  46307. -fi
  46308. -
  46309. -
  46310. -fi
  46311. +if ac_fn_c_try_link "$LINENO"; then :
  46312. + attr_name=$attr; break
  46313. fi
  46314. -{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
  46315. -echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
  46316. -if test $ac_cv_header_stdc = yes; then
  46317. +rm -f core conftest.err conftest.$ac_objext \
  46318. + conftest$ac_exeext conftest.$ac_ext
  46319. + done
  46320. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
  46321. +$as_echo "$attr_name" >&6; }
  46322. + if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
  46323. -cat >>confdefs.h <<\_ACEOF
  46324. -#define STDC_HEADERS 1
  46325. +cat >>confdefs.h <<_ACEOF
  46326. +#define PTHREAD_CREATE_JOINABLE $attr_name
  46327. _ACEOF
  46328. -fi
  46329. -
  46330. -# libupnp code doesn't use autoconf variables yet,
  46331. -# so just abort if a header file is not found.
  46332. -
  46333. -
  46334. -
  46335. -
  46336. + fi
  46337. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
  46338. +$as_echo_n "checking if more special flags are required for pthreads... " >&6; }
  46339. + flag=no
  46340. + case "${host_cpu}-${host_os}" in
  46341. + *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
  46342. + *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
  46343. + esac
  46344. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
  46345. +$as_echo "${flag}" >&6; }
  46346. + if test "x$flag" != xno; then
  46347. + PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
  46348. + fi
  46349. + LIBS="$save_LIBS"
  46350. + CFLAGS="$save_CFLAGS"
  46351. + # More AIX lossage: must compile with xlc_r or cc_r
  46352. + if test x"$GCC" != xyes; then
  46353. + for ac_prog in xlc_r cc_r
  46354. +do
  46355. + # Extract the first word of "$ac_prog", so it can be a program name with args.
  46356. +set dummy $ac_prog; ac_word=$2
  46357. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  46358. +$as_echo_n "checking for $ac_word... " >&6; }
  46359. +if test "${ac_cv_prog_PTHREAD_CC+set}" = set; then :
  46360. + $as_echo_n "(cached) " >&6
  46361. +else
  46362. + if test -n "$PTHREAD_CC"; then
  46363. + ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
  46364. +else
  46365. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  46366. +for as_dir in $PATH
  46367. +do
  46368. + IFS=$as_save_IFS
  46369. + test -z "$as_dir" && as_dir=.
  46370. + for ac_exec_ext in '' $ac_executable_extensions; do
  46371. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  46372. + ac_cv_prog_PTHREAD_CC="$ac_prog"
  46373. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  46374. + break 2
  46375. + fi
  46376. +done
  46377. + done
  46378. +IFS=$as_save_IFS
  46379. +fi
  46380. +fi
  46381. +PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
  46382. +if test -n "$PTHREAD_CC"; then
  46383. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
  46384. +$as_echo "$PTHREAD_CC" >&6; }
  46385. +else
  46386. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  46387. +$as_echo "no" >&6; }
  46388. +fi
  46389. + test -n "$PTHREAD_CC" && break
  46390. +done
  46391. +test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
  46392. + else
  46393. + PTHREAD_CC=$CC
  46394. + fi
  46395. +else
  46396. + PTHREAD_CC="$CC"
  46397. +fi
  46398. -for ac_header in \
  46399. - arpa/inet.h \
  46400. - fcntl.h \
  46401. - inttypes.h \
  46402. - limits.h \
  46403. - netdb.h \
  46404. - netinet/in.h \
  46405. - stdlib.h \
  46406. - string.h \
  46407. - sys/ioctl.h \
  46408. - sys/socket.h \
  46409. - sys/time.h \
  46410. - sys/timeb.h \
  46411. - syslog.h \
  46412. - unistd.h \
  46413. -do
  46414. -as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  46415. -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  46416. - { echo "$as_me:$LINENO: checking for $ac_header" >&5
  46417. -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  46418. -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  46419. - echo $ECHO_N "(cached) $ECHO_C" >&6
  46420. -fi
  46421. -ac_res=`eval echo '${'$as_ac_Header'}'`
  46422. - { echo "$as_me:$LINENO: result: $ac_res" >&5
  46423. -echo "${ECHO_T}$ac_res" >&6; }
  46424. -else
  46425. - # Is the header compilable?
  46426. -{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
  46427. -echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  46428. -cat >conftest.$ac_ext <<_ACEOF
  46429. -/* confdefs.h. */
  46430. -_ACEOF
  46431. -cat confdefs.h >>conftest.$ac_ext
  46432. -cat >>conftest.$ac_ext <<_ACEOF
  46433. -/* end confdefs.h. */
  46434. -$ac_includes_default
  46435. -#include <$ac_header>
  46436. -_ACEOF
  46437. -rm -f conftest.$ac_objext
  46438. -if { (ac_try="$ac_compile"
  46439. -case "(($ac_try" in
  46440. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  46441. - *) ac_try_echo=$ac_try;;
  46442. -esac
  46443. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  46444. - (eval "$ac_compile") 2>conftest.er1
  46445. - ac_status=$?
  46446. - grep -v '^ *+' conftest.er1 >conftest.err
  46447. - rm -f conftest.er1
  46448. - cat conftest.err >&5
  46449. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  46450. - (exit $ac_status); } &&
  46451. - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  46452. - { (case "(($ac_try" in
  46453. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  46454. - *) ac_try_echo=$ac_try;;
  46455. -esac
  46456. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  46457. - (eval "$ac_try") 2>&5
  46458. - ac_status=$?
  46459. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  46460. - (exit $ac_status); }; } &&
  46461. - { ac_try='test -s conftest.$ac_objext'
  46462. - { (case "(($ac_try" in
  46463. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  46464. - *) ac_try_echo=$ac_try;;
  46465. -esac
  46466. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  46467. - (eval "$ac_try") 2>&5
  46468. - ac_status=$?
  46469. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  46470. - (exit $ac_status); }; }; then
  46471. - ac_header_compiler=yes
  46472. -else
  46473. - echo "$as_me: failed program was:" >&5
  46474. -sed 's/^/| /' conftest.$ac_ext >&5
  46475. - ac_header_compiler=no
  46476. -fi
  46477. +# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
  46478. +if test x"$acx_pthread_ok" = xyes; then
  46479. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  46480. -{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  46481. -echo "${ECHO_T}$ac_header_compiler" >&6; }
  46482. +$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
  46483. -# Is the header present?
  46484. -{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
  46485. -echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  46486. -cat >conftest.$ac_ext <<_ACEOF
  46487. -/* confdefs.h. */
  46488. -_ACEOF
  46489. -cat confdefs.h >>conftest.$ac_ext
  46490. -cat >>conftest.$ac_ext <<_ACEOF
  46491. -/* end confdefs.h. */
  46492. -#include <$ac_header>
  46493. -_ACEOF
  46494. -if { (ac_try="$ac_cpp conftest.$ac_ext"
  46495. -case "(($ac_try" in
  46496. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  46497. - *) ac_try_echo=$ac_try;;
  46498. -esac
  46499. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  46500. - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  46501. - ac_status=$?
  46502. - grep -v '^ *+' conftest.er1 >conftest.err
  46503. - rm -f conftest.er1
  46504. - cat conftest.err >&5
  46505. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  46506. - (exit $ac_status); } >/dev/null; then
  46507. - if test -s conftest.err; then
  46508. - ac_cpp_err=$ac_c_preproc_warn_flag
  46509. - ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  46510. - else
  46511. - ac_cpp_err=
  46512. - fi
  46513. -else
  46514. - ac_cpp_err=yes
  46515. -fi
  46516. -if test -z "$ac_cpp_err"; then
  46517. - ac_header_preproc=yes
  46518. + :
  46519. else
  46520. - echo "$as_me: failed program was:" >&5
  46521. -sed 's/^/| /' conftest.$ac_ext >&5
  46522. -
  46523. - ac_header_preproc=no
  46524. + acx_pthread_ok=no
  46525. + as_fn_error "POSIX threads are required to build this program" "$LINENO" 5
  46526. fi
  46527. +ac_ext=c
  46528. +ac_cpp='$CPP $CPPFLAGS'
  46529. +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  46530. +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  46531. +ac_compiler_gnu=$ac_cv_c_compiler_gnu
  46532. -rm -f conftest.err conftest.$ac_ext
  46533. -{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  46534. -echo "${ECHO_T}$ac_header_preproc" >&6; }
  46535. -# So? What about this header?
  46536. -case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  46537. - yes:no: )
  46538. - { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  46539. -echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  46540. - { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  46541. -echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  46542. - ac_header_preproc=yes
  46543. - ;;
  46544. - no:yes:* )
  46545. - { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  46546. -echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  46547. - { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  46548. -echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  46549. - { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  46550. -echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  46551. - { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  46552. -echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  46553. - { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  46554. -echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  46555. - { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  46556. -echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  46557. - ( cat <<\_ASBOX
  46558. -## --------------------------------------------- ##
  46559. -## Report this to mroberto@users.sourceforge.net ##
  46560. -## --------------------------------------------- ##
  46561. -_ASBOX
  46562. - ) | sed "s/^/$as_me: WARNING: /" >&2
  46563. - ;;
  46564. -esac
  46565. -{ echo "$as_me:$LINENO: checking for $ac_header" >&5
  46566. -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  46567. -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  46568. - echo $ECHO_N "(cached) $ECHO_C" >&6
  46569. -else
  46570. - eval "$as_ac_Header=\$ac_header_preproc"
  46571. -fi
  46572. -ac_res=`eval echo '${'$as_ac_Header'}'`
  46573. - { echo "$as_me:$LINENO: result: $ac_res" >&5
  46574. -echo "${ECHO_T}$ac_res" >&6; }
  46575. +#
  46576. +# Update environment variables for pthreads
  46577. +#
  46578. +CC="$PTHREAD_CC"
  46579. +CFLAGS="$PTHREAD_CFLAGS $CFLAGS"
  46580. +LIBS="$PTHREAD_LIBS $LIBS"
  46581. +#
  46582. +# Determine if pthread_rwlock_t is available
  46583. +#
  46584. +echo "----------------------- pthread_rwlock_t stuff --------------------------------"
  46585. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if pthread_rwlock_t is available" >&5
  46586. +$as_echo_n "checking if pthread_rwlock_t is available... " >&6; }
  46587. +ac_ext=c
  46588. +ac_cpp='$CPP $CPPFLAGS'
  46589. +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  46590. +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  46591. +ac_compiler_gnu=$ac_cv_c_compiler_gnu
  46592. -fi
  46593. -if test `eval echo '${'$as_ac_Header'}'` = yes; then
  46594. - cat >>confdefs.h <<_ACEOF
  46595. -#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  46596. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  46597. +/* end confdefs.h. */
  46598. +#include <pthread.h>
  46599. +int
  46600. +main ()
  46601. +{
  46602. +pthread_rwlock_t *x;
  46603. + ;
  46604. + return 0;
  46605. +}
  46606. _ACEOF
  46607. +if ac_fn_c_try_compile "$LINENO"; then :
  46608. -else
  46609. - { { echo "$as_me:$LINENO: error: required header file missing" >&5
  46610. -echo "$as_me: error: required header file missing" >&2;}
  46611. - { (exit 1); exit 1; }; }
  46612. -fi
  46613. -
  46614. -done
  46615. +$as_echo "#define UPNP_USE_RWLOCK 1" >>confdefs.h
  46616. -
  46617. -
  46618. -#
  46619. -# Checks for typedefs, structures, and compiler characteristics
  46620. -#
  46621. -{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
  46622. -echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
  46623. -if test "${ac_cv_c_const+set}" = set; then
  46624. - echo $ECHO_N "(cached) $ECHO_C" >&6
  46625. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, supported without any options" >&5
  46626. +$as_echo "yes, supported without any options" >&6; }
  46627. else
  46628. - cat >conftest.$ac_ext <<_ACEOF
  46629. -/* confdefs.h. */
  46630. -_ACEOF
  46631. -cat confdefs.h >>conftest.$ac_ext
  46632. -cat >>conftest.$ac_ext <<_ACEOF
  46633. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  46634. /* end confdefs.h. */
  46635. -
  46636. +#define _GNU_SOURCE
  46637. + #include <pthread.h>
  46638. int
  46639. main ()
  46640. {
  46641. -/* FIXME: Include the comments suggested by Paul. */
  46642. -#ifndef __cplusplus
  46643. - /* Ultrix mips cc rejects this. */
  46644. - typedef int charset[2];
  46645. - const charset x;
  46646. - /* SunOS 4.1.1 cc rejects this. */
  46647. - char const *const *ccp;
  46648. - char **p;
  46649. - /* NEC SVR4.0.2 mips cc rejects this. */
  46650. - struct point {int x, y;};
  46651. - static struct point const zero = {0,0};
  46652. - /* AIX XL C 1.02.0.0 rejects this.
  46653. - It does not let you subtract one const X* pointer from another in
  46654. - an arm of an if-expression whose if-part is not a constant
  46655. - expression */
  46656. - const char *g = "string";
  46657. - ccp = &g + (g ? g-g : 0);
  46658. - /* HPUX 7.0 cc rejects these. */
  46659. - ++ccp;
  46660. - p = (char**) ccp;
  46661. - ccp = (char const *const *) p;
  46662. - { /* SCO 3.2v4 cc rejects this. */
  46663. - char *t;
  46664. - char const *s = 0 ? (char *) 0 : (char const *) 0;
  46665. -
  46666. - *t++ = 0;
  46667. - if (s) return 0;
  46668. - }
  46669. - { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  46670. - int x[] = {25, 17};
  46671. - const int *foo = &x[0];
  46672. - ++foo;
  46673. - }
  46674. - { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  46675. - typedef const int *iptr;
  46676. - iptr p = 0;
  46677. - ++p;
  46678. - }
  46679. - { /* AIX XL C 1.02.0.0 rejects this saying
  46680. - "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  46681. - struct s { int j; const int *ap[3]; };
  46682. - struct s *b; b->j = 5;
  46683. - }
  46684. - { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  46685. - const int foo = 10;
  46686. - if (!foo) return 0;
  46687. - }
  46688. - return !x[0] && !zero.x;
  46689. -#endif
  46690. -
  46691. +pthread_rwlock_t *x;
  46692. ;
  46693. return 0;
  46694. }
  46695. _ACEOF
  46696. -rm -f conftest.$ac_objext
  46697. -if { (ac_try="$ac_compile"
  46698. -case "(($ac_try" in
  46699. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  46700. - *) ac_try_echo=$ac_try;;
  46701. -esac
  46702. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  46703. - (eval "$ac_compile") 2>conftest.er1
  46704. - ac_status=$?
  46705. - grep -v '^ *+' conftest.er1 >conftest.err
  46706. - rm -f conftest.er1
  46707. - cat conftest.err >&5
  46708. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  46709. - (exit $ac_status); } &&
  46710. - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  46711. - { (case "(($ac_try" in
  46712. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  46713. - *) ac_try_echo=$ac_try;;
  46714. -esac
  46715. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  46716. - (eval "$ac_try") 2>&5
  46717. - ac_status=$?
  46718. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  46719. - (exit $ac_status); }; } &&
  46720. - { ac_try='test -s conftest.$ac_objext'
  46721. - { (case "(($ac_try" in
  46722. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  46723. - *) ac_try_echo=$ac_try;;
  46724. -esac
  46725. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  46726. - (eval "$ac_try") 2>&5
  46727. - ac_status=$?
  46728. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  46729. - (exit $ac_status); }; }; then
  46730. - ac_cv_c_const=yes
  46731. +if ac_fn_c_try_compile "$LINENO"; then :
  46732. +
  46733. +$as_echo "#define UPNP_USE_RWLOCK 1" >>confdefs.h
  46734. +
  46735. + CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
  46736. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, definition of _GNU_SOURCE required" >&5
  46737. +$as_echo "yes, definition of _GNU_SOURCE required" >&6; }
  46738. else
  46739. - echo "$as_me: failed program was:" >&5
  46740. -sed 's/^/| /' conftest.$ac_ext >&5
  46741. - ac_cv_c_const=no
  46742. -fi
  46743. +$as_echo "#define UPNP_USE_RWLOCK 0" >>confdefs.h
  46744. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, needs to fallback to pthread_mutex" >&5
  46745. +$as_echo "no, needs to fallback to pthread_mutex" >&6; }
  46746. + as_fn_error "pthread_rwlock_t not available" "$LINENO" 5
  46747. +fi
  46748. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  46749. fi
  46750. -{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
  46751. -echo "${ECHO_T}$ac_cv_c_const" >&6; }
  46752. -if test $ac_cv_c_const = no; then
  46753. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  46754. +echo "-------------------------------------------------------------------------------"
  46755. +
  46756. +
  46757. +ac_config_files="$ac_config_files Makefile ixml/Makefile ixml/doc/Makefile threadutil/Makefile upnp/Makefile upnp/doc/Makefile upnp/sample/Makefile docs/dist/Makefile libupnp.pc"
  46758. +
  46759. +
  46760. +
  46761. +cat >confcache <<\_ACEOF
  46762. +# This file is a shell script that caches the results of configure
  46763. +# tests run on this system so they can be shared between configure
  46764. +# scripts and configure runs, see configure's option --config-cache.
  46765. +# It is not useful on other systems. If it contains results you don't
  46766. +# want to keep, you may remove or edit it.
  46767. +#
  46768. +# config.status only pays attention to the cache file if you give it
  46769. +# the --recheck option to rerun configure.
  46770. +#
  46771. +# `ac_cv_env_foo' variables (set or unset) will be overridden when
  46772. +# loading this file, other *unset* `ac_cv_foo' will be assigned the
  46773. +# following values.
  46774. -cat >>confdefs.h <<\_ACEOF
  46775. -#define const
  46776. _ACEOF
  46777. +# The following way of writing the cache mishandles newlines in values,
  46778. +# but we know of no workaround that is simple, portable, and efficient.
  46779. +# So, we kill variables containing newlines.
  46780. +# Ultrix sh set writes to stderr and can't be redirected directly,
  46781. +# and sets the high bit in the cache file unless we assign to the vars.
  46782. +(
  46783. + for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  46784. + eval ac_val=\$$ac_var
  46785. + case $ac_val in #(
  46786. + *${as_nl}*)
  46787. + case $ac_var in #(
  46788. + *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  46789. +$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  46790. + esac
  46791. + case $ac_var in #(
  46792. + _ | IFS | as_nl) ;; #(
  46793. + BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  46794. + *) { eval $ac_var=; unset $ac_var;} ;;
  46795. + esac ;;
  46796. + esac
  46797. + done
  46798. +
  46799. + (set) 2>&1 |
  46800. + case $as_nl`(ac_space=' '; set) 2>&1` in #(
  46801. + *${as_nl}ac_space=\ *)
  46802. + # `set' does not quote correctly, so add quotes: double-quote
  46803. + # substitution turns \\\\ into \\, and sed turns \\ into \.
  46804. + sed -n \
  46805. + "s/'/'\\\\''/g;
  46806. + s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  46807. + ;; #(
  46808. + *)
  46809. + # `set' quotes correctly as required by POSIX, so do not add quotes.
  46810. + sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  46811. + ;;
  46812. + esac |
  46813. + sort
  46814. +) |
  46815. + sed '
  46816. + /^ac_cv_env_/b end
  46817. + t clear
  46818. + :clear
  46819. + s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  46820. + t end
  46821. + s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  46822. + :end' >>confcache
  46823. +if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  46824. + if test -w "$cache_file"; then
  46825. + test "x$cache_file" != "x/dev/null" &&
  46826. + { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  46827. +$as_echo "$as_me: updating cache $cache_file" >&6;}
  46828. + cat confcache >$cache_file
  46829. + else
  46830. + { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  46831. +$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  46832. + fi
  46833. fi
  46834. +rm -f confcache
  46835. +
  46836. +test "x$prefix" = xNONE && prefix=$ac_default_prefix
  46837. +# Let make expand exec_prefix.
  46838. +test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  46839. +
  46840. +DEFS=-DHAVE_CONFIG_H
  46841. +
  46842. +ac_libobjs=
  46843. +ac_ltlibobjs=
  46844. +for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  46845. + # 1. Remove the extension, and $U if already installed.
  46846. + ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  46847. + ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  46848. + # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  46849. + # will be set to the directory where LIBOBJS objects are built.
  46850. + as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  46851. + as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  46852. +done
  46853. +LIBOBJS=$ac_libobjs
  46854. -{ echo "$as_me:$LINENO: checking for socklen_t" >&5
  46855. -echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
  46856. -if test "${ac_cv_type_socklen_t+set}" = set; then
  46857. - echo $ECHO_N "(cached) $ECHO_C" >&6
  46858. +LTLIBOBJS=$ac_ltlibobjs
  46859. +
  46860. +
  46861. + if test -n "$EXEEXT"; then
  46862. + am__EXEEXT_TRUE=
  46863. + am__EXEEXT_FALSE='#'
  46864. else
  46865. + am__EXEEXT_TRUE='#'
  46866. + am__EXEEXT_FALSE=
  46867. +fi
  46868. - cat >conftest.$ac_ext <<_ACEOF
  46869. -/* confdefs.h. */
  46870. -_ACEOF
  46871. -cat confdefs.h >>conftest.$ac_ext
  46872. -cat >>conftest.$ac_ext <<_ACEOF
  46873. -/* end confdefs.h. */
  46874. -#include <sys/types.h>
  46875. - #include <sys/socket.h>
  46876. -int
  46877. -main ()
  46878. -{
  46879. -socklen_t len = 42; return 0;
  46880. - ;
  46881. - return 0;
  46882. -}
  46883. -_ACEOF
  46884. -rm -f conftest.$ac_objext
  46885. -if { (ac_try="$ac_compile"
  46886. -case "(($ac_try" in
  46887. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  46888. - *) ac_try_echo=$ac_try;;
  46889. -esac
  46890. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  46891. - (eval "$ac_compile") 2>conftest.er1
  46892. - ac_status=$?
  46893. - grep -v '^ *+' conftest.er1 >conftest.err
  46894. - rm -f conftest.er1
  46895. - cat conftest.err >&5
  46896. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  46897. - (exit $ac_status); } &&
  46898. - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  46899. - { (case "(($ac_try" in
  46900. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  46901. - *) ac_try_echo=$ac_try;;
  46902. -esac
  46903. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  46904. - (eval "$ac_try") 2>&5
  46905. - ac_status=$?
  46906. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  46907. - (exit $ac_status); }; } &&
  46908. - { ac_try='test -s conftest.$ac_objext'
  46909. - { (case "(($ac_try" in
  46910. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  46911. - *) ac_try_echo=$ac_try;;
  46912. -esac
  46913. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  46914. - (eval "$ac_try") 2>&5
  46915. - ac_status=$?
  46916. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  46917. - (exit $ac_status); }; }; then
  46918. - ac_cv_type_socklen_t=yes
  46919. +if test -z "${ENABLE_DEBUG_TRUE}" && test -z "${ENABLE_DEBUG_FALSE}"; then
  46920. + as_fn_error "conditional \"ENABLE_DEBUG\" was never defined.
  46921. +Usually this means the macro was only invoked conditionally." "$LINENO" 5
  46922. +fi
  46923. +if test -z "${ENABLE_CLIENT_TRUE}" && test -z "${ENABLE_CLIENT_FALSE}"; then
  46924. + as_fn_error "conditional \"ENABLE_CLIENT\" was never defined.
  46925. +Usually this means the macro was only invoked conditionally." "$LINENO" 5
  46926. +fi
  46927. +if test -z "${ENABLE_DEVICE_TRUE}" && test -z "${ENABLE_DEVICE_FALSE}"; then
  46928. + as_fn_error "conditional \"ENABLE_DEVICE\" was never defined.
  46929. +Usually this means the macro was only invoked conditionally." "$LINENO" 5
  46930. +fi
  46931. +if test -z "${ENABLE_WEBSERVER_TRUE}" && test -z "${ENABLE_WEBSERVER_FALSE}"; then
  46932. + as_fn_error "conditional \"ENABLE_WEBSERVER\" was never defined.
  46933. +Usually this means the macro was only invoked conditionally." "$LINENO" 5
  46934. +fi
  46935. +if test -z "${ENABLE_WEBSERVER_TRUE}" && test -z "${ENABLE_WEBSERVER_FALSE}"; then
  46936. + as_fn_error "conditional \"ENABLE_WEBSERVER\" was never defined.
  46937. +Usually this means the macro was only invoked conditionally." "$LINENO" 5
  46938. +fi
  46939. +if test -z "${ENABLE_TOOLS_TRUE}" && test -z "${ENABLE_TOOLS_FALSE}"; then
  46940. + as_fn_error "conditional \"ENABLE_TOOLS\" was never defined.
  46941. +Usually this means the macro was only invoked conditionally." "$LINENO" 5
  46942. +fi
  46943. +if test -z "${ENABLE_SAMPLES_TRUE}" && test -z "${ENABLE_SAMPLES_FALSE}"; then
  46944. + as_fn_error "conditional \"ENABLE_SAMPLES\" was never defined.
  46945. +Usually this means the macro was only invoked conditionally." "$LINENO" 5
  46946. +fi
  46947. +if test -z "${WITH_DOCUMENTATION_TRUE}" && test -z "${WITH_DOCUMENTATION_FALSE}"; then
  46948. + as_fn_error "conditional \"WITH_DOCUMENTATION\" was never defined.
  46949. +Usually this means the macro was only invoked conditionally." "$LINENO" 5
  46950. +fi
  46951. +if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  46952. + as_fn_error "conditional \"AMDEP\" was never defined.
  46953. +Usually this means the macro was only invoked conditionally." "$LINENO" 5
  46954. +fi
  46955. +if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  46956. + as_fn_error "conditional \"am__fastdepCC\" was never defined.
  46957. +Usually this means the macro was only invoked conditionally." "$LINENO" 5
  46958. +fi
  46959. +
  46960. +: ${CONFIG_STATUS=./config.status}
  46961. +ac_write_fail=0
  46962. +ac_clean_files_save=$ac_clean_files
  46963. +ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  46964. +{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  46965. +$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  46966. +as_write_fail=0
  46967. +cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  46968. +#! $SHELL
  46969. +# Generated by $as_me.
  46970. +# Run this file to recreate the current configuration.
  46971. +# Compiler output produced by configure, useful for debugging
  46972. +# configure, is in config.log if it exists.
  46973. +
  46974. +debug=false
  46975. +ac_cs_recheck=false
  46976. +ac_cs_silent=false
  46977. +
  46978. +SHELL=\${CONFIG_SHELL-$SHELL}
  46979. +export SHELL
  46980. +_ASEOF
  46981. +cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  46982. +## -------------------- ##
  46983. +## M4sh Initialization. ##
  46984. +## -------------------- ##
  46985. +
  46986. +# Be more Bourne compatible
  46987. +DUALCASE=1; export DUALCASE # for MKS sh
  46988. +if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  46989. + emulate sh
  46990. + NULLCMD=:
  46991. + # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  46992. + # is contrary to our usage. Disable this feature.
  46993. + alias -g '${1+"$@"}'='"$@"'
  46994. + setopt NO_GLOB_SUBST
  46995. else
  46996. - echo "$as_me: failed program was:" >&5
  46997. -sed 's/^/| /' conftest.$ac_ext >&5
  46998. + case `(set -o) 2>/dev/null` in #(
  46999. + *posix*) :
  47000. + set -o posix ;; #(
  47001. + *) :
  47002. + ;;
  47003. +esac
  47004. +fi
  47005. +
  47006. +
  47007. +as_nl='
  47008. +'
  47009. +export as_nl
  47010. +# Printing a long string crashes Solaris 7 /usr/bin/printf.
  47011. +as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  47012. +as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  47013. +as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  47014. +# Prefer a ksh shell builtin over an external printf program on Solaris,
  47015. +# but without wasting forks for bash or zsh.
  47016. +if test -z "$BASH_VERSION$ZSH_VERSION" \
  47017. + && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  47018. + as_echo='print -r --'
  47019. + as_echo_n='print -rn --'
  47020. +elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  47021. + as_echo='printf %s\n'
  47022. + as_echo_n='printf %s'
  47023. +else
  47024. + if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  47025. + as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  47026. + as_echo_n='/usr/ucb/echo -n'
  47027. + else
  47028. + as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  47029. + as_echo_n_body='eval
  47030. + arg=$1;
  47031. + case $arg in #(
  47032. + *"$as_nl"*)
  47033. + expr "X$arg" : "X\\(.*\\)$as_nl";
  47034. + arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  47035. + esac;
  47036. + expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  47037. + '
  47038. + export as_echo_n_body
  47039. + as_echo_n='sh -c $as_echo_n_body as_echo'
  47040. + fi
  47041. + export as_echo_body
  47042. + as_echo='sh -c $as_echo_body as_echo'
  47043. +fi
  47044. - ac_cv_type_socklen_t=no
  47045. +# The user is always right.
  47046. +if test "${PATH_SEPARATOR+set}" != set; then
  47047. + PATH_SEPARATOR=:
  47048. + (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  47049. + (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  47050. + PATH_SEPARATOR=';'
  47051. + }
  47052. fi
  47053. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  47054. +# IFS
  47055. +# We need space, tab and new line, in precisely that order. Quoting is
  47056. +# there to prevent editors from complaining about space-tab.
  47057. +# (If _AS_PATH_WALK were called with IFS unset, it would disable word
  47058. +# splitting by setting IFS to empty value.)
  47059. +IFS=" "" $as_nl"
  47060. +
  47061. +# Find who we are. Look in the path if we contain no directory separator.
  47062. +case $0 in #((
  47063. + *[\\/]* ) as_myself=$0 ;;
  47064. + *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  47065. +for as_dir in $PATH
  47066. +do
  47067. + IFS=$as_save_IFS
  47068. + test -z "$as_dir" && as_dir=.
  47069. + test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  47070. + done
  47071. +IFS=$as_save_IFS
  47072. +
  47073. + ;;
  47074. +esac
  47075. +# We did not find ourselves, most probably we were run as `sh COMMAND'
  47076. +# in which case we are not to be found in the path.
  47077. +if test "x$as_myself" = x; then
  47078. + as_myself=$0
  47079. +fi
  47080. +if test ! -f "$as_myself"; then
  47081. + $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  47082. + exit 1
  47083. fi
  47084. -{ echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
  47085. -echo "${ECHO_T}$ac_cv_type_socklen_t" >&6; }
  47086. - if test $ac_cv_type_socklen_t != yes; then
  47087. -
  47088. -cat >>confdefs.h <<\_ACEOF
  47089. -#define socklen_t int
  47090. -_ACEOF
  47091. - fi
  47092. +# Unset variables that we do not need and which cause bugs (e.g. in
  47093. +# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  47094. +# suppresses any "Segmentation fault" message there. '((' could
  47095. +# trigger a bug in pdksh 5.2.14.
  47096. +for as_var in BASH_ENV ENV MAIL MAILPATH
  47097. +do eval test x\${$as_var+set} = xset \
  47098. + && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  47099. +done
  47100. +PS1='$ '
  47101. +PS2='> '
  47102. +PS4='+ '
  47103. +# NLS nuisances.
  47104. +LC_ALL=C
  47105. +export LC_ALL
  47106. +LANGUAGE=C
  47107. +export LANGUAGE
  47108. +# CDPATH.
  47109. +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  47110. -#
  47111. -# Checks for library functions
  47112. -#
  47113. -for ac_func in vprintf
  47114. -do
  47115. -as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  47116. -{ echo "$as_me:$LINENO: checking for $ac_func" >&5
  47117. -echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  47118. -if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  47119. - echo $ECHO_N "(cached) $ECHO_C" >&6
  47120. +# as_fn_error ERROR [LINENO LOG_FD]
  47121. +# ---------------------------------
  47122. +# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  47123. +# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  47124. +# script with status $?, using 1 if that was 0.
  47125. +as_fn_error ()
  47126. +{
  47127. + as_status=$?; test $as_status -eq 0 && as_status=1
  47128. + if test "$3"; then
  47129. + as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  47130. + $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
  47131. + fi
  47132. + $as_echo "$as_me: error: $1" >&2
  47133. + as_fn_exit $as_status
  47134. +} # as_fn_error
  47135. +
  47136. +
  47137. +# as_fn_set_status STATUS
  47138. +# -----------------------
  47139. +# Set $? to STATUS, without forking.
  47140. +as_fn_set_status ()
  47141. +{
  47142. + return $1
  47143. +} # as_fn_set_status
  47144. +
  47145. +# as_fn_exit STATUS
  47146. +# -----------------
  47147. +# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  47148. +as_fn_exit ()
  47149. +{
  47150. + set +e
  47151. + as_fn_set_status $1
  47152. + exit $1
  47153. +} # as_fn_exit
  47154. +
  47155. +# as_fn_unset VAR
  47156. +# ---------------
  47157. +# Portably unset VAR.
  47158. +as_fn_unset ()
  47159. +{
  47160. + { eval $1=; unset $1;}
  47161. +}
  47162. +as_unset=as_fn_unset
  47163. +# as_fn_append VAR VALUE
  47164. +# ----------------------
  47165. +# Append the text in VALUE to the end of the definition contained in VAR. Take
  47166. +# advantage of any shell optimizations that allow amortized linear growth over
  47167. +# repeated appends, instead of the typical quadratic growth present in naive
  47168. +# implementations.
  47169. +if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  47170. + eval 'as_fn_append ()
  47171. + {
  47172. + eval $1+=\$2
  47173. + }'
  47174. else
  47175. - cat >conftest.$ac_ext <<_ACEOF
  47176. -/* confdefs.h. */
  47177. -_ACEOF
  47178. -cat confdefs.h >>conftest.$ac_ext
  47179. -cat >>conftest.$ac_ext <<_ACEOF
  47180. -/* end confdefs.h. */
  47181. -/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  47182. - For example, HP-UX 11i <limits.h> declares gettimeofday. */
  47183. -#define $ac_func innocuous_$ac_func
  47184. -
  47185. -/* System header to define __stub macros and hopefully few prototypes,
  47186. - which can conflict with char $ac_func (); below.
  47187. - Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  47188. - <limits.h> exists even on freestanding compilers. */
  47189. -
  47190. -#ifdef __STDC__
  47191. -# include <limits.h>
  47192. -#else
  47193. -# include <assert.h>
  47194. -#endif
  47195. + as_fn_append ()
  47196. + {
  47197. + eval $1=\$$1\$2
  47198. + }
  47199. +fi # as_fn_append
  47200. -#undef $ac_func
  47201. +# as_fn_arith ARG...
  47202. +# ------------------
  47203. +# Perform arithmetic evaluation on the ARGs, and store the result in the
  47204. +# global $as_val. Take advantage of shells that can avoid forks. The arguments
  47205. +# must be portable across $(()) and expr.
  47206. +if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  47207. + eval 'as_fn_arith ()
  47208. + {
  47209. + as_val=$(( $* ))
  47210. + }'
  47211. +else
  47212. + as_fn_arith ()
  47213. + {
  47214. + as_val=`expr "$@" || test $? -eq 1`
  47215. + }
  47216. +fi # as_fn_arith
  47217. -/* Override any GCC internal prototype to avoid an error.
  47218. - Use char because int might match the return type of a GCC
  47219. - builtin and then its argument prototype would still apply. */
  47220. -#ifdef __cplusplus
  47221. -extern "C"
  47222. -#endif
  47223. -char $ac_func ();
  47224. -/* The GNU C library defines this for functions which it implements
  47225. - to always fail with ENOSYS. Some functions are actually named
  47226. - something starting with __ and the normal name is an alias. */
  47227. -#if defined __stub_$ac_func || defined __stub___$ac_func
  47228. -choke me
  47229. -#endif
  47230. -int
  47231. -main ()
  47232. -{
  47233. -return $ac_func ();
  47234. - ;
  47235. - return 0;
  47236. -}
  47237. -_ACEOF
  47238. -rm -f conftest.$ac_objext conftest$ac_exeext
  47239. -if { (ac_try="$ac_link"
  47240. -case "(($ac_try" in
  47241. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  47242. - *) ac_try_echo=$ac_try;;
  47243. -esac
  47244. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  47245. - (eval "$ac_link") 2>conftest.er1
  47246. - ac_status=$?
  47247. - grep -v '^ *+' conftest.er1 >conftest.err
  47248. - rm -f conftest.er1
  47249. - cat conftest.err >&5
  47250. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  47251. - (exit $ac_status); } &&
  47252. - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  47253. - { (case "(($ac_try" in
  47254. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  47255. - *) ac_try_echo=$ac_try;;
  47256. -esac
  47257. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  47258. - (eval "$ac_try") 2>&5
  47259. - ac_status=$?
  47260. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  47261. - (exit $ac_status); }; } &&
  47262. - { ac_try='test -s conftest$ac_exeext'
  47263. - { (case "(($ac_try" in
  47264. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  47265. - *) ac_try_echo=$ac_try;;
  47266. -esac
  47267. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  47268. - (eval "$ac_try") 2>&5
  47269. - ac_status=$?
  47270. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  47271. - (exit $ac_status); }; }; then
  47272. - eval "$as_ac_var=yes"
  47273. +if expr a : '\(a\)' >/dev/null 2>&1 &&
  47274. + test "X`expr 00001 : '.*\(...\)'`" = X001; then
  47275. + as_expr=expr
  47276. else
  47277. - echo "$as_me: failed program was:" >&5
  47278. -sed 's/^/| /' conftest.$ac_ext >&5
  47279. -
  47280. - eval "$as_ac_var=no"
  47281. + as_expr=false
  47282. fi
  47283. -rm -f core conftest.err conftest.$ac_objext \
  47284. - conftest$ac_exeext conftest.$ac_ext
  47285. +if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  47286. + as_basename=basename
  47287. +else
  47288. + as_basename=false
  47289. fi
  47290. -ac_res=`eval echo '${'$as_ac_var'}'`
  47291. - { echo "$as_me:$LINENO: result: $ac_res" >&5
  47292. -echo "${ECHO_T}$ac_res" >&6; }
  47293. -if test `eval echo '${'$as_ac_var'}'` = yes; then
  47294. - cat >>confdefs.h <<_ACEOF
  47295. -#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  47296. -_ACEOF
  47297. -{ echo "$as_me:$LINENO: checking for _doprnt" >&5
  47298. -echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; }
  47299. -if test "${ac_cv_func__doprnt+set}" = set; then
  47300. - echo $ECHO_N "(cached) $ECHO_C" >&6
  47301. +if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  47302. + as_dirname=dirname
  47303. else
  47304. - cat >conftest.$ac_ext <<_ACEOF
  47305. -/* confdefs.h. */
  47306. -_ACEOF
  47307. -cat confdefs.h >>conftest.$ac_ext
  47308. -cat >>conftest.$ac_ext <<_ACEOF
  47309. -/* end confdefs.h. */
  47310. -/* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
  47311. - For example, HP-UX 11i <limits.h> declares gettimeofday. */
  47312. -#define _doprnt innocuous__doprnt
  47313. -
  47314. -/* System header to define __stub macros and hopefully few prototypes,
  47315. - which can conflict with char _doprnt (); below.
  47316. - Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  47317. - <limits.h> exists even on freestanding compilers. */
  47318. -
  47319. -#ifdef __STDC__
  47320. -# include <limits.h>
  47321. -#else
  47322. -# include <assert.h>
  47323. -#endif
  47324. + as_dirname=false
  47325. +fi
  47326. -#undef _doprnt
  47327. +as_me=`$as_basename -- "$0" ||
  47328. +$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  47329. + X"$0" : 'X\(//\)$' \| \
  47330. + X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  47331. +$as_echo X/"$0" |
  47332. + sed '/^.*\/\([^/][^/]*\)\/*$/{
  47333. + s//\1/
  47334. + q
  47335. + }
  47336. + /^X\/\(\/\/\)$/{
  47337. + s//\1/
  47338. + q
  47339. + }
  47340. + /^X\/\(\/\).*/{
  47341. + s//\1/
  47342. + q
  47343. + }
  47344. + s/.*/./; q'`
  47345. -/* Override any GCC internal prototype to avoid an error.
  47346. - Use char because int might match the return type of a GCC
  47347. - builtin and then its argument prototype would still apply. */
  47348. -#ifdef __cplusplus
  47349. -extern "C"
  47350. -#endif
  47351. -char _doprnt ();
  47352. -/* The GNU C library defines this for functions which it implements
  47353. - to always fail with ENOSYS. Some functions are actually named
  47354. - something starting with __ and the normal name is an alias. */
  47355. -#if defined __stub__doprnt || defined __stub____doprnt
  47356. -choke me
  47357. -#endif
  47358. +# Avoid depending upon Character Ranges.
  47359. +as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  47360. +as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  47361. +as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  47362. +as_cr_digits='0123456789'
  47363. +as_cr_alnum=$as_cr_Letters$as_cr_digits
  47364. -int
  47365. -main ()
  47366. -{
  47367. -return _doprnt ();
  47368. - ;
  47369. - return 0;
  47370. -}
  47371. -_ACEOF
  47372. -rm -f conftest.$ac_objext conftest$ac_exeext
  47373. -if { (ac_try="$ac_link"
  47374. -case "(($ac_try" in
  47375. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  47376. - *) ac_try_echo=$ac_try;;
  47377. -esac
  47378. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  47379. - (eval "$ac_link") 2>conftest.er1
  47380. - ac_status=$?
  47381. - grep -v '^ *+' conftest.er1 >conftest.err
  47382. - rm -f conftest.er1
  47383. - cat conftest.err >&5
  47384. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  47385. - (exit $ac_status); } &&
  47386. - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  47387. - { (case "(($ac_try" in
  47388. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  47389. - *) ac_try_echo=$ac_try;;
  47390. -esac
  47391. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  47392. - (eval "$ac_try") 2>&5
  47393. - ac_status=$?
  47394. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  47395. - (exit $ac_status); }; } &&
  47396. - { ac_try='test -s conftest$ac_exeext'
  47397. - { (case "(($ac_try" in
  47398. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  47399. - *) ac_try_echo=$ac_try;;
  47400. +ECHO_C= ECHO_N= ECHO_T=
  47401. +case `echo -n x` in #(((((
  47402. +-n*)
  47403. + case `echo 'xy\c'` in
  47404. + *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  47405. + xy) ECHO_C='\c';;
  47406. + *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  47407. + ECHO_T=' ';;
  47408. + esac;;
  47409. +*)
  47410. + ECHO_N='-n';;
  47411. esac
  47412. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  47413. - (eval "$ac_try") 2>&5
  47414. - ac_status=$?
  47415. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  47416. - (exit $ac_status); }; }; then
  47417. - ac_cv_func__doprnt=yes
  47418. -else
  47419. - echo "$as_me: failed program was:" >&5
  47420. -sed 's/^/| /' conftest.$ac_ext >&5
  47421. -
  47422. - ac_cv_func__doprnt=no
  47423. -fi
  47424. -
  47425. -rm -f core conftest.err conftest.$ac_objext \
  47426. - conftest$ac_exeext conftest.$ac_ext
  47427. -fi
  47428. -{ echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
  47429. -echo "${ECHO_T}$ac_cv_func__doprnt" >&6; }
  47430. -if test $ac_cv_func__doprnt = yes; then
  47431. -
  47432. -cat >>confdefs.h <<\_ACEOF
  47433. -#define HAVE_DOPRNT 1
  47434. -_ACEOF
  47435. +rm -f conf$$ conf$$.exe conf$$.file
  47436. +if test -d conf$$.dir; then
  47437. + rm -f conf$$.dir/conf$$.file
  47438. +else
  47439. + rm -f conf$$.dir
  47440. + mkdir conf$$.dir 2>/dev/null
  47441. fi
  47442. -
  47443. +if (echo >conf$$.file) 2>/dev/null; then
  47444. + if ln -s conf$$.file conf$$ 2>/dev/null; then
  47445. + as_ln_s='ln -s'
  47446. + # ... but there are two gotchas:
  47447. + # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  47448. + # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  47449. + # In both cases, we have to default to `cp -p'.
  47450. + ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  47451. + as_ln_s='cp -p'
  47452. + elif ln conf$$.file conf$$ 2>/dev/null; then
  47453. + as_ln_s=ln
  47454. + else
  47455. + as_ln_s='cp -p'
  47456. + fi
  47457. +else
  47458. + as_ln_s='cp -p'
  47459. fi
  47460. -done
  47461. +rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  47462. +rmdir conf$$.dir 2>/dev/null
  47463. -{ echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
  47464. -echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6; }
  47465. -if test "${ac_cv_sys_largefile_source+set}" = set; then
  47466. - echo $ECHO_N "(cached) $ECHO_C" >&6
  47467. -else
  47468. - while :; do
  47469. - ac_cv_sys_largefile_source=no
  47470. - cat >conftest.$ac_ext <<_ACEOF
  47471. -/* confdefs.h. */
  47472. -_ACEOF
  47473. -cat confdefs.h >>conftest.$ac_ext
  47474. -cat >>conftest.$ac_ext <<_ACEOF
  47475. -/* end confdefs.h. */
  47476. -#include <stdio.h>
  47477. -int
  47478. -main ()
  47479. +# as_fn_mkdir_p
  47480. +# -------------
  47481. +# Create "$as_dir" as a directory, including parents if necessary.
  47482. +as_fn_mkdir_p ()
  47483. {
  47484. -return !fseeko;
  47485. - ;
  47486. - return 0;
  47487. -}
  47488. -_ACEOF
  47489. -rm -f conftest.$ac_objext
  47490. -if { (ac_try="$ac_compile"
  47491. -case "(($ac_try" in
  47492. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  47493. - *) ac_try_echo=$ac_try;;
  47494. -esac
  47495. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  47496. - (eval "$ac_compile") 2>conftest.er1
  47497. - ac_status=$?
  47498. - grep -v '^ *+' conftest.er1 >conftest.err
  47499. - rm -f conftest.er1
  47500. - cat conftest.err >&5
  47501. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  47502. - (exit $ac_status); } &&
  47503. - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  47504. - { (case "(($ac_try" in
  47505. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  47506. - *) ac_try_echo=$ac_try;;
  47507. -esac
  47508. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  47509. - (eval "$ac_try") 2>&5
  47510. - ac_status=$?
  47511. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  47512. - (exit $ac_status); }; } &&
  47513. - { ac_try='test -s conftest.$ac_objext'
  47514. - { (case "(($ac_try" in
  47515. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  47516. - *) ac_try_echo=$ac_try;;
  47517. -esac
  47518. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  47519. - (eval "$ac_try") 2>&5
  47520. - ac_status=$?
  47521. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  47522. - (exit $ac_status); }; }; then
  47523. - break
  47524. -else
  47525. - echo "$as_me: failed program was:" >&5
  47526. -sed 's/^/| /' conftest.$ac_ext >&5
  47527. +
  47528. + case $as_dir in #(
  47529. + -*) as_dir=./$as_dir;;
  47530. + esac
  47531. + test -d "$as_dir" || eval $as_mkdir_p || {
  47532. + as_dirs=
  47533. + while :; do
  47534. + case $as_dir in #(
  47535. + *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  47536. + *) as_qdir=$as_dir;;
  47537. + esac
  47538. + as_dirs="'$as_qdir' $as_dirs"
  47539. + as_dir=`$as_dirname -- "$as_dir" ||
  47540. +$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  47541. + X"$as_dir" : 'X\(//\)[^/]' \| \
  47542. + X"$as_dir" : 'X\(//\)$' \| \
  47543. + X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  47544. +$as_echo X"$as_dir" |
  47545. + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  47546. + s//\1/
  47547. + q
  47548. + }
  47549. + /^X\(\/\/\)[^/].*/{
  47550. + s//\1/
  47551. + q
  47552. + }
  47553. + /^X\(\/\/\)$/{
  47554. + s//\1/
  47555. + q
  47556. + }
  47557. + /^X\(\/\).*/{
  47558. + s//\1/
  47559. + q
  47560. + }
  47561. + s/.*/./; q'`
  47562. + test -d "$as_dir" && break
  47563. + done
  47564. + test -z "$as_dirs" || eval "mkdir $as_dirs"
  47565. + } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
  47566. +} # as_fn_mkdir_p
  47567. +if mkdir -p . 2>/dev/null; then
  47568. + as_mkdir_p='mkdir -p "$as_dir"'
  47569. +else
  47570. + test -d ./-p && rmdir ./-p
  47571. + as_mkdir_p=false
  47572. fi
  47573. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  47574. - cat >conftest.$ac_ext <<_ACEOF
  47575. -/* confdefs.h. */
  47576. -_ACEOF
  47577. -cat confdefs.h >>conftest.$ac_ext
  47578. -cat >>conftest.$ac_ext <<_ACEOF
  47579. -/* end confdefs.h. */
  47580. -#define _LARGEFILE_SOURCE 1
  47581. -#include <stdio.h>
  47582. -int
  47583. -main ()
  47584. -{
  47585. -return !fseeko;
  47586. - ;
  47587. - return 0;
  47588. -}
  47589. -_ACEOF
  47590. -rm -f conftest.$ac_objext
  47591. -if { (ac_try="$ac_compile"
  47592. -case "(($ac_try" in
  47593. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  47594. - *) ac_try_echo=$ac_try;;
  47595. -esac
  47596. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  47597. - (eval "$ac_compile") 2>conftest.er1
  47598. - ac_status=$?
  47599. - grep -v '^ *+' conftest.er1 >conftest.err
  47600. - rm -f conftest.er1
  47601. - cat conftest.err >&5
  47602. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  47603. - (exit $ac_status); } &&
  47604. - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  47605. - { (case "(($ac_try" in
  47606. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  47607. - *) ac_try_echo=$ac_try;;
  47608. -esac
  47609. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  47610. - (eval "$ac_try") 2>&5
  47611. - ac_status=$?
  47612. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  47613. - (exit $ac_status); }; } &&
  47614. - { ac_try='test -s conftest.$ac_objext'
  47615. - { (case "(($ac_try" in
  47616. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  47617. - *) ac_try_echo=$ac_try;;
  47618. -esac
  47619. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  47620. - (eval "$ac_try") 2>&5
  47621. - ac_status=$?
  47622. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  47623. - (exit $ac_status); }; }; then
  47624. - ac_cv_sys_largefile_source=1; break
  47625. +if test -x / >/dev/null 2>&1; then
  47626. + as_test_x='test -x'
  47627. else
  47628. - echo "$as_me: failed program was:" >&5
  47629. -sed 's/^/| /' conftest.$ac_ext >&5
  47630. + if ls -dL / >/dev/null 2>&1; then
  47631. + as_ls_L_option=L
  47632. + else
  47633. + as_ls_L_option=
  47634. + fi
  47635. + as_test_x='
  47636. + eval sh -c '\''
  47637. + if test -d "$1"; then
  47638. + test -d "$1/.";
  47639. + else
  47640. + case $1 in #(
  47641. + -*)set "./$1";;
  47642. + esac;
  47643. + case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
  47644. + ???[sx]*):;;*)false;;esac;fi
  47645. + '\'' sh
  47646. + '
  47647. +fi
  47648. +as_executable_p=$as_test_x
  47649. +# Sed expression to map a string onto a valid CPP name.
  47650. +as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  47651. -fi
  47652. +# Sed expression to map a string onto a valid variable name.
  47653. +as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  47654. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  47655. - break
  47656. -done
  47657. -fi
  47658. -{ echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
  47659. -echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
  47660. -if test "$ac_cv_sys_largefile_source" != no; then
  47661. -cat >>confdefs.h <<_ACEOF
  47662. -#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
  47663. -_ACEOF
  47664. +exec 6>&1
  47665. +## ----------------------------------- ##
  47666. +## Main body of $CONFIG_STATUS script. ##
  47667. +## ----------------------------------- ##
  47668. +_ASEOF
  47669. +test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  47670. -fi
  47671. -rm -f conftest*
  47672. +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  47673. +# Save the log message, to keep $0 and so on meaningful, and to
  47674. +# report actual input values of CONFIG_FILES etc. instead of their
  47675. +# values after options handling.
  47676. +ac_log="
  47677. +This file was extended by libupnp $as_me 1.6.6, which was
  47678. +generated by GNU Autoconf 2.65. Invocation command line was
  47679. +
  47680. + CONFIG_FILES = $CONFIG_FILES
  47681. + CONFIG_HEADERS = $CONFIG_HEADERS
  47682. + CONFIG_LINKS = $CONFIG_LINKS
  47683. + CONFIG_COMMANDS = $CONFIG_COMMANDS
  47684. + $ $0 $@
  47685. +
  47686. +on `(hostname || uname -n) 2>/dev/null | sed 1q`
  47687. +"
  47688. -# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
  47689. -# in glibc 2.1.3, but that breaks too many other things.
  47690. -# If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
  47691. -{ echo "$as_me:$LINENO: checking for fseeko" >&5
  47692. -echo $ECHO_N "checking for fseeko... $ECHO_C" >&6; }
  47693. -if test "${ac_cv_func_fseeko+set}" = set; then
  47694. - echo $ECHO_N "(cached) $ECHO_C" >&6
  47695. -else
  47696. - cat >conftest.$ac_ext <<_ACEOF
  47697. -/* confdefs.h. */
  47698. -_ACEOF
  47699. -cat confdefs.h >>conftest.$ac_ext
  47700. -cat >>conftest.$ac_ext <<_ACEOF
  47701. -/* end confdefs.h. */
  47702. -#include <stdio.h>
  47703. -int
  47704. -main ()
  47705. -{
  47706. -return fseeko && fseeko (stdin, 0, 0);
  47707. - ;
  47708. - return 0;
  47709. -}
  47710. _ACEOF
  47711. -rm -f conftest.$ac_objext conftest$ac_exeext
  47712. -if { (ac_try="$ac_link"
  47713. -case "(($ac_try" in
  47714. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  47715. - *) ac_try_echo=$ac_try;;
  47716. -esac
  47717. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  47718. - (eval "$ac_link") 2>conftest.er1
  47719. - ac_status=$?
  47720. - grep -v '^ *+' conftest.er1 >conftest.err
  47721. - rm -f conftest.er1
  47722. - cat conftest.err >&5
  47723. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  47724. - (exit $ac_status); } &&
  47725. - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  47726. - { (case "(($ac_try" in
  47727. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  47728. - *) ac_try_echo=$ac_try;;
  47729. +
  47730. +case $ac_config_files in *"
  47731. +"*) set x $ac_config_files; shift; ac_config_files=$*;;
  47732. esac
  47733. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  47734. - (eval "$ac_try") 2>&5
  47735. - ac_status=$?
  47736. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  47737. - (exit $ac_status); }; } &&
  47738. - { ac_try='test -s conftest$ac_exeext'
  47739. - { (case "(($ac_try" in
  47740. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  47741. - *) ac_try_echo=$ac_try;;
  47742. +
  47743. +case $ac_config_headers in *"
  47744. +"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  47745. esac
  47746. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  47747. - (eval "$ac_try") 2>&5
  47748. - ac_status=$?
  47749. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  47750. - (exit $ac_status); }; }; then
  47751. - ac_cv_func_fseeko=yes
  47752. -else
  47753. - echo "$as_me: failed program was:" >&5
  47754. -sed 's/^/| /' conftest.$ac_ext >&5
  47755. - ac_cv_func_fseeko=no
  47756. -fi
  47757. -rm -f core conftest.err conftest.$ac_objext \
  47758. - conftest$ac_exeext conftest.$ac_ext
  47759. -fi
  47760. -{ echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5
  47761. -echo "${ECHO_T}$ac_cv_func_fseeko" >&6; }
  47762. -if test $ac_cv_func_fseeko = yes; then
  47763. +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  47764. +# Files that config.status was made for.
  47765. +config_files="$ac_config_files"
  47766. +config_headers="$ac_config_headers"
  47767. +config_commands="$ac_config_commands"
  47768. -cat >>confdefs.h <<\_ACEOF
  47769. -#define HAVE_FSEEKO 1
  47770. _ACEOF
  47771. -fi
  47772. +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  47773. +ac_cs_usage="\
  47774. +\`$as_me' instantiates files and other configuration actions
  47775. +from templates according to the current configuration. Unless the files
  47776. +and actions are specified as TAGs, all are instantiated by default.
  47777. +Usage: $0 [OPTION]... [TAG]...
  47778. -for ac_func in ftime
  47779. -do
  47780. -as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  47781. -{ echo "$as_me:$LINENO: checking for $ac_func" >&5
  47782. -echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  47783. -if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  47784. - echo $ECHO_N "(cached) $ECHO_C" >&6
  47785. -else
  47786. - cat >conftest.$ac_ext <<_ACEOF
  47787. -/* confdefs.h. */
  47788. -_ACEOF
  47789. -cat confdefs.h >>conftest.$ac_ext
  47790. -cat >>conftest.$ac_ext <<_ACEOF
  47791. -/* end confdefs.h. */
  47792. -/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  47793. - For example, HP-UX 11i <limits.h> declares gettimeofday. */
  47794. -#define $ac_func innocuous_$ac_func
  47795. + -h, --help print this help, then exit
  47796. + -V, --version print version number and configuration settings, then exit
  47797. + --config print configuration, then exit
  47798. + -q, --quiet, --silent
  47799. + do not print progress messages
  47800. + -d, --debug don't remove temporary files
  47801. + --recheck update $as_me by reconfiguring in the same conditions
  47802. + --file=FILE[:TEMPLATE]
  47803. + instantiate the configuration file FILE
  47804. + --header=FILE[:TEMPLATE]
  47805. + instantiate the configuration header FILE
  47806. -/* System header to define __stub macros and hopefully few prototypes,
  47807. - which can conflict with char $ac_func (); below.
  47808. - Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  47809. - <limits.h> exists even on freestanding compilers. */
  47810. +Configuration files:
  47811. +$config_files
  47812. -#ifdef __STDC__
  47813. -# include <limits.h>
  47814. -#else
  47815. -# include <assert.h>
  47816. -#endif
  47817. +Configuration headers:
  47818. +$config_headers
  47819. -#undef $ac_func
  47820. +Configuration commands:
  47821. +$config_commands
  47822. -/* Override any GCC internal prototype to avoid an error.
  47823. - Use char because int might match the return type of a GCC
  47824. - builtin and then its argument prototype would still apply. */
  47825. -#ifdef __cplusplus
  47826. -extern "C"
  47827. -#endif
  47828. -char $ac_func ();
  47829. -/* The GNU C library defines this for functions which it implements
  47830. - to always fail with ENOSYS. Some functions are actually named
  47831. - something starting with __ and the normal name is an alias. */
  47832. -#if defined __stub_$ac_func || defined __stub___$ac_func
  47833. -choke me
  47834. -#endif
  47835. +Report bugs to <mroberto@users.sourceforge.net>."
  47836. -int
  47837. -main ()
  47838. -{
  47839. -return $ac_func ();
  47840. - ;
  47841. - return 0;
  47842. -}
  47843. _ACEOF
  47844. -rm -f conftest.$ac_objext conftest$ac_exeext
  47845. -if { (ac_try="$ac_link"
  47846. -case "(($ac_try" in
  47847. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  47848. - *) ac_try_echo=$ac_try;;
  47849. -esac
  47850. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  47851. - (eval "$ac_link") 2>conftest.er1
  47852. - ac_status=$?
  47853. - grep -v '^ *+' conftest.er1 >conftest.err
  47854. - rm -f conftest.er1
  47855. - cat conftest.err >&5
  47856. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  47857. - (exit $ac_status); } &&
  47858. - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  47859. - { (case "(($ac_try" in
  47860. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  47861. - *) ac_try_echo=$ac_try;;
  47862. -esac
  47863. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  47864. - (eval "$ac_try") 2>&5
  47865. - ac_status=$?
  47866. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  47867. - (exit $ac_status); }; } &&
  47868. - { ac_try='test -s conftest$ac_exeext'
  47869. - { (case "(($ac_try" in
  47870. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  47871. - *) ac_try_echo=$ac_try;;
  47872. -esac
  47873. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  47874. - (eval "$ac_try") 2>&5
  47875. - ac_status=$?
  47876. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  47877. - (exit $ac_status); }; }; then
  47878. - eval "$as_ac_var=yes"
  47879. -else
  47880. - echo "$as_me: failed program was:" >&5
  47881. -sed 's/^/| /' conftest.$ac_ext >&5
  47882. +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  47883. +ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
  47884. +ac_cs_version="\\
  47885. +libupnp config.status 1.6.6
  47886. +configured by $0, generated by GNU Autoconf 2.65,
  47887. + with options \\"\$ac_cs_config\\"
  47888. - eval "$as_ac_var=no"
  47889. -fi
  47890. +Copyright (C) 2009 Free Software Foundation, Inc.
  47891. +This config.status script is free software; the Free Software Foundation
  47892. +gives unlimited permission to copy, distribute and modify it."
  47893. -rm -f core conftest.err conftest.$ac_objext \
  47894. - conftest$ac_exeext conftest.$ac_ext
  47895. -fi
  47896. -ac_res=`eval echo '${'$as_ac_var'}'`
  47897. - { echo "$as_me:$LINENO: result: $ac_res" >&5
  47898. -echo "${ECHO_T}$ac_res" >&6; }
  47899. -if test `eval echo '${'$as_ac_var'}'` = yes; then
  47900. - cat >>confdefs.h <<_ACEOF
  47901. -#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  47902. +ac_pwd='$ac_pwd'
  47903. +srcdir='$srcdir'
  47904. +INSTALL='$INSTALL'
  47905. +MKDIR_P='$MKDIR_P'
  47906. +AWK='$AWK'
  47907. +test -n "\$AWK" || AWK=awk
  47908. _ACEOF
  47909. -else
  47910. -
  47911. -{ echo "$as_me:$LINENO: checking for ftime in -lcompat" >&5
  47912. -echo $ECHO_N "checking for ftime in -lcompat... $ECHO_C" >&6; }
  47913. -if test "${ac_cv_lib_compat_ftime+set}" = set; then
  47914. - echo $ECHO_N "(cached) $ECHO_C" >&6
  47915. -else
  47916. - ac_check_lib_save_LIBS=$LIBS
  47917. -LIBS="-lcompat $LIBS"
  47918. -cat >conftest.$ac_ext <<_ACEOF
  47919. -/* confdefs.h. */
  47920. -_ACEOF
  47921. -cat confdefs.h >>conftest.$ac_ext
  47922. -cat >>conftest.$ac_ext <<_ACEOF
  47923. -/* end confdefs.h. */
  47924. +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  47925. +# The default lists apply if the user does not specify any file.
  47926. +ac_need_defaults=:
  47927. +while test $# != 0
  47928. +do
  47929. + case $1 in
  47930. + --*=*)
  47931. + ac_option=`expr "X$1" : 'X\([^=]*\)='`
  47932. + ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  47933. + ac_shift=:
  47934. + ;;
  47935. + *)
  47936. + ac_option=$1
  47937. + ac_optarg=$2
  47938. + ac_shift=shift
  47939. + ;;
  47940. + esac
  47941. -/* Override any GCC internal prototype to avoid an error.
  47942. - Use char because int might match the return type of a GCC
  47943. - builtin and then its argument prototype would still apply. */
  47944. -#ifdef __cplusplus
  47945. -extern "C"
  47946. -#endif
  47947. -char ftime ();
  47948. -int
  47949. -main ()
  47950. -{
  47951. -return ftime ();
  47952. - ;
  47953. - return 0;
  47954. -}
  47955. -_ACEOF
  47956. -rm -f conftest.$ac_objext conftest$ac_exeext
  47957. -if { (ac_try="$ac_link"
  47958. -case "(($ac_try" in
  47959. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  47960. - *) ac_try_echo=$ac_try;;
  47961. -esac
  47962. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  47963. - (eval "$ac_link") 2>conftest.er1
  47964. - ac_status=$?
  47965. - grep -v '^ *+' conftest.er1 >conftest.err
  47966. - rm -f conftest.er1
  47967. - cat conftest.err >&5
  47968. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  47969. - (exit $ac_status); } &&
  47970. - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  47971. - { (case "(($ac_try" in
  47972. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  47973. - *) ac_try_echo=$ac_try;;
  47974. -esac
  47975. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  47976. - (eval "$ac_try") 2>&5
  47977. - ac_status=$?
  47978. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  47979. - (exit $ac_status); }; } &&
  47980. - { ac_try='test -s conftest$ac_exeext'
  47981. - { (case "(($ac_try" in
  47982. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  47983. - *) ac_try_echo=$ac_try;;
  47984. -esac
  47985. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  47986. - (eval "$ac_try") 2>&5
  47987. - ac_status=$?
  47988. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  47989. - (exit $ac_status); }; }; then
  47990. - ac_cv_lib_compat_ftime=yes
  47991. -else
  47992. - echo "$as_me: failed program was:" >&5
  47993. -sed 's/^/| /' conftest.$ac_ext >&5
  47994. + case $ac_option in
  47995. + # Handling of the options.
  47996. + -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  47997. + ac_cs_recheck=: ;;
  47998. + --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  47999. + $as_echo "$ac_cs_version"; exit ;;
  48000. + --config | --confi | --conf | --con | --co | --c )
  48001. + $as_echo "$ac_cs_config"; exit ;;
  48002. + --debug | --debu | --deb | --de | --d | -d )
  48003. + debug=: ;;
  48004. + --file | --fil | --fi | --f )
  48005. + $ac_shift
  48006. + case $ac_optarg in
  48007. + *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  48008. + esac
  48009. + as_fn_append CONFIG_FILES " '$ac_optarg'"
  48010. + ac_need_defaults=false;;
  48011. + --header | --heade | --head | --hea )
  48012. + $ac_shift
  48013. + case $ac_optarg in
  48014. + *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  48015. + esac
  48016. + as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  48017. + ac_need_defaults=false;;
  48018. + --he | --h)
  48019. + # Conflict between --help and --header
  48020. + as_fn_error "ambiguous option: \`$1'
  48021. +Try \`$0 --help' for more information.";;
  48022. + --help | --hel | -h )
  48023. + $as_echo "$ac_cs_usage"; exit ;;
  48024. + -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  48025. + | -silent | --silent | --silen | --sile | --sil | --si | --s)
  48026. + ac_cs_silent=: ;;
  48027. - ac_cv_lib_compat_ftime=no
  48028. -fi
  48029. + # This is an error.
  48030. + -*) as_fn_error "unrecognized option: \`$1'
  48031. +Try \`$0 --help' for more information." ;;
  48032. -rm -f core conftest.err conftest.$ac_objext \
  48033. - conftest$ac_exeext conftest.$ac_ext
  48034. -LIBS=$ac_check_lib_save_LIBS
  48035. -fi
  48036. -{ echo "$as_me:$LINENO: result: $ac_cv_lib_compat_ftime" >&5
  48037. -echo "${ECHO_T}$ac_cv_lib_compat_ftime" >&6; }
  48038. -if test $ac_cv_lib_compat_ftime = yes; then
  48039. - cat >>confdefs.h <<_ACEOF
  48040. -#define HAVE_LIBCOMPAT 1
  48041. -_ACEOF
  48042. + *) as_fn_append ac_config_targets " $1"
  48043. + ac_need_defaults=false ;;
  48044. - LIBS="-lcompat $LIBS"
  48045. + esac
  48046. + shift
  48047. +done
  48048. -fi
  48049. +ac_configure_extra_args=
  48050. +if $ac_cs_silent; then
  48051. + exec 6>/dev/null
  48052. + ac_configure_extra_args="$ac_configure_extra_args --silent"
  48053. fi
  48054. -done
  48055. +_ACEOF
  48056. +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  48057. +if \$ac_cs_recheck; then
  48058. + set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  48059. + shift
  48060. + \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  48061. + CONFIG_SHELL='$SHELL'
  48062. + export CONFIG_SHELL
  48063. + exec "\$@"
  48064. +fi
  48065. +_ACEOF
  48066. +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  48067. +exec 5>>config.log
  48068. +{
  48069. + echo
  48070. + sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  48071. +## Running $as_me. ##
  48072. +_ASBOX
  48073. + $as_echo "$ac_log"
  48074. +} >&5
  48075. +_ACEOF
  48076. +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  48077. #
  48078. -# Checks for POSIX Threads
  48079. +# INIT-COMMANDS
  48080. #
  48081. -echo "--------------------------- pthread stuff -------------------------------------"
  48082. -
  48083. -
  48084. +AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
  48085. -ac_ext=c
  48086. -ac_cpp='$CPP $CPPFLAGS'
  48087. -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  48088. -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  48089. -ac_compiler_gnu=$ac_cv_c_compiler_gnu
  48090. -acx_pthread_ok=no
  48091. +# The HP-UX ksh and POSIX shell print the target directory to stdout
  48092. +# if CDPATH is set.
  48093. +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  48094. -# We used to check for pthread.h first, but this fails if pthread.h
  48095. -# requires special compiler flags (e.g. on True64 or Sequent).
  48096. -# It gets checked for in the link test anyway.
  48097. +sed_quote_subst='$sed_quote_subst'
  48098. +double_quote_subst='$double_quote_subst'
  48099. +delay_variable_subst='$delay_variable_subst'
  48100. +macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
  48101. +macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
  48102. +enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
  48103. +enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
  48104. +pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
  48105. +enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
  48106. +host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
  48107. +host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
  48108. +host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
  48109. +build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
  48110. +build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
  48111. +build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
  48112. +SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
  48113. +Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
  48114. +GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
  48115. +EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
  48116. +FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
  48117. +LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
  48118. +NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
  48119. +LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
  48120. +max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
  48121. +ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
  48122. +exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
  48123. +lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
  48124. +lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
  48125. +lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
  48126. +reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
  48127. +reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  48128. +OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
  48129. +deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
  48130. +file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
  48131. +AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
  48132. +AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
  48133. +STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
  48134. +RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
  48135. +old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  48136. +old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  48137. +old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  48138. +CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
  48139. +CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
  48140. +compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
  48141. +GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
  48142. +lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
  48143. +lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
  48144. +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"`'
  48145. +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"`'
  48146. +objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
  48147. +SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
  48148. +ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
  48149. +MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
  48150. +lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
  48151. +lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
  48152. +lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
  48153. +lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
  48154. +lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
  48155. +need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
  48156. +DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
  48157. +NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
  48158. +LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
  48159. +OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
  48160. +OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
  48161. +libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
  48162. +shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  48163. +extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  48164. +archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
  48165. +enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
  48166. +export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
  48167. +whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
  48168. +compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
  48169. +old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  48170. +old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  48171. +archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  48172. +archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  48173. +module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  48174. +module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  48175. +with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
  48176. +allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
  48177. +no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
  48178. +hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
  48179. +hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
  48180. +hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
  48181. +hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
  48182. +hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
  48183. +hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
  48184. +hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
  48185. +hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
  48186. +inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
  48187. +link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
  48188. +fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
  48189. +always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
  48190. +export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  48191. +exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
  48192. +include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
  48193. +prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  48194. +file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
  48195. +variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
  48196. +need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
  48197. +need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
  48198. +version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
  48199. +runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
  48200. +shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
  48201. +shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
  48202. +libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
  48203. +library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
  48204. +soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
  48205. +postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  48206. +postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  48207. +finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  48208. +finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
  48209. +hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
  48210. +sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
  48211. +sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
  48212. +hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
  48213. +enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
  48214. +enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
  48215. +enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
  48216. +old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
  48217. +striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
  48218. +
  48219. +LTCC='$LTCC'
  48220. +LTCFLAGS='$LTCFLAGS'
  48221. +compiler='$compiler_DEFAULT'
  48222. +
  48223. +# Quote evaled strings.
  48224. +for var in SED \
  48225. +GREP \
  48226. +EGREP \
  48227. +FGREP \
  48228. +LD \
  48229. +NM \
  48230. +LN_S \
  48231. +lt_SP2NL \
  48232. +lt_NL2SP \
  48233. +reload_flag \
  48234. +OBJDUMP \
  48235. +deplibs_check_method \
  48236. +file_magic_cmd \
  48237. +AR \
  48238. +AR_FLAGS \
  48239. +STRIP \
  48240. +RANLIB \
  48241. +CC \
  48242. +CFLAGS \
  48243. +compiler \
  48244. +lt_cv_sys_global_symbol_pipe \
  48245. +lt_cv_sys_global_symbol_to_cdecl \
  48246. +lt_cv_sys_global_symbol_to_c_name_address \
  48247. +lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
  48248. +SHELL \
  48249. +ECHO \
  48250. +lt_prog_compiler_no_builtin_flag \
  48251. +lt_prog_compiler_wl \
  48252. +lt_prog_compiler_pic \
  48253. +lt_prog_compiler_static \
  48254. +lt_cv_prog_compiler_c_o \
  48255. +need_locks \
  48256. +DSYMUTIL \
  48257. +NMEDIT \
  48258. +LIPO \
  48259. +OTOOL \
  48260. +OTOOL64 \
  48261. +shrext_cmds \
  48262. +export_dynamic_flag_spec \
  48263. +whole_archive_flag_spec \
  48264. +compiler_needs_object \
  48265. +with_gnu_ld \
  48266. +allow_undefined_flag \
  48267. +no_undefined_flag \
  48268. +hardcode_libdir_flag_spec \
  48269. +hardcode_libdir_flag_spec_ld \
  48270. +hardcode_libdir_separator \
  48271. +fix_srcfile_path \
  48272. +exclude_expsyms \
  48273. +include_expsyms \
  48274. +file_list_spec \
  48275. +variables_saved_for_relink \
  48276. +libname_spec \
  48277. +library_names_spec \
  48278. +soname_spec \
  48279. +finish_eval \
  48280. +old_striplib \
  48281. +striplib; do
  48282. + case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
  48283. + *[\\\\\\\`\\"\\\$]*)
  48284. + eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
  48285. + ;;
  48286. + *)
  48287. + eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  48288. + ;;
  48289. + esac
  48290. +done
  48291. -# First of all, check if the user has set any of the PTHREAD_LIBS,
  48292. -# etcetera environment variables, and if threads linking works using
  48293. -# them:
  48294. -if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
  48295. - save_CFLAGS="$CFLAGS"
  48296. - CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
  48297. - save_LIBS="$LIBS"
  48298. - LIBS="$PTHREAD_LIBS $LIBS"
  48299. - { echo "$as_me:$LINENO: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
  48300. -echo $ECHO_N "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... $ECHO_C" >&6; }
  48301. - cat >conftest.$ac_ext <<_ACEOF
  48302. -/* confdefs.h. */
  48303. -_ACEOF
  48304. -cat confdefs.h >>conftest.$ac_ext
  48305. -cat >>conftest.$ac_ext <<_ACEOF
  48306. -/* end confdefs.h. */
  48307. +# Double-quote double-evaled strings.
  48308. +for var in reload_cmds \
  48309. +old_postinstall_cmds \
  48310. +old_postuninstall_cmds \
  48311. +old_archive_cmds \
  48312. +extract_expsyms_cmds \
  48313. +old_archive_from_new_cmds \
  48314. +old_archive_from_expsyms_cmds \
  48315. +archive_cmds \
  48316. +archive_expsym_cmds \
  48317. +module_cmds \
  48318. +module_expsym_cmds \
  48319. +export_symbols_cmds \
  48320. +prelink_cmds \
  48321. +postinstall_cmds \
  48322. +postuninstall_cmds \
  48323. +finish_cmds \
  48324. +sys_lib_search_path_spec \
  48325. +sys_lib_dlsearch_path_spec; do
  48326. + case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
  48327. + *[\\\\\\\`\\"\\\$]*)
  48328. + eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
  48329. + ;;
  48330. + *)
  48331. + eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  48332. + ;;
  48333. + esac
  48334. +done
  48335. -/* Override any GCC internal prototype to avoid an error.
  48336. - Use char because int might match the return type of a GCC
  48337. - builtin and then its argument prototype would still apply. */
  48338. -#ifdef __cplusplus
  48339. -extern "C"
  48340. -#endif
  48341. -char pthread_join ();
  48342. -int
  48343. -main ()
  48344. -{
  48345. -return pthread_join ();
  48346. - ;
  48347. - return 0;
  48348. -}
  48349. -_ACEOF
  48350. -rm -f conftest.$ac_objext conftest$ac_exeext
  48351. -if { (ac_try="$ac_link"
  48352. -case "(($ac_try" in
  48353. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  48354. - *) ac_try_echo=$ac_try;;
  48355. -esac
  48356. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  48357. - (eval "$ac_link") 2>conftest.er1
  48358. - ac_status=$?
  48359. - grep -v '^ *+' conftest.er1 >conftest.err
  48360. - rm -f conftest.er1
  48361. - cat conftest.err >&5
  48362. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  48363. - (exit $ac_status); } &&
  48364. - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  48365. - { (case "(($ac_try" in
  48366. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  48367. - *) ac_try_echo=$ac_try;;
  48368. -esac
  48369. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  48370. - (eval "$ac_try") 2>&5
  48371. - ac_status=$?
  48372. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  48373. - (exit $ac_status); }; } &&
  48374. - { ac_try='test -s conftest$ac_exeext'
  48375. - { (case "(($ac_try" in
  48376. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  48377. - *) ac_try_echo=$ac_try;;
  48378. +# Fix-up fallback echo if it was mangled by the above quoting rules.
  48379. +case \$lt_ECHO in
  48380. +*'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
  48381. + ;;
  48382. esac
  48383. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  48384. - (eval "$ac_try") 2>&5
  48385. - ac_status=$?
  48386. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  48387. - (exit $ac_status); }; }; then
  48388. - acx_pthread_ok=yes
  48389. -else
  48390. - echo "$as_me: failed program was:" >&5
  48391. -sed 's/^/| /' conftest.$ac_ext >&5
  48392. +ac_aux_dir='$ac_aux_dir'
  48393. +xsi_shell='$xsi_shell'
  48394. +lt_shell_append='$lt_shell_append'
  48395. +# See if we are running on zsh, and set the options which allow our
  48396. +# commands through without removal of \ escapes INIT.
  48397. +if test -n "\${ZSH_VERSION+set}" ; then
  48398. + setopt NO_GLOB_SUBST
  48399. fi
  48400. -rm -f core conftest.err conftest.$ac_objext \
  48401. - conftest$ac_exeext conftest.$ac_ext
  48402. - { echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
  48403. -echo "${ECHO_T}$acx_pthread_ok" >&6; }
  48404. - if test x"$acx_pthread_ok" = xno; then
  48405. - PTHREAD_LIBS=""
  48406. - PTHREAD_CFLAGS=""
  48407. - fi
  48408. - LIBS="$save_LIBS"
  48409. - CFLAGS="$save_CFLAGS"
  48410. -fi
  48411. -
  48412. -# We must check for the threads library under a number of different
  48413. -# names; the ordering is very important because some systems
  48414. -# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
  48415. -# libraries is broken (non-POSIX).
  48416. -
  48417. -# Create a list of thread flags to try. Items starting with a "-" are
  48418. -# C compiler flags, and other items are library names, except for "none"
  48419. -# which indicates that we try without any flags at all, and "pthread-config"
  48420. -# which is a program returning the flags for the Pth emulation library.
  48421. -
  48422. -acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
  48423. -
  48424. -# The ordering *is* (sometimes) important. Some notes on the
  48425. -# individual items follow:
  48426. -
  48427. -# pthreads: AIX (must check this before -lpthread)
  48428. -# none: in case threads are in libc; should be tried before -Kthread and
  48429. -# other compiler flags to prevent continual compiler warnings
  48430. -# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
  48431. -# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
  48432. -# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
  48433. -# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
  48434. -# -pthreads: Solaris/gcc
  48435. -# -mthreads: Mingw32/gcc, Lynx/gcc
  48436. -# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
  48437. -# doesn't hurt to check since this sometimes defines pthreads too;
  48438. -# also defines -D_REENTRANT)
  48439. -# ... -mt is also the pthreads flag for HP/aCC
  48440. -# pthread: Linux, etcetera
  48441. -# --thread-safe: KAI C++
  48442. -# pthread-config: use pthread-config program (for GNU Pth library)
  48443. -case "${host_cpu}-${host_os}" in
  48444. - *solaris*)
  48445. + PACKAGE='$PACKAGE'
  48446. + VERSION='$VERSION'
  48447. + TIMESTAMP='$TIMESTAMP'
  48448. + RM='$RM'
  48449. + ofile='$ofile'
  48450. - # On Solaris (at least, for some versions), libc contains stubbed
  48451. - # (non-functional) versions of the pthreads routines, so link-based
  48452. - # tests will erroneously succeed. (We need to link with -pthreads/-mt/
  48453. - # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
  48454. - # a function called by this macro, so we could check for that, but
  48455. - # who knows whether they'll stub that too in a future libc.) So,
  48456. - # we'll just look for -pthreads and -lpthread first:
  48457. - acx_pthread_flags="-pthreads pthread -mt -pthread $acx_pthread_flags"
  48458. - ;;
  48459. -esac
  48460. -if test x"$acx_pthread_ok" = xno; then
  48461. -for flag in $acx_pthread_flags; do
  48462. - case $flag in
  48463. - none)
  48464. - { echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
  48465. -echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6; }
  48466. - ;;
  48467. +_ACEOF
  48468. - -*)
  48469. - { echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
  48470. -echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6; }
  48471. - PTHREAD_CFLAGS="$flag"
  48472. - ;;
  48473. +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  48474. - pthread-config)
  48475. - # Extract the first word of "pthread-config", so it can be a program name with args.
  48476. -set dummy pthread-config; ac_word=$2
  48477. -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
  48478. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  48479. -if test "${ac_cv_prog_acx_pthread_config+set}" = set; then
  48480. - echo $ECHO_N "(cached) $ECHO_C" >&6
  48481. -else
  48482. - if test -n "$acx_pthread_config"; then
  48483. - ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test.
  48484. -else
  48485. -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  48486. -for as_dir in $PATH
  48487. +# Handling of arguments.
  48488. +for ac_config_target in $ac_config_targets
  48489. do
  48490. - IFS=$as_save_IFS
  48491. - test -z "$as_dir" && as_dir=.
  48492. - for ac_exec_ext in '' $ac_executable_extensions; do
  48493. - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
  48494. - ac_cv_prog_acx_pthread_config="yes"
  48495. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  48496. - break 2
  48497. - fi
  48498. -done
  48499. -done
  48500. -IFS=$as_save_IFS
  48501. -
  48502. - test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no"
  48503. -fi
  48504. -fi
  48505. -acx_pthread_config=$ac_cv_prog_acx_pthread_config
  48506. -if test -n "$acx_pthread_config"; then
  48507. - { echo "$as_me:$LINENO: result: $acx_pthread_config" >&5
  48508. -echo "${ECHO_T}$acx_pthread_config" >&6; }
  48509. -else
  48510. - { echo "$as_me:$LINENO: result: no" >&5
  48511. -echo "${ECHO_T}no" >&6; }
  48512. -fi
  48513. -
  48514. -
  48515. - if test x"$acx_pthread_config" = xno; then continue; fi
  48516. - PTHREAD_CFLAGS="`pthread-config --cflags`"
  48517. - PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
  48518. - ;;
  48519. + case $ac_config_target in
  48520. + "autoconfig.h") CONFIG_HEADERS="$CONFIG_HEADERS autoconfig.h" ;;
  48521. + "upnp/inc/upnpconfig.h") CONFIG_HEADERS="$CONFIG_HEADERS upnp/inc/upnpconfig.h" ;;
  48522. + "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  48523. + "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
  48524. + "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  48525. + "ixml/Makefile") CONFIG_FILES="$CONFIG_FILES ixml/Makefile" ;;
  48526. + "ixml/doc/Makefile") CONFIG_FILES="$CONFIG_FILES ixml/doc/Makefile" ;;
  48527. + "threadutil/Makefile") CONFIG_FILES="$CONFIG_FILES threadutil/Makefile" ;;
  48528. + "upnp/Makefile") CONFIG_FILES="$CONFIG_FILES upnp/Makefile" ;;
  48529. + "upnp/doc/Makefile") CONFIG_FILES="$CONFIG_FILES upnp/doc/Makefile" ;;
  48530. + "upnp/sample/Makefile") CONFIG_FILES="$CONFIG_FILES upnp/sample/Makefile" ;;
  48531. + "docs/dist/Makefile") CONFIG_FILES="$CONFIG_FILES docs/dist/Makefile" ;;
  48532. + "libupnp.pc") CONFIG_FILES="$CONFIG_FILES libupnp.pc" ;;
  48533. - *)
  48534. - { echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
  48535. -echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6; }
  48536. - PTHREAD_LIBS="-l$flag"
  48537. - ;;
  48538. - esac
  48539. + *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  48540. + esac
  48541. +done
  48542. - save_LIBS="$LIBS"
  48543. - save_CFLAGS="$CFLAGS"
  48544. - LIBS="$PTHREAD_LIBS $LIBS"
  48545. - CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
  48546. - # Check for various functions. We must include pthread.h,
  48547. - # since some functions may be macros. (On the Sequent, we
  48548. - # need a special flag -Kthread to make this header compile.)
  48549. - # We check for pthread_join because it is in -lpthread on IRIX
  48550. - # while pthread_create is in libc. We check for pthread_attr_init
  48551. - # due to DEC craziness with -lpthreads. We check for
  48552. - # pthread_cleanup_push because it is one of the few pthread
  48553. - # functions on Solaris that doesn't have a non-functional libc stub.
  48554. - # We try pthread_create on general principles.
  48555. - cat >conftest.$ac_ext <<_ACEOF
  48556. -/* confdefs.h. */
  48557. -_ACEOF
  48558. -cat confdefs.h >>conftest.$ac_ext
  48559. -cat >>conftest.$ac_ext <<_ACEOF
  48560. -/* end confdefs.h. */
  48561. -#include <pthread.h>
  48562. -int
  48563. -main ()
  48564. +# If the user did not use the arguments to specify the items to instantiate,
  48565. +# then the envvar interface is used. Set only those that are not.
  48566. +# We use the long form for the default assignment because of an extremely
  48567. +# bizarre bug on SunOS 4.1.3.
  48568. +if $ac_need_defaults; then
  48569. + test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  48570. + test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  48571. + test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  48572. +fi
  48573. +
  48574. +# Have a temporary directory for convenience. Make it in the build tree
  48575. +# simply because there is no reason against having it here, and in addition,
  48576. +# creating and moving files from /tmp can sometimes cause problems.
  48577. +# Hook for its removal unless debugging.
  48578. +# Note that there is a small window in which the directory will not be cleaned:
  48579. +# after its creation but before its name has been assigned to `$tmp'.
  48580. +$debug ||
  48581. {
  48582. -pthread_t th; pthread_join(th, 0);
  48583. - pthread_attr_init(0); pthread_cleanup_push(0, 0);
  48584. - pthread_create(0,0,0,0); pthread_cleanup_pop(0);
  48585. - ;
  48586. - return 0;
  48587. + tmp=
  48588. + trap 'exit_status=$?
  48589. + { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
  48590. +' 0
  48591. + trap 'as_fn_exit 1' 1 2 13 15
  48592. }
  48593. -_ACEOF
  48594. -rm -f conftest.$ac_objext conftest$ac_exeext
  48595. -if { (ac_try="$ac_link"
  48596. -case "(($ac_try" in
  48597. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  48598. - *) ac_try_echo=$ac_try;;
  48599. -esac
  48600. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  48601. - (eval "$ac_link") 2>conftest.er1
  48602. - ac_status=$?
  48603. - grep -v '^ *+' conftest.er1 >conftest.err
  48604. - rm -f conftest.er1
  48605. - cat conftest.err >&5
  48606. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  48607. - (exit $ac_status); } &&
  48608. - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  48609. - { (case "(($ac_try" in
  48610. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  48611. - *) ac_try_echo=$ac_try;;
  48612. -esac
  48613. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  48614. - (eval "$ac_try") 2>&5
  48615. - ac_status=$?
  48616. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  48617. - (exit $ac_status); }; } &&
  48618. - { ac_try='test -s conftest$ac_exeext'
  48619. - { (case "(($ac_try" in
  48620. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  48621. - *) ac_try_echo=$ac_try;;
  48622. -esac
  48623. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  48624. - (eval "$ac_try") 2>&5
  48625. - ac_status=$?
  48626. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  48627. - (exit $ac_status); }; }; then
  48628. - acx_pthread_ok=yes
  48629. -else
  48630. - echo "$as_me: failed program was:" >&5
  48631. -sed 's/^/| /' conftest.$ac_ext >&5
  48632. +# Create a (secure) tmp directory for tmp files.
  48633. +
  48634. +{
  48635. + tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  48636. + test -n "$tmp" && test -d "$tmp"
  48637. +} ||
  48638. +{
  48639. + tmp=./conf$$-$RANDOM
  48640. + (umask 077 && mkdir "$tmp")
  48641. +} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
  48642. +
  48643. +# Set up the scripts for CONFIG_FILES section.
  48644. +# No need to generate them if there are no CONFIG_FILES.
  48645. +# This happens for instance with `./config.status config.h'.
  48646. +if test -n "$CONFIG_FILES"; then
  48647. +ac_cr=`echo X | tr X '\015'`
  48648. +# On cygwin, bash can eat \r inside `` if the user requested igncr.
  48649. +# But we know of no other shell where ac_cr would be empty at this
  48650. +# point, so we can use a bashism as a fallback.
  48651. +if test "x$ac_cr" = x; then
  48652. + eval ac_cr=\$\'\\r\'
  48653. +fi
  48654. +ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  48655. +if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  48656. + ac_cs_awk_cr='\r'
  48657. +else
  48658. + ac_cs_awk_cr=$ac_cr
  48659. fi
  48660. -rm -f core conftest.err conftest.$ac_objext \
  48661. - conftest$ac_exeext conftest.$ac_ext
  48662. +echo 'BEGIN {' >"$tmp/subs1.awk" &&
  48663. +_ACEOF
  48664. - LIBS="$save_LIBS"
  48665. - CFLAGS="$save_CFLAGS"
  48666. - { echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
  48667. -echo "${ECHO_T}$acx_pthread_ok" >&6; }
  48668. - if test "x$acx_pthread_ok" = xyes; then
  48669. - break;
  48670. - fi
  48671. +{
  48672. + echo "cat >conf$$subs.awk <<_ACEOF" &&
  48673. + echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  48674. + echo "_ACEOF"
  48675. +} >conf$$subs.sh ||
  48676. + as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
  48677. +ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
  48678. +ac_delim='%!_!# '
  48679. +for ac_last_try in false false false false false :; do
  48680. + . ./conf$$subs.sh ||
  48681. + as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
  48682. - PTHREAD_LIBS=""
  48683. - PTHREAD_CFLAGS=""
  48684. + ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  48685. + if test $ac_delim_n = $ac_delim_num; then
  48686. + break
  48687. + elif $ac_last_try; then
  48688. + as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
  48689. + else
  48690. + ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  48691. + fi
  48692. done
  48693. -fi
  48694. -
  48695. -# Various other checks:
  48696. -if test "x$acx_pthread_ok" = xyes; then
  48697. - save_LIBS="$LIBS"
  48698. - LIBS="$PTHREAD_LIBS $LIBS"
  48699. - save_CFLAGS="$CFLAGS"
  48700. - CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
  48701. +rm -f conf$$subs.sh
  48702. - # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
  48703. - { echo "$as_me:$LINENO: checking for joinable pthread attribute" >&5
  48704. -echo $ECHO_N "checking for joinable pthread attribute... $ECHO_C" >&6; }
  48705. - attr_name=unknown
  48706. - for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
  48707. - cat >conftest.$ac_ext <<_ACEOF
  48708. -/* confdefs.h. */
  48709. +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  48710. +cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
  48711. _ACEOF
  48712. -cat confdefs.h >>conftest.$ac_ext
  48713. -cat >>conftest.$ac_ext <<_ACEOF
  48714. -/* end confdefs.h. */
  48715. -#include <pthread.h>
  48716. -int
  48717. -main ()
  48718. +sed -n '
  48719. +h
  48720. +s/^/S["/; s/!.*/"]=/
  48721. +p
  48722. +g
  48723. +s/^[^!]*!//
  48724. +:repl
  48725. +t repl
  48726. +s/'"$ac_delim"'$//
  48727. +t delim
  48728. +:nl
  48729. +h
  48730. +s/\(.\{148\}\)..*/\1/
  48731. +t more1
  48732. +s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  48733. +p
  48734. +n
  48735. +b repl
  48736. +:more1
  48737. +s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  48738. +p
  48739. +g
  48740. +s/.\{148\}//
  48741. +t nl
  48742. +:delim
  48743. +h
  48744. +s/\(.\{148\}\)..*/\1/
  48745. +t more2
  48746. +s/["\\]/\\&/g; s/^/"/; s/$/"/
  48747. +p
  48748. +b
  48749. +:more2
  48750. +s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  48751. +p
  48752. +g
  48753. +s/.\{148\}//
  48754. +t delim
  48755. +' <conf$$subs.awk | sed '
  48756. +/^[^""]/{
  48757. + N
  48758. + s/\n//
  48759. +}
  48760. +' >>$CONFIG_STATUS || ac_write_fail=1
  48761. +rm -f conf$$subs.awk
  48762. +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  48763. +_ACAWK
  48764. +cat >>"\$tmp/subs1.awk" <<_ACAWK &&
  48765. + for (key in S) S_is_set[key] = 1
  48766. + FS = ""
  48767. +
  48768. +}
  48769. {
  48770. -int attr=$attr; return attr;
  48771. - ;
  48772. - return 0;
  48773. + line = $ 0
  48774. + nfields = split(line, field, "@")
  48775. + substed = 0
  48776. + len = length(field[1])
  48777. + for (i = 2; i < nfields; i++) {
  48778. + key = field[i]
  48779. + keylen = length(key)
  48780. + if (S_is_set[key]) {
  48781. + value = S[key]
  48782. + line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  48783. + len += length(value) + length(field[++i])
  48784. + substed = 1
  48785. + } else
  48786. + len += 1 + keylen
  48787. + }
  48788. +
  48789. + print line
  48790. }
  48791. +
  48792. +_ACAWK
  48793. _ACEOF
  48794. -rm -f conftest.$ac_objext conftest$ac_exeext
  48795. -if { (ac_try="$ac_link"
  48796. -case "(($ac_try" in
  48797. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  48798. - *) ac_try_echo=$ac_try;;
  48799. -esac
  48800. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  48801. - (eval "$ac_link") 2>conftest.er1
  48802. - ac_status=$?
  48803. - grep -v '^ *+' conftest.er1 >conftest.err
  48804. - rm -f conftest.er1
  48805. - cat conftest.err >&5
  48806. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  48807. - (exit $ac_status); } &&
  48808. - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  48809. - { (case "(($ac_try" in
  48810. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  48811. - *) ac_try_echo=$ac_try;;
  48812. -esac
  48813. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  48814. - (eval "$ac_try") 2>&5
  48815. - ac_status=$?
  48816. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  48817. - (exit $ac_status); }; } &&
  48818. - { ac_try='test -s conftest$ac_exeext'
  48819. - { (case "(($ac_try" in
  48820. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  48821. - *) ac_try_echo=$ac_try;;
  48822. -esac
  48823. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  48824. - (eval "$ac_try") 2>&5
  48825. - ac_status=$?
  48826. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  48827. - (exit $ac_status); }; }; then
  48828. - attr_name=$attr; break
  48829. +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  48830. +if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  48831. + sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  48832. else
  48833. - echo "$as_me: failed program was:" >&5
  48834. -sed 's/^/| /' conftest.$ac_ext >&5
  48835. -
  48836. + cat
  48837. +fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
  48838. + || as_fn_error "could not setup config files machinery" "$LINENO" 5
  48839. +_ACEOF
  48840. +# VPATH may cause trouble with some makes, so we remove $(srcdir),
  48841. +# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
  48842. +# trailing colons and then remove the whole line if VPATH becomes empty
  48843. +# (actually we leave an empty line to preserve line numbers).
  48844. +if test "x$srcdir" = x.; then
  48845. + ac_vpsub='/^[ ]*VPATH[ ]*=/{
  48846. +s/:*\$(srcdir):*/:/
  48847. +s/:*\${srcdir}:*/:/
  48848. +s/:*@srcdir@:*/:/
  48849. +s/^\([^=]*=[ ]*\):*/\1/
  48850. +s/:*$//
  48851. +s/^[^=]*=[ ]*$//
  48852. +}'
  48853. fi
  48854. -rm -f core conftest.err conftest.$ac_objext \
  48855. - conftest$ac_exeext conftest.$ac_ext
  48856. - done
  48857. - { echo "$as_me:$LINENO: result: $attr_name" >&5
  48858. -echo "${ECHO_T}$attr_name" >&6; }
  48859. - if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
  48860. +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  48861. +fi # test -n "$CONFIG_FILES"
  48862. -cat >>confdefs.h <<_ACEOF
  48863. -#define PTHREAD_CREATE_JOINABLE $attr_name
  48864. +# Set up the scripts for CONFIG_HEADERS section.
  48865. +# No need to generate them if there are no CONFIG_HEADERS.
  48866. +# This happens for instance with `./config.status Makefile'.
  48867. +if test -n "$CONFIG_HEADERS"; then
  48868. +cat >"$tmp/defines.awk" <<\_ACAWK ||
  48869. +BEGIN {
  48870. _ACEOF
  48871. - fi
  48872. -
  48873. - { echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
  48874. -echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6; }
  48875. - flag=no
  48876. - case "${host_cpu}-${host_os}" in
  48877. - *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
  48878. - *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
  48879. - esac
  48880. - { echo "$as_me:$LINENO: result: ${flag}" >&5
  48881. -echo "${ECHO_T}${flag}" >&6; }
  48882. - if test "x$flag" != xno; then
  48883. - PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
  48884. - fi
  48885. -
  48886. - LIBS="$save_LIBS"
  48887. - CFLAGS="$save_CFLAGS"
  48888. +# Transform confdefs.h into an awk script `defines.awk', embedded as
  48889. +# here-document in config.status, that substitutes the proper values into
  48890. +# config.h.in to produce config.h.
  48891. - # More AIX lossage: must compile with xlc_r or cc_r
  48892. - if test x"$GCC" != xyes; then
  48893. - for ac_prog in xlc_r cc_r
  48894. -do
  48895. - # Extract the first word of "$ac_prog", so it can be a program name with args.
  48896. -set dummy $ac_prog; ac_word=$2
  48897. -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
  48898. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  48899. -if test "${ac_cv_prog_PTHREAD_CC+set}" = set; then
  48900. - echo $ECHO_N "(cached) $ECHO_C" >&6
  48901. -else
  48902. - if test -n "$PTHREAD_CC"; then
  48903. - ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
  48904. -else
  48905. -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  48906. -for as_dir in $PATH
  48907. -do
  48908. - IFS=$as_save_IFS
  48909. - test -z "$as_dir" && as_dir=.
  48910. - for ac_exec_ext in '' $ac_executable_extensions; do
  48911. - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
  48912. - ac_cv_prog_PTHREAD_CC="$ac_prog"
  48913. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  48914. - break 2
  48915. +# Create a delimiter string that does not exist in confdefs.h, to ease
  48916. +# handling of long lines.
  48917. +ac_delim='%!_!# '
  48918. +for ac_last_try in false false :; do
  48919. + ac_t=`sed -n "/$ac_delim/p" confdefs.h`
  48920. + if test -z "$ac_t"; then
  48921. + break
  48922. + elif $ac_last_try; then
  48923. + as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
  48924. + else
  48925. + ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  48926. fi
  48927. done
  48928. -done
  48929. -IFS=$as_save_IFS
  48930. -fi
  48931. -fi
  48932. -PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
  48933. -if test -n "$PTHREAD_CC"; then
  48934. - { echo "$as_me:$LINENO: result: $PTHREAD_CC" >&5
  48935. -echo "${ECHO_T}$PTHREAD_CC" >&6; }
  48936. -else
  48937. - { echo "$as_me:$LINENO: result: no" >&5
  48938. -echo "${ECHO_T}no" >&6; }
  48939. -fi
  48940. +# For the awk script, D is an array of macro values keyed by name,
  48941. +# likewise P contains macro parameters if any. Preserve backslash
  48942. +# newline sequences.
  48943. +ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  48944. +sed -n '
  48945. +s/.\{148\}/&'"$ac_delim"'/g
  48946. +t rset
  48947. +:rset
  48948. +s/^[ ]*#[ ]*define[ ][ ]*/ /
  48949. +t def
  48950. +d
  48951. +:def
  48952. +s/\\$//
  48953. +t bsnl
  48954. +s/["\\]/\\&/g
  48955. +s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  48956. +D["\1"]=" \3"/p
  48957. +s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  48958. +d
  48959. +:bsnl
  48960. +s/["\\]/\\&/g
  48961. +s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  48962. +D["\1"]=" \3\\\\\\n"\\/p
  48963. +t cont
  48964. +s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  48965. +t cont
  48966. +d
  48967. +:cont
  48968. +n
  48969. +s/.\{148\}/&'"$ac_delim"'/g
  48970. +t clear
  48971. +:clear
  48972. +s/\\$//
  48973. +t bsnlc
  48974. +s/["\\]/\\&/g; s/^/"/; s/$/"/p
  48975. +d
  48976. +:bsnlc
  48977. +s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  48978. +b cont
  48979. +' <confdefs.h | sed '
  48980. +s/'"$ac_delim"'/"\\\
  48981. +"/g' >>$CONFIG_STATUS || ac_write_fail=1
  48982. +
  48983. +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  48984. + for (key in D) D_is_set[key] = 1
  48985. + FS = ""
  48986. +}
  48987. +/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  48988. + line = \$ 0
  48989. + split(line, arg, " ")
  48990. + if (arg[1] == "#") {
  48991. + defundef = arg[2]
  48992. + mac1 = arg[3]
  48993. + } else {
  48994. + defundef = substr(arg[1], 2)
  48995. + mac1 = arg[2]
  48996. + }
  48997. + split(mac1, mac2, "(") #)
  48998. + macro = mac2[1]
  48999. + prefix = substr(line, 1, index(line, defundef) - 1)
  49000. + if (D_is_set[macro]) {
  49001. + # Preserve the white space surrounding the "#".
  49002. + print prefix "define", macro P[macro] D[macro]
  49003. + next
  49004. + } else {
  49005. + # Replace #undef with comments. This is necessary, for example,
  49006. + # in the case of _POSIX_SOURCE, which is predefined and required
  49007. + # on some systems where configure will not decide to define it.
  49008. + if (defundef == "undef") {
  49009. + print "/*", prefix defundef, macro, "*/"
  49010. + next
  49011. + }
  49012. + }
  49013. +}
  49014. +{ print }
  49015. +_ACAWK
  49016. +_ACEOF
  49017. +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  49018. + as_fn_error "could not setup config headers machinery" "$LINENO" 5
  49019. +fi # test -n "$CONFIG_HEADERS"
  49020. - test -n "$PTHREAD_CC" && break
  49021. -done
  49022. -test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
  49023. - else
  49024. - PTHREAD_CC=$CC
  49025. - fi
  49026. -else
  49027. - PTHREAD_CC="$CC"
  49028. -fi
  49029. +eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
  49030. +shift
  49031. +for ac_tag
  49032. +do
  49033. + case $ac_tag in
  49034. + :[FHLC]) ac_mode=$ac_tag; continue;;
  49035. + esac
  49036. + case $ac_mode$ac_tag in
  49037. + :[FHL]*:*);;
  49038. + :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
  49039. + :[FH]-) ac_tag=-:-;;
  49040. + :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  49041. + esac
  49042. + ac_save_IFS=$IFS
  49043. + IFS=:
  49044. + set x $ac_tag
  49045. + IFS=$ac_save_IFS
  49046. + shift
  49047. + ac_file=$1
  49048. + shift
  49049. +
  49050. + case $ac_mode in
  49051. + :L) ac_source=$1;;
  49052. + :[FH])
  49053. + ac_file_inputs=
  49054. + for ac_f
  49055. + do
  49056. + case $ac_f in
  49057. + -) ac_f="$tmp/stdin";;
  49058. + *) # Look for the file first in the build tree, then in the source tree
  49059. + # (if the path is not absolute). The absolute path cannot be DOS-style,
  49060. + # because $ac_f cannot contain `:'.
  49061. + test -f "$ac_f" ||
  49062. + case $ac_f in
  49063. + [\\/$]*) false;;
  49064. + *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  49065. + esac ||
  49066. + as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  49067. + esac
  49068. + case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  49069. + as_fn_append ac_file_inputs " '$ac_f'"
  49070. + done
  49071. +
  49072. + # Let's still pretend it is `configure' which instantiates (i.e., don't
  49073. + # use $as_me), people would be surprised to read:
  49074. + # /* config.h. Generated by config.status. */
  49075. + configure_input='Generated from '`
  49076. + $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  49077. + `' by configure.'
  49078. + if test x"$ac_file" != x-; then
  49079. + configure_input="$ac_file. $configure_input"
  49080. + { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  49081. +$as_echo "$as_me: creating $ac_file" >&6;}
  49082. + fi
  49083. + # Neutralize special characters interpreted by sed in replacement strings.
  49084. + case $configure_input in #(
  49085. + *\&* | *\|* | *\\* )
  49086. + ac_sed_conf_input=`$as_echo "$configure_input" |
  49087. + sed 's/[\\\\&|]/\\\\&/g'`;; #(
  49088. + *) ac_sed_conf_input=$configure_input;;
  49089. + esac
  49090. +
  49091. + case $ac_tag in
  49092. + *:-:* | *:-) cat >"$tmp/stdin" \
  49093. + || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
  49094. + esac
  49095. + ;;
  49096. + esac
  49097. + ac_dir=`$as_dirname -- "$ac_file" ||
  49098. +$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  49099. + X"$ac_file" : 'X\(//\)[^/]' \| \
  49100. + X"$ac_file" : 'X\(//\)$' \| \
  49101. + X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  49102. +$as_echo X"$ac_file" |
  49103. + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  49104. + s//\1/
  49105. + q
  49106. + }
  49107. + /^X\(\/\/\)[^/].*/{
  49108. + s//\1/
  49109. + q
  49110. + }
  49111. + /^X\(\/\/\)$/{
  49112. + s//\1/
  49113. + q
  49114. + }
  49115. + /^X\(\/\).*/{
  49116. + s//\1/
  49117. + q
  49118. + }
  49119. + s/.*/./; q'`
  49120. + as_dir="$ac_dir"; as_fn_mkdir_p
  49121. + ac_builddir=.
  49122. +case "$ac_dir" in
  49123. +.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  49124. +*)
  49125. + ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  49126. + # A ".." for each directory in $ac_dir_suffix.
  49127. + ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  49128. + case $ac_top_builddir_sub in
  49129. + "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  49130. + *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  49131. + esac ;;
  49132. +esac
  49133. +ac_abs_top_builddir=$ac_pwd
  49134. +ac_abs_builddir=$ac_pwd$ac_dir_suffix
  49135. +# for backward compatibility:
  49136. +ac_top_builddir=$ac_top_build_prefix
  49137. +case $srcdir in
  49138. + .) # We are building in place.
  49139. + ac_srcdir=.
  49140. + ac_top_srcdir=$ac_top_builddir_sub
  49141. + ac_abs_top_srcdir=$ac_pwd ;;
  49142. + [\\/]* | ?:[\\/]* ) # Absolute name.
  49143. + ac_srcdir=$srcdir$ac_dir_suffix;
  49144. + ac_top_srcdir=$srcdir
  49145. + ac_abs_top_srcdir=$srcdir ;;
  49146. + *) # Relative name.
  49147. + ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  49148. + ac_top_srcdir=$ac_top_build_prefix$srcdir
  49149. + ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  49150. +esac
  49151. +ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  49152. -# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
  49153. -if test x"$acx_pthread_ok" = xyes; then
  49154. + case $ac_mode in
  49155. + :F)
  49156. + #
  49157. + # CONFIG_FILE
  49158. + #
  49159. -cat >>confdefs.h <<\_ACEOF
  49160. -#define HAVE_PTHREAD 1
  49161. + case $INSTALL in
  49162. + [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  49163. + *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  49164. + esac
  49165. + ac_MKDIR_P=$MKDIR_P
  49166. + case $MKDIR_P in
  49167. + [\\/$]* | ?:[\\/]* ) ;;
  49168. + */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
  49169. + esac
  49170. _ACEOF
  49171. - :
  49172. -else
  49173. - acx_pthread_ok=no
  49174. - { { echo "$as_me:$LINENO: error: POSIX threads are required to build this program" >&5
  49175. -echo "$as_me: error: POSIX threads are required to build this program" >&2;}
  49176. - { (exit 1); exit 1; }; }
  49177. -fi
  49178. -ac_ext=c
  49179. -ac_cpp='$CPP $CPPFLAGS'
  49180. -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  49181. -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  49182. -ac_compiler_gnu=$ac_cv_c_compiler_gnu
  49183. -
  49184. -
  49185. -#
  49186. -# Update environment variables for pthreads
  49187. -#
  49188. -CC="$PTHREAD_CC"
  49189. -CFLAGS="$PTHREAD_CFLAGS $CFLAGS"
  49190. -LIBS="$PTHREAD_LIBS $LIBS"
  49191. -#
  49192. -# Determine if pthread_rwlock_t is available
  49193. -#
  49194. -echo "----------------------- pthread_rwlock_t stuff --------------------------------"
  49195. -{ echo "$as_me:$LINENO: checking if pthread_rwlock_t is available" >&5
  49196. -echo $ECHO_N "checking if pthread_rwlock_t is available... $ECHO_C" >&6; }
  49197. -ac_ext=c
  49198. -ac_cpp='$CPP $CPPFLAGS'
  49199. -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  49200. -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  49201. -ac_compiler_gnu=$ac_cv_c_compiler_gnu
  49202. -
  49203. -cat >conftest.$ac_ext <<_ACEOF
  49204. -/* confdefs.h. */
  49205. -_ACEOF
  49206. -cat confdefs.h >>conftest.$ac_ext
  49207. -cat >>conftest.$ac_ext <<_ACEOF
  49208. -/* end confdefs.h. */
  49209. -#include <pthread.h>
  49210. -int
  49211. -main ()
  49212. -{
  49213. -pthread_rwlock_t *x;
  49214. - ;
  49215. - return 0;
  49216. +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  49217. +# If the template does not know about datarootdir, expand it.
  49218. +# FIXME: This hack should be removed a few years after 2.60.
  49219. +ac_datarootdir_hack=; ac_datarootdir_seen=
  49220. +ac_sed_dataroot='
  49221. +/datarootdir/ {
  49222. + p
  49223. + q
  49224. }
  49225. +/@datadir@/p
  49226. +/@docdir@/p
  49227. +/@infodir@/p
  49228. +/@localedir@/p
  49229. +/@mandir@/p'
  49230. +case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  49231. +*datarootdir*) ac_datarootdir_seen=yes;;
  49232. +*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  49233. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  49234. +$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  49235. _ACEOF
  49236. -rm -f conftest.$ac_objext
  49237. -if { (ac_try="$ac_compile"
  49238. -case "(($ac_try" in
  49239. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  49240. - *) ac_try_echo=$ac_try;;
  49241. -esac
  49242. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  49243. - (eval "$ac_compile") 2>conftest.er1
  49244. - ac_status=$?
  49245. - grep -v '^ *+' conftest.er1 >conftest.err
  49246. - rm -f conftest.er1
  49247. - cat conftest.err >&5
  49248. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  49249. - (exit $ac_status); } &&
  49250. - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  49251. - { (case "(($ac_try" in
  49252. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  49253. - *) ac_try_echo=$ac_try;;
  49254. -esac
  49255. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  49256. - (eval "$ac_try") 2>&5
  49257. - ac_status=$?
  49258. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  49259. - (exit $ac_status); }; } &&
  49260. - { ac_try='test -s conftest.$ac_objext'
  49261. - { (case "(($ac_try" in
  49262. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  49263. - *) ac_try_echo=$ac_try;;
  49264. +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  49265. + ac_datarootdir_hack='
  49266. + s&@datadir@&$datadir&g
  49267. + s&@docdir@&$docdir&g
  49268. + s&@infodir@&$infodir&g
  49269. + s&@localedir@&$localedir&g
  49270. + s&@mandir@&$mandir&g
  49271. + s&\\\${datarootdir}&$datarootdir&g' ;;
  49272. esac
  49273. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  49274. - (eval "$ac_try") 2>&5
  49275. - ac_status=$?
  49276. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  49277. - (exit $ac_status); }; }; then
  49278. -
  49279. -cat >>confdefs.h <<\_ACEOF
  49280. -#define UPNP_USE_RWLOCK 1
  49281. _ACEOF
  49282. - { echo "$as_me:$LINENO: result: yes, supported without any options" >&5
  49283. -echo "${ECHO_T}yes, supported without any options" >&6; }
  49284. -else
  49285. - echo "$as_me: failed program was:" >&5
  49286. -sed 's/^/| /' conftest.$ac_ext >&5
  49287. -
  49288. - cat >conftest.$ac_ext <<_ACEOF
  49289. -/* confdefs.h. */
  49290. -_ACEOF
  49291. -cat confdefs.h >>conftest.$ac_ext
  49292. -cat >>conftest.$ac_ext <<_ACEOF
  49293. -/* end confdefs.h. */
  49294. -#define _GNU_SOURCE
  49295. - #include <pthread.h>
  49296. -int
  49297. -main ()
  49298. -{
  49299. -pthread_rwlock_t *x;
  49300. - ;
  49301. - return 0;
  49302. -}
  49303. +# Neutralize VPATH when `$srcdir' = `.'.
  49304. +# Shell code in configure.ac might set extrasub.
  49305. +# FIXME: do we really want to maintain this feature?
  49306. +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  49307. +ac_sed_extra="$ac_vpsub
  49308. +$extrasub
  49309. _ACEOF
  49310. -rm -f conftest.$ac_objext
  49311. -if { (ac_try="$ac_compile"
  49312. -case "(($ac_try" in
  49313. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  49314. - *) ac_try_echo=$ac_try;;
  49315. -esac
  49316. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  49317. - (eval "$ac_compile") 2>conftest.er1
  49318. - ac_status=$?
  49319. - grep -v '^ *+' conftest.er1 >conftest.err
  49320. - rm -f conftest.er1
  49321. - cat conftest.err >&5
  49322. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  49323. - (exit $ac_status); } &&
  49324. - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  49325. - { (case "(($ac_try" in
  49326. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  49327. - *) ac_try_echo=$ac_try;;
  49328. -esac
  49329. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  49330. - (eval "$ac_try") 2>&5
  49331. - ac_status=$?
  49332. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  49333. - (exit $ac_status); }; } &&
  49334. - { ac_try='test -s conftest.$ac_objext'
  49335. - { (case "(($ac_try" in
  49336. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  49337. - *) ac_try_echo=$ac_try;;
  49338. -esac
  49339. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  49340. - (eval "$ac_try") 2>&5
  49341. - ac_status=$?
  49342. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  49343. - (exit $ac_status); }; }; then
  49344. +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  49345. +:t
  49346. +/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  49347. +s|@configure_input@|$ac_sed_conf_input|;t t
  49348. +s&@top_builddir@&$ac_top_builddir_sub&;t t
  49349. +s&@top_build_prefix@&$ac_top_build_prefix&;t t
  49350. +s&@srcdir@&$ac_srcdir&;t t
  49351. +s&@abs_srcdir@&$ac_abs_srcdir&;t t
  49352. +s&@top_srcdir@&$ac_top_srcdir&;t t
  49353. +s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  49354. +s&@builddir@&$ac_builddir&;t t
  49355. +s&@abs_builddir@&$ac_abs_builddir&;t t
  49356. +s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  49357. +s&@INSTALL@&$ac_INSTALL&;t t
  49358. +s&@MKDIR_P@&$ac_MKDIR_P&;t t
  49359. +$ac_datarootdir_hack
  49360. +"
  49361. +eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
  49362. + || as_fn_error "could not create $ac_file" "$LINENO" 5
  49363. -cat >>confdefs.h <<\_ACEOF
  49364. -#define UPNP_USE_RWLOCK 1
  49365. -_ACEOF
  49366. +test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  49367. + { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
  49368. + { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
  49369. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  49370. +which seems to be undefined. Please make sure it is defined." >&5
  49371. +$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  49372. +which seems to be undefined. Please make sure it is defined." >&2;}
  49373. - CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
  49374. - { echo "$as_me:$LINENO: result: yes, definition of _GNU_SOURCE required" >&5
  49375. -echo "${ECHO_T}yes, definition of _GNU_SOURCE required" >&6; }
  49376. -else
  49377. - echo "$as_me: failed program was:" >&5
  49378. -sed 's/^/| /' conftest.$ac_ext >&5
  49379. + rm -f "$tmp/stdin"
  49380. + case $ac_file in
  49381. + -) cat "$tmp/out" && rm -f "$tmp/out";;
  49382. + *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
  49383. + esac \
  49384. + || as_fn_error "could not create $ac_file" "$LINENO" 5
  49385. + ;;
  49386. + :H)
  49387. + #
  49388. + # CONFIG_HEADER
  49389. + #
  49390. + if test x"$ac_file" != x-; then
  49391. + {
  49392. + $as_echo "/* $configure_input */" \
  49393. + && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
  49394. + } >"$tmp/config.h" \
  49395. + || as_fn_error "could not create $ac_file" "$LINENO" 5
  49396. + if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
  49397. + { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  49398. +$as_echo "$as_me: $ac_file is unchanged" >&6;}
  49399. + else
  49400. + rm -f "$ac_file"
  49401. + mv "$tmp/config.h" "$ac_file" \
  49402. + || as_fn_error "could not create $ac_file" "$LINENO" 5
  49403. + fi
  49404. + else
  49405. + $as_echo "/* $configure_input */" \
  49406. + && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
  49407. + || as_fn_error "could not create -" "$LINENO" 5
  49408. + fi
  49409. +# Compute "$ac_file"'s index in $config_headers.
  49410. +_am_arg="$ac_file"
  49411. +_am_stamp_count=1
  49412. +for _am_header in $config_headers :; do
  49413. + case $_am_header in
  49414. + $_am_arg | $_am_arg:* )
  49415. + break ;;
  49416. + * )
  49417. + _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  49418. + esac
  49419. +done
  49420. +echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
  49421. +$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  49422. + X"$_am_arg" : 'X\(//\)[^/]' \| \
  49423. + X"$_am_arg" : 'X\(//\)$' \| \
  49424. + X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
  49425. +$as_echo X"$_am_arg" |
  49426. + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  49427. + s//\1/
  49428. + q
  49429. + }
  49430. + /^X\(\/\/\)[^/].*/{
  49431. + s//\1/
  49432. + q
  49433. + }
  49434. + /^X\(\/\/\)$/{
  49435. + s//\1/
  49436. + q
  49437. + }
  49438. + /^X\(\/\).*/{
  49439. + s//\1/
  49440. + q
  49441. + }
  49442. + s/.*/./; q'`/stamp-h$_am_stamp_count
  49443. + ;;
  49444. + :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  49445. +$as_echo "$as_me: executing $ac_file commands" >&6;}
  49446. + ;;
  49447. + esac
  49448. -cat >>confdefs.h <<\_ACEOF
  49449. -#define UPNP_USE_RWLOCK 0
  49450. -_ACEOF
  49451. - { echo "$as_me:$LINENO: result: no, needs to fallback to pthread_mutex" >&5
  49452. -echo "${ECHO_T}no, needs to fallback to pthread_mutex" >&6; }
  49453. - { { echo "$as_me:$LINENO: error: pthread_rwlock_t not available" >&5
  49454. -echo "$as_me: error: pthread_rwlock_t not available" >&2;}
  49455. - { (exit 1); exit 1; }; }
  49456. -fi
  49457. + case $ac_file$ac_mode in
  49458. + "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
  49459. + # Autoconf 2.62 quotes --file arguments for eval, but not when files
  49460. + # are listed without --file. Let's play safe and only enable the eval
  49461. + # if we detect the quoting.
  49462. + case $CONFIG_FILES in
  49463. + *\'*) eval set x "$CONFIG_FILES" ;;
  49464. + *) set x $CONFIG_FILES ;;
  49465. + esac
  49466. + shift
  49467. + for mf
  49468. + do
  49469. + # Strip MF so we end up with the name of the file.
  49470. + mf=`echo "$mf" | sed -e 's/:.*$//'`
  49471. + # Check whether this is an Automake generated Makefile or not.
  49472. + # We used to match only the files named `Makefile.in', but
  49473. + # some people rename them; so instead we look at the file content.
  49474. + # Grep'ing the first line is not enough: some people post-process
  49475. + # each Makefile.in and add a new line on top of each file to say so.
  49476. + # Grep'ing the whole file is not good either: AIX grep has a line
  49477. + # limit of 2048, but all sed's we know have understand at least 4000.
  49478. + if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
  49479. + dirpart=`$as_dirname -- "$mf" ||
  49480. +$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  49481. + X"$mf" : 'X\(//\)[^/]' \| \
  49482. + X"$mf" : 'X\(//\)$' \| \
  49483. + X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
  49484. +$as_echo X"$mf" |
  49485. + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  49486. + s//\1/
  49487. + q
  49488. + }
  49489. + /^X\(\/\/\)[^/].*/{
  49490. + s//\1/
  49491. + q
  49492. + }
  49493. + /^X\(\/\/\)$/{
  49494. + s//\1/
  49495. + q
  49496. + }
  49497. + /^X\(\/\).*/{
  49498. + s//\1/
  49499. + q
  49500. + }
  49501. + s/.*/./; q'`
  49502. + else
  49503. + continue
  49504. + fi
  49505. + # Extract the definition of DEPDIR, am__include, and am__quote
  49506. + # from the Makefile without running `make'.
  49507. + DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  49508. + test -z "$DEPDIR" && continue
  49509. + am__include=`sed -n 's/^am__include = //p' < "$mf"`
  49510. + test -z "am__include" && continue
  49511. + am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  49512. + # When using ansi2knr, U may be empty or an underscore; expand it
  49513. + U=`sed -n 's/^U = //p' < "$mf"`
  49514. + # Find all dependency output files, they are included files with
  49515. + # $(DEPDIR) in their names. We invoke sed twice because it is the
  49516. + # simplest approach to changing $(DEPDIR) to its actual value in the
  49517. + # expansion.
  49518. + for file in `sed -n "
  49519. + s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  49520. + sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
  49521. + # Make sure the directory exists.
  49522. + test -f "$dirpart/$file" && continue
  49523. + fdir=`$as_dirname -- "$file" ||
  49524. +$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  49525. + X"$file" : 'X\(//\)[^/]' \| \
  49526. + X"$file" : 'X\(//\)$' \| \
  49527. + X"$file" : 'X\(/\)' \| . 2>/dev/null ||
  49528. +$as_echo X"$file" |
  49529. + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  49530. + s//\1/
  49531. + q
  49532. + }
  49533. + /^X\(\/\/\)[^/].*/{
  49534. + s//\1/
  49535. + q
  49536. + }
  49537. + /^X\(\/\/\)$/{
  49538. + s//\1/
  49539. + q
  49540. + }
  49541. + /^X\(\/\).*/{
  49542. + s//\1/
  49543. + q
  49544. + }
  49545. + s/.*/./; q'`
  49546. + as_dir=$dirpart/$fdir; as_fn_mkdir_p
  49547. + # echo "creating $dirpart/$file"
  49548. + echo '# dummy' > "$dirpart/$file"
  49549. + done
  49550. + done
  49551. +}
  49552. + ;;
  49553. + "libtool":C)
  49554. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  49555. -fi
  49556. + # See if we are running on zsh, and set the options which allow our
  49557. + # commands through without removal of \ escapes.
  49558. + if test -n "${ZSH_VERSION+set}" ; then
  49559. + setopt NO_GLOB_SUBST
  49560. + fi
  49561. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  49562. -echo "-------------------------------------------------------------------------------"
  49563. + cfgfile="${ofile}T"
  49564. + trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  49565. + $RM "$cfgfile"
  49566. + cat <<_LT_EOF >> "$cfgfile"
  49567. +#! $SHELL
  49568. -ac_config_files="$ac_config_files Makefile ixml/Makefile ixml/doc/Makefile threadutil/Makefile upnp/Makefile upnp/doc/Makefile upnp/sample/Makefile docs/dist/Makefile libupnp.pc"
  49569. +# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  49570. +# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
  49571. +# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  49572. +# NOTE: Changes made to this file will be lost: look at ltmain.sh.
  49573. +#
  49574. +# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
  49575. +# 2006, 2007, 2008 Free Software Foundation, Inc.
  49576. +# Written by Gordon Matzigkeit, 1996
  49577. +#
  49578. +# This file is part of GNU Libtool.
  49579. +#
  49580. +# GNU Libtool is free software; you can redistribute it and/or
  49581. +# modify it under the terms of the GNU General Public License as
  49582. +# published by the Free Software Foundation; either version 2 of
  49583. +# the License, or (at your option) any later version.
  49584. +#
  49585. +# As a special exception to the GNU General Public License,
  49586. +# if you distribute this file as part of a program or library that
  49587. +# is built using GNU Libtool, you may include this file under the
  49588. +# same distribution terms that you use for the rest of that program.
  49589. +#
  49590. +# GNU Libtool is distributed in the hope that it will be useful,
  49591. +# but WITHOUT ANY WARRANTY; without even the implied warranty of
  49592. +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  49593. +# GNU General Public License for more details.
  49594. +#
  49595. +# You should have received a copy of the GNU General Public License
  49596. +# along with GNU Libtool; see the file COPYING. If not, a copy
  49597. +# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
  49598. +# obtained by writing to the Free Software Foundation, Inc.,
  49599. +# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  49600. +# The names of the tagged configurations supported by this script.
  49601. +available_tags=""
  49602. -cat >confcache <<\_ACEOF
  49603. -# This file is a shell script that caches the results of configure
  49604. -# tests run on this system so they can be shared between configure
  49605. -# scripts and configure runs, see configure's option --config-cache.
  49606. -# It is not useful on other systems. If it contains results you don't
  49607. -# want to keep, you may remove or edit it.
  49608. -#
  49609. -# config.status only pays attention to the cache file if you give it
  49610. -# the --recheck option to rerun configure.
  49611. -#
  49612. -# `ac_cv_env_foo' variables (set or unset) will be overridden when
  49613. -# loading this file, other *unset* `ac_cv_foo' will be assigned the
  49614. -# following values.
  49615. +# ### BEGIN LIBTOOL CONFIG
  49616. -_ACEOF
  49617. +# Which release of libtool.m4 was used?
  49618. +macro_version=$macro_version
  49619. +macro_revision=$macro_revision
  49620. -# The following way of writing the cache mishandles newlines in values,
  49621. -# but we know of no workaround that is simple, portable, and efficient.
  49622. -# So, we kill variables containing newlines.
  49623. -# Ultrix sh set writes to stderr and can't be redirected directly,
  49624. -# and sets the high bit in the cache file unless we assign to the vars.
  49625. -(
  49626. - for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  49627. - eval ac_val=\$$ac_var
  49628. - case $ac_val in #(
  49629. - *${as_nl}*)
  49630. - case $ac_var in #(
  49631. - *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
  49632. -echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
  49633. - esac
  49634. - case $ac_var in #(
  49635. - _ | IFS | as_nl) ;; #(
  49636. - *) $as_unset $ac_var ;;
  49637. - esac ;;
  49638. - esac
  49639. - done
  49640. +# Whether or not to build shared libraries.
  49641. +build_libtool_libs=$enable_shared
  49642. - (set) 2>&1 |
  49643. - case $as_nl`(ac_space=' '; set) 2>&1` in #(
  49644. - *${as_nl}ac_space=\ *)
  49645. - # `set' does not quote correctly, so add quotes (double-quote
  49646. - # substitution turns \\\\ into \\, and sed turns \\ into \).
  49647. - sed -n \
  49648. - "s/'/'\\\\''/g;
  49649. - s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  49650. - ;; #(
  49651. - *)
  49652. - # `set' quotes correctly as required by POSIX, so do not add quotes.
  49653. - sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  49654. - ;;
  49655. - esac |
  49656. - sort
  49657. -) |
  49658. - sed '
  49659. - /^ac_cv_env_/b end
  49660. - t clear
  49661. - :clear
  49662. - s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  49663. - t end
  49664. - s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  49665. - :end' >>confcache
  49666. -if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  49667. - if test -w "$cache_file"; then
  49668. - test "x$cache_file" != "x/dev/null" &&
  49669. - { echo "$as_me:$LINENO: updating cache $cache_file" >&5
  49670. -echo "$as_me: updating cache $cache_file" >&6;}
  49671. - cat confcache >$cache_file
  49672. - else
  49673. - { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
  49674. -echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  49675. - fi
  49676. -fi
  49677. -rm -f confcache
  49678. +# Whether or not to build static libraries.
  49679. +build_old_libs=$enable_static
  49680. -test "x$prefix" = xNONE && prefix=$ac_default_prefix
  49681. -# Let make expand exec_prefix.
  49682. -test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  49683. +# What type of objects to build.
  49684. +pic_mode=$pic_mode
  49685. -DEFS=-DHAVE_CONFIG_H
  49686. +# Whether or not to optimize for fast installation.
  49687. +fast_install=$enable_fast_install
  49688. -ac_libobjs=
  49689. -ac_ltlibobjs=
  49690. -for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  49691. - # 1. Remove the extension, and $U if already installed.
  49692. - ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  49693. - ac_i=`echo "$ac_i" | sed "$ac_script"`
  49694. - # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  49695. - # will be set to the directory where LIBOBJS objects are built.
  49696. - ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  49697. - ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
  49698. -done
  49699. -LIBOBJS=$ac_libobjs
  49700. +# The host system.
  49701. +host_alias=$host_alias
  49702. +host=$host
  49703. +host_os=$host_os
  49704. -LTLIBOBJS=$ac_ltlibobjs
  49705. +# The build system.
  49706. +build_alias=$build_alias
  49707. +build=$build
  49708. +build_os=$build_os
  49709. +# A sed program that does not truncate output.
  49710. +SED=$lt_SED
  49711. -if test -z "${ENABLE_DEBUG_TRUE}" && test -z "${ENABLE_DEBUG_FALSE}"; then
  49712. - { { echo "$as_me:$LINENO: error: conditional \"ENABLE_DEBUG\" was never defined.
  49713. -Usually this means the macro was only invoked conditionally." >&5
  49714. -echo "$as_me: error: conditional \"ENABLE_DEBUG\" was never defined.
  49715. -Usually this means the macro was only invoked conditionally." >&2;}
  49716. - { (exit 1); exit 1; }; }
  49717. -fi
  49718. -if test -z "${ENABLE_CLIENT_TRUE}" && test -z "${ENABLE_CLIENT_FALSE}"; then
  49719. - { { echo "$as_me:$LINENO: error: conditional \"ENABLE_CLIENT\" was never defined.
  49720. -Usually this means the macro was only invoked conditionally." >&5
  49721. -echo "$as_me: error: conditional \"ENABLE_CLIENT\" was never defined.
  49722. -Usually this means the macro was only invoked conditionally." >&2;}
  49723. - { (exit 1); exit 1; }; }
  49724. -fi
  49725. -if test -z "${ENABLE_DEVICE_TRUE}" && test -z "${ENABLE_DEVICE_FALSE}"; then
  49726. - { { echo "$as_me:$LINENO: error: conditional \"ENABLE_DEVICE\" was never defined.
  49727. -Usually this means the macro was only invoked conditionally." >&5
  49728. -echo "$as_me: error: conditional \"ENABLE_DEVICE\" was never defined.
  49729. -Usually this means the macro was only invoked conditionally." >&2;}
  49730. - { (exit 1); exit 1; }; }
  49731. -fi
  49732. -if test -z "${ENABLE_WEBSERVER_TRUE}" && test -z "${ENABLE_WEBSERVER_FALSE}"; then
  49733. - { { echo "$as_me:$LINENO: error: conditional \"ENABLE_WEBSERVER\" was never defined.
  49734. -Usually this means the macro was only invoked conditionally." >&5
  49735. -echo "$as_me: error: conditional \"ENABLE_WEBSERVER\" was never defined.
  49736. -Usually this means the macro was only invoked conditionally." >&2;}
  49737. - { (exit 1); exit 1; }; }
  49738. -fi
  49739. -if test -z "${ENABLE_WEBSERVER_TRUE}" && test -z "${ENABLE_WEBSERVER_FALSE}"; then
  49740. - { { echo "$as_me:$LINENO: error: conditional \"ENABLE_WEBSERVER\" was never defined.
  49741. -Usually this means the macro was only invoked conditionally." >&5
  49742. -echo "$as_me: error: conditional \"ENABLE_WEBSERVER\" was never defined.
  49743. -Usually this means the macro was only invoked conditionally." >&2;}
  49744. - { (exit 1); exit 1; }; }
  49745. -fi
  49746. -if test -z "${ENABLE_TOOLS_TRUE}" && test -z "${ENABLE_TOOLS_FALSE}"; then
  49747. - { { echo "$as_me:$LINENO: error: conditional \"ENABLE_TOOLS\" was never defined.
  49748. -Usually this means the macro was only invoked conditionally." >&5
  49749. -echo "$as_me: error: conditional \"ENABLE_TOOLS\" was never defined.
  49750. -Usually this means the macro was only invoked conditionally." >&2;}
  49751. - { (exit 1); exit 1; }; }
  49752. -fi
  49753. -if test -z "${ENABLE_SAMPLES_TRUE}" && test -z "${ENABLE_SAMPLES_FALSE}"; then
  49754. - { { echo "$as_me:$LINENO: error: conditional \"ENABLE_SAMPLES\" was never defined.
  49755. -Usually this means the macro was only invoked conditionally." >&5
  49756. -echo "$as_me: error: conditional \"ENABLE_SAMPLES\" was never defined.
  49757. -Usually this means the macro was only invoked conditionally." >&2;}
  49758. - { (exit 1); exit 1; }; }
  49759. -fi
  49760. -if test -z "${WITH_DOCUMENTATION_TRUE}" && test -z "${WITH_DOCUMENTATION_FALSE}"; then
  49761. - { { echo "$as_me:$LINENO: error: conditional \"WITH_DOCUMENTATION\" was never defined.
  49762. -Usually this means the macro was only invoked conditionally." >&5
  49763. -echo "$as_me: error: conditional \"WITH_DOCUMENTATION\" was never defined.
  49764. -Usually this means the macro was only invoked conditionally." >&2;}
  49765. - { (exit 1); exit 1; }; }
  49766. -fi
  49767. -if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  49768. - { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
  49769. -Usually this means the macro was only invoked conditionally." >&5
  49770. -echo "$as_me: error: conditional \"AMDEP\" was never defined.
  49771. -Usually this means the macro was only invoked conditionally." >&2;}
  49772. - { (exit 1); exit 1; }; }
  49773. -fi
  49774. -if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  49775. - { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
  49776. -Usually this means the macro was only invoked conditionally." >&5
  49777. -echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
  49778. -Usually this means the macro was only invoked conditionally." >&2;}
  49779. - { (exit 1); exit 1; }; }
  49780. -fi
  49781. -if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
  49782. - { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
  49783. -Usually this means the macro was only invoked conditionally." >&5
  49784. -echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
  49785. -Usually this means the macro was only invoked conditionally." >&2;}
  49786. - { (exit 1); exit 1; }; }
  49787. -fi
  49788. +# Sed that helps us avoid accidentally triggering echo(1) options like -n.
  49789. +Xsed="\$SED -e 1s/^X//"
  49790. -: ${CONFIG_STATUS=./config.status}
  49791. -ac_clean_files_save=$ac_clean_files
  49792. -ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  49793. -{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
  49794. -echo "$as_me: creating $CONFIG_STATUS" >&6;}
  49795. -cat >$CONFIG_STATUS <<_ACEOF
  49796. -#! $SHELL
  49797. -# Generated by $as_me.
  49798. -# Run this file to recreate the current configuration.
  49799. -# Compiler output produced by configure, useful for debugging
  49800. -# configure, is in config.log if it exists.
  49801. +# A grep program that handles long lines.
  49802. +GREP=$lt_GREP
  49803. -debug=false
  49804. -ac_cs_recheck=false
  49805. -ac_cs_silent=false
  49806. -SHELL=\${CONFIG_SHELL-$SHELL}
  49807. -_ACEOF
  49808. +# An ERE matcher.
  49809. +EGREP=$lt_EGREP
  49810. -cat >>$CONFIG_STATUS <<\_ACEOF
  49811. -## --------------------- ##
  49812. -## M4sh Initialization. ##
  49813. -## --------------------- ##
  49814. +# A literal string matcher.
  49815. +FGREP=$lt_FGREP
  49816. -# Be Bourne compatible
  49817. -if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  49818. - emulate sh
  49819. - NULLCMD=:
  49820. - # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  49821. - # is contrary to our usage. Disable this feature.
  49822. - alias -g '${1+"$@"}'='"$@"'
  49823. - setopt NO_GLOB_SUBST
  49824. -else
  49825. - case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
  49826. -fi
  49827. -BIN_SH=xpg4; export BIN_SH # for Tru64
  49828. -DUALCASE=1; export DUALCASE # for MKS sh
  49829. +# A BSD- or MS-compatible name lister.
  49830. +NM=$lt_NM
  49831. +# Whether we need soft or hard links.
  49832. +LN_S=$lt_LN_S
  49833. -# PATH needs CR
  49834. -# Avoid depending upon Character Ranges.
  49835. -as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  49836. -as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  49837. -as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  49838. -as_cr_digits='0123456789'
  49839. -as_cr_alnum=$as_cr_Letters$as_cr_digits
  49840. +# What is the maximum length of a command?
  49841. +max_cmd_len=$max_cmd_len
  49842. -# The user is always right.
  49843. -if test "${PATH_SEPARATOR+set}" != set; then
  49844. - echo "#! /bin/sh" >conf$$.sh
  49845. - echo "exit 0" >>conf$$.sh
  49846. - chmod +x conf$$.sh
  49847. - if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  49848. - PATH_SEPARATOR=';'
  49849. - else
  49850. - PATH_SEPARATOR=:
  49851. - fi
  49852. - rm -f conf$$.sh
  49853. -fi
  49854. +# Object file suffix (normally "o").
  49855. +objext=$ac_objext
  49856. -# Support unset when possible.
  49857. -if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  49858. - as_unset=unset
  49859. -else
  49860. - as_unset=false
  49861. -fi
  49862. +# Executable file suffix (normally "").
  49863. +exeext=$exeext
  49864. +# whether the shell understands "unset".
  49865. +lt_unset=$lt_unset
  49866. -# IFS
  49867. -# We need space, tab and new line, in precisely that order. Quoting is
  49868. -# there to prevent editors from complaining about space-tab.
  49869. -# (If _AS_PATH_WALK were called with IFS unset, it would disable word
  49870. -# splitting by setting IFS to empty value.)
  49871. -as_nl='
  49872. -'
  49873. -IFS=" "" $as_nl"
  49874. +# turn spaces into newlines.
  49875. +SP2NL=$lt_lt_SP2NL
  49876. -# Find who we are. Look in the path if we contain no directory separator.
  49877. -case $0 in
  49878. - *[\\/]* ) as_myself=$0 ;;
  49879. - *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  49880. -for as_dir in $PATH
  49881. -do
  49882. - IFS=$as_save_IFS
  49883. - test -z "$as_dir" && as_dir=.
  49884. - test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  49885. -done
  49886. -IFS=$as_save_IFS
  49887. +# turn newlines into spaces.
  49888. +NL2SP=$lt_lt_NL2SP
  49889. - ;;
  49890. -esac
  49891. -# We did not find ourselves, most probably we were run as `sh COMMAND'
  49892. -# in which case we are not to be found in the path.
  49893. -if test "x$as_myself" = x; then
  49894. - as_myself=$0
  49895. -fi
  49896. -if test ! -f "$as_myself"; then
  49897. - echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  49898. - { (exit 1); exit 1; }
  49899. -fi
  49900. +# How to create reloadable object files.
  49901. +reload_flag=$lt_reload_flag
  49902. +reload_cmds=$lt_reload_cmds
  49903. -# Work around bugs in pre-3.0 UWIN ksh.
  49904. -for as_var in ENV MAIL MAILPATH
  49905. -do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  49906. -done
  49907. -PS1='$ '
  49908. -PS2='> '
  49909. -PS4='+ '
  49910. +# An object symbol dumper.
  49911. +OBJDUMP=$lt_OBJDUMP
  49912. -# NLS nuisances.
  49913. -for as_var in \
  49914. - LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
  49915. - LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
  49916. - LC_TELEPHONE LC_TIME
  49917. -do
  49918. - if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
  49919. - eval $as_var=C; export $as_var
  49920. - else
  49921. - ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  49922. - fi
  49923. -done
  49924. +# Method to check whether dependent libraries are shared objects.
  49925. +deplibs_check_method=$lt_deplibs_check_method
  49926. -# Required to use basename.
  49927. -if expr a : '\(a\)' >/dev/null 2>&1 &&
  49928. - test "X`expr 00001 : '.*\(...\)'`" = X001; then
  49929. - as_expr=expr
  49930. -else
  49931. - as_expr=false
  49932. -fi
  49933. +# Command to use when deplibs_check_method == "file_magic".
  49934. +file_magic_cmd=$lt_file_magic_cmd
  49935. -if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  49936. - as_basename=basename
  49937. -else
  49938. - as_basename=false
  49939. -fi
  49940. +# The archiver.
  49941. +AR=$lt_AR
  49942. +AR_FLAGS=$lt_AR_FLAGS
  49943. +# A symbol stripping program.
  49944. +STRIP=$lt_STRIP
  49945. -# Name of the executable.
  49946. -as_me=`$as_basename -- "$0" ||
  49947. -$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  49948. - X"$0" : 'X\(//\)$' \| \
  49949. - X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  49950. -echo X/"$0" |
  49951. - sed '/^.*\/\([^/][^/]*\)\/*$/{
  49952. - s//\1/
  49953. - q
  49954. - }
  49955. - /^X\/\(\/\/\)$/{
  49956. - s//\1/
  49957. - q
  49958. - }
  49959. - /^X\/\(\/\).*/{
  49960. - s//\1/
  49961. - q
  49962. - }
  49963. - s/.*/./; q'`
  49964. +# Commands used to install an old-style archive.
  49965. +RANLIB=$lt_RANLIB
  49966. +old_postinstall_cmds=$lt_old_postinstall_cmds
  49967. +old_postuninstall_cmds=$lt_old_postuninstall_cmds
  49968. -# CDPATH.
  49969. -$as_unset CDPATH
  49970. +# A C compiler.
  49971. +LTCC=$lt_CC
  49972. +# LTCC compiler flags.
  49973. +LTCFLAGS=$lt_CFLAGS
  49974. +# Take the output of nm and produce a listing of raw symbols and C names.
  49975. +global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  49976. - as_lineno_1=$LINENO
  49977. - as_lineno_2=$LINENO
  49978. - test "x$as_lineno_1" != "x$as_lineno_2" &&
  49979. - test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
  49980. -
  49981. - # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  49982. - # uniformly replaced by the line number. The first 'sed' inserts a
  49983. - # line-number line after each line using $LINENO; the second 'sed'
  49984. - # does the real work. The second script uses 'N' to pair each
  49985. - # line-number line with the line containing $LINENO, and appends
  49986. - # trailing '-' during substitution so that $LINENO is not a special
  49987. - # case at line end.
  49988. - # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  49989. - # scripts with optimization help from Paolo Bonzini. Blame Lee
  49990. - # E. McMahon (1931-1989) for sed's syntax. :-)
  49991. - sed -n '
  49992. - p
  49993. - /[$]LINENO/=
  49994. - ' <$as_myself |
  49995. - sed '
  49996. - s/[$]LINENO.*/&-/
  49997. - t lineno
  49998. - b
  49999. - :lineno
  50000. - N
  50001. - :loop
  50002. - s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  50003. - t loop
  50004. - s/-\n.*//
  50005. - ' >$as_me.lineno &&
  50006. - chmod +x "$as_me.lineno" ||
  50007. - { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
  50008. - { (exit 1); exit 1; }; }
  50009. +# Transform the output of nm in a proper C declaration.
  50010. +global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  50011. - # Don't try to exec as it changes $[0], causing all sort of problems
  50012. - # (the dirname of $[0] is not the place where we might find the
  50013. - # original and so on. Autoconf is especially sensitive to this).
  50014. - . "./$as_me.lineno"
  50015. - # Exit status is that of the last command.
  50016. - exit
  50017. -}
  50018. +# Transform the output of nm in a C name address pair.
  50019. +global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  50020. +# Transform the output of nm in a C name address pair when lib prefix is needed.
  50021. +global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
  50022. -if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  50023. - as_dirname=dirname
  50024. -else
  50025. - as_dirname=false
  50026. -fi
  50027. +# The name of the directory that contains temporary libtool files.
  50028. +objdir=$objdir
  50029. -ECHO_C= ECHO_N= ECHO_T=
  50030. -case `echo -n x` in
  50031. --n*)
  50032. - case `echo 'x\c'` in
  50033. - *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  50034. - *) ECHO_C='\c';;
  50035. - esac;;
  50036. -*)
  50037. - ECHO_N='-n';;
  50038. -esac
  50039. +# Shell to use when invoking shell scripts.
  50040. +SHELL=$lt_SHELL
  50041. -if expr a : '\(a\)' >/dev/null 2>&1 &&
  50042. - test "X`expr 00001 : '.*\(...\)'`" = X001; then
  50043. - as_expr=expr
  50044. -else
  50045. - as_expr=false
  50046. -fi
  50047. +# An echo program that does not interpret backslashes.
  50048. +ECHO=$lt_ECHO
  50049. -rm -f conf$$ conf$$.exe conf$$.file
  50050. -if test -d conf$$.dir; then
  50051. - rm -f conf$$.dir/conf$$.file
  50052. -else
  50053. - rm -f conf$$.dir
  50054. - mkdir conf$$.dir
  50055. -fi
  50056. -echo >conf$$.file
  50057. -if ln -s conf$$.file conf$$ 2>/dev/null; then
  50058. - as_ln_s='ln -s'
  50059. - # ... but there are two gotchas:
  50060. - # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  50061. - # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  50062. - # In both cases, we have to default to `cp -p'.
  50063. - ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  50064. - as_ln_s='cp -p'
  50065. -elif ln conf$$.file conf$$ 2>/dev/null; then
  50066. - as_ln_s=ln
  50067. -else
  50068. - as_ln_s='cp -p'
  50069. -fi
  50070. -rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  50071. -rmdir conf$$.dir 2>/dev/null
  50072. +# Used to examine libraries when file_magic_cmd begins with "file".
  50073. +MAGIC_CMD=$MAGIC_CMD
  50074. -if mkdir -p . 2>/dev/null; then
  50075. - as_mkdir_p=:
  50076. -else
  50077. - test -d ./-p && rmdir ./-p
  50078. - as_mkdir_p=false
  50079. -fi
  50080. +# Must we lock files when doing compilation?
  50081. +need_locks=$lt_need_locks
  50082. -# Find out whether ``test -x'' works. Don't use a zero-byte file, as
  50083. -# systems may use methods other than mode bits to determine executability.
  50084. -cat >conf$$.file <<_ASEOF
  50085. -#! /bin/sh
  50086. -exit 0
  50087. -_ASEOF
  50088. -chmod +x conf$$.file
  50089. -if test -x conf$$.file >/dev/null 2>&1; then
  50090. - as_executable_p="test -x"
  50091. -else
  50092. - as_executable_p=:
  50093. -fi
  50094. -rm -f conf$$.file
  50095. +# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
  50096. +DSYMUTIL=$lt_DSYMUTIL
  50097. -# Sed expression to map a string onto a valid CPP name.
  50098. -as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  50099. +# Tool to change global to local symbols on Mac OS X.
  50100. +NMEDIT=$lt_NMEDIT
  50101. -# Sed expression to map a string onto a valid variable name.
  50102. -as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  50103. +# Tool to manipulate fat objects and archives on Mac OS X.
  50104. +LIPO=$lt_LIPO
  50105. +# ldd/readelf like tool for Mach-O binaries on Mac OS X.
  50106. +OTOOL=$lt_OTOOL
  50107. -exec 6>&1
  50108. +# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
  50109. +OTOOL64=$lt_OTOOL64
  50110. -# Save the log message, to keep $[0] and so on meaningful, and to
  50111. -# report actual input values of CONFIG_FILES etc. instead of their
  50112. -# values after options handling.
  50113. -ac_log="
  50114. -This file was extended by libupnp $as_me 1.6.6, which was
  50115. -generated by GNU Autoconf 2.60. Invocation command line was
  50116. +# Old archive suffix (normally "a").
  50117. +libext=$libext
  50118. - CONFIG_FILES = $CONFIG_FILES
  50119. - CONFIG_HEADERS = $CONFIG_HEADERS
  50120. - CONFIG_LINKS = $CONFIG_LINKS
  50121. - CONFIG_COMMANDS = $CONFIG_COMMANDS
  50122. - $ $0 $@
  50123. +# Shared library suffix (normally ".so").
  50124. +shrext_cmds=$lt_shrext_cmds
  50125. -on `(hostname || uname -n) 2>/dev/null | sed 1q`
  50126. -"
  50127. +# The commands to extract the exported symbol list from a shared archive.
  50128. +extract_expsyms_cmds=$lt_extract_expsyms_cmds
  50129. -_ACEOF
  50130. +# Variables whose values should be saved in libtool wrapper scripts and
  50131. +# restored at link time.
  50132. +variables_saved_for_relink=$lt_variables_saved_for_relink
  50133. -cat >>$CONFIG_STATUS <<_ACEOF
  50134. -# Files that config.status was made for.
  50135. -config_files="$ac_config_files"
  50136. -config_headers="$ac_config_headers"
  50137. -config_commands="$ac_config_commands"
  50138. +# Do we need the "lib" prefix for modules?
  50139. +need_lib_prefix=$need_lib_prefix
  50140. -_ACEOF
  50141. +# Do we need a version for libraries?
  50142. +need_version=$need_version
  50143. -cat >>$CONFIG_STATUS <<\_ACEOF
  50144. -ac_cs_usage="\
  50145. -\`$as_me' instantiates files from templates according to the
  50146. -current configuration.
  50147. +# Library versioning type.
  50148. +version_type=$version_type
  50149. -Usage: $0 [OPTIONS] [FILE]...
  50150. +# Shared library runtime path variable.
  50151. +runpath_var=$runpath_var
  50152. - -h, --help print this help, then exit
  50153. - -V, --version print version number, then exit
  50154. - -q, --quiet do not print progress messages
  50155. - -d, --debug don't remove temporary files
  50156. - --recheck update $as_me by reconfiguring in the same conditions
  50157. - --file=FILE[:TEMPLATE]
  50158. - instantiate the configuration file FILE
  50159. - --header=FILE[:TEMPLATE]
  50160. - instantiate the configuration header FILE
  50161. +# Shared library path variable.
  50162. +shlibpath_var=$shlibpath_var
  50163. -Configuration files:
  50164. -$config_files
  50165. +# Is shlibpath searched before the hard-coded library search path?
  50166. +shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  50167. -Configuration headers:
  50168. -$config_headers
  50169. +# Format of library name prefix.
  50170. +libname_spec=$lt_libname_spec
  50171. -Configuration commands:
  50172. -$config_commands
  50173. +# List of archive names. First name is the real one, the rest are links.
  50174. +# The last name is the one that the linker finds with -lNAME
  50175. +library_names_spec=$lt_library_names_spec
  50176. -Report bugs to <bug-autoconf@gnu.org>."
  50177. +# The coded name of the library, if different from the real name.
  50178. +soname_spec=$lt_soname_spec
  50179. -_ACEOF
  50180. -cat >>$CONFIG_STATUS <<_ACEOF
  50181. -ac_cs_version="\\
  50182. -libupnp config.status 1.6.6
  50183. -configured by $0, generated by GNU Autoconf 2.60,
  50184. - with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
  50185. +# Command to use after installation of a shared archive.
  50186. +postinstall_cmds=$lt_postinstall_cmds
  50187. -Copyright (C) 2006 Free Software Foundation, Inc.
  50188. -This config.status script is free software; the Free Software Foundation
  50189. -gives unlimited permission to copy, distribute and modify it."
  50190. +# Command to use after uninstallation of a shared archive.
  50191. +postuninstall_cmds=$lt_postuninstall_cmds
  50192. -ac_pwd='$ac_pwd'
  50193. -srcdir='$srcdir'
  50194. -INSTALL='$INSTALL'
  50195. -_ACEOF
  50196. +# Commands used to finish a libtool library installation in a directory.
  50197. +finish_cmds=$lt_finish_cmds
  50198. -cat >>$CONFIG_STATUS <<\_ACEOF
  50199. -# If no file are specified by the user, then we need to provide default
  50200. -# value. By we need to know if files were specified by the user.
  50201. -ac_need_defaults=:
  50202. -while test $# != 0
  50203. -do
  50204. - case $1 in
  50205. - --*=*)
  50206. - ac_option=`expr "X$1" : 'X\([^=]*\)='`
  50207. - ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  50208. - ac_shift=:
  50209. - ;;
  50210. - *)
  50211. - ac_option=$1
  50212. - ac_optarg=$2
  50213. - ac_shift=shift
  50214. - ;;
  50215. - esac
  50216. +# As "finish_cmds", except a single script fragment to be evaled but
  50217. +# not shown.
  50218. +finish_eval=$lt_finish_eval
  50219. - case $ac_option in
  50220. - # Handling of the options.
  50221. - -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  50222. - ac_cs_recheck=: ;;
  50223. - --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  50224. - echo "$ac_cs_version"; exit ;;
  50225. - --debug | --debu | --deb | --de | --d | -d )
  50226. - debug=: ;;
  50227. - --file | --fil | --fi | --f )
  50228. - $ac_shift
  50229. - CONFIG_FILES="$CONFIG_FILES $ac_optarg"
  50230. - ac_need_defaults=false;;
  50231. - --header | --heade | --head | --hea )
  50232. - $ac_shift
  50233. - CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
  50234. - ac_need_defaults=false;;
  50235. - --he | --h)
  50236. - # Conflict between --help and --header
  50237. - { echo "$as_me: error: ambiguous option: $1
  50238. -Try \`$0 --help' for more information." >&2
  50239. - { (exit 1); exit 1; }; };;
  50240. - --help | --hel | -h )
  50241. - echo "$ac_cs_usage"; exit ;;
  50242. - -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  50243. - | -silent | --silent | --silen | --sile | --sil | --si | --s)
  50244. - ac_cs_silent=: ;;
  50245. +# Whether we should hardcode library paths into libraries.
  50246. +hardcode_into_libs=$hardcode_into_libs
  50247. - # This is an error.
  50248. - -*) { echo "$as_me: error: unrecognized option: $1
  50249. -Try \`$0 --help' for more information." >&2
  50250. - { (exit 1); exit 1; }; } ;;
  50251. +# Compile-time system search path for libraries.
  50252. +sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  50253. - *) ac_config_targets="$ac_config_targets $1"
  50254. - ac_need_defaults=false ;;
  50255. +# Run-time system search path for libraries.
  50256. +sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  50257. - esac
  50258. - shift
  50259. -done
  50260. +# Whether dlopen is supported.
  50261. +dlopen_support=$enable_dlopen
  50262. -ac_configure_extra_args=
  50263. +# Whether dlopen of programs is supported.
  50264. +dlopen_self=$enable_dlopen_self
  50265. -if $ac_cs_silent; then
  50266. - exec 6>/dev/null
  50267. - ac_configure_extra_args="$ac_configure_extra_args --silent"
  50268. -fi
  50269. +# Whether dlopen of statically linked programs is supported.
  50270. +dlopen_self_static=$enable_dlopen_self_static
  50271. -_ACEOF
  50272. -cat >>$CONFIG_STATUS <<_ACEOF
  50273. -if \$ac_cs_recheck; then
  50274. - echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
  50275. - CONFIG_SHELL=$SHELL
  50276. - export CONFIG_SHELL
  50277. - exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  50278. -fi
  50279. +# Commands to strip libraries.
  50280. +old_striplib=$lt_old_striplib
  50281. +striplib=$lt_striplib
  50282. -_ACEOF
  50283. -cat >>$CONFIG_STATUS <<\_ACEOF
  50284. -exec 5>>config.log
  50285. -{
  50286. - echo
  50287. - sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  50288. -## Running $as_me. ##
  50289. -_ASBOX
  50290. - echo "$ac_log"
  50291. -} >&5
  50292. -_ACEOF
  50293. -cat >>$CONFIG_STATUS <<_ACEOF
  50294. -#
  50295. -# INIT-COMMANDS
  50296. -#
  50297. -AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
  50298. +# The linker used to build libraries.
  50299. +LD=$lt_LD
  50300. -_ACEOF
  50301. +# Commands used to build an old-style archive.
  50302. +old_archive_cmds=$lt_old_archive_cmds
  50303. +
  50304. +# A language specific compiler.
  50305. +CC=$lt_compiler
  50306. -cat >>$CONFIG_STATUS <<\_ACEOF
  50307. +# Is the compiler the GNU compiler?
  50308. +with_gcc=$GCC
  50309. -# Handling of arguments.
  50310. -for ac_config_target in $ac_config_targets
  50311. -do
  50312. - case $ac_config_target in
  50313. - "autoconfig.h") CONFIG_HEADERS="$CONFIG_HEADERS autoconfig.h" ;;
  50314. - "upnp/inc/upnpconfig.h") CONFIG_HEADERS="$CONFIG_HEADERS upnp/inc/upnpconfig.h" ;;
  50315. - "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  50316. - "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  50317. - "ixml/Makefile") CONFIG_FILES="$CONFIG_FILES ixml/Makefile" ;;
  50318. - "ixml/doc/Makefile") CONFIG_FILES="$CONFIG_FILES ixml/doc/Makefile" ;;
  50319. - "threadutil/Makefile") CONFIG_FILES="$CONFIG_FILES threadutil/Makefile" ;;
  50320. - "upnp/Makefile") CONFIG_FILES="$CONFIG_FILES upnp/Makefile" ;;
  50321. - "upnp/doc/Makefile") CONFIG_FILES="$CONFIG_FILES upnp/doc/Makefile" ;;
  50322. - "upnp/sample/Makefile") CONFIG_FILES="$CONFIG_FILES upnp/sample/Makefile" ;;
  50323. - "docs/dist/Makefile") CONFIG_FILES="$CONFIG_FILES docs/dist/Makefile" ;;
  50324. - "libupnp.pc") CONFIG_FILES="$CONFIG_FILES libupnp.pc" ;;
  50325. +# Compiler flag to turn off builtin functions.
  50326. +no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  50327. +
  50328. +# How to pass a linker flag through the compiler.
  50329. +wl=$lt_lt_prog_compiler_wl
  50330. +
  50331. +# Additional compiler flags for building library objects.
  50332. +pic_flag=$lt_lt_prog_compiler_pic
  50333. +
  50334. +# Compiler flag to prevent dynamic linking.
  50335. +link_static_flag=$lt_lt_prog_compiler_static
  50336. +
  50337. +# Does compiler simultaneously support -c and -o options?
  50338. +compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  50339. - *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
  50340. -echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
  50341. - { (exit 1); exit 1; }; };;
  50342. - esac
  50343. -done
  50344. +# Whether or not to add -lc for building shared libraries.
  50345. +build_libtool_need_lc=$archive_cmds_need_lc
  50346. +# Whether or not to disallow shared libs when runtime libs are static.
  50347. +allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  50348. -# If the user did not use the arguments to specify the items to instantiate,
  50349. -# then the envvar interface is used. Set only those that are not.
  50350. -# We use the long form for the default assignment because of an extremely
  50351. -# bizarre bug on SunOS 4.1.3.
  50352. -if $ac_need_defaults; then
  50353. - test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  50354. - test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  50355. - test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  50356. -fi
  50357. +# Compiler flag to allow reflexive dlopens.
  50358. +export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  50359. -# Have a temporary directory for convenience. Make it in the build tree
  50360. -# simply because there is no reason against having it here, and in addition,
  50361. -# creating and moving files from /tmp can sometimes cause problems.
  50362. -# Hook for its removal unless debugging.
  50363. -# Note that there is a small window in which the directory will not be cleaned:
  50364. -# after its creation but before its name has been assigned to `$tmp'.
  50365. -$debug ||
  50366. -{
  50367. - tmp=
  50368. - trap 'exit_status=$?
  50369. - { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
  50370. -' 0
  50371. - trap '{ (exit 1); exit 1; }' 1 2 13 15
  50372. -}
  50373. -# Create a (secure) tmp directory for tmp files.
  50374. +# Compiler flag to generate shared objects directly from archives.
  50375. +whole_archive_flag_spec=$lt_whole_archive_flag_spec
  50376. -{
  50377. - tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  50378. - test -n "$tmp" && test -d "$tmp"
  50379. -} ||
  50380. -{
  50381. - tmp=./conf$$-$RANDOM
  50382. - (umask 077 && mkdir "$tmp")
  50383. -} ||
  50384. -{
  50385. - echo "$me: cannot create a temporary directory in ." >&2
  50386. - { (exit 1); exit 1; }
  50387. -}
  50388. +# Whether the compiler copes with passing no objects directly.
  50389. +compiler_needs_object=$lt_compiler_needs_object
  50390. -#
  50391. -# Set up the sed scripts for CONFIG_FILES section.
  50392. -#
  50393. +# Create an old-style archive from a shared archive.
  50394. +old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  50395. -# No need to generate the scripts if there are no CONFIG_FILES.
  50396. -# This happens for instance when ./config.status config.h
  50397. -if test -n "$CONFIG_FILES"; then
  50398. +# Create a temporary old-style archive to link instead of a shared archive.
  50399. +old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  50400. -_ACEOF
  50401. +# Commands used to build a shared archive.
  50402. +archive_cmds=$lt_archive_cmds
  50403. +archive_expsym_cmds=$lt_archive_expsym_cmds
  50404. +# Commands used to build a loadable module if different from building
  50405. +# a shared archive.
  50406. +module_cmds=$lt_module_cmds
  50407. +module_expsym_cmds=$lt_module_expsym_cmds
  50408. +# Whether we are building with GNU ld or not.
  50409. +with_gnu_ld=$lt_with_gnu_ld
  50410. -ac_delim='%!_!# '
  50411. -for ac_last_try in false false false false false :; do
  50412. - cat >conf$$subs.sed <<_ACEOF
  50413. -SHELL!$SHELL$ac_delim
  50414. -PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
  50415. -PACKAGE_NAME!$PACKAGE_NAME$ac_delim
  50416. -PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
  50417. -PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
  50418. -PACKAGE_STRING!$PACKAGE_STRING$ac_delim
  50419. -PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
  50420. -exec_prefix!$exec_prefix$ac_delim
  50421. -prefix!$prefix$ac_delim
  50422. -program_transform_name!$program_transform_name$ac_delim
  50423. -bindir!$bindir$ac_delim
  50424. -sbindir!$sbindir$ac_delim
  50425. -libexecdir!$libexecdir$ac_delim
  50426. -datarootdir!$datarootdir$ac_delim
  50427. -datadir!$datadir$ac_delim
  50428. -sysconfdir!$sysconfdir$ac_delim
  50429. -sharedstatedir!$sharedstatedir$ac_delim
  50430. -localstatedir!$localstatedir$ac_delim
  50431. -includedir!$includedir$ac_delim
  50432. -oldincludedir!$oldincludedir$ac_delim
  50433. -docdir!$docdir$ac_delim
  50434. -infodir!$infodir$ac_delim
  50435. -htmldir!$htmldir$ac_delim
  50436. -dvidir!$dvidir$ac_delim
  50437. -pdfdir!$pdfdir$ac_delim
  50438. -psdir!$psdir$ac_delim
  50439. -libdir!$libdir$ac_delim
  50440. -localedir!$localedir$ac_delim
  50441. -mandir!$mandir$ac_delim
  50442. -DEFS!$DEFS$ac_delim
  50443. -ECHO_C!$ECHO_C$ac_delim
  50444. -ECHO_N!$ECHO_N$ac_delim
  50445. -ECHO_T!$ECHO_T$ac_delim
  50446. -LIBS!$LIBS$ac_delim
  50447. -build_alias!$build_alias$ac_delim
  50448. -host_alias!$host_alias$ac_delim
  50449. -target_alias!$target_alias$ac_delim
  50450. -LT_VERSION_IXML!$LT_VERSION_IXML$ac_delim
  50451. -LT_VERSION_THREADUTIL!$LT_VERSION_THREADUTIL$ac_delim
  50452. -LT_VERSION_UPNP!$LT_VERSION_UPNP$ac_delim
  50453. -INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
  50454. -INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
  50455. -INSTALL_DATA!$INSTALL_DATA$ac_delim
  50456. -CYGPATH_W!$CYGPATH_W$ac_delim
  50457. -PACKAGE!$PACKAGE$ac_delim
  50458. -VERSION!$VERSION$ac_delim
  50459. -ACLOCAL!$ACLOCAL$ac_delim
  50460. -AUTOCONF!$AUTOCONF$ac_delim
  50461. -AUTOMAKE!$AUTOMAKE$ac_delim
  50462. -AUTOHEADER!$AUTOHEADER$ac_delim
  50463. -MAKEINFO!$MAKEINFO$ac_delim
  50464. -install_sh!$install_sh$ac_delim
  50465. -STRIP!$STRIP$ac_delim
  50466. -INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
  50467. -mkdir_p!$mkdir_p$ac_delim
  50468. -AWK!$AWK$ac_delim
  50469. -SET_MAKE!$SET_MAKE$ac_delim
  50470. -am__leading_dot!$am__leading_dot$ac_delim
  50471. -AMTAR!$AMTAR$ac_delim
  50472. -am__tar!$am__tar$ac_delim
  50473. -am__untar!$am__untar$ac_delim
  50474. -build!$build$ac_delim
  50475. -build_cpu!$build_cpu$ac_delim
  50476. -build_vendor!$build_vendor$ac_delim
  50477. -build_os!$build_os$ac_delim
  50478. -host!$host$ac_delim
  50479. -host_cpu!$host_cpu$ac_delim
  50480. -host_vendor!$host_vendor$ac_delim
  50481. -host_os!$host_os$ac_delim
  50482. -ENABLE_DEBUG_TRUE!$ENABLE_DEBUG_TRUE$ac_delim
  50483. -ENABLE_DEBUG_FALSE!$ENABLE_DEBUG_FALSE$ac_delim
  50484. -ENABLE_CLIENT_TRUE!$ENABLE_CLIENT_TRUE$ac_delim
  50485. -ENABLE_CLIENT_FALSE!$ENABLE_CLIENT_FALSE$ac_delim
  50486. -ENABLE_DEVICE_TRUE!$ENABLE_DEVICE_TRUE$ac_delim
  50487. -ENABLE_DEVICE_FALSE!$ENABLE_DEVICE_FALSE$ac_delim
  50488. -ENABLE_WEBSERVER_TRUE!$ENABLE_WEBSERVER_TRUE$ac_delim
  50489. -ENABLE_WEBSERVER_FALSE!$ENABLE_WEBSERVER_FALSE$ac_delim
  50490. -ENABLE_TOOLS_TRUE!$ENABLE_TOOLS_TRUE$ac_delim
  50491. -ENABLE_TOOLS_FALSE!$ENABLE_TOOLS_FALSE$ac_delim
  50492. -ENABLE_SAMPLES_TRUE!$ENABLE_SAMPLES_TRUE$ac_delim
  50493. -ENABLE_SAMPLES_FALSE!$ENABLE_SAMPLES_FALSE$ac_delim
  50494. -WITH_DOCUMENTATION_TRUE!$WITH_DOCUMENTATION_TRUE$ac_delim
  50495. -WITH_DOCUMENTATION_FALSE!$WITH_DOCUMENTATION_FALSE$ac_delim
  50496. -CC!$CC$ac_delim
  50497. -CFLAGS!$CFLAGS$ac_delim
  50498. -LDFLAGS!$LDFLAGS$ac_delim
  50499. -CPPFLAGS!$CPPFLAGS$ac_delim
  50500. -ac_ct_CC!$ac_ct_CC$ac_delim
  50501. -EXEEXT!$EXEEXT$ac_delim
  50502. -OBJEXT!$OBJEXT$ac_delim
  50503. -DEPDIR!$DEPDIR$ac_delim
  50504. -am__include!$am__include$ac_delim
  50505. -am__quote!$am__quote$ac_delim
  50506. -AMDEP_TRUE!$AMDEP_TRUE$ac_delim
  50507. -AMDEP_FALSE!$AMDEP_FALSE$ac_delim
  50508. -AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
  50509. -CCDEPMODE!$CCDEPMODE$ac_delim
  50510. -_ACEOF
  50511. +# Flag that allows shared libraries with undefined symbols to be built.
  50512. +allow_undefined_flag=$lt_allow_undefined_flag
  50513. - if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
  50514. - break
  50515. - elif $ac_last_try; then
  50516. - { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
  50517. -echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
  50518. - { (exit 1); exit 1; }; }
  50519. - else
  50520. - ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  50521. - fi
  50522. -done
  50523. +# Flag that enforces no undefined symbols.
  50524. +no_undefined_flag=$lt_no_undefined_flag
  50525. -ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
  50526. -if test -n "$ac_eof"; then
  50527. - ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
  50528. - ac_eof=`expr $ac_eof + 1`
  50529. -fi
  50530. +# Flag to hardcode \$libdir into a binary during linking.
  50531. +# This must work even if \$libdir does not exist
  50532. +hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  50533. -cat >>$CONFIG_STATUS <<_ACEOF
  50534. -cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
  50535. -/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  50536. -_ACEOF
  50537. -sed '
  50538. -s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
  50539. -s/^/s,@/; s/!/@,|#_!!_#|/
  50540. -:n
  50541. -t n
  50542. -s/'"$ac_delim"'$/,g/; t
  50543. -s/$/\\/; p
  50544. -N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
  50545. -' >>$CONFIG_STATUS <conf$$subs.sed
  50546. -rm -f conf$$subs.sed
  50547. -cat >>$CONFIG_STATUS <<_ACEOF
  50548. -CEOF$ac_eof
  50549. -_ACEOF
  50550. +# If ld is used when linking, flag to hardcode \$libdir into a binary
  50551. +# during linking. This must work even if \$libdir does not exist.
  50552. +hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
  50553. +# Whether we need a single "-rpath" flag with a separated argument.
  50554. +hardcode_libdir_separator=$lt_hardcode_libdir_separator
  50555. -ac_delim='%!_!# '
  50556. -for ac_last_try in false false false false false :; do
  50557. - cat >conf$$subs.sed <<_ACEOF
  50558. -am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
  50559. -am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
  50560. -GREP!$GREP$ac_delim
  50561. -EGREP!$EGREP$ac_delim
  50562. -LN_S!$LN_S$ac_delim
  50563. -ECHO!$ECHO$ac_delim
  50564. -AR!$AR$ac_delim
  50565. -RANLIB!$RANLIB$ac_delim
  50566. -CPP!$CPP$ac_delim
  50567. -CXX!$CXX$ac_delim
  50568. -CXXFLAGS!$CXXFLAGS$ac_delim
  50569. -ac_ct_CXX!$ac_ct_CXX$ac_delim
  50570. -CXXDEPMODE!$CXXDEPMODE$ac_delim
  50571. -am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
  50572. -am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
  50573. -CXXCPP!$CXXCPP$ac_delim
  50574. -F77!$F77$ac_delim
  50575. -FFLAGS!$FFLAGS$ac_delim
  50576. -ac_ct_F77!$ac_ct_F77$ac_delim
  50577. -LIBTOOL!$LIBTOOL$ac_delim
  50578. -acx_pthread_config!$acx_pthread_config$ac_delim
  50579. -PTHREAD_CC!$PTHREAD_CC$ac_delim
  50580. -PTHREAD_LIBS!$PTHREAD_LIBS$ac_delim
  50581. -PTHREAD_CFLAGS!$PTHREAD_CFLAGS$ac_delim
  50582. -LIBOBJS!$LIBOBJS$ac_delim
  50583. -LTLIBOBJS!$LTLIBOBJS$ac_delim
  50584. -_ACEOF
  50585. +# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  50586. +# DIR into the resulting binary.
  50587. +hardcode_direct=$hardcode_direct
  50588. - if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 26; then
  50589. - break
  50590. - elif $ac_last_try; then
  50591. - { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
  50592. -echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
  50593. - { (exit 1); exit 1; }; }
  50594. - else
  50595. - ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  50596. - fi
  50597. -done
  50598. +# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  50599. +# DIR into the resulting binary and the resulting library dependency is
  50600. +# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  50601. +# library is relocated.
  50602. +hardcode_direct_absolute=$hardcode_direct_absolute
  50603. -ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
  50604. -if test -n "$ac_eof"; then
  50605. - ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
  50606. - ac_eof=`expr $ac_eof + 1`
  50607. -fi
  50608. -
  50609. -cat >>$CONFIG_STATUS <<_ACEOF
  50610. -cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
  50611. -/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
  50612. -_ACEOF
  50613. -sed '
  50614. -s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
  50615. -s/^/s,@/; s/!/@,|#_!!_#|/
  50616. -:n
  50617. -t n
  50618. -s/'"$ac_delim"'$/,g/; t
  50619. -s/$/\\/; p
  50620. -N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
  50621. -' >>$CONFIG_STATUS <conf$$subs.sed
  50622. -rm -f conf$$subs.sed
  50623. -cat >>$CONFIG_STATUS <<_ACEOF
  50624. -:end
  50625. -s/|#_!!_#|//g
  50626. -CEOF$ac_eof
  50627. -_ACEOF
  50628. +# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  50629. +# into the resulting binary.
  50630. +hardcode_minus_L=$hardcode_minus_L
  50631. +# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  50632. +# into the resulting binary.
  50633. +hardcode_shlibpath_var=$hardcode_shlibpath_var
  50634. -# VPATH may cause trouble with some makes, so we remove $(srcdir),
  50635. -# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
  50636. -# trailing colons and then remove the whole line if VPATH becomes empty
  50637. -# (actually we leave an empty line to preserve line numbers).
  50638. -if test "x$srcdir" = x.; then
  50639. - ac_vpsub='/^[ ]*VPATH[ ]*=/{
  50640. -s/:*\$(srcdir):*/:/
  50641. -s/:*\${srcdir}:*/:/
  50642. -s/:*@srcdir@:*/:/
  50643. -s/^\([^=]*=[ ]*\):*/\1/
  50644. -s/:*$//
  50645. -s/^[^=]*=[ ]*$//
  50646. -}'
  50647. -fi
  50648. +# Set to "yes" if building a shared library automatically hardcodes DIR
  50649. +# into the library and all subsequent libraries and executables linked
  50650. +# against it.
  50651. +hardcode_automatic=$hardcode_automatic
  50652. -cat >>$CONFIG_STATUS <<\_ACEOF
  50653. -fi # test -n "$CONFIG_FILES"
  50654. +# Set to yes if linker adds runtime paths of dependent libraries
  50655. +# to runtime path list.
  50656. +inherit_rpath=$inherit_rpath
  50657. +# Whether libtool must link a program against all its dependency libraries.
  50658. +link_all_deplibs=$link_all_deplibs
  50659. -for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
  50660. -do
  50661. - case $ac_tag in
  50662. - :[FHLC]) ac_mode=$ac_tag; continue;;
  50663. - esac
  50664. - case $ac_mode$ac_tag in
  50665. - :[FHL]*:*);;
  50666. - :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
  50667. -echo "$as_me: error: Invalid tag $ac_tag." >&2;}
  50668. - { (exit 1); exit 1; }; };;
  50669. - :[FH]-) ac_tag=-:-;;
  50670. - :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  50671. - esac
  50672. - ac_save_IFS=$IFS
  50673. - IFS=:
  50674. - set x $ac_tag
  50675. - IFS=$ac_save_IFS
  50676. - shift
  50677. - ac_file=$1
  50678. - shift
  50679. +# Fix the shell variable \$srcfile for the compiler.
  50680. +fix_srcfile_path=$lt_fix_srcfile_path
  50681. - case $ac_mode in
  50682. - :L) ac_source=$1;;
  50683. - :[FH])
  50684. - ac_file_inputs=
  50685. - for ac_f
  50686. - do
  50687. - case $ac_f in
  50688. - -) ac_f="$tmp/stdin";;
  50689. - *) # Look for the file first in the build tree, then in the source tree
  50690. - # (if the path is not absolute). The absolute path cannot be DOS-style,
  50691. - # because $ac_f cannot contain `:'.
  50692. - test -f "$ac_f" ||
  50693. - case $ac_f in
  50694. - [\\/$]*) false;;
  50695. - *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  50696. - esac ||
  50697. - { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
  50698. -echo "$as_me: error: cannot find input file: $ac_f" >&2;}
  50699. - { (exit 1); exit 1; }; };;
  50700. - esac
  50701. - ac_file_inputs="$ac_file_inputs $ac_f"
  50702. - done
  50703. +# Set to "yes" if exported symbols are required.
  50704. +always_export_symbols=$always_export_symbols
  50705. - # Let's still pretend it is `configure' which instantiates (i.e., don't
  50706. - # use $as_me), people would be surprised to read:
  50707. - # /* config.h. Generated by config.status. */
  50708. - configure_input="Generated from "`IFS=:
  50709. - echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
  50710. - if test x"$ac_file" != x-; then
  50711. - configure_input="$ac_file. $configure_input"
  50712. - { echo "$as_me:$LINENO: creating $ac_file" >&5
  50713. -echo "$as_me: creating $ac_file" >&6;}
  50714. - fi
  50715. +# The commands to list exported symbols.
  50716. +export_symbols_cmds=$lt_export_symbols_cmds
  50717. - case $ac_tag in
  50718. - *:-:* | *:-) cat >"$tmp/stdin";;
  50719. - esac
  50720. - ;;
  50721. - esac
  50722. +# Symbols that should not be listed in the preloaded symbols.
  50723. +exclude_expsyms=$lt_exclude_expsyms
  50724. - ac_dir=`$as_dirname -- "$ac_file" ||
  50725. -$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  50726. - X"$ac_file" : 'X\(//\)[^/]' \| \
  50727. - X"$ac_file" : 'X\(//\)$' \| \
  50728. - X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  50729. -echo X"$ac_file" |
  50730. - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  50731. - s//\1/
  50732. - q
  50733. - }
  50734. - /^X\(\/\/\)[^/].*/{
  50735. - s//\1/
  50736. - q
  50737. - }
  50738. - /^X\(\/\/\)$/{
  50739. - s//\1/
  50740. - q
  50741. - }
  50742. - /^X\(\/\).*/{
  50743. - s//\1/
  50744. - q
  50745. - }
  50746. - s/.*/./; q'`
  50747. - { as_dir="$ac_dir"
  50748. - case $as_dir in #(
  50749. - -*) as_dir=./$as_dir;;
  50750. - esac
  50751. - test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
  50752. - as_dirs=
  50753. - while :; do
  50754. - case $as_dir in #(
  50755. - *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
  50756. - *) as_qdir=$as_dir;;
  50757. - esac
  50758. - as_dirs="'$as_qdir' $as_dirs"
  50759. - as_dir=`$as_dirname -- "$as_dir" ||
  50760. -$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  50761. - X"$as_dir" : 'X\(//\)[^/]' \| \
  50762. - X"$as_dir" : 'X\(//\)$' \| \
  50763. - X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  50764. -echo X"$as_dir" |
  50765. - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  50766. - s//\1/
  50767. - q
  50768. - }
  50769. - /^X\(\/\/\)[^/].*/{
  50770. - s//\1/
  50771. - q
  50772. - }
  50773. - /^X\(\/\/\)$/{
  50774. - s//\1/
  50775. - q
  50776. - }
  50777. - /^X\(\/\).*/{
  50778. - s//\1/
  50779. - q
  50780. - }
  50781. - s/.*/./; q'`
  50782. - test -d "$as_dir" && break
  50783. - done
  50784. - test -z "$as_dirs" || eval "mkdir $as_dirs"
  50785. - } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
  50786. -echo "$as_me: error: cannot create directory $as_dir" >&2;}
  50787. - { (exit 1); exit 1; }; }; }
  50788. - ac_builddir=.
  50789. +# Symbols that must always be exported.
  50790. +include_expsyms=$lt_include_expsyms
  50791. -case "$ac_dir" in
  50792. -.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  50793. -*)
  50794. - ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  50795. - # A ".." for each directory in $ac_dir_suffix.
  50796. - ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
  50797. - case $ac_top_builddir_sub in
  50798. - "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  50799. - *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  50800. - esac ;;
  50801. -esac
  50802. -ac_abs_top_builddir=$ac_pwd
  50803. -ac_abs_builddir=$ac_pwd$ac_dir_suffix
  50804. -# for backward compatibility:
  50805. -ac_top_builddir=$ac_top_build_prefix
  50806. +# Commands necessary for linking programs (against libraries) with templates.
  50807. +prelink_cmds=$lt_prelink_cmds
  50808. -case $srcdir in
  50809. - .) # We are building in place.
  50810. - ac_srcdir=.
  50811. - ac_top_srcdir=$ac_top_builddir_sub
  50812. - ac_abs_top_srcdir=$ac_pwd ;;
  50813. - [\\/]* | ?:[\\/]* ) # Absolute name.
  50814. - ac_srcdir=$srcdir$ac_dir_suffix;
  50815. - ac_top_srcdir=$srcdir
  50816. - ac_abs_top_srcdir=$srcdir ;;
  50817. - *) # Relative name.
  50818. - ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  50819. - ac_top_srcdir=$ac_top_build_prefix$srcdir
  50820. - ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  50821. -esac
  50822. -ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  50823. +# Specify filename containing input files.
  50824. +file_list_spec=$lt_file_list_spec
  50825. +
  50826. +# How to hardcode a shared library path into an executable.
  50827. +hardcode_action=$hardcode_action
  50828. +
  50829. +# ### END LIBTOOL CONFIG
  50830. +
  50831. +_LT_EOF
  50832. +
  50833. + case $host_os in
  50834. + aix3*)
  50835. + cat <<\_LT_EOF >> "$cfgfile"
  50836. +# AIX sometimes has problems with the GCC collect2 program. For some
  50837. +# reason, if we set the COLLECT_NAMES environment variable, the problems
  50838. +# vanish in a puff of smoke.
  50839. +if test "X${COLLECT_NAMES+set}" != Xset; then
  50840. + COLLECT_NAMES=
  50841. + export COLLECT_NAMES
  50842. +fi
  50843. +_LT_EOF
  50844. + ;;
  50845. + esac
  50846. - case $ac_mode in
  50847. - :F)
  50848. - #
  50849. - # CONFIG_FILE
  50850. - #
  50851. +ltmain="$ac_aux_dir/ltmain.sh"
  50852. - case $INSTALL in
  50853. - [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  50854. - *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  50855. +
  50856. + # We use sed instead of cat because bash on DJGPP gets confused if
  50857. + # if finds mixed CR/LF and LF-only lines. Since sed operates in
  50858. + # text mode, it properly converts lines to CR/LF. This bash problem
  50859. + # is reportedly fixed, but why not run on old versions too?
  50860. + sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
  50861. + || (rm -f "$cfgfile"; exit 1)
  50862. +
  50863. + case $xsi_shell in
  50864. + yes)
  50865. + cat << \_LT_EOF >> "$cfgfile"
  50866. +
  50867. +# func_dirname file append nondir_replacement
  50868. +# Compute the dirname of FILE. If nonempty, add APPEND to the result,
  50869. +# otherwise set result to NONDIR_REPLACEMENT.
  50870. +func_dirname ()
  50871. +{
  50872. + case ${1} in
  50873. + */*) func_dirname_result="${1%/*}${2}" ;;
  50874. + * ) func_dirname_result="${3}" ;;
  50875. esac
  50876. -_ACEOF
  50877. +}
  50878. -cat >>$CONFIG_STATUS <<\_ACEOF
  50879. -# If the template does not know about datarootdir, expand it.
  50880. -# FIXME: This hack should be removed a few years after 2.60.
  50881. -ac_datarootdir_hack=; ac_datarootdir_seen=
  50882. +# func_basename file
  50883. +func_basename ()
  50884. +{
  50885. + func_basename_result="${1##*/}"
  50886. +}
  50887. -case `sed -n '/datarootdir/ {
  50888. - p
  50889. - q
  50890. +# func_dirname_and_basename file append nondir_replacement
  50891. +# perform func_basename and func_dirname in a single function
  50892. +# call:
  50893. +# dirname: Compute the dirname of FILE. If nonempty,
  50894. +# add APPEND to the result, otherwise set result
  50895. +# to NONDIR_REPLACEMENT.
  50896. +# value returned in "$func_dirname_result"
  50897. +# basename: Compute filename of FILE.
  50898. +# value retuned in "$func_basename_result"
  50899. +# Implementation must be kept synchronized with func_dirname
  50900. +# and func_basename. For efficiency, we do not delegate to
  50901. +# those functions but instead duplicate the functionality here.
  50902. +func_dirname_and_basename ()
  50903. +{
  50904. + case ${1} in
  50905. + */*) func_dirname_result="${1%/*}${2}" ;;
  50906. + * ) func_dirname_result="${3}" ;;
  50907. + esac
  50908. + func_basename_result="${1##*/}"
  50909. }
  50910. -/@datadir@/p
  50911. -/@docdir@/p
  50912. -/@infodir@/p
  50913. -/@localedir@/p
  50914. -/@mandir@/p
  50915. -' $ac_file_inputs` in
  50916. -*datarootdir*) ac_datarootdir_seen=yes;;
  50917. -*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  50918. - { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  50919. -echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  50920. -_ACEOF
  50921. -cat >>$CONFIG_STATUS <<_ACEOF
  50922. - ac_datarootdir_hack='
  50923. - s&@datadir@&$datadir&g
  50924. - s&@docdir@&$docdir&g
  50925. - s&@infodir@&$infodir&g
  50926. - s&@localedir@&$localedir&g
  50927. - s&@mandir@&$mandir&g
  50928. - s&\\\${datarootdir}&$datarootdir&g' ;;
  50929. -esac
  50930. -_ACEOF
  50931. -# Neutralize VPATH when `$srcdir' = `.'.
  50932. -# Shell code in configure.ac might set extrasub.
  50933. -# FIXME: do we really want to maintain this feature?
  50934. -cat >>$CONFIG_STATUS <<_ACEOF
  50935. - sed "$ac_vpsub
  50936. -$extrasub
  50937. -_ACEOF
  50938. -cat >>$CONFIG_STATUS <<\_ACEOF
  50939. -:t
  50940. -/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  50941. -s&@configure_input@&$configure_input&;t t
  50942. -s&@top_builddir@&$ac_top_builddir_sub&;t t
  50943. -s&@srcdir@&$ac_srcdir&;t t
  50944. -s&@abs_srcdir@&$ac_abs_srcdir&;t t
  50945. -s&@top_srcdir@&$ac_top_srcdir&;t t
  50946. -s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  50947. -s&@builddir@&$ac_builddir&;t t
  50948. -s&@abs_builddir@&$ac_abs_builddir&;t t
  50949. -s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  50950. -s&@INSTALL@&$ac_INSTALL&;t t
  50951. -$ac_datarootdir_hack
  50952. -" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
  50953. +# func_stripname prefix suffix name
  50954. +# strip PREFIX and SUFFIX off of NAME.
  50955. +# PREFIX and SUFFIX must not contain globbing or regex special
  50956. +# characters, hashes, percent signs, but SUFFIX may contain a leading
  50957. +# dot (in which case that matches only a dot).
  50958. +func_stripname ()
  50959. +{
  50960. + # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
  50961. + # positional parameters, so assign one to ordinary parameter first.
  50962. + func_stripname_result=${3}
  50963. + func_stripname_result=${func_stripname_result#"${1}"}
  50964. + func_stripname_result=${func_stripname_result%"${2}"}
  50965. +}
  50966. -test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  50967. - { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
  50968. - { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
  50969. - { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  50970. -which seems to be undefined. Please make sure it is defined." >&5
  50971. -echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  50972. -which seems to be undefined. Please make sure it is defined." >&2;}
  50973. +# func_opt_split
  50974. +func_opt_split ()
  50975. +{
  50976. + func_opt_split_opt=${1%%=*}
  50977. + func_opt_split_arg=${1#*=}
  50978. +}
  50979. - rm -f "$tmp/stdin"
  50980. - case $ac_file in
  50981. - -) cat "$tmp/out"; rm -f "$tmp/out";;
  50982. - *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
  50983. +# func_lo2o object
  50984. +func_lo2o ()
  50985. +{
  50986. + case ${1} in
  50987. + *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
  50988. + *) func_lo2o_result=${1} ;;
  50989. esac
  50990. - ;;
  50991. - :H)
  50992. - #
  50993. - # CONFIG_HEADER
  50994. - #
  50995. -_ACEOF
  50996. +}
  50997. -# Transform confdefs.h into a sed script `conftest.defines', that
  50998. -# substitutes the proper values into config.h.in to produce config.h.
  50999. -rm -f conftest.defines conftest.tail
  51000. -# First, append a space to every undef/define line, to ease matching.
  51001. -echo 's/$/ /' >conftest.defines
  51002. -# Then, protect against being on the right side of a sed subst, or in
  51003. -# an unquoted here document, in config.status. If some macros were
  51004. -# called several times there might be several #defines for the same
  51005. -# symbol, which is useless. But do not sort them, since the last
  51006. -# AC_DEFINE must be honored.
  51007. -ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  51008. -# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
  51009. -# NAME is the cpp macro being defined, VALUE is the value it is being given.
  51010. -# PARAMS is the parameter list in the macro definition--in most cases, it's
  51011. -# just an empty string.
  51012. -ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
  51013. -ac_dB='\\)[ (].*,\\1define\\2'
  51014. -ac_dC=' '
  51015. -ac_dD=' ,'
  51016. +# func_xform libobj-or-source
  51017. +func_xform ()
  51018. +{
  51019. + func_xform_result=${1%.*}.lo
  51020. +}
  51021. -uniq confdefs.h |
  51022. - sed -n '
  51023. - t rset
  51024. - :rset
  51025. - s/^[ ]*#[ ]*define[ ][ ]*//
  51026. - t ok
  51027. - d
  51028. - :ok
  51029. - s/[\\&,]/\\&/g
  51030. - s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
  51031. - s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
  51032. - ' >>conftest.defines
  51033. -
  51034. -# Remove the space that was appended to ease matching.
  51035. -# Then replace #undef with comments. This is necessary, for
  51036. -# example, in the case of _POSIX_SOURCE, which is predefined and required
  51037. -# on some systems where configure will not decide to define it.
  51038. -# (The regexp can be short, since the line contains either #define or #undef.)
  51039. -echo 's/ $//
  51040. -s,^[ #]*u.*,/* & */,' >>conftest.defines
  51041. -
  51042. -# Break up conftest.defines:
  51043. -ac_max_sed_lines=50
  51044. -
  51045. -# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
  51046. -# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
  51047. -# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
  51048. -# et cetera.
  51049. -ac_in='$ac_file_inputs'
  51050. -ac_out='"$tmp/out1"'
  51051. -ac_nxt='"$tmp/out2"'
  51052. +# func_arith arithmetic-term...
  51053. +func_arith ()
  51054. +{
  51055. + func_arith_result=$(( $* ))
  51056. +}
  51057. -while :
  51058. -do
  51059. - # Write a here document:
  51060. - cat >>$CONFIG_STATUS <<_ACEOF
  51061. - # First, check the format of the line:
  51062. - cat >"\$tmp/defines.sed" <<\\CEOF
  51063. -/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
  51064. -/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
  51065. -b
  51066. -:def
  51067. -_ACEOF
  51068. - sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
  51069. - echo 'CEOF
  51070. - sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
  51071. - ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
  51072. - sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
  51073. - grep . conftest.tail >/dev/null || break
  51074. - rm -f conftest.defines
  51075. - mv conftest.tail conftest.defines
  51076. -done
  51077. -rm -f conftest.defines conftest.tail
  51078. +# func_len string
  51079. +# STRING may not start with a hyphen.
  51080. +func_len ()
  51081. +{
  51082. + func_len_result=${#1}
  51083. +}
  51084. -echo "ac_result=$ac_in" >>$CONFIG_STATUS
  51085. -cat >>$CONFIG_STATUS <<\_ACEOF
  51086. - if test x"$ac_file" != x-; then
  51087. - echo "/* $configure_input */" >"$tmp/config.h"
  51088. - cat "$ac_result" >>"$tmp/config.h"
  51089. - if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
  51090. - { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
  51091. -echo "$as_me: $ac_file is unchanged" >&6;}
  51092. - else
  51093. - rm -f $ac_file
  51094. - mv "$tmp/config.h" $ac_file
  51095. - fi
  51096. +_LT_EOF
  51097. + ;;
  51098. + *) # Bourne compatible functions.
  51099. + cat << \_LT_EOF >> "$cfgfile"
  51100. +
  51101. +# func_dirname file append nondir_replacement
  51102. +# Compute the dirname of FILE. If nonempty, add APPEND to the result,
  51103. +# otherwise set result to NONDIR_REPLACEMENT.
  51104. +func_dirname ()
  51105. +{
  51106. + # Extract subdirectory from the argument.
  51107. + func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
  51108. + if test "X$func_dirname_result" = "X${1}"; then
  51109. + func_dirname_result="${3}"
  51110. else
  51111. - echo "/* $configure_input */"
  51112. - cat "$ac_result"
  51113. + func_dirname_result="$func_dirname_result${2}"
  51114. fi
  51115. - rm -f "$tmp/out12"
  51116. -# Compute $ac_file's index in $config_headers.
  51117. -_am_stamp_count=1
  51118. -for _am_header in $config_headers :; do
  51119. - case $_am_header in
  51120. - $ac_file | $ac_file:* )
  51121. - break ;;
  51122. - * )
  51123. - _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  51124. - esac
  51125. -done
  51126. -echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
  51127. -$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  51128. - X$ac_file : 'X\(//\)[^/]' \| \
  51129. - X$ac_file : 'X\(//\)$' \| \
  51130. - X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
  51131. -echo X$ac_file |
  51132. - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  51133. - s//\1/
  51134. - q
  51135. - }
  51136. - /^X\(\/\/\)[^/].*/{
  51137. - s//\1/
  51138. - q
  51139. - }
  51140. - /^X\(\/\/\)$/{
  51141. - s//\1/
  51142. - q
  51143. - }
  51144. - /^X\(\/\).*/{
  51145. - s//\1/
  51146. - q
  51147. - }
  51148. - s/.*/./; q'`/stamp-h$_am_stamp_count
  51149. - ;;
  51150. +}
  51151. - :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
  51152. -echo "$as_me: executing $ac_file commands" >&6;}
  51153. - ;;
  51154. +# func_basename file
  51155. +func_basename ()
  51156. +{
  51157. + func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
  51158. +}
  51159. +
  51160. +
  51161. +# func_stripname prefix suffix name
  51162. +# strip PREFIX and SUFFIX off of NAME.
  51163. +# PREFIX and SUFFIX must not contain globbing or regex special
  51164. +# characters, hashes, percent signs, but SUFFIX may contain a leading
  51165. +# dot (in which case that matches only a dot).
  51166. +# func_strip_suffix prefix name
  51167. +func_stripname ()
  51168. +{
  51169. + case ${2} in
  51170. + .*) func_stripname_result=`$ECHO "X${3}" \
  51171. + | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
  51172. + *) func_stripname_result=`$ECHO "X${3}" \
  51173. + | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
  51174. esac
  51175. +}
  51176. +# sed scripts:
  51177. +my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
  51178. +my_sed_long_arg='1s/^-[^=]*=//'
  51179. - case $ac_file$ac_mode in
  51180. - "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
  51181. - # Strip MF so we end up with the name of the file.
  51182. - mf=`echo "$mf" | sed -e 's/:.*$//'`
  51183. - # Check whether this is an Automake generated Makefile or not.
  51184. - # We used to match only the files named `Makefile.in', but
  51185. - # some people rename them; so instead we look at the file content.
  51186. - # Grep'ing the first line is not enough: some people post-process
  51187. - # each Makefile.in and add a new line on top of each file to say so.
  51188. - # So let's grep whole file.
  51189. - if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
  51190. - dirpart=`$as_dirname -- "$mf" ||
  51191. -$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  51192. - X"$mf" : 'X\(//\)[^/]' \| \
  51193. - X"$mf" : 'X\(//\)$' \| \
  51194. - X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
  51195. -echo X"$mf" |
  51196. - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  51197. - s//\1/
  51198. - q
  51199. - }
  51200. - /^X\(\/\/\)[^/].*/{
  51201. - s//\1/
  51202. - q
  51203. - }
  51204. - /^X\(\/\/\)$/{
  51205. - s//\1/
  51206. - q
  51207. - }
  51208. - /^X\(\/\).*/{
  51209. - s//\1/
  51210. - q
  51211. - }
  51212. - s/.*/./; q'`
  51213. - else
  51214. - continue
  51215. - fi
  51216. - # Extract the definition of DEPDIR, am__include, and am__quote
  51217. - # from the Makefile without running `make'.
  51218. - DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  51219. - test -z "$DEPDIR" && continue
  51220. - am__include=`sed -n 's/^am__include = //p' < "$mf"`
  51221. - test -z "am__include" && continue
  51222. - am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  51223. - # When using ansi2knr, U may be empty or an underscore; expand it
  51224. - U=`sed -n 's/^U = //p' < "$mf"`
  51225. - # Find all dependency output files, they are included files with
  51226. - # $(DEPDIR) in their names. We invoke sed twice because it is the
  51227. - # simplest approach to changing $(DEPDIR) to its actual value in the
  51228. - # expansion.
  51229. - for file in `sed -n "
  51230. - s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  51231. - sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
  51232. - # Make sure the directory exists.
  51233. - test -f "$dirpart/$file" && continue
  51234. - fdir=`$as_dirname -- "$file" ||
  51235. -$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  51236. - X"$file" : 'X\(//\)[^/]' \| \
  51237. - X"$file" : 'X\(//\)$' \| \
  51238. - X"$file" : 'X\(/\)' \| . 2>/dev/null ||
  51239. -echo X"$file" |
  51240. - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  51241. - s//\1/
  51242. - q
  51243. - }
  51244. - /^X\(\/\/\)[^/].*/{
  51245. - s//\1/
  51246. - q
  51247. - }
  51248. - /^X\(\/\/\)$/{
  51249. - s//\1/
  51250. - q
  51251. - }
  51252. - /^X\(\/\).*/{
  51253. - s//\1/
  51254. - q
  51255. - }
  51256. - s/.*/./; q'`
  51257. - { as_dir=$dirpart/$fdir
  51258. - case $as_dir in #(
  51259. - -*) as_dir=./$as_dir;;
  51260. +# func_opt_split
  51261. +func_opt_split ()
  51262. +{
  51263. + func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
  51264. + func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
  51265. +}
  51266. +
  51267. +# func_lo2o object
  51268. +func_lo2o ()
  51269. +{
  51270. + func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
  51271. +}
  51272. +
  51273. +# func_xform libobj-or-source
  51274. +func_xform ()
  51275. +{
  51276. + func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
  51277. +}
  51278. +
  51279. +# func_arith arithmetic-term...
  51280. +func_arith ()
  51281. +{
  51282. + func_arith_result=`expr "$@"`
  51283. +}
  51284. +
  51285. +# func_len string
  51286. +# STRING may not start with a hyphen.
  51287. +func_len ()
  51288. +{
  51289. + func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
  51290. +}
  51291. +
  51292. +_LT_EOF
  51293. +esac
  51294. +
  51295. +case $lt_shell_append in
  51296. + yes)
  51297. + cat << \_LT_EOF >> "$cfgfile"
  51298. +
  51299. +# func_append var value
  51300. +# Append VALUE to the end of shell variable VAR.
  51301. +func_append ()
  51302. +{
  51303. + eval "$1+=\$2"
  51304. +}
  51305. +_LT_EOF
  51306. + ;;
  51307. + *)
  51308. + cat << \_LT_EOF >> "$cfgfile"
  51309. +
  51310. +# func_append var value
  51311. +# Append VALUE to the end of shell variable VAR.
  51312. +func_append ()
  51313. +{
  51314. + eval "$1=\$$1\$2"
  51315. +}
  51316. +
  51317. +_LT_EOF
  51318. + ;;
  51319. esac
  51320. - test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
  51321. - as_dirs=
  51322. - while :; do
  51323. - case $as_dir in #(
  51324. - *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
  51325. - *) as_qdir=$as_dir;;
  51326. - esac
  51327. - as_dirs="'$as_qdir' $as_dirs"
  51328. - as_dir=`$as_dirname -- "$as_dir" ||
  51329. -$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  51330. - X"$as_dir" : 'X\(//\)[^/]' \| \
  51331. - X"$as_dir" : 'X\(//\)$' \| \
  51332. - X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  51333. -echo X"$as_dir" |
  51334. - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  51335. - s//\1/
  51336. - q
  51337. - }
  51338. - /^X\(\/\/\)[^/].*/{
  51339. - s//\1/
  51340. - q
  51341. - }
  51342. - /^X\(\/\/\)$/{
  51343. - s//\1/
  51344. - q
  51345. - }
  51346. - /^X\(\/\).*/{
  51347. - s//\1/
  51348. - q
  51349. - }
  51350. - s/.*/./; q'`
  51351. - test -d "$as_dir" && break
  51352. - done
  51353. - test -z "$as_dirs" || eval "mkdir $as_dirs"
  51354. - } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
  51355. -echo "$as_me: error: cannot create directory $as_dir" >&2;}
  51356. - { (exit 1); exit 1; }; }; }
  51357. - # echo "creating $dirpart/$file"
  51358. - echo '# dummy' > "$dirpart/$file"
  51359. - done
  51360. -done
  51361. +
  51362. +
  51363. + sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
  51364. + || (rm -f "$cfgfile"; exit 1)
  51365. +
  51366. + mv -f "$cfgfile" "$ofile" ||
  51367. + (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  51368. + chmod +x "$ofile"
  51369. +
  51370. ;;
  51371. esac
  51372. done # for ac_tag
  51373. -{ (exit 0); exit 0; }
  51374. +as_fn_exit 0
  51375. _ACEOF
  51376. -chmod +x $CONFIG_STATUS
  51377. ac_clean_files=$ac_clean_files_save
  51378. +test $ac_write_fail = 0 ||
  51379. + as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
  51380. +
  51381. # configure is writing to config.log, and then calls config.status.
  51382. # config.status does its own redirection, appending to config.log.
  51383. @@ -24213,7 +14461,11 @@
  51384. exec 5>>config.log
  51385. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  51386. # would make configure fail if this is the last instruction.
  51387. - $ac_cs_success || { (exit 1); exit 1; }
  51388. + $ac_cs_success || as_fn_exit $?
  51389. +fi
  51390. +if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  51391. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  51392. +$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  51393. fi
  51394. diff -Nur libupnp-1.6.6.orig/configure.ac libupnp-1.6.6/configure.ac
  51395. --- libupnp-1.6.6.orig/configure.ac 2008-04-25 13:41:16.000000000 +0200
  51396. +++ libupnp-1.6.6/configure.ac 2010-02-18 22:36:39.380857248 +0100
  51397. @@ -343,7 +343,6 @@
  51398. sys/ioctl.h \
  51399. sys/socket.h \
  51400. sys/time.h \
  51401. - sys/timeb.h \
  51402. syslog.h \
  51403. unistd.h \
  51404. ],
  51405. diff -Nur libupnp-1.6.6.orig/docs/dist/Makefile.in libupnp-1.6.6/docs/dist/Makefile.in
  51406. --- libupnp-1.6.6.orig/docs/dist/Makefile.in 2008-04-25 13:47:37.000000000 +0200
  51407. +++ libupnp-1.6.6/docs/dist/Makefile.in 2010-02-18 22:37:01.676854524 +0100
  51408. @@ -1,8 +1,9 @@
  51409. -# Makefile.in generated by automake 1.9.6 from Makefile.am.
  51410. +# Makefile.in generated by automake 1.11.1 from Makefile.am.
  51411. # @configure_input@
  51412. # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
  51413. -# 2003, 2004, 2005 Free Software Foundation, Inc.
  51414. +# 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
  51415. +# Inc.
  51416. # This Makefile.in is free software; the Free Software Foundation
  51417. # gives unlimited permission to copy and/or distribute it,
  51418. # with or without modifications, as long as this notice is preserved.
  51419. @@ -14,15 +15,12 @@
  51420. @SET_MAKE@
  51421. -srcdir = @srcdir@
  51422. -top_srcdir = @top_srcdir@
  51423. VPATH = @srcdir@
  51424. pkgdatadir = $(datadir)/@PACKAGE@
  51425. -pkglibdir = $(libdir)/@PACKAGE@
  51426. pkgincludedir = $(includedir)/@PACKAGE@
  51427. -top_builddir = ../..
  51428. +pkglibdir = $(libdir)/@PACKAGE@
  51429. +pkglibexecdir = $(libexecdir)/@PACKAGE@
  51430. am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
  51431. -INSTALL = @INSTALL@
  51432. install_sh_DATA = $(install_sh) -c -m 644
  51433. install_sh_PROGRAM = $(install_sh) -c
  51434. install_sh_SCRIPT = $(install_sh) -c
  51435. @@ -42,6 +40,9 @@
  51436. am__aclocal_m4_deps = $(top_srcdir)/m4/acx_pthread.m4 \
  51437. $(top_srcdir)/m4/ax_cflags_gcc_option.m4 \
  51438. $(top_srcdir)/m4/ax_cflags_warn_all.m4 \
  51439. + $(top_srcdir)/m4/libtool.m4 $(top_srcdir)/m4/ltoptions.m4 \
  51440. + $(top_srcdir)/m4/ltsugar.m4 $(top_srcdir)/m4/ltversion.m4 \
  51441. + $(top_srcdir)/m4/lt~obsolete.m4 \
  51442. $(top_srcdir)/m4/rt_bool_arg_enable.m4 \
  51443. $(top_srcdir)/m4/type_socklen_t.m4 $(top_srcdir)/configure.ac
  51444. am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
  51445. @@ -50,6 +51,7 @@
  51446. CONFIG_HEADER = $(top_builddir)/autoconfig.h \
  51447. $(top_builddir)/upnp/inc/upnpconfig.h
  51448. CONFIG_CLEAN_FILES =
  51449. +CONFIG_CLEAN_VPATH_FILES =
  51450. SOURCES =
  51451. DIST_SOURCES =
  51452. am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
  51453. @@ -57,14 +59,26 @@
  51454. $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
  51455. *) f=$$p;; \
  51456. esac;
  51457. -am__strip_dir = `echo $$p | sed -e 's|^.*/||'`;
  51458. +am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`;
  51459. +am__install_max = 40
  51460. +am__nobase_strip_setup = \
  51461. + srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'`
  51462. +am__nobase_strip = \
  51463. + for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||"
  51464. +am__nobase_list = $(am__nobase_strip_setup); \
  51465. + for p in $$list; do echo "$$p $$p"; done | \
  51466. + sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \
  51467. + $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \
  51468. + if (++n[$$2] == $(am__install_max)) \
  51469. + { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \
  51470. + END { for (dir in files) print dir, files[dir] }'
  51471. +am__base_list = \
  51472. + sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \
  51473. + sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g'
  51474. am__installdirs = "$(DESTDIR)$(docsdir)"
  51475. -nobase_docsDATA_INSTALL = $(install_sh_DATA)
  51476. DATA = $(nobase_docs_DATA)
  51477. DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
  51478. ACLOCAL = @ACLOCAL@
  51479. -AMDEP_FALSE = @AMDEP_FALSE@
  51480. -AMDEP_TRUE = @AMDEP_TRUE@
  51481. AMTAR = @AMTAR@
  51482. AR = @AR@
  51483. AUTOCONF = @AUTOCONF@
  51484. @@ -76,74 +90,66 @@
  51485. CFLAGS = @CFLAGS@
  51486. CPP = @CPP@
  51487. CPPFLAGS = @CPPFLAGS@
  51488. -CXX = @CXX@
  51489. -CXXCPP = @CXXCPP@
  51490. -CXXDEPMODE = @CXXDEPMODE@
  51491. -CXXFLAGS = @CXXFLAGS@
  51492. CYGPATH_W = @CYGPATH_W@
  51493. DEFS = @DEFS@
  51494. DEPDIR = @DEPDIR@
  51495. -ECHO = @ECHO@
  51496. +DSYMUTIL = @DSYMUTIL@
  51497. +DUMPBIN = @DUMPBIN@
  51498. ECHO_C = @ECHO_C@
  51499. ECHO_N = @ECHO_N@
  51500. ECHO_T = @ECHO_T@
  51501. EGREP = @EGREP@
  51502. -ENABLE_CLIENT_FALSE = @ENABLE_CLIENT_FALSE@
  51503. -ENABLE_CLIENT_TRUE = @ENABLE_CLIENT_TRUE@
  51504. -ENABLE_DEBUG_FALSE = @ENABLE_DEBUG_FALSE@
  51505. -ENABLE_DEBUG_TRUE = @ENABLE_DEBUG_TRUE@
  51506. -ENABLE_DEVICE_FALSE = @ENABLE_DEVICE_FALSE@
  51507. -ENABLE_DEVICE_TRUE = @ENABLE_DEVICE_TRUE@
  51508. -ENABLE_SAMPLES_FALSE = @ENABLE_SAMPLES_FALSE@
  51509. -ENABLE_SAMPLES_TRUE = @ENABLE_SAMPLES_TRUE@
  51510. -ENABLE_TOOLS_FALSE = @ENABLE_TOOLS_FALSE@
  51511. -ENABLE_TOOLS_TRUE = @ENABLE_TOOLS_TRUE@
  51512. -ENABLE_WEBSERVER_FALSE = @ENABLE_WEBSERVER_FALSE@
  51513. -ENABLE_WEBSERVER_TRUE = @ENABLE_WEBSERVER_TRUE@
  51514. EXEEXT = @EXEEXT@
  51515. -F77 = @F77@
  51516. -FFLAGS = @FFLAGS@
  51517. +FGREP = @FGREP@
  51518. GREP = @GREP@
  51519. +INSTALL = @INSTALL@
  51520. INSTALL_DATA = @INSTALL_DATA@
  51521. INSTALL_PROGRAM = @INSTALL_PROGRAM@
  51522. INSTALL_SCRIPT = @INSTALL_SCRIPT@
  51523. INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
  51524. +LD = @LD@
  51525. LDFLAGS = @LDFLAGS@
  51526. LIBOBJS = @LIBOBJS@
  51527. LIBS = @LIBS@
  51528. LIBTOOL = @LIBTOOL@
  51529. +LIPO = @LIPO@
  51530. LN_S = @LN_S@
  51531. LTLIBOBJS = @LTLIBOBJS@
  51532. LT_VERSION_IXML = @LT_VERSION_IXML@
  51533. LT_VERSION_THREADUTIL = @LT_VERSION_THREADUTIL@
  51534. LT_VERSION_UPNP = @LT_VERSION_UPNP@
  51535. MAKEINFO = @MAKEINFO@
  51536. +MKDIR_P = @MKDIR_P@
  51537. +NM = @NM@
  51538. +NMEDIT = @NMEDIT@
  51539. +OBJDUMP = @OBJDUMP@
  51540. OBJEXT = @OBJEXT@
  51541. +OTOOL = @OTOOL@
  51542. +OTOOL64 = @OTOOL64@
  51543. PACKAGE = @PACKAGE@
  51544. PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
  51545. PACKAGE_NAME = @PACKAGE_NAME@
  51546. PACKAGE_STRING = @PACKAGE_STRING@
  51547. PACKAGE_TARNAME = @PACKAGE_TARNAME@
  51548. +PACKAGE_URL = @PACKAGE_URL@
  51549. PACKAGE_VERSION = @PACKAGE_VERSION@
  51550. PATH_SEPARATOR = @PATH_SEPARATOR@
  51551. PTHREAD_CC = @PTHREAD_CC@
  51552. PTHREAD_CFLAGS = @PTHREAD_CFLAGS@
  51553. PTHREAD_LIBS = @PTHREAD_LIBS@
  51554. RANLIB = @RANLIB@
  51555. +SED = @SED@
  51556. SET_MAKE = @SET_MAKE@
  51557. SHELL = @SHELL@
  51558. STRIP = @STRIP@
  51559. VERSION = @VERSION@
  51560. -WITH_DOCUMENTATION_FALSE = @WITH_DOCUMENTATION_FALSE@
  51561. -WITH_DOCUMENTATION_TRUE = @WITH_DOCUMENTATION_TRUE@
  51562. +abs_builddir = @abs_builddir@
  51563. +abs_srcdir = @abs_srcdir@
  51564. +abs_top_builddir = @abs_top_builddir@
  51565. +abs_top_srcdir = @abs_top_srcdir@
  51566. ac_ct_CC = @ac_ct_CC@
  51567. -ac_ct_CXX = @ac_ct_CXX@
  51568. -ac_ct_F77 = @ac_ct_F77@
  51569. +ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
  51570. acx_pthread_config = @acx_pthread_config@
  51571. -am__fastdepCC_FALSE = @am__fastdepCC_FALSE@
  51572. -am__fastdepCC_TRUE = @am__fastdepCC_TRUE@
  51573. -am__fastdepCXX_FALSE = @am__fastdepCXX_FALSE@
  51574. -am__fastdepCXX_TRUE = @am__fastdepCXX_TRUE@
  51575. am__include = @am__include@
  51576. am__leading_dot = @am__leading_dot@
  51577. am__quote = @am__quote@
  51578. @@ -155,6 +161,7 @@
  51579. build_cpu = @build_cpu@
  51580. build_os = @build_os@
  51581. build_vendor = @build_vendor@
  51582. +builddir = @builddir@
  51583. datadir = @datadir@
  51584. datarootdir = @datarootdir@
  51585. docdir = @docdir@
  51586. @@ -173,6 +180,7 @@
  51587. libexecdir = @libexecdir@
  51588. localedir = @localedir@
  51589. localstatedir = @localstatedir@
  51590. +lt_ECHO = @lt_ECHO@
  51591. mandir = @mandir@
  51592. mkdir_p = @mkdir_p@
  51593. oldincludedir = @oldincludedir@
  51594. @@ -182,8 +190,12 @@
  51595. psdir = @psdir@
  51596. sbindir = @sbindir@
  51597. sharedstatedir = @sharedstatedir@
  51598. +srcdir = @srcdir@
  51599. sysconfdir = @sysconfdir@
  51600. target_alias = @target_alias@
  51601. +top_build_prefix = @top_build_prefix@
  51602. +top_builddir = @top_builddir@
  51603. +top_srcdir = @top_srcdir@
  51604. EXTRA_DIST = \
  51605. ./UPnP_Programming_Guide.pdf \
  51606. ./IXML_Programming_Guide.pdf \
  51607. @@ -700,14 +712,14 @@
  51608. @for dep in $?; do \
  51609. case '$(am__configure_deps)' in \
  51610. *$$dep*) \
  51611. - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
  51612. - && exit 0; \
  51613. + ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
  51614. + && { if test -f $@; then exit 0; else break; fi; }; \
  51615. exit 1;; \
  51616. esac; \
  51617. done; \
  51618. - echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign docs/dist/Makefile'; \
  51619. - cd $(top_srcdir) && \
  51620. - $(AUTOMAKE) --foreign docs/dist/Makefile
  51621. + echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign docs/dist/Makefile'; \
  51622. + $(am__cd) $(top_srcdir) && \
  51623. + $(AUTOMAKE) --foreign docs/dist/Makefile
  51624. .PRECIOUS: Makefile
  51625. Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
  51626. @case '$?' in \
  51627. @@ -725,35 +737,36 @@
  51628. cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
  51629. $(ACLOCAL_M4): $(am__aclocal_m4_deps)
  51630. cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
  51631. +$(am__aclocal_m4_deps):
  51632. mostlyclean-libtool:
  51633. -rm -f *.lo
  51634. clean-libtool:
  51635. -rm -rf .libs _libs
  51636. -
  51637. -distclean-libtool:
  51638. - -rm -f libtool
  51639. -uninstall-info-am:
  51640. install-nobase_docsDATA: $(nobase_docs_DATA)
  51641. @$(NORMAL_INSTALL)
  51642. - test -z "$(docsdir)" || $(mkdir_p) "$(DESTDIR)$(docsdir)"
  51643. - @$(am__vpath_adj_setup) \
  51644. - list='$(nobase_docs_DATA)'; for p in $$list; do \
  51645. - if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
  51646. - $(am__vpath_adj) \
  51647. - echo " $(nobase_docsDATA_INSTALL) '$$d$$p' '$(DESTDIR)$(docsdir)/$$f'"; \
  51648. - $(nobase_docsDATA_INSTALL) "$$d$$p" "$(DESTDIR)$(docsdir)/$$f"; \
  51649. + test -z "$(docsdir)" || $(MKDIR_P) "$(DESTDIR)$(docsdir)"
  51650. + @list='$(nobase_docs_DATA)'; test -n "$(docsdir)" || list=; \
  51651. + $(am__nobase_list) | while read dir files; do \
  51652. + xfiles=; for file in $$files; do \
  51653. + if test -f "$$file"; then xfiles="$$xfiles $$file"; \
  51654. + else xfiles="$$xfiles $(srcdir)/$$file"; fi; done; \
  51655. + test -z "$$xfiles" || { \
  51656. + test "x$$dir" = x. || { \
  51657. + echo "$(MKDIR_P) '$(DESTDIR)$(docsdir)/$$dir'"; \
  51658. + $(MKDIR_P) "$(DESTDIR)$(docsdir)/$$dir"; }; \
  51659. + echo " $(INSTALL_DATA) $$xfiles '$(DESTDIR)$(docsdir)/$$dir'"; \
  51660. + $(INSTALL_DATA) $$xfiles "$(DESTDIR)$(docsdir)/$$dir" || exit $$?; }; \
  51661. done
  51662. uninstall-nobase_docsDATA:
  51663. @$(NORMAL_UNINSTALL)
  51664. - @$(am__vpath_adj_setup) \
  51665. - list='$(nobase_docs_DATA)'; for p in $$list; do \
  51666. - $(am__vpath_adj) \
  51667. - echo " rm -f '$(DESTDIR)$(docsdir)/$$f'"; \
  51668. - rm -f "$(DESTDIR)$(docsdir)/$$f"; \
  51669. - done
  51670. + @list='$(nobase_docs_DATA)'; test -n "$(docsdir)" || list=; \
  51671. + $(am__nobase_strip_setup); files=`$(am__nobase_strip)`; \
  51672. + test -n "$$files" || exit 0; \
  51673. + echo " ( cd '$(DESTDIR)$(docsdir)' && rm -f" $$files ")"; \
  51674. + cd "$(DESTDIR)$(docsdir)" && rm -f $$files
  51675. tags: TAGS
  51676. TAGS:
  51677. @@ -762,30 +775,32 @@
  51678. distdir: $(DISTFILES)
  51679. - $(mkdir_p) $(distdir)/./html/ixml $(distdir)/./html/upnp
  51680. - @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \
  51681. - topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \
  51682. - list='$(DISTFILES)'; for file in $$list; do \
  51683. - case $$file in \
  51684. - $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \
  51685. - $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \
  51686. - esac; \
  51687. + @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
  51688. + topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
  51689. + list='$(DISTFILES)'; \
  51690. + dist_files=`for file in $$list; do echo $$file; done | \
  51691. + sed -e "s|^$$srcdirstrip/||;t" \
  51692. + -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
  51693. + case $$dist_files in \
  51694. + */*) $(MKDIR_P) `echo "$$dist_files" | \
  51695. + sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
  51696. + sort -u` ;; \
  51697. + esac; \
  51698. + for file in $$dist_files; do \
  51699. if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
  51700. - dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \
  51701. - if test "$$dir" != "$$file" && test "$$dir" != "."; then \
  51702. - dir="/$$dir"; \
  51703. - $(mkdir_p) "$(distdir)$$dir"; \
  51704. - else \
  51705. - dir=''; \
  51706. - fi; \
  51707. if test -d $$d/$$file; then \
  51708. + dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
  51709. + if test -d "$(distdir)/$$file"; then \
  51710. + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
  51711. + fi; \
  51712. if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
  51713. - cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
  51714. + cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
  51715. + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
  51716. fi; \
  51717. - cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
  51718. + cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
  51719. else \
  51720. - test -f $(distdir)/$$file \
  51721. - || cp -p $$d/$$file $(distdir)/$$file \
  51722. + test -f "$(distdir)/$$file" \
  51723. + || cp -p $$d/$$file "$(distdir)/$$file" \
  51724. || exit 1; \
  51725. fi; \
  51726. done
  51727. @@ -794,7 +809,7 @@
  51728. all-am: Makefile $(DATA)
  51729. installdirs:
  51730. for dir in "$(DESTDIR)$(docsdir)"; do \
  51731. - test -z "$$dir" || $(mkdir_p) "$$dir"; \
  51732. + test -z "$$dir" || $(MKDIR_P) "$$dir"; \
  51733. done
  51734. install: install-am
  51735. install-exec: install-exec-am
  51736. @@ -816,6 +831,7 @@
  51737. distclean-generic:
  51738. -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
  51739. + -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
  51740. maintainer-clean-generic:
  51741. @echo "This command is intended for maintainers to use"
  51742. @@ -826,7 +842,7 @@
  51743. distclean: distclean-am
  51744. -rm -f Makefile
  51745. -distclean-am: clean-am distclean-generic distclean-libtool
  51746. +distclean-am: clean-am distclean-generic
  51747. dvi: dvi-am
  51748. @@ -834,18 +850,38 @@
  51749. html: html-am
  51750. +html-am:
  51751. +
  51752. info: info-am
  51753. info-am:
  51754. install-data-am: install-nobase_docsDATA
  51755. +install-dvi: install-dvi-am
  51756. +
  51757. +install-dvi-am:
  51758. +
  51759. install-exec-am:
  51760. +install-html: install-html-am
  51761. +
  51762. +install-html-am:
  51763. +
  51764. install-info: install-info-am
  51765. +install-info-am:
  51766. +
  51767. install-man:
  51768. +install-pdf: install-pdf-am
  51769. +
  51770. +install-pdf-am:
  51771. +
  51772. +install-ps: install-ps-am
  51773. +
  51774. +install-ps-am:
  51775. +
  51776. installcheck-am:
  51777. maintainer-clean: maintainer-clean-am
  51778. @@ -864,18 +900,22 @@
  51779. ps-am:
  51780. -uninstall-am: uninstall-info-am uninstall-nobase_docsDATA
  51781. +uninstall-am: uninstall-nobase_docsDATA
  51782. +
  51783. +.MAKE: install-am install-strip
  51784. .PHONY: all all-am check check-am clean clean-generic clean-libtool \
  51785. distclean distclean-generic distclean-libtool distdir dvi \
  51786. dvi-am html html-am info info-am install install-am \
  51787. - install-data install-data-am install-exec install-exec-am \
  51788. + install-data install-data-am install-dvi install-dvi-am \
  51789. + install-exec install-exec-am install-html install-html-am \
  51790. install-info install-info-am install-man \
  51791. - install-nobase_docsDATA install-strip installcheck \
  51792. - installcheck-am installdirs maintainer-clean \
  51793. - maintainer-clean-generic mostlyclean mostlyclean-generic \
  51794. - mostlyclean-libtool pdf pdf-am ps ps-am uninstall uninstall-am \
  51795. - uninstall-info-am uninstall-nobase_docsDATA
  51796. + install-nobase_docsDATA install-pdf install-pdf-am install-ps \
  51797. + install-ps-am install-strip installcheck installcheck-am \
  51798. + installdirs maintainer-clean maintainer-clean-generic \
  51799. + mostlyclean mostlyclean-generic mostlyclean-libtool pdf pdf-am \
  51800. + ps ps-am uninstall uninstall-am uninstall-nobase_docsDATA
  51801. +
  51802. # Tell versions [3.59,3.63) of GNU make to not export all variables.
  51803. # Otherwise a system limit (for SysV at least) may be exceeded.
  51804. diff -Nur libupnp-1.6.6.orig/ixml/doc/Makefile.in libupnp-1.6.6/ixml/doc/Makefile.in
  51805. --- libupnp-1.6.6.orig/ixml/doc/Makefile.in 2008-04-25 13:47:39.000000000 +0200
  51806. +++ libupnp-1.6.6/ixml/doc/Makefile.in 2010-02-18 22:37:01.976852797 +0100
  51807. @@ -1,8 +1,9 @@
  51808. -# Makefile.in generated by automake 1.9.6 from Makefile.am.
  51809. +# Makefile.in generated by automake 1.11.1 from Makefile.am.
  51810. # @configure_input@
  51811. # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
  51812. -# 2003, 2004, 2005 Free Software Foundation, Inc.
  51813. +# 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
  51814. +# Inc.
  51815. # This Makefile.in is free software; the Free Software Foundation
  51816. # gives unlimited permission to copy and/or distribute it,
  51817. # with or without modifications, as long as this notice is preserved.
  51818. @@ -50,15 +51,12 @@
  51819. # SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  51820. #
  51821. ##########################################################################
  51822. -srcdir = @srcdir@
  51823. -top_srcdir = @top_srcdir@
  51824. VPATH = @srcdir@
  51825. pkgdatadir = $(datadir)/@PACKAGE@
  51826. -pkglibdir = $(libdir)/@PACKAGE@
  51827. pkgincludedir = $(includedir)/@PACKAGE@
  51828. -top_builddir = ../..
  51829. +pkglibdir = $(libdir)/@PACKAGE@
  51830. +pkglibexecdir = $(libexecdir)/@PACKAGE@
  51831. am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
  51832. -INSTALL = @INSTALL@
  51833. install_sh_DATA = $(install_sh) -c -m 644
  51834. install_sh_PROGRAM = $(install_sh) -c
  51835. install_sh_SCRIPT = $(install_sh) -c
  51836. @@ -78,6 +76,9 @@
  51837. am__aclocal_m4_deps = $(top_srcdir)/m4/acx_pthread.m4 \
  51838. $(top_srcdir)/m4/ax_cflags_gcc_option.m4 \
  51839. $(top_srcdir)/m4/ax_cflags_warn_all.m4 \
  51840. + $(top_srcdir)/m4/libtool.m4 $(top_srcdir)/m4/ltoptions.m4 \
  51841. + $(top_srcdir)/m4/ltsugar.m4 $(top_srcdir)/m4/ltversion.m4 \
  51842. + $(top_srcdir)/m4/lt~obsolete.m4 \
  51843. $(top_srcdir)/m4/rt_bool_arg_enable.m4 \
  51844. $(top_srcdir)/m4/type_socklen_t.m4 $(top_srcdir)/configure.ac
  51845. am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
  51846. @@ -86,12 +87,11 @@
  51847. CONFIG_HEADER = $(top_builddir)/autoconfig.h \
  51848. $(top_builddir)/upnp/inc/upnpconfig.h
  51849. CONFIG_CLEAN_FILES =
  51850. +CONFIG_CLEAN_VPATH_FILES =
  51851. SOURCES =
  51852. DIST_SOURCES =
  51853. DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
  51854. ACLOCAL = @ACLOCAL@
  51855. -AMDEP_FALSE = @AMDEP_FALSE@
  51856. -AMDEP_TRUE = @AMDEP_TRUE@
  51857. AMTAR = @AMTAR@
  51858. AR = @AR@
  51859. AUTOCONF = @AUTOCONF@
  51860. @@ -103,74 +103,66 @@
  51861. CFLAGS = @CFLAGS@
  51862. CPP = @CPP@
  51863. CPPFLAGS = @CPPFLAGS@
  51864. -CXX = @CXX@
  51865. -CXXCPP = @CXXCPP@
  51866. -CXXDEPMODE = @CXXDEPMODE@
  51867. -CXXFLAGS = @CXXFLAGS@
  51868. CYGPATH_W = @CYGPATH_W@
  51869. DEFS = @DEFS@
  51870. DEPDIR = @DEPDIR@
  51871. -ECHO = @ECHO@
  51872. +DSYMUTIL = @DSYMUTIL@
  51873. +DUMPBIN = @DUMPBIN@
  51874. ECHO_C = @ECHO_C@
  51875. ECHO_N = @ECHO_N@
  51876. ECHO_T = @ECHO_T@
  51877. EGREP = @EGREP@
  51878. -ENABLE_CLIENT_FALSE = @ENABLE_CLIENT_FALSE@
  51879. -ENABLE_CLIENT_TRUE = @ENABLE_CLIENT_TRUE@
  51880. -ENABLE_DEBUG_FALSE = @ENABLE_DEBUG_FALSE@
  51881. -ENABLE_DEBUG_TRUE = @ENABLE_DEBUG_TRUE@
  51882. -ENABLE_DEVICE_FALSE = @ENABLE_DEVICE_FALSE@
  51883. -ENABLE_DEVICE_TRUE = @ENABLE_DEVICE_TRUE@
  51884. -ENABLE_SAMPLES_FALSE = @ENABLE_SAMPLES_FALSE@
  51885. -ENABLE_SAMPLES_TRUE = @ENABLE_SAMPLES_TRUE@
  51886. -ENABLE_TOOLS_FALSE = @ENABLE_TOOLS_FALSE@
  51887. -ENABLE_TOOLS_TRUE = @ENABLE_TOOLS_TRUE@
  51888. -ENABLE_WEBSERVER_FALSE = @ENABLE_WEBSERVER_FALSE@
  51889. -ENABLE_WEBSERVER_TRUE = @ENABLE_WEBSERVER_TRUE@
  51890. EXEEXT = @EXEEXT@
  51891. -F77 = @F77@
  51892. -FFLAGS = @FFLAGS@
  51893. +FGREP = @FGREP@
  51894. GREP = @GREP@
  51895. +INSTALL = @INSTALL@
  51896. INSTALL_DATA = @INSTALL_DATA@
  51897. INSTALL_PROGRAM = @INSTALL_PROGRAM@
  51898. INSTALL_SCRIPT = @INSTALL_SCRIPT@
  51899. INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
  51900. +LD = @LD@
  51901. LDFLAGS = @LDFLAGS@
  51902. LIBOBJS = @LIBOBJS@
  51903. LIBS = @LIBS@
  51904. LIBTOOL = @LIBTOOL@
  51905. +LIPO = @LIPO@
  51906. LN_S = @LN_S@
  51907. LTLIBOBJS = @LTLIBOBJS@
  51908. LT_VERSION_IXML = @LT_VERSION_IXML@
  51909. LT_VERSION_THREADUTIL = @LT_VERSION_THREADUTIL@
  51910. LT_VERSION_UPNP = @LT_VERSION_UPNP@
  51911. MAKEINFO = @MAKEINFO@
  51912. +MKDIR_P = @MKDIR_P@
  51913. +NM = @NM@
  51914. +NMEDIT = @NMEDIT@
  51915. +OBJDUMP = @OBJDUMP@
  51916. OBJEXT = @OBJEXT@
  51917. +OTOOL = @OTOOL@
  51918. +OTOOL64 = @OTOOL64@
  51919. PACKAGE = @PACKAGE@
  51920. PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
  51921. PACKAGE_NAME = @PACKAGE_NAME@
  51922. PACKAGE_STRING = @PACKAGE_STRING@
  51923. PACKAGE_TARNAME = @PACKAGE_TARNAME@
  51924. +PACKAGE_URL = @PACKAGE_URL@
  51925. PACKAGE_VERSION = @PACKAGE_VERSION@
  51926. PATH_SEPARATOR = @PATH_SEPARATOR@
  51927. PTHREAD_CC = @PTHREAD_CC@
  51928. PTHREAD_CFLAGS = @PTHREAD_CFLAGS@
  51929. PTHREAD_LIBS = @PTHREAD_LIBS@
  51930. RANLIB = @RANLIB@
  51931. +SED = @SED@
  51932. SET_MAKE = @SET_MAKE@
  51933. SHELL = @SHELL@
  51934. STRIP = @STRIP@
  51935. VERSION = @VERSION@
  51936. -WITH_DOCUMENTATION_FALSE = @WITH_DOCUMENTATION_FALSE@
  51937. -WITH_DOCUMENTATION_TRUE = @WITH_DOCUMENTATION_TRUE@
  51938. +abs_builddir = @abs_builddir@
  51939. +abs_srcdir = @abs_srcdir@
  51940. +abs_top_builddir = @abs_top_builddir@
  51941. +abs_top_srcdir = @abs_top_srcdir@
  51942. ac_ct_CC = @ac_ct_CC@
  51943. -ac_ct_CXX = @ac_ct_CXX@
  51944. -ac_ct_F77 = @ac_ct_F77@
  51945. +ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
  51946. acx_pthread_config = @acx_pthread_config@
  51947. -am__fastdepCC_FALSE = @am__fastdepCC_FALSE@
  51948. -am__fastdepCC_TRUE = @am__fastdepCC_TRUE@
  51949. -am__fastdepCXX_FALSE = @am__fastdepCXX_FALSE@
  51950. -am__fastdepCXX_TRUE = @am__fastdepCXX_TRUE@
  51951. am__include = @am__include@
  51952. am__leading_dot = @am__leading_dot@
  51953. am__quote = @am__quote@
  51954. @@ -182,6 +174,7 @@
  51955. build_cpu = @build_cpu@
  51956. build_os = @build_os@
  51957. build_vendor = @build_vendor@
  51958. +builddir = @builddir@
  51959. datadir = @datadir@
  51960. datarootdir = @datarootdir@
  51961. docdir = @docdir@
  51962. @@ -200,6 +193,7 @@
  51963. libexecdir = @libexecdir@
  51964. localedir = @localedir@
  51965. localstatedir = @localstatedir@
  51966. +lt_ECHO = @lt_ECHO@
  51967. mandir = @mandir@
  51968. mkdir_p = @mkdir_p@
  51969. oldincludedir = @oldincludedir@
  51970. @@ -209,8 +203,12 @@
  51971. psdir = @psdir@
  51972. sbindir = @sbindir@
  51973. sharedstatedir = @sharedstatedir@
  51974. +srcdir = @srcdir@
  51975. sysconfdir = @sysconfdir@
  51976. target_alias = @target_alias@
  51977. +top_build_prefix = @top_build_prefix@
  51978. +top_builddir = @top_builddir@
  51979. +top_srcdir = @top_srcdir@
  51980. EXTRA_DIST = docxx.sty intro.dxx ixml.dxx license.dxx
  51981. all: all-am
  51982. @@ -219,14 +217,14 @@
  51983. @for dep in $?; do \
  51984. case '$(am__configure_deps)' in \
  51985. *$$dep*) \
  51986. - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
  51987. - && exit 0; \
  51988. + ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
  51989. + && { if test -f $@; then exit 0; else break; fi; }; \
  51990. exit 1;; \
  51991. esac; \
  51992. done; \
  51993. - echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign ixml/doc/Makefile'; \
  51994. - cd $(top_srcdir) && \
  51995. - $(AUTOMAKE) --foreign ixml/doc/Makefile
  51996. + echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign ixml/doc/Makefile'; \
  51997. + $(am__cd) $(top_srcdir) && \
  51998. + $(AUTOMAKE) --foreign ixml/doc/Makefile
  51999. .PRECIOUS: Makefile
  52000. Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
  52001. @case '$?' in \
  52002. @@ -244,16 +242,13 @@
  52003. cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
  52004. $(ACLOCAL_M4): $(am__aclocal_m4_deps)
  52005. cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
  52006. +$(am__aclocal_m4_deps):
  52007. mostlyclean-libtool:
  52008. -rm -f *.lo
  52009. clean-libtool:
  52010. -rm -rf .libs _libs
  52011. -
  52012. -distclean-libtool:
  52013. - -rm -f libtool
  52014. -uninstall-info-am:
  52015. tags: TAGS
  52016. TAGS:
  52017. @@ -262,29 +257,32 @@
  52018. distdir: $(DISTFILES)
  52019. - @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \
  52020. - topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \
  52021. - list='$(DISTFILES)'; for file in $$list; do \
  52022. - case $$file in \
  52023. - $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \
  52024. - $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \
  52025. - esac; \
  52026. + @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
  52027. + topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
  52028. + list='$(DISTFILES)'; \
  52029. + dist_files=`for file in $$list; do echo $$file; done | \
  52030. + sed -e "s|^$$srcdirstrip/||;t" \
  52031. + -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
  52032. + case $$dist_files in \
  52033. + */*) $(MKDIR_P) `echo "$$dist_files" | \
  52034. + sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
  52035. + sort -u` ;; \
  52036. + esac; \
  52037. + for file in $$dist_files; do \
  52038. if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
  52039. - dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \
  52040. - if test "$$dir" != "$$file" && test "$$dir" != "."; then \
  52041. - dir="/$$dir"; \
  52042. - $(mkdir_p) "$(distdir)$$dir"; \
  52043. - else \
  52044. - dir=''; \
  52045. - fi; \
  52046. if test -d $$d/$$file; then \
  52047. + dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
  52048. + if test -d "$(distdir)/$$file"; then \
  52049. + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
  52050. + fi; \
  52051. if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
  52052. - cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
  52053. + cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
  52054. + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
  52055. fi; \
  52056. - cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
  52057. + cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
  52058. else \
  52059. - test -f $(distdir)/$$file \
  52060. - || cp -p $$d/$$file $(distdir)/$$file \
  52061. + test -f "$(distdir)/$$file" \
  52062. + || cp -p $$d/$$file "$(distdir)/$$file" \
  52063. || exit 1; \
  52064. fi; \
  52065. done
  52066. @@ -312,6 +310,7 @@
  52067. distclean-generic:
  52068. -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
  52069. + -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
  52070. maintainer-clean-generic:
  52071. @echo "This command is intended for maintainers to use"
  52072. @@ -322,7 +321,7 @@
  52073. distclean: distclean-am
  52074. -rm -f Makefile
  52075. -distclean-am: clean-am distclean-generic distclean-libtool
  52076. +distclean-am: clean-am distclean-generic
  52077. dvi: dvi-am
  52078. @@ -338,12 +337,30 @@
  52079. install-data-am:
  52080. +install-dvi: install-dvi-am
  52081. +
  52082. +install-dvi-am:
  52083. +
  52084. install-exec-am:
  52085. +install-html: install-html-am
  52086. +
  52087. +install-html-am:
  52088. +
  52089. install-info: install-info-am
  52090. +install-info-am:
  52091. +
  52092. install-man:
  52093. +install-pdf: install-pdf-am
  52094. +
  52095. +install-pdf-am:
  52096. +
  52097. +install-ps: install-ps-am
  52098. +
  52099. +install-ps-am:
  52100. +
  52101. installcheck-am:
  52102. maintainer-clean: maintainer-clean-am
  52103. @@ -362,17 +379,21 @@
  52104. ps-am:
  52105. -uninstall-am: uninstall-info-am
  52106. +uninstall-am:
  52107. +
  52108. +.MAKE: install-am install-strip
  52109. .PHONY: all all-am check check-am clean clean-generic clean-libtool \
  52110. clean-local distclean distclean-generic distclean-libtool \
  52111. distdir dvi dvi-am html html-am html-local info info-am \
  52112. - install install-am install-data install-data-am install-exec \
  52113. - install-exec-am install-info install-info-am install-man \
  52114. + install install-am install-data install-data-am install-dvi \
  52115. + install-dvi-am install-exec install-exec-am install-html \
  52116. + install-html-am install-info install-info-am install-man \
  52117. + install-pdf install-pdf-am install-ps install-ps-am \
  52118. install-strip installcheck installcheck-am installdirs \
  52119. maintainer-clean maintainer-clean-generic mostlyclean \
  52120. mostlyclean-generic mostlyclean-libtool pdf pdf-am pdf-local \
  52121. - ps ps-am uninstall uninstall-am uninstall-info-am
  52122. + ps ps-am uninstall uninstall-am
  52123. html-local:
  52124. @@ -388,6 +409,7 @@
  52125. clean-local:
  52126. -rm -rf html
  52127. -rm -f ixml.tex pdflatex.log ixml.log ixml.aux
  52128. +
  52129. # Tell versions [3.59,3.63) of GNU make to not export all variables.
  52130. # Otherwise a system limit (for SysV at least) may be exceeded.
  52131. .NOEXPORT:
  52132. diff -Nur libupnp-1.6.6.orig/ixml/Makefile.in libupnp-1.6.6/ixml/Makefile.in
  52133. --- libupnp-1.6.6.orig/ixml/Makefile.in 2008-04-25 13:47:38.000000000 +0200
  52134. +++ libupnp-1.6.6/ixml/Makefile.in 2010-02-18 22:37:01.868852441 +0100
  52135. @@ -1,8 +1,9 @@
  52136. -# Makefile.in generated by automake 1.9.6 from Makefile.am.
  52137. +# Makefile.in generated by automake 1.11.1 from Makefile.am.
  52138. # @configure_input@
  52139. # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
  52140. -# 2003, 2004, 2005 Free Software Foundation, Inc.
  52141. +# 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
  52142. +# Inc.
  52143. # This Makefile.in is free software; the Free Software Foundation
  52144. # gives unlimited permission to copy and/or distribute it,
  52145. # with or without modifications, as long as this notice is preserved.
  52146. @@ -22,15 +23,12 @@
  52147. #
  52148. -srcdir = @srcdir@
  52149. -top_srcdir = @top_srcdir@
  52150. VPATH = @srcdir@
  52151. pkgdatadir = $(datadir)/@PACKAGE@
  52152. -pkglibdir = $(libdir)/@PACKAGE@
  52153. pkgincludedir = $(includedir)/@PACKAGE@
  52154. -top_builddir = ..
  52155. +pkglibdir = $(libdir)/@PACKAGE@
  52156. +pkglibexecdir = $(libexecdir)/@PACKAGE@
  52157. am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
  52158. -INSTALL = @INSTALL@
  52159. install_sh_DATA = $(install_sh) -c -m 644
  52160. install_sh_PROGRAM = $(install_sh) -c
  52161. install_sh_SCRIPT = $(install_sh) -c
  52162. @@ -54,6 +52,9 @@
  52163. am__aclocal_m4_deps = $(top_srcdir)/m4/acx_pthread.m4 \
  52164. $(top_srcdir)/m4/ax_cflags_gcc_option.m4 \
  52165. $(top_srcdir)/m4/ax_cflags_warn_all.m4 \
  52166. + $(top_srcdir)/m4/libtool.m4 $(top_srcdir)/m4/ltoptions.m4 \
  52167. + $(top_srcdir)/m4/ltsugar.m4 $(top_srcdir)/m4/ltversion.m4 \
  52168. + $(top_srcdir)/m4/lt~obsolete.m4 \
  52169. $(top_srcdir)/m4/rt_bool_arg_enable.m4 \
  52170. $(top_srcdir)/m4/type_socklen_t.m4 $(top_srcdir)/configure.ac
  52171. am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
  52172. @@ -62,14 +63,29 @@
  52173. CONFIG_HEADER = $(top_builddir)/autoconfig.h \
  52174. $(top_builddir)/upnp/inc/upnpconfig.h
  52175. CONFIG_CLEAN_FILES =
  52176. +CONFIG_CLEAN_VPATH_FILES =
  52177. am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
  52178. am__vpath_adj = case $$p in \
  52179. $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
  52180. *) f=$$p;; \
  52181. esac;
  52182. -am__strip_dir = `echo $$p | sed -e 's|^.*/||'`;
  52183. +am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`;
  52184. +am__install_max = 40
  52185. +am__nobase_strip_setup = \
  52186. + srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'`
  52187. +am__nobase_strip = \
  52188. + for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||"
  52189. +am__nobase_list = $(am__nobase_strip_setup); \
  52190. + for p in $$list; do echo "$$p $$p"; done | \
  52191. + sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \
  52192. + $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \
  52193. + if (++n[$$2] == $(am__install_max)) \
  52194. + { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \
  52195. + END { for (dir in files) print dir, files[dir] }'
  52196. +am__base_list = \
  52197. + sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \
  52198. + sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g'
  52199. am__installdirs = "$(DESTDIR)$(libdir)" "$(DESTDIR)$(upnpincludedir)"
  52200. -libLTLIBRARIES_INSTALL = $(INSTALL)
  52201. LTLIBRARIES = $(lib_LTLIBRARIES)
  52202. libixml_la_LIBADD =
  52203. am__dirstamp = $(am__leading_dot)dirstamp
  52204. @@ -77,38 +93,73 @@
  52205. src/ixmlmembuf.lo src/nodeList.lo src/element.lo src/attr.lo \
  52206. src/document.lo src/namedNodeMap.lo
  52207. libixml_la_OBJECTS = $(am_libixml_la_OBJECTS)
  52208. +libixml_la_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) \
  52209. + $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
  52210. + $(libixml_la_LDFLAGS) $(LDFLAGS) -o $@
  52211. am_test_document_OBJECTS = test/test_document.$(OBJEXT)
  52212. test_document_OBJECTS = $(am_test_document_OBJECTS)
  52213. test_document_LDADD = $(LDADD)
  52214. test_document_DEPENDENCIES = libixml.la
  52215. -DEFAULT_INCLUDES = -I. -I$(srcdir) -I$(top_builddir) -I$(top_builddir)/upnp/inc
  52216. +DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir) -I$(top_builddir)/upnp/inc
  52217. depcomp = $(SHELL) $(top_srcdir)/build-aux/depcomp
  52218. am__depfiles_maybe = depfiles
  52219. +am__mv = mv -f
  52220. COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
  52221. $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
  52222. -LTCOMPILE = $(LIBTOOL) --tag=CC --mode=compile $(CC) $(DEFS) \
  52223. - $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \
  52224. - $(AM_CFLAGS) $(CFLAGS)
  52225. +LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
  52226. + --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
  52227. + $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
  52228. CCLD = $(CC)
  52229. -LINK = $(LIBTOOL) --tag=CC --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
  52230. - $(AM_LDFLAGS) $(LDFLAGS) -o $@
  52231. +LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
  52232. + --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \
  52233. + $(LDFLAGS) -o $@
  52234. SOURCES = $(libixml_la_SOURCES) $(test_document_SOURCES)
  52235. DIST_SOURCES = $(libixml_la_SOURCES) $(test_document_SOURCES)
  52236. RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \
  52237. html-recursive info-recursive install-data-recursive \
  52238. - install-exec-recursive install-info-recursive \
  52239. - install-recursive installcheck-recursive installdirs-recursive \
  52240. - pdf-recursive ps-recursive uninstall-info-recursive \
  52241. - uninstall-recursive
  52242. -upnpincludeHEADERS_INSTALL = $(INSTALL_HEADER)
  52243. + install-dvi-recursive install-exec-recursive \
  52244. + install-html-recursive install-info-recursive \
  52245. + install-pdf-recursive install-ps-recursive install-recursive \
  52246. + installcheck-recursive installdirs-recursive pdf-recursive \
  52247. + ps-recursive uninstall-recursive
  52248. HEADERS = $(upnpinclude_HEADERS)
  52249. +RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \
  52250. + distclean-recursive maintainer-clean-recursive
  52251. +AM_RECURSIVE_TARGETS = $(RECURSIVE_TARGETS:-recursive=) \
  52252. + $(RECURSIVE_CLEAN_TARGETS:-recursive=) tags TAGS ctags CTAGS \
  52253. + distdir
  52254. ETAGS = etags
  52255. CTAGS = ctags
  52256. +am__tty_colors = \
  52257. +red=; grn=; lgn=; blu=; std=
  52258. DIST_SUBDIRS = $(SUBDIRS)
  52259. DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
  52260. +am__relativize = \
  52261. + dir0=`pwd`; \
  52262. + sed_first='s,^\([^/]*\)/.*$$,\1,'; \
  52263. + sed_rest='s,^[^/]*/*,,'; \
  52264. + sed_last='s,^.*/\([^/]*\)$$,\1,'; \
  52265. + sed_butlast='s,/*[^/]*$$,,'; \
  52266. + while test -n "$$dir1"; do \
  52267. + first=`echo "$$dir1" | sed -e "$$sed_first"`; \
  52268. + if test "$$first" != "."; then \
  52269. + if test "$$first" = ".."; then \
  52270. + dir2=`echo "$$dir0" | sed -e "$$sed_last"`/"$$dir2"; \
  52271. + dir0=`echo "$$dir0" | sed -e "$$sed_butlast"`; \
  52272. + else \
  52273. + first2=`echo "$$dir2" | sed -e "$$sed_first"`; \
  52274. + if test "$$first2" = "$$first"; then \
  52275. + dir2=`echo "$$dir2" | sed -e "$$sed_rest"`; \
  52276. + else \
  52277. + dir2="../$$dir2"; \
  52278. + fi; \
  52279. + dir0="$$dir0"/"$$first"; \
  52280. + fi; \
  52281. + fi; \
  52282. + dir1=`echo "$$dir1" | sed -e "$$sed_rest"`; \
  52283. + done; \
  52284. + reldir="$$dir2"
  52285. ACLOCAL = @ACLOCAL@
  52286. -AMDEP_FALSE = @AMDEP_FALSE@
  52287. -AMDEP_TRUE = @AMDEP_TRUE@
  52288. AMTAR = @AMTAR@
  52289. AR = @AR@
  52290. AUTOCONF = @AUTOCONF@
  52291. @@ -120,74 +171,66 @@
  52292. CFLAGS = @CFLAGS@
  52293. CPP = @CPP@
  52294. CPPFLAGS = @CPPFLAGS@
  52295. -CXX = @CXX@
  52296. -CXXCPP = @CXXCPP@
  52297. -CXXDEPMODE = @CXXDEPMODE@
  52298. -CXXFLAGS = @CXXFLAGS@
  52299. CYGPATH_W = @CYGPATH_W@
  52300. DEFS = @DEFS@
  52301. DEPDIR = @DEPDIR@
  52302. -ECHO = @ECHO@
  52303. +DSYMUTIL = @DSYMUTIL@
  52304. +DUMPBIN = @DUMPBIN@
  52305. ECHO_C = @ECHO_C@
  52306. ECHO_N = @ECHO_N@
  52307. ECHO_T = @ECHO_T@
  52308. EGREP = @EGREP@
  52309. -ENABLE_CLIENT_FALSE = @ENABLE_CLIENT_FALSE@
  52310. -ENABLE_CLIENT_TRUE = @ENABLE_CLIENT_TRUE@
  52311. -ENABLE_DEBUG_FALSE = @ENABLE_DEBUG_FALSE@
  52312. -ENABLE_DEBUG_TRUE = @ENABLE_DEBUG_TRUE@
  52313. -ENABLE_DEVICE_FALSE = @ENABLE_DEVICE_FALSE@
  52314. -ENABLE_DEVICE_TRUE = @ENABLE_DEVICE_TRUE@
  52315. -ENABLE_SAMPLES_FALSE = @ENABLE_SAMPLES_FALSE@
  52316. -ENABLE_SAMPLES_TRUE = @ENABLE_SAMPLES_TRUE@
  52317. -ENABLE_TOOLS_FALSE = @ENABLE_TOOLS_FALSE@
  52318. -ENABLE_TOOLS_TRUE = @ENABLE_TOOLS_TRUE@
  52319. -ENABLE_WEBSERVER_FALSE = @ENABLE_WEBSERVER_FALSE@
  52320. -ENABLE_WEBSERVER_TRUE = @ENABLE_WEBSERVER_TRUE@
  52321. EXEEXT = @EXEEXT@
  52322. -F77 = @F77@
  52323. -FFLAGS = @FFLAGS@
  52324. +FGREP = @FGREP@
  52325. GREP = @GREP@
  52326. +INSTALL = @INSTALL@
  52327. INSTALL_DATA = @INSTALL_DATA@
  52328. INSTALL_PROGRAM = @INSTALL_PROGRAM@
  52329. INSTALL_SCRIPT = @INSTALL_SCRIPT@
  52330. INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
  52331. +LD = @LD@
  52332. LDFLAGS = @LDFLAGS@
  52333. LIBOBJS = @LIBOBJS@
  52334. LIBS = @LIBS@
  52335. LIBTOOL = @LIBTOOL@
  52336. +LIPO = @LIPO@
  52337. LN_S = @LN_S@
  52338. LTLIBOBJS = @LTLIBOBJS@
  52339. LT_VERSION_IXML = @LT_VERSION_IXML@
  52340. LT_VERSION_THREADUTIL = @LT_VERSION_THREADUTIL@
  52341. LT_VERSION_UPNP = @LT_VERSION_UPNP@
  52342. MAKEINFO = @MAKEINFO@
  52343. +MKDIR_P = @MKDIR_P@
  52344. +NM = @NM@
  52345. +NMEDIT = @NMEDIT@
  52346. +OBJDUMP = @OBJDUMP@
  52347. OBJEXT = @OBJEXT@
  52348. +OTOOL = @OTOOL@
  52349. +OTOOL64 = @OTOOL64@
  52350. PACKAGE = @PACKAGE@
  52351. PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
  52352. PACKAGE_NAME = @PACKAGE_NAME@
  52353. PACKAGE_STRING = @PACKAGE_STRING@
  52354. PACKAGE_TARNAME = @PACKAGE_TARNAME@
  52355. +PACKAGE_URL = @PACKAGE_URL@
  52356. PACKAGE_VERSION = @PACKAGE_VERSION@
  52357. PATH_SEPARATOR = @PATH_SEPARATOR@
  52358. PTHREAD_CC = @PTHREAD_CC@
  52359. PTHREAD_CFLAGS = @PTHREAD_CFLAGS@
  52360. PTHREAD_LIBS = @PTHREAD_LIBS@
  52361. RANLIB = @RANLIB@
  52362. +SED = @SED@
  52363. SET_MAKE = @SET_MAKE@
  52364. SHELL = @SHELL@
  52365. STRIP = @STRIP@
  52366. VERSION = @VERSION@
  52367. -WITH_DOCUMENTATION_FALSE = @WITH_DOCUMENTATION_FALSE@
  52368. -WITH_DOCUMENTATION_TRUE = @WITH_DOCUMENTATION_TRUE@
  52369. +abs_builddir = @abs_builddir@
  52370. +abs_srcdir = @abs_srcdir@
  52371. +abs_top_builddir = @abs_top_builddir@
  52372. +abs_top_srcdir = @abs_top_srcdir@
  52373. ac_ct_CC = @ac_ct_CC@
  52374. -ac_ct_CXX = @ac_ct_CXX@
  52375. -ac_ct_F77 = @ac_ct_F77@
  52376. +ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
  52377. acx_pthread_config = @acx_pthread_config@
  52378. -am__fastdepCC_FALSE = @am__fastdepCC_FALSE@
  52379. -am__fastdepCC_TRUE = @am__fastdepCC_TRUE@
  52380. -am__fastdepCXX_FALSE = @am__fastdepCXX_FALSE@
  52381. -am__fastdepCXX_TRUE = @am__fastdepCXX_TRUE@
  52382. am__include = @am__include@
  52383. am__leading_dot = @am__leading_dot@
  52384. am__quote = @am__quote@
  52385. @@ -199,6 +242,7 @@
  52386. build_cpu = @build_cpu@
  52387. build_os = @build_os@
  52388. build_vendor = @build_vendor@
  52389. +builddir = @builddir@
  52390. datadir = @datadir@
  52391. datarootdir = @datarootdir@
  52392. docdir = @docdir@
  52393. @@ -217,6 +261,7 @@
  52394. libexecdir = @libexecdir@
  52395. localedir = @localedir@
  52396. localstatedir = @localstatedir@
  52397. +lt_ECHO = @lt_ECHO@
  52398. mandir = @mandir@
  52399. mkdir_p = @mkdir_p@
  52400. oldincludedir = @oldincludedir@
  52401. @@ -226,8 +271,12 @@
  52402. psdir = @psdir@
  52403. sbindir = @sbindir@
  52404. sharedstatedir = @sharedstatedir@
  52405. +srcdir = @srcdir@
  52406. sysconfdir = @sysconfdir@
  52407. target_alias = @target_alias@
  52408. +top_build_prefix = @top_build_prefix@
  52409. +top_builddir = @top_builddir@
  52410. +top_srcdir = @top_srcdir@
  52411. SUBDIRS = doc
  52412. AM_CPPFLAGS = -I$(srcdir)/inc -I$(srcdir)/src/inc $(am__append_1) \
  52413. $(am__append_2)
  52414. @@ -257,14 +306,14 @@
  52415. @for dep in $?; do \
  52416. case '$(am__configure_deps)' in \
  52417. *$$dep*) \
  52418. - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
  52419. - && exit 0; \
  52420. + ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
  52421. + && { if test -f $@; then exit 0; else break; fi; }; \
  52422. exit 1;; \
  52423. esac; \
  52424. done; \
  52425. - echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign ixml/Makefile'; \
  52426. - cd $(top_srcdir) && \
  52427. - $(AUTOMAKE) --foreign ixml/Makefile
  52428. + echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign ixml/Makefile'; \
  52429. + $(am__cd) $(top_srcdir) && \
  52430. + $(AUTOMAKE) --foreign ixml/Makefile
  52431. .PRECIOUS: Makefile
  52432. Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
  52433. @case '$?' in \
  52434. @@ -282,23 +331,28 @@
  52435. cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
  52436. $(ACLOCAL_M4): $(am__aclocal_m4_deps)
  52437. cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
  52438. +$(am__aclocal_m4_deps):
  52439. install-libLTLIBRARIES: $(lib_LTLIBRARIES)
  52440. @$(NORMAL_INSTALL)
  52441. - test -z "$(libdir)" || $(mkdir_p) "$(DESTDIR)$(libdir)"
  52442. - @list='$(lib_LTLIBRARIES)'; for p in $$list; do \
  52443. + test -z "$(libdir)" || $(MKDIR_P) "$(DESTDIR)$(libdir)"
  52444. + @list='$(lib_LTLIBRARIES)'; test -n "$(libdir)" || list=; \
  52445. + list2=; for p in $$list; do \
  52446. if test -f $$p; then \
  52447. - f=$(am__strip_dir) \
  52448. - echo " $(LIBTOOL) --mode=install $(libLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) '$$p' '$(DESTDIR)$(libdir)/$$f'"; \
  52449. - $(LIBTOOL) --mode=install $(libLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) "$$p" "$(DESTDIR)$(libdir)/$$f"; \
  52450. + list2="$$list2 $$p"; \
  52451. else :; fi; \
  52452. - done
  52453. + done; \
  52454. + test -z "$$list2" || { \
  52455. + echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 '$(DESTDIR)$(libdir)'"; \
  52456. + $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 "$(DESTDIR)$(libdir)"; \
  52457. + }
  52458. uninstall-libLTLIBRARIES:
  52459. @$(NORMAL_UNINSTALL)
  52460. - @set -x; list='$(lib_LTLIBRARIES)'; for p in $$list; do \
  52461. - p=$(am__strip_dir) \
  52462. - echo " $(LIBTOOL) --mode=uninstall rm -f '$(DESTDIR)$(libdir)/$$p'"; \
  52463. - $(LIBTOOL) --mode=uninstall rm -f "$(DESTDIR)$(libdir)/$$p"; \
  52464. + @list='$(lib_LTLIBRARIES)'; test -n "$(libdir)" || list=; \
  52465. + for p in $$list; do \
  52466. + $(am__strip_dir) \
  52467. + echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(libdir)/$$f'"; \
  52468. + $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(libdir)/$$f"; \
  52469. done
  52470. clean-libLTLIBRARIES:
  52471. @@ -310,10 +364,10 @@
  52472. rm -f "$${dir}/so_locations"; \
  52473. done
  52474. src/$(am__dirstamp):
  52475. - @$(mkdir_p) src
  52476. + @$(MKDIR_P) src
  52477. @: > src/$(am__dirstamp)
  52478. src/$(DEPDIR)/$(am__dirstamp):
  52479. - @$(mkdir_p) src/$(DEPDIR)
  52480. + @$(MKDIR_P) src/$(DEPDIR)
  52481. @: > src/$(DEPDIR)/$(am__dirstamp)
  52482. src/ixml.lo: src/$(am__dirstamp) src/$(DEPDIR)/$(am__dirstamp)
  52483. src/node.lo: src/$(am__dirstamp) src/$(DEPDIR)/$(am__dirstamp)
  52484. @@ -325,25 +379,27 @@
  52485. src/document.lo: src/$(am__dirstamp) src/$(DEPDIR)/$(am__dirstamp)
  52486. src/namedNodeMap.lo: src/$(am__dirstamp) src/$(DEPDIR)/$(am__dirstamp)
  52487. libixml.la: $(libixml_la_OBJECTS) $(libixml_la_DEPENDENCIES)
  52488. - $(LINK) -rpath $(libdir) $(libixml_la_LDFLAGS) $(libixml_la_OBJECTS) $(libixml_la_LIBADD) $(LIBS)
  52489. + $(libixml_la_LINK) -rpath $(libdir) $(libixml_la_OBJECTS) $(libixml_la_LIBADD) $(LIBS)
  52490. clean-checkPROGRAMS:
  52491. - @list='$(check_PROGRAMS)'; for p in $$list; do \
  52492. - f=`echo $$p|sed 's/$(EXEEXT)$$//'`; \
  52493. - echo " rm -f $$p $$f"; \
  52494. - rm -f $$p $$f ; \
  52495. - done
  52496. + @list='$(check_PROGRAMS)'; test -n "$$list" || exit 0; \
  52497. + echo " rm -f" $$list; \
  52498. + rm -f $$list || exit $$?; \
  52499. + test -n "$(EXEEXT)" || exit 0; \
  52500. + list=`for p in $$list; do echo "$$p"; done | sed 's/$(EXEEXT)$$//'`; \
  52501. + echo " rm -f" $$list; \
  52502. + rm -f $$list
  52503. test/$(am__dirstamp):
  52504. - @$(mkdir_p) test
  52505. + @$(MKDIR_P) test
  52506. @: > test/$(am__dirstamp)
  52507. test/$(DEPDIR)/$(am__dirstamp):
  52508. - @$(mkdir_p) test/$(DEPDIR)
  52509. + @$(MKDIR_P) test/$(DEPDIR)
  52510. @: > test/$(DEPDIR)/$(am__dirstamp)
  52511. test/test_document.$(OBJEXT): test/$(am__dirstamp) \
  52512. test/$(DEPDIR)/$(am__dirstamp)
  52513. test_document$(EXEEXT): $(test_document_OBJECTS) $(test_document_DEPENDENCIES)
  52514. @rm -f test_document$(EXEEXT)
  52515. - $(LINK) $(test_document_LDFLAGS) $(test_document_OBJECTS) $(test_document_LDADD) $(LIBS)
  52516. + $(LINK) $(test_document_OBJECTS) $(test_document_LDADD) $(LIBS)
  52517. mostlyclean-compile:
  52518. -rm -f *.$(OBJEXT)
  52519. @@ -382,25 +438,25 @@
  52520. @AMDEP_TRUE@@am__include@ @am__quote@test/$(DEPDIR)/test_document.Po@am__quote@
  52521. .c.o:
  52522. -@am__fastdepCC_TRUE@ depbase=`echo $@ | sed 's|[^/]*$$|$(DEPDIR)/&|;s|\.o$$||'`; \
  52523. -@am__fastdepCC_TRUE@ if $(COMPILE) -MT $@ -MD -MP -MF "$$depbase.Tpo" -c -o $@ $<; \
  52524. -@am__fastdepCC_TRUE@ then mv -f "$$depbase.Tpo" "$$depbase.Po"; else rm -f "$$depbase.Tpo"; exit 1; fi
  52525. +@am__fastdepCC_TRUE@ depbase=`echo $@ | sed 's|[^/]*$$|$(DEPDIR)/&|;s|\.o$$||'`;\
  52526. +@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $$depbase.Tpo -c -o $@ $< &&\
  52527. +@am__fastdepCC_TRUE@ $(am__mv) $$depbase.Tpo $$depbase.Po
  52528. @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
  52529. @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
  52530. @am__fastdepCC_FALSE@ $(COMPILE) -c -o $@ $<
  52531. .c.obj:
  52532. -@am__fastdepCC_TRUE@ depbase=`echo $@ | sed 's|[^/]*$$|$(DEPDIR)/&|;s|\.obj$$||'`; \
  52533. -@am__fastdepCC_TRUE@ if $(COMPILE) -MT $@ -MD -MP -MF "$$depbase.Tpo" -c -o $@ `$(CYGPATH_W) '$<'`; \
  52534. -@am__fastdepCC_TRUE@ then mv -f "$$depbase.Tpo" "$$depbase.Po"; else rm -f "$$depbase.Tpo"; exit 1; fi
  52535. +@am__fastdepCC_TRUE@ depbase=`echo $@ | sed 's|[^/]*$$|$(DEPDIR)/&|;s|\.obj$$||'`;\
  52536. +@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $$depbase.Tpo -c -o $@ `$(CYGPATH_W) '$<'` &&\
  52537. +@am__fastdepCC_TRUE@ $(am__mv) $$depbase.Tpo $$depbase.Po
  52538. @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
  52539. @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
  52540. @am__fastdepCC_FALSE@ $(COMPILE) -c -o $@ `$(CYGPATH_W) '$<'`
  52541. .c.lo:
  52542. -@am__fastdepCC_TRUE@ depbase=`echo $@ | sed 's|[^/]*$$|$(DEPDIR)/&|;s|\.lo$$||'`; \
  52543. -@am__fastdepCC_TRUE@ if $(LTCOMPILE) -MT $@ -MD -MP -MF "$$depbase.Tpo" -c -o $@ $<; \
  52544. -@am__fastdepCC_TRUE@ then mv -f "$$depbase.Tpo" "$$depbase.Plo"; else rm -f "$$depbase.Tpo"; exit 1; fi
  52545. +@am__fastdepCC_TRUE@ depbase=`echo $@ | sed 's|[^/]*$$|$(DEPDIR)/&|;s|\.lo$$||'`;\
  52546. +@am__fastdepCC_TRUE@ $(LTCOMPILE) -MT $@ -MD -MP -MF $$depbase.Tpo -c -o $@ $< &&\
  52547. +@am__fastdepCC_TRUE@ $(am__mv) $$depbase.Tpo $$depbase.Plo
  52548. @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
  52549. @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
  52550. @am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ $<
  52551. @@ -411,27 +467,26 @@
  52552. clean-libtool:
  52553. -rm -rf .libs _libs
  52554. -rm -rf src/.libs src/_libs
  52555. -
  52556. -distclean-libtool:
  52557. - -rm -f libtool
  52558. -uninstall-info-am:
  52559. install-upnpincludeHEADERS: $(upnpinclude_HEADERS)
  52560. @$(NORMAL_INSTALL)
  52561. - test -z "$(upnpincludedir)" || $(mkdir_p) "$(DESTDIR)$(upnpincludedir)"
  52562. - @list='$(upnpinclude_HEADERS)'; for p in $$list; do \
  52563. + test -z "$(upnpincludedir)" || $(MKDIR_P) "$(DESTDIR)$(upnpincludedir)"
  52564. + @list='$(upnpinclude_HEADERS)'; test -n "$(upnpincludedir)" || list=; \
  52565. + for p in $$list; do \
  52566. if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
  52567. - f=$(am__strip_dir) \
  52568. - echo " $(upnpincludeHEADERS_INSTALL) '$$d$$p' '$(DESTDIR)$(upnpincludedir)/$$f'"; \
  52569. - $(upnpincludeHEADERS_INSTALL) "$$d$$p" "$(DESTDIR)$(upnpincludedir)/$$f"; \
  52570. + echo "$$d$$p"; \
  52571. + done | $(am__base_list) | \
  52572. + while read files; do \
  52573. + echo " $(INSTALL_HEADER) $$files '$(DESTDIR)$(upnpincludedir)'"; \
  52574. + $(INSTALL_HEADER) $$files "$(DESTDIR)$(upnpincludedir)" || exit $$?; \
  52575. done
  52576. uninstall-upnpincludeHEADERS:
  52577. @$(NORMAL_UNINSTALL)
  52578. - @list='$(upnpinclude_HEADERS)'; for p in $$list; do \
  52579. - f=$(am__strip_dir) \
  52580. - echo " rm -f '$(DESTDIR)$(upnpincludedir)/$$f'"; \
  52581. - rm -f "$(DESTDIR)$(upnpincludedir)/$$f"; \
  52582. - done
  52583. + @list='$(upnpinclude_HEADERS)'; test -n "$(upnpincludedir)" || list=; \
  52584. + files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \
  52585. + test -n "$$files" || exit 0; \
  52586. + echo " ( cd '$(DESTDIR)$(upnpincludedir)' && rm -f" $$files ")"; \
  52587. + cd "$(DESTDIR)$(upnpincludedir)" && rm -f $$files
  52588. # This directory's subdirectories are mostly independent; you can cd
  52589. # into them and run `make' without going through this Makefile.
  52590. @@ -440,7 +495,7 @@
  52591. # (which will cause the Makefiles to be regenerated when you run `make');
  52592. # (2) otherwise, pass the desired values on the `make' command line.
  52593. $(RECURSIVE_TARGETS):
  52594. - @failcom='exit 1'; \
  52595. + @fail= failcom='exit 1'; \
  52596. for f in x $$MAKEFLAGS; do \
  52597. case $$f in \
  52598. *=* | --[!k]*);; \
  52599. @@ -457,16 +512,15 @@
  52600. else \
  52601. local_target="$$target"; \
  52602. fi; \
  52603. - (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
  52604. + ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
  52605. || eval $$failcom; \
  52606. done; \
  52607. if test "$$dot_seen" = "no"; then \
  52608. $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \
  52609. fi; test -z "$$fail"
  52610. -mostlyclean-recursive clean-recursive distclean-recursive \
  52611. -maintainer-clean-recursive:
  52612. - @failcom='exit 1'; \
  52613. +$(RECURSIVE_CLEAN_TARGETS):
  52614. + @fail= failcom='exit 1'; \
  52615. for f in x $$MAKEFLAGS; do \
  52616. case $$f in \
  52617. *=* | --[!k]*);; \
  52618. @@ -492,16 +546,16 @@
  52619. else \
  52620. local_target="$$target"; \
  52621. fi; \
  52622. - (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
  52623. + ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
  52624. || eval $$failcom; \
  52625. done && test -z "$$fail"
  52626. tags-recursive:
  52627. list='$(SUBDIRS)'; for subdir in $$list; do \
  52628. - test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \
  52629. + test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \
  52630. done
  52631. ctags-recursive:
  52632. list='$(SUBDIRS)'; for subdir in $$list; do \
  52633. - test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \
  52634. + test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \
  52635. done
  52636. ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
  52637. @@ -509,14 +563,14 @@
  52638. unique=`for i in $$list; do \
  52639. if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
  52640. done | \
  52641. - $(AWK) ' { files[$$0] = 1; } \
  52642. - END { for (i in files) print i; }'`; \
  52643. + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
  52644. + END { if (nonempty) { for (i in files) print i; }; }'`; \
  52645. mkid -fID $$unique
  52646. tags: TAGS
  52647. TAGS: tags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
  52648. $(TAGS_FILES) $(LISP)
  52649. - tags=; \
  52650. + set x; \
  52651. here=`pwd`; \
  52652. if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \
  52653. include_option=--etags-include; \
  52654. @@ -528,39 +582,43 @@
  52655. list='$(SUBDIRS)'; for subdir in $$list; do \
  52656. if test "$$subdir" = .; then :; else \
  52657. test ! -f $$subdir/TAGS || \
  52658. - tags="$$tags $$include_option=$$here/$$subdir/TAGS"; \
  52659. + set "$$@" "$$include_option=$$here/$$subdir/TAGS"; \
  52660. fi; \
  52661. done; \
  52662. list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
  52663. unique=`for i in $$list; do \
  52664. if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
  52665. done | \
  52666. - $(AWK) ' { files[$$0] = 1; } \
  52667. - END { for (i in files) print i; }'`; \
  52668. - if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
  52669. + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
  52670. + END { if (nonempty) { for (i in files) print i; }; }'`; \
  52671. + shift; \
  52672. + if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
  52673. test -n "$$unique" || unique=$$empty_fix; \
  52674. - $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
  52675. - $$tags $$unique; \
  52676. + if test $$# -gt 0; then \
  52677. + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
  52678. + "$$@" $$unique; \
  52679. + else \
  52680. + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
  52681. + $$unique; \
  52682. + fi; \
  52683. fi
  52684. ctags: CTAGS
  52685. CTAGS: ctags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
  52686. $(TAGS_FILES) $(LISP)
  52687. - tags=; \
  52688. - here=`pwd`; \
  52689. list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
  52690. unique=`for i in $$list; do \
  52691. if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
  52692. done | \
  52693. - $(AWK) ' { files[$$0] = 1; } \
  52694. - END { for (i in files) print i; }'`; \
  52695. - test -z "$(CTAGS_ARGS)$$tags$$unique" \
  52696. + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
  52697. + END { if (nonempty) { for (i in files) print i; }; }'`; \
  52698. + test -z "$(CTAGS_ARGS)$$unique" \
  52699. || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
  52700. - $$tags $$unique
  52701. + $$unique
  52702. GTAGS:
  52703. here=`$(am__cd) $(top_builddir) && pwd` \
  52704. - && cd $(top_srcdir) \
  52705. - && gtags -i $(GTAGS_ARGS) $$here
  52706. + && $(am__cd) $(top_srcdir) \
  52707. + && gtags -i $(GTAGS_ARGS) "$$here"
  52708. distclean-tags:
  52709. -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
  52710. @@ -568,7 +626,8 @@
  52711. check-TESTS: $(TESTS)
  52712. @failed=0; all=0; xfail=0; xpass=0; skip=0; \
  52713. srcdir=$(srcdir); export srcdir; \
  52714. - list='$(TESTS)'; \
  52715. + list=' $(TESTS) '; \
  52716. + $(am__tty_colors); \
  52717. if test -n "$$list"; then \
  52718. for tst in $$list; do \
  52719. if test -f ./$$tst; then dir=./; \
  52720. @@ -577,49 +636,63 @@
  52721. if $(TESTS_ENVIRONMENT) $${dir}$$tst; then \
  52722. all=`expr $$all + 1`; \
  52723. case " $(XFAIL_TESTS) " in \
  52724. - *" $$tst "*) \
  52725. + *[\ \ ]$$tst[\ \ ]*) \
  52726. xpass=`expr $$xpass + 1`; \
  52727. failed=`expr $$failed + 1`; \
  52728. - echo "XPASS: $$tst"; \
  52729. + col=$$red; res=XPASS; \
  52730. ;; \
  52731. *) \
  52732. - echo "PASS: $$tst"; \
  52733. + col=$$grn; res=PASS; \
  52734. ;; \
  52735. esac; \
  52736. elif test $$? -ne 77; then \
  52737. all=`expr $$all + 1`; \
  52738. case " $(XFAIL_TESTS) " in \
  52739. - *" $$tst "*) \
  52740. + *[\ \ ]$$tst[\ \ ]*) \
  52741. xfail=`expr $$xfail + 1`; \
  52742. - echo "XFAIL: $$tst"; \
  52743. + col=$$lgn; res=XFAIL; \
  52744. ;; \
  52745. *) \
  52746. failed=`expr $$failed + 1`; \
  52747. - echo "FAIL: $$tst"; \
  52748. + col=$$red; res=FAIL; \
  52749. ;; \
  52750. esac; \
  52751. else \
  52752. skip=`expr $$skip + 1`; \
  52753. - echo "SKIP: $$tst"; \
  52754. + col=$$blu; res=SKIP; \
  52755. fi; \
  52756. + echo "$${col}$$res$${std}: $$tst"; \
  52757. done; \
  52758. + if test "$$all" -eq 1; then \
  52759. + tests="test"; \
  52760. + All=""; \
  52761. + else \
  52762. + tests="tests"; \
  52763. + All="All "; \
  52764. + fi; \
  52765. if test "$$failed" -eq 0; then \
  52766. if test "$$xfail" -eq 0; then \
  52767. - banner="All $$all tests passed"; \
  52768. + banner="$$All$$all $$tests passed"; \
  52769. else \
  52770. - banner="All $$all tests behaved as expected ($$xfail expected failures)"; \
  52771. + if test "$$xfail" -eq 1; then failures=failure; else failures=failures; fi; \
  52772. + banner="$$All$$all $$tests behaved as expected ($$xfail expected $$failures)"; \
  52773. fi; \
  52774. else \
  52775. if test "$$xpass" -eq 0; then \
  52776. - banner="$$failed of $$all tests failed"; \
  52777. + banner="$$failed of $$all $$tests failed"; \
  52778. else \
  52779. - banner="$$failed of $$all tests did not behave as expected ($$xpass unexpected passes)"; \
  52780. + if test "$$xpass" -eq 1; then passes=pass; else passes=passes; fi; \
  52781. + banner="$$failed of $$all $$tests did not behave as expected ($$xpass unexpected $$passes)"; \
  52782. fi; \
  52783. fi; \
  52784. dashes="$$banner"; \
  52785. skipped=""; \
  52786. if test "$$skip" -ne 0; then \
  52787. - skipped="($$skip tests were not run)"; \
  52788. + if test "$$skip" -eq 1; then \
  52789. + skipped="($$skip test was not run)"; \
  52790. + else \
  52791. + skipped="($$skip tests were not run)"; \
  52792. + fi; \
  52793. test `echo "$$skipped" | wc -c` -le `echo "$$banner" | wc -c` || \
  52794. dashes="$$skipped"; \
  52795. fi; \
  52796. @@ -630,53 +703,72 @@
  52797. dashes="$$report"; \
  52798. fi; \
  52799. dashes=`echo "$$dashes" | sed s/./=/g`; \
  52800. - echo "$$dashes"; \
  52801. + if test "$$failed" -eq 0; then \
  52802. + echo "$$grn$$dashes"; \
  52803. + else \
  52804. + echo "$$red$$dashes"; \
  52805. + fi; \
  52806. echo "$$banner"; \
  52807. test -z "$$skipped" || echo "$$skipped"; \
  52808. test -z "$$report" || echo "$$report"; \
  52809. - echo "$$dashes"; \
  52810. + echo "$$dashes$$std"; \
  52811. test "$$failed" -eq 0; \
  52812. else :; fi
  52813. distdir: $(DISTFILES)
  52814. - $(mkdir_p) $(distdir)/inc $(distdir)/test
  52815. - @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \
  52816. - topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \
  52817. - list='$(DISTFILES)'; for file in $$list; do \
  52818. - case $$file in \
  52819. - $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \
  52820. - $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \
  52821. - esac; \
  52822. + @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
  52823. + topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
  52824. + list='$(DISTFILES)'; \
  52825. + dist_files=`for file in $$list; do echo $$file; done | \
  52826. + sed -e "s|^$$srcdirstrip/||;t" \
  52827. + -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
  52828. + case $$dist_files in \
  52829. + */*) $(MKDIR_P) `echo "$$dist_files" | \
  52830. + sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
  52831. + sort -u` ;; \
  52832. + esac; \
  52833. + for file in $$dist_files; do \
  52834. if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
  52835. - dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \
  52836. - if test "$$dir" != "$$file" && test "$$dir" != "."; then \
  52837. - dir="/$$dir"; \
  52838. - $(mkdir_p) "$(distdir)$$dir"; \
  52839. - else \
  52840. - dir=''; \
  52841. - fi; \
  52842. if test -d $$d/$$file; then \
  52843. + dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
  52844. + if test -d "$(distdir)/$$file"; then \
  52845. + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
  52846. + fi; \
  52847. if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
  52848. - cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
  52849. + cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
  52850. + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
  52851. fi; \
  52852. - cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
  52853. + cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
  52854. else \
  52855. - test -f $(distdir)/$$file \
  52856. - || cp -p $$d/$$file $(distdir)/$$file \
  52857. + test -f "$(distdir)/$$file" \
  52858. + || cp -p $$d/$$file "$(distdir)/$$file" \
  52859. || exit 1; \
  52860. fi; \
  52861. done
  52862. - list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
  52863. + @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
  52864. if test "$$subdir" = .; then :; else \
  52865. test -d "$(distdir)/$$subdir" \
  52866. - || $(mkdir_p) "$(distdir)/$$subdir" \
  52867. + || $(MKDIR_P) "$(distdir)/$$subdir" \
  52868. || exit 1; \
  52869. - distdir=`$(am__cd) $(distdir) && pwd`; \
  52870. - top_distdir=`$(am__cd) $(top_distdir) && pwd`; \
  52871. - (cd $$subdir && \
  52872. + fi; \
  52873. + done
  52874. + @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
  52875. + if test "$$subdir" = .; then :; else \
  52876. + dir1=$$subdir; dir2="$(distdir)/$$subdir"; \
  52877. + $(am__relativize); \
  52878. + new_distdir=$$reldir; \
  52879. + dir1=$$subdir; dir2="$(top_distdir)"; \
  52880. + $(am__relativize); \
  52881. + new_top_distdir=$$reldir; \
  52882. + echo " (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) top_distdir="$$new_top_distdir" distdir="$$new_distdir" \\"; \
  52883. + echo " am__remove_distdir=: am__skip_length_check=: am__skip_mode_fix=: distdir)"; \
  52884. + ($(am__cd) $$subdir && \
  52885. $(MAKE) $(AM_MAKEFLAGS) \
  52886. - top_distdir="$$top_distdir" \
  52887. - distdir="$$distdir/$$subdir" \
  52888. + top_distdir="$$new_top_distdir" \
  52889. + distdir="$$new_distdir" \
  52890. + am__remove_distdir=: \
  52891. + am__skip_length_check=: \
  52892. + am__skip_mode_fix=: \
  52893. distdir) \
  52894. || exit 1; \
  52895. fi; \
  52896. @@ -692,7 +784,7 @@
  52897. installdirs: installdirs-recursive
  52898. installdirs-am:
  52899. for dir in "$(DESTDIR)$(libdir)" "$(DESTDIR)$(upnpincludedir)"; do \
  52900. - test -z "$$dir" || $(mkdir_p) "$$dir"; \
  52901. + test -z "$$dir" || $(MKDIR_P) "$$dir"; \
  52902. done
  52903. install: install-recursive
  52904. install-exec: install-exec-recursive
  52905. @@ -714,6 +806,7 @@
  52906. distclean-generic:
  52907. -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
  52908. + -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
  52909. -rm -f src/$(DEPDIR)/$(am__dirstamp)
  52910. -rm -f src/$(am__dirstamp)
  52911. -rm -f test/$(DEPDIR)/$(am__dirstamp)
  52912. @@ -731,7 +824,7 @@
  52913. -rm -rf src/$(DEPDIR) test/$(DEPDIR)
  52914. -rm -f Makefile
  52915. distclean-am: clean-am distclean-compile distclean-generic \
  52916. - distclean-libtool distclean-tags
  52917. + distclean-tags
  52918. dvi: dvi-recursive
  52919. @@ -739,18 +832,38 @@
  52920. html: html-recursive
  52921. +html-am:
  52922. +
  52923. info: info-recursive
  52924. info-am:
  52925. install-data-am: install-upnpincludeHEADERS
  52926. +install-dvi: install-dvi-recursive
  52927. +
  52928. +install-dvi-am:
  52929. +
  52930. install-exec-am: install-libLTLIBRARIES
  52931. +install-html: install-html-recursive
  52932. +
  52933. +install-html-am:
  52934. +
  52935. install-info: install-info-recursive
  52936. +install-info-am:
  52937. +
  52938. install-man:
  52939. +install-pdf: install-pdf-recursive
  52940. +
  52941. +install-pdf-am:
  52942. +
  52943. +install-ps: install-ps-recursive
  52944. +
  52945. +install-ps-am:
  52946. +
  52947. installcheck-am:
  52948. maintainer-clean: maintainer-clean-recursive
  52949. @@ -771,26 +884,27 @@
  52950. ps-am:
  52951. -uninstall-am: uninstall-info-am uninstall-libLTLIBRARIES \
  52952. - uninstall-upnpincludeHEADERS
  52953. +uninstall-am: uninstall-libLTLIBRARIES uninstall-upnpincludeHEADERS
  52954. -uninstall-info: uninstall-info-recursive
  52955. +.MAKE: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) check-am \
  52956. + ctags-recursive install-am install-strip tags-recursive
  52957. -.PHONY: $(RECURSIVE_TARGETS) CTAGS GTAGS all all-am check check-TESTS \
  52958. - check-am clean clean-checkPROGRAMS clean-generic \
  52959. - clean-libLTLIBRARIES clean-libtool clean-local clean-recursive \
  52960. - ctags ctags-recursive dist-hook distclean distclean-compile \
  52961. - distclean-generic distclean-libtool distclean-recursive \
  52962. - distclean-tags distdir dvi dvi-am html html-am info info-am \
  52963. - install install-am install-data install-data-am install-exec \
  52964. - install-exec-am install-info install-info-am \
  52965. - install-libLTLIBRARIES install-man install-strip \
  52966. +.PHONY: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) CTAGS GTAGS \
  52967. + all all-am check check-TESTS check-am clean \
  52968. + clean-checkPROGRAMS clean-generic clean-libLTLIBRARIES \
  52969. + clean-libtool clean-local ctags ctags-recursive dist-hook \
  52970. + distclean distclean-compile distclean-generic \
  52971. + distclean-libtool distclean-tags distdir dvi dvi-am html \
  52972. + html-am info info-am install install-am install-data \
  52973. + install-data-am install-dvi install-dvi-am install-exec \
  52974. + install-exec-am install-html install-html-am install-info \
  52975. + install-info-am install-libLTLIBRARIES install-man install-pdf \
  52976. + install-pdf-am install-ps install-ps-am install-strip \
  52977. install-upnpincludeHEADERS installcheck installcheck-am \
  52978. installdirs installdirs-am maintainer-clean \
  52979. - maintainer-clean-generic maintainer-clean-recursive \
  52980. - mostlyclean mostlyclean-compile mostlyclean-generic \
  52981. - mostlyclean-libtool mostlyclean-recursive pdf pdf-am ps ps-am \
  52982. - tags tags-recursive uninstall uninstall-am uninstall-info-am \
  52983. + maintainer-clean-generic mostlyclean mostlyclean-compile \
  52984. + mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
  52985. + tags tags-recursive uninstall uninstall-am \
  52986. uninstall-libLTLIBRARIES uninstall-upnpincludeHEADERS
  52987. @@ -799,6 +913,7 @@
  52988. clean-local:
  52989. @if [ -d bin ] ; then rm -rf bin ; fi
  52990. +
  52991. # Tell versions [3.59,3.63) of GNU make to not export all variables.
  52992. # Otherwise a system limit (for SysV at least) may be exceeded.
  52993. .NOEXPORT:
  52994. diff -Nur libupnp-1.6.6.orig/m4/libtool.m4 libupnp-1.6.6/m4/libtool.m4
  52995. --- libupnp-1.6.6.orig/m4/libtool.m4 1970-01-01 01:00:00.000000000 +0100
  52996. +++ libupnp-1.6.6/m4/libtool.m4 2010-02-18 22:36:50.864858080 +0100
  52997. @@ -0,0 +1,7377 @@
  52998. +# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
  52999. +#
  53000. +# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
  53001. +# 2006, 2007, 2008 Free Software Foundation, Inc.
  53002. +# Written by Gordon Matzigkeit, 1996
  53003. +#
  53004. +# This file is free software; the Free Software Foundation gives
  53005. +# unlimited permission to copy and/or distribute it, with or without
  53006. +# modifications, as long as this notice is preserved.
  53007. +
  53008. +m4_define([_LT_COPYING], [dnl
  53009. +# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
  53010. +# 2006, 2007, 2008 Free Software Foundation, Inc.
  53011. +# Written by Gordon Matzigkeit, 1996
  53012. +#
  53013. +# This file is part of GNU Libtool.
  53014. +#
  53015. +# GNU Libtool is free software; you can redistribute it and/or
  53016. +# modify it under the terms of the GNU General Public License as
  53017. +# published by the Free Software Foundation; either version 2 of
  53018. +# the License, or (at your option) any later version.
  53019. +#
  53020. +# As a special exception to the GNU General Public License,
  53021. +# if you distribute this file as part of a program or library that
  53022. +# is built using GNU Libtool, you may include this file under the
  53023. +# same distribution terms that you use for the rest of that program.
  53024. +#
  53025. +# GNU Libtool is distributed in the hope that it will be useful,
  53026. +# but WITHOUT ANY WARRANTY; without even the implied warranty of
  53027. +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  53028. +# GNU General Public License for more details.
  53029. +#
  53030. +# You should have received a copy of the GNU General Public License
  53031. +# along with GNU Libtool; see the file COPYING. If not, a copy
  53032. +# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
  53033. +# obtained by writing to the Free Software Foundation, Inc.,
  53034. +# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  53035. +])
  53036. +
  53037. +# serial 56 LT_INIT
  53038. +
  53039. +
  53040. +# LT_PREREQ(VERSION)
  53041. +# ------------------
  53042. +# Complain and exit if this libtool version is less that VERSION.
  53043. +m4_defun([LT_PREREQ],
  53044. +[m4_if(m4_version_compare(m4_defn([LT_PACKAGE_VERSION]), [$1]), -1,
  53045. + [m4_default([$3],
  53046. + [m4_fatal([Libtool version $1 or higher is required],
  53047. + 63)])],
  53048. + [$2])])
  53049. +
  53050. +
  53051. +# _LT_CHECK_BUILDDIR
  53052. +# ------------------
  53053. +# Complain if the absolute build directory name contains unusual characters
  53054. +m4_defun([_LT_CHECK_BUILDDIR],
  53055. +[case `pwd` in
  53056. + *\ * | *\ *)
  53057. + AC_MSG_WARN([Libtool does not cope well with whitespace in `pwd`]) ;;
  53058. +esac
  53059. +])
  53060. +
  53061. +
  53062. +# LT_INIT([OPTIONS])
  53063. +# ------------------
  53064. +AC_DEFUN([LT_INIT],
  53065. +[AC_PREREQ([2.58])dnl We use AC_INCLUDES_DEFAULT
  53066. +AC_BEFORE([$0], [LT_LANG])dnl
  53067. +AC_BEFORE([$0], [LT_OUTPUT])dnl
  53068. +AC_BEFORE([$0], [LTDL_INIT])dnl
  53069. +m4_require([_LT_CHECK_BUILDDIR])dnl
  53070. +
  53071. +dnl Autoconf doesn't catch unexpanded LT_ macros by default:
  53072. +m4_pattern_forbid([^_?LT_[A-Z_]+$])dnl
  53073. +m4_pattern_allow([^(_LT_EOF|LT_DLGLOBAL|LT_DLLAZY_OR_NOW|LT_MULTI_MODULE)$])dnl
  53074. +dnl aclocal doesn't pull ltoptions.m4, ltsugar.m4, or ltversion.m4
  53075. +dnl unless we require an AC_DEFUNed macro:
  53076. +AC_REQUIRE([LTOPTIONS_VERSION])dnl
  53077. +AC_REQUIRE([LTSUGAR_VERSION])dnl
  53078. +AC_REQUIRE([LTVERSION_VERSION])dnl
  53079. +AC_REQUIRE([LTOBSOLETE_VERSION])dnl
  53080. +m4_require([_LT_PROG_LTMAIN])dnl
  53081. +
  53082. +dnl Parse OPTIONS
  53083. +_LT_SET_OPTIONS([$0], [$1])
  53084. +
  53085. +# This can be used to rebuild libtool when needed
  53086. +LIBTOOL_DEPS="$ltmain"
  53087. +
  53088. +# Always use our own libtool.
  53089. +LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  53090. +AC_SUBST(LIBTOOL)dnl
  53091. +
  53092. +_LT_SETUP
  53093. +
  53094. +# Only expand once:
  53095. +m4_define([LT_INIT])
  53096. +])# LT_INIT
  53097. +
  53098. +# Old names:
  53099. +AU_ALIAS([AC_PROG_LIBTOOL], [LT_INIT])
  53100. +AU_ALIAS([AM_PROG_LIBTOOL], [LT_INIT])
  53101. +dnl aclocal-1.4 backwards compatibility:
  53102. +dnl AC_DEFUN([AC_PROG_LIBTOOL], [])
  53103. +dnl AC_DEFUN([AM_PROG_LIBTOOL], [])
  53104. +
  53105. +
  53106. +# _LT_CC_BASENAME(CC)
  53107. +# -------------------
  53108. +# Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
  53109. +m4_defun([_LT_CC_BASENAME],
  53110. +[for cc_temp in $1""; do
  53111. + case $cc_temp in
  53112. + compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;;
  53113. + distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;;
  53114. + \-*) ;;
  53115. + *) break;;
  53116. + esac
  53117. +done
  53118. +cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  53119. +])
  53120. +
  53121. +
  53122. +# _LT_FILEUTILS_DEFAULTS
  53123. +# ----------------------
  53124. +# It is okay to use these file commands and assume they have been set
  53125. +# sensibly after `m4_require([_LT_FILEUTILS_DEFAULTS])'.
  53126. +m4_defun([_LT_FILEUTILS_DEFAULTS],
  53127. +[: ${CP="cp -f"}
  53128. +: ${MV="mv -f"}
  53129. +: ${RM="rm -f"}
  53130. +])# _LT_FILEUTILS_DEFAULTS
  53131. +
  53132. +
  53133. +# _LT_SETUP
  53134. +# ---------
  53135. +m4_defun([_LT_SETUP],
  53136. +[AC_REQUIRE([AC_CANONICAL_HOST])dnl
  53137. +AC_REQUIRE([AC_CANONICAL_BUILD])dnl
  53138. +_LT_DECL([], [host_alias], [0], [The host system])dnl
  53139. +_LT_DECL([], [host], [0])dnl
  53140. +_LT_DECL([], [host_os], [0])dnl
  53141. +dnl
  53142. +_LT_DECL([], [build_alias], [0], [The build system])dnl
  53143. +_LT_DECL([], [build], [0])dnl
  53144. +_LT_DECL([], [build_os], [0])dnl
  53145. +dnl
  53146. +AC_REQUIRE([AC_PROG_CC])dnl
  53147. +AC_REQUIRE([LT_PATH_LD])dnl
  53148. +AC_REQUIRE([LT_PATH_NM])dnl
  53149. +dnl
  53150. +AC_REQUIRE([AC_PROG_LN_S])dnl
  53151. +test -z "$LN_S" && LN_S="ln -s"
  53152. +_LT_DECL([], [LN_S], [1], [Whether we need soft or hard links])dnl
  53153. +dnl
  53154. +AC_REQUIRE([LT_CMD_MAX_LEN])dnl
  53155. +_LT_DECL([objext], [ac_objext], [0], [Object file suffix (normally "o")])dnl
  53156. +_LT_DECL([], [exeext], [0], [Executable file suffix (normally "")])dnl
  53157. +dnl
  53158. +m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  53159. +m4_require([_LT_CHECK_SHELL_FEATURES])dnl
  53160. +m4_require([_LT_CMD_RELOAD])dnl
  53161. +m4_require([_LT_CHECK_MAGIC_METHOD])dnl
  53162. +m4_require([_LT_CMD_OLD_ARCHIVE])dnl
  53163. +m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
  53164. +
  53165. +_LT_CONFIG_LIBTOOL_INIT([
  53166. +# See if we are running on zsh, and set the options which allow our
  53167. +# commands through without removal of \ escapes INIT.
  53168. +if test -n "\${ZSH_VERSION+set}" ; then
  53169. + setopt NO_GLOB_SUBST
  53170. +fi
  53171. +])
  53172. +if test -n "${ZSH_VERSION+set}" ; then
  53173. + setopt NO_GLOB_SUBST
  53174. +fi
  53175. +
  53176. +_LT_CHECK_OBJDIR
  53177. +
  53178. +m4_require([_LT_TAG_COMPILER])dnl
  53179. +_LT_PROG_ECHO_BACKSLASH
  53180. +
  53181. +case $host_os in
  53182. +aix3*)
  53183. + # AIX sometimes has problems with the GCC collect2 program. For some
  53184. + # reason, if we set the COLLECT_NAMES environment variable, the problems
  53185. + # vanish in a puff of smoke.
  53186. + if test "X${COLLECT_NAMES+set}" != Xset; then
  53187. + COLLECT_NAMES=
  53188. + export COLLECT_NAMES
  53189. + fi
  53190. + ;;
  53191. +esac
  53192. +
  53193. +# Sed substitution that helps us do robust quoting. It backslashifies
  53194. +# metacharacters that are still active within double-quoted strings.
  53195. +sed_quote_subst='s/\([["`$\\]]\)/\\\1/g'
  53196. +
  53197. +# Same as above, but do not quote variable references.
  53198. +double_quote_subst='s/\([["`\\]]\)/\\\1/g'
  53199. +
  53200. +# Sed substitution to delay expansion of an escaped shell variable in a
  53201. +# double_quote_subst'ed string.
  53202. +delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  53203. +
  53204. +# Sed substitution to delay expansion of an escaped single quote.
  53205. +delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  53206. +
  53207. +# Sed substitution to avoid accidental globbing in evaled expressions
  53208. +no_glob_subst='s/\*/\\\*/g'
  53209. +
  53210. +# Global variables:
  53211. +ofile=libtool
  53212. +can_build_shared=yes
  53213. +
  53214. +# All known linkers require a `.a' archive for static linking (except MSVC,
  53215. +# which needs '.lib').
  53216. +libext=a
  53217. +
  53218. +with_gnu_ld="$lt_cv_prog_gnu_ld"
  53219. +
  53220. +old_CC="$CC"
  53221. +old_CFLAGS="$CFLAGS"
  53222. +
  53223. +# Set sane defaults for various variables
  53224. +test -z "$CC" && CC=cc
  53225. +test -z "$LTCC" && LTCC=$CC
  53226. +test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  53227. +test -z "$LD" && LD=ld
  53228. +test -z "$ac_objext" && ac_objext=o
  53229. +
  53230. +_LT_CC_BASENAME([$compiler])
  53231. +
  53232. +# Only perform the check for file, if the check method requires it
  53233. +test -z "$MAGIC_CMD" && MAGIC_CMD=file
  53234. +case $deplibs_check_method in
  53235. +file_magic*)
  53236. + if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  53237. + _LT_PATH_MAGIC
  53238. + fi
  53239. + ;;
  53240. +esac
  53241. +
  53242. +# Use C for the default configuration in the libtool script
  53243. +LT_SUPPORTED_TAG([CC])
  53244. +_LT_LANG_C_CONFIG
  53245. +_LT_LANG_DEFAULT_CONFIG
  53246. +_LT_CONFIG_COMMANDS
  53247. +])# _LT_SETUP
  53248. +
  53249. +
  53250. +# _LT_PROG_LTMAIN
  53251. +# ---------------
  53252. +# Note that this code is called both from `configure', and `config.status'
  53253. +# now that we use AC_CONFIG_COMMANDS to generate libtool. Notably,
  53254. +# `config.status' has no value for ac_aux_dir unless we are using Automake,
  53255. +# so we pass a copy along to make sure it has a sensible value anyway.
  53256. +m4_defun([_LT_PROG_LTMAIN],
  53257. +[m4_ifdef([AC_REQUIRE_AUX_FILE], [AC_REQUIRE_AUX_FILE([ltmain.sh])])dnl
  53258. +_LT_CONFIG_LIBTOOL_INIT([ac_aux_dir='$ac_aux_dir'])
  53259. +ltmain="$ac_aux_dir/ltmain.sh"
  53260. +])# _LT_PROG_LTMAIN
  53261. +
  53262. +
  53263. +## ------------------------------------- ##
  53264. +## Accumulate code for creating libtool. ##
  53265. +## ------------------------------------- ##
  53266. +
  53267. +# So that we can recreate a full libtool script including additional
  53268. +# tags, we accumulate the chunks of code to send to AC_CONFIG_COMMANDS
  53269. +# in macros and then make a single call at the end using the `libtool'
  53270. +# label.
  53271. +
  53272. +
  53273. +# _LT_CONFIG_LIBTOOL_INIT([INIT-COMMANDS])
  53274. +# ----------------------------------------
  53275. +# Register INIT-COMMANDS to be passed to AC_CONFIG_COMMANDS later.
  53276. +m4_define([_LT_CONFIG_LIBTOOL_INIT],
  53277. +[m4_ifval([$1],
  53278. + [m4_append([_LT_OUTPUT_LIBTOOL_INIT],
  53279. + [$1
  53280. +])])])
  53281. +
  53282. +# Initialize.
  53283. +m4_define([_LT_OUTPUT_LIBTOOL_INIT])
  53284. +
  53285. +
  53286. +# _LT_CONFIG_LIBTOOL([COMMANDS])
  53287. +# ------------------------------
  53288. +# Register COMMANDS to be passed to AC_CONFIG_COMMANDS later.
  53289. +m4_define([_LT_CONFIG_LIBTOOL],
  53290. +[m4_ifval([$1],
  53291. + [m4_append([_LT_OUTPUT_LIBTOOL_COMMANDS],
  53292. + [$1
  53293. +])])])
  53294. +
  53295. +# Initialize.
  53296. +m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS])
  53297. +
  53298. +
  53299. +# _LT_CONFIG_SAVE_COMMANDS([COMMANDS], [INIT_COMMANDS])
  53300. +# -----------------------------------------------------
  53301. +m4_defun([_LT_CONFIG_SAVE_COMMANDS],
  53302. +[_LT_CONFIG_LIBTOOL([$1])
  53303. +_LT_CONFIG_LIBTOOL_INIT([$2])
  53304. +])
  53305. +
  53306. +
  53307. +# _LT_FORMAT_COMMENT([COMMENT])
  53308. +# -----------------------------
  53309. +# Add leading comment marks to the start of each line, and a trailing
  53310. +# full-stop to the whole comment if one is not present already.
  53311. +m4_define([_LT_FORMAT_COMMENT],
  53312. +[m4_ifval([$1], [
  53313. +m4_bpatsubst([m4_bpatsubst([$1], [^ *], [# ])],
  53314. + [['`$\]], [\\\&])]m4_bmatch([$1], [[!?.]$], [], [.])
  53315. +)])
  53316. +
  53317. +
  53318. +
  53319. +## ------------------------ ##
  53320. +## FIXME: Eliminate VARNAME ##
  53321. +## ------------------------ ##
  53322. +
  53323. +
  53324. +# _LT_DECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION], [IS-TAGGED?])
  53325. +# -------------------------------------------------------------------
  53326. +# CONFIGNAME is the name given to the value in the libtool script.
  53327. +# VARNAME is the (base) name used in the configure script.
  53328. +# VALUE may be 0, 1 or 2 for a computed quote escaped value based on
  53329. +# VARNAME. Any other value will be used directly.
  53330. +m4_define([_LT_DECL],
  53331. +[lt_if_append_uniq([lt_decl_varnames], [$2], [, ],
  53332. + [lt_dict_add_subkey([lt_decl_dict], [$2], [libtool_name],
  53333. + [m4_ifval([$1], [$1], [$2])])
  53334. + lt_dict_add_subkey([lt_decl_dict], [$2], [value], [$3])
  53335. + m4_ifval([$4],
  53336. + [lt_dict_add_subkey([lt_decl_dict], [$2], [description], [$4])])
  53337. + lt_dict_add_subkey([lt_decl_dict], [$2],
  53338. + [tagged?], [m4_ifval([$5], [yes], [no])])])
  53339. +])
  53340. +
  53341. +
  53342. +# _LT_TAGDECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION])
  53343. +# --------------------------------------------------------
  53344. +m4_define([_LT_TAGDECL], [_LT_DECL([$1], [$2], [$3], [$4], [yes])])
  53345. +
  53346. +
  53347. +# lt_decl_tag_varnames([SEPARATOR], [VARNAME1...])
  53348. +# ------------------------------------------------
  53349. +m4_define([lt_decl_tag_varnames],
  53350. +[_lt_decl_filter([tagged?], [yes], $@)])
  53351. +
  53352. +
  53353. +# _lt_decl_filter(SUBKEY, VALUE, [SEPARATOR], [VARNAME1..])
  53354. +# ---------------------------------------------------------
  53355. +m4_define([_lt_decl_filter],
  53356. +[m4_case([$#],
  53357. + [0], [m4_fatal([$0: too few arguments: $#])],
  53358. + [1], [m4_fatal([$0: too few arguments: $#: $1])],
  53359. + [2], [lt_dict_filter([lt_decl_dict], [$1], [$2], [], lt_decl_varnames)],
  53360. + [3], [lt_dict_filter([lt_decl_dict], [$1], [$2], [$3], lt_decl_varnames)],
  53361. + [lt_dict_filter([lt_decl_dict], $@)])[]dnl
  53362. +])
  53363. +
  53364. +
  53365. +# lt_decl_quote_varnames([SEPARATOR], [VARNAME1...])
  53366. +# --------------------------------------------------
  53367. +m4_define([lt_decl_quote_varnames],
  53368. +[_lt_decl_filter([value], [1], $@)])
  53369. +
  53370. +
  53371. +# lt_decl_dquote_varnames([SEPARATOR], [VARNAME1...])
  53372. +# ---------------------------------------------------
  53373. +m4_define([lt_decl_dquote_varnames],
  53374. +[_lt_decl_filter([value], [2], $@)])
  53375. +
  53376. +
  53377. +# lt_decl_varnames_tagged([SEPARATOR], [VARNAME1...])
  53378. +# ---------------------------------------------------
  53379. +m4_define([lt_decl_varnames_tagged],
  53380. +[m4_assert([$# <= 2])dnl
  53381. +_$0(m4_quote(m4_default([$1], [[, ]])),
  53382. + m4_ifval([$2], [[$2]], [m4_dquote(lt_decl_tag_varnames)]),
  53383. + m4_split(m4_normalize(m4_quote(_LT_TAGS)), [ ]))])
  53384. +m4_define([_lt_decl_varnames_tagged],
  53385. +[m4_ifval([$3], [lt_combine([$1], [$2], [_], $3)])])
  53386. +
  53387. +
  53388. +# lt_decl_all_varnames([SEPARATOR], [VARNAME1...])
  53389. +# ------------------------------------------------
  53390. +m4_define([lt_decl_all_varnames],
  53391. +[_$0(m4_quote(m4_default([$1], [[, ]])),
  53392. + m4_if([$2], [],
  53393. + m4_quote(lt_decl_varnames),
  53394. + m4_quote(m4_shift($@))))[]dnl
  53395. +])
  53396. +m4_define([_lt_decl_all_varnames],
  53397. +[lt_join($@, lt_decl_varnames_tagged([$1],
  53398. + lt_decl_tag_varnames([[, ]], m4_shift($@))))dnl
  53399. +])
  53400. +
  53401. +
  53402. +# _LT_CONFIG_STATUS_DECLARE([VARNAME])
  53403. +# ------------------------------------
  53404. +# Quote a variable value, and forward it to `config.status' so that its
  53405. +# declaration there will have the same value as in `configure'. VARNAME
  53406. +# must have a single quote delimited value for this to work.
  53407. +m4_define([_LT_CONFIG_STATUS_DECLARE],
  53408. +[$1='`$ECHO "X$][$1" | $Xsed -e "$delay_single_quote_subst"`'])
  53409. +
  53410. +
  53411. +# _LT_CONFIG_STATUS_DECLARATIONS
  53412. +# ------------------------------
  53413. +# We delimit libtool config variables with single quotes, so when
  53414. +# we write them to config.status, we have to be sure to quote all
  53415. +# embedded single quotes properly. In configure, this macro expands
  53416. +# each variable declared with _LT_DECL (and _LT_TAGDECL) into:
  53417. +#
  53418. +# <var>='`$ECHO "X$<var>" | $Xsed -e "$delay_single_quote_subst"`'
  53419. +m4_defun([_LT_CONFIG_STATUS_DECLARATIONS],
  53420. +[m4_foreach([_lt_var], m4_quote(lt_decl_all_varnames),
  53421. + [m4_n([_LT_CONFIG_STATUS_DECLARE(_lt_var)])])])
  53422. +
  53423. +
  53424. +# _LT_LIBTOOL_TAGS
  53425. +# ----------------
  53426. +# Output comment and list of tags supported by the script
  53427. +m4_defun([_LT_LIBTOOL_TAGS],
  53428. +[_LT_FORMAT_COMMENT([The names of the tagged configurations supported by this script])dnl
  53429. +available_tags="_LT_TAGS"dnl
  53430. +])
  53431. +
  53432. +
  53433. +# _LT_LIBTOOL_DECLARE(VARNAME, [TAG])
  53434. +# -----------------------------------
  53435. +# Extract the dictionary values for VARNAME (optionally with TAG) and
  53436. +# expand to a commented shell variable setting:
  53437. +#
  53438. +# # Some comment about what VAR is for.
  53439. +# visible_name=$lt_internal_name
  53440. +m4_define([_LT_LIBTOOL_DECLARE],
  53441. +[_LT_FORMAT_COMMENT(m4_quote(lt_dict_fetch([lt_decl_dict], [$1],
  53442. + [description])))[]dnl
  53443. +m4_pushdef([_libtool_name],
  53444. + m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [libtool_name])))[]dnl
  53445. +m4_case(m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [value])),
  53446. + [0], [_libtool_name=[$]$1],
  53447. + [1], [_libtool_name=$lt_[]$1],
  53448. + [2], [_libtool_name=$lt_[]$1],
  53449. + [_libtool_name=lt_dict_fetch([lt_decl_dict], [$1], [value])])[]dnl
  53450. +m4_ifval([$2], [_$2])[]m4_popdef([_libtool_name])[]dnl
  53451. +])
  53452. +
  53453. +
  53454. +# _LT_LIBTOOL_CONFIG_VARS
  53455. +# -----------------------
  53456. +# Produce commented declarations of non-tagged libtool config variables
  53457. +# suitable for insertion in the LIBTOOL CONFIG section of the `libtool'
  53458. +# script. Tagged libtool config variables (even for the LIBTOOL CONFIG
  53459. +# section) are produced by _LT_LIBTOOL_TAG_VARS.
  53460. +m4_defun([_LT_LIBTOOL_CONFIG_VARS],
  53461. +[m4_foreach([_lt_var],
  53462. + m4_quote(_lt_decl_filter([tagged?], [no], [], lt_decl_varnames)),
  53463. + [m4_n([_LT_LIBTOOL_DECLARE(_lt_var)])])])
  53464. +
  53465. +
  53466. +# _LT_LIBTOOL_TAG_VARS(TAG)
  53467. +# -------------------------
  53468. +m4_define([_LT_LIBTOOL_TAG_VARS],
  53469. +[m4_foreach([_lt_var], m4_quote(lt_decl_tag_varnames),
  53470. + [m4_n([_LT_LIBTOOL_DECLARE(_lt_var, [$1])])])])
  53471. +
  53472. +
  53473. +# _LT_TAGVAR(VARNAME, [TAGNAME])
  53474. +# ------------------------------
  53475. +m4_define([_LT_TAGVAR], [m4_ifval([$2], [$1_$2], [$1])])
  53476. +
  53477. +
  53478. +# _LT_CONFIG_COMMANDS
  53479. +# -------------------
  53480. +# Send accumulated output to $CONFIG_STATUS. Thanks to the lists of
  53481. +# variables for single and double quote escaping we saved from calls
  53482. +# to _LT_DECL, we can put quote escaped variables declarations
  53483. +# into `config.status', and then the shell code to quote escape them in
  53484. +# for loops in `config.status'. Finally, any additional code accumulated
  53485. +# from calls to _LT_CONFIG_LIBTOOL_INIT is expanded.
  53486. +m4_defun([_LT_CONFIG_COMMANDS],
  53487. +[AC_PROVIDE_IFELSE([LT_OUTPUT],
  53488. + dnl If the libtool generation code has been placed in $CONFIG_LT,
  53489. + dnl instead of duplicating it all over again into config.status,
  53490. + dnl then we will have config.status run $CONFIG_LT later, so it
  53491. + dnl needs to know what name is stored there:
  53492. + [AC_CONFIG_COMMANDS([libtool],
  53493. + [$SHELL $CONFIG_LT || AS_EXIT(1)], [CONFIG_LT='$CONFIG_LT'])],
  53494. + dnl If the libtool generation code is destined for config.status,
  53495. + dnl expand the accumulated commands and init code now:
  53496. + [AC_CONFIG_COMMANDS([libtool],
  53497. + [_LT_OUTPUT_LIBTOOL_COMMANDS], [_LT_OUTPUT_LIBTOOL_COMMANDS_INIT])])
  53498. +])#_LT_CONFIG_COMMANDS
  53499. +
  53500. +
  53501. +# Initialize.
  53502. +m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS_INIT],
  53503. +[
  53504. +
  53505. +# The HP-UX ksh and POSIX shell print the target directory to stdout
  53506. +# if CDPATH is set.
  53507. +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  53508. +
  53509. +sed_quote_subst='$sed_quote_subst'
  53510. +double_quote_subst='$double_quote_subst'
  53511. +delay_variable_subst='$delay_variable_subst'
  53512. +_LT_CONFIG_STATUS_DECLARATIONS
  53513. +LTCC='$LTCC'
  53514. +LTCFLAGS='$LTCFLAGS'
  53515. +compiler='$compiler_DEFAULT'
  53516. +
  53517. +# Quote evaled strings.
  53518. +for var in lt_decl_all_varnames([[ \
  53519. +]], lt_decl_quote_varnames); do
  53520. + case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
  53521. + *[[\\\\\\\`\\"\\\$]]*)
  53522. + eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
  53523. + ;;
  53524. + *)
  53525. + eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  53526. + ;;
  53527. + esac
  53528. +done
  53529. +
  53530. +# Double-quote double-evaled strings.
  53531. +for var in lt_decl_all_varnames([[ \
  53532. +]], lt_decl_dquote_varnames); do
  53533. + case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
  53534. + *[[\\\\\\\`\\"\\\$]]*)
  53535. + eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
  53536. + ;;
  53537. + *)
  53538. + eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  53539. + ;;
  53540. + esac
  53541. +done
  53542. +
  53543. +# Fix-up fallback echo if it was mangled by the above quoting rules.
  53544. +case \$lt_ECHO in
  53545. +*'\\\[$]0 --fallback-echo"')dnl "
  53546. + lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\[$]0 --fallback-echo"\[$]/\[$]0 --fallback-echo"/'\`
  53547. + ;;
  53548. +esac
  53549. +
  53550. +_LT_OUTPUT_LIBTOOL_INIT
  53551. +])
  53552. +
  53553. +
  53554. +# LT_OUTPUT
  53555. +# ---------
  53556. +# This macro allows early generation of the libtool script (before
  53557. +# AC_OUTPUT is called), incase it is used in configure for compilation
  53558. +# tests.
  53559. +AC_DEFUN([LT_OUTPUT],
  53560. +[: ${CONFIG_LT=./config.lt}
  53561. +AC_MSG_NOTICE([creating $CONFIG_LT])
  53562. +cat >"$CONFIG_LT" <<_LTEOF
  53563. +#! $SHELL
  53564. +# Generated by $as_me.
  53565. +# Run this file to recreate a libtool stub with the current configuration.
  53566. +
  53567. +lt_cl_silent=false
  53568. +SHELL=\${CONFIG_SHELL-$SHELL}
  53569. +_LTEOF
  53570. +
  53571. +cat >>"$CONFIG_LT" <<\_LTEOF
  53572. +AS_SHELL_SANITIZE
  53573. +_AS_PREPARE
  53574. +
  53575. +exec AS_MESSAGE_FD>&1
  53576. +exec AS_MESSAGE_LOG_FD>>config.log
  53577. +{
  53578. + echo
  53579. + AS_BOX([Running $as_me.])
  53580. +} >&AS_MESSAGE_LOG_FD
  53581. +
  53582. +lt_cl_help="\
  53583. +\`$as_me' creates a local libtool stub from the current configuration,
  53584. +for use in further configure time tests before the real libtool is
  53585. +generated.
  53586. +
  53587. +Usage: $[0] [[OPTIONS]]
  53588. +
  53589. + -h, --help print this help, then exit
  53590. + -V, --version print version number, then exit
  53591. + -q, --quiet do not print progress messages
  53592. + -d, --debug don't remove temporary files
  53593. +
  53594. +Report bugs to <bug-libtool@gnu.org>."
  53595. +
  53596. +lt_cl_version="\
  53597. +m4_ifset([AC_PACKAGE_NAME], [AC_PACKAGE_NAME ])config.lt[]dnl
  53598. +m4_ifset([AC_PACKAGE_VERSION], [ AC_PACKAGE_VERSION])
  53599. +configured by $[0], generated by m4_PACKAGE_STRING.
  53600. +
  53601. +Copyright (C) 2008 Free Software Foundation, Inc.
  53602. +This config.lt script is free software; the Free Software Foundation
  53603. +gives unlimited permision to copy, distribute and modify it."
  53604. +
  53605. +while test $[#] != 0
  53606. +do
  53607. + case $[1] in
  53608. + --version | --v* | -V )
  53609. + echo "$lt_cl_version"; exit 0 ;;
  53610. + --help | --h* | -h )
  53611. + echo "$lt_cl_help"; exit 0 ;;
  53612. + --debug | --d* | -d )
  53613. + debug=: ;;
  53614. + --quiet | --q* | --silent | --s* | -q )
  53615. + lt_cl_silent=: ;;
  53616. +
  53617. + -*) AC_MSG_ERROR([unrecognized option: $[1]
  53618. +Try \`$[0] --help' for more information.]) ;;
  53619. +
  53620. + *) AC_MSG_ERROR([unrecognized argument: $[1]
  53621. +Try \`$[0] --help' for more information.]) ;;
  53622. + esac
  53623. + shift
  53624. +done
  53625. +
  53626. +if $lt_cl_silent; then
  53627. + exec AS_MESSAGE_FD>/dev/null
  53628. +fi
  53629. +_LTEOF
  53630. +
  53631. +cat >>"$CONFIG_LT" <<_LTEOF
  53632. +_LT_OUTPUT_LIBTOOL_COMMANDS_INIT
  53633. +_LTEOF
  53634. +
  53635. +cat >>"$CONFIG_LT" <<\_LTEOF
  53636. +AC_MSG_NOTICE([creating $ofile])
  53637. +_LT_OUTPUT_LIBTOOL_COMMANDS
  53638. +AS_EXIT(0)
  53639. +_LTEOF
  53640. +chmod +x "$CONFIG_LT"
  53641. +
  53642. +# configure is writing to config.log, but config.lt does its own redirection,
  53643. +# appending to config.log, which fails on DOS, as config.log is still kept
  53644. +# open by configure. Here we exec the FD to /dev/null, effectively closing
  53645. +# config.log, so it can be properly (re)opened and appended to by config.lt.
  53646. +if test "$no_create" != yes; then
  53647. + lt_cl_success=:
  53648. + test "$silent" = yes &&
  53649. + lt_config_lt_args="$lt_config_lt_args --quiet"
  53650. + exec AS_MESSAGE_LOG_FD>/dev/null
  53651. + $SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false
  53652. + exec AS_MESSAGE_LOG_FD>>config.log
  53653. + $lt_cl_success || AS_EXIT(1)
  53654. +fi
  53655. +])# LT_OUTPUT
  53656. +
  53657. +
  53658. +# _LT_CONFIG(TAG)
  53659. +# ---------------
  53660. +# If TAG is the built-in tag, create an initial libtool script with a
  53661. +# default configuration from the untagged config vars. Otherwise add code
  53662. +# to config.status for appending the configuration named by TAG from the
  53663. +# matching tagged config vars.
  53664. +m4_defun([_LT_CONFIG],
  53665. +[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  53666. +_LT_CONFIG_SAVE_COMMANDS([
  53667. + m4_define([_LT_TAG], m4_if([$1], [], [C], [$1]))dnl
  53668. + m4_if(_LT_TAG, [C], [
  53669. + # See if we are running on zsh, and set the options which allow our
  53670. + # commands through without removal of \ escapes.
  53671. + if test -n "${ZSH_VERSION+set}" ; then
  53672. + setopt NO_GLOB_SUBST
  53673. + fi
  53674. +
  53675. + cfgfile="${ofile}T"
  53676. + trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  53677. + $RM "$cfgfile"
  53678. +
  53679. + cat <<_LT_EOF >> "$cfgfile"
  53680. +#! $SHELL
  53681. +
  53682. +# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  53683. +# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
  53684. +# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  53685. +# NOTE: Changes made to this file will be lost: look at ltmain.sh.
  53686. +#
  53687. +_LT_COPYING
  53688. +_LT_LIBTOOL_TAGS
  53689. +
  53690. +# ### BEGIN LIBTOOL CONFIG
  53691. +_LT_LIBTOOL_CONFIG_VARS
  53692. +_LT_LIBTOOL_TAG_VARS
  53693. +# ### END LIBTOOL CONFIG
  53694. +
  53695. +_LT_EOF
  53696. +
  53697. + case $host_os in
  53698. + aix3*)
  53699. + cat <<\_LT_EOF >> "$cfgfile"
  53700. +# AIX sometimes has problems with the GCC collect2 program. For some
  53701. +# reason, if we set the COLLECT_NAMES environment variable, the problems
  53702. +# vanish in a puff of smoke.
  53703. +if test "X${COLLECT_NAMES+set}" != Xset; then
  53704. + COLLECT_NAMES=
  53705. + export COLLECT_NAMES
  53706. +fi
  53707. +_LT_EOF
  53708. + ;;
  53709. + esac
  53710. +
  53711. + _LT_PROG_LTMAIN
  53712. +
  53713. + # We use sed instead of cat because bash on DJGPP gets confused if
  53714. + # if finds mixed CR/LF and LF-only lines. Since sed operates in
  53715. + # text mode, it properly converts lines to CR/LF. This bash problem
  53716. + # is reportedly fixed, but why not run on old versions too?
  53717. + sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
  53718. + || (rm -f "$cfgfile"; exit 1)
  53719. +
  53720. + _LT_PROG_XSI_SHELLFNS
  53721. +
  53722. + sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
  53723. + || (rm -f "$cfgfile"; exit 1)
  53724. +
  53725. + mv -f "$cfgfile" "$ofile" ||
  53726. + (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  53727. + chmod +x "$ofile"
  53728. +],
  53729. +[cat <<_LT_EOF >> "$ofile"
  53730. +
  53731. +dnl Unfortunately we have to use $1 here, since _LT_TAG is not expanded
  53732. +dnl in a comment (ie after a #).
  53733. +# ### BEGIN LIBTOOL TAG CONFIG: $1
  53734. +_LT_LIBTOOL_TAG_VARS(_LT_TAG)
  53735. +# ### END LIBTOOL TAG CONFIG: $1
  53736. +_LT_EOF
  53737. +])dnl /m4_if
  53738. +],
  53739. +[m4_if([$1], [], [
  53740. + PACKAGE='$PACKAGE'
  53741. + VERSION='$VERSION'
  53742. + TIMESTAMP='$TIMESTAMP'
  53743. + RM='$RM'
  53744. + ofile='$ofile'], [])
  53745. +])dnl /_LT_CONFIG_SAVE_COMMANDS
  53746. +])# _LT_CONFIG
  53747. +
  53748. +
  53749. +# LT_SUPPORTED_TAG(TAG)
  53750. +# ---------------------
  53751. +# Trace this macro to discover what tags are supported by the libtool
  53752. +# --tag option, using:
  53753. +# autoconf --trace 'LT_SUPPORTED_TAG:$1'
  53754. +AC_DEFUN([LT_SUPPORTED_TAG], [])
  53755. +
  53756. +
  53757. +# C support is built-in for now
  53758. +m4_define([_LT_LANG_C_enabled], [])
  53759. +m4_define([_LT_TAGS], [])
  53760. +
  53761. +
  53762. +# LT_LANG(LANG)
  53763. +# -------------
  53764. +# Enable libtool support for the given language if not already enabled.
  53765. +AC_DEFUN([LT_LANG],
  53766. +[AC_BEFORE([$0], [LT_OUTPUT])dnl
  53767. +m4_case([$1],
  53768. + [C], [_LT_LANG(C)],
  53769. + [C++], [_LT_LANG(CXX)],
  53770. + [Java], [_LT_LANG(GCJ)],
  53771. + [Fortran 77], [_LT_LANG(F77)],
  53772. + [Fortran], [_LT_LANG(FC)],
  53773. + [Windows Resource], [_LT_LANG(RC)],
  53774. + [m4_ifdef([_LT_LANG_]$1[_CONFIG],
  53775. + [_LT_LANG($1)],
  53776. + [m4_fatal([$0: unsupported language: "$1"])])])dnl
  53777. +])# LT_LANG
  53778. +
  53779. +
  53780. +# _LT_LANG(LANGNAME)
  53781. +# ------------------
  53782. +m4_defun([_LT_LANG],
  53783. +[m4_ifdef([_LT_LANG_]$1[_enabled], [],
  53784. + [LT_SUPPORTED_TAG([$1])dnl
  53785. + m4_append([_LT_TAGS], [$1 ])dnl
  53786. + m4_define([_LT_LANG_]$1[_enabled], [])dnl
  53787. + _LT_LANG_$1_CONFIG($1)])dnl
  53788. +])# _LT_LANG
  53789. +
  53790. +
  53791. +# _LT_LANG_DEFAULT_CONFIG
  53792. +# -----------------------
  53793. +m4_defun([_LT_LANG_DEFAULT_CONFIG],
  53794. +[AC_PROVIDE_IFELSE([AC_PROG_CXX],
  53795. + [LT_LANG(CXX)],
  53796. + [m4_define([AC_PROG_CXX], defn([AC_PROG_CXX])[LT_LANG(CXX)])])
  53797. +
  53798. +AC_PROVIDE_IFELSE([AC_PROG_F77],
  53799. + [LT_LANG(F77)],
  53800. + [m4_define([AC_PROG_F77], defn([AC_PROG_F77])[LT_LANG(F77)])])
  53801. +
  53802. +AC_PROVIDE_IFELSE([AC_PROG_FC],
  53803. + [LT_LANG(FC)],
  53804. + [m4_define([AC_PROG_FC], defn([AC_PROG_FC])[LT_LANG(FC)])])
  53805. +
  53806. +dnl The call to [A][M_PROG_GCJ] is quoted like that to stop aclocal
  53807. +dnl pulling things in needlessly.
  53808. +AC_PROVIDE_IFELSE([AC_PROG_GCJ],
  53809. + [LT_LANG(GCJ)],
  53810. + [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],
  53811. + [LT_LANG(GCJ)],
  53812. + [AC_PROVIDE_IFELSE([LT_PROG_GCJ],
  53813. + [LT_LANG(GCJ)],
  53814. + [m4_ifdef([AC_PROG_GCJ],
  53815. + [m4_define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[LT_LANG(GCJ)])])
  53816. + m4_ifdef([A][M_PROG_GCJ],
  53817. + [m4_define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[LT_LANG(GCJ)])])
  53818. + m4_ifdef([LT_PROG_GCJ],
  53819. + [m4_define([LT_PROG_GCJ], defn([LT_PROG_GCJ])[LT_LANG(GCJ)])])])])])
  53820. +
  53821. +AC_PROVIDE_IFELSE([LT_PROG_RC],
  53822. + [LT_LANG(RC)],
  53823. + [m4_define([LT_PROG_RC], defn([LT_PROG_RC])[LT_LANG(RC)])])
  53824. +])# _LT_LANG_DEFAULT_CONFIG
  53825. +
  53826. +# Obsolete macros:
  53827. +AU_DEFUN([AC_LIBTOOL_CXX], [LT_LANG(C++)])
  53828. +AU_DEFUN([AC_LIBTOOL_F77], [LT_LANG(Fortran 77)])
  53829. +AU_DEFUN([AC_LIBTOOL_FC], [LT_LANG(Fortran)])
  53830. +AU_DEFUN([AC_LIBTOOL_GCJ], [LT_LANG(Java)])
  53831. +dnl aclocal-1.4 backwards compatibility:
  53832. +dnl AC_DEFUN([AC_LIBTOOL_CXX], [])
  53833. +dnl AC_DEFUN([AC_LIBTOOL_F77], [])
  53834. +dnl AC_DEFUN([AC_LIBTOOL_FC], [])
  53835. +dnl AC_DEFUN([AC_LIBTOOL_GCJ], [])
  53836. +
  53837. +
  53838. +# _LT_TAG_COMPILER
  53839. +# ----------------
  53840. +m4_defun([_LT_TAG_COMPILER],
  53841. +[AC_REQUIRE([AC_PROG_CC])dnl
  53842. +
  53843. +_LT_DECL([LTCC], [CC], [1], [A C compiler])dnl
  53844. +_LT_DECL([LTCFLAGS], [CFLAGS], [1], [LTCC compiler flags])dnl
  53845. +_LT_TAGDECL([CC], [compiler], [1], [A language specific compiler])dnl
  53846. +_LT_TAGDECL([with_gcc], [GCC], [0], [Is the compiler the GNU compiler?])dnl
  53847. +
  53848. +# If no C compiler was specified, use CC.
  53849. +LTCC=${LTCC-"$CC"}
  53850. +
  53851. +# If no C compiler flags were specified, use CFLAGS.
  53852. +LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  53853. +
  53854. +# Allow CC to be a program name with arguments.
  53855. +compiler=$CC
  53856. +])# _LT_TAG_COMPILER
  53857. +
  53858. +
  53859. +# _LT_COMPILER_BOILERPLATE
  53860. +# ------------------------
  53861. +# Check for compiler boilerplate output or warnings with
  53862. +# the simple compiler test code.
  53863. +m4_defun([_LT_COMPILER_BOILERPLATE],
  53864. +[m4_require([_LT_DECL_SED])dnl
  53865. +ac_outfile=conftest.$ac_objext
  53866. +echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  53867. +eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  53868. +_lt_compiler_boilerplate=`cat conftest.err`
  53869. +$RM conftest*
  53870. +])# _LT_COMPILER_BOILERPLATE
  53871. +
  53872. +
  53873. +# _LT_LINKER_BOILERPLATE
  53874. +# ----------------------
  53875. +# Check for linker boilerplate output or warnings with
  53876. +# the simple link test code.
  53877. +m4_defun([_LT_LINKER_BOILERPLATE],
  53878. +[m4_require([_LT_DECL_SED])dnl
  53879. +ac_outfile=conftest.$ac_objext
  53880. +echo "$lt_simple_link_test_code" >conftest.$ac_ext
  53881. +eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  53882. +_lt_linker_boilerplate=`cat conftest.err`
  53883. +$RM -r conftest*
  53884. +])# _LT_LINKER_BOILERPLATE
  53885. +
  53886. +# _LT_REQUIRED_DARWIN_CHECKS
  53887. +# -------------------------
  53888. +m4_defun_once([_LT_REQUIRED_DARWIN_CHECKS],[
  53889. + case $host_os in
  53890. + rhapsody* | darwin*)
  53891. + AC_CHECK_TOOL([DSYMUTIL], [dsymutil], [:])
  53892. + AC_CHECK_TOOL([NMEDIT], [nmedit], [:])
  53893. + AC_CHECK_TOOL([LIPO], [lipo], [:])
  53894. + AC_CHECK_TOOL([OTOOL], [otool], [:])
  53895. + AC_CHECK_TOOL([OTOOL64], [otool64], [:])
  53896. + _LT_DECL([], [DSYMUTIL], [1],
  53897. + [Tool to manipulate archived DWARF debug symbol files on Mac OS X])
  53898. + _LT_DECL([], [NMEDIT], [1],
  53899. + [Tool to change global to local symbols on Mac OS X])
  53900. + _LT_DECL([], [LIPO], [1],
  53901. + [Tool to manipulate fat objects and archives on Mac OS X])
  53902. + _LT_DECL([], [OTOOL], [1],
  53903. + [ldd/readelf like tool for Mach-O binaries on Mac OS X])
  53904. + _LT_DECL([], [OTOOL64], [1],
  53905. + [ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4])
  53906. +
  53907. + AC_CACHE_CHECK([for -single_module linker flag],[lt_cv_apple_cc_single_mod],
  53908. + [lt_cv_apple_cc_single_mod=no
  53909. + if test -z "${LT_MULTI_MODULE}"; then
  53910. + # By default we will add the -single_module flag. You can override
  53911. + # by either setting the environment variable LT_MULTI_MODULE
  53912. + # non-empty at configure time, or by adding -multi_module to the
  53913. + # link flags.
  53914. + rm -rf libconftest.dylib*
  53915. + echo "int foo(void){return 1;}" > conftest.c
  53916. + echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  53917. +-dynamiclib -Wl,-single_module conftest.c" >&AS_MESSAGE_LOG_FD
  53918. + $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  53919. + -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  53920. + _lt_result=$?
  53921. + if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
  53922. + lt_cv_apple_cc_single_mod=yes
  53923. + else
  53924. + cat conftest.err >&AS_MESSAGE_LOG_FD
  53925. + fi
  53926. + rm -rf libconftest.dylib*
  53927. + rm -f conftest.*
  53928. + fi])
  53929. + AC_CACHE_CHECK([for -exported_symbols_list linker flag],
  53930. + [lt_cv_ld_exported_symbols_list],
  53931. + [lt_cv_ld_exported_symbols_list=no
  53932. + save_LDFLAGS=$LDFLAGS
  53933. + echo "_main" > conftest.sym
  53934. + LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  53935. + AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
  53936. + [lt_cv_ld_exported_symbols_list=yes],
  53937. + [lt_cv_ld_exported_symbols_list=no])
  53938. + LDFLAGS="$save_LDFLAGS"
  53939. + ])
  53940. + case $host_os in
  53941. + rhapsody* | darwin1.[[012]])
  53942. + _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
  53943. + darwin1.*)
  53944. + _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  53945. + darwin*) # darwin 5.x on
  53946. + # if running on 10.5 or later, the deployment target defaults
  53947. + # to the OS version, if on x86, and 10.4, the deployment
  53948. + # target defaults to 10.4. Don't you love it?
  53949. + case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
  53950. + 10.0,*86*-darwin8*|10.0,*-darwin[[91]]*)
  53951. + _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  53952. + 10.[[012]]*)
  53953. + _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  53954. + 10.*)
  53955. + _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  53956. + esac
  53957. + ;;
  53958. + esac
  53959. + if test "$lt_cv_apple_cc_single_mod" = "yes"; then
  53960. + _lt_dar_single_mod='$single_module'
  53961. + fi
  53962. + if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
  53963. + _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
  53964. + else
  53965. + _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
  53966. + fi
  53967. + if test "$DSYMUTIL" != ":"; then
  53968. + _lt_dsymutil='~$DSYMUTIL $lib || :'
  53969. + else
  53970. + _lt_dsymutil=
  53971. + fi
  53972. + ;;
  53973. + esac
  53974. +])
  53975. +
  53976. +
  53977. +# _LT_DARWIN_LINKER_FEATURES
  53978. +# --------------------------
  53979. +# Checks for linker and compiler features on darwin
  53980. +m4_defun([_LT_DARWIN_LINKER_FEATURES],
  53981. +[
  53982. + m4_require([_LT_REQUIRED_DARWIN_CHECKS])
  53983. + _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  53984. + _LT_TAGVAR(hardcode_direct, $1)=no
  53985. + _LT_TAGVAR(hardcode_automatic, $1)=yes
  53986. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
  53987. + _LT_TAGVAR(whole_archive_flag_spec, $1)=''
  53988. + _LT_TAGVAR(link_all_deplibs, $1)=yes
  53989. + _LT_TAGVAR(allow_undefined_flag, $1)="$_lt_dar_allow_undefined"
  53990. + case $cc_basename in
  53991. + ifort*) _lt_dar_can_shared=yes ;;
  53992. + *) _lt_dar_can_shared=$GCC ;;
  53993. + esac
  53994. + if test "$_lt_dar_can_shared" = "yes"; then
  53995. + output_verbose_link_cmd=echo
  53996. + _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}"
  53997. + _LT_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  53998. + _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}"
  53999. + _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}"
  54000. + m4_if([$1], [CXX],
  54001. +[ if test "$lt_cv_apple_cc_single_mod" != "yes"; then
  54002. + _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}"
  54003. + _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}"
  54004. + fi
  54005. +],[])
  54006. + else
  54007. + _LT_TAGVAR(ld_shlibs, $1)=no
  54008. + fi
  54009. +])
  54010. +
  54011. +# _LT_SYS_MODULE_PATH_AIX
  54012. +# -----------------------
  54013. +# Links a minimal program and checks the executable
  54014. +# for the system default hardcoded library path. In most cases,
  54015. +# this is /usr/lib:/lib, but when the MPI compilers are used
  54016. +# the location of the communication and MPI libs are included too.
  54017. +# If we don't find anything, use the default library path according
  54018. +# to the aix ld manual.
  54019. +m4_defun([_LT_SYS_MODULE_PATH_AIX],
  54020. +[m4_require([_LT_DECL_SED])dnl
  54021. +AC_LINK_IFELSE(AC_LANG_PROGRAM,[
  54022. +lt_aix_libpath_sed='
  54023. + /Import File Strings/,/^$/ {
  54024. + /^0/ {
  54025. + s/^0 *\(.*\)$/\1/
  54026. + p
  54027. + }
  54028. + }'
  54029. +aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  54030. +# Check for a 64-bit object if we didn't find anything.
  54031. +if test -z "$aix_libpath"; then
  54032. + aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  54033. +fi],[])
  54034. +if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  54035. +])# _LT_SYS_MODULE_PATH_AIX
  54036. +
  54037. +
  54038. +# _LT_SHELL_INIT(ARG)
  54039. +# -------------------
  54040. +m4_define([_LT_SHELL_INIT],
  54041. +[ifdef([AC_DIVERSION_NOTICE],
  54042. + [AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)],
  54043. + [AC_DIVERT_PUSH(NOTICE)])
  54044. +$1
  54045. +AC_DIVERT_POP
  54046. +])# _LT_SHELL_INIT
  54047. +
  54048. +
  54049. +# _LT_PROG_ECHO_BACKSLASH
  54050. +# -----------------------
  54051. +# Add some code to the start of the generated configure script which
  54052. +# will find an echo command which doesn't interpret backslashes.
  54053. +m4_defun([_LT_PROG_ECHO_BACKSLASH],
  54054. +[_LT_SHELL_INIT([
  54055. +# Check that we are running under the correct shell.
  54056. +SHELL=${CONFIG_SHELL-/bin/sh}
  54057. +
  54058. +case X$lt_ECHO in
  54059. +X*--fallback-echo)
  54060. + # Remove one level of quotation (which was required for Make).
  54061. + ECHO=`echo "$lt_ECHO" | sed 's,\\\\\[$]\\[$]0,'[$]0','`
  54062. + ;;
  54063. +esac
  54064. +
  54065. +ECHO=${lt_ECHO-echo}
  54066. +if test "X[$]1" = X--no-reexec; then
  54067. + # Discard the --no-reexec flag, and continue.
  54068. + shift
  54069. +elif test "X[$]1" = X--fallback-echo; then
  54070. + # Avoid inline document here, it may be left over
  54071. + :
  54072. +elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
  54073. + # Yippee, $ECHO works!
  54074. + :
  54075. +else
  54076. + # Restart under the correct shell.
  54077. + exec $SHELL "[$]0" --no-reexec ${1+"[$]@"}
  54078. +fi
  54079. +
  54080. +if test "X[$]1" = X--fallback-echo; then
  54081. + # used as fallback echo
  54082. + shift
  54083. + cat <<_LT_EOF
  54084. +[$]*
  54085. +_LT_EOF
  54086. + exit 0
  54087. +fi
  54088. +
  54089. +# The HP-UX ksh and POSIX shell print the target directory to stdout
  54090. +# if CDPATH is set.
  54091. +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  54092. +
  54093. +if test -z "$lt_ECHO"; then
  54094. + if test "X${echo_test_string+set}" != Xset; then
  54095. + # find a string as large as possible, as long as the shell can cope with it
  54096. + for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do
  54097. + # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
  54098. + if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
  54099. + { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
  54100. + then
  54101. + break
  54102. + fi
  54103. + done
  54104. + fi
  54105. +
  54106. + if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
  54107. + echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
  54108. + test "X$echo_testing_string" = "X$echo_test_string"; then
  54109. + :
  54110. + else
  54111. + # The Solaris, AIX, and Digital Unix default echo programs unquote
  54112. + # backslashes. This makes it impossible to quote backslashes using
  54113. + # echo "$something" | sed 's/\\/\\\\/g'
  54114. + #
  54115. + # So, first we look for a working echo in the user's PATH.
  54116. +
  54117. + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  54118. + for dir in $PATH /usr/ucb; do
  54119. + IFS="$lt_save_ifs"
  54120. + if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
  54121. + test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
  54122. + echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
  54123. + test "X$echo_testing_string" = "X$echo_test_string"; then
  54124. + ECHO="$dir/echo"
  54125. + break
  54126. + fi
  54127. + done
  54128. + IFS="$lt_save_ifs"
  54129. +
  54130. + if test "X$ECHO" = Xecho; then
  54131. + # We didn't find a better echo, so look for alternatives.
  54132. + if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
  54133. + echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
  54134. + test "X$echo_testing_string" = "X$echo_test_string"; then
  54135. + # This shell has a builtin print -r that does the trick.
  54136. + ECHO='print -r'
  54137. + elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
  54138. + test "X$CONFIG_SHELL" != X/bin/ksh; then
  54139. + # If we have ksh, try running configure again with it.
  54140. + ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
  54141. + export ORIGINAL_CONFIG_SHELL
  54142. + CONFIG_SHELL=/bin/ksh
  54143. + export CONFIG_SHELL
  54144. + exec $CONFIG_SHELL "[$]0" --no-reexec ${1+"[$]@"}
  54145. + else
  54146. + # Try using printf.
  54147. + ECHO='printf %s\n'
  54148. + if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
  54149. + echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
  54150. + test "X$echo_testing_string" = "X$echo_test_string"; then
  54151. + # Cool, printf works
  54152. + :
  54153. + elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
  54154. + test "X$echo_testing_string" = 'X\t' &&
  54155. + echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  54156. + test "X$echo_testing_string" = "X$echo_test_string"; then
  54157. + CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
  54158. + export CONFIG_SHELL
  54159. + SHELL="$CONFIG_SHELL"
  54160. + export SHELL
  54161. + ECHO="$CONFIG_SHELL [$]0 --fallback-echo"
  54162. + elif echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
  54163. + test "X$echo_testing_string" = 'X\t' &&
  54164. + echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  54165. + test "X$echo_testing_string" = "X$echo_test_string"; then
  54166. + ECHO="$CONFIG_SHELL [$]0 --fallback-echo"
  54167. + else
  54168. + # maybe with a smaller string...
  54169. + prev=:
  54170. +
  54171. + for cmd in 'echo test' 'sed 2q "[$]0"' 'sed 10q "[$]0"' 'sed 20q "[$]0"' 'sed 50q "[$]0"'; do
  54172. + if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
  54173. + then
  54174. + break
  54175. + fi
  54176. + prev="$cmd"
  54177. + done
  54178. +
  54179. + if test "$prev" != 'sed 50q "[$]0"'; then
  54180. + echo_test_string=`eval $prev`
  54181. + export echo_test_string
  54182. + exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "[$]0" ${1+"[$]@"}
  54183. + else
  54184. + # Oops. We lost completely, so just stick with echo.
  54185. + ECHO=echo
  54186. + fi
  54187. + fi
  54188. + fi
  54189. + fi
  54190. + fi
  54191. +fi
  54192. +
  54193. +# Copy echo and quote the copy suitably for passing to libtool from
  54194. +# the Makefile, instead of quoting the original, which is used later.
  54195. +lt_ECHO=$ECHO
  54196. +if test "X$lt_ECHO" = "X$CONFIG_SHELL [$]0 --fallback-echo"; then
  54197. + lt_ECHO="$CONFIG_SHELL \\\$\[$]0 --fallback-echo"
  54198. +fi
  54199. +
  54200. +AC_SUBST(lt_ECHO)
  54201. +])
  54202. +_LT_DECL([], [SHELL], [1], [Shell to use when invoking shell scripts])
  54203. +_LT_DECL([], [ECHO], [1],
  54204. + [An echo program that does not interpret backslashes])
  54205. +])# _LT_PROG_ECHO_BACKSLASH
  54206. +
  54207. +
  54208. +# _LT_ENABLE_LOCK
  54209. +# ---------------
  54210. +m4_defun([_LT_ENABLE_LOCK],
  54211. +[AC_ARG_ENABLE([libtool-lock],
  54212. + [AS_HELP_STRING([--disable-libtool-lock],
  54213. + [avoid locking (might break parallel builds)])])
  54214. +test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  54215. +
  54216. +# Some flags need to be propagated to the compiler or linker for good
  54217. +# libtool support.
  54218. +case $host in
  54219. +ia64-*-hpux*)
  54220. + # Find out which ABI we are using.
  54221. + echo 'int i;' > conftest.$ac_ext
  54222. + if AC_TRY_EVAL(ac_compile); then
  54223. + case `/usr/bin/file conftest.$ac_objext` in
  54224. + *ELF-32*)
  54225. + HPUX_IA64_MODE="32"
  54226. + ;;
  54227. + *ELF-64*)
  54228. + HPUX_IA64_MODE="64"
  54229. + ;;
  54230. + esac
  54231. + fi
  54232. + rm -rf conftest*
  54233. + ;;
  54234. +*-*-irix6*)
  54235. + # Find out which ABI we are using.
  54236. + echo '[#]line __oline__ "configure"' > conftest.$ac_ext
  54237. + if AC_TRY_EVAL(ac_compile); then
  54238. + if test "$lt_cv_prog_gnu_ld" = yes; then
  54239. + case `/usr/bin/file conftest.$ac_objext` in
  54240. + *32-bit*)
  54241. + LD="${LD-ld} -melf32bsmip"
  54242. + ;;
  54243. + *N32*)
  54244. + LD="${LD-ld} -melf32bmipn32"
  54245. + ;;
  54246. + *64-bit*)
  54247. + LD="${LD-ld} -melf64bmip"
  54248. + ;;
  54249. + esac
  54250. + else
  54251. + case `/usr/bin/file conftest.$ac_objext` in
  54252. + *32-bit*)
  54253. + LD="${LD-ld} -32"
  54254. + ;;
  54255. + *N32*)
  54256. + LD="${LD-ld} -n32"
  54257. + ;;
  54258. + *64-bit*)
  54259. + LD="${LD-ld} -64"
  54260. + ;;
  54261. + esac
  54262. + fi
  54263. + fi
  54264. + rm -rf conftest*
  54265. + ;;
  54266. +
  54267. +x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
  54268. +s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  54269. + # Find out which ABI we are using.
  54270. + echo 'int i;' > conftest.$ac_ext
  54271. + if AC_TRY_EVAL(ac_compile); then
  54272. + case `/usr/bin/file conftest.o` in
  54273. + *32-bit*)
  54274. + case $host in
  54275. + x86_64-*kfreebsd*-gnu)
  54276. + LD="${LD-ld} -m elf_i386_fbsd"
  54277. + ;;
  54278. + x86_64-*linux*)
  54279. + LD="${LD-ld} -m elf_i386"
  54280. + ;;
  54281. + ppc64-*linux*|powerpc64-*linux*)
  54282. + LD="${LD-ld} -m elf32ppclinux"
  54283. + ;;
  54284. + s390x-*linux*)
  54285. + LD="${LD-ld} -m elf_s390"
  54286. + ;;
  54287. + sparc64-*linux*)
  54288. + LD="${LD-ld} -m elf32_sparc"
  54289. + ;;
  54290. + esac
  54291. + ;;
  54292. + *64-bit*)
  54293. + case $host in
  54294. + x86_64-*kfreebsd*-gnu)
  54295. + LD="${LD-ld} -m elf_x86_64_fbsd"
  54296. + ;;
  54297. + x86_64-*linux*)
  54298. + LD="${LD-ld} -m elf_x86_64"
  54299. + ;;
  54300. + ppc*-*linux*|powerpc*-*linux*)
  54301. + LD="${LD-ld} -m elf64ppc"
  54302. + ;;
  54303. + s390*-*linux*|s390*-*tpf*)
  54304. + LD="${LD-ld} -m elf64_s390"
  54305. + ;;
  54306. + sparc*-*linux*)
  54307. + LD="${LD-ld} -m elf64_sparc"
  54308. + ;;
  54309. + esac
  54310. + ;;
  54311. + esac
  54312. + fi
  54313. + rm -rf conftest*
  54314. + ;;
  54315. +
  54316. +*-*-sco3.2v5*)
  54317. + # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  54318. + SAVE_CFLAGS="$CFLAGS"
  54319. + CFLAGS="$CFLAGS -belf"
  54320. + AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf,
  54321. + [AC_LANG_PUSH(C)
  54322. + AC_LINK_IFELSE([AC_LANG_PROGRAM([[]],[[]])],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])
  54323. + AC_LANG_POP])
  54324. + if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  54325. + # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  54326. + CFLAGS="$SAVE_CFLAGS"
  54327. + fi
  54328. + ;;
  54329. +sparc*-*solaris*)
  54330. + # Find out which ABI we are using.
  54331. + echo 'int i;' > conftest.$ac_ext
  54332. + if AC_TRY_EVAL(ac_compile); then
  54333. + case `/usr/bin/file conftest.o` in
  54334. + *64-bit*)
  54335. + case $lt_cv_prog_gnu_ld in
  54336. + yes*) LD="${LD-ld} -m elf64_sparc" ;;
  54337. + *)
  54338. + if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  54339. + LD="${LD-ld} -64"
  54340. + fi
  54341. + ;;
  54342. + esac
  54343. + ;;
  54344. + esac
  54345. + fi
  54346. + rm -rf conftest*
  54347. + ;;
  54348. +esac
  54349. +
  54350. +need_locks="$enable_libtool_lock"
  54351. +])# _LT_ENABLE_LOCK
  54352. +
  54353. +
  54354. +# _LT_CMD_OLD_ARCHIVE
  54355. +# -------------------
  54356. +m4_defun([_LT_CMD_OLD_ARCHIVE],
  54357. +[AC_CHECK_TOOL(AR, ar, false)
  54358. +test -z "$AR" && AR=ar
  54359. +test -z "$AR_FLAGS" && AR_FLAGS=cru
  54360. +_LT_DECL([], [AR], [1], [The archiver])
  54361. +_LT_DECL([], [AR_FLAGS], [1])
  54362. +
  54363. +AC_CHECK_TOOL(STRIP, strip, :)
  54364. +test -z "$STRIP" && STRIP=:
  54365. +_LT_DECL([], [STRIP], [1], [A symbol stripping program])
  54366. +
  54367. +AC_CHECK_TOOL(RANLIB, ranlib, :)
  54368. +test -z "$RANLIB" && RANLIB=:
  54369. +_LT_DECL([], [RANLIB], [1],
  54370. + [Commands used to install an old-style archive])
  54371. +
  54372. +# Determine commands to create old-style static archives.
  54373. +old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  54374. +old_postinstall_cmds='chmod 644 $oldlib'
  54375. +old_postuninstall_cmds=
  54376. +
  54377. +if test -n "$RANLIB"; then
  54378. + case $host_os in
  54379. + openbsd*)
  54380. + old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
  54381. + ;;
  54382. + *)
  54383. + old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
  54384. + ;;
  54385. + esac
  54386. + old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
  54387. +fi
  54388. +_LT_DECL([], [old_postinstall_cmds], [2])
  54389. +_LT_DECL([], [old_postuninstall_cmds], [2])
  54390. +_LT_TAGDECL([], [old_archive_cmds], [2],
  54391. + [Commands used to build an old-style archive])
  54392. +])# _LT_CMD_OLD_ARCHIVE
  54393. +
  54394. +
  54395. +# _LT_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
  54396. +# [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE])
  54397. +# ----------------------------------------------------------------
  54398. +# Check whether the given compiler option works
  54399. +AC_DEFUN([_LT_COMPILER_OPTION],
  54400. +[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  54401. +m4_require([_LT_DECL_SED])dnl
  54402. +AC_CACHE_CHECK([$1], [$2],
  54403. + [$2=no
  54404. + m4_if([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4])
  54405. + echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  54406. + lt_compiler_flag="$3"
  54407. + # Insert the option either (1) after the last *FLAGS variable, or
  54408. + # (2) before a word containing "conftest.", or (3) at the end.
  54409. + # Note that $ac_compile itself does not contain backslashes and begins
  54410. + # with a dollar sign (not a hyphen), so the echo should work correctly.
  54411. + # The option is referenced via a variable to avoid confusing sed.
  54412. + lt_compile=`echo "$ac_compile" | $SED \
  54413. + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  54414. + -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
  54415. + -e 's:$: $lt_compiler_flag:'`
  54416. + (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
  54417. + (eval "$lt_compile" 2>conftest.err)
  54418. + ac_status=$?
  54419. + cat conftest.err >&AS_MESSAGE_LOG_FD
  54420. + echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
  54421. + if (exit $ac_status) && test -s "$ac_outfile"; then
  54422. + # The compiler can only warn and ignore the option if not recognized
  54423. + # So say no if there are warnings other than the usual output.
  54424. + $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  54425. + $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  54426. + if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  54427. + $2=yes
  54428. + fi
  54429. + fi
  54430. + $RM conftest*
  54431. +])
  54432. +
  54433. +if test x"[$]$2" = xyes; then
  54434. + m4_if([$5], , :, [$5])
  54435. +else
  54436. + m4_if([$6], , :, [$6])
  54437. +fi
  54438. +])# _LT_COMPILER_OPTION
  54439. +
  54440. +# Old name:
  54441. +AU_ALIAS([AC_LIBTOOL_COMPILER_OPTION], [_LT_COMPILER_OPTION])
  54442. +dnl aclocal-1.4 backwards compatibility:
  54443. +dnl AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION], [])
  54444. +
  54445. +
  54446. +# _LT_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
  54447. +# [ACTION-SUCCESS], [ACTION-FAILURE])
  54448. +# ----------------------------------------------------
  54449. +# Check whether the given linker option works
  54450. +AC_DEFUN([_LT_LINKER_OPTION],
  54451. +[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  54452. +m4_require([_LT_DECL_SED])dnl
  54453. +AC_CACHE_CHECK([$1], [$2],
  54454. + [$2=no
  54455. + save_LDFLAGS="$LDFLAGS"
  54456. + LDFLAGS="$LDFLAGS $3"
  54457. + echo "$lt_simple_link_test_code" > conftest.$ac_ext
  54458. + if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  54459. + # The linker can only warn and ignore the option if not recognized
  54460. + # So say no if there are warnings
  54461. + if test -s conftest.err; then
  54462. + # Append any errors to the config.log.
  54463. + cat conftest.err 1>&AS_MESSAGE_LOG_FD
  54464. + $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
  54465. + $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  54466. + if diff conftest.exp conftest.er2 >/dev/null; then
  54467. + $2=yes
  54468. + fi
  54469. + else
  54470. + $2=yes
  54471. + fi
  54472. + fi
  54473. + $RM -r conftest*
  54474. + LDFLAGS="$save_LDFLAGS"
  54475. +])
  54476. +
  54477. +if test x"[$]$2" = xyes; then
  54478. + m4_if([$4], , :, [$4])
  54479. +else
  54480. + m4_if([$5], , :, [$5])
  54481. +fi
  54482. +])# _LT_LINKER_OPTION
  54483. +
  54484. +# Old name:
  54485. +AU_ALIAS([AC_LIBTOOL_LINKER_OPTION], [_LT_LINKER_OPTION])
  54486. +dnl aclocal-1.4 backwards compatibility:
  54487. +dnl AC_DEFUN([AC_LIBTOOL_LINKER_OPTION], [])
  54488. +
  54489. +
  54490. +# LT_CMD_MAX_LEN
  54491. +#---------------
  54492. +AC_DEFUN([LT_CMD_MAX_LEN],
  54493. +[AC_REQUIRE([AC_CANONICAL_HOST])dnl
  54494. +# find the maximum length of command line arguments
  54495. +AC_MSG_CHECKING([the maximum length of command line arguments])
  54496. +AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl
  54497. + i=0
  54498. + teststring="ABCD"
  54499. +
  54500. + case $build_os in
  54501. + msdosdjgpp*)
  54502. + # On DJGPP, this test can blow up pretty badly due to problems in libc
  54503. + # (any single argument exceeding 2000 bytes causes a buffer overrun
  54504. + # during glob expansion). Even if it were fixed, the result of this
  54505. + # check would be larger than it should be.
  54506. + lt_cv_sys_max_cmd_len=12288; # 12K is about right
  54507. + ;;
  54508. +
  54509. + gnu*)
  54510. + # Under GNU Hurd, this test is not required because there is
  54511. + # no limit to the length of command line arguments.
  54512. + # Libtool will interpret -1 as no limit whatsoever
  54513. + lt_cv_sys_max_cmd_len=-1;
  54514. + ;;
  54515. +
  54516. + cygwin* | mingw* | cegcc*)
  54517. + # On Win9x/ME, this test blows up -- it succeeds, but takes
  54518. + # about 5 minutes as the teststring grows exponentially.
  54519. + # Worse, since 9x/ME are not pre-emptively multitasking,
  54520. + # you end up with a "frozen" computer, even though with patience
  54521. + # the test eventually succeeds (with a max line length of 256k).
  54522. + # Instead, let's just punt: use the minimum linelength reported by
  54523. + # all of the supported platforms: 8192 (on NT/2K/XP).
  54524. + lt_cv_sys_max_cmd_len=8192;
  54525. + ;;
  54526. +
  54527. + amigaos*)
  54528. + # On AmigaOS with pdksh, this test takes hours, literally.
  54529. + # So we just punt and use a minimum line length of 8192.
  54530. + lt_cv_sys_max_cmd_len=8192;
  54531. + ;;
  54532. +
  54533. + netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  54534. + # This has been around since 386BSD, at least. Likely further.
  54535. + if test -x /sbin/sysctl; then
  54536. + lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  54537. + elif test -x /usr/sbin/sysctl; then
  54538. + lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  54539. + else
  54540. + lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  54541. + fi
  54542. + # And add a safety zone
  54543. + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  54544. + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  54545. + ;;
  54546. +
  54547. + interix*)
  54548. + # We know the value 262144 and hardcode it with a safety zone (like BSD)
  54549. + lt_cv_sys_max_cmd_len=196608
  54550. + ;;
  54551. +
  54552. + osf*)
  54553. + # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  54554. + # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  54555. + # nice to cause kernel panics so lets avoid the loop below.
  54556. + # First set a reasonable default.
  54557. + lt_cv_sys_max_cmd_len=16384
  54558. + #
  54559. + if test -x /sbin/sysconfig; then
  54560. + case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  54561. + *1*) lt_cv_sys_max_cmd_len=-1 ;;
  54562. + esac
  54563. + fi
  54564. + ;;
  54565. + sco3.2v5*)
  54566. + lt_cv_sys_max_cmd_len=102400
  54567. + ;;
  54568. + sysv5* | sco5v6* | sysv4.2uw2*)
  54569. + kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  54570. + if test -n "$kargmax"; then
  54571. + lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[ ]]//'`
  54572. + else
  54573. + lt_cv_sys_max_cmd_len=32768
  54574. + fi
  54575. + ;;
  54576. + *)
  54577. + lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  54578. + if test -n "$lt_cv_sys_max_cmd_len"; then
  54579. + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  54580. + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  54581. + else
  54582. + # Make teststring a little bigger before we do anything with it.
  54583. + # a 1K string should be a reasonable start.
  54584. + for i in 1 2 3 4 5 6 7 8 ; do
  54585. + teststring=$teststring$teststring
  54586. + done
  54587. + SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  54588. + # If test is not a shell built-in, we'll probably end up computing a
  54589. + # maximum length that is only half of the actual maximum length, but
  54590. + # we can't tell.
  54591. + while { test "X"`$SHELL [$]0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
  54592. + = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
  54593. + test $i != 17 # 1/2 MB should be enough
  54594. + do
  54595. + i=`expr $i + 1`
  54596. + teststring=$teststring$teststring
  54597. + done
  54598. + # Only check the string length outside the loop.
  54599. + lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  54600. + teststring=
  54601. + # Add a significant safety factor because C++ compilers can tack on
  54602. + # massive amounts of additional arguments before passing them to the
  54603. + # linker. It appears as though 1/2 is a usable value.
  54604. + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  54605. + fi
  54606. + ;;
  54607. + esac
  54608. +])
  54609. +if test -n $lt_cv_sys_max_cmd_len ; then
  54610. + AC_MSG_RESULT($lt_cv_sys_max_cmd_len)
  54611. +else
  54612. + AC_MSG_RESULT(none)
  54613. +fi
  54614. +max_cmd_len=$lt_cv_sys_max_cmd_len
  54615. +_LT_DECL([], [max_cmd_len], [0],
  54616. + [What is the maximum length of a command?])
  54617. +])# LT_CMD_MAX_LEN
  54618. +
  54619. +# Old name:
  54620. +AU_ALIAS([AC_LIBTOOL_SYS_MAX_CMD_LEN], [LT_CMD_MAX_LEN])
  54621. +dnl aclocal-1.4 backwards compatibility:
  54622. +dnl AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN], [])
  54623. +
  54624. +
  54625. +# _LT_HEADER_DLFCN
  54626. +# ----------------
  54627. +m4_defun([_LT_HEADER_DLFCN],
  54628. +[AC_CHECK_HEADERS([dlfcn.h], [], [], [AC_INCLUDES_DEFAULT])dnl
  54629. +])# _LT_HEADER_DLFCN
  54630. +
  54631. +
  54632. +# _LT_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
  54633. +# ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
  54634. +# ----------------------------------------------------------------
  54635. +m4_defun([_LT_TRY_DLOPEN_SELF],
  54636. +[m4_require([_LT_HEADER_DLFCN])dnl
  54637. +if test "$cross_compiling" = yes; then :
  54638. + [$4]
  54639. +else
  54640. + lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  54641. + lt_status=$lt_dlunknown
  54642. + cat > conftest.$ac_ext <<_LT_EOF
  54643. +[#line __oline__ "configure"
  54644. +#include "confdefs.h"
  54645. +
  54646. +#if HAVE_DLFCN_H
  54647. +#include <dlfcn.h>
  54648. +#endif
  54649. +
  54650. +#include <stdio.h>
  54651. +
  54652. +#ifdef RTLD_GLOBAL
  54653. +# define LT_DLGLOBAL RTLD_GLOBAL
  54654. +#else
  54655. +# ifdef DL_GLOBAL
  54656. +# define LT_DLGLOBAL DL_GLOBAL
  54657. +# else
  54658. +# define LT_DLGLOBAL 0
  54659. +# endif
  54660. +#endif
  54661. +
  54662. +/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  54663. + find out it does not work in some platform. */
  54664. +#ifndef LT_DLLAZY_OR_NOW
  54665. +# ifdef RTLD_LAZY
  54666. +# define LT_DLLAZY_OR_NOW RTLD_LAZY
  54667. +# else
  54668. +# ifdef DL_LAZY
  54669. +# define LT_DLLAZY_OR_NOW DL_LAZY
  54670. +# else
  54671. +# ifdef RTLD_NOW
  54672. +# define LT_DLLAZY_OR_NOW RTLD_NOW
  54673. +# else
  54674. +# ifdef DL_NOW
  54675. +# define LT_DLLAZY_OR_NOW DL_NOW
  54676. +# else
  54677. +# define LT_DLLAZY_OR_NOW 0
  54678. +# endif
  54679. +# endif
  54680. +# endif
  54681. +# endif
  54682. +#endif
  54683. +
  54684. +void fnord() { int i=42;}
  54685. +int main ()
  54686. +{
  54687. + void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  54688. + int status = $lt_dlunknown;
  54689. +
  54690. + if (self)
  54691. + {
  54692. + if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  54693. + else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  54694. + /* dlclose (self); */
  54695. + }
  54696. + else
  54697. + puts (dlerror ());
  54698. +
  54699. + return status;
  54700. +}]
  54701. +_LT_EOF
  54702. + if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then
  54703. + (./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null
  54704. + lt_status=$?
  54705. + case x$lt_status in
  54706. + x$lt_dlno_uscore) $1 ;;
  54707. + x$lt_dlneed_uscore) $2 ;;
  54708. + x$lt_dlunknown|x*) $3 ;;
  54709. + esac
  54710. + else :
  54711. + # compilation failed
  54712. + $3
  54713. + fi
  54714. +fi
  54715. +rm -fr conftest*
  54716. +])# _LT_TRY_DLOPEN_SELF
  54717. +
  54718. +
  54719. +# LT_SYS_DLOPEN_SELF
  54720. +# ------------------
  54721. +AC_DEFUN([LT_SYS_DLOPEN_SELF],
  54722. +[m4_require([_LT_HEADER_DLFCN])dnl
  54723. +if test "x$enable_dlopen" != xyes; then
  54724. + enable_dlopen=unknown
  54725. + enable_dlopen_self=unknown
  54726. + enable_dlopen_self_static=unknown
  54727. +else
  54728. + lt_cv_dlopen=no
  54729. + lt_cv_dlopen_libs=
  54730. +
  54731. + case $host_os in
  54732. + beos*)
  54733. + lt_cv_dlopen="load_add_on"
  54734. + lt_cv_dlopen_libs=
  54735. + lt_cv_dlopen_self=yes
  54736. + ;;
  54737. +
  54738. + mingw* | pw32* | cegcc*)
  54739. + lt_cv_dlopen="LoadLibrary"
  54740. + lt_cv_dlopen_libs=
  54741. + ;;
  54742. +
  54743. + cygwin*)
  54744. + lt_cv_dlopen="dlopen"
  54745. + lt_cv_dlopen_libs=
  54746. + ;;
  54747. +
  54748. + darwin*)
  54749. + # if libdl is installed we need to link against it
  54750. + AC_CHECK_LIB([dl], [dlopen],
  54751. + [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],[
  54752. + lt_cv_dlopen="dyld"
  54753. + lt_cv_dlopen_libs=
  54754. + lt_cv_dlopen_self=yes
  54755. + ])
  54756. + ;;
  54757. +
  54758. + *)
  54759. + AC_CHECK_FUNC([shl_load],
  54760. + [lt_cv_dlopen="shl_load"],
  54761. + [AC_CHECK_LIB([dld], [shl_load],
  54762. + [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"],
  54763. + [AC_CHECK_FUNC([dlopen],
  54764. + [lt_cv_dlopen="dlopen"],
  54765. + [AC_CHECK_LIB([dl], [dlopen],
  54766. + [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],
  54767. + [AC_CHECK_LIB([svld], [dlopen],
  54768. + [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"],
  54769. + [AC_CHECK_LIB([dld], [dld_link],
  54770. + [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"])
  54771. + ])
  54772. + ])
  54773. + ])
  54774. + ])
  54775. + ])
  54776. + ;;
  54777. + esac
  54778. +
  54779. + if test "x$lt_cv_dlopen" != xno; then
  54780. + enable_dlopen=yes
  54781. + else
  54782. + enable_dlopen=no
  54783. + fi
  54784. +
  54785. + case $lt_cv_dlopen in
  54786. + dlopen)
  54787. + save_CPPFLAGS="$CPPFLAGS"
  54788. + test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  54789. +
  54790. + save_LDFLAGS="$LDFLAGS"
  54791. + wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  54792. +
  54793. + save_LIBS="$LIBS"
  54794. + LIBS="$lt_cv_dlopen_libs $LIBS"
  54795. +
  54796. + AC_CACHE_CHECK([whether a program can dlopen itself],
  54797. + lt_cv_dlopen_self, [dnl
  54798. + _LT_TRY_DLOPEN_SELF(
  54799. + lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes,
  54800. + lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross)
  54801. + ])
  54802. +
  54803. + if test "x$lt_cv_dlopen_self" = xyes; then
  54804. + wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  54805. + AC_CACHE_CHECK([whether a statically linked program can dlopen itself],
  54806. + lt_cv_dlopen_self_static, [dnl
  54807. + _LT_TRY_DLOPEN_SELF(
  54808. + lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes,
  54809. + lt_cv_dlopen_self_static=no, lt_cv_dlopen_self_static=cross)
  54810. + ])
  54811. + fi
  54812. +
  54813. + CPPFLAGS="$save_CPPFLAGS"
  54814. + LDFLAGS="$save_LDFLAGS"
  54815. + LIBS="$save_LIBS"
  54816. + ;;
  54817. + esac
  54818. +
  54819. + case $lt_cv_dlopen_self in
  54820. + yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  54821. + *) enable_dlopen_self=unknown ;;
  54822. + esac
  54823. +
  54824. + case $lt_cv_dlopen_self_static in
  54825. + yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  54826. + *) enable_dlopen_self_static=unknown ;;
  54827. + esac
  54828. +fi
  54829. +_LT_DECL([dlopen_support], [enable_dlopen], [0],
  54830. + [Whether dlopen is supported])
  54831. +_LT_DECL([dlopen_self], [enable_dlopen_self], [0],
  54832. + [Whether dlopen of programs is supported])
  54833. +_LT_DECL([dlopen_self_static], [enable_dlopen_self_static], [0],
  54834. + [Whether dlopen of statically linked programs is supported])
  54835. +])# LT_SYS_DLOPEN_SELF
  54836. +
  54837. +# Old name:
  54838. +AU_ALIAS([AC_LIBTOOL_DLOPEN_SELF], [LT_SYS_DLOPEN_SELF])
  54839. +dnl aclocal-1.4 backwards compatibility:
  54840. +dnl AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF], [])
  54841. +
  54842. +
  54843. +# _LT_COMPILER_C_O([TAGNAME])
  54844. +# ---------------------------
  54845. +# Check to see if options -c and -o are simultaneously supported by compiler.
  54846. +# This macro does not hard code the compiler like AC_PROG_CC_C_O.
  54847. +m4_defun([_LT_COMPILER_C_O],
  54848. +[m4_require([_LT_DECL_SED])dnl
  54849. +m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  54850. +m4_require([_LT_TAG_COMPILER])dnl
  54851. +AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext],
  54852. + [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)],
  54853. + [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no
  54854. + $RM -r conftest 2>/dev/null
  54855. + mkdir conftest
  54856. + cd conftest
  54857. + mkdir out
  54858. + echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  54859. +
  54860. + lt_compiler_flag="-o out/conftest2.$ac_objext"
  54861. + # Insert the option either (1) after the last *FLAGS variable, or
  54862. + # (2) before a word containing "conftest.", or (3) at the end.
  54863. + # Note that $ac_compile itself does not contain backslashes and begins
  54864. + # with a dollar sign (not a hyphen), so the echo should work correctly.
  54865. + lt_compile=`echo "$ac_compile" | $SED \
  54866. + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  54867. + -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
  54868. + -e 's:$: $lt_compiler_flag:'`
  54869. + (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
  54870. + (eval "$lt_compile" 2>out/conftest.err)
  54871. + ac_status=$?
  54872. + cat out/conftest.err >&AS_MESSAGE_LOG_FD
  54873. + echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
  54874. + if (exit $ac_status) && test -s out/conftest2.$ac_objext
  54875. + then
  54876. + # The compiler can only warn and ignore the option if not recognized
  54877. + # So say no if there are warnings
  54878. + $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  54879. + $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  54880. + if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  54881. + _LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
  54882. + fi
  54883. + fi
  54884. + chmod u+w . 2>&AS_MESSAGE_LOG_FD
  54885. + $RM conftest*
  54886. + # SGI C++ compiler will create directory out/ii_files/ for
  54887. + # template instantiation
  54888. + test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  54889. + $RM out/* && rmdir out
  54890. + cd ..
  54891. + $RM -r conftest
  54892. + $RM conftest*
  54893. +])
  54894. +_LT_TAGDECL([compiler_c_o], [lt_cv_prog_compiler_c_o], [1],
  54895. + [Does compiler simultaneously support -c and -o options?])
  54896. +])# _LT_COMPILER_C_O
  54897. +
  54898. +
  54899. +# _LT_COMPILER_FILE_LOCKS([TAGNAME])
  54900. +# ----------------------------------
  54901. +# Check to see if we can do hard links to lock some files if needed
  54902. +m4_defun([_LT_COMPILER_FILE_LOCKS],
  54903. +[m4_require([_LT_ENABLE_LOCK])dnl
  54904. +m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  54905. +_LT_COMPILER_C_O([$1])
  54906. +
  54907. +hard_links="nottested"
  54908. +if test "$_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" != no; then
  54909. + # do not overwrite the value of need_locks provided by the user
  54910. + AC_MSG_CHECKING([if we can lock with hard links])
  54911. + hard_links=yes
  54912. + $RM conftest*
  54913. + ln conftest.a conftest.b 2>/dev/null && hard_links=no
  54914. + touch conftest.a
  54915. + ln conftest.a conftest.b 2>&5 || hard_links=no
  54916. + ln conftest.a conftest.b 2>/dev/null && hard_links=no
  54917. + AC_MSG_RESULT([$hard_links])
  54918. + if test "$hard_links" = no; then
  54919. + AC_MSG_WARN([`$CC' does not support `-c -o', so `make -j' may be unsafe])
  54920. + need_locks=warn
  54921. + fi
  54922. +else
  54923. + need_locks=no
  54924. +fi
  54925. +_LT_DECL([], [need_locks], [1], [Must we lock files when doing compilation?])
  54926. +])# _LT_COMPILER_FILE_LOCKS
  54927. +
  54928. +
  54929. +# _LT_CHECK_OBJDIR
  54930. +# ----------------
  54931. +m4_defun([_LT_CHECK_OBJDIR],
  54932. +[AC_CACHE_CHECK([for objdir], [lt_cv_objdir],
  54933. +[rm -f .libs 2>/dev/null
  54934. +mkdir .libs 2>/dev/null
  54935. +if test -d .libs; then
  54936. + lt_cv_objdir=.libs
  54937. +else
  54938. + # MS-DOS does not allow filenames that begin with a dot.
  54939. + lt_cv_objdir=_libs
  54940. +fi
  54941. +rmdir .libs 2>/dev/null])
  54942. +objdir=$lt_cv_objdir
  54943. +_LT_DECL([], [objdir], [0],
  54944. + [The name of the directory that contains temporary libtool files])dnl
  54945. +m4_pattern_allow([LT_OBJDIR])dnl
  54946. +AC_DEFINE_UNQUOTED(LT_OBJDIR, "$lt_cv_objdir/",
  54947. + [Define to the sub-directory in which libtool stores uninstalled libraries.])
  54948. +])# _LT_CHECK_OBJDIR
  54949. +
  54950. +
  54951. +# _LT_LINKER_HARDCODE_LIBPATH([TAGNAME])
  54952. +# --------------------------------------
  54953. +# Check hardcoding attributes.
  54954. +m4_defun([_LT_LINKER_HARDCODE_LIBPATH],
  54955. +[AC_MSG_CHECKING([how to hardcode library paths into programs])
  54956. +_LT_TAGVAR(hardcode_action, $1)=
  54957. +if test -n "$_LT_TAGVAR(hardcode_libdir_flag_spec, $1)" ||
  54958. + test -n "$_LT_TAGVAR(runpath_var, $1)" ||
  54959. + test "X$_LT_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then
  54960. +
  54961. + # We can hardcode non-existent directories.
  54962. + if test "$_LT_TAGVAR(hardcode_direct, $1)" != no &&
  54963. + # If the only mechanism to avoid hardcoding is shlibpath_var, we
  54964. + # have to relink, otherwise we might link with an installed library
  54965. + # when we should be linking with a yet-to-be-installed one
  54966. + ## test "$_LT_TAGVAR(hardcode_shlibpath_var, $1)" != no &&
  54967. + test "$_LT_TAGVAR(hardcode_minus_L, $1)" != no; then
  54968. + # Linking always hardcodes the temporary library directory.
  54969. + _LT_TAGVAR(hardcode_action, $1)=relink
  54970. + else
  54971. + # We can link without hardcoding, and we can hardcode nonexisting dirs.
  54972. + _LT_TAGVAR(hardcode_action, $1)=immediate
  54973. + fi
  54974. +else
  54975. + # We cannot hardcode anything, or else we can only hardcode existing
  54976. + # directories.
  54977. + _LT_TAGVAR(hardcode_action, $1)=unsupported
  54978. +fi
  54979. +AC_MSG_RESULT([$_LT_TAGVAR(hardcode_action, $1)])
  54980. +
  54981. +if test "$_LT_TAGVAR(hardcode_action, $1)" = relink ||
  54982. + test "$_LT_TAGVAR(inherit_rpath, $1)" = yes; then
  54983. + # Fast installation is not supported
  54984. + enable_fast_install=no
  54985. +elif test "$shlibpath_overrides_runpath" = yes ||
  54986. + test "$enable_shared" = no; then
  54987. + # Fast installation is not necessary
  54988. + enable_fast_install=needless
  54989. +fi
  54990. +_LT_TAGDECL([], [hardcode_action], [0],
  54991. + [How to hardcode a shared library path into an executable])
  54992. +])# _LT_LINKER_HARDCODE_LIBPATH
  54993. +
  54994. +
  54995. +# _LT_CMD_STRIPLIB
  54996. +# ----------------
  54997. +m4_defun([_LT_CMD_STRIPLIB],
  54998. +[m4_require([_LT_DECL_EGREP])
  54999. +striplib=
  55000. +old_striplib=
  55001. +AC_MSG_CHECKING([whether stripping libraries is possible])
  55002. +if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  55003. + test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  55004. + test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  55005. + AC_MSG_RESULT([yes])
  55006. +else
  55007. +# FIXME - insert some real tests, host_os isn't really good enough
  55008. + case $host_os in
  55009. + darwin*)
  55010. + if test -n "$STRIP" ; then
  55011. + striplib="$STRIP -x"
  55012. + old_striplib="$STRIP -S"
  55013. + AC_MSG_RESULT([yes])
  55014. + else
  55015. + AC_MSG_RESULT([no])
  55016. + fi
  55017. + ;;
  55018. + *)
  55019. + AC_MSG_RESULT([no])
  55020. + ;;
  55021. + esac
  55022. +fi
  55023. +_LT_DECL([], [old_striplib], [1], [Commands to strip libraries])
  55024. +_LT_DECL([], [striplib], [1])
  55025. +])# _LT_CMD_STRIPLIB
  55026. +
  55027. +
  55028. +# _LT_SYS_DYNAMIC_LINKER([TAG])
  55029. +# -----------------------------
  55030. +# PORTME Fill in your ld.so characteristics
  55031. +m4_defun([_LT_SYS_DYNAMIC_LINKER],
  55032. +[AC_REQUIRE([AC_CANONICAL_HOST])dnl
  55033. +m4_require([_LT_DECL_EGREP])dnl
  55034. +m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  55035. +m4_require([_LT_DECL_OBJDUMP])dnl
  55036. +m4_require([_LT_DECL_SED])dnl
  55037. +AC_MSG_CHECKING([dynamic linker characteristics])
  55038. +m4_if([$1],
  55039. + [], [
  55040. +if test "$GCC" = yes; then
  55041. + case $host_os in
  55042. + darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
  55043. + *) lt_awk_arg="/^libraries:/" ;;
  55044. + esac
  55045. + lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  55046. + if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
  55047. + # if the path contains ";" then we assume it to be the separator
  55048. + # otherwise default to the standard path separator (i.e. ":") - it is
  55049. + # assumed that no part of a normal pathname contains ";" but that should
  55050. + # okay in the real world where ";" in dirpaths is itself problematic.
  55051. + lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
  55052. + else
  55053. + lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  55054. + fi
  55055. + # Ok, now we have the path, separated by spaces, we can step through it
  55056. + # and add multilib dir if necessary.
  55057. + lt_tmp_lt_search_path_spec=
  55058. + lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  55059. + for lt_sys_path in $lt_search_path_spec; do
  55060. + if test -d "$lt_sys_path/$lt_multi_os_dir"; then
  55061. + lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
  55062. + else
  55063. + test -d "$lt_sys_path" && \
  55064. + lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  55065. + fi
  55066. + done
  55067. + lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
  55068. +BEGIN {RS=" "; FS="/|\n";} {
  55069. + lt_foo="";
  55070. + lt_count=0;
  55071. + for (lt_i = NF; lt_i > 0; lt_i--) {
  55072. + if ($lt_i != "" && $lt_i != ".") {
  55073. + if ($lt_i == "..") {
  55074. + lt_count++;
  55075. + } else {
  55076. + if (lt_count == 0) {
  55077. + lt_foo="/" $lt_i lt_foo;
  55078. + } else {
  55079. + lt_count--;
  55080. + }
  55081. + }
  55082. + }
  55083. + }
  55084. + if (lt_foo != "") { lt_freq[[lt_foo]]++; }
  55085. + if (lt_freq[[lt_foo]] == 1) { print lt_foo; }
  55086. +}'`
  55087. + sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
  55088. +else
  55089. + sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  55090. +fi])
  55091. +library_names_spec=
  55092. +libname_spec='lib$name'
  55093. +soname_spec=
  55094. +shrext_cmds=".so"
  55095. +postinstall_cmds=
  55096. +postuninstall_cmds=
  55097. +finish_cmds=
  55098. +finish_eval=
  55099. +shlibpath_var=
  55100. +shlibpath_overrides_runpath=unknown
  55101. +version_type=none
  55102. +dynamic_linker="$host_os ld.so"
  55103. +sys_lib_dlsearch_path_spec="/lib /usr/lib"
  55104. +need_lib_prefix=unknown
  55105. +hardcode_into_libs=no
  55106. +
  55107. +# when you set need_version to no, make sure it does not cause -set_version
  55108. +# flags to be left without arguments
  55109. +need_version=unknown
  55110. +
  55111. +case $host_os in
  55112. +aix3*)
  55113. + version_type=linux
  55114. + library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  55115. + shlibpath_var=LIBPATH
  55116. +
  55117. + # AIX 3 has no versioning support, so we append a major version to the name.
  55118. + soname_spec='${libname}${release}${shared_ext}$major'
  55119. + ;;
  55120. +
  55121. +aix[[4-9]]*)
  55122. + version_type=linux
  55123. + need_lib_prefix=no
  55124. + need_version=no
  55125. + hardcode_into_libs=yes
  55126. + if test "$host_cpu" = ia64; then
  55127. + # AIX 5 supports IA64
  55128. + library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  55129. + shlibpath_var=LD_LIBRARY_PATH
  55130. + else
  55131. + # With GCC up to 2.95.x, collect2 would create an import file
  55132. + # for dependence libraries. The import file would start with
  55133. + # the line `#! .'. This would cause the generated library to
  55134. + # depend on `.', always an invalid library. This was fixed in
  55135. + # development snapshots of GCC prior to 3.0.
  55136. + case $host_os in
  55137. + aix4 | aix4.[[01]] | aix4.[[01]].*)
  55138. + if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  55139. + echo ' yes '
  55140. + echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  55141. + :
  55142. + else
  55143. + can_build_shared=no
  55144. + fi
  55145. + ;;
  55146. + esac
  55147. + # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  55148. + # soname into executable. Probably we can add versioning support to
  55149. + # collect2, so additional links can be useful in future.
  55150. + if test "$aix_use_runtimelinking" = yes; then
  55151. + # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  55152. + # instead of lib<name>.a to let people know that these are not
  55153. + # typical AIX shared libraries.
  55154. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  55155. + else
  55156. + # We preserve .a as extension for shared libraries through AIX4.2
  55157. + # and later when we are not doing run time linking.
  55158. + library_names_spec='${libname}${release}.a $libname.a'
  55159. + soname_spec='${libname}${release}${shared_ext}$major'
  55160. + fi
  55161. + shlibpath_var=LIBPATH
  55162. + fi
  55163. + ;;
  55164. +
  55165. +amigaos*)
  55166. + case $host_cpu in
  55167. + powerpc)
  55168. + # Since July 2007 AmigaOS4 officially supports .so libraries.
  55169. + # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  55170. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  55171. + ;;
  55172. + m68k)
  55173. + library_names_spec='$libname.ixlibrary $libname.a'
  55174. + # Create ${libname}_ixlibrary.a entries in /sys/libs.
  55175. + 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'
  55176. + ;;
  55177. + esac
  55178. + ;;
  55179. +
  55180. +beos*)
  55181. + library_names_spec='${libname}${shared_ext}'
  55182. + dynamic_linker="$host_os ld.so"
  55183. + shlibpath_var=LIBRARY_PATH
  55184. + ;;
  55185. +
  55186. +bsdi[[45]]*)
  55187. + version_type=linux
  55188. + need_version=no
  55189. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  55190. + soname_spec='${libname}${release}${shared_ext}$major'
  55191. + finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  55192. + shlibpath_var=LD_LIBRARY_PATH
  55193. + sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  55194. + sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  55195. + # the default ld.so.conf also contains /usr/contrib/lib and
  55196. + # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  55197. + # libtool to hard-code these into programs
  55198. + ;;
  55199. +
  55200. +cygwin* | mingw* | pw32* | cegcc*)
  55201. + version_type=windows
  55202. + shrext_cmds=".dll"
  55203. + need_version=no
  55204. + need_lib_prefix=no
  55205. +
  55206. + case $GCC,$host_os in
  55207. + yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
  55208. + library_names_spec='$libname.dll.a'
  55209. + # DLL is installed to $(libdir)/../bin by postinstall_cmds
  55210. + postinstall_cmds='base_file=`basename \${file}`~
  55211. + dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  55212. + dldir=$destdir/`dirname \$dlpath`~
  55213. + test -d \$dldir || mkdir -p \$dldir~
  55214. + $install_prog $dir/$dlname \$dldir/$dlname~
  55215. + chmod a+x \$dldir/$dlname~
  55216. + if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  55217. + eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  55218. + fi'
  55219. + postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  55220. + dlpath=$dir/\$dldll~
  55221. + $RM \$dlpath'
  55222. + shlibpath_overrides_runpath=yes
  55223. +
  55224. + case $host_os in
  55225. + cygwin*)
  55226. + # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  55227. + soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  55228. + sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  55229. + ;;
  55230. + mingw* | cegcc*)
  55231. + # MinGW DLLs use traditional 'lib' prefix
  55232. + soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  55233. + sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  55234. + if $ECHO "$sys_lib_search_path_spec" | [$GREP ';[c-zC-Z]:/' >/dev/null]; then
  55235. + # It is most probably a Windows format PATH printed by
  55236. + # mingw gcc, but we are running on Cygwin. Gcc prints its search
  55237. + # path with ; separators, and with drive letters. We can handle the
  55238. + # drive letters (cygwin fileutils understands them), so leave them,
  55239. + # especially as we might pass files found there to a mingw objdump,
  55240. + # which wouldn't understand a cygwinified path. Ahh.
  55241. + sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  55242. + else
  55243. + sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  55244. + fi
  55245. + ;;
  55246. + pw32*)
  55247. + # pw32 DLLs use 'pw' prefix rather than 'lib'
  55248. + library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  55249. + ;;
  55250. + esac
  55251. + ;;
  55252. +
  55253. + *)
  55254. + library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $libname.lib'
  55255. + ;;
  55256. + esac
  55257. + dynamic_linker='Win32 ld.exe'
  55258. + # FIXME: first we should search . and the directory the executable is in
  55259. + shlibpath_var=PATH
  55260. + ;;
  55261. +
  55262. +darwin* | rhapsody*)
  55263. + dynamic_linker="$host_os dyld"
  55264. + version_type=darwin
  55265. + need_lib_prefix=no
  55266. + need_version=no
  55267. + library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  55268. + soname_spec='${libname}${release}${major}$shared_ext'
  55269. + shlibpath_overrides_runpath=yes
  55270. + shlibpath_var=DYLD_LIBRARY_PATH
  55271. + shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  55272. +m4_if([$1], [],[
  55273. + sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"])
  55274. + sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  55275. + ;;
  55276. +
  55277. +dgux*)
  55278. + version_type=linux
  55279. + need_lib_prefix=no
  55280. + need_version=no
  55281. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  55282. + soname_spec='${libname}${release}${shared_ext}$major'
  55283. + shlibpath_var=LD_LIBRARY_PATH
  55284. + ;;
  55285. +
  55286. +freebsd1*)
  55287. + dynamic_linker=no
  55288. + ;;
  55289. +
  55290. +freebsd* | dragonfly*)
  55291. + # DragonFly does not have aout. When/if they implement a new
  55292. + # versioning mechanism, adjust this.
  55293. + if test -x /usr/bin/objformat; then
  55294. + objformat=`/usr/bin/objformat`
  55295. + else
  55296. + case $host_os in
  55297. + freebsd[[123]]*) objformat=aout ;;
  55298. + *) objformat=elf ;;
  55299. + esac
  55300. + fi
  55301. + version_type=freebsd-$objformat
  55302. + case $version_type in
  55303. + freebsd-elf*)
  55304. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  55305. + need_version=no
  55306. + need_lib_prefix=no
  55307. + ;;
  55308. + freebsd-*)
  55309. + library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  55310. + need_version=yes
  55311. + ;;
  55312. + esac
  55313. + shlibpath_var=LD_LIBRARY_PATH
  55314. + case $host_os in
  55315. + freebsd2*)
  55316. + shlibpath_overrides_runpath=yes
  55317. + ;;
  55318. + freebsd3.[[01]]* | freebsdelf3.[[01]]*)
  55319. + shlibpath_overrides_runpath=yes
  55320. + hardcode_into_libs=yes
  55321. + ;;
  55322. + freebsd3.[[2-9]]* | freebsdelf3.[[2-9]]* | \
  55323. + freebsd4.[[0-5]] | freebsdelf4.[[0-5]] | freebsd4.1.1 | freebsdelf4.1.1)
  55324. + shlibpath_overrides_runpath=no
  55325. + hardcode_into_libs=yes
  55326. + ;;
  55327. + *) # from 4.6 on, and DragonFly
  55328. + shlibpath_overrides_runpath=yes
  55329. + hardcode_into_libs=yes
  55330. + ;;
  55331. + esac
  55332. + ;;
  55333. +
  55334. +gnu*)
  55335. + version_type=linux
  55336. + need_lib_prefix=no
  55337. + need_version=no
  55338. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  55339. + soname_spec='${libname}${release}${shared_ext}$major'
  55340. + shlibpath_var=LD_LIBRARY_PATH
  55341. + hardcode_into_libs=yes
  55342. + ;;
  55343. +
  55344. +hpux9* | hpux10* | hpux11*)
  55345. + # Give a soname corresponding to the major version so that dld.sl refuses to
  55346. + # link against other versions.
  55347. + version_type=sunos
  55348. + need_lib_prefix=no
  55349. + need_version=no
  55350. + case $host_cpu in
  55351. + ia64*)
  55352. + shrext_cmds='.so'
  55353. + hardcode_into_libs=yes
  55354. + dynamic_linker="$host_os dld.so"
  55355. + shlibpath_var=LD_LIBRARY_PATH
  55356. + shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  55357. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  55358. + soname_spec='${libname}${release}${shared_ext}$major'
  55359. + if test "X$HPUX_IA64_MODE" = X32; then
  55360. + sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  55361. + else
  55362. + sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  55363. + fi
  55364. + sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  55365. + ;;
  55366. + hppa*64*)
  55367. + shrext_cmds='.sl'
  55368. + hardcode_into_libs=yes
  55369. + dynamic_linker="$host_os dld.sl"
  55370. + shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  55371. + shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  55372. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  55373. + soname_spec='${libname}${release}${shared_ext}$major'
  55374. + sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  55375. + sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  55376. + ;;
  55377. + *)
  55378. + shrext_cmds='.sl'
  55379. + dynamic_linker="$host_os dld.sl"
  55380. + shlibpath_var=SHLIB_PATH
  55381. + shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  55382. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  55383. + soname_spec='${libname}${release}${shared_ext}$major'
  55384. + ;;
  55385. + esac
  55386. + # HP-UX runs *really* slowly unless shared libraries are mode 555.
  55387. + postinstall_cmds='chmod 555 $lib'
  55388. + ;;
  55389. +
  55390. +interix[[3-9]]*)
  55391. + version_type=linux
  55392. + need_lib_prefix=no
  55393. + need_version=no
  55394. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  55395. + soname_spec='${libname}${release}${shared_ext}$major'
  55396. + dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  55397. + shlibpath_var=LD_LIBRARY_PATH
  55398. + shlibpath_overrides_runpath=no
  55399. + hardcode_into_libs=yes
  55400. + ;;
  55401. +
  55402. +irix5* | irix6* | nonstopux*)
  55403. + case $host_os in
  55404. + nonstopux*) version_type=nonstopux ;;
  55405. + *)
  55406. + if test "$lt_cv_prog_gnu_ld" = yes; then
  55407. + version_type=linux
  55408. + else
  55409. + version_type=irix
  55410. + fi ;;
  55411. + esac
  55412. + need_lib_prefix=no
  55413. + need_version=no
  55414. + soname_spec='${libname}${release}${shared_ext}$major'
  55415. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  55416. + case $host_os in
  55417. + irix5* | nonstopux*)
  55418. + libsuff= shlibsuff=
  55419. + ;;
  55420. + *)
  55421. + case $LD in # libtool.m4 will add one of these switches to LD
  55422. + *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  55423. + libsuff= shlibsuff= libmagic=32-bit;;
  55424. + *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  55425. + libsuff=32 shlibsuff=N32 libmagic=N32;;
  55426. + *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  55427. + libsuff=64 shlibsuff=64 libmagic=64-bit;;
  55428. + *) libsuff= shlibsuff= libmagic=never-match;;
  55429. + esac
  55430. + ;;
  55431. + esac
  55432. + shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  55433. + shlibpath_overrides_runpath=no
  55434. + sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  55435. + sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  55436. + hardcode_into_libs=yes
  55437. + ;;
  55438. +
  55439. +# No shared lib support for Linux oldld, aout, or coff.
  55440. +linux*oldld* | linux*aout* | linux*coff*)
  55441. + dynamic_linker=no
  55442. + ;;
  55443. +
  55444. +# This must be Linux ELF.
  55445. +linux* | k*bsd*-gnu | kopensolaris*-gnu)
  55446. + version_type=linux
  55447. + need_lib_prefix=no
  55448. + need_version=no
  55449. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  55450. + soname_spec='${libname}${release}${shared_ext}$major'
  55451. + finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  55452. + shlibpath_var=LD_LIBRARY_PATH
  55453. + shlibpath_overrides_runpath=no
  55454. + # Some binutils ld are patched to set DT_RUNPATH
  55455. + save_LDFLAGS=$LDFLAGS
  55456. + save_libdir=$libdir
  55457. + eval "libdir=/foo; wl=\"$_LT_TAGVAR(lt_prog_compiler_wl, $1)\"; \
  55458. + LDFLAGS=\"\$LDFLAGS $_LT_TAGVAR(hardcode_libdir_flag_spec, $1)\""
  55459. + AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
  55460. + [AS_IF([ ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null],
  55461. + [shlibpath_overrides_runpath=yes])])
  55462. + LDFLAGS=$save_LDFLAGS
  55463. + libdir=$save_libdir
  55464. +
  55465. + # This implies no fast_install, which is unacceptable.
  55466. + # Some rework will be needed to allow for fast_install
  55467. + # before this can be enabled.
  55468. + hardcode_into_libs=yes
  55469. +
  55470. + # Append ld.so.conf contents to the search path
  55471. + if test -f /etc/ld.so.conf; then
  55472. + 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' ' '`
  55473. + sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  55474. + fi
  55475. +
  55476. + # We used to test for /lib/ld.so.1 and disable shared libraries on
  55477. + # powerpc, because MkLinux only supported shared libraries with the
  55478. + # GNU dynamic linker. Since this was broken with cross compilers,
  55479. + # most powerpc-linux boxes support dynamic linking these days and
  55480. + # people can always --disable-shared, the test was removed, and we
  55481. + # assume the GNU/Linux dynamic linker is in use.
  55482. + dynamic_linker='GNU/Linux ld.so'
  55483. + ;;
  55484. +
  55485. +netbsdelf*-gnu)
  55486. + version_type=linux
  55487. + need_lib_prefix=no
  55488. + need_version=no
  55489. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  55490. + soname_spec='${libname}${release}${shared_ext}$major'
  55491. + shlibpath_var=LD_LIBRARY_PATH
  55492. + shlibpath_overrides_runpath=no
  55493. + hardcode_into_libs=yes
  55494. + dynamic_linker='NetBSD ld.elf_so'
  55495. + ;;
  55496. +
  55497. +netbsd*)
  55498. + version_type=sunos
  55499. + need_lib_prefix=no
  55500. + need_version=no
  55501. + if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  55502. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  55503. + finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  55504. + dynamic_linker='NetBSD (a.out) ld.so'
  55505. + else
  55506. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  55507. + soname_spec='${libname}${release}${shared_ext}$major'
  55508. + dynamic_linker='NetBSD ld.elf_so'
  55509. + fi
  55510. + shlibpath_var=LD_LIBRARY_PATH
  55511. + shlibpath_overrides_runpath=yes
  55512. + hardcode_into_libs=yes
  55513. + ;;
  55514. +
  55515. +newsos6)
  55516. + version_type=linux
  55517. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  55518. + shlibpath_var=LD_LIBRARY_PATH
  55519. + shlibpath_overrides_runpath=yes
  55520. + ;;
  55521. +
  55522. +*nto* | *qnx*)
  55523. + version_type=qnx
  55524. + need_lib_prefix=no
  55525. + need_version=no
  55526. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  55527. + soname_spec='${libname}${release}${shared_ext}$major'
  55528. + shlibpath_var=LD_LIBRARY_PATH
  55529. + shlibpath_overrides_runpath=no
  55530. + hardcode_into_libs=yes
  55531. + dynamic_linker='ldqnx.so'
  55532. + ;;
  55533. +
  55534. +openbsd*)
  55535. + version_type=sunos
  55536. + sys_lib_dlsearch_path_spec="/usr/lib"
  55537. + need_lib_prefix=no
  55538. + # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  55539. + case $host_os in
  55540. + openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  55541. + *) need_version=no ;;
  55542. + esac
  55543. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  55544. + finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  55545. + shlibpath_var=LD_LIBRARY_PATH
  55546. + if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  55547. + case $host_os in
  55548. + openbsd2.[[89]] | openbsd2.[[89]].*)
  55549. + shlibpath_overrides_runpath=no
  55550. + ;;
  55551. + *)
  55552. + shlibpath_overrides_runpath=yes
  55553. + ;;
  55554. + esac
  55555. + else
  55556. + shlibpath_overrides_runpath=yes
  55557. + fi
  55558. + ;;
  55559. +
  55560. +os2*)
  55561. + libname_spec='$name'
  55562. + shrext_cmds=".dll"
  55563. + need_lib_prefix=no
  55564. + library_names_spec='$libname${shared_ext} $libname.a'
  55565. + dynamic_linker='OS/2 ld.exe'
  55566. + shlibpath_var=LIBPATH
  55567. + ;;
  55568. +
  55569. +osf3* | osf4* | osf5*)
  55570. + version_type=osf
  55571. + need_lib_prefix=no
  55572. + need_version=no
  55573. + soname_spec='${libname}${release}${shared_ext}$major'
  55574. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  55575. + shlibpath_var=LD_LIBRARY_PATH
  55576. + sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  55577. + sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  55578. + ;;
  55579. +
  55580. +rdos*)
  55581. + dynamic_linker=no
  55582. + ;;
  55583. +
  55584. +solaris*)
  55585. + version_type=linux
  55586. + need_lib_prefix=no
  55587. + need_version=no
  55588. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  55589. + soname_spec='${libname}${release}${shared_ext}$major'
  55590. + shlibpath_var=LD_LIBRARY_PATH
  55591. + shlibpath_overrides_runpath=yes
  55592. + hardcode_into_libs=yes
  55593. + # ldd complains unless libraries are executable
  55594. + postinstall_cmds='chmod +x $lib'
  55595. + ;;
  55596. +
  55597. +sunos4*)
  55598. + version_type=sunos
  55599. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  55600. + finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  55601. + shlibpath_var=LD_LIBRARY_PATH
  55602. + shlibpath_overrides_runpath=yes
  55603. + if test "$with_gnu_ld" = yes; then
  55604. + need_lib_prefix=no
  55605. + fi
  55606. + need_version=yes
  55607. + ;;
  55608. +
  55609. +sysv4 | sysv4.3*)
  55610. + version_type=linux
  55611. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  55612. + soname_spec='${libname}${release}${shared_ext}$major'
  55613. + shlibpath_var=LD_LIBRARY_PATH
  55614. + case $host_vendor in
  55615. + sni)
  55616. + shlibpath_overrides_runpath=no
  55617. + need_lib_prefix=no
  55618. + runpath_var=LD_RUN_PATH
  55619. + ;;
  55620. + siemens)
  55621. + need_lib_prefix=no
  55622. + ;;
  55623. + motorola)
  55624. + need_lib_prefix=no
  55625. + need_version=no
  55626. + shlibpath_overrides_runpath=no
  55627. + sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  55628. + ;;
  55629. + esac
  55630. + ;;
  55631. +
  55632. +sysv4*MP*)
  55633. + if test -d /usr/nec ;then
  55634. + version_type=linux
  55635. + library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  55636. + soname_spec='$libname${shared_ext}.$major'
  55637. + shlibpath_var=LD_LIBRARY_PATH
  55638. + fi
  55639. + ;;
  55640. +
  55641. +sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  55642. + version_type=freebsd-elf
  55643. + need_lib_prefix=no
  55644. + need_version=no
  55645. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  55646. + soname_spec='${libname}${release}${shared_ext}$major'
  55647. + shlibpath_var=LD_LIBRARY_PATH
  55648. + shlibpath_overrides_runpath=yes
  55649. + hardcode_into_libs=yes
  55650. + if test "$with_gnu_ld" = yes; then
  55651. + sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  55652. + else
  55653. + sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  55654. + case $host_os in
  55655. + sco3.2v5*)
  55656. + sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  55657. + ;;
  55658. + esac
  55659. + fi
  55660. + sys_lib_dlsearch_path_spec='/usr/lib'
  55661. + ;;
  55662. +
  55663. +tpf*)
  55664. + # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  55665. + version_type=linux
  55666. + need_lib_prefix=no
  55667. + need_version=no
  55668. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  55669. + shlibpath_var=LD_LIBRARY_PATH
  55670. + shlibpath_overrides_runpath=no
  55671. + hardcode_into_libs=yes
  55672. + ;;
  55673. +
  55674. +uts4*)
  55675. + version_type=linux
  55676. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  55677. + soname_spec='${libname}${release}${shared_ext}$major'
  55678. + shlibpath_var=LD_LIBRARY_PATH
  55679. + ;;
  55680. +
  55681. +*)
  55682. + dynamic_linker=no
  55683. + ;;
  55684. +esac
  55685. +AC_MSG_RESULT([$dynamic_linker])
  55686. +test "$dynamic_linker" = no && can_build_shared=no
  55687. +
  55688. +variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  55689. +if test "$GCC" = yes; then
  55690. + variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  55691. +fi
  55692. +
  55693. +if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  55694. + sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  55695. +fi
  55696. +if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  55697. + sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  55698. +fi
  55699. +
  55700. +_LT_DECL([], [variables_saved_for_relink], [1],
  55701. + [Variables whose values should be saved in libtool wrapper scripts and
  55702. + restored at link time])
  55703. +_LT_DECL([], [need_lib_prefix], [0],
  55704. + [Do we need the "lib" prefix for modules?])
  55705. +_LT_DECL([], [need_version], [0], [Do we need a version for libraries?])
  55706. +_LT_DECL([], [version_type], [0], [Library versioning type])
  55707. +_LT_DECL([], [runpath_var], [0], [Shared library runtime path variable])
  55708. +_LT_DECL([], [shlibpath_var], [0],[Shared library path variable])
  55709. +_LT_DECL([], [shlibpath_overrides_runpath], [0],
  55710. + [Is shlibpath searched before the hard-coded library search path?])
  55711. +_LT_DECL([], [libname_spec], [1], [Format of library name prefix])
  55712. +_LT_DECL([], [library_names_spec], [1],
  55713. + [[List of archive names. First name is the real one, the rest are links.
  55714. + The last name is the one that the linker finds with -lNAME]])
  55715. +_LT_DECL([], [soname_spec], [1],
  55716. + [[The coded name of the library, if different from the real name]])
  55717. +_LT_DECL([], [postinstall_cmds], [2],
  55718. + [Command to use after installation of a shared archive])
  55719. +_LT_DECL([], [postuninstall_cmds], [2],
  55720. + [Command to use after uninstallation of a shared archive])
  55721. +_LT_DECL([], [finish_cmds], [2],
  55722. + [Commands used to finish a libtool library installation in a directory])
  55723. +_LT_DECL([], [finish_eval], [1],
  55724. + [[As "finish_cmds", except a single script fragment to be evaled but
  55725. + not shown]])
  55726. +_LT_DECL([], [hardcode_into_libs], [0],
  55727. + [Whether we should hardcode library paths into libraries])
  55728. +_LT_DECL([], [sys_lib_search_path_spec], [2],
  55729. + [Compile-time system search path for libraries])
  55730. +_LT_DECL([], [sys_lib_dlsearch_path_spec], [2],
  55731. + [Run-time system search path for libraries])
  55732. +])# _LT_SYS_DYNAMIC_LINKER
  55733. +
  55734. +
  55735. +# _LT_PATH_TOOL_PREFIX(TOOL)
  55736. +# --------------------------
  55737. +# find a file program which can recognize shared library
  55738. +AC_DEFUN([_LT_PATH_TOOL_PREFIX],
  55739. +[m4_require([_LT_DECL_EGREP])dnl
  55740. +AC_MSG_CHECKING([for $1])
  55741. +AC_CACHE_VAL(lt_cv_path_MAGIC_CMD,
  55742. +[case $MAGIC_CMD in
  55743. +[[\\/*] | ?:[\\/]*])
  55744. + lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  55745. + ;;
  55746. +*)
  55747. + lt_save_MAGIC_CMD="$MAGIC_CMD"
  55748. + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  55749. +dnl $ac_dummy forces splitting on constant user-supplied paths.
  55750. +dnl POSIX.2 word splitting is done only on the output of word expansions,
  55751. +dnl not every word. This closes a longstanding sh security hole.
  55752. + ac_dummy="m4_if([$2], , $PATH, [$2])"
  55753. + for ac_dir in $ac_dummy; do
  55754. + IFS="$lt_save_ifs"
  55755. + test -z "$ac_dir" && ac_dir=.
  55756. + if test -f $ac_dir/$1; then
  55757. + lt_cv_path_MAGIC_CMD="$ac_dir/$1"
  55758. + if test -n "$file_magic_test_file"; then
  55759. + case $deplibs_check_method in
  55760. + "file_magic "*)
  55761. + file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  55762. + MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  55763. + if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  55764. + $EGREP "$file_magic_regex" > /dev/null; then
  55765. + :
  55766. + else
  55767. + cat <<_LT_EOF 1>&2
  55768. +
  55769. +*** Warning: the command libtool uses to detect shared libraries,
  55770. +*** $file_magic_cmd, produces output that libtool cannot recognize.
  55771. +*** The result is that libtool may fail to recognize shared libraries
  55772. +*** as such. This will affect the creation of libtool libraries that
  55773. +*** depend on shared libraries, but programs linked with such libtool
  55774. +*** libraries will work regardless of this problem. Nevertheless, you
  55775. +*** may want to report the problem to your system manager and/or to
  55776. +*** bug-libtool@gnu.org
  55777. +
  55778. +_LT_EOF
  55779. + fi ;;
  55780. + esac
  55781. + fi
  55782. + break
  55783. + fi
  55784. + done
  55785. + IFS="$lt_save_ifs"
  55786. + MAGIC_CMD="$lt_save_MAGIC_CMD"
  55787. + ;;
  55788. +esac])
  55789. +MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  55790. +if test -n "$MAGIC_CMD"; then
  55791. + AC_MSG_RESULT($MAGIC_CMD)
  55792. +else
  55793. + AC_MSG_RESULT(no)
  55794. +fi
  55795. +_LT_DECL([], [MAGIC_CMD], [0],
  55796. + [Used to examine libraries when file_magic_cmd begins with "file"])dnl
  55797. +])# _LT_PATH_TOOL_PREFIX
  55798. +
  55799. +# Old name:
  55800. +AU_ALIAS([AC_PATH_TOOL_PREFIX], [_LT_PATH_TOOL_PREFIX])
  55801. +dnl aclocal-1.4 backwards compatibility:
  55802. +dnl AC_DEFUN([AC_PATH_TOOL_PREFIX], [])
  55803. +
  55804. +
  55805. +# _LT_PATH_MAGIC
  55806. +# --------------
  55807. +# find a file program which can recognize a shared library
  55808. +m4_defun([_LT_PATH_MAGIC],
  55809. +[_LT_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH)
  55810. +if test -z "$lt_cv_path_MAGIC_CMD"; then
  55811. + if test -n "$ac_tool_prefix"; then
  55812. + _LT_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH)
  55813. + else
  55814. + MAGIC_CMD=:
  55815. + fi
  55816. +fi
  55817. +])# _LT_PATH_MAGIC
  55818. +
  55819. +
  55820. +# LT_PATH_LD
  55821. +# ----------
  55822. +# find the pathname to the GNU or non-GNU linker
  55823. +AC_DEFUN([LT_PATH_LD],
  55824. +[AC_REQUIRE([AC_PROG_CC])dnl
  55825. +AC_REQUIRE([AC_CANONICAL_HOST])dnl
  55826. +AC_REQUIRE([AC_CANONICAL_BUILD])dnl
  55827. +m4_require([_LT_DECL_SED])dnl
  55828. +m4_require([_LT_DECL_EGREP])dnl
  55829. +
  55830. +AC_ARG_WITH([gnu-ld],
  55831. + [AS_HELP_STRING([--with-gnu-ld],
  55832. + [assume the C compiler uses GNU ld @<:@default=no@:>@])],
  55833. + [test "$withval" = no || with_gnu_ld=yes],
  55834. + [with_gnu_ld=no])dnl
  55835. +
  55836. +ac_prog=ld
  55837. +if test "$GCC" = yes; then
  55838. + # Check if gcc -print-prog-name=ld gives a path.
  55839. + AC_MSG_CHECKING([for ld used by $CC])
  55840. + case $host in
  55841. + *-*-mingw*)
  55842. + # gcc leaves a trailing carriage return which upsets mingw
  55843. + ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  55844. + *)
  55845. + ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  55846. + esac
  55847. + case $ac_prog in
  55848. + # Accept absolute paths.
  55849. + [[\\/]]* | ?:[[\\/]]*)
  55850. + re_direlt='/[[^/]][[^/]]*/\.\./'
  55851. + # Canonicalize the pathname of ld
  55852. + ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  55853. + while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  55854. + ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  55855. + done
  55856. + test -z "$LD" && LD="$ac_prog"
  55857. + ;;
  55858. + "")
  55859. + # If it fails, then pretend we aren't using GCC.
  55860. + ac_prog=ld
  55861. + ;;
  55862. + *)
  55863. + # If it is relative, then search for the first ld in PATH.
  55864. + with_gnu_ld=unknown
  55865. + ;;
  55866. + esac
  55867. +elif test "$with_gnu_ld" = yes; then
  55868. + AC_MSG_CHECKING([for GNU ld])
  55869. +else
  55870. + AC_MSG_CHECKING([for non-GNU ld])
  55871. +fi
  55872. +AC_CACHE_VAL(lt_cv_path_LD,
  55873. +[if test -z "$LD"; then
  55874. + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  55875. + for ac_dir in $PATH; do
  55876. + IFS="$lt_save_ifs"
  55877. + test -z "$ac_dir" && ac_dir=.
  55878. + if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  55879. + lt_cv_path_LD="$ac_dir/$ac_prog"
  55880. + # Check to see if the program is GNU ld. I'd rather use --version,
  55881. + # but apparently some variants of GNU ld only accept -v.
  55882. + # Break only if it was the GNU/non-GNU ld that we prefer.
  55883. + case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  55884. + *GNU* | *'with BFD'*)
  55885. + test "$with_gnu_ld" != no && break
  55886. + ;;
  55887. + *)
  55888. + test "$with_gnu_ld" != yes && break
  55889. + ;;
  55890. + esac
  55891. + fi
  55892. + done
  55893. + IFS="$lt_save_ifs"
  55894. +else
  55895. + lt_cv_path_LD="$LD" # Let the user override the test with a path.
  55896. +fi])
  55897. +LD="$lt_cv_path_LD"
  55898. +if test -n "$LD"; then
  55899. + AC_MSG_RESULT($LD)
  55900. +else
  55901. + AC_MSG_RESULT(no)
  55902. +fi
  55903. +test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])
  55904. +_LT_PATH_LD_GNU
  55905. +AC_SUBST([LD])
  55906. +
  55907. +_LT_TAGDECL([], [LD], [1], [The linker used to build libraries])
  55908. +])# LT_PATH_LD
  55909. +
  55910. +# Old names:
  55911. +AU_ALIAS([AM_PROG_LD], [LT_PATH_LD])
  55912. +AU_ALIAS([AC_PROG_LD], [LT_PATH_LD])
  55913. +dnl aclocal-1.4 backwards compatibility:
  55914. +dnl AC_DEFUN([AM_PROG_LD], [])
  55915. +dnl AC_DEFUN([AC_PROG_LD], [])
  55916. +
  55917. +
  55918. +# _LT_PATH_LD_GNU
  55919. +#- --------------
  55920. +m4_defun([_LT_PATH_LD_GNU],
  55921. +[AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld,
  55922. +[# I'd rather use --version here, but apparently some GNU lds only accept -v.
  55923. +case `$LD -v 2>&1 </dev/null` in
  55924. +*GNU* | *'with BFD'*)
  55925. + lt_cv_prog_gnu_ld=yes
  55926. + ;;
  55927. +*)
  55928. + lt_cv_prog_gnu_ld=no
  55929. + ;;
  55930. +esac])
  55931. +with_gnu_ld=$lt_cv_prog_gnu_ld
  55932. +])# _LT_PATH_LD_GNU
  55933. +
  55934. +
  55935. +# _LT_CMD_RELOAD
  55936. +# --------------
  55937. +# find reload flag for linker
  55938. +# -- PORTME Some linkers may need a different reload flag.
  55939. +m4_defun([_LT_CMD_RELOAD],
  55940. +[AC_CACHE_CHECK([for $LD option to reload object files],
  55941. + lt_cv_ld_reload_flag,
  55942. + [lt_cv_ld_reload_flag='-r'])
  55943. +reload_flag=$lt_cv_ld_reload_flag
  55944. +case $reload_flag in
  55945. +"" | " "*) ;;
  55946. +*) reload_flag=" $reload_flag" ;;
  55947. +esac
  55948. +reload_cmds='$LD$reload_flag -o $output$reload_objs'
  55949. +case $host_os in
  55950. + darwin*)
  55951. + if test "$GCC" = yes; then
  55952. + reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
  55953. + else
  55954. + reload_cmds='$LD$reload_flag -o $output$reload_objs'
  55955. + fi
  55956. + ;;
  55957. +esac
  55958. +_LT_DECL([], [reload_flag], [1], [How to create reloadable object files])dnl
  55959. +_LT_DECL([], [reload_cmds], [2])dnl
  55960. +])# _LT_CMD_RELOAD
  55961. +
  55962. +
  55963. +# _LT_CHECK_MAGIC_METHOD
  55964. +# ----------------------
  55965. +# how to check for library dependencies
  55966. +# -- PORTME fill in with the dynamic library characteristics
  55967. +m4_defun([_LT_CHECK_MAGIC_METHOD],
  55968. +[m4_require([_LT_DECL_EGREP])
  55969. +m4_require([_LT_DECL_OBJDUMP])
  55970. +AC_CACHE_CHECK([how to recognize dependent libraries],
  55971. +lt_cv_deplibs_check_method,
  55972. +[lt_cv_file_magic_cmd='$MAGIC_CMD'
  55973. +lt_cv_file_magic_test_file=
  55974. +lt_cv_deplibs_check_method='unknown'
  55975. +# Need to set the preceding variable on all platforms that support
  55976. +# interlibrary dependencies.
  55977. +# 'none' -- dependencies not supported.
  55978. +# `unknown' -- same as none, but documents that we really don't know.
  55979. +# 'pass_all' -- all dependencies passed with no checks.
  55980. +# 'test_compile' -- check by making test program.
  55981. +# 'file_magic [[regex]]' -- check by looking for files in library path
  55982. +# which responds to the $file_magic_cmd with a given extended regex.
  55983. +# If you have `file' or equivalent on your system and you're not sure
  55984. +# whether `pass_all' will *always* work, you probably want this one.
  55985. +
  55986. +case $host_os in
  55987. +aix[[4-9]]*)
  55988. + lt_cv_deplibs_check_method=pass_all
  55989. + ;;
  55990. +
  55991. +beos*)
  55992. + lt_cv_deplibs_check_method=pass_all
  55993. + ;;
  55994. +
  55995. +bsdi[[45]]*)
  55996. + lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)'
  55997. + lt_cv_file_magic_cmd='/usr/bin/file -L'
  55998. + lt_cv_file_magic_test_file=/shlib/libc.so
  55999. + ;;
  56000. +
  56001. +cygwin*)
  56002. + # func_win32_libid is a shell function defined in ltmain.sh
  56003. + lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  56004. + lt_cv_file_magic_cmd='func_win32_libid'
  56005. + ;;
  56006. +
  56007. +mingw* | pw32*)
  56008. + # Base MSYS/MinGW do not provide the 'file' command needed by
  56009. + # func_win32_libid shell function, so use a weaker test based on 'objdump',
  56010. + # unless we find 'file', for example because we are cross-compiling.
  56011. + if ( file / ) >/dev/null 2>&1; then
  56012. + lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  56013. + lt_cv_file_magic_cmd='func_win32_libid'
  56014. + else
  56015. + lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
  56016. + lt_cv_file_magic_cmd='$OBJDUMP -f'
  56017. + fi
  56018. + ;;
  56019. +
  56020. +cegcc)
  56021. + # use the weaker test based on 'objdump'. See mingw*.
  56022. + lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  56023. + lt_cv_file_magic_cmd='$OBJDUMP -f'
  56024. + ;;
  56025. +
  56026. +darwin* | rhapsody*)
  56027. + lt_cv_deplibs_check_method=pass_all
  56028. + ;;
  56029. +
  56030. +freebsd* | dragonfly*)
  56031. + if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  56032. + case $host_cpu in
  56033. + i*86 )
  56034. + # Not sure whether the presence of OpenBSD here was a mistake.
  56035. + # Let's accept both of them until this is cleared up.
  56036. + lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[[3-9]]86 (compact )?demand paged shared library'
  56037. + lt_cv_file_magic_cmd=/usr/bin/file
  56038. + lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  56039. + ;;
  56040. + esac
  56041. + else
  56042. + lt_cv_deplibs_check_method=pass_all
  56043. + fi
  56044. + ;;
  56045. +
  56046. +gnu*)
  56047. + lt_cv_deplibs_check_method=pass_all
  56048. + ;;
  56049. +
  56050. +hpux10.20* | hpux11*)
  56051. + lt_cv_file_magic_cmd=/usr/bin/file
  56052. + case $host_cpu in
  56053. + ia64*)
  56054. + lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64'
  56055. + lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  56056. + ;;
  56057. + hppa*64*)
  56058. + [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]']
  56059. + lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  56060. + ;;
  56061. + *)
  56062. + lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]].[[0-9]]) shared library'
  56063. + lt_cv_file_magic_test_file=/usr/lib/libc.sl
  56064. + ;;
  56065. + esac
  56066. + ;;
  56067. +
  56068. +interix[[3-9]]*)
  56069. + # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  56070. + lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|\.a)$'
  56071. + ;;
  56072. +
  56073. +irix5* | irix6* | nonstopux*)
  56074. + case $LD in
  56075. + *-32|*"-32 ") libmagic=32-bit;;
  56076. + *-n32|*"-n32 ") libmagic=N32;;
  56077. + *-64|*"-64 ") libmagic=64-bit;;
  56078. + *) libmagic=never-match;;
  56079. + esac
  56080. + lt_cv_deplibs_check_method=pass_all
  56081. + ;;
  56082. +
  56083. +# This must be Linux ELF.
  56084. +linux* | k*bsd*-gnu | kopensolaris*-gnu)
  56085. + lt_cv_deplibs_check_method=pass_all
  56086. + ;;
  56087. +
  56088. +netbsd* | netbsdelf*-gnu)
  56089. + if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  56090. + lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
  56091. + else
  56092. + lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$'
  56093. + fi
  56094. + ;;
  56095. +
  56096. +newos6*)
  56097. + lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (executable|dynamic lib)'
  56098. + lt_cv_file_magic_cmd=/usr/bin/file
  56099. + lt_cv_file_magic_test_file=/usr/lib/libnls.so
  56100. + ;;
  56101. +
  56102. +*nto* | *qnx*)
  56103. + lt_cv_deplibs_check_method=pass_all
  56104. + ;;
  56105. +
  56106. +openbsd*)
  56107. + if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  56108. + lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$'
  56109. + else
  56110. + lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
  56111. + fi
  56112. + ;;
  56113. +
  56114. +osf3* | osf4* | osf5*)
  56115. + lt_cv_deplibs_check_method=pass_all
  56116. + ;;
  56117. +
  56118. +rdos*)
  56119. + lt_cv_deplibs_check_method=pass_all
  56120. + ;;
  56121. +
  56122. +solaris*)
  56123. + lt_cv_deplibs_check_method=pass_all
  56124. + ;;
  56125. +
  56126. +sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  56127. + lt_cv_deplibs_check_method=pass_all
  56128. + ;;
  56129. +
  56130. +sysv4 | sysv4.3*)
  56131. + case $host_vendor in
  56132. + motorola)
  56133. + 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]]'
  56134. + lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  56135. + ;;
  56136. + ncr)
  56137. + lt_cv_deplibs_check_method=pass_all
  56138. + ;;
  56139. + sequent)
  56140. + lt_cv_file_magic_cmd='/bin/file'
  56141. + lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )'
  56142. + ;;
  56143. + sni)
  56144. + lt_cv_file_magic_cmd='/bin/file'
  56145. + lt_cv_deplibs_check_method="file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB dynamic lib"
  56146. + lt_cv_file_magic_test_file=/lib/libc.so
  56147. + ;;
  56148. + siemens)
  56149. + lt_cv_deplibs_check_method=pass_all
  56150. + ;;
  56151. + pc)
  56152. + lt_cv_deplibs_check_method=pass_all
  56153. + ;;
  56154. + esac
  56155. + ;;
  56156. +
  56157. +tpf*)
  56158. + lt_cv_deplibs_check_method=pass_all
  56159. + ;;
  56160. +esac
  56161. +])
  56162. +file_magic_cmd=$lt_cv_file_magic_cmd
  56163. +deplibs_check_method=$lt_cv_deplibs_check_method
  56164. +test -z "$deplibs_check_method" && deplibs_check_method=unknown
  56165. +
  56166. +_LT_DECL([], [deplibs_check_method], [1],
  56167. + [Method to check whether dependent libraries are shared objects])
  56168. +_LT_DECL([], [file_magic_cmd], [1],
  56169. + [Command to use when deplibs_check_method == "file_magic"])
  56170. +])# _LT_CHECK_MAGIC_METHOD
  56171. +
  56172. +
  56173. +# LT_PATH_NM
  56174. +# ----------
  56175. +# find the pathname to a BSD- or MS-compatible name lister
  56176. +AC_DEFUN([LT_PATH_NM],
  56177. +[AC_REQUIRE([AC_PROG_CC])dnl
  56178. +AC_CACHE_CHECK([for BSD- or MS-compatible name lister (nm)], lt_cv_path_NM,
  56179. +[if test -n "$NM"; then
  56180. + # Let the user override the test.
  56181. + lt_cv_path_NM="$NM"
  56182. +else
  56183. + lt_nm_to_check="${ac_tool_prefix}nm"
  56184. + if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  56185. + lt_nm_to_check="$lt_nm_to_check nm"
  56186. + fi
  56187. + for lt_tmp_nm in $lt_nm_to_check; do
  56188. + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  56189. + for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  56190. + IFS="$lt_save_ifs"
  56191. + test -z "$ac_dir" && ac_dir=.
  56192. + tmp_nm="$ac_dir/$lt_tmp_nm"
  56193. + if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
  56194. + # Check to see if the nm accepts a BSD-compat flag.
  56195. + # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  56196. + # nm: unknown option "B" ignored
  56197. + # Tru64's nm complains that /dev/null is an invalid object file
  56198. + case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
  56199. + */dev/null* | *'Invalid file or object type'*)
  56200. + lt_cv_path_NM="$tmp_nm -B"
  56201. + break
  56202. + ;;
  56203. + *)
  56204. + case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  56205. + */dev/null*)
  56206. + lt_cv_path_NM="$tmp_nm -p"
  56207. + break
  56208. + ;;
  56209. + *)
  56210. + lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  56211. + continue # so that we can try to find one that supports BSD flags
  56212. + ;;
  56213. + esac
  56214. + ;;
  56215. + esac
  56216. + fi
  56217. + done
  56218. + IFS="$lt_save_ifs"
  56219. + done
  56220. + : ${lt_cv_path_NM=no}
  56221. +fi])
  56222. +if test "$lt_cv_path_NM" != "no"; then
  56223. + NM="$lt_cv_path_NM"
  56224. +else
  56225. + # Didn't find any BSD compatible name lister, look for dumpbin.
  56226. + AC_CHECK_TOOLS(DUMPBIN, ["dumpbin -symbols" "link -dump -symbols"], :)
  56227. + AC_SUBST([DUMPBIN])
  56228. + if test "$DUMPBIN" != ":"; then
  56229. + NM="$DUMPBIN"
  56230. + fi
  56231. +fi
  56232. +test -z "$NM" && NM=nm
  56233. +AC_SUBST([NM])
  56234. +_LT_DECL([], [NM], [1], [A BSD- or MS-compatible name lister])dnl
  56235. +
  56236. +AC_CACHE_CHECK([the name lister ($NM) interface], [lt_cv_nm_interface],
  56237. + [lt_cv_nm_interface="BSD nm"
  56238. + echo "int some_variable = 0;" > conftest.$ac_ext
  56239. + (eval echo "\"\$as_me:__oline__: $ac_compile\"" >&AS_MESSAGE_LOG_FD)
  56240. + (eval "$ac_compile" 2>conftest.err)
  56241. + cat conftest.err >&AS_MESSAGE_LOG_FD
  56242. + (eval echo "\"\$as_me:__oline__: $NM \\\"conftest.$ac_objext\\\"\"" >&AS_MESSAGE_LOG_FD)
  56243. + (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  56244. + cat conftest.err >&AS_MESSAGE_LOG_FD
  56245. + (eval echo "\"\$as_me:__oline__: output\"" >&AS_MESSAGE_LOG_FD)
  56246. + cat conftest.out >&AS_MESSAGE_LOG_FD
  56247. + if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  56248. + lt_cv_nm_interface="MS dumpbin"
  56249. + fi
  56250. + rm -f conftest*])
  56251. +])# LT_PATH_NM
  56252. +
  56253. +# Old names:
  56254. +AU_ALIAS([AM_PROG_NM], [LT_PATH_NM])
  56255. +AU_ALIAS([AC_PROG_NM], [LT_PATH_NM])
  56256. +dnl aclocal-1.4 backwards compatibility:
  56257. +dnl AC_DEFUN([AM_PROG_NM], [])
  56258. +dnl AC_DEFUN([AC_PROG_NM], [])
  56259. +
  56260. +
  56261. +# LT_LIB_M
  56262. +# --------
  56263. +# check for math library
  56264. +AC_DEFUN([LT_LIB_M],
  56265. +[AC_REQUIRE([AC_CANONICAL_HOST])dnl
  56266. +LIBM=
  56267. +case $host in
  56268. +*-*-beos* | *-*-cygwin* | *-*-pw32* | *-*-darwin*)
  56269. + # These system don't have libm, or don't need it
  56270. + ;;
  56271. +*-ncr-sysv4.3*)
  56272. + AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM="-lmw")
  56273. + AC_CHECK_LIB(m, cos, LIBM="$LIBM -lm")
  56274. + ;;
  56275. +*)
  56276. + AC_CHECK_LIB(m, cos, LIBM="-lm")
  56277. + ;;
  56278. +esac
  56279. +AC_SUBST([LIBM])
  56280. +])# LT_LIB_M
  56281. +
  56282. +# Old name:
  56283. +AU_ALIAS([AC_CHECK_LIBM], [LT_LIB_M])
  56284. +dnl aclocal-1.4 backwards compatibility:
  56285. +dnl AC_DEFUN([AC_CHECK_LIBM], [])
  56286. +
  56287. +
  56288. +# _LT_COMPILER_NO_RTTI([TAGNAME])
  56289. +# -------------------------------
  56290. +m4_defun([_LT_COMPILER_NO_RTTI],
  56291. +[m4_require([_LT_TAG_COMPILER])dnl
  56292. +
  56293. +_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
  56294. +
  56295. +if test "$GCC" = yes; then
  56296. + _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
  56297. +
  56298. + _LT_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions],
  56299. + lt_cv_prog_compiler_rtti_exceptions,
  56300. + [-fno-rtti -fno-exceptions], [],
  56301. + [_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"])
  56302. +fi
  56303. +_LT_TAGDECL([no_builtin_flag], [lt_prog_compiler_no_builtin_flag], [1],
  56304. + [Compiler flag to turn off builtin functions])
  56305. +])# _LT_COMPILER_NO_RTTI
  56306. +
  56307. +
  56308. +# _LT_CMD_GLOBAL_SYMBOLS
  56309. +# ----------------------
  56310. +m4_defun([_LT_CMD_GLOBAL_SYMBOLS],
  56311. +[AC_REQUIRE([AC_CANONICAL_HOST])dnl
  56312. +AC_REQUIRE([AC_PROG_CC])dnl
  56313. +AC_REQUIRE([LT_PATH_NM])dnl
  56314. +AC_REQUIRE([LT_PATH_LD])dnl
  56315. +m4_require([_LT_DECL_SED])dnl
  56316. +m4_require([_LT_DECL_EGREP])dnl
  56317. +m4_require([_LT_TAG_COMPILER])dnl
  56318. +
  56319. +# Check for command to grab the raw symbol name followed by C symbol from nm.
  56320. +AC_MSG_CHECKING([command to parse $NM output from $compiler object])
  56321. +AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe],
  56322. +[
  56323. +# These are sane defaults that work on at least a few old systems.
  56324. +# [They come from Ultrix. What could be older than Ultrix?!! ;)]
  56325. +
  56326. +# Character class describing NM global symbol codes.
  56327. +symcode='[[BCDEGRST]]'
  56328. +
  56329. +# Regexp to match symbols that can be accessed directly from C.
  56330. +sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)'
  56331. +
  56332. +# Define system-specific variables.
  56333. +case $host_os in
  56334. +aix*)
  56335. + symcode='[[BCDT]]'
  56336. + ;;
  56337. +cygwin* | mingw* | pw32* | cegcc*)
  56338. + symcode='[[ABCDGISTW]]'
  56339. + ;;
  56340. +hpux*)
  56341. + if test "$host_cpu" = ia64; then
  56342. + symcode='[[ABCDEGRST]]'
  56343. + fi
  56344. + ;;
  56345. +irix* | nonstopux*)
  56346. + symcode='[[BCDEGRST]]'
  56347. + ;;
  56348. +osf*)
  56349. + symcode='[[BCDEGQRST]]'
  56350. + ;;
  56351. +solaris*)
  56352. + symcode='[[BDRT]]'
  56353. + ;;
  56354. +sco3.2v5*)
  56355. + symcode='[[DT]]'
  56356. + ;;
  56357. +sysv4.2uw2*)
  56358. + symcode='[[DT]]'
  56359. + ;;
  56360. +sysv5* | sco5v6* | unixware* | OpenUNIX*)
  56361. + symcode='[[ABDT]]'
  56362. + ;;
  56363. +sysv4)
  56364. + symcode='[[DFNSTU]]'
  56365. + ;;
  56366. +esac
  56367. +
  56368. +# If we're using GNU nm, then use its standard symbol codes.
  56369. +case `$NM -V 2>&1` in
  56370. +*GNU* | *'with BFD'*)
  56371. + symcode='[[ABCDGIRSTW]]' ;;
  56372. +esac
  56373. +
  56374. +# Transform an extracted symbol line into a proper C declaration.
  56375. +# Some systems (esp. on ia64) link data and code symbols differently,
  56376. +# so use this general approach.
  56377. +lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  56378. +
  56379. +# Transform an extracted symbol line into symbol name and symbol address
  56380. +lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (void *) \&\2},/p'"
  56381. +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'"
  56382. +
  56383. +# Handle CRLF in mingw tool chain
  56384. +opt_cr=
  56385. +case $build_os in
  56386. +mingw*)
  56387. + opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  56388. + ;;
  56389. +esac
  56390. +
  56391. +# Try without a prefix underscore, then with it.
  56392. +for ac_symprfx in "" "_"; do
  56393. +
  56394. + # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  56395. + symxfrm="\\1 $ac_symprfx\\2 \\2"
  56396. +
  56397. + # Write the raw and C identifiers.
  56398. + if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  56399. + # Fake it for dumpbin and say T for any non-static function
  56400. + # and D for any global variable.
  56401. + # Also find C++ and __fastcall symbols from MSVC++,
  56402. + # which start with @ or ?.
  56403. + lt_cv_sys_global_symbol_pipe="$AWK ['"\
  56404. +" {last_section=section; section=\$ 3};"\
  56405. +" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  56406. +" \$ 0!~/External *\|/{next};"\
  56407. +" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  56408. +" {if(hide[section]) next};"\
  56409. +" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
  56410. +" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
  56411. +" s[1]~/^[@?]/{print s[1], s[1]; next};"\
  56412. +" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
  56413. +" ' prfx=^$ac_symprfx]"
  56414. + else
  56415. + lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  56416. + fi
  56417. +
  56418. + # Check to see that the pipe works correctly.
  56419. + pipe_works=no
  56420. +
  56421. + rm -f conftest*
  56422. + cat > conftest.$ac_ext <<_LT_EOF
  56423. +#ifdef __cplusplus
  56424. +extern "C" {
  56425. +#endif
  56426. +char nm_test_var;
  56427. +void nm_test_func(void);
  56428. +void nm_test_func(void){}
  56429. +#ifdef __cplusplus
  56430. +}
  56431. +#endif
  56432. +int main(){nm_test_var='a';nm_test_func();return(0);}
  56433. +_LT_EOF
  56434. +
  56435. + if AC_TRY_EVAL(ac_compile); then
  56436. + # Now try to grab the symbols.
  56437. + nlist=conftest.nm
  56438. + if AC_TRY_EVAL(NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) && test -s "$nlist"; then
  56439. + # Try sorting and uniquifying the output.
  56440. + if sort "$nlist" | uniq > "$nlist"T; then
  56441. + mv -f "$nlist"T "$nlist"
  56442. + else
  56443. + rm -f "$nlist"T
  56444. + fi
  56445. +
  56446. + # Make sure that we snagged all the symbols we need.
  56447. + if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  56448. + if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  56449. + cat <<_LT_EOF > conftest.$ac_ext
  56450. +#ifdef __cplusplus
  56451. +extern "C" {
  56452. +#endif
  56453. +
  56454. +_LT_EOF
  56455. + # Now generate the symbol file.
  56456. + eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  56457. +
  56458. + cat <<_LT_EOF >> conftest.$ac_ext
  56459. +
  56460. +/* The mapping between symbol names and symbols. */
  56461. +const struct {
  56462. + const char *name;
  56463. + void *address;
  56464. +}
  56465. +lt__PROGRAM__LTX_preloaded_symbols[[]] =
  56466. +{
  56467. + { "@PROGRAM@", (void *) 0 },
  56468. +_LT_EOF
  56469. + $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  56470. + cat <<\_LT_EOF >> conftest.$ac_ext
  56471. + {0, (void *) 0}
  56472. +};
  56473. +
  56474. +/* This works around a problem in FreeBSD linker */
  56475. +#ifdef FREEBSD_WORKAROUND
  56476. +static const void *lt_preloaded_setup() {
  56477. + return lt__PROGRAM__LTX_preloaded_symbols;
  56478. +}
  56479. +#endif
  56480. +
  56481. +#ifdef __cplusplus
  56482. +}
  56483. +#endif
  56484. +_LT_EOF
  56485. + # Now try linking the two files.
  56486. + mv conftest.$ac_objext conftstm.$ac_objext
  56487. + lt_save_LIBS="$LIBS"
  56488. + lt_save_CFLAGS="$CFLAGS"
  56489. + LIBS="conftstm.$ac_objext"
  56490. + CFLAGS="$CFLAGS$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)"
  56491. + if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then
  56492. + pipe_works=yes
  56493. + fi
  56494. + LIBS="$lt_save_LIBS"
  56495. + CFLAGS="$lt_save_CFLAGS"
  56496. + else
  56497. + echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD
  56498. + fi
  56499. + else
  56500. + echo "cannot find nm_test_var in $nlist" >&AS_MESSAGE_LOG_FD
  56501. + fi
  56502. + else
  56503. + echo "cannot run $lt_cv_sys_global_symbol_pipe" >&AS_MESSAGE_LOG_FD
  56504. + fi
  56505. + else
  56506. + echo "$progname: failed program was:" >&AS_MESSAGE_LOG_FD
  56507. + cat conftest.$ac_ext >&5
  56508. + fi
  56509. + rm -rf conftest* conftst*
  56510. +
  56511. + # Do not use the global_symbol_pipe unless it works.
  56512. + if test "$pipe_works" = yes; then
  56513. + break
  56514. + else
  56515. + lt_cv_sys_global_symbol_pipe=
  56516. + fi
  56517. +done
  56518. +])
  56519. +if test -z "$lt_cv_sys_global_symbol_pipe"; then
  56520. + lt_cv_sys_global_symbol_to_cdecl=
  56521. +fi
  56522. +if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  56523. + AC_MSG_RESULT(failed)
  56524. +else
  56525. + AC_MSG_RESULT(ok)
  56526. +fi
  56527. +
  56528. +_LT_DECL([global_symbol_pipe], [lt_cv_sys_global_symbol_pipe], [1],
  56529. + [Take the output of nm and produce a listing of raw symbols and C names])
  56530. +_LT_DECL([global_symbol_to_cdecl], [lt_cv_sys_global_symbol_to_cdecl], [1],
  56531. + [Transform the output of nm in a proper C declaration])
  56532. +_LT_DECL([global_symbol_to_c_name_address],
  56533. + [lt_cv_sys_global_symbol_to_c_name_address], [1],
  56534. + [Transform the output of nm in a C name address pair])
  56535. +_LT_DECL([global_symbol_to_c_name_address_lib_prefix],
  56536. + [lt_cv_sys_global_symbol_to_c_name_address_lib_prefix], [1],
  56537. + [Transform the output of nm in a C name address pair when lib prefix is needed])
  56538. +]) # _LT_CMD_GLOBAL_SYMBOLS
  56539. +
  56540. +
  56541. +# _LT_COMPILER_PIC([TAGNAME])
  56542. +# ---------------------------
  56543. +m4_defun([_LT_COMPILER_PIC],
  56544. +[m4_require([_LT_TAG_COMPILER])dnl
  56545. +_LT_TAGVAR(lt_prog_compiler_wl, $1)=
  56546. +_LT_TAGVAR(lt_prog_compiler_pic, $1)=
  56547. +_LT_TAGVAR(lt_prog_compiler_static, $1)=
  56548. +
  56549. +AC_MSG_CHECKING([for $compiler option to produce PIC])
  56550. +m4_if([$1], [CXX], [
  56551. + # C++ specific cases for pic, static, wl, etc.
  56552. + if test "$GXX" = yes; then
  56553. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  56554. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
  56555. +
  56556. + case $host_os in
  56557. + aix*)
  56558. + # All AIX code is PIC.
  56559. + if test "$host_cpu" = ia64; then
  56560. + # AIX 5 now supports IA64 processor
  56561. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  56562. + fi
  56563. + ;;
  56564. +
  56565. + amigaos*)
  56566. + case $host_cpu in
  56567. + powerpc)
  56568. + # see comment about AmigaOS4 .so support
  56569. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  56570. + ;;
  56571. + m68k)
  56572. + # FIXME: we need at least 68020 code to build shared libraries, but
  56573. + # adding the `-m68020' flag to GCC prevents building anything better,
  56574. + # like `-m68040'.
  56575. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
  56576. + ;;
  56577. + esac
  56578. + ;;
  56579. +
  56580. + beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  56581. + # PIC is the default for these OSes.
  56582. + ;;
  56583. + mingw* | cygwin* | os2* | pw32* | cegcc*)
  56584. + # This hack is so that the source file can tell whether it is being
  56585. + # built for inclusion in a dll (and should export symbols for example).
  56586. + # Although the cygwin gcc ignores -fPIC, still need this for old-style
  56587. + # (--disable-auto-import) libraries
  56588. + m4_if([$1], [GCJ], [],
  56589. + [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
  56590. + ;;
  56591. + darwin* | rhapsody*)
  56592. + # PIC is the default on this platform
  56593. + # Common symbols not allowed in MH_DYLIB files
  56594. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
  56595. + ;;
  56596. + *djgpp*)
  56597. + # DJGPP does not support shared libraries at all
  56598. + _LT_TAGVAR(lt_prog_compiler_pic, $1)=
  56599. + ;;
  56600. + interix[[3-9]]*)
  56601. + # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  56602. + # Instead, we relocate shared libraries at runtime.
  56603. + ;;
  56604. + sysv4*MP*)
  56605. + if test -d /usr/nec; then
  56606. + _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
  56607. + fi
  56608. + ;;
  56609. + hpux*)
  56610. + # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  56611. + # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  56612. + # sets the default TLS model and affects inlining.
  56613. + case $host_cpu in
  56614. + hppa*64*)
  56615. + ;;
  56616. + *)
  56617. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  56618. + ;;
  56619. + esac
  56620. + ;;
  56621. + *qnx* | *nto*)
  56622. + # QNX uses GNU C++, but need to define -shared option too, otherwise
  56623. + # it will coredump.
  56624. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
  56625. + ;;
  56626. + *)
  56627. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  56628. + ;;
  56629. + esac
  56630. + else
  56631. + case $host_os in
  56632. + aix[[4-9]]*)
  56633. + # All AIX code is PIC.
  56634. + if test "$host_cpu" = ia64; then
  56635. + # AIX 5 now supports IA64 processor
  56636. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  56637. + else
  56638. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
  56639. + fi
  56640. + ;;
  56641. + chorus*)
  56642. + case $cc_basename in
  56643. + cxch68*)
  56644. + # Green Hills C++ Compiler
  56645. + # _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"
  56646. + ;;
  56647. + esac
  56648. + ;;
  56649. + dgux*)
  56650. + case $cc_basename in
  56651. + ec++*)
  56652. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  56653. + ;;
  56654. + ghcx*)
  56655. + # Green Hills C++ Compiler
  56656. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  56657. + ;;
  56658. + *)
  56659. + ;;
  56660. + esac
  56661. + ;;
  56662. + freebsd* | dragonfly*)
  56663. + # FreeBSD uses GNU C++
  56664. + ;;
  56665. + hpux9* | hpux10* | hpux11*)
  56666. + case $cc_basename in
  56667. + CC*)
  56668. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  56669. + _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
  56670. + if test "$host_cpu" != ia64; then
  56671. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
  56672. + fi
  56673. + ;;
  56674. + aCC*)
  56675. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  56676. + _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
  56677. + case $host_cpu in
  56678. + hppa*64*|ia64*)
  56679. + # +Z the default
  56680. + ;;
  56681. + *)
  56682. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
  56683. + ;;
  56684. + esac
  56685. + ;;
  56686. + *)
  56687. + ;;
  56688. + esac
  56689. + ;;
  56690. + interix*)
  56691. + # This is c89, which is MS Visual C++ (no shared libs)
  56692. + # Anyone wants to do a port?
  56693. + ;;
  56694. + irix5* | irix6* | nonstopux*)
  56695. + case $cc_basename in
  56696. + CC*)
  56697. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  56698. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  56699. + # CC pic flag -KPIC is the default.
  56700. + ;;
  56701. + *)
  56702. + ;;
  56703. + esac
  56704. + ;;
  56705. + linux* | k*bsd*-gnu | kopensolaris*-gnu)
  56706. + case $cc_basename in
  56707. + KCC*)
  56708. + # KAI C++ Compiler
  56709. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
  56710. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  56711. + ;;
  56712. + ecpc* )
  56713. + # old Intel C++ for x86_64 which still supported -KPIC.
  56714. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  56715. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  56716. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
  56717. + ;;
  56718. + icpc* )
  56719. + # Intel C++, used to be incompatible with GCC.
  56720. + # ICC 10 doesn't accept -KPIC any more.
  56721. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  56722. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  56723. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
  56724. + ;;
  56725. + pgCC* | pgcpp*)
  56726. + # Portland Group C++ compiler
  56727. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  56728. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
  56729. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  56730. + ;;
  56731. + cxx*)
  56732. + # Compaq C++
  56733. + # Make sure the PIC flag is empty. It appears that all Alpha
  56734. + # Linux and Compaq Tru64 Unix objects are PIC.
  56735. + _LT_TAGVAR(lt_prog_compiler_pic, $1)=
  56736. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  56737. + ;;
  56738. + xlc* | xlC*)
  56739. + # IBM XL 8.0 on PPC
  56740. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  56741. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
  56742. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
  56743. + ;;
  56744. + *)
  56745. + case `$CC -V 2>&1 | sed 5q` in
  56746. + *Sun\ C*)
  56747. + # Sun C++ 5.9
  56748. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  56749. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  56750. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
  56751. + ;;
  56752. + esac
  56753. + ;;
  56754. + esac
  56755. + ;;
  56756. + lynxos*)
  56757. + ;;
  56758. + m88k*)
  56759. + ;;
  56760. + mvs*)
  56761. + case $cc_basename in
  56762. + cxx*)
  56763. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall'
  56764. + ;;
  56765. + *)
  56766. + ;;
  56767. + esac
  56768. + ;;
  56769. + netbsd* | netbsdelf*-gnu)
  56770. + ;;
  56771. + *qnx* | *nto*)
  56772. + # QNX uses GNU C++, but need to define -shared option too, otherwise
  56773. + # it will coredump.
  56774. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
  56775. + ;;
  56776. + osf3* | osf4* | osf5*)
  56777. + case $cc_basename in
  56778. + KCC*)
  56779. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
  56780. + ;;
  56781. + RCC*)
  56782. + # Rational C++ 2.4.1
  56783. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  56784. + ;;
  56785. + cxx*)
  56786. + # Digital/Compaq C++
  56787. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  56788. + # Make sure the PIC flag is empty. It appears that all Alpha
  56789. + # Linux and Compaq Tru64 Unix objects are PIC.
  56790. + _LT_TAGVAR(lt_prog_compiler_pic, $1)=
  56791. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  56792. + ;;
  56793. + *)
  56794. + ;;
  56795. + esac
  56796. + ;;
  56797. + psos*)
  56798. + ;;
  56799. + solaris*)
  56800. + case $cc_basename in
  56801. + CC*)
  56802. + # Sun C++ 4.2, 5.x and Centerline C++
  56803. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  56804. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  56805. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
  56806. + ;;
  56807. + gcx*)
  56808. + # Green Hills C++ Compiler
  56809. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
  56810. + ;;
  56811. + *)
  56812. + ;;
  56813. + esac
  56814. + ;;
  56815. + sunos4*)
  56816. + case $cc_basename in
  56817. + CC*)
  56818. + # Sun C++ 4.x
  56819. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  56820. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  56821. + ;;
  56822. + lcc*)
  56823. + # Lucid
  56824. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  56825. + ;;
  56826. + *)
  56827. + ;;
  56828. + esac
  56829. + ;;
  56830. + sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  56831. + case $cc_basename in
  56832. + CC*)
  56833. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  56834. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  56835. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  56836. + ;;
  56837. + esac
  56838. + ;;
  56839. + tandem*)
  56840. + case $cc_basename in
  56841. + NCC*)
  56842. + # NonStop-UX NCC 3.20
  56843. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  56844. + ;;
  56845. + *)
  56846. + ;;
  56847. + esac
  56848. + ;;
  56849. + vxworks*)
  56850. + ;;
  56851. + *)
  56852. + _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
  56853. + ;;
  56854. + esac
  56855. + fi
  56856. +],
  56857. +[
  56858. + if test "$GCC" = yes; then
  56859. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  56860. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
  56861. +
  56862. + case $host_os in
  56863. + aix*)
  56864. + # All AIX code is PIC.
  56865. + if test "$host_cpu" = ia64; then
  56866. + # AIX 5 now supports IA64 processor
  56867. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  56868. + fi
  56869. + ;;
  56870. +
  56871. + amigaos*)
  56872. + case $host_cpu in
  56873. + powerpc)
  56874. + # see comment about AmigaOS4 .so support
  56875. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  56876. + ;;
  56877. + m68k)
  56878. + # FIXME: we need at least 68020 code to build shared libraries, but
  56879. + # adding the `-m68020' flag to GCC prevents building anything better,
  56880. + # like `-m68040'.
  56881. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
  56882. + ;;
  56883. + esac
  56884. + ;;
  56885. +
  56886. + beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  56887. + # PIC is the default for these OSes.
  56888. + ;;
  56889. +
  56890. + mingw* | cygwin* | pw32* | os2* | cegcc*)
  56891. + # This hack is so that the source file can tell whether it is being
  56892. + # built for inclusion in a dll (and should export symbols for example).
  56893. + # Although the cygwin gcc ignores -fPIC, still need this for old-style
  56894. + # (--disable-auto-import) libraries
  56895. + m4_if([$1], [GCJ], [],
  56896. + [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
  56897. + ;;
  56898. +
  56899. + darwin* | rhapsody*)
  56900. + # PIC is the default on this platform
  56901. + # Common symbols not allowed in MH_DYLIB files
  56902. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
  56903. + ;;
  56904. +
  56905. + hpux*)
  56906. + # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  56907. + # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  56908. + # sets the default TLS model and affects inlining.
  56909. + case $host_cpu in
  56910. + hppa*64*)
  56911. + # +Z the default
  56912. + ;;
  56913. + *)
  56914. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  56915. + ;;
  56916. + esac
  56917. + ;;
  56918. +
  56919. + interix[[3-9]]*)
  56920. + # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  56921. + # Instead, we relocate shared libraries at runtime.
  56922. + ;;
  56923. +
  56924. + msdosdjgpp*)
  56925. + # Just because we use GCC doesn't mean we suddenly get shared libraries
  56926. + # on systems that don't support them.
  56927. + _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
  56928. + enable_shared=no
  56929. + ;;
  56930. +
  56931. + *nto* | *qnx*)
  56932. + # QNX uses GNU C++, but need to define -shared option too, otherwise
  56933. + # it will coredump.
  56934. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
  56935. + ;;
  56936. +
  56937. + sysv4*MP*)
  56938. + if test -d /usr/nec; then
  56939. + _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
  56940. + fi
  56941. + ;;
  56942. +
  56943. + *)
  56944. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  56945. + ;;
  56946. + esac
  56947. + else
  56948. + # PORTME Check for flag to pass linker flags through the system compiler.
  56949. + case $host_os in
  56950. + aix*)
  56951. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  56952. + if test "$host_cpu" = ia64; then
  56953. + # AIX 5 now supports IA64 processor
  56954. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  56955. + else
  56956. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
  56957. + fi
  56958. + ;;
  56959. +
  56960. + mingw* | cygwin* | pw32* | os2* | cegcc*)
  56961. + # This hack is so that the source file can tell whether it is being
  56962. + # built for inclusion in a dll (and should export symbols for example).
  56963. + m4_if([$1], [GCJ], [],
  56964. + [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
  56965. + ;;
  56966. +
  56967. + hpux9* | hpux10* | hpux11*)
  56968. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  56969. + # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  56970. + # not for PA HP-UX.
  56971. + case $host_cpu in
  56972. + hppa*64*|ia64*)
  56973. + # +Z the default
  56974. + ;;
  56975. + *)
  56976. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
  56977. + ;;
  56978. + esac
  56979. + # Is there a better lt_prog_compiler_static that works with the bundled CC?
  56980. + _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
  56981. + ;;
  56982. +
  56983. + irix5* | irix6* | nonstopux*)
  56984. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  56985. + # PIC (with -KPIC) is the default.
  56986. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  56987. + ;;
  56988. +
  56989. + linux* | k*bsd*-gnu | kopensolaris*-gnu)
  56990. + case $cc_basename in
  56991. + # old Intel for x86_64 which still supported -KPIC.
  56992. + ecc*)
  56993. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  56994. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  56995. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
  56996. + ;;
  56997. + # icc used to be incompatible with GCC.
  56998. + # ICC 10 doesn't accept -KPIC any more.
  56999. + icc* | ifort*)
  57000. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  57001. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  57002. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
  57003. + ;;
  57004. + # Lahey Fortran 8.1.
  57005. + lf95*)
  57006. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  57007. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='--shared'
  57008. + _LT_TAGVAR(lt_prog_compiler_static, $1)='--static'
  57009. + ;;
  57010. + pgcc* | pgf77* | pgf90* | pgf95*)
  57011. + # Portland Group compilers (*not* the Pentium gcc compiler,
  57012. + # which looks to be a dead project)
  57013. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  57014. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
  57015. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  57016. + ;;
  57017. + ccc*)
  57018. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  57019. + # All Alpha code is PIC.
  57020. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  57021. + ;;
  57022. + xl*)
  57023. + # IBM XL C 8.0/Fortran 10.1 on PPC
  57024. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  57025. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
  57026. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
  57027. + ;;
  57028. + *)
  57029. + case `$CC -V 2>&1 | sed 5q` in
  57030. + *Sun\ C*)
  57031. + # Sun C 5.9
  57032. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  57033. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  57034. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  57035. + ;;
  57036. + *Sun\ F*)
  57037. + # Sun Fortran 8.3 passes all unrecognized flags to the linker
  57038. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  57039. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  57040. + _LT_TAGVAR(lt_prog_compiler_wl, $1)=''
  57041. + ;;
  57042. + esac
  57043. + ;;
  57044. + esac
  57045. + ;;
  57046. +
  57047. + newsos6)
  57048. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  57049. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  57050. + ;;
  57051. +
  57052. + *nto* | *qnx*)
  57053. + # QNX uses GNU C++, but need to define -shared option too, otherwise
  57054. + # it will coredump.
  57055. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
  57056. + ;;
  57057. +
  57058. + osf3* | osf4* | osf5*)
  57059. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  57060. + # All OSF/1 code is PIC.
  57061. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  57062. + ;;
  57063. +
  57064. + rdos*)
  57065. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  57066. + ;;
  57067. +
  57068. + solaris*)
  57069. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  57070. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  57071. + case $cc_basename in
  57072. + f77* | f90* | f95*)
  57073. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';;
  57074. + *)
  57075. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';;
  57076. + esac
  57077. + ;;
  57078. +
  57079. + sunos4*)
  57080. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
  57081. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
  57082. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  57083. + ;;
  57084. +
  57085. + sysv4 | sysv4.2uw2* | sysv4.3*)
  57086. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  57087. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  57088. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  57089. + ;;
  57090. +
  57091. + sysv4*MP*)
  57092. + if test -d /usr/nec ;then
  57093. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic'
  57094. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  57095. + fi
  57096. + ;;
  57097. +
  57098. + sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  57099. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  57100. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  57101. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  57102. + ;;
  57103. +
  57104. + unicos*)
  57105. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  57106. + _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
  57107. + ;;
  57108. +
  57109. + uts4*)
  57110. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  57111. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  57112. + ;;
  57113. +
  57114. + *)
  57115. + _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
  57116. + ;;
  57117. + esac
  57118. + fi
  57119. +])
  57120. +case $host_os in
  57121. + # For platforms which do not support PIC, -DPIC is meaningless:
  57122. + *djgpp*)
  57123. + _LT_TAGVAR(lt_prog_compiler_pic, $1)=
  57124. + ;;
  57125. + *)
  57126. + _LT_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])"
  57127. + ;;
  57128. +esac
  57129. +AC_MSG_RESULT([$_LT_TAGVAR(lt_prog_compiler_pic, $1)])
  57130. +_LT_TAGDECL([wl], [lt_prog_compiler_wl], [1],
  57131. + [How to pass a linker flag through the compiler])
  57132. +
  57133. +#
  57134. +# Check to make sure the PIC flag actually works.
  57135. +#
  57136. +if test -n "$_LT_TAGVAR(lt_prog_compiler_pic, $1)"; then
  57137. + _LT_COMPILER_OPTION([if $compiler PIC flag $_LT_TAGVAR(lt_prog_compiler_pic, $1) works],
  57138. + [_LT_TAGVAR(lt_cv_prog_compiler_pic_works, $1)],
  57139. + [$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])], [],
  57140. + [case $_LT_TAGVAR(lt_prog_compiler_pic, $1) in
  57141. + "" | " "*) ;;
  57142. + *) _LT_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_TAGVAR(lt_prog_compiler_pic, $1)" ;;
  57143. + esac],
  57144. + [_LT_TAGVAR(lt_prog_compiler_pic, $1)=
  57145. + _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no])
  57146. +fi
  57147. +_LT_TAGDECL([pic_flag], [lt_prog_compiler_pic], [1],
  57148. + [Additional compiler flags for building library objects])
  57149. +
  57150. +#
  57151. +# Check to make sure the static flag actually works.
  57152. +#
  57153. +wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_TAGVAR(lt_prog_compiler_static, $1)\"
  57154. +_LT_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works],
  57155. + _LT_TAGVAR(lt_cv_prog_compiler_static_works, $1),
  57156. + $lt_tmp_static_flag,
  57157. + [],
  57158. + [_LT_TAGVAR(lt_prog_compiler_static, $1)=])
  57159. +_LT_TAGDECL([link_static_flag], [lt_prog_compiler_static], [1],
  57160. + [Compiler flag to prevent dynamic linking])
  57161. +])# _LT_COMPILER_PIC
  57162. +
  57163. +
  57164. +# _LT_LINKER_SHLIBS([TAGNAME])
  57165. +# ----------------------------
  57166. +# See if the linker supports building shared libraries.
  57167. +m4_defun([_LT_LINKER_SHLIBS],
  57168. +[AC_REQUIRE([LT_PATH_LD])dnl
  57169. +AC_REQUIRE([LT_PATH_NM])dnl
  57170. +m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  57171. +m4_require([_LT_DECL_EGREP])dnl
  57172. +m4_require([_LT_DECL_SED])dnl
  57173. +m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
  57174. +m4_require([_LT_TAG_COMPILER])dnl
  57175. +AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
  57176. +m4_if([$1], [CXX], [
  57177. + _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  57178. + case $host_os in
  57179. + aix[[4-9]]*)
  57180. + # If we're using GNU nm, then we don't want the "-C" option.
  57181. + # -C means demangle to AIX nm, but means don't demangle with GNU nm
  57182. + if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  57183. + _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'
  57184. + else
  57185. + _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'
  57186. + fi
  57187. + ;;
  57188. + pw32*)
  57189. + _LT_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
  57190. + ;;
  57191. + cygwin* | mingw* | cegcc*)
  57192. + _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'
  57193. + ;;
  57194. + linux* | k*bsd*-gnu)
  57195. + _LT_TAGVAR(link_all_deplibs, $1)=no
  57196. + ;;
  57197. + *)
  57198. + _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  57199. + ;;
  57200. + esac
  57201. + _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
  57202. +], [
  57203. + runpath_var=
  57204. + _LT_TAGVAR(allow_undefined_flag, $1)=
  57205. + _LT_TAGVAR(always_export_symbols, $1)=no
  57206. + _LT_TAGVAR(archive_cmds, $1)=
  57207. + _LT_TAGVAR(archive_expsym_cmds, $1)=
  57208. + _LT_TAGVAR(compiler_needs_object, $1)=no
  57209. + _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
  57210. + _LT_TAGVAR(export_dynamic_flag_spec, $1)=
  57211. + _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  57212. + _LT_TAGVAR(hardcode_automatic, $1)=no
  57213. + _LT_TAGVAR(hardcode_direct, $1)=no
  57214. + _LT_TAGVAR(hardcode_direct_absolute, $1)=no
  57215. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
  57216. + _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
  57217. + _LT_TAGVAR(hardcode_libdir_separator, $1)=
  57218. + _LT_TAGVAR(hardcode_minus_L, $1)=no
  57219. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
  57220. + _LT_TAGVAR(inherit_rpath, $1)=no
  57221. + _LT_TAGVAR(link_all_deplibs, $1)=unknown
  57222. + _LT_TAGVAR(module_cmds, $1)=
  57223. + _LT_TAGVAR(module_expsym_cmds, $1)=
  57224. + _LT_TAGVAR(old_archive_from_new_cmds, $1)=
  57225. + _LT_TAGVAR(old_archive_from_expsyms_cmds, $1)=
  57226. + _LT_TAGVAR(thread_safe_flag_spec, $1)=
  57227. + _LT_TAGVAR(whole_archive_flag_spec, $1)=
  57228. + # include_expsyms should be a list of space-separated symbols to be *always*
  57229. + # included in the symbol list
  57230. + _LT_TAGVAR(include_expsyms, $1)=
  57231. + # exclude_expsyms can be an extended regexp of symbols to exclude
  57232. + # it will be wrapped by ` (' and `)$', so one must not match beginning or
  57233. + # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  57234. + # as well as any symbol that contains `d'.
  57235. + _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
  57236. + # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  57237. + # platforms (ab)use it in PIC code, but their linkers get confused if
  57238. + # the symbol is explicitly referenced. Since portable code cannot
  57239. + # rely on this symbol name, it's probably fine to never include it in
  57240. + # preloaded symbol tables.
  57241. + # Exclude shared library initialization/finalization symbols.
  57242. +dnl Note also adjust exclude_expsyms for C++ above.
  57243. + extract_expsyms_cmds=
  57244. +
  57245. + case $host_os in
  57246. + cygwin* | mingw* | pw32* | cegcc*)
  57247. + # FIXME: the MSVC++ port hasn't been tested in a loooong time
  57248. + # When not using gcc, we currently assume that we are using
  57249. + # Microsoft Visual C++.
  57250. + if test "$GCC" != yes; then
  57251. + with_gnu_ld=no
  57252. + fi
  57253. + ;;
  57254. + interix*)
  57255. + # we just hope/assume this is gcc and not c89 (= MSVC++)
  57256. + with_gnu_ld=yes
  57257. + ;;
  57258. + openbsd*)
  57259. + with_gnu_ld=no
  57260. + ;;
  57261. + linux* | k*bsd*-gnu)
  57262. + _LT_TAGVAR(link_all_deplibs, $1)=no
  57263. + ;;
  57264. + esac
  57265. +
  57266. + _LT_TAGVAR(ld_shlibs, $1)=yes
  57267. + if test "$with_gnu_ld" = yes; then
  57268. + # If archive_cmds runs LD, not CC, wlarc should be empty
  57269. + wlarc='${wl}'
  57270. +
  57271. + # Set some defaults for GNU ld with shared library support. These
  57272. + # are reset later if shared libraries are not supported. Putting them
  57273. + # here allows them to be overridden if necessary.
  57274. + runpath_var=LD_RUN_PATH
  57275. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  57276. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  57277. + # ancient GNU ld didn't support --whole-archive et. al.
  57278. + if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  57279. + _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  57280. + else
  57281. + _LT_TAGVAR(whole_archive_flag_spec, $1)=
  57282. + fi
  57283. + supports_anon_versioning=no
  57284. + case `$LD -v 2>&1` in
  57285. + *GNU\ gold*) supports_anon_versioning=yes ;;
  57286. + *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11
  57287. + *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  57288. + *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  57289. + *\ 2.11.*) ;; # other 2.11 versions
  57290. + *) supports_anon_versioning=yes ;;
  57291. + esac
  57292. +
  57293. + # See if GNU ld supports shared libraries.
  57294. + case $host_os in
  57295. + aix[[3-9]]*)
  57296. + # On AIX/PPC, the GNU linker is very broken
  57297. + if test "$host_cpu" != ia64; then
  57298. + _LT_TAGVAR(ld_shlibs, $1)=no
  57299. + cat <<_LT_EOF 1>&2
  57300. +
  57301. +*** Warning: the GNU linker, at least up to release 2.9.1, is reported
  57302. +*** to be unable to reliably create shared libraries on AIX.
  57303. +*** Therefore, libtool is disabling shared libraries support. If you
  57304. +*** really care for shared libraries, you may want to modify your PATH
  57305. +*** so that a non-GNU linker is found, and then restart.
  57306. +
  57307. +_LT_EOF
  57308. + fi
  57309. + ;;
  57310. +
  57311. + amigaos*)
  57312. + case $host_cpu in
  57313. + powerpc)
  57314. + # see comment about AmigaOS4 .so support
  57315. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  57316. + _LT_TAGVAR(archive_expsym_cmds, $1)=''
  57317. + ;;
  57318. + m68k)
  57319. + _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)'
  57320. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  57321. + _LT_TAGVAR(hardcode_minus_L, $1)=yes
  57322. + ;;
  57323. + esac
  57324. + ;;
  57325. +
  57326. + beos*)
  57327. + if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  57328. + _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  57329. + # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  57330. + # support --undefined. This deserves some investigation. FIXME
  57331. + _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  57332. + else
  57333. + _LT_TAGVAR(ld_shlibs, $1)=no
  57334. + fi
  57335. + ;;
  57336. +
  57337. + cygwin* | mingw* | pw32* | cegcc*)
  57338. + # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
  57339. + # as there is no search path for DLLs.
  57340. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  57341. + _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  57342. + _LT_TAGVAR(always_export_symbols, $1)=no
  57343. + _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
  57344. + _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'
  57345. +
  57346. + if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  57347. + _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'
  57348. + # If the export-symbols file already is a .def file (1st line
  57349. + # is EXPORTS), use it as is; otherwise, prepend...
  57350. + _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  57351. + cp $export_symbols $output_objdir/$soname.def;
  57352. + else
  57353. + echo EXPORTS > $output_objdir/$soname.def;
  57354. + cat $export_symbols >> $output_objdir/$soname.def;
  57355. + fi~
  57356. + $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  57357. + else
  57358. + _LT_TAGVAR(ld_shlibs, $1)=no
  57359. + fi
  57360. + ;;
  57361. +
  57362. + interix[[3-9]]*)
  57363. + _LT_TAGVAR(hardcode_direct, $1)=no
  57364. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  57365. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  57366. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  57367. + # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  57368. + # Instead, shared libraries are loaded at an image base (0x10000000 by
  57369. + # default) and relocated if they conflict, which is a slow very memory
  57370. + # consuming and fragmenting process. To avoid this, we pick a random,
  57371. + # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  57372. + # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  57373. + _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'
  57374. + _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'
  57375. + ;;
  57376. +
  57377. + gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
  57378. + tmp_diet=no
  57379. + if test "$host_os" = linux-dietlibc; then
  57380. + case $cc_basename in
  57381. + diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  57382. + esac
  57383. + fi
  57384. + if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  57385. + && test "$tmp_diet" = no
  57386. + then
  57387. + tmp_addflag=
  57388. + tmp_sharedflag='-shared'
  57389. + case $cc_basename,$host_cpu in
  57390. + pgcc*) # Portland Group C compiler
  57391. + _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'
  57392. + tmp_addflag=' $pic_flag'
  57393. + ;;
  57394. + pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
  57395. + _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'
  57396. + tmp_addflag=' $pic_flag -Mnomain' ;;
  57397. + ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  57398. + tmp_addflag=' -i_dynamic' ;;
  57399. + efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  57400. + tmp_addflag=' -i_dynamic -nofor_main' ;;
  57401. + ifc* | ifort*) # Intel Fortran compiler
  57402. + tmp_addflag=' -nofor_main' ;;
  57403. + lf95*) # Lahey Fortran 8.1
  57404. + _LT_TAGVAR(whole_archive_flag_spec, $1)=
  57405. + tmp_sharedflag='--shared' ;;
  57406. + xl[[cC]]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  57407. + tmp_sharedflag='-qmkshrobj'
  57408. + tmp_addflag= ;;
  57409. + esac
  57410. + case `$CC -V 2>&1 | sed 5q` in
  57411. + *Sun\ C*) # Sun C 5.9
  57412. + _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'
  57413. + _LT_TAGVAR(compiler_needs_object, $1)=yes
  57414. + tmp_sharedflag='-G' ;;
  57415. + *Sun\ F*) # Sun Fortran 8.3
  57416. + tmp_sharedflag='-G' ;;
  57417. + esac
  57418. + _LT_TAGVAR(archive_cmds, $1)='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  57419. +
  57420. + if test "x$supports_anon_versioning" = xyes; then
  57421. + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
  57422. + cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  57423. + echo "local: *; };" >> $output_objdir/$libname.ver~
  57424. + $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  57425. + fi
  57426. +
  57427. + case $cc_basename in
  57428. + xlf*)
  57429. + # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  57430. + _LT_TAGVAR(whole_archive_flag_spec, $1)='--whole-archive$convenience --no-whole-archive'
  57431. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
  57432. + _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='-rpath $libdir'
  57433. + _LT_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
  57434. + if test "x$supports_anon_versioning" = xyes; then
  57435. + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
  57436. + cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  57437. + echo "local: *; };" >> $output_objdir/$libname.ver~
  57438. + $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  57439. + fi
  57440. + ;;
  57441. + esac
  57442. + else
  57443. + _LT_TAGVAR(ld_shlibs, $1)=no
  57444. + fi
  57445. + ;;
  57446. +
  57447. + netbsd* | netbsdelf*-gnu)
  57448. + if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  57449. + _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  57450. + wlarc=
  57451. + else
  57452. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  57453. + _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'
  57454. + fi
  57455. + ;;
  57456. +
  57457. + solaris*)
  57458. + if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  57459. + _LT_TAGVAR(ld_shlibs, $1)=no
  57460. + cat <<_LT_EOF 1>&2
  57461. +
  57462. +*** Warning: The releases 2.8.* of the GNU linker cannot reliably
  57463. +*** create shared libraries on Solaris systems. Therefore, libtool
  57464. +*** is disabling shared libraries support. We urge you to upgrade GNU
  57465. +*** binutils to release 2.9.1 or newer. Another option is to modify
  57466. +*** your PATH or compiler configuration so that the native linker is
  57467. +*** used, and then restart.
  57468. +
  57469. +_LT_EOF
  57470. + elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  57471. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  57472. + _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'
  57473. + else
  57474. + _LT_TAGVAR(ld_shlibs, $1)=no
  57475. + fi
  57476. + ;;
  57477. +
  57478. + sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  57479. + case `$LD -v 2>&1` in
  57480. + *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*)
  57481. + _LT_TAGVAR(ld_shlibs, $1)=no
  57482. + cat <<_LT_EOF 1>&2
  57483. +
  57484. +*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  57485. +*** reliably create shared libraries on SCO systems. Therefore, libtool
  57486. +*** is disabling shared libraries support. We urge you to upgrade GNU
  57487. +*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  57488. +*** your PATH or compiler configuration so that the native linker is
  57489. +*** used, and then restart.
  57490. +
  57491. +_LT_EOF
  57492. + ;;
  57493. + *)
  57494. + # For security reasons, it is highly recommended that you always
  57495. + # use absolute paths for naming shared libraries, and exclude the
  57496. + # DT_RUNPATH tag from executables and libraries. But doing so
  57497. + # requires that you compile everything twice, which is a pain.
  57498. + if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  57499. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  57500. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  57501. + _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'
  57502. + else
  57503. + _LT_TAGVAR(ld_shlibs, $1)=no
  57504. + fi
  57505. + ;;
  57506. + esac
  57507. + ;;
  57508. +
  57509. + sunos4*)
  57510. + _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  57511. + wlarc=
  57512. + _LT_TAGVAR(hardcode_direct, $1)=yes
  57513. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  57514. + ;;
  57515. +
  57516. + *)
  57517. + if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  57518. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  57519. + _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'
  57520. + else
  57521. + _LT_TAGVAR(ld_shlibs, $1)=no
  57522. + fi
  57523. + ;;
  57524. + esac
  57525. +
  57526. + if test "$_LT_TAGVAR(ld_shlibs, $1)" = no; then
  57527. + runpath_var=
  57528. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
  57529. + _LT_TAGVAR(export_dynamic_flag_spec, $1)=
  57530. + _LT_TAGVAR(whole_archive_flag_spec, $1)=
  57531. + fi
  57532. + else
  57533. + # PORTME fill in a description of your system's linker (not GNU ld)
  57534. + case $host_os in
  57535. + aix3*)
  57536. + _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  57537. + _LT_TAGVAR(always_export_symbols, $1)=yes
  57538. + _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'
  57539. + # Note: this linker hardcodes the directories in LIBPATH if there
  57540. + # are no directories specified by -L.
  57541. + _LT_TAGVAR(hardcode_minus_L, $1)=yes
  57542. + if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  57543. + # Neither direct hardcoding nor static linking is supported with a
  57544. + # broken collect2.
  57545. + _LT_TAGVAR(hardcode_direct, $1)=unsupported
  57546. + fi
  57547. + ;;
  57548. +
  57549. + aix[[4-9]]*)
  57550. + if test "$host_cpu" = ia64; then
  57551. + # On IA64, the linker does run time linking by default, so we don't
  57552. + # have to do anything special.
  57553. + aix_use_runtimelinking=no
  57554. + exp_sym_flag='-Bexport'
  57555. + no_entry_flag=""
  57556. + else
  57557. + # If we're using GNU nm, then we don't want the "-C" option.
  57558. + # -C means demangle to AIX nm, but means don't demangle with GNU nm
  57559. + if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  57560. + _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'
  57561. + else
  57562. + _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'
  57563. + fi
  57564. + aix_use_runtimelinking=no
  57565. +
  57566. + # Test if we are trying to use run time linking or normal
  57567. + # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  57568. + # need to do runtime linking.
  57569. + case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
  57570. + for ld_flag in $LDFLAGS; do
  57571. + if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  57572. + aix_use_runtimelinking=yes
  57573. + break
  57574. + fi
  57575. + done
  57576. + ;;
  57577. + esac
  57578. +
  57579. + exp_sym_flag='-bexport'
  57580. + no_entry_flag='-bnoentry'
  57581. + fi
  57582. +
  57583. + # When large executables or shared objects are built, AIX ld can
  57584. + # have problems creating the table of contents. If linking a library
  57585. + # or program results in "error TOC overflow" add -mminimal-toc to
  57586. + # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  57587. + # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  57588. +
  57589. + _LT_TAGVAR(archive_cmds, $1)=''
  57590. + _LT_TAGVAR(hardcode_direct, $1)=yes
  57591. + _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
  57592. + _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
  57593. + _LT_TAGVAR(link_all_deplibs, $1)=yes
  57594. + _LT_TAGVAR(file_list_spec, $1)='${wl}-f,'
  57595. +
  57596. + if test "$GCC" = yes; then
  57597. + case $host_os in aix4.[[012]]|aix4.[[012]].*)
  57598. + # We only want to do this on AIX 4.2 and lower, the check
  57599. + # below for broken collect2 doesn't work under 4.3+
  57600. + collect2name=`${CC} -print-prog-name=collect2`
  57601. + if test -f "$collect2name" &&
  57602. + strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  57603. + then
  57604. + # We have reworked collect2
  57605. + :
  57606. + else
  57607. + # We have old collect2
  57608. + _LT_TAGVAR(hardcode_direct, $1)=unsupported
  57609. + # It fails to find uninstalled libraries when the uninstalled
  57610. + # path is not listed in the libpath. Setting hardcode_minus_L
  57611. + # to unsupported forces relinking
  57612. + _LT_TAGVAR(hardcode_minus_L, $1)=yes
  57613. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  57614. + _LT_TAGVAR(hardcode_libdir_separator, $1)=
  57615. + fi
  57616. + ;;
  57617. + esac
  57618. + shared_flag='-shared'
  57619. + if test "$aix_use_runtimelinking" = yes; then
  57620. + shared_flag="$shared_flag "'${wl}-G'
  57621. + fi
  57622. + _LT_TAGVAR(link_all_deplibs, $1)=no
  57623. + else
  57624. + # not using gcc
  57625. + if test "$host_cpu" = ia64; then
  57626. + # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  57627. + # chokes on -Wl,-G. The following line is correct:
  57628. + shared_flag='-G'
  57629. + else
  57630. + if test "$aix_use_runtimelinking" = yes; then
  57631. + shared_flag='${wl}-G'
  57632. + else
  57633. + shared_flag='${wl}-bM:SRE'
  57634. + fi
  57635. + fi
  57636. + fi
  57637. +
  57638. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-bexpall'
  57639. + # It seems that -bexpall does not export symbols beginning with
  57640. + # underscore (_), so it is better to generate a list of symbols to export.
  57641. + _LT_TAGVAR(always_export_symbols, $1)=yes
  57642. + if test "$aix_use_runtimelinking" = yes; then
  57643. + # Warning - without using the other runtime loading flags (-brtl),
  57644. + # -berok will link without error, but may produce a broken library.
  57645. + _LT_TAGVAR(allow_undefined_flag, $1)='-berok'
  57646. + # Determine the default libpath from the value encoded in an
  57647. + # empty executable.
  57648. + _LT_SYS_MODULE_PATH_AIX
  57649. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
  57650. + _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"
  57651. + else
  57652. + if test "$host_cpu" = ia64; then
  57653. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
  57654. + _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
  57655. + _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"
  57656. + else
  57657. + # Determine the default libpath from the value encoded in an
  57658. + # empty executable.
  57659. + _LT_SYS_MODULE_PATH_AIX
  57660. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
  57661. + # Warning - without using the other run time loading flags,
  57662. + # -berok will link without error, but may produce a broken library.
  57663. + _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
  57664. + _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
  57665. + # Exported symbols can be pulled into shared objects from archives
  57666. + _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
  57667. + _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
  57668. + # This is similar to how AIX traditionally builds its shared libraries.
  57669. + _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'
  57670. + fi
  57671. + fi
  57672. + ;;
  57673. +
  57674. + amigaos*)
  57675. + case $host_cpu in
  57676. + powerpc)
  57677. + # see comment about AmigaOS4 .so support
  57678. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  57679. + _LT_TAGVAR(archive_expsym_cmds, $1)=''
  57680. + ;;
  57681. + m68k)
  57682. + _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)'
  57683. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  57684. + _LT_TAGVAR(hardcode_minus_L, $1)=yes
  57685. + ;;
  57686. + esac
  57687. + ;;
  57688. +
  57689. + bsdi[[45]]*)
  57690. + _LT_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic
  57691. + ;;
  57692. +
  57693. + cygwin* | mingw* | pw32* | cegcc*)
  57694. + # When not using gcc, we currently assume that we are using
  57695. + # Microsoft Visual C++.
  57696. + # hardcode_libdir_flag_spec is actually meaningless, as there is
  57697. + # no search path for DLLs.
  57698. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
  57699. + _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  57700. + # Tell ltmain to make .lib files, not .a files.
  57701. + libext=lib
  57702. + # Tell ltmain to make .dll files, not .so files.
  57703. + shrext_cmds=".dll"
  57704. + # FIXME: Setting linknames here is a bad hack.
  57705. + _LT_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
  57706. + # The linker will automatically build a .lib file if we build a DLL.
  57707. + _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
  57708. + # FIXME: Should let the user specify the lib program.
  57709. + _LT_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs'
  57710. + _LT_TAGVAR(fix_srcfile_path, $1)='`cygpath -w "$srcfile"`'
  57711. + _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
  57712. + ;;
  57713. +
  57714. + darwin* | rhapsody*)
  57715. + _LT_DARWIN_LINKER_FEATURES($1)
  57716. + ;;
  57717. +
  57718. + dgux*)
  57719. + _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  57720. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  57721. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  57722. + ;;
  57723. +
  57724. + freebsd1*)
  57725. + _LT_TAGVAR(ld_shlibs, $1)=no
  57726. + ;;
  57727. +
  57728. + # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  57729. + # support. Future versions do this automatically, but an explicit c++rt0.o
  57730. + # does not break anything, and helps significantly (at the cost of a little
  57731. + # extra space).
  57732. + freebsd2.2*)
  57733. + _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  57734. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  57735. + _LT_TAGVAR(hardcode_direct, $1)=yes
  57736. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  57737. + ;;
  57738. +
  57739. + # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  57740. + freebsd2*)
  57741. + _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  57742. + _LT_TAGVAR(hardcode_direct, $1)=yes
  57743. + _LT_TAGVAR(hardcode_minus_L, $1)=yes
  57744. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  57745. + ;;
  57746. +
  57747. + # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  57748. + freebsd* | dragonfly*)
  57749. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  57750. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  57751. + _LT_TAGVAR(hardcode_direct, $1)=yes
  57752. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  57753. + ;;
  57754. +
  57755. + hpux9*)
  57756. + if test "$GCC" = yes; then
  57757. + _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'
  57758. + else
  57759. + _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'
  57760. + fi
  57761. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  57762. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  57763. + _LT_TAGVAR(hardcode_direct, $1)=yes
  57764. +
  57765. + # hardcode_minus_L: Not really in the search PATH,
  57766. + # but as the default location of the library.
  57767. + _LT_TAGVAR(hardcode_minus_L, $1)=yes
  57768. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  57769. + ;;
  57770. +
  57771. + hpux10*)
  57772. + if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  57773. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  57774. + else
  57775. + _LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  57776. + fi
  57777. + if test "$with_gnu_ld" = no; then
  57778. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  57779. + _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
  57780. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  57781. + _LT_TAGVAR(hardcode_direct, $1)=yes
  57782. + _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
  57783. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  57784. + # hardcode_minus_L: Not really in the search PATH,
  57785. + # but as the default location of the library.
  57786. + _LT_TAGVAR(hardcode_minus_L, $1)=yes
  57787. + fi
  57788. + ;;
  57789. +
  57790. + hpux11*)
  57791. + if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  57792. + case $host_cpu in
  57793. + hppa*64*)
  57794. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  57795. + ;;
  57796. + ia64*)
  57797. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  57798. + ;;
  57799. + *)
  57800. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  57801. + ;;
  57802. + esac
  57803. + else
  57804. + case $host_cpu in
  57805. + hppa*64*)
  57806. + _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  57807. + ;;
  57808. + ia64*)
  57809. + _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  57810. + ;;
  57811. + *)
  57812. + _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  57813. + ;;
  57814. + esac
  57815. + fi
  57816. + if test "$with_gnu_ld" = no; then
  57817. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  57818. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  57819. +
  57820. + case $host_cpu in
  57821. + hppa*64*|ia64*)
  57822. + _LT_TAGVAR(hardcode_direct, $1)=no
  57823. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  57824. + ;;
  57825. + *)
  57826. + _LT_TAGVAR(hardcode_direct, $1)=yes
  57827. + _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
  57828. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  57829. +
  57830. + # hardcode_minus_L: Not really in the search PATH,
  57831. + # but as the default location of the library.
  57832. + _LT_TAGVAR(hardcode_minus_L, $1)=yes
  57833. + ;;
  57834. + esac
  57835. + fi
  57836. + ;;
  57837. +
  57838. + irix5* | irix6* | nonstopux*)
  57839. + if test "$GCC" = yes; then
  57840. + _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'
  57841. + # Try to use the -exported_symbol ld option, if it does not
  57842. + # work, assume that -exports_file does not work either and
  57843. + # implicitly export all symbols.
  57844. + save_LDFLAGS="$LDFLAGS"
  57845. + LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
  57846. + AC_LINK_IFELSE(int foo(void) {},
  57847. + _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'
  57848. + )
  57849. + LDFLAGS="$save_LDFLAGS"
  57850. + else
  57851. + _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'
  57852. + _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'
  57853. + fi
  57854. + _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
  57855. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  57856. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  57857. + _LT_TAGVAR(inherit_rpath, $1)=yes
  57858. + _LT_TAGVAR(link_all_deplibs, $1)=yes
  57859. + ;;
  57860. +
  57861. + netbsd* | netbsdelf*-gnu)
  57862. + if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  57863. + _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  57864. + else
  57865. + _LT_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  57866. + fi
  57867. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  57868. + _LT_TAGVAR(hardcode_direct, $1)=yes
  57869. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  57870. + ;;
  57871. +
  57872. + newsos6)
  57873. + _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  57874. + _LT_TAGVAR(hardcode_direct, $1)=yes
  57875. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  57876. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  57877. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  57878. + ;;
  57879. +
  57880. + *nto* | *qnx*)
  57881. + ;;
  57882. +
  57883. + openbsd*)
  57884. + if test -f /usr/libexec/ld.so; then
  57885. + _LT_TAGVAR(hardcode_direct, $1)=yes
  57886. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  57887. + _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
  57888. + if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  57889. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  57890. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  57891. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  57892. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  57893. + else
  57894. + case $host_os in
  57895. + openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)
  57896. + _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  57897. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  57898. + ;;
  57899. + *)
  57900. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  57901. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  57902. + ;;
  57903. + esac
  57904. + fi
  57905. + else
  57906. + _LT_TAGVAR(ld_shlibs, $1)=no
  57907. + fi
  57908. + ;;
  57909. +
  57910. + os2*)
  57911. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  57912. + _LT_TAGVAR(hardcode_minus_L, $1)=yes
  57913. + _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  57914. + _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'
  57915. + _LT_TAGVAR(old_archive_from_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  57916. + ;;
  57917. +
  57918. + osf3*)
  57919. + if test "$GCC" = yes; then
  57920. + _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
  57921. + _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'
  57922. + else
  57923. + _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
  57924. + _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'
  57925. + fi
  57926. + _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
  57927. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  57928. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  57929. + ;;
  57930. +
  57931. + osf4* | osf5*) # as osf3* with the addition of -msym flag
  57932. + if test "$GCC" = yes; then
  57933. + _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
  57934. + _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'
  57935. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  57936. + else
  57937. + _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
  57938. + _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'
  57939. + _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~
  57940. + $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'
  57941. +
  57942. + # Both c and cxx compiler support -rpath directly
  57943. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
  57944. + fi
  57945. + _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
  57946. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  57947. + ;;
  57948. +
  57949. + solaris*)
  57950. + _LT_TAGVAR(no_undefined_flag, $1)=' -z defs'
  57951. + if test "$GCC" = yes; then
  57952. + wlarc='${wl}'
  57953. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  57954. + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  57955. + $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  57956. + else
  57957. + case `$CC -V 2>&1` in
  57958. + *"Compilers 5.0"*)
  57959. + wlarc=''
  57960. + _LT_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  57961. + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  57962. + $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  57963. + ;;
  57964. + *)
  57965. + wlarc='${wl}'
  57966. + _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  57967. + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  57968. + $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  57969. + ;;
  57970. + esac
  57971. + fi
  57972. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  57973. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  57974. + case $host_os in
  57975. + solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
  57976. + *)
  57977. + # The compiler driver will combine and reorder linker options,
  57978. + # but understands `-z linker_flag'. GCC discards it without `$wl',
  57979. + # but is careful enough not to reorder.
  57980. + # Supported since Solaris 2.6 (maybe 2.5.1?)
  57981. + if test "$GCC" = yes; then
  57982. + _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  57983. + else
  57984. + _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
  57985. + fi
  57986. + ;;
  57987. + esac
  57988. + _LT_TAGVAR(link_all_deplibs, $1)=yes
  57989. + ;;
  57990. +
  57991. + sunos4*)
  57992. + if test "x$host_vendor" = xsequent; then
  57993. + # Use $CC to link under sequent, because it throws in some extra .o
  57994. + # files that make .init and .fini sections work.
  57995. + _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  57996. + else
  57997. + _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  57998. + fi
  57999. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  58000. + _LT_TAGVAR(hardcode_direct, $1)=yes
  58001. + _LT_TAGVAR(hardcode_minus_L, $1)=yes
  58002. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  58003. + ;;
  58004. +
  58005. + sysv4)
  58006. + case $host_vendor in
  58007. + sni)
  58008. + _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  58009. + _LT_TAGVAR(hardcode_direct, $1)=yes # is this really true???
  58010. + ;;
  58011. + siemens)
  58012. + ## LD is ld it makes a PLAMLIB
  58013. + ## CC just makes a GrossModule.
  58014. + _LT_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  58015. + _LT_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs'
  58016. + _LT_TAGVAR(hardcode_direct, $1)=no
  58017. + ;;
  58018. + motorola)
  58019. + _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  58020. + _LT_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie
  58021. + ;;
  58022. + esac
  58023. + runpath_var='LD_RUN_PATH'
  58024. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  58025. + ;;
  58026. +
  58027. + sysv4.3*)
  58028. + _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  58029. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  58030. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport'
  58031. + ;;
  58032. +
  58033. + sysv4*MP*)
  58034. + if test -d /usr/nec; then
  58035. + _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  58036. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  58037. + runpath_var=LD_RUN_PATH
  58038. + hardcode_runpath_var=yes
  58039. + _LT_TAGVAR(ld_shlibs, $1)=yes
  58040. + fi
  58041. + ;;
  58042. +
  58043. + sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
  58044. + _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
  58045. + _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  58046. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  58047. + runpath_var='LD_RUN_PATH'
  58048. +
  58049. + if test "$GCC" = yes; then
  58050. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  58051. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  58052. + else
  58053. + _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  58054. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  58055. + fi
  58056. + ;;
  58057. +
  58058. + sysv5* | sco3.2v5* | sco5v6*)
  58059. + # Note: We can NOT use -z defs as we might desire, because we do not
  58060. + # link with -lc, and that would cause any symbols used from libc to
  58061. + # always be unresolved, which means just about no library would
  58062. + # ever link correctly. If we're not using GNU ld we use -z text
  58063. + # though, which does catch some bad symbols but isn't as heavy-handed
  58064. + # as -z defs.
  58065. + _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
  58066. + _LT_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
  58067. + _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  58068. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  58069. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R,$libdir'
  58070. + _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
  58071. + _LT_TAGVAR(link_all_deplibs, $1)=yes
  58072. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
  58073. + runpath_var='LD_RUN_PATH'
  58074. +
  58075. + if test "$GCC" = yes; then
  58076. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  58077. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  58078. + else
  58079. + _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  58080. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  58081. + fi
  58082. + ;;
  58083. +
  58084. + uts4*)
  58085. + _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  58086. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  58087. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  58088. + ;;
  58089. +
  58090. + *)
  58091. + _LT_TAGVAR(ld_shlibs, $1)=no
  58092. + ;;
  58093. + esac
  58094. +
  58095. + if test x$host_vendor = xsni; then
  58096. + case $host in
  58097. + sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  58098. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Blargedynsym'
  58099. + ;;
  58100. + esac
  58101. + fi
  58102. + fi
  58103. +])
  58104. +AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)])
  58105. +test "$_LT_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
  58106. +
  58107. +_LT_TAGVAR(with_gnu_ld, $1)=$with_gnu_ld
  58108. +
  58109. +_LT_DECL([], [libext], [0], [Old archive suffix (normally "a")])dnl
  58110. +_LT_DECL([], [shrext_cmds], [1], [Shared library suffix (normally ".so")])dnl
  58111. +_LT_DECL([], [extract_expsyms_cmds], [2],
  58112. + [The commands to extract the exported symbol list from a shared archive])
  58113. +
  58114. +#
  58115. +# Do we need to explicitly link libc?
  58116. +#
  58117. +case "x$_LT_TAGVAR(archive_cmds_need_lc, $1)" in
  58118. +x|xyes)
  58119. + # Assume -lc should be added
  58120. + _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
  58121. +
  58122. + if test "$enable_shared" = yes && test "$GCC" = yes; then
  58123. + case $_LT_TAGVAR(archive_cmds, $1) in
  58124. + *'~'*)
  58125. + # FIXME: we may have to deal with multi-command sequences.
  58126. + ;;
  58127. + '$CC '*)
  58128. + # Test whether the compiler implicitly links with -lc since on some
  58129. + # systems, -lgcc has to come before -lc. If gcc already passes -lc
  58130. + # to ld, don't add -lc before -lgcc.
  58131. + AC_MSG_CHECKING([whether -lc should be explicitly linked in])
  58132. + $RM conftest*
  58133. + echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  58134. +
  58135. + if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
  58136. + soname=conftest
  58137. + lib=conftest
  58138. + libobjs=conftest.$ac_objext
  58139. + deplibs=
  58140. + wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1)
  58141. + pic_flag=$_LT_TAGVAR(lt_prog_compiler_pic, $1)
  58142. + compiler_flags=-v
  58143. + linker_flags=-v
  58144. + verstring=
  58145. + output_objdir=.
  58146. + libname=conftest
  58147. + lt_save_allow_undefined_flag=$_LT_TAGVAR(allow_undefined_flag, $1)
  58148. + _LT_TAGVAR(allow_undefined_flag, $1)=
  58149. + if AC_TRY_EVAL(_LT_TAGVAR(archive_cmds, $1) 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1)
  58150. + then
  58151. + _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  58152. + else
  58153. + _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
  58154. + fi
  58155. + _LT_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
  58156. + else
  58157. + cat conftest.err 1>&5
  58158. + fi
  58159. + $RM conftest*
  58160. + AC_MSG_RESULT([$_LT_TAGVAR(archive_cmds_need_lc, $1)])
  58161. + ;;
  58162. + esac
  58163. + fi
  58164. + ;;
  58165. +esac
  58166. +
  58167. +_LT_TAGDECL([build_libtool_need_lc], [archive_cmds_need_lc], [0],
  58168. + [Whether or not to add -lc for building shared libraries])
  58169. +_LT_TAGDECL([allow_libtool_libs_with_static_runtimes],
  58170. + [enable_shared_with_static_runtimes], [0],
  58171. + [Whether or not to disallow shared libs when runtime libs are static])
  58172. +_LT_TAGDECL([], [export_dynamic_flag_spec], [1],
  58173. + [Compiler flag to allow reflexive dlopens])
  58174. +_LT_TAGDECL([], [whole_archive_flag_spec], [1],
  58175. + [Compiler flag to generate shared objects directly from archives])
  58176. +_LT_TAGDECL([], [compiler_needs_object], [1],
  58177. + [Whether the compiler copes with passing no objects directly])
  58178. +_LT_TAGDECL([], [old_archive_from_new_cmds], [2],
  58179. + [Create an old-style archive from a shared archive])
  58180. +_LT_TAGDECL([], [old_archive_from_expsyms_cmds], [2],
  58181. + [Create a temporary old-style archive to link instead of a shared archive])
  58182. +_LT_TAGDECL([], [archive_cmds], [2], [Commands used to build a shared archive])
  58183. +_LT_TAGDECL([], [archive_expsym_cmds], [2])
  58184. +_LT_TAGDECL([], [module_cmds], [2],
  58185. + [Commands used to build a loadable module if different from building
  58186. + a shared archive.])
  58187. +_LT_TAGDECL([], [module_expsym_cmds], [2])
  58188. +_LT_TAGDECL([], [with_gnu_ld], [1],
  58189. + [Whether we are building with GNU ld or not])
  58190. +_LT_TAGDECL([], [allow_undefined_flag], [1],
  58191. + [Flag that allows shared libraries with undefined symbols to be built])
  58192. +_LT_TAGDECL([], [no_undefined_flag], [1],
  58193. + [Flag that enforces no undefined symbols])
  58194. +_LT_TAGDECL([], [hardcode_libdir_flag_spec], [1],
  58195. + [Flag to hardcode $libdir into a binary during linking.
  58196. + This must work even if $libdir does not exist])
  58197. +_LT_TAGDECL([], [hardcode_libdir_flag_spec_ld], [1],
  58198. + [[If ld is used when linking, flag to hardcode $libdir into a binary
  58199. + during linking. This must work even if $libdir does not exist]])
  58200. +_LT_TAGDECL([], [hardcode_libdir_separator], [1],
  58201. + [Whether we need a single "-rpath" flag with a separated argument])
  58202. +_LT_TAGDECL([], [hardcode_direct], [0],
  58203. + [Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes
  58204. + DIR into the resulting binary])
  58205. +_LT_TAGDECL([], [hardcode_direct_absolute], [0],
  58206. + [Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes
  58207. + DIR into the resulting binary and the resulting library dependency is
  58208. + "absolute", i.e impossible to change by setting ${shlibpath_var} if the
  58209. + library is relocated])
  58210. +_LT_TAGDECL([], [hardcode_minus_L], [0],
  58211. + [Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  58212. + into the resulting binary])
  58213. +_LT_TAGDECL([], [hardcode_shlibpath_var], [0],
  58214. + [Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  58215. + into the resulting binary])
  58216. +_LT_TAGDECL([], [hardcode_automatic], [0],
  58217. + [Set to "yes" if building a shared library automatically hardcodes DIR
  58218. + into the library and all subsequent libraries and executables linked
  58219. + against it])
  58220. +_LT_TAGDECL([], [inherit_rpath], [0],
  58221. + [Set to yes if linker adds runtime paths of dependent libraries
  58222. + to runtime path list])
  58223. +_LT_TAGDECL([], [link_all_deplibs], [0],
  58224. + [Whether libtool must link a program against all its dependency libraries])
  58225. +_LT_TAGDECL([], [fix_srcfile_path], [1],
  58226. + [Fix the shell variable $srcfile for the compiler])
  58227. +_LT_TAGDECL([], [always_export_symbols], [0],
  58228. + [Set to "yes" if exported symbols are required])
  58229. +_LT_TAGDECL([], [export_symbols_cmds], [2],
  58230. + [The commands to list exported symbols])
  58231. +_LT_TAGDECL([], [exclude_expsyms], [1],
  58232. + [Symbols that should not be listed in the preloaded symbols])
  58233. +_LT_TAGDECL([], [include_expsyms], [1],
  58234. + [Symbols that must always be exported])
  58235. +_LT_TAGDECL([], [prelink_cmds], [2],
  58236. + [Commands necessary for linking programs (against libraries) with templates])
  58237. +_LT_TAGDECL([], [file_list_spec], [1],
  58238. + [Specify filename containing input files])
  58239. +dnl FIXME: Not yet implemented
  58240. +dnl _LT_TAGDECL([], [thread_safe_flag_spec], [1],
  58241. +dnl [Compiler flag to generate thread safe objects])
  58242. +])# _LT_LINKER_SHLIBS
  58243. +
  58244. +
  58245. +# _LT_LANG_C_CONFIG([TAG])
  58246. +# ------------------------
  58247. +# Ensure that the configuration variables for a C compiler are suitably
  58248. +# defined. These variables are subsequently used by _LT_CONFIG to write
  58249. +# the compiler configuration to `libtool'.
  58250. +m4_defun([_LT_LANG_C_CONFIG],
  58251. +[m4_require([_LT_DECL_EGREP])dnl
  58252. +lt_save_CC="$CC"
  58253. +AC_LANG_PUSH(C)
  58254. +
  58255. +# Source file extension for C test sources.
  58256. +ac_ext=c
  58257. +
  58258. +# Object file extension for compiled C test sources.
  58259. +objext=o
  58260. +_LT_TAGVAR(objext, $1)=$objext
  58261. +
  58262. +# Code to be used in simple compile tests
  58263. +lt_simple_compile_test_code="int some_variable = 0;"
  58264. +
  58265. +# Code to be used in simple link tests
  58266. +lt_simple_link_test_code='int main(){return(0);}'
  58267. +
  58268. +_LT_TAG_COMPILER
  58269. +# Save the default compiler, since it gets overwritten when the other
  58270. +# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  58271. +compiler_DEFAULT=$CC
  58272. +
  58273. +# save warnings/boilerplate of simple test code
  58274. +_LT_COMPILER_BOILERPLATE
  58275. +_LT_LINKER_BOILERPLATE
  58276. +
  58277. +## CAVEAT EMPTOR:
  58278. +## There is no encapsulation within the following macros, do not change
  58279. +## the running order or otherwise move them around unless you know exactly
  58280. +## what you are doing...
  58281. +if test -n "$compiler"; then
  58282. + _LT_COMPILER_NO_RTTI($1)
  58283. + _LT_COMPILER_PIC($1)
  58284. + _LT_COMPILER_C_O($1)
  58285. + _LT_COMPILER_FILE_LOCKS($1)
  58286. + _LT_LINKER_SHLIBS($1)
  58287. + _LT_SYS_DYNAMIC_LINKER($1)
  58288. + _LT_LINKER_HARDCODE_LIBPATH($1)
  58289. + LT_SYS_DLOPEN_SELF
  58290. + _LT_CMD_STRIPLIB
  58291. +
  58292. + # Report which library types will actually be built
  58293. + AC_MSG_CHECKING([if libtool supports shared libraries])
  58294. + AC_MSG_RESULT([$can_build_shared])
  58295. +
  58296. + AC_MSG_CHECKING([whether to build shared libraries])
  58297. + test "$can_build_shared" = "no" && enable_shared=no
  58298. +
  58299. + # On AIX, shared libraries and static libraries use the same namespace, and
  58300. + # are all built from PIC.
  58301. + case $host_os in
  58302. + aix3*)
  58303. + test "$enable_shared" = yes && enable_static=no
  58304. + if test -n "$RANLIB"; then
  58305. + archive_cmds="$archive_cmds~\$RANLIB \$lib"
  58306. + postinstall_cmds='$RANLIB $lib'
  58307. + fi
  58308. + ;;
  58309. +
  58310. + aix[[4-9]]*)
  58311. + if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  58312. + test "$enable_shared" = yes && enable_static=no
  58313. + fi
  58314. + ;;
  58315. + esac
  58316. + AC_MSG_RESULT([$enable_shared])
  58317. +
  58318. + AC_MSG_CHECKING([whether to build static libraries])
  58319. + # Make sure either enable_shared or enable_static is yes.
  58320. + test "$enable_shared" = yes || enable_static=yes
  58321. + AC_MSG_RESULT([$enable_static])
  58322. +
  58323. + _LT_CONFIG($1)
  58324. +fi
  58325. +AC_LANG_POP
  58326. +CC="$lt_save_CC"
  58327. +])# _LT_LANG_C_CONFIG
  58328. +
  58329. +
  58330. +# _LT_PROG_CXX
  58331. +# ------------
  58332. +# Since AC_PROG_CXX is broken, in that it returns g++ if there is no c++
  58333. +# compiler, we have our own version here.
  58334. +m4_defun([_LT_PROG_CXX],
  58335. +[
  58336. +pushdef([AC_MSG_ERROR], [_lt_caught_CXX_error=yes])
  58337. +AC_PROG_CXX
  58338. +if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
  58339. + ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
  58340. + (test "X$CXX" != "Xg++"))) ; then
  58341. + AC_PROG_CXXCPP
  58342. +else
  58343. + _lt_caught_CXX_error=yes
  58344. +fi
  58345. +popdef([AC_MSG_ERROR])
  58346. +])# _LT_PROG_CXX
  58347. +
  58348. +dnl aclocal-1.4 backwards compatibility:
  58349. +dnl AC_DEFUN([_LT_PROG_CXX], [])
  58350. +
  58351. +
  58352. +# _LT_LANG_CXX_CONFIG([TAG])
  58353. +# --------------------------
  58354. +# Ensure that the configuration variables for a C++ compiler are suitably
  58355. +# defined. These variables are subsequently used by _LT_CONFIG to write
  58356. +# the compiler configuration to `libtool'.
  58357. +m4_defun([_LT_LANG_CXX_CONFIG],
  58358. +[AC_REQUIRE([_LT_PROG_CXX])dnl
  58359. +m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  58360. +m4_require([_LT_DECL_EGREP])dnl
  58361. +
  58362. +AC_LANG_PUSH(C++)
  58363. +_LT_TAGVAR(archive_cmds_need_lc, $1)=no
  58364. +_LT_TAGVAR(allow_undefined_flag, $1)=
  58365. +_LT_TAGVAR(always_export_symbols, $1)=no
  58366. +_LT_TAGVAR(archive_expsym_cmds, $1)=
  58367. +_LT_TAGVAR(compiler_needs_object, $1)=no
  58368. +_LT_TAGVAR(export_dynamic_flag_spec, $1)=
  58369. +_LT_TAGVAR(hardcode_direct, $1)=no
  58370. +_LT_TAGVAR(hardcode_direct_absolute, $1)=no
  58371. +_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
  58372. +_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
  58373. +_LT_TAGVAR(hardcode_libdir_separator, $1)=
  58374. +_LT_TAGVAR(hardcode_minus_L, $1)=no
  58375. +_LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
  58376. +_LT_TAGVAR(hardcode_automatic, $1)=no
  58377. +_LT_TAGVAR(inherit_rpath, $1)=no
  58378. +_LT_TAGVAR(module_cmds, $1)=
  58379. +_LT_TAGVAR(module_expsym_cmds, $1)=
  58380. +_LT_TAGVAR(link_all_deplibs, $1)=unknown
  58381. +_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
  58382. +_LT_TAGVAR(no_undefined_flag, $1)=
  58383. +_LT_TAGVAR(whole_archive_flag_spec, $1)=
  58384. +_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
  58385. +
  58386. +# Source file extension for C++ test sources.
  58387. +ac_ext=cpp
  58388. +
  58389. +# Object file extension for compiled C++ test sources.
  58390. +objext=o
  58391. +_LT_TAGVAR(objext, $1)=$objext
  58392. +
  58393. +# No sense in running all these tests if we already determined that
  58394. +# the CXX compiler isn't working. Some variables (like enable_shared)
  58395. +# are currently assumed to apply to all compilers on this platform,
  58396. +# and will be corrupted by setting them based on a non-working compiler.
  58397. +if test "$_lt_caught_CXX_error" != yes; then
  58398. + # Code to be used in simple compile tests
  58399. + lt_simple_compile_test_code="int some_variable = 0;"
  58400. +
  58401. + # Code to be used in simple link tests
  58402. + lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }'
  58403. +
  58404. + # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  58405. + _LT_TAG_COMPILER
  58406. +
  58407. + # save warnings/boilerplate of simple test code
  58408. + _LT_COMPILER_BOILERPLATE
  58409. + _LT_LINKER_BOILERPLATE
  58410. +
  58411. + # Allow CC to be a program name with arguments.
  58412. + lt_save_CC=$CC
  58413. + lt_save_LD=$LD
  58414. + lt_save_GCC=$GCC
  58415. + GCC=$GXX
  58416. + lt_save_with_gnu_ld=$with_gnu_ld
  58417. + lt_save_path_LD=$lt_cv_path_LD
  58418. + if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
  58419. + lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  58420. + else
  58421. + $as_unset lt_cv_prog_gnu_ld
  58422. + fi
  58423. + if test -n "${lt_cv_path_LDCXX+set}"; then
  58424. + lt_cv_path_LD=$lt_cv_path_LDCXX
  58425. + else
  58426. + $as_unset lt_cv_path_LD
  58427. + fi
  58428. + test -z "${LDCXX+set}" || LD=$LDCXX
  58429. + CC=${CXX-"c++"}
  58430. + compiler=$CC
  58431. + _LT_TAGVAR(compiler, $1)=$CC
  58432. + _LT_CC_BASENAME([$compiler])
  58433. +
  58434. + if test -n "$compiler"; then
  58435. + # We don't want -fno-exception when compiling C++ code, so set the
  58436. + # no_builtin_flag separately
  58437. + if test "$GXX" = yes; then
  58438. + _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
  58439. + else
  58440. + _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
  58441. + fi
  58442. +
  58443. + if test "$GXX" = yes; then
  58444. + # Set up default GNU C++ configuration
  58445. +
  58446. + LT_PATH_LD
  58447. +
  58448. + # Check if GNU C++ uses GNU ld as the underlying linker, since the
  58449. + # archiving commands below assume that GNU ld is being used.
  58450. + if test "$with_gnu_ld" = yes; then
  58451. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  58452. + _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'
  58453. +
  58454. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  58455. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  58456. +
  58457. + # If archive_cmds runs LD, not CC, wlarc should be empty
  58458. + # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
  58459. + # investigate it a little bit more. (MM)
  58460. + wlarc='${wl}'
  58461. +
  58462. + # ancient GNU ld didn't support --whole-archive et. al.
  58463. + if eval "`$CC -print-prog-name=ld` --help 2>&1" |
  58464. + $GREP 'no-whole-archive' > /dev/null; then
  58465. + _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  58466. + else
  58467. + _LT_TAGVAR(whole_archive_flag_spec, $1)=
  58468. + fi
  58469. + else
  58470. + with_gnu_ld=no
  58471. + wlarc=
  58472. +
  58473. + # A generic and very simple default shared library creation
  58474. + # command for GNU C++ for the case where it uses the native
  58475. + # linker, instead of GNU ld. If possible, this setting should
  58476. + # overridden to take advantage of the native linker features on
  58477. + # the platform it is being used on.
  58478. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  58479. + fi
  58480. +
  58481. + # Commands to make compiler produce verbose output that lists
  58482. + # what "hidden" libraries, object files and flags are used when
  58483. + # linking a shared library.
  58484. + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
  58485. +
  58486. + else
  58487. + GXX=no
  58488. + with_gnu_ld=no
  58489. + wlarc=
  58490. + fi
  58491. +
  58492. + # PORTME: fill in a description of your system's C++ link characteristics
  58493. + AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
  58494. + _LT_TAGVAR(ld_shlibs, $1)=yes
  58495. + case $host_os in
  58496. + aix3*)
  58497. + # FIXME: insert proper C++ library support
  58498. + _LT_TAGVAR(ld_shlibs, $1)=no
  58499. + ;;
  58500. + aix[[4-9]]*)
  58501. + if test "$host_cpu" = ia64; then
  58502. + # On IA64, the linker does run time linking by default, so we don't
  58503. + # have to do anything special.
  58504. + aix_use_runtimelinking=no
  58505. + exp_sym_flag='-Bexport'
  58506. + no_entry_flag=""
  58507. + else
  58508. + aix_use_runtimelinking=no
  58509. +
  58510. + # Test if we are trying to use run time linking or normal
  58511. + # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  58512. + # need to do runtime linking.
  58513. + case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
  58514. + for ld_flag in $LDFLAGS; do
  58515. + case $ld_flag in
  58516. + *-brtl*)
  58517. + aix_use_runtimelinking=yes
  58518. + break
  58519. + ;;
  58520. + esac
  58521. + done
  58522. + ;;
  58523. + esac
  58524. +
  58525. + exp_sym_flag='-bexport'
  58526. + no_entry_flag='-bnoentry'
  58527. + fi
  58528. +
  58529. + # When large executables or shared objects are built, AIX ld can
  58530. + # have problems creating the table of contents. If linking a library
  58531. + # or program results in "error TOC overflow" add -mminimal-toc to
  58532. + # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  58533. + # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  58534. +
  58535. + _LT_TAGVAR(archive_cmds, $1)=''
  58536. + _LT_TAGVAR(hardcode_direct, $1)=yes
  58537. + _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
  58538. + _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
  58539. + _LT_TAGVAR(link_all_deplibs, $1)=yes
  58540. + _LT_TAGVAR(file_list_spec, $1)='${wl}-f,'
  58541. +
  58542. + if test "$GXX" = yes; then
  58543. + case $host_os in aix4.[[012]]|aix4.[[012]].*)
  58544. + # We only want to do this on AIX 4.2 and lower, the check
  58545. + # below for broken collect2 doesn't work under 4.3+
  58546. + collect2name=`${CC} -print-prog-name=collect2`
  58547. + if test -f "$collect2name" &&
  58548. + strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  58549. + then
  58550. + # We have reworked collect2
  58551. + :
  58552. + else
  58553. + # We have old collect2
  58554. + _LT_TAGVAR(hardcode_direct, $1)=unsupported
  58555. + # It fails to find uninstalled libraries when the uninstalled
  58556. + # path is not listed in the libpath. Setting hardcode_minus_L
  58557. + # to unsupported forces relinking
  58558. + _LT_TAGVAR(hardcode_minus_L, $1)=yes
  58559. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  58560. + _LT_TAGVAR(hardcode_libdir_separator, $1)=
  58561. + fi
  58562. + esac
  58563. + shared_flag='-shared'
  58564. + if test "$aix_use_runtimelinking" = yes; then
  58565. + shared_flag="$shared_flag "'${wl}-G'
  58566. + fi
  58567. + else
  58568. + # not using gcc
  58569. + if test "$host_cpu" = ia64; then
  58570. + # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  58571. + # chokes on -Wl,-G. The following line is correct:
  58572. + shared_flag='-G'
  58573. + else
  58574. + if test "$aix_use_runtimelinking" = yes; then
  58575. + shared_flag='${wl}-G'
  58576. + else
  58577. + shared_flag='${wl}-bM:SRE'
  58578. + fi
  58579. + fi
  58580. + fi
  58581. +
  58582. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-bexpall'
  58583. + # It seems that -bexpall does not export symbols beginning with
  58584. + # underscore (_), so it is better to generate a list of symbols to
  58585. + # export.
  58586. + _LT_TAGVAR(always_export_symbols, $1)=yes
  58587. + if test "$aix_use_runtimelinking" = yes; then
  58588. + # Warning - without using the other runtime loading flags (-brtl),
  58589. + # -berok will link without error, but may produce a broken library.
  58590. + _LT_TAGVAR(allow_undefined_flag, $1)='-berok'
  58591. + # Determine the default libpath from the value encoded in an empty
  58592. + # executable.
  58593. + _LT_SYS_MODULE_PATH_AIX
  58594. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
  58595. +
  58596. + _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"
  58597. + else
  58598. + if test "$host_cpu" = ia64; then
  58599. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
  58600. + _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
  58601. + _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"
  58602. + else
  58603. + # Determine the default libpath from the value encoded in an
  58604. + # empty executable.
  58605. + _LT_SYS_MODULE_PATH_AIX
  58606. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
  58607. + # Warning - without using the other run time loading flags,
  58608. + # -berok will link without error, but may produce a broken library.
  58609. + _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
  58610. + _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
  58611. + # Exported symbols can be pulled into shared objects from archives
  58612. + _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
  58613. + _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
  58614. + # This is similar to how AIX traditionally builds its shared
  58615. + # libraries.
  58616. + _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'
  58617. + fi
  58618. + fi
  58619. + ;;
  58620. +
  58621. + beos*)
  58622. + if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  58623. + _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  58624. + # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  58625. + # support --undefined. This deserves some investigation. FIXME
  58626. + _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  58627. + else
  58628. + _LT_TAGVAR(ld_shlibs, $1)=no
  58629. + fi
  58630. + ;;
  58631. +
  58632. + chorus*)
  58633. + case $cc_basename in
  58634. + *)
  58635. + # FIXME: insert proper C++ library support
  58636. + _LT_TAGVAR(ld_shlibs, $1)=no
  58637. + ;;
  58638. + esac
  58639. + ;;
  58640. +
  58641. + cygwin* | mingw* | pw32* | cegcc*)
  58642. + # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
  58643. + # as there is no search path for DLLs.
  58644. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  58645. + _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  58646. + _LT_TAGVAR(always_export_symbols, $1)=no
  58647. + _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
  58648. +
  58649. + if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  58650. + _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'
  58651. + # If the export-symbols file already is a .def file (1st line
  58652. + # is EXPORTS), use it as is; otherwise, prepend...
  58653. + _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  58654. + cp $export_symbols $output_objdir/$soname.def;
  58655. + else
  58656. + echo EXPORTS > $output_objdir/$soname.def;
  58657. + cat $export_symbols >> $output_objdir/$soname.def;
  58658. + fi~
  58659. + $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'
  58660. + else
  58661. + _LT_TAGVAR(ld_shlibs, $1)=no
  58662. + fi
  58663. + ;;
  58664. + darwin* | rhapsody*)
  58665. + _LT_DARWIN_LINKER_FEATURES($1)
  58666. + ;;
  58667. +
  58668. + dgux*)
  58669. + case $cc_basename in
  58670. + ec++*)
  58671. + # FIXME: insert proper C++ library support
  58672. + _LT_TAGVAR(ld_shlibs, $1)=no
  58673. + ;;
  58674. + ghcx*)
  58675. + # Green Hills C++ Compiler
  58676. + # FIXME: insert proper C++ library support
  58677. + _LT_TAGVAR(ld_shlibs, $1)=no
  58678. + ;;
  58679. + *)
  58680. + # FIXME: insert proper C++ library support
  58681. + _LT_TAGVAR(ld_shlibs, $1)=no
  58682. + ;;
  58683. + esac
  58684. + ;;
  58685. +
  58686. + freebsd[[12]]*)
  58687. + # C++ shared libraries reported to be fairly broken before
  58688. + # switch to ELF
  58689. + _LT_TAGVAR(ld_shlibs, $1)=no
  58690. + ;;
  58691. +
  58692. + freebsd-elf*)
  58693. + _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  58694. + ;;
  58695. +
  58696. + freebsd* | dragonfly*)
  58697. + # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
  58698. + # conventions
  58699. + _LT_TAGVAR(ld_shlibs, $1)=yes
  58700. + ;;
  58701. +
  58702. + gnu*)
  58703. + ;;
  58704. +
  58705. + hpux9*)
  58706. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  58707. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  58708. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  58709. + _LT_TAGVAR(hardcode_direct, $1)=yes
  58710. + _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
  58711. + # but as the default
  58712. + # location of the library.
  58713. +
  58714. + case $cc_basename in
  58715. + CC*)
  58716. + # FIXME: insert proper C++ library support
  58717. + _LT_TAGVAR(ld_shlibs, $1)=no
  58718. + ;;
  58719. + aCC*)
  58720. + _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'
  58721. + # Commands to make compiler produce verbose output that lists
  58722. + # what "hidden" libraries, object files and flags are used when
  58723. + # linking a shared library.
  58724. + #
  58725. + # There doesn't appear to be a way to prevent this compiler from
  58726. + # explicitly linking system object files so we need to strip them
  58727. + # from the output so that they don't get included in the library
  58728. + # dependencies.
  58729. + 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'
  58730. + ;;
  58731. + *)
  58732. + if test "$GXX" = yes; then
  58733. + _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'
  58734. + else
  58735. + # FIXME: insert proper C++ library support
  58736. + _LT_TAGVAR(ld_shlibs, $1)=no
  58737. + fi
  58738. + ;;
  58739. + esac
  58740. + ;;
  58741. +
  58742. + hpux10*|hpux11*)
  58743. + if test $with_gnu_ld = no; then
  58744. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  58745. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  58746. +
  58747. + case $host_cpu in
  58748. + hppa*64*|ia64*)
  58749. + ;;
  58750. + *)
  58751. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  58752. + ;;
  58753. + esac
  58754. + fi
  58755. + case $host_cpu in
  58756. + hppa*64*|ia64*)
  58757. + _LT_TAGVAR(hardcode_direct, $1)=no
  58758. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  58759. + ;;
  58760. + *)
  58761. + _LT_TAGVAR(hardcode_direct, $1)=yes
  58762. + _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
  58763. + _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
  58764. + # but as the default
  58765. + # location of the library.
  58766. + ;;
  58767. + esac
  58768. +
  58769. + case $cc_basename in
  58770. + CC*)
  58771. + # FIXME: insert proper C++ library support
  58772. + _LT_TAGVAR(ld_shlibs, $1)=no
  58773. + ;;
  58774. + aCC*)
  58775. + case $host_cpu in
  58776. + hppa*64*)
  58777. + _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  58778. + ;;
  58779. + ia64*)
  58780. + _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  58781. + ;;
  58782. + *)
  58783. + _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'
  58784. + ;;
  58785. + esac
  58786. + # Commands to make compiler produce verbose output that lists
  58787. + # what "hidden" libraries, object files and flags are used when
  58788. + # linking a shared library.
  58789. + #
  58790. + # There doesn't appear to be a way to prevent this compiler from
  58791. + # explicitly linking system object files so we need to strip them
  58792. + # from the output so that they don't get included in the library
  58793. + # dependencies.
  58794. + 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'
  58795. + ;;
  58796. + *)
  58797. + if test "$GXX" = yes; then
  58798. + if test $with_gnu_ld = no; then
  58799. + case $host_cpu in
  58800. + hppa*64*)
  58801. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  58802. + ;;
  58803. + ia64*)
  58804. + _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'
  58805. + ;;
  58806. + *)
  58807. + _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'
  58808. + ;;
  58809. + esac
  58810. + fi
  58811. + else
  58812. + # FIXME: insert proper C++ library support
  58813. + _LT_TAGVAR(ld_shlibs, $1)=no
  58814. + fi
  58815. + ;;
  58816. + esac
  58817. + ;;
  58818. +
  58819. + interix[[3-9]]*)
  58820. + _LT_TAGVAR(hardcode_direct, $1)=no
  58821. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  58822. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  58823. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  58824. + # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  58825. + # Instead, shared libraries are loaded at an image base (0x10000000 by
  58826. + # default) and relocated if they conflict, which is a slow very memory
  58827. + # consuming and fragmenting process. To avoid this, we pick a random,
  58828. + # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  58829. + # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  58830. + _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'
  58831. + _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'
  58832. + ;;
  58833. + irix5* | irix6*)
  58834. + case $cc_basename in
  58835. + CC*)
  58836. + # SGI C++
  58837. + _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'
  58838. +
  58839. + # Archives containing C++ object files must be created using
  58840. + # "CC -ar", where "CC" is the IRIX C++ compiler. This is
  58841. + # necessary to make sure instantiated templates are included
  58842. + # in the archive.
  58843. + _LT_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs'
  58844. + ;;
  58845. + *)
  58846. + if test "$GXX" = yes; then
  58847. + if test "$with_gnu_ld" = no; then
  58848. + _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'
  58849. + else
  58850. + _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'
  58851. + fi
  58852. + fi
  58853. + _LT_TAGVAR(link_all_deplibs, $1)=yes
  58854. + ;;
  58855. + esac
  58856. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  58857. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  58858. + _LT_TAGVAR(inherit_rpath, $1)=yes
  58859. + ;;
  58860. +
  58861. + linux* | k*bsd*-gnu | kopensolaris*-gnu)
  58862. + case $cc_basename in
  58863. + KCC*)
  58864. + # Kuck and Associates, Inc. (KAI) C++ Compiler
  58865. +
  58866. + # KCC will only create a shared library if the output file
  58867. + # ends with ".so" (or ".sl" for HP-UX), so rename the library
  58868. + # to its proper name (with version) after linking.
  58869. + _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'
  58870. + _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'
  58871. + # Commands to make compiler produce verbose output that lists
  58872. + # what "hidden" libraries, object files and flags are used when
  58873. + # linking a shared library.
  58874. + #
  58875. + # There doesn't appear to be a way to prevent this compiler from
  58876. + # explicitly linking system object files so we need to strip them
  58877. + # from the output so that they don't get included in the library
  58878. + # dependencies.
  58879. + 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'
  58880. +
  58881. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  58882. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  58883. +
  58884. + # Archives containing C++ object files must be created using
  58885. + # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  58886. + _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
  58887. + ;;
  58888. + icpc* | ecpc* )
  58889. + # Intel C++
  58890. + with_gnu_ld=yes
  58891. + # version 8.0 and above of icpc choke on multiply defined symbols
  58892. + # if we add $predep_objects and $postdep_objects, however 7.1 and
  58893. + # earlier do not add the objects themselves.
  58894. + case `$CC -V 2>&1` in
  58895. + *"Version 7."*)
  58896. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  58897. + _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'
  58898. + ;;
  58899. + *) # Version 8.0 or newer
  58900. + tmp_idyn=
  58901. + case $host_cpu in
  58902. + ia64*) tmp_idyn=' -i_dynamic';;
  58903. + esac
  58904. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  58905. + _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'
  58906. + ;;
  58907. + esac
  58908. + _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  58909. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  58910. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  58911. + _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  58912. + ;;
  58913. + pgCC* | pgcpp*)
  58914. + # Portland Group C++ compiler
  58915. + case `$CC -V` in
  58916. + *pgCC\ [[1-5]]* | *pgcpp\ [[1-5]]*)
  58917. + _LT_TAGVAR(prelink_cmds, $1)='tpldir=Template.dir~
  58918. + rm -rf $tpldir~
  58919. + $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
  58920. + compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
  58921. + _LT_TAGVAR(old_archive_cmds, $1)='tpldir=Template.dir~
  58922. + rm -rf $tpldir~
  58923. + $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
  58924. + $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
  58925. + $RANLIB $oldlib'
  58926. + _LT_TAGVAR(archive_cmds, $1)='tpldir=Template.dir~
  58927. + rm -rf $tpldir~
  58928. + $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  58929. + $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  58930. + _LT_TAGVAR(archive_expsym_cmds, $1)='tpldir=Template.dir~
  58931. + rm -rf $tpldir~
  58932. + $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  58933. + $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'
  58934. + ;;
  58935. + *) # Version 6 will use weak symbols
  58936. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  58937. + _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'
  58938. + ;;
  58939. + esac
  58940. +
  58941. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
  58942. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  58943. + _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'
  58944. + ;;
  58945. + cxx*)
  58946. + # Compaq C++
  58947. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  58948. + _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'
  58949. +
  58950. + runpath_var=LD_RUN_PATH
  58951. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
  58952. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  58953. +
  58954. + # Commands to make compiler produce verbose output that lists
  58955. + # what "hidden" libraries, object files and flags are used when
  58956. + # linking a shared library.
  58957. + #
  58958. + # There doesn't appear to be a way to prevent this compiler from
  58959. + # explicitly linking system object files so we need to strip them
  58960. + # from the output so that they don't get included in the library
  58961. + # dependencies.
  58962. + 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'
  58963. + ;;
  58964. + xl*)
  58965. + # IBM XL 8.0 on PPC, with GNU ld
  58966. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  58967. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  58968. + _LT_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  58969. + if test "x$supports_anon_versioning" = xyes; then
  58970. + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
  58971. + cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  58972. + echo "local: *; };" >> $output_objdir/$libname.ver~
  58973. + $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  58974. + fi
  58975. + ;;
  58976. + *)
  58977. + case `$CC -V 2>&1 | sed 5q` in
  58978. + *Sun\ C*)
  58979. + # Sun C++ 5.9
  58980. + _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
  58981. + _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  58982. + _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'
  58983. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  58984. + _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'
  58985. + _LT_TAGVAR(compiler_needs_object, $1)=yes
  58986. +
  58987. + # Not sure whether something based on
  58988. + # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
  58989. + # would be better.
  58990. + output_verbose_link_cmd='echo'
  58991. +
  58992. + # Archives containing C++ object files must be created using
  58993. + # "CC -xar", where "CC" is the Sun C++ compiler. This is
  58994. + # necessary to make sure instantiated templates are included
  58995. + # in the archive.
  58996. + _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
  58997. + ;;
  58998. + esac
  58999. + ;;
  59000. + esac
  59001. + ;;
  59002. +
  59003. + lynxos*)
  59004. + # FIXME: insert proper C++ library support
  59005. + _LT_TAGVAR(ld_shlibs, $1)=no
  59006. + ;;
  59007. +
  59008. + m88k*)
  59009. + # FIXME: insert proper C++ library support
  59010. + _LT_TAGVAR(ld_shlibs, $1)=no
  59011. + ;;
  59012. +
  59013. + mvs*)
  59014. + case $cc_basename in
  59015. + cxx*)
  59016. + # FIXME: insert proper C++ library support
  59017. + _LT_TAGVAR(ld_shlibs, $1)=no
  59018. + ;;
  59019. + *)
  59020. + # FIXME: insert proper C++ library support
  59021. + _LT_TAGVAR(ld_shlibs, $1)=no
  59022. + ;;
  59023. + esac
  59024. + ;;
  59025. +
  59026. + netbsd*)
  59027. + if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  59028. + _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
  59029. + wlarc=
  59030. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  59031. + _LT_TAGVAR(hardcode_direct, $1)=yes
  59032. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  59033. + fi
  59034. + # Workaround some broken pre-1.5 toolchains
  59035. + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
  59036. + ;;
  59037. +
  59038. + *nto* | *qnx*)
  59039. + _LT_TAGVAR(ld_shlibs, $1)=yes
  59040. + ;;
  59041. +
  59042. + openbsd2*)
  59043. + # C++ shared libraries are fairly broken
  59044. + _LT_TAGVAR(ld_shlibs, $1)=no
  59045. + ;;
  59046. +
  59047. + openbsd*)
  59048. + if test -f /usr/libexec/ld.so; then
  59049. + _LT_TAGVAR(hardcode_direct, $1)=yes
  59050. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  59051. + _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
  59052. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  59053. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  59054. + if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  59055. + _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'
  59056. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  59057. + _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  59058. + fi
  59059. + output_verbose_link_cmd=echo
  59060. + else
  59061. + _LT_TAGVAR(ld_shlibs, $1)=no
  59062. + fi
  59063. + ;;
  59064. +
  59065. + osf3* | osf4* | osf5*)
  59066. + case $cc_basename in
  59067. + KCC*)
  59068. + # Kuck and Associates, Inc. (KAI) C++ Compiler
  59069. +
  59070. + # KCC will only create a shared library if the output file
  59071. + # ends with ".so" (or ".sl" for HP-UX), so rename the library
  59072. + # to its proper name (with version) after linking.
  59073. + _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'
  59074. +
  59075. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  59076. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  59077. +
  59078. + # Archives containing C++ object files must be created using
  59079. + # the KAI C++ compiler.
  59080. + case $host in
  59081. + osf3*) _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' ;;
  59082. + *) _LT_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs' ;;
  59083. + esac
  59084. + ;;
  59085. + RCC*)
  59086. + # Rational C++ 2.4.1
  59087. + # FIXME: insert proper C++ library support
  59088. + _LT_TAGVAR(ld_shlibs, $1)=no
  59089. + ;;
  59090. + cxx*)
  59091. + case $host in
  59092. + osf3*)
  59093. + _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
  59094. + _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'
  59095. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  59096. + ;;
  59097. + *)
  59098. + _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
  59099. + _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'
  59100. + _LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
  59101. + echo "-hidden">> $lib.exp~
  59102. + $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~
  59103. + $RM $lib.exp'
  59104. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
  59105. + ;;
  59106. + esac
  59107. +
  59108. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  59109. +
  59110. + # Commands to make compiler produce verbose output that lists
  59111. + # what "hidden" libraries, object files and flags are used when
  59112. + # linking a shared library.
  59113. + #
  59114. + # There doesn't appear to be a way to prevent this compiler from
  59115. + # explicitly linking system object files so we need to strip them
  59116. + # from the output so that they don't get included in the library
  59117. + # dependencies.
  59118. + 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'
  59119. + ;;
  59120. + *)
  59121. + if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  59122. + _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
  59123. + case $host in
  59124. + osf3*)
  59125. + _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'
  59126. + ;;
  59127. + *)
  59128. + _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'
  59129. + ;;
  59130. + esac
  59131. +
  59132. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  59133. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  59134. +
  59135. + # Commands to make compiler produce verbose output that lists
  59136. + # what "hidden" libraries, object files and flags are used when
  59137. + # linking a shared library.
  59138. + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
  59139. +
  59140. + else
  59141. + # FIXME: insert proper C++ library support
  59142. + _LT_TAGVAR(ld_shlibs, $1)=no
  59143. + fi
  59144. + ;;
  59145. + esac
  59146. + ;;
  59147. +
  59148. + psos*)
  59149. + # FIXME: insert proper C++ library support
  59150. + _LT_TAGVAR(ld_shlibs, $1)=no
  59151. + ;;
  59152. +
  59153. + sunos4*)
  59154. + case $cc_basename in
  59155. + CC*)
  59156. + # Sun C++ 4.x
  59157. + # FIXME: insert proper C++ library support
  59158. + _LT_TAGVAR(ld_shlibs, $1)=no
  59159. + ;;
  59160. + lcc*)
  59161. + # Lucid
  59162. + # FIXME: insert proper C++ library support
  59163. + _LT_TAGVAR(ld_shlibs, $1)=no
  59164. + ;;
  59165. + *)
  59166. + # FIXME: insert proper C++ library support
  59167. + _LT_TAGVAR(ld_shlibs, $1)=no
  59168. + ;;
  59169. + esac
  59170. + ;;
  59171. +
  59172. + solaris*)
  59173. + case $cc_basename in
  59174. + CC*)
  59175. + # Sun C++ 4.2, 5.x and Centerline C++
  59176. + _LT_TAGVAR(archive_cmds_need_lc,$1)=yes
  59177. + _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
  59178. + _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  59179. + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  59180. + $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'
  59181. +
  59182. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  59183. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  59184. + case $host_os in
  59185. + solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
  59186. + *)
  59187. + # The compiler driver will combine and reorder linker options,
  59188. + # but understands `-z linker_flag'.
  59189. + # Supported since Solaris 2.6 (maybe 2.5.1?)
  59190. + _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
  59191. + ;;
  59192. + esac
  59193. + _LT_TAGVAR(link_all_deplibs, $1)=yes
  59194. +
  59195. + output_verbose_link_cmd='echo'
  59196. +
  59197. + # Archives containing C++ object files must be created using
  59198. + # "CC -xar", where "CC" is the Sun C++ compiler. This is
  59199. + # necessary to make sure instantiated templates are included
  59200. + # in the archive.
  59201. + _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
  59202. + ;;
  59203. + gcx*)
  59204. + # Green Hills C++ Compiler
  59205. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  59206. +
  59207. + # The C++ compiler must be used to create the archive.
  59208. + _LT_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
  59209. + ;;
  59210. + *)
  59211. + # GNU C++ compiler with Solaris linker
  59212. + if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  59213. + _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs'
  59214. + if $CC --version | $GREP -v '^2\.7' > /dev/null; then
  59215. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  59216. + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  59217. + $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  59218. +
  59219. + # Commands to make compiler produce verbose output that lists
  59220. + # what "hidden" libraries, object files and flags are used when
  59221. + # linking a shared library.
  59222. + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
  59223. + else
  59224. + # g++ 2.7 appears to require `-G' NOT `-shared' on this
  59225. + # platform.
  59226. + _LT_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  59227. + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  59228. + $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  59229. +
  59230. + # Commands to make compiler produce verbose output that lists
  59231. + # what "hidden" libraries, object files and flags are used when
  59232. + # linking a shared library.
  59233. + output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
  59234. + fi
  59235. +
  59236. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir'
  59237. + case $host_os in
  59238. + solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
  59239. + *)
  59240. + _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  59241. + ;;
  59242. + esac
  59243. + fi
  59244. + ;;
  59245. + esac
  59246. + ;;
  59247. +
  59248. + sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
  59249. + _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
  59250. + _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  59251. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  59252. + runpath_var='LD_RUN_PATH'
  59253. +
  59254. + case $cc_basename in
  59255. + CC*)
  59256. + _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  59257. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  59258. + ;;
  59259. + *)
  59260. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  59261. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  59262. + ;;
  59263. + esac
  59264. + ;;
  59265. +
  59266. + sysv5* | sco3.2v5* | sco5v6*)
  59267. + # Note: We can NOT use -z defs as we might desire, because we do not
  59268. + # link with -lc, and that would cause any symbols used from libc to
  59269. + # always be unresolved, which means just about no library would
  59270. + # ever link correctly. If we're not using GNU ld we use -z text
  59271. + # though, which does catch some bad symbols but isn't as heavy-handed
  59272. + # as -z defs.
  59273. + _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
  59274. + _LT_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
  59275. + _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  59276. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  59277. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R,$libdir'
  59278. + _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
  59279. + _LT_TAGVAR(link_all_deplibs, $1)=yes
  59280. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
  59281. + runpath_var='LD_RUN_PATH'
  59282. +
  59283. + case $cc_basename in
  59284. + CC*)
  59285. + _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  59286. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  59287. + ;;
  59288. + *)
  59289. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  59290. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  59291. + ;;
  59292. + esac
  59293. + ;;
  59294. +
  59295. + tandem*)
  59296. + case $cc_basename in
  59297. + NCC*)
  59298. + # NonStop-UX NCC 3.20
  59299. + # FIXME: insert proper C++ library support
  59300. + _LT_TAGVAR(ld_shlibs, $1)=no
  59301. + ;;
  59302. + *)
  59303. + # FIXME: insert proper C++ library support
  59304. + _LT_TAGVAR(ld_shlibs, $1)=no
  59305. + ;;
  59306. + esac
  59307. + ;;
  59308. +
  59309. + vxworks*)
  59310. + # FIXME: insert proper C++ library support
  59311. + _LT_TAGVAR(ld_shlibs, $1)=no
  59312. + ;;
  59313. +
  59314. + *)
  59315. + # FIXME: insert proper C++ library support
  59316. + _LT_TAGVAR(ld_shlibs, $1)=no
  59317. + ;;
  59318. + esac
  59319. +
  59320. + AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)])
  59321. + test "$_LT_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
  59322. +
  59323. + _LT_TAGVAR(GCC, $1)="$GXX"
  59324. + _LT_TAGVAR(LD, $1)="$LD"
  59325. +
  59326. + ## CAVEAT EMPTOR:
  59327. + ## There is no encapsulation within the following macros, do not change
  59328. + ## the running order or otherwise move them around unless you know exactly
  59329. + ## what you are doing...
  59330. + _LT_SYS_HIDDEN_LIBDEPS($1)
  59331. + _LT_COMPILER_PIC($1)
  59332. + _LT_COMPILER_C_O($1)
  59333. + _LT_COMPILER_FILE_LOCKS($1)
  59334. + _LT_LINKER_SHLIBS($1)
  59335. + _LT_SYS_DYNAMIC_LINKER($1)
  59336. + _LT_LINKER_HARDCODE_LIBPATH($1)
  59337. +
  59338. + _LT_CONFIG($1)
  59339. + fi # test -n "$compiler"
  59340. +
  59341. + CC=$lt_save_CC
  59342. + LDCXX=$LD
  59343. + LD=$lt_save_LD
  59344. + GCC=$lt_save_GCC
  59345. + with_gnu_ld=$lt_save_with_gnu_ld
  59346. + lt_cv_path_LDCXX=$lt_cv_path_LD
  59347. + lt_cv_path_LD=$lt_save_path_LD
  59348. + lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  59349. + lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
  59350. +fi # test "$_lt_caught_CXX_error" != yes
  59351. +
  59352. +AC_LANG_POP
  59353. +])# _LT_LANG_CXX_CONFIG
  59354. +
  59355. +
  59356. +# _LT_SYS_HIDDEN_LIBDEPS([TAGNAME])
  59357. +# ---------------------------------
  59358. +# Figure out "hidden" library dependencies from verbose
  59359. +# compiler output when linking a shared library.
  59360. +# Parse the compiler output and extract the necessary
  59361. +# objects, libraries and library flags.
  59362. +m4_defun([_LT_SYS_HIDDEN_LIBDEPS],
  59363. +[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  59364. +# Dependencies to place before and after the object being linked:
  59365. +_LT_TAGVAR(predep_objects, $1)=
  59366. +_LT_TAGVAR(postdep_objects, $1)=
  59367. +_LT_TAGVAR(predeps, $1)=
  59368. +_LT_TAGVAR(postdeps, $1)=
  59369. +_LT_TAGVAR(compiler_lib_search_path, $1)=
  59370. +
  59371. +dnl we can't use the lt_simple_compile_test_code here,
  59372. +dnl because it contains code intended for an executable,
  59373. +dnl not a library. It's possible we should let each
  59374. +dnl tag define a new lt_????_link_test_code variable,
  59375. +dnl but it's only used here...
  59376. +m4_if([$1], [], [cat > conftest.$ac_ext <<_LT_EOF
  59377. +int a;
  59378. +void foo (void) { a = 0; }
  59379. +_LT_EOF
  59380. +], [$1], [CXX], [cat > conftest.$ac_ext <<_LT_EOF
  59381. +class Foo
  59382. +{
  59383. +public:
  59384. + Foo (void) { a = 0; }
  59385. +private:
  59386. + int a;
  59387. +};
  59388. +_LT_EOF
  59389. +], [$1], [F77], [cat > conftest.$ac_ext <<_LT_EOF
  59390. + subroutine foo
  59391. + implicit none
  59392. + integer*4 a
  59393. + a=0
  59394. + return
  59395. + end
  59396. +_LT_EOF
  59397. +], [$1], [FC], [cat > conftest.$ac_ext <<_LT_EOF
  59398. + subroutine foo
  59399. + implicit none
  59400. + integer a
  59401. + a=0
  59402. + return
  59403. + end
  59404. +_LT_EOF
  59405. +], [$1], [GCJ], [cat > conftest.$ac_ext <<_LT_EOF
  59406. +public class foo {
  59407. + private int a;
  59408. + public void bar (void) {
  59409. + a = 0;
  59410. + }
  59411. +};
  59412. +_LT_EOF
  59413. +])
  59414. +dnl Parse the compiler output and extract the necessary
  59415. +dnl objects, libraries and library flags.
  59416. +if AC_TRY_EVAL(ac_compile); then
  59417. + # Parse the compiler output and extract the necessary
  59418. + # objects, libraries and library flags.
  59419. +
  59420. + # Sentinel used to keep track of whether or not we are before
  59421. + # the conftest object file.
  59422. + pre_test_object_deps_done=no
  59423. +
  59424. + for p in `eval "$output_verbose_link_cmd"`; do
  59425. + case $p in
  59426. +
  59427. + -L* | -R* | -l*)
  59428. + # Some compilers place space between "-{L,R}" and the path.
  59429. + # Remove the space.
  59430. + if test $p = "-L" ||
  59431. + test $p = "-R"; then
  59432. + prev=$p
  59433. + continue
  59434. + else
  59435. + prev=
  59436. + fi
  59437. +
  59438. + if test "$pre_test_object_deps_done" = no; then
  59439. + case $p in
  59440. + -L* | -R*)
  59441. + # Internal compiler library paths should come after those
  59442. + # provided the user. The postdeps already come after the
  59443. + # user supplied libs so there is no need to process them.
  59444. + if test -z "$_LT_TAGVAR(compiler_lib_search_path, $1)"; then
  59445. + _LT_TAGVAR(compiler_lib_search_path, $1)="${prev}${p}"
  59446. + else
  59447. + _LT_TAGVAR(compiler_lib_search_path, $1)="${_LT_TAGVAR(compiler_lib_search_path, $1)} ${prev}${p}"
  59448. + fi
  59449. + ;;
  59450. + # The "-l" case would never come before the object being
  59451. + # linked, so don't bother handling this case.
  59452. + esac
  59453. + else
  59454. + if test -z "$_LT_TAGVAR(postdeps, $1)"; then
  59455. + _LT_TAGVAR(postdeps, $1)="${prev}${p}"
  59456. + else
  59457. + _LT_TAGVAR(postdeps, $1)="${_LT_TAGVAR(postdeps, $1)} ${prev}${p}"
  59458. + fi
  59459. + fi
  59460. + ;;
  59461. +
  59462. + *.$objext)
  59463. + # This assumes that the test object file only shows up
  59464. + # once in the compiler output.
  59465. + if test "$p" = "conftest.$objext"; then
  59466. + pre_test_object_deps_done=yes
  59467. + continue
  59468. + fi
  59469. +
  59470. + if test "$pre_test_object_deps_done" = no; then
  59471. + if test -z "$_LT_TAGVAR(predep_objects, $1)"; then
  59472. + _LT_TAGVAR(predep_objects, $1)="$p"
  59473. + else
  59474. + _LT_TAGVAR(predep_objects, $1)="$_LT_TAGVAR(predep_objects, $1) $p"
  59475. + fi
  59476. + else
  59477. + if test -z "$_LT_TAGVAR(postdep_objects, $1)"; then
  59478. + _LT_TAGVAR(postdep_objects, $1)="$p"
  59479. + else
  59480. + _LT_TAGVAR(postdep_objects, $1)="$_LT_TAGVAR(postdep_objects, $1) $p"
  59481. + fi
  59482. + fi
  59483. + ;;
  59484. +
  59485. + *) ;; # Ignore the rest.
  59486. +
  59487. + esac
  59488. + done
  59489. +
  59490. + # Clean up.
  59491. + rm -f a.out a.exe
  59492. +else
  59493. + echo "libtool.m4: error: problem compiling $1 test program"
  59494. +fi
  59495. +
  59496. +$RM -f confest.$objext
  59497. +
  59498. +# PORTME: override above test on systems where it is broken
  59499. +m4_if([$1], [CXX],
  59500. +[case $host_os in
  59501. +interix[[3-9]]*)
  59502. + # Interix 3.5 installs completely hosed .la files for C++, so rather than
  59503. + # hack all around it, let's just trust "g++" to DTRT.
  59504. + _LT_TAGVAR(predep_objects,$1)=
  59505. + _LT_TAGVAR(postdep_objects,$1)=
  59506. + _LT_TAGVAR(postdeps,$1)=
  59507. + ;;
  59508. +
  59509. +linux*)
  59510. + case `$CC -V 2>&1 | sed 5q` in
  59511. + *Sun\ C*)
  59512. + # Sun C++ 5.9
  59513. +
  59514. + # The more standards-conforming stlport4 library is
  59515. + # incompatible with the Cstd library. Avoid specifying
  59516. + # it if it's in CXXFLAGS. Ignore libCrun as
  59517. + # -library=stlport4 depends on it.
  59518. + case " $CXX $CXXFLAGS " in
  59519. + *" -library=stlport4 "*)
  59520. + solaris_use_stlport4=yes
  59521. + ;;
  59522. + esac
  59523. +
  59524. + if test "$solaris_use_stlport4" != yes; then
  59525. + _LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
  59526. + fi
  59527. + ;;
  59528. + esac
  59529. + ;;
  59530. +
  59531. +solaris*)
  59532. + case $cc_basename in
  59533. + CC*)
  59534. + # The more standards-conforming stlport4 library is
  59535. + # incompatible with the Cstd library. Avoid specifying
  59536. + # it if it's in CXXFLAGS. Ignore libCrun as
  59537. + # -library=stlport4 depends on it.
  59538. + case " $CXX $CXXFLAGS " in
  59539. + *" -library=stlport4 "*)
  59540. + solaris_use_stlport4=yes
  59541. + ;;
  59542. + esac
  59543. +
  59544. + # Adding this requires a known-good setup of shared libraries for
  59545. + # Sun compiler versions before 5.6, else PIC objects from an old
  59546. + # archive will be linked into the output, leading to subtle bugs.
  59547. + if test "$solaris_use_stlport4" != yes; then
  59548. + _LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
  59549. + fi
  59550. + ;;
  59551. + esac
  59552. + ;;
  59553. +esac
  59554. +])
  59555. +
  59556. +case " $_LT_TAGVAR(postdeps, $1) " in
  59557. +*" -lc "*) _LT_TAGVAR(archive_cmds_need_lc, $1)=no ;;
  59558. +esac
  59559. + _LT_TAGVAR(compiler_lib_search_dirs, $1)=
  59560. +if test -n "${_LT_TAGVAR(compiler_lib_search_path, $1)}"; then
  59561. + _LT_TAGVAR(compiler_lib_search_dirs, $1)=`echo " ${_LT_TAGVAR(compiler_lib_search_path, $1)}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
  59562. +fi
  59563. +_LT_TAGDECL([], [compiler_lib_search_dirs], [1],
  59564. + [The directories searched by this compiler when creating a shared library])
  59565. +_LT_TAGDECL([], [predep_objects], [1],
  59566. + [Dependencies to place before and after the objects being linked to
  59567. + create a shared library])
  59568. +_LT_TAGDECL([], [postdep_objects], [1])
  59569. +_LT_TAGDECL([], [predeps], [1])
  59570. +_LT_TAGDECL([], [postdeps], [1])
  59571. +_LT_TAGDECL([], [compiler_lib_search_path], [1],
  59572. + [The library search path used internally by the compiler when linking
  59573. + a shared library])
  59574. +])# _LT_SYS_HIDDEN_LIBDEPS
  59575. +
  59576. +
  59577. +# _LT_PROG_F77
  59578. +# ------------
  59579. +# Since AC_PROG_F77 is broken, in that it returns the empty string
  59580. +# if there is no fortran compiler, we have our own version here.
  59581. +m4_defun([_LT_PROG_F77],
  59582. +[
  59583. +pushdef([AC_MSG_ERROR], [_lt_disable_F77=yes])
  59584. +AC_PROG_F77
  59585. +if test -z "$F77" || test "X$F77" = "Xno"; then
  59586. + _lt_disable_F77=yes
  59587. +fi
  59588. +popdef([AC_MSG_ERROR])
  59589. +])# _LT_PROG_F77
  59590. +
  59591. +dnl aclocal-1.4 backwards compatibility:
  59592. +dnl AC_DEFUN([_LT_PROG_F77], [])
  59593. +
  59594. +
  59595. +# _LT_LANG_F77_CONFIG([TAG])
  59596. +# --------------------------
  59597. +# Ensure that the configuration variables for a Fortran 77 compiler are
  59598. +# suitably defined. These variables are subsequently used by _LT_CONFIG
  59599. +# to write the compiler configuration to `libtool'.
  59600. +m4_defun([_LT_LANG_F77_CONFIG],
  59601. +[AC_REQUIRE([_LT_PROG_F77])dnl
  59602. +AC_LANG_PUSH(Fortran 77)
  59603. +
  59604. +_LT_TAGVAR(archive_cmds_need_lc, $1)=no
  59605. +_LT_TAGVAR(allow_undefined_flag, $1)=
  59606. +_LT_TAGVAR(always_export_symbols, $1)=no
  59607. +_LT_TAGVAR(archive_expsym_cmds, $1)=
  59608. +_LT_TAGVAR(export_dynamic_flag_spec, $1)=
  59609. +_LT_TAGVAR(hardcode_direct, $1)=no
  59610. +_LT_TAGVAR(hardcode_direct_absolute, $1)=no
  59611. +_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
  59612. +_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
  59613. +_LT_TAGVAR(hardcode_libdir_separator, $1)=
  59614. +_LT_TAGVAR(hardcode_minus_L, $1)=no
  59615. +_LT_TAGVAR(hardcode_automatic, $1)=no
  59616. +_LT_TAGVAR(inherit_rpath, $1)=no
  59617. +_LT_TAGVAR(module_cmds, $1)=
  59618. +_LT_TAGVAR(module_expsym_cmds, $1)=
  59619. +_LT_TAGVAR(link_all_deplibs, $1)=unknown
  59620. +_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
  59621. +_LT_TAGVAR(no_undefined_flag, $1)=
  59622. +_LT_TAGVAR(whole_archive_flag_spec, $1)=
  59623. +_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
  59624. +
  59625. +# Source file extension for f77 test sources.
  59626. +ac_ext=f
  59627. +
  59628. +# Object file extension for compiled f77 test sources.
  59629. +objext=o
  59630. +_LT_TAGVAR(objext, $1)=$objext
  59631. +
  59632. +# No sense in running all these tests if we already determined that
  59633. +# the F77 compiler isn't working. Some variables (like enable_shared)
  59634. +# are currently assumed to apply to all compilers on this platform,
  59635. +# and will be corrupted by setting them based on a non-working compiler.
  59636. +if test "$_lt_disable_F77" != yes; then
  59637. + # Code to be used in simple compile tests
  59638. + lt_simple_compile_test_code="\
  59639. + subroutine t
  59640. + return
  59641. + end
  59642. +"
  59643. +
  59644. + # Code to be used in simple link tests
  59645. + lt_simple_link_test_code="\
  59646. + program t
  59647. + end
  59648. +"
  59649. +
  59650. + # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  59651. + _LT_TAG_COMPILER
  59652. +
  59653. + # save warnings/boilerplate of simple test code
  59654. + _LT_COMPILER_BOILERPLATE
  59655. + _LT_LINKER_BOILERPLATE
  59656. +
  59657. + # Allow CC to be a program name with arguments.
  59658. + lt_save_CC="$CC"
  59659. + lt_save_GCC=$GCC
  59660. + CC=${F77-"f77"}
  59661. + compiler=$CC
  59662. + _LT_TAGVAR(compiler, $1)=$CC
  59663. + _LT_CC_BASENAME([$compiler])
  59664. + GCC=$G77
  59665. + if test -n "$compiler"; then
  59666. + AC_MSG_CHECKING([if libtool supports shared libraries])
  59667. + AC_MSG_RESULT([$can_build_shared])
  59668. +
  59669. + AC_MSG_CHECKING([whether to build shared libraries])
  59670. + test "$can_build_shared" = "no" && enable_shared=no
  59671. +
  59672. + # On AIX, shared libraries and static libraries use the same namespace, and
  59673. + # are all built from PIC.
  59674. + case $host_os in
  59675. + aix3*)
  59676. + test "$enable_shared" = yes && enable_static=no
  59677. + if test -n "$RANLIB"; then
  59678. + archive_cmds="$archive_cmds~\$RANLIB \$lib"
  59679. + postinstall_cmds='$RANLIB $lib'
  59680. + fi
  59681. + ;;
  59682. + aix[[4-9]]*)
  59683. + if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  59684. + test "$enable_shared" = yes && enable_static=no
  59685. + fi
  59686. + ;;
  59687. + esac
  59688. + AC_MSG_RESULT([$enable_shared])
  59689. +
  59690. + AC_MSG_CHECKING([whether to build static libraries])
  59691. + # Make sure either enable_shared or enable_static is yes.
  59692. + test "$enable_shared" = yes || enable_static=yes
  59693. + AC_MSG_RESULT([$enable_static])
  59694. +
  59695. + _LT_TAGVAR(GCC, $1)="$G77"
  59696. + _LT_TAGVAR(LD, $1)="$LD"
  59697. +
  59698. + ## CAVEAT EMPTOR:
  59699. + ## There is no encapsulation within the following macros, do not change
  59700. + ## the running order or otherwise move them around unless you know exactly
  59701. + ## what you are doing...
  59702. + _LT_COMPILER_PIC($1)
  59703. + _LT_COMPILER_C_O($1)
  59704. + _LT_COMPILER_FILE_LOCKS($1)
  59705. + _LT_LINKER_SHLIBS($1)
  59706. + _LT_SYS_DYNAMIC_LINKER($1)
  59707. + _LT_LINKER_HARDCODE_LIBPATH($1)
  59708. +
  59709. + _LT_CONFIG($1)
  59710. + fi # test -n "$compiler"
  59711. +
  59712. + GCC=$lt_save_GCC
  59713. + CC="$lt_save_CC"
  59714. +fi # test "$_lt_disable_F77" != yes
  59715. +
  59716. +AC_LANG_POP
  59717. +])# _LT_LANG_F77_CONFIG
  59718. +
  59719. +
  59720. +# _LT_PROG_FC
  59721. +# -----------
  59722. +# Since AC_PROG_FC is broken, in that it returns the empty string
  59723. +# if there is no fortran compiler, we have our own version here.
  59724. +m4_defun([_LT_PROG_FC],
  59725. +[
  59726. +pushdef([AC_MSG_ERROR], [_lt_disable_FC=yes])
  59727. +AC_PROG_FC
  59728. +if test -z "$FC" || test "X$FC" = "Xno"; then
  59729. + _lt_disable_FC=yes
  59730. +fi
  59731. +popdef([AC_MSG_ERROR])
  59732. +])# _LT_PROG_FC
  59733. +
  59734. +dnl aclocal-1.4 backwards compatibility:
  59735. +dnl AC_DEFUN([_LT_PROG_FC], [])
  59736. +
  59737. +
  59738. +# _LT_LANG_FC_CONFIG([TAG])
  59739. +# -------------------------
  59740. +# Ensure that the configuration variables for a Fortran compiler are
  59741. +# suitably defined. These variables are subsequently used by _LT_CONFIG
  59742. +# to write the compiler configuration to `libtool'.
  59743. +m4_defun([_LT_LANG_FC_CONFIG],
  59744. +[AC_REQUIRE([_LT_PROG_FC])dnl
  59745. +AC_LANG_PUSH(Fortran)
  59746. +
  59747. +_LT_TAGVAR(archive_cmds_need_lc, $1)=no
  59748. +_LT_TAGVAR(allow_undefined_flag, $1)=
  59749. +_LT_TAGVAR(always_export_symbols, $1)=no
  59750. +_LT_TAGVAR(archive_expsym_cmds, $1)=
  59751. +_LT_TAGVAR(export_dynamic_flag_spec, $1)=
  59752. +_LT_TAGVAR(hardcode_direct, $1)=no
  59753. +_LT_TAGVAR(hardcode_direct_absolute, $1)=no
  59754. +_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
  59755. +_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
  59756. +_LT_TAGVAR(hardcode_libdir_separator, $1)=
  59757. +_LT_TAGVAR(hardcode_minus_L, $1)=no
  59758. +_LT_TAGVAR(hardcode_automatic, $1)=no
  59759. +_LT_TAGVAR(inherit_rpath, $1)=no
  59760. +_LT_TAGVAR(module_cmds, $1)=
  59761. +_LT_TAGVAR(module_expsym_cmds, $1)=
  59762. +_LT_TAGVAR(link_all_deplibs, $1)=unknown
  59763. +_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
  59764. +_LT_TAGVAR(no_undefined_flag, $1)=
  59765. +_LT_TAGVAR(whole_archive_flag_spec, $1)=
  59766. +_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
  59767. +
  59768. +# Source file extension for fc test sources.
  59769. +ac_ext=${ac_fc_srcext-f}
  59770. +
  59771. +# Object file extension for compiled fc test sources.
  59772. +objext=o
  59773. +_LT_TAGVAR(objext, $1)=$objext
  59774. +
  59775. +# No sense in running all these tests if we already determined that
  59776. +# the FC compiler isn't working. Some variables (like enable_shared)
  59777. +# are currently assumed to apply to all compilers on this platform,
  59778. +# and will be corrupted by setting them based on a non-working compiler.
  59779. +if test "$_lt_disable_FC" != yes; then
  59780. + # Code to be used in simple compile tests
  59781. + lt_simple_compile_test_code="\
  59782. + subroutine t
  59783. + return
  59784. + end
  59785. +"
  59786. +
  59787. + # Code to be used in simple link tests
  59788. + lt_simple_link_test_code="\
  59789. + program t
  59790. + end
  59791. +"
  59792. +
  59793. + # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  59794. + _LT_TAG_COMPILER
  59795. +
  59796. + # save warnings/boilerplate of simple test code
  59797. + _LT_COMPILER_BOILERPLATE
  59798. + _LT_LINKER_BOILERPLATE
  59799. +
  59800. + # Allow CC to be a program name with arguments.
  59801. + lt_save_CC="$CC"
  59802. + lt_save_GCC=$GCC
  59803. + CC=${FC-"f95"}
  59804. + compiler=$CC
  59805. + GCC=$ac_cv_fc_compiler_gnu
  59806. +
  59807. + _LT_TAGVAR(compiler, $1)=$CC
  59808. + _LT_CC_BASENAME([$compiler])
  59809. +
  59810. + if test -n "$compiler"; then
  59811. + AC_MSG_CHECKING([if libtool supports shared libraries])
  59812. + AC_MSG_RESULT([$can_build_shared])
  59813. +
  59814. + AC_MSG_CHECKING([whether to build shared libraries])
  59815. + test "$can_build_shared" = "no" && enable_shared=no
  59816. +
  59817. + # On AIX, shared libraries and static libraries use the same namespace, and
  59818. + # are all built from PIC.
  59819. + case $host_os in
  59820. + aix3*)
  59821. + test "$enable_shared" = yes && enable_static=no
  59822. + if test -n "$RANLIB"; then
  59823. + archive_cmds="$archive_cmds~\$RANLIB \$lib"
  59824. + postinstall_cmds='$RANLIB $lib'
  59825. + fi
  59826. + ;;
  59827. + aix[[4-9]]*)
  59828. + if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  59829. + test "$enable_shared" = yes && enable_static=no
  59830. + fi
  59831. + ;;
  59832. + esac
  59833. + AC_MSG_RESULT([$enable_shared])
  59834. +
  59835. + AC_MSG_CHECKING([whether to build static libraries])
  59836. + # Make sure either enable_shared or enable_static is yes.
  59837. + test "$enable_shared" = yes || enable_static=yes
  59838. + AC_MSG_RESULT([$enable_static])
  59839. +
  59840. + _LT_TAGVAR(GCC, $1)="$ac_cv_fc_compiler_gnu"
  59841. + _LT_TAGVAR(LD, $1)="$LD"
  59842. +
  59843. + ## CAVEAT EMPTOR:
  59844. + ## There is no encapsulation within the following macros, do not change
  59845. + ## the running order or otherwise move them around unless you know exactly
  59846. + ## what you are doing...
  59847. + _LT_SYS_HIDDEN_LIBDEPS($1)
  59848. + _LT_COMPILER_PIC($1)
  59849. + _LT_COMPILER_C_O($1)
  59850. + _LT_COMPILER_FILE_LOCKS($1)
  59851. + _LT_LINKER_SHLIBS($1)
  59852. + _LT_SYS_DYNAMIC_LINKER($1)
  59853. + _LT_LINKER_HARDCODE_LIBPATH($1)
  59854. +
  59855. + _LT_CONFIG($1)
  59856. + fi # test -n "$compiler"
  59857. +
  59858. + GCC=$lt_save_GCC
  59859. + CC="$lt_save_CC"
  59860. +fi # test "$_lt_disable_FC" != yes
  59861. +
  59862. +AC_LANG_POP
  59863. +])# _LT_LANG_FC_CONFIG
  59864. +
  59865. +
  59866. +# _LT_LANG_GCJ_CONFIG([TAG])
  59867. +# --------------------------
  59868. +# Ensure that the configuration variables for the GNU Java Compiler compiler
  59869. +# are suitably defined. These variables are subsequently used by _LT_CONFIG
  59870. +# to write the compiler configuration to `libtool'.
  59871. +m4_defun([_LT_LANG_GCJ_CONFIG],
  59872. +[AC_REQUIRE([LT_PROG_GCJ])dnl
  59873. +AC_LANG_SAVE
  59874. +
  59875. +# Source file extension for Java test sources.
  59876. +ac_ext=java
  59877. +
  59878. +# Object file extension for compiled Java test sources.
  59879. +objext=o
  59880. +_LT_TAGVAR(objext, $1)=$objext
  59881. +
  59882. +# Code to be used in simple compile tests
  59883. +lt_simple_compile_test_code="class foo {}"
  59884. +
  59885. +# Code to be used in simple link tests
  59886. +lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }'
  59887. +
  59888. +# ltmain only uses $CC for tagged configurations so make sure $CC is set.
  59889. +_LT_TAG_COMPILER
  59890. +
  59891. +# save warnings/boilerplate of simple test code
  59892. +_LT_COMPILER_BOILERPLATE
  59893. +_LT_LINKER_BOILERPLATE
  59894. +
  59895. +# Allow CC to be a program name with arguments.
  59896. +lt_save_CC="$CC"
  59897. +lt_save_GCC=$GCC
  59898. +GCC=yes
  59899. +CC=${GCJ-"gcj"}
  59900. +compiler=$CC
  59901. +_LT_TAGVAR(compiler, $1)=$CC
  59902. +_LT_TAGVAR(LD, $1)="$LD"
  59903. +_LT_CC_BASENAME([$compiler])
  59904. +
  59905. +# GCJ did not exist at the time GCC didn't implicitly link libc in.
  59906. +_LT_TAGVAR(archive_cmds_need_lc, $1)=no
  59907. +
  59908. +_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
  59909. +
  59910. +## CAVEAT EMPTOR:
  59911. +## There is no encapsulation within the following macros, do not change
  59912. +## the running order or otherwise move them around unless you know exactly
  59913. +## what you are doing...
  59914. +if test -n "$compiler"; then
  59915. + _LT_COMPILER_NO_RTTI($1)
  59916. + _LT_COMPILER_PIC($1)
  59917. + _LT_COMPILER_C_O($1)
  59918. + _LT_COMPILER_FILE_LOCKS($1)
  59919. + _LT_LINKER_SHLIBS($1)
  59920. + _LT_LINKER_HARDCODE_LIBPATH($1)
  59921. +
  59922. + _LT_CONFIG($1)
  59923. +fi
  59924. +
  59925. +AC_LANG_RESTORE
  59926. +
  59927. +GCC=$lt_save_GCC
  59928. +CC="$lt_save_CC"
  59929. +])# _LT_LANG_GCJ_CONFIG
  59930. +
  59931. +
  59932. +# _LT_LANG_RC_CONFIG([TAG])
  59933. +# -------------------------
  59934. +# Ensure that the configuration variables for the Windows resource compiler
  59935. +# are suitably defined. These variables are subsequently used by _LT_CONFIG
  59936. +# to write the compiler configuration to `libtool'.
  59937. +m4_defun([_LT_LANG_RC_CONFIG],
  59938. +[AC_REQUIRE([LT_PROG_RC])dnl
  59939. +AC_LANG_SAVE
  59940. +
  59941. +# Source file extension for RC test sources.
  59942. +ac_ext=rc
  59943. +
  59944. +# Object file extension for compiled RC test sources.
  59945. +objext=o
  59946. +_LT_TAGVAR(objext, $1)=$objext
  59947. +
  59948. +# Code to be used in simple compile tests
  59949. +lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
  59950. +
  59951. +# Code to be used in simple link tests
  59952. +lt_simple_link_test_code="$lt_simple_compile_test_code"
  59953. +
  59954. +# ltmain only uses $CC for tagged configurations so make sure $CC is set.
  59955. +_LT_TAG_COMPILER
  59956. +
  59957. +# save warnings/boilerplate of simple test code
  59958. +_LT_COMPILER_BOILERPLATE
  59959. +_LT_LINKER_BOILERPLATE
  59960. +
  59961. +# Allow CC to be a program name with arguments.
  59962. +lt_save_CC="$CC"
  59963. +lt_save_GCC=$GCC
  59964. +GCC=
  59965. +CC=${RC-"windres"}
  59966. +compiler=$CC
  59967. +_LT_TAGVAR(compiler, $1)=$CC
  59968. +_LT_CC_BASENAME([$compiler])
  59969. +_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
  59970. +
  59971. +if test -n "$compiler"; then
  59972. + :
  59973. + _LT_CONFIG($1)
  59974. +fi
  59975. +
  59976. +GCC=$lt_save_GCC
  59977. +AC_LANG_RESTORE
  59978. +CC="$lt_save_CC"
  59979. +])# _LT_LANG_RC_CONFIG
  59980. +
  59981. +
  59982. +# LT_PROG_GCJ
  59983. +# -----------
  59984. +AC_DEFUN([LT_PROG_GCJ],
  59985. +[m4_ifdef([AC_PROG_GCJ], [AC_PROG_GCJ],
  59986. + [m4_ifdef([A][M_PROG_GCJ], [A][M_PROG_GCJ],
  59987. + [AC_CHECK_TOOL(GCJ, gcj,)
  59988. + test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
  59989. + AC_SUBST(GCJFLAGS)])])[]dnl
  59990. +])
  59991. +
  59992. +# Old name:
  59993. +AU_ALIAS([LT_AC_PROG_GCJ], [LT_PROG_GCJ])
  59994. +dnl aclocal-1.4 backwards compatibility:
  59995. +dnl AC_DEFUN([LT_AC_PROG_GCJ], [])
  59996. +
  59997. +
  59998. +# LT_PROG_RC
  59999. +# ----------
  60000. +AC_DEFUN([LT_PROG_RC],
  60001. +[AC_CHECK_TOOL(RC, windres,)
  60002. +])
  60003. +
  60004. +# Old name:
  60005. +AU_ALIAS([LT_AC_PROG_RC], [LT_PROG_RC])
  60006. +dnl aclocal-1.4 backwards compatibility:
  60007. +dnl AC_DEFUN([LT_AC_PROG_RC], [])
  60008. +
  60009. +
  60010. +# _LT_DECL_EGREP
  60011. +# --------------
  60012. +# If we don't have a new enough Autoconf to choose the best grep
  60013. +# available, choose the one first in the user's PATH.
  60014. +m4_defun([_LT_DECL_EGREP],
  60015. +[AC_REQUIRE([AC_PROG_EGREP])dnl
  60016. +AC_REQUIRE([AC_PROG_FGREP])dnl
  60017. +test -z "$GREP" && GREP=grep
  60018. +_LT_DECL([], [GREP], [1], [A grep program that handles long lines])
  60019. +_LT_DECL([], [EGREP], [1], [An ERE matcher])
  60020. +_LT_DECL([], [FGREP], [1], [A literal string matcher])
  60021. +dnl Non-bleeding-edge autoconf doesn't subst GREP, so do it here too
  60022. +AC_SUBST([GREP])
  60023. +])
  60024. +
  60025. +
  60026. +# _LT_DECL_OBJDUMP
  60027. +# --------------
  60028. +# If we don't have a new enough Autoconf to choose the best objdump
  60029. +# available, choose the one first in the user's PATH.
  60030. +m4_defun([_LT_DECL_OBJDUMP],
  60031. +[AC_CHECK_TOOL(OBJDUMP, objdump, false)
  60032. +test -z "$OBJDUMP" && OBJDUMP=objdump
  60033. +_LT_DECL([], [OBJDUMP], [1], [An object symbol dumper])
  60034. +AC_SUBST([OBJDUMP])
  60035. +])
  60036. +
  60037. +
  60038. +# _LT_DECL_SED
  60039. +# ------------
  60040. +# Check for a fully-functional sed program, that truncates
  60041. +# as few characters as possible. Prefer GNU sed if found.
  60042. +m4_defun([_LT_DECL_SED],
  60043. +[AC_PROG_SED
  60044. +test -z "$SED" && SED=sed
  60045. +Xsed="$SED -e 1s/^X//"
  60046. +_LT_DECL([], [SED], [1], [A sed program that does not truncate output])
  60047. +_LT_DECL([], [Xsed], ["\$SED -e 1s/^X//"],
  60048. + [Sed that helps us avoid accidentally triggering echo(1) options like -n])
  60049. +])# _LT_DECL_SED
  60050. +
  60051. +m4_ifndef([AC_PROG_SED], [
  60052. +############################################################
  60053. +# NOTE: This macro has been submitted for inclusion into #
  60054. +# GNU Autoconf as AC_PROG_SED. When it is available in #
  60055. +# a released version of Autoconf we should remove this #
  60056. +# macro and use it instead. #
  60057. +############################################################
  60058. +
  60059. +m4_defun([AC_PROG_SED],
  60060. +[AC_MSG_CHECKING([for a sed that does not truncate output])
  60061. +AC_CACHE_VAL(lt_cv_path_SED,
  60062. +[# Loop through the user's path and test for sed and gsed.
  60063. +# Then use that list of sed's as ones to test for truncation.
  60064. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  60065. +for as_dir in $PATH
  60066. +do
  60067. + IFS=$as_save_IFS
  60068. + test -z "$as_dir" && as_dir=.
  60069. + for lt_ac_prog in sed gsed; do
  60070. + for ac_exec_ext in '' $ac_executable_extensions; do
  60071. + if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
  60072. + lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
  60073. + fi
  60074. + done
  60075. + done
  60076. +done
  60077. +IFS=$as_save_IFS
  60078. +lt_ac_max=0
  60079. +lt_ac_count=0
  60080. +# Add /usr/xpg4/bin/sed as it is typically found on Solaris
  60081. +# along with /bin/sed that truncates output.
  60082. +for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
  60083. + test ! -f $lt_ac_sed && continue
  60084. + cat /dev/null > conftest.in
  60085. + lt_ac_count=0
  60086. + echo $ECHO_N "0123456789$ECHO_C" >conftest.in
  60087. + # Check for GNU sed and select it if it is found.
  60088. + if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
  60089. + lt_cv_path_SED=$lt_ac_sed
  60090. + break
  60091. + fi
  60092. + while true; do
  60093. + cat conftest.in conftest.in >conftest.tmp
  60094. + mv conftest.tmp conftest.in
  60095. + cp conftest.in conftest.nl
  60096. + echo >>conftest.nl
  60097. + $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
  60098. + cmp -s conftest.out conftest.nl || break
  60099. + # 10000 chars as input seems more than enough
  60100. + test $lt_ac_count -gt 10 && break
  60101. + lt_ac_count=`expr $lt_ac_count + 1`
  60102. + if test $lt_ac_count -gt $lt_ac_max; then
  60103. + lt_ac_max=$lt_ac_count
  60104. + lt_cv_path_SED=$lt_ac_sed
  60105. + fi
  60106. + done
  60107. +done
  60108. +])
  60109. +SED=$lt_cv_path_SED
  60110. +AC_SUBST([SED])
  60111. +AC_MSG_RESULT([$SED])
  60112. +])#AC_PROG_SED
  60113. +])#m4_ifndef
  60114. +
  60115. +# Old name:
  60116. +AU_ALIAS([LT_AC_PROG_SED], [AC_PROG_SED])
  60117. +dnl aclocal-1.4 backwards compatibility:
  60118. +dnl AC_DEFUN([LT_AC_PROG_SED], [])
  60119. +
  60120. +
  60121. +# _LT_CHECK_SHELL_FEATURES
  60122. +# ------------------------
  60123. +# Find out whether the shell is Bourne or XSI compatible,
  60124. +# or has some other useful features.
  60125. +m4_defun([_LT_CHECK_SHELL_FEATURES],
  60126. +[AC_MSG_CHECKING([whether the shell understands some XSI constructs])
  60127. +# Try some XSI features
  60128. +xsi_shell=no
  60129. +( _lt_dummy="a/b/c"
  60130. + test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
  60131. + = c,a/b,, \
  60132. + && eval 'test $(( 1 + 1 )) -eq 2 \
  60133. + && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
  60134. + && xsi_shell=yes
  60135. +AC_MSG_RESULT([$xsi_shell])
  60136. +_LT_CONFIG_LIBTOOL_INIT([xsi_shell='$xsi_shell'])
  60137. +
  60138. +AC_MSG_CHECKING([whether the shell understands "+="])
  60139. +lt_shell_append=no
  60140. +( foo=bar; set foo baz; eval "$[1]+=\$[2]" && test "$foo" = barbaz ) \
  60141. + >/dev/null 2>&1 \
  60142. + && lt_shell_append=yes
  60143. +AC_MSG_RESULT([$lt_shell_append])
  60144. +_LT_CONFIG_LIBTOOL_INIT([lt_shell_append='$lt_shell_append'])
  60145. +
  60146. +if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  60147. + lt_unset=unset
  60148. +else
  60149. + lt_unset=false
  60150. +fi
  60151. +_LT_DECL([], [lt_unset], [0], [whether the shell understands "unset"])dnl
  60152. +
  60153. +# test EBCDIC or ASCII
  60154. +case `echo X|tr X '\101'` in
  60155. + A) # ASCII based system
  60156. + # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  60157. + lt_SP2NL='tr \040 \012'
  60158. + lt_NL2SP='tr \015\012 \040\040'
  60159. + ;;
  60160. + *) # EBCDIC based system
  60161. + lt_SP2NL='tr \100 \n'
  60162. + lt_NL2SP='tr \r\n \100\100'
  60163. + ;;
  60164. +esac
  60165. +_LT_DECL([SP2NL], [lt_SP2NL], [1], [turn spaces into newlines])dnl
  60166. +_LT_DECL([NL2SP], [lt_NL2SP], [1], [turn newlines into spaces])dnl
  60167. +])# _LT_CHECK_SHELL_FEATURES
  60168. +
  60169. +
  60170. +# _LT_PROG_XSI_SHELLFNS
  60171. +# ---------------------
  60172. +# Bourne and XSI compatible variants of some useful shell functions.
  60173. +m4_defun([_LT_PROG_XSI_SHELLFNS],
  60174. +[case $xsi_shell in
  60175. + yes)
  60176. + cat << \_LT_EOF >> "$cfgfile"
  60177. +
  60178. +# func_dirname file append nondir_replacement
  60179. +# Compute the dirname of FILE. If nonempty, add APPEND to the result,
  60180. +# otherwise set result to NONDIR_REPLACEMENT.
  60181. +func_dirname ()
  60182. +{
  60183. + case ${1} in
  60184. + */*) func_dirname_result="${1%/*}${2}" ;;
  60185. + * ) func_dirname_result="${3}" ;;
  60186. + esac
  60187. +}
  60188. +
  60189. +# func_basename file
  60190. +func_basename ()
  60191. +{
  60192. + func_basename_result="${1##*/}"
  60193. +}
  60194. +
  60195. +# func_dirname_and_basename file append nondir_replacement
  60196. +# perform func_basename and func_dirname in a single function
  60197. +# call:
  60198. +# dirname: Compute the dirname of FILE. If nonempty,
  60199. +# add APPEND to the result, otherwise set result
  60200. +# to NONDIR_REPLACEMENT.
  60201. +# value returned in "$func_dirname_result"
  60202. +# basename: Compute filename of FILE.
  60203. +# value retuned in "$func_basename_result"
  60204. +# Implementation must be kept synchronized with func_dirname
  60205. +# and func_basename. For efficiency, we do not delegate to
  60206. +# those functions but instead duplicate the functionality here.
  60207. +func_dirname_and_basename ()
  60208. +{
  60209. + case ${1} in
  60210. + */*) func_dirname_result="${1%/*}${2}" ;;
  60211. + * ) func_dirname_result="${3}" ;;
  60212. + esac
  60213. + func_basename_result="${1##*/}"
  60214. +}
  60215. +
  60216. +# func_stripname prefix suffix name
  60217. +# strip PREFIX and SUFFIX off of NAME.
  60218. +# PREFIX and SUFFIX must not contain globbing or regex special
  60219. +# characters, hashes, percent signs, but SUFFIX may contain a leading
  60220. +# dot (in which case that matches only a dot).
  60221. +func_stripname ()
  60222. +{
  60223. + # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
  60224. + # positional parameters, so assign one to ordinary parameter first.
  60225. + func_stripname_result=${3}
  60226. + func_stripname_result=${func_stripname_result#"${1}"}
  60227. + func_stripname_result=${func_stripname_result%"${2}"}
  60228. +}
  60229. +
  60230. +# func_opt_split
  60231. +func_opt_split ()
  60232. +{
  60233. + func_opt_split_opt=${1%%=*}
  60234. + func_opt_split_arg=${1#*=}
  60235. +}
  60236. +
  60237. +# func_lo2o object
  60238. +func_lo2o ()
  60239. +{
  60240. + case ${1} in
  60241. + *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
  60242. + *) func_lo2o_result=${1} ;;
  60243. + esac
  60244. +}
  60245. +
  60246. +# func_xform libobj-or-source
  60247. +func_xform ()
  60248. +{
  60249. + func_xform_result=${1%.*}.lo
  60250. +}
  60251. +
  60252. +# func_arith arithmetic-term...
  60253. +func_arith ()
  60254. +{
  60255. + func_arith_result=$(( $[*] ))
  60256. +}
  60257. +
  60258. +# func_len string
  60259. +# STRING may not start with a hyphen.
  60260. +func_len ()
  60261. +{
  60262. + func_len_result=${#1}
  60263. +}
  60264. +
  60265. +_LT_EOF
  60266. + ;;
  60267. + *) # Bourne compatible functions.
  60268. + cat << \_LT_EOF >> "$cfgfile"
  60269. +
  60270. +# func_dirname file append nondir_replacement
  60271. +# Compute the dirname of FILE. If nonempty, add APPEND to the result,
  60272. +# otherwise set result to NONDIR_REPLACEMENT.
  60273. +func_dirname ()
  60274. +{
  60275. + # Extract subdirectory from the argument.
  60276. + func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
  60277. + if test "X$func_dirname_result" = "X${1}"; then
  60278. + func_dirname_result="${3}"
  60279. + else
  60280. + func_dirname_result="$func_dirname_result${2}"
  60281. + fi
  60282. +}
  60283. +
  60284. +# func_basename file
  60285. +func_basename ()
  60286. +{
  60287. + func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
  60288. +}
  60289. +
  60290. +dnl func_dirname_and_basename
  60291. +dnl A portable version of this function is already defined in general.m4sh
  60292. +dnl so there is no need for it here.
  60293. +
  60294. +# func_stripname prefix suffix name
  60295. +# strip PREFIX and SUFFIX off of NAME.
  60296. +# PREFIX and SUFFIX must not contain globbing or regex special
  60297. +# characters, hashes, percent signs, but SUFFIX may contain a leading
  60298. +# dot (in which case that matches only a dot).
  60299. +# func_strip_suffix prefix name
  60300. +func_stripname ()
  60301. +{
  60302. + case ${2} in
  60303. + .*) func_stripname_result=`$ECHO "X${3}" \
  60304. + | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
  60305. + *) func_stripname_result=`$ECHO "X${3}" \
  60306. + | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
  60307. + esac
  60308. +}
  60309. +
  60310. +# sed scripts:
  60311. +my_sed_long_opt='1s/^\(-[[^=]]*\)=.*/\1/;q'
  60312. +my_sed_long_arg='1s/^-[[^=]]*=//'
  60313. +
  60314. +# func_opt_split
  60315. +func_opt_split ()
  60316. +{
  60317. + func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
  60318. + func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
  60319. +}
  60320. +
  60321. +# func_lo2o object
  60322. +func_lo2o ()
  60323. +{
  60324. + func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
  60325. +}
  60326. +
  60327. +# func_xform libobj-or-source
  60328. +func_xform ()
  60329. +{
  60330. + func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[[^.]]*$/.lo/'`
  60331. +}
  60332. +
  60333. +# func_arith arithmetic-term...
  60334. +func_arith ()
  60335. +{
  60336. + func_arith_result=`expr "$[@]"`
  60337. +}
  60338. +
  60339. +# func_len string
  60340. +# STRING may not start with a hyphen.
  60341. +func_len ()
  60342. +{
  60343. + func_len_result=`expr "$[1]" : ".*" 2>/dev/null || echo $max_cmd_len`
  60344. +}
  60345. +
  60346. +_LT_EOF
  60347. +esac
  60348. +
  60349. +case $lt_shell_append in
  60350. + yes)
  60351. + cat << \_LT_EOF >> "$cfgfile"
  60352. +
  60353. +# func_append var value
  60354. +# Append VALUE to the end of shell variable VAR.
  60355. +func_append ()
  60356. +{
  60357. + eval "$[1]+=\$[2]"
  60358. +}
  60359. +_LT_EOF
  60360. + ;;
  60361. + *)
  60362. + cat << \_LT_EOF >> "$cfgfile"
  60363. +
  60364. +# func_append var value
  60365. +# Append VALUE to the end of shell variable VAR.
  60366. +func_append ()
  60367. +{
  60368. + eval "$[1]=\$$[1]\$[2]"
  60369. +}
  60370. +
  60371. +_LT_EOF
  60372. + ;;
  60373. + esac
  60374. +])
  60375. diff -Nur libupnp-1.6.6.orig/m4/lt~obsolete.m4 libupnp-1.6.6/m4/lt~obsolete.m4
  60376. --- libupnp-1.6.6.orig/m4/lt~obsolete.m4 1970-01-01 01:00:00.000000000 +0100
  60377. +++ libupnp-1.6.6/m4/lt~obsolete.m4 2010-02-18 22:36:51.168852951 +0100
  60378. @@ -0,0 +1,92 @@
  60379. +# lt~obsolete.m4 -- aclocal satisfying obsolete definitions. -*-Autoconf-*-
  60380. +#
  60381. +# Copyright (C) 2004, 2005, 2007 Free Software Foundation, Inc.
  60382. +# Written by Scott James Remnant, 2004.
  60383. +#
  60384. +# This file is free software; the Free Software Foundation gives
  60385. +# unlimited permission to copy and/or distribute it, with or without
  60386. +# modifications, as long as this notice is preserved.
  60387. +
  60388. +# serial 4 lt~obsolete.m4
  60389. +
  60390. +# These exist entirely to fool aclocal when bootstrapping libtool.
  60391. +#
  60392. +# In the past libtool.m4 has provided macros via AC_DEFUN (or AU_DEFUN)
  60393. +# which have later been changed to m4_define as they aren't part of the
  60394. +# exported API, or moved to Autoconf or Automake where they belong.
  60395. +#
  60396. +# The trouble is, aclocal is a bit thick. It'll see the old AC_DEFUN
  60397. +# in /usr/share/aclocal/libtool.m4 and remember it, then when it sees us
  60398. +# using a macro with the same name in our local m4/libtool.m4 it'll
  60399. +# pull the old libtool.m4 in (it doesn't see our shiny new m4_define
  60400. +# and doesn't know about Autoconf macros at all.)
  60401. +#
  60402. +# So we provide this file, which has a silly filename so it's always
  60403. +# included after everything else. This provides aclocal with the
  60404. +# AC_DEFUNs it wants, but when m4 processes it, it doesn't do anything
  60405. +# because those macros already exist, or will be overwritten later.
  60406. +# We use AC_DEFUN over AU_DEFUN for compatibility with aclocal-1.6.
  60407. +#
  60408. +# Anytime we withdraw an AC_DEFUN or AU_DEFUN, remember to add it here.
  60409. +# Yes, that means every name once taken will need to remain here until
  60410. +# we give up compatibility with versions before 1.7, at which point
  60411. +# we need to keep only those names which we still refer to.
  60412. +
  60413. +# This is to help aclocal find these macros, as it can't see m4_define.
  60414. +AC_DEFUN([LTOBSOLETE_VERSION], [m4_if([1])])
  60415. +
  60416. +m4_ifndef([AC_LIBTOOL_LINKER_OPTION], [AC_DEFUN([AC_LIBTOOL_LINKER_OPTION])])
  60417. +m4_ifndef([AC_PROG_EGREP], [AC_DEFUN([AC_PROG_EGREP])])
  60418. +m4_ifndef([_LT_AC_PROG_ECHO_BACKSLASH], [AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH])])
  60419. +m4_ifndef([_LT_AC_SHELL_INIT], [AC_DEFUN([_LT_AC_SHELL_INIT])])
  60420. +m4_ifndef([_LT_AC_SYS_LIBPATH_AIX], [AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX])])
  60421. +m4_ifndef([_LT_PROG_LTMAIN], [AC_DEFUN([_LT_PROG_LTMAIN])])
  60422. +m4_ifndef([_LT_AC_TAGVAR], [AC_DEFUN([_LT_AC_TAGVAR])])
  60423. +m4_ifndef([AC_LTDL_ENABLE_INSTALL], [AC_DEFUN([AC_LTDL_ENABLE_INSTALL])])
  60424. +m4_ifndef([AC_LTDL_PREOPEN], [AC_DEFUN([AC_LTDL_PREOPEN])])
  60425. +m4_ifndef([_LT_AC_SYS_COMPILER], [AC_DEFUN([_LT_AC_SYS_COMPILER])])
  60426. +m4_ifndef([_LT_AC_LOCK], [AC_DEFUN([_LT_AC_LOCK])])
  60427. +m4_ifndef([AC_LIBTOOL_SYS_OLD_ARCHIVE], [AC_DEFUN([AC_LIBTOOL_SYS_OLD_ARCHIVE])])
  60428. +m4_ifndef([_LT_AC_TRY_DLOPEN_SELF], [AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF])])
  60429. +m4_ifndef([AC_LIBTOOL_PROG_CC_C_O], [AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O])])
  60430. +m4_ifndef([AC_LIBTOOL_SYS_HARD_LINK_LOCKS], [AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS])])
  60431. +m4_ifndef([AC_LIBTOOL_OBJDIR], [AC_DEFUN([AC_LIBTOOL_OBJDIR])])
  60432. +m4_ifndef([AC_LTDL_OBJDIR], [AC_DEFUN([AC_LTDL_OBJDIR])])
  60433. +m4_ifndef([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH], [AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH])])
  60434. +m4_ifndef([AC_LIBTOOL_SYS_LIB_STRIP], [AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP])])
  60435. +m4_ifndef([AC_PATH_MAGIC], [AC_DEFUN([AC_PATH_MAGIC])])
  60436. +m4_ifndef([AC_PROG_LD_GNU], [AC_DEFUN([AC_PROG_LD_GNU])])
  60437. +m4_ifndef([AC_PROG_LD_RELOAD_FLAG], [AC_DEFUN([AC_PROG_LD_RELOAD_FLAG])])
  60438. +m4_ifndef([AC_DEPLIBS_CHECK_METHOD], [AC_DEFUN([AC_DEPLIBS_CHECK_METHOD])])
  60439. +m4_ifndef([AC_LIBTOOL_PROG_COMPILER_NO_RTTI], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI])])
  60440. +m4_ifndef([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE], [AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE])])
  60441. +m4_ifndef([AC_LIBTOOL_PROG_COMPILER_PIC], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_PIC])])
  60442. +m4_ifndef([AC_LIBTOOL_PROG_LD_SHLIBS], [AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS])])
  60443. +m4_ifndef([AC_LIBTOOL_POSTDEP_PREDEP], [AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP])])
  60444. +m4_ifndef([LT_AC_PROG_EGREP], [AC_DEFUN([LT_AC_PROG_EGREP])])
  60445. +m4_ifndef([LT_AC_PROG_SED], [AC_DEFUN([LT_AC_PROG_SED])])
  60446. +m4_ifndef([_LT_CC_BASENAME], [AC_DEFUN([_LT_CC_BASENAME])])
  60447. +m4_ifndef([_LT_COMPILER_BOILERPLATE], [AC_DEFUN([_LT_COMPILER_BOILERPLATE])])
  60448. +m4_ifndef([_LT_LINKER_BOILERPLATE], [AC_DEFUN([_LT_LINKER_BOILERPLATE])])
  60449. +m4_ifndef([_AC_PROG_LIBTOOL], [AC_DEFUN([_AC_PROG_LIBTOOL])])
  60450. +m4_ifndef([AC_LIBTOOL_SETUP], [AC_DEFUN([AC_LIBTOOL_SETUP])])
  60451. +m4_ifndef([_LT_AC_CHECK_DLFCN], [AC_DEFUN([_LT_AC_CHECK_DLFCN])])
  60452. +m4_ifndef([AC_LIBTOOL_SYS_DYNAMIC_LINKER], [AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER])])
  60453. +m4_ifndef([_LT_AC_TAGCONFIG], [AC_DEFUN([_LT_AC_TAGCONFIG])])
  60454. +m4_ifndef([AC_DISABLE_FAST_INSTALL], [AC_DEFUN([AC_DISABLE_FAST_INSTALL])])
  60455. +m4_ifndef([_LT_AC_LANG_CXX], [AC_DEFUN([_LT_AC_LANG_CXX])])
  60456. +m4_ifndef([_LT_AC_LANG_F77], [AC_DEFUN([_LT_AC_LANG_F77])])
  60457. +m4_ifndef([_LT_AC_LANG_GCJ], [AC_DEFUN([_LT_AC_LANG_GCJ])])
  60458. +m4_ifndef([AC_LIBTOOL_RC], [AC_DEFUN([AC_LIBTOOL_RC])])
  60459. +m4_ifndef([AC_LIBTOOL_LANG_C_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG])])
  60460. +m4_ifndef([_LT_AC_LANG_C_CONFIG], [AC_DEFUN([_LT_AC_LANG_C_CONFIG])])
  60461. +m4_ifndef([AC_LIBTOOL_LANG_CXX_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG])])
  60462. +m4_ifndef([_LT_AC_LANG_CXX_CONFIG], [AC_DEFUN([_LT_AC_LANG_CXX_CONFIG])])
  60463. +m4_ifndef([AC_LIBTOOL_LANG_F77_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG])])
  60464. +m4_ifndef([_LT_AC_LANG_F77_CONFIG], [AC_DEFUN([_LT_AC_LANG_F77_CONFIG])])
  60465. +m4_ifndef([AC_LIBTOOL_LANG_GCJ_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG])])
  60466. +m4_ifndef([_LT_AC_LANG_GCJ_CONFIG], [AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG])])
  60467. +m4_ifndef([AC_LIBTOOL_LANG_RC_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG])])
  60468. +m4_ifndef([_LT_AC_LANG_RC_CONFIG], [AC_DEFUN([_LT_AC_LANG_RC_CONFIG])])
  60469. +m4_ifndef([AC_LIBTOOL_CONFIG], [AC_DEFUN([AC_LIBTOOL_CONFIG])])
  60470. +m4_ifndef([_LT_AC_FILE_LTDLL_C], [AC_DEFUN([_LT_AC_FILE_LTDLL_C])])
  60471. diff -Nur libupnp-1.6.6.orig/m4/ltoptions.m4 libupnp-1.6.6/m4/ltoptions.m4
  60472. --- libupnp-1.6.6.orig/m4/ltoptions.m4 1970-01-01 01:00:00.000000000 +0100
  60473. +++ libupnp-1.6.6/m4/ltoptions.m4 2010-02-18 22:36:50.948853980 +0100
  60474. @@ -0,0 +1,368 @@
  60475. +# Helper functions for option handling. -*- Autoconf -*-
  60476. +#
  60477. +# Copyright (C) 2004, 2005, 2007, 2008 Free Software Foundation, Inc.
  60478. +# Written by Gary V. Vaughan, 2004
  60479. +#
  60480. +# This file is free software; the Free Software Foundation gives
  60481. +# unlimited permission to copy and/or distribute it, with or without
  60482. +# modifications, as long as this notice is preserved.
  60483. +
  60484. +# serial 6 ltoptions.m4
  60485. +
  60486. +# This is to help aclocal find these macros, as it can't see m4_define.
  60487. +AC_DEFUN([LTOPTIONS_VERSION], [m4_if([1])])
  60488. +
  60489. +
  60490. +# _LT_MANGLE_OPTION(MACRO-NAME, OPTION-NAME)
  60491. +# ------------------------------------------
  60492. +m4_define([_LT_MANGLE_OPTION],
  60493. +[[_LT_OPTION_]m4_bpatsubst($1__$2, [[^a-zA-Z0-9_]], [_])])
  60494. +
  60495. +
  60496. +# _LT_SET_OPTION(MACRO-NAME, OPTION-NAME)
  60497. +# ---------------------------------------
  60498. +# Set option OPTION-NAME for macro MACRO-NAME, and if there is a
  60499. +# matching handler defined, dispatch to it. Other OPTION-NAMEs are
  60500. +# saved as a flag.
  60501. +m4_define([_LT_SET_OPTION],
  60502. +[m4_define(_LT_MANGLE_OPTION([$1], [$2]))dnl
  60503. +m4_ifdef(_LT_MANGLE_DEFUN([$1], [$2]),
  60504. + _LT_MANGLE_DEFUN([$1], [$2]),
  60505. + [m4_warning([Unknown $1 option `$2'])])[]dnl
  60506. +])
  60507. +
  60508. +
  60509. +# _LT_IF_OPTION(MACRO-NAME, OPTION-NAME, IF-SET, [IF-NOT-SET])
  60510. +# ------------------------------------------------------------
  60511. +# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
  60512. +m4_define([_LT_IF_OPTION],
  60513. +[m4_ifdef(_LT_MANGLE_OPTION([$1], [$2]), [$3], [$4])])
  60514. +
  60515. +
  60516. +# _LT_UNLESS_OPTIONS(MACRO-NAME, OPTION-LIST, IF-NOT-SET)
  60517. +# -------------------------------------------------------
  60518. +# Execute IF-NOT-SET unless all options in OPTION-LIST for MACRO-NAME
  60519. +# are set.
  60520. +m4_define([_LT_UNLESS_OPTIONS],
  60521. +[m4_foreach([_LT_Option], m4_split(m4_normalize([$2])),
  60522. + [m4_ifdef(_LT_MANGLE_OPTION([$1], _LT_Option),
  60523. + [m4_define([$0_found])])])[]dnl
  60524. +m4_ifdef([$0_found], [m4_undefine([$0_found])], [$3
  60525. +])[]dnl
  60526. +])
  60527. +
  60528. +
  60529. +# _LT_SET_OPTIONS(MACRO-NAME, OPTION-LIST)
  60530. +# ----------------------------------------
  60531. +# OPTION-LIST is a space-separated list of Libtool options associated
  60532. +# with MACRO-NAME. If any OPTION has a matching handler declared with
  60533. +# LT_OPTION_DEFINE, dispatch to that macro; otherwise complain about
  60534. +# the unknown option and exit.
  60535. +m4_defun([_LT_SET_OPTIONS],
  60536. +[# Set options
  60537. +m4_foreach([_LT_Option], m4_split(m4_normalize([$2])),
  60538. + [_LT_SET_OPTION([$1], _LT_Option)])
  60539. +
  60540. +m4_if([$1],[LT_INIT],[
  60541. + dnl
  60542. + dnl Simply set some default values (i.e off) if boolean options were not
  60543. + dnl specified:
  60544. + _LT_UNLESS_OPTIONS([LT_INIT], [dlopen], [enable_dlopen=no
  60545. + ])
  60546. + _LT_UNLESS_OPTIONS([LT_INIT], [win32-dll], [enable_win32_dll=no
  60547. + ])
  60548. + dnl
  60549. + dnl If no reference was made to various pairs of opposing options, then
  60550. + dnl we run the default mode handler for the pair. For example, if neither
  60551. + dnl `shared' nor `disable-shared' was passed, we enable building of shared
  60552. + dnl archives by default:
  60553. + _LT_UNLESS_OPTIONS([LT_INIT], [shared disable-shared], [_LT_ENABLE_SHARED])
  60554. + _LT_UNLESS_OPTIONS([LT_INIT], [static disable-static], [_LT_ENABLE_STATIC])
  60555. + _LT_UNLESS_OPTIONS([LT_INIT], [pic-only no-pic], [_LT_WITH_PIC])
  60556. + _LT_UNLESS_OPTIONS([LT_INIT], [fast-install disable-fast-install],
  60557. + [_LT_ENABLE_FAST_INSTALL])
  60558. + ])
  60559. +])# _LT_SET_OPTIONS
  60560. +
  60561. +
  60562. +## --------------------------------- ##
  60563. +## Macros to handle LT_INIT options. ##
  60564. +## --------------------------------- ##
  60565. +
  60566. +# _LT_MANGLE_DEFUN(MACRO-NAME, OPTION-NAME)
  60567. +# -----------------------------------------
  60568. +m4_define([_LT_MANGLE_DEFUN],
  60569. +[[_LT_OPTION_DEFUN_]m4_bpatsubst(m4_toupper([$1__$2]), [[^A-Z0-9_]], [_])])
  60570. +
  60571. +
  60572. +# LT_OPTION_DEFINE(MACRO-NAME, OPTION-NAME, CODE)
  60573. +# -----------------------------------------------
  60574. +m4_define([LT_OPTION_DEFINE],
  60575. +[m4_define(_LT_MANGLE_DEFUN([$1], [$2]), [$3])[]dnl
  60576. +])# LT_OPTION_DEFINE
  60577. +
  60578. +
  60579. +# dlopen
  60580. +# ------
  60581. +LT_OPTION_DEFINE([LT_INIT], [dlopen], [enable_dlopen=yes
  60582. +])
  60583. +
  60584. +AU_DEFUN([AC_LIBTOOL_DLOPEN],
  60585. +[_LT_SET_OPTION([LT_INIT], [dlopen])
  60586. +AC_DIAGNOSE([obsolete],
  60587. +[$0: Remove this warning and the call to _LT_SET_OPTION when you
  60588. +put the `dlopen' option into LT_INIT's first parameter.])
  60589. +])
  60590. +
  60591. +dnl aclocal-1.4 backwards compatibility:
  60592. +dnl AC_DEFUN([AC_LIBTOOL_DLOPEN], [])
  60593. +
  60594. +
  60595. +# win32-dll
  60596. +# ---------
  60597. +# Declare package support for building win32 dll's.
  60598. +LT_OPTION_DEFINE([LT_INIT], [win32-dll],
  60599. +[enable_win32_dll=yes
  60600. +
  60601. +case $host in
  60602. +*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-cegcc*)
  60603. + AC_CHECK_TOOL(AS, as, false)
  60604. + AC_CHECK_TOOL(DLLTOOL, dlltool, false)
  60605. + AC_CHECK_TOOL(OBJDUMP, objdump, false)
  60606. + ;;
  60607. +esac
  60608. +
  60609. +test -z "$AS" && AS=as
  60610. +_LT_DECL([], [AS], [0], [Assembler program])dnl
  60611. +
  60612. +test -z "$DLLTOOL" && DLLTOOL=dlltool
  60613. +_LT_DECL([], [DLLTOOL], [0], [DLL creation program])dnl
  60614. +
  60615. +test -z "$OBJDUMP" && OBJDUMP=objdump
  60616. +_LT_DECL([], [OBJDUMP], [0], [Object dumper program])dnl
  60617. +])# win32-dll
  60618. +
  60619. +AU_DEFUN([AC_LIBTOOL_WIN32_DLL],
  60620. +[AC_REQUIRE([AC_CANONICAL_HOST])dnl
  60621. +_LT_SET_OPTION([LT_INIT], [win32-dll])
  60622. +AC_DIAGNOSE([obsolete],
  60623. +[$0: Remove this warning and the call to _LT_SET_OPTION when you
  60624. +put the `win32-dll' option into LT_INIT's first parameter.])
  60625. +])
  60626. +
  60627. +dnl aclocal-1.4 backwards compatibility:
  60628. +dnl AC_DEFUN([AC_LIBTOOL_WIN32_DLL], [])
  60629. +
  60630. +
  60631. +# _LT_ENABLE_SHARED([DEFAULT])
  60632. +# ----------------------------
  60633. +# implement the --enable-shared flag, and supports the `shared' and
  60634. +# `disable-shared' LT_INIT options.
  60635. +# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
  60636. +m4_define([_LT_ENABLE_SHARED],
  60637. +[m4_define([_LT_ENABLE_SHARED_DEFAULT], [m4_if($1, no, no, yes)])dnl
  60638. +AC_ARG_ENABLE([shared],
  60639. + [AS_HELP_STRING([--enable-shared@<:@=PKGS@:>@],
  60640. + [build shared libraries @<:@default=]_LT_ENABLE_SHARED_DEFAULT[@:>@])],
  60641. + [p=${PACKAGE-default}
  60642. + case $enableval in
  60643. + yes) enable_shared=yes ;;
  60644. + no) enable_shared=no ;;
  60645. + *)
  60646. + enable_shared=no
  60647. + # Look at the argument we got. We use all the common list separators.
  60648. + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  60649. + for pkg in $enableval; do
  60650. + IFS="$lt_save_ifs"
  60651. + if test "X$pkg" = "X$p"; then
  60652. + enable_shared=yes
  60653. + fi
  60654. + done
  60655. + IFS="$lt_save_ifs"
  60656. + ;;
  60657. + esac],
  60658. + [enable_shared=]_LT_ENABLE_SHARED_DEFAULT)
  60659. +
  60660. + _LT_DECL([build_libtool_libs], [enable_shared], [0],
  60661. + [Whether or not to build shared libraries])
  60662. +])# _LT_ENABLE_SHARED
  60663. +
  60664. +LT_OPTION_DEFINE([LT_INIT], [shared], [_LT_ENABLE_SHARED([yes])])
  60665. +LT_OPTION_DEFINE([LT_INIT], [disable-shared], [_LT_ENABLE_SHARED([no])])
  60666. +
  60667. +# Old names:
  60668. +AC_DEFUN([AC_ENABLE_SHARED],
  60669. +[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[shared])
  60670. +])
  60671. +
  60672. +AC_DEFUN([AC_DISABLE_SHARED],
  60673. +[_LT_SET_OPTION([LT_INIT], [disable-shared])
  60674. +])
  60675. +
  60676. +AU_DEFUN([AM_ENABLE_SHARED], [AC_ENABLE_SHARED($@)])
  60677. +AU_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)])
  60678. +
  60679. +dnl aclocal-1.4 backwards compatibility:
  60680. +dnl AC_DEFUN([AM_ENABLE_SHARED], [])
  60681. +dnl AC_DEFUN([AM_DISABLE_SHARED], [])
  60682. +
  60683. +
  60684. +
  60685. +# _LT_ENABLE_STATIC([DEFAULT])
  60686. +# ----------------------------
  60687. +# implement the --enable-static flag, and support the `static' and
  60688. +# `disable-static' LT_INIT options.
  60689. +# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
  60690. +m4_define([_LT_ENABLE_STATIC],
  60691. +[m4_define([_LT_ENABLE_STATIC_DEFAULT], [m4_if($1, no, no, yes)])dnl
  60692. +AC_ARG_ENABLE([static],
  60693. + [AS_HELP_STRING([--enable-static@<:@=PKGS@:>@],
  60694. + [build static libraries @<:@default=]_LT_ENABLE_STATIC_DEFAULT[@:>@])],
  60695. + [p=${PACKAGE-default}
  60696. + case $enableval in
  60697. + yes) enable_static=yes ;;
  60698. + no) enable_static=no ;;
  60699. + *)
  60700. + enable_static=no
  60701. + # Look at the argument we got. We use all the common list separators.
  60702. + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  60703. + for pkg in $enableval; do
  60704. + IFS="$lt_save_ifs"
  60705. + if test "X$pkg" = "X$p"; then
  60706. + enable_static=yes
  60707. + fi
  60708. + done
  60709. + IFS="$lt_save_ifs"
  60710. + ;;
  60711. + esac],
  60712. + [enable_static=]_LT_ENABLE_STATIC_DEFAULT)
  60713. +
  60714. + _LT_DECL([build_old_libs], [enable_static], [0],
  60715. + [Whether or not to build static libraries])
  60716. +])# _LT_ENABLE_STATIC
  60717. +
  60718. +LT_OPTION_DEFINE([LT_INIT], [static], [_LT_ENABLE_STATIC([yes])])
  60719. +LT_OPTION_DEFINE([LT_INIT], [disable-static], [_LT_ENABLE_STATIC([no])])
  60720. +
  60721. +# Old names:
  60722. +AC_DEFUN([AC_ENABLE_STATIC],
  60723. +[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[static])
  60724. +])
  60725. +
  60726. +AC_DEFUN([AC_DISABLE_STATIC],
  60727. +[_LT_SET_OPTION([LT_INIT], [disable-static])
  60728. +])
  60729. +
  60730. +AU_DEFUN([AM_ENABLE_STATIC], [AC_ENABLE_STATIC($@)])
  60731. +AU_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)])
  60732. +
  60733. +dnl aclocal-1.4 backwards compatibility:
  60734. +dnl AC_DEFUN([AM_ENABLE_STATIC], [])
  60735. +dnl AC_DEFUN([AM_DISABLE_STATIC], [])
  60736. +
  60737. +
  60738. +
  60739. +# _LT_ENABLE_FAST_INSTALL([DEFAULT])
  60740. +# ----------------------------------
  60741. +# implement the --enable-fast-install flag, and support the `fast-install'
  60742. +# and `disable-fast-install' LT_INIT options.
  60743. +# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
  60744. +m4_define([_LT_ENABLE_FAST_INSTALL],
  60745. +[m4_define([_LT_ENABLE_FAST_INSTALL_DEFAULT], [m4_if($1, no, no, yes)])dnl
  60746. +AC_ARG_ENABLE([fast-install],
  60747. + [AS_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@],
  60748. + [optimize for fast installation @<:@default=]_LT_ENABLE_FAST_INSTALL_DEFAULT[@:>@])],
  60749. + [p=${PACKAGE-default}
  60750. + case $enableval in
  60751. + yes) enable_fast_install=yes ;;
  60752. + no) enable_fast_install=no ;;
  60753. + *)
  60754. + enable_fast_install=no
  60755. + # Look at the argument we got. We use all the common list separators.
  60756. + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  60757. + for pkg in $enableval; do
  60758. + IFS="$lt_save_ifs"
  60759. + if test "X$pkg" = "X$p"; then
  60760. + enable_fast_install=yes
  60761. + fi
  60762. + done
  60763. + IFS="$lt_save_ifs"
  60764. + ;;
  60765. + esac],
  60766. + [enable_fast_install=]_LT_ENABLE_FAST_INSTALL_DEFAULT)
  60767. +
  60768. +_LT_DECL([fast_install], [enable_fast_install], [0],
  60769. + [Whether or not to optimize for fast installation])dnl
  60770. +])# _LT_ENABLE_FAST_INSTALL
  60771. +
  60772. +LT_OPTION_DEFINE([LT_INIT], [fast-install], [_LT_ENABLE_FAST_INSTALL([yes])])
  60773. +LT_OPTION_DEFINE([LT_INIT], [disable-fast-install], [_LT_ENABLE_FAST_INSTALL([no])])
  60774. +
  60775. +# Old names:
  60776. +AU_DEFUN([AC_ENABLE_FAST_INSTALL],
  60777. +[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[fast-install])
  60778. +AC_DIAGNOSE([obsolete],
  60779. +[$0: Remove this warning and the call to _LT_SET_OPTION when you put
  60780. +the `fast-install' option into LT_INIT's first parameter.])
  60781. +])
  60782. +
  60783. +AU_DEFUN([AC_DISABLE_FAST_INSTALL],
  60784. +[_LT_SET_OPTION([LT_INIT], [disable-fast-install])
  60785. +AC_DIAGNOSE([obsolete],
  60786. +[$0: Remove this warning and the call to _LT_SET_OPTION when you put
  60787. +the `disable-fast-install' option into LT_INIT's first parameter.])
  60788. +])
  60789. +
  60790. +dnl aclocal-1.4 backwards compatibility:
  60791. +dnl AC_DEFUN([AC_ENABLE_FAST_INSTALL], [])
  60792. +dnl AC_DEFUN([AM_DISABLE_FAST_INSTALL], [])
  60793. +
  60794. +
  60795. +# _LT_WITH_PIC([MODE])
  60796. +# --------------------
  60797. +# implement the --with-pic flag, and support the `pic-only' and `no-pic'
  60798. +# LT_INIT options.
  60799. +# MODE is either `yes' or `no'. If omitted, it defaults to `both'.
  60800. +m4_define([_LT_WITH_PIC],
  60801. +[AC_ARG_WITH([pic],
  60802. + [AS_HELP_STRING([--with-pic],
  60803. + [try to use only PIC/non-PIC objects @<:@default=use both@:>@])],
  60804. + [pic_mode="$withval"],
  60805. + [pic_mode=default])
  60806. +
  60807. +test -z "$pic_mode" && pic_mode=m4_default([$1], [default])
  60808. +
  60809. +_LT_DECL([], [pic_mode], [0], [What type of objects to build])dnl
  60810. +])# _LT_WITH_PIC
  60811. +
  60812. +LT_OPTION_DEFINE([LT_INIT], [pic-only], [_LT_WITH_PIC([yes])])
  60813. +LT_OPTION_DEFINE([LT_INIT], [no-pic], [_LT_WITH_PIC([no])])
  60814. +
  60815. +# Old name:
  60816. +AU_DEFUN([AC_LIBTOOL_PICMODE],
  60817. +[_LT_SET_OPTION([LT_INIT], [pic-only])
  60818. +AC_DIAGNOSE([obsolete],
  60819. +[$0: Remove this warning and the call to _LT_SET_OPTION when you
  60820. +put the `pic-only' option into LT_INIT's first parameter.])
  60821. +])
  60822. +
  60823. +dnl aclocal-1.4 backwards compatibility:
  60824. +dnl AC_DEFUN([AC_LIBTOOL_PICMODE], [])
  60825. +
  60826. +## ----------------- ##
  60827. +## LTDL_INIT Options ##
  60828. +## ----------------- ##
  60829. +
  60830. +m4_define([_LTDL_MODE], [])
  60831. +LT_OPTION_DEFINE([LTDL_INIT], [nonrecursive],
  60832. + [m4_define([_LTDL_MODE], [nonrecursive])])
  60833. +LT_OPTION_DEFINE([LTDL_INIT], [recursive],
  60834. + [m4_define([_LTDL_MODE], [recursive])])
  60835. +LT_OPTION_DEFINE([LTDL_INIT], [subproject],
  60836. + [m4_define([_LTDL_MODE], [subproject])])
  60837. +
  60838. +m4_define([_LTDL_TYPE], [])
  60839. +LT_OPTION_DEFINE([LTDL_INIT], [installable],
  60840. + [m4_define([_LTDL_TYPE], [installable])])
  60841. +LT_OPTION_DEFINE([LTDL_INIT], [convenience],
  60842. + [m4_define([_LTDL_TYPE], [convenience])])
  60843. diff -Nur libupnp-1.6.6.orig/m4/ltsugar.m4 libupnp-1.6.6/m4/ltsugar.m4
  60844. --- libupnp-1.6.6.orig/m4/ltsugar.m4 1970-01-01 01:00:00.000000000 +0100
  60845. +++ libupnp-1.6.6/m4/ltsugar.m4 2010-02-18 22:36:51.024856401 +0100
  60846. @@ -0,0 +1,123 @@
  60847. +# ltsugar.m4 -- libtool m4 base layer. -*-Autoconf-*-
  60848. +#
  60849. +# Copyright (C) 2004, 2005, 2007, 2008 Free Software Foundation, Inc.
  60850. +# Written by Gary V. Vaughan, 2004
  60851. +#
  60852. +# This file is free software; the Free Software Foundation gives
  60853. +# unlimited permission to copy and/or distribute it, with or without
  60854. +# modifications, as long as this notice is preserved.
  60855. +
  60856. +# serial 6 ltsugar.m4
  60857. +
  60858. +# This is to help aclocal find these macros, as it can't see m4_define.
  60859. +AC_DEFUN([LTSUGAR_VERSION], [m4_if([0.1])])
  60860. +
  60861. +
  60862. +# lt_join(SEP, ARG1, [ARG2...])
  60863. +# -----------------------------
  60864. +# Produce ARG1SEPARG2...SEPARGn, omitting [] arguments and their
  60865. +# associated separator.
  60866. +# Needed until we can rely on m4_join from Autoconf 2.62, since all earlier
  60867. +# versions in m4sugar had bugs.
  60868. +m4_define([lt_join],
  60869. +[m4_if([$#], [1], [],
  60870. + [$#], [2], [[$2]],
  60871. + [m4_if([$2], [], [], [[$2]_])$0([$1], m4_shift(m4_shift($@)))])])
  60872. +m4_define([_lt_join],
  60873. +[m4_if([$#$2], [2], [],
  60874. + [m4_if([$2], [], [], [[$1$2]])$0([$1], m4_shift(m4_shift($@)))])])
  60875. +
  60876. +
  60877. +# lt_car(LIST)
  60878. +# lt_cdr(LIST)
  60879. +# ------------
  60880. +# Manipulate m4 lists.
  60881. +# These macros are necessary as long as will still need to support
  60882. +# Autoconf-2.59 which quotes differently.
  60883. +m4_define([lt_car], [[$1]])
  60884. +m4_define([lt_cdr],
  60885. +[m4_if([$#], 0, [m4_fatal([$0: cannot be called without arguments])],
  60886. + [$#], 1, [],
  60887. + [m4_dquote(m4_shift($@))])])
  60888. +m4_define([lt_unquote], $1)
  60889. +
  60890. +
  60891. +# lt_append(MACRO-NAME, STRING, [SEPARATOR])
  60892. +# ------------------------------------------
  60893. +# Redefine MACRO-NAME to hold its former content plus `SEPARATOR'`STRING'.
  60894. +# Note that neither SEPARATOR nor STRING are expanded; they are appended
  60895. +# to MACRO-NAME as is (leaving the expansion for when MACRO-NAME is invoked).
  60896. +# No SEPARATOR is output if MACRO-NAME was previously undefined (different
  60897. +# than defined and empty).
  60898. +#
  60899. +# This macro is needed until we can rely on Autoconf 2.62, since earlier
  60900. +# versions of m4sugar mistakenly expanded SEPARATOR but not STRING.
  60901. +m4_define([lt_append],
  60902. +[m4_define([$1],
  60903. + m4_ifdef([$1], [m4_defn([$1])[$3]])[$2])])
  60904. +
  60905. +
  60906. +
  60907. +# lt_combine(SEP, PREFIX-LIST, INFIX, SUFFIX1, [SUFFIX2...])
  60908. +# ----------------------------------------------------------
  60909. +# Produce a SEP delimited list of all paired combinations of elements of
  60910. +# PREFIX-LIST with SUFFIX1 through SUFFIXn. Each element of the list
  60911. +# has the form PREFIXmINFIXSUFFIXn.
  60912. +# Needed until we can rely on m4_combine added in Autoconf 2.62.
  60913. +m4_define([lt_combine],
  60914. +[m4_if(m4_eval([$# > 3]), [1],
  60915. + [m4_pushdef([_Lt_sep], [m4_define([_Lt_sep], m4_defn([lt_car]))])]]dnl
  60916. +[[m4_foreach([_Lt_prefix], [$2],
  60917. + [m4_foreach([_Lt_suffix],
  60918. + ]m4_dquote(m4_dquote(m4_shift(m4_shift(m4_shift($@)))))[,
  60919. + [_Lt_sep([$1])[]m4_defn([_Lt_prefix])[$3]m4_defn([_Lt_suffix])])])])])
  60920. +
  60921. +
  60922. +# lt_if_append_uniq(MACRO-NAME, VARNAME, [SEPARATOR], [UNIQ], [NOT-UNIQ])
  60923. +# -----------------------------------------------------------------------
  60924. +# Iff MACRO-NAME does not yet contain VARNAME, then append it (delimited
  60925. +# by SEPARATOR if supplied) and expand UNIQ, else NOT-UNIQ.
  60926. +m4_define([lt_if_append_uniq],
  60927. +[m4_ifdef([$1],
  60928. + [m4_if(m4_index([$3]m4_defn([$1])[$3], [$3$2$3]), [-1],
  60929. + [lt_append([$1], [$2], [$3])$4],
  60930. + [$5])],
  60931. + [lt_append([$1], [$2], [$3])$4])])
  60932. +
  60933. +
  60934. +# lt_dict_add(DICT, KEY, VALUE)
  60935. +# -----------------------------
  60936. +m4_define([lt_dict_add],
  60937. +[m4_define([$1($2)], [$3])])
  60938. +
  60939. +
  60940. +# lt_dict_add_subkey(DICT, KEY, SUBKEY, VALUE)
  60941. +# --------------------------------------------
  60942. +m4_define([lt_dict_add_subkey],
  60943. +[m4_define([$1($2:$3)], [$4])])
  60944. +
  60945. +
  60946. +# lt_dict_fetch(DICT, KEY, [SUBKEY])
  60947. +# ----------------------------------
  60948. +m4_define([lt_dict_fetch],
  60949. +[m4_ifval([$3],
  60950. + m4_ifdef([$1($2:$3)], [m4_defn([$1($2:$3)])]),
  60951. + m4_ifdef([$1($2)], [m4_defn([$1($2)])]))])
  60952. +
  60953. +
  60954. +# lt_if_dict_fetch(DICT, KEY, [SUBKEY], VALUE, IF-TRUE, [IF-FALSE])
  60955. +# -----------------------------------------------------------------
  60956. +m4_define([lt_if_dict_fetch],
  60957. +[m4_if(lt_dict_fetch([$1], [$2], [$3]), [$4],
  60958. + [$5],
  60959. + [$6])])
  60960. +
  60961. +
  60962. +# lt_dict_filter(DICT, [SUBKEY], VALUE, [SEPARATOR], KEY, [...])
  60963. +# --------------------------------------------------------------
  60964. +m4_define([lt_dict_filter],
  60965. +[m4_if([$5], [], [],
  60966. + [lt_join(m4_quote(m4_default([$4], [[, ]])),
  60967. + lt_unquote(m4_split(m4_normalize(m4_foreach(_Lt_key, lt_car([m4_shiftn(4, $@)]),
  60968. + [lt_if_dict_fetch([$1], _Lt_key, [$2], [$3], [_Lt_key ])])))))])[]dnl
  60969. +])
  60970. diff -Nur libupnp-1.6.6.orig/m4/ltversion.m4 libupnp-1.6.6/m4/ltversion.m4
  60971. --- libupnp-1.6.6.orig/m4/ltversion.m4 1970-01-01 01:00:00.000000000 +0100
  60972. +++ libupnp-1.6.6/m4/ltversion.m4 2010-02-18 22:36:51.096855795 +0100
  60973. @@ -0,0 +1,23 @@
  60974. +# ltversion.m4 -- version numbers -*- Autoconf -*-
  60975. +#
  60976. +# Copyright (C) 2004 Free Software Foundation, Inc.
  60977. +# Written by Scott James Remnant, 2004
  60978. +#
  60979. +# This file is free software; the Free Software Foundation gives
  60980. +# unlimited permission to copy and/or distribute it, with or without
  60981. +# modifications, as long as this notice is preserved.
  60982. +
  60983. +# Generated from ltversion.in.
  60984. +
  60985. +# serial 3017 ltversion.m4
  60986. +# This file is part of GNU Libtool
  60987. +
  60988. +m4_define([LT_PACKAGE_VERSION], [2.2.6b])
  60989. +m4_define([LT_PACKAGE_REVISION], [1.3017])
  60990. +
  60991. +AC_DEFUN([LTVERSION_VERSION],
  60992. +[macro_version='2.2.6b'
  60993. +macro_revision='1.3017'
  60994. +_LT_DECL(, macro_version, 0, [Which release of libtool.m4 was used?])
  60995. +_LT_DECL(, macro_revision, 0)
  60996. +])
  60997. diff -Nur libupnp-1.6.6.orig/Makefile.in libupnp-1.6.6/Makefile.in
  60998. --- libupnp-1.6.6.orig/Makefile.in 2008-04-25 13:47:43.000000000 +0200
  60999. +++ libupnp-1.6.6/Makefile.in 2010-02-18 22:37:03.052853544 +0100
  61000. @@ -1,8 +1,9 @@
  61001. -# Makefile.in generated by automake 1.9.6 from Makefile.am.
  61002. +# Makefile.in generated by automake 1.11.1 from Makefile.am.
  61003. # @configure_input@
  61004. # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
  61005. -# 2003, 2004, 2005 Free Software Foundation, Inc.
  61006. +# 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
  61007. +# Inc.
  61008. # This Makefile.in is free software; the Free Software Foundation
  61009. # gives unlimited permission to copy and/or distribute it,
  61010. # with or without modifications, as long as this notice is preserved.
  61011. @@ -20,15 +21,12 @@
  61012. # Copyright (C) 2005 Rémi Turboult <r3mi@users.sourceforge.net>
  61013. #
  61014. -srcdir = @srcdir@
  61015. -top_srcdir = @top_srcdir@
  61016. VPATH = @srcdir@
  61017. pkgdatadir = $(datadir)/@PACKAGE@
  61018. -pkglibdir = $(libdir)/@PACKAGE@
  61019. pkgincludedir = $(includedir)/@PACKAGE@
  61020. -top_builddir = .
  61021. +pkglibdir = $(libdir)/@PACKAGE@
  61022. +pkglibexecdir = $(libexecdir)/@PACKAGE@
  61023. am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
  61024. -INSTALL = @INSTALL@
  61025. install_sh_DATA = $(install_sh) -c -m 644
  61026. install_sh_PROGRAM = $(install_sh) -c
  61027. install_sh_SCRIPT = $(install_sh) -c
  61028. @@ -42,6 +40,7 @@
  61029. POST_UNINSTALL = :
  61030. build_triplet = @build@
  61031. host_triplet = @host@
  61032. +subdir = .
  61033. DIST_COMMON = README $(am__configure_deps) $(srcdir)/Makefile.am \
  61034. $(srcdir)/Makefile.in $(srcdir)/autoconfig.h.in \
  61035. $(srcdir)/libupnp.pc.in $(top_srcdir)/configure \
  61036. @@ -49,37 +48,60 @@
  61037. ChangeLog INSTALL NEWS THANKS TODO build-aux/compile \
  61038. build-aux/config.guess build-aux/config.sub build-aux/depcomp \
  61039. build-aux/install-sh build-aux/ltmain.sh build-aux/missing
  61040. -subdir = .
  61041. ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
  61042. am__aclocal_m4_deps = $(top_srcdir)/m4/acx_pthread.m4 \
  61043. $(top_srcdir)/m4/ax_cflags_gcc_option.m4 \
  61044. $(top_srcdir)/m4/ax_cflags_warn_all.m4 \
  61045. + $(top_srcdir)/m4/libtool.m4 $(top_srcdir)/m4/ltoptions.m4 \
  61046. + $(top_srcdir)/m4/ltsugar.m4 $(top_srcdir)/m4/ltversion.m4 \
  61047. + $(top_srcdir)/m4/lt~obsolete.m4 \
  61048. $(top_srcdir)/m4/rt_bool_arg_enable.m4 \
  61049. $(top_srcdir)/m4/type_socklen_t.m4 $(top_srcdir)/configure.ac
  61050. am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
  61051. $(ACLOCAL_M4)
  61052. am__CONFIG_DISTCLEAN_FILES = config.status config.cache config.log \
  61053. - configure.lineno configure.status.lineno
  61054. + configure.lineno config.status.lineno
  61055. mkinstalldirs = $(install_sh) -d
  61056. CONFIG_HEADER = autoconfig.h $(top_builddir)/upnp/inc/upnpconfig.h
  61057. CONFIG_CLEAN_FILES = libupnp.pc
  61058. +CONFIG_CLEAN_VPATH_FILES =
  61059. SOURCES =
  61060. DIST_SOURCES =
  61061. RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \
  61062. html-recursive info-recursive install-data-recursive \
  61063. - install-exec-recursive install-info-recursive \
  61064. - install-recursive installcheck-recursive installdirs-recursive \
  61065. - pdf-recursive ps-recursive uninstall-info-recursive \
  61066. - uninstall-recursive
  61067. + install-dvi-recursive install-exec-recursive \
  61068. + install-html-recursive install-info-recursive \
  61069. + install-pdf-recursive install-ps-recursive install-recursive \
  61070. + installcheck-recursive installdirs-recursive pdf-recursive \
  61071. + ps-recursive uninstall-recursive
  61072. am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
  61073. am__vpath_adj = case $$p in \
  61074. $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
  61075. *) f=$$p;; \
  61076. esac;
  61077. -am__strip_dir = `echo $$p | sed -e 's|^.*/||'`;
  61078. +am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`;
  61079. +am__install_max = 40
  61080. +am__nobase_strip_setup = \
  61081. + srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'`
  61082. +am__nobase_strip = \
  61083. + for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||"
  61084. +am__nobase_list = $(am__nobase_strip_setup); \
  61085. + for p in $$list; do echo "$$p $$p"; done | \
  61086. + sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \
  61087. + $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \
  61088. + if (++n[$$2] == $(am__install_max)) \
  61089. + { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \
  61090. + END { for (dir in files) print dir, files[dir] }'
  61091. +am__base_list = \
  61092. + sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \
  61093. + sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g'
  61094. am__installdirs = "$(DESTDIR)$(pkgconfigexecdir)"
  61095. -pkgconfigexecDATA_INSTALL = $(INSTALL_DATA)
  61096. DATA = $(pkgconfigexec_DATA)
  61097. +RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \
  61098. + distclean-recursive maintainer-clean-recursive
  61099. +AM_RECURSIVE_TARGETS = $(RECURSIVE_TARGETS:-recursive=) \
  61100. + $(RECURSIVE_CLEAN_TARGETS:-recursive=) tags TAGS ctags CTAGS \
  61101. + distdir dist dist-all distcheck
  61102. ETAGS = etags
  61103. CTAGS = ctags
  61104. DIST_SUBDIRS = $(SUBDIRS)
  61105. @@ -87,16 +109,39 @@
  61106. distdir = $(PACKAGE)-$(VERSION)
  61107. top_distdir = $(distdir)
  61108. am__remove_distdir = \
  61109. - { test ! -d $(distdir) \
  61110. - || { find $(distdir) -type d ! -perm -200 -exec chmod u+w {} ';' \
  61111. - && rm -fr $(distdir); }; }
  61112. + { test ! -d "$(distdir)" \
  61113. + || { find "$(distdir)" -type d ! -perm -200 -exec chmod u+w {} ';' \
  61114. + && rm -fr "$(distdir)"; }; }
  61115. +am__relativize = \
  61116. + dir0=`pwd`; \
  61117. + sed_first='s,^\([^/]*\)/.*$$,\1,'; \
  61118. + sed_rest='s,^[^/]*/*,,'; \
  61119. + sed_last='s,^.*/\([^/]*\)$$,\1,'; \
  61120. + sed_butlast='s,/*[^/]*$$,,'; \
  61121. + while test -n "$$dir1"; do \
  61122. + first=`echo "$$dir1" | sed -e "$$sed_first"`; \
  61123. + if test "$$first" != "."; then \
  61124. + if test "$$first" = ".."; then \
  61125. + dir2=`echo "$$dir0" | sed -e "$$sed_last"`/"$$dir2"; \
  61126. + dir0=`echo "$$dir0" | sed -e "$$sed_butlast"`; \
  61127. + else \
  61128. + first2=`echo "$$dir2" | sed -e "$$sed_first"`; \
  61129. + if test "$$first2" = "$$first"; then \
  61130. + dir2=`echo "$$dir2" | sed -e "$$sed_rest"`; \
  61131. + else \
  61132. + dir2="../$$dir2"; \
  61133. + fi; \
  61134. + dir0="$$dir0"/"$$first"; \
  61135. + fi; \
  61136. + fi; \
  61137. + dir1=`echo "$$dir1" | sed -e "$$sed_rest"`; \
  61138. + done; \
  61139. + reldir="$$dir2"
  61140. DIST_ARCHIVES = $(distdir).tar.gz $(distdir).tar.bz2
  61141. GZIP_ENV = --best
  61142. distuninstallcheck_listfiles = find . -type f -print
  61143. distcleancheck_listfiles = find . -type f -print
  61144. ACLOCAL = @ACLOCAL@
  61145. -AMDEP_FALSE = @AMDEP_FALSE@
  61146. -AMDEP_TRUE = @AMDEP_TRUE@
  61147. AMTAR = @AMTAR@
  61148. AR = @AR@
  61149. AUTOCONF = @AUTOCONF@
  61150. @@ -108,74 +153,66 @@
  61151. CFLAGS = @CFLAGS@
  61152. CPP = @CPP@
  61153. CPPFLAGS = @CPPFLAGS@
  61154. -CXX = @CXX@
  61155. -CXXCPP = @CXXCPP@
  61156. -CXXDEPMODE = @CXXDEPMODE@
  61157. -CXXFLAGS = @CXXFLAGS@
  61158. CYGPATH_W = @CYGPATH_W@
  61159. DEFS = @DEFS@
  61160. DEPDIR = @DEPDIR@
  61161. -ECHO = @ECHO@
  61162. +DSYMUTIL = @DSYMUTIL@
  61163. +DUMPBIN = @DUMPBIN@
  61164. ECHO_C = @ECHO_C@
  61165. ECHO_N = @ECHO_N@
  61166. ECHO_T = @ECHO_T@
  61167. EGREP = @EGREP@
  61168. -ENABLE_CLIENT_FALSE = @ENABLE_CLIENT_FALSE@
  61169. -ENABLE_CLIENT_TRUE = @ENABLE_CLIENT_TRUE@
  61170. -ENABLE_DEBUG_FALSE = @ENABLE_DEBUG_FALSE@
  61171. -ENABLE_DEBUG_TRUE = @ENABLE_DEBUG_TRUE@
  61172. -ENABLE_DEVICE_FALSE = @ENABLE_DEVICE_FALSE@
  61173. -ENABLE_DEVICE_TRUE = @ENABLE_DEVICE_TRUE@
  61174. -ENABLE_SAMPLES_FALSE = @ENABLE_SAMPLES_FALSE@
  61175. -ENABLE_SAMPLES_TRUE = @ENABLE_SAMPLES_TRUE@
  61176. -ENABLE_TOOLS_FALSE = @ENABLE_TOOLS_FALSE@
  61177. -ENABLE_TOOLS_TRUE = @ENABLE_TOOLS_TRUE@
  61178. -ENABLE_WEBSERVER_FALSE = @ENABLE_WEBSERVER_FALSE@
  61179. -ENABLE_WEBSERVER_TRUE = @ENABLE_WEBSERVER_TRUE@
  61180. EXEEXT = @EXEEXT@
  61181. -F77 = @F77@
  61182. -FFLAGS = @FFLAGS@
  61183. +FGREP = @FGREP@
  61184. GREP = @GREP@
  61185. +INSTALL = @INSTALL@
  61186. INSTALL_DATA = @INSTALL_DATA@
  61187. INSTALL_PROGRAM = @INSTALL_PROGRAM@
  61188. INSTALL_SCRIPT = @INSTALL_SCRIPT@
  61189. INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
  61190. +LD = @LD@
  61191. LDFLAGS = @LDFLAGS@
  61192. LIBOBJS = @LIBOBJS@
  61193. LIBS = @LIBS@
  61194. LIBTOOL = @LIBTOOL@
  61195. +LIPO = @LIPO@
  61196. LN_S = @LN_S@
  61197. LTLIBOBJS = @LTLIBOBJS@
  61198. LT_VERSION_IXML = @LT_VERSION_IXML@
  61199. LT_VERSION_THREADUTIL = @LT_VERSION_THREADUTIL@
  61200. LT_VERSION_UPNP = @LT_VERSION_UPNP@
  61201. MAKEINFO = @MAKEINFO@
  61202. +MKDIR_P = @MKDIR_P@
  61203. +NM = @NM@
  61204. +NMEDIT = @NMEDIT@
  61205. +OBJDUMP = @OBJDUMP@
  61206. OBJEXT = @OBJEXT@
  61207. +OTOOL = @OTOOL@
  61208. +OTOOL64 = @OTOOL64@
  61209. PACKAGE = @PACKAGE@
  61210. PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
  61211. PACKAGE_NAME = @PACKAGE_NAME@
  61212. PACKAGE_STRING = @PACKAGE_STRING@
  61213. PACKAGE_TARNAME = @PACKAGE_TARNAME@
  61214. +PACKAGE_URL = @PACKAGE_URL@
  61215. PACKAGE_VERSION = @PACKAGE_VERSION@
  61216. PATH_SEPARATOR = @PATH_SEPARATOR@
  61217. PTHREAD_CC = @PTHREAD_CC@
  61218. PTHREAD_CFLAGS = @PTHREAD_CFLAGS@
  61219. PTHREAD_LIBS = @PTHREAD_LIBS@
  61220. RANLIB = @RANLIB@
  61221. +SED = @SED@
  61222. SET_MAKE = @SET_MAKE@
  61223. SHELL = @SHELL@
  61224. STRIP = @STRIP@
  61225. VERSION = @VERSION@
  61226. -WITH_DOCUMENTATION_FALSE = @WITH_DOCUMENTATION_FALSE@
  61227. -WITH_DOCUMENTATION_TRUE = @WITH_DOCUMENTATION_TRUE@
  61228. +abs_builddir = @abs_builddir@
  61229. +abs_srcdir = @abs_srcdir@
  61230. +abs_top_builddir = @abs_top_builddir@
  61231. +abs_top_srcdir = @abs_top_srcdir@
  61232. ac_ct_CC = @ac_ct_CC@
  61233. -ac_ct_CXX = @ac_ct_CXX@
  61234. -ac_ct_F77 = @ac_ct_F77@
  61235. +ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
  61236. acx_pthread_config = @acx_pthread_config@
  61237. -am__fastdepCC_FALSE = @am__fastdepCC_FALSE@
  61238. -am__fastdepCC_TRUE = @am__fastdepCC_TRUE@
  61239. -am__fastdepCXX_FALSE = @am__fastdepCXX_FALSE@
  61240. -am__fastdepCXX_TRUE = @am__fastdepCXX_TRUE@
  61241. am__include = @am__include@
  61242. am__leading_dot = @am__leading_dot@
  61243. am__quote = @am__quote@
  61244. @@ -187,6 +224,7 @@
  61245. build_cpu = @build_cpu@
  61246. build_os = @build_os@
  61247. build_vendor = @build_vendor@
  61248. +builddir = @builddir@
  61249. datadir = @datadir@
  61250. datarootdir = @datarootdir@
  61251. docdir = @docdir@
  61252. @@ -205,6 +243,7 @@
  61253. libexecdir = @libexecdir@
  61254. localedir = @localedir@
  61255. localstatedir = @localstatedir@
  61256. +lt_ECHO = @lt_ECHO@
  61257. mandir = @mandir@
  61258. mkdir_p = @mkdir_p@
  61259. oldincludedir = @oldincludedir@
  61260. @@ -214,8 +253,12 @@
  61261. psdir = @psdir@
  61262. sbindir = @sbindir@
  61263. sharedstatedir = @sharedstatedir@
  61264. +srcdir = @srcdir@
  61265. sysconfdir = @sysconfdir@
  61266. target_alias = @target_alias@
  61267. +top_build_prefix = @top_build_prefix@
  61268. +top_builddir = @top_builddir@
  61269. +top_srcdir = @top_srcdir@
  61270. ACLOCAL_AMFLAGS = -I m4
  61271. DISTCHECK_CONFIGURE_FLAGS = --enable-debug --enable-samples
  61272. SUBDIRS = \
  61273. @@ -254,15 +297,15 @@
  61274. @for dep in $?; do \
  61275. case '$(am__configure_deps)' in \
  61276. *$$dep*) \
  61277. - echo ' cd $(srcdir) && $(AUTOMAKE) --foreign '; \
  61278. - cd $(srcdir) && $(AUTOMAKE) --foreign \
  61279. + echo ' cd $(srcdir) && $(AUTOMAKE) --foreign'; \
  61280. + $(am__cd) $(srcdir) && $(AUTOMAKE) --foreign \
  61281. && exit 0; \
  61282. exit 1;; \
  61283. esac; \
  61284. done; \
  61285. - echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign Makefile'; \
  61286. - cd $(top_srcdir) && \
  61287. - $(AUTOMAKE) --foreign Makefile
  61288. + echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign Makefile'; \
  61289. + $(am__cd) $(top_srcdir) && \
  61290. + $(AUTOMAKE) --foreign Makefile
  61291. .PRECIOUS: Makefile
  61292. Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
  61293. @case '$?' in \
  61294. @@ -278,28 +321,29 @@
  61295. $(SHELL) ./config.status --recheck
  61296. $(top_srcdir)/configure: $(am__configure_deps)
  61297. - cd $(srcdir) && $(AUTOCONF)
  61298. + $(am__cd) $(srcdir) && $(AUTOCONF)
  61299. $(ACLOCAL_M4): $(am__aclocal_m4_deps)
  61300. - cd $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS)
  61301. + $(am__cd) $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS)
  61302. +$(am__aclocal_m4_deps):
  61303. autoconfig.h: stamp-h1
  61304. @if test ! -f $@; then \
  61305. rm -f stamp-h1; \
  61306. - $(MAKE) stamp-h1; \
  61307. + $(MAKE) $(AM_MAKEFLAGS) stamp-h1; \
  61308. else :; fi
  61309. stamp-h1: $(srcdir)/autoconfig.h.in $(top_builddir)/config.status
  61310. @rm -f stamp-h1
  61311. cd $(top_builddir) && $(SHELL) ./config.status autoconfig.h
  61312. $(srcdir)/autoconfig.h.in: $(am__configure_deps)
  61313. - cd $(top_srcdir) && $(AUTOHEADER)
  61314. + ($(am__cd) $(top_srcdir) && $(AUTOHEADER))
  61315. rm -f stamp-h1
  61316. touch $@
  61317. upnp/inc/upnpconfig.h: upnp/inc/stamp-h2
  61318. @if test ! -f $@; then \
  61319. rm -f upnp/inc/stamp-h2; \
  61320. - $(MAKE) upnp/inc/stamp-h2; \
  61321. + $(MAKE) $(AM_MAKEFLAGS) upnp/inc/stamp-h2; \
  61322. else :; fi
  61323. upnp/inc/stamp-h2: $(top_srcdir)/upnp/inc/upnpconfig.h.in $(top_builddir)/config.status
  61324. @@ -318,25 +362,27 @@
  61325. -rm -rf .libs _libs
  61326. distclean-libtool:
  61327. - -rm -f libtool
  61328. -uninstall-info-am:
  61329. + -rm -f libtool config.lt
  61330. install-pkgconfigexecDATA: $(pkgconfigexec_DATA)
  61331. @$(NORMAL_INSTALL)
  61332. - test -z "$(pkgconfigexecdir)" || $(mkdir_p) "$(DESTDIR)$(pkgconfigexecdir)"
  61333. - @list='$(pkgconfigexec_DATA)'; for p in $$list; do \
  61334. + test -z "$(pkgconfigexecdir)" || $(MKDIR_P) "$(DESTDIR)$(pkgconfigexecdir)"
  61335. + @list='$(pkgconfigexec_DATA)'; test -n "$(pkgconfigexecdir)" || list=; \
  61336. + for p in $$list; do \
  61337. if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
  61338. - f=$(am__strip_dir) \
  61339. - echo " $(pkgconfigexecDATA_INSTALL) '$$d$$p' '$(DESTDIR)$(pkgconfigexecdir)/$$f'"; \
  61340. - $(pkgconfigexecDATA_INSTALL) "$$d$$p" "$(DESTDIR)$(pkgconfigexecdir)/$$f"; \
  61341. + echo "$$d$$p"; \
  61342. + done | $(am__base_list) | \
  61343. + while read files; do \
  61344. + echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(pkgconfigexecdir)'"; \
  61345. + $(INSTALL_DATA) $$files "$(DESTDIR)$(pkgconfigexecdir)" || exit $$?; \
  61346. done
  61347. uninstall-pkgconfigexecDATA:
  61348. @$(NORMAL_UNINSTALL)
  61349. - @list='$(pkgconfigexec_DATA)'; for p in $$list; do \
  61350. - f=$(am__strip_dir) \
  61351. - echo " rm -f '$(DESTDIR)$(pkgconfigexecdir)/$$f'"; \
  61352. - rm -f "$(DESTDIR)$(pkgconfigexecdir)/$$f"; \
  61353. - done
  61354. + @list='$(pkgconfigexec_DATA)'; test -n "$(pkgconfigexecdir)" || list=; \
  61355. + files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \
  61356. + test -n "$$files" || exit 0; \
  61357. + echo " ( cd '$(DESTDIR)$(pkgconfigexecdir)' && rm -f" $$files ")"; \
  61358. + cd "$(DESTDIR)$(pkgconfigexecdir)" && rm -f $$files
  61359. # This directory's subdirectories are mostly independent; you can cd
  61360. # into them and run `make' without going through this Makefile.
  61361. @@ -345,7 +391,7 @@
  61362. # (which will cause the Makefiles to be regenerated when you run `make');
  61363. # (2) otherwise, pass the desired values on the `make' command line.
  61364. $(RECURSIVE_TARGETS):
  61365. - @failcom='exit 1'; \
  61366. + @fail= failcom='exit 1'; \
  61367. for f in x $$MAKEFLAGS; do \
  61368. case $$f in \
  61369. *=* | --[!k]*);; \
  61370. @@ -362,16 +408,15 @@
  61371. else \
  61372. local_target="$$target"; \
  61373. fi; \
  61374. - (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
  61375. + ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
  61376. || eval $$failcom; \
  61377. done; \
  61378. if test "$$dot_seen" = "no"; then \
  61379. $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \
  61380. fi; test -z "$$fail"
  61381. -mostlyclean-recursive clean-recursive distclean-recursive \
  61382. -maintainer-clean-recursive:
  61383. - @failcom='exit 1'; \
  61384. +$(RECURSIVE_CLEAN_TARGETS):
  61385. + @fail= failcom='exit 1'; \
  61386. for f in x $$MAKEFLAGS; do \
  61387. case $$f in \
  61388. *=* | --[!k]*);; \
  61389. @@ -397,16 +442,16 @@
  61390. else \
  61391. local_target="$$target"; \
  61392. fi; \
  61393. - (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
  61394. + ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
  61395. || eval $$failcom; \
  61396. done && test -z "$$fail"
  61397. tags-recursive:
  61398. list='$(SUBDIRS)'; for subdir in $$list; do \
  61399. - test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \
  61400. + test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \
  61401. done
  61402. ctags-recursive:
  61403. list='$(SUBDIRS)'; for subdir in $$list; do \
  61404. - test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \
  61405. + test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \
  61406. done
  61407. ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
  61408. @@ -414,14 +459,14 @@
  61409. unique=`for i in $$list; do \
  61410. if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
  61411. done | \
  61412. - $(AWK) ' { files[$$0] = 1; } \
  61413. - END { for (i in files) print i; }'`; \
  61414. + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
  61415. + END { if (nonempty) { for (i in files) print i; }; }'`; \
  61416. mkid -fID $$unique
  61417. tags: TAGS
  61418. TAGS: tags-recursive $(HEADERS) $(SOURCES) autoconfig.h.in $(TAGS_DEPENDENCIES) \
  61419. $(TAGS_FILES) $(LISP)
  61420. - tags=; \
  61421. + set x; \
  61422. here=`pwd`; \
  61423. if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \
  61424. include_option=--etags-include; \
  61425. @@ -433,93 +478,114 @@
  61426. list='$(SUBDIRS)'; for subdir in $$list; do \
  61427. if test "$$subdir" = .; then :; else \
  61428. test ! -f $$subdir/TAGS || \
  61429. - tags="$$tags $$include_option=$$here/$$subdir/TAGS"; \
  61430. + set "$$@" "$$include_option=$$here/$$subdir/TAGS"; \
  61431. fi; \
  61432. done; \
  61433. list='$(SOURCES) $(HEADERS) autoconfig.h.in $(LISP) $(TAGS_FILES)'; \
  61434. unique=`for i in $$list; do \
  61435. if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
  61436. done | \
  61437. - $(AWK) ' { files[$$0] = 1; } \
  61438. - END { for (i in files) print i; }'`; \
  61439. - if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
  61440. + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
  61441. + END { if (nonempty) { for (i in files) print i; }; }'`; \
  61442. + shift; \
  61443. + if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
  61444. test -n "$$unique" || unique=$$empty_fix; \
  61445. - $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
  61446. - $$tags $$unique; \
  61447. + if test $$# -gt 0; then \
  61448. + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
  61449. + "$$@" $$unique; \
  61450. + else \
  61451. + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
  61452. + $$unique; \
  61453. + fi; \
  61454. fi
  61455. ctags: CTAGS
  61456. CTAGS: ctags-recursive $(HEADERS) $(SOURCES) autoconfig.h.in $(TAGS_DEPENDENCIES) \
  61457. $(TAGS_FILES) $(LISP)
  61458. - tags=; \
  61459. - here=`pwd`; \
  61460. list='$(SOURCES) $(HEADERS) autoconfig.h.in $(LISP) $(TAGS_FILES)'; \
  61461. unique=`for i in $$list; do \
  61462. if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
  61463. done | \
  61464. - $(AWK) ' { files[$$0] = 1; } \
  61465. - END { for (i in files) print i; }'`; \
  61466. - test -z "$(CTAGS_ARGS)$$tags$$unique" \
  61467. + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
  61468. + END { if (nonempty) { for (i in files) print i; }; }'`; \
  61469. + test -z "$(CTAGS_ARGS)$$unique" \
  61470. || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
  61471. - $$tags $$unique
  61472. + $$unique
  61473. GTAGS:
  61474. here=`$(am__cd) $(top_builddir) && pwd` \
  61475. - && cd $(top_srcdir) \
  61476. - && gtags -i $(GTAGS_ARGS) $$here
  61477. + && $(am__cd) $(top_srcdir) \
  61478. + && gtags -i $(GTAGS_ARGS) "$$here"
  61479. distclean-tags:
  61480. -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
  61481. distdir: $(DISTFILES)
  61482. $(am__remove_distdir)
  61483. - mkdir $(distdir)
  61484. - $(mkdir_p) $(distdir)/. $(distdir)/build $(distdir)/build-aux $(distdir)/build/inc $(distdir)/build/msvc $(distdir)/m4 $(distdir)/upnp/inc
  61485. - @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \
  61486. - topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \
  61487. - list='$(DISTFILES)'; for file in $$list; do \
  61488. - case $$file in \
  61489. - $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \
  61490. - $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \
  61491. - esac; \
  61492. + test -d "$(distdir)" || mkdir "$(distdir)"
  61493. + @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
  61494. + topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
  61495. + list='$(DISTFILES)'; \
  61496. + dist_files=`for file in $$list; do echo $$file; done | \
  61497. + sed -e "s|^$$srcdirstrip/||;t" \
  61498. + -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
  61499. + case $$dist_files in \
  61500. + */*) $(MKDIR_P) `echo "$$dist_files" | \
  61501. + sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
  61502. + sort -u` ;; \
  61503. + esac; \
  61504. + for file in $$dist_files; do \
  61505. if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
  61506. - dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \
  61507. - if test "$$dir" != "$$file" && test "$$dir" != "."; then \
  61508. - dir="/$$dir"; \
  61509. - $(mkdir_p) "$(distdir)$$dir"; \
  61510. - else \
  61511. - dir=''; \
  61512. - fi; \
  61513. if test -d $$d/$$file; then \
  61514. + dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
  61515. + if test -d "$(distdir)/$$file"; then \
  61516. + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
  61517. + fi; \
  61518. if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
  61519. - cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
  61520. + cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
  61521. + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
  61522. fi; \
  61523. - cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
  61524. + cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
  61525. else \
  61526. - test -f $(distdir)/$$file \
  61527. - || cp -p $$d/$$file $(distdir)/$$file \
  61528. + test -f "$(distdir)/$$file" \
  61529. + || cp -p $$d/$$file "$(distdir)/$$file" \
  61530. || exit 1; \
  61531. fi; \
  61532. done
  61533. - list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
  61534. + @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
  61535. if test "$$subdir" = .; then :; else \
  61536. test -d "$(distdir)/$$subdir" \
  61537. - || $(mkdir_p) "$(distdir)/$$subdir" \
  61538. + || $(MKDIR_P) "$(distdir)/$$subdir" \
  61539. || exit 1; \
  61540. - distdir=`$(am__cd) $(distdir) && pwd`; \
  61541. - top_distdir=`$(am__cd) $(top_distdir) && pwd`; \
  61542. - (cd $$subdir && \
  61543. + fi; \
  61544. + done
  61545. + @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
  61546. + if test "$$subdir" = .; then :; else \
  61547. + dir1=$$subdir; dir2="$(distdir)/$$subdir"; \
  61548. + $(am__relativize); \
  61549. + new_distdir=$$reldir; \
  61550. + dir1=$$subdir; dir2="$(top_distdir)"; \
  61551. + $(am__relativize); \
  61552. + new_top_distdir=$$reldir; \
  61553. + echo " (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) top_distdir="$$new_top_distdir" distdir="$$new_distdir" \\"; \
  61554. + echo " am__remove_distdir=: am__skip_length_check=: am__skip_mode_fix=: distdir)"; \
  61555. + ($(am__cd) $$subdir && \
  61556. $(MAKE) $(AM_MAKEFLAGS) \
  61557. - top_distdir="$$top_distdir" \
  61558. - distdir="$$distdir/$$subdir" \
  61559. + top_distdir="$$new_top_distdir" \
  61560. + distdir="$$new_distdir" \
  61561. + am__remove_distdir=: \
  61562. + am__skip_length_check=: \
  61563. + am__skip_mode_fix=: \
  61564. distdir) \
  61565. || exit 1; \
  61566. fi; \
  61567. done
  61568. - -find $(distdir) -type d ! -perm -777 -exec chmod a+rwx {} \; -o \
  61569. + -test -n "$(am__skip_mode_fix)" \
  61570. + || find "$(distdir)" -type d ! -perm -755 \
  61571. + -exec chmod u+rwx,go+rx {} \; -o \
  61572. ! -type d ! -perm -444 -links 1 -exec chmod a+r {} \; -o \
  61573. ! -type d ! -perm -400 -exec chmod a+r {} \; -o \
  61574. - ! -type d ! -perm -444 -exec $(SHELL) $(install_sh) -c -m a+r {} {} \; \
  61575. - || chmod -R a+r $(distdir)
  61576. + ! -type d ! -perm -444 -exec $(install_sh) -c -m a+r {} {} \; \
  61577. + || chmod -R a+r "$(distdir)"
  61578. dist-gzip: distdir
  61579. tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz
  61580. $(am__remove_distdir)
  61581. @@ -527,6 +593,14 @@
  61582. tardir=$(distdir) && $(am__tar) | bzip2 -9 -c >$(distdir).tar.bz2
  61583. $(am__remove_distdir)
  61584. +dist-lzma: distdir
  61585. + tardir=$(distdir) && $(am__tar) | lzma -9 -c >$(distdir).tar.lzma
  61586. + $(am__remove_distdir)
  61587. +
  61588. +dist-xz: distdir
  61589. + tardir=$(distdir) && $(am__tar) | xz -c >$(distdir).tar.xz
  61590. + $(am__remove_distdir)
  61591. +
  61592. dist-tarZ: distdir
  61593. tardir=$(distdir) && $(am__tar) | compress -c >$(distdir).tar.Z
  61594. $(am__remove_distdir)
  61595. @@ -551,13 +625,17 @@
  61596. distcheck: dist
  61597. case '$(DIST_ARCHIVES)' in \
  61598. *.tar.gz*) \
  61599. - GZIP=$(GZIP_ENV) gunzip -c $(distdir).tar.gz | $(am__untar) ;;\
  61600. + GZIP=$(GZIP_ENV) gzip -dc $(distdir).tar.gz | $(am__untar) ;;\
  61601. *.tar.bz2*) \
  61602. - bunzip2 -c $(distdir).tar.bz2 | $(am__untar) ;;\
  61603. + bzip2 -dc $(distdir).tar.bz2 | $(am__untar) ;;\
  61604. + *.tar.lzma*) \
  61605. + lzma -dc $(distdir).tar.lzma | $(am__untar) ;;\
  61606. + *.tar.xz*) \
  61607. + xz -dc $(distdir).tar.xz | $(am__untar) ;;\
  61608. *.tar.Z*) \
  61609. uncompress -c $(distdir).tar.Z | $(am__untar) ;;\
  61610. *.shar.gz*) \
  61611. - GZIP=$(GZIP_ENV) gunzip -c $(distdir).shar.gz | unshar ;;\
  61612. + GZIP=$(GZIP_ENV) gzip -dc $(distdir).shar.gz | unshar ;;\
  61613. *.zip*) \
  61614. unzip $(distdir).zip ;;\
  61615. esac
  61616. @@ -565,9 +643,11 @@
  61617. mkdir $(distdir)/_build
  61618. mkdir $(distdir)/_inst
  61619. chmod a-w $(distdir)
  61620. + test -d $(distdir)/_build || exit 0; \
  61621. dc_install_base=`$(am__cd) $(distdir)/_inst && pwd | sed -e 's,^[^:\\/]:[\\/],/,'` \
  61622. && dc_destdir="$${TMPDIR-/tmp}/am-dc-$$$$/" \
  61623. - && cd $(distdir)/_build \
  61624. + && am__cwd=`pwd` \
  61625. + && $(am__cd) $(distdir)/_build \
  61626. && ../configure --srcdir=.. --prefix="$$dc_install_base" \
  61627. $(DISTCHECK_CONFIGURE_FLAGS) \
  61628. && $(MAKE) $(AM_MAKEFLAGS) \
  61629. @@ -589,13 +669,15 @@
  61630. && rm -rf "$$dc_destdir" \
  61631. && $(MAKE) $(AM_MAKEFLAGS) dist \
  61632. && rm -rf $(DIST_ARCHIVES) \
  61633. - && $(MAKE) $(AM_MAKEFLAGS) distcleancheck
  61634. + && $(MAKE) $(AM_MAKEFLAGS) distcleancheck \
  61635. + && cd "$$am__cwd" \
  61636. + || exit 1
  61637. $(am__remove_distdir)
  61638. @(echo "$(distdir) archives ready for distribution: "; \
  61639. list='$(DIST_ARCHIVES)'; for i in $$list; do echo $$i; done) | \
  61640. - sed -e '1{h;s/./=/g;p;x;}' -e '$${p;x;}'
  61641. + sed -e 1h -e 1s/./=/g -e 1p -e 1x -e '$$p' -e '$$x'
  61642. distuninstallcheck:
  61643. - @cd $(distuninstallcheck_dir) \
  61644. + @$(am__cd) '$(distuninstallcheck_dir)' \
  61645. && test `$(distuninstallcheck_listfiles) | wc -l` -le 1 \
  61646. || { echo "ERROR: files left after uninstall:" ; \
  61647. if test -n "$(DESTDIR)"; then \
  61648. @@ -618,7 +700,7 @@
  61649. installdirs: installdirs-recursive
  61650. installdirs-am:
  61651. for dir in "$(DESTDIR)$(pkgconfigexecdir)"; do \
  61652. - test -z "$$dir" || $(mkdir_p) "$$dir"; \
  61653. + test -z "$$dir" || $(MKDIR_P) "$$dir"; \
  61654. done
  61655. install: install-recursive
  61656. install-exec: install-exec-recursive
  61657. @@ -641,6 +723,7 @@
  61658. distclean-generic:
  61659. -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
  61660. + -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
  61661. maintainer-clean-generic:
  61662. @echo "This command is intended for maintainers to use"
  61663. @@ -661,18 +744,38 @@
  61664. html: html-recursive
  61665. +html-am:
  61666. +
  61667. info: info-recursive
  61668. info-am:
  61669. install-data-am:
  61670. +install-dvi: install-dvi-recursive
  61671. +
  61672. +install-dvi-am:
  61673. +
  61674. install-exec-am: install-pkgconfigexecDATA
  61675. +install-html: install-html-recursive
  61676. +
  61677. +install-html-am:
  61678. +
  61679. install-info: install-info-recursive
  61680. +install-info-am:
  61681. +
  61682. install-man:
  61683. +install-pdf: install-pdf-recursive
  61684. +
  61685. +install-pdf-am:
  61686. +
  61687. +install-ps: install-ps-recursive
  61688. +
  61689. +install-ps-am:
  61690. +
  61691. installcheck-am:
  61692. maintainer-clean: maintainer-clean-recursive
  61693. @@ -693,31 +796,33 @@
  61694. ps-am:
  61695. -uninstall-am: uninstall-info-am uninstall-pkgconfigexecDATA
  61696. +uninstall-am: uninstall-pkgconfigexecDATA
  61697. -uninstall-info: uninstall-info-recursive
  61698. +.MAKE: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) all \
  61699. + ctags-recursive install-am install-strip tags-recursive
  61700. -.PHONY: $(RECURSIVE_TARGETS) CTAGS GTAGS all all-am am--refresh check \
  61701. - check-am clean clean-generic clean-libtool clean-recursive \
  61702. - ctags ctags-recursive dist dist-all dist-bzip2 dist-gzip \
  61703. - dist-shar dist-tarZ dist-zip distcheck distclean \
  61704. - distclean-generic distclean-hdr distclean-libtool \
  61705. - distclean-recursive distclean-tags distcleancheck distdir \
  61706. +.PHONY: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) CTAGS GTAGS \
  61707. + all all-am am--refresh check check-am clean clean-generic \
  61708. + clean-libtool ctags ctags-recursive dist dist-all dist-bzip2 \
  61709. + dist-gzip dist-lzma dist-shar dist-tarZ dist-xz dist-zip \
  61710. + distcheck distclean distclean-generic distclean-hdr \
  61711. + distclean-libtool distclean-tags distcleancheck distdir \
  61712. distuninstallcheck dvi dvi-am html html-am info info-am \
  61713. - install install-am install-data install-data-am install-exec \
  61714. - install-exec-am install-info install-info-am install-man \
  61715. - install-pkgconfigexecDATA install-strip installcheck \
  61716. + install install-am install-data install-data-am install-dvi \
  61717. + install-dvi-am install-exec install-exec-am install-html \
  61718. + install-html-am install-info install-info-am install-man \
  61719. + install-pdf install-pdf-am install-pkgconfigexecDATA \
  61720. + install-ps install-ps-am install-strip installcheck \
  61721. installcheck-am installdirs installdirs-am maintainer-clean \
  61722. - maintainer-clean-generic maintainer-clean-recursive \
  61723. - mostlyclean mostlyclean-generic mostlyclean-libtool \
  61724. - mostlyclean-recursive pdf pdf-am ps ps-am tags tags-recursive \
  61725. - uninstall uninstall-am uninstall-info-am \
  61726. - uninstall-pkgconfigexecDATA
  61727. + maintainer-clean-generic mostlyclean mostlyclean-generic \
  61728. + mostlyclean-libtool pdf pdf-am ps ps-am tags tags-recursive \
  61729. + uninstall uninstall-am uninstall-pkgconfigexecDATA
  61730. $(pkgconfigexec_DATA): config.status
  61731. @WITH_DOCUMENTATION_TRUE@ doc_DATA = LICENSE README NEWS TODO THANKS
  61732. +
  61733. # Tell versions [3.59,3.63) of GNU make to not export all variables.
  61734. # Otherwise a system limit (for SysV at least) may be exceeded.
  61735. .NOEXPORT:
  61736. diff -Nur libupnp-1.6.6.orig/threadutil/Makefile.in libupnp-1.6.6/threadutil/Makefile.in
  61737. --- libupnp-1.6.6.orig/threadutil/Makefile.in 2008-04-25 13:47:39.000000000 +0200
  61738. +++ libupnp-1.6.6/threadutil/Makefile.in 2010-02-18 22:37:02.116854988 +0100
  61739. @@ -1,8 +1,9 @@
  61740. -# Makefile.in generated by automake 1.9.6 from Makefile.am.
  61741. +# Makefile.in generated by automake 1.11.1 from Makefile.am.
  61742. # @configure_input@
  61743. # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
  61744. -# 2003, 2004, 2005 Free Software Foundation, Inc.
  61745. +# 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
  61746. +# Inc.
  61747. # This Makefile.in is free software; the Free Software Foundation
  61748. # gives unlimited permission to copy and/or distribute it,
  61749. # with or without modifications, as long as this notice is preserved.
  61750. @@ -22,15 +23,12 @@
  61751. #
  61752. -srcdir = @srcdir@
  61753. -top_srcdir = @top_srcdir@
  61754. VPATH = @srcdir@
  61755. pkgdatadir = $(datadir)/@PACKAGE@
  61756. -pkglibdir = $(libdir)/@PACKAGE@
  61757. pkgincludedir = $(includedir)/@PACKAGE@
  61758. -top_builddir = ..
  61759. +pkglibdir = $(libdir)/@PACKAGE@
  61760. +pkglibexecdir = $(libexecdir)/@PACKAGE@
  61761. am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
  61762. -INSTALL = @INSTALL@
  61763. install_sh_DATA = $(install_sh) -c -m 644
  61764. install_sh_PROGRAM = $(install_sh) -c
  61765. install_sh_SCRIPT = $(install_sh) -c
  61766. @@ -53,6 +51,9 @@
  61767. am__aclocal_m4_deps = $(top_srcdir)/m4/acx_pthread.m4 \
  61768. $(top_srcdir)/m4/ax_cflags_gcc_option.m4 \
  61769. $(top_srcdir)/m4/ax_cflags_warn_all.m4 \
  61770. + $(top_srcdir)/m4/libtool.m4 $(top_srcdir)/m4/ltoptions.m4 \
  61771. + $(top_srcdir)/m4/ltsugar.m4 $(top_srcdir)/m4/ltversion.m4 \
  61772. + $(top_srcdir)/m4/lt~obsolete.m4 \
  61773. $(top_srcdir)/m4/rt_bool_arg_enable.m4 \
  61774. $(top_srcdir)/m4/type_socklen_t.m4 $(top_srcdir)/configure.ac
  61775. am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
  61776. @@ -61,41 +62,58 @@
  61777. CONFIG_HEADER = $(top_builddir)/autoconfig.h \
  61778. $(top_builddir)/upnp/inc/upnpconfig.h
  61779. CONFIG_CLEAN_FILES =
  61780. +CONFIG_CLEAN_VPATH_FILES =
  61781. am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
  61782. am__vpath_adj = case $$p in \
  61783. $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
  61784. *) f=$$p;; \
  61785. esac;
  61786. -am__strip_dir = `echo $$p | sed -e 's|^.*/||'`;
  61787. +am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`;
  61788. +am__install_max = 40
  61789. +am__nobase_strip_setup = \
  61790. + srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'`
  61791. +am__nobase_strip = \
  61792. + for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||"
  61793. +am__nobase_list = $(am__nobase_strip_setup); \
  61794. + for p in $$list; do echo "$$p $$p"; done | \
  61795. + sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \
  61796. + $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \
  61797. + if (++n[$$2] == $(am__install_max)) \
  61798. + { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \
  61799. + END { for (dir in files) print dir, files[dir] }'
  61800. +am__base_list = \
  61801. + sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \
  61802. + sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g'
  61803. am__installdirs = "$(DESTDIR)$(libdir)" "$(DESTDIR)$(upnpincludedir)"
  61804. -libLTLIBRARIES_INSTALL = $(INSTALL)
  61805. LTLIBRARIES = $(lib_LTLIBRARIES)
  61806. libthreadutil_la_LIBADD =
  61807. am__dirstamp = $(am__leading_dot)dirstamp
  61808. am_libthreadutil_la_OBJECTS = src/FreeList.lo src/LinkedList.lo \
  61809. src/ThreadPool.lo src/TimerThread.lo
  61810. libthreadutil_la_OBJECTS = $(am_libthreadutil_la_OBJECTS)
  61811. -DEFAULT_INCLUDES = -I. -I$(srcdir) -I$(top_builddir) -I$(top_builddir)/upnp/inc
  61812. +libthreadutil_la_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) \
  61813. + $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
  61814. + $(libthreadutil_la_LDFLAGS) $(LDFLAGS) -o $@
  61815. +DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir) -I$(top_builddir)/upnp/inc
  61816. depcomp = $(SHELL) $(top_srcdir)/build-aux/depcomp
  61817. am__depfiles_maybe = depfiles
  61818. +am__mv = mv -f
  61819. COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
  61820. $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
  61821. -LTCOMPILE = $(LIBTOOL) --tag=CC --mode=compile $(CC) $(DEFS) \
  61822. - $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \
  61823. - $(AM_CFLAGS) $(CFLAGS)
  61824. +LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
  61825. + --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
  61826. + $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
  61827. CCLD = $(CC)
  61828. -LINK = $(LIBTOOL) --tag=CC --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
  61829. - $(AM_LDFLAGS) $(LDFLAGS) -o $@
  61830. +LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
  61831. + --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \
  61832. + $(LDFLAGS) -o $@
  61833. SOURCES = $(libthreadutil_la_SOURCES)
  61834. DIST_SOURCES = $(libthreadutil_la_SOURCES)
  61835. -upnpincludeHEADERS_INSTALL = $(INSTALL_HEADER)
  61836. HEADERS = $(upnpinclude_HEADERS)
  61837. ETAGS = etags
  61838. CTAGS = ctags
  61839. DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
  61840. ACLOCAL = @ACLOCAL@
  61841. -AMDEP_FALSE = @AMDEP_FALSE@
  61842. -AMDEP_TRUE = @AMDEP_TRUE@
  61843. AMTAR = @AMTAR@
  61844. AR = @AR@
  61845. AUTOCONF = @AUTOCONF@
  61846. @@ -107,74 +125,66 @@
  61847. CFLAGS = @CFLAGS@
  61848. CPP = @CPP@
  61849. CPPFLAGS = @CPPFLAGS@
  61850. -CXX = @CXX@
  61851. -CXXCPP = @CXXCPP@
  61852. -CXXDEPMODE = @CXXDEPMODE@
  61853. -CXXFLAGS = @CXXFLAGS@
  61854. CYGPATH_W = @CYGPATH_W@
  61855. DEFS = @DEFS@
  61856. DEPDIR = @DEPDIR@
  61857. -ECHO = @ECHO@
  61858. +DSYMUTIL = @DSYMUTIL@
  61859. +DUMPBIN = @DUMPBIN@
  61860. ECHO_C = @ECHO_C@
  61861. ECHO_N = @ECHO_N@
  61862. ECHO_T = @ECHO_T@
  61863. EGREP = @EGREP@
  61864. -ENABLE_CLIENT_FALSE = @ENABLE_CLIENT_FALSE@
  61865. -ENABLE_CLIENT_TRUE = @ENABLE_CLIENT_TRUE@
  61866. -ENABLE_DEBUG_FALSE = @ENABLE_DEBUG_FALSE@
  61867. -ENABLE_DEBUG_TRUE = @ENABLE_DEBUG_TRUE@
  61868. -ENABLE_DEVICE_FALSE = @ENABLE_DEVICE_FALSE@
  61869. -ENABLE_DEVICE_TRUE = @ENABLE_DEVICE_TRUE@
  61870. -ENABLE_SAMPLES_FALSE = @ENABLE_SAMPLES_FALSE@
  61871. -ENABLE_SAMPLES_TRUE = @ENABLE_SAMPLES_TRUE@
  61872. -ENABLE_TOOLS_FALSE = @ENABLE_TOOLS_FALSE@
  61873. -ENABLE_TOOLS_TRUE = @ENABLE_TOOLS_TRUE@
  61874. -ENABLE_WEBSERVER_FALSE = @ENABLE_WEBSERVER_FALSE@
  61875. -ENABLE_WEBSERVER_TRUE = @ENABLE_WEBSERVER_TRUE@
  61876. EXEEXT = @EXEEXT@
  61877. -F77 = @F77@
  61878. -FFLAGS = @FFLAGS@
  61879. +FGREP = @FGREP@
  61880. GREP = @GREP@
  61881. +INSTALL = @INSTALL@
  61882. INSTALL_DATA = @INSTALL_DATA@
  61883. INSTALL_PROGRAM = @INSTALL_PROGRAM@
  61884. INSTALL_SCRIPT = @INSTALL_SCRIPT@
  61885. INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
  61886. +LD = @LD@
  61887. LDFLAGS = @LDFLAGS@
  61888. LIBOBJS = @LIBOBJS@
  61889. LIBS = @LIBS@
  61890. LIBTOOL = @LIBTOOL@
  61891. +LIPO = @LIPO@
  61892. LN_S = @LN_S@
  61893. LTLIBOBJS = @LTLIBOBJS@
  61894. LT_VERSION_IXML = @LT_VERSION_IXML@
  61895. LT_VERSION_THREADUTIL = @LT_VERSION_THREADUTIL@
  61896. LT_VERSION_UPNP = @LT_VERSION_UPNP@
  61897. MAKEINFO = @MAKEINFO@
  61898. +MKDIR_P = @MKDIR_P@
  61899. +NM = @NM@
  61900. +NMEDIT = @NMEDIT@
  61901. +OBJDUMP = @OBJDUMP@
  61902. OBJEXT = @OBJEXT@
  61903. +OTOOL = @OTOOL@
  61904. +OTOOL64 = @OTOOL64@
  61905. PACKAGE = @PACKAGE@
  61906. PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
  61907. PACKAGE_NAME = @PACKAGE_NAME@
  61908. PACKAGE_STRING = @PACKAGE_STRING@
  61909. PACKAGE_TARNAME = @PACKAGE_TARNAME@
  61910. +PACKAGE_URL = @PACKAGE_URL@
  61911. PACKAGE_VERSION = @PACKAGE_VERSION@
  61912. PATH_SEPARATOR = @PATH_SEPARATOR@
  61913. PTHREAD_CC = @PTHREAD_CC@
  61914. PTHREAD_CFLAGS = @PTHREAD_CFLAGS@
  61915. PTHREAD_LIBS = @PTHREAD_LIBS@
  61916. RANLIB = @RANLIB@
  61917. +SED = @SED@
  61918. SET_MAKE = @SET_MAKE@
  61919. SHELL = @SHELL@
  61920. STRIP = @STRIP@
  61921. VERSION = @VERSION@
  61922. -WITH_DOCUMENTATION_FALSE = @WITH_DOCUMENTATION_FALSE@
  61923. -WITH_DOCUMENTATION_TRUE = @WITH_DOCUMENTATION_TRUE@
  61924. +abs_builddir = @abs_builddir@
  61925. +abs_srcdir = @abs_srcdir@
  61926. +abs_top_builddir = @abs_top_builddir@
  61927. +abs_top_srcdir = @abs_top_srcdir@
  61928. ac_ct_CC = @ac_ct_CC@
  61929. -ac_ct_CXX = @ac_ct_CXX@
  61930. -ac_ct_F77 = @ac_ct_F77@
  61931. +ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
  61932. acx_pthread_config = @acx_pthread_config@
  61933. -am__fastdepCC_FALSE = @am__fastdepCC_FALSE@
  61934. -am__fastdepCC_TRUE = @am__fastdepCC_TRUE@
  61935. -am__fastdepCXX_FALSE = @am__fastdepCXX_FALSE@
  61936. -am__fastdepCXX_TRUE = @am__fastdepCXX_TRUE@
  61937. am__include = @am__include@
  61938. am__leading_dot = @am__leading_dot@
  61939. am__quote = @am__quote@
  61940. @@ -186,6 +196,7 @@
  61941. build_cpu = @build_cpu@
  61942. build_os = @build_os@
  61943. build_vendor = @build_vendor@
  61944. +builddir = @builddir@
  61945. datadir = @datadir@
  61946. datarootdir = @datarootdir@
  61947. docdir = @docdir@
  61948. @@ -204,6 +215,7 @@
  61949. libexecdir = @libexecdir@
  61950. localedir = @localedir@
  61951. localstatedir = @localstatedir@
  61952. +lt_ECHO = @lt_ECHO@
  61953. mandir = @mandir@
  61954. mkdir_p = @mkdir_p@
  61955. oldincludedir = @oldincludedir@
  61956. @@ -213,8 +225,12 @@
  61957. psdir = @psdir@
  61958. sbindir = @sbindir@
  61959. sharedstatedir = @sharedstatedir@
  61960. +srcdir = @srcdir@
  61961. sysconfdir = @sysconfdir@
  61962. target_alias = @target_alias@
  61963. +top_build_prefix = @top_build_prefix@
  61964. +top_builddir = @top_builddir@
  61965. +top_srcdir = @top_srcdir@
  61966. AM_CPPFLAGS = -I$(srcdir)/inc -I$(srcdir)/src/inc $(am__append_1) \
  61967. $(am__append_2)
  61968. lib_LTLIBRARIES = libthreadutil.la
  61969. @@ -237,14 +253,14 @@
  61970. @for dep in $?; do \
  61971. case '$(am__configure_deps)' in \
  61972. *$$dep*) \
  61973. - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
  61974. - && exit 0; \
  61975. + ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
  61976. + && { if test -f $@; then exit 0; else break; fi; }; \
  61977. exit 1;; \
  61978. esac; \
  61979. done; \
  61980. - echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign threadutil/Makefile'; \
  61981. - cd $(top_srcdir) && \
  61982. - $(AUTOMAKE) --foreign threadutil/Makefile
  61983. + echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign threadutil/Makefile'; \
  61984. + $(am__cd) $(top_srcdir) && \
  61985. + $(AUTOMAKE) --foreign threadutil/Makefile
  61986. .PRECIOUS: Makefile
  61987. Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
  61988. @case '$?' in \
  61989. @@ -262,23 +278,28 @@
  61990. cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
  61991. $(ACLOCAL_M4): $(am__aclocal_m4_deps)
  61992. cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
  61993. +$(am__aclocal_m4_deps):
  61994. install-libLTLIBRARIES: $(lib_LTLIBRARIES)
  61995. @$(NORMAL_INSTALL)
  61996. - test -z "$(libdir)" || $(mkdir_p) "$(DESTDIR)$(libdir)"
  61997. - @list='$(lib_LTLIBRARIES)'; for p in $$list; do \
  61998. + test -z "$(libdir)" || $(MKDIR_P) "$(DESTDIR)$(libdir)"
  61999. + @list='$(lib_LTLIBRARIES)'; test -n "$(libdir)" || list=; \
  62000. + list2=; for p in $$list; do \
  62001. if test -f $$p; then \
  62002. - f=$(am__strip_dir) \
  62003. - echo " $(LIBTOOL) --mode=install $(libLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) '$$p' '$(DESTDIR)$(libdir)/$$f'"; \
  62004. - $(LIBTOOL) --mode=install $(libLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) "$$p" "$(DESTDIR)$(libdir)/$$f"; \
  62005. + list2="$$list2 $$p"; \
  62006. else :; fi; \
  62007. - done
  62008. + done; \
  62009. + test -z "$$list2" || { \
  62010. + echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 '$(DESTDIR)$(libdir)'"; \
  62011. + $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 "$(DESTDIR)$(libdir)"; \
  62012. + }
  62013. uninstall-libLTLIBRARIES:
  62014. @$(NORMAL_UNINSTALL)
  62015. - @set -x; list='$(lib_LTLIBRARIES)'; for p in $$list; do \
  62016. - p=$(am__strip_dir) \
  62017. - echo " $(LIBTOOL) --mode=uninstall rm -f '$(DESTDIR)$(libdir)/$$p'"; \
  62018. - $(LIBTOOL) --mode=uninstall rm -f "$(DESTDIR)$(libdir)/$$p"; \
  62019. + @list='$(lib_LTLIBRARIES)'; test -n "$(libdir)" || list=; \
  62020. + for p in $$list; do \
  62021. + $(am__strip_dir) \
  62022. + echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(libdir)/$$f'"; \
  62023. + $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(libdir)/$$f"; \
  62024. done
  62025. clean-libLTLIBRARIES:
  62026. @@ -290,17 +311,17 @@
  62027. rm -f "$${dir}/so_locations"; \
  62028. done
  62029. src/$(am__dirstamp):
  62030. - @$(mkdir_p) src
  62031. + @$(MKDIR_P) src
  62032. @: > src/$(am__dirstamp)
  62033. src/$(DEPDIR)/$(am__dirstamp):
  62034. - @$(mkdir_p) src/$(DEPDIR)
  62035. + @$(MKDIR_P) src/$(DEPDIR)
  62036. @: > src/$(DEPDIR)/$(am__dirstamp)
  62037. src/FreeList.lo: src/$(am__dirstamp) src/$(DEPDIR)/$(am__dirstamp)
  62038. src/LinkedList.lo: src/$(am__dirstamp) src/$(DEPDIR)/$(am__dirstamp)
  62039. src/ThreadPool.lo: src/$(am__dirstamp) src/$(DEPDIR)/$(am__dirstamp)
  62040. src/TimerThread.lo: src/$(am__dirstamp) src/$(DEPDIR)/$(am__dirstamp)
  62041. libthreadutil.la: $(libthreadutil_la_OBJECTS) $(libthreadutil_la_DEPENDENCIES)
  62042. - $(LINK) -rpath $(libdir) $(libthreadutil_la_LDFLAGS) $(libthreadutil_la_OBJECTS) $(libthreadutil_la_LIBADD) $(LIBS)
  62043. + $(libthreadutil_la_LINK) -rpath $(libdir) $(libthreadutil_la_OBJECTS) $(libthreadutil_la_LIBADD) $(LIBS)
  62044. mostlyclean-compile:
  62045. -rm -f *.$(OBJEXT)
  62046. @@ -322,25 +343,25 @@
  62047. @AMDEP_TRUE@@am__include@ @am__quote@src/$(DEPDIR)/TimerThread.Plo@am__quote@
  62048. .c.o:
  62049. -@am__fastdepCC_TRUE@ depbase=`echo $@ | sed 's|[^/]*$$|$(DEPDIR)/&|;s|\.o$$||'`; \
  62050. -@am__fastdepCC_TRUE@ if $(COMPILE) -MT $@ -MD -MP -MF "$$depbase.Tpo" -c -o $@ $<; \
  62051. -@am__fastdepCC_TRUE@ then mv -f "$$depbase.Tpo" "$$depbase.Po"; else rm -f "$$depbase.Tpo"; exit 1; fi
  62052. +@am__fastdepCC_TRUE@ depbase=`echo $@ | sed 's|[^/]*$$|$(DEPDIR)/&|;s|\.o$$||'`;\
  62053. +@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $$depbase.Tpo -c -o $@ $< &&\
  62054. +@am__fastdepCC_TRUE@ $(am__mv) $$depbase.Tpo $$depbase.Po
  62055. @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
  62056. @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
  62057. @am__fastdepCC_FALSE@ $(COMPILE) -c -o $@ $<
  62058. .c.obj:
  62059. -@am__fastdepCC_TRUE@ depbase=`echo $@ | sed 's|[^/]*$$|$(DEPDIR)/&|;s|\.obj$$||'`; \
  62060. -@am__fastdepCC_TRUE@ if $(COMPILE) -MT $@ -MD -MP -MF "$$depbase.Tpo" -c -o $@ `$(CYGPATH_W) '$<'`; \
  62061. -@am__fastdepCC_TRUE@ then mv -f "$$depbase.Tpo" "$$depbase.Po"; else rm -f "$$depbase.Tpo"; exit 1; fi
  62062. +@am__fastdepCC_TRUE@ depbase=`echo $@ | sed 's|[^/]*$$|$(DEPDIR)/&|;s|\.obj$$||'`;\
  62063. +@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $$depbase.Tpo -c -o $@ `$(CYGPATH_W) '$<'` &&\
  62064. +@am__fastdepCC_TRUE@ $(am__mv) $$depbase.Tpo $$depbase.Po
  62065. @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
  62066. @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
  62067. @am__fastdepCC_FALSE@ $(COMPILE) -c -o $@ `$(CYGPATH_W) '$<'`
  62068. .c.lo:
  62069. -@am__fastdepCC_TRUE@ depbase=`echo $@ | sed 's|[^/]*$$|$(DEPDIR)/&|;s|\.lo$$||'`; \
  62070. -@am__fastdepCC_TRUE@ if $(LTCOMPILE) -MT $@ -MD -MP -MF "$$depbase.Tpo" -c -o $@ $<; \
  62071. -@am__fastdepCC_TRUE@ then mv -f "$$depbase.Tpo" "$$depbase.Plo"; else rm -f "$$depbase.Tpo"; exit 1; fi
  62072. +@am__fastdepCC_TRUE@ depbase=`echo $@ | sed 's|[^/]*$$|$(DEPDIR)/&|;s|\.lo$$||'`;\
  62073. +@am__fastdepCC_TRUE@ $(LTCOMPILE) -MT $@ -MD -MP -MF $$depbase.Tpo -c -o $@ $< &&\
  62074. +@am__fastdepCC_TRUE@ $(am__mv) $$depbase.Tpo $$depbase.Plo
  62075. @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
  62076. @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
  62077. @am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ $<
  62078. @@ -351,101 +372,106 @@
  62079. clean-libtool:
  62080. -rm -rf .libs _libs
  62081. -rm -rf src/.libs src/_libs
  62082. -
  62083. -distclean-libtool:
  62084. - -rm -f libtool
  62085. -uninstall-info-am:
  62086. install-upnpincludeHEADERS: $(upnpinclude_HEADERS)
  62087. @$(NORMAL_INSTALL)
  62088. - test -z "$(upnpincludedir)" || $(mkdir_p) "$(DESTDIR)$(upnpincludedir)"
  62089. - @list='$(upnpinclude_HEADERS)'; for p in $$list; do \
  62090. + test -z "$(upnpincludedir)" || $(MKDIR_P) "$(DESTDIR)$(upnpincludedir)"
  62091. + @list='$(upnpinclude_HEADERS)'; test -n "$(upnpincludedir)" || list=; \
  62092. + for p in $$list; do \
  62093. if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
  62094. - f=$(am__strip_dir) \
  62095. - echo " $(upnpincludeHEADERS_INSTALL) '$$d$$p' '$(DESTDIR)$(upnpincludedir)/$$f'"; \
  62096. - $(upnpincludeHEADERS_INSTALL) "$$d$$p" "$(DESTDIR)$(upnpincludedir)/$$f"; \
  62097. + echo "$$d$$p"; \
  62098. + done | $(am__base_list) | \
  62099. + while read files; do \
  62100. + echo " $(INSTALL_HEADER) $$files '$(DESTDIR)$(upnpincludedir)'"; \
  62101. + $(INSTALL_HEADER) $$files "$(DESTDIR)$(upnpincludedir)" || exit $$?; \
  62102. done
  62103. uninstall-upnpincludeHEADERS:
  62104. @$(NORMAL_UNINSTALL)
  62105. - @list='$(upnpinclude_HEADERS)'; for p in $$list; do \
  62106. - f=$(am__strip_dir) \
  62107. - echo " rm -f '$(DESTDIR)$(upnpincludedir)/$$f'"; \
  62108. - rm -f "$(DESTDIR)$(upnpincludedir)/$$f"; \
  62109. - done
  62110. + @list='$(upnpinclude_HEADERS)'; test -n "$(upnpincludedir)" || list=; \
  62111. + files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \
  62112. + test -n "$$files" || exit 0; \
  62113. + echo " ( cd '$(DESTDIR)$(upnpincludedir)' && rm -f" $$files ")"; \
  62114. + cd "$(DESTDIR)$(upnpincludedir)" && rm -f $$files
  62115. ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
  62116. list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
  62117. unique=`for i in $$list; do \
  62118. if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
  62119. done | \
  62120. - $(AWK) ' { files[$$0] = 1; } \
  62121. - END { for (i in files) print i; }'`; \
  62122. + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
  62123. + END { if (nonempty) { for (i in files) print i; }; }'`; \
  62124. mkid -fID $$unique
  62125. tags: TAGS
  62126. TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
  62127. $(TAGS_FILES) $(LISP)
  62128. - tags=; \
  62129. + set x; \
  62130. here=`pwd`; \
  62131. list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
  62132. unique=`for i in $$list; do \
  62133. if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
  62134. done | \
  62135. - $(AWK) ' { files[$$0] = 1; } \
  62136. - END { for (i in files) print i; }'`; \
  62137. - if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
  62138. + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
  62139. + END { if (nonempty) { for (i in files) print i; }; }'`; \
  62140. + shift; \
  62141. + if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
  62142. test -n "$$unique" || unique=$$empty_fix; \
  62143. - $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
  62144. - $$tags $$unique; \
  62145. + if test $$# -gt 0; then \
  62146. + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
  62147. + "$$@" $$unique; \
  62148. + else \
  62149. + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
  62150. + $$unique; \
  62151. + fi; \
  62152. fi
  62153. ctags: CTAGS
  62154. CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
  62155. $(TAGS_FILES) $(LISP)
  62156. - tags=; \
  62157. - here=`pwd`; \
  62158. list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
  62159. unique=`for i in $$list; do \
  62160. if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
  62161. done | \
  62162. - $(AWK) ' { files[$$0] = 1; } \
  62163. - END { for (i in files) print i; }'`; \
  62164. - test -z "$(CTAGS_ARGS)$$tags$$unique" \
  62165. + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
  62166. + END { if (nonempty) { for (i in files) print i; }; }'`; \
  62167. + test -z "$(CTAGS_ARGS)$$unique" \
  62168. || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
  62169. - $$tags $$unique
  62170. + $$unique
  62171. GTAGS:
  62172. here=`$(am__cd) $(top_builddir) && pwd` \
  62173. - && cd $(top_srcdir) \
  62174. - && gtags -i $(GTAGS_ARGS) $$here
  62175. + && $(am__cd) $(top_srcdir) \
  62176. + && gtags -i $(GTAGS_ARGS) "$$here"
  62177. distclean-tags:
  62178. -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
  62179. distdir: $(DISTFILES)
  62180. - $(mkdir_p) $(distdir)/inc
  62181. - @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \
  62182. - topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \
  62183. - list='$(DISTFILES)'; for file in $$list; do \
  62184. - case $$file in \
  62185. - $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \
  62186. - $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \
  62187. - esac; \
  62188. + @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
  62189. + topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
  62190. + list='$(DISTFILES)'; \
  62191. + dist_files=`for file in $$list; do echo $$file; done | \
  62192. + sed -e "s|^$$srcdirstrip/||;t" \
  62193. + -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
  62194. + case $$dist_files in \
  62195. + */*) $(MKDIR_P) `echo "$$dist_files" | \
  62196. + sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
  62197. + sort -u` ;; \
  62198. + esac; \
  62199. + for file in $$dist_files; do \
  62200. if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
  62201. - dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \
  62202. - if test "$$dir" != "$$file" && test "$$dir" != "."; then \
  62203. - dir="/$$dir"; \
  62204. - $(mkdir_p) "$(distdir)$$dir"; \
  62205. - else \
  62206. - dir=''; \
  62207. - fi; \
  62208. if test -d $$d/$$file; then \
  62209. + dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
  62210. + if test -d "$(distdir)/$$file"; then \
  62211. + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
  62212. + fi; \
  62213. if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
  62214. - cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
  62215. + cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
  62216. + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
  62217. fi; \
  62218. - cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
  62219. + cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
  62220. else \
  62221. - test -f $(distdir)/$$file \
  62222. - || cp -p $$d/$$file $(distdir)/$$file \
  62223. + test -f "$(distdir)/$$file" \
  62224. + || cp -p $$d/$$file "$(distdir)/$$file" \
  62225. || exit 1; \
  62226. fi; \
  62227. done
  62228. @@ -454,7 +480,7 @@
  62229. all-am: Makefile $(LTLIBRARIES) $(HEADERS)
  62230. installdirs:
  62231. for dir in "$(DESTDIR)$(libdir)" "$(DESTDIR)$(upnpincludedir)"; do \
  62232. - test -z "$$dir" || $(mkdir_p) "$$dir"; \
  62233. + test -z "$$dir" || $(MKDIR_P) "$$dir"; \
  62234. done
  62235. install: install-am
  62236. install-exec: install-exec-am
  62237. @@ -476,6 +502,7 @@
  62238. distclean-generic:
  62239. -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
  62240. + -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
  62241. -rm -f src/$(DEPDIR)/$(am__dirstamp)
  62242. -rm -f src/$(am__dirstamp)
  62243. @@ -491,7 +518,7 @@
  62244. -rm -rf src/$(DEPDIR)
  62245. -rm -f Makefile
  62246. distclean-am: clean-am distclean-compile distclean-generic \
  62247. - distclean-libtool distclean-tags
  62248. + distclean-tags
  62249. dvi: dvi-am
  62250. @@ -499,18 +526,38 @@
  62251. html: html-am
  62252. +html-am:
  62253. +
  62254. info: info-am
  62255. info-am:
  62256. install-data-am: install-upnpincludeHEADERS
  62257. +install-dvi: install-dvi-am
  62258. +
  62259. +install-dvi-am:
  62260. +
  62261. install-exec-am: install-libLTLIBRARIES
  62262. +install-html: install-html-am
  62263. +
  62264. +install-html-am:
  62265. +
  62266. install-info: install-info-am
  62267. +install-info-am:
  62268. +
  62269. install-man:
  62270. +install-pdf: install-pdf-am
  62271. +
  62272. +install-pdf-am:
  62273. +
  62274. +install-ps: install-ps-am
  62275. +
  62276. +install-ps-am:
  62277. +
  62278. installcheck-am:
  62279. maintainer-clean: maintainer-clean-am
  62280. @@ -531,23 +578,27 @@
  62281. ps-am:
  62282. -uninstall-am: uninstall-info-am uninstall-libLTLIBRARIES \
  62283. - uninstall-upnpincludeHEADERS
  62284. +uninstall-am: uninstall-libLTLIBRARIES uninstall-upnpincludeHEADERS
  62285. +
  62286. +.MAKE: install-am install-strip
  62287. .PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \
  62288. clean-libLTLIBRARIES clean-libtool ctags distclean \
  62289. distclean-compile distclean-generic distclean-libtool \
  62290. distclean-tags distdir dvi dvi-am html html-am info info-am \
  62291. - install install-am install-data install-data-am install-exec \
  62292. - install-exec-am install-info install-info-am \
  62293. - install-libLTLIBRARIES install-man install-strip \
  62294. + install install-am install-data install-data-am install-dvi \
  62295. + install-dvi-am install-exec install-exec-am install-html \
  62296. + install-html-am install-info install-info-am \
  62297. + install-libLTLIBRARIES install-man install-pdf install-pdf-am \
  62298. + install-ps install-ps-am install-strip \
  62299. install-upnpincludeHEADERS installcheck installcheck-am \
  62300. installdirs maintainer-clean maintainer-clean-generic \
  62301. mostlyclean mostlyclean-compile mostlyclean-generic \
  62302. mostlyclean-libtool pdf pdf-am ps ps-am tags uninstall \
  62303. - uninstall-am uninstall-info-am uninstall-libLTLIBRARIES \
  62304. + uninstall-am uninstall-libLTLIBRARIES \
  62305. uninstall-upnpincludeHEADERS
  62306. +
  62307. # Tell versions [3.59,3.63) of GNU make to not export all variables.
  62308. # Otherwise a system limit (for SysV at least) may be exceeded.
  62309. .NOEXPORT:
  62310. diff -Nur libupnp-1.6.6.orig/upnp/doc/Makefile.in libupnp-1.6.6/upnp/doc/Makefile.in
  62311. --- libupnp-1.6.6.orig/upnp/doc/Makefile.in 2008-04-25 13:47:42.000000000 +0200
  62312. +++ libupnp-1.6.6/upnp/doc/Makefile.in 2010-02-18 22:37:02.660852213 +0100
  62313. @@ -1,8 +1,9 @@
  62314. -# Makefile.in generated by automake 1.9.6 from Makefile.am.
  62315. +# Makefile.in generated by automake 1.11.1 from Makefile.am.
  62316. # @configure_input@
  62317. # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
  62318. -# 2003, 2004, 2005 Free Software Foundation, Inc.
  62319. +# 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
  62320. +# Inc.
  62321. # This Makefile.in is free software; the Free Software Foundation
  62322. # gives unlimited permission to copy and/or distribute it,
  62323. # with or without modifications, as long as this notice is preserved.
  62324. @@ -50,15 +51,12 @@
  62325. # SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  62326. #
  62327. ##########################################################################
  62328. -srcdir = @srcdir@
  62329. -top_srcdir = @top_srcdir@
  62330. VPATH = @srcdir@
  62331. pkgdatadir = $(datadir)/@PACKAGE@
  62332. -pkglibdir = $(libdir)/@PACKAGE@
  62333. pkgincludedir = $(includedir)/@PACKAGE@
  62334. -top_builddir = ../..
  62335. +pkglibdir = $(libdir)/@PACKAGE@
  62336. +pkglibexecdir = $(libexecdir)/@PACKAGE@
  62337. am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
  62338. -INSTALL = @INSTALL@
  62339. install_sh_DATA = $(install_sh) -c -m 644
  62340. install_sh_PROGRAM = $(install_sh) -c
  62341. install_sh_SCRIPT = $(install_sh) -c
  62342. @@ -78,6 +76,9 @@
  62343. am__aclocal_m4_deps = $(top_srcdir)/m4/acx_pthread.m4 \
  62344. $(top_srcdir)/m4/ax_cflags_gcc_option.m4 \
  62345. $(top_srcdir)/m4/ax_cflags_warn_all.m4 \
  62346. + $(top_srcdir)/m4/libtool.m4 $(top_srcdir)/m4/ltoptions.m4 \
  62347. + $(top_srcdir)/m4/ltsugar.m4 $(top_srcdir)/m4/ltversion.m4 \
  62348. + $(top_srcdir)/m4/lt~obsolete.m4 \
  62349. $(top_srcdir)/m4/rt_bool_arg_enable.m4 \
  62350. $(top_srcdir)/m4/type_socklen_t.m4 $(top_srcdir)/configure.ac
  62351. am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
  62352. @@ -86,12 +87,11 @@
  62353. CONFIG_HEADER = $(top_builddir)/autoconfig.h \
  62354. $(top_builddir)/upnp/inc/upnpconfig.h
  62355. CONFIG_CLEAN_FILES =
  62356. +CONFIG_CLEAN_VPATH_FILES =
  62357. SOURCES =
  62358. DIST_SOURCES =
  62359. DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
  62360. ACLOCAL = @ACLOCAL@
  62361. -AMDEP_FALSE = @AMDEP_FALSE@
  62362. -AMDEP_TRUE = @AMDEP_TRUE@
  62363. AMTAR = @AMTAR@
  62364. AR = @AR@
  62365. AUTOCONF = @AUTOCONF@
  62366. @@ -103,74 +103,66 @@
  62367. CFLAGS = @CFLAGS@
  62368. CPP = @CPP@
  62369. CPPFLAGS = @CPPFLAGS@
  62370. -CXX = @CXX@
  62371. -CXXCPP = @CXXCPP@
  62372. -CXXDEPMODE = @CXXDEPMODE@
  62373. -CXXFLAGS = @CXXFLAGS@
  62374. CYGPATH_W = @CYGPATH_W@
  62375. DEFS = @DEFS@
  62376. DEPDIR = @DEPDIR@
  62377. -ECHO = @ECHO@
  62378. +DSYMUTIL = @DSYMUTIL@
  62379. +DUMPBIN = @DUMPBIN@
  62380. ECHO_C = @ECHO_C@
  62381. ECHO_N = @ECHO_N@
  62382. ECHO_T = @ECHO_T@
  62383. EGREP = @EGREP@
  62384. -ENABLE_CLIENT_FALSE = @ENABLE_CLIENT_FALSE@
  62385. -ENABLE_CLIENT_TRUE = @ENABLE_CLIENT_TRUE@
  62386. -ENABLE_DEBUG_FALSE = @ENABLE_DEBUG_FALSE@
  62387. -ENABLE_DEBUG_TRUE = @ENABLE_DEBUG_TRUE@
  62388. -ENABLE_DEVICE_FALSE = @ENABLE_DEVICE_FALSE@
  62389. -ENABLE_DEVICE_TRUE = @ENABLE_DEVICE_TRUE@
  62390. -ENABLE_SAMPLES_FALSE = @ENABLE_SAMPLES_FALSE@
  62391. -ENABLE_SAMPLES_TRUE = @ENABLE_SAMPLES_TRUE@
  62392. -ENABLE_TOOLS_FALSE = @ENABLE_TOOLS_FALSE@
  62393. -ENABLE_TOOLS_TRUE = @ENABLE_TOOLS_TRUE@
  62394. -ENABLE_WEBSERVER_FALSE = @ENABLE_WEBSERVER_FALSE@
  62395. -ENABLE_WEBSERVER_TRUE = @ENABLE_WEBSERVER_TRUE@
  62396. EXEEXT = @EXEEXT@
  62397. -F77 = @F77@
  62398. -FFLAGS = @FFLAGS@
  62399. +FGREP = @FGREP@
  62400. GREP = @GREP@
  62401. +INSTALL = @INSTALL@
  62402. INSTALL_DATA = @INSTALL_DATA@
  62403. INSTALL_PROGRAM = @INSTALL_PROGRAM@
  62404. INSTALL_SCRIPT = @INSTALL_SCRIPT@
  62405. INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
  62406. +LD = @LD@
  62407. LDFLAGS = @LDFLAGS@
  62408. LIBOBJS = @LIBOBJS@
  62409. LIBS = @LIBS@
  62410. LIBTOOL = @LIBTOOL@
  62411. +LIPO = @LIPO@
  62412. LN_S = @LN_S@
  62413. LTLIBOBJS = @LTLIBOBJS@
  62414. LT_VERSION_IXML = @LT_VERSION_IXML@
  62415. LT_VERSION_THREADUTIL = @LT_VERSION_THREADUTIL@
  62416. LT_VERSION_UPNP = @LT_VERSION_UPNP@
  62417. MAKEINFO = @MAKEINFO@
  62418. +MKDIR_P = @MKDIR_P@
  62419. +NM = @NM@
  62420. +NMEDIT = @NMEDIT@
  62421. +OBJDUMP = @OBJDUMP@
  62422. OBJEXT = @OBJEXT@
  62423. +OTOOL = @OTOOL@
  62424. +OTOOL64 = @OTOOL64@
  62425. PACKAGE = @PACKAGE@
  62426. PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
  62427. PACKAGE_NAME = @PACKAGE_NAME@
  62428. PACKAGE_STRING = @PACKAGE_STRING@
  62429. PACKAGE_TARNAME = @PACKAGE_TARNAME@
  62430. +PACKAGE_URL = @PACKAGE_URL@
  62431. PACKAGE_VERSION = @PACKAGE_VERSION@
  62432. PATH_SEPARATOR = @PATH_SEPARATOR@
  62433. PTHREAD_CC = @PTHREAD_CC@
  62434. PTHREAD_CFLAGS = @PTHREAD_CFLAGS@
  62435. PTHREAD_LIBS = @PTHREAD_LIBS@
  62436. RANLIB = @RANLIB@
  62437. +SED = @SED@
  62438. SET_MAKE = @SET_MAKE@
  62439. SHELL = @SHELL@
  62440. STRIP = @STRIP@
  62441. VERSION = @VERSION@
  62442. -WITH_DOCUMENTATION_FALSE = @WITH_DOCUMENTATION_FALSE@
  62443. -WITH_DOCUMENTATION_TRUE = @WITH_DOCUMENTATION_TRUE@
  62444. +abs_builddir = @abs_builddir@
  62445. +abs_srcdir = @abs_srcdir@
  62446. +abs_top_builddir = @abs_top_builddir@
  62447. +abs_top_srcdir = @abs_top_srcdir@
  62448. ac_ct_CC = @ac_ct_CC@
  62449. -ac_ct_CXX = @ac_ct_CXX@
  62450. -ac_ct_F77 = @ac_ct_F77@
  62451. +ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
  62452. acx_pthread_config = @acx_pthread_config@
  62453. -am__fastdepCC_FALSE = @am__fastdepCC_FALSE@
  62454. -am__fastdepCC_TRUE = @am__fastdepCC_TRUE@
  62455. -am__fastdepCXX_FALSE = @am__fastdepCXX_FALSE@
  62456. -am__fastdepCXX_TRUE = @am__fastdepCXX_TRUE@
  62457. am__include = @am__include@
  62458. am__leading_dot = @am__leading_dot@
  62459. am__quote = @am__quote@
  62460. @@ -182,6 +174,7 @@
  62461. build_cpu = @build_cpu@
  62462. build_os = @build_os@
  62463. build_vendor = @build_vendor@
  62464. +builddir = @builddir@
  62465. datadir = @datadir@
  62466. datarootdir = @datarootdir@
  62467. docdir = @docdir@
  62468. @@ -200,6 +193,7 @@
  62469. libexecdir = @libexecdir@
  62470. localedir = @localedir@
  62471. localstatedir = @localstatedir@
  62472. +lt_ECHO = @lt_ECHO@
  62473. mandir = @mandir@
  62474. mkdir_p = @mkdir_p@
  62475. oldincludedir = @oldincludedir@
  62476. @@ -209,8 +203,12 @@
  62477. psdir = @psdir@
  62478. sbindir = @sbindir@
  62479. sharedstatedir = @sharedstatedir@
  62480. +srcdir = @srcdir@
  62481. sysconfdir = @sysconfdir@
  62482. target_alias = @target_alias@
  62483. +top_build_prefix = @top_build_prefix@
  62484. +top_builddir = @top_builddir@
  62485. +top_srcdir = @top_srcdir@
  62486. EXTRA_DIST = callback.dxx docxx.sty intro.dxx \
  62487. license.dxx upnpsdk.dxx
  62488. @@ -221,14 +219,14 @@
  62489. @for dep in $?; do \
  62490. case '$(am__configure_deps)' in \
  62491. *$$dep*) \
  62492. - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
  62493. - && exit 0; \
  62494. + ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
  62495. + && { if test -f $@; then exit 0; else break; fi; }; \
  62496. exit 1;; \
  62497. esac; \
  62498. done; \
  62499. - echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign upnp/doc/Makefile'; \
  62500. - cd $(top_srcdir) && \
  62501. - $(AUTOMAKE) --foreign upnp/doc/Makefile
  62502. + echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign upnp/doc/Makefile'; \
  62503. + $(am__cd) $(top_srcdir) && \
  62504. + $(AUTOMAKE) --foreign upnp/doc/Makefile
  62505. .PRECIOUS: Makefile
  62506. Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
  62507. @case '$?' in \
  62508. @@ -246,16 +244,13 @@
  62509. cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
  62510. $(ACLOCAL_M4): $(am__aclocal_m4_deps)
  62511. cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
  62512. +$(am__aclocal_m4_deps):
  62513. mostlyclean-libtool:
  62514. -rm -f *.lo
  62515. clean-libtool:
  62516. -rm -rf .libs _libs
  62517. -
  62518. -distclean-libtool:
  62519. - -rm -f libtool
  62520. -uninstall-info-am:
  62521. tags: TAGS
  62522. TAGS:
  62523. @@ -264,29 +259,32 @@
  62524. distdir: $(DISTFILES)
  62525. - @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \
  62526. - topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \
  62527. - list='$(DISTFILES)'; for file in $$list; do \
  62528. - case $$file in \
  62529. - $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \
  62530. - $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \
  62531. - esac; \
  62532. + @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
  62533. + topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
  62534. + list='$(DISTFILES)'; \
  62535. + dist_files=`for file in $$list; do echo $$file; done | \
  62536. + sed -e "s|^$$srcdirstrip/||;t" \
  62537. + -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
  62538. + case $$dist_files in \
  62539. + */*) $(MKDIR_P) `echo "$$dist_files" | \
  62540. + sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
  62541. + sort -u` ;; \
  62542. + esac; \
  62543. + for file in $$dist_files; do \
  62544. if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
  62545. - dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \
  62546. - if test "$$dir" != "$$file" && test "$$dir" != "."; then \
  62547. - dir="/$$dir"; \
  62548. - $(mkdir_p) "$(distdir)$$dir"; \
  62549. - else \
  62550. - dir=''; \
  62551. - fi; \
  62552. if test -d $$d/$$file; then \
  62553. + dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
  62554. + if test -d "$(distdir)/$$file"; then \
  62555. + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
  62556. + fi; \
  62557. if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
  62558. - cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
  62559. + cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
  62560. + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
  62561. fi; \
  62562. - cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
  62563. + cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
  62564. else \
  62565. - test -f $(distdir)/$$file \
  62566. - || cp -p $$d/$$file $(distdir)/$$file \
  62567. + test -f "$(distdir)/$$file" \
  62568. + || cp -p $$d/$$file "$(distdir)/$$file" \
  62569. || exit 1; \
  62570. fi; \
  62571. done
  62572. @@ -314,6 +312,7 @@
  62573. distclean-generic:
  62574. -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
  62575. + -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
  62576. maintainer-clean-generic:
  62577. @echo "This command is intended for maintainers to use"
  62578. @@ -324,7 +323,7 @@
  62579. distclean: distclean-am
  62580. -rm -f Makefile
  62581. -distclean-am: clean-am distclean-generic distclean-libtool
  62582. +distclean-am: clean-am distclean-generic
  62583. dvi: dvi-am
  62584. @@ -340,12 +339,30 @@
  62585. install-data-am:
  62586. +install-dvi: install-dvi-am
  62587. +
  62588. +install-dvi-am:
  62589. +
  62590. install-exec-am:
  62591. +install-html: install-html-am
  62592. +
  62593. +install-html-am:
  62594. +
  62595. install-info: install-info-am
  62596. +install-info-am:
  62597. +
  62598. install-man:
  62599. +install-pdf: install-pdf-am
  62600. +
  62601. +install-pdf-am:
  62602. +
  62603. +install-ps: install-ps-am
  62604. +
  62605. +install-ps-am:
  62606. +
  62607. installcheck-am:
  62608. maintainer-clean: maintainer-clean-am
  62609. @@ -364,17 +381,21 @@
  62610. ps-am:
  62611. -uninstall-am: uninstall-info-am
  62612. +uninstall-am:
  62613. +
  62614. +.MAKE: install-am install-strip
  62615. .PHONY: all all-am check check-am clean clean-generic clean-libtool \
  62616. clean-local distclean distclean-generic distclean-libtool \
  62617. distdir dvi dvi-am html html-am html-local info info-am \
  62618. - install install-am install-data install-data-am install-exec \
  62619. - install-exec-am install-info install-info-am install-man \
  62620. + install install-am install-data install-data-am install-dvi \
  62621. + install-dvi-am install-exec install-exec-am install-html \
  62622. + install-html-am install-info install-info-am install-man \
  62623. + install-pdf install-pdf-am install-ps install-ps-am \
  62624. install-strip installcheck installcheck-am installdirs \
  62625. maintainer-clean maintainer-clean-generic mostlyclean \
  62626. mostlyclean-generic mostlyclean-libtool pdf pdf-am pdf-local \
  62627. - ps ps-am uninstall uninstall-am uninstall-info-am
  62628. + ps ps-am uninstall uninstall-am
  62629. html-local:
  62630. @@ -392,6 +413,7 @@
  62631. -rm -rf html
  62632. -rm -f upnpsdk.tex upnpsdk.dvi upnpsdk.ps upnpsdk.log upnpsdk.aux
  62633. -rm -f latex.log
  62634. +
  62635. # Tell versions [3.59,3.63) of GNU make to not export all variables.
  62636. # Otherwise a system limit (for SysV at least) may be exceeded.
  62637. .NOEXPORT:
  62638. diff -Nur libupnp-1.6.6.orig/upnp/Makefile.in libupnp-1.6.6/upnp/Makefile.in
  62639. --- libupnp-1.6.6.orig/upnp/Makefile.in 2008-04-25 13:47:41.000000000 +0200
  62640. +++ libupnp-1.6.6/upnp/Makefile.in 2010-02-18 22:37:02.568854743 +0100
  62641. @@ -1,8 +1,9 @@
  62642. -# Makefile.in generated by automake 1.9.6 from Makefile.am.
  62643. +# Makefile.in generated by automake 1.11.1 from Makefile.am.
  62644. # @configure_input@
  62645. # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
  62646. -# 2003, 2004, 2005 Free Software Foundation, Inc.
  62647. +# 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
  62648. +# Inc.
  62649. # This Makefile.in is free software; the Free Software Foundation
  62650. # gives unlimited permission to copy and/or distribute it,
  62651. # with or without modifications, as long as this notice is preserved.
  62652. @@ -21,15 +22,12 @@
  62653. #
  62654. -srcdir = @srcdir@
  62655. -top_srcdir = @top_srcdir@
  62656. VPATH = @srcdir@
  62657. pkgdatadir = $(datadir)/@PACKAGE@
  62658. -pkglibdir = $(libdir)/@PACKAGE@
  62659. pkgincludedir = $(includedir)/@PACKAGE@
  62660. -top_builddir = ..
  62661. +pkglibdir = $(libdir)/@PACKAGE@
  62662. +pkglibexecdir = $(libexecdir)/@PACKAGE@
  62663. am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
  62664. -INSTALL = @INSTALL@
  62665. install_sh_DATA = $(install_sh) -c -m 644
  62666. install_sh_PROGRAM = $(install_sh) -c
  62667. install_sh_SCRIPT = $(install_sh) -c
  62668. @@ -47,6 +45,7 @@
  62669. @ENABLE_TOOLS_TRUE@am__append_2 = src/api/upnptools.c
  62670. @ENABLE_DEBUG_TRUE@am__append_3 = src/api/upnpdebug.c
  62671. check_PROGRAMS = test_init$(EXEEXT)
  62672. +TESTS = test_init$(EXEEXT)
  62673. subdir = upnp
  62674. DIST_COMMON = $(am__upnpinclude_HEADERS_DIST) $(srcdir)/Makefile.am \
  62675. $(srcdir)/Makefile.in
  62676. @@ -54,6 +53,9 @@
  62677. am__aclocal_m4_deps = $(top_srcdir)/m4/acx_pthread.m4 \
  62678. $(top_srcdir)/m4/ax_cflags_gcc_option.m4 \
  62679. $(top_srcdir)/m4/ax_cflags_warn_all.m4 \
  62680. + $(top_srcdir)/m4/libtool.m4 $(top_srcdir)/m4/ltoptions.m4 \
  62681. + $(top_srcdir)/m4/ltsugar.m4 $(top_srcdir)/m4/ltversion.m4 \
  62682. + $(top_srcdir)/m4/lt~obsolete.m4 \
  62683. $(top_srcdir)/m4/rt_bool_arg_enable.m4 \
  62684. $(top_srcdir)/m4/type_socklen_t.m4 $(top_srcdir)/configure.ac
  62685. am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
  62686. @@ -62,15 +64,30 @@
  62687. CONFIG_HEADER = $(top_builddir)/autoconfig.h \
  62688. $(top_builddir)/upnp/inc/upnpconfig.h
  62689. CONFIG_CLEAN_FILES =
  62690. +CONFIG_CLEAN_VPATH_FILES =
  62691. am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
  62692. am__vpath_adj = case $$p in \
  62693. $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
  62694. *) f=$$p;; \
  62695. esac;
  62696. -am__strip_dir = `echo $$p | sed -e 's|^.*/||'`;
  62697. +am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`;
  62698. +am__install_max = 40
  62699. +am__nobase_strip_setup = \
  62700. + srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'`
  62701. +am__nobase_strip = \
  62702. + for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||"
  62703. +am__nobase_list = $(am__nobase_strip_setup); \
  62704. + for p in $$list; do echo "$$p $$p"; done | \
  62705. + sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \
  62706. + $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \
  62707. + if (++n[$$2] == $(am__install_max)) \
  62708. + { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \
  62709. + END { for (dir in files) print dir, files[dir] }'
  62710. +am__base_list = \
  62711. + sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \
  62712. + sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g'
  62713. am__installdirs = "$(DESTDIR)$(libdir)" "$(DESTDIR)$(upnpincludedir)" \
  62714. "$(DESTDIR)$(upnpincludedir)"
  62715. -libLTLIBRARIES_INSTALL = $(INSTALL)
  62716. LTLIBRARIES = $(lib_LTLIBRARIES)
  62717. libupnp_la_LIBADD =
  62718. am__libupnp_la_SOURCES_DIST = src/inc/config.h src/inc/client_table.h \
  62719. @@ -132,43 +149,77 @@
  62720. src/uuid/libupnp_la-sysdep.lo src/uuid/libupnp_la-uuid.lo \
  62721. src/urlconfig/libupnp_la-urlconfig.lo
  62722. libupnp_la_OBJECTS = $(am_libupnp_la_OBJECTS)
  62723. +libupnp_la_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) \
  62724. + $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
  62725. + $(libupnp_la_LDFLAGS) $(LDFLAGS) -o $@
  62726. am_test_init_OBJECTS = test/test_init.$(OBJEXT)
  62727. test_init_OBJECTS = $(am_test_init_OBJECTS)
  62728. test_init_LDADD = $(LDADD)
  62729. test_init_DEPENDENCIES = libupnp.la \
  62730. $(top_builddir)/threadutil/libthreadutil.la \
  62731. $(top_builddir)/ixml/libixml.la
  62732. -DEFAULT_INCLUDES = -I. -I$(srcdir) -I$(top_builddir) -I$(top_builddir)/upnp/inc
  62733. +DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir) -I$(top_builddir)/upnp/inc
  62734. depcomp = $(SHELL) $(top_srcdir)/build-aux/depcomp
  62735. am__depfiles_maybe = depfiles
  62736. +am__mv = mv -f
  62737. COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
  62738. $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
  62739. -LTCOMPILE = $(LIBTOOL) --tag=CC --mode=compile $(CC) $(DEFS) \
  62740. - $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \
  62741. - $(AM_CFLAGS) $(CFLAGS)
  62742. +LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
  62743. + --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
  62744. + $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
  62745. CCLD = $(CC)
  62746. -LINK = $(LIBTOOL) --tag=CC --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
  62747. - $(AM_LDFLAGS) $(LDFLAGS) -o $@
  62748. +LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
  62749. + --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \
  62750. + $(LDFLAGS) -o $@
  62751. SOURCES = $(libupnp_la_SOURCES) $(test_init_SOURCES)
  62752. DIST_SOURCES = $(am__libupnp_la_SOURCES_DIST) $(test_init_SOURCES)
  62753. RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \
  62754. html-recursive info-recursive install-data-recursive \
  62755. - install-exec-recursive install-info-recursive \
  62756. - install-recursive installcheck-recursive installdirs-recursive \
  62757. - pdf-recursive ps-recursive uninstall-info-recursive \
  62758. - uninstall-recursive
  62759. -nodist_upnpincludeHEADERS_INSTALL = $(INSTALL_HEADER)
  62760. + install-dvi-recursive install-exec-recursive \
  62761. + install-html-recursive install-info-recursive \
  62762. + install-pdf-recursive install-ps-recursive install-recursive \
  62763. + installcheck-recursive installdirs-recursive pdf-recursive \
  62764. + ps-recursive uninstall-recursive
  62765. am__upnpinclude_HEADERS_DIST = inc/upnp.h inc/upnpdebug.h \
  62766. inc/upnptools.h
  62767. -upnpincludeHEADERS_INSTALL = $(INSTALL_HEADER)
  62768. HEADERS = $(nodist_upnpinclude_HEADERS) $(upnpinclude_HEADERS)
  62769. +RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \
  62770. + distclean-recursive maintainer-clean-recursive
  62771. +AM_RECURSIVE_TARGETS = $(RECURSIVE_TARGETS:-recursive=) \
  62772. + $(RECURSIVE_CLEAN_TARGETS:-recursive=) tags TAGS ctags CTAGS \
  62773. + distdir
  62774. ETAGS = etags
  62775. CTAGS = ctags
  62776. +am__tty_colors = \
  62777. +red=; grn=; lgn=; blu=; std=
  62778. DIST_SUBDIRS = $(SUBDIRS)
  62779. DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
  62780. +am__relativize = \
  62781. + dir0=`pwd`; \
  62782. + sed_first='s,^\([^/]*\)/.*$$,\1,'; \
  62783. + sed_rest='s,^[^/]*/*,,'; \
  62784. + sed_last='s,^.*/\([^/]*\)$$,\1,'; \
  62785. + sed_butlast='s,/*[^/]*$$,,'; \
  62786. + while test -n "$$dir1"; do \
  62787. + first=`echo "$$dir1" | sed -e "$$sed_first"`; \
  62788. + if test "$$first" != "."; then \
  62789. + if test "$$first" = ".."; then \
  62790. + dir2=`echo "$$dir0" | sed -e "$$sed_last"`/"$$dir2"; \
  62791. + dir0=`echo "$$dir0" | sed -e "$$sed_butlast"`; \
  62792. + else \
  62793. + first2=`echo "$$dir2" | sed -e "$$sed_first"`; \
  62794. + if test "$$first2" = "$$first"; then \
  62795. + dir2=`echo "$$dir2" | sed -e "$$sed_rest"`; \
  62796. + else \
  62797. + dir2="../$$dir2"; \
  62798. + fi; \
  62799. + dir0="$$dir0"/"$$first"; \
  62800. + fi; \
  62801. + fi; \
  62802. + dir1=`echo "$$dir1" | sed -e "$$sed_rest"`; \
  62803. + done; \
  62804. + reldir="$$dir2"
  62805. ACLOCAL = @ACLOCAL@
  62806. -AMDEP_FALSE = @AMDEP_FALSE@
  62807. -AMDEP_TRUE = @AMDEP_TRUE@
  62808. AMTAR = @AMTAR@
  62809. AR = @AR@
  62810. AUTOCONF = @AUTOCONF@
  62811. @@ -180,74 +231,66 @@
  62812. CFLAGS = @CFLAGS@
  62813. CPP = @CPP@
  62814. CPPFLAGS = @CPPFLAGS@
  62815. -CXX = @CXX@
  62816. -CXXCPP = @CXXCPP@
  62817. -CXXDEPMODE = @CXXDEPMODE@
  62818. -CXXFLAGS = @CXXFLAGS@
  62819. CYGPATH_W = @CYGPATH_W@
  62820. DEFS = @DEFS@
  62821. DEPDIR = @DEPDIR@
  62822. -ECHO = @ECHO@
  62823. +DSYMUTIL = @DSYMUTIL@
  62824. +DUMPBIN = @DUMPBIN@
  62825. ECHO_C = @ECHO_C@
  62826. ECHO_N = @ECHO_N@
  62827. ECHO_T = @ECHO_T@
  62828. EGREP = @EGREP@
  62829. -ENABLE_CLIENT_FALSE = @ENABLE_CLIENT_FALSE@
  62830. -ENABLE_CLIENT_TRUE = @ENABLE_CLIENT_TRUE@
  62831. -ENABLE_DEBUG_FALSE = @ENABLE_DEBUG_FALSE@
  62832. -ENABLE_DEBUG_TRUE = @ENABLE_DEBUG_TRUE@
  62833. -ENABLE_DEVICE_FALSE = @ENABLE_DEVICE_FALSE@
  62834. -ENABLE_DEVICE_TRUE = @ENABLE_DEVICE_TRUE@
  62835. -ENABLE_SAMPLES_FALSE = @ENABLE_SAMPLES_FALSE@
  62836. -ENABLE_SAMPLES_TRUE = @ENABLE_SAMPLES_TRUE@
  62837. -ENABLE_TOOLS_FALSE = @ENABLE_TOOLS_FALSE@
  62838. -ENABLE_TOOLS_TRUE = @ENABLE_TOOLS_TRUE@
  62839. -ENABLE_WEBSERVER_FALSE = @ENABLE_WEBSERVER_FALSE@
  62840. -ENABLE_WEBSERVER_TRUE = @ENABLE_WEBSERVER_TRUE@
  62841. EXEEXT = @EXEEXT@
  62842. -F77 = @F77@
  62843. -FFLAGS = @FFLAGS@
  62844. +FGREP = @FGREP@
  62845. GREP = @GREP@
  62846. +INSTALL = @INSTALL@
  62847. INSTALL_DATA = @INSTALL_DATA@
  62848. INSTALL_PROGRAM = @INSTALL_PROGRAM@
  62849. INSTALL_SCRIPT = @INSTALL_SCRIPT@
  62850. INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
  62851. +LD = @LD@
  62852. LDFLAGS = @LDFLAGS@
  62853. LIBOBJS = @LIBOBJS@
  62854. LIBS = @LIBS@
  62855. LIBTOOL = @LIBTOOL@
  62856. +LIPO = @LIPO@
  62857. LN_S = @LN_S@
  62858. LTLIBOBJS = @LTLIBOBJS@
  62859. LT_VERSION_IXML = @LT_VERSION_IXML@
  62860. LT_VERSION_THREADUTIL = @LT_VERSION_THREADUTIL@
  62861. LT_VERSION_UPNP = @LT_VERSION_UPNP@
  62862. MAKEINFO = @MAKEINFO@
  62863. +MKDIR_P = @MKDIR_P@
  62864. +NM = @NM@
  62865. +NMEDIT = @NMEDIT@
  62866. +OBJDUMP = @OBJDUMP@
  62867. OBJEXT = @OBJEXT@
  62868. +OTOOL = @OTOOL@
  62869. +OTOOL64 = @OTOOL64@
  62870. PACKAGE = @PACKAGE@
  62871. PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
  62872. PACKAGE_NAME = @PACKAGE_NAME@
  62873. PACKAGE_STRING = @PACKAGE_STRING@
  62874. PACKAGE_TARNAME = @PACKAGE_TARNAME@
  62875. +PACKAGE_URL = @PACKAGE_URL@
  62876. PACKAGE_VERSION = @PACKAGE_VERSION@
  62877. PATH_SEPARATOR = @PATH_SEPARATOR@
  62878. PTHREAD_CC = @PTHREAD_CC@
  62879. PTHREAD_CFLAGS = @PTHREAD_CFLAGS@
  62880. PTHREAD_LIBS = @PTHREAD_LIBS@
  62881. RANLIB = @RANLIB@
  62882. +SED = @SED@
  62883. SET_MAKE = @SET_MAKE@
  62884. SHELL = @SHELL@
  62885. STRIP = @STRIP@
  62886. VERSION = @VERSION@
  62887. -WITH_DOCUMENTATION_FALSE = @WITH_DOCUMENTATION_FALSE@
  62888. -WITH_DOCUMENTATION_TRUE = @WITH_DOCUMENTATION_TRUE@
  62889. +abs_builddir = @abs_builddir@
  62890. +abs_srcdir = @abs_srcdir@
  62891. +abs_top_builddir = @abs_top_builddir@
  62892. +abs_top_srcdir = @abs_top_srcdir@
  62893. ac_ct_CC = @ac_ct_CC@
  62894. -ac_ct_CXX = @ac_ct_CXX@
  62895. -ac_ct_F77 = @ac_ct_F77@
  62896. +ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
  62897. acx_pthread_config = @acx_pthread_config@
  62898. -am__fastdepCC_FALSE = @am__fastdepCC_FALSE@
  62899. -am__fastdepCC_TRUE = @am__fastdepCC_TRUE@
  62900. -am__fastdepCXX_FALSE = @am__fastdepCXX_FALSE@
  62901. -am__fastdepCXX_TRUE = @am__fastdepCXX_TRUE@
  62902. am__include = @am__include@
  62903. am__leading_dot = @am__leading_dot@
  62904. am__quote = @am__quote@
  62905. @@ -259,6 +302,7 @@
  62906. build_cpu = @build_cpu@
  62907. build_os = @build_os@
  62908. build_vendor = @build_vendor@
  62909. +builddir = @builddir@
  62910. datadir = @datadir@
  62911. datarootdir = @datarootdir@
  62912. docdir = @docdir@
  62913. @@ -277,6 +321,7 @@
  62914. libexecdir = @libexecdir@
  62915. localedir = @localedir@
  62916. localstatedir = @localstatedir@
  62917. +lt_ECHO = @lt_ECHO@
  62918. mandir = @mandir@
  62919. mkdir_p = @mkdir_p@
  62920. oldincludedir = @oldincludedir@
  62921. @@ -286,8 +331,12 @@
  62922. psdir = @psdir@
  62923. sbindir = @sbindir@
  62924. sharedstatedir = @sharedstatedir@
  62925. +srcdir = @srcdir@
  62926. sysconfdir = @sysconfdir@
  62927. target_alias = @target_alias@
  62928. +top_build_prefix = @top_build_prefix@
  62929. +top_builddir = @top_builddir@
  62930. +top_srcdir = @top_srcdir@
  62931. SUBDIRS = doc . sample
  62932. AM_CPPFLAGS = \
  62933. -I$(srcdir)/inc \
  62934. @@ -352,7 +401,6 @@
  62935. src/gena/gena_callback2.c src/api/upnpapi.c $(am__append_2) \
  62936. $(am__append_3) src/uuid/md5.c src/uuid/sysdep.c \
  62937. src/uuid/uuid.c src/urlconfig/urlconfig.c
  62938. -TESTS = test_init
  62939. test_init_SOURCES = test/test_init.c
  62940. EXTRA_DIST = \
  62941. LICENSE \
  62942. @@ -372,14 +420,14 @@
  62943. @for dep in $?; do \
  62944. case '$(am__configure_deps)' in \
  62945. *$$dep*) \
  62946. - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
  62947. - && exit 0; \
  62948. + ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
  62949. + && { if test -f $@; then exit 0; else break; fi; }; \
  62950. exit 1;; \
  62951. esac; \
  62952. done; \
  62953. - echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign upnp/Makefile'; \
  62954. - cd $(top_srcdir) && \
  62955. - $(AUTOMAKE) --foreign upnp/Makefile
  62956. + echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign upnp/Makefile'; \
  62957. + $(am__cd) $(top_srcdir) && \
  62958. + $(AUTOMAKE) --foreign upnp/Makefile
  62959. .PRECIOUS: Makefile
  62960. Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
  62961. @case '$?' in \
  62962. @@ -397,23 +445,28 @@
  62963. cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
  62964. $(ACLOCAL_M4): $(am__aclocal_m4_deps)
  62965. cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
  62966. +$(am__aclocal_m4_deps):
  62967. install-libLTLIBRARIES: $(lib_LTLIBRARIES)
  62968. @$(NORMAL_INSTALL)
  62969. - test -z "$(libdir)" || $(mkdir_p) "$(DESTDIR)$(libdir)"
  62970. - @list='$(lib_LTLIBRARIES)'; for p in $$list; do \
  62971. + test -z "$(libdir)" || $(MKDIR_P) "$(DESTDIR)$(libdir)"
  62972. + @list='$(lib_LTLIBRARIES)'; test -n "$(libdir)" || list=; \
  62973. + list2=; for p in $$list; do \
  62974. if test -f $$p; then \
  62975. - f=$(am__strip_dir) \
  62976. - echo " $(LIBTOOL) --mode=install $(libLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) '$$p' '$(DESTDIR)$(libdir)/$$f'"; \
  62977. - $(LIBTOOL) --mode=install $(libLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) "$$p" "$(DESTDIR)$(libdir)/$$f"; \
  62978. + list2="$$list2 $$p"; \
  62979. else :; fi; \
  62980. - done
  62981. + done; \
  62982. + test -z "$$list2" || { \
  62983. + echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 '$(DESTDIR)$(libdir)'"; \
  62984. + $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 "$(DESTDIR)$(libdir)"; \
  62985. + }
  62986. uninstall-libLTLIBRARIES:
  62987. @$(NORMAL_UNINSTALL)
  62988. - @set -x; list='$(lib_LTLIBRARIES)'; for p in $$list; do \
  62989. - p=$(am__strip_dir) \
  62990. - echo " $(LIBTOOL) --mode=uninstall rm -f '$(DESTDIR)$(libdir)/$$p'"; \
  62991. - $(LIBTOOL) --mode=uninstall rm -f "$(DESTDIR)$(libdir)/$$p"; \
  62992. + @list='$(lib_LTLIBRARIES)'; test -n "$(libdir)" || list=; \
  62993. + for p in $$list; do \
  62994. + $(am__strip_dir) \
  62995. + echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(libdir)/$$f'"; \
  62996. + $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(libdir)/$$f"; \
  62997. done
  62998. clean-libLTLIBRARIES:
  62999. @@ -425,10 +478,10 @@
  63000. rm -f "$${dir}/so_locations"; \
  63001. done
  63002. src/ssdp/$(am__dirstamp):
  63003. - @$(mkdir_p) src/ssdp
  63004. + @$(MKDIR_P) src/ssdp
  63005. @: > src/ssdp/$(am__dirstamp)
  63006. src/ssdp/$(DEPDIR)/$(am__dirstamp):
  63007. - @$(mkdir_p) src/ssdp/$(DEPDIR)
  63008. + @$(MKDIR_P) src/ssdp/$(DEPDIR)
  63009. @: > src/ssdp/$(DEPDIR)/$(am__dirstamp)
  63010. src/ssdp/libupnp_la-ssdp_device.lo: src/ssdp/$(am__dirstamp) \
  63011. src/ssdp/$(DEPDIR)/$(am__dirstamp)
  63012. @@ -437,10 +490,10 @@
  63013. src/ssdp/libupnp_la-ssdp_server.lo: src/ssdp/$(am__dirstamp) \
  63014. src/ssdp/$(DEPDIR)/$(am__dirstamp)
  63015. src/soap/$(am__dirstamp):
  63016. - @$(mkdir_p) src/soap
  63017. + @$(MKDIR_P) src/soap
  63018. @: > src/soap/$(am__dirstamp)
  63019. src/soap/$(DEPDIR)/$(am__dirstamp):
  63020. - @$(mkdir_p) src/soap/$(DEPDIR)
  63021. + @$(MKDIR_P) src/soap/$(DEPDIR)
  63022. @: > src/soap/$(DEPDIR)/$(am__dirstamp)
  63023. src/soap/libupnp_la-soap_device.lo: src/soap/$(am__dirstamp) \
  63024. src/soap/$(DEPDIR)/$(am__dirstamp)
  63025. @@ -449,28 +502,28 @@
  63026. src/soap/libupnp_la-soap_common.lo: src/soap/$(am__dirstamp) \
  63027. src/soap/$(DEPDIR)/$(am__dirstamp)
  63028. src/genlib/miniserver/$(am__dirstamp):
  63029. - @$(mkdir_p) src/genlib/miniserver
  63030. + @$(MKDIR_P) src/genlib/miniserver
  63031. @: > src/genlib/miniserver/$(am__dirstamp)
  63032. src/genlib/miniserver/$(DEPDIR)/$(am__dirstamp):
  63033. - @$(mkdir_p) src/genlib/miniserver/$(DEPDIR)
  63034. + @$(MKDIR_P) src/genlib/miniserver/$(DEPDIR)
  63035. @: > src/genlib/miniserver/$(DEPDIR)/$(am__dirstamp)
  63036. src/genlib/miniserver/libupnp_la-miniserver.lo: \
  63037. src/genlib/miniserver/$(am__dirstamp) \
  63038. src/genlib/miniserver/$(DEPDIR)/$(am__dirstamp)
  63039. src/genlib/service_table/$(am__dirstamp):
  63040. - @$(mkdir_p) src/genlib/service_table
  63041. + @$(MKDIR_P) src/genlib/service_table
  63042. @: > src/genlib/service_table/$(am__dirstamp)
  63043. src/genlib/service_table/$(DEPDIR)/$(am__dirstamp):
  63044. - @$(mkdir_p) src/genlib/service_table/$(DEPDIR)
  63045. + @$(MKDIR_P) src/genlib/service_table/$(DEPDIR)
  63046. @: > src/genlib/service_table/$(DEPDIR)/$(am__dirstamp)
  63047. src/genlib/service_table/libupnp_la-service_table.lo: \
  63048. src/genlib/service_table/$(am__dirstamp) \
  63049. src/genlib/service_table/$(DEPDIR)/$(am__dirstamp)
  63050. src/genlib/util/$(am__dirstamp):
  63051. - @$(mkdir_p) src/genlib/util
  63052. + @$(MKDIR_P) src/genlib/util
  63053. @: > src/genlib/util/$(am__dirstamp)
  63054. src/genlib/util/$(DEPDIR)/$(am__dirstamp):
  63055. - @$(mkdir_p) src/genlib/util/$(DEPDIR)
  63056. + @$(MKDIR_P) src/genlib/util/$(DEPDIR)
  63057. @: > src/genlib/util/$(DEPDIR)/$(am__dirstamp)
  63058. src/genlib/util/libupnp_la-membuffer.lo: \
  63059. src/genlib/util/$(am__dirstamp) \
  63060. @@ -484,27 +537,27 @@
  63061. src/genlib/util/libupnp_la-util.lo: src/genlib/util/$(am__dirstamp) \
  63062. src/genlib/util/$(DEPDIR)/$(am__dirstamp)
  63063. src/genlib/client_table/$(am__dirstamp):
  63064. - @$(mkdir_p) src/genlib/client_table
  63065. + @$(MKDIR_P) src/genlib/client_table
  63066. @: > src/genlib/client_table/$(am__dirstamp)
  63067. src/genlib/client_table/$(DEPDIR)/$(am__dirstamp):
  63068. - @$(mkdir_p) src/genlib/client_table/$(DEPDIR)
  63069. + @$(MKDIR_P) src/genlib/client_table/$(DEPDIR)
  63070. @: > src/genlib/client_table/$(DEPDIR)/$(am__dirstamp)
  63071. src/genlib/client_table/libupnp_la-client_table.lo: \
  63072. src/genlib/client_table/$(am__dirstamp) \
  63073. src/genlib/client_table/$(DEPDIR)/$(am__dirstamp)
  63074. src/genlib/net/$(am__dirstamp):
  63075. - @$(mkdir_p) src/genlib/net
  63076. + @$(MKDIR_P) src/genlib/net
  63077. @: > src/genlib/net/$(am__dirstamp)
  63078. src/genlib/net/$(DEPDIR)/$(am__dirstamp):
  63079. - @$(mkdir_p) src/genlib/net/$(DEPDIR)
  63080. + @$(MKDIR_P) src/genlib/net/$(DEPDIR)
  63081. @: > src/genlib/net/$(DEPDIR)/$(am__dirstamp)
  63082. src/genlib/net/libupnp_la-sock.lo: src/genlib/net/$(am__dirstamp) \
  63083. src/genlib/net/$(DEPDIR)/$(am__dirstamp)
  63084. src/genlib/net/http/$(am__dirstamp):
  63085. - @$(mkdir_p) src/genlib/net/http
  63086. + @$(MKDIR_P) src/genlib/net/http
  63087. @: > src/genlib/net/http/$(am__dirstamp)
  63088. src/genlib/net/http/$(DEPDIR)/$(am__dirstamp):
  63089. - @$(mkdir_p) src/genlib/net/http/$(DEPDIR)
  63090. + @$(MKDIR_P) src/genlib/net/http/$(DEPDIR)
  63091. @: > src/genlib/net/http/$(DEPDIR)/$(am__dirstamp)
  63092. src/genlib/net/http/libupnp_la-httpparser.lo: \
  63093. src/genlib/net/http/$(am__dirstamp) \
  63094. @@ -522,19 +575,19 @@
  63095. src/genlib/net/http/$(am__dirstamp) \
  63096. src/genlib/net/http/$(DEPDIR)/$(am__dirstamp)
  63097. src/genlib/net/uri/$(am__dirstamp):
  63098. - @$(mkdir_p) src/genlib/net/uri
  63099. + @$(MKDIR_P) src/genlib/net/uri
  63100. @: > src/genlib/net/uri/$(am__dirstamp)
  63101. src/genlib/net/uri/$(DEPDIR)/$(am__dirstamp):
  63102. - @$(mkdir_p) src/genlib/net/uri/$(DEPDIR)
  63103. + @$(MKDIR_P) src/genlib/net/uri/$(DEPDIR)
  63104. @: > src/genlib/net/uri/$(DEPDIR)/$(am__dirstamp)
  63105. src/genlib/net/uri/libupnp_la-uri.lo: \
  63106. src/genlib/net/uri/$(am__dirstamp) \
  63107. src/genlib/net/uri/$(DEPDIR)/$(am__dirstamp)
  63108. src/gena/$(am__dirstamp):
  63109. - @$(mkdir_p) src/gena
  63110. + @$(MKDIR_P) src/gena
  63111. @: > src/gena/$(am__dirstamp)
  63112. src/gena/$(DEPDIR)/$(am__dirstamp):
  63113. - @$(mkdir_p) src/gena/$(DEPDIR)
  63114. + @$(MKDIR_P) src/gena/$(DEPDIR)
  63115. @: > src/gena/$(DEPDIR)/$(am__dirstamp)
  63116. src/gena/libupnp_la-gena_device.lo: src/gena/$(am__dirstamp) \
  63117. src/gena/$(DEPDIR)/$(am__dirstamp)
  63118. @@ -543,10 +596,10 @@
  63119. src/gena/libupnp_la-gena_callback2.lo: src/gena/$(am__dirstamp) \
  63120. src/gena/$(DEPDIR)/$(am__dirstamp)
  63121. src/api/$(am__dirstamp):
  63122. - @$(mkdir_p) src/api
  63123. + @$(MKDIR_P) src/api
  63124. @: > src/api/$(am__dirstamp)
  63125. src/api/$(DEPDIR)/$(am__dirstamp):
  63126. - @$(mkdir_p) src/api/$(DEPDIR)
  63127. + @$(MKDIR_P) src/api/$(DEPDIR)
  63128. @: > src/api/$(DEPDIR)/$(am__dirstamp)
  63129. src/api/libupnp_la-upnpapi.lo: src/api/$(am__dirstamp) \
  63130. src/api/$(DEPDIR)/$(am__dirstamp)
  63131. @@ -555,10 +608,10 @@
  63132. src/api/libupnp_la-upnpdebug.lo: src/api/$(am__dirstamp) \
  63133. src/api/$(DEPDIR)/$(am__dirstamp)
  63134. src/uuid/$(am__dirstamp):
  63135. - @$(mkdir_p) src/uuid
  63136. + @$(MKDIR_P) src/uuid
  63137. @: > src/uuid/$(am__dirstamp)
  63138. src/uuid/$(DEPDIR)/$(am__dirstamp):
  63139. - @$(mkdir_p) src/uuid/$(DEPDIR)
  63140. + @$(MKDIR_P) src/uuid/$(DEPDIR)
  63141. @: > src/uuid/$(DEPDIR)/$(am__dirstamp)
  63142. src/uuid/libupnp_la-md5.lo: src/uuid/$(am__dirstamp) \
  63143. src/uuid/$(DEPDIR)/$(am__dirstamp)
  63144. @@ -567,33 +620,35 @@
  63145. src/uuid/libupnp_la-uuid.lo: src/uuid/$(am__dirstamp) \
  63146. src/uuid/$(DEPDIR)/$(am__dirstamp)
  63147. src/urlconfig/$(am__dirstamp):
  63148. - @$(mkdir_p) src/urlconfig
  63149. + @$(MKDIR_P) src/urlconfig
  63150. @: > src/urlconfig/$(am__dirstamp)
  63151. src/urlconfig/$(DEPDIR)/$(am__dirstamp):
  63152. - @$(mkdir_p) src/urlconfig/$(DEPDIR)
  63153. + @$(MKDIR_P) src/urlconfig/$(DEPDIR)
  63154. @: > src/urlconfig/$(DEPDIR)/$(am__dirstamp)
  63155. src/urlconfig/libupnp_la-urlconfig.lo: src/urlconfig/$(am__dirstamp) \
  63156. src/urlconfig/$(DEPDIR)/$(am__dirstamp)
  63157. libupnp.la: $(libupnp_la_OBJECTS) $(libupnp_la_DEPENDENCIES)
  63158. - $(LINK) -rpath $(libdir) $(libupnp_la_LDFLAGS) $(libupnp_la_OBJECTS) $(libupnp_la_LIBADD) $(LIBS)
  63159. + $(libupnp_la_LINK) -rpath $(libdir) $(libupnp_la_OBJECTS) $(libupnp_la_LIBADD) $(LIBS)
  63160. clean-checkPROGRAMS:
  63161. - @list='$(check_PROGRAMS)'; for p in $$list; do \
  63162. - f=`echo $$p|sed 's/$(EXEEXT)$$//'`; \
  63163. - echo " rm -f $$p $$f"; \
  63164. - rm -f $$p $$f ; \
  63165. - done
  63166. + @list='$(check_PROGRAMS)'; test -n "$$list" || exit 0; \
  63167. + echo " rm -f" $$list; \
  63168. + rm -f $$list || exit $$?; \
  63169. + test -n "$(EXEEXT)" || exit 0; \
  63170. + list=`for p in $$list; do echo "$$p"; done | sed 's/$(EXEEXT)$$//'`; \
  63171. + echo " rm -f" $$list; \
  63172. + rm -f $$list
  63173. test/$(am__dirstamp):
  63174. - @$(mkdir_p) test
  63175. + @$(MKDIR_P) test
  63176. @: > test/$(am__dirstamp)
  63177. test/$(DEPDIR)/$(am__dirstamp):
  63178. - @$(mkdir_p) test/$(DEPDIR)
  63179. + @$(MKDIR_P) test/$(DEPDIR)
  63180. @: > test/$(DEPDIR)/$(am__dirstamp)
  63181. test/test_init.$(OBJEXT): test/$(am__dirstamp) \
  63182. test/$(DEPDIR)/$(am__dirstamp)
  63183. test_init$(EXEEXT): $(test_init_OBJECTS) $(test_init_DEPENDENCIES)
  63184. @rm -f test_init$(EXEEXT)
  63185. - $(LINK) $(test_init_LDFLAGS) $(test_init_OBJECTS) $(test_init_LDADD) $(LIBS)
  63186. + $(LINK) $(test_init_OBJECTS) $(test_init_LDADD) $(LIBS)
  63187. mostlyclean-compile:
  63188. -rm -f *.$(OBJEXT)
  63189. @@ -695,238 +750,238 @@
  63190. @AMDEP_TRUE@@am__include@ @am__quote@test/$(DEPDIR)/test_init.Po@am__quote@
  63191. .c.o:
  63192. -@am__fastdepCC_TRUE@ depbase=`echo $@ | sed 's|[^/]*$$|$(DEPDIR)/&|;s|\.o$$||'`; \
  63193. -@am__fastdepCC_TRUE@ if $(COMPILE) -MT $@ -MD -MP -MF "$$depbase.Tpo" -c -o $@ $<; \
  63194. -@am__fastdepCC_TRUE@ then mv -f "$$depbase.Tpo" "$$depbase.Po"; else rm -f "$$depbase.Tpo"; exit 1; fi
  63195. +@am__fastdepCC_TRUE@ depbase=`echo $@ | sed 's|[^/]*$$|$(DEPDIR)/&|;s|\.o$$||'`;\
  63196. +@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $$depbase.Tpo -c -o $@ $< &&\
  63197. +@am__fastdepCC_TRUE@ $(am__mv) $$depbase.Tpo $$depbase.Po
  63198. @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
  63199. @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
  63200. @am__fastdepCC_FALSE@ $(COMPILE) -c -o $@ $<
  63201. .c.obj:
  63202. -@am__fastdepCC_TRUE@ depbase=`echo $@ | sed 's|[^/]*$$|$(DEPDIR)/&|;s|\.obj$$||'`; \
  63203. -@am__fastdepCC_TRUE@ if $(COMPILE) -MT $@ -MD -MP -MF "$$depbase.Tpo" -c -o $@ `$(CYGPATH_W) '$<'`; \
  63204. -@am__fastdepCC_TRUE@ then mv -f "$$depbase.Tpo" "$$depbase.Po"; else rm -f "$$depbase.Tpo"; exit 1; fi
  63205. +@am__fastdepCC_TRUE@ depbase=`echo $@ | sed 's|[^/]*$$|$(DEPDIR)/&|;s|\.obj$$||'`;\
  63206. +@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $$depbase.Tpo -c -o $@ `$(CYGPATH_W) '$<'` &&\
  63207. +@am__fastdepCC_TRUE@ $(am__mv) $$depbase.Tpo $$depbase.Po
  63208. @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
  63209. @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
  63210. @am__fastdepCC_FALSE@ $(COMPILE) -c -o $@ `$(CYGPATH_W) '$<'`
  63211. .c.lo:
  63212. -@am__fastdepCC_TRUE@ depbase=`echo $@ | sed 's|[^/]*$$|$(DEPDIR)/&|;s|\.lo$$||'`; \
  63213. -@am__fastdepCC_TRUE@ if $(LTCOMPILE) -MT $@ -MD -MP -MF "$$depbase.Tpo" -c -o $@ $<; \
  63214. -@am__fastdepCC_TRUE@ then mv -f "$$depbase.Tpo" "$$depbase.Plo"; else rm -f "$$depbase.Tpo"; exit 1; fi
  63215. +@am__fastdepCC_TRUE@ depbase=`echo $@ | sed 's|[^/]*$$|$(DEPDIR)/&|;s|\.lo$$||'`;\
  63216. +@am__fastdepCC_TRUE@ $(LTCOMPILE) -MT $@ -MD -MP -MF $$depbase.Tpo -c -o $@ $< &&\
  63217. +@am__fastdepCC_TRUE@ $(am__mv) $$depbase.Tpo $$depbase.Plo
  63218. @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
  63219. @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
  63220. @am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ $<
  63221. src/ssdp/libupnp_la-ssdp_device.lo: src/ssdp/ssdp_device.c
  63222. -@am__fastdepCC_TRUE@ if $(LIBTOOL) --tag=CC --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libupnp_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT src/ssdp/libupnp_la-ssdp_device.lo -MD -MP -MF "src/ssdp/$(DEPDIR)/libupnp_la-ssdp_device.Tpo" -c -o src/ssdp/libupnp_la-ssdp_device.lo `test -f 'src/ssdp/ssdp_device.c' || echo '$(srcdir)/'`src/ssdp/ssdp_device.c; \
  63223. -@am__fastdepCC_TRUE@ then mv -f "src/ssdp/$(DEPDIR)/libupnp_la-ssdp_device.Tpo" "src/ssdp/$(DEPDIR)/libupnp_la-ssdp_device.Plo"; else rm -f "src/ssdp/$(DEPDIR)/libupnp_la-ssdp_device.Tpo"; exit 1; fi
  63224. +@am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libupnp_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT src/ssdp/libupnp_la-ssdp_device.lo -MD -MP -MF src/ssdp/$(DEPDIR)/libupnp_la-ssdp_device.Tpo -c -o src/ssdp/libupnp_la-ssdp_device.lo `test -f 'src/ssdp/ssdp_device.c' || echo '$(srcdir)/'`src/ssdp/ssdp_device.c
  63225. +@am__fastdepCC_TRUE@ $(am__mv) src/ssdp/$(DEPDIR)/libupnp_la-ssdp_device.Tpo src/ssdp/$(DEPDIR)/libupnp_la-ssdp_device.Plo
  63226. @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='src/ssdp/ssdp_device.c' object='src/ssdp/libupnp_la-ssdp_device.lo' libtool=yes @AMDEPBACKSLASH@
  63227. @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
  63228. -@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libupnp_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o src/ssdp/libupnp_la-ssdp_device.lo `test -f 'src/ssdp/ssdp_device.c' || echo '$(srcdir)/'`src/ssdp/ssdp_device.c
  63229. +@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libupnp_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o src/ssdp/libupnp_la-ssdp_device.lo `test -f 'src/ssdp/ssdp_device.c' || echo '$(srcdir)/'`src/ssdp/ssdp_device.c
  63230. src/ssdp/libupnp_la-ssdp_ctrlpt.lo: src/ssdp/ssdp_ctrlpt.c
  63231. -@am__fastdepCC_TRUE@ if $(LIBTOOL) --tag=CC --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libupnp_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT src/ssdp/libupnp_la-ssdp_ctrlpt.lo -MD -MP -MF "src/ssdp/$(DEPDIR)/libupnp_la-ssdp_ctrlpt.Tpo" -c -o src/ssdp/libupnp_la-ssdp_ctrlpt.lo `test -f 'src/ssdp/ssdp_ctrlpt.c' || echo '$(srcdir)/'`src/ssdp/ssdp_ctrlpt.c; \
  63232. -@am__fastdepCC_TRUE@ then mv -f "src/ssdp/$(DEPDIR)/libupnp_la-ssdp_ctrlpt.Tpo" "src/ssdp/$(DEPDIR)/libupnp_la-ssdp_ctrlpt.Plo"; else rm -f "src/ssdp/$(DEPDIR)/libupnp_la-ssdp_ctrlpt.Tpo"; exit 1; fi
  63233. +@am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libupnp_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT src/ssdp/libupnp_la-ssdp_ctrlpt.lo -MD -MP -MF src/ssdp/$(DEPDIR)/libupnp_la-ssdp_ctrlpt.Tpo -c -o src/ssdp/libupnp_la-ssdp_ctrlpt.lo `test -f 'src/ssdp/ssdp_ctrlpt.c' || echo '$(srcdir)/'`src/ssdp/ssdp_ctrlpt.c
  63234. +@am__fastdepCC_TRUE@ $(am__mv) src/ssdp/$(DEPDIR)/libupnp_la-ssdp_ctrlpt.Tpo src/ssdp/$(DEPDIR)/libupnp_la-ssdp_ctrlpt.Plo
  63235. @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='src/ssdp/ssdp_ctrlpt.c' object='src/ssdp/libupnp_la-ssdp_ctrlpt.lo' libtool=yes @AMDEPBACKSLASH@
  63236. @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
  63237. -@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libupnp_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o src/ssdp/libupnp_la-ssdp_ctrlpt.lo `test -f 'src/ssdp/ssdp_ctrlpt.c' || echo '$(srcdir)/'`src/ssdp/ssdp_ctrlpt.c
  63238. +@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libupnp_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o src/ssdp/libupnp_la-ssdp_ctrlpt.lo `test -f 'src/ssdp/ssdp_ctrlpt.c' || echo '$(srcdir)/'`src/ssdp/ssdp_ctrlpt.c
  63239. src/ssdp/libupnp_la-ssdp_server.lo: src/ssdp/ssdp_server.c
  63240. -@am__fastdepCC_TRUE@ if $(LIBTOOL) --tag=CC --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libupnp_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT src/ssdp/libupnp_la-ssdp_server.lo -MD -MP -MF "src/ssdp/$(DEPDIR)/libupnp_la-ssdp_server.Tpo" -c -o src/ssdp/libupnp_la-ssdp_server.lo `test -f 'src/ssdp/ssdp_server.c' || echo '$(srcdir)/'`src/ssdp/ssdp_server.c; \
  63241. -@am__fastdepCC_TRUE@ then mv -f "src/ssdp/$(DEPDIR)/libupnp_la-ssdp_server.Tpo" "src/ssdp/$(DEPDIR)/libupnp_la-ssdp_server.Plo"; else rm -f "src/ssdp/$(DEPDIR)/libupnp_la-ssdp_server.Tpo"; exit 1; fi
  63242. +@am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libupnp_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT src/ssdp/libupnp_la-ssdp_server.lo -MD -MP -MF src/ssdp/$(DEPDIR)/libupnp_la-ssdp_server.Tpo -c -o src/ssdp/libupnp_la-ssdp_server.lo `test -f 'src/ssdp/ssdp_server.c' || echo '$(srcdir)/'`src/ssdp/ssdp_server.c
  63243. +@am__fastdepCC_TRUE@ $(am__mv) src/ssdp/$(DEPDIR)/libupnp_la-ssdp_server.Tpo src/ssdp/$(DEPDIR)/libupnp_la-ssdp_server.Plo
  63244. @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='src/ssdp/ssdp_server.c' object='src/ssdp/libupnp_la-ssdp_server.lo' libtool=yes @AMDEPBACKSLASH@
  63245. @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
  63246. -@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libupnp_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o src/ssdp/libupnp_la-ssdp_server.lo `test -f 'src/ssdp/ssdp_server.c' || echo '$(srcdir)/'`src/ssdp/ssdp_server.c
  63247. +@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libupnp_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o src/ssdp/libupnp_la-ssdp_server.lo `test -f 'src/ssdp/ssdp_server.c' || echo '$(srcdir)/'`src/ssdp/ssdp_server.c
  63248. src/soap/libupnp_la-soap_device.lo: src/soap/soap_device.c
  63249. -@am__fastdepCC_TRUE@ if $(LIBTOOL) --tag=CC --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libupnp_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT src/soap/libupnp_la-soap_device.lo -MD -MP -MF "src/soap/$(DEPDIR)/libupnp_la-soap_device.Tpo" -c -o src/soap/libupnp_la-soap_device.lo `test -f 'src/soap/soap_device.c' || echo '$(srcdir)/'`src/soap/soap_device.c; \
  63250. -@am__fastdepCC_TRUE@ then mv -f "src/soap/$(DEPDIR)/libupnp_la-soap_device.Tpo" "src/soap/$(DEPDIR)/libupnp_la-soap_device.Plo"; else rm -f "src/soap/$(DEPDIR)/libupnp_la-soap_device.Tpo"; exit 1; fi
  63251. +@am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libupnp_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT src/soap/libupnp_la-soap_device.lo -MD -MP -MF src/soap/$(DEPDIR)/libupnp_la-soap_device.Tpo -c -o src/soap/libupnp_la-soap_device.lo `test -f 'src/soap/soap_device.c' || echo '$(srcdir)/'`src/soap/soap_device.c
  63252. +@am__fastdepCC_TRUE@ $(am__mv) src/soap/$(DEPDIR)/libupnp_la-soap_device.Tpo src/soap/$(DEPDIR)/libupnp_la-soap_device.Plo
  63253. @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='src/soap/soap_device.c' object='src/soap/libupnp_la-soap_device.lo' libtool=yes @AMDEPBACKSLASH@
  63254. @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
  63255. -@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libupnp_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o src/soap/libupnp_la-soap_device.lo `test -f 'src/soap/soap_device.c' || echo '$(srcdir)/'`src/soap/soap_device.c
  63256. +@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libupnp_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o src/soap/libupnp_la-soap_device.lo `test -f 'src/soap/soap_device.c' || echo '$(srcdir)/'`src/soap/soap_device.c
  63257. src/soap/libupnp_la-soap_ctrlpt.lo: src/soap/soap_ctrlpt.c
  63258. -@am__fastdepCC_TRUE@ if $(LIBTOOL) --tag=CC --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libupnp_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT src/soap/libupnp_la-soap_ctrlpt.lo -MD -MP -MF "src/soap/$(DEPDIR)/libupnp_la-soap_ctrlpt.Tpo" -c -o src/soap/libupnp_la-soap_ctrlpt.lo `test -f 'src/soap/soap_ctrlpt.c' || echo '$(srcdir)/'`src/soap/soap_ctrlpt.c; \
  63259. -@am__fastdepCC_TRUE@ then mv -f "src/soap/$(DEPDIR)/libupnp_la-soap_ctrlpt.Tpo" "src/soap/$(DEPDIR)/libupnp_la-soap_ctrlpt.Plo"; else rm -f "src/soap/$(DEPDIR)/libupnp_la-soap_ctrlpt.Tpo"; exit 1; fi
  63260. +@am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libupnp_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT src/soap/libupnp_la-soap_ctrlpt.lo -MD -MP -MF src/soap/$(DEPDIR)/libupnp_la-soap_ctrlpt.Tpo -c -o src/soap/libupnp_la-soap_ctrlpt.lo `test -f 'src/soap/soap_ctrlpt.c' || echo '$(srcdir)/'`src/soap/soap_ctrlpt.c
  63261. +@am__fastdepCC_TRUE@ $(am__mv) src/soap/$(DEPDIR)/libupnp_la-soap_ctrlpt.Tpo src/soap/$(DEPDIR)/libupnp_la-soap_ctrlpt.Plo
  63262. @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='src/soap/soap_ctrlpt.c' object='src/soap/libupnp_la-soap_ctrlpt.lo' libtool=yes @AMDEPBACKSLASH@
  63263. @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
  63264. -@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libupnp_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o src/soap/libupnp_la-soap_ctrlpt.lo `test -f 'src/soap/soap_ctrlpt.c' || echo '$(srcdir)/'`src/soap/soap_ctrlpt.c
  63265. +@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libupnp_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o src/soap/libupnp_la-soap_ctrlpt.lo `test -f 'src/soap/soap_ctrlpt.c' || echo '$(srcdir)/'`src/soap/soap_ctrlpt.c
  63266. src/soap/libupnp_la-soap_common.lo: src/soap/soap_common.c
  63267. -@am__fastdepCC_TRUE@ if $(LIBTOOL) --tag=CC --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libupnp_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT src/soap/libupnp_la-soap_common.lo -MD -MP -MF "src/soap/$(DEPDIR)/libupnp_la-soap_common.Tpo" -c -o src/soap/libupnp_la-soap_common.lo `test -f 'src/soap/soap_common.c' || echo '$(srcdir)/'`src/soap/soap_common.c; \
  63268. -@am__fastdepCC_TRUE@ then mv -f "src/soap/$(DEPDIR)/libupnp_la-soap_common.Tpo" "src/soap/$(DEPDIR)/libupnp_la-soap_common.Plo"; else rm -f "src/soap/$(DEPDIR)/libupnp_la-soap_common.Tpo"; exit 1; fi
  63269. +@am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libupnp_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT src/soap/libupnp_la-soap_common.lo -MD -MP -MF src/soap/$(DEPDIR)/libupnp_la-soap_common.Tpo -c -o src/soap/libupnp_la-soap_common.lo `test -f 'src/soap/soap_common.c' || echo '$(srcdir)/'`src/soap/soap_common.c
  63270. +@am__fastdepCC_TRUE@ $(am__mv) src/soap/$(DEPDIR)/libupnp_la-soap_common.Tpo src/soap/$(DEPDIR)/libupnp_la-soap_common.Plo
  63271. @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='src/soap/soap_common.c' object='src/soap/libupnp_la-soap_common.lo' libtool=yes @AMDEPBACKSLASH@
  63272. @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
  63273. -@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libupnp_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o src/soap/libupnp_la-soap_common.lo `test -f 'src/soap/soap_common.c' || echo '$(srcdir)/'`src/soap/soap_common.c
  63274. +@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libupnp_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o src/soap/libupnp_la-soap_common.lo `test -f 'src/soap/soap_common.c' || echo '$(srcdir)/'`src/soap/soap_common.c
  63275. src/genlib/miniserver/libupnp_la-miniserver.lo: src/genlib/miniserver/miniserver.c
  63276. -@am__fastdepCC_TRUE@ if $(LIBTOOL) --tag=CC --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libupnp_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT src/genlib/miniserver/libupnp_la-miniserver.lo -MD -MP -MF "src/genlib/miniserver/$(DEPDIR)/libupnp_la-miniserver.Tpo" -c -o src/genlib/miniserver/libupnp_la-miniserver.lo `test -f 'src/genlib/miniserver/miniserver.c' || echo '$(srcdir)/'`src/genlib/miniserver/miniserver.c; \
  63277. -@am__fastdepCC_TRUE@ then mv -f "src/genlib/miniserver/$(DEPDIR)/libupnp_la-miniserver.Tpo" "src/genlib/miniserver/$(DEPDIR)/libupnp_la-miniserver.Plo"; else rm -f "src/genlib/miniserver/$(DEPDIR)/libupnp_la-miniserver.Tpo"; exit 1; fi
  63278. +@am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libupnp_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT src/genlib/miniserver/libupnp_la-miniserver.lo -MD -MP -MF src/genlib/miniserver/$(DEPDIR)/libupnp_la-miniserver.Tpo -c -o src/genlib/miniserver/libupnp_la-miniserver.lo `test -f 'src/genlib/miniserver/miniserver.c' || echo '$(srcdir)/'`src/genlib/miniserver/miniserver.c
  63279. +@am__fastdepCC_TRUE@ $(am__mv) src/genlib/miniserver/$(DEPDIR)/libupnp_la-miniserver.Tpo src/genlib/miniserver/$(DEPDIR)/libupnp_la-miniserver.Plo
  63280. @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='src/genlib/miniserver/miniserver.c' object='src/genlib/miniserver/libupnp_la-miniserver.lo' libtool=yes @AMDEPBACKSLASH@
  63281. @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
  63282. -@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libupnp_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o src/genlib/miniserver/libupnp_la-miniserver.lo `test -f 'src/genlib/miniserver/miniserver.c' || echo '$(srcdir)/'`src/genlib/miniserver/miniserver.c
  63283. +@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libupnp_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o src/genlib/miniserver/libupnp_la-miniserver.lo `test -f 'src/genlib/miniserver/miniserver.c' || echo '$(srcdir)/'`src/genlib/miniserver/miniserver.c
  63284. src/genlib/service_table/libupnp_la-service_table.lo: src/genlib/service_table/service_table.c
  63285. -@am__fastdepCC_TRUE@ if $(LIBTOOL) --tag=CC --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libupnp_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT src/genlib/service_table/libupnp_la-service_table.lo -MD -MP -MF "src/genlib/service_table/$(DEPDIR)/libupnp_la-service_table.Tpo" -c -o src/genlib/service_table/libupnp_la-service_table.lo `test -f 'src/genlib/service_table/service_table.c' || echo '$(srcdir)/'`src/genlib/service_table/service_table.c; \
  63286. -@am__fastdepCC_TRUE@ then mv -f "src/genlib/service_table/$(DEPDIR)/libupnp_la-service_table.Tpo" "src/genlib/service_table/$(DEPDIR)/libupnp_la-service_table.Plo"; else rm -f "src/genlib/service_table/$(DEPDIR)/libupnp_la-service_table.Tpo"; exit 1; fi
  63287. +@am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libupnp_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT src/genlib/service_table/libupnp_la-service_table.lo -MD -MP -MF src/genlib/service_table/$(DEPDIR)/libupnp_la-service_table.Tpo -c -o src/genlib/service_table/libupnp_la-service_table.lo `test -f 'src/genlib/service_table/service_table.c' || echo '$(srcdir)/'`src/genlib/service_table/service_table.c
  63288. +@am__fastdepCC_TRUE@ $(am__mv) src/genlib/service_table/$(DEPDIR)/libupnp_la-service_table.Tpo src/genlib/service_table/$(DEPDIR)/libupnp_la-service_table.Plo
  63289. @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='src/genlib/service_table/service_table.c' object='src/genlib/service_table/libupnp_la-service_table.lo' libtool=yes @AMDEPBACKSLASH@
  63290. @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
  63291. -@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libupnp_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o src/genlib/service_table/libupnp_la-service_table.lo `test -f 'src/genlib/service_table/service_table.c' || echo '$(srcdir)/'`src/genlib/service_table/service_table.c
  63292. +@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libupnp_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o src/genlib/service_table/libupnp_la-service_table.lo `test -f 'src/genlib/service_table/service_table.c' || echo '$(srcdir)/'`src/genlib/service_table/service_table.c
  63293. src/genlib/util/libupnp_la-membuffer.lo: src/genlib/util/membuffer.c
  63294. -@am__fastdepCC_TRUE@ if $(LIBTOOL) --tag=CC --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libupnp_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT src/genlib/util/libupnp_la-membuffer.lo -MD -MP -MF "src/genlib/util/$(DEPDIR)/libupnp_la-membuffer.Tpo" -c -o src/genlib/util/libupnp_la-membuffer.lo `test -f 'src/genlib/util/membuffer.c' || echo '$(srcdir)/'`src/genlib/util/membuffer.c; \
  63295. -@am__fastdepCC_TRUE@ then mv -f "src/genlib/util/$(DEPDIR)/libupnp_la-membuffer.Tpo" "src/genlib/util/$(DEPDIR)/libupnp_la-membuffer.Plo"; else rm -f "src/genlib/util/$(DEPDIR)/libupnp_la-membuffer.Tpo"; exit 1; fi
  63296. +@am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libupnp_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT src/genlib/util/libupnp_la-membuffer.lo -MD -MP -MF src/genlib/util/$(DEPDIR)/libupnp_la-membuffer.Tpo -c -o src/genlib/util/libupnp_la-membuffer.lo `test -f 'src/genlib/util/membuffer.c' || echo '$(srcdir)/'`src/genlib/util/membuffer.c
  63297. +@am__fastdepCC_TRUE@ $(am__mv) src/genlib/util/$(DEPDIR)/libupnp_la-membuffer.Tpo src/genlib/util/$(DEPDIR)/libupnp_la-membuffer.Plo
  63298. @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='src/genlib/util/membuffer.c' object='src/genlib/util/libupnp_la-membuffer.lo' libtool=yes @AMDEPBACKSLASH@
  63299. @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
  63300. -@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libupnp_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o src/genlib/util/libupnp_la-membuffer.lo `test -f 'src/genlib/util/membuffer.c' || echo '$(srcdir)/'`src/genlib/util/membuffer.c
  63301. +@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libupnp_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o src/genlib/util/libupnp_la-membuffer.lo `test -f 'src/genlib/util/membuffer.c' || echo '$(srcdir)/'`src/genlib/util/membuffer.c
  63302. src/genlib/util/libupnp_la-strintmap.lo: src/genlib/util/strintmap.c
  63303. -@am__fastdepCC_TRUE@ if $(LIBTOOL) --tag=CC --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libupnp_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT src/genlib/util/libupnp_la-strintmap.lo -MD -MP -MF "src/genlib/util/$(DEPDIR)/libupnp_la-strintmap.Tpo" -c -o src/genlib/util/libupnp_la-strintmap.lo `test -f 'src/genlib/util/strintmap.c' || echo '$(srcdir)/'`src/genlib/util/strintmap.c; \
  63304. -@am__fastdepCC_TRUE@ then mv -f "src/genlib/util/$(DEPDIR)/libupnp_la-strintmap.Tpo" "src/genlib/util/$(DEPDIR)/libupnp_la-strintmap.Plo"; else rm -f "src/genlib/util/$(DEPDIR)/libupnp_la-strintmap.Tpo"; exit 1; fi
  63305. +@am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libupnp_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT src/genlib/util/libupnp_la-strintmap.lo -MD -MP -MF src/genlib/util/$(DEPDIR)/libupnp_la-strintmap.Tpo -c -o src/genlib/util/libupnp_la-strintmap.lo `test -f 'src/genlib/util/strintmap.c' || echo '$(srcdir)/'`src/genlib/util/strintmap.c
  63306. +@am__fastdepCC_TRUE@ $(am__mv) src/genlib/util/$(DEPDIR)/libupnp_la-strintmap.Tpo src/genlib/util/$(DEPDIR)/libupnp_la-strintmap.Plo
  63307. @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='src/genlib/util/strintmap.c' object='src/genlib/util/libupnp_la-strintmap.lo' libtool=yes @AMDEPBACKSLASH@
  63308. @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
  63309. -@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libupnp_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o src/genlib/util/libupnp_la-strintmap.lo `test -f 'src/genlib/util/strintmap.c' || echo '$(srcdir)/'`src/genlib/util/strintmap.c
  63310. +@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libupnp_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o src/genlib/util/libupnp_la-strintmap.lo `test -f 'src/genlib/util/strintmap.c' || echo '$(srcdir)/'`src/genlib/util/strintmap.c
  63311. src/genlib/util/libupnp_la-upnp_timeout.lo: src/genlib/util/upnp_timeout.c
  63312. -@am__fastdepCC_TRUE@ if $(LIBTOOL) --tag=CC --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libupnp_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT src/genlib/util/libupnp_la-upnp_timeout.lo -MD -MP -MF "src/genlib/util/$(DEPDIR)/libupnp_la-upnp_timeout.Tpo" -c -o src/genlib/util/libupnp_la-upnp_timeout.lo `test -f 'src/genlib/util/upnp_timeout.c' || echo '$(srcdir)/'`src/genlib/util/upnp_timeout.c; \
  63313. -@am__fastdepCC_TRUE@ then mv -f "src/genlib/util/$(DEPDIR)/libupnp_la-upnp_timeout.Tpo" "src/genlib/util/$(DEPDIR)/libupnp_la-upnp_timeout.Plo"; else rm -f "src/genlib/util/$(DEPDIR)/libupnp_la-upnp_timeout.Tpo"; exit 1; fi
  63314. +@am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libupnp_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT src/genlib/util/libupnp_la-upnp_timeout.lo -MD -MP -MF src/genlib/util/$(DEPDIR)/libupnp_la-upnp_timeout.Tpo -c -o src/genlib/util/libupnp_la-upnp_timeout.lo `test -f 'src/genlib/util/upnp_timeout.c' || echo '$(srcdir)/'`src/genlib/util/upnp_timeout.c
  63315. +@am__fastdepCC_TRUE@ $(am__mv) src/genlib/util/$(DEPDIR)/libupnp_la-upnp_timeout.Tpo src/genlib/util/$(DEPDIR)/libupnp_la-upnp_timeout.Plo
  63316. @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='src/genlib/util/upnp_timeout.c' object='src/genlib/util/libupnp_la-upnp_timeout.lo' libtool=yes @AMDEPBACKSLASH@
  63317. @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
  63318. -@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libupnp_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o src/genlib/util/libupnp_la-upnp_timeout.lo `test -f 'src/genlib/util/upnp_timeout.c' || echo '$(srcdir)/'`src/genlib/util/upnp_timeout.c
  63319. +@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libupnp_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o src/genlib/util/libupnp_la-upnp_timeout.lo `test -f 'src/genlib/util/upnp_timeout.c' || echo '$(srcdir)/'`src/genlib/util/upnp_timeout.c
  63320. src/genlib/util/libupnp_la-util.lo: src/genlib/util/util.c
  63321. -@am__fastdepCC_TRUE@ if $(LIBTOOL) --tag=CC --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libupnp_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT src/genlib/util/libupnp_la-util.lo -MD -MP -MF "src/genlib/util/$(DEPDIR)/libupnp_la-util.Tpo" -c -o src/genlib/util/libupnp_la-util.lo `test -f 'src/genlib/util/util.c' || echo '$(srcdir)/'`src/genlib/util/util.c; \
  63322. -@am__fastdepCC_TRUE@ then mv -f "src/genlib/util/$(DEPDIR)/libupnp_la-util.Tpo" "src/genlib/util/$(DEPDIR)/libupnp_la-util.Plo"; else rm -f "src/genlib/util/$(DEPDIR)/libupnp_la-util.Tpo"; exit 1; fi
  63323. +@am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libupnp_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT src/genlib/util/libupnp_la-util.lo -MD -MP -MF src/genlib/util/$(DEPDIR)/libupnp_la-util.Tpo -c -o src/genlib/util/libupnp_la-util.lo `test -f 'src/genlib/util/util.c' || echo '$(srcdir)/'`src/genlib/util/util.c
  63324. +@am__fastdepCC_TRUE@ $(am__mv) src/genlib/util/$(DEPDIR)/libupnp_la-util.Tpo src/genlib/util/$(DEPDIR)/libupnp_la-util.Plo
  63325. @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='src/genlib/util/util.c' object='src/genlib/util/libupnp_la-util.lo' libtool=yes @AMDEPBACKSLASH@
  63326. @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
  63327. -@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libupnp_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o src/genlib/util/libupnp_la-util.lo `test -f 'src/genlib/util/util.c' || echo '$(srcdir)/'`src/genlib/util/util.c
  63328. +@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libupnp_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o src/genlib/util/libupnp_la-util.lo `test -f 'src/genlib/util/util.c' || echo '$(srcdir)/'`src/genlib/util/util.c
  63329. src/genlib/client_table/libupnp_la-client_table.lo: src/genlib/client_table/client_table.c
  63330. -@am__fastdepCC_TRUE@ if $(LIBTOOL) --tag=CC --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libupnp_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT src/genlib/client_table/libupnp_la-client_table.lo -MD -MP -MF "src/genlib/client_table/$(DEPDIR)/libupnp_la-client_table.Tpo" -c -o src/genlib/client_table/libupnp_la-client_table.lo `test -f 'src/genlib/client_table/client_table.c' || echo '$(srcdir)/'`src/genlib/client_table/client_table.c; \
  63331. -@am__fastdepCC_TRUE@ then mv -f "src/genlib/client_table/$(DEPDIR)/libupnp_la-client_table.Tpo" "src/genlib/client_table/$(DEPDIR)/libupnp_la-client_table.Plo"; else rm -f "src/genlib/client_table/$(DEPDIR)/libupnp_la-client_table.Tpo"; exit 1; fi
  63332. +@am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libupnp_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT src/genlib/client_table/libupnp_la-client_table.lo -MD -MP -MF src/genlib/client_table/$(DEPDIR)/libupnp_la-client_table.Tpo -c -o src/genlib/client_table/libupnp_la-client_table.lo `test -f 'src/genlib/client_table/client_table.c' || echo '$(srcdir)/'`src/genlib/client_table/client_table.c
  63333. +@am__fastdepCC_TRUE@ $(am__mv) src/genlib/client_table/$(DEPDIR)/libupnp_la-client_table.Tpo src/genlib/client_table/$(DEPDIR)/libupnp_la-client_table.Plo
  63334. @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='src/genlib/client_table/client_table.c' object='src/genlib/client_table/libupnp_la-client_table.lo' libtool=yes @AMDEPBACKSLASH@
  63335. @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
  63336. -@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libupnp_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o src/genlib/client_table/libupnp_la-client_table.lo `test -f 'src/genlib/client_table/client_table.c' || echo '$(srcdir)/'`src/genlib/client_table/client_table.c
  63337. +@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libupnp_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o src/genlib/client_table/libupnp_la-client_table.lo `test -f 'src/genlib/client_table/client_table.c' || echo '$(srcdir)/'`src/genlib/client_table/client_table.c
  63338. src/genlib/net/libupnp_la-sock.lo: src/genlib/net/sock.c
  63339. -@am__fastdepCC_TRUE@ if $(LIBTOOL) --tag=CC --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libupnp_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT src/genlib/net/libupnp_la-sock.lo -MD -MP -MF "src/genlib/net/$(DEPDIR)/libupnp_la-sock.Tpo" -c -o src/genlib/net/libupnp_la-sock.lo `test -f 'src/genlib/net/sock.c' || echo '$(srcdir)/'`src/genlib/net/sock.c; \
  63340. -@am__fastdepCC_TRUE@ then mv -f "src/genlib/net/$(DEPDIR)/libupnp_la-sock.Tpo" "src/genlib/net/$(DEPDIR)/libupnp_la-sock.Plo"; else rm -f "src/genlib/net/$(DEPDIR)/libupnp_la-sock.Tpo"; exit 1; fi
  63341. +@am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libupnp_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT src/genlib/net/libupnp_la-sock.lo -MD -MP -MF src/genlib/net/$(DEPDIR)/libupnp_la-sock.Tpo -c -o src/genlib/net/libupnp_la-sock.lo `test -f 'src/genlib/net/sock.c' || echo '$(srcdir)/'`src/genlib/net/sock.c
  63342. +@am__fastdepCC_TRUE@ $(am__mv) src/genlib/net/$(DEPDIR)/libupnp_la-sock.Tpo src/genlib/net/$(DEPDIR)/libupnp_la-sock.Plo
  63343. @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='src/genlib/net/sock.c' object='src/genlib/net/libupnp_la-sock.lo' libtool=yes @AMDEPBACKSLASH@
  63344. @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
  63345. -@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libupnp_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o src/genlib/net/libupnp_la-sock.lo `test -f 'src/genlib/net/sock.c' || echo '$(srcdir)/'`src/genlib/net/sock.c
  63346. +@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libupnp_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o src/genlib/net/libupnp_la-sock.lo `test -f 'src/genlib/net/sock.c' || echo '$(srcdir)/'`src/genlib/net/sock.c
  63347. src/genlib/net/http/libupnp_la-httpparser.lo: src/genlib/net/http/httpparser.c
  63348. -@am__fastdepCC_TRUE@ if $(LIBTOOL) --tag=CC --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libupnp_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT src/genlib/net/http/libupnp_la-httpparser.lo -MD -MP -MF "src/genlib/net/http/$(DEPDIR)/libupnp_la-httpparser.Tpo" -c -o src/genlib/net/http/libupnp_la-httpparser.lo `test -f 'src/genlib/net/http/httpparser.c' || echo '$(srcdir)/'`src/genlib/net/http/httpparser.c; \
  63349. -@am__fastdepCC_TRUE@ then mv -f "src/genlib/net/http/$(DEPDIR)/libupnp_la-httpparser.Tpo" "src/genlib/net/http/$(DEPDIR)/libupnp_la-httpparser.Plo"; else rm -f "src/genlib/net/http/$(DEPDIR)/libupnp_la-httpparser.Tpo"; exit 1; fi
  63350. +@am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libupnp_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT src/genlib/net/http/libupnp_la-httpparser.lo -MD -MP -MF src/genlib/net/http/$(DEPDIR)/libupnp_la-httpparser.Tpo -c -o src/genlib/net/http/libupnp_la-httpparser.lo `test -f 'src/genlib/net/http/httpparser.c' || echo '$(srcdir)/'`src/genlib/net/http/httpparser.c
  63351. +@am__fastdepCC_TRUE@ $(am__mv) src/genlib/net/http/$(DEPDIR)/libupnp_la-httpparser.Tpo src/genlib/net/http/$(DEPDIR)/libupnp_la-httpparser.Plo
  63352. @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='src/genlib/net/http/httpparser.c' object='src/genlib/net/http/libupnp_la-httpparser.lo' libtool=yes @AMDEPBACKSLASH@
  63353. @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
  63354. -@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libupnp_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o src/genlib/net/http/libupnp_la-httpparser.lo `test -f 'src/genlib/net/http/httpparser.c' || echo '$(srcdir)/'`src/genlib/net/http/httpparser.c
  63355. +@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libupnp_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o src/genlib/net/http/libupnp_la-httpparser.lo `test -f 'src/genlib/net/http/httpparser.c' || echo '$(srcdir)/'`src/genlib/net/http/httpparser.c
  63356. src/genlib/net/http/libupnp_la-httpreadwrite.lo: src/genlib/net/http/httpreadwrite.c
  63357. -@am__fastdepCC_TRUE@ if $(LIBTOOL) --tag=CC --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libupnp_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT src/genlib/net/http/libupnp_la-httpreadwrite.lo -MD -MP -MF "src/genlib/net/http/$(DEPDIR)/libupnp_la-httpreadwrite.Tpo" -c -o src/genlib/net/http/libupnp_la-httpreadwrite.lo `test -f 'src/genlib/net/http/httpreadwrite.c' || echo '$(srcdir)/'`src/genlib/net/http/httpreadwrite.c; \
  63358. -@am__fastdepCC_TRUE@ then mv -f "src/genlib/net/http/$(DEPDIR)/libupnp_la-httpreadwrite.Tpo" "src/genlib/net/http/$(DEPDIR)/libupnp_la-httpreadwrite.Plo"; else rm -f "src/genlib/net/http/$(DEPDIR)/libupnp_la-httpreadwrite.Tpo"; exit 1; fi
  63359. +@am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libupnp_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT src/genlib/net/http/libupnp_la-httpreadwrite.lo -MD -MP -MF src/genlib/net/http/$(DEPDIR)/libupnp_la-httpreadwrite.Tpo -c -o src/genlib/net/http/libupnp_la-httpreadwrite.lo `test -f 'src/genlib/net/http/httpreadwrite.c' || echo '$(srcdir)/'`src/genlib/net/http/httpreadwrite.c
  63360. +@am__fastdepCC_TRUE@ $(am__mv) src/genlib/net/http/$(DEPDIR)/libupnp_la-httpreadwrite.Tpo src/genlib/net/http/$(DEPDIR)/libupnp_la-httpreadwrite.Plo
  63361. @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='src/genlib/net/http/httpreadwrite.c' object='src/genlib/net/http/libupnp_la-httpreadwrite.lo' libtool=yes @AMDEPBACKSLASH@
  63362. @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
  63363. -@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libupnp_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o src/genlib/net/http/libupnp_la-httpreadwrite.lo `test -f 'src/genlib/net/http/httpreadwrite.c' || echo '$(srcdir)/'`src/genlib/net/http/httpreadwrite.c
  63364. +@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libupnp_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o src/genlib/net/http/libupnp_la-httpreadwrite.lo `test -f 'src/genlib/net/http/httpreadwrite.c' || echo '$(srcdir)/'`src/genlib/net/http/httpreadwrite.c
  63365. src/genlib/net/http/libupnp_la-statcodes.lo: src/genlib/net/http/statcodes.c
  63366. -@am__fastdepCC_TRUE@ if $(LIBTOOL) --tag=CC --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libupnp_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT src/genlib/net/http/libupnp_la-statcodes.lo -MD -MP -MF "src/genlib/net/http/$(DEPDIR)/libupnp_la-statcodes.Tpo" -c -o src/genlib/net/http/libupnp_la-statcodes.lo `test -f 'src/genlib/net/http/statcodes.c' || echo '$(srcdir)/'`src/genlib/net/http/statcodes.c; \
  63367. -@am__fastdepCC_TRUE@ then mv -f "src/genlib/net/http/$(DEPDIR)/libupnp_la-statcodes.Tpo" "src/genlib/net/http/$(DEPDIR)/libupnp_la-statcodes.Plo"; else rm -f "src/genlib/net/http/$(DEPDIR)/libupnp_la-statcodes.Tpo"; exit 1; fi
  63368. +@am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libupnp_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT src/genlib/net/http/libupnp_la-statcodes.lo -MD -MP -MF src/genlib/net/http/$(DEPDIR)/libupnp_la-statcodes.Tpo -c -o src/genlib/net/http/libupnp_la-statcodes.lo `test -f 'src/genlib/net/http/statcodes.c' || echo '$(srcdir)/'`src/genlib/net/http/statcodes.c
  63369. +@am__fastdepCC_TRUE@ $(am__mv) src/genlib/net/http/$(DEPDIR)/libupnp_la-statcodes.Tpo src/genlib/net/http/$(DEPDIR)/libupnp_la-statcodes.Plo
  63370. @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='src/genlib/net/http/statcodes.c' object='src/genlib/net/http/libupnp_la-statcodes.lo' libtool=yes @AMDEPBACKSLASH@
  63371. @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
  63372. -@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libupnp_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o src/genlib/net/http/libupnp_la-statcodes.lo `test -f 'src/genlib/net/http/statcodes.c' || echo '$(srcdir)/'`src/genlib/net/http/statcodes.c
  63373. +@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libupnp_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o src/genlib/net/http/libupnp_la-statcodes.lo `test -f 'src/genlib/net/http/statcodes.c' || echo '$(srcdir)/'`src/genlib/net/http/statcodes.c
  63374. src/genlib/net/http/libupnp_la-webserver.lo: src/genlib/net/http/webserver.c
  63375. -@am__fastdepCC_TRUE@ if $(LIBTOOL) --tag=CC --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libupnp_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT src/genlib/net/http/libupnp_la-webserver.lo -MD -MP -MF "src/genlib/net/http/$(DEPDIR)/libupnp_la-webserver.Tpo" -c -o src/genlib/net/http/libupnp_la-webserver.lo `test -f 'src/genlib/net/http/webserver.c' || echo '$(srcdir)/'`src/genlib/net/http/webserver.c; \
  63376. -@am__fastdepCC_TRUE@ then mv -f "src/genlib/net/http/$(DEPDIR)/libupnp_la-webserver.Tpo" "src/genlib/net/http/$(DEPDIR)/libupnp_la-webserver.Plo"; else rm -f "src/genlib/net/http/$(DEPDIR)/libupnp_la-webserver.Tpo"; exit 1; fi
  63377. +@am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libupnp_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT src/genlib/net/http/libupnp_la-webserver.lo -MD -MP -MF src/genlib/net/http/$(DEPDIR)/libupnp_la-webserver.Tpo -c -o src/genlib/net/http/libupnp_la-webserver.lo `test -f 'src/genlib/net/http/webserver.c' || echo '$(srcdir)/'`src/genlib/net/http/webserver.c
  63378. +@am__fastdepCC_TRUE@ $(am__mv) src/genlib/net/http/$(DEPDIR)/libupnp_la-webserver.Tpo src/genlib/net/http/$(DEPDIR)/libupnp_la-webserver.Plo
  63379. @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='src/genlib/net/http/webserver.c' object='src/genlib/net/http/libupnp_la-webserver.lo' libtool=yes @AMDEPBACKSLASH@
  63380. @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
  63381. -@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libupnp_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o src/genlib/net/http/libupnp_la-webserver.lo `test -f 'src/genlib/net/http/webserver.c' || echo '$(srcdir)/'`src/genlib/net/http/webserver.c
  63382. +@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libupnp_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o src/genlib/net/http/libupnp_la-webserver.lo `test -f 'src/genlib/net/http/webserver.c' || echo '$(srcdir)/'`src/genlib/net/http/webserver.c
  63383. src/genlib/net/http/libupnp_la-parsetools.lo: src/genlib/net/http/parsetools.c
  63384. -@am__fastdepCC_TRUE@ if $(LIBTOOL) --tag=CC --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libupnp_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT src/genlib/net/http/libupnp_la-parsetools.lo -MD -MP -MF "src/genlib/net/http/$(DEPDIR)/libupnp_la-parsetools.Tpo" -c -o src/genlib/net/http/libupnp_la-parsetools.lo `test -f 'src/genlib/net/http/parsetools.c' || echo '$(srcdir)/'`src/genlib/net/http/parsetools.c; \
  63385. -@am__fastdepCC_TRUE@ then mv -f "src/genlib/net/http/$(DEPDIR)/libupnp_la-parsetools.Tpo" "src/genlib/net/http/$(DEPDIR)/libupnp_la-parsetools.Plo"; else rm -f "src/genlib/net/http/$(DEPDIR)/libupnp_la-parsetools.Tpo"; exit 1; fi
  63386. +@am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libupnp_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT src/genlib/net/http/libupnp_la-parsetools.lo -MD -MP -MF src/genlib/net/http/$(DEPDIR)/libupnp_la-parsetools.Tpo -c -o src/genlib/net/http/libupnp_la-parsetools.lo `test -f 'src/genlib/net/http/parsetools.c' || echo '$(srcdir)/'`src/genlib/net/http/parsetools.c
  63387. +@am__fastdepCC_TRUE@ $(am__mv) src/genlib/net/http/$(DEPDIR)/libupnp_la-parsetools.Tpo src/genlib/net/http/$(DEPDIR)/libupnp_la-parsetools.Plo
  63388. @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='src/genlib/net/http/parsetools.c' object='src/genlib/net/http/libupnp_la-parsetools.lo' libtool=yes @AMDEPBACKSLASH@
  63389. @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
  63390. -@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libupnp_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o src/genlib/net/http/libupnp_la-parsetools.lo `test -f 'src/genlib/net/http/parsetools.c' || echo '$(srcdir)/'`src/genlib/net/http/parsetools.c
  63391. +@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libupnp_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o src/genlib/net/http/libupnp_la-parsetools.lo `test -f 'src/genlib/net/http/parsetools.c' || echo '$(srcdir)/'`src/genlib/net/http/parsetools.c
  63392. src/genlib/net/uri/libupnp_la-uri.lo: src/genlib/net/uri/uri.c
  63393. -@am__fastdepCC_TRUE@ if $(LIBTOOL) --tag=CC --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libupnp_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT src/genlib/net/uri/libupnp_la-uri.lo -MD -MP -MF "src/genlib/net/uri/$(DEPDIR)/libupnp_la-uri.Tpo" -c -o src/genlib/net/uri/libupnp_la-uri.lo `test -f 'src/genlib/net/uri/uri.c' || echo '$(srcdir)/'`src/genlib/net/uri/uri.c; \
  63394. -@am__fastdepCC_TRUE@ then mv -f "src/genlib/net/uri/$(DEPDIR)/libupnp_la-uri.Tpo" "src/genlib/net/uri/$(DEPDIR)/libupnp_la-uri.Plo"; else rm -f "src/genlib/net/uri/$(DEPDIR)/libupnp_la-uri.Tpo"; exit 1; fi
  63395. +@am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libupnp_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT src/genlib/net/uri/libupnp_la-uri.lo -MD -MP -MF src/genlib/net/uri/$(DEPDIR)/libupnp_la-uri.Tpo -c -o src/genlib/net/uri/libupnp_la-uri.lo `test -f 'src/genlib/net/uri/uri.c' || echo '$(srcdir)/'`src/genlib/net/uri/uri.c
  63396. +@am__fastdepCC_TRUE@ $(am__mv) src/genlib/net/uri/$(DEPDIR)/libupnp_la-uri.Tpo src/genlib/net/uri/$(DEPDIR)/libupnp_la-uri.Plo
  63397. @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='src/genlib/net/uri/uri.c' object='src/genlib/net/uri/libupnp_la-uri.lo' libtool=yes @AMDEPBACKSLASH@
  63398. @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
  63399. -@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libupnp_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o src/genlib/net/uri/libupnp_la-uri.lo `test -f 'src/genlib/net/uri/uri.c' || echo '$(srcdir)/'`src/genlib/net/uri/uri.c
  63400. +@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libupnp_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o src/genlib/net/uri/libupnp_la-uri.lo `test -f 'src/genlib/net/uri/uri.c' || echo '$(srcdir)/'`src/genlib/net/uri/uri.c
  63401. src/gena/libupnp_la-gena_device.lo: src/gena/gena_device.c
  63402. -@am__fastdepCC_TRUE@ if $(LIBTOOL) --tag=CC --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libupnp_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT src/gena/libupnp_la-gena_device.lo -MD -MP -MF "src/gena/$(DEPDIR)/libupnp_la-gena_device.Tpo" -c -o src/gena/libupnp_la-gena_device.lo `test -f 'src/gena/gena_device.c' || echo '$(srcdir)/'`src/gena/gena_device.c; \
  63403. -@am__fastdepCC_TRUE@ then mv -f "src/gena/$(DEPDIR)/libupnp_la-gena_device.Tpo" "src/gena/$(DEPDIR)/libupnp_la-gena_device.Plo"; else rm -f "src/gena/$(DEPDIR)/libupnp_la-gena_device.Tpo"; exit 1; fi
  63404. +@am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libupnp_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT src/gena/libupnp_la-gena_device.lo -MD -MP -MF src/gena/$(DEPDIR)/libupnp_la-gena_device.Tpo -c -o src/gena/libupnp_la-gena_device.lo `test -f 'src/gena/gena_device.c' || echo '$(srcdir)/'`src/gena/gena_device.c
  63405. +@am__fastdepCC_TRUE@ $(am__mv) src/gena/$(DEPDIR)/libupnp_la-gena_device.Tpo src/gena/$(DEPDIR)/libupnp_la-gena_device.Plo
  63406. @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='src/gena/gena_device.c' object='src/gena/libupnp_la-gena_device.lo' libtool=yes @AMDEPBACKSLASH@
  63407. @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
  63408. -@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libupnp_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o src/gena/libupnp_la-gena_device.lo `test -f 'src/gena/gena_device.c' || echo '$(srcdir)/'`src/gena/gena_device.c
  63409. +@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libupnp_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o src/gena/libupnp_la-gena_device.lo `test -f 'src/gena/gena_device.c' || echo '$(srcdir)/'`src/gena/gena_device.c
  63410. src/gena/libupnp_la-gena_ctrlpt.lo: src/gena/gena_ctrlpt.c
  63411. -@am__fastdepCC_TRUE@ if $(LIBTOOL) --tag=CC --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libupnp_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT src/gena/libupnp_la-gena_ctrlpt.lo -MD -MP -MF "src/gena/$(DEPDIR)/libupnp_la-gena_ctrlpt.Tpo" -c -o src/gena/libupnp_la-gena_ctrlpt.lo `test -f 'src/gena/gena_ctrlpt.c' || echo '$(srcdir)/'`src/gena/gena_ctrlpt.c; \
  63412. -@am__fastdepCC_TRUE@ then mv -f "src/gena/$(DEPDIR)/libupnp_la-gena_ctrlpt.Tpo" "src/gena/$(DEPDIR)/libupnp_la-gena_ctrlpt.Plo"; else rm -f "src/gena/$(DEPDIR)/libupnp_la-gena_ctrlpt.Tpo"; exit 1; fi
  63413. +@am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libupnp_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT src/gena/libupnp_la-gena_ctrlpt.lo -MD -MP -MF src/gena/$(DEPDIR)/libupnp_la-gena_ctrlpt.Tpo -c -o src/gena/libupnp_la-gena_ctrlpt.lo `test -f 'src/gena/gena_ctrlpt.c' || echo '$(srcdir)/'`src/gena/gena_ctrlpt.c
  63414. +@am__fastdepCC_TRUE@ $(am__mv) src/gena/$(DEPDIR)/libupnp_la-gena_ctrlpt.Tpo src/gena/$(DEPDIR)/libupnp_la-gena_ctrlpt.Plo
  63415. @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='src/gena/gena_ctrlpt.c' object='src/gena/libupnp_la-gena_ctrlpt.lo' libtool=yes @AMDEPBACKSLASH@
  63416. @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
  63417. -@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libupnp_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o src/gena/libupnp_la-gena_ctrlpt.lo `test -f 'src/gena/gena_ctrlpt.c' || echo '$(srcdir)/'`src/gena/gena_ctrlpt.c
  63418. +@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libupnp_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o src/gena/libupnp_la-gena_ctrlpt.lo `test -f 'src/gena/gena_ctrlpt.c' || echo '$(srcdir)/'`src/gena/gena_ctrlpt.c
  63419. src/gena/libupnp_la-gena_callback2.lo: src/gena/gena_callback2.c
  63420. -@am__fastdepCC_TRUE@ if $(LIBTOOL) --tag=CC --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libupnp_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT src/gena/libupnp_la-gena_callback2.lo -MD -MP -MF "src/gena/$(DEPDIR)/libupnp_la-gena_callback2.Tpo" -c -o src/gena/libupnp_la-gena_callback2.lo `test -f 'src/gena/gena_callback2.c' || echo '$(srcdir)/'`src/gena/gena_callback2.c; \
  63421. -@am__fastdepCC_TRUE@ then mv -f "src/gena/$(DEPDIR)/libupnp_la-gena_callback2.Tpo" "src/gena/$(DEPDIR)/libupnp_la-gena_callback2.Plo"; else rm -f "src/gena/$(DEPDIR)/libupnp_la-gena_callback2.Tpo"; exit 1; fi
  63422. +@am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libupnp_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT src/gena/libupnp_la-gena_callback2.lo -MD -MP -MF src/gena/$(DEPDIR)/libupnp_la-gena_callback2.Tpo -c -o src/gena/libupnp_la-gena_callback2.lo `test -f 'src/gena/gena_callback2.c' || echo '$(srcdir)/'`src/gena/gena_callback2.c
  63423. +@am__fastdepCC_TRUE@ $(am__mv) src/gena/$(DEPDIR)/libupnp_la-gena_callback2.Tpo src/gena/$(DEPDIR)/libupnp_la-gena_callback2.Plo
  63424. @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='src/gena/gena_callback2.c' object='src/gena/libupnp_la-gena_callback2.lo' libtool=yes @AMDEPBACKSLASH@
  63425. @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
  63426. -@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libupnp_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o src/gena/libupnp_la-gena_callback2.lo `test -f 'src/gena/gena_callback2.c' || echo '$(srcdir)/'`src/gena/gena_callback2.c
  63427. +@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libupnp_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o src/gena/libupnp_la-gena_callback2.lo `test -f 'src/gena/gena_callback2.c' || echo '$(srcdir)/'`src/gena/gena_callback2.c
  63428. src/api/libupnp_la-upnpapi.lo: src/api/upnpapi.c
  63429. -@am__fastdepCC_TRUE@ if $(LIBTOOL) --tag=CC --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libupnp_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT src/api/libupnp_la-upnpapi.lo -MD -MP -MF "src/api/$(DEPDIR)/libupnp_la-upnpapi.Tpo" -c -o src/api/libupnp_la-upnpapi.lo `test -f 'src/api/upnpapi.c' || echo '$(srcdir)/'`src/api/upnpapi.c; \
  63430. -@am__fastdepCC_TRUE@ then mv -f "src/api/$(DEPDIR)/libupnp_la-upnpapi.Tpo" "src/api/$(DEPDIR)/libupnp_la-upnpapi.Plo"; else rm -f "src/api/$(DEPDIR)/libupnp_la-upnpapi.Tpo"; exit 1; fi
  63431. +@am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libupnp_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT src/api/libupnp_la-upnpapi.lo -MD -MP -MF src/api/$(DEPDIR)/libupnp_la-upnpapi.Tpo -c -o src/api/libupnp_la-upnpapi.lo `test -f 'src/api/upnpapi.c' || echo '$(srcdir)/'`src/api/upnpapi.c
  63432. +@am__fastdepCC_TRUE@ $(am__mv) src/api/$(DEPDIR)/libupnp_la-upnpapi.Tpo src/api/$(DEPDIR)/libupnp_la-upnpapi.Plo
  63433. @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='src/api/upnpapi.c' object='src/api/libupnp_la-upnpapi.lo' libtool=yes @AMDEPBACKSLASH@
  63434. @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
  63435. -@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libupnp_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o src/api/libupnp_la-upnpapi.lo `test -f 'src/api/upnpapi.c' || echo '$(srcdir)/'`src/api/upnpapi.c
  63436. +@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libupnp_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o src/api/libupnp_la-upnpapi.lo `test -f 'src/api/upnpapi.c' || echo '$(srcdir)/'`src/api/upnpapi.c
  63437. src/api/libupnp_la-upnptools.lo: src/api/upnptools.c
  63438. -@am__fastdepCC_TRUE@ if $(LIBTOOL) --tag=CC --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libupnp_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT src/api/libupnp_la-upnptools.lo -MD -MP -MF "src/api/$(DEPDIR)/libupnp_la-upnptools.Tpo" -c -o src/api/libupnp_la-upnptools.lo `test -f 'src/api/upnptools.c' || echo '$(srcdir)/'`src/api/upnptools.c; \
  63439. -@am__fastdepCC_TRUE@ then mv -f "src/api/$(DEPDIR)/libupnp_la-upnptools.Tpo" "src/api/$(DEPDIR)/libupnp_la-upnptools.Plo"; else rm -f "src/api/$(DEPDIR)/libupnp_la-upnptools.Tpo"; exit 1; fi
  63440. +@am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libupnp_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT src/api/libupnp_la-upnptools.lo -MD -MP -MF src/api/$(DEPDIR)/libupnp_la-upnptools.Tpo -c -o src/api/libupnp_la-upnptools.lo `test -f 'src/api/upnptools.c' || echo '$(srcdir)/'`src/api/upnptools.c
  63441. +@am__fastdepCC_TRUE@ $(am__mv) src/api/$(DEPDIR)/libupnp_la-upnptools.Tpo src/api/$(DEPDIR)/libupnp_la-upnptools.Plo
  63442. @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='src/api/upnptools.c' object='src/api/libupnp_la-upnptools.lo' libtool=yes @AMDEPBACKSLASH@
  63443. @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
  63444. -@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libupnp_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o src/api/libupnp_la-upnptools.lo `test -f 'src/api/upnptools.c' || echo '$(srcdir)/'`src/api/upnptools.c
  63445. +@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libupnp_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o src/api/libupnp_la-upnptools.lo `test -f 'src/api/upnptools.c' || echo '$(srcdir)/'`src/api/upnptools.c
  63446. src/api/libupnp_la-upnpdebug.lo: src/api/upnpdebug.c
  63447. -@am__fastdepCC_TRUE@ if $(LIBTOOL) --tag=CC --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libupnp_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT src/api/libupnp_la-upnpdebug.lo -MD -MP -MF "src/api/$(DEPDIR)/libupnp_la-upnpdebug.Tpo" -c -o src/api/libupnp_la-upnpdebug.lo `test -f 'src/api/upnpdebug.c' || echo '$(srcdir)/'`src/api/upnpdebug.c; \
  63448. -@am__fastdepCC_TRUE@ then mv -f "src/api/$(DEPDIR)/libupnp_la-upnpdebug.Tpo" "src/api/$(DEPDIR)/libupnp_la-upnpdebug.Plo"; else rm -f "src/api/$(DEPDIR)/libupnp_la-upnpdebug.Tpo"; exit 1; fi
  63449. +@am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libupnp_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT src/api/libupnp_la-upnpdebug.lo -MD -MP -MF src/api/$(DEPDIR)/libupnp_la-upnpdebug.Tpo -c -o src/api/libupnp_la-upnpdebug.lo `test -f 'src/api/upnpdebug.c' || echo '$(srcdir)/'`src/api/upnpdebug.c
  63450. +@am__fastdepCC_TRUE@ $(am__mv) src/api/$(DEPDIR)/libupnp_la-upnpdebug.Tpo src/api/$(DEPDIR)/libupnp_la-upnpdebug.Plo
  63451. @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='src/api/upnpdebug.c' object='src/api/libupnp_la-upnpdebug.lo' libtool=yes @AMDEPBACKSLASH@
  63452. @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
  63453. -@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libupnp_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o src/api/libupnp_la-upnpdebug.lo `test -f 'src/api/upnpdebug.c' || echo '$(srcdir)/'`src/api/upnpdebug.c
  63454. +@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libupnp_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o src/api/libupnp_la-upnpdebug.lo `test -f 'src/api/upnpdebug.c' || echo '$(srcdir)/'`src/api/upnpdebug.c
  63455. src/uuid/libupnp_la-md5.lo: src/uuid/md5.c
  63456. -@am__fastdepCC_TRUE@ if $(LIBTOOL) --tag=CC --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libupnp_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT src/uuid/libupnp_la-md5.lo -MD -MP -MF "src/uuid/$(DEPDIR)/libupnp_la-md5.Tpo" -c -o src/uuid/libupnp_la-md5.lo `test -f 'src/uuid/md5.c' || echo '$(srcdir)/'`src/uuid/md5.c; \
  63457. -@am__fastdepCC_TRUE@ then mv -f "src/uuid/$(DEPDIR)/libupnp_la-md5.Tpo" "src/uuid/$(DEPDIR)/libupnp_la-md5.Plo"; else rm -f "src/uuid/$(DEPDIR)/libupnp_la-md5.Tpo"; exit 1; fi
  63458. +@am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libupnp_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT src/uuid/libupnp_la-md5.lo -MD -MP -MF src/uuid/$(DEPDIR)/libupnp_la-md5.Tpo -c -o src/uuid/libupnp_la-md5.lo `test -f 'src/uuid/md5.c' || echo '$(srcdir)/'`src/uuid/md5.c
  63459. +@am__fastdepCC_TRUE@ $(am__mv) src/uuid/$(DEPDIR)/libupnp_la-md5.Tpo src/uuid/$(DEPDIR)/libupnp_la-md5.Plo
  63460. @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='src/uuid/md5.c' object='src/uuid/libupnp_la-md5.lo' libtool=yes @AMDEPBACKSLASH@
  63461. @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
  63462. -@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libupnp_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o src/uuid/libupnp_la-md5.lo `test -f 'src/uuid/md5.c' || echo '$(srcdir)/'`src/uuid/md5.c
  63463. +@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libupnp_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o src/uuid/libupnp_la-md5.lo `test -f 'src/uuid/md5.c' || echo '$(srcdir)/'`src/uuid/md5.c
  63464. src/uuid/libupnp_la-sysdep.lo: src/uuid/sysdep.c
  63465. -@am__fastdepCC_TRUE@ if $(LIBTOOL) --tag=CC --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libupnp_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT src/uuid/libupnp_la-sysdep.lo -MD -MP -MF "src/uuid/$(DEPDIR)/libupnp_la-sysdep.Tpo" -c -o src/uuid/libupnp_la-sysdep.lo `test -f 'src/uuid/sysdep.c' || echo '$(srcdir)/'`src/uuid/sysdep.c; \
  63466. -@am__fastdepCC_TRUE@ then mv -f "src/uuid/$(DEPDIR)/libupnp_la-sysdep.Tpo" "src/uuid/$(DEPDIR)/libupnp_la-sysdep.Plo"; else rm -f "src/uuid/$(DEPDIR)/libupnp_la-sysdep.Tpo"; exit 1; fi
  63467. +@am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libupnp_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT src/uuid/libupnp_la-sysdep.lo -MD -MP -MF src/uuid/$(DEPDIR)/libupnp_la-sysdep.Tpo -c -o src/uuid/libupnp_la-sysdep.lo `test -f 'src/uuid/sysdep.c' || echo '$(srcdir)/'`src/uuid/sysdep.c
  63468. +@am__fastdepCC_TRUE@ $(am__mv) src/uuid/$(DEPDIR)/libupnp_la-sysdep.Tpo src/uuid/$(DEPDIR)/libupnp_la-sysdep.Plo
  63469. @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='src/uuid/sysdep.c' object='src/uuid/libupnp_la-sysdep.lo' libtool=yes @AMDEPBACKSLASH@
  63470. @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
  63471. -@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libupnp_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o src/uuid/libupnp_la-sysdep.lo `test -f 'src/uuid/sysdep.c' || echo '$(srcdir)/'`src/uuid/sysdep.c
  63472. +@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libupnp_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o src/uuid/libupnp_la-sysdep.lo `test -f 'src/uuid/sysdep.c' || echo '$(srcdir)/'`src/uuid/sysdep.c
  63473. src/uuid/libupnp_la-uuid.lo: src/uuid/uuid.c
  63474. -@am__fastdepCC_TRUE@ if $(LIBTOOL) --tag=CC --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libupnp_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT src/uuid/libupnp_la-uuid.lo -MD -MP -MF "src/uuid/$(DEPDIR)/libupnp_la-uuid.Tpo" -c -o src/uuid/libupnp_la-uuid.lo `test -f 'src/uuid/uuid.c' || echo '$(srcdir)/'`src/uuid/uuid.c; \
  63475. -@am__fastdepCC_TRUE@ then mv -f "src/uuid/$(DEPDIR)/libupnp_la-uuid.Tpo" "src/uuid/$(DEPDIR)/libupnp_la-uuid.Plo"; else rm -f "src/uuid/$(DEPDIR)/libupnp_la-uuid.Tpo"; exit 1; fi
  63476. +@am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libupnp_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT src/uuid/libupnp_la-uuid.lo -MD -MP -MF src/uuid/$(DEPDIR)/libupnp_la-uuid.Tpo -c -o src/uuid/libupnp_la-uuid.lo `test -f 'src/uuid/uuid.c' || echo '$(srcdir)/'`src/uuid/uuid.c
  63477. +@am__fastdepCC_TRUE@ $(am__mv) src/uuid/$(DEPDIR)/libupnp_la-uuid.Tpo src/uuid/$(DEPDIR)/libupnp_la-uuid.Plo
  63478. @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='src/uuid/uuid.c' object='src/uuid/libupnp_la-uuid.lo' libtool=yes @AMDEPBACKSLASH@
  63479. @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
  63480. -@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libupnp_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o src/uuid/libupnp_la-uuid.lo `test -f 'src/uuid/uuid.c' || echo '$(srcdir)/'`src/uuid/uuid.c
  63481. +@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libupnp_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o src/uuid/libupnp_la-uuid.lo `test -f 'src/uuid/uuid.c' || echo '$(srcdir)/'`src/uuid/uuid.c
  63482. src/urlconfig/libupnp_la-urlconfig.lo: src/urlconfig/urlconfig.c
  63483. -@am__fastdepCC_TRUE@ if $(LIBTOOL) --tag=CC --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libupnp_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT src/urlconfig/libupnp_la-urlconfig.lo -MD -MP -MF "src/urlconfig/$(DEPDIR)/libupnp_la-urlconfig.Tpo" -c -o src/urlconfig/libupnp_la-urlconfig.lo `test -f 'src/urlconfig/urlconfig.c' || echo '$(srcdir)/'`src/urlconfig/urlconfig.c; \
  63484. -@am__fastdepCC_TRUE@ then mv -f "src/urlconfig/$(DEPDIR)/libupnp_la-urlconfig.Tpo" "src/urlconfig/$(DEPDIR)/libupnp_la-urlconfig.Plo"; else rm -f "src/urlconfig/$(DEPDIR)/libupnp_la-urlconfig.Tpo"; exit 1; fi
  63485. +@am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libupnp_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT src/urlconfig/libupnp_la-urlconfig.lo -MD -MP -MF src/urlconfig/$(DEPDIR)/libupnp_la-urlconfig.Tpo -c -o src/urlconfig/libupnp_la-urlconfig.lo `test -f 'src/urlconfig/urlconfig.c' || echo '$(srcdir)/'`src/urlconfig/urlconfig.c
  63486. +@am__fastdepCC_TRUE@ $(am__mv) src/urlconfig/$(DEPDIR)/libupnp_la-urlconfig.Tpo src/urlconfig/$(DEPDIR)/libupnp_la-urlconfig.Plo
  63487. @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='src/urlconfig/urlconfig.c' object='src/urlconfig/libupnp_la-urlconfig.lo' libtool=yes @AMDEPBACKSLASH@
  63488. @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
  63489. -@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libupnp_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o src/urlconfig/libupnp_la-urlconfig.lo `test -f 'src/urlconfig/urlconfig.c' || echo '$(srcdir)/'`src/urlconfig/urlconfig.c
  63490. +@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libupnp_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o src/urlconfig/libupnp_la-urlconfig.lo `test -f 'src/urlconfig/urlconfig.c' || echo '$(srcdir)/'`src/urlconfig/urlconfig.c
  63491. mostlyclean-libtool:
  63492. -rm -f *.lo
  63493. @@ -946,44 +1001,46 @@
  63494. -rm -rf src/ssdp/.libs src/ssdp/_libs
  63495. -rm -rf src/urlconfig/.libs src/urlconfig/_libs
  63496. -rm -rf src/uuid/.libs src/uuid/_libs
  63497. -
  63498. -distclean-libtool:
  63499. - -rm -f libtool
  63500. -uninstall-info-am:
  63501. install-nodist_upnpincludeHEADERS: $(nodist_upnpinclude_HEADERS)
  63502. @$(NORMAL_INSTALL)
  63503. - test -z "$(upnpincludedir)" || $(mkdir_p) "$(DESTDIR)$(upnpincludedir)"
  63504. - @list='$(nodist_upnpinclude_HEADERS)'; for p in $$list; do \
  63505. + test -z "$(upnpincludedir)" || $(MKDIR_P) "$(DESTDIR)$(upnpincludedir)"
  63506. + @list='$(nodist_upnpinclude_HEADERS)'; test -n "$(upnpincludedir)" || list=; \
  63507. + for p in $$list; do \
  63508. if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
  63509. - f=$(am__strip_dir) \
  63510. - echo " $(nodist_upnpincludeHEADERS_INSTALL) '$$d$$p' '$(DESTDIR)$(upnpincludedir)/$$f'"; \
  63511. - $(nodist_upnpincludeHEADERS_INSTALL) "$$d$$p" "$(DESTDIR)$(upnpincludedir)/$$f"; \
  63512. + echo "$$d$$p"; \
  63513. + done | $(am__base_list) | \
  63514. + while read files; do \
  63515. + echo " $(INSTALL_HEADER) $$files '$(DESTDIR)$(upnpincludedir)'"; \
  63516. + $(INSTALL_HEADER) $$files "$(DESTDIR)$(upnpincludedir)" || exit $$?; \
  63517. done
  63518. uninstall-nodist_upnpincludeHEADERS:
  63519. @$(NORMAL_UNINSTALL)
  63520. - @list='$(nodist_upnpinclude_HEADERS)'; for p in $$list; do \
  63521. - f=$(am__strip_dir) \
  63522. - echo " rm -f '$(DESTDIR)$(upnpincludedir)/$$f'"; \
  63523. - rm -f "$(DESTDIR)$(upnpincludedir)/$$f"; \
  63524. - done
  63525. + @list='$(nodist_upnpinclude_HEADERS)'; test -n "$(upnpincludedir)" || list=; \
  63526. + files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \
  63527. + test -n "$$files" || exit 0; \
  63528. + echo " ( cd '$(DESTDIR)$(upnpincludedir)' && rm -f" $$files ")"; \
  63529. + cd "$(DESTDIR)$(upnpincludedir)" && rm -f $$files
  63530. install-upnpincludeHEADERS: $(upnpinclude_HEADERS)
  63531. @$(NORMAL_INSTALL)
  63532. - test -z "$(upnpincludedir)" || $(mkdir_p) "$(DESTDIR)$(upnpincludedir)"
  63533. - @list='$(upnpinclude_HEADERS)'; for p in $$list; do \
  63534. + test -z "$(upnpincludedir)" || $(MKDIR_P) "$(DESTDIR)$(upnpincludedir)"
  63535. + @list='$(upnpinclude_HEADERS)'; test -n "$(upnpincludedir)" || list=; \
  63536. + for p in $$list; do \
  63537. if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
  63538. - f=$(am__strip_dir) \
  63539. - echo " $(upnpincludeHEADERS_INSTALL) '$$d$$p' '$(DESTDIR)$(upnpincludedir)/$$f'"; \
  63540. - $(upnpincludeHEADERS_INSTALL) "$$d$$p" "$(DESTDIR)$(upnpincludedir)/$$f"; \
  63541. + echo "$$d$$p"; \
  63542. + done | $(am__base_list) | \
  63543. + while read files; do \
  63544. + echo " $(INSTALL_HEADER) $$files '$(DESTDIR)$(upnpincludedir)'"; \
  63545. + $(INSTALL_HEADER) $$files "$(DESTDIR)$(upnpincludedir)" || exit $$?; \
  63546. done
  63547. uninstall-upnpincludeHEADERS:
  63548. @$(NORMAL_UNINSTALL)
  63549. - @list='$(upnpinclude_HEADERS)'; for p in $$list; do \
  63550. - f=$(am__strip_dir) \
  63551. - echo " rm -f '$(DESTDIR)$(upnpincludedir)/$$f'"; \
  63552. - rm -f "$(DESTDIR)$(upnpincludedir)/$$f"; \
  63553. - done
  63554. + @list='$(upnpinclude_HEADERS)'; test -n "$(upnpincludedir)" || list=; \
  63555. + files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \
  63556. + test -n "$$files" || exit 0; \
  63557. + echo " ( cd '$(DESTDIR)$(upnpincludedir)' && rm -f" $$files ")"; \
  63558. + cd "$(DESTDIR)$(upnpincludedir)" && rm -f $$files
  63559. # This directory's subdirectories are mostly independent; you can cd
  63560. # into them and run `make' without going through this Makefile.
  63561. @@ -992,7 +1049,7 @@
  63562. # (which will cause the Makefiles to be regenerated when you run `make');
  63563. # (2) otherwise, pass the desired values on the `make' command line.
  63564. $(RECURSIVE_TARGETS):
  63565. - @failcom='exit 1'; \
  63566. + @fail= failcom='exit 1'; \
  63567. for f in x $$MAKEFLAGS; do \
  63568. case $$f in \
  63569. *=* | --[!k]*);; \
  63570. @@ -1009,16 +1066,15 @@
  63571. else \
  63572. local_target="$$target"; \
  63573. fi; \
  63574. - (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
  63575. + ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
  63576. || eval $$failcom; \
  63577. done; \
  63578. if test "$$dot_seen" = "no"; then \
  63579. $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \
  63580. fi; test -z "$$fail"
  63581. -mostlyclean-recursive clean-recursive distclean-recursive \
  63582. -maintainer-clean-recursive:
  63583. - @failcom='exit 1'; \
  63584. +$(RECURSIVE_CLEAN_TARGETS):
  63585. + @fail= failcom='exit 1'; \
  63586. for f in x $$MAKEFLAGS; do \
  63587. case $$f in \
  63588. *=* | --[!k]*);; \
  63589. @@ -1044,16 +1100,16 @@
  63590. else \
  63591. local_target="$$target"; \
  63592. fi; \
  63593. - (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
  63594. + ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
  63595. || eval $$failcom; \
  63596. done && test -z "$$fail"
  63597. tags-recursive:
  63598. list='$(SUBDIRS)'; for subdir in $$list; do \
  63599. - test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \
  63600. + test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \
  63601. done
  63602. ctags-recursive:
  63603. list='$(SUBDIRS)'; for subdir in $$list; do \
  63604. - test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \
  63605. + test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \
  63606. done
  63607. ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
  63608. @@ -1061,14 +1117,14 @@
  63609. unique=`for i in $$list; do \
  63610. if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
  63611. done | \
  63612. - $(AWK) ' { files[$$0] = 1; } \
  63613. - END { for (i in files) print i; }'`; \
  63614. + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
  63615. + END { if (nonempty) { for (i in files) print i; }; }'`; \
  63616. mkid -fID $$unique
  63617. tags: TAGS
  63618. TAGS: tags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
  63619. $(TAGS_FILES) $(LISP)
  63620. - tags=; \
  63621. + set x; \
  63622. here=`pwd`; \
  63623. if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \
  63624. include_option=--etags-include; \
  63625. @@ -1080,39 +1136,43 @@
  63626. list='$(SUBDIRS)'; for subdir in $$list; do \
  63627. if test "$$subdir" = .; then :; else \
  63628. test ! -f $$subdir/TAGS || \
  63629. - tags="$$tags $$include_option=$$here/$$subdir/TAGS"; \
  63630. + set "$$@" "$$include_option=$$here/$$subdir/TAGS"; \
  63631. fi; \
  63632. done; \
  63633. list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
  63634. unique=`for i in $$list; do \
  63635. if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
  63636. done | \
  63637. - $(AWK) ' { files[$$0] = 1; } \
  63638. - END { for (i in files) print i; }'`; \
  63639. - if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
  63640. + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
  63641. + END { if (nonempty) { for (i in files) print i; }; }'`; \
  63642. + shift; \
  63643. + if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
  63644. test -n "$$unique" || unique=$$empty_fix; \
  63645. - $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
  63646. - $$tags $$unique; \
  63647. + if test $$# -gt 0; then \
  63648. + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
  63649. + "$$@" $$unique; \
  63650. + else \
  63651. + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
  63652. + $$unique; \
  63653. + fi; \
  63654. fi
  63655. ctags: CTAGS
  63656. CTAGS: ctags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
  63657. $(TAGS_FILES) $(LISP)
  63658. - tags=; \
  63659. - here=`pwd`; \
  63660. list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
  63661. unique=`for i in $$list; do \
  63662. if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
  63663. done | \
  63664. - $(AWK) ' { files[$$0] = 1; } \
  63665. - END { for (i in files) print i; }'`; \
  63666. - test -z "$(CTAGS_ARGS)$$tags$$unique" \
  63667. + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
  63668. + END { if (nonempty) { for (i in files) print i; }; }'`; \
  63669. + test -z "$(CTAGS_ARGS)$$unique" \
  63670. || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
  63671. - $$tags $$unique
  63672. + $$unique
  63673. GTAGS:
  63674. here=`$(am__cd) $(top_builddir) && pwd` \
  63675. - && cd $(top_srcdir) \
  63676. - && gtags -i $(GTAGS_ARGS) $$here
  63677. + && $(am__cd) $(top_srcdir) \
  63678. + && gtags -i $(GTAGS_ARGS) "$$here"
  63679. distclean-tags:
  63680. -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
  63681. @@ -1120,7 +1180,8 @@
  63682. check-TESTS: $(TESTS)
  63683. @failed=0; all=0; xfail=0; xpass=0; skip=0; \
  63684. srcdir=$(srcdir); export srcdir; \
  63685. - list='$(TESTS)'; \
  63686. + list=' $(TESTS) '; \
  63687. + $(am__tty_colors); \
  63688. if test -n "$$list"; then \
  63689. for tst in $$list; do \
  63690. if test -f ./$$tst; then dir=./; \
  63691. @@ -1129,49 +1190,63 @@
  63692. if $(TESTS_ENVIRONMENT) $${dir}$$tst; then \
  63693. all=`expr $$all + 1`; \
  63694. case " $(XFAIL_TESTS) " in \
  63695. - *" $$tst "*) \
  63696. + *[\ \ ]$$tst[\ \ ]*) \
  63697. xpass=`expr $$xpass + 1`; \
  63698. failed=`expr $$failed + 1`; \
  63699. - echo "XPASS: $$tst"; \
  63700. + col=$$red; res=XPASS; \
  63701. ;; \
  63702. *) \
  63703. - echo "PASS: $$tst"; \
  63704. + col=$$grn; res=PASS; \
  63705. ;; \
  63706. esac; \
  63707. elif test $$? -ne 77; then \
  63708. all=`expr $$all + 1`; \
  63709. case " $(XFAIL_TESTS) " in \
  63710. - *" $$tst "*) \
  63711. + *[\ \ ]$$tst[\ \ ]*) \
  63712. xfail=`expr $$xfail + 1`; \
  63713. - echo "XFAIL: $$tst"; \
  63714. + col=$$lgn; res=XFAIL; \
  63715. ;; \
  63716. *) \
  63717. failed=`expr $$failed + 1`; \
  63718. - echo "FAIL: $$tst"; \
  63719. + col=$$red; res=FAIL; \
  63720. ;; \
  63721. esac; \
  63722. else \
  63723. skip=`expr $$skip + 1`; \
  63724. - echo "SKIP: $$tst"; \
  63725. + col=$$blu; res=SKIP; \
  63726. fi; \
  63727. + echo "$${col}$$res$${std}: $$tst"; \
  63728. done; \
  63729. + if test "$$all" -eq 1; then \
  63730. + tests="test"; \
  63731. + All=""; \
  63732. + else \
  63733. + tests="tests"; \
  63734. + All="All "; \
  63735. + fi; \
  63736. if test "$$failed" -eq 0; then \
  63737. if test "$$xfail" -eq 0; then \
  63738. - banner="All $$all tests passed"; \
  63739. + banner="$$All$$all $$tests passed"; \
  63740. else \
  63741. - banner="All $$all tests behaved as expected ($$xfail expected failures)"; \
  63742. + if test "$$xfail" -eq 1; then failures=failure; else failures=failures; fi; \
  63743. + banner="$$All$$all $$tests behaved as expected ($$xfail expected $$failures)"; \
  63744. fi; \
  63745. else \
  63746. if test "$$xpass" -eq 0; then \
  63747. - banner="$$failed of $$all tests failed"; \
  63748. + banner="$$failed of $$all $$tests failed"; \
  63749. else \
  63750. - banner="$$failed of $$all tests did not behave as expected ($$xpass unexpected passes)"; \
  63751. + if test "$$xpass" -eq 1; then passes=pass; else passes=passes; fi; \
  63752. + banner="$$failed of $$all $$tests did not behave as expected ($$xpass unexpected $$passes)"; \
  63753. fi; \
  63754. fi; \
  63755. dashes="$$banner"; \
  63756. skipped=""; \
  63757. if test "$$skip" -ne 0; then \
  63758. - skipped="($$skip tests were not run)"; \
  63759. + if test "$$skip" -eq 1; then \
  63760. + skipped="($$skip test was not run)"; \
  63761. + else \
  63762. + skipped="($$skip tests were not run)"; \
  63763. + fi; \
  63764. test `echo "$$skipped" | wc -c` -le `echo "$$banner" | wc -c` || \
  63765. dashes="$$skipped"; \
  63766. fi; \
  63767. @@ -1182,53 +1257,72 @@
  63768. dashes="$$report"; \
  63769. fi; \
  63770. dashes=`echo "$$dashes" | sed s/./=/g`; \
  63771. - echo "$$dashes"; \
  63772. + if test "$$failed" -eq 0; then \
  63773. + echo "$$grn$$dashes"; \
  63774. + else \
  63775. + echo "$$red$$dashes"; \
  63776. + fi; \
  63777. echo "$$banner"; \
  63778. test -z "$$skipped" || echo "$$skipped"; \
  63779. test -z "$$report" || echo "$$report"; \
  63780. - echo "$$dashes"; \
  63781. + echo "$$dashes$$std"; \
  63782. test "$$failed" -eq 0; \
  63783. else :; fi
  63784. distdir: $(DISTFILES)
  63785. - $(mkdir_p) $(distdir)/inc $(distdir)/src $(distdir)/src/inc
  63786. - @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \
  63787. - topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \
  63788. - list='$(DISTFILES)'; for file in $$list; do \
  63789. - case $$file in \
  63790. - $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \
  63791. - $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \
  63792. - esac; \
  63793. + @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
  63794. + topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
  63795. + list='$(DISTFILES)'; \
  63796. + dist_files=`for file in $$list; do echo $$file; done | \
  63797. + sed -e "s|^$$srcdirstrip/||;t" \
  63798. + -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
  63799. + case $$dist_files in \
  63800. + */*) $(MKDIR_P) `echo "$$dist_files" | \
  63801. + sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
  63802. + sort -u` ;; \
  63803. + esac; \
  63804. + for file in $$dist_files; do \
  63805. if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
  63806. - dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \
  63807. - if test "$$dir" != "$$file" && test "$$dir" != "."; then \
  63808. - dir="/$$dir"; \
  63809. - $(mkdir_p) "$(distdir)$$dir"; \
  63810. - else \
  63811. - dir=''; \
  63812. - fi; \
  63813. if test -d $$d/$$file; then \
  63814. + dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
  63815. + if test -d "$(distdir)/$$file"; then \
  63816. + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
  63817. + fi; \
  63818. if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
  63819. - cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
  63820. + cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
  63821. + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
  63822. fi; \
  63823. - cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
  63824. + cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
  63825. else \
  63826. - test -f $(distdir)/$$file \
  63827. - || cp -p $$d/$$file $(distdir)/$$file \
  63828. + test -f "$(distdir)/$$file" \
  63829. + || cp -p $$d/$$file "$(distdir)/$$file" \
  63830. || exit 1; \
  63831. fi; \
  63832. done
  63833. - list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
  63834. + @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
  63835. if test "$$subdir" = .; then :; else \
  63836. test -d "$(distdir)/$$subdir" \
  63837. - || $(mkdir_p) "$(distdir)/$$subdir" \
  63838. + || $(MKDIR_P) "$(distdir)/$$subdir" \
  63839. || exit 1; \
  63840. - distdir=`$(am__cd) $(distdir) && pwd`; \
  63841. - top_distdir=`$(am__cd) $(top_distdir) && pwd`; \
  63842. - (cd $$subdir && \
  63843. + fi; \
  63844. + done
  63845. + @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
  63846. + if test "$$subdir" = .; then :; else \
  63847. + dir1=$$subdir; dir2="$(distdir)/$$subdir"; \
  63848. + $(am__relativize); \
  63849. + new_distdir=$$reldir; \
  63850. + dir1=$$subdir; dir2="$(top_distdir)"; \
  63851. + $(am__relativize); \
  63852. + new_top_distdir=$$reldir; \
  63853. + echo " (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) top_distdir="$$new_top_distdir" distdir="$$new_distdir" \\"; \
  63854. + echo " am__remove_distdir=: am__skip_length_check=: am__skip_mode_fix=: distdir)"; \
  63855. + ($(am__cd) $$subdir && \
  63856. $(MAKE) $(AM_MAKEFLAGS) \
  63857. - top_distdir="$$top_distdir" \
  63858. - distdir="$$distdir/$$subdir" \
  63859. + top_distdir="$$new_top_distdir" \
  63860. + distdir="$$new_distdir" \
  63861. + am__remove_distdir=: \
  63862. + am__skip_length_check=: \
  63863. + am__skip_mode_fix=: \
  63864. distdir) \
  63865. || exit 1; \
  63866. fi; \
  63867. @@ -1241,7 +1335,7 @@
  63868. installdirs: installdirs-recursive
  63869. installdirs-am:
  63870. for dir in "$(DESTDIR)$(libdir)" "$(DESTDIR)$(upnpincludedir)" "$(DESTDIR)$(upnpincludedir)"; do \
  63871. - test -z "$$dir" || $(mkdir_p) "$$dir"; \
  63872. + test -z "$$dir" || $(MKDIR_P) "$$dir"; \
  63873. done
  63874. install: install-recursive
  63875. install-exec: install-exec-recursive
  63876. @@ -1264,6 +1358,7 @@
  63877. distclean-generic:
  63878. -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
  63879. + -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
  63880. -rm -f src/api/$(DEPDIR)/$(am__dirstamp)
  63881. -rm -f src/api/$(am__dirstamp)
  63882. -rm -f src/gena/$(DEPDIR)/$(am__dirstamp)
  63883. @@ -1305,7 +1400,7 @@
  63884. -rm -rf src/api/$(DEPDIR) src/gena/$(DEPDIR) src/genlib/client_table/$(DEPDIR) src/genlib/miniserver/$(DEPDIR) src/genlib/net/$(DEPDIR) src/genlib/net/http/$(DEPDIR) src/genlib/net/uri/$(DEPDIR) src/genlib/service_table/$(DEPDIR) src/genlib/util/$(DEPDIR) src/soap/$(DEPDIR) src/ssdp/$(DEPDIR) src/urlconfig/$(DEPDIR) src/uuid/$(DEPDIR) test/$(DEPDIR)
  63885. -rm -f Makefile
  63886. distclean-am: clean-am distclean-compile distclean-generic \
  63887. - distclean-libtool distclean-tags
  63888. + distclean-tags
  63889. dvi: dvi-recursive
  63890. @@ -1313,6 +1408,8 @@
  63891. html: html-recursive
  63892. +html-am:
  63893. +
  63894. info: info-recursive
  63895. info-am:
  63896. @@ -1320,12 +1417,30 @@
  63897. install-data-am: install-nodist_upnpincludeHEADERS \
  63898. install-upnpincludeHEADERS
  63899. +install-dvi: install-dvi-recursive
  63900. +
  63901. +install-dvi-am:
  63902. +
  63903. install-exec-am: install-libLTLIBRARIES
  63904. +install-html: install-html-recursive
  63905. +
  63906. +install-html-am:
  63907. +
  63908. install-info: install-info-recursive
  63909. +install-info-am:
  63910. +
  63911. install-man:
  63912. +install-pdf: install-pdf-recursive
  63913. +
  63914. +install-pdf-am:
  63915. +
  63916. +install-ps: install-ps-recursive
  63917. +
  63918. +install-ps-am:
  63919. +
  63920. installcheck-am:
  63921. maintainer-clean: maintainer-clean-recursive
  63922. @@ -1346,30 +1461,34 @@
  63923. ps-am:
  63924. -uninstall-am: uninstall-info-am uninstall-libLTLIBRARIES \
  63925. +uninstall-am: uninstall-libLTLIBRARIES \
  63926. uninstall-nodist_upnpincludeHEADERS \
  63927. uninstall-upnpincludeHEADERS
  63928. -uninstall-info: uninstall-info-recursive
  63929. +.MAKE: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) check-am \
  63930. + ctags-recursive install-am install-strip tags-recursive
  63931. -.PHONY: $(RECURSIVE_TARGETS) CTAGS GTAGS all all-am check check-TESTS \
  63932. - check-am clean clean-checkPROGRAMS clean-generic \
  63933. - clean-libLTLIBRARIES clean-libtool clean-recursive ctags \
  63934. - ctags-recursive distclean distclean-compile distclean-generic \
  63935. - distclean-libtool distclean-recursive distclean-tags distdir \
  63936. - dvi dvi-am html html-am info info-am install install-am \
  63937. - install-data install-data-am install-exec install-exec-am \
  63938. - install-info install-info-am install-libLTLIBRARIES \
  63939. - install-man install-nodist_upnpincludeHEADERS install-strip \
  63940. +.PHONY: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) CTAGS GTAGS \
  63941. + all all-am check check-TESTS check-am clean \
  63942. + clean-checkPROGRAMS clean-generic clean-libLTLIBRARIES \
  63943. + clean-libtool ctags ctags-recursive distclean \
  63944. + distclean-compile distclean-generic distclean-libtool \
  63945. + distclean-tags distdir dvi dvi-am html html-am info info-am \
  63946. + install install-am install-data install-data-am install-dvi \
  63947. + install-dvi-am install-exec install-exec-am install-html \
  63948. + install-html-am install-info install-info-am \
  63949. + install-libLTLIBRARIES install-man \
  63950. + install-nodist_upnpincludeHEADERS install-pdf install-pdf-am \
  63951. + install-ps install-ps-am install-strip \
  63952. install-upnpincludeHEADERS installcheck installcheck-am \
  63953. installdirs installdirs-am maintainer-clean \
  63954. - maintainer-clean-generic maintainer-clean-recursive \
  63955. - mostlyclean mostlyclean-compile mostlyclean-generic \
  63956. - mostlyclean-libtool mostlyclean-recursive pdf pdf-am ps ps-am \
  63957. - tags tags-recursive uninstall uninstall-am uninstall-info-am \
  63958. + maintainer-clean-generic mostlyclean mostlyclean-compile \
  63959. + mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
  63960. + tags tags-recursive uninstall uninstall-am \
  63961. uninstall-libLTLIBRARIES uninstall-nodist_upnpincludeHEADERS \
  63962. uninstall-upnpincludeHEADERS
  63963. +
  63964. # Tell versions [3.59,3.63) of GNU make to not export all variables.
  63965. # Otherwise a system limit (for SysV at least) may be exceeded.
  63966. .NOEXPORT:
  63967. diff -Nur libupnp-1.6.6.orig/upnp/sample/Makefile.in libupnp-1.6.6/upnp/sample/Makefile.in
  63968. --- libupnp-1.6.6.orig/upnp/sample/Makefile.in 2008-04-25 13:47:42.000000000 +0200
  63969. +++ libupnp-1.6.6/upnp/sample/Makefile.in 2010-02-18 22:37:02.912853584 +0100
  63970. @@ -1,8 +1,9 @@
  63971. -# Makefile.in generated by automake 1.9.6 from Makefile.am.
  63972. +# Makefile.in generated by automake 1.11.1 from Makefile.am.
  63973. # @configure_input@
  63974. # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
  63975. -# 2003, 2004, 2005 Free Software Foundation, Inc.
  63976. +# 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
  63977. +# Inc.
  63978. # This Makefile.in is free software; the Free Software Foundation
  63979. # gives unlimited permission to copy and/or distribute it,
  63980. # with or without modifications, as long as this notice is preserved.
  63981. @@ -21,15 +22,12 @@
  63982. #
  63983. -srcdir = @srcdir@
  63984. -top_srcdir = @top_srcdir@
  63985. VPATH = @srcdir@
  63986. pkgdatadir = $(datadir)/@PACKAGE@
  63987. -pkglibdir = $(libdir)/@PACKAGE@
  63988. pkgincludedir = $(includedir)/@PACKAGE@
  63989. -top_builddir = ../..
  63990. +pkglibdir = $(libdir)/@PACKAGE@
  63991. +pkglibexecdir = $(libexecdir)/@PACKAGE@
  63992. am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
  63993. -INSTALL = @INSTALL@
  63994. install_sh_DATA = $(install_sh) -c -m 644
  63995. install_sh_PROGRAM = $(install_sh) -c
  63996. install_sh_SCRIPT = $(install_sh) -c
  63997. @@ -53,6 +51,9 @@
  63998. am__aclocal_m4_deps = $(top_srcdir)/m4/acx_pthread.m4 \
  63999. $(top_srcdir)/m4/ax_cflags_gcc_option.m4 \
  64000. $(top_srcdir)/m4/ax_cflags_warn_all.m4 \
  64001. + $(top_srcdir)/m4/libtool.m4 $(top_srcdir)/m4/ltoptions.m4 \
  64002. + $(top_srcdir)/m4/ltsugar.m4 $(top_srcdir)/m4/ltversion.m4 \
  64003. + $(top_srcdir)/m4/lt~obsolete.m4 \
  64004. $(top_srcdir)/m4/rt_bool_arg_enable.m4 \
  64005. $(top_srcdir)/m4/type_socklen_t.m4 $(top_srcdir)/configure.ac
  64006. am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
  64007. @@ -61,6 +62,7 @@
  64008. CONFIG_HEADER = $(top_builddir)/autoconfig.h \
  64009. $(top_builddir)/upnp/inc/upnpconfig.h
  64010. CONFIG_CLEAN_FILES =
  64011. +CONFIG_CLEAN_VPATH_FILES =
  64012. @ENABLE_CLIENT_TRUE@@ENABLE_SAMPLES_TRUE@am__EXEEXT_1 = upnp_tv_ctrlpt$(EXEEXT)
  64013. @ENABLE_CLIENT_TRUE@@ENABLE_DEVICE_TRUE@@ENABLE_SAMPLES_TRUE@am__EXEEXT_2 = upnp_tv_combo$(EXEEXT)
  64014. @ENABLE_DEVICE_TRUE@@ENABLE_SAMPLES_TRUE@am__EXEEXT_3 = upnp_tv_device$(EXEEXT)
  64015. @@ -93,17 +95,19 @@
  64016. upnp_tv_device_DEPENDENCIES = $(top_builddir)/upnp/libupnp.la \
  64017. $(top_builddir)/threadutil/libthreadutil.la \
  64018. $(top_builddir)/ixml/libixml.la
  64019. -DEFAULT_INCLUDES = -I. -I$(srcdir) -I$(top_builddir) -I$(top_builddir)/upnp/inc
  64020. +DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir) -I$(top_builddir)/upnp/inc
  64021. depcomp = $(SHELL) $(top_srcdir)/build-aux/depcomp
  64022. am__depfiles_maybe = depfiles
  64023. +am__mv = mv -f
  64024. COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
  64025. $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
  64026. -LTCOMPILE = $(LIBTOOL) --tag=CC --mode=compile $(CC) $(DEFS) \
  64027. - $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \
  64028. - $(AM_CFLAGS) $(CFLAGS)
  64029. +LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
  64030. + --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
  64031. + $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
  64032. CCLD = $(CC)
  64033. -LINK = $(LIBTOOL) --tag=CC --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
  64034. - $(AM_LDFLAGS) $(LDFLAGS) -o $@
  64035. +LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
  64036. + --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \
  64037. + $(LDFLAGS) -o $@
  64038. SOURCES = $(upnp_tv_combo_SOURCES) $(upnp_tv_ctrlpt_SOURCES) \
  64039. $(upnp_tv_device_SOURCES)
  64040. DIST_SOURCES = $(upnp_tv_combo_SOURCES) $(upnp_tv_ctrlpt_SOURCES) \
  64041. @@ -113,16 +117,28 @@
  64042. $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
  64043. *) f=$$p;; \
  64044. esac;
  64045. -am__strip_dir = `echo $$p | sed -e 's|^.*/||'`;
  64046. +am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`;
  64047. +am__install_max = 40
  64048. +am__nobase_strip_setup = \
  64049. + srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'`
  64050. +am__nobase_strip = \
  64051. + for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||"
  64052. +am__nobase_list = $(am__nobase_strip_setup); \
  64053. + for p in $$list; do echo "$$p $$p"; done | \
  64054. + sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \
  64055. + $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \
  64056. + if (++n[$$2] == $(am__install_max)) \
  64057. + { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \
  64058. + END { for (dir in files) print dir, files[dir] }'
  64059. +am__base_list = \
  64060. + sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \
  64061. + sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g'
  64062. am__installdirs = "$(DESTDIR)$(examplesdir)"
  64063. -examplesDATA_INSTALL = $(INSTALL_DATA)
  64064. DATA = $(examples_DATA)
  64065. ETAGS = etags
  64066. CTAGS = ctags
  64067. DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
  64068. ACLOCAL = @ACLOCAL@
  64069. -AMDEP_FALSE = @AMDEP_FALSE@
  64070. -AMDEP_TRUE = @AMDEP_TRUE@
  64071. AMTAR = @AMTAR@
  64072. AR = @AR@
  64073. AUTOCONF = @AUTOCONF@
  64074. @@ -134,74 +150,66 @@
  64075. CFLAGS = @CFLAGS@
  64076. CPP = @CPP@
  64077. CPPFLAGS = @CPPFLAGS@
  64078. -CXX = @CXX@
  64079. -CXXCPP = @CXXCPP@
  64080. -CXXDEPMODE = @CXXDEPMODE@
  64081. -CXXFLAGS = @CXXFLAGS@
  64082. CYGPATH_W = @CYGPATH_W@
  64083. DEFS = @DEFS@
  64084. DEPDIR = @DEPDIR@
  64085. -ECHO = @ECHO@
  64086. +DSYMUTIL = @DSYMUTIL@
  64087. +DUMPBIN = @DUMPBIN@
  64088. ECHO_C = @ECHO_C@
  64089. ECHO_N = @ECHO_N@
  64090. ECHO_T = @ECHO_T@
  64091. EGREP = @EGREP@
  64092. -ENABLE_CLIENT_FALSE = @ENABLE_CLIENT_FALSE@
  64093. -ENABLE_CLIENT_TRUE = @ENABLE_CLIENT_TRUE@
  64094. -ENABLE_DEBUG_FALSE = @ENABLE_DEBUG_FALSE@
  64095. -ENABLE_DEBUG_TRUE = @ENABLE_DEBUG_TRUE@
  64096. -ENABLE_DEVICE_FALSE = @ENABLE_DEVICE_FALSE@
  64097. -ENABLE_DEVICE_TRUE = @ENABLE_DEVICE_TRUE@
  64098. -ENABLE_SAMPLES_FALSE = @ENABLE_SAMPLES_FALSE@
  64099. -ENABLE_SAMPLES_TRUE = @ENABLE_SAMPLES_TRUE@
  64100. -ENABLE_TOOLS_FALSE = @ENABLE_TOOLS_FALSE@
  64101. -ENABLE_TOOLS_TRUE = @ENABLE_TOOLS_TRUE@
  64102. -ENABLE_WEBSERVER_FALSE = @ENABLE_WEBSERVER_FALSE@
  64103. -ENABLE_WEBSERVER_TRUE = @ENABLE_WEBSERVER_TRUE@
  64104. EXEEXT = @EXEEXT@
  64105. -F77 = @F77@
  64106. -FFLAGS = @FFLAGS@
  64107. +FGREP = @FGREP@
  64108. GREP = @GREP@
  64109. +INSTALL = @INSTALL@
  64110. INSTALL_DATA = @INSTALL_DATA@
  64111. INSTALL_PROGRAM = @INSTALL_PROGRAM@
  64112. INSTALL_SCRIPT = @INSTALL_SCRIPT@
  64113. INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
  64114. +LD = @LD@
  64115. LDFLAGS = @LDFLAGS@
  64116. LIBOBJS = @LIBOBJS@
  64117. LIBS = @LIBS@
  64118. LIBTOOL = @LIBTOOL@
  64119. +LIPO = @LIPO@
  64120. LN_S = @LN_S@
  64121. LTLIBOBJS = @LTLIBOBJS@
  64122. LT_VERSION_IXML = @LT_VERSION_IXML@
  64123. LT_VERSION_THREADUTIL = @LT_VERSION_THREADUTIL@
  64124. LT_VERSION_UPNP = @LT_VERSION_UPNP@
  64125. MAKEINFO = @MAKEINFO@
  64126. +MKDIR_P = @MKDIR_P@
  64127. +NM = @NM@
  64128. +NMEDIT = @NMEDIT@
  64129. +OBJDUMP = @OBJDUMP@
  64130. OBJEXT = @OBJEXT@
  64131. +OTOOL = @OTOOL@
  64132. +OTOOL64 = @OTOOL64@
  64133. PACKAGE = @PACKAGE@
  64134. PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
  64135. PACKAGE_NAME = @PACKAGE_NAME@
  64136. PACKAGE_STRING = @PACKAGE_STRING@
  64137. PACKAGE_TARNAME = @PACKAGE_TARNAME@
  64138. +PACKAGE_URL = @PACKAGE_URL@
  64139. PACKAGE_VERSION = @PACKAGE_VERSION@
  64140. PATH_SEPARATOR = @PATH_SEPARATOR@
  64141. PTHREAD_CC = @PTHREAD_CC@
  64142. PTHREAD_CFLAGS = @PTHREAD_CFLAGS@
  64143. PTHREAD_LIBS = @PTHREAD_LIBS@
  64144. RANLIB = @RANLIB@
  64145. +SED = @SED@
  64146. SET_MAKE = @SET_MAKE@
  64147. SHELL = @SHELL@
  64148. STRIP = @STRIP@
  64149. VERSION = @VERSION@
  64150. -WITH_DOCUMENTATION_FALSE = @WITH_DOCUMENTATION_FALSE@
  64151. -WITH_DOCUMENTATION_TRUE = @WITH_DOCUMENTATION_TRUE@
  64152. +abs_builddir = @abs_builddir@
  64153. +abs_srcdir = @abs_srcdir@
  64154. +abs_top_builddir = @abs_top_builddir@
  64155. +abs_top_srcdir = @abs_top_srcdir@
  64156. ac_ct_CC = @ac_ct_CC@
  64157. -ac_ct_CXX = @ac_ct_CXX@
  64158. -ac_ct_F77 = @ac_ct_F77@
  64159. +ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
  64160. acx_pthread_config = @acx_pthread_config@
  64161. -am__fastdepCC_FALSE = @am__fastdepCC_FALSE@
  64162. -am__fastdepCC_TRUE = @am__fastdepCC_TRUE@
  64163. -am__fastdepCXX_FALSE = @am__fastdepCXX_FALSE@
  64164. -am__fastdepCXX_TRUE = @am__fastdepCXX_TRUE@
  64165. am__include = @am__include@
  64166. am__leading_dot = @am__leading_dot@
  64167. am__quote = @am__quote@
  64168. @@ -213,6 +221,7 @@
  64169. build_cpu = @build_cpu@
  64170. build_os = @build_os@
  64171. build_vendor = @build_vendor@
  64172. +builddir = @builddir@
  64173. datadir = @datadir@
  64174. datarootdir = @datarootdir@
  64175. docdir = @docdir@
  64176. @@ -231,6 +240,7 @@
  64177. libexecdir = @libexecdir@
  64178. localedir = @localedir@
  64179. localstatedir = @localstatedir@
  64180. +lt_ECHO = @lt_ECHO@
  64181. mandir = @mandir@
  64182. mkdir_p = @mkdir_p@
  64183. oldincludedir = @oldincludedir@
  64184. @@ -240,8 +250,12 @@
  64185. psdir = @psdir@
  64186. sbindir = @sbindir@
  64187. sharedstatedir = @sharedstatedir@
  64188. +srcdir = @srcdir@
  64189. sysconfdir = @sysconfdir@
  64190. target_alias = @target_alias@
  64191. +top_build_prefix = @top_build_prefix@
  64192. +top_builddir = @top_builddir@
  64193. +top_srcdir = @top_srcdir@
  64194. AM_CPPFLAGS = \
  64195. -I$(top_srcdir)/upnp/inc \
  64196. -I$(top_srcdir)/threadutil/inc \
  64197. @@ -309,14 +323,14 @@
  64198. @for dep in $?; do \
  64199. case '$(am__configure_deps)' in \
  64200. *$$dep*) \
  64201. - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
  64202. - && exit 0; \
  64203. + ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
  64204. + && { if test -f $@; then exit 0; else break; fi; }; \
  64205. exit 1;; \
  64206. esac; \
  64207. done; \
  64208. - echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign upnp/sample/Makefile'; \
  64209. - cd $(top_srcdir) && \
  64210. - $(AUTOMAKE) --foreign upnp/sample/Makefile
  64211. + echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign upnp/sample/Makefile'; \
  64212. + $(am__cd) $(top_srcdir) && \
  64213. + $(AUTOMAKE) --foreign upnp/sample/Makefile
  64214. .PRECIOUS: Makefile
  64215. Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
  64216. @case '$?' in \
  64217. @@ -334,87 +348,90 @@
  64218. cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
  64219. $(ACLOCAL_M4): $(am__aclocal_m4_deps)
  64220. cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
  64221. +$(am__aclocal_m4_deps):
  64222. clean-noinstPROGRAMS:
  64223. - @list='$(noinst_PROGRAMS)'; for p in $$list; do \
  64224. - f=`echo $$p|sed 's/$(EXEEXT)$$//'`; \
  64225. - echo " rm -f $$p $$f"; \
  64226. - rm -f $$p $$f ; \
  64227. - done
  64228. + @list='$(noinst_PROGRAMS)'; test -n "$$list" || exit 0; \
  64229. + echo " rm -f" $$list; \
  64230. + rm -f $$list || exit $$?; \
  64231. + test -n "$(EXEEXT)" || exit 0; \
  64232. + list=`for p in $$list; do echo "$$p"; done | sed 's/$(EXEEXT)$$//'`; \
  64233. + echo " rm -f" $$list; \
  64234. + rm -f $$list
  64235. common/$(am__dirstamp):
  64236. - @$(mkdir_p) common
  64237. + @$(MKDIR_P) common
  64238. @: > common/$(am__dirstamp)
  64239. common/$(DEPDIR)/$(am__dirstamp):
  64240. - @$(mkdir_p) common/$(DEPDIR)
  64241. + @$(MKDIR_P) common/$(DEPDIR)
  64242. @: > common/$(DEPDIR)/$(am__dirstamp)
  64243. common/upnp_tv_combo-sample_util.$(OBJEXT): common/$(am__dirstamp) \
  64244. common/$(DEPDIR)/$(am__dirstamp)
  64245. tvcombo/$(am__dirstamp):
  64246. - @$(mkdir_p) tvcombo
  64247. + @$(MKDIR_P) tvcombo
  64248. @: > tvcombo/$(am__dirstamp)
  64249. tvcombo/$(DEPDIR)/$(am__dirstamp):
  64250. - @$(mkdir_p) tvcombo/$(DEPDIR)
  64251. + @$(MKDIR_P) tvcombo/$(DEPDIR)
  64252. @: > tvcombo/$(DEPDIR)/$(am__dirstamp)
  64253. tvcombo/upnp_tv_combo-upnp_tv_ctrlpt.$(OBJEXT): \
  64254. tvcombo/$(am__dirstamp) tvcombo/$(DEPDIR)/$(am__dirstamp)
  64255. tvcombo/upnp_tv_combo-upnp_tv_device.$(OBJEXT): \
  64256. tvcombo/$(am__dirstamp) tvcombo/$(DEPDIR)/$(am__dirstamp)
  64257. tvcombo/linux/$(am__dirstamp):
  64258. - @$(mkdir_p) tvcombo/linux
  64259. + @$(MKDIR_P) tvcombo/linux
  64260. @: > tvcombo/linux/$(am__dirstamp)
  64261. tvcombo/linux/$(DEPDIR)/$(am__dirstamp):
  64262. - @$(mkdir_p) tvcombo/linux/$(DEPDIR)
  64263. + @$(MKDIR_P) tvcombo/linux/$(DEPDIR)
  64264. @: > tvcombo/linux/$(DEPDIR)/$(am__dirstamp)
  64265. tvcombo/linux/upnp_tv_combo-upnp_tv_combo_main.$(OBJEXT): \
  64266. tvcombo/linux/$(am__dirstamp) \
  64267. tvcombo/linux/$(DEPDIR)/$(am__dirstamp)
  64268. upnp_tv_combo$(EXEEXT): $(upnp_tv_combo_OBJECTS) $(upnp_tv_combo_DEPENDENCIES)
  64269. @rm -f upnp_tv_combo$(EXEEXT)
  64270. - $(LINK) $(upnp_tv_combo_LDFLAGS) $(upnp_tv_combo_OBJECTS) $(upnp_tv_combo_LDADD) $(LIBS)
  64271. + $(LINK) $(upnp_tv_combo_OBJECTS) $(upnp_tv_combo_LDADD) $(LIBS)
  64272. common/upnp_tv_ctrlpt-sample_util.$(OBJEXT): common/$(am__dirstamp) \
  64273. common/$(DEPDIR)/$(am__dirstamp)
  64274. tvctrlpt/$(am__dirstamp):
  64275. - @$(mkdir_p) tvctrlpt
  64276. + @$(MKDIR_P) tvctrlpt
  64277. @: > tvctrlpt/$(am__dirstamp)
  64278. tvctrlpt/$(DEPDIR)/$(am__dirstamp):
  64279. - @$(mkdir_p) tvctrlpt/$(DEPDIR)
  64280. + @$(MKDIR_P) tvctrlpt/$(DEPDIR)
  64281. @: > tvctrlpt/$(DEPDIR)/$(am__dirstamp)
  64282. tvctrlpt/upnp_tv_ctrlpt-upnp_tv_ctrlpt.$(OBJEXT): \
  64283. tvctrlpt/$(am__dirstamp) tvctrlpt/$(DEPDIR)/$(am__dirstamp)
  64284. tvctrlpt/linux/$(am__dirstamp):
  64285. - @$(mkdir_p) tvctrlpt/linux
  64286. + @$(MKDIR_P) tvctrlpt/linux
  64287. @: > tvctrlpt/linux/$(am__dirstamp)
  64288. tvctrlpt/linux/$(DEPDIR)/$(am__dirstamp):
  64289. - @$(mkdir_p) tvctrlpt/linux/$(DEPDIR)
  64290. + @$(MKDIR_P) tvctrlpt/linux/$(DEPDIR)
  64291. @: > tvctrlpt/linux/$(DEPDIR)/$(am__dirstamp)
  64292. tvctrlpt/linux/upnp_tv_ctrlpt-upnp_tv_ctrlpt_main.$(OBJEXT): \
  64293. tvctrlpt/linux/$(am__dirstamp) \
  64294. tvctrlpt/linux/$(DEPDIR)/$(am__dirstamp)
  64295. upnp_tv_ctrlpt$(EXEEXT): $(upnp_tv_ctrlpt_OBJECTS) $(upnp_tv_ctrlpt_DEPENDENCIES)
  64296. @rm -f upnp_tv_ctrlpt$(EXEEXT)
  64297. - $(LINK) $(upnp_tv_ctrlpt_LDFLAGS) $(upnp_tv_ctrlpt_OBJECTS) $(upnp_tv_ctrlpt_LDADD) $(LIBS)
  64298. + $(LINK) $(upnp_tv_ctrlpt_OBJECTS) $(upnp_tv_ctrlpt_LDADD) $(LIBS)
  64299. common/upnp_tv_device-sample_util.$(OBJEXT): common/$(am__dirstamp) \
  64300. common/$(DEPDIR)/$(am__dirstamp)
  64301. tvdevice/$(am__dirstamp):
  64302. - @$(mkdir_p) tvdevice
  64303. + @$(MKDIR_P) tvdevice
  64304. @: > tvdevice/$(am__dirstamp)
  64305. tvdevice/$(DEPDIR)/$(am__dirstamp):
  64306. - @$(mkdir_p) tvdevice/$(DEPDIR)
  64307. + @$(MKDIR_P) tvdevice/$(DEPDIR)
  64308. @: > tvdevice/$(DEPDIR)/$(am__dirstamp)
  64309. tvdevice/upnp_tv_device-upnp_tv_device.$(OBJEXT): \
  64310. tvdevice/$(am__dirstamp) tvdevice/$(DEPDIR)/$(am__dirstamp)
  64311. tvdevice/linux/$(am__dirstamp):
  64312. - @$(mkdir_p) tvdevice/linux
  64313. + @$(MKDIR_P) tvdevice/linux
  64314. @: > tvdevice/linux/$(am__dirstamp)
  64315. tvdevice/linux/$(DEPDIR)/$(am__dirstamp):
  64316. - @$(mkdir_p) tvdevice/linux/$(DEPDIR)
  64317. + @$(MKDIR_P) tvdevice/linux/$(DEPDIR)
  64318. @: > tvdevice/linux/$(DEPDIR)/$(am__dirstamp)
  64319. tvdevice/linux/upnp_tv_device-upnp_tv_device_main.$(OBJEXT): \
  64320. tvdevice/linux/$(am__dirstamp) \
  64321. tvdevice/linux/$(DEPDIR)/$(am__dirstamp)
  64322. upnp_tv_device$(EXEEXT): $(upnp_tv_device_OBJECTS) $(upnp_tv_device_DEPENDENCIES)
  64323. @rm -f upnp_tv_device$(EXEEXT)
  64324. - $(LINK) $(upnp_tv_device_LDFLAGS) $(upnp_tv_device_OBJECTS) $(upnp_tv_device_LDADD) $(LIBS)
  64325. + $(LINK) $(upnp_tv_device_OBJECTS) $(upnp_tv_device_LDADD) $(LIBS)
  64326. mostlyclean-compile:
  64327. -rm -f *.$(OBJEXT)
  64328. @@ -444,165 +461,165 @@
  64329. @AMDEP_TRUE@@am__include@ @am__quote@tvdevice/linux/$(DEPDIR)/upnp_tv_device-upnp_tv_device_main.Po@am__quote@
  64330. .c.o:
  64331. -@am__fastdepCC_TRUE@ depbase=`echo $@ | sed 's|[^/]*$$|$(DEPDIR)/&|;s|\.o$$||'`; \
  64332. -@am__fastdepCC_TRUE@ if $(COMPILE) -MT $@ -MD -MP -MF "$$depbase.Tpo" -c -o $@ $<; \
  64333. -@am__fastdepCC_TRUE@ then mv -f "$$depbase.Tpo" "$$depbase.Po"; else rm -f "$$depbase.Tpo"; exit 1; fi
  64334. +@am__fastdepCC_TRUE@ depbase=`echo $@ | sed 's|[^/]*$$|$(DEPDIR)/&|;s|\.o$$||'`;\
  64335. +@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $$depbase.Tpo -c -o $@ $< &&\
  64336. +@am__fastdepCC_TRUE@ $(am__mv) $$depbase.Tpo $$depbase.Po
  64337. @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
  64338. @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
  64339. @am__fastdepCC_FALSE@ $(COMPILE) -c -o $@ $<
  64340. .c.obj:
  64341. -@am__fastdepCC_TRUE@ depbase=`echo $@ | sed 's|[^/]*$$|$(DEPDIR)/&|;s|\.obj$$||'`; \
  64342. -@am__fastdepCC_TRUE@ if $(COMPILE) -MT $@ -MD -MP -MF "$$depbase.Tpo" -c -o $@ `$(CYGPATH_W) '$<'`; \
  64343. -@am__fastdepCC_TRUE@ then mv -f "$$depbase.Tpo" "$$depbase.Po"; else rm -f "$$depbase.Tpo"; exit 1; fi
  64344. +@am__fastdepCC_TRUE@ depbase=`echo $@ | sed 's|[^/]*$$|$(DEPDIR)/&|;s|\.obj$$||'`;\
  64345. +@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $$depbase.Tpo -c -o $@ `$(CYGPATH_W) '$<'` &&\
  64346. +@am__fastdepCC_TRUE@ $(am__mv) $$depbase.Tpo $$depbase.Po
  64347. @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
  64348. @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
  64349. @am__fastdepCC_FALSE@ $(COMPILE) -c -o $@ `$(CYGPATH_W) '$<'`
  64350. .c.lo:
  64351. -@am__fastdepCC_TRUE@ depbase=`echo $@ | sed 's|[^/]*$$|$(DEPDIR)/&|;s|\.lo$$||'`; \
  64352. -@am__fastdepCC_TRUE@ if $(LTCOMPILE) -MT $@ -MD -MP -MF "$$depbase.Tpo" -c -o $@ $<; \
  64353. -@am__fastdepCC_TRUE@ then mv -f "$$depbase.Tpo" "$$depbase.Plo"; else rm -f "$$depbase.Tpo"; exit 1; fi
  64354. +@am__fastdepCC_TRUE@ depbase=`echo $@ | sed 's|[^/]*$$|$(DEPDIR)/&|;s|\.lo$$||'`;\
  64355. +@am__fastdepCC_TRUE@ $(LTCOMPILE) -MT $@ -MD -MP -MF $$depbase.Tpo -c -o $@ $< &&\
  64356. +@am__fastdepCC_TRUE@ $(am__mv) $$depbase.Tpo $$depbase.Plo
  64357. @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
  64358. @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
  64359. @am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ $<
  64360. common/upnp_tv_combo-sample_util.o: common/sample_util.c
  64361. -@am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(upnp_tv_combo_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT common/upnp_tv_combo-sample_util.o -MD -MP -MF "common/$(DEPDIR)/upnp_tv_combo-sample_util.Tpo" -c -o common/upnp_tv_combo-sample_util.o `test -f 'common/sample_util.c' || echo '$(srcdir)/'`common/sample_util.c; \
  64362. -@am__fastdepCC_TRUE@ then mv -f "common/$(DEPDIR)/upnp_tv_combo-sample_util.Tpo" "common/$(DEPDIR)/upnp_tv_combo-sample_util.Po"; else rm -f "common/$(DEPDIR)/upnp_tv_combo-sample_util.Tpo"; exit 1; fi
  64363. +@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(upnp_tv_combo_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT common/upnp_tv_combo-sample_util.o -MD -MP -MF common/$(DEPDIR)/upnp_tv_combo-sample_util.Tpo -c -o common/upnp_tv_combo-sample_util.o `test -f 'common/sample_util.c' || echo '$(srcdir)/'`common/sample_util.c
  64364. +@am__fastdepCC_TRUE@ $(am__mv) common/$(DEPDIR)/upnp_tv_combo-sample_util.Tpo common/$(DEPDIR)/upnp_tv_combo-sample_util.Po
  64365. @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='common/sample_util.c' object='common/upnp_tv_combo-sample_util.o' libtool=no @AMDEPBACKSLASH@
  64366. @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
  64367. @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(upnp_tv_combo_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o common/upnp_tv_combo-sample_util.o `test -f 'common/sample_util.c' || echo '$(srcdir)/'`common/sample_util.c
  64368. common/upnp_tv_combo-sample_util.obj: common/sample_util.c
  64369. -@am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(upnp_tv_combo_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT common/upnp_tv_combo-sample_util.obj -MD -MP -MF "common/$(DEPDIR)/upnp_tv_combo-sample_util.Tpo" -c -o common/upnp_tv_combo-sample_util.obj `if test -f 'common/sample_util.c'; then $(CYGPATH_W) 'common/sample_util.c'; else $(CYGPATH_W) '$(srcdir)/common/sample_util.c'; fi`; \
  64370. -@am__fastdepCC_TRUE@ then mv -f "common/$(DEPDIR)/upnp_tv_combo-sample_util.Tpo" "common/$(DEPDIR)/upnp_tv_combo-sample_util.Po"; else rm -f "common/$(DEPDIR)/upnp_tv_combo-sample_util.Tpo"; exit 1; fi
  64371. +@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(upnp_tv_combo_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT common/upnp_tv_combo-sample_util.obj -MD -MP -MF common/$(DEPDIR)/upnp_tv_combo-sample_util.Tpo -c -o common/upnp_tv_combo-sample_util.obj `if test -f 'common/sample_util.c'; then $(CYGPATH_W) 'common/sample_util.c'; else $(CYGPATH_W) '$(srcdir)/common/sample_util.c'; fi`
  64372. +@am__fastdepCC_TRUE@ $(am__mv) common/$(DEPDIR)/upnp_tv_combo-sample_util.Tpo common/$(DEPDIR)/upnp_tv_combo-sample_util.Po
  64373. @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='common/sample_util.c' object='common/upnp_tv_combo-sample_util.obj' libtool=no @AMDEPBACKSLASH@
  64374. @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
  64375. @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(upnp_tv_combo_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o common/upnp_tv_combo-sample_util.obj `if test -f 'common/sample_util.c'; then $(CYGPATH_W) 'common/sample_util.c'; else $(CYGPATH_W) '$(srcdir)/common/sample_util.c'; fi`
  64376. tvcombo/upnp_tv_combo-upnp_tv_ctrlpt.o: tvcombo/upnp_tv_ctrlpt.c
  64377. -@am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(upnp_tv_combo_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT tvcombo/upnp_tv_combo-upnp_tv_ctrlpt.o -MD -MP -MF "tvcombo/$(DEPDIR)/upnp_tv_combo-upnp_tv_ctrlpt.Tpo" -c -o tvcombo/upnp_tv_combo-upnp_tv_ctrlpt.o `test -f 'tvcombo/upnp_tv_ctrlpt.c' || echo '$(srcdir)/'`tvcombo/upnp_tv_ctrlpt.c; \
  64378. -@am__fastdepCC_TRUE@ then mv -f "tvcombo/$(DEPDIR)/upnp_tv_combo-upnp_tv_ctrlpt.Tpo" "tvcombo/$(DEPDIR)/upnp_tv_combo-upnp_tv_ctrlpt.Po"; else rm -f "tvcombo/$(DEPDIR)/upnp_tv_combo-upnp_tv_ctrlpt.Tpo"; exit 1; fi
  64379. +@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(upnp_tv_combo_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT tvcombo/upnp_tv_combo-upnp_tv_ctrlpt.o -MD -MP -MF tvcombo/$(DEPDIR)/upnp_tv_combo-upnp_tv_ctrlpt.Tpo -c -o tvcombo/upnp_tv_combo-upnp_tv_ctrlpt.o `test -f 'tvcombo/upnp_tv_ctrlpt.c' || echo '$(srcdir)/'`tvcombo/upnp_tv_ctrlpt.c
  64380. +@am__fastdepCC_TRUE@ $(am__mv) tvcombo/$(DEPDIR)/upnp_tv_combo-upnp_tv_ctrlpt.Tpo tvcombo/$(DEPDIR)/upnp_tv_combo-upnp_tv_ctrlpt.Po
  64381. @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='tvcombo/upnp_tv_ctrlpt.c' object='tvcombo/upnp_tv_combo-upnp_tv_ctrlpt.o' libtool=no @AMDEPBACKSLASH@
  64382. @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
  64383. @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(upnp_tv_combo_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o tvcombo/upnp_tv_combo-upnp_tv_ctrlpt.o `test -f 'tvcombo/upnp_tv_ctrlpt.c' || echo '$(srcdir)/'`tvcombo/upnp_tv_ctrlpt.c
  64384. tvcombo/upnp_tv_combo-upnp_tv_ctrlpt.obj: tvcombo/upnp_tv_ctrlpt.c
  64385. -@am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(upnp_tv_combo_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT tvcombo/upnp_tv_combo-upnp_tv_ctrlpt.obj -MD -MP -MF "tvcombo/$(DEPDIR)/upnp_tv_combo-upnp_tv_ctrlpt.Tpo" -c -o tvcombo/upnp_tv_combo-upnp_tv_ctrlpt.obj `if test -f 'tvcombo/upnp_tv_ctrlpt.c'; then $(CYGPATH_W) 'tvcombo/upnp_tv_ctrlpt.c'; else $(CYGPATH_W) '$(srcdir)/tvcombo/upnp_tv_ctrlpt.c'; fi`; \
  64386. -@am__fastdepCC_TRUE@ then mv -f "tvcombo/$(DEPDIR)/upnp_tv_combo-upnp_tv_ctrlpt.Tpo" "tvcombo/$(DEPDIR)/upnp_tv_combo-upnp_tv_ctrlpt.Po"; else rm -f "tvcombo/$(DEPDIR)/upnp_tv_combo-upnp_tv_ctrlpt.Tpo"; exit 1; fi
  64387. +@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(upnp_tv_combo_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT tvcombo/upnp_tv_combo-upnp_tv_ctrlpt.obj -MD -MP -MF tvcombo/$(DEPDIR)/upnp_tv_combo-upnp_tv_ctrlpt.Tpo -c -o tvcombo/upnp_tv_combo-upnp_tv_ctrlpt.obj `if test -f 'tvcombo/upnp_tv_ctrlpt.c'; then $(CYGPATH_W) 'tvcombo/upnp_tv_ctrlpt.c'; else $(CYGPATH_W) '$(srcdir)/tvcombo/upnp_tv_ctrlpt.c'; fi`
  64388. +@am__fastdepCC_TRUE@ $(am__mv) tvcombo/$(DEPDIR)/upnp_tv_combo-upnp_tv_ctrlpt.Tpo tvcombo/$(DEPDIR)/upnp_tv_combo-upnp_tv_ctrlpt.Po
  64389. @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='tvcombo/upnp_tv_ctrlpt.c' object='tvcombo/upnp_tv_combo-upnp_tv_ctrlpt.obj' libtool=no @AMDEPBACKSLASH@
  64390. @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
  64391. @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(upnp_tv_combo_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o tvcombo/upnp_tv_combo-upnp_tv_ctrlpt.obj `if test -f 'tvcombo/upnp_tv_ctrlpt.c'; then $(CYGPATH_W) 'tvcombo/upnp_tv_ctrlpt.c'; else $(CYGPATH_W) '$(srcdir)/tvcombo/upnp_tv_ctrlpt.c'; fi`
  64392. tvcombo/upnp_tv_combo-upnp_tv_device.o: tvcombo/upnp_tv_device.c
  64393. -@am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(upnp_tv_combo_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT tvcombo/upnp_tv_combo-upnp_tv_device.o -MD -MP -MF "tvcombo/$(DEPDIR)/upnp_tv_combo-upnp_tv_device.Tpo" -c -o tvcombo/upnp_tv_combo-upnp_tv_device.o `test -f 'tvcombo/upnp_tv_device.c' || echo '$(srcdir)/'`tvcombo/upnp_tv_device.c; \
  64394. -@am__fastdepCC_TRUE@ then mv -f "tvcombo/$(DEPDIR)/upnp_tv_combo-upnp_tv_device.Tpo" "tvcombo/$(DEPDIR)/upnp_tv_combo-upnp_tv_device.Po"; else rm -f "tvcombo/$(DEPDIR)/upnp_tv_combo-upnp_tv_device.Tpo"; exit 1; fi
  64395. +@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(upnp_tv_combo_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT tvcombo/upnp_tv_combo-upnp_tv_device.o -MD -MP -MF tvcombo/$(DEPDIR)/upnp_tv_combo-upnp_tv_device.Tpo -c -o tvcombo/upnp_tv_combo-upnp_tv_device.o `test -f 'tvcombo/upnp_tv_device.c' || echo '$(srcdir)/'`tvcombo/upnp_tv_device.c
  64396. +@am__fastdepCC_TRUE@ $(am__mv) tvcombo/$(DEPDIR)/upnp_tv_combo-upnp_tv_device.Tpo tvcombo/$(DEPDIR)/upnp_tv_combo-upnp_tv_device.Po
  64397. @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='tvcombo/upnp_tv_device.c' object='tvcombo/upnp_tv_combo-upnp_tv_device.o' libtool=no @AMDEPBACKSLASH@
  64398. @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
  64399. @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(upnp_tv_combo_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o tvcombo/upnp_tv_combo-upnp_tv_device.o `test -f 'tvcombo/upnp_tv_device.c' || echo '$(srcdir)/'`tvcombo/upnp_tv_device.c
  64400. tvcombo/upnp_tv_combo-upnp_tv_device.obj: tvcombo/upnp_tv_device.c
  64401. -@am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(upnp_tv_combo_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT tvcombo/upnp_tv_combo-upnp_tv_device.obj -MD -MP -MF "tvcombo/$(DEPDIR)/upnp_tv_combo-upnp_tv_device.Tpo" -c -o tvcombo/upnp_tv_combo-upnp_tv_device.obj `if test -f 'tvcombo/upnp_tv_device.c'; then $(CYGPATH_W) 'tvcombo/upnp_tv_device.c'; else $(CYGPATH_W) '$(srcdir)/tvcombo/upnp_tv_device.c'; fi`; \
  64402. -@am__fastdepCC_TRUE@ then mv -f "tvcombo/$(DEPDIR)/upnp_tv_combo-upnp_tv_device.Tpo" "tvcombo/$(DEPDIR)/upnp_tv_combo-upnp_tv_device.Po"; else rm -f "tvcombo/$(DEPDIR)/upnp_tv_combo-upnp_tv_device.Tpo"; exit 1; fi
  64403. +@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(upnp_tv_combo_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT tvcombo/upnp_tv_combo-upnp_tv_device.obj -MD -MP -MF tvcombo/$(DEPDIR)/upnp_tv_combo-upnp_tv_device.Tpo -c -o tvcombo/upnp_tv_combo-upnp_tv_device.obj `if test -f 'tvcombo/upnp_tv_device.c'; then $(CYGPATH_W) 'tvcombo/upnp_tv_device.c'; else $(CYGPATH_W) '$(srcdir)/tvcombo/upnp_tv_device.c'; fi`
  64404. +@am__fastdepCC_TRUE@ $(am__mv) tvcombo/$(DEPDIR)/upnp_tv_combo-upnp_tv_device.Tpo tvcombo/$(DEPDIR)/upnp_tv_combo-upnp_tv_device.Po
  64405. @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='tvcombo/upnp_tv_device.c' object='tvcombo/upnp_tv_combo-upnp_tv_device.obj' libtool=no @AMDEPBACKSLASH@
  64406. @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
  64407. @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(upnp_tv_combo_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o tvcombo/upnp_tv_combo-upnp_tv_device.obj `if test -f 'tvcombo/upnp_tv_device.c'; then $(CYGPATH_W) 'tvcombo/upnp_tv_device.c'; else $(CYGPATH_W) '$(srcdir)/tvcombo/upnp_tv_device.c'; fi`
  64408. tvcombo/linux/upnp_tv_combo-upnp_tv_combo_main.o: tvcombo/linux/upnp_tv_combo_main.c
  64409. -@am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(upnp_tv_combo_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT tvcombo/linux/upnp_tv_combo-upnp_tv_combo_main.o -MD -MP -MF "tvcombo/linux/$(DEPDIR)/upnp_tv_combo-upnp_tv_combo_main.Tpo" -c -o tvcombo/linux/upnp_tv_combo-upnp_tv_combo_main.o `test -f 'tvcombo/linux/upnp_tv_combo_main.c' || echo '$(srcdir)/'`tvcombo/linux/upnp_tv_combo_main.c; \
  64410. -@am__fastdepCC_TRUE@ then mv -f "tvcombo/linux/$(DEPDIR)/upnp_tv_combo-upnp_tv_combo_main.Tpo" "tvcombo/linux/$(DEPDIR)/upnp_tv_combo-upnp_tv_combo_main.Po"; else rm -f "tvcombo/linux/$(DEPDIR)/upnp_tv_combo-upnp_tv_combo_main.Tpo"; exit 1; fi
  64411. +@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(upnp_tv_combo_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT tvcombo/linux/upnp_tv_combo-upnp_tv_combo_main.o -MD -MP -MF tvcombo/linux/$(DEPDIR)/upnp_tv_combo-upnp_tv_combo_main.Tpo -c -o tvcombo/linux/upnp_tv_combo-upnp_tv_combo_main.o `test -f 'tvcombo/linux/upnp_tv_combo_main.c' || echo '$(srcdir)/'`tvcombo/linux/upnp_tv_combo_main.c
  64412. +@am__fastdepCC_TRUE@ $(am__mv) tvcombo/linux/$(DEPDIR)/upnp_tv_combo-upnp_tv_combo_main.Tpo tvcombo/linux/$(DEPDIR)/upnp_tv_combo-upnp_tv_combo_main.Po
  64413. @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='tvcombo/linux/upnp_tv_combo_main.c' object='tvcombo/linux/upnp_tv_combo-upnp_tv_combo_main.o' libtool=no @AMDEPBACKSLASH@
  64414. @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
  64415. @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(upnp_tv_combo_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o tvcombo/linux/upnp_tv_combo-upnp_tv_combo_main.o `test -f 'tvcombo/linux/upnp_tv_combo_main.c' || echo '$(srcdir)/'`tvcombo/linux/upnp_tv_combo_main.c
  64416. tvcombo/linux/upnp_tv_combo-upnp_tv_combo_main.obj: tvcombo/linux/upnp_tv_combo_main.c
  64417. -@am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(upnp_tv_combo_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT tvcombo/linux/upnp_tv_combo-upnp_tv_combo_main.obj -MD -MP -MF "tvcombo/linux/$(DEPDIR)/upnp_tv_combo-upnp_tv_combo_main.Tpo" -c -o tvcombo/linux/upnp_tv_combo-upnp_tv_combo_main.obj `if test -f 'tvcombo/linux/upnp_tv_combo_main.c'; then $(CYGPATH_W) 'tvcombo/linux/upnp_tv_combo_main.c'; else $(CYGPATH_W) '$(srcdir)/tvcombo/linux/upnp_tv_combo_main.c'; fi`; \
  64418. -@am__fastdepCC_TRUE@ then mv -f "tvcombo/linux/$(DEPDIR)/upnp_tv_combo-upnp_tv_combo_main.Tpo" "tvcombo/linux/$(DEPDIR)/upnp_tv_combo-upnp_tv_combo_main.Po"; else rm -f "tvcombo/linux/$(DEPDIR)/upnp_tv_combo-upnp_tv_combo_main.Tpo"; exit 1; fi
  64419. +@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(upnp_tv_combo_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT tvcombo/linux/upnp_tv_combo-upnp_tv_combo_main.obj -MD -MP -MF tvcombo/linux/$(DEPDIR)/upnp_tv_combo-upnp_tv_combo_main.Tpo -c -o tvcombo/linux/upnp_tv_combo-upnp_tv_combo_main.obj `if test -f 'tvcombo/linux/upnp_tv_combo_main.c'; then $(CYGPATH_W) 'tvcombo/linux/upnp_tv_combo_main.c'; else $(CYGPATH_W) '$(srcdir)/tvcombo/linux/upnp_tv_combo_main.c'; fi`
  64420. +@am__fastdepCC_TRUE@ $(am__mv) tvcombo/linux/$(DEPDIR)/upnp_tv_combo-upnp_tv_combo_main.Tpo tvcombo/linux/$(DEPDIR)/upnp_tv_combo-upnp_tv_combo_main.Po
  64421. @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='tvcombo/linux/upnp_tv_combo_main.c' object='tvcombo/linux/upnp_tv_combo-upnp_tv_combo_main.obj' libtool=no @AMDEPBACKSLASH@
  64422. @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
  64423. @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(upnp_tv_combo_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o tvcombo/linux/upnp_tv_combo-upnp_tv_combo_main.obj `if test -f 'tvcombo/linux/upnp_tv_combo_main.c'; then $(CYGPATH_W) 'tvcombo/linux/upnp_tv_combo_main.c'; else $(CYGPATH_W) '$(srcdir)/tvcombo/linux/upnp_tv_combo_main.c'; fi`
  64424. common/upnp_tv_ctrlpt-sample_util.o: common/sample_util.c
  64425. -@am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(upnp_tv_ctrlpt_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT common/upnp_tv_ctrlpt-sample_util.o -MD -MP -MF "common/$(DEPDIR)/upnp_tv_ctrlpt-sample_util.Tpo" -c -o common/upnp_tv_ctrlpt-sample_util.o `test -f 'common/sample_util.c' || echo '$(srcdir)/'`common/sample_util.c; \
  64426. -@am__fastdepCC_TRUE@ then mv -f "common/$(DEPDIR)/upnp_tv_ctrlpt-sample_util.Tpo" "common/$(DEPDIR)/upnp_tv_ctrlpt-sample_util.Po"; else rm -f "common/$(DEPDIR)/upnp_tv_ctrlpt-sample_util.Tpo"; exit 1; fi
  64427. +@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(upnp_tv_ctrlpt_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT common/upnp_tv_ctrlpt-sample_util.o -MD -MP -MF common/$(DEPDIR)/upnp_tv_ctrlpt-sample_util.Tpo -c -o common/upnp_tv_ctrlpt-sample_util.o `test -f 'common/sample_util.c' || echo '$(srcdir)/'`common/sample_util.c
  64428. +@am__fastdepCC_TRUE@ $(am__mv) common/$(DEPDIR)/upnp_tv_ctrlpt-sample_util.Tpo common/$(DEPDIR)/upnp_tv_ctrlpt-sample_util.Po
  64429. @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='common/sample_util.c' object='common/upnp_tv_ctrlpt-sample_util.o' libtool=no @AMDEPBACKSLASH@
  64430. @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
  64431. @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(upnp_tv_ctrlpt_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o common/upnp_tv_ctrlpt-sample_util.o `test -f 'common/sample_util.c' || echo '$(srcdir)/'`common/sample_util.c
  64432. common/upnp_tv_ctrlpt-sample_util.obj: common/sample_util.c
  64433. -@am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(upnp_tv_ctrlpt_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT common/upnp_tv_ctrlpt-sample_util.obj -MD -MP -MF "common/$(DEPDIR)/upnp_tv_ctrlpt-sample_util.Tpo" -c -o common/upnp_tv_ctrlpt-sample_util.obj `if test -f 'common/sample_util.c'; then $(CYGPATH_W) 'common/sample_util.c'; else $(CYGPATH_W) '$(srcdir)/common/sample_util.c'; fi`; \
  64434. -@am__fastdepCC_TRUE@ then mv -f "common/$(DEPDIR)/upnp_tv_ctrlpt-sample_util.Tpo" "common/$(DEPDIR)/upnp_tv_ctrlpt-sample_util.Po"; else rm -f "common/$(DEPDIR)/upnp_tv_ctrlpt-sample_util.Tpo"; exit 1; fi
  64435. +@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(upnp_tv_ctrlpt_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT common/upnp_tv_ctrlpt-sample_util.obj -MD -MP -MF common/$(DEPDIR)/upnp_tv_ctrlpt-sample_util.Tpo -c -o common/upnp_tv_ctrlpt-sample_util.obj `if test -f 'common/sample_util.c'; then $(CYGPATH_W) 'common/sample_util.c'; else $(CYGPATH_W) '$(srcdir)/common/sample_util.c'; fi`
  64436. +@am__fastdepCC_TRUE@ $(am__mv) common/$(DEPDIR)/upnp_tv_ctrlpt-sample_util.Tpo common/$(DEPDIR)/upnp_tv_ctrlpt-sample_util.Po
  64437. @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='common/sample_util.c' object='common/upnp_tv_ctrlpt-sample_util.obj' libtool=no @AMDEPBACKSLASH@
  64438. @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
  64439. @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(upnp_tv_ctrlpt_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o common/upnp_tv_ctrlpt-sample_util.obj `if test -f 'common/sample_util.c'; then $(CYGPATH_W) 'common/sample_util.c'; else $(CYGPATH_W) '$(srcdir)/common/sample_util.c'; fi`
  64440. tvctrlpt/upnp_tv_ctrlpt-upnp_tv_ctrlpt.o: tvctrlpt/upnp_tv_ctrlpt.c
  64441. -@am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(upnp_tv_ctrlpt_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT tvctrlpt/upnp_tv_ctrlpt-upnp_tv_ctrlpt.o -MD -MP -MF "tvctrlpt/$(DEPDIR)/upnp_tv_ctrlpt-upnp_tv_ctrlpt.Tpo" -c -o tvctrlpt/upnp_tv_ctrlpt-upnp_tv_ctrlpt.o `test -f 'tvctrlpt/upnp_tv_ctrlpt.c' || echo '$(srcdir)/'`tvctrlpt/upnp_tv_ctrlpt.c; \
  64442. -@am__fastdepCC_TRUE@ then mv -f "tvctrlpt/$(DEPDIR)/upnp_tv_ctrlpt-upnp_tv_ctrlpt.Tpo" "tvctrlpt/$(DEPDIR)/upnp_tv_ctrlpt-upnp_tv_ctrlpt.Po"; else rm -f "tvctrlpt/$(DEPDIR)/upnp_tv_ctrlpt-upnp_tv_ctrlpt.Tpo"; exit 1; fi
  64443. +@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(upnp_tv_ctrlpt_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT tvctrlpt/upnp_tv_ctrlpt-upnp_tv_ctrlpt.o -MD -MP -MF tvctrlpt/$(DEPDIR)/upnp_tv_ctrlpt-upnp_tv_ctrlpt.Tpo -c -o tvctrlpt/upnp_tv_ctrlpt-upnp_tv_ctrlpt.o `test -f 'tvctrlpt/upnp_tv_ctrlpt.c' || echo '$(srcdir)/'`tvctrlpt/upnp_tv_ctrlpt.c
  64444. +@am__fastdepCC_TRUE@ $(am__mv) tvctrlpt/$(DEPDIR)/upnp_tv_ctrlpt-upnp_tv_ctrlpt.Tpo tvctrlpt/$(DEPDIR)/upnp_tv_ctrlpt-upnp_tv_ctrlpt.Po
  64445. @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='tvctrlpt/upnp_tv_ctrlpt.c' object='tvctrlpt/upnp_tv_ctrlpt-upnp_tv_ctrlpt.o' libtool=no @AMDEPBACKSLASH@
  64446. @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
  64447. @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(upnp_tv_ctrlpt_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o tvctrlpt/upnp_tv_ctrlpt-upnp_tv_ctrlpt.o `test -f 'tvctrlpt/upnp_tv_ctrlpt.c' || echo '$(srcdir)/'`tvctrlpt/upnp_tv_ctrlpt.c
  64448. tvctrlpt/upnp_tv_ctrlpt-upnp_tv_ctrlpt.obj: tvctrlpt/upnp_tv_ctrlpt.c
  64449. -@am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(upnp_tv_ctrlpt_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT tvctrlpt/upnp_tv_ctrlpt-upnp_tv_ctrlpt.obj -MD -MP -MF "tvctrlpt/$(DEPDIR)/upnp_tv_ctrlpt-upnp_tv_ctrlpt.Tpo" -c -o tvctrlpt/upnp_tv_ctrlpt-upnp_tv_ctrlpt.obj `if test -f 'tvctrlpt/upnp_tv_ctrlpt.c'; then $(CYGPATH_W) 'tvctrlpt/upnp_tv_ctrlpt.c'; else $(CYGPATH_W) '$(srcdir)/tvctrlpt/upnp_tv_ctrlpt.c'; fi`; \
  64450. -@am__fastdepCC_TRUE@ then mv -f "tvctrlpt/$(DEPDIR)/upnp_tv_ctrlpt-upnp_tv_ctrlpt.Tpo" "tvctrlpt/$(DEPDIR)/upnp_tv_ctrlpt-upnp_tv_ctrlpt.Po"; else rm -f "tvctrlpt/$(DEPDIR)/upnp_tv_ctrlpt-upnp_tv_ctrlpt.Tpo"; exit 1; fi
  64451. +@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(upnp_tv_ctrlpt_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT tvctrlpt/upnp_tv_ctrlpt-upnp_tv_ctrlpt.obj -MD -MP -MF tvctrlpt/$(DEPDIR)/upnp_tv_ctrlpt-upnp_tv_ctrlpt.Tpo -c -o tvctrlpt/upnp_tv_ctrlpt-upnp_tv_ctrlpt.obj `if test -f 'tvctrlpt/upnp_tv_ctrlpt.c'; then $(CYGPATH_W) 'tvctrlpt/upnp_tv_ctrlpt.c'; else $(CYGPATH_W) '$(srcdir)/tvctrlpt/upnp_tv_ctrlpt.c'; fi`
  64452. +@am__fastdepCC_TRUE@ $(am__mv) tvctrlpt/$(DEPDIR)/upnp_tv_ctrlpt-upnp_tv_ctrlpt.Tpo tvctrlpt/$(DEPDIR)/upnp_tv_ctrlpt-upnp_tv_ctrlpt.Po
  64453. @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='tvctrlpt/upnp_tv_ctrlpt.c' object='tvctrlpt/upnp_tv_ctrlpt-upnp_tv_ctrlpt.obj' libtool=no @AMDEPBACKSLASH@
  64454. @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
  64455. @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(upnp_tv_ctrlpt_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o tvctrlpt/upnp_tv_ctrlpt-upnp_tv_ctrlpt.obj `if test -f 'tvctrlpt/upnp_tv_ctrlpt.c'; then $(CYGPATH_W) 'tvctrlpt/upnp_tv_ctrlpt.c'; else $(CYGPATH_W) '$(srcdir)/tvctrlpt/upnp_tv_ctrlpt.c'; fi`
  64456. tvctrlpt/linux/upnp_tv_ctrlpt-upnp_tv_ctrlpt_main.o: tvctrlpt/linux/upnp_tv_ctrlpt_main.c
  64457. -@am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(upnp_tv_ctrlpt_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT tvctrlpt/linux/upnp_tv_ctrlpt-upnp_tv_ctrlpt_main.o -MD -MP -MF "tvctrlpt/linux/$(DEPDIR)/upnp_tv_ctrlpt-upnp_tv_ctrlpt_main.Tpo" -c -o tvctrlpt/linux/upnp_tv_ctrlpt-upnp_tv_ctrlpt_main.o `test -f 'tvctrlpt/linux/upnp_tv_ctrlpt_main.c' || echo '$(srcdir)/'`tvctrlpt/linux/upnp_tv_ctrlpt_main.c; \
  64458. -@am__fastdepCC_TRUE@ then mv -f "tvctrlpt/linux/$(DEPDIR)/upnp_tv_ctrlpt-upnp_tv_ctrlpt_main.Tpo" "tvctrlpt/linux/$(DEPDIR)/upnp_tv_ctrlpt-upnp_tv_ctrlpt_main.Po"; else rm -f "tvctrlpt/linux/$(DEPDIR)/upnp_tv_ctrlpt-upnp_tv_ctrlpt_main.Tpo"; exit 1; fi
  64459. +@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(upnp_tv_ctrlpt_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT tvctrlpt/linux/upnp_tv_ctrlpt-upnp_tv_ctrlpt_main.o -MD -MP -MF tvctrlpt/linux/$(DEPDIR)/upnp_tv_ctrlpt-upnp_tv_ctrlpt_main.Tpo -c -o tvctrlpt/linux/upnp_tv_ctrlpt-upnp_tv_ctrlpt_main.o `test -f 'tvctrlpt/linux/upnp_tv_ctrlpt_main.c' || echo '$(srcdir)/'`tvctrlpt/linux/upnp_tv_ctrlpt_main.c
  64460. +@am__fastdepCC_TRUE@ $(am__mv) tvctrlpt/linux/$(DEPDIR)/upnp_tv_ctrlpt-upnp_tv_ctrlpt_main.Tpo tvctrlpt/linux/$(DEPDIR)/upnp_tv_ctrlpt-upnp_tv_ctrlpt_main.Po
  64461. @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='tvctrlpt/linux/upnp_tv_ctrlpt_main.c' object='tvctrlpt/linux/upnp_tv_ctrlpt-upnp_tv_ctrlpt_main.o' libtool=no @AMDEPBACKSLASH@
  64462. @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
  64463. @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(upnp_tv_ctrlpt_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o tvctrlpt/linux/upnp_tv_ctrlpt-upnp_tv_ctrlpt_main.o `test -f 'tvctrlpt/linux/upnp_tv_ctrlpt_main.c' || echo '$(srcdir)/'`tvctrlpt/linux/upnp_tv_ctrlpt_main.c
  64464. tvctrlpt/linux/upnp_tv_ctrlpt-upnp_tv_ctrlpt_main.obj: tvctrlpt/linux/upnp_tv_ctrlpt_main.c
  64465. -@am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(upnp_tv_ctrlpt_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT tvctrlpt/linux/upnp_tv_ctrlpt-upnp_tv_ctrlpt_main.obj -MD -MP -MF "tvctrlpt/linux/$(DEPDIR)/upnp_tv_ctrlpt-upnp_tv_ctrlpt_main.Tpo" -c -o tvctrlpt/linux/upnp_tv_ctrlpt-upnp_tv_ctrlpt_main.obj `if test -f 'tvctrlpt/linux/upnp_tv_ctrlpt_main.c'; then $(CYGPATH_W) 'tvctrlpt/linux/upnp_tv_ctrlpt_main.c'; else $(CYGPATH_W) '$(srcdir)/tvctrlpt/linux/upnp_tv_ctrlpt_main.c'; fi`; \
  64466. -@am__fastdepCC_TRUE@ then mv -f "tvctrlpt/linux/$(DEPDIR)/upnp_tv_ctrlpt-upnp_tv_ctrlpt_main.Tpo" "tvctrlpt/linux/$(DEPDIR)/upnp_tv_ctrlpt-upnp_tv_ctrlpt_main.Po"; else rm -f "tvctrlpt/linux/$(DEPDIR)/upnp_tv_ctrlpt-upnp_tv_ctrlpt_main.Tpo"; exit 1; fi
  64467. +@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(upnp_tv_ctrlpt_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT tvctrlpt/linux/upnp_tv_ctrlpt-upnp_tv_ctrlpt_main.obj -MD -MP -MF tvctrlpt/linux/$(DEPDIR)/upnp_tv_ctrlpt-upnp_tv_ctrlpt_main.Tpo -c -o tvctrlpt/linux/upnp_tv_ctrlpt-upnp_tv_ctrlpt_main.obj `if test -f 'tvctrlpt/linux/upnp_tv_ctrlpt_main.c'; then $(CYGPATH_W) 'tvctrlpt/linux/upnp_tv_ctrlpt_main.c'; else $(CYGPATH_W) '$(srcdir)/tvctrlpt/linux/upnp_tv_ctrlpt_main.c'; fi`
  64468. +@am__fastdepCC_TRUE@ $(am__mv) tvctrlpt/linux/$(DEPDIR)/upnp_tv_ctrlpt-upnp_tv_ctrlpt_main.Tpo tvctrlpt/linux/$(DEPDIR)/upnp_tv_ctrlpt-upnp_tv_ctrlpt_main.Po
  64469. @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='tvctrlpt/linux/upnp_tv_ctrlpt_main.c' object='tvctrlpt/linux/upnp_tv_ctrlpt-upnp_tv_ctrlpt_main.obj' libtool=no @AMDEPBACKSLASH@
  64470. @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
  64471. @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(upnp_tv_ctrlpt_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o tvctrlpt/linux/upnp_tv_ctrlpt-upnp_tv_ctrlpt_main.obj `if test -f 'tvctrlpt/linux/upnp_tv_ctrlpt_main.c'; then $(CYGPATH_W) 'tvctrlpt/linux/upnp_tv_ctrlpt_main.c'; else $(CYGPATH_W) '$(srcdir)/tvctrlpt/linux/upnp_tv_ctrlpt_main.c'; fi`
  64472. common/upnp_tv_device-sample_util.o: common/sample_util.c
  64473. -@am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(upnp_tv_device_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT common/upnp_tv_device-sample_util.o -MD -MP -MF "common/$(DEPDIR)/upnp_tv_device-sample_util.Tpo" -c -o common/upnp_tv_device-sample_util.o `test -f 'common/sample_util.c' || echo '$(srcdir)/'`common/sample_util.c; \
  64474. -@am__fastdepCC_TRUE@ then mv -f "common/$(DEPDIR)/upnp_tv_device-sample_util.Tpo" "common/$(DEPDIR)/upnp_tv_device-sample_util.Po"; else rm -f "common/$(DEPDIR)/upnp_tv_device-sample_util.Tpo"; exit 1; fi
  64475. +@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(upnp_tv_device_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT common/upnp_tv_device-sample_util.o -MD -MP -MF common/$(DEPDIR)/upnp_tv_device-sample_util.Tpo -c -o common/upnp_tv_device-sample_util.o `test -f 'common/sample_util.c' || echo '$(srcdir)/'`common/sample_util.c
  64476. +@am__fastdepCC_TRUE@ $(am__mv) common/$(DEPDIR)/upnp_tv_device-sample_util.Tpo common/$(DEPDIR)/upnp_tv_device-sample_util.Po
  64477. @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='common/sample_util.c' object='common/upnp_tv_device-sample_util.o' libtool=no @AMDEPBACKSLASH@
  64478. @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
  64479. @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(upnp_tv_device_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o common/upnp_tv_device-sample_util.o `test -f 'common/sample_util.c' || echo '$(srcdir)/'`common/sample_util.c
  64480. common/upnp_tv_device-sample_util.obj: common/sample_util.c
  64481. -@am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(upnp_tv_device_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT common/upnp_tv_device-sample_util.obj -MD -MP -MF "common/$(DEPDIR)/upnp_tv_device-sample_util.Tpo" -c -o common/upnp_tv_device-sample_util.obj `if test -f 'common/sample_util.c'; then $(CYGPATH_W) 'common/sample_util.c'; else $(CYGPATH_W) '$(srcdir)/common/sample_util.c'; fi`; \
  64482. -@am__fastdepCC_TRUE@ then mv -f "common/$(DEPDIR)/upnp_tv_device-sample_util.Tpo" "common/$(DEPDIR)/upnp_tv_device-sample_util.Po"; else rm -f "common/$(DEPDIR)/upnp_tv_device-sample_util.Tpo"; exit 1; fi
  64483. +@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(upnp_tv_device_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT common/upnp_tv_device-sample_util.obj -MD -MP -MF common/$(DEPDIR)/upnp_tv_device-sample_util.Tpo -c -o common/upnp_tv_device-sample_util.obj `if test -f 'common/sample_util.c'; then $(CYGPATH_W) 'common/sample_util.c'; else $(CYGPATH_W) '$(srcdir)/common/sample_util.c'; fi`
  64484. +@am__fastdepCC_TRUE@ $(am__mv) common/$(DEPDIR)/upnp_tv_device-sample_util.Tpo common/$(DEPDIR)/upnp_tv_device-sample_util.Po
  64485. @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='common/sample_util.c' object='common/upnp_tv_device-sample_util.obj' libtool=no @AMDEPBACKSLASH@
  64486. @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
  64487. @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(upnp_tv_device_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o common/upnp_tv_device-sample_util.obj `if test -f 'common/sample_util.c'; then $(CYGPATH_W) 'common/sample_util.c'; else $(CYGPATH_W) '$(srcdir)/common/sample_util.c'; fi`
  64488. tvdevice/upnp_tv_device-upnp_tv_device.o: tvdevice/upnp_tv_device.c
  64489. -@am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(upnp_tv_device_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT tvdevice/upnp_tv_device-upnp_tv_device.o -MD -MP -MF "tvdevice/$(DEPDIR)/upnp_tv_device-upnp_tv_device.Tpo" -c -o tvdevice/upnp_tv_device-upnp_tv_device.o `test -f 'tvdevice/upnp_tv_device.c' || echo '$(srcdir)/'`tvdevice/upnp_tv_device.c; \
  64490. -@am__fastdepCC_TRUE@ then mv -f "tvdevice/$(DEPDIR)/upnp_tv_device-upnp_tv_device.Tpo" "tvdevice/$(DEPDIR)/upnp_tv_device-upnp_tv_device.Po"; else rm -f "tvdevice/$(DEPDIR)/upnp_tv_device-upnp_tv_device.Tpo"; exit 1; fi
  64491. +@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(upnp_tv_device_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT tvdevice/upnp_tv_device-upnp_tv_device.o -MD -MP -MF tvdevice/$(DEPDIR)/upnp_tv_device-upnp_tv_device.Tpo -c -o tvdevice/upnp_tv_device-upnp_tv_device.o `test -f 'tvdevice/upnp_tv_device.c' || echo '$(srcdir)/'`tvdevice/upnp_tv_device.c
  64492. +@am__fastdepCC_TRUE@ $(am__mv) tvdevice/$(DEPDIR)/upnp_tv_device-upnp_tv_device.Tpo tvdevice/$(DEPDIR)/upnp_tv_device-upnp_tv_device.Po
  64493. @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='tvdevice/upnp_tv_device.c' object='tvdevice/upnp_tv_device-upnp_tv_device.o' libtool=no @AMDEPBACKSLASH@
  64494. @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
  64495. @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(upnp_tv_device_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o tvdevice/upnp_tv_device-upnp_tv_device.o `test -f 'tvdevice/upnp_tv_device.c' || echo '$(srcdir)/'`tvdevice/upnp_tv_device.c
  64496. tvdevice/upnp_tv_device-upnp_tv_device.obj: tvdevice/upnp_tv_device.c
  64497. -@am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(upnp_tv_device_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT tvdevice/upnp_tv_device-upnp_tv_device.obj -MD -MP -MF "tvdevice/$(DEPDIR)/upnp_tv_device-upnp_tv_device.Tpo" -c -o tvdevice/upnp_tv_device-upnp_tv_device.obj `if test -f 'tvdevice/upnp_tv_device.c'; then $(CYGPATH_W) 'tvdevice/upnp_tv_device.c'; else $(CYGPATH_W) '$(srcdir)/tvdevice/upnp_tv_device.c'; fi`; \
  64498. -@am__fastdepCC_TRUE@ then mv -f "tvdevice/$(DEPDIR)/upnp_tv_device-upnp_tv_device.Tpo" "tvdevice/$(DEPDIR)/upnp_tv_device-upnp_tv_device.Po"; else rm -f "tvdevice/$(DEPDIR)/upnp_tv_device-upnp_tv_device.Tpo"; exit 1; fi
  64499. +@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(upnp_tv_device_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT tvdevice/upnp_tv_device-upnp_tv_device.obj -MD -MP -MF tvdevice/$(DEPDIR)/upnp_tv_device-upnp_tv_device.Tpo -c -o tvdevice/upnp_tv_device-upnp_tv_device.obj `if test -f 'tvdevice/upnp_tv_device.c'; then $(CYGPATH_W) 'tvdevice/upnp_tv_device.c'; else $(CYGPATH_W) '$(srcdir)/tvdevice/upnp_tv_device.c'; fi`
  64500. +@am__fastdepCC_TRUE@ $(am__mv) tvdevice/$(DEPDIR)/upnp_tv_device-upnp_tv_device.Tpo tvdevice/$(DEPDIR)/upnp_tv_device-upnp_tv_device.Po
  64501. @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='tvdevice/upnp_tv_device.c' object='tvdevice/upnp_tv_device-upnp_tv_device.obj' libtool=no @AMDEPBACKSLASH@
  64502. @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
  64503. @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(upnp_tv_device_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o tvdevice/upnp_tv_device-upnp_tv_device.obj `if test -f 'tvdevice/upnp_tv_device.c'; then $(CYGPATH_W) 'tvdevice/upnp_tv_device.c'; else $(CYGPATH_W) '$(srcdir)/tvdevice/upnp_tv_device.c'; fi`
  64504. tvdevice/linux/upnp_tv_device-upnp_tv_device_main.o: tvdevice/linux/upnp_tv_device_main.c
  64505. -@am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(upnp_tv_device_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT tvdevice/linux/upnp_tv_device-upnp_tv_device_main.o -MD -MP -MF "tvdevice/linux/$(DEPDIR)/upnp_tv_device-upnp_tv_device_main.Tpo" -c -o tvdevice/linux/upnp_tv_device-upnp_tv_device_main.o `test -f 'tvdevice/linux/upnp_tv_device_main.c' || echo '$(srcdir)/'`tvdevice/linux/upnp_tv_device_main.c; \
  64506. -@am__fastdepCC_TRUE@ then mv -f "tvdevice/linux/$(DEPDIR)/upnp_tv_device-upnp_tv_device_main.Tpo" "tvdevice/linux/$(DEPDIR)/upnp_tv_device-upnp_tv_device_main.Po"; else rm -f "tvdevice/linux/$(DEPDIR)/upnp_tv_device-upnp_tv_device_main.Tpo"; exit 1; fi
  64507. +@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(upnp_tv_device_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT tvdevice/linux/upnp_tv_device-upnp_tv_device_main.o -MD -MP -MF tvdevice/linux/$(DEPDIR)/upnp_tv_device-upnp_tv_device_main.Tpo -c -o tvdevice/linux/upnp_tv_device-upnp_tv_device_main.o `test -f 'tvdevice/linux/upnp_tv_device_main.c' || echo '$(srcdir)/'`tvdevice/linux/upnp_tv_device_main.c
  64508. +@am__fastdepCC_TRUE@ $(am__mv) tvdevice/linux/$(DEPDIR)/upnp_tv_device-upnp_tv_device_main.Tpo tvdevice/linux/$(DEPDIR)/upnp_tv_device-upnp_tv_device_main.Po
  64509. @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='tvdevice/linux/upnp_tv_device_main.c' object='tvdevice/linux/upnp_tv_device-upnp_tv_device_main.o' libtool=no @AMDEPBACKSLASH@
  64510. @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
  64511. @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(upnp_tv_device_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o tvdevice/linux/upnp_tv_device-upnp_tv_device_main.o `test -f 'tvdevice/linux/upnp_tv_device_main.c' || echo '$(srcdir)/'`tvdevice/linux/upnp_tv_device_main.c
  64512. tvdevice/linux/upnp_tv_device-upnp_tv_device_main.obj: tvdevice/linux/upnp_tv_device_main.c
  64513. -@am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(upnp_tv_device_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT tvdevice/linux/upnp_tv_device-upnp_tv_device_main.obj -MD -MP -MF "tvdevice/linux/$(DEPDIR)/upnp_tv_device-upnp_tv_device_main.Tpo" -c -o tvdevice/linux/upnp_tv_device-upnp_tv_device_main.obj `if test -f 'tvdevice/linux/upnp_tv_device_main.c'; then $(CYGPATH_W) 'tvdevice/linux/upnp_tv_device_main.c'; else $(CYGPATH_W) '$(srcdir)/tvdevice/linux/upnp_tv_device_main.c'; fi`; \
  64514. -@am__fastdepCC_TRUE@ then mv -f "tvdevice/linux/$(DEPDIR)/upnp_tv_device-upnp_tv_device_main.Tpo" "tvdevice/linux/$(DEPDIR)/upnp_tv_device-upnp_tv_device_main.Po"; else rm -f "tvdevice/linux/$(DEPDIR)/upnp_tv_device-upnp_tv_device_main.Tpo"; exit 1; fi
  64515. +@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(upnp_tv_device_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT tvdevice/linux/upnp_tv_device-upnp_tv_device_main.obj -MD -MP -MF tvdevice/linux/$(DEPDIR)/upnp_tv_device-upnp_tv_device_main.Tpo -c -o tvdevice/linux/upnp_tv_device-upnp_tv_device_main.obj `if test -f 'tvdevice/linux/upnp_tv_device_main.c'; then $(CYGPATH_W) 'tvdevice/linux/upnp_tv_device_main.c'; else $(CYGPATH_W) '$(srcdir)/tvdevice/linux/upnp_tv_device_main.c'; fi`
  64516. +@am__fastdepCC_TRUE@ $(am__mv) tvdevice/linux/$(DEPDIR)/upnp_tv_device-upnp_tv_device_main.Tpo tvdevice/linux/$(DEPDIR)/upnp_tv_device-upnp_tv_device_main.Po
  64517. @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='tvdevice/linux/upnp_tv_device_main.c' object='tvdevice/linux/upnp_tv_device-upnp_tv_device_main.obj' libtool=no @AMDEPBACKSLASH@
  64518. @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
  64519. @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(upnp_tv_device_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o tvdevice/linux/upnp_tv_device-upnp_tv_device_main.obj `if test -f 'tvdevice/linux/upnp_tv_device_main.c'; then $(CYGPATH_W) 'tvdevice/linux/upnp_tv_device_main.c'; else $(CYGPATH_W) '$(srcdir)/tvdevice/linux/upnp_tv_device_main.c'; fi`
  64520. @@ -612,101 +629,106 @@
  64521. clean-libtool:
  64522. -rm -rf .libs _libs
  64523. -
  64524. -distclean-libtool:
  64525. - -rm -f libtool
  64526. -uninstall-info-am:
  64527. install-examplesDATA: $(examples_DATA)
  64528. @$(NORMAL_INSTALL)
  64529. - test -z "$(examplesdir)" || $(mkdir_p) "$(DESTDIR)$(examplesdir)"
  64530. - @list='$(examples_DATA)'; for p in $$list; do \
  64531. + test -z "$(examplesdir)" || $(MKDIR_P) "$(DESTDIR)$(examplesdir)"
  64532. + @list='$(examples_DATA)'; test -n "$(examplesdir)" || list=; \
  64533. + for p in $$list; do \
  64534. if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
  64535. - f=$(am__strip_dir) \
  64536. - echo " $(examplesDATA_INSTALL) '$$d$$p' '$(DESTDIR)$(examplesdir)/$$f'"; \
  64537. - $(examplesDATA_INSTALL) "$$d$$p" "$(DESTDIR)$(examplesdir)/$$f"; \
  64538. + echo "$$d$$p"; \
  64539. + done | $(am__base_list) | \
  64540. + while read files; do \
  64541. + echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(examplesdir)'"; \
  64542. + $(INSTALL_DATA) $$files "$(DESTDIR)$(examplesdir)" || exit $$?; \
  64543. done
  64544. uninstall-examplesDATA:
  64545. @$(NORMAL_UNINSTALL)
  64546. - @list='$(examples_DATA)'; for p in $$list; do \
  64547. - f=$(am__strip_dir) \
  64548. - echo " rm -f '$(DESTDIR)$(examplesdir)/$$f'"; \
  64549. - rm -f "$(DESTDIR)$(examplesdir)/$$f"; \
  64550. - done
  64551. + @list='$(examples_DATA)'; test -n "$(examplesdir)" || list=; \
  64552. + files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \
  64553. + test -n "$$files" || exit 0; \
  64554. + echo " ( cd '$(DESTDIR)$(examplesdir)' && rm -f" $$files ")"; \
  64555. + cd "$(DESTDIR)$(examplesdir)" && rm -f $$files
  64556. ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
  64557. list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
  64558. unique=`for i in $$list; do \
  64559. if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
  64560. done | \
  64561. - $(AWK) ' { files[$$0] = 1; } \
  64562. - END { for (i in files) print i; }'`; \
  64563. + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
  64564. + END { if (nonempty) { for (i in files) print i; }; }'`; \
  64565. mkid -fID $$unique
  64566. tags: TAGS
  64567. TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
  64568. $(TAGS_FILES) $(LISP)
  64569. - tags=; \
  64570. + set x; \
  64571. here=`pwd`; \
  64572. list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
  64573. unique=`for i in $$list; do \
  64574. if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
  64575. done | \
  64576. - $(AWK) ' { files[$$0] = 1; } \
  64577. - END { for (i in files) print i; }'`; \
  64578. - if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
  64579. + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
  64580. + END { if (nonempty) { for (i in files) print i; }; }'`; \
  64581. + shift; \
  64582. + if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
  64583. test -n "$$unique" || unique=$$empty_fix; \
  64584. - $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
  64585. - $$tags $$unique; \
  64586. + if test $$# -gt 0; then \
  64587. + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
  64588. + "$$@" $$unique; \
  64589. + else \
  64590. + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
  64591. + $$unique; \
  64592. + fi; \
  64593. fi
  64594. ctags: CTAGS
  64595. CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
  64596. $(TAGS_FILES) $(LISP)
  64597. - tags=; \
  64598. - here=`pwd`; \
  64599. list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
  64600. unique=`for i in $$list; do \
  64601. if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
  64602. done | \
  64603. - $(AWK) ' { files[$$0] = 1; } \
  64604. - END { for (i in files) print i; }'`; \
  64605. - test -z "$(CTAGS_ARGS)$$tags$$unique" \
  64606. + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
  64607. + END { if (nonempty) { for (i in files) print i; }; }'`; \
  64608. + test -z "$(CTAGS_ARGS)$$unique" \
  64609. || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
  64610. - $$tags $$unique
  64611. + $$unique
  64612. GTAGS:
  64613. here=`$(am__cd) $(top_builddir) && pwd` \
  64614. - && cd $(top_srcdir) \
  64615. - && gtags -i $(GTAGS_ARGS) $$here
  64616. + && $(am__cd) $(top_srcdir) \
  64617. + && gtags -i $(GTAGS_ARGS) "$$here"
  64618. distclean-tags:
  64619. -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
  64620. distdir: $(DISTFILES)
  64621. - $(mkdir_p) $(distdir)/web
  64622. - @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \
  64623. - topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \
  64624. - list='$(DISTFILES)'; for file in $$list; do \
  64625. - case $$file in \
  64626. - $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \
  64627. - $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \
  64628. - esac; \
  64629. + @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
  64630. + topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
  64631. + list='$(DISTFILES)'; \
  64632. + dist_files=`for file in $$list; do echo $$file; done | \
  64633. + sed -e "s|^$$srcdirstrip/||;t" \
  64634. + -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
  64635. + case $$dist_files in \
  64636. + */*) $(MKDIR_P) `echo "$$dist_files" | \
  64637. + sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
  64638. + sort -u` ;; \
  64639. + esac; \
  64640. + for file in $$dist_files; do \
  64641. if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
  64642. - dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \
  64643. - if test "$$dir" != "$$file" && test "$$dir" != "."; then \
  64644. - dir="/$$dir"; \
  64645. - $(mkdir_p) "$(distdir)$$dir"; \
  64646. - else \
  64647. - dir=''; \
  64648. - fi; \
  64649. if test -d $$d/$$file; then \
  64650. + dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
  64651. + if test -d "$(distdir)/$$file"; then \
  64652. + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
  64653. + fi; \
  64654. if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
  64655. - cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
  64656. + cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
  64657. + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
  64658. fi; \
  64659. - cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
  64660. + cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
  64661. else \
  64662. - test -f $(distdir)/$$file \
  64663. - || cp -p $$d/$$file $(distdir)/$$file \
  64664. + test -f "$(distdir)/$$file" \
  64665. + || cp -p $$d/$$file "$(distdir)/$$file" \
  64666. || exit 1; \
  64667. fi; \
  64668. done
  64669. @@ -715,7 +737,7 @@
  64670. all-am: Makefile $(PROGRAMS) $(DATA)
  64671. installdirs:
  64672. for dir in "$(DESTDIR)$(examplesdir)"; do \
  64673. - test -z "$$dir" || $(mkdir_p) "$$dir"; \
  64674. + test -z "$$dir" || $(MKDIR_P) "$$dir"; \
  64675. done
  64676. install: install-am
  64677. install-exec: install-exec-am
  64678. @@ -737,6 +759,7 @@
  64679. distclean-generic:
  64680. -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
  64681. + -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
  64682. -rm -f common/$(DEPDIR)/$(am__dirstamp)
  64683. -rm -f common/$(am__dirstamp)
  64684. -rm -f tvcombo/$(DEPDIR)/$(am__dirstamp)
  64685. @@ -764,7 +787,7 @@
  64686. -rm -rf common/$(DEPDIR) tvcombo/$(DEPDIR) tvcombo/linux/$(DEPDIR) tvctrlpt/$(DEPDIR) tvctrlpt/linux/$(DEPDIR) tvdevice/$(DEPDIR) tvdevice/linux/$(DEPDIR)
  64687. -rm -f Makefile
  64688. distclean-am: clean-am distclean-compile distclean-generic \
  64689. - distclean-libtool distclean-tags
  64690. + distclean-tags
  64691. dvi: dvi-am
  64692. @@ -772,18 +795,38 @@
  64693. html: html-am
  64694. +html-am:
  64695. +
  64696. info: info-am
  64697. info-am:
  64698. install-data-am: install-examplesDATA
  64699. +install-dvi: install-dvi-am
  64700. +
  64701. +install-dvi-am:
  64702. +
  64703. install-exec-am:
  64704. +install-html: install-html-am
  64705. +
  64706. +install-html-am:
  64707. +
  64708. install-info: install-info-am
  64709. +install-info-am:
  64710. +
  64711. install-man:
  64712. +install-pdf: install-pdf-am
  64713. +
  64714. +install-pdf-am:
  64715. +
  64716. +install-ps: install-ps-am
  64717. +
  64718. +install-ps-am:
  64719. +
  64720. installcheck-am:
  64721. maintainer-clean: maintainer-clean-am
  64722. @@ -804,20 +847,24 @@
  64723. ps-am:
  64724. -uninstall-am: uninstall-examplesDATA uninstall-info-am
  64725. +uninstall-am: uninstall-examplesDATA
  64726. +
  64727. +.MAKE: install-am install-strip
  64728. .PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \
  64729. clean-libtool clean-noinstPROGRAMS ctags distclean \
  64730. distclean-compile distclean-generic distclean-libtool \
  64731. distclean-tags distdir dvi dvi-am html html-am info info-am \
  64732. - install install-am install-data install-data-am \
  64733. - install-examplesDATA install-exec install-exec-am install-info \
  64734. - install-info-am install-man install-strip installcheck \
  64735. + install install-am install-data install-data-am install-dvi \
  64736. + install-dvi-am install-examplesDATA install-exec \
  64737. + install-exec-am install-html install-html-am install-info \
  64738. + install-info-am install-man install-pdf install-pdf-am \
  64739. + install-ps install-ps-am install-strip installcheck \
  64740. installcheck-am installdirs maintainer-clean \
  64741. maintainer-clean-generic mostlyclean mostlyclean-compile \
  64742. mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
  64743. - tags uninstall uninstall-am uninstall-examplesDATA \
  64744. - uninstall-info-am
  64745. + tags uninstall uninstall-am uninstall-examplesDATA
  64746. +
  64747. # Tell versions [3.59,3.63) of GNU make to not export all variables.
  64748. # Otherwise a system limit (for SysV at least) may be exceeded.