autotool.patch 2.2 MB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919159201592115922159231592415925159261592715928159291593015931159321593315934159351593615937159381593915940159411594215943159441594515946159471594815949159501595115952159531595415955159561595715958159591596015961159621596315964159651596615967159681596915970159711597215973159741597515976159771597815979159801598115982159831598415985159861598715988159891599015991159921599315994159951599615997159981599916000160011600216003160041600516006160071600816009160101601116012160131601416015160161601716018160191602016021160221602316024160251602616027160281602916030160311603216033160341603516036160371603816039160401604116042160431604416045160461604716048160491605016051160521605316054160551605616057160581605916060160611606216063160641606516066160671606816069160701607116072160731607416075160761607716078160791608016081160821608316084160851608616087160881608916090160911609216093160941609516096160971609816099161001610116102161031610416105161061610716108161091611016111161121611316114161151611616117161181611916120161211612216123161241612516126161271612816129161301613116132161331613416135161361613716138161391614016141161421614316144161451614616147161481614916150161511615216153161541615516156161571615816159161601616116162161631616416165161661616716168161691617016171161721617316174161751617616177161781617916180161811618216183161841618516186161871618816189161901619116192161931619416195161961619716198161991620016201162021620316204162051620616207162081620916210162111621216213162141621516216162171621816219162201622116222162231622416225162261622716228162291623016231162321623316234162351623616237162381623916240162411624216243162441624516246162471624816249162501625116252162531625416255162561625716258162591626016261162621626316264162651626616267162681626916270162711627216273162741627516276162771627816279162801628116282162831628416285162861628716288162891629016291162921629316294162951629616297162981629916300163011630216303163041630516306163071630816309163101631116312163131631416315163161631716318163191632016321163221632316324163251632616327163281632916330163311633216333163341633516336163371633816339163401634116342163431634416345163461634716348163491635016351163521635316354163551635616357163581635916360163611636216363163641636516366163671636816369163701637116372163731637416375163761637716378163791638016381163821638316384163851638616387163881638916390163911639216393163941639516396163971639816399164001640116402164031640416405164061640716408164091641016411164121641316414164151641616417164181641916420164211642216423164241642516426164271642816429164301643116432164331643416435164361643716438164391644016441164421644316444164451644616447164481644916450164511645216453164541645516456164571645816459164601646116462164631646416465164661646716468164691647016471164721647316474164751647616477164781647916480164811648216483164841648516486164871648816489164901649116492164931649416495164961649716498164991650016501165021650316504165051650616507165081650916510165111651216513165141651516516165171651816519165201652116522165231652416525165261652716528165291653016531165321653316534165351653616537165381653916540165411654216543165441654516546165471654816549165501655116552165531655416555165561655716558165591656016561165621656316564165651656616567165681656916570165711657216573165741657516576165771657816579165801658116582165831658416585165861658716588165891659016591165921659316594165951659616597165981659916600166011660216603166041660516606166071660816609166101661116612166131661416615166161661716618166191662016621166221662316624166251662616627166281662916630166311663216633166341663516636166371663816639166401664116642166431664416645166461664716648166491665016651166521665316654166551665616657166581665916660166611666216663166641666516666166671666816669166701667116672166731667416675166761667716678166791668016681166821668316684166851668616687166881668916690166911669216693166941669516696166971669816699167001670116702167031670416705167061670716708167091671016711167121671316714167151671616717167181671916720167211672216723167241672516726167271672816729167301673116732167331673416735167361673716738167391674016741167421674316744167451674616747167481674916750167511675216753167541675516756167571675816759167601676116762167631676416765167661676716768167691677016771167721677316774167751677616777167781677916780167811678216783167841678516786167871678816789167901679116792167931679416795167961679716798167991680016801168021680316804168051680616807168081680916810168111681216813168141681516816168171681816819168201682116822168231682416825168261682716828168291683016831168321683316834168351683616837168381683916840168411684216843168441684516846168471684816849168501685116852168531685416855168561685716858168591686016861168621686316864168651686616867168681686916870168711687216873168741687516876168771687816879168801688116882168831688416885168861688716888168891689016891168921689316894168951689616897168981689916900169011690216903169041690516906169071690816909169101691116912169131691416915169161691716918169191692016921169221692316924169251692616927169281692916930169311693216933169341693516936169371693816939169401694116942169431694416945169461694716948169491695016951169521695316954169551695616957169581695916960169611696216963169641696516966169671696816969169701697116972169731697416975169761697716978169791698016981169821698316984169851698616987169881698916990169911699216993169941699516996169971699816999170001700117002170031700417005170061700717008170091701017011170121701317014170151701617017170181701917020170211702217023170241702517026170271702817029170301703117032170331703417035170361703717038170391704017041170421704317044170451704617047170481704917050170511705217053170541705517056170571705817059170601706117062170631706417065170661706717068170691707017071170721707317074170751707617077170781707917080170811708217083170841708517086170871708817089170901709117092170931709417095170961709717098170991710017101171021710317104171051710617107171081710917110171111711217113171141711517116171171711817119171201712117122171231712417125171261712717128171291713017131171321713317134171351713617137171381713917140171411714217143171441714517146171471714817149171501715117152171531715417155171561715717158171591716017161171621716317164171651716617167171681716917170171711717217173171741717517176171771717817179171801718117182171831718417185171861718717188171891719017191171921719317194171951719617197171981719917200172011720217203172041720517206172071720817209172101721117212172131721417215172161721717218172191722017221172221722317224172251722617227172281722917230172311723217233172341723517236172371723817239172401724117242172431724417245172461724717248172491725017251172521725317254172551725617257172581725917260172611726217263172641726517266172671726817269172701727117272172731727417275172761727717278172791728017281172821728317284172851728617287172881728917290172911729217293172941729517296172971729817299173001730117302173031730417305173061730717308173091731017311173121731317314173151731617317173181731917320173211732217323173241732517326173271732817329173301733117332173331733417335173361733717338173391734017341173421734317344173451734617347173481734917350173511735217353173541735517356173571735817359173601736117362173631736417365173661736717368173691737017371173721737317374173751737617377173781737917380173811738217383173841738517386173871738817389173901739117392173931739417395173961739717398173991740017401174021740317404174051740617407174081740917410174111741217413174141741517416174171741817419174201742117422174231742417425174261742717428174291743017431174321743317434174351743617437174381743917440174411744217443174441744517446174471744817449174501745117452174531745417455174561745717458174591746017461174621746317464174651746617467174681746917470174711747217473174741747517476174771747817479174801748117482174831748417485174861748717488174891749017491174921749317494174951749617497174981749917500175011750217503175041750517506175071750817509175101751117512175131751417515175161751717518175191752017521175221752317524175251752617527175281752917530175311753217533175341753517536175371753817539175401754117542175431754417545175461754717548175491755017551175521755317554175551755617557175581755917560175611756217563175641756517566175671756817569175701757117572175731757417575175761757717578175791758017581175821758317584175851758617587175881758917590175911759217593175941759517596175971759817599176001760117602176031760417605176061760717608176091761017611176121761317614176151761617617176181761917620176211762217623176241762517626176271762817629176301763117632176331763417635176361763717638176391764017641176421764317644176451764617647176481764917650176511765217653176541765517656176571765817659176601766117662176631766417665176661766717668176691767017671176721767317674176751767617677176781767917680176811768217683176841768517686176871768817689176901769117692176931769417695176961769717698176991770017701177021770317704177051770617707177081770917710177111771217713177141771517716177171771817719177201772117722177231772417725177261772717728177291773017731177321773317734177351773617737177381773917740177411774217743177441774517746177471774817749177501775117752177531775417755177561775717758177591776017761177621776317764177651776617767177681776917770177711777217773177741777517776177771777817779177801778117782177831778417785177861778717788177891779017791177921779317794177951779617797177981779917800178011780217803178041780517806178071780817809178101781117812178131781417815178161781717818178191782017821178221782317824178251782617827178281782917830178311783217833178341783517836178371783817839178401784117842178431784417845178461784717848178491785017851178521785317854178551785617857178581785917860178611786217863178641786517866178671786817869178701787117872178731787417875178761787717878178791788017881178821788317884178851788617887178881788917890178911789217893178941789517896178971789817899179001790117902179031790417905179061790717908179091791017911179121791317914179151791617917179181791917920179211792217923179241792517926179271792817929179301793117932179331793417935179361793717938179391794017941179421794317944179451794617947179481794917950179511795217953179541795517956179571795817959179601796117962179631796417965179661796717968179691797017971179721797317974179751797617977179781797917980179811798217983179841798517986179871798817989179901799117992179931799417995179961799717998179991800018001180021800318004180051800618007180081800918010180111801218013180141801518016180171801818019180201802118022180231802418025180261802718028180291803018031180321803318034180351803618037180381803918040180411804218043180441804518046180471804818049180501805118052180531805418055180561805718058180591806018061180621806318064180651806618067180681806918070180711807218073180741807518076180771807818079180801808118082180831808418085180861808718088180891809018091180921809318094180951809618097180981809918100181011810218103181041810518106181071810818109181101811118112181131811418115181161811718118181191812018121181221812318124181251812618127181281812918130181311813218133181341813518136181371813818139181401814118142181431814418145181461814718148181491815018151181521815318154181551815618157181581815918160181611816218163181641816518166181671816818169181701817118172181731817418175181761817718178181791818018181181821818318184181851818618187181881818918190181911819218193181941819518196181971819818199182001820118202182031820418205182061820718208182091821018211182121821318214182151821618217182181821918220182211822218223182241822518226182271822818229182301823118232182331823418235182361823718238182391824018241182421824318244182451824618247182481824918250182511825218253182541825518256182571825818259182601826118262182631826418265182661826718268182691827018271182721827318274182751827618277182781827918280182811828218283182841828518286182871828818289182901829118292182931829418295182961829718298182991830018301183021830318304183051830618307183081830918310183111831218313183141831518316183171831818319183201832118322183231832418325183261832718328183291833018331183321833318334183351833618337183381833918340183411834218343183441834518346183471834818349183501835118352183531835418355183561835718358183591836018361183621836318364183651836618367183681836918370183711837218373183741837518376183771837818379183801838118382183831838418385183861838718388183891839018391183921839318394183951839618397183981839918400184011840218403184041840518406184071840818409184101841118412184131841418415184161841718418184191842018421184221842318424184251842618427184281842918430184311843218433184341843518436184371843818439184401844118442184431844418445184461844718448184491845018451184521845318454184551845618457184581845918460184611846218463184641846518466184671846818469184701847118472184731847418475184761847718478184791848018481184821848318484184851848618487184881848918490184911849218493184941849518496184971849818499185001850118502185031850418505185061850718508185091851018511185121851318514185151851618517185181851918520185211852218523185241852518526185271852818529185301853118532185331853418535185361853718538185391854018541185421854318544185451854618547185481854918550185511855218553185541855518556185571855818559185601856118562185631856418565185661856718568185691857018571185721857318574185751857618577185781857918580185811858218583185841858518586185871858818589185901859118592185931859418595185961859718598185991860018601186021860318604186051860618607186081860918610186111861218613186141861518616186171861818619186201862118622186231862418625186261862718628186291863018631186321863318634186351863618637186381863918640186411864218643186441864518646186471864818649186501865118652186531865418655186561865718658186591866018661186621866318664186651866618667186681866918670186711867218673186741867518676186771867818679186801868118682186831868418685186861868718688186891869018691186921869318694186951869618697186981869918700187011870218703187041870518706187071870818709187101871118712187131871418715187161871718718187191872018721187221872318724187251872618727187281872918730187311873218733187341873518736187371873818739187401874118742187431874418745187461874718748187491875018751187521875318754187551875618757187581875918760187611876218763187641876518766187671876818769187701877118772187731877418775187761877718778187791878018781187821878318784187851878618787187881878918790187911879218793187941879518796187971879818799188001880118802188031880418805188061880718808188091881018811188121881318814188151881618817188181881918820188211882218823188241882518826188271882818829188301883118832188331883418835188361883718838188391884018841188421884318844188451884618847188481884918850188511885218853188541885518856188571885818859188601886118862188631886418865188661886718868188691887018871188721887318874188751887618877188781887918880188811888218883188841888518886188871888818889188901889118892188931889418895188961889718898188991890018901189021890318904189051890618907189081890918910189111891218913189141891518916189171891818919189201892118922189231892418925189261892718928189291893018931189321893318934189351893618937189381893918940189411894218943189441894518946189471894818949189501895118952189531895418955189561895718958189591896018961189621896318964189651896618967189681896918970189711897218973189741897518976189771897818979189801898118982189831898418985189861898718988189891899018991189921899318994189951899618997189981899919000190011900219003190041900519006190071900819009190101901119012190131901419015190161901719018190191902019021190221902319024190251902619027190281902919030190311903219033190341903519036190371903819039190401904119042190431904419045190461904719048190491905019051190521905319054190551905619057190581905919060190611906219063190641906519066190671906819069190701907119072190731907419075190761907719078190791908019081190821908319084190851908619087190881908919090190911909219093190941909519096190971909819099191001910119102191031910419105191061910719108191091911019111191121911319114191151911619117191181911919120191211912219123191241912519126191271912819129191301913119132191331913419135191361913719138191391914019141191421914319144191451914619147191481914919150191511915219153191541915519156191571915819159191601916119162191631916419165191661916719168191691917019171191721917319174191751917619177191781917919180191811918219183191841918519186191871918819189191901919119192191931919419195191961919719198191991920019201192021920319204192051920619207192081920919210192111921219213192141921519216192171921819219192201922119222192231922419225192261922719228192291923019231192321923319234192351923619237192381923919240192411924219243192441924519246192471924819249192501925119252192531925419255192561925719258192591926019261192621926319264192651926619267192681926919270192711927219273192741927519276192771927819279192801928119282192831928419285192861928719288192891929019291192921929319294192951929619297192981929919300193011930219303193041930519306193071930819309193101931119312193131931419315193161931719318193191932019321193221932319324193251932619327193281932919330193311933219333193341933519336193371933819339193401934119342193431934419345193461934719348193491935019351193521935319354193551935619357193581935919360193611936219363193641936519366193671936819369193701937119372193731937419375193761937719378193791938019381193821938319384193851938619387193881938919390193911939219393193941939519396193971939819399194001940119402194031940419405194061940719408194091941019411194121941319414194151941619417194181941919420194211942219423194241942519426194271942819429194301943119432194331943419435194361943719438194391944019441194421944319444194451944619447194481944919450194511945219453194541945519456194571945819459194601946119462194631946419465194661946719468194691947019471194721947319474194751947619477194781947919480194811948219483194841948519486194871948819489194901949119492194931949419495194961949719498194991950019501195021950319504195051950619507195081950919510195111951219513195141951519516195171951819519195201952119522195231952419525195261952719528195291953019531195321953319534195351953619537195381953919540195411954219543195441954519546195471954819549195501955119552195531955419555195561955719558195591956019561195621956319564195651956619567195681956919570195711957219573195741957519576195771957819579195801958119582195831958419585195861958719588195891959019591195921959319594195951959619597195981959919600196011960219603196041960519606196071960819609196101961119612196131961419615196161961719618196191962019621196221962319624196251962619627196281962919630196311963219633196341963519636196371963819639196401964119642196431964419645196461964719648196491965019651196521965319654196551965619657196581965919660196611966219663196641966519666196671966819669196701967119672196731967419675196761967719678196791968019681196821968319684196851968619687196881968919690196911969219693196941969519696196971969819699197001970119702197031970419705197061970719708197091971019711197121971319714197151971619717197181971919720197211972219723197241972519726197271972819729197301973119732197331973419735197361973719738197391974019741197421974319744197451974619747197481974919750197511975219753197541975519756197571975819759197601976119762197631976419765197661976719768197691977019771197721977319774197751977619777197781977919780197811978219783197841978519786197871978819789197901979119792197931979419795197961979719798197991980019801198021980319804198051980619807198081980919810198111981219813198141981519816198171981819819198201982119822198231982419825198261982719828198291983019831198321983319834198351983619837198381983919840198411984219843198441984519846198471984819849198501985119852198531985419855198561985719858198591986019861198621986319864198651986619867198681986919870198711987219873198741987519876198771987819879198801988119882198831988419885198861988719888198891989019891198921989319894198951989619897198981989919900199011990219903199041990519906199071990819909199101991119912199131991419915199161991719918199191992019921199221992319924199251992619927199281992919930199311993219933199341993519936199371993819939199401994119942199431994419945199461994719948199491995019951199521995319954199551995619957199581995919960199611996219963199641996519966199671996819969199701997119972199731997419975199761997719978199791998019981199821998319984199851998619987199881998919990199911999219993199941999519996199971999819999200002000120002200032000420005200062000720008200092001020011200122001320014200152001620017200182001920020200212002220023200242002520026200272002820029200302003120032200332003420035200362003720038200392004020041200422004320044200452004620047200482004920050200512005220053200542005520056200572005820059200602006120062200632006420065200662006720068200692007020071200722007320074200752007620077200782007920080200812008220083200842008520086200872008820089200902009120092200932009420095200962009720098200992010020101201022010320104201052010620107201082010920110201112011220113201142011520116201172011820119201202012120122201232012420125201262012720128201292013020131201322013320134201352013620137201382013920140201412014220143201442014520146201472014820149201502015120152201532015420155201562015720158201592016020161201622016320164201652016620167201682016920170201712017220173201742017520176201772017820179201802018120182201832018420185201862018720188201892019020191201922019320194201952019620197201982019920200202012020220203202042020520206202072020820209202102021120212202132021420215202162021720218202192022020221202222022320224202252022620227202282022920230202312023220233202342023520236202372023820239202402024120242202432024420245202462024720248202492025020251202522025320254202552025620257202582025920260202612026220263202642026520266202672026820269202702027120272202732027420275202762027720278202792028020281202822028320284202852028620287202882028920290202912029220293202942029520296202972029820299203002030120302203032030420305203062030720308203092031020311203122031320314203152031620317203182031920320203212032220323203242032520326203272032820329203302033120332203332033420335203362033720338203392034020341203422034320344203452034620347203482034920350203512035220353203542035520356203572035820359203602036120362203632036420365203662036720368203692037020371203722037320374203752037620377203782037920380203812038220383203842038520386203872038820389203902039120392203932039420395203962039720398203992040020401204022040320404204052040620407204082040920410204112041220413204142041520416204172041820419204202042120422204232042420425204262042720428204292043020431204322043320434204352043620437204382043920440204412044220443204442044520446204472044820449204502045120452204532045420455204562045720458204592046020461204622046320464204652046620467204682046920470204712047220473204742047520476204772047820479204802048120482204832048420485204862048720488204892049020491204922049320494204952049620497204982049920500205012050220503205042050520506205072050820509205102051120512205132051420515205162051720518205192052020521205222052320524205252052620527205282052920530205312053220533205342053520536205372053820539205402054120542205432054420545205462054720548205492055020551205522055320554205552055620557205582055920560205612056220563205642056520566205672056820569205702057120572205732057420575205762057720578205792058020581205822058320584205852058620587205882058920590205912059220593205942059520596205972059820599206002060120602206032060420605206062060720608206092061020611206122061320614206152061620617206182061920620206212062220623206242062520626206272062820629206302063120632206332063420635206362063720638206392064020641206422064320644206452064620647206482064920650206512065220653206542065520656206572065820659206602066120662206632066420665206662066720668206692067020671206722067320674206752067620677206782067920680206812068220683206842068520686206872068820689206902069120692206932069420695206962069720698206992070020701207022070320704207052070620707207082070920710207112071220713207142071520716207172071820719207202072120722207232072420725207262072720728207292073020731207322073320734207352073620737207382073920740207412074220743207442074520746207472074820749207502075120752207532075420755207562075720758207592076020761207622076320764207652076620767207682076920770207712077220773207742077520776207772077820779207802078120782207832078420785207862078720788207892079020791207922079320794207952079620797207982079920800208012080220803208042080520806208072080820809208102081120812208132081420815208162081720818208192082020821208222082320824208252082620827208282082920830208312083220833208342083520836208372083820839208402084120842208432084420845208462084720848208492085020851208522085320854208552085620857208582085920860208612086220863208642086520866208672086820869208702087120872208732087420875208762087720878208792088020881208822088320884208852088620887208882088920890208912089220893208942089520896208972089820899209002090120902209032090420905209062090720908209092091020911209122091320914209152091620917209182091920920209212092220923209242092520926209272092820929209302093120932209332093420935209362093720938209392094020941209422094320944209452094620947209482094920950209512095220953209542095520956209572095820959209602096120962209632096420965209662096720968209692097020971209722097320974209752097620977209782097920980209812098220983209842098520986209872098820989209902099120992209932099420995209962099720998209992100021001210022100321004210052100621007210082100921010210112101221013210142101521016210172101821019210202102121022210232102421025210262102721028210292103021031210322103321034210352103621037210382103921040210412104221043210442104521046210472104821049210502105121052210532105421055210562105721058210592106021061210622106321064210652106621067210682106921070210712107221073210742107521076210772107821079210802108121082210832108421085210862108721088210892109021091210922109321094210952109621097210982109921100211012110221103211042110521106211072110821109211102111121112211132111421115211162111721118211192112021121211222112321124211252112621127211282112921130211312113221133211342113521136211372113821139211402114121142211432114421145211462114721148211492115021151211522115321154211552115621157211582115921160211612116221163211642116521166211672116821169211702117121172211732117421175211762117721178211792118021181211822118321184211852118621187211882118921190211912119221193211942119521196211972119821199212002120121202212032120421205212062120721208212092121021211212122121321214212152121621217212182121921220212212122221223212242122521226212272122821229212302123121232212332123421235212362123721238212392124021241212422124321244212452124621247212482124921250212512125221253212542125521256212572125821259212602126121262212632126421265212662126721268212692127021271212722127321274212752127621277212782127921280212812128221283212842128521286212872128821289212902129121292212932129421295212962129721298212992130021301213022130321304213052130621307213082130921310213112131221313213142131521316213172131821319213202132121322213232132421325213262132721328213292133021331213322133321334213352133621337213382133921340213412134221343213442134521346213472134821349213502135121352213532135421355213562135721358213592136021361213622136321364213652136621367213682136921370213712137221373213742137521376213772137821379213802138121382213832138421385213862138721388213892139021391213922139321394213952139621397213982139921400214012140221403214042140521406214072140821409214102141121412214132141421415214162141721418214192142021421214222142321424214252142621427214282142921430214312143221433214342143521436214372143821439214402144121442214432144421445214462144721448214492145021451214522145321454214552145621457214582145921460214612146221463214642146521466214672146821469214702147121472214732147421475214762147721478214792148021481214822148321484214852148621487214882148921490214912149221493214942149521496214972149821499215002150121502215032150421505215062150721508215092151021511215122151321514215152151621517215182151921520215212152221523215242152521526215272152821529215302153121532215332153421535215362153721538215392154021541215422154321544215452154621547215482154921550215512155221553215542155521556215572155821559215602156121562215632156421565215662156721568215692157021571215722157321574215752157621577215782157921580215812158221583215842158521586215872158821589215902159121592215932159421595215962159721598215992160021601216022160321604216052160621607216082160921610216112161221613216142161521616216172161821619216202162121622216232162421625216262162721628216292163021631216322163321634216352163621637216382163921640216412164221643216442164521646216472164821649216502165121652216532165421655216562165721658216592166021661216622166321664216652166621667216682166921670216712167221673216742167521676216772167821679216802168121682216832168421685216862168721688216892169021691216922169321694216952169621697216982169921700217012170221703217042170521706217072170821709217102171121712217132171421715217162171721718217192172021721217222172321724217252172621727217282172921730217312173221733217342173521736217372173821739217402174121742217432174421745217462174721748217492175021751217522175321754217552175621757217582175921760217612176221763217642176521766217672176821769217702177121772217732177421775217762177721778217792178021781217822178321784217852178621787217882178921790217912179221793217942179521796217972179821799218002180121802218032180421805218062180721808218092181021811218122181321814218152181621817218182181921820218212182221823218242182521826218272182821829218302183121832218332183421835218362183721838218392184021841218422184321844218452184621847218482184921850218512185221853218542185521856218572185821859218602186121862218632186421865218662186721868218692187021871218722187321874218752187621877218782187921880218812188221883218842188521886218872188821889218902189121892218932189421895218962189721898218992190021901219022190321904219052190621907219082190921910219112191221913219142191521916219172191821919219202192121922219232192421925219262192721928219292193021931219322193321934219352193621937219382193921940219412194221943219442194521946219472194821949219502195121952219532195421955219562195721958219592196021961219622196321964219652196621967219682196921970219712197221973219742197521976219772197821979219802198121982219832198421985219862198721988219892199021991219922199321994219952199621997219982199922000220012200222003220042200522006220072200822009220102201122012220132201422015220162201722018220192202022021220222202322024220252202622027220282202922030220312203222033220342203522036220372203822039220402204122042220432204422045220462204722048220492205022051220522205322054220552205622057220582205922060220612206222063220642206522066220672206822069220702207122072220732207422075220762207722078220792208022081220822208322084220852208622087220882208922090220912209222093220942209522096220972209822099221002210122102221032210422105221062210722108221092211022111221122211322114221152211622117221182211922120221212212222123221242212522126221272212822129221302213122132221332213422135221362213722138221392214022141221422214322144221452214622147221482214922150221512215222153221542215522156221572215822159221602216122162221632216422165221662216722168221692217022171221722217322174221752217622177221782217922180221812218222183221842218522186221872218822189221902219122192221932219422195221962219722198221992220022201222022220322204222052220622207222082220922210222112221222213222142221522216222172221822219222202222122222222232222422225222262222722228222292223022231222322223322234222352223622237222382223922240222412224222243222442224522246222472224822249222502225122252222532225422255222562225722258222592226022261222622226322264222652226622267222682226922270222712227222273222742227522276222772227822279222802228122282222832228422285222862228722288222892229022291222922229322294222952229622297222982229922300223012230222303223042230522306223072230822309223102231122312223132231422315223162231722318223192232022321223222232322324223252232622327223282232922330223312233222333223342233522336223372233822339223402234122342223432234422345223462234722348223492235022351223522235322354223552235622357223582235922360223612236222363223642236522366223672236822369223702237122372223732237422375223762237722378223792238022381223822238322384223852238622387223882238922390223912239222393223942239522396223972239822399224002240122402224032240422405224062240722408224092241022411224122241322414224152241622417224182241922420224212242222423224242242522426224272242822429224302243122432224332243422435224362243722438224392244022441224422244322444224452244622447224482244922450224512245222453224542245522456224572245822459224602246122462224632246422465224662246722468224692247022471224722247322474224752247622477224782247922480224812248222483224842248522486224872248822489224902249122492224932249422495224962249722498224992250022501225022250322504225052250622507225082250922510225112251222513225142251522516225172251822519225202252122522225232252422525225262252722528225292253022531225322253322534225352253622537225382253922540225412254222543225442254522546225472254822549225502255122552225532255422555225562255722558225592256022561225622256322564225652256622567225682256922570225712257222573225742257522576225772257822579225802258122582225832258422585225862258722588225892259022591225922259322594225952259622597225982259922600226012260222603226042260522606226072260822609226102261122612226132261422615226162261722618226192262022621226222262322624226252262622627226282262922630226312263222633226342263522636226372263822639226402264122642226432264422645226462264722648226492265022651226522265322654226552265622657226582265922660226612266222663226642266522666226672266822669226702267122672226732267422675226762267722678226792268022681226822268322684226852268622687226882268922690226912269222693226942269522696226972269822699227002270122702227032270422705227062270722708227092271022711227122271322714227152271622717227182271922720227212272222723227242272522726227272272822729227302273122732227332273422735227362273722738227392274022741227422274322744227452274622747227482274922750227512275222753227542275522756227572275822759227602276122762227632276422765227662276722768227692277022771227722277322774227752277622777227782277922780227812278222783227842278522786227872278822789227902279122792227932279422795227962279722798227992280022801228022280322804228052280622807228082280922810228112281222813228142281522816228172281822819228202282122822228232282422825228262282722828228292283022831228322283322834228352283622837228382283922840228412284222843228442284522846228472284822849228502285122852228532285422855228562285722858228592286022861228622286322864228652286622867228682286922870228712287222873228742287522876228772287822879228802288122882228832288422885228862288722888228892289022891228922289322894228952289622897228982289922900229012290222903229042290522906229072290822909229102291122912229132291422915229162291722918229192292022921229222292322924229252292622927229282292922930229312293222933229342293522936229372293822939229402294122942229432294422945229462294722948229492295022951229522295322954229552295622957229582295922960229612296222963229642296522966229672296822969229702297122972229732297422975229762297722978229792298022981229822298322984229852298622987229882298922990229912299222993229942299522996229972299822999230002300123002230032300423005230062300723008230092301023011230122301323014230152301623017230182301923020230212302223023230242302523026230272302823029230302303123032230332303423035230362303723038230392304023041230422304323044230452304623047230482304923050230512305223053230542305523056230572305823059230602306123062230632306423065230662306723068230692307023071230722307323074230752307623077230782307923080230812308223083230842308523086230872308823089230902309123092230932309423095230962309723098230992310023101231022310323104231052310623107231082310923110231112311223113231142311523116231172311823119231202312123122231232312423125231262312723128231292313023131231322313323134231352313623137231382313923140231412314223143231442314523146231472314823149231502315123152231532315423155231562315723158231592316023161231622316323164231652316623167231682316923170231712317223173231742317523176231772317823179231802318123182231832318423185231862318723188231892319023191231922319323194231952319623197231982319923200232012320223203232042320523206232072320823209232102321123212232132321423215232162321723218232192322023221232222322323224232252322623227232282322923230232312323223233232342323523236232372323823239232402324123242232432324423245232462324723248232492325023251232522325323254232552325623257232582325923260232612326223263232642326523266232672326823269232702327123272232732327423275232762327723278232792328023281232822328323284232852328623287232882328923290232912329223293232942329523296232972329823299233002330123302233032330423305233062330723308233092331023311233122331323314233152331623317233182331923320233212332223323233242332523326233272332823329233302333123332233332333423335233362333723338233392334023341233422334323344233452334623347233482334923350233512335223353233542335523356233572335823359233602336123362233632336423365233662336723368233692337023371233722337323374233752337623377233782337923380233812338223383233842338523386233872338823389233902339123392233932339423395233962339723398233992340023401234022340323404234052340623407234082340923410234112341223413234142341523416234172341823419234202342123422234232342423425234262342723428234292343023431234322343323434234352343623437234382343923440234412344223443234442344523446234472344823449234502345123452234532345423455234562345723458234592346023461234622346323464234652346623467234682346923470234712347223473234742347523476234772347823479234802348123482234832348423485234862348723488234892349023491234922349323494234952349623497234982349923500235012350223503235042350523506235072350823509235102351123512235132351423515235162351723518235192352023521235222352323524235252352623527235282352923530235312353223533235342353523536235372353823539235402354123542235432354423545235462354723548235492355023551235522355323554235552355623557235582355923560235612356223563235642356523566235672356823569235702357123572235732357423575235762357723578235792358023581235822358323584235852358623587235882358923590235912359223593235942359523596235972359823599236002360123602236032360423605236062360723608236092361023611236122361323614236152361623617236182361923620236212362223623236242362523626236272362823629236302363123632236332363423635236362363723638236392364023641236422364323644236452364623647236482364923650236512365223653236542365523656236572365823659236602366123662236632366423665236662366723668236692367023671236722367323674236752367623677236782367923680236812368223683236842368523686236872368823689236902369123692236932369423695236962369723698236992370023701237022370323704237052370623707237082370923710237112371223713237142371523716237172371823719237202372123722237232372423725237262372723728237292373023731237322373323734237352373623737237382373923740237412374223743237442374523746237472374823749237502375123752237532375423755237562375723758237592376023761237622376323764237652376623767237682376923770237712377223773237742377523776237772377823779237802378123782237832378423785237862378723788237892379023791237922379323794237952379623797237982379923800238012380223803238042380523806238072380823809238102381123812238132381423815238162381723818238192382023821238222382323824238252382623827238282382923830238312383223833238342383523836238372383823839238402384123842238432384423845238462384723848238492385023851238522385323854238552385623857238582385923860238612386223863238642386523866238672386823869238702387123872238732387423875238762387723878238792388023881238822388323884238852388623887238882388923890238912389223893238942389523896238972389823899239002390123902239032390423905239062390723908239092391023911239122391323914239152391623917239182391923920239212392223923239242392523926239272392823929239302393123932239332393423935239362393723938239392394023941239422394323944239452394623947239482394923950239512395223953239542395523956239572395823959239602396123962239632396423965239662396723968239692397023971239722397323974239752397623977239782397923980239812398223983239842398523986239872398823989239902399123992239932399423995239962399723998239992400024001240022400324004240052400624007240082400924010240112401224013240142401524016240172401824019240202402124022240232402424025240262402724028240292403024031240322403324034240352403624037240382403924040240412404224043240442404524046240472404824049240502405124052240532405424055240562405724058240592406024061240622406324064240652406624067240682406924070240712407224073240742407524076240772407824079240802408124082240832408424085240862408724088240892409024091240922409324094240952409624097240982409924100241012410224103241042410524106241072410824109241102411124112241132411424115241162411724118241192412024121241222412324124241252412624127241282412924130241312413224133241342413524136241372413824139241402414124142241432414424145241462414724148241492415024151241522415324154241552415624157241582415924160241612416224163241642416524166241672416824169241702417124172241732417424175241762417724178241792418024181241822418324184241852418624187241882418924190241912419224193241942419524196241972419824199242002420124202242032420424205242062420724208242092421024211242122421324214242152421624217242182421924220242212422224223242242422524226242272422824229242302423124232242332423424235242362423724238242392424024241242422424324244242452424624247242482424924250242512425224253242542425524256242572425824259242602426124262242632426424265242662426724268242692427024271242722427324274242752427624277242782427924280242812428224283242842428524286242872428824289242902429124292242932429424295242962429724298242992430024301243022430324304243052430624307243082430924310243112431224313243142431524316243172431824319243202432124322243232432424325243262432724328243292433024331243322433324334243352433624337243382433924340243412434224343243442434524346243472434824349243502435124352243532435424355243562435724358243592436024361243622436324364243652436624367243682436924370243712437224373243742437524376243772437824379243802438124382243832438424385243862438724388243892439024391243922439324394243952439624397243982439924400244012440224403244042440524406244072440824409244102441124412244132441424415244162441724418244192442024421244222442324424244252442624427244282442924430244312443224433244342443524436244372443824439244402444124442244432444424445244462444724448244492445024451244522445324454244552445624457244582445924460244612446224463244642446524466244672446824469244702447124472244732447424475244762447724478244792448024481244822448324484244852448624487244882448924490244912449224493244942449524496244972449824499245002450124502245032450424505245062450724508245092451024511245122451324514245152451624517245182451924520245212452224523245242452524526245272452824529245302453124532245332453424535245362453724538245392454024541245422454324544245452454624547245482454924550245512455224553245542455524556245572455824559245602456124562245632456424565245662456724568245692457024571245722457324574245752457624577245782457924580245812458224583245842458524586245872458824589245902459124592245932459424595245962459724598245992460024601246022460324604246052460624607246082460924610246112461224613246142461524616246172461824619246202462124622246232462424625246262462724628246292463024631246322463324634246352463624637246382463924640246412464224643246442464524646246472464824649246502465124652246532465424655246562465724658246592466024661246622466324664246652466624667246682466924670246712467224673246742467524676246772467824679246802468124682246832468424685246862468724688246892469024691246922469324694246952469624697246982469924700247012470224703247042470524706247072470824709247102471124712247132471424715247162471724718247192472024721247222472324724247252472624727247282472924730247312473224733247342473524736247372473824739247402474124742247432474424745247462474724748247492475024751247522475324754247552475624757247582475924760247612476224763247642476524766247672476824769247702477124772247732477424775247762477724778247792478024781247822478324784247852478624787247882478924790247912479224793247942479524796247972479824799248002480124802248032480424805248062480724808248092481024811248122481324814248152481624817248182481924820248212482224823248242482524826248272482824829248302483124832248332483424835248362483724838248392484024841248422484324844248452484624847248482484924850248512485224853248542485524856248572485824859248602486124862248632486424865248662486724868248692487024871248722487324874248752487624877248782487924880248812488224883248842488524886248872488824889248902489124892248932489424895248962489724898248992490024901249022490324904249052490624907249082490924910249112491224913249142491524916249172491824919249202492124922249232492424925249262492724928249292493024931249322493324934249352493624937249382493924940249412494224943249442494524946249472494824949249502495124952249532495424955249562495724958249592496024961249622496324964249652496624967249682496924970249712497224973249742497524976249772497824979249802498124982249832498424985249862498724988249892499024991249922499324994249952499624997249982499925000250012500225003250042500525006250072500825009250102501125012250132501425015250162501725018250192502025021250222502325024250252502625027250282502925030250312503225033250342503525036250372503825039250402504125042250432504425045250462504725048250492505025051250522505325054250552505625057250582505925060250612506225063250642506525066250672506825069250702507125072250732507425075250762507725078250792508025081250822508325084250852508625087250882508925090250912509225093250942509525096250972509825099251002510125102251032510425105251062510725108251092511025111251122511325114251152511625117251182511925120251212512225123251242512525126251272512825129251302513125132251332513425135251362513725138251392514025141251422514325144251452514625147251482514925150251512515225153251542515525156251572515825159251602516125162251632516425165251662516725168251692517025171251722517325174251752517625177251782517925180251812518225183251842518525186251872518825189251902519125192251932519425195251962519725198251992520025201252022520325204252052520625207252082520925210252112521225213252142521525216252172521825219252202522125222252232522425225252262522725228252292523025231252322523325234252352523625237252382523925240252412524225243252442524525246252472524825249252502525125252252532525425255252562525725258252592526025261252622526325264252652526625267252682526925270252712527225273252742527525276252772527825279252802528125282252832528425285252862528725288252892529025291252922529325294252952529625297252982529925300253012530225303253042530525306253072530825309253102531125312253132531425315253162531725318253192532025321253222532325324253252532625327253282532925330253312533225333253342533525336253372533825339253402534125342253432534425345253462534725348253492535025351253522535325354253552535625357253582535925360253612536225363253642536525366253672536825369253702537125372253732537425375253762537725378253792538025381253822538325384253852538625387253882538925390253912539225393253942539525396253972539825399254002540125402254032540425405254062540725408254092541025411254122541325414254152541625417254182541925420254212542225423254242542525426254272542825429254302543125432254332543425435254362543725438254392544025441254422544325444254452544625447254482544925450254512545225453254542545525456254572545825459254602546125462254632546425465254662546725468254692547025471254722547325474254752547625477254782547925480254812548225483254842548525486254872548825489254902549125492254932549425495254962549725498254992550025501255022550325504255052550625507255082550925510255112551225513255142551525516255172551825519255202552125522255232552425525255262552725528255292553025531255322553325534255352553625537255382553925540255412554225543255442554525546255472554825549255502555125552255532555425555255562555725558255592556025561255622556325564255652556625567255682556925570255712557225573255742557525576255772557825579255802558125582255832558425585255862558725588255892559025591255922559325594255952559625597255982559925600256012560225603256042560525606256072560825609256102561125612256132561425615256162561725618256192562025621256222562325624256252562625627256282562925630256312563225633256342563525636256372563825639256402564125642256432564425645256462564725648256492565025651256522565325654256552565625657256582565925660256612566225663256642566525666256672566825669256702567125672256732567425675256762567725678256792568025681256822568325684256852568625687256882568925690256912569225693256942569525696256972569825699257002570125702257032570425705257062570725708257092571025711257122571325714257152571625717257182571925720257212572225723257242572525726257272572825729257302573125732257332573425735257362573725738257392574025741257422574325744257452574625747257482574925750257512575225753257542575525756257572575825759257602576125762257632576425765257662576725768257692577025771257722577325774257752577625777257782577925780257812578225783257842578525786257872578825789257902579125792257932579425795257962579725798257992580025801258022580325804258052580625807258082580925810258112581225813258142581525816258172581825819258202582125822258232582425825258262582725828258292583025831258322583325834258352583625837258382583925840258412584225843258442584525846258472584825849258502585125852258532585425855258562585725858258592586025861258622586325864258652586625867258682586925870258712587225873258742587525876258772587825879258802588125882258832588425885258862588725888258892589025891258922589325894258952589625897258982589925900259012590225903259042590525906259072590825909259102591125912259132591425915259162591725918259192592025921259222592325924259252592625927259282592925930259312593225933259342593525936259372593825939259402594125942259432594425945259462594725948259492595025951259522595325954259552595625957259582595925960259612596225963259642596525966259672596825969259702597125972259732597425975259762597725978259792598025981259822598325984259852598625987259882598925990259912599225993259942599525996259972599825999260002600126002260032600426005260062600726008260092601026011260122601326014260152601626017260182601926020260212602226023260242602526026260272602826029260302603126032260332603426035260362603726038260392604026041260422604326044260452604626047260482604926050260512605226053260542605526056260572605826059260602606126062260632606426065260662606726068260692607026071260722607326074260752607626077260782607926080260812608226083260842608526086260872608826089260902609126092260932609426095260962609726098260992610026101261022610326104261052610626107261082610926110261112611226113261142611526116261172611826119261202612126122261232612426125261262612726128261292613026131261322613326134261352613626137261382613926140261412614226143261442614526146261472614826149261502615126152261532615426155261562615726158261592616026161261622616326164261652616626167261682616926170261712617226173261742617526176261772617826179261802618126182261832618426185261862618726188261892619026191261922619326194261952619626197261982619926200262012620226203262042620526206262072620826209262102621126212262132621426215262162621726218262192622026221262222622326224262252622626227262282622926230262312623226233262342623526236262372623826239262402624126242262432624426245262462624726248262492625026251262522625326254262552625626257262582625926260262612626226263262642626526266262672626826269262702627126272262732627426275262762627726278262792628026281262822628326284262852628626287262882628926290262912629226293262942629526296262972629826299263002630126302263032630426305263062630726308263092631026311263122631326314263152631626317263182631926320263212632226323263242632526326263272632826329263302633126332263332633426335263362633726338263392634026341263422634326344263452634626347263482634926350263512635226353263542635526356263572635826359263602636126362263632636426365263662636726368263692637026371263722637326374263752637626377263782637926380263812638226383263842638526386263872638826389263902639126392263932639426395263962639726398263992640026401264022640326404264052640626407264082640926410264112641226413264142641526416264172641826419264202642126422264232642426425264262642726428264292643026431264322643326434264352643626437264382643926440264412644226443264442644526446264472644826449264502645126452264532645426455264562645726458264592646026461264622646326464264652646626467264682646926470264712647226473264742647526476264772647826479264802648126482264832648426485264862648726488264892649026491264922649326494264952649626497264982649926500265012650226503265042650526506265072650826509265102651126512265132651426515265162651726518265192652026521265222652326524265252652626527265282652926530265312653226533265342653526536265372653826539265402654126542265432654426545265462654726548265492655026551265522655326554265552655626557265582655926560265612656226563265642656526566265672656826569265702657126572265732657426575265762657726578265792658026581265822658326584265852658626587265882658926590265912659226593265942659526596265972659826599266002660126602266032660426605266062660726608266092661026611266122661326614266152661626617266182661926620266212662226623266242662526626266272662826629266302663126632266332663426635266362663726638266392664026641266422664326644266452664626647266482664926650266512665226653266542665526656266572665826659266602666126662266632666426665266662666726668266692667026671266722667326674266752667626677266782667926680266812668226683266842668526686266872668826689266902669126692266932669426695266962669726698266992670026701267022670326704267052670626707267082670926710267112671226713267142671526716267172671826719267202672126722267232672426725267262672726728267292673026731267322673326734267352673626737267382673926740267412674226743267442674526746267472674826749267502675126752267532675426755267562675726758267592676026761267622676326764267652676626767267682676926770267712677226773267742677526776267772677826779267802678126782267832678426785267862678726788267892679026791267922679326794267952679626797267982679926800268012680226803268042680526806268072680826809268102681126812268132681426815268162681726818268192682026821268222682326824268252682626827268282682926830268312683226833268342683526836268372683826839268402684126842268432684426845268462684726848268492685026851268522685326854268552685626857268582685926860268612686226863268642686526866268672686826869268702687126872268732687426875268762687726878268792688026881268822688326884268852688626887268882688926890268912689226893268942689526896268972689826899269002690126902269032690426905269062690726908269092691026911269122691326914269152691626917269182691926920269212692226923269242692526926269272692826929269302693126932269332693426935269362693726938269392694026941269422694326944269452694626947269482694926950269512695226953269542695526956269572695826959269602696126962269632696426965269662696726968269692697026971269722697326974269752697626977269782697926980269812698226983269842698526986269872698826989269902699126992269932699426995269962699726998269992700027001270022700327004270052700627007270082700927010270112701227013270142701527016270172701827019270202702127022270232702427025270262702727028270292703027031270322703327034270352703627037270382703927040270412704227043270442704527046270472704827049270502705127052270532705427055270562705727058270592706027061270622706327064270652706627067270682706927070270712707227073270742707527076270772707827079270802708127082270832708427085270862708727088270892709027091270922709327094270952709627097270982709927100271012710227103271042710527106271072710827109271102711127112271132711427115271162711727118271192712027121271222712327124271252712627127271282712927130271312713227133271342713527136271372713827139271402714127142271432714427145271462714727148271492715027151271522715327154271552715627157271582715927160271612716227163271642716527166271672716827169271702717127172271732717427175271762717727178271792718027181271822718327184271852718627187271882718927190271912719227193271942719527196271972719827199272002720127202272032720427205272062720727208272092721027211272122721327214272152721627217272182721927220272212722227223272242722527226272272722827229272302723127232272332723427235272362723727238272392724027241272422724327244272452724627247272482724927250272512725227253272542725527256272572725827259272602726127262272632726427265272662726727268272692727027271272722727327274272752727627277272782727927280272812728227283272842728527286272872728827289272902729127292272932729427295272962729727298272992730027301273022730327304273052730627307273082730927310273112731227313273142731527316273172731827319273202732127322273232732427325273262732727328273292733027331273322733327334273352733627337273382733927340273412734227343273442734527346273472734827349273502735127352273532735427355273562735727358273592736027361273622736327364273652736627367273682736927370273712737227373273742737527376273772737827379273802738127382273832738427385273862738727388273892739027391273922739327394273952739627397273982739927400274012740227403274042740527406274072740827409274102741127412274132741427415274162741727418274192742027421274222742327424274252742627427274282742927430274312743227433274342743527436274372743827439274402744127442274432744427445274462744727448274492745027451274522745327454274552745627457274582745927460274612746227463274642746527466274672746827469274702747127472274732747427475274762747727478274792748027481274822748327484274852748627487274882748927490274912749227493274942749527496274972749827499275002750127502275032750427505275062750727508275092751027511275122751327514275152751627517275182751927520275212752227523275242752527526275272752827529275302753127532275332753427535275362753727538275392754027541275422754327544275452754627547275482754927550275512755227553275542755527556275572755827559275602756127562275632756427565275662756727568275692757027571275722757327574275752757627577275782757927580275812758227583275842758527586275872758827589275902759127592275932759427595275962759727598275992760027601276022760327604276052760627607276082760927610276112761227613276142761527616276172761827619276202762127622276232762427625276262762727628276292763027631276322763327634276352763627637276382763927640276412764227643276442764527646276472764827649276502765127652276532765427655276562765727658276592766027661276622766327664276652766627667276682766927670276712767227673276742767527676276772767827679276802768127682276832768427685276862768727688276892769027691276922769327694276952769627697276982769927700277012770227703277042770527706277072770827709277102771127712277132771427715277162771727718277192772027721277222772327724277252772627727277282772927730277312773227733277342773527736277372773827739277402774127742277432774427745277462774727748277492775027751277522775327754277552775627757277582775927760277612776227763277642776527766277672776827769277702777127772277732777427775277762777727778277792778027781277822778327784277852778627787277882778927790277912779227793277942779527796277972779827799278002780127802278032780427805278062780727808278092781027811278122781327814278152781627817278182781927820278212782227823278242782527826278272782827829278302783127832278332783427835278362783727838278392784027841278422784327844278452784627847278482784927850278512785227853278542785527856278572785827859278602786127862278632786427865278662786727868278692787027871278722787327874278752787627877278782787927880278812788227883278842788527886278872788827889278902789127892278932789427895278962789727898278992790027901279022790327904279052790627907279082790927910279112791227913279142791527916279172791827919279202792127922279232792427925279262792727928279292793027931279322793327934279352793627937279382793927940279412794227943279442794527946279472794827949279502795127952279532795427955279562795727958279592796027961279622796327964279652796627967279682796927970279712797227973279742797527976279772797827979279802798127982279832798427985279862798727988279892799027991279922799327994279952799627997279982799928000280012800228003280042800528006280072800828009280102801128012280132801428015280162801728018280192802028021280222802328024280252802628027280282802928030280312803228033280342803528036280372803828039280402804128042280432804428045280462804728048280492805028051280522805328054280552805628057280582805928060280612806228063280642806528066280672806828069280702807128072280732807428075280762807728078280792808028081280822808328084280852808628087280882808928090280912809228093280942809528096280972809828099281002810128102281032810428105281062810728108281092811028111281122811328114281152811628117281182811928120281212812228123281242812528126281272812828129281302813128132281332813428135281362813728138281392814028141281422814328144281452814628147281482814928150281512815228153281542815528156281572815828159281602816128162281632816428165281662816728168281692817028171281722817328174281752817628177281782817928180281812818228183281842818528186281872818828189281902819128192281932819428195281962819728198281992820028201282022820328204282052820628207282082820928210282112821228213282142821528216282172821828219282202822128222282232822428225282262822728228282292823028231282322823328234282352823628237282382823928240282412824228243282442824528246282472824828249282502825128252282532825428255282562825728258282592826028261282622826328264282652826628267282682826928270282712827228273282742827528276282772827828279282802828128282282832828428285282862828728288282892829028291282922829328294282952829628297282982829928300283012830228303283042830528306283072830828309283102831128312283132831428315283162831728318283192832028321283222832328324283252832628327283282832928330283312833228333283342833528336283372833828339283402834128342283432834428345283462834728348283492835028351283522835328354283552835628357283582835928360283612836228363283642836528366283672836828369283702837128372283732837428375283762837728378283792838028381283822838328384283852838628387283882838928390283912839228393283942839528396283972839828399284002840128402284032840428405284062840728408284092841028411284122841328414284152841628417284182841928420284212842228423284242842528426284272842828429284302843128432284332843428435284362843728438284392844028441284422844328444284452844628447284482844928450284512845228453284542845528456284572845828459284602846128462284632846428465284662846728468284692847028471284722847328474284752847628477284782847928480284812848228483284842848528486284872848828489284902849128492284932849428495284962849728498284992850028501285022850328504285052850628507285082850928510285112851228513285142851528516285172851828519285202852128522285232852428525285262852728528285292853028531285322853328534285352853628537285382853928540285412854228543285442854528546285472854828549285502855128552285532855428555285562855728558285592856028561285622856328564285652856628567285682856928570285712857228573285742857528576285772857828579285802858128582285832858428585285862858728588285892859028591285922859328594285952859628597285982859928600286012860228603286042860528606286072860828609286102861128612286132861428615286162861728618286192862028621286222862328624286252862628627286282862928630286312863228633286342863528636286372863828639286402864128642286432864428645286462864728648286492865028651286522865328654286552865628657286582865928660286612866228663286642866528666286672866828669286702867128672286732867428675286762867728678286792868028681286822868328684286852868628687286882868928690286912869228693286942869528696286972869828699287002870128702287032870428705287062870728708287092871028711287122871328714287152871628717287182871928720287212872228723287242872528726287272872828729287302873128732287332873428735287362873728738287392874028741287422874328744287452874628747287482874928750287512875228753287542875528756287572875828759287602876128762287632876428765287662876728768287692877028771287722877328774287752877628777287782877928780287812878228783287842878528786287872878828789287902879128792287932879428795287962879728798287992880028801288022880328804288052880628807288082880928810288112881228813288142881528816288172881828819288202882128822288232882428825288262882728828288292883028831288322883328834288352883628837288382883928840288412884228843288442884528846288472884828849288502885128852288532885428855288562885728858288592886028861288622886328864288652886628867288682886928870288712887228873288742887528876288772887828879288802888128882288832888428885288862888728888288892889028891288922889328894288952889628897288982889928900289012890228903289042890528906289072890828909289102891128912289132891428915289162891728918289192892028921289222892328924289252892628927289282892928930289312893228933289342893528936289372893828939289402894128942289432894428945289462894728948289492895028951289522895328954289552895628957289582895928960289612896228963289642896528966289672896828969289702897128972289732897428975289762897728978289792898028981289822898328984289852898628987289882898928990289912899228993289942899528996289972899828999290002900129002290032900429005290062900729008290092901029011290122901329014290152901629017290182901929020290212902229023290242902529026290272902829029290302903129032290332903429035290362903729038290392904029041290422904329044290452904629047290482904929050290512905229053290542905529056290572905829059290602906129062290632906429065290662906729068290692907029071290722907329074290752907629077290782907929080290812908229083290842908529086290872908829089290902909129092290932909429095290962909729098290992910029101291022910329104291052910629107291082910929110291112911229113291142911529116291172911829119291202912129122291232912429125291262912729128291292913029131291322913329134291352913629137291382913929140291412914229143291442914529146291472914829149291502915129152291532915429155291562915729158291592916029161291622916329164291652916629167291682916929170291712917229173291742917529176291772917829179291802918129182291832918429185291862918729188291892919029191291922919329194291952919629197291982919929200292012920229203292042920529206292072920829209292102921129212292132921429215292162921729218292192922029221292222922329224292252922629227292282922929230292312923229233292342923529236292372923829239292402924129242292432924429245292462924729248292492925029251292522925329254292552925629257292582925929260292612926229263292642926529266292672926829269292702927129272292732927429275292762927729278292792928029281292822928329284292852928629287292882928929290292912929229293292942929529296292972929829299293002930129302293032930429305293062930729308293092931029311293122931329314293152931629317293182931929320293212932229323293242932529326293272932829329293302933129332293332933429335293362933729338293392934029341293422934329344293452934629347293482934929350293512935229353293542935529356293572935829359293602936129362293632936429365293662936729368293692937029371293722937329374293752937629377293782937929380293812938229383293842938529386293872938829389293902939129392293932939429395293962939729398293992940029401294022940329404294052940629407294082940929410294112941229413294142941529416294172941829419294202942129422294232942429425294262942729428294292943029431294322943329434294352943629437294382943929440294412944229443294442944529446294472944829449294502945129452294532945429455294562945729458294592946029461294622946329464294652946629467294682946929470294712947229473294742947529476294772947829479294802948129482294832948429485294862948729488294892949029491294922949329494294952949629497294982949929500295012950229503295042950529506295072950829509295102951129512295132951429515295162951729518295192952029521295222952329524295252952629527295282952929530295312953229533295342953529536295372953829539295402954129542295432954429545295462954729548295492955029551295522955329554295552955629557295582955929560295612956229563295642956529566295672956829569295702957129572295732957429575295762957729578295792958029581295822958329584295852958629587295882958929590295912959229593295942959529596295972959829599296002960129602296032960429605296062960729608296092961029611296122961329614296152961629617296182961929620296212962229623296242962529626296272962829629296302963129632296332963429635296362963729638296392964029641296422964329644296452964629647296482964929650296512965229653296542965529656296572965829659296602966129662296632966429665296662966729668296692967029671296722967329674296752967629677296782967929680296812968229683296842968529686296872968829689296902969129692296932969429695296962969729698296992970029701297022970329704297052970629707297082970929710297112971229713297142971529716297172971829719297202972129722297232972429725297262972729728297292973029731297322973329734297352973629737297382973929740297412974229743297442974529746297472974829749297502975129752297532975429755297562975729758297592976029761297622976329764297652976629767297682976929770297712977229773297742977529776297772977829779297802978129782297832978429785297862978729788297892979029791297922979329794297952979629797297982979929800298012980229803298042980529806298072980829809298102981129812298132981429815298162981729818298192982029821298222982329824298252982629827298282982929830298312983229833298342983529836298372983829839298402984129842298432984429845298462984729848298492985029851298522985329854298552985629857298582985929860298612986229863298642986529866298672986829869298702987129872298732987429875298762987729878298792988029881298822988329884298852988629887298882988929890298912989229893298942989529896298972989829899299002990129902299032990429905299062990729908299092991029911299122991329914299152991629917299182991929920299212992229923299242992529926299272992829929299302993129932299332993429935299362993729938299392994029941299422994329944299452994629947299482994929950299512995229953299542995529956299572995829959299602996129962299632996429965299662996729968299692997029971299722997329974299752997629977299782997929980299812998229983299842998529986299872998829989299902999129992299932999429995299962999729998299993000030001300023000330004300053000630007300083000930010300113001230013300143001530016300173001830019300203002130022300233002430025300263002730028300293003030031300323003330034300353003630037300383003930040300413004230043300443004530046300473004830049300503005130052300533005430055300563005730058300593006030061300623006330064300653006630067300683006930070300713007230073300743007530076300773007830079300803008130082300833008430085300863008730088300893009030091300923009330094300953009630097300983009930100301013010230103301043010530106301073010830109301103011130112301133011430115301163011730118301193012030121301223012330124301253012630127301283012930130301313013230133301343013530136301373013830139301403014130142301433014430145301463014730148301493015030151301523015330154301553015630157301583015930160301613016230163301643016530166301673016830169301703017130172301733017430175301763017730178301793018030181301823018330184301853018630187301883018930190301913019230193301943019530196301973019830199302003020130202302033020430205302063020730208302093021030211302123021330214302153021630217302183021930220302213022230223302243022530226302273022830229302303023130232302333023430235302363023730238302393024030241302423024330244302453024630247302483024930250302513025230253302543025530256302573025830259302603026130262302633026430265302663026730268302693027030271302723027330274302753027630277302783027930280302813028230283302843028530286302873028830289302903029130292302933029430295302963029730298302993030030301303023030330304303053030630307303083030930310303113031230313303143031530316303173031830319303203032130322303233032430325303263032730328303293033030331303323033330334303353033630337303383033930340303413034230343303443034530346303473034830349303503035130352303533035430355303563035730358303593036030361303623036330364303653036630367303683036930370303713037230373303743037530376303773037830379303803038130382303833038430385303863038730388303893039030391303923039330394303953039630397303983039930400304013040230403304043040530406304073040830409304103041130412304133041430415304163041730418304193042030421304223042330424304253042630427304283042930430304313043230433304343043530436304373043830439304403044130442304433044430445304463044730448304493045030451304523045330454304553045630457304583045930460304613046230463304643046530466304673046830469304703047130472304733047430475304763047730478304793048030481304823048330484304853048630487304883048930490304913049230493304943049530496304973049830499305003050130502305033050430505305063050730508305093051030511305123051330514305153051630517305183051930520305213052230523305243052530526305273052830529305303053130532305333053430535305363053730538305393054030541305423054330544305453054630547305483054930550305513055230553305543055530556305573055830559305603056130562305633056430565305663056730568305693057030571305723057330574305753057630577305783057930580305813058230583305843058530586305873058830589305903059130592305933059430595305963059730598305993060030601306023060330604306053060630607306083060930610306113061230613306143061530616306173061830619306203062130622306233062430625306263062730628306293063030631306323063330634306353063630637306383063930640306413064230643306443064530646306473064830649306503065130652306533065430655306563065730658306593066030661306623066330664306653066630667306683066930670306713067230673306743067530676306773067830679306803068130682306833068430685306863068730688306893069030691306923069330694306953069630697306983069930700307013070230703307043070530706307073070830709307103071130712307133071430715307163071730718307193072030721307223072330724307253072630727307283072930730307313073230733307343073530736307373073830739307403074130742307433074430745307463074730748307493075030751307523075330754307553075630757307583075930760307613076230763307643076530766307673076830769307703077130772307733077430775307763077730778307793078030781307823078330784307853078630787307883078930790307913079230793307943079530796307973079830799308003080130802308033080430805308063080730808308093081030811308123081330814308153081630817308183081930820308213082230823308243082530826308273082830829308303083130832308333083430835308363083730838308393084030841308423084330844308453084630847308483084930850308513085230853308543085530856308573085830859308603086130862308633086430865308663086730868308693087030871308723087330874308753087630877308783087930880308813088230883308843088530886308873088830889308903089130892308933089430895308963089730898308993090030901309023090330904309053090630907309083090930910309113091230913309143091530916309173091830919309203092130922309233092430925309263092730928309293093030931309323093330934309353093630937309383093930940309413094230943309443094530946309473094830949309503095130952309533095430955309563095730958309593096030961309623096330964309653096630967309683096930970309713097230973309743097530976309773097830979309803098130982309833098430985309863098730988309893099030991309923099330994309953099630997309983099931000310013100231003310043100531006310073100831009310103101131012310133101431015310163101731018310193102031021310223102331024310253102631027310283102931030310313103231033310343103531036310373103831039310403104131042310433104431045310463104731048310493105031051310523105331054310553105631057310583105931060310613106231063310643106531066310673106831069310703107131072310733107431075310763107731078310793108031081310823108331084310853108631087310883108931090310913109231093310943109531096310973109831099311003110131102311033110431105311063110731108311093111031111311123111331114311153111631117311183111931120311213112231123311243112531126311273112831129311303113131132311333113431135311363113731138311393114031141311423114331144311453114631147311483114931150311513115231153311543115531156311573115831159311603116131162311633116431165311663116731168311693117031171311723117331174311753117631177311783117931180311813118231183311843118531186311873118831189311903119131192311933119431195311963119731198311993120031201312023120331204312053120631207312083120931210312113121231213312143121531216312173121831219312203122131222312233122431225312263122731228312293123031231312323123331234312353123631237312383123931240312413124231243312443124531246312473124831249312503125131252312533125431255312563125731258312593126031261312623126331264312653126631267312683126931270312713127231273312743127531276312773127831279312803128131282312833128431285312863128731288312893129031291312923129331294312953129631297312983129931300313013130231303313043130531306313073130831309313103131131312313133131431315313163131731318313193132031321313223132331324313253132631327313283132931330313313133231333313343133531336313373133831339313403134131342313433134431345313463134731348313493135031351313523135331354313553135631357313583135931360313613136231363313643136531366313673136831369313703137131372313733137431375313763137731378313793138031381313823138331384313853138631387313883138931390313913139231393313943139531396313973139831399314003140131402314033140431405314063140731408314093141031411314123141331414314153141631417314183141931420314213142231423314243142531426314273142831429314303143131432314333143431435314363143731438314393144031441314423144331444314453144631447314483144931450314513145231453314543145531456314573145831459314603146131462314633146431465314663146731468314693147031471314723147331474314753147631477314783147931480314813148231483314843148531486314873148831489314903149131492314933149431495314963149731498314993150031501315023150331504315053150631507315083150931510315113151231513315143151531516315173151831519315203152131522315233152431525315263152731528315293153031531315323153331534315353153631537315383153931540315413154231543315443154531546315473154831549315503155131552315533155431555315563155731558315593156031561315623156331564315653156631567315683156931570315713157231573315743157531576315773157831579315803158131582315833158431585315863158731588315893159031591315923159331594315953159631597315983159931600316013160231603316043160531606316073160831609316103161131612316133161431615316163161731618316193162031621316223162331624316253162631627316283162931630316313163231633316343163531636316373163831639316403164131642316433164431645316463164731648316493165031651316523165331654316553165631657316583165931660316613166231663316643166531666316673166831669316703167131672316733167431675316763167731678316793168031681316823168331684316853168631687316883168931690316913169231693316943169531696316973169831699317003170131702317033170431705317063170731708317093171031711317123171331714317153171631717317183171931720317213172231723317243172531726317273172831729317303173131732317333173431735317363173731738317393174031741317423174331744317453174631747317483174931750317513175231753317543175531756317573175831759317603176131762317633176431765317663176731768317693177031771317723177331774317753177631777317783177931780317813178231783317843178531786317873178831789317903179131792317933179431795317963179731798317993180031801318023180331804318053180631807318083180931810318113181231813318143181531816318173181831819318203182131822318233182431825318263182731828318293183031831318323183331834318353183631837318383183931840318413184231843318443184531846318473184831849318503185131852318533185431855318563185731858318593186031861318623186331864318653186631867318683186931870318713187231873318743187531876318773187831879318803188131882318833188431885318863188731888318893189031891318923189331894318953189631897318983189931900319013190231903319043190531906319073190831909319103191131912319133191431915319163191731918319193192031921319223192331924319253192631927319283192931930319313193231933319343193531936319373193831939319403194131942319433194431945319463194731948319493195031951319523195331954319553195631957319583195931960319613196231963319643196531966319673196831969319703197131972319733197431975319763197731978319793198031981319823198331984319853198631987319883198931990319913199231993319943199531996319973199831999320003200132002320033200432005320063200732008320093201032011320123201332014320153201632017320183201932020320213202232023320243202532026320273202832029320303203132032320333203432035320363203732038320393204032041320423204332044320453204632047320483204932050320513205232053320543205532056320573205832059320603206132062320633206432065320663206732068320693207032071320723207332074320753207632077320783207932080320813208232083320843208532086320873208832089320903209132092320933209432095320963209732098320993210032101321023210332104321053210632107321083210932110321113211232113321143211532116321173211832119321203212132122321233212432125321263212732128321293213032131321323213332134321353213632137321383213932140321413214232143321443214532146321473214832149321503215132152321533215432155321563215732158321593216032161321623216332164321653216632167321683216932170321713217232173321743217532176321773217832179321803218132182321833218432185321863218732188321893219032191321923219332194321953219632197321983219932200322013220232203322043220532206322073220832209322103221132212322133221432215322163221732218322193222032221322223222332224322253222632227322283222932230322313223232233322343223532236322373223832239322403224132242322433224432245322463224732248322493225032251322523225332254322553225632257322583225932260322613226232263322643226532266322673226832269322703227132272322733227432275322763227732278322793228032281322823228332284322853228632287322883228932290322913229232293322943229532296322973229832299323003230132302323033230432305323063230732308323093231032311323123231332314323153231632317323183231932320323213232232323323243232532326323273232832329323303233132332323333233432335323363233732338323393234032341323423234332344323453234632347323483234932350323513235232353323543235532356323573235832359323603236132362323633236432365323663236732368323693237032371323723237332374323753237632377323783237932380323813238232383323843238532386323873238832389323903239132392323933239432395323963239732398323993240032401324023240332404324053240632407324083240932410324113241232413324143241532416324173241832419324203242132422324233242432425324263242732428324293243032431324323243332434324353243632437324383243932440324413244232443324443244532446324473244832449324503245132452324533245432455324563245732458324593246032461324623246332464324653246632467324683246932470324713247232473324743247532476324773247832479324803248132482324833248432485324863248732488324893249032491324923249332494324953249632497324983249932500325013250232503325043250532506325073250832509325103251132512325133251432515325163251732518325193252032521325223252332524325253252632527325283252932530325313253232533325343253532536325373253832539325403254132542325433254432545325463254732548325493255032551325523255332554325553255632557325583255932560325613256232563325643256532566325673256832569325703257132572325733257432575325763257732578325793258032581325823258332584325853258632587325883258932590325913259232593325943259532596325973259832599326003260132602326033260432605326063260732608326093261032611326123261332614326153261632617326183261932620326213262232623326243262532626326273262832629326303263132632326333263432635326363263732638326393264032641326423264332644326453264632647326483264932650326513265232653326543265532656326573265832659326603266132662326633266432665326663266732668326693267032671326723267332674326753267632677326783267932680326813268232683326843268532686326873268832689326903269132692326933269432695326963269732698326993270032701327023270332704327053270632707327083270932710327113271232713327143271532716327173271832719327203272132722327233272432725327263272732728327293273032731327323273332734327353273632737327383273932740327413274232743327443274532746327473274832749327503275132752327533275432755327563275732758327593276032761327623276332764327653276632767327683276932770327713277232773327743277532776327773277832779327803278132782327833278432785327863278732788327893279032791327923279332794327953279632797327983279932800328013280232803328043280532806328073280832809328103281132812328133281432815328163281732818328193282032821328223282332824328253282632827328283282932830328313283232833328343283532836328373283832839328403284132842328433284432845328463284732848328493285032851328523285332854328553285632857328583285932860328613286232863328643286532866328673286832869328703287132872328733287432875328763287732878328793288032881328823288332884328853288632887328883288932890328913289232893328943289532896328973289832899329003290132902329033290432905329063290732908329093291032911329123291332914329153291632917329183291932920329213292232923329243292532926329273292832929329303293132932329333293432935329363293732938329393294032941329423294332944329453294632947329483294932950329513295232953329543295532956329573295832959329603296132962329633296432965329663296732968329693297032971329723297332974329753297632977329783297932980329813298232983329843298532986329873298832989329903299132992329933299432995329963299732998329993300033001330023300333004330053300633007330083300933010330113301233013330143301533016330173301833019330203302133022330233302433025330263302733028330293303033031330323303333034330353303633037330383303933040330413304233043330443304533046330473304833049330503305133052330533305433055330563305733058330593306033061330623306333064330653306633067330683306933070330713307233073330743307533076330773307833079330803308133082330833308433085330863308733088330893309033091330923309333094330953309633097330983309933100331013310233103331043310533106331073310833109331103311133112331133311433115331163311733118331193312033121331223312333124331253312633127331283312933130331313313233133331343313533136331373313833139331403314133142331433314433145331463314733148331493315033151331523315333154331553315633157331583315933160331613316233163331643316533166331673316833169331703317133172331733317433175331763317733178331793318033181331823318333184331853318633187331883318933190331913319233193331943319533196331973319833199332003320133202332033320433205332063320733208332093321033211332123321333214332153321633217332183321933220332213322233223332243322533226332273322833229332303323133232332333323433235332363323733238332393324033241332423324333244332453324633247332483324933250332513325233253332543325533256332573325833259332603326133262332633326433265332663326733268332693327033271332723327333274332753327633277332783327933280332813328233283332843328533286332873328833289332903329133292332933329433295332963329733298332993330033301333023330333304333053330633307333083330933310333113331233313333143331533316333173331833319333203332133322333233332433325333263332733328333293333033331333323333333334333353333633337333383333933340333413334233343333443334533346333473334833349333503335133352333533335433355333563335733358333593336033361333623336333364333653336633367333683336933370333713337233373333743337533376333773337833379333803338133382333833338433385333863338733388333893339033391333923339333394333953339633397333983339933400334013340233403334043340533406334073340833409334103341133412334133341433415334163341733418334193342033421334223342333424334253342633427334283342933430334313343233433334343343533436334373343833439334403344133442334433344433445334463344733448334493345033451334523345333454334553345633457334583345933460334613346233463334643346533466334673346833469334703347133472334733347433475334763347733478334793348033481334823348333484334853348633487334883348933490334913349233493334943349533496334973349833499335003350133502335033350433505335063350733508335093351033511335123351333514335153351633517335183351933520335213352233523335243352533526335273352833529335303353133532335333353433535335363353733538335393354033541335423354333544335453354633547335483354933550335513355233553335543355533556335573355833559335603356133562335633356433565335663356733568335693357033571335723357333574335753357633577335783357933580335813358233583335843358533586335873358833589335903359133592335933359433595335963359733598335993360033601336023360333604336053360633607336083360933610336113361233613336143361533616336173361833619336203362133622336233362433625336263362733628336293363033631336323363333634336353363633637336383363933640336413364233643336443364533646336473364833649336503365133652336533365433655336563365733658336593366033661336623366333664336653366633667336683366933670336713367233673336743367533676336773367833679336803368133682336833368433685336863368733688336893369033691336923369333694336953369633697336983369933700337013370233703337043370533706337073370833709337103371133712337133371433715337163371733718337193372033721337223372333724337253372633727337283372933730337313373233733337343373533736337373373833739337403374133742337433374433745337463374733748337493375033751337523375333754337553375633757337583375933760337613376233763337643376533766337673376833769337703377133772337733377433775337763377733778337793378033781337823378333784337853378633787337883378933790337913379233793337943379533796337973379833799338003380133802338033380433805338063380733808338093381033811338123381333814338153381633817338183381933820338213382233823338243382533826338273382833829338303383133832338333383433835338363383733838338393384033841338423384333844338453384633847338483384933850338513385233853338543385533856338573385833859338603386133862338633386433865338663386733868338693387033871338723387333874338753387633877338783387933880338813388233883338843388533886338873388833889338903389133892338933389433895338963389733898338993390033901339023390333904339053390633907339083390933910339113391233913339143391533916339173391833919339203392133922339233392433925339263392733928339293393033931339323393333934339353393633937339383393933940339413394233943339443394533946339473394833949339503395133952339533395433955339563395733958339593396033961339623396333964339653396633967339683396933970339713397233973339743397533976339773397833979339803398133982339833398433985339863398733988339893399033991339923399333994339953399633997339983399934000340013400234003340043400534006340073400834009340103401134012340133401434015340163401734018340193402034021340223402334024340253402634027340283402934030340313403234033340343403534036340373403834039340403404134042340433404434045340463404734048340493405034051340523405334054340553405634057340583405934060340613406234063340643406534066340673406834069340703407134072340733407434075340763407734078340793408034081340823408334084340853408634087340883408934090340913409234093340943409534096340973409834099341003410134102341033410434105341063410734108341093411034111341123411334114341153411634117341183411934120341213412234123341243412534126341273412834129341303413134132341333413434135341363413734138341393414034141341423414334144341453414634147341483414934150341513415234153341543415534156341573415834159341603416134162341633416434165341663416734168341693417034171341723417334174341753417634177341783417934180341813418234183341843418534186341873418834189341903419134192341933419434195341963419734198341993420034201342023420334204342053420634207342083420934210342113421234213342143421534216342173421834219342203422134222342233422434225342263422734228342293423034231342323423334234342353423634237342383423934240342413424234243342443424534246342473424834249342503425134252342533425434255342563425734258342593426034261342623426334264342653426634267342683426934270342713427234273342743427534276342773427834279342803428134282342833428434285342863428734288342893429034291342923429334294342953429634297342983429934300343013430234303343043430534306343073430834309343103431134312343133431434315343163431734318343193432034321343223432334324343253432634327343283432934330343313433234333343343433534336343373433834339343403434134342343433434434345343463434734348343493435034351343523435334354343553435634357343583435934360343613436234363343643436534366343673436834369343703437134372343733437434375343763437734378343793438034381343823438334384343853438634387343883438934390343913439234393343943439534396343973439834399344003440134402344033440434405344063440734408344093441034411344123441334414344153441634417344183441934420344213442234423344243442534426344273442834429344303443134432344333443434435344363443734438344393444034441344423444334444344453444634447344483444934450344513445234453344543445534456344573445834459344603446134462344633446434465344663446734468344693447034471344723447334474344753447634477344783447934480344813448234483344843448534486344873448834489344903449134492344933449434495344963449734498344993450034501345023450334504345053450634507345083450934510345113451234513345143451534516345173451834519345203452134522345233452434525345263452734528345293453034531345323453334534345353453634537345383453934540345413454234543345443454534546345473454834549345503455134552345533455434555345563455734558345593456034561345623456334564345653456634567345683456934570345713457234573345743457534576345773457834579345803458134582345833458434585345863458734588345893459034591345923459334594345953459634597345983459934600346013460234603346043460534606346073460834609346103461134612346133461434615346163461734618346193462034621346223462334624346253462634627346283462934630346313463234633346343463534636346373463834639346403464134642346433464434645346463464734648346493465034651346523465334654346553465634657346583465934660346613466234663346643466534666346673466834669346703467134672346733467434675346763467734678346793468034681346823468334684346853468634687346883468934690346913469234693346943469534696346973469834699347003470134702347033470434705347063470734708347093471034711347123471334714347153471634717347183471934720347213472234723347243472534726347273472834729347303473134732347333473434735347363473734738347393474034741347423474334744347453474634747347483474934750347513475234753347543475534756347573475834759347603476134762347633476434765347663476734768347693477034771347723477334774347753477634777347783477934780347813478234783347843478534786347873478834789347903479134792347933479434795347963479734798347993480034801348023480334804348053480634807348083480934810348113481234813348143481534816348173481834819348203482134822348233482434825348263482734828348293483034831348323483334834348353483634837348383483934840348413484234843348443484534846348473484834849348503485134852348533485434855348563485734858348593486034861348623486334864348653486634867348683486934870348713487234873348743487534876348773487834879348803488134882348833488434885348863488734888348893489034891348923489334894348953489634897348983489934900349013490234903349043490534906349073490834909349103491134912349133491434915349163491734918349193492034921349223492334924349253492634927349283492934930349313493234933349343493534936349373493834939349403494134942349433494434945349463494734948349493495034951349523495334954349553495634957349583495934960349613496234963349643496534966349673496834969349703497134972349733497434975349763497734978349793498034981349823498334984349853498634987349883498934990349913499234993349943499534996349973499834999350003500135002350033500435005350063500735008350093501035011350123501335014350153501635017350183501935020350213502235023350243502535026350273502835029350303503135032350333503435035350363503735038350393504035041350423504335044350453504635047350483504935050350513505235053350543505535056350573505835059350603506135062350633506435065350663506735068350693507035071350723507335074350753507635077350783507935080350813508235083350843508535086350873508835089350903509135092350933509435095350963509735098350993510035101351023510335104351053510635107351083510935110351113511235113351143511535116351173511835119351203512135122351233512435125351263512735128351293513035131351323513335134351353513635137351383513935140351413514235143351443514535146351473514835149351503515135152351533515435155351563515735158351593516035161351623516335164351653516635167351683516935170351713517235173351743517535176351773517835179351803518135182351833518435185351863518735188351893519035191351923519335194351953519635197351983519935200352013520235203352043520535206352073520835209352103521135212352133521435215352163521735218352193522035221352223522335224352253522635227352283522935230352313523235233352343523535236352373523835239352403524135242352433524435245352463524735248352493525035251352523525335254352553525635257352583525935260352613526235263352643526535266352673526835269352703527135272352733527435275352763527735278352793528035281352823528335284352853528635287352883528935290352913529235293352943529535296352973529835299353003530135302353033530435305353063530735308353093531035311353123531335314353153531635317353183531935320353213532235323353243532535326353273532835329353303533135332353333533435335353363533735338353393534035341353423534335344353453534635347353483534935350353513535235353353543535535356353573535835359353603536135362353633536435365353663536735368353693537035371353723537335374353753537635377353783537935380353813538235383353843538535386353873538835389353903539135392353933539435395353963539735398353993540035401354023540335404354053540635407354083540935410354113541235413354143541535416354173541835419354203542135422354233542435425354263542735428354293543035431354323543335434354353543635437354383543935440354413544235443354443544535446354473544835449354503545135452354533545435455354563545735458354593546035461354623546335464354653546635467354683546935470354713547235473354743547535476354773547835479354803548135482354833548435485354863548735488354893549035491354923549335494354953549635497354983549935500355013550235503355043550535506355073550835509355103551135512355133551435515355163551735518355193552035521355223552335524355253552635527355283552935530355313553235533355343553535536355373553835539355403554135542355433554435545355463554735548355493555035551355523555335554355553555635557355583555935560355613556235563355643556535566355673556835569355703557135572355733557435575355763557735578355793558035581355823558335584355853558635587355883558935590355913559235593355943559535596355973559835599356003560135602356033560435605356063560735608356093561035611356123561335614356153561635617356183561935620356213562235623356243562535626356273562835629356303563135632356333563435635356363563735638356393564035641356423564335644356453564635647356483564935650356513565235653356543565535656356573565835659356603566135662356633566435665356663566735668356693567035671356723567335674356753567635677356783567935680356813568235683356843568535686356873568835689356903569135692356933569435695356963569735698356993570035701357023570335704357053570635707357083570935710357113571235713357143571535716357173571835719357203572135722357233572435725357263572735728357293573035731357323573335734357353573635737357383573935740357413574235743357443574535746357473574835749357503575135752357533575435755357563575735758357593576035761357623576335764357653576635767357683576935770357713577235773357743577535776357773577835779357803578135782357833578435785357863578735788357893579035791357923579335794357953579635797357983579935800358013580235803358043580535806358073580835809358103581135812358133581435815358163581735818358193582035821358223582335824358253582635827358283582935830358313583235833358343583535836358373583835839358403584135842358433584435845358463584735848358493585035851358523585335854358553585635857358583585935860358613586235863358643586535866358673586835869358703587135872358733587435875358763587735878358793588035881358823588335884358853588635887358883588935890358913589235893358943589535896358973589835899359003590135902359033590435905359063590735908359093591035911359123591335914359153591635917359183591935920359213592235923359243592535926359273592835929359303593135932359333593435935359363593735938359393594035941359423594335944359453594635947359483594935950359513595235953359543595535956359573595835959359603596135962359633596435965359663596735968359693597035971359723597335974359753597635977359783597935980359813598235983359843598535986359873598835989359903599135992359933599435995359963599735998359993600036001360023600336004360053600636007360083600936010360113601236013360143601536016360173601836019360203602136022360233602436025360263602736028360293603036031360323603336034360353603636037360383603936040360413604236043360443604536046360473604836049360503605136052360533605436055360563605736058360593606036061360623606336064360653606636067360683606936070360713607236073360743607536076360773607836079360803608136082360833608436085360863608736088360893609036091360923609336094360953609636097360983609936100361013610236103361043610536106361073610836109361103611136112361133611436115361163611736118361193612036121361223612336124361253612636127361283612936130361313613236133361343613536136361373613836139361403614136142361433614436145361463614736148361493615036151361523615336154361553615636157361583615936160361613616236163361643616536166361673616836169361703617136172361733617436175361763617736178361793618036181361823618336184361853618636187361883618936190361913619236193361943619536196361973619836199362003620136202362033620436205362063620736208362093621036211362123621336214362153621636217362183621936220362213622236223362243622536226362273622836229362303623136232362333623436235362363623736238362393624036241362423624336244362453624636247362483624936250362513625236253362543625536256362573625836259362603626136262362633626436265362663626736268362693627036271362723627336274362753627636277362783627936280362813628236283362843628536286362873628836289362903629136292362933629436295362963629736298362993630036301363023630336304363053630636307363083630936310363113631236313363143631536316363173631836319363203632136322363233632436325363263632736328363293633036331363323633336334363353633636337363383633936340363413634236343363443634536346363473634836349363503635136352363533635436355363563635736358363593636036361363623636336364363653636636367363683636936370363713637236373363743637536376363773637836379363803638136382363833638436385363863638736388363893639036391363923639336394363953639636397363983639936400364013640236403364043640536406364073640836409364103641136412364133641436415364163641736418364193642036421364223642336424364253642636427364283642936430364313643236433364343643536436364373643836439364403644136442364433644436445364463644736448364493645036451364523645336454364553645636457364583645936460364613646236463364643646536466364673646836469364703647136472364733647436475364763647736478364793648036481364823648336484364853648636487364883648936490364913649236493364943649536496364973649836499365003650136502365033650436505365063650736508365093651036511365123651336514365153651636517365183651936520365213652236523365243652536526365273652836529365303653136532365333653436535365363653736538365393654036541365423654336544365453654636547365483654936550365513655236553365543655536556365573655836559365603656136562365633656436565365663656736568365693657036571365723657336574365753657636577365783657936580365813658236583365843658536586365873658836589365903659136592365933659436595365963659736598365993660036601366023660336604366053660636607366083660936610366113661236613366143661536616366173661836619366203662136622366233662436625366263662736628366293663036631366323663336634366353663636637366383663936640366413664236643366443664536646366473664836649366503665136652366533665436655366563665736658366593666036661366623666336664366653666636667366683666936670366713667236673366743667536676366773667836679366803668136682366833668436685366863668736688366893669036691366923669336694366953669636697366983669936700367013670236703367043670536706367073670836709367103671136712367133671436715367163671736718367193672036721367223672336724367253672636727367283672936730367313673236733367343673536736367373673836739367403674136742367433674436745367463674736748367493675036751367523675336754367553675636757367583675936760367613676236763367643676536766367673676836769367703677136772367733677436775367763677736778367793678036781367823678336784367853678636787367883678936790367913679236793367943679536796367973679836799368003680136802368033680436805368063680736808368093681036811368123681336814368153681636817368183681936820368213682236823368243682536826368273682836829368303683136832368333683436835368363683736838368393684036841368423684336844368453684636847368483684936850368513685236853368543685536856368573685836859368603686136862368633686436865368663686736868368693687036871368723687336874368753687636877368783687936880368813688236883368843688536886368873688836889368903689136892368933689436895368963689736898368993690036901369023690336904369053690636907369083690936910369113691236913369143691536916369173691836919369203692136922369233692436925369263692736928369293693036931369323693336934369353693636937369383693936940369413694236943369443694536946369473694836949369503695136952369533695436955369563695736958369593696036961369623696336964369653696636967369683696936970369713697236973369743697536976369773697836979369803698136982369833698436985369863698736988369893699036991369923699336994369953699636997369983699937000370013700237003370043700537006370073700837009370103701137012370133701437015370163701737018370193702037021370223702337024370253702637027370283702937030370313703237033370343703537036370373703837039370403704137042370433704437045370463704737048370493705037051370523705337054370553705637057370583705937060370613706237063370643706537066370673706837069370703707137072370733707437075370763707737078370793708037081370823708337084370853708637087370883708937090370913709237093370943709537096370973709837099371003710137102371033710437105371063710737108371093711037111371123711337114371153711637117371183711937120371213712237123371243712537126371273712837129371303713137132371333713437135371363713737138371393714037141371423714337144371453714637147371483714937150371513715237153371543715537156371573715837159371603716137162371633716437165371663716737168371693717037171371723717337174371753717637177371783717937180371813718237183371843718537186371873718837189371903719137192371933719437195371963719737198371993720037201372023720337204372053720637207372083720937210372113721237213372143721537216372173721837219372203722137222372233722437225372263722737228372293723037231372323723337234372353723637237372383723937240372413724237243372443724537246372473724837249372503725137252372533725437255372563725737258372593726037261372623726337264372653726637267372683726937270372713727237273372743727537276372773727837279372803728137282372833728437285372863728737288372893729037291372923729337294372953729637297372983729937300373013730237303373043730537306373073730837309373103731137312373133731437315373163731737318373193732037321373223732337324373253732637327373283732937330373313733237333373343733537336373373733837339373403734137342373433734437345373463734737348373493735037351373523735337354373553735637357373583735937360373613736237363373643736537366373673736837369373703737137372373733737437375373763737737378373793738037381373823738337384373853738637387373883738937390373913739237393373943739537396373973739837399374003740137402374033740437405374063740737408374093741037411374123741337414374153741637417374183741937420374213742237423374243742537426374273742837429374303743137432374333743437435374363743737438374393744037441374423744337444374453744637447374483744937450374513745237453374543745537456374573745837459374603746137462374633746437465374663746737468374693747037471374723747337474374753747637477374783747937480374813748237483374843748537486374873748837489374903749137492374933749437495374963749737498374993750037501375023750337504375053750637507375083750937510375113751237513375143751537516375173751837519375203752137522375233752437525375263752737528375293753037531375323753337534375353753637537375383753937540375413754237543375443754537546375473754837549375503755137552375533755437555375563755737558375593756037561375623756337564375653756637567375683756937570375713757237573375743757537576375773757837579375803758137582375833758437585375863758737588375893759037591375923759337594375953759637597375983759937600376013760237603376043760537606376073760837609376103761137612376133761437615376163761737618376193762037621376223762337624376253762637627376283762937630376313763237633376343763537636376373763837639376403764137642376433764437645376463764737648376493765037651376523765337654376553765637657376583765937660376613766237663376643766537666376673766837669376703767137672376733767437675376763767737678376793768037681376823768337684376853768637687376883768937690376913769237693376943769537696376973769837699377003770137702377033770437705377063770737708377093771037711377123771337714377153771637717377183771937720377213772237723377243772537726377273772837729377303773137732377333773437735377363773737738377393774037741377423774337744377453774637747377483774937750377513775237753377543775537756377573775837759377603776137762377633776437765377663776737768377693777037771377723777337774377753777637777377783777937780377813778237783377843778537786377873778837789377903779137792377933779437795377963779737798377993780037801378023780337804378053780637807378083780937810378113781237813378143781537816378173781837819378203782137822378233782437825378263782737828378293783037831378323783337834378353783637837378383783937840378413784237843378443784537846378473784837849378503785137852378533785437855378563785737858378593786037861378623786337864378653786637867378683786937870378713787237873378743787537876378773787837879378803788137882378833788437885378863788737888378893789037891378923789337894378953789637897378983789937900379013790237903379043790537906379073790837909379103791137912379133791437915379163791737918379193792037921379223792337924379253792637927379283792937930379313793237933379343793537936379373793837939379403794137942379433794437945379463794737948379493795037951379523795337954379553795637957379583795937960379613796237963379643796537966379673796837969379703797137972379733797437975379763797737978379793798037981379823798337984379853798637987379883798937990379913799237993379943799537996379973799837999380003800138002380033800438005380063800738008380093801038011380123801338014380153801638017380183801938020380213802238023380243802538026380273802838029380303803138032380333803438035380363803738038380393804038041380423804338044380453804638047380483804938050380513805238053380543805538056380573805838059380603806138062380633806438065380663806738068380693807038071380723807338074380753807638077380783807938080380813808238083380843808538086380873808838089380903809138092380933809438095380963809738098380993810038101381023810338104381053810638107381083810938110381113811238113381143811538116381173811838119381203812138122381233812438125381263812738128381293813038131381323813338134381353813638137381383813938140381413814238143381443814538146381473814838149381503815138152381533815438155381563815738158381593816038161381623816338164381653816638167381683816938170381713817238173381743817538176381773817838179381803818138182381833818438185381863818738188381893819038191381923819338194381953819638197381983819938200382013820238203382043820538206382073820838209382103821138212382133821438215382163821738218382193822038221382223822338224382253822638227382283822938230382313823238233382343823538236382373823838239382403824138242382433824438245382463824738248382493825038251382523825338254382553825638257382583825938260382613826238263382643826538266382673826838269382703827138272382733827438275382763827738278382793828038281382823828338284382853828638287382883828938290382913829238293382943829538296382973829838299383003830138302383033830438305383063830738308383093831038311383123831338314383153831638317383183831938320383213832238323383243832538326383273832838329383303833138332383333833438335383363833738338383393834038341383423834338344383453834638347383483834938350383513835238353383543835538356383573835838359383603836138362383633836438365383663836738368383693837038371383723837338374383753837638377383783837938380383813838238383383843838538386383873838838389383903839138392383933839438395383963839738398383993840038401384023840338404384053840638407384083840938410384113841238413384143841538416384173841838419384203842138422384233842438425384263842738428384293843038431384323843338434384353843638437384383843938440384413844238443384443844538446384473844838449384503845138452384533845438455384563845738458384593846038461384623846338464384653846638467384683846938470384713847238473384743847538476384773847838479384803848138482384833848438485384863848738488384893849038491384923849338494384953849638497384983849938500385013850238503385043850538506385073850838509385103851138512385133851438515385163851738518385193852038521385223852338524385253852638527385283852938530385313853238533385343853538536385373853838539385403854138542385433854438545385463854738548385493855038551385523855338554385553855638557385583855938560385613856238563385643856538566385673856838569385703857138572385733857438575385763857738578385793858038581385823858338584385853858638587385883858938590385913859238593385943859538596385973859838599386003860138602386033860438605386063860738608386093861038611386123861338614386153861638617386183861938620386213862238623386243862538626386273862838629386303863138632386333863438635386363863738638386393864038641386423864338644386453864638647386483864938650386513865238653386543865538656386573865838659386603866138662386633866438665386663866738668386693867038671386723867338674386753867638677386783867938680386813868238683386843868538686386873868838689386903869138692386933869438695386963869738698386993870038701387023870338704387053870638707387083870938710387113871238713387143871538716387173871838719387203872138722387233872438725387263872738728387293873038731387323873338734387353873638737387383873938740387413874238743387443874538746387473874838749387503875138752387533875438755387563875738758387593876038761387623876338764387653876638767387683876938770387713877238773387743877538776387773877838779387803878138782387833878438785387863878738788387893879038791387923879338794387953879638797387983879938800388013880238803388043880538806388073880838809388103881138812388133881438815388163881738818388193882038821388223882338824388253882638827388283882938830388313883238833388343883538836388373883838839388403884138842388433884438845388463884738848388493885038851388523885338854388553885638857388583885938860388613886238863388643886538866388673886838869388703887138872388733887438875388763887738878388793888038881388823888338884388853888638887388883888938890388913889238893388943889538896388973889838899389003890138902389033890438905389063890738908389093891038911389123891338914389153891638917389183891938920389213892238923389243892538926389273892838929389303893138932389333893438935389363893738938389393894038941389423894338944389453894638947389483894938950389513895238953389543895538956389573895838959389603896138962389633896438965389663896738968389693897038971389723897338974389753897638977389783897938980389813898238983389843898538986389873898838989389903899138992389933899438995389963899738998389993900039001390023900339004390053900639007390083900939010390113901239013390143901539016390173901839019390203902139022390233902439025390263902739028390293903039031390323903339034390353903639037390383903939040390413904239043390443904539046390473904839049390503905139052390533905439055390563905739058390593906039061390623906339064390653906639067390683906939070390713907239073390743907539076390773907839079390803908139082390833908439085390863908739088390893909039091390923909339094390953909639097390983909939100391013910239103391043910539106391073910839109391103911139112391133911439115391163911739118391193912039121391223912339124391253912639127391283912939130391313913239133391343913539136391373913839139391403914139142391433914439145391463914739148391493915039151391523915339154391553915639157391583915939160391613916239163391643916539166391673916839169391703917139172391733917439175391763917739178391793918039181391823918339184391853918639187391883918939190391913919239193391943919539196391973919839199392003920139202392033920439205392063920739208392093921039211392123921339214392153921639217392183921939220392213922239223392243922539226392273922839229392303923139232392333923439235392363923739238392393924039241392423924339244392453924639247392483924939250392513925239253392543925539256392573925839259392603926139262392633926439265392663926739268392693927039271392723927339274392753927639277392783927939280392813928239283392843928539286392873928839289392903929139292392933929439295392963929739298392993930039301393023930339304393053930639307393083930939310393113931239313393143931539316393173931839319393203932139322393233932439325393263932739328393293933039331393323933339334393353933639337393383933939340393413934239343393443934539346393473934839349393503935139352393533935439355393563935739358393593936039361393623936339364393653936639367393683936939370393713937239373393743937539376393773937839379393803938139382393833938439385393863938739388393893939039391393923939339394393953939639397393983939939400394013940239403394043940539406394073940839409394103941139412394133941439415394163941739418394193942039421394223942339424394253942639427394283942939430394313943239433394343943539436394373943839439394403944139442394433944439445394463944739448394493945039451394523945339454394553945639457394583945939460394613946239463394643946539466394673946839469394703947139472394733947439475394763947739478394793948039481394823948339484394853948639487394883948939490394913949239493394943949539496394973949839499395003950139502395033950439505395063950739508395093951039511395123951339514395153951639517395183951939520395213952239523395243952539526395273952839529395303953139532395333953439535395363953739538395393954039541395423954339544395453954639547395483954939550395513955239553395543955539556395573955839559395603956139562395633956439565395663956739568395693957039571395723957339574395753957639577395783957939580395813958239583395843958539586395873958839589395903959139592395933959439595395963959739598395993960039601396023960339604396053960639607396083960939610396113961239613396143961539616396173961839619396203962139622396233962439625396263962739628396293963039631396323963339634396353963639637396383963939640396413964239643396443964539646396473964839649396503965139652396533965439655396563965739658396593966039661396623966339664396653966639667396683966939670396713967239673396743967539676396773967839679396803968139682396833968439685396863968739688396893969039691396923969339694396953969639697396983969939700397013970239703397043970539706397073970839709397103971139712397133971439715397163971739718397193972039721397223972339724397253972639727397283972939730397313973239733397343973539736397373973839739397403974139742397433974439745397463974739748397493975039751397523975339754397553975639757397583975939760397613976239763397643976539766397673976839769397703977139772397733977439775397763977739778397793978039781397823978339784397853978639787397883978939790397913979239793397943979539796397973979839799398003980139802398033980439805398063980739808398093981039811398123981339814398153981639817398183981939820398213982239823398243982539826398273982839829398303983139832398333983439835398363983739838398393984039841398423984339844398453984639847398483984939850398513985239853398543985539856398573985839859398603986139862398633986439865398663986739868398693987039871398723987339874398753987639877398783987939880398813988239883398843988539886398873988839889398903989139892398933989439895398963989739898398993990039901399023990339904399053990639907399083990939910399113991239913399143991539916399173991839919399203992139922399233992439925399263992739928399293993039931399323993339934399353993639937399383993939940399413994239943399443994539946399473994839949399503995139952399533995439955399563995739958399593996039961399623996339964399653996639967399683996939970399713997239973399743997539976399773997839979399803998139982399833998439985399863998739988399893999039991399923999339994399953999639997399983999940000400014000240003400044000540006400074000840009400104001140012400134001440015400164001740018400194002040021400224002340024400254002640027400284002940030400314003240033400344003540036400374003840039400404004140042400434004440045400464004740048400494005040051400524005340054400554005640057400584005940060400614006240063400644006540066400674006840069400704007140072400734007440075400764007740078400794008040081400824008340084400854008640087400884008940090400914009240093400944009540096400974009840099401004010140102401034010440105401064010740108401094011040111401124011340114401154011640117401184011940120401214012240123401244012540126401274012840129401304013140132401334013440135401364013740138401394014040141401424014340144401454014640147401484014940150401514015240153401544015540156401574015840159401604016140162401634016440165401664016740168401694017040171401724017340174401754017640177401784017940180401814018240183401844018540186401874018840189401904019140192401934019440195401964019740198401994020040201402024020340204402054020640207402084020940210402114021240213402144021540216402174021840219402204022140222402234022440225402264022740228402294023040231402324023340234402354023640237402384023940240402414024240243402444024540246402474024840249402504025140252402534025440255402564025740258402594026040261402624026340264402654026640267402684026940270402714027240273402744027540276402774027840279402804028140282402834028440285402864028740288402894029040291402924029340294402954029640297402984029940300403014030240303403044030540306403074030840309403104031140312403134031440315403164031740318403194032040321403224032340324403254032640327403284032940330403314033240333403344033540336403374033840339403404034140342403434034440345403464034740348403494035040351403524035340354403554035640357403584035940360403614036240363403644036540366403674036840369403704037140372403734037440375403764037740378403794038040381403824038340384403854038640387403884038940390403914039240393403944039540396403974039840399404004040140402404034040440405404064040740408404094041040411404124041340414404154041640417404184041940420404214042240423404244042540426404274042840429404304043140432404334043440435404364043740438404394044040441404424044340444404454044640447404484044940450404514045240453404544045540456404574045840459404604046140462404634046440465404664046740468404694047040471404724047340474404754047640477404784047940480404814048240483404844048540486404874048840489404904049140492404934049440495404964049740498404994050040501405024050340504405054050640507405084050940510405114051240513405144051540516405174051840519405204052140522405234052440525405264052740528405294053040531405324053340534405354053640537405384053940540405414054240543405444054540546405474054840549405504055140552405534055440555405564055740558405594056040561405624056340564405654056640567405684056940570405714057240573405744057540576405774057840579405804058140582405834058440585405864058740588405894059040591405924059340594405954059640597405984059940600406014060240603406044060540606406074060840609406104061140612406134061440615406164061740618406194062040621406224062340624406254062640627406284062940630406314063240633406344063540636406374063840639406404064140642406434064440645406464064740648406494065040651406524065340654406554065640657406584065940660406614066240663406644066540666406674066840669406704067140672406734067440675406764067740678406794068040681406824068340684406854068640687406884068940690406914069240693406944069540696406974069840699407004070140702407034070440705407064070740708407094071040711407124071340714407154071640717407184071940720407214072240723407244072540726407274072840729407304073140732407334073440735407364073740738407394074040741407424074340744407454074640747407484074940750407514075240753407544075540756407574075840759407604076140762407634076440765407664076740768407694077040771407724077340774407754077640777407784077940780407814078240783407844078540786407874078840789407904079140792407934079440795407964079740798407994080040801408024080340804408054080640807408084080940810408114081240813408144081540816408174081840819408204082140822408234082440825408264082740828408294083040831408324083340834408354083640837408384083940840408414084240843408444084540846408474084840849408504085140852408534085440855408564085740858408594086040861408624086340864408654086640867408684086940870408714087240873408744087540876408774087840879408804088140882408834088440885408864088740888408894089040891408924089340894408954089640897408984089940900409014090240903409044090540906409074090840909409104091140912409134091440915409164091740918409194092040921409224092340924409254092640927409284092940930409314093240933409344093540936409374093840939409404094140942409434094440945409464094740948409494095040951409524095340954409554095640957409584095940960409614096240963409644096540966409674096840969409704097140972409734097440975409764097740978409794098040981409824098340984409854098640987409884098940990409914099240993409944099540996409974099840999410004100141002410034100441005410064100741008410094101041011410124101341014410154101641017410184101941020410214102241023410244102541026410274102841029410304103141032410334103441035410364103741038410394104041041410424104341044410454104641047410484104941050410514105241053410544105541056410574105841059410604106141062410634106441065410664106741068410694107041071410724107341074410754107641077410784107941080410814108241083410844108541086410874108841089410904109141092410934109441095410964109741098410994110041101411024110341104411054110641107411084110941110411114111241113411144111541116411174111841119411204112141122411234112441125411264112741128411294113041131411324113341134411354113641137411384113941140411414114241143411444114541146411474114841149411504115141152411534115441155411564115741158411594116041161411624116341164411654116641167411684116941170411714117241173411744117541176411774117841179411804118141182411834118441185411864118741188411894119041191411924119341194411954119641197411984119941200412014120241203412044120541206412074120841209412104121141212412134121441215412164121741218412194122041221412224122341224412254122641227412284122941230412314123241233412344123541236412374123841239412404124141242412434124441245412464124741248412494125041251412524125341254412554125641257412584125941260412614126241263412644126541266412674126841269412704127141272412734127441275412764127741278412794128041281412824128341284412854128641287412884128941290412914129241293412944129541296412974129841299413004130141302413034130441305413064130741308413094131041311413124131341314413154131641317413184131941320413214132241323413244132541326413274132841329413304133141332413334133441335413364133741338413394134041341413424134341344413454134641347413484134941350413514135241353413544135541356413574135841359413604136141362413634136441365413664136741368413694137041371413724137341374413754137641377413784137941380413814138241383413844138541386413874138841389413904139141392413934139441395413964139741398413994140041401414024140341404414054140641407414084140941410414114141241413414144141541416414174141841419414204142141422414234142441425414264142741428414294143041431414324143341434414354143641437414384143941440414414144241443414444144541446414474144841449414504145141452414534145441455414564145741458414594146041461414624146341464414654146641467414684146941470414714147241473414744147541476414774147841479414804148141482414834148441485414864148741488414894149041491414924149341494414954149641497414984149941500415014150241503415044150541506415074150841509415104151141512415134151441515415164151741518415194152041521415224152341524415254152641527415284152941530415314153241533415344153541536415374153841539415404154141542415434154441545415464154741548415494155041551415524155341554415554155641557415584155941560415614156241563415644156541566415674156841569415704157141572415734157441575415764157741578415794158041581415824158341584415854158641587415884158941590415914159241593415944159541596415974159841599416004160141602416034160441605416064160741608416094161041611416124161341614416154161641617416184161941620416214162241623416244162541626416274162841629416304163141632416334163441635416364163741638416394164041641416424164341644416454164641647416484164941650416514165241653416544165541656416574165841659416604166141662416634166441665416664166741668416694167041671416724167341674416754167641677416784167941680416814168241683416844168541686416874168841689416904169141692416934169441695416964169741698416994170041701417024170341704417054170641707417084170941710417114171241713417144171541716417174171841719417204172141722417234172441725417264172741728417294173041731417324173341734417354173641737417384173941740417414174241743417444174541746417474174841749417504175141752417534175441755417564175741758417594176041761417624176341764417654176641767417684176941770417714177241773417744177541776417774177841779417804178141782417834178441785417864178741788417894179041791417924179341794417954179641797417984179941800418014180241803418044180541806418074180841809418104181141812418134181441815418164181741818418194182041821418224182341824418254182641827418284182941830418314183241833418344183541836418374183841839418404184141842418434184441845418464184741848418494185041851418524185341854418554185641857418584185941860418614186241863418644186541866418674186841869418704187141872418734187441875418764187741878418794188041881418824188341884418854188641887418884188941890418914189241893418944189541896418974189841899419004190141902419034190441905419064190741908419094191041911419124191341914419154191641917419184191941920419214192241923419244192541926419274192841929419304193141932419334193441935419364193741938419394194041941419424194341944419454194641947419484194941950419514195241953419544195541956419574195841959419604196141962419634196441965419664196741968419694197041971419724197341974419754197641977419784197941980419814198241983419844198541986419874198841989419904199141992419934199441995419964199741998419994200042001420024200342004420054200642007420084200942010420114201242013420144201542016420174201842019420204202142022420234202442025420264202742028420294203042031420324203342034420354203642037420384203942040420414204242043420444204542046420474204842049420504205142052420534205442055420564205742058420594206042061420624206342064420654206642067420684206942070420714207242073420744207542076420774207842079420804208142082420834208442085420864208742088420894209042091420924209342094420954209642097420984209942100421014210242103421044210542106421074210842109421104211142112421134211442115421164211742118421194212042121421224212342124421254212642127421284212942130421314213242133421344213542136421374213842139421404214142142421434214442145421464214742148421494215042151421524215342154421554215642157421584215942160421614216242163421644216542166421674216842169421704217142172421734217442175421764217742178421794218042181421824218342184421854218642187421884218942190421914219242193421944219542196421974219842199422004220142202422034220442205422064220742208422094221042211422124221342214422154221642217422184221942220422214222242223422244222542226422274222842229422304223142232422334223442235422364223742238422394224042241422424224342244422454224642247422484224942250422514225242253422544225542256422574225842259422604226142262422634226442265422664226742268422694227042271422724227342274422754227642277422784227942280422814228242283422844228542286422874228842289422904229142292422934229442295422964229742298422994230042301423024230342304423054230642307423084230942310423114231242313423144231542316423174231842319423204232142322423234232442325423264232742328423294233042331423324233342334423354233642337423384233942340423414234242343423444234542346423474234842349423504235142352423534235442355423564235742358423594236042361423624236342364423654236642367423684236942370423714237242373423744237542376423774237842379423804238142382423834238442385423864238742388423894239042391423924239342394423954239642397423984239942400424014240242403424044240542406424074240842409424104241142412424134241442415424164241742418424194242042421424224242342424424254242642427424284242942430424314243242433424344243542436424374243842439424404244142442424434244442445424464244742448424494245042451424524245342454424554245642457424584245942460424614246242463424644246542466424674246842469424704247142472424734247442475424764247742478424794248042481424824248342484424854248642487424884248942490424914249242493424944249542496424974249842499425004250142502425034250442505425064250742508425094251042511425124251342514425154251642517425184251942520425214252242523425244252542526425274252842529425304253142532425334253442535425364253742538425394254042541425424254342544425454254642547425484254942550425514255242553425544255542556425574255842559425604256142562425634256442565425664256742568425694257042571425724257342574425754257642577425784257942580425814258242583425844258542586425874258842589425904259142592425934259442595425964259742598425994260042601426024260342604426054260642607426084260942610426114261242613426144261542616426174261842619426204262142622426234262442625426264262742628426294263042631426324263342634426354263642637426384263942640426414264242643426444264542646426474264842649426504265142652426534265442655426564265742658426594266042661426624266342664426654266642667426684266942670426714267242673426744267542676426774267842679426804268142682426834268442685426864268742688426894269042691426924269342694426954269642697426984269942700427014270242703427044270542706427074270842709427104271142712427134271442715427164271742718427194272042721427224272342724427254272642727427284272942730427314273242733427344273542736427374273842739427404274142742427434274442745427464274742748427494275042751427524275342754427554275642757427584275942760427614276242763427644276542766427674276842769427704277142772427734277442775427764277742778427794278042781427824278342784427854278642787427884278942790427914279242793427944279542796427974279842799428004280142802428034280442805428064280742808428094281042811428124281342814428154281642817428184281942820428214282242823428244282542826428274282842829428304283142832428334283442835428364283742838428394284042841428424284342844428454284642847428484284942850428514285242853428544285542856428574285842859428604286142862428634286442865428664286742868428694287042871428724287342874428754287642877428784287942880428814288242883428844288542886428874288842889428904289142892428934289442895428964289742898428994290042901429024290342904429054290642907429084290942910429114291242913429144291542916429174291842919429204292142922429234292442925429264292742928429294293042931429324293342934429354293642937429384293942940429414294242943429444294542946429474294842949429504295142952429534295442955429564295742958429594296042961429624296342964429654296642967429684296942970429714297242973429744297542976429774297842979429804298142982429834298442985429864298742988429894299042991429924299342994429954299642997429984299943000430014300243003430044300543006430074300843009430104301143012430134301443015430164301743018430194302043021430224302343024430254302643027430284302943030430314303243033430344303543036430374303843039430404304143042430434304443045430464304743048430494305043051430524305343054430554305643057430584305943060430614306243063430644306543066430674306843069430704307143072430734307443075430764307743078430794308043081430824308343084430854308643087430884308943090430914309243093430944309543096430974309843099431004310143102431034310443105431064310743108431094311043111431124311343114431154311643117431184311943120431214312243123431244312543126431274312843129431304313143132431334313443135431364313743138431394314043141431424314343144431454314643147431484314943150431514315243153431544315543156431574315843159431604316143162431634316443165431664316743168431694317043171431724317343174431754317643177431784317943180431814318243183431844318543186431874318843189431904319143192431934319443195431964319743198431994320043201432024320343204432054320643207432084320943210432114321243213432144321543216432174321843219432204322143222432234322443225432264322743228432294323043231432324323343234432354323643237432384323943240432414324243243432444324543246432474324843249432504325143252432534325443255432564325743258432594326043261432624326343264432654326643267432684326943270432714327243273432744327543276432774327843279432804328143282432834328443285432864328743288432894329043291432924329343294432954329643297432984329943300433014330243303433044330543306433074330843309433104331143312433134331443315433164331743318433194332043321433224332343324433254332643327433284332943330433314333243333433344333543336433374333843339433404334143342433434334443345433464334743348433494335043351433524335343354433554335643357433584335943360433614336243363433644336543366433674336843369433704337143372433734337443375433764337743378433794338043381433824338343384433854338643387433884338943390433914339243393433944339543396433974339843399434004340143402434034340443405434064340743408434094341043411434124341343414434154341643417434184341943420434214342243423434244342543426434274342843429434304343143432434334343443435434364343743438434394344043441434424344343444434454344643447434484344943450434514345243453434544345543456434574345843459434604346143462434634346443465434664346743468434694347043471434724347343474434754347643477434784347943480434814348243483434844348543486434874348843489434904349143492434934349443495434964349743498434994350043501435024350343504435054350643507435084350943510435114351243513435144351543516435174351843519435204352143522435234352443525435264352743528435294353043531435324353343534435354353643537435384353943540435414354243543435444354543546435474354843549435504355143552435534355443555435564355743558435594356043561435624356343564435654356643567435684356943570435714357243573435744357543576435774357843579435804358143582435834358443585435864358743588435894359043591435924359343594435954359643597435984359943600436014360243603436044360543606436074360843609436104361143612436134361443615436164361743618436194362043621436224362343624436254362643627436284362943630436314363243633436344363543636436374363843639436404364143642436434364443645436464364743648436494365043651436524365343654436554365643657436584365943660436614366243663436644366543666436674366843669436704367143672436734367443675436764367743678436794368043681436824368343684436854368643687436884368943690436914369243693436944369543696436974369843699437004370143702437034370443705437064370743708437094371043711437124371343714437154371643717437184371943720437214372243723437244372543726437274372843729437304373143732437334373443735437364373743738437394374043741437424374343744437454374643747437484374943750437514375243753437544375543756437574375843759437604376143762437634376443765437664376743768437694377043771437724377343774437754377643777437784377943780437814378243783437844378543786437874378843789437904379143792437934379443795437964379743798437994380043801438024380343804438054380643807438084380943810438114381243813438144381543816438174381843819438204382143822438234382443825438264382743828438294383043831438324383343834438354383643837438384383943840438414384243843438444384543846438474384843849438504385143852438534385443855438564385743858438594386043861438624386343864438654386643867438684386943870438714387243873438744387543876438774387843879438804388143882438834388443885438864388743888438894389043891438924389343894438954389643897438984389943900439014390243903439044390543906439074390843909439104391143912439134391443915439164391743918439194392043921439224392343924439254392643927439284392943930439314393243933439344393543936439374393843939439404394143942439434394443945439464394743948439494395043951439524395343954439554395643957439584395943960439614396243963439644396543966439674396843969439704397143972439734397443975439764397743978439794398043981439824398343984439854398643987439884398943990439914399243993439944399543996439974399843999440004400144002440034400444005440064400744008440094401044011440124401344014440154401644017440184401944020440214402244023440244402544026440274402844029440304403144032440334403444035440364403744038440394404044041440424404344044440454404644047440484404944050440514405244053440544405544056440574405844059440604406144062440634406444065440664406744068440694407044071440724407344074440754407644077440784407944080440814408244083440844408544086440874408844089440904409144092440934409444095440964409744098440994410044101441024410344104441054410644107441084410944110441114411244113441144411544116441174411844119441204412144122441234412444125441264412744128441294413044131441324413344134441354413644137441384413944140441414414244143441444414544146441474414844149441504415144152441534415444155441564415744158441594416044161441624416344164441654416644167441684416944170441714417244173441744417544176441774417844179441804418144182441834418444185441864418744188441894419044191441924419344194441954419644197441984419944200442014420244203442044420544206442074420844209442104421144212442134421444215442164421744218442194422044221442224422344224442254422644227442284422944230442314423244233442344423544236442374423844239442404424144242442434424444245442464424744248442494425044251442524425344254442554425644257442584425944260442614426244263442644426544266442674426844269442704427144272442734427444275442764427744278442794428044281442824428344284442854428644287442884428944290442914429244293442944429544296442974429844299443004430144302443034430444305443064430744308443094431044311443124431344314443154431644317443184431944320443214432244323443244432544326443274432844329443304433144332443334433444335443364433744338443394434044341443424434344344443454434644347443484434944350443514435244353443544435544356443574435844359443604436144362443634436444365443664436744368443694437044371443724437344374443754437644377443784437944380443814438244383443844438544386443874438844389443904439144392443934439444395443964439744398443994440044401444024440344404444054440644407444084440944410444114441244413444144441544416444174441844419444204442144422444234442444425444264442744428444294443044431444324443344434444354443644437444384443944440444414444244443444444444544446444474444844449444504445144452444534445444455444564445744458444594446044461444624446344464444654446644467444684446944470444714447244473444744447544476444774447844479444804448144482444834448444485444864448744488444894449044491444924449344494444954449644497444984449944500445014450244503445044450544506445074450844509445104451144512445134451444515445164451744518445194452044521445224452344524445254452644527445284452944530445314453244533445344453544536445374453844539445404454144542445434454444545445464454744548445494455044551445524455344554445554455644557445584455944560445614456244563445644456544566445674456844569445704457144572445734457444575445764457744578445794458044581445824458344584445854458644587445884458944590445914459244593445944459544596445974459844599446004460144602446034460444605446064460744608446094461044611446124461344614446154461644617446184461944620446214462244623446244462544626446274462844629446304463144632446334463444635446364463744638446394464044641446424464344644446454464644647446484464944650446514465244653446544465544656446574465844659446604466144662446634466444665446664466744668446694467044671446724467344674446754467644677446784467944680446814468244683446844468544686446874468844689446904469144692446934469444695446964469744698446994470044701447024470344704447054470644707447084470944710447114471244713447144471544716447174471844719447204472144722447234472444725447264472744728447294473044731447324473344734447354473644737447384473944740447414474244743447444474544746447474474844749447504475144752447534475444755447564475744758447594476044761447624476344764447654476644767447684476944770447714477244773447744477544776447774477844779447804478144782447834478444785447864478744788447894479044791447924479344794447954479644797447984479944800448014480244803448044480544806448074480844809448104481144812448134481444815448164481744818448194482044821448224482344824448254482644827448284482944830448314483244833448344483544836448374483844839448404484144842448434484444845448464484744848448494485044851448524485344854448554485644857448584485944860448614486244863448644486544866448674486844869448704487144872448734487444875448764487744878448794488044881448824488344884448854488644887448884488944890448914489244893448944489544896448974489844899449004490144902449034490444905449064490744908449094491044911449124491344914449154491644917449184491944920449214492244923449244492544926449274492844929449304493144932449334493444935449364493744938449394494044941449424494344944449454494644947449484494944950449514495244953449544495544956449574495844959449604496144962449634496444965449664496744968449694497044971449724497344974449754497644977449784497944980449814498244983449844498544986449874498844989449904499144992449934499444995449964499744998449994500045001450024500345004450054500645007450084500945010450114501245013450144501545016450174501845019450204502145022450234502445025450264502745028450294503045031450324503345034450354503645037450384503945040450414504245043450444504545046450474504845049450504505145052450534505445055450564505745058450594506045061450624506345064450654506645067450684506945070450714507245073450744507545076450774507845079450804508145082450834508445085450864508745088450894509045091450924509345094450954509645097450984509945100451014510245103451044510545106451074510845109451104511145112451134511445115451164511745118451194512045121451224512345124451254512645127451284512945130451314513245133451344513545136451374513845139451404514145142451434514445145451464514745148451494515045151451524515345154451554515645157451584515945160451614516245163451644516545166451674516845169451704517145172451734517445175451764517745178451794518045181451824518345184451854518645187451884518945190451914519245193451944519545196451974519845199452004520145202452034520445205452064520745208452094521045211452124521345214452154521645217452184521945220452214522245223452244522545226452274522845229452304523145232452334523445235452364523745238452394524045241452424524345244452454524645247452484524945250452514525245253452544525545256452574525845259452604526145262452634526445265452664526745268452694527045271452724527345274452754527645277452784527945280452814528245283452844528545286452874528845289452904529145292452934529445295452964529745298452994530045301453024530345304453054530645307453084530945310453114531245313453144531545316453174531845319453204532145322453234532445325453264532745328453294533045331453324533345334453354533645337453384533945340453414534245343453444534545346453474534845349453504535145352453534535445355453564535745358453594536045361453624536345364453654536645367453684536945370453714537245373453744537545376453774537845379453804538145382453834538445385453864538745388453894539045391453924539345394453954539645397453984539945400454014540245403454044540545406454074540845409454104541145412454134541445415454164541745418454194542045421454224542345424454254542645427454284542945430454314543245433454344543545436454374543845439454404544145442454434544445445454464544745448454494545045451454524545345454454554545645457454584545945460454614546245463454644546545466454674546845469454704547145472454734547445475454764547745478454794548045481454824548345484454854548645487454884548945490454914549245493454944549545496454974549845499455004550145502455034550445505455064550745508455094551045511455124551345514455154551645517455184551945520455214552245523455244552545526455274552845529455304553145532455334553445535455364553745538455394554045541455424554345544455454554645547455484554945550455514555245553455544555545556455574555845559455604556145562455634556445565455664556745568455694557045571455724557345574455754557645577455784557945580455814558245583455844558545586455874558845589455904559145592455934559445595455964559745598455994560045601456024560345604456054560645607456084560945610456114561245613456144561545616456174561845619456204562145622456234562445625456264562745628456294563045631456324563345634456354563645637456384563945640456414564245643456444564545646456474564845649456504565145652456534565445655456564565745658456594566045661456624566345664456654566645667456684566945670456714567245673456744567545676456774567845679456804568145682456834568445685456864568745688456894569045691456924569345694456954569645697456984569945700457014570245703457044570545706457074570845709457104571145712457134571445715457164571745718457194572045721457224572345724457254572645727457284572945730457314573245733457344573545736457374573845739457404574145742457434574445745457464574745748457494575045751457524575345754457554575645757457584575945760457614576245763457644576545766457674576845769457704577145772457734577445775457764577745778457794578045781457824578345784457854578645787457884578945790457914579245793457944579545796457974579845799458004580145802458034580445805458064580745808458094581045811458124581345814458154581645817458184581945820458214582245823458244582545826458274582845829458304583145832458334583445835458364583745838458394584045841458424584345844458454584645847458484584945850458514585245853458544585545856458574585845859458604586145862458634586445865458664586745868458694587045871458724587345874458754587645877458784587945880458814588245883458844588545886458874588845889458904589145892458934589445895458964589745898458994590045901459024590345904459054590645907459084590945910459114591245913459144591545916459174591845919459204592145922459234592445925459264592745928459294593045931459324593345934459354593645937459384593945940459414594245943459444594545946459474594845949459504595145952459534595445955459564595745958459594596045961459624596345964459654596645967459684596945970459714597245973459744597545976459774597845979459804598145982459834598445985459864598745988459894599045991459924599345994459954599645997459984599946000460014600246003460044600546006460074600846009460104601146012460134601446015460164601746018460194602046021460224602346024460254602646027460284602946030460314603246033460344603546036460374603846039460404604146042460434604446045460464604746048460494605046051460524605346054460554605646057460584605946060460614606246063460644606546066460674606846069460704607146072460734607446075460764607746078460794608046081460824608346084460854608646087460884608946090460914609246093460944609546096460974609846099461004610146102461034610446105461064610746108461094611046111461124611346114461154611646117461184611946120461214612246123461244612546126461274612846129461304613146132461334613446135461364613746138461394614046141461424614346144461454614646147461484614946150461514615246153461544615546156461574615846159461604616146162461634616446165461664616746168461694617046171461724617346174461754617646177461784617946180461814618246183461844618546186461874618846189461904619146192461934619446195461964619746198461994620046201462024620346204462054620646207462084620946210462114621246213462144621546216462174621846219462204622146222462234622446225462264622746228462294623046231462324623346234462354623646237462384623946240462414624246243462444624546246462474624846249462504625146252462534625446255462564625746258462594626046261462624626346264462654626646267462684626946270462714627246273462744627546276462774627846279462804628146282462834628446285462864628746288462894629046291462924629346294462954629646297462984629946300463014630246303463044630546306463074630846309463104631146312463134631446315463164631746318463194632046321463224632346324463254632646327463284632946330463314633246333463344633546336463374633846339463404634146342463434634446345463464634746348463494635046351463524635346354463554635646357463584635946360463614636246363463644636546366463674636846369463704637146372463734637446375463764637746378463794638046381463824638346384463854638646387463884638946390463914639246393463944639546396463974639846399464004640146402464034640446405464064640746408464094641046411464124641346414464154641646417464184641946420464214642246423464244642546426464274642846429464304643146432464334643446435464364643746438464394644046441464424644346444464454644646447464484644946450464514645246453464544645546456464574645846459464604646146462464634646446465464664646746468464694647046471464724647346474464754647646477464784647946480464814648246483464844648546486464874648846489464904649146492464934649446495464964649746498464994650046501465024650346504465054650646507465084650946510465114651246513465144651546516465174651846519465204652146522465234652446525465264652746528465294653046531465324653346534465354653646537465384653946540465414654246543465444654546546465474654846549465504655146552465534655446555465564655746558465594656046561465624656346564465654656646567465684656946570465714657246573465744657546576465774657846579465804658146582465834658446585465864658746588465894659046591465924659346594465954659646597465984659946600466014660246603466044660546606466074660846609466104661146612466134661446615466164661746618466194662046621466224662346624466254662646627466284662946630466314663246633466344663546636466374663846639466404664146642466434664446645466464664746648466494665046651466524665346654466554665646657466584665946660466614666246663466644666546666466674666846669466704667146672466734667446675466764667746678466794668046681466824668346684466854668646687466884668946690466914669246693466944669546696466974669846699467004670146702467034670446705467064670746708467094671046711467124671346714467154671646717467184671946720467214672246723467244672546726467274672846729467304673146732467334673446735467364673746738467394674046741467424674346744467454674646747467484674946750467514675246753467544675546756467574675846759467604676146762467634676446765467664676746768467694677046771467724677346774467754677646777467784677946780467814678246783467844678546786467874678846789467904679146792467934679446795467964679746798467994680046801468024680346804468054680646807468084680946810468114681246813468144681546816468174681846819468204682146822468234682446825468264682746828468294683046831468324683346834468354683646837468384683946840468414684246843468444684546846468474684846849468504685146852468534685446855468564685746858468594686046861468624686346864468654686646867468684686946870468714687246873468744687546876468774687846879468804688146882468834688446885468864688746888468894689046891468924689346894468954689646897468984689946900469014690246903469044690546906469074690846909469104691146912469134691446915469164691746918469194692046921469224692346924469254692646927469284692946930469314693246933469344693546936469374693846939469404694146942469434694446945469464694746948469494695046951469524695346954469554695646957469584695946960469614696246963469644696546966469674696846969469704697146972469734697446975469764697746978469794698046981469824698346984469854698646987469884698946990469914699246993469944699546996469974699846999470004700147002470034700447005470064700747008470094701047011470124701347014470154701647017470184701947020470214702247023470244702547026470274702847029470304703147032470334703447035470364703747038470394704047041470424704347044470454704647047470484704947050470514705247053470544705547056470574705847059470604706147062470634706447065470664706747068470694707047071470724707347074470754707647077470784707947080470814708247083470844708547086470874708847089470904709147092470934709447095470964709747098470994710047101471024710347104471054710647107471084710947110471114711247113471144711547116471174711847119471204712147122471234712447125471264712747128471294713047131471324713347134471354713647137471384713947140471414714247143471444714547146471474714847149471504715147152471534715447155471564715747158471594716047161471624716347164471654716647167471684716947170471714717247173471744717547176471774717847179471804718147182471834718447185471864718747188471894719047191471924719347194471954719647197471984719947200472014720247203472044720547206472074720847209472104721147212472134721447215472164721747218472194722047221472224722347224472254722647227472284722947230472314723247233472344723547236472374723847239472404724147242472434724447245472464724747248472494725047251472524725347254472554725647257472584725947260472614726247263472644726547266472674726847269472704727147272472734727447275472764727747278472794728047281472824728347284472854728647287472884728947290472914729247293472944729547296472974729847299473004730147302473034730447305473064730747308473094731047311473124731347314473154731647317473184731947320473214732247323473244732547326473274732847329473304733147332473334733447335473364733747338473394734047341473424734347344473454734647347473484734947350473514735247353473544735547356473574735847359473604736147362473634736447365473664736747368473694737047371473724737347374473754737647377473784737947380473814738247383473844738547386473874738847389473904739147392473934739447395473964739747398473994740047401474024740347404474054740647407474084740947410474114741247413474144741547416474174741847419474204742147422474234742447425474264742747428474294743047431474324743347434474354743647437474384743947440474414744247443474444744547446474474744847449474504745147452474534745447455474564745747458474594746047461474624746347464474654746647467474684746947470474714747247473474744747547476474774747847479474804748147482474834748447485474864748747488474894749047491474924749347494474954749647497474984749947500475014750247503475044750547506475074750847509475104751147512475134751447515475164751747518475194752047521475224752347524475254752647527475284752947530475314753247533475344753547536475374753847539475404754147542475434754447545475464754747548475494755047551475524755347554475554755647557475584755947560475614756247563475644756547566475674756847569475704757147572475734757447575475764757747578475794758047581475824758347584475854758647587475884758947590475914759247593475944759547596475974759847599476004760147602476034760447605476064760747608476094761047611476124761347614476154761647617476184761947620476214762247623476244762547626476274762847629476304763147632476334763447635476364763747638476394764047641476424764347644476454764647647476484764947650476514765247653476544765547656476574765847659476604766147662476634766447665476664766747668476694767047671476724767347674476754767647677476784767947680476814768247683476844768547686476874768847689476904769147692476934769447695476964769747698476994770047701477024770347704477054770647707477084770947710477114771247713477144771547716477174771847719477204772147722477234772447725477264772747728477294773047731477324773347734477354773647737477384773947740477414774247743477444774547746477474774847749477504775147752477534775447755477564775747758477594776047761477624776347764477654776647767477684776947770477714777247773477744777547776477774777847779477804778147782477834778447785477864778747788477894779047791477924779347794477954779647797477984779947800478014780247803478044780547806478074780847809478104781147812478134781447815478164781747818478194782047821478224782347824478254782647827478284782947830478314783247833478344783547836478374783847839478404784147842478434784447845478464784747848478494785047851478524785347854478554785647857478584785947860478614786247863478644786547866478674786847869478704787147872478734787447875478764787747878478794788047881478824788347884478854788647887478884788947890478914789247893478944789547896478974789847899479004790147902479034790447905479064790747908479094791047911479124791347914479154791647917479184791947920479214792247923479244792547926479274792847929479304793147932479334793447935479364793747938479394794047941479424794347944479454794647947479484794947950479514795247953479544795547956479574795847959479604796147962479634796447965479664796747968479694797047971479724797347974479754797647977479784797947980479814798247983479844798547986479874798847989479904799147992479934799447995479964799747998479994800048001480024800348004480054800648007480084800948010480114801248013480144801548016480174801848019480204802148022480234802448025480264802748028480294803048031480324803348034480354803648037480384803948040480414804248043480444804548046480474804848049480504805148052480534805448055480564805748058480594806048061480624806348064480654806648067480684806948070480714807248073480744807548076480774807848079480804808148082480834808448085480864808748088480894809048091480924809348094480954809648097480984809948100481014810248103481044810548106481074810848109481104811148112481134811448115481164811748118481194812048121481224812348124481254812648127481284812948130481314813248133481344813548136481374813848139481404814148142481434814448145481464814748148481494815048151481524815348154481554815648157481584815948160481614816248163481644816548166481674816848169481704817148172481734817448175481764817748178481794818048181481824818348184481854818648187481884818948190481914819248193481944819548196481974819848199482004820148202482034820448205482064820748208482094821048211482124821348214482154821648217482184821948220482214822248223482244822548226482274822848229482304823148232482334823448235482364823748238482394824048241482424824348244482454824648247482484824948250482514825248253482544825548256482574825848259482604826148262482634826448265482664826748268482694827048271482724827348274482754827648277482784827948280482814828248283482844828548286482874828848289482904829148292482934829448295482964829748298482994830048301483024830348304483054830648307483084830948310483114831248313483144831548316483174831848319483204832148322483234832448325483264832748328483294833048331483324833348334483354833648337483384833948340483414834248343483444834548346483474834848349483504835148352483534835448355483564835748358483594836048361483624836348364483654836648367483684836948370483714837248373483744837548376483774837848379483804838148382483834838448385483864838748388483894839048391483924839348394483954839648397483984839948400484014840248403484044840548406484074840848409484104841148412484134841448415484164841748418484194842048421484224842348424484254842648427484284842948430484314843248433484344843548436484374843848439484404844148442484434844448445484464844748448484494845048451484524845348454484554845648457484584845948460484614846248463484644846548466484674846848469484704847148472484734847448475484764847748478484794848048481484824848348484484854848648487484884848948490484914849248493484944849548496484974849848499485004850148502485034850448505485064850748508485094851048511485124851348514485154851648517485184851948520485214852248523485244852548526485274852848529485304853148532485334853448535485364853748538485394854048541485424854348544485454854648547485484854948550485514855248553485544855548556485574855848559485604856148562485634856448565485664856748568485694857048571485724857348574485754857648577485784857948580485814858248583485844858548586485874858848589485904859148592485934859448595485964859748598485994860048601486024860348604486054860648607486084860948610486114861248613486144861548616486174861848619486204862148622486234862448625486264862748628486294863048631486324863348634486354863648637486384863948640486414864248643486444864548646486474864848649486504865148652486534865448655486564865748658486594866048661486624866348664486654866648667486684866948670486714867248673486744867548676486774867848679486804868148682486834868448685486864868748688486894869048691486924869348694486954869648697486984869948700487014870248703487044870548706487074870848709487104871148712487134871448715487164871748718487194872048721487224872348724487254872648727487284872948730487314873248733487344873548736487374873848739487404874148742487434874448745487464874748748487494875048751487524875348754487554875648757487584875948760487614876248763487644876548766487674876848769487704877148772487734877448775487764877748778487794878048781487824878348784487854878648787487884878948790487914879248793487944879548796487974879848799488004880148802488034880448805488064880748808488094881048811488124881348814488154881648817488184881948820488214882248823488244882548826488274882848829488304883148832488334883448835488364883748838488394884048841488424884348844488454884648847488484884948850488514885248853488544885548856488574885848859488604886148862488634886448865488664886748868488694887048871488724887348874488754887648877488784887948880488814888248883488844888548886488874888848889488904889148892488934889448895488964889748898488994890048901489024890348904489054890648907489084890948910489114891248913489144891548916489174891848919489204892148922489234892448925489264892748928489294893048931489324893348934489354893648937489384893948940489414894248943489444894548946489474894848949489504895148952489534895448955489564895748958489594896048961489624896348964489654896648967489684896948970489714897248973489744897548976489774897848979489804898148982489834898448985489864898748988489894899048991489924899348994489954899648997489984899949000490014900249003490044900549006490074900849009490104901149012490134901449015490164901749018490194902049021490224902349024490254902649027490284902949030490314903249033490344903549036490374903849039490404904149042490434904449045490464904749048490494905049051490524905349054490554905649057490584905949060490614906249063490644906549066490674906849069490704907149072490734907449075490764907749078490794908049081490824908349084490854908649087490884908949090490914909249093490944909549096490974909849099491004910149102491034910449105491064910749108491094911049111491124911349114491154911649117491184911949120491214912249123491244912549126491274912849129491304913149132491334913449135491364913749138491394914049141491424914349144491454914649147491484914949150491514915249153491544915549156491574915849159491604916149162491634916449165491664916749168491694917049171491724917349174491754917649177491784917949180491814918249183491844918549186491874918849189491904919149192491934919449195491964919749198491994920049201492024920349204492054920649207492084920949210492114921249213492144921549216492174921849219492204922149222492234922449225492264922749228492294923049231492324923349234492354923649237492384923949240492414924249243492444924549246492474924849249492504925149252492534925449255492564925749258492594926049261492624926349264492654926649267492684926949270492714927249273492744927549276492774927849279492804928149282492834928449285492864928749288492894929049291492924929349294492954929649297492984929949300493014930249303493044930549306493074930849309493104931149312493134931449315493164931749318493194932049321493224932349324493254932649327493284932949330493314933249333493344933549336493374933849339493404934149342493434934449345493464934749348493494935049351493524935349354493554935649357493584935949360493614936249363493644936549366493674936849369493704937149372493734937449375493764937749378493794938049381493824938349384493854938649387493884938949390493914939249393493944939549396493974939849399494004940149402494034940449405494064940749408494094941049411494124941349414494154941649417494184941949420494214942249423494244942549426494274942849429494304943149432494334943449435494364943749438494394944049441494424944349444494454944649447494484944949450494514945249453494544945549456494574945849459494604946149462494634946449465494664946749468494694947049471494724947349474494754947649477494784947949480494814948249483494844948549486494874948849489494904949149492494934949449495494964949749498494994950049501495024950349504495054950649507495084950949510495114951249513495144951549516495174951849519495204952149522495234952449525495264952749528495294953049531495324953349534495354953649537495384953949540495414954249543495444954549546495474954849549495504955149552495534955449555495564955749558495594956049561495624956349564495654956649567495684956949570495714957249573495744957549576495774957849579495804958149582495834958449585495864958749588495894959049591495924959349594495954959649597495984959949600496014960249603496044960549606496074960849609496104961149612496134961449615496164961749618496194962049621496224962349624496254962649627496284962949630496314963249633496344963549636496374963849639496404964149642496434964449645496464964749648496494965049651496524965349654496554965649657496584965949660496614966249663496644966549666496674966849669496704967149672496734967449675496764967749678496794968049681496824968349684496854968649687496884968949690496914969249693496944969549696496974969849699497004970149702497034970449705497064970749708497094971049711497124971349714497154971649717497184971949720497214972249723497244972549726497274972849729497304973149732497334973449735497364973749738497394974049741497424974349744497454974649747497484974949750497514975249753497544975549756497574975849759497604976149762497634976449765497664976749768497694977049771497724977349774497754977649777497784977949780497814978249783497844978549786497874978849789497904979149792497934979449795497964979749798497994980049801498024980349804498054980649807498084980949810498114981249813498144981549816498174981849819498204982149822498234982449825498264982749828498294983049831498324983349834498354983649837498384983949840498414984249843498444984549846498474984849849498504985149852498534985449855498564985749858498594986049861498624986349864498654986649867498684986949870498714987249873498744987549876498774987849879498804988149882498834988449885498864988749888498894989049891498924989349894498954989649897498984989949900499014990249903499044990549906499074990849909499104991149912499134991449915499164991749918499194992049921499224992349924499254992649927499284992949930499314993249933499344993549936499374993849939499404994149942499434994449945499464994749948499494995049951499524995349954499554995649957499584995949960499614996249963499644996549966499674996849969499704997149972499734997449975499764997749978499794998049981499824998349984499854998649987499884998949990499914999249993499944999549996499974999849999500005000150002500035000450005500065000750008500095001050011500125001350014500155001650017500185001950020500215002250023500245002550026500275002850029500305003150032500335003450035500365003750038500395004050041500425004350044500455004650047500485004950050500515005250053500545005550056500575005850059500605006150062500635006450065500665006750068500695007050071500725007350074500755007650077500785007950080500815008250083500845008550086500875008850089500905009150092500935009450095500965009750098500995010050101501025010350104501055010650107501085010950110501115011250113501145011550116501175011850119501205012150122501235012450125501265012750128501295013050131501325013350134501355013650137501385013950140501415014250143501445014550146501475014850149501505015150152501535015450155501565015750158501595016050161501625016350164501655016650167501685016950170501715017250173501745017550176501775017850179501805018150182501835018450185501865018750188501895019050191501925019350194501955019650197501985019950200502015020250203502045020550206502075020850209502105021150212502135021450215502165021750218502195022050221502225022350224502255022650227502285022950230502315023250233502345023550236502375023850239502405024150242502435024450245502465024750248502495025050251502525025350254502555025650257502585025950260502615026250263502645026550266502675026850269502705027150272502735027450275502765027750278502795028050281502825028350284502855028650287502885028950290502915029250293502945029550296502975029850299503005030150302503035030450305503065030750308503095031050311503125031350314503155031650317503185031950320503215032250323503245032550326503275032850329503305033150332503335033450335503365033750338503395034050341503425034350344503455034650347503485034950350503515035250353503545035550356503575035850359503605036150362503635036450365503665036750368503695037050371503725037350374503755037650377503785037950380503815038250383503845038550386503875038850389503905039150392503935039450395503965039750398503995040050401504025040350404504055040650407504085040950410504115041250413504145041550416504175041850419504205042150422504235042450425504265042750428504295043050431504325043350434504355043650437504385043950440504415044250443504445044550446504475044850449504505045150452504535045450455504565045750458504595046050461504625046350464504655046650467504685046950470504715047250473504745047550476504775047850479504805048150482504835048450485504865048750488504895049050491504925049350494504955049650497504985049950500505015050250503505045050550506505075050850509505105051150512505135051450515505165051750518505195052050521505225052350524505255052650527505285052950530505315053250533505345053550536505375053850539505405054150542505435054450545505465054750548505495055050551505525055350554505555055650557505585055950560505615056250563505645056550566505675056850569505705057150572505735057450575505765057750578505795058050581505825058350584505855058650587505885058950590505915059250593505945059550596505975059850599506005060150602506035060450605506065060750608506095061050611506125061350614506155061650617506185061950620506215062250623506245062550626506275062850629506305063150632506335063450635506365063750638506395064050641506425064350644506455064650647506485064950650506515065250653506545065550656506575065850659506605066150662506635066450665506665066750668506695067050671506725067350674506755067650677506785067950680506815068250683506845068550686506875068850689506905069150692506935069450695506965069750698506995070050701507025070350704507055070650707507085070950710507115071250713507145071550716507175071850719507205072150722507235072450725507265072750728507295073050731507325073350734507355073650737507385073950740507415074250743507445074550746507475074850749507505075150752507535075450755507565075750758507595076050761507625076350764507655076650767507685076950770507715077250773507745077550776507775077850779507805078150782507835078450785507865078750788507895079050791507925079350794507955079650797507985079950800508015080250803508045080550806508075080850809508105081150812508135081450815508165081750818508195082050821508225082350824508255082650827508285082950830508315083250833508345083550836508375083850839508405084150842508435084450845508465084750848508495085050851508525085350854508555085650857508585085950860508615086250863508645086550866508675086850869508705087150872508735087450875508765087750878508795088050881508825088350884508855088650887508885088950890508915089250893508945089550896508975089850899509005090150902509035090450905509065090750908509095091050911509125091350914509155091650917509185091950920509215092250923509245092550926509275092850929509305093150932509335093450935509365093750938509395094050941509425094350944509455094650947509485094950950509515095250953509545095550956509575095850959509605096150962509635096450965509665096750968509695097050971509725097350974509755097650977509785097950980509815098250983509845098550986509875098850989509905099150992509935099450995509965099750998509995100051001510025100351004510055100651007510085100951010510115101251013510145101551016510175101851019510205102151022510235102451025510265102751028510295103051031510325103351034510355103651037510385103951040510415104251043510445104551046510475104851049510505105151052510535105451055510565105751058510595106051061510625106351064510655106651067510685106951070510715107251073510745107551076510775107851079510805108151082510835108451085510865108751088510895109051091510925109351094510955109651097510985109951100511015110251103511045110551106511075110851109511105111151112511135111451115511165111751118511195112051121511225112351124511255112651127511285112951130511315113251133511345113551136511375113851139511405114151142511435114451145511465114751148511495115051151511525115351154511555115651157511585115951160511615116251163511645116551166511675116851169511705117151172511735117451175511765117751178511795118051181511825118351184511855118651187511885118951190511915119251193511945119551196511975119851199512005120151202512035120451205512065120751208512095121051211512125121351214512155121651217512185121951220512215122251223512245122551226512275122851229512305123151232512335123451235512365123751238512395124051241512425124351244512455124651247512485124951250512515125251253512545125551256512575125851259512605126151262512635126451265512665126751268512695127051271512725127351274512755127651277512785127951280512815128251283512845128551286512875128851289512905129151292512935129451295512965129751298512995130051301513025130351304513055130651307513085130951310513115131251313513145131551316513175131851319513205132151322513235132451325513265132751328513295133051331513325133351334513355133651337513385133951340513415134251343513445134551346513475134851349513505135151352513535135451355513565135751358513595136051361513625136351364513655136651367513685136951370513715137251373513745137551376513775137851379513805138151382513835138451385513865138751388513895139051391513925139351394513955139651397513985139951400514015140251403514045140551406514075140851409514105141151412514135141451415514165141751418514195142051421514225142351424514255142651427514285142951430514315143251433514345143551436514375143851439514405144151442514435144451445514465144751448514495145051451514525145351454514555145651457514585145951460514615146251463514645146551466514675146851469514705147151472514735147451475514765147751478514795148051481514825148351484514855148651487514885148951490514915149251493514945149551496514975149851499515005150151502515035150451505515065150751508515095151051511515125151351514515155151651517515185151951520515215152251523515245152551526515275152851529515305153151532515335153451535515365153751538515395154051541515425154351544515455154651547515485154951550515515155251553515545155551556515575155851559515605156151562515635156451565515665156751568515695157051571515725157351574515755157651577515785157951580515815158251583515845158551586515875158851589515905159151592515935159451595515965159751598515995160051601516025160351604516055160651607516085160951610516115161251613516145161551616516175161851619516205162151622516235162451625516265162751628516295163051631516325163351634516355163651637516385163951640516415164251643516445164551646516475164851649516505165151652516535165451655516565165751658516595166051661516625166351664516655166651667516685166951670516715167251673516745167551676516775167851679516805168151682516835168451685516865168751688516895169051691516925169351694516955169651697516985169951700517015170251703517045170551706517075170851709517105171151712517135171451715517165171751718517195172051721517225172351724517255172651727517285172951730517315173251733517345173551736517375173851739517405174151742517435174451745517465174751748517495175051751517525175351754517555175651757517585175951760517615176251763517645176551766517675176851769517705177151772517735177451775517765177751778517795178051781517825178351784517855178651787517885178951790517915179251793517945179551796517975179851799518005180151802518035180451805518065180751808518095181051811518125181351814518155181651817518185181951820518215182251823518245182551826518275182851829518305183151832518335183451835518365183751838518395184051841518425184351844518455184651847518485184951850518515185251853518545185551856518575185851859518605186151862518635186451865518665186751868518695187051871518725187351874518755187651877518785187951880518815188251883518845188551886518875188851889518905189151892518935189451895518965189751898518995190051901519025190351904519055190651907519085190951910519115191251913519145191551916519175191851919519205192151922519235192451925519265192751928519295193051931519325193351934519355193651937519385193951940519415194251943519445194551946519475194851949519505195151952519535195451955519565195751958519595196051961519625196351964519655196651967519685196951970519715197251973519745197551976519775197851979519805198151982519835198451985519865198751988519895199051991519925199351994519955199651997519985199952000520015200252003520045200552006520075200852009520105201152012520135201452015520165201752018520195202052021520225202352024520255202652027520285202952030520315203252033520345203552036520375203852039520405204152042520435204452045520465204752048520495205052051520525205352054520555205652057520585205952060520615206252063520645206552066520675206852069520705207152072520735207452075520765207752078520795208052081520825208352084520855208652087520885208952090520915209252093520945209552096520975209852099521005210152102521035210452105521065210752108521095211052111521125211352114521155211652117521185211952120521215212252123521245212552126521275212852129521305213152132521335213452135521365213752138521395214052141521425214352144521455214652147521485214952150521515215252153521545215552156521575215852159521605216152162521635216452165521665216752168521695217052171521725217352174521755217652177521785217952180521815218252183521845218552186521875218852189521905219152192521935219452195521965219752198521995220052201522025220352204522055220652207522085220952210522115221252213522145221552216522175221852219522205222152222522235222452225522265222752228522295223052231522325223352234522355223652237522385223952240522415224252243522445224552246522475224852249522505225152252522535225452255522565225752258522595226052261522625226352264522655226652267522685226952270522715227252273522745227552276522775227852279522805228152282522835228452285522865228752288522895229052291522925229352294522955229652297522985229952300523015230252303523045230552306523075230852309523105231152312523135231452315523165231752318523195232052321523225232352324523255232652327523285232952330523315233252333523345233552336523375233852339523405234152342523435234452345523465234752348523495235052351523525235352354523555235652357523585235952360523615236252363523645236552366523675236852369523705237152372523735237452375523765237752378523795238052381523825238352384523855238652387523885238952390523915239252393523945239552396523975239852399524005240152402524035240452405524065240752408524095241052411524125241352414524155241652417524185241952420524215242252423524245242552426524275242852429524305243152432524335243452435524365243752438524395244052441524425244352444524455244652447524485244952450524515245252453524545245552456524575245852459524605246152462524635246452465524665246752468524695247052471524725247352474524755247652477524785247952480524815248252483524845248552486524875248852489524905249152492524935249452495524965249752498524995250052501525025250352504525055250652507525085250952510525115251252513525145251552516525175251852519525205252152522525235252452525525265252752528525295253052531525325253352534525355253652537525385253952540525415254252543525445254552546525475254852549525505255152552525535255452555525565255752558525595256052561525625256352564525655256652567525685256952570525715257252573525745257552576525775257852579525805258152582525835258452585525865258752588525895259052591525925259352594525955259652597525985259952600526015260252603526045260552606526075260852609526105261152612526135261452615526165261752618526195262052621526225262352624526255262652627526285262952630526315263252633526345263552636526375263852639526405264152642526435264452645526465264752648526495265052651526525265352654526555265652657526585265952660526615266252663526645266552666526675266852669526705267152672526735267452675526765267752678526795268052681526825268352684526855268652687526885268952690526915269252693526945269552696526975269852699527005270152702527035270452705527065270752708527095271052711527125271352714527155271652717527185271952720527215272252723527245272552726527275272852729527305273152732527335273452735527365273752738527395274052741527425274352744527455274652747527485274952750527515275252753527545275552756527575275852759527605276152762527635276452765527665276752768527695277052771527725277352774527755277652777527785277952780527815278252783527845278552786527875278852789527905279152792527935279452795527965279752798527995280052801528025280352804528055280652807528085280952810528115281252813528145281552816528175281852819528205282152822528235282452825528265282752828528295283052831528325283352834528355283652837528385283952840528415284252843528445284552846528475284852849528505285152852528535285452855528565285752858528595286052861528625286352864528655286652867528685286952870528715287252873528745287552876528775287852879528805288152882528835288452885528865288752888528895289052891528925289352894528955289652897528985289952900529015290252903529045290552906529075290852909529105291152912529135291452915529165291752918529195292052921529225292352924529255292652927529285292952930529315293252933529345293552936529375293852939529405294152942529435294452945529465294752948529495295052951529525295352954529555295652957529585295952960529615296252963529645296552966529675296852969529705297152972529735297452975529765297752978529795298052981529825298352984529855298652987529885298952990529915299252993529945299552996529975299852999530005300153002530035300453005530065300753008530095301053011530125301353014530155301653017530185301953020530215302253023530245302553026530275302853029530305303153032530335303453035530365303753038530395304053041530425304353044530455304653047530485304953050530515305253053530545305553056530575305853059530605306153062530635306453065530665306753068530695307053071530725307353074530755307653077530785307953080530815308253083530845308553086530875308853089530905309153092530935309453095530965309753098530995310053101531025310353104531055310653107531085310953110531115311253113531145311553116531175311853119531205312153122531235312453125531265312753128531295313053131531325313353134531355313653137531385313953140531415314253143531445314553146531475314853149531505315153152531535315453155531565315753158531595316053161531625316353164531655316653167531685316953170531715317253173531745317553176531775317853179531805318153182531835318453185531865318753188531895319053191531925319353194531955319653197531985319953200532015320253203532045320553206532075320853209532105321153212532135321453215532165321753218532195322053221532225322353224532255322653227532285322953230532315323253233532345323553236532375323853239532405324153242532435324453245532465324753248532495325053251532525325353254532555325653257532585325953260532615326253263532645326553266532675326853269532705327153272532735327453275532765327753278532795328053281532825328353284532855328653287532885328953290532915329253293532945329553296532975329853299533005330153302533035330453305533065330753308533095331053311533125331353314533155331653317533185331953320533215332253323533245332553326533275332853329533305333153332533335333453335533365333753338533395334053341533425334353344533455334653347533485334953350533515335253353533545335553356533575335853359533605336153362533635336453365533665336753368533695337053371533725337353374533755337653377533785337953380533815338253383533845338553386533875338853389533905339153392533935339453395533965339753398533995340053401534025340353404534055340653407534085340953410534115341253413534145341553416534175341853419534205342153422534235342453425534265342753428534295343053431534325343353434534355343653437534385343953440534415344253443534445344553446534475344853449534505345153452534535345453455534565345753458534595346053461534625346353464534655346653467534685346953470534715347253473534745347553476534775347853479534805348153482534835348453485534865348753488534895349053491534925349353494534955349653497534985349953500535015350253503535045350553506535075350853509535105351153512535135351453515535165351753518535195352053521535225352353524535255352653527535285352953530535315353253533535345353553536535375353853539535405354153542535435354453545535465354753548535495355053551535525355353554535555355653557535585355953560535615356253563535645356553566535675356853569535705357153572535735357453575535765357753578535795358053581535825358353584535855358653587535885358953590535915359253593535945359553596535975359853599536005360153602536035360453605536065360753608536095361053611536125361353614536155361653617536185361953620536215362253623536245362553626536275362853629536305363153632536335363453635536365363753638536395364053641536425364353644536455364653647536485364953650536515365253653536545365553656536575365853659536605366153662536635366453665536665366753668536695367053671536725367353674536755367653677536785367953680536815368253683536845368553686536875368853689536905369153692536935369453695536965369753698536995370053701537025370353704537055370653707537085370953710537115371253713537145371553716537175371853719537205372153722537235372453725537265372753728537295373053731537325373353734537355373653737537385373953740537415374253743537445374553746537475374853749537505375153752537535375453755537565375753758537595376053761537625376353764537655376653767537685376953770537715377253773537745377553776537775377853779537805378153782537835378453785537865378753788537895379053791537925379353794537955379653797537985379953800538015380253803538045380553806538075380853809538105381153812538135381453815538165381753818538195382053821538225382353824538255382653827538285382953830538315383253833538345383553836538375383853839538405384153842538435384453845538465384753848538495385053851538525385353854538555385653857538585385953860538615386253863538645386553866538675386853869538705387153872538735387453875538765387753878538795388053881538825388353884538855388653887538885388953890538915389253893538945389553896538975389853899539005390153902539035390453905539065390753908539095391053911539125391353914539155391653917539185391953920539215392253923539245392553926539275392853929539305393153932539335393453935539365393753938539395394053941539425394353944539455394653947539485394953950539515395253953539545395553956539575395853959539605396153962539635396453965539665396753968539695397053971539725397353974539755397653977539785397953980539815398253983539845398553986539875398853989539905399153992539935399453995539965399753998539995400054001540025400354004540055400654007540085400954010540115401254013540145401554016540175401854019540205402154022540235402454025540265402754028540295403054031540325403354034540355403654037540385403954040540415404254043540445404554046540475404854049540505405154052540535405454055540565405754058540595406054061540625406354064540655406654067540685406954070540715407254073540745407554076540775407854079540805408154082540835408454085540865408754088540895409054091540925409354094540955409654097540985409954100541015410254103541045410554106541075410854109541105411154112541135411454115541165411754118541195412054121541225412354124541255412654127541285412954130541315413254133541345413554136541375413854139541405414154142541435414454145541465414754148541495415054151541525415354154541555415654157541585415954160541615416254163541645416554166541675416854169541705417154172541735417454175541765417754178541795418054181541825418354184541855418654187541885418954190541915419254193541945419554196541975419854199542005420154202542035420454205542065420754208542095421054211542125421354214542155421654217542185421954220542215422254223542245422554226542275422854229542305423154232542335423454235542365423754238542395424054241542425424354244542455424654247542485424954250542515425254253542545425554256542575425854259542605426154262542635426454265542665426754268542695427054271542725427354274542755427654277542785427954280542815428254283542845428554286542875428854289542905429154292542935429454295542965429754298542995430054301543025430354304543055430654307543085430954310543115431254313543145431554316543175431854319543205432154322543235432454325543265432754328543295433054331543325433354334543355433654337543385433954340543415434254343543445434554346543475434854349543505435154352543535435454355543565435754358543595436054361543625436354364543655436654367543685436954370543715437254373543745437554376543775437854379543805438154382543835438454385543865438754388543895439054391543925439354394543955439654397543985439954400544015440254403544045440554406544075440854409544105441154412544135441454415544165441754418544195442054421544225442354424544255442654427544285442954430544315443254433544345443554436544375443854439544405444154442544435444454445544465444754448544495445054451544525445354454544555445654457544585445954460544615446254463544645446554466544675446854469544705447154472544735447454475544765447754478544795448054481544825448354484544855448654487544885448954490544915449254493544945449554496544975449854499545005450154502545035450454505545065450754508545095451054511545125451354514545155451654517545185451954520545215452254523545245452554526545275452854529545305453154532545335453454535545365453754538545395454054541545425454354544545455454654547545485454954550545515455254553545545455554556545575455854559545605456154562545635456454565545665456754568545695457054571545725457354574545755457654577545785457954580545815458254583545845458554586545875458854589545905459154592545935459454595545965459754598545995460054601546025460354604546055460654607546085460954610546115461254613546145461554616546175461854619546205462154622546235462454625546265462754628546295463054631546325463354634546355463654637546385463954640546415464254643546445464554646546475464854649546505465154652546535465454655546565465754658546595466054661546625466354664546655466654667546685466954670546715467254673546745467554676546775467854679546805468154682546835468454685546865468754688546895469054691546925469354694546955469654697546985469954700547015470254703547045470554706547075470854709547105471154712547135471454715547165471754718547195472054721547225472354724547255472654727547285472954730547315473254733547345473554736547375473854739547405474154742547435474454745547465474754748547495475054751547525475354754547555475654757547585475954760547615476254763547645476554766547675476854769547705477154772547735477454775547765477754778547795478054781547825478354784547855478654787547885478954790547915479254793547945479554796547975479854799548005480154802548035480454805548065480754808548095481054811548125481354814548155481654817548185481954820548215482254823548245482554826548275482854829548305483154832548335483454835548365483754838548395484054841548425484354844548455484654847548485484954850548515485254853548545485554856548575485854859548605486154862548635486454865548665486754868548695487054871548725487354874548755487654877548785487954880548815488254883548845488554886548875488854889548905489154892548935489454895548965489754898548995490054901549025490354904549055490654907549085490954910549115491254913549145491554916549175491854919549205492154922549235492454925549265492754928549295493054931549325493354934549355493654937549385493954940549415494254943549445494554946549475494854949549505495154952549535495454955549565495754958549595496054961549625496354964549655496654967549685496954970549715497254973549745497554976549775497854979549805498154982549835498454985549865498754988549895499054991549925499354994549955499654997549985499955000550015500255003550045500555006550075500855009550105501155012550135501455015550165501755018550195502055021550225502355024550255502655027550285502955030550315503255033550345503555036550375503855039550405504155042550435504455045550465504755048550495505055051550525505355054550555505655057550585505955060550615506255063550645506555066550675506855069550705507155072550735507455075550765507755078550795508055081550825508355084550855508655087550885508955090550915509255093550945509555096550975509855099551005510155102551035510455105551065510755108551095511055111551125511355114551155511655117551185511955120551215512255123551245512555126551275512855129551305513155132551335513455135551365513755138551395514055141551425514355144551455514655147551485514955150551515515255153551545515555156551575515855159551605516155162551635516455165551665516755168551695517055171551725517355174551755517655177551785517955180551815518255183551845518555186551875518855189551905519155192551935519455195551965519755198551995520055201552025520355204552055520655207552085520955210552115521255213552145521555216552175521855219552205522155222552235522455225552265522755228552295523055231552325523355234552355523655237552385523955240552415524255243552445524555246552475524855249552505525155252552535525455255552565525755258552595526055261552625526355264552655526655267552685526955270552715527255273552745527555276552775527855279552805528155282552835528455285552865528755288552895529055291552925529355294552955529655297552985529955300553015530255303553045530555306553075530855309553105531155312553135531455315553165531755318553195532055321553225532355324553255532655327553285532955330553315533255333553345533555336553375533855339553405534155342553435534455345553465534755348553495535055351553525535355354553555535655357553585535955360553615536255363553645536555366553675536855369553705537155372553735537455375553765537755378553795538055381553825538355384553855538655387553885538955390553915539255393553945539555396553975539855399554005540155402554035540455405554065540755408554095541055411554125541355414554155541655417554185541955420554215542255423554245542555426554275542855429554305543155432554335543455435554365543755438554395544055441554425544355444554455544655447554485544955450554515545255453554545545555456554575545855459554605546155462554635546455465554665546755468554695547055471554725547355474554755547655477554785547955480554815548255483554845548555486554875548855489554905549155492554935549455495554965549755498554995550055501555025550355504555055550655507555085550955510555115551255513555145551555516555175551855519555205552155522555235552455525555265552755528555295553055531555325553355534555355553655537555385553955540555415554255543555445554555546555475554855549555505555155552555535555455555555565555755558555595556055561555625556355564555655556655567555685556955570555715557255573555745557555576555775557855579555805558155582555835558455585555865558755588555895559055591555925559355594555955559655597555985559955600556015560255603556045560555606556075560855609556105561155612556135561455615556165561755618556195562055621556225562355624556255562655627556285562955630556315563255633556345563555636556375563855639556405564155642556435564455645556465564755648556495565055651556525565355654556555565655657556585565955660556615566255663556645566555666556675566855669556705567155672556735567455675556765567755678556795568055681556825568355684556855568655687556885568955690556915569255693556945569555696556975569855699557005570155702557035570455705557065570755708557095571055711557125571355714557155571655717557185571955720557215572255723557245572555726557275572855729557305573155732557335573455735557365573755738557395574055741557425574355744557455574655747557485574955750557515575255753557545575555756557575575855759557605576155762557635576455765557665576755768557695577055771557725577355774557755577655777557785577955780557815578255783557845578555786557875578855789557905579155792557935579455795557965579755798557995580055801558025580355804558055580655807558085580955810558115581255813558145581555816558175581855819558205582155822558235582455825558265582755828558295583055831558325583355834558355583655837558385583955840558415584255843558445584555846558475584855849558505585155852558535585455855558565585755858558595586055861558625586355864558655586655867558685586955870558715587255873558745587555876558775587855879558805588155882558835588455885558865588755888558895589055891558925589355894558955589655897558985589955900559015590255903559045590555906559075590855909559105591155912559135591455915559165591755918559195592055921559225592355924559255592655927559285592955930559315593255933559345593555936559375593855939559405594155942559435594455945559465594755948559495595055951559525595355954559555595655957559585595955960559615596255963559645596555966559675596855969559705597155972559735597455975559765597755978559795598055981559825598355984559855598655987559885598955990559915599255993559945599555996559975599855999560005600156002560035600456005560065600756008560095601056011560125601356014560155601656017560185601956020560215602256023560245602556026560275602856029560305603156032560335603456035560365603756038560395604056041560425604356044560455604656047560485604956050560515605256053560545605556056560575605856059560605606156062560635606456065560665606756068560695607056071560725607356074560755607656077560785607956080560815608256083560845608556086560875608856089560905609156092560935609456095560965609756098560995610056101561025610356104561055610656107561085610956110561115611256113561145611556116561175611856119561205612156122561235612456125561265612756128561295613056131561325613356134561355613656137561385613956140561415614256143561445614556146561475614856149561505615156152561535615456155561565615756158561595616056161561625616356164561655616656167561685616956170561715617256173561745617556176561775617856179561805618156182561835618456185561865618756188561895619056191561925619356194561955619656197561985619956200562015620256203562045620556206562075620856209562105621156212562135621456215562165621756218562195622056221562225622356224562255622656227562285622956230562315623256233562345623556236562375623856239562405624156242562435624456245562465624756248562495625056251562525625356254562555625656257562585625956260562615626256263562645626556266562675626856269562705627156272562735627456275562765627756278562795628056281562825628356284562855628656287562885628956290562915629256293562945629556296562975629856299563005630156302563035630456305563065630756308563095631056311563125631356314563155631656317563185631956320563215632256323563245632556326563275632856329563305633156332563335633456335563365633756338563395634056341563425634356344563455634656347563485634956350563515635256353563545635556356563575635856359563605636156362563635636456365563665636756368563695637056371563725637356374563755637656377563785637956380563815638256383563845638556386563875638856389563905639156392563935639456395563965639756398563995640056401564025640356404564055640656407564085640956410564115641256413564145641556416564175641856419564205642156422564235642456425564265642756428564295643056431564325643356434564355643656437564385643956440564415644256443564445644556446564475644856449564505645156452564535645456455564565645756458564595646056461564625646356464564655646656467564685646956470564715647256473564745647556476564775647856479564805648156482564835648456485564865648756488564895649056491564925649356494564955649656497564985649956500565015650256503565045650556506565075650856509565105651156512565135651456515565165651756518565195652056521565225652356524565255652656527565285652956530565315653256533565345653556536565375653856539565405654156542565435654456545565465654756548565495655056551565525655356554565555655656557565585655956560565615656256563565645656556566565675656856569565705657156572565735657456575565765657756578565795658056581565825658356584565855658656587565885658956590565915659256593565945659556596565975659856599566005660156602566035660456605566065660756608566095661056611566125661356614566155661656617566185661956620566215662256623566245662556626566275662856629566305663156632566335663456635566365663756638566395664056641566425664356644566455664656647566485664956650566515665256653566545665556656566575665856659566605666156662566635666456665566665666756668566695667056671566725667356674566755667656677566785667956680566815668256683566845668556686566875668856689566905669156692566935669456695566965669756698566995670056701567025670356704567055670656707567085670956710567115671256713567145671556716567175671856719567205672156722567235672456725567265672756728567295673056731567325673356734567355673656737567385673956740567415674256743567445674556746567475674856749567505675156752567535675456755567565675756758567595676056761567625676356764567655676656767567685676956770567715677256773567745677556776567775677856779567805678156782567835678456785567865678756788567895679056791567925679356794567955679656797567985679956800568015680256803568045680556806568075680856809568105681156812568135681456815568165681756818568195682056821568225682356824568255682656827568285682956830568315683256833568345683556836568375683856839568405684156842568435684456845568465684756848568495685056851568525685356854568555685656857568585685956860568615686256863568645686556866568675686856869568705687156872568735687456875568765687756878568795688056881568825688356884568855688656887568885688956890568915689256893568945689556896568975689856899569005690156902569035690456905569065690756908569095691056911569125691356914569155691656917569185691956920569215692256923569245692556926569275692856929569305693156932569335693456935569365693756938569395694056941569425694356944569455694656947569485694956950569515695256953569545695556956569575695856959569605696156962569635696456965569665696756968569695697056971569725697356974569755697656977569785697956980569815698256983569845698556986569875698856989569905699156992569935699456995569965699756998569995700057001570025700357004570055700657007570085700957010570115701257013570145701557016570175701857019570205702157022570235702457025570265702757028570295703057031570325703357034570355703657037570385703957040570415704257043570445704557046570475704857049570505705157052570535705457055570565705757058570595706057061570625706357064570655706657067570685706957070570715707257073570745707557076570775707857079570805708157082570835708457085570865708757088570895709057091570925709357094570955709657097570985709957100571015710257103571045710557106571075710857109571105711157112571135711457115571165711757118571195712057121571225712357124571255712657127571285712957130571315713257133571345713557136571375713857139571405714157142571435714457145571465714757148571495715057151571525715357154571555715657157571585715957160571615716257163571645716557166571675716857169571705717157172571735717457175571765717757178571795718057181571825718357184571855718657187571885718957190571915719257193571945719557196571975719857199572005720157202572035720457205572065720757208572095721057211572125721357214572155721657217572185721957220572215722257223572245722557226572275722857229572305723157232572335723457235572365723757238572395724057241572425724357244572455724657247572485724957250572515725257253572545725557256572575725857259572605726157262572635726457265572665726757268572695727057271572725727357274572755727657277572785727957280572815728257283572845728557286572875728857289572905729157292572935729457295572965729757298572995730057301573025730357304573055730657307573085730957310573115731257313573145731557316573175731857319573205732157322573235732457325573265732757328573295733057331573325733357334573355733657337573385733957340573415734257343573445734557346573475734857349573505735157352573535735457355573565735757358573595736057361573625736357364573655736657367573685736957370573715737257373573745737557376573775737857379573805738157382573835738457385573865738757388573895739057391573925739357394573955739657397573985739957400574015740257403574045740557406574075740857409574105741157412574135741457415574165741757418574195742057421574225742357424574255742657427574285742957430574315743257433574345743557436574375743857439574405744157442574435744457445574465744757448574495745057451574525745357454574555745657457574585745957460574615746257463574645746557466574675746857469574705747157472574735747457475574765747757478574795748057481574825748357484574855748657487574885748957490574915749257493574945749557496574975749857499575005750157502575035750457505575065750757508575095751057511575125751357514575155751657517575185751957520575215752257523575245752557526575275752857529575305753157532575335753457535575365753757538575395754057541575425754357544575455754657547575485754957550575515755257553575545755557556575575755857559575605756157562575635756457565575665756757568575695757057571575725757357574575755757657577575785757957580575815758257583575845758557586575875758857589575905759157592575935759457595575965759757598575995760057601576025760357604576055760657607576085760957610576115761257613576145761557616576175761857619576205762157622576235762457625576265762757628576295763057631576325763357634576355763657637576385763957640576415764257643576445764557646576475764857649576505765157652576535765457655576565765757658576595766057661576625766357664576655766657667576685766957670576715767257673576745767557676576775767857679576805768157682576835768457685576865768757688576895769057691576925769357694576955769657697576985769957700577015770257703577045770557706577075770857709577105771157712577135771457715577165771757718577195772057721577225772357724577255772657727577285772957730577315773257733577345773557736577375773857739577405774157742577435774457745577465774757748577495775057751577525775357754577555775657757577585775957760577615776257763577645776557766577675776857769577705777157772577735777457775577765777757778577795778057781577825778357784577855778657787577885778957790577915779257793577945779557796577975779857799578005780157802578035780457805578065780757808578095781057811578125781357814578155781657817578185781957820578215782257823578245782557826578275782857829578305783157832578335783457835578365783757838578395784057841578425784357844578455784657847578485784957850578515785257853578545785557856578575785857859578605786157862578635786457865578665786757868578695787057871578725787357874578755787657877578785787957880578815788257883578845788557886578875788857889578905789157892578935789457895578965789757898578995790057901579025790357904579055790657907579085790957910579115791257913579145791557916579175791857919579205792157922579235792457925579265792757928579295793057931579325793357934579355793657937579385793957940579415794257943579445794557946579475794857949579505795157952579535795457955579565795757958579595796057961579625796357964579655796657967579685796957970579715797257973579745797557976579775797857979579805798157982579835798457985579865798757988579895799057991579925799357994579955799657997579985799958000580015800258003580045800558006580075800858009580105801158012580135801458015580165801758018580195802058021580225802358024580255802658027580285802958030580315803258033580345803558036580375803858039580405804158042580435804458045580465804758048580495805058051580525805358054580555805658057580585805958060580615806258063580645806558066580675806858069580705807158072580735807458075580765807758078580795808058081580825808358084580855808658087580885808958090580915809258093580945809558096580975809858099581005810158102581035810458105581065810758108581095811058111581125811358114581155811658117581185811958120581215812258123581245812558126581275812858129581305813158132581335813458135581365813758138581395814058141581425814358144581455814658147581485814958150581515815258153581545815558156581575815858159581605816158162581635816458165581665816758168581695817058171581725817358174581755817658177581785817958180581815818258183581845818558186581875818858189581905819158192581935819458195581965819758198581995820058201582025820358204582055820658207582085820958210582115821258213582145821558216582175821858219582205822158222582235822458225582265822758228582295823058231582325823358234582355823658237582385823958240582415824258243582445824558246582475824858249582505825158252582535825458255582565825758258582595826058261582625826358264582655826658267582685826958270582715827258273582745827558276582775827858279582805828158282582835828458285582865828758288582895829058291582925829358294582955829658297582985829958300583015830258303583045830558306583075830858309583105831158312583135831458315583165831758318583195832058321583225832358324583255832658327583285832958330583315833258333583345833558336583375833858339583405834158342583435834458345583465834758348583495835058351583525835358354583555835658357583585835958360583615836258363583645836558366583675836858369583705837158372583735837458375583765837758378583795838058381583825838358384583855838658387583885838958390583915839258393583945839558396583975839858399584005840158402584035840458405584065840758408584095841058411584125841358414584155841658417584185841958420584215842258423584245842558426584275842858429584305843158432584335843458435584365843758438584395844058441584425844358444584455844658447584485844958450584515845258453584545845558456584575845858459584605846158462584635846458465584665846758468584695847058471584725847358474584755847658477584785847958480584815848258483584845848558486584875848858489584905849158492584935849458495584965849758498584995850058501585025850358504585055850658507585085850958510585115851258513585145851558516585175851858519585205852158522585235852458525585265852758528585295853058531585325853358534585355853658537585385853958540585415854258543585445854558546585475854858549585505855158552585535855458555585565855758558585595856058561585625856358564585655856658567585685856958570585715857258573585745857558576585775857858579585805858158582585835858458585585865858758588585895859058591585925859358594585955859658597585985859958600586015860258603586045860558606586075860858609586105861158612586135861458615586165861758618586195862058621586225862358624586255862658627586285862958630586315863258633586345863558636586375863858639586405864158642586435864458645586465864758648586495865058651586525865358654586555865658657586585865958660586615866258663586645866558666586675866858669586705867158672586735867458675586765867758678586795868058681586825868358684586855868658687586885868958690586915869258693586945869558696586975869858699587005870158702587035870458705587065870758708587095871058711587125871358714587155871658717587185871958720587215872258723587245872558726587275872858729587305873158732587335873458735587365873758738587395874058741587425874358744587455874658747587485874958750587515875258753587545875558756587575875858759587605876158762587635876458765587665876758768587695877058771587725877358774587755877658777587785877958780587815878258783587845878558786587875878858789587905879158792587935879458795587965879758798587995880058801588025880358804588055880658807588085880958810588115881258813588145881558816588175881858819588205882158822588235882458825588265882758828588295883058831588325883358834588355883658837588385883958840588415884258843588445884558846588475884858849588505885158852588535885458855588565885758858588595886058861588625886358864588655886658867588685886958870588715887258873588745887558876588775887858879588805888158882588835888458885588865888758888588895889058891588925889358894588955889658897588985889958900589015890258903589045890558906589075890858909589105891158912589135891458915589165891758918589195892058921589225892358924589255892658927589285892958930589315893258933589345893558936589375893858939589405894158942589435894458945589465894758948589495895058951589525895358954589555895658957589585895958960589615896258963589645896558966589675896858969589705897158972589735897458975589765897758978589795898058981589825898358984589855898658987589885898958990589915899258993589945899558996589975899858999590005900159002590035900459005590065900759008590095901059011590125901359014590155901659017590185901959020590215902259023590245902559026590275902859029590305903159032590335903459035590365903759038590395904059041590425904359044590455904659047590485904959050590515905259053590545905559056590575905859059590605906159062590635906459065590665906759068590695907059071590725907359074590755907659077590785907959080590815908259083590845908559086590875908859089590905909159092590935909459095590965909759098590995910059101591025910359104591055910659107591085910959110591115911259113591145911559116591175911859119591205912159122591235912459125591265912759128591295913059131591325913359134591355913659137591385913959140591415914259143591445914559146591475914859149591505915159152591535915459155591565915759158591595916059161591625916359164591655916659167591685916959170591715917259173591745917559176591775917859179591805918159182591835918459185591865918759188591895919059191591925919359194591955919659197591985919959200592015920259203592045920559206592075920859209592105921159212592135921459215592165921759218592195922059221592225922359224592255922659227592285922959230592315923259233592345923559236592375923859239592405924159242592435924459245592465924759248592495925059251592525925359254592555925659257592585925959260592615926259263592645926559266592675926859269592705927159272592735927459275592765927759278592795928059281592825928359284592855928659287592885928959290592915929259293592945929559296592975929859299593005930159302593035930459305593065930759308593095931059311593125931359314593155931659317593185931959320593215932259323593245932559326593275932859329593305933159332593335933459335593365933759338593395934059341593425934359344593455934659347593485934959350593515935259353593545935559356593575935859359593605936159362593635936459365593665936759368593695937059371593725937359374593755937659377593785937959380593815938259383593845938559386593875938859389593905939159392593935939459395593965939759398593995940059401594025940359404594055940659407594085940959410594115941259413594145941559416594175941859419594205942159422594235942459425594265942759428594295943059431594325943359434594355943659437594385943959440594415944259443594445944559446594475944859449594505945159452594535945459455594565945759458594595946059461594625946359464594655946659467594685946959470594715947259473594745947559476594775947859479594805948159482594835948459485594865948759488594895949059491594925949359494594955949659497594985949959500595015950259503595045950559506595075950859509595105951159512595135951459515595165951759518595195952059521595225952359524595255952659527595285952959530595315953259533595345953559536595375953859539595405954159542595435954459545595465954759548595495955059551595525955359554595555955659557595585955959560595615956259563595645956559566595675956859569595705957159572595735957459575595765957759578595795958059581595825958359584595855958659587595885958959590595915959259593595945959559596595975959859599596005960159602596035960459605596065960759608596095961059611596125961359614596155961659617596185961959620596215962259623596245962559626596275962859629596305963159632596335963459635596365963759638596395964059641596425964359644596455964659647596485964959650596515965259653596545965559656596575965859659596605966159662596635966459665596665966759668596695967059671596725967359674596755967659677596785967959680596815968259683596845968559686596875968859689596905969159692596935969459695596965969759698596995970059701597025970359704597055970659707597085970959710597115971259713597145971559716597175971859719597205972159722597235972459725597265972759728597295973059731597325973359734597355973659737597385973959740597415974259743597445974559746597475974859749597505975159752597535975459755597565975759758597595976059761597625976359764597655976659767597685976959770597715977259773597745977559776597775977859779597805978159782597835978459785597865978759788597895979059791597925979359794597955979659797597985979959800598015980259803598045980559806598075980859809598105981159812598135981459815598165981759818598195982059821598225982359824598255982659827598285982959830598315983259833598345983559836598375983859839598405984159842598435984459845598465984759848598495985059851598525985359854598555985659857598585985959860598615986259863598645986559866598675986859869598705987159872598735987459875598765987759878598795988059881598825988359884598855988659887598885988959890598915989259893598945989559896598975989859899599005990159902599035990459905599065990759908599095991059911599125991359914599155991659917599185991959920599215992259923599245992559926599275992859929599305993159932599335993459935599365993759938599395994059941599425994359944599455994659947599485994959950599515995259953599545995559956599575995859959599605996159962599635996459965599665996759968599695997059971599725997359974599755997659977599785997959980599815998259983599845998559986599875998859989599905999159992599935999459995599965999759998599996000060001600026000360004600056000660007600086000960010600116001260013600146001560016600176001860019600206002160022600236002460025600266002760028600296003060031600326003360034600356003660037600386003960040600416004260043600446004560046600476004860049600506005160052600536005460055600566005760058600596006060061600626006360064600656006660067600686006960070600716007260073600746007560076600776007860079600806008160082600836008460085600866008760088600896009060091600926009360094600956009660097600986009960100601016010260103601046010560106601076010860109601106011160112601136011460115601166011760118601196012060121601226012360124601256012660127601286012960130601316013260133601346013560136601376013860139601406014160142601436014460145601466014760148601496015060151601526015360154601556015660157601586015960160601616016260163601646016560166601676016860169601706017160172601736017460175601766017760178601796018060181601826018360184601856018660187601886018960190601916019260193601946019560196601976019860199602006020160202602036020460205602066020760208602096021060211602126021360214602156021660217602186021960220602216022260223602246022560226602276022860229602306023160232602336023460235602366023760238602396024060241602426024360244602456024660247602486024960250602516025260253602546025560256602576025860259602606026160262602636026460265602666026760268602696027060271602726027360274602756027660277602786027960280602816028260283602846028560286602876028860289602906029160292602936029460295602966029760298602996030060301603026030360304603056030660307603086030960310603116031260313603146031560316603176031860319603206032160322603236032460325603266032760328603296033060331603326033360334603356033660337603386033960340603416034260343603446034560346603476034860349603506035160352603536035460355603566035760358603596036060361603626036360364603656036660367603686036960370603716037260373603746037560376603776037860379603806038160382603836038460385603866038760388603896039060391603926039360394603956039660397603986039960400604016040260403604046040560406604076040860409604106041160412604136041460415604166041760418604196042060421604226042360424604256042660427604286042960430604316043260433604346043560436604376043860439604406044160442604436044460445604466044760448604496045060451604526045360454604556045660457604586045960460604616046260463604646046560466604676046860469604706047160472604736047460475604766047760478604796048060481604826048360484604856048660487604886048960490604916049260493604946049560496604976049860499605006050160502605036050460505605066050760508605096051060511605126051360514605156051660517605186051960520605216052260523605246052560526605276052860529605306053160532605336053460535605366053760538605396054060541605426054360544605456054660547605486054960550605516055260553605546055560556605576055860559605606056160562605636056460565605666056760568605696057060571605726057360574605756057660577605786057960580605816058260583605846058560586605876058860589605906059160592605936059460595605966059760598605996060060601606026060360604606056060660607606086060960610606116061260613606146061560616606176061860619606206062160622606236062460625606266062760628606296063060631606326063360634606356063660637606386063960640606416064260643606446064560646606476064860649606506065160652606536065460655606566065760658606596066060661606626066360664606656066660667606686066960670606716067260673606746067560676606776067860679606806068160682606836068460685606866068760688606896069060691606926069360694606956069660697606986069960700607016070260703607046070560706607076070860709607106071160712607136071460715607166071760718607196072060721607226072360724607256072660727607286072960730607316073260733607346073560736607376073860739607406074160742607436074460745607466074760748607496075060751607526075360754607556075660757607586075960760607616076260763607646076560766607676076860769607706077160772607736077460775607766077760778607796078060781607826078360784607856078660787607886078960790607916079260793607946079560796607976079860799608006080160802608036080460805608066080760808608096081060811608126081360814608156081660817608186081960820608216082260823608246082560826608276082860829608306083160832608336083460835608366083760838608396084060841608426084360844608456084660847608486084960850608516085260853608546085560856608576085860859608606086160862608636086460865608666086760868608696087060871608726087360874608756087660877608786087960880608816088260883608846088560886608876088860889608906089160892608936089460895608966089760898608996090060901609026090360904609056090660907609086090960910609116091260913609146091560916609176091860919609206092160922609236092460925609266092760928609296093060931609326093360934609356093660937609386093960940609416094260943609446094560946609476094860949609506095160952609536095460955609566095760958609596096060961609626096360964609656096660967609686096960970609716097260973609746097560976609776097860979609806098160982609836098460985609866098760988609896099060991609926099360994609956099660997609986099961000610016100261003610046100561006610076100861009610106101161012610136101461015610166101761018610196102061021610226102361024610256102661027610286102961030610316103261033610346103561036610376103861039610406104161042610436104461045610466104761048610496105061051610526105361054610556105661057610586105961060610616106261063610646106561066610676106861069610706107161072610736107461075610766107761078610796108061081610826108361084610856108661087610886108961090610916109261093610946109561096610976109861099611006110161102611036110461105611066110761108611096111061111611126111361114611156111661117611186111961120611216112261123611246112561126611276112861129611306113161132611336113461135611366113761138611396114061141611426114361144611456114661147611486114961150611516115261153611546115561156611576115861159611606116161162611636116461165611666116761168611696117061171611726117361174611756117661177611786117961180611816118261183611846118561186611876118861189611906119161192611936119461195611966119761198611996120061201612026120361204612056120661207612086120961210612116121261213612146121561216612176121861219612206122161222612236122461225612266122761228612296123061231612326123361234612356123661237612386123961240612416124261243612446124561246612476124861249612506125161252612536125461255612566125761258612596126061261612626126361264612656126661267612686126961270612716127261273612746127561276612776127861279612806128161282612836128461285612866128761288612896129061291612926129361294612956129661297612986129961300613016130261303613046130561306613076130861309613106131161312613136131461315613166131761318613196132061321613226132361324613256132661327613286132961330613316133261333613346133561336613376133861339613406134161342613436134461345613466134761348613496135061351613526135361354613556135661357613586135961360613616136261363613646136561366613676136861369613706137161372613736137461375613766137761378613796138061381613826138361384613856138661387613886138961390613916139261393613946139561396613976139861399614006140161402614036140461405614066140761408614096141061411614126141361414614156141661417614186141961420614216142261423614246142561426614276142861429614306143161432614336143461435614366143761438614396144061441614426144361444614456144661447614486144961450614516145261453614546145561456614576145861459614606146161462614636146461465614666146761468614696147061471614726147361474614756147661477614786147961480614816148261483614846148561486614876148861489614906149161492614936149461495614966149761498614996150061501615026150361504615056150661507615086150961510615116151261513615146151561516615176151861519615206152161522615236152461525615266152761528615296153061531615326153361534615356153661537615386153961540615416154261543615446154561546615476154861549615506155161552615536155461555615566155761558615596156061561615626156361564615656156661567615686156961570615716157261573615746157561576615776157861579615806158161582615836158461585615866158761588615896159061591615926159361594615956159661597615986159961600616016160261603616046160561606616076160861609616106161161612616136161461615616166161761618616196162061621616226162361624616256162661627616286162961630616316163261633616346163561636616376163861639616406164161642616436164461645616466164761648616496165061651616526165361654616556165661657616586165961660616616166261663616646166561666616676166861669616706167161672616736167461675616766167761678616796168061681616826168361684616856168661687616886168961690616916169261693616946169561696616976169861699617006170161702617036170461705617066170761708617096171061711617126171361714617156171661717617186171961720617216172261723617246172561726617276172861729617306173161732617336173461735617366173761738617396174061741617426174361744617456174661747617486174961750617516175261753617546175561756617576175861759617606176161762617636176461765617666176761768617696177061771617726177361774617756177661777617786177961780617816178261783617846178561786617876178861789617906179161792617936179461795617966179761798617996180061801618026180361804618056180661807618086180961810618116181261813618146181561816618176181861819618206182161822618236182461825618266182761828618296183061831618326183361834618356183661837618386183961840618416184261843618446184561846618476184861849618506185161852618536185461855618566185761858618596186061861618626186361864618656186661867618686186961870618716187261873618746187561876618776187861879618806188161882618836188461885618866188761888618896189061891618926189361894618956189661897618986189961900619016190261903619046190561906619076190861909619106191161912619136191461915619166191761918619196192061921619226192361924619256192661927619286192961930619316193261933619346193561936619376193861939619406194161942619436194461945619466194761948619496195061951619526195361954619556195661957619586195961960619616196261963619646196561966619676196861969619706197161972619736197461975619766197761978619796198061981619826198361984619856198661987619886198961990619916199261993619946199561996619976199861999620006200162002620036200462005620066200762008620096201062011620126201362014620156201662017620186201962020620216202262023620246202562026620276202862029620306203162032620336203462035620366203762038620396204062041620426204362044620456204662047620486204962050620516205262053620546205562056620576205862059620606206162062620636206462065620666206762068620696207062071620726207362074620756207662077620786207962080620816208262083620846208562086620876208862089620906209162092620936209462095620966209762098620996210062101621026210362104621056210662107621086210962110621116211262113621146211562116621176211862119621206212162122621236212462125621266212762128621296213062131621326213362134621356213662137621386213962140621416214262143621446214562146621476214862149621506215162152621536215462155621566215762158621596216062161621626216362164621656216662167621686216962170621716217262173621746217562176621776217862179621806218162182621836218462185621866218762188621896219062191621926219362194621956219662197621986219962200622016220262203622046220562206622076220862209622106221162212622136221462215622166221762218622196222062221622226222362224622256222662227622286222962230622316223262233622346223562236622376223862239622406224162242622436224462245622466224762248622496225062251622526225362254622556225662257622586225962260622616226262263622646226562266622676226862269622706227162272622736227462275622766227762278622796228062281622826228362284622856228662287622886228962290622916229262293622946229562296622976229862299623006230162302623036230462305623066230762308623096231062311623126231362314623156231662317623186231962320623216232262323623246232562326623276232862329623306233162332623336233462335623366233762338623396234062341623426234362344623456234662347623486234962350623516235262353623546235562356623576235862359623606236162362623636236462365623666236762368623696237062371623726237362374623756237662377623786237962380623816238262383623846238562386623876238862389623906239162392623936239462395623966239762398623996240062401624026240362404624056240662407624086240962410624116241262413624146241562416624176241862419624206242162422624236242462425624266242762428624296243062431624326243362434624356243662437624386243962440624416244262443624446244562446624476244862449624506245162452624536245462455624566245762458624596246062461624626246362464624656246662467624686246962470624716247262473624746247562476624776247862479624806248162482624836248462485624866248762488624896249062491624926249362494624956249662497624986249962500625016250262503625046250562506625076250862509625106251162512625136251462515625166251762518625196252062521625226252362524625256252662527625286252962530625316253262533625346253562536625376253862539625406254162542625436254462545625466254762548625496255062551625526255362554625556255662557625586255962560625616256262563625646256562566625676256862569625706257162572625736257462575625766257762578625796258062581625826258362584625856258662587625886258962590625916259262593625946259562596625976259862599626006260162602626036260462605626066260762608626096261062611626126261362614626156261662617626186261962620626216262262623626246262562626626276262862629626306263162632626336263462635626366263762638626396264062641626426264362644626456264662647626486264962650626516265262653626546265562656626576265862659626606266162662626636266462665626666266762668626696267062671626726267362674626756267662677626786267962680626816268262683626846268562686626876268862689626906269162692626936269462695626966269762698626996270062701627026270362704627056270662707627086270962710627116271262713627146271562716627176271862719627206272162722627236272462725627266272762728627296273062731627326273362734627356273662737627386273962740627416274262743627446274562746627476274862749627506275162752627536275462755627566275762758627596276062761627626276362764627656276662767627686276962770627716277262773627746277562776627776277862779627806278162782627836278462785627866278762788627896279062791627926279362794627956279662797627986279962800628016280262803628046280562806628076280862809628106281162812628136281462815628166281762818628196282062821628226282362824628256282662827628286282962830628316283262833628346283562836628376283862839628406284162842628436284462845628466284762848628496285062851628526285362854628556285662857628586285962860628616286262863628646286562866628676286862869628706287162872628736287462875628766287762878628796288062881628826288362884628856288662887628886288962890628916289262893628946289562896628976289862899629006290162902629036290462905629066290762908629096291062911629126291362914629156291662917629186291962920629216292262923629246292562926629276292862929629306293162932629336293462935629366293762938629396294062941629426294362944629456294662947629486294962950629516295262953629546295562956629576295862959629606296162962629636296462965629666296762968629696297062971629726297362974629756297662977629786297962980629816298262983629846298562986629876298862989629906299162992629936299462995629966299762998629996300063001630026300363004630056300663007630086300963010630116301263013630146301563016630176301863019630206302163022630236302463025630266302763028630296303063031630326303363034630356303663037630386303963040630416304263043630446304563046630476304863049630506305163052630536305463055630566305763058630596306063061630626306363064630656306663067630686306963070630716307263073630746307563076630776307863079630806308163082630836308463085630866308763088630896309063091630926309363094630956309663097630986309963100631016310263103631046310563106631076310863109631106311163112631136311463115631166311763118631196312063121631226312363124631256312663127631286312963130631316313263133631346313563136631376313863139631406314163142631436314463145631466314763148631496315063151631526315363154631556315663157631586315963160631616316263163631646316563166631676316863169631706317163172631736317463175631766317763178631796318063181631826318363184631856318663187631886318963190631916319263193631946319563196631976319863199632006320163202632036320463205632066320763208632096321063211632126321363214632156321663217632186321963220632216322263223632246322563226632276322863229632306323163232632336323463235632366323763238632396324063241632426324363244632456324663247632486324963250632516325263253632546325563256632576325863259632606326163262632636326463265632666326763268632696327063271632726327363274632756327663277632786327963280632816328263283632846328563286632876328863289632906329163292632936329463295632966329763298632996330063301633026330363304633056330663307633086330963310633116331263313633146331563316633176331863319633206332163322633236332463325633266332763328633296333063331633326333363334633356333663337633386333963340633416334263343633446334563346633476334863349633506335163352633536335463355633566335763358633596336063361633626336363364633656336663367633686336963370633716337263373633746337563376633776337863379633806338163382633836338463385633866338763388633896339063391633926339363394633956339663397633986339963400634016340263403634046340563406634076340863409634106341163412634136341463415634166341763418634196342063421634226342363424634256342663427634286342963430634316343263433634346343563436634376343863439634406344163442634436344463445634466344763448634496345063451634526345363454634556345663457634586345963460634616346263463634646346563466634676346863469634706347163472634736347463475634766347763478634796348063481634826348363484634856348663487634886348963490634916349263493634946349563496634976349863499635006350163502635036350463505635066350763508635096351063511635126351363514635156351663517635186351963520635216352263523635246352563526635276352863529635306353163532635336353463535635366353763538635396354063541635426354363544635456354663547635486354963550635516355263553635546355563556635576355863559635606356163562635636356463565635666356763568635696357063571635726357363574635756357663577635786357963580635816358263583635846358563586635876358863589635906359163592635936359463595635966359763598635996360063601636026360363604636056360663607636086360963610636116361263613636146361563616636176361863619636206362163622636236362463625636266362763628636296363063631636326363363634636356363663637636386363963640636416364263643636446364563646636476364863649636506365163652636536365463655636566365763658636596366063661636626366363664636656366663667636686366963670636716367263673636746367563676636776367863679636806368163682636836368463685636866368763688636896369063691636926369363694636956369663697636986369963700637016370263703637046370563706637076370863709637106371163712637136371463715637166371763718637196372063721637226372363724637256372663727637286372963730637316373263733637346373563736637376373863739637406374163742637436374463745637466374763748637496375063751637526375363754637556375663757637586375963760637616376263763637646376563766637676376863769637706377163772637736377463775637766377763778637796378063781637826378363784637856378663787637886378963790637916379263793637946379563796637976379863799638006380163802638036380463805638066380763808638096381063811638126381363814638156381663817638186381963820638216382263823638246382563826638276382863829638306383163832638336383463835638366383763838638396384063841638426384363844638456384663847638486384963850638516385263853638546385563856638576385863859638606386163862638636386463865638666386763868638696387063871638726387363874638756387663877638786387963880638816388263883638846388563886638876388863889638906389163892638936389463895638966389763898638996390063901639026390363904639056390663907639086390963910639116391263913639146391563916639176391863919639206392163922639236392463925639266392763928639296393063931639326393363934639356393663937639386393963940639416394263943639446394563946639476394863949639506395163952639536395463955639566395763958639596396063961639626396363964639656396663967639686396963970639716397263973639746397563976639776397863979639806398163982639836398463985639866398763988639896399063991639926399363994639956399663997639986399964000640016400264003640046400564006640076400864009640106401164012640136401464015640166401764018640196402064021640226402364024640256402664027640286402964030640316403264033640346403564036640376403864039640406404164042640436404464045640466404764048640496405064051640526405364054640556405664057640586405964060640616406264063640646406564066640676406864069640706407164072640736407464075640766407764078640796408064081640826408364084640856408664087640886408964090640916409264093640946409564096640976409864099641006410164102641036410464105641066410764108641096411064111641126411364114641156411664117641186411964120641216412264123641246412564126641276412864129641306413164132641336413464135641366413764138641396414064141641426414364144641456414664147641486414964150641516415264153641546415564156641576415864159641606416164162641636416464165641666416764168641696417064171641726417364174641756417664177641786417964180641816418264183641846418564186641876418864189641906419164192641936419464195641966419764198641996420064201642026420364204642056420664207642086420964210642116421264213642146421564216642176421864219642206422164222642236422464225642266422764228642296423064231642326423364234642356423664237642386423964240642416424264243642446424564246642476424864249642506425164252642536425464255642566425764258642596426064261642626426364264642656426664267642686426964270642716427264273642746427564276642776427864279642806428164282642836428464285642866428764288642896429064291642926429364294642956429664297642986429964300643016430264303643046430564306643076430864309643106431164312643136431464315643166431764318643196432064321643226432364324643256432664327643286432964330643316433264333643346433564336643376433864339643406434164342643436434464345643466434764348643496435064351643526435364354643556435664357643586435964360643616436264363643646436564366643676436864369643706437164372643736437464375643766437764378643796438064381643826438364384643856438664387643886438964390643916439264393643946439564396643976439864399644006440164402644036440464405644066440764408644096441064411644126441364414644156441664417644186441964420644216442264423644246442564426644276442864429644306443164432644336443464435644366443764438644396444064441644426444364444644456444664447644486444964450644516445264453644546445564456644576445864459644606446164462644636446464465644666446764468644696447064471644726447364474644756447664477644786447964480644816448264483644846448564486644876448864489644906449164492644936449464495644966449764498644996450064501645026450364504645056450664507645086450964510645116451264513645146451564516645176451864519645206452164522645236452464525645266452764528645296453064531645326453364534645356453664537645386453964540645416454264543645446454564546645476454864549645506455164552645536455464555645566455764558645596456064561645626456364564645656456664567645686456964570645716457264573645746457564576645776457864579645806458164582645836458464585645866458764588645896459064591645926459364594645956459664597645986459964600646016460264603646046460564606646076460864609646106461164612646136461464615646166461764618646196462064621646226462364624646256462664627646286462964630646316463264633646346463564636646376463864639646406464164642646436464464645646466464764648646496465064651646526465364654646556465664657646586465964660646616466264663646646466564666646676466864669646706467164672646736467464675646766467764678646796468064681646826468364684646856468664687646886468964690646916469264693646946469564696646976469864699647006470164702647036470464705647066470764708647096471064711647126471364714647156471664717647186471964720647216472264723647246472564726647276472864729647306473164732647336473464735647366473764738647396474064741647426474364744647456474664747647486474964750647516475264753647546475564756647576475864759647606476164762647636476464765647666476764768647696477064771647726477364774647756477664777647786477964780647816478264783647846478564786647876478864789647906479164792647936479464795647966479764798647996480064801648026480364804648056480664807648086480964810648116481264813648146481564816648176481864819648206482164822648236482464825648266482764828648296483064831648326483364834648356483664837648386483964840648416484264843648446484564846648476484864849648506485164852648536485464855648566485764858648596486064861648626486364864648656486664867648686486964870648716487264873648746487564876648776487864879648806488164882648836488464885648866488764888648896489064891648926489364894648956489664897648986489964900649016490264903649046490564906649076490864909649106491164912649136491464915649166491764918649196492064921649226492364924649256492664927649286492964930649316493264933649346493564936649376493864939649406494164942649436494464945649466494764948649496495064951649526495364954649556495664957649586495964960649616496264963649646496564966649676496864969649706497164972649736497464975649766497764978649796498064981649826498364984649856498664987649886498964990649916499264993649946499564996649976499864999650006500165002650036500465005650066500765008650096501065011650126501365014650156501665017650186501965020650216502265023650246502565026650276502865029650306503165032650336503465035650366503765038650396504065041650426504365044650456504665047650486504965050650516505265053650546505565056650576505865059650606506165062650636506465065650666506765068650696507065071650726507365074650756507665077650786507965080650816508265083650846508565086650876508865089650906509165092650936509465095650966509765098650996510065101651026510365104651056510665107651086510965110651116511265113651146511565116651176511865119651206512165122651236512465125651266512765128651296513065131651326513365134651356513665137651386513965140651416514265143651446514565146651476514865149651506515165152651536515465155651566515765158651596516065161651626516365164651656516665167651686516965170651716517265173651746517565176651776517865179651806518165182651836518465185651866518765188651896519065191651926519365194651956519665197651986519965200652016520265203652046520565206652076520865209652106521165212652136521465215652166521765218652196522065221652226522365224652256522665227652286522965230652316523265233652346523565236652376523865239652406524165242652436524465245652466524765248652496525065251652526525365254652556525665257652586525965260652616526265263652646526565266652676526865269652706527165272652736527465275652766527765278652796528065281652826528365284652856528665287652886528965290652916529265293652946529565296652976529865299653006530165302653036530465305653066530765308653096531065311653126531365314653156531665317653186531965320653216532265323653246532565326653276532865329653306533165332653336533465335653366533765338653396534065341653426534365344653456534665347653486534965350653516535265353653546535565356653576535865359653606536165362653636536465365653666536765368653696537065371653726537365374653756537665377653786537965380653816538265383653846538565386653876538865389653906539165392653936539465395653966539765398653996540065401654026540365404654056540665407654086540965410654116541265413654146541565416654176541865419654206542165422654236542465425654266542765428654296543065431654326543365434654356543665437654386543965440654416544265443654446544565446654476544865449654506545165452654536545465455654566545765458654596546065461654626546365464654656546665467654686546965470654716547265473654746547565476654776547865479654806548165482654836548465485654866548765488654896549065491654926549365494654956549665497654986549965500655016550265503655046550565506655076550865509655106551165512655136551465515655166551765518655196552065521655226552365524655256552665527655286552965530655316553265533655346553565536655376553865539655406554165542655436554465545655466554765548655496555065551655526555365554655556555665557655586555965560655616556265563655646556565566655676556865569655706557165572655736557465575655766557765578655796558065581655826558365584655856558665587655886558965590655916559265593655946559565596655976559865599656006560165602656036560465605656066560765608656096561065611656126561365614656156561665617656186561965620656216562265623656246562565626656276562865629656306563165632656336563465635656366563765638656396564065641656426564365644656456564665647656486564965650656516565265653656546565565656656576565865659656606566165662656636566465665656666566765668656696567065671656726567365674656756567665677656786567965680656816568265683656846568565686656876568865689656906569165692656936569465695656966569765698656996570065701657026570365704657056570665707657086570965710657116571265713657146571565716657176571865719657206572165722657236572465725657266572765728657296573065731657326573365734657356573665737657386573965740657416574265743657446574565746657476574865749657506575165752657536575465755657566575765758657596576065761657626576365764657656576665767657686576965770657716577265773657746577565776657776577865779657806578165782657836578465785657866578765788657896579065791657926579365794657956579665797657986579965800658016580265803658046580565806658076580865809658106581165812658136581465815658166581765818658196582065821658226582365824658256582665827658286582965830658316583265833658346583565836658376583865839658406584165842658436584465845658466584765848658496585065851658526585365854658556585665857658586585965860658616586265863658646586565866658676586865869658706587165872658736587465875658766587765878658796588065881658826588365884658856588665887658886588965890658916589265893658946589565896658976589865899659006590165902659036590465905659066590765908659096591065911659126591365914659156591665917659186591965920659216592265923659246592565926659276592865929659306593165932659336593465935659366593765938659396594065941659426594365944659456594665947659486594965950659516595265953659546595565956659576595865959659606596165962659636596465965659666596765968659696597065971659726597365974659756597665977659786597965980659816598265983659846598565986659876598865989659906599165992659936599465995659966599765998659996600066001660026600366004660056600666007660086600966010660116601266013660146601566016660176601866019660206602166022660236602466025660266602766028660296603066031660326603366034660356603666037660386603966040660416604266043660446604566046660476604866049660506605166052660536605466055660566605766058660596606066061660626606366064660656606666067660686606966070660716607266073660746607566076660776607866079660806608166082660836608466085660866608766088660896609066091660926609366094660956609666097660986609966100661016610266103661046610566106661076610866109661106611166112661136611466115661166611766118661196612066121661226612366124661256612666127661286612966130661316613266133661346613566136661376613866139661406614166142661436614466145661466614766148661496615066151661526615366154661556615666157661586615966160661616616266163661646616566166661676616866169661706617166172661736617466175661766617766178661796618066181661826618366184661856618666187661886618966190661916619266193661946619566196661976619866199662006620166202662036620466205662066620766208662096621066211662126621366214662156621666217662186621966220662216622266223662246622566226662276622866229662306623166232662336623466235662366623766238662396624066241662426624366244662456624666247662486624966250662516625266253662546625566256662576625866259662606626166262662636626466265662666626766268662696627066271662726627366274662756627666277662786627966280662816628266283662846628566286662876628866289662906629166292662936629466295662966629766298662996630066301663026630366304663056630666307663086630966310663116631266313663146631566316663176631866319663206632166322663236632466325663266632766328663296633066331663326633366334663356633666337663386633966340663416634266343663446634566346663476634866349663506635166352663536635466355663566635766358663596636066361663626636366364663656636666367663686636966370663716637266373663746637566376663776637866379663806638166382663836638466385663866638766388663896639066391663926639366394663956639666397663986639966400664016640266403664046640566406664076640866409664106641166412664136641466415664166641766418664196642066421664226642366424664256642666427664286642966430664316643266433664346643566436664376643866439664406644166442664436644466445664466644766448664496645066451664526645366454664556645666457664586645966460664616646266463664646646566466664676646866469664706647166472664736647466475664766647766478664796648066481664826648366484664856648666487664886648966490664916649266493664946649566496664976649866499665006650166502665036650466505665066650766508665096651066511665126651366514665156651666517665186651966520665216652266523665246652566526665276652866529665306653166532665336653466535665366653766538665396654066541665426654366544665456654666547665486654966550665516655266553665546655566556665576655866559665606656166562665636656466565665666656766568665696657066571665726657366574665756657666577665786657966580665816658266583665846658566586665876658866589665906659166592665936659466595665966659766598665996660066601666026660366604666056660666607666086660966610666116661266613666146661566616666176661866619666206662166622666236662466625666266662766628666296663066631666326663366634666356663666637666386663966640666416664266643666446664566646666476664866649666506665166652666536665466655666566665766658666596666066661666626666366664666656666666667666686666966670666716667266673666746667566676666776667866679666806668166682666836668466685666866668766688666896669066691666926669366694666956669666697666986669966700667016670266703667046670566706667076670866709667106671166712667136671466715667166671766718667196672066721667226672366724667256672666727667286672966730667316673266733667346673566736667376673866739667406674166742667436674466745667466674766748667496675066751667526675366754667556675666757667586675966760667616676266763667646676566766667676676866769667706677166772667736677466775667766677766778667796678066781667826678366784667856678666787667886678966790667916679266793667946679566796667976679866799668006680166802668036680466805668066680766808668096681066811668126681366814668156681666817668186681966820668216682266823668246682566826668276682866829668306683166832668336683466835668366683766838668396684066841668426684366844668456684666847668486684966850668516685266853668546685566856668576685866859668606686166862668636686466865668666686766868668696687066871668726687366874668756687666877668786687966880668816688266883668846688566886668876688866889668906689166892668936689466895668966689766898668996690066901669026690366904669056690666907669086690966910669116691266913669146691566916669176691866919669206692166922669236692466925669266692766928669296693066931669326693366934669356693666937669386693966940669416694266943669446694566946669476694866949669506695166952669536695466955669566695766958669596696066961669626696366964669656696666967669686696966970669716697266973669746697566976669776697866979669806698166982669836698466985669866698766988669896699066991669926699366994669956699666997669986699967000670016700267003670046700567006670076700867009670106701167012670136701467015670166701767018670196702067021670226702367024670256702667027670286702967030670316703267033670346703567036670376703867039670406704167042670436704467045670466704767048670496705067051670526705367054670556705667057670586705967060670616706267063670646706567066670676706867069670706707167072670736707467075670766707767078670796708067081670826708367084670856708667087670886708967090670916709267093670946709567096670976709867099671006710167102671036710467105671066710767108671096711067111671126711367114671156711667117671186711967120671216712267123671246712567126671276712867129671306713167132671336713467135671366713767138671396714067141671426714367144671456714667147671486714967150671516715267153671546715567156671576715867159671606716167162671636716467165671666716767168671696717067171671726717367174671756717667177671786717967180671816718267183671846718567186671876718867189671906719167192671936719467195671966719767198671996720067201672026720367204672056720667207672086720967210672116721267213672146721567216672176721867219672206722167222672236722467225672266722767228672296723067231672326723367234672356723667237672386723967240672416724267243672446724567246672476724867249672506725167252672536725467255672566725767258672596726067261672626726367264672656726667267672686726967270672716727267273672746727567276672776727867279672806728167282672836728467285672866728767288672896729067291672926729367294672956729667297672986729967300673016730267303673046730567306673076730867309673106731167312673136731467315673166731767318673196732067321673226732367324673256732667327673286732967330673316733267333673346733567336673376733867339673406734167342673436734467345673466734767348673496735067351673526735367354673556735667357673586735967360673616736267363673646736567366673676736867369673706737167372673736737467375673766737767378673796738067381673826738367384673856738667387673886738967390673916739267393673946739567396673976739867399674006740167402674036740467405674066740767408674096741067411674126741367414674156741667417674186741967420674216742267423674246742567426674276742867429674306743167432674336743467435674366743767438674396744067441674426744367444674456744667447674486744967450674516745267453674546745567456674576745867459674606746167462674636746467465674666746767468674696747067471674726747367474674756747667477674786747967480674816748267483674846748567486674876748867489674906749167492674936749467495674966749767498674996750067501675026750367504675056750667507675086750967510675116751267513675146751567516675176751867519675206752167522675236752467525675266752767528675296753067531675326753367534675356753667537675386753967540675416754267543675446754567546675476754867549675506755167552675536755467555675566755767558675596756067561675626756367564675656756667567675686756967570675716757267573675746757567576675776757867579675806758167582675836758467585675866758767588675896759067591675926759367594675956759667597675986759967600676016760267603676046760567606676076760867609676106761167612676136761467615676166761767618676196762067621676226762367624676256762667627676286762967630676316763267633676346763567636676376763867639676406764167642676436764467645676466764767648676496765067651676526765367654676556765667657676586765967660676616766267663676646766567666676676766867669676706767167672676736767467675676766767767678676796768067681676826768367684676856768667687676886768967690676916769267693676946769567696676976769867699677006770167702677036770467705677066770767708677096771067711677126771367714677156771667717677186771967720677216772267723677246772567726677276772867729677306773167732677336773467735677366773767738677396774067741677426774367744677456774667747677486774967750677516775267753677546775567756677576775867759677606776167762677636776467765677666776767768677696777067771677726777367774677756777667777677786777967780677816778267783677846778567786677876778867789677906779167792677936779467795677966779767798677996780067801678026780367804678056780667807678086780967810678116781267813678146781567816678176781867819678206782167822678236782467825678266782767828678296783067831678326783367834678356783667837678386783967840678416784267843678446784567846678476784867849678506785167852678536785467855678566785767858678596786067861678626786367864678656786667867678686786967870678716787267873678746787567876678776787867879678806788167882678836788467885678866788767888678896789067891678926789367894678956789667897678986789967900679016790267903679046790567906679076790867909679106791167912679136791467915679166791767918679196792067921679226792367924679256792667927679286792967930679316793267933679346793567936679376793867939679406794167942679436794467945679466794767948679496795067951679526795367954679556795667957679586795967960679616796267963679646796567966679676796867969679706797167972679736797467975679766797767978679796798067981679826798367984679856798667987679886798967990679916799267993679946799567996679976799867999680006800168002680036800468005680066800768008680096801068011680126801368014680156801668017680186801968020680216802268023680246802568026680276802868029680306803168032680336803468035680366803768038680396804068041680426804368044680456804668047680486804968050680516805268053680546805568056680576805868059680606806168062680636806468065680666806768068680696807068071680726807368074680756807668077680786807968080680816808268083680846808568086680876808868089680906809168092680936809468095680966809768098680996810068101681026810368104681056810668107681086810968110681116811268113681146811568116681176811868119681206812168122681236812468125681266812768128681296813068131681326813368134681356813668137681386813968140681416814268143681446814568146681476814868149681506815168152681536815468155681566815768158681596816068161681626816368164681656816668167681686816968170681716817268173681746817568176681776817868179681806818168182681836818468185681866818768188681896819068191681926819368194681956819668197681986819968200682016820268203682046820568206682076820868209682106821168212682136821468215682166821768218682196822068221682226822368224682256822668227682286822968230682316823268233682346823568236682376823868239682406824168242682436824468245682466824768248682496825068251682526825368254682556825668257682586825968260682616826268263682646826568266682676826868269682706827168272682736827468275682766827768278682796828068281682826828368284682856828668287682886828968290682916829268293682946829568296682976829868299683006830168302683036830468305683066830768308683096831068311683126831368314683156831668317683186831968320683216832268323683246832568326683276832868329683306833168332683336833468335683366833768338683396834068341683426834368344683456834668347683486834968350683516835268353683546835568356683576835868359683606836168362683636836468365683666836768368683696837068371683726837368374683756837668377683786837968380683816838268383683846838568386683876838868389683906839168392683936839468395683966839768398683996840068401684026840368404684056840668407684086840968410684116841268413684146841568416684176841868419684206842168422684236842468425684266842768428684296843068431684326843368434684356843668437684386843968440684416844268443684446844568446684476844868449684506845168452684536845468455684566845768458684596846068461684626846368464684656846668467684686846968470684716847268473684746847568476684776847868479684806848168482684836848468485684866848768488684896849068491684926849368494684956849668497684986849968500685016850268503685046850568506685076850868509685106851168512685136851468515685166851768518685196852068521685226852368524685256852668527685286852968530685316853268533685346853568536685376853868539685406854168542685436854468545685466854768548685496855068551685526855368554685556855668557685586855968560685616856268563685646856568566685676856868569685706857168572685736857468575685766857768578685796858068581685826858368584685856858668587685886858968590685916859268593685946859568596685976859868599686006860168602686036860468605686066860768608686096861068611686126861368614686156861668617686186861968620686216862268623686246862568626686276862868629686306863168632686336863468635686366863768638686396864068641686426864368644686456864668647686486864968650686516865268653686546865568656686576865868659686606866168662686636866468665686666866768668686696867068671686726867368674686756867668677686786867968680686816868268683686846868568686686876868868689686906869168692686936869468695686966869768698686996870068701687026870368704687056870668707687086870968710687116871268713687146871568716687176871868719687206872168722687236872468725687266872768728687296873068731
  1. older libtool is unecessary checking for c++
  2. * regen autotool infrastruture via
  3. "libtoolize; autoregen -vif; rm -rf automa4te"
  4. * add fstack-protector patch manually
  5. diff -Nur libgssglue-0.1.orig/aclocal.m4 libgssglue-0.1/aclocal.m4
  6. --- libgssglue-0.1.orig/aclocal.m4 2007-09-04 15:39:39.000000000 +0200
  7. +++ libgssglue-0.1/aclocal.m4 2011-02-17 17:14:44.323563003 +0100
  8. @@ -1,7 +1,7 @@
  9. -# generated automatically by aclocal 1.9.6 -*- Autoconf -*-
  10. +# generated automatically by aclocal 1.11.1 -*- Autoconf -*-
  11. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
  12. -# 2005 Free Software Foundation, Inc.
  13. +# 2005, 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
  14. # This file is free software; the Free Software Foundation
  15. # gives unlimited permission to copy and/or distribute it,
  16. # with or without modifications, as long as this notice is preserved.
  17. @@ -11,103 +11,196 @@
  18. # even the implied warranty of MERCHANTABILITY or FITNESS FOR A
  19. # PARTICULAR PURPOSE.
  20. +m4_ifndef([AC_AUTOCONF_VERSION],
  21. + [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
  22. +m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.65],,
  23. +[m4_warning([this file was generated for autoconf 2.65.
  24. +You have another version of autoconf. It may work, but is not guaranteed to.
  25. +If you have problems, you may need to regenerate the build system entirely.
  26. +To do so, use the procedure documented by the package, typically `autoreconf'.])])
  27. +
  28. # libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
  29. +#
  30. +# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
  31. +# 2006, 2007, 2008 Free Software Foundation, Inc.
  32. +# Written by Gordon Matzigkeit, 1996
  33. +#
  34. +# This file is free software; the Free Software Foundation gives
  35. +# unlimited permission to copy and/or distribute it, with or without
  36. +# modifications, as long as this notice is preserved.
  37. +
  38. +m4_define([_LT_COPYING], [dnl
  39. +# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
  40. +# 2006, 2007, 2008 Free Software Foundation, Inc.
  41. +# Written by Gordon Matzigkeit, 1996
  42. +#
  43. +# This file is part of GNU Libtool.
  44. +#
  45. +# GNU Libtool is free software; you can redistribute it and/or
  46. +# modify it under the terms of the GNU General Public License as
  47. +# published by the Free Software Foundation; either version 2 of
  48. +# the License, or (at your option) any later version.
  49. +#
  50. +# As a special exception to the GNU General Public License,
  51. +# if you distribute this file as part of a program or library that
  52. +# is built using GNU Libtool, you may include this file under the
  53. +# same distribution terms that you use for the rest of that program.
  54. +#
  55. +# GNU Libtool is distributed in the hope that it will be useful,
  56. +# but WITHOUT ANY WARRANTY; without even the implied warranty of
  57. +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  58. +# GNU General Public License for more details.
  59. +#
  60. +# You should have received a copy of the GNU General Public License
  61. +# along with GNU Libtool; see the file COPYING. If not, a copy
  62. +# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
  63. +# obtained by writing to the Free Software Foundation, Inc.,
  64. +# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  65. +])
  66. -# serial 48 AC_PROG_LIBTOOL
  67. +# serial 56 LT_INIT
  68. -# AC_PROVIDE_IFELSE(MACRO-NAME, IF-PROVIDED, IF-NOT-PROVIDED)
  69. -# -----------------------------------------------------------
  70. -# If this macro is not defined by Autoconf, define it here.
  71. -m4_ifdef([AC_PROVIDE_IFELSE],
  72. - [],
  73. - [m4_define([AC_PROVIDE_IFELSE],
  74. - [m4_ifdef([AC_PROVIDE_$1],
  75. - [$2], [$3])])])
  76. +# LT_PREREQ(VERSION)
  77. +# ------------------
  78. +# Complain and exit if this libtool version is less that VERSION.
  79. +m4_defun([LT_PREREQ],
  80. +[m4_if(m4_version_compare(m4_defn([LT_PACKAGE_VERSION]), [$1]), -1,
  81. + [m4_default([$3],
  82. + [m4_fatal([Libtool version $1 or higher is required],
  83. + 63)])],
  84. + [$2])])
  85. -# AC_PROG_LIBTOOL
  86. -# ---------------
  87. -AC_DEFUN([AC_PROG_LIBTOOL],
  88. -[AC_REQUIRE([_AC_PROG_LIBTOOL])dnl
  89. -dnl If AC_PROG_CXX has already been expanded, run AC_LIBTOOL_CXX
  90. -dnl immediately, otherwise, hook it in at the end of AC_PROG_CXX.
  91. - AC_PROVIDE_IFELSE([AC_PROG_CXX],
  92. - [AC_LIBTOOL_CXX],
  93. - [define([AC_PROG_CXX], defn([AC_PROG_CXX])[AC_LIBTOOL_CXX
  94. - ])])
  95. -dnl And a similar setup for Fortran 77 support
  96. - AC_PROVIDE_IFELSE([AC_PROG_F77],
  97. - [AC_LIBTOOL_F77],
  98. - [define([AC_PROG_F77], defn([AC_PROG_F77])[AC_LIBTOOL_F77
  99. -])])
  100. -
  101. -dnl Quote A][M_PROG_GCJ so that aclocal doesn't bring it in needlessly.
  102. -dnl If either AC_PROG_GCJ or A][M_PROG_GCJ have already been expanded, run
  103. -dnl AC_LIBTOOL_GCJ immediately, otherwise, hook it in at the end of both.
  104. - AC_PROVIDE_IFELSE([AC_PROG_GCJ],
  105. - [AC_LIBTOOL_GCJ],
  106. - [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],
  107. - [AC_LIBTOOL_GCJ],
  108. - [AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ],
  109. - [AC_LIBTOOL_GCJ],
  110. - [ifdef([AC_PROG_GCJ],
  111. - [define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[AC_LIBTOOL_GCJ])])
  112. - ifdef([A][M_PROG_GCJ],
  113. - [define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[AC_LIBTOOL_GCJ])])
  114. - ifdef([LT_AC_PROG_GCJ],
  115. - [define([LT_AC_PROG_GCJ],
  116. - defn([LT_AC_PROG_GCJ])[AC_LIBTOOL_GCJ])])])])
  117. -])])# AC_PROG_LIBTOOL
  118. +# _LT_CHECK_BUILDDIR
  119. +# ------------------
  120. +# Complain if the absolute build directory name contains unusual characters
  121. +m4_defun([_LT_CHECK_BUILDDIR],
  122. +[case `pwd` in
  123. + *\ * | *\ *)
  124. + AC_MSG_WARN([Libtool does not cope well with whitespace in `pwd`]) ;;
  125. +esac
  126. +])
  127. -# _AC_PROG_LIBTOOL
  128. -# ----------------
  129. -AC_DEFUN([_AC_PROG_LIBTOOL],
  130. -[AC_REQUIRE([AC_LIBTOOL_SETUP])dnl
  131. -AC_BEFORE([$0],[AC_LIBTOOL_CXX])dnl
  132. -AC_BEFORE([$0],[AC_LIBTOOL_F77])dnl
  133. -AC_BEFORE([$0],[AC_LIBTOOL_GCJ])dnl
  134. +# LT_INIT([OPTIONS])
  135. +# ------------------
  136. +AC_DEFUN([LT_INIT],
  137. +[AC_PREREQ([2.58])dnl We use AC_INCLUDES_DEFAULT
  138. +AC_BEFORE([$0], [LT_LANG])dnl
  139. +AC_BEFORE([$0], [LT_OUTPUT])dnl
  140. +AC_BEFORE([$0], [LTDL_INIT])dnl
  141. +m4_require([_LT_CHECK_BUILDDIR])dnl
  142. +
  143. +dnl Autoconf doesn't catch unexpanded LT_ macros by default:
  144. +m4_pattern_forbid([^_?LT_[A-Z_]+$])dnl
  145. +m4_pattern_allow([^(_LT_EOF|LT_DLGLOBAL|LT_DLLAZY_OR_NOW|LT_MULTI_MODULE)$])dnl
  146. +dnl aclocal doesn't pull ltoptions.m4, ltsugar.m4, or ltversion.m4
  147. +dnl unless we require an AC_DEFUNed macro:
  148. +AC_REQUIRE([LTOPTIONS_VERSION])dnl
  149. +AC_REQUIRE([LTSUGAR_VERSION])dnl
  150. +AC_REQUIRE([LTVERSION_VERSION])dnl
  151. +AC_REQUIRE([LTOBSOLETE_VERSION])dnl
  152. +m4_require([_LT_PROG_LTMAIN])dnl
  153. +
  154. +dnl Parse OPTIONS
  155. +_LT_SET_OPTIONS([$0], [$1])
  156. # This can be used to rebuild libtool when needed
  157. -LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
  158. +LIBTOOL_DEPS="$ltmain"
  159. # Always use our own libtool.
  160. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  161. AC_SUBST(LIBTOOL)dnl
  162. -# Prevent multiple expansion
  163. -define([AC_PROG_LIBTOOL], [])
  164. -])# _AC_PROG_LIBTOOL
  165. +_LT_SETUP
  166. +# Only expand once:
  167. +m4_define([LT_INIT])
  168. +])# LT_INIT
  169. +
  170. +# Old names:
  171. +AU_ALIAS([AC_PROG_LIBTOOL], [LT_INIT])
  172. +AU_ALIAS([AM_PROG_LIBTOOL], [LT_INIT])
  173. +dnl aclocal-1.4 backwards compatibility:
  174. +dnl AC_DEFUN([AC_PROG_LIBTOOL], [])
  175. +dnl AC_DEFUN([AM_PROG_LIBTOOL], [])
  176. -# AC_LIBTOOL_SETUP
  177. -# ----------------
  178. -AC_DEFUN([AC_LIBTOOL_SETUP],
  179. -[AC_PREREQ(2.50)dnl
  180. -AC_REQUIRE([AC_ENABLE_SHARED])dnl
  181. -AC_REQUIRE([AC_ENABLE_STATIC])dnl
  182. -AC_REQUIRE([AC_ENABLE_FAST_INSTALL])dnl
  183. -AC_REQUIRE([AC_CANONICAL_HOST])dnl
  184. +
  185. +# _LT_CC_BASENAME(CC)
  186. +# -------------------
  187. +# Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
  188. +m4_defun([_LT_CC_BASENAME],
  189. +[for cc_temp in $1""; do
  190. + case $cc_temp in
  191. + compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;;
  192. + distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;;
  193. + \-*) ;;
  194. + *) break;;
  195. + esac
  196. +done
  197. +cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  198. +])
  199. +
  200. +
  201. +# _LT_FILEUTILS_DEFAULTS
  202. +# ----------------------
  203. +# It is okay to use these file commands and assume they have been set
  204. +# sensibly after `m4_require([_LT_FILEUTILS_DEFAULTS])'.
  205. +m4_defun([_LT_FILEUTILS_DEFAULTS],
  206. +[: ${CP="cp -f"}
  207. +: ${MV="mv -f"}
  208. +: ${RM="rm -f"}
  209. +])# _LT_FILEUTILS_DEFAULTS
  210. +
  211. +
  212. +# _LT_SETUP
  213. +# ---------
  214. +m4_defun([_LT_SETUP],
  215. +[AC_REQUIRE([AC_CANONICAL_HOST])dnl
  216. AC_REQUIRE([AC_CANONICAL_BUILD])dnl
  217. +_LT_DECL([], [host_alias], [0], [The host system])dnl
  218. +_LT_DECL([], [host], [0])dnl
  219. +_LT_DECL([], [host_os], [0])dnl
  220. +dnl
  221. +_LT_DECL([], [build_alias], [0], [The build system])dnl
  222. +_LT_DECL([], [build], [0])dnl
  223. +_LT_DECL([], [build_os], [0])dnl
  224. +dnl
  225. AC_REQUIRE([AC_PROG_CC])dnl
  226. -AC_REQUIRE([AC_PROG_LD])dnl
  227. -AC_REQUIRE([AC_PROG_LD_RELOAD_FLAG])dnl
  228. -AC_REQUIRE([AC_PROG_NM])dnl
  229. -
  230. +AC_REQUIRE([LT_PATH_LD])dnl
  231. +AC_REQUIRE([LT_PATH_NM])dnl
  232. +dnl
  233. AC_REQUIRE([AC_PROG_LN_S])dnl
  234. -AC_REQUIRE([AC_DEPLIBS_CHECK_METHOD])dnl
  235. -# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
  236. -AC_REQUIRE([AC_OBJEXT])dnl
  237. -AC_REQUIRE([AC_EXEEXT])dnl
  238. +test -z "$LN_S" && LN_S="ln -s"
  239. +_LT_DECL([], [LN_S], [1], [Whether we need soft or hard links])dnl
  240. +dnl
  241. +AC_REQUIRE([LT_CMD_MAX_LEN])dnl
  242. +_LT_DECL([objext], [ac_objext], [0], [Object file suffix (normally "o")])dnl
  243. +_LT_DECL([], [exeext], [0], [Executable file suffix (normally "")])dnl
  244. dnl
  245. +m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  246. +m4_require([_LT_CHECK_SHELL_FEATURES])dnl
  247. +m4_require([_LT_CMD_RELOAD])dnl
  248. +m4_require([_LT_CHECK_MAGIC_METHOD])dnl
  249. +m4_require([_LT_CMD_OLD_ARCHIVE])dnl
  250. +m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
  251. +
  252. +_LT_CONFIG_LIBTOOL_INIT([
  253. +# See if we are running on zsh, and set the options which allow our
  254. +# commands through without removal of \ escapes INIT.
  255. +if test -n "\${ZSH_VERSION+set}" ; then
  256. + setopt NO_GLOB_SUBST
  257. +fi
  258. +])
  259. +if test -n "${ZSH_VERSION+set}" ; then
  260. + setopt NO_GLOB_SUBST
  261. +fi
  262. -AC_LIBTOOL_SYS_MAX_CMD_LEN
  263. -AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
  264. -AC_LIBTOOL_OBJDIR
  265. +_LT_CHECK_OBJDIR
  266. -AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
  267. -_LT_AC_PROG_ECHO_BACKSLASH
  268. +m4_require([_LT_TAG_COMPILER])dnl
  269. +_LT_PROG_ECHO_BACKSLASH
  270. case $host_os in
  271. aix3*)
  272. @@ -123,6294 +216,7776 @@
  273. # Sed substitution that helps us do robust quoting. It backslashifies
  274. # metacharacters that are still active within double-quoted strings.
  275. -Xsed='sed -e 1s/^X//'
  276. -[sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g']
  277. +sed_quote_subst='s/\([["`$\\]]\)/\\\1/g'
  278. # Same as above, but do not quote variable references.
  279. -[double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g']
  280. +double_quote_subst='s/\([["`\\]]\)/\\\1/g'
  281. # Sed substitution to delay expansion of an escaped shell variable in a
  282. # double_quote_subst'ed string.
  283. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  284. +# Sed substitution to delay expansion of an escaped single quote.
  285. +delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  286. +
  287. # Sed substitution to avoid accidental globbing in evaled expressions
  288. no_glob_subst='s/\*/\\\*/g'
  289. -# Constants:
  290. -rm="rm -f"
  291. -
  292. # Global variables:
  293. -default_ofile=libtool
  294. +ofile=libtool
  295. can_build_shared=yes
  296. # All known linkers require a `.a' archive for static linking (except MSVC,
  297. # which needs '.lib').
  298. libext=a
  299. -ltmain="$ac_aux_dir/ltmain.sh"
  300. -ofile="$default_ofile"
  301. -with_gnu_ld="$lt_cv_prog_gnu_ld"
  302. -AC_CHECK_TOOL(AR, ar, false)
  303. -AC_CHECK_TOOL(RANLIB, ranlib, :)
  304. -AC_CHECK_TOOL(STRIP, strip, :)
  305. +with_gnu_ld="$lt_cv_prog_gnu_ld"
  306. old_CC="$CC"
  307. old_CFLAGS="$CFLAGS"
  308. # Set sane defaults for various variables
  309. -test -z "$AR" && AR=ar
  310. -test -z "$AR_FLAGS" && AR_FLAGS=cru
  311. -test -z "$AS" && AS=as
  312. test -z "$CC" && CC=cc
  313. test -z "$LTCC" && LTCC=$CC
  314. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  315. -test -z "$DLLTOOL" && DLLTOOL=dlltool
  316. test -z "$LD" && LD=ld
  317. -test -z "$LN_S" && LN_S="ln -s"
  318. -test -z "$MAGIC_CMD" && MAGIC_CMD=file
  319. -test -z "$NM" && NM=nm
  320. -test -z "$SED" && SED=sed
  321. -test -z "$OBJDUMP" && OBJDUMP=objdump
  322. -test -z "$RANLIB" && RANLIB=:
  323. -test -z "$STRIP" && STRIP=:
  324. test -z "$ac_objext" && ac_objext=o
  325. -# Determine commands to create old-style static archives.
  326. -old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
  327. -old_postinstall_cmds='chmod 644 $oldlib'
  328. -old_postuninstall_cmds=
  329. -
  330. -if test -n "$RANLIB"; then
  331. - case $host_os in
  332. - openbsd*)
  333. - old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
  334. - ;;
  335. - *)
  336. - old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
  337. - ;;
  338. - esac
  339. - old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
  340. -fi
  341. -
  342. _LT_CC_BASENAME([$compiler])
  343. # Only perform the check for file, if the check method requires it
  344. +test -z "$MAGIC_CMD" && MAGIC_CMD=file
  345. case $deplibs_check_method in
  346. file_magic*)
  347. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  348. - AC_PATH_MAGIC
  349. + _LT_PATH_MAGIC
  350. fi
  351. ;;
  352. esac
  353. -AC_PROVIDE_IFELSE([AC_LIBTOOL_DLOPEN], enable_dlopen=yes, enable_dlopen=no)
  354. -AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL],
  355. -enable_win32_dll=yes, enable_win32_dll=no)
  356. -
  357. -AC_ARG_ENABLE([libtool-lock],
  358. - [AC_HELP_STRING([--disable-libtool-lock],
  359. - [avoid locking (might break parallel builds)])])
  360. -test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  361. +# Use C for the default configuration in the libtool script
  362. +LT_SUPPORTED_TAG([CC])
  363. +_LT_LANG_C_CONFIG
  364. +_LT_LANG_DEFAULT_CONFIG
  365. +_LT_CONFIG_COMMANDS
  366. +])# _LT_SETUP
  367. -AC_ARG_WITH([pic],
  368. - [AC_HELP_STRING([--with-pic],
  369. - [try to use only PIC/non-PIC objects @<:@default=use both@:>@])],
  370. - [pic_mode="$withval"],
  371. - [pic_mode=default])
  372. -test -z "$pic_mode" && pic_mode=default
  373. -# Use C for the default configuration in the libtool script
  374. -tagname=
  375. -AC_LIBTOOL_LANG_C_CONFIG
  376. -_LT_AC_TAGCONFIG
  377. -])# AC_LIBTOOL_SETUP
  378. +# _LT_PROG_LTMAIN
  379. +# ---------------
  380. +# Note that this code is called both from `configure', and `config.status'
  381. +# now that we use AC_CONFIG_COMMANDS to generate libtool. Notably,
  382. +# `config.status' has no value for ac_aux_dir unless we are using Automake,
  383. +# so we pass a copy along to make sure it has a sensible value anyway.
  384. +m4_defun([_LT_PROG_LTMAIN],
  385. +[m4_ifdef([AC_REQUIRE_AUX_FILE], [AC_REQUIRE_AUX_FILE([ltmain.sh])])dnl
  386. +_LT_CONFIG_LIBTOOL_INIT([ac_aux_dir='$ac_aux_dir'])
  387. +ltmain="$ac_aux_dir/ltmain.sh"
  388. +])# _LT_PROG_LTMAIN
  389. -# _LT_AC_SYS_COMPILER
  390. -# -------------------
  391. -AC_DEFUN([_LT_AC_SYS_COMPILER],
  392. -[AC_REQUIRE([AC_PROG_CC])dnl
  393. -# If no C compiler was specified, use CC.
  394. -LTCC=${LTCC-"$CC"}
  395. +# So that we can recreate a full libtool script including additional
  396. +# tags, we accumulate the chunks of code to send to AC_CONFIG_COMMANDS
  397. +# in macros and then make a single call at the end using the `libtool'
  398. +# label.
  399. -# If no C compiler flags were specified, use CFLAGS.
  400. -LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  401. -# Allow CC to be a program name with arguments.
  402. -compiler=$CC
  403. -])# _LT_AC_SYS_COMPILER
  404. +# _LT_CONFIG_LIBTOOL_INIT([INIT-COMMANDS])
  405. +# ----------------------------------------
  406. +# Register INIT-COMMANDS to be passed to AC_CONFIG_COMMANDS later.
  407. +m4_define([_LT_CONFIG_LIBTOOL_INIT],
  408. +[m4_ifval([$1],
  409. + [m4_append([_LT_OUTPUT_LIBTOOL_INIT],
  410. + [$1
  411. +])])])
  412. +# Initialize.
  413. +m4_define([_LT_OUTPUT_LIBTOOL_INIT])
  414. -# _LT_CC_BASENAME(CC)
  415. -# -------------------
  416. -# Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
  417. -AC_DEFUN([_LT_CC_BASENAME],
  418. -[for cc_temp in $1""; do
  419. - case $cc_temp in
  420. - compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;;
  421. - distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;;
  422. - \-*) ;;
  423. - *) break;;
  424. - esac
  425. -done
  426. -cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  427. +
  428. +# _LT_CONFIG_LIBTOOL([COMMANDS])
  429. +# ------------------------------
  430. +# Register COMMANDS to be passed to AC_CONFIG_COMMANDS later.
  431. +m4_define([_LT_CONFIG_LIBTOOL],
  432. +[m4_ifval([$1],
  433. + [m4_append([_LT_OUTPUT_LIBTOOL_COMMANDS],
  434. + [$1
  435. +])])])
  436. +
  437. +# Initialize.
  438. +m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS])
  439. +
  440. +
  441. +# _LT_CONFIG_SAVE_COMMANDS([COMMANDS], [INIT_COMMANDS])
  442. +# -----------------------------------------------------
  443. +m4_defun([_LT_CONFIG_SAVE_COMMANDS],
  444. +[_LT_CONFIG_LIBTOOL([$1])
  445. +_LT_CONFIG_LIBTOOL_INIT([$2])
  446. ])
  447. -# _LT_COMPILER_BOILERPLATE
  448. -# ------------------------
  449. -# Check for compiler boilerplate output or warnings with
  450. -# the simple compiler test code.
  451. -AC_DEFUN([_LT_COMPILER_BOILERPLATE],
  452. -[ac_outfile=conftest.$ac_objext
  453. -printf "$lt_simple_compile_test_code" >conftest.$ac_ext
  454. -eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  455. -_lt_compiler_boilerplate=`cat conftest.err`
  456. -$rm conftest*
  457. -])# _LT_COMPILER_BOILERPLATE
  458. +# _LT_FORMAT_COMMENT([COMMENT])
  459. +# -----------------------------
  460. +# Add leading comment marks to the start of each line, and a trailing
  461. +# full-stop to the whole comment if one is not present already.
  462. +m4_define([_LT_FORMAT_COMMENT],
  463. +[m4_ifval([$1], [
  464. +m4_bpatsubst([m4_bpatsubst([$1], [^ *], [# ])],
  465. + [['`$\]], [\\\&])]m4_bmatch([$1], [[!?.]$], [], [.])
  466. +)])
  467. -# _LT_LINKER_BOILERPLATE
  468. -# ----------------------
  469. -# Check for linker boilerplate output or warnings with
  470. -# the simple link test code.
  471. -AC_DEFUN([_LT_LINKER_BOILERPLATE],
  472. -[ac_outfile=conftest.$ac_objext
  473. -printf "$lt_simple_link_test_code" >conftest.$ac_ext
  474. -eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  475. -_lt_linker_boilerplate=`cat conftest.err`
  476. -$rm conftest*
  477. -])# _LT_LINKER_BOILERPLATE
  478. -# _LT_AC_SYS_LIBPATH_AIX
  479. -# ----------------------
  480. -# Links a minimal program and checks the executable
  481. -# for the system default hardcoded library path. In most cases,
  482. -# this is /usr/lib:/lib, but when the MPI compilers are used
  483. -# the location of the communication and MPI libs are included too.
  484. -# If we don't find anything, use the default library path according
  485. -# to the aix ld manual.
  486. -AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX],
  487. -[AC_LINK_IFELSE(AC_LANG_PROGRAM,[
  488. -aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  489. -}'`
  490. -# Check for a 64-bit object if we didn't find anything.
  491. -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; }
  492. -}'`; fi],[])
  493. -if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  494. -])# _LT_AC_SYS_LIBPATH_AIX
  495. +# _LT_DECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION], [IS-TAGGED?])
  496. +# -------------------------------------------------------------------
  497. +# CONFIGNAME is the name given to the value in the libtool script.
  498. +# VARNAME is the (base) name used in the configure script.
  499. +# VALUE may be 0, 1 or 2 for a computed quote escaped value based on
  500. +# VARNAME. Any other value will be used directly.
  501. +m4_define([_LT_DECL],
  502. +[lt_if_append_uniq([lt_decl_varnames], [$2], [, ],
  503. + [lt_dict_add_subkey([lt_decl_dict], [$2], [libtool_name],
  504. + [m4_ifval([$1], [$1], [$2])])
  505. + lt_dict_add_subkey([lt_decl_dict], [$2], [value], [$3])
  506. + m4_ifval([$4],
  507. + [lt_dict_add_subkey([lt_decl_dict], [$2], [description], [$4])])
  508. + lt_dict_add_subkey([lt_decl_dict], [$2],
  509. + [tagged?], [m4_ifval([$5], [yes], [no])])])
  510. +])
  511. -# _LT_AC_SHELL_INIT(ARG)
  512. -# ----------------------
  513. -AC_DEFUN([_LT_AC_SHELL_INIT],
  514. -[ifdef([AC_DIVERSION_NOTICE],
  515. - [AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)],
  516. - [AC_DIVERT_PUSH(NOTICE)])
  517. -$1
  518. -AC_DIVERT_POP
  519. -])# _LT_AC_SHELL_INIT
  520. +# _LT_TAGDECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION])
  521. +# --------------------------------------------------------
  522. +m4_define([_LT_TAGDECL], [_LT_DECL([$1], [$2], [$3], [$4], [yes])])
  523. +
  524. +
  525. +# lt_decl_tag_varnames([SEPARATOR], [VARNAME1...])
  526. +# ------------------------------------------------
  527. +m4_define([lt_decl_tag_varnames],
  528. +[_lt_decl_filter([tagged?], [yes], $@)])
  529. +
  530. +
  531. +# _lt_decl_filter(SUBKEY, VALUE, [SEPARATOR], [VARNAME1..])
  532. +# ---------------------------------------------------------
  533. +m4_define([_lt_decl_filter],
  534. +[m4_case([$#],
  535. + [0], [m4_fatal([$0: too few arguments: $#])],
  536. + [1], [m4_fatal([$0: too few arguments: $#: $1])],
  537. + [2], [lt_dict_filter([lt_decl_dict], [$1], [$2], [], lt_decl_varnames)],
  538. + [3], [lt_dict_filter([lt_decl_dict], [$1], [$2], [$3], lt_decl_varnames)],
  539. + [lt_dict_filter([lt_decl_dict], $@)])[]dnl
  540. +])
  541. -# _LT_AC_PROG_ECHO_BACKSLASH
  542. -# --------------------------
  543. -# Add some code to the start of the generated configure script which
  544. -# will find an echo command which doesn't interpret backslashes.
  545. -AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH],
  546. -[_LT_AC_SHELL_INIT([
  547. -# Check that we are running under the correct shell.
  548. -SHELL=${CONFIG_SHELL-/bin/sh}
  549. -case X$ECHO in
  550. -X*--fallback-echo)
  551. - # Remove one level of quotation (which was required for Make).
  552. - ECHO=`echo "$ECHO" | sed 's,\\\\\[$]\\[$]0,'[$]0','`
  553. - ;;
  554. -esac
  555. +# lt_decl_quote_varnames([SEPARATOR], [VARNAME1...])
  556. +# --------------------------------------------------
  557. +m4_define([lt_decl_quote_varnames],
  558. +[_lt_decl_filter([value], [1], $@)])
  559. +
  560. +
  561. +# lt_decl_dquote_varnames([SEPARATOR], [VARNAME1...])
  562. +# ---------------------------------------------------
  563. +m4_define([lt_decl_dquote_varnames],
  564. +[_lt_decl_filter([value], [2], $@)])
  565. +
  566. +
  567. +# lt_decl_varnames_tagged([SEPARATOR], [VARNAME1...])
  568. +# ---------------------------------------------------
  569. +m4_define([lt_decl_varnames_tagged],
  570. +[m4_assert([$# <= 2])dnl
  571. +_$0(m4_quote(m4_default([$1], [[, ]])),
  572. + m4_ifval([$2], [[$2]], [m4_dquote(lt_decl_tag_varnames)]),
  573. + m4_split(m4_normalize(m4_quote(_LT_TAGS)), [ ]))])
  574. +m4_define([_lt_decl_varnames_tagged],
  575. +[m4_ifval([$3], [lt_combine([$1], [$2], [_], $3)])])
  576. +
  577. +
  578. +# lt_decl_all_varnames([SEPARATOR], [VARNAME1...])
  579. +# ------------------------------------------------
  580. +m4_define([lt_decl_all_varnames],
  581. +[_$0(m4_quote(m4_default([$1], [[, ]])),
  582. + m4_if([$2], [],
  583. + m4_quote(lt_decl_varnames),
  584. + m4_quote(m4_shift($@))))[]dnl
  585. +])
  586. +m4_define([_lt_decl_all_varnames],
  587. +[lt_join($@, lt_decl_varnames_tagged([$1],
  588. + lt_decl_tag_varnames([[, ]], m4_shift($@))))dnl
  589. +])
  590. -echo=${ECHO-echo}
  591. -if test "X[$]1" = X--no-reexec; then
  592. - # Discard the --no-reexec flag, and continue.
  593. - shift
  594. -elif test "X[$]1" = X--fallback-echo; then
  595. - # Avoid inline document here, it may be left over
  596. - :
  597. -elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
  598. - # Yippee, $echo works!
  599. - :
  600. -else
  601. - # Restart under the correct shell.
  602. - exec $SHELL "[$]0" --no-reexec ${1+"[$]@"}
  603. -fi
  604. -if test "X[$]1" = X--fallback-echo; then
  605. - # used as fallback echo
  606. - shift
  607. - cat <<EOF
  608. -[$]*
  609. -EOF
  610. - exit 0
  611. -fi
  612. +# _LT_CONFIG_STATUS_DECLARE([VARNAME])
  613. +# ------------------------------------
  614. +# Quote a variable value, and forward it to `config.status' so that its
  615. +# declaration there will have the same value as in `configure'. VARNAME
  616. +# must have a single quote delimited value for this to work.
  617. +m4_define([_LT_CONFIG_STATUS_DECLARE],
  618. +[$1='`$ECHO "X$][$1" | $Xsed -e "$delay_single_quote_subst"`'])
  619. -# The HP-UX ksh and POSIX shell print the target directory to stdout
  620. -# if CDPATH is set.
  621. -(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  622. -if test -z "$ECHO"; then
  623. -if test "X${echo_test_string+set}" != Xset; then
  624. -# find a string as large as possible, as long as the shell can cope with it
  625. - for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do
  626. - # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
  627. - if (echo_test_string=`eval $cmd`) 2>/dev/null &&
  628. - echo_test_string=`eval $cmd` &&
  629. - (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
  630. - then
  631. - break
  632. - fi
  633. - done
  634. -fi
  635. +# _LT_CONFIG_STATUS_DECLARATIONS
  636. +# ------------------------------
  637. +# We delimit libtool config variables with single quotes, so when
  638. +# we write them to config.status, we have to be sure to quote all
  639. +# embedded single quotes properly. In configure, this macro expands
  640. +# each variable declared with _LT_DECL (and _LT_TAGDECL) into:
  641. +#
  642. +# <var>='`$ECHO "X$<var>" | $Xsed -e "$delay_single_quote_subst"`'
  643. +m4_defun([_LT_CONFIG_STATUS_DECLARATIONS],
  644. +[m4_foreach([_lt_var], m4_quote(lt_decl_all_varnames),
  645. + [m4_n([_LT_CONFIG_STATUS_DECLARE(_lt_var)])])])
  646. -if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
  647. - echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
  648. - test "X$echo_testing_string" = "X$echo_test_string"; then
  649. - :
  650. -else
  651. - # The Solaris, AIX, and Digital Unix default echo programs unquote
  652. - # backslashes. This makes it impossible to quote backslashes using
  653. - # echo "$something" | sed 's/\\/\\\\/g'
  654. - #
  655. - # So, first we look for a working echo in the user's PATH.
  656. - lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  657. - for dir in $PATH /usr/ucb; do
  658. - IFS="$lt_save_ifs"
  659. - if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
  660. - test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
  661. - echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
  662. - test "X$echo_testing_string" = "X$echo_test_string"; then
  663. - echo="$dir/echo"
  664. - break
  665. - fi
  666. - done
  667. - IFS="$lt_save_ifs"
  668. +# _LT_LIBTOOL_TAGS
  669. +# ----------------
  670. +# Output comment and list of tags supported by the script
  671. +m4_defun([_LT_LIBTOOL_TAGS],
  672. +[_LT_FORMAT_COMMENT([The names of the tagged configurations supported by this script])dnl
  673. +available_tags="_LT_TAGS"dnl
  674. +])
  675. - if test "X$echo" = Xecho; then
  676. - # We didn't find a better echo, so look for alternatives.
  677. - if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
  678. - echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
  679. - test "X$echo_testing_string" = "X$echo_test_string"; then
  680. - # This shell has a builtin print -r that does the trick.
  681. - echo='print -r'
  682. - elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
  683. - test "X$CONFIG_SHELL" != X/bin/ksh; then
  684. - # If we have ksh, try running configure again with it.
  685. - ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
  686. - export ORIGINAL_CONFIG_SHELL
  687. - CONFIG_SHELL=/bin/ksh
  688. - export CONFIG_SHELL
  689. - exec $CONFIG_SHELL "[$]0" --no-reexec ${1+"[$]@"}
  690. - else
  691. - # Try using printf.
  692. - echo='printf %s\n'
  693. - if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
  694. - echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
  695. - test "X$echo_testing_string" = "X$echo_test_string"; then
  696. - # Cool, printf works
  697. - :
  698. - elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
  699. - test "X$echo_testing_string" = 'X\t' &&
  700. - echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  701. - test "X$echo_testing_string" = "X$echo_test_string"; then
  702. - CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
  703. - export CONFIG_SHELL
  704. - SHELL="$CONFIG_SHELL"
  705. - export SHELL
  706. - echo="$CONFIG_SHELL [$]0 --fallback-echo"
  707. - elif echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
  708. - test "X$echo_testing_string" = 'X\t' &&
  709. - echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  710. - test "X$echo_testing_string" = "X$echo_test_string"; then
  711. - echo="$CONFIG_SHELL [$]0 --fallback-echo"
  712. - else
  713. - # maybe with a smaller string...
  714. - prev=:
  715. - for cmd in 'echo test' 'sed 2q "[$]0"' 'sed 10q "[$]0"' 'sed 20q "[$]0"' 'sed 50q "[$]0"'; do
  716. - if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
  717. - then
  718. - break
  719. - fi
  720. - prev="$cmd"
  721. - done
  722. +# _LT_LIBTOOL_DECLARE(VARNAME, [TAG])
  723. +# -----------------------------------
  724. +# Extract the dictionary values for VARNAME (optionally with TAG) and
  725. +# expand to a commented shell variable setting:
  726. +#
  727. +# # Some comment about what VAR is for.
  728. +# visible_name=$lt_internal_name
  729. +m4_define([_LT_LIBTOOL_DECLARE],
  730. +[_LT_FORMAT_COMMENT(m4_quote(lt_dict_fetch([lt_decl_dict], [$1],
  731. + [description])))[]dnl
  732. +m4_pushdef([_libtool_name],
  733. + m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [libtool_name])))[]dnl
  734. +m4_case(m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [value])),
  735. + [0], [_libtool_name=[$]$1],
  736. + [1], [_libtool_name=$lt_[]$1],
  737. + [2], [_libtool_name=$lt_[]$1],
  738. + [_libtool_name=lt_dict_fetch([lt_decl_dict], [$1], [value])])[]dnl
  739. +m4_ifval([$2], [_$2])[]m4_popdef([_libtool_name])[]dnl
  740. +])
  741. - if test "$prev" != 'sed 50q "[$]0"'; then
  742. - echo_test_string=`eval $prev`
  743. - export echo_test_string
  744. - exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "[$]0" ${1+"[$]@"}
  745. - else
  746. - # Oops. We lost completely, so just stick with echo.
  747. - echo=echo
  748. - fi
  749. - fi
  750. - fi
  751. - fi
  752. -fi
  753. -fi
  754. -# Copy echo and quote the copy suitably for passing to libtool from
  755. -# the Makefile, instead of quoting the original, which is used later.
  756. -ECHO=$echo
  757. -if test "X$ECHO" = "X$CONFIG_SHELL [$]0 --fallback-echo"; then
  758. - ECHO="$CONFIG_SHELL \\\$\[$]0 --fallback-echo"
  759. -fi
  760. +# _LT_LIBTOOL_CONFIG_VARS
  761. +# -----------------------
  762. +# Produce commented declarations of non-tagged libtool config variables
  763. +# suitable for insertion in the LIBTOOL CONFIG section of the `libtool'
  764. +# script. Tagged libtool config variables (even for the LIBTOOL CONFIG
  765. +# section) are produced by _LT_LIBTOOL_TAG_VARS.
  766. +m4_defun([_LT_LIBTOOL_CONFIG_VARS],
  767. +[m4_foreach([_lt_var],
  768. + m4_quote(_lt_decl_filter([tagged?], [no], [], lt_decl_varnames)),
  769. + [m4_n([_LT_LIBTOOL_DECLARE(_lt_var)])])])
  770. -AC_SUBST(ECHO)
  771. -])])# _LT_AC_PROG_ECHO_BACKSLASH
  772. +# _LT_LIBTOOL_TAG_VARS(TAG)
  773. +# -------------------------
  774. +m4_define([_LT_LIBTOOL_TAG_VARS],
  775. +[m4_foreach([_lt_var], m4_quote(lt_decl_tag_varnames),
  776. + [m4_n([_LT_LIBTOOL_DECLARE(_lt_var, [$1])])])])
  777. -# _LT_AC_LOCK
  778. -# -----------
  779. -AC_DEFUN([_LT_AC_LOCK],
  780. -[AC_ARG_ENABLE([libtool-lock],
  781. - [AC_HELP_STRING([--disable-libtool-lock],
  782. - [avoid locking (might break parallel builds)])])
  783. -test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  784. -# Some flags need to be propagated to the compiler or linker for good
  785. -# libtool support.
  786. -case $host in
  787. -ia64-*-hpux*)
  788. - # Find out which ABI we are using.
  789. - echo 'int i;' > conftest.$ac_ext
  790. - if AC_TRY_EVAL(ac_compile); then
  791. - case `/usr/bin/file conftest.$ac_objext` in
  792. - *ELF-32*)
  793. - HPUX_IA64_MODE="32"
  794. - ;;
  795. - *ELF-64*)
  796. - HPUX_IA64_MODE="64"
  797. - ;;
  798. - esac
  799. - fi
  800. - rm -rf conftest*
  801. - ;;
  802. -*-*-irix6*)
  803. - # Find out which ABI we are using.
  804. - echo '[#]line __oline__ "configure"' > conftest.$ac_ext
  805. - if AC_TRY_EVAL(ac_compile); then
  806. - if test "$lt_cv_prog_gnu_ld" = yes; then
  807. - case `/usr/bin/file conftest.$ac_objext` in
  808. - *32-bit*)
  809. - LD="${LD-ld} -melf32bsmip"
  810. - ;;
  811. - *N32*)
  812. - LD="${LD-ld} -melf32bmipn32"
  813. +# _LT_TAGVAR(VARNAME, [TAGNAME])
  814. +# ------------------------------
  815. +m4_define([_LT_TAGVAR], [m4_ifval([$2], [$1_$2], [$1])])
  816. +
  817. +
  818. +# _LT_CONFIG_COMMANDS
  819. +# -------------------
  820. +# Send accumulated output to $CONFIG_STATUS. Thanks to the lists of
  821. +# variables for single and double quote escaping we saved from calls
  822. +# to _LT_DECL, we can put quote escaped variables declarations
  823. +# into `config.status', and then the shell code to quote escape them in
  824. +# for loops in `config.status'. Finally, any additional code accumulated
  825. +# from calls to _LT_CONFIG_LIBTOOL_INIT is expanded.
  826. +m4_defun([_LT_CONFIG_COMMANDS],
  827. +[AC_PROVIDE_IFELSE([LT_OUTPUT],
  828. + dnl If the libtool generation code has been placed in $CONFIG_LT,
  829. + dnl instead of duplicating it all over again into config.status,
  830. + dnl then we will have config.status run $CONFIG_LT later, so it
  831. + dnl needs to know what name is stored there:
  832. + [AC_CONFIG_COMMANDS([libtool],
  833. + [$SHELL $CONFIG_LT || AS_EXIT(1)], [CONFIG_LT='$CONFIG_LT'])],
  834. + dnl If the libtool generation code is destined for config.status,
  835. + dnl expand the accumulated commands and init code now:
  836. + [AC_CONFIG_COMMANDS([libtool],
  837. + [_LT_OUTPUT_LIBTOOL_COMMANDS], [_LT_OUTPUT_LIBTOOL_COMMANDS_INIT])])
  838. +])#_LT_CONFIG_COMMANDS
  839. +
  840. +
  841. +# Initialize.
  842. +m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS_INIT],
  843. +[
  844. +
  845. +# The HP-UX ksh and POSIX shell print the target directory to stdout
  846. +# if CDPATH is set.
  847. +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  848. +
  849. +sed_quote_subst='$sed_quote_subst'
  850. +double_quote_subst='$double_quote_subst'
  851. +delay_variable_subst='$delay_variable_subst'
  852. +_LT_CONFIG_STATUS_DECLARATIONS
  853. +LTCC='$LTCC'
  854. +LTCFLAGS='$LTCFLAGS'
  855. +compiler='$compiler_DEFAULT'
  856. +
  857. +# Quote evaled strings.
  858. +for var in lt_decl_all_varnames([[ \
  859. +]], lt_decl_quote_varnames); do
  860. + case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
  861. + *[[\\\\\\\`\\"\\\$]]*)
  862. + eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
  863. ;;
  864. - *64-bit*)
  865. - LD="${LD-ld} -melf64bmip"
  866. + *)
  867. + eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  868. ;;
  869. esac
  870. - else
  871. - case `/usr/bin/file conftest.$ac_objext` in
  872. - *32-bit*)
  873. - LD="${LD-ld} -32"
  874. - ;;
  875. - *N32*)
  876. - LD="${LD-ld} -n32"
  877. +done
  878. +
  879. +# Double-quote double-evaled strings.
  880. +for var in lt_decl_all_varnames([[ \
  881. +]], lt_decl_dquote_varnames); do
  882. + case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
  883. + *[[\\\\\\\`\\"\\\$]]*)
  884. + eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
  885. ;;
  886. - *64-bit*)
  887. - LD="${LD-ld} -64"
  888. + *)
  889. + eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  890. ;;
  891. esac
  892. - fi
  893. - fi
  894. - rm -rf conftest*
  895. - ;;
  896. -
  897. -x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
  898. - # Find out which ABI we are using.
  899. - echo 'int i;' > conftest.$ac_ext
  900. - if AC_TRY_EVAL(ac_compile); then
  901. - case `/usr/bin/file conftest.o` in
  902. - *32-bit*)
  903. - case $host in
  904. - x86_64-*linux*)
  905. - LD="${LD-ld} -m elf_i386"
  906. - ;;
  907. - ppc64-*linux*|powerpc64-*linux*)
  908. - LD="${LD-ld} -m elf32ppclinux"
  909. - ;;
  910. - s390x-*linux*)
  911. - LD="${LD-ld} -m elf_s390"
  912. - ;;
  913. - sparc64-*linux*)
  914. - LD="${LD-ld} -m elf32_sparc"
  915. - ;;
  916. - esac
  917. - ;;
  918. - *64-bit*)
  919. - case $host in
  920. - x86_64-*linux*)
  921. - LD="${LD-ld} -m elf_x86_64"
  922. - ;;
  923. - ppc*-*linux*|powerpc*-*linux*)
  924. - LD="${LD-ld} -m elf64ppc"
  925. - ;;
  926. - s390*-*linux*)
  927. - LD="${LD-ld} -m elf64_s390"
  928. - ;;
  929. - sparc*-*linux*)
  930. - LD="${LD-ld} -m elf64_sparc"
  931. - ;;
  932. - esac
  933. - ;;
  934. - esac
  935. - fi
  936. - rm -rf conftest*
  937. - ;;
  938. -
  939. -*-*-sco3.2v5*)
  940. - # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  941. - SAVE_CFLAGS="$CFLAGS"
  942. - CFLAGS="$CFLAGS -belf"
  943. - AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf,
  944. - [AC_LANG_PUSH(C)
  945. - AC_TRY_LINK([],[],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])
  946. - AC_LANG_POP])
  947. - if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  948. - # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  949. - CFLAGS="$SAVE_CFLAGS"
  950. - fi
  951. - ;;
  952. -sparc*-*solaris*)
  953. - # Find out which ABI we are using.
  954. - echo 'int i;' > conftest.$ac_ext
  955. - if AC_TRY_EVAL(ac_compile); then
  956. - case `/usr/bin/file conftest.o` in
  957. - *64-bit*)
  958. - case $lt_cv_prog_gnu_ld in
  959. - yes*) LD="${LD-ld} -m elf64_sparc" ;;
  960. - *) LD="${LD-ld} -64" ;;
  961. - esac
  962. - ;;
  963. - esac
  964. - fi
  965. - rm -rf conftest*
  966. - ;;
  967. +done
  968. -AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL],
  969. -[*-*-cygwin* | *-*-mingw* | *-*-pw32*)
  970. - AC_CHECK_TOOL(DLLTOOL, dlltool, false)
  971. - AC_CHECK_TOOL(AS, as, false)
  972. - AC_CHECK_TOOL(OBJDUMP, objdump, false)
  973. +# Fix-up fallback echo if it was mangled by the above quoting rules.
  974. +case \$lt_ECHO in
  975. +*'\\\[$]0 --fallback-echo"')dnl "
  976. + lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\[$]0 --fallback-echo"\[$]/\[$]0 --fallback-echo"/'\`
  977. ;;
  978. - ])
  979. esac
  980. -need_locks="$enable_libtool_lock"
  981. +_LT_OUTPUT_LIBTOOL_INIT
  982. +])
  983. -])# _LT_AC_LOCK
  984. +# LT_OUTPUT
  985. +# ---------
  986. +# This macro allows early generation of the libtool script (before
  987. +# AC_OUTPUT is called), incase it is used in configure for compilation
  988. +# tests.
  989. +AC_DEFUN([LT_OUTPUT],
  990. +[: ${CONFIG_LT=./config.lt}
  991. +AC_MSG_NOTICE([creating $CONFIG_LT])
  992. +cat >"$CONFIG_LT" <<_LTEOF
  993. +#! $SHELL
  994. +# Generated by $as_me.
  995. +# Run this file to recreate a libtool stub with the current configuration.
  996. +
  997. +lt_cl_silent=false
  998. +SHELL=\${CONFIG_SHELL-$SHELL}
  999. +_LTEOF
  1000. +
  1001. +cat >>"$CONFIG_LT" <<\_LTEOF
  1002. +AS_SHELL_SANITIZE
  1003. +_AS_PREPARE
  1004. -# AC_LIBTOOL_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
  1005. -# [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE])
  1006. -# ----------------------------------------------------------------
  1007. -# Check whether the given compiler option works
  1008. -AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION],
  1009. -[AC_REQUIRE([LT_AC_PROG_SED])
  1010. -AC_CACHE_CHECK([$1], [$2],
  1011. - [$2=no
  1012. - ifelse([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4])
  1013. - printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  1014. - lt_compiler_flag="$3"
  1015. - # Insert the option either (1) after the last *FLAGS variable, or
  1016. - # (2) before a word containing "conftest.", or (3) at the end.
  1017. - # Note that $ac_compile itself does not contain backslashes and begins
  1018. - # with a dollar sign (not a hyphen), so the echo should work correctly.
  1019. - # The option is referenced via a variable to avoid confusing sed.
  1020. - lt_compile=`echo "$ac_compile" | $SED \
  1021. - -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  1022. - -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
  1023. - -e 's:$: $lt_compiler_flag:'`
  1024. - (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
  1025. - (eval "$lt_compile" 2>conftest.err)
  1026. - ac_status=$?
  1027. - cat conftest.err >&AS_MESSAGE_LOG_FD
  1028. - echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
  1029. - if (exit $ac_status) && test -s "$ac_outfile"; then
  1030. - # The compiler can only warn and ignore the option if not recognized
  1031. - # So say no if there are warnings other than the usual output.
  1032. - $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  1033. - $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  1034. - if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  1035. - $2=yes
  1036. - fi
  1037. - fi
  1038. - $rm conftest*
  1039. -])
  1040. +exec AS_MESSAGE_FD>&1
  1041. +exec AS_MESSAGE_LOG_FD>>config.log
  1042. +{
  1043. + echo
  1044. + AS_BOX([Running $as_me.])
  1045. +} >&AS_MESSAGE_LOG_FD
  1046. +
  1047. +lt_cl_help="\
  1048. +\`$as_me' creates a local libtool stub from the current configuration,
  1049. +for use in further configure time tests before the real libtool is
  1050. +generated.
  1051. +
  1052. +Usage: $[0] [[OPTIONS]]
  1053. +
  1054. + -h, --help print this help, then exit
  1055. + -V, --version print version number, then exit
  1056. + -q, --quiet do not print progress messages
  1057. + -d, --debug don't remove temporary files
  1058. +
  1059. +Report bugs to <bug-libtool@gnu.org>."
  1060. +
  1061. +lt_cl_version="\
  1062. +m4_ifset([AC_PACKAGE_NAME], [AC_PACKAGE_NAME ])config.lt[]dnl
  1063. +m4_ifset([AC_PACKAGE_VERSION], [ AC_PACKAGE_VERSION])
  1064. +configured by $[0], generated by m4_PACKAGE_STRING.
  1065. +
  1066. +Copyright (C) 2008 Free Software Foundation, Inc.
  1067. +This config.lt script is free software; the Free Software Foundation
  1068. +gives unlimited permision to copy, distribute and modify it."
  1069. -if test x"[$]$2" = xyes; then
  1070. - ifelse([$5], , :, [$5])
  1071. -else
  1072. - ifelse([$6], , :, [$6])
  1073. -fi
  1074. -])# AC_LIBTOOL_COMPILER_OPTION
  1075. +while test $[#] != 0
  1076. +do
  1077. + case $[1] in
  1078. + --version | --v* | -V )
  1079. + echo "$lt_cl_version"; exit 0 ;;
  1080. + --help | --h* | -h )
  1081. + echo "$lt_cl_help"; exit 0 ;;
  1082. + --debug | --d* | -d )
  1083. + debug=: ;;
  1084. + --quiet | --q* | --silent | --s* | -q )
  1085. + lt_cl_silent=: ;;
  1086. + -*) AC_MSG_ERROR([unrecognized option: $[1]
  1087. +Try \`$[0] --help' for more information.]) ;;
  1088. -# AC_LIBTOOL_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
  1089. -# [ACTION-SUCCESS], [ACTION-FAILURE])
  1090. -# ------------------------------------------------------------
  1091. -# Check whether the given compiler option works
  1092. -AC_DEFUN([AC_LIBTOOL_LINKER_OPTION],
  1093. -[AC_CACHE_CHECK([$1], [$2],
  1094. - [$2=no
  1095. - save_LDFLAGS="$LDFLAGS"
  1096. - LDFLAGS="$LDFLAGS $3"
  1097. - printf "$lt_simple_link_test_code" > conftest.$ac_ext
  1098. - if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  1099. - # The linker can only warn and ignore the option if not recognized
  1100. - # So say no if there are warnings
  1101. - if test -s conftest.err; then
  1102. - # Append any errors to the config.log.
  1103. - cat conftest.err 1>&AS_MESSAGE_LOG_FD
  1104. - $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
  1105. - $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  1106. - if diff conftest.exp conftest.er2 >/dev/null; then
  1107. - $2=yes
  1108. - fi
  1109. - else
  1110. - $2=yes
  1111. - fi
  1112. - fi
  1113. - $rm conftest*
  1114. - LDFLAGS="$save_LDFLAGS"
  1115. -])
  1116. + *) AC_MSG_ERROR([unrecognized argument: $[1]
  1117. +Try \`$[0] --help' for more information.]) ;;
  1118. + esac
  1119. + shift
  1120. +done
  1121. -if test x"[$]$2" = xyes; then
  1122. - ifelse([$4], , :, [$4])
  1123. -else
  1124. - ifelse([$5], , :, [$5])
  1125. +if $lt_cl_silent; then
  1126. + exec AS_MESSAGE_FD>/dev/null
  1127. fi
  1128. -])# AC_LIBTOOL_LINKER_OPTION
  1129. +_LTEOF
  1130. +cat >>"$CONFIG_LT" <<_LTEOF
  1131. +_LT_OUTPUT_LIBTOOL_COMMANDS_INIT
  1132. +_LTEOF
  1133. +
  1134. +cat >>"$CONFIG_LT" <<\_LTEOF
  1135. +AC_MSG_NOTICE([creating $ofile])
  1136. +_LT_OUTPUT_LIBTOOL_COMMANDS
  1137. +AS_EXIT(0)
  1138. +_LTEOF
  1139. +chmod +x "$CONFIG_LT"
  1140. +
  1141. +# configure is writing to config.log, but config.lt does its own redirection,
  1142. +# appending to config.log, which fails on DOS, as config.log is still kept
  1143. +# open by configure. Here we exec the FD to /dev/null, effectively closing
  1144. +# config.log, so it can be properly (re)opened and appended to by config.lt.
  1145. +if test "$no_create" != yes; then
  1146. + lt_cl_success=:
  1147. + test "$silent" = yes &&
  1148. + lt_config_lt_args="$lt_config_lt_args --quiet"
  1149. + exec AS_MESSAGE_LOG_FD>/dev/null
  1150. + $SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false
  1151. + exec AS_MESSAGE_LOG_FD>>config.log
  1152. + $lt_cl_success || AS_EXIT(1)
  1153. +fi
  1154. +])# LT_OUTPUT
  1155. -# AC_LIBTOOL_SYS_MAX_CMD_LEN
  1156. -# --------------------------
  1157. -AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN],
  1158. -[# find the maximum length of command line arguments
  1159. -AC_MSG_CHECKING([the maximum length of command line arguments])
  1160. -AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl
  1161. - i=0
  1162. - teststring="ABCD"
  1163. - case $build_os in
  1164. - msdosdjgpp*)
  1165. - # On DJGPP, this test can blow up pretty badly due to problems in libc
  1166. - # (any single argument exceeding 2000 bytes causes a buffer overrun
  1167. - # during glob expansion). Even if it were fixed, the result of this
  1168. - # check would be larger than it should be.
  1169. - lt_cv_sys_max_cmd_len=12288; # 12K is about right
  1170. - ;;
  1171. +# _LT_CONFIG(TAG)
  1172. +# ---------------
  1173. +# If TAG is the built-in tag, create an initial libtool script with a
  1174. +# default configuration from the untagged config vars. Otherwise add code
  1175. +# to config.status for appending the configuration named by TAG from the
  1176. +# matching tagged config vars.
  1177. +m4_defun([_LT_CONFIG],
  1178. +[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  1179. +_LT_CONFIG_SAVE_COMMANDS([
  1180. + m4_define([_LT_TAG], m4_if([$1], [], [C], [$1]))dnl
  1181. + m4_if(_LT_TAG, [C], [
  1182. + # See if we are running on zsh, and set the options which allow our
  1183. + # commands through without removal of \ escapes.
  1184. + if test -n "${ZSH_VERSION+set}" ; then
  1185. + setopt NO_GLOB_SUBST
  1186. + fi
  1187. - gnu*)
  1188. - # Under GNU Hurd, this test is not required because there is
  1189. - # no limit to the length of command line arguments.
  1190. - # Libtool will interpret -1 as no limit whatsoever
  1191. - lt_cv_sys_max_cmd_len=-1;
  1192. - ;;
  1193. + cfgfile="${ofile}T"
  1194. + trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  1195. + $RM "$cfgfile"
  1196. - cygwin* | mingw*)
  1197. - # On Win9x/ME, this test blows up -- it succeeds, but takes
  1198. - # about 5 minutes as the teststring grows exponentially.
  1199. - # Worse, since 9x/ME are not pre-emptively multitasking,
  1200. - # you end up with a "frozen" computer, even though with patience
  1201. - # the test eventually succeeds (with a max line length of 256k).
  1202. - # Instead, let's just punt: use the minimum linelength reported by
  1203. - # all of the supported platforms: 8192 (on NT/2K/XP).
  1204. - lt_cv_sys_max_cmd_len=8192;
  1205. - ;;
  1206. + cat <<_LT_EOF >> "$cfgfile"
  1207. +#! $SHELL
  1208. - amigaos*)
  1209. - # On AmigaOS with pdksh, this test takes hours, literally.
  1210. - # So we just punt and use a minimum line length of 8192.
  1211. - lt_cv_sys_max_cmd_len=8192;
  1212. - ;;
  1213. +# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  1214. +# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
  1215. +# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  1216. +# NOTE: Changes made to this file will be lost: look at ltmain.sh.
  1217. +#
  1218. +_LT_COPYING
  1219. +_LT_LIBTOOL_TAGS
  1220. - netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  1221. - # This has been around since 386BSD, at least. Likely further.
  1222. - if test -x /sbin/sysctl; then
  1223. - lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  1224. - elif test -x /usr/sbin/sysctl; then
  1225. - lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  1226. - else
  1227. - lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  1228. - fi
  1229. - # And add a safety zone
  1230. - lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  1231. - lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  1232. - ;;
  1233. +# ### BEGIN LIBTOOL CONFIG
  1234. +_LT_LIBTOOL_CONFIG_VARS
  1235. +_LT_LIBTOOL_TAG_VARS
  1236. +# ### END LIBTOOL CONFIG
  1237. - interix*)
  1238. - # We know the value 262144 and hardcode it with a safety zone (like BSD)
  1239. - lt_cv_sys_max_cmd_len=196608
  1240. - ;;
  1241. +_LT_EOF
  1242. - osf*)
  1243. - # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  1244. - # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  1245. - # nice to cause kernel panics so lets avoid the loop below.
  1246. - # First set a reasonable default.
  1247. - lt_cv_sys_max_cmd_len=16384
  1248. - #
  1249. - if test -x /sbin/sysconfig; then
  1250. - case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  1251. - *1*) lt_cv_sys_max_cmd_len=-1 ;;
  1252. - esac
  1253. - fi
  1254. - ;;
  1255. - sco3.2v5*)
  1256. - lt_cv_sys_max_cmd_len=102400
  1257. - ;;
  1258. - sysv5* | sco5v6* | sysv4.2uw2*)
  1259. - kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  1260. - if test -n "$kargmax"; then
  1261. - lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[ ]]//'`
  1262. - else
  1263. - lt_cv_sys_max_cmd_len=32768
  1264. - fi
  1265. - ;;
  1266. - *)
  1267. - # If test is not a shell built-in, we'll probably end up computing a
  1268. - # maximum length that is only half of the actual maximum length, but
  1269. - # we can't tell.
  1270. - SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  1271. - while (test "X"`$SHELL [$]0 --fallback-echo "X$teststring" 2>/dev/null` \
  1272. - = "XX$teststring") >/dev/null 2>&1 &&
  1273. - new_result=`expr "X$teststring" : ".*" 2>&1` &&
  1274. - lt_cv_sys_max_cmd_len=$new_result &&
  1275. - test $i != 17 # 1/2 MB should be enough
  1276. - do
  1277. - i=`expr $i + 1`
  1278. - teststring=$teststring$teststring
  1279. - done
  1280. - teststring=
  1281. - # Add a significant safety factor because C++ compilers can tack on massive
  1282. - # amounts of additional arguments before passing them to the linker.
  1283. - # It appears as though 1/2 is a usable value.
  1284. - lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  1285. + case $host_os in
  1286. + aix3*)
  1287. + cat <<\_LT_EOF >> "$cfgfile"
  1288. +# AIX sometimes has problems with the GCC collect2 program. For some
  1289. +# reason, if we set the COLLECT_NAMES environment variable, the problems
  1290. +# vanish in a puff of smoke.
  1291. +if test "X${COLLECT_NAMES+set}" != Xset; then
  1292. + COLLECT_NAMES=
  1293. + export COLLECT_NAMES
  1294. +fi
  1295. +_LT_EOF
  1296. ;;
  1297. esac
  1298. -])
  1299. -if test -n $lt_cv_sys_max_cmd_len ; then
  1300. - AC_MSG_RESULT($lt_cv_sys_max_cmd_len)
  1301. -else
  1302. - AC_MSG_RESULT(none)
  1303. -fi
  1304. -])# AC_LIBTOOL_SYS_MAX_CMD_LEN
  1305. +
  1306. + _LT_PROG_LTMAIN
  1307. +
  1308. + # We use sed instead of cat because bash on DJGPP gets confused if
  1309. + # if finds mixed CR/LF and LF-only lines. Since sed operates in
  1310. + # text mode, it properly converts lines to CR/LF. This bash problem
  1311. + # is reportedly fixed, but why not run on old versions too?
  1312. + sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
  1313. + || (rm -f "$cfgfile"; exit 1)
  1314. +
  1315. + _LT_PROG_XSI_SHELLFNS
  1316. +
  1317. + sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
  1318. + || (rm -f "$cfgfile"; exit 1)
  1319. +
  1320. + mv -f "$cfgfile" "$ofile" ||
  1321. + (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  1322. + chmod +x "$ofile"
  1323. +],
  1324. +[cat <<_LT_EOF >> "$ofile"
  1325. +
  1326. +dnl Unfortunately we have to use $1 here, since _LT_TAG is not expanded
  1327. +dnl in a comment (ie after a #).
  1328. +# ### BEGIN LIBTOOL TAG CONFIG: $1
  1329. +_LT_LIBTOOL_TAG_VARS(_LT_TAG)
  1330. +# ### END LIBTOOL TAG CONFIG: $1
  1331. +_LT_EOF
  1332. +])dnl /m4_if
  1333. +],
  1334. +[m4_if([$1], [], [
  1335. + PACKAGE='$PACKAGE'
  1336. + VERSION='$VERSION'
  1337. + TIMESTAMP='$TIMESTAMP'
  1338. + RM='$RM'
  1339. + ofile='$ofile'], [])
  1340. +])dnl /_LT_CONFIG_SAVE_COMMANDS
  1341. +])# _LT_CONFIG
  1342. +
  1343. +
  1344. +# LT_SUPPORTED_TAG(TAG)
  1345. +# ---------------------
  1346. +# Trace this macro to discover what tags are supported by the libtool
  1347. +# --tag option, using:
  1348. +# autoconf --trace 'LT_SUPPORTED_TAG:$1'
  1349. +AC_DEFUN([LT_SUPPORTED_TAG], [])
  1350. +
  1351. +
  1352. +# C support is built-in for now
  1353. +m4_define([_LT_LANG_C_enabled], [])
  1354. +m4_define([_LT_TAGS], [])
  1355. +
  1356. +
  1357. +# LT_LANG(LANG)
  1358. +# -------------
  1359. +# Enable libtool support for the given language if not already enabled.
  1360. +AC_DEFUN([LT_LANG],
  1361. +[AC_BEFORE([$0], [LT_OUTPUT])dnl
  1362. +m4_case([$1],
  1363. + [C], [_LT_LANG(C)],
  1364. + [C++], [_LT_LANG(CXX)],
  1365. + [Java], [_LT_LANG(GCJ)],
  1366. + [Fortran 77], [_LT_LANG(F77)],
  1367. + [Fortran], [_LT_LANG(FC)],
  1368. + [Windows Resource], [_LT_LANG(RC)],
  1369. + [m4_ifdef([_LT_LANG_]$1[_CONFIG],
  1370. + [_LT_LANG($1)],
  1371. + [m4_fatal([$0: unsupported language: "$1"])])])dnl
  1372. +])# LT_LANG
  1373. -# _LT_AC_CHECK_DLFCN
  1374. +# _LT_LANG(LANGNAME)
  1375. # ------------------
  1376. -AC_DEFUN([_LT_AC_CHECK_DLFCN],
  1377. -[AC_CHECK_HEADERS(dlfcn.h)dnl
  1378. -])# _LT_AC_CHECK_DLFCN
  1379. +m4_defun([_LT_LANG],
  1380. +[m4_ifdef([_LT_LANG_]$1[_enabled], [],
  1381. + [LT_SUPPORTED_TAG([$1])dnl
  1382. + m4_append([_LT_TAGS], [$1 ])dnl
  1383. + m4_define([_LT_LANG_]$1[_enabled], [])dnl
  1384. + _LT_LANG_$1_CONFIG($1)])dnl
  1385. +])# _LT_LANG
  1386. -# _LT_AC_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
  1387. -# ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
  1388. -# ---------------------------------------------------------------------
  1389. -AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF],
  1390. -[AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
  1391. -if test "$cross_compiling" = yes; then :
  1392. - [$4]
  1393. -else
  1394. - lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  1395. - lt_status=$lt_dlunknown
  1396. - cat > conftest.$ac_ext <<EOF
  1397. -[#line __oline__ "configure"
  1398. -#include "confdefs.h"
  1399. +# _LT_LANG_DEFAULT_CONFIG
  1400. +# -----------------------
  1401. +m4_defun([_LT_LANG_DEFAULT_CONFIG],
  1402. +[AC_PROVIDE_IFELSE([AC_PROG_CXX],
  1403. + [LT_LANG(CXX)],
  1404. + [m4_define([AC_PROG_CXX], defn([AC_PROG_CXX])[LT_LANG(CXX)])])
  1405. +
  1406. +AC_PROVIDE_IFELSE([AC_PROG_F77],
  1407. + [LT_LANG(F77)],
  1408. + [m4_define([AC_PROG_F77], defn([AC_PROG_F77])[LT_LANG(F77)])])
  1409. +
  1410. +AC_PROVIDE_IFELSE([AC_PROG_FC],
  1411. + [LT_LANG(FC)],
  1412. + [m4_define([AC_PROG_FC], defn([AC_PROG_FC])[LT_LANG(FC)])])
  1413. +
  1414. +dnl The call to [A][M_PROG_GCJ] is quoted like that to stop aclocal
  1415. +dnl pulling things in needlessly.
  1416. +AC_PROVIDE_IFELSE([AC_PROG_GCJ],
  1417. + [LT_LANG(GCJ)],
  1418. + [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],
  1419. + [LT_LANG(GCJ)],
  1420. + [AC_PROVIDE_IFELSE([LT_PROG_GCJ],
  1421. + [LT_LANG(GCJ)],
  1422. + [m4_ifdef([AC_PROG_GCJ],
  1423. + [m4_define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[LT_LANG(GCJ)])])
  1424. + m4_ifdef([A][M_PROG_GCJ],
  1425. + [m4_define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[LT_LANG(GCJ)])])
  1426. + m4_ifdef([LT_PROG_GCJ],
  1427. + [m4_define([LT_PROG_GCJ], defn([LT_PROG_GCJ])[LT_LANG(GCJ)])])])])])
  1428. +
  1429. +AC_PROVIDE_IFELSE([LT_PROG_RC],
  1430. + [LT_LANG(RC)],
  1431. + [m4_define([LT_PROG_RC], defn([LT_PROG_RC])[LT_LANG(RC)])])
  1432. +])# _LT_LANG_DEFAULT_CONFIG
  1433. +
  1434. +# Obsolete macros:
  1435. +AU_DEFUN([AC_LIBTOOL_CXX], [LT_LANG(C++)])
  1436. +AU_DEFUN([AC_LIBTOOL_F77], [LT_LANG(Fortran 77)])
  1437. +AU_DEFUN([AC_LIBTOOL_FC], [LT_LANG(Fortran)])
  1438. +AU_DEFUN([AC_LIBTOOL_GCJ], [LT_LANG(Java)])
  1439. +dnl aclocal-1.4 backwards compatibility:
  1440. +dnl AC_DEFUN([AC_LIBTOOL_CXX], [])
  1441. +dnl AC_DEFUN([AC_LIBTOOL_F77], [])
  1442. +dnl AC_DEFUN([AC_LIBTOOL_FC], [])
  1443. +dnl AC_DEFUN([AC_LIBTOOL_GCJ], [])
  1444. -#if HAVE_DLFCN_H
  1445. -#include <dlfcn.h>
  1446. -#endif
  1447. -#include <stdio.h>
  1448. +# _LT_TAG_COMPILER
  1449. +# ----------------
  1450. +m4_defun([_LT_TAG_COMPILER],
  1451. +[AC_REQUIRE([AC_PROG_CC])dnl
  1452. -#ifdef RTLD_GLOBAL
  1453. -# define LT_DLGLOBAL RTLD_GLOBAL
  1454. -#else
  1455. -# ifdef DL_GLOBAL
  1456. -# define LT_DLGLOBAL DL_GLOBAL
  1457. -# else
  1458. -# define LT_DLGLOBAL 0
  1459. -# endif
  1460. -#endif
  1461. +_LT_DECL([LTCC], [CC], [1], [A C compiler])dnl
  1462. +_LT_DECL([LTCFLAGS], [CFLAGS], [1], [LTCC compiler flags])dnl
  1463. +_LT_TAGDECL([CC], [compiler], [1], [A language specific compiler])dnl
  1464. +_LT_TAGDECL([with_gcc], [GCC], [0], [Is the compiler the GNU compiler?])dnl
  1465. -/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  1466. - find out it does not work in some platform. */
  1467. -#ifndef LT_DLLAZY_OR_NOW
  1468. -# ifdef RTLD_LAZY
  1469. -# define LT_DLLAZY_OR_NOW RTLD_LAZY
  1470. -# else
  1471. -# ifdef DL_LAZY
  1472. -# define LT_DLLAZY_OR_NOW DL_LAZY
  1473. -# else
  1474. -# ifdef RTLD_NOW
  1475. -# define LT_DLLAZY_OR_NOW RTLD_NOW
  1476. -# else
  1477. -# ifdef DL_NOW
  1478. -# define LT_DLLAZY_OR_NOW DL_NOW
  1479. -# else
  1480. -# define LT_DLLAZY_OR_NOW 0
  1481. -# endif
  1482. -# endif
  1483. -# endif
  1484. -# endif
  1485. -#endif
  1486. +# If no C compiler was specified, use CC.
  1487. +LTCC=${LTCC-"$CC"}
  1488. -#ifdef __cplusplus
  1489. -extern "C" void exit (int);
  1490. -#endif
  1491. +# If no C compiler flags were specified, use CFLAGS.
  1492. +LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  1493. -void fnord() { int i=42;}
  1494. -int main ()
  1495. -{
  1496. - void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  1497. - int status = $lt_dlunknown;
  1498. +# Allow CC to be a program name with arguments.
  1499. +compiler=$CC
  1500. +])# _LT_TAG_COMPILER
  1501. - if (self)
  1502. - {
  1503. - if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  1504. - else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  1505. - /* dlclose (self); */
  1506. - }
  1507. - else
  1508. - puts (dlerror ());
  1509. - exit (status);
  1510. -}]
  1511. -EOF
  1512. - if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then
  1513. - (./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null
  1514. - lt_status=$?
  1515. - case x$lt_status in
  1516. - x$lt_dlno_uscore) $1 ;;
  1517. - x$lt_dlneed_uscore) $2 ;;
  1518. - x$lt_dlunknown|x*) $3 ;;
  1519. - esac
  1520. - else :
  1521. - # compilation failed
  1522. - $3
  1523. - fi
  1524. -fi
  1525. -rm -fr conftest*
  1526. -])# _LT_AC_TRY_DLOPEN_SELF
  1527. +# _LT_COMPILER_BOILERPLATE
  1528. +# ------------------------
  1529. +# Check for compiler boilerplate output or warnings with
  1530. +# the simple compiler test code.
  1531. +m4_defun([_LT_COMPILER_BOILERPLATE],
  1532. +[m4_require([_LT_DECL_SED])dnl
  1533. +ac_outfile=conftest.$ac_objext
  1534. +echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  1535. +eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  1536. +_lt_compiler_boilerplate=`cat conftest.err`
  1537. +$RM conftest*
  1538. +])# _LT_COMPILER_BOILERPLATE
  1539. -# AC_LIBTOOL_DLOPEN_SELF
  1540. +# _LT_LINKER_BOILERPLATE
  1541. # ----------------------
  1542. -AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF],
  1543. -[AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
  1544. -if test "x$enable_dlopen" != xyes; then
  1545. - enable_dlopen=unknown
  1546. - enable_dlopen_self=unknown
  1547. - enable_dlopen_self_static=unknown
  1548. -else
  1549. - lt_cv_dlopen=no
  1550. - lt_cv_dlopen_libs=
  1551. +# Check for linker boilerplate output or warnings with
  1552. +# the simple link test code.
  1553. +m4_defun([_LT_LINKER_BOILERPLATE],
  1554. +[m4_require([_LT_DECL_SED])dnl
  1555. +ac_outfile=conftest.$ac_objext
  1556. +echo "$lt_simple_link_test_code" >conftest.$ac_ext
  1557. +eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  1558. +_lt_linker_boilerplate=`cat conftest.err`
  1559. +$RM -r conftest*
  1560. +])# _LT_LINKER_BOILERPLATE
  1561. +# _LT_REQUIRED_DARWIN_CHECKS
  1562. +# -------------------------
  1563. +m4_defun_once([_LT_REQUIRED_DARWIN_CHECKS],[
  1564. case $host_os in
  1565. - beos*)
  1566. - lt_cv_dlopen="load_add_on"
  1567. - lt_cv_dlopen_libs=
  1568. - lt_cv_dlopen_self=yes
  1569. - ;;
  1570. -
  1571. - mingw* | pw32*)
  1572. - lt_cv_dlopen="LoadLibrary"
  1573. - lt_cv_dlopen_libs=
  1574. - ;;
  1575. -
  1576. - cygwin*)
  1577. - lt_cv_dlopen="dlopen"
  1578. - lt_cv_dlopen_libs=
  1579. - ;;
  1580. -
  1581. - darwin*)
  1582. - # if libdl is installed we need to link against it
  1583. - AC_CHECK_LIB([dl], [dlopen],
  1584. - [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],[
  1585. - lt_cv_dlopen="dyld"
  1586. - lt_cv_dlopen_libs=
  1587. - lt_cv_dlopen_self=yes
  1588. + rhapsody* | darwin*)
  1589. + AC_CHECK_TOOL([DSYMUTIL], [dsymutil], [:])
  1590. + AC_CHECK_TOOL([NMEDIT], [nmedit], [:])
  1591. + AC_CHECK_TOOL([LIPO], [lipo], [:])
  1592. + AC_CHECK_TOOL([OTOOL], [otool], [:])
  1593. + AC_CHECK_TOOL([OTOOL64], [otool64], [:])
  1594. + _LT_DECL([], [DSYMUTIL], [1],
  1595. + [Tool to manipulate archived DWARF debug symbol files on Mac OS X])
  1596. + _LT_DECL([], [NMEDIT], [1],
  1597. + [Tool to change global to local symbols on Mac OS X])
  1598. + _LT_DECL([], [LIPO], [1],
  1599. + [Tool to manipulate fat objects and archives on Mac OS X])
  1600. + _LT_DECL([], [OTOOL], [1],
  1601. + [ldd/readelf like tool for Mach-O binaries on Mac OS X])
  1602. + _LT_DECL([], [OTOOL64], [1],
  1603. + [ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4])
  1604. +
  1605. + AC_CACHE_CHECK([for -single_module linker flag],[lt_cv_apple_cc_single_mod],
  1606. + [lt_cv_apple_cc_single_mod=no
  1607. + if test -z "${LT_MULTI_MODULE}"; then
  1608. + # By default we will add the -single_module flag. You can override
  1609. + # by either setting the environment variable LT_MULTI_MODULE
  1610. + # non-empty at configure time, or by adding -multi_module to the
  1611. + # link flags.
  1612. + rm -rf libconftest.dylib*
  1613. + echo "int foo(void){return 1;}" > conftest.c
  1614. + echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  1615. +-dynamiclib -Wl,-single_module conftest.c" >&AS_MESSAGE_LOG_FD
  1616. + $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  1617. + -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  1618. + _lt_result=$?
  1619. + if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
  1620. + lt_cv_apple_cc_single_mod=yes
  1621. + else
  1622. + cat conftest.err >&AS_MESSAGE_LOG_FD
  1623. + fi
  1624. + rm -rf libconftest.dylib*
  1625. + rm -f conftest.*
  1626. + fi])
  1627. + AC_CACHE_CHECK([for -exported_symbols_list linker flag],
  1628. + [lt_cv_ld_exported_symbols_list],
  1629. + [lt_cv_ld_exported_symbols_list=no
  1630. + save_LDFLAGS=$LDFLAGS
  1631. + echo "_main" > conftest.sym
  1632. + LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  1633. + AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
  1634. + [lt_cv_ld_exported_symbols_list=yes],
  1635. + [lt_cv_ld_exported_symbols_list=no])
  1636. + LDFLAGS="$save_LDFLAGS"
  1637. ])
  1638. - ;;
  1639. -
  1640. - *)
  1641. - AC_CHECK_FUNC([shl_load],
  1642. - [lt_cv_dlopen="shl_load"],
  1643. - [AC_CHECK_LIB([dld], [shl_load],
  1644. - [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"],
  1645. - [AC_CHECK_FUNC([dlopen],
  1646. - [lt_cv_dlopen="dlopen"],
  1647. - [AC_CHECK_LIB([dl], [dlopen],
  1648. - [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],
  1649. - [AC_CHECK_LIB([svld], [dlopen],
  1650. - [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"],
  1651. - [AC_CHECK_LIB([dld], [dld_link],
  1652. - [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"])
  1653. - ])
  1654. - ])
  1655. - ])
  1656. - ])
  1657. - ])
  1658. + case $host_os in
  1659. + rhapsody* | darwin1.[[012]])
  1660. + _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
  1661. + darwin1.*)
  1662. + _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  1663. + darwin*) # darwin 5.x on
  1664. + # if running on 10.5 or later, the deployment target defaults
  1665. + # to the OS version, if on x86, and 10.4, the deployment
  1666. + # target defaults to 10.4. Don't you love it?
  1667. + case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
  1668. + 10.0,*86*-darwin8*|10.0,*-darwin[[91]]*)
  1669. + _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  1670. + 10.[[012]]*)
  1671. + _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  1672. + 10.*)
  1673. + _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  1674. + esac
  1675. + ;;
  1676. + esac
  1677. + if test "$lt_cv_apple_cc_single_mod" = "yes"; then
  1678. + _lt_dar_single_mod='$single_module'
  1679. + fi
  1680. + if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
  1681. + _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
  1682. + else
  1683. + _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
  1684. + fi
  1685. + if test "$DSYMUTIL" != ":"; then
  1686. + _lt_dsymutil='~$DSYMUTIL $lib || :'
  1687. + else
  1688. + _lt_dsymutil=
  1689. + fi
  1690. ;;
  1691. esac
  1692. +])
  1693. - if test "x$lt_cv_dlopen" != xno; then
  1694. - enable_dlopen=yes
  1695. +
  1696. +# _LT_DARWIN_LINKER_FEATURES
  1697. +# --------------------------
  1698. +# Checks for linker and compiler features on darwin
  1699. +m4_defun([_LT_DARWIN_LINKER_FEATURES],
  1700. +[
  1701. + m4_require([_LT_REQUIRED_DARWIN_CHECKS])
  1702. + _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  1703. + _LT_TAGVAR(hardcode_direct, $1)=no
  1704. + _LT_TAGVAR(hardcode_automatic, $1)=yes
  1705. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
  1706. + _LT_TAGVAR(whole_archive_flag_spec, $1)=''
  1707. + _LT_TAGVAR(link_all_deplibs, $1)=yes
  1708. + _LT_TAGVAR(allow_undefined_flag, $1)="$_lt_dar_allow_undefined"
  1709. + case $cc_basename in
  1710. + ifort*) _lt_dar_can_shared=yes ;;
  1711. + *) _lt_dar_can_shared=$GCC ;;
  1712. + esac
  1713. + if test "$_lt_dar_can_shared" = "yes"; then
  1714. + output_verbose_link_cmd=echo
  1715. + _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}"
  1716. + _LT_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  1717. + _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}"
  1718. + _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}"
  1719. + m4_if([$1], [CXX],
  1720. +[ if test "$lt_cv_apple_cc_single_mod" != "yes"; then
  1721. + _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}"
  1722. + _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}"
  1723. + fi
  1724. +],[])
  1725. else
  1726. - enable_dlopen=no
  1727. + _LT_TAGVAR(ld_shlibs, $1)=no
  1728. fi
  1729. +])
  1730. - case $lt_cv_dlopen in
  1731. - dlopen)
  1732. - save_CPPFLAGS="$CPPFLAGS"
  1733. - test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  1734. -
  1735. - save_LDFLAGS="$LDFLAGS"
  1736. - wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  1737. +# _LT_SYS_MODULE_PATH_AIX
  1738. +# -----------------------
  1739. +# Links a minimal program and checks the executable
  1740. +# for the system default hardcoded library path. In most cases,
  1741. +# this is /usr/lib:/lib, but when the MPI compilers are used
  1742. +# the location of the communication and MPI libs are included too.
  1743. +# If we don't find anything, use the default library path according
  1744. +# to the aix ld manual.
  1745. +m4_defun([_LT_SYS_MODULE_PATH_AIX],
  1746. +[m4_require([_LT_DECL_SED])dnl
  1747. +AC_LINK_IFELSE(AC_LANG_PROGRAM,[
  1748. +lt_aix_libpath_sed='
  1749. + /Import File Strings/,/^$/ {
  1750. + /^0/ {
  1751. + s/^0 *\(.*\)$/\1/
  1752. + p
  1753. + }
  1754. + }'
  1755. +aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  1756. +# Check for a 64-bit object if we didn't find anything.
  1757. +if test -z "$aix_libpath"; then
  1758. + aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  1759. +fi],[])
  1760. +if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  1761. +])# _LT_SYS_MODULE_PATH_AIX
  1762. - save_LIBS="$LIBS"
  1763. - LIBS="$lt_cv_dlopen_libs $LIBS"
  1764. - AC_CACHE_CHECK([whether a program can dlopen itself],
  1765. - lt_cv_dlopen_self, [dnl
  1766. - _LT_AC_TRY_DLOPEN_SELF(
  1767. - lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes,
  1768. - lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross)
  1769. - ])
  1770. +# _LT_SHELL_INIT(ARG)
  1771. +# -------------------
  1772. +m4_define([_LT_SHELL_INIT],
  1773. +[ifdef([AC_DIVERSION_NOTICE],
  1774. + [AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)],
  1775. + [AC_DIVERT_PUSH(NOTICE)])
  1776. +$1
  1777. +AC_DIVERT_POP
  1778. +])# _LT_SHELL_INIT
  1779. - if test "x$lt_cv_dlopen_self" = xyes; then
  1780. - wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  1781. - AC_CACHE_CHECK([whether a statically linked program can dlopen itself],
  1782. - lt_cv_dlopen_self_static, [dnl
  1783. - _LT_AC_TRY_DLOPEN_SELF(
  1784. - lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes,
  1785. - lt_cv_dlopen_self_static=no, lt_cv_dlopen_self_static=cross)
  1786. - ])
  1787. - fi
  1788. - CPPFLAGS="$save_CPPFLAGS"
  1789. - LDFLAGS="$save_LDFLAGS"
  1790. - LIBS="$save_LIBS"
  1791. - ;;
  1792. - esac
  1793. +# _LT_PROG_ECHO_BACKSLASH
  1794. +# -----------------------
  1795. +# Add some code to the start of the generated configure script which
  1796. +# will find an echo command which doesn't interpret backslashes.
  1797. +m4_defun([_LT_PROG_ECHO_BACKSLASH],
  1798. +[_LT_SHELL_INIT([
  1799. +# Check that we are running under the correct shell.
  1800. +SHELL=${CONFIG_SHELL-/bin/sh}
  1801. - case $lt_cv_dlopen_self in
  1802. - yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  1803. - *) enable_dlopen_self=unknown ;;
  1804. - esac
  1805. +case X$lt_ECHO in
  1806. +X*--fallback-echo)
  1807. + # Remove one level of quotation (which was required for Make).
  1808. + ECHO=`echo "$lt_ECHO" | sed 's,\\\\\[$]\\[$]0,'[$]0','`
  1809. + ;;
  1810. +esac
  1811. - case $lt_cv_dlopen_self_static in
  1812. - yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  1813. - *) enable_dlopen_self_static=unknown ;;
  1814. - esac
  1815. +ECHO=${lt_ECHO-echo}
  1816. +if test "X[$]1" = X--no-reexec; then
  1817. + # Discard the --no-reexec flag, and continue.
  1818. + shift
  1819. +elif test "X[$]1" = X--fallback-echo; then
  1820. + # Avoid inline document here, it may be left over
  1821. + :
  1822. +elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
  1823. + # Yippee, $ECHO works!
  1824. + :
  1825. +else
  1826. + # Restart under the correct shell.
  1827. + exec $SHELL "[$]0" --no-reexec ${1+"[$]@"}
  1828. fi
  1829. -])# AC_LIBTOOL_DLOPEN_SELF
  1830. -
  1831. -# AC_LIBTOOL_PROG_CC_C_O([TAGNAME])
  1832. -# ---------------------------------
  1833. -# Check to see if options -c and -o are simultaneously supported by compiler
  1834. -AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O],
  1835. -[AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
  1836. -AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext],
  1837. - [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)],
  1838. - [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no
  1839. - $rm -r conftest 2>/dev/null
  1840. - mkdir conftest
  1841. - cd conftest
  1842. - mkdir out
  1843. - printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  1844. +if test "X[$]1" = X--fallback-echo; then
  1845. + # used as fallback echo
  1846. + shift
  1847. + cat <<_LT_EOF
  1848. +[$]*
  1849. +_LT_EOF
  1850. + exit 0
  1851. +fi
  1852. - lt_compiler_flag="-o out/conftest2.$ac_objext"
  1853. - # Insert the option either (1) after the last *FLAGS variable, or
  1854. - # (2) before a word containing "conftest.", or (3) at the end.
  1855. - # Note that $ac_compile itself does not contain backslashes and begins
  1856. - # with a dollar sign (not a hyphen), so the echo should work correctly.
  1857. - lt_compile=`echo "$ac_compile" | $SED \
  1858. - -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  1859. - -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
  1860. - -e 's:$: $lt_compiler_flag:'`
  1861. - (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
  1862. - (eval "$lt_compile" 2>out/conftest.err)
  1863. - ac_status=$?
  1864. - cat out/conftest.err >&AS_MESSAGE_LOG_FD
  1865. - echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
  1866. - if (exit $ac_status) && test -s out/conftest2.$ac_objext
  1867. - then
  1868. - # The compiler can only warn and ignore the option if not recognized
  1869. - # So say no if there are warnings
  1870. - $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  1871. - $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  1872. - if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  1873. - _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
  1874. - fi
  1875. - fi
  1876. - chmod u+w . 2>&AS_MESSAGE_LOG_FD
  1877. - $rm conftest*
  1878. - # SGI C++ compiler will create directory out/ii_files/ for
  1879. - # template instantiation
  1880. - test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
  1881. - $rm out/* && rmdir out
  1882. - cd ..
  1883. - rmdir conftest
  1884. - $rm conftest*
  1885. -])
  1886. -])# AC_LIBTOOL_PROG_CC_C_O
  1887. +# The HP-UX ksh and POSIX shell print the target directory to stdout
  1888. +# if CDPATH is set.
  1889. +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  1890. +if test -z "$lt_ECHO"; then
  1891. + if test "X${echo_test_string+set}" != Xset; then
  1892. + # find a string as large as possible, as long as the shell can cope with it
  1893. + for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do
  1894. + # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
  1895. + if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
  1896. + { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
  1897. + then
  1898. + break
  1899. + fi
  1900. + done
  1901. + fi
  1902. -# AC_LIBTOOL_SYS_HARD_LINK_LOCKS([TAGNAME])
  1903. -# -----------------------------------------
  1904. -# Check to see if we can do hard links to lock some files if needed
  1905. -AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS],
  1906. -[AC_REQUIRE([_LT_AC_LOCK])dnl
  1907. + if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
  1908. + echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
  1909. + test "X$echo_testing_string" = "X$echo_test_string"; then
  1910. + :
  1911. + else
  1912. + # The Solaris, AIX, and Digital Unix default echo programs unquote
  1913. + # backslashes. This makes it impossible to quote backslashes using
  1914. + # echo "$something" | sed 's/\\/\\\\/g'
  1915. + #
  1916. + # So, first we look for a working echo in the user's PATH.
  1917. -hard_links="nottested"
  1918. -if test "$_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" != no; then
  1919. - # do not overwrite the value of need_locks provided by the user
  1920. - AC_MSG_CHECKING([if we can lock with hard links])
  1921. - hard_links=yes
  1922. - $rm conftest*
  1923. - ln conftest.a conftest.b 2>/dev/null && hard_links=no
  1924. - touch conftest.a
  1925. - ln conftest.a conftest.b 2>&5 || hard_links=no
  1926. - ln conftest.a conftest.b 2>/dev/null && hard_links=no
  1927. - AC_MSG_RESULT([$hard_links])
  1928. - if test "$hard_links" = no; then
  1929. - AC_MSG_WARN([`$CC' does not support `-c -o', so `make -j' may be unsafe])
  1930. - need_locks=warn
  1931. - fi
  1932. -else
  1933. - need_locks=no
  1934. -fi
  1935. -])# AC_LIBTOOL_SYS_HARD_LINK_LOCKS
  1936. -
  1937. -
  1938. -# AC_LIBTOOL_OBJDIR
  1939. -# -----------------
  1940. -AC_DEFUN([AC_LIBTOOL_OBJDIR],
  1941. -[AC_CACHE_CHECK([for objdir], [lt_cv_objdir],
  1942. -[rm -f .libs 2>/dev/null
  1943. -mkdir .libs 2>/dev/null
  1944. -if test -d .libs; then
  1945. - lt_cv_objdir=.libs
  1946. -else
  1947. - # MS-DOS does not allow filenames that begin with a dot.
  1948. - lt_cv_objdir=_libs
  1949. -fi
  1950. -rmdir .libs 2>/dev/null])
  1951. -objdir=$lt_cv_objdir
  1952. -])# AC_LIBTOOL_OBJDIR
  1953. + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  1954. + for dir in $PATH /usr/ucb; do
  1955. + IFS="$lt_save_ifs"
  1956. + if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
  1957. + test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
  1958. + echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
  1959. + test "X$echo_testing_string" = "X$echo_test_string"; then
  1960. + ECHO="$dir/echo"
  1961. + break
  1962. + fi
  1963. + done
  1964. + IFS="$lt_save_ifs"
  1965. + if test "X$ECHO" = Xecho; then
  1966. + # We didn't find a better echo, so look for alternatives.
  1967. + if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
  1968. + echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
  1969. + test "X$echo_testing_string" = "X$echo_test_string"; then
  1970. + # This shell has a builtin print -r that does the trick.
  1971. + ECHO='print -r'
  1972. + elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
  1973. + test "X$CONFIG_SHELL" != X/bin/ksh; then
  1974. + # If we have ksh, try running configure again with it.
  1975. + ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
  1976. + export ORIGINAL_CONFIG_SHELL
  1977. + CONFIG_SHELL=/bin/ksh
  1978. + export CONFIG_SHELL
  1979. + exec $CONFIG_SHELL "[$]0" --no-reexec ${1+"[$]@"}
  1980. + else
  1981. + # Try using printf.
  1982. + ECHO='printf %s\n'
  1983. + if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
  1984. + echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
  1985. + test "X$echo_testing_string" = "X$echo_test_string"; then
  1986. + # Cool, printf works
  1987. + :
  1988. + elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
  1989. + test "X$echo_testing_string" = 'X\t' &&
  1990. + echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  1991. + test "X$echo_testing_string" = "X$echo_test_string"; then
  1992. + CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
  1993. + export CONFIG_SHELL
  1994. + SHELL="$CONFIG_SHELL"
  1995. + export SHELL
  1996. + ECHO="$CONFIG_SHELL [$]0 --fallback-echo"
  1997. + elif echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
  1998. + test "X$echo_testing_string" = 'X\t' &&
  1999. + echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  2000. + test "X$echo_testing_string" = "X$echo_test_string"; then
  2001. + ECHO="$CONFIG_SHELL [$]0 --fallback-echo"
  2002. + else
  2003. + # maybe with a smaller string...
  2004. + prev=:
  2005. -# AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH([TAGNAME])
  2006. -# ----------------------------------------------
  2007. -# Check hardcoding attributes.
  2008. -AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH],
  2009. -[AC_MSG_CHECKING([how to hardcode library paths into programs])
  2010. -_LT_AC_TAGVAR(hardcode_action, $1)=
  2011. -if test -n "$_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)" || \
  2012. - test -n "$_LT_AC_TAGVAR(runpath_var, $1)" || \
  2013. - test "X$_LT_AC_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then
  2014. + for cmd in 'echo test' 'sed 2q "[$]0"' 'sed 10q "[$]0"' 'sed 20q "[$]0"' 'sed 50q "[$]0"'; do
  2015. + if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
  2016. + then
  2017. + break
  2018. + fi
  2019. + prev="$cmd"
  2020. + done
  2021. - # We can hardcode non-existant directories.
  2022. - if test "$_LT_AC_TAGVAR(hardcode_direct, $1)" != no &&
  2023. - # If the only mechanism to avoid hardcoding is shlibpath_var, we
  2024. - # have to relink, otherwise we might link with an installed library
  2025. - # when we should be linking with a yet-to-be-installed one
  2026. - ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)" != no &&
  2027. - test "$_LT_AC_TAGVAR(hardcode_minus_L, $1)" != no; then
  2028. - # Linking always hardcodes the temporary library directory.
  2029. - _LT_AC_TAGVAR(hardcode_action, $1)=relink
  2030. - else
  2031. - # We can link without hardcoding, and we can hardcode nonexisting dirs.
  2032. - _LT_AC_TAGVAR(hardcode_action, $1)=immediate
  2033. + if test "$prev" != 'sed 50q "[$]0"'; then
  2034. + echo_test_string=`eval $prev`
  2035. + export echo_test_string
  2036. + exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "[$]0" ${1+"[$]@"}
  2037. + else
  2038. + # Oops. We lost completely, so just stick with echo.
  2039. + ECHO=echo
  2040. + fi
  2041. + fi
  2042. + fi
  2043. + fi
  2044. fi
  2045. -else
  2046. - # We cannot hardcode anything, or else we can only hardcode existing
  2047. - # directories.
  2048. - _LT_AC_TAGVAR(hardcode_action, $1)=unsupported
  2049. fi
  2050. -AC_MSG_RESULT([$_LT_AC_TAGVAR(hardcode_action, $1)])
  2051. -if test "$_LT_AC_TAGVAR(hardcode_action, $1)" = relink; then
  2052. - # Fast installation is not supported
  2053. - enable_fast_install=no
  2054. -elif test "$shlibpath_overrides_runpath" = yes ||
  2055. - test "$enable_shared" = no; then
  2056. - # Fast installation is not necessary
  2057. - enable_fast_install=needless
  2058. +# Copy echo and quote the copy suitably for passing to libtool from
  2059. +# the Makefile, instead of quoting the original, which is used later.
  2060. +lt_ECHO=$ECHO
  2061. +if test "X$lt_ECHO" = "X$CONFIG_SHELL [$]0 --fallback-echo"; then
  2062. + lt_ECHO="$CONFIG_SHELL \\\$\[$]0 --fallback-echo"
  2063. fi
  2064. -])# AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH
  2065. +AC_SUBST(lt_ECHO)
  2066. +])
  2067. +_LT_DECL([], [SHELL], [1], [Shell to use when invoking shell scripts])
  2068. +_LT_DECL([], [ECHO], [1],
  2069. + [An echo program that does not interpret backslashes])
  2070. +])# _LT_PROG_ECHO_BACKSLASH
  2071. -# AC_LIBTOOL_SYS_LIB_STRIP
  2072. -# ------------------------
  2073. -AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP],
  2074. -[striplib=
  2075. -old_striplib=
  2076. -AC_MSG_CHECKING([whether stripping libraries is possible])
  2077. -if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
  2078. - test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  2079. - test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  2080. - AC_MSG_RESULT([yes])
  2081. -else
  2082. -# FIXME - insert some real tests, host_os isn't really good enough
  2083. - case $host_os in
  2084. - darwin*)
  2085. - if test -n "$STRIP" ; then
  2086. - striplib="$STRIP -x"
  2087. - AC_MSG_RESULT([yes])
  2088. - else
  2089. - AC_MSG_RESULT([no])
  2090. -fi
  2091. - ;;
  2092. - *)
  2093. - AC_MSG_RESULT([no])
  2094. - ;;
  2095. - esac
  2096. -fi
  2097. -])# AC_LIBTOOL_SYS_LIB_STRIP
  2098. +# _LT_ENABLE_LOCK
  2099. +# ---------------
  2100. +m4_defun([_LT_ENABLE_LOCK],
  2101. +[AC_ARG_ENABLE([libtool-lock],
  2102. + [AS_HELP_STRING([--disable-libtool-lock],
  2103. + [avoid locking (might break parallel builds)])])
  2104. +test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  2105. -# AC_LIBTOOL_SYS_DYNAMIC_LINKER
  2106. -# -----------------------------
  2107. -# PORTME Fill in your ld.so characteristics
  2108. -AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER],
  2109. -[AC_MSG_CHECKING([dynamic linker characteristics])
  2110. -library_names_spec=
  2111. -libname_spec='lib$name'
  2112. -soname_spec=
  2113. -shrext_cmds=".so"
  2114. -postinstall_cmds=
  2115. -postuninstall_cmds=
  2116. -finish_cmds=
  2117. -finish_eval=
  2118. -shlibpath_var=
  2119. -shlibpath_overrides_runpath=unknown
  2120. -version_type=none
  2121. -dynamic_linker="$host_os ld.so"
  2122. -sys_lib_dlsearch_path_spec="/lib /usr/lib"
  2123. -if test "$GCC" = yes; then
  2124. - sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  2125. - if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
  2126. - # if the path contains ";" then we assume it to be the separator
  2127. - # otherwise default to the standard path separator (i.e. ":") - it is
  2128. - # assumed that no part of a normal pathname contains ";" but that should
  2129. - # okay in the real world where ";" in dirpaths is itself problematic.
  2130. - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  2131. - else
  2132. - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  2133. +# Some flags need to be propagated to the compiler or linker for good
  2134. +# libtool support.
  2135. +case $host in
  2136. +ia64-*-hpux*)
  2137. + # Find out which ABI we are using.
  2138. + echo 'int i;' > conftest.$ac_ext
  2139. + if AC_TRY_EVAL(ac_compile); then
  2140. + case `/usr/bin/file conftest.$ac_objext` in
  2141. + *ELF-32*)
  2142. + HPUX_IA64_MODE="32"
  2143. + ;;
  2144. + *ELF-64*)
  2145. + HPUX_IA64_MODE="64"
  2146. + ;;
  2147. + esac
  2148. fi
  2149. -else
  2150. - sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  2151. -fi
  2152. -need_lib_prefix=unknown
  2153. -hardcode_into_libs=no
  2154. -
  2155. -# when you set need_version to no, make sure it does not cause -set_version
  2156. -# flags to be left without arguments
  2157. -need_version=unknown
  2158. -
  2159. -case $host_os in
  2160. -aix3*)
  2161. - version_type=linux
  2162. - library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  2163. - shlibpath_var=LIBPATH
  2164. -
  2165. - # AIX 3 has no versioning support, so we append a major version to the name.
  2166. - soname_spec='${libname}${release}${shared_ext}$major'
  2167. + rm -rf conftest*
  2168. ;;
  2169. -
  2170. -aix4* | aix5*)
  2171. - version_type=linux
  2172. - need_lib_prefix=no
  2173. - need_version=no
  2174. - hardcode_into_libs=yes
  2175. - if test "$host_cpu" = ia64; then
  2176. - # AIX 5 supports IA64
  2177. - library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  2178. - shlibpath_var=LD_LIBRARY_PATH
  2179. - else
  2180. - # With GCC up to 2.95.x, collect2 would create an import file
  2181. - # for dependence libraries. The import file would start with
  2182. - # the line `#! .'. This would cause the generated library to
  2183. - # depend on `.', always an invalid library. This was fixed in
  2184. - # development snapshots of GCC prior to 3.0.
  2185. - case $host_os in
  2186. - aix4 | aix4.[[01]] | aix4.[[01]].*)
  2187. - if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  2188. - echo ' yes '
  2189. - echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
  2190. - :
  2191. - else
  2192. - can_build_shared=no
  2193. - fi
  2194. - ;;
  2195. - esac
  2196. - # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  2197. - # soname into executable. Probably we can add versioning support to
  2198. - # collect2, so additional links can be useful in future.
  2199. - if test "$aix_use_runtimelinking" = yes; then
  2200. - # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  2201. - # instead of lib<name>.a to let people know that these are not
  2202. - # typical AIX shared libraries.
  2203. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  2204. +*-*-irix6*)
  2205. + # Find out which ABI we are using.
  2206. + echo '[#]line __oline__ "configure"' > conftest.$ac_ext
  2207. + if AC_TRY_EVAL(ac_compile); then
  2208. + if test "$lt_cv_prog_gnu_ld" = yes; then
  2209. + case `/usr/bin/file conftest.$ac_objext` in
  2210. + *32-bit*)
  2211. + LD="${LD-ld} -melf32bsmip"
  2212. + ;;
  2213. + *N32*)
  2214. + LD="${LD-ld} -melf32bmipn32"
  2215. + ;;
  2216. + *64-bit*)
  2217. + LD="${LD-ld} -melf64bmip"
  2218. + ;;
  2219. + esac
  2220. else
  2221. - # We preserve .a as extension for shared libraries through AIX4.2
  2222. - # and later when we are not doing run time linking.
  2223. - library_names_spec='${libname}${release}.a $libname.a'
  2224. - soname_spec='${libname}${release}${shared_ext}$major'
  2225. + case `/usr/bin/file conftest.$ac_objext` in
  2226. + *32-bit*)
  2227. + LD="${LD-ld} -32"
  2228. + ;;
  2229. + *N32*)
  2230. + LD="${LD-ld} -n32"
  2231. + ;;
  2232. + *64-bit*)
  2233. + LD="${LD-ld} -64"
  2234. + ;;
  2235. + esac
  2236. fi
  2237. - shlibpath_var=LIBPATH
  2238. fi
  2239. + rm -rf conftest*
  2240. ;;
  2241. -amigaos*)
  2242. - library_names_spec='$libname.ixlibrary $libname.a'
  2243. - # Create ${libname}_ixlibrary.a entries in /sys/libs.
  2244. - 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'
  2245. +x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
  2246. +s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  2247. + # Find out which ABI we are using.
  2248. + echo 'int i;' > conftest.$ac_ext
  2249. + if AC_TRY_EVAL(ac_compile); then
  2250. + case `/usr/bin/file conftest.o` in
  2251. + *32-bit*)
  2252. + case $host in
  2253. + x86_64-*kfreebsd*-gnu)
  2254. + LD="${LD-ld} -m elf_i386_fbsd"
  2255. + ;;
  2256. + x86_64-*linux*)
  2257. + LD="${LD-ld} -m elf_i386"
  2258. + ;;
  2259. + ppc64-*linux*|powerpc64-*linux*)
  2260. + LD="${LD-ld} -m elf32ppclinux"
  2261. + ;;
  2262. + s390x-*linux*)
  2263. + LD="${LD-ld} -m elf_s390"
  2264. + ;;
  2265. + sparc64-*linux*)
  2266. + LD="${LD-ld} -m elf32_sparc"
  2267. + ;;
  2268. + esac
  2269. + ;;
  2270. + *64-bit*)
  2271. + case $host in
  2272. + x86_64-*kfreebsd*-gnu)
  2273. + LD="${LD-ld} -m elf_x86_64_fbsd"
  2274. + ;;
  2275. + x86_64-*linux*)
  2276. + LD="${LD-ld} -m elf_x86_64"
  2277. + ;;
  2278. + ppc*-*linux*|powerpc*-*linux*)
  2279. + LD="${LD-ld} -m elf64ppc"
  2280. + ;;
  2281. + s390*-*linux*|s390*-*tpf*)
  2282. + LD="${LD-ld} -m elf64_s390"
  2283. + ;;
  2284. + sparc*-*linux*)
  2285. + LD="${LD-ld} -m elf64_sparc"
  2286. + ;;
  2287. + esac
  2288. + ;;
  2289. + esac
  2290. + fi
  2291. + rm -rf conftest*
  2292. ;;
  2293. -beos*)
  2294. - library_names_spec='${libname}${shared_ext}'
  2295. - dynamic_linker="$host_os ld.so"
  2296. - shlibpath_var=LIBRARY_PATH
  2297. +*-*-sco3.2v5*)
  2298. + # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  2299. + SAVE_CFLAGS="$CFLAGS"
  2300. + CFLAGS="$CFLAGS -belf"
  2301. + AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf,
  2302. + [AC_LANG_PUSH(C)
  2303. + AC_LINK_IFELSE([AC_LANG_PROGRAM([[]],[[]])],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])
  2304. + AC_LANG_POP])
  2305. + if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  2306. + # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  2307. + CFLAGS="$SAVE_CFLAGS"
  2308. + fi
  2309. ;;
  2310. -
  2311. -bsdi[[45]]*)
  2312. - version_type=linux
  2313. - need_version=no
  2314. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  2315. - soname_spec='${libname}${release}${shared_ext}$major'
  2316. - finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  2317. - shlibpath_var=LD_LIBRARY_PATH
  2318. - sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  2319. - sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  2320. - # the default ld.so.conf also contains /usr/contrib/lib and
  2321. - # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  2322. - # libtool to hard-code these into programs
  2323. +sparc*-*solaris*)
  2324. + # Find out which ABI we are using.
  2325. + echo 'int i;' > conftest.$ac_ext
  2326. + if AC_TRY_EVAL(ac_compile); then
  2327. + case `/usr/bin/file conftest.o` in
  2328. + *64-bit*)
  2329. + case $lt_cv_prog_gnu_ld in
  2330. + yes*) LD="${LD-ld} -m elf64_sparc" ;;
  2331. + *)
  2332. + if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  2333. + LD="${LD-ld} -64"
  2334. + fi
  2335. + ;;
  2336. + esac
  2337. + ;;
  2338. + esac
  2339. + fi
  2340. + rm -rf conftest*
  2341. ;;
  2342. +esac
  2343. -cygwin* | mingw* | pw32*)
  2344. - version_type=windows
  2345. - shrext_cmds=".dll"
  2346. - need_version=no
  2347. - need_lib_prefix=no
  2348. +need_locks="$enable_libtool_lock"
  2349. +])# _LT_ENABLE_LOCK
  2350. - case $GCC,$host_os in
  2351. - yes,cygwin* | yes,mingw* | yes,pw32*)
  2352. - library_names_spec='$libname.dll.a'
  2353. - # DLL is installed to $(libdir)/../bin by postinstall_cmds
  2354. - postinstall_cmds='base_file=`basename \${file}`~
  2355. - dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
  2356. - dldir=$destdir/`dirname \$dlpath`~
  2357. - test -d \$dldir || mkdir -p \$dldir~
  2358. - $install_prog $dir/$dlname \$dldir/$dlname~
  2359. - chmod a+x \$dldir/$dlname'
  2360. - postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  2361. - dlpath=$dir/\$dldll~
  2362. - $rm \$dlpath'
  2363. - shlibpath_overrides_runpath=yes
  2364. - case $host_os in
  2365. - cygwin*)
  2366. - # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  2367. - soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  2368. - sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  2369. - ;;
  2370. - mingw*)
  2371. - # MinGW DLLs use traditional 'lib' prefix
  2372. - soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  2373. - sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  2374. - if echo "$sys_lib_search_path_spec" | [grep ';[c-zC-Z]:/' >/dev/null]; then
  2375. - # It is most probably a Windows format PATH printed by
  2376. - # mingw gcc, but we are running on Cygwin. Gcc prints its search
  2377. - # path with ; separators, and with drive letters. We can handle the
  2378. - # drive letters (cygwin fileutils understands them), so leave them,
  2379. - # especially as we might pass files found there to a mingw objdump,
  2380. - # which wouldn't understand a cygwinified path. Ahh.
  2381. - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  2382. - else
  2383. - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  2384. - fi
  2385. - ;;
  2386. - pw32*)
  2387. - # pw32 DLLs use 'pw' prefix rather than 'lib'
  2388. - library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  2389. - ;;
  2390. - esac
  2391. - ;;
  2392. +# _LT_CMD_OLD_ARCHIVE
  2393. +# -------------------
  2394. +m4_defun([_LT_CMD_OLD_ARCHIVE],
  2395. +[AC_CHECK_TOOL(AR, ar, false)
  2396. +test -z "$AR" && AR=ar
  2397. +test -z "$AR_FLAGS" && AR_FLAGS=cru
  2398. +_LT_DECL([], [AR], [1], [The archiver])
  2399. +_LT_DECL([], [AR_FLAGS], [1])
  2400. +
  2401. +AC_CHECK_TOOL(STRIP, strip, :)
  2402. +test -z "$STRIP" && STRIP=:
  2403. +_LT_DECL([], [STRIP], [1], [A symbol stripping program])
  2404. +
  2405. +AC_CHECK_TOOL(RANLIB, ranlib, :)
  2406. +test -z "$RANLIB" && RANLIB=:
  2407. +_LT_DECL([], [RANLIB], [1],
  2408. + [Commands used to install an old-style archive])
  2409. +
  2410. +# Determine commands to create old-style static archives.
  2411. +old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  2412. +old_postinstall_cmds='chmod 644 $oldlib'
  2413. +old_postuninstall_cmds=
  2414. +if test -n "$RANLIB"; then
  2415. + case $host_os in
  2416. + openbsd*)
  2417. + old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
  2418. + ;;
  2419. *)
  2420. - library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $libname.lib'
  2421. + old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
  2422. ;;
  2423. esac
  2424. - dynamic_linker='Win32 ld.exe'
  2425. - # FIXME: first we should search . and the directory the executable is in
  2426. - shlibpath_var=PATH
  2427. - ;;
  2428. + old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
  2429. +fi
  2430. +_LT_DECL([], [old_postinstall_cmds], [2])
  2431. +_LT_DECL([], [old_postuninstall_cmds], [2])
  2432. +_LT_TAGDECL([], [old_archive_cmds], [2],
  2433. + [Commands used to build an old-style archive])
  2434. +])# _LT_CMD_OLD_ARCHIVE
  2435. -darwin* | rhapsody*)
  2436. - dynamic_linker="$host_os dyld"
  2437. - version_type=darwin
  2438. - need_lib_prefix=no
  2439. - need_version=no
  2440. - library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  2441. - soname_spec='${libname}${release}${major}$shared_ext'
  2442. - shlibpath_overrides_runpath=yes
  2443. - shlibpath_var=DYLD_LIBRARY_PATH
  2444. - shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  2445. - # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
  2446. - if test "$GCC" = yes; then
  2447. - 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"`
  2448. - else
  2449. - sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
  2450. - fi
  2451. - sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  2452. - ;;
  2453. -dgux*)
  2454. - version_type=linux
  2455. - need_lib_prefix=no
  2456. - need_version=no
  2457. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  2458. - soname_spec='${libname}${release}${shared_ext}$major'
  2459. - shlibpath_var=LD_LIBRARY_PATH
  2460. - ;;
  2461. +# _LT_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
  2462. +# [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE])
  2463. +# ----------------------------------------------------------------
  2464. +# Check whether the given compiler option works
  2465. +AC_DEFUN([_LT_COMPILER_OPTION],
  2466. +[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  2467. +m4_require([_LT_DECL_SED])dnl
  2468. +AC_CACHE_CHECK([$1], [$2],
  2469. + [$2=no
  2470. + m4_if([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4])
  2471. + echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  2472. + lt_compiler_flag="$3"
  2473. + # Insert the option either (1) after the last *FLAGS variable, or
  2474. + # (2) before a word containing "conftest.", or (3) at the end.
  2475. + # Note that $ac_compile itself does not contain backslashes and begins
  2476. + # with a dollar sign (not a hyphen), so the echo should work correctly.
  2477. + # The option is referenced via a variable to avoid confusing sed.
  2478. + lt_compile=`echo "$ac_compile" | $SED \
  2479. + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  2480. + -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
  2481. + -e 's:$: $lt_compiler_flag:'`
  2482. + (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
  2483. + (eval "$lt_compile" 2>conftest.err)
  2484. + ac_status=$?
  2485. + cat conftest.err >&AS_MESSAGE_LOG_FD
  2486. + echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
  2487. + if (exit $ac_status) && test -s "$ac_outfile"; then
  2488. + # The compiler can only warn and ignore the option if not recognized
  2489. + # So say no if there are warnings other than the usual output.
  2490. + $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  2491. + $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  2492. + if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  2493. + $2=yes
  2494. + fi
  2495. + fi
  2496. + $RM conftest*
  2497. +])
  2498. -freebsd1*)
  2499. - dynamic_linker=no
  2500. - ;;
  2501. +if test x"[$]$2" = xyes; then
  2502. + m4_if([$5], , :, [$5])
  2503. +else
  2504. + m4_if([$6], , :, [$6])
  2505. +fi
  2506. +])# _LT_COMPILER_OPTION
  2507. -kfreebsd*-gnu)
  2508. - version_type=linux
  2509. - need_lib_prefix=no
  2510. - need_version=no
  2511. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  2512. - soname_spec='${libname}${release}${shared_ext}$major'
  2513. - shlibpath_var=LD_LIBRARY_PATH
  2514. - shlibpath_overrides_runpath=no
  2515. - hardcode_into_libs=yes
  2516. - dynamic_linker='GNU ld.so'
  2517. - ;;
  2518. +# Old name:
  2519. +AU_ALIAS([AC_LIBTOOL_COMPILER_OPTION], [_LT_COMPILER_OPTION])
  2520. +dnl aclocal-1.4 backwards compatibility:
  2521. +dnl AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION], [])
  2522. +
  2523. +
  2524. +# _LT_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
  2525. +# [ACTION-SUCCESS], [ACTION-FAILURE])
  2526. +# ----------------------------------------------------
  2527. +# Check whether the given linker option works
  2528. +AC_DEFUN([_LT_LINKER_OPTION],
  2529. +[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  2530. +m4_require([_LT_DECL_SED])dnl
  2531. +AC_CACHE_CHECK([$1], [$2],
  2532. + [$2=no
  2533. + save_LDFLAGS="$LDFLAGS"
  2534. + LDFLAGS="$LDFLAGS $3"
  2535. + echo "$lt_simple_link_test_code" > conftest.$ac_ext
  2536. + if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  2537. + # The linker can only warn and ignore the option if not recognized
  2538. + # So say no if there are warnings
  2539. + if test -s conftest.err; then
  2540. + # Append any errors to the config.log.
  2541. + cat conftest.err 1>&AS_MESSAGE_LOG_FD
  2542. + $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
  2543. + $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  2544. + if diff conftest.exp conftest.er2 >/dev/null; then
  2545. + $2=yes
  2546. + fi
  2547. + else
  2548. + $2=yes
  2549. + fi
  2550. + fi
  2551. + $RM -r conftest*
  2552. + LDFLAGS="$save_LDFLAGS"
  2553. +])
  2554. -freebsd* | dragonfly*)
  2555. - # DragonFly does not have aout. When/if they implement a new
  2556. - # versioning mechanism, adjust this.
  2557. - if test -x /usr/bin/objformat; then
  2558. - objformat=`/usr/bin/objformat`
  2559. - else
  2560. - case $host_os in
  2561. - freebsd[[123]]*) objformat=aout ;;
  2562. - *) objformat=elf ;;
  2563. - esac
  2564. - fi
  2565. - version_type=freebsd-$objformat
  2566. - case $version_type in
  2567. - freebsd-elf*)
  2568. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  2569. - need_version=no
  2570. - need_lib_prefix=no
  2571. - ;;
  2572. - freebsd-*)
  2573. - library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  2574. - need_version=yes
  2575. - ;;
  2576. - esac
  2577. - shlibpath_var=LD_LIBRARY_PATH
  2578. - case $host_os in
  2579. - freebsd2*)
  2580. - shlibpath_overrides_runpath=yes
  2581. +if test x"[$]$2" = xyes; then
  2582. + m4_if([$4], , :, [$4])
  2583. +else
  2584. + m4_if([$5], , :, [$5])
  2585. +fi
  2586. +])# _LT_LINKER_OPTION
  2587. +
  2588. +# Old name:
  2589. +AU_ALIAS([AC_LIBTOOL_LINKER_OPTION], [_LT_LINKER_OPTION])
  2590. +dnl aclocal-1.4 backwards compatibility:
  2591. +dnl AC_DEFUN([AC_LIBTOOL_LINKER_OPTION], [])
  2592. +
  2593. +
  2594. +# LT_CMD_MAX_LEN
  2595. +#---------------
  2596. +AC_DEFUN([LT_CMD_MAX_LEN],
  2597. +[AC_REQUIRE([AC_CANONICAL_HOST])dnl
  2598. +# find the maximum length of command line arguments
  2599. +AC_MSG_CHECKING([the maximum length of command line arguments])
  2600. +AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl
  2601. + i=0
  2602. + teststring="ABCD"
  2603. +
  2604. + case $build_os in
  2605. + msdosdjgpp*)
  2606. + # On DJGPP, this test can blow up pretty badly due to problems in libc
  2607. + # (any single argument exceeding 2000 bytes causes a buffer overrun
  2608. + # during glob expansion). Even if it were fixed, the result of this
  2609. + # check would be larger than it should be.
  2610. + lt_cv_sys_max_cmd_len=12288; # 12K is about right
  2611. ;;
  2612. - freebsd3.[[01]]* | freebsdelf3.[[01]]*)
  2613. - shlibpath_overrides_runpath=yes
  2614. - hardcode_into_libs=yes
  2615. +
  2616. + gnu*)
  2617. + # Under GNU Hurd, this test is not required because there is
  2618. + # no limit to the length of command line arguments.
  2619. + # Libtool will interpret -1 as no limit whatsoever
  2620. + lt_cv_sys_max_cmd_len=-1;
  2621. ;;
  2622. - freebsd3.[[2-9]]* | freebsdelf3.[[2-9]]* | \
  2623. - freebsd4.[[0-5]] | freebsdelf4.[[0-5]] | freebsd4.1.1 | freebsdelf4.1.1)
  2624. - shlibpath_overrides_runpath=no
  2625. - hardcode_into_libs=yes
  2626. +
  2627. + cygwin* | mingw* | cegcc*)
  2628. + # On Win9x/ME, this test blows up -- it succeeds, but takes
  2629. + # about 5 minutes as the teststring grows exponentially.
  2630. + # Worse, since 9x/ME are not pre-emptively multitasking,
  2631. + # you end up with a "frozen" computer, even though with patience
  2632. + # the test eventually succeeds (with a max line length of 256k).
  2633. + # Instead, let's just punt: use the minimum linelength reported by
  2634. + # all of the supported platforms: 8192 (on NT/2K/XP).
  2635. + lt_cv_sys_max_cmd_len=8192;
  2636. ;;
  2637. - freebsd*) # from 4.6 on
  2638. - shlibpath_overrides_runpath=yes
  2639. - hardcode_into_libs=yes
  2640. +
  2641. + amigaos*)
  2642. + # On AmigaOS with pdksh, this test takes hours, literally.
  2643. + # So we just punt and use a minimum line length of 8192.
  2644. + lt_cv_sys_max_cmd_len=8192;
  2645. ;;
  2646. - esac
  2647. - ;;
  2648. -gnu*)
  2649. - version_type=linux
  2650. - need_lib_prefix=no
  2651. - need_version=no
  2652. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  2653. - soname_spec='${libname}${release}${shared_ext}$major'
  2654. - shlibpath_var=LD_LIBRARY_PATH
  2655. - hardcode_into_libs=yes
  2656. - ;;
  2657. + netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  2658. + # This has been around since 386BSD, at least. Likely further.
  2659. + if test -x /sbin/sysctl; then
  2660. + lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  2661. + elif test -x /usr/sbin/sysctl; then
  2662. + lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  2663. + else
  2664. + lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  2665. + fi
  2666. + # And add a safety zone
  2667. + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  2668. + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  2669. + ;;
  2670. -hpux9* | hpux10* | hpux11*)
  2671. - # Give a soname corresponding to the major version so that dld.sl refuses to
  2672. - # link against other versions.
  2673. - version_type=sunos
  2674. - need_lib_prefix=no
  2675. - need_version=no
  2676. - case $host_cpu in
  2677. - ia64*)
  2678. - shrext_cmds='.so'
  2679. - hardcode_into_libs=yes
  2680. - dynamic_linker="$host_os dld.so"
  2681. - shlibpath_var=LD_LIBRARY_PATH
  2682. - shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  2683. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  2684. - soname_spec='${libname}${release}${shared_ext}$major'
  2685. - if test "X$HPUX_IA64_MODE" = X32; then
  2686. - sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  2687. - else
  2688. - sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  2689. + interix*)
  2690. + # We know the value 262144 and hardcode it with a safety zone (like BSD)
  2691. + lt_cv_sys_max_cmd_len=196608
  2692. + ;;
  2693. +
  2694. + osf*)
  2695. + # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  2696. + # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  2697. + # nice to cause kernel panics so lets avoid the loop below.
  2698. + # First set a reasonable default.
  2699. + lt_cv_sys_max_cmd_len=16384
  2700. + #
  2701. + if test -x /sbin/sysconfig; then
  2702. + case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  2703. + *1*) lt_cv_sys_max_cmd_len=-1 ;;
  2704. + esac
  2705. fi
  2706. - sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  2707. ;;
  2708. - hppa*64*)
  2709. - shrext_cmds='.sl'
  2710. - hardcode_into_libs=yes
  2711. - dynamic_linker="$host_os dld.sl"
  2712. - shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  2713. - shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  2714. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  2715. - soname_spec='${libname}${release}${shared_ext}$major'
  2716. - sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  2717. - sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  2718. - ;;
  2719. - *)
  2720. - shrext_cmds='.sl'
  2721. - dynamic_linker="$host_os dld.sl"
  2722. - shlibpath_var=SHLIB_PATH
  2723. - shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  2724. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  2725. - soname_spec='${libname}${release}${shared_ext}$major'
  2726. + sco3.2v5*)
  2727. + lt_cv_sys_max_cmd_len=102400
  2728. ;;
  2729. - esac
  2730. - # HP-UX runs *really* slowly unless shared libraries are mode 555.
  2731. - postinstall_cmds='chmod 555 $lib'
  2732. - ;;
  2733. -
  2734. -interix3*)
  2735. - version_type=linux
  2736. - need_lib_prefix=no
  2737. - need_version=no
  2738. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  2739. - soname_spec='${libname}${release}${shared_ext}$major'
  2740. - dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  2741. - shlibpath_var=LD_LIBRARY_PATH
  2742. - shlibpath_overrides_runpath=no
  2743. - hardcode_into_libs=yes
  2744. - ;;
  2745. -
  2746. -irix5* | irix6* | nonstopux*)
  2747. - case $host_os in
  2748. - nonstopux*) version_type=nonstopux ;;
  2749. - *)
  2750. - if test "$lt_cv_prog_gnu_ld" = yes; then
  2751. - version_type=linux
  2752. - else
  2753. - version_type=irix
  2754. - fi ;;
  2755. - esac
  2756. - need_lib_prefix=no
  2757. - need_version=no
  2758. - soname_spec='${libname}${release}${shared_ext}$major'
  2759. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  2760. - case $host_os in
  2761. - irix5* | nonstopux*)
  2762. - libsuff= shlibsuff=
  2763. + sysv5* | sco5v6* | sysv4.2uw2*)
  2764. + kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  2765. + if test -n "$kargmax"; then
  2766. + lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[ ]]//'`
  2767. + else
  2768. + lt_cv_sys_max_cmd_len=32768
  2769. + fi
  2770. ;;
  2771. *)
  2772. - case $LD in # libtool.m4 will add one of these switches to LD
  2773. - *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  2774. - libsuff= shlibsuff= libmagic=32-bit;;
  2775. - *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  2776. - libsuff=32 shlibsuff=N32 libmagic=N32;;
  2777. - *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  2778. - libsuff=64 shlibsuff=64 libmagic=64-bit;;
  2779. - *) libsuff= shlibsuff= libmagic=never-match;;
  2780. - esac
  2781. + lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  2782. + if test -n "$lt_cv_sys_max_cmd_len"; then
  2783. + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  2784. + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  2785. + else
  2786. + # Make teststring a little bigger before we do anything with it.
  2787. + # a 1K string should be a reasonable start.
  2788. + for i in 1 2 3 4 5 6 7 8 ; do
  2789. + teststring=$teststring$teststring
  2790. + done
  2791. + SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  2792. + # If test is not a shell built-in, we'll probably end up computing a
  2793. + # maximum length that is only half of the actual maximum length, but
  2794. + # we can't tell.
  2795. + while { test "X"`$SHELL [$]0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
  2796. + = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
  2797. + test $i != 17 # 1/2 MB should be enough
  2798. + do
  2799. + i=`expr $i + 1`
  2800. + teststring=$teststring$teststring
  2801. + done
  2802. + # Only check the string length outside the loop.
  2803. + lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  2804. + teststring=
  2805. + # Add a significant safety factor because C++ compilers can tack on
  2806. + # massive amounts of additional arguments before passing them to the
  2807. + # linker. It appears as though 1/2 is a usable value.
  2808. + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  2809. + fi
  2810. ;;
  2811. esac
  2812. - shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  2813. - shlibpath_overrides_runpath=no
  2814. - sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  2815. - sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  2816. - hardcode_into_libs=yes
  2817. - ;;
  2818. +])
  2819. +if test -n $lt_cv_sys_max_cmd_len ; then
  2820. + AC_MSG_RESULT($lt_cv_sys_max_cmd_len)
  2821. +else
  2822. + AC_MSG_RESULT(none)
  2823. +fi
  2824. +max_cmd_len=$lt_cv_sys_max_cmd_len
  2825. +_LT_DECL([], [max_cmd_len], [0],
  2826. + [What is the maximum length of a command?])
  2827. +])# LT_CMD_MAX_LEN
  2828. -# No shared lib support for Linux oldld, aout, or coff.
  2829. -linux*oldld* | linux*aout* | linux*coff*)
  2830. - dynamic_linker=no
  2831. - ;;
  2832. +# Old name:
  2833. +AU_ALIAS([AC_LIBTOOL_SYS_MAX_CMD_LEN], [LT_CMD_MAX_LEN])
  2834. +dnl aclocal-1.4 backwards compatibility:
  2835. +dnl AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN], [])
  2836. -# This must be Linux ELF.
  2837. -linux*)
  2838. - version_type=linux
  2839. - need_lib_prefix=no
  2840. - need_version=no
  2841. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  2842. - soname_spec='${libname}${release}${shared_ext}$major'
  2843. - finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  2844. - shlibpath_var=LD_LIBRARY_PATH
  2845. - shlibpath_overrides_runpath=no
  2846. - # This implies no fast_install, which is unacceptable.
  2847. - # Some rework will be needed to allow for fast_install
  2848. - # before this can be enabled.
  2849. - hardcode_into_libs=yes
  2850. - # find out which ABI we are using
  2851. - libsuff=
  2852. - case "$host_cpu" in
  2853. - x86_64*|s390x*|powerpc64*)
  2854. - echo '[#]line __oline__ "configure"' > conftest.$ac_ext
  2855. - if AC_TRY_EVAL(ac_compile); then
  2856. - case `/usr/bin/file conftest.$ac_objext` in
  2857. - *64-bit*)
  2858. - libsuff=64
  2859. - sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
  2860. - ;;
  2861. - esac
  2862. - fi
  2863. - rm -rf conftest*
  2864. - ;;
  2865. - esac
  2866. +# _LT_HEADER_DLFCN
  2867. +# ----------------
  2868. +m4_defun([_LT_HEADER_DLFCN],
  2869. +[AC_CHECK_HEADERS([dlfcn.h], [], [], [AC_INCLUDES_DEFAULT])dnl
  2870. +])# _LT_HEADER_DLFCN
  2871. - # Append ld.so.conf contents to the search path
  2872. - if test -f /etc/ld.so.conf; then
  2873. - 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/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
  2874. - sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
  2875. - fi
  2876. - # We used to test for /lib/ld.so.1 and disable shared libraries on
  2877. - # powerpc, because MkLinux only supported shared libraries with the
  2878. - # GNU dynamic linker. Since this was broken with cross compilers,
  2879. - # most powerpc-linux boxes support dynamic linking these days and
  2880. - # people can always --disable-shared, the test was removed, and we
  2881. - # assume the GNU/Linux dynamic linker is in use.
  2882. - dynamic_linker='GNU/Linux ld.so'
  2883. - ;;
  2884. +# _LT_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
  2885. +# ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
  2886. +# ----------------------------------------------------------------
  2887. +m4_defun([_LT_TRY_DLOPEN_SELF],
  2888. +[m4_require([_LT_HEADER_DLFCN])dnl
  2889. +if test "$cross_compiling" = yes; then :
  2890. + [$4]
  2891. +else
  2892. + lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  2893. + lt_status=$lt_dlunknown
  2894. + cat > conftest.$ac_ext <<_LT_EOF
  2895. +[#line __oline__ "configure"
  2896. +#include "confdefs.h"
  2897. -knetbsd*-gnu)
  2898. - version_type=linux
  2899. - need_lib_prefix=no
  2900. - need_version=no
  2901. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  2902. - soname_spec='${libname}${release}${shared_ext}$major'
  2903. - shlibpath_var=LD_LIBRARY_PATH
  2904. - shlibpath_overrides_runpath=no
  2905. - hardcode_into_libs=yes
  2906. - dynamic_linker='GNU ld.so'
  2907. - ;;
  2908. +#if HAVE_DLFCN_H
  2909. +#include <dlfcn.h>
  2910. +#endif
  2911. -netbsd*)
  2912. - version_type=sunos
  2913. - need_lib_prefix=no
  2914. - need_version=no
  2915. - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  2916. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  2917. - finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  2918. - dynamic_linker='NetBSD (a.out) ld.so'
  2919. - else
  2920. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  2921. - soname_spec='${libname}${release}${shared_ext}$major'
  2922. - dynamic_linker='NetBSD ld.elf_so'
  2923. - fi
  2924. - shlibpath_var=LD_LIBRARY_PATH
  2925. - shlibpath_overrides_runpath=yes
  2926. - hardcode_into_libs=yes
  2927. - ;;
  2928. +#include <stdio.h>
  2929. -newsos6)
  2930. - version_type=linux
  2931. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  2932. - shlibpath_var=LD_LIBRARY_PATH
  2933. - shlibpath_overrides_runpath=yes
  2934. - ;;
  2935. +#ifdef RTLD_GLOBAL
  2936. +# define LT_DLGLOBAL RTLD_GLOBAL
  2937. +#else
  2938. +# ifdef DL_GLOBAL
  2939. +# define LT_DLGLOBAL DL_GLOBAL
  2940. +# else
  2941. +# define LT_DLGLOBAL 0
  2942. +# endif
  2943. +#endif
  2944. -nto-qnx*)
  2945. - version_type=linux
  2946. - need_lib_prefix=no
  2947. - need_version=no
  2948. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  2949. - soname_spec='${libname}${release}${shared_ext}$major'
  2950. - shlibpath_var=LD_LIBRARY_PATH
  2951. - shlibpath_overrides_runpath=yes
  2952. - ;;
  2953. +/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  2954. + find out it does not work in some platform. */
  2955. +#ifndef LT_DLLAZY_OR_NOW
  2956. +# ifdef RTLD_LAZY
  2957. +# define LT_DLLAZY_OR_NOW RTLD_LAZY
  2958. +# else
  2959. +# ifdef DL_LAZY
  2960. +# define LT_DLLAZY_OR_NOW DL_LAZY
  2961. +# else
  2962. +# ifdef RTLD_NOW
  2963. +# define LT_DLLAZY_OR_NOW RTLD_NOW
  2964. +# else
  2965. +# ifdef DL_NOW
  2966. +# define LT_DLLAZY_OR_NOW DL_NOW
  2967. +# else
  2968. +# define LT_DLLAZY_OR_NOW 0
  2969. +# endif
  2970. +# endif
  2971. +# endif
  2972. +# endif
  2973. +#endif
  2974. -openbsd*)
  2975. - version_type=sunos
  2976. - sys_lib_dlsearch_path_spec="/usr/lib"
  2977. - need_lib_prefix=no
  2978. - # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  2979. - case $host_os in
  2980. - openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  2981. - *) need_version=no ;;
  2982. - esac
  2983. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  2984. - finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  2985. - shlibpath_var=LD_LIBRARY_PATH
  2986. - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  2987. - case $host_os in
  2988. - openbsd2.[[89]] | openbsd2.[[89]].*)
  2989. - shlibpath_overrides_runpath=no
  2990. - ;;
  2991. - *)
  2992. - shlibpath_overrides_runpath=yes
  2993. - ;;
  2994. - esac
  2995. +void fnord() { int i=42;}
  2996. +int main ()
  2997. +{
  2998. + void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  2999. + int status = $lt_dlunknown;
  3000. +
  3001. + if (self)
  3002. + {
  3003. + if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  3004. + else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  3005. + /* dlclose (self); */
  3006. + }
  3007. else
  3008. - shlibpath_overrides_runpath=yes
  3009. - fi
  3010. - ;;
  3011. + puts (dlerror ());
  3012. -os2*)
  3013. - libname_spec='$name'
  3014. - shrext_cmds=".dll"
  3015. - need_lib_prefix=no
  3016. - library_names_spec='$libname${shared_ext} $libname.a'
  3017. - dynamic_linker='OS/2 ld.exe'
  3018. - shlibpath_var=LIBPATH
  3019. - ;;
  3020. -
  3021. -osf3* | osf4* | osf5*)
  3022. - version_type=osf
  3023. - need_lib_prefix=no
  3024. - need_version=no
  3025. - soname_spec='${libname}${release}${shared_ext}$major'
  3026. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  3027. - shlibpath_var=LD_LIBRARY_PATH
  3028. - sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  3029. - sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  3030. - ;;
  3031. -
  3032. -solaris*)
  3033. - version_type=linux
  3034. - need_lib_prefix=no
  3035. - need_version=no
  3036. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  3037. - soname_spec='${libname}${release}${shared_ext}$major'
  3038. - shlibpath_var=LD_LIBRARY_PATH
  3039. - shlibpath_overrides_runpath=yes
  3040. - hardcode_into_libs=yes
  3041. - # ldd complains unless libraries are executable
  3042. - postinstall_cmds='chmod +x $lib'
  3043. - ;;
  3044. -
  3045. -sunos4*)
  3046. - version_type=sunos
  3047. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  3048. - finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  3049. - shlibpath_var=LD_LIBRARY_PATH
  3050. - shlibpath_overrides_runpath=yes
  3051. - if test "$with_gnu_ld" = yes; then
  3052. - need_lib_prefix=no
  3053. - fi
  3054. - need_version=yes
  3055. - ;;
  3056. -
  3057. -sysv4 | sysv4.3*)
  3058. - version_type=linux
  3059. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  3060. - soname_spec='${libname}${release}${shared_ext}$major'
  3061. - shlibpath_var=LD_LIBRARY_PATH
  3062. - case $host_vendor in
  3063. - sni)
  3064. - shlibpath_overrides_runpath=no
  3065. - need_lib_prefix=no
  3066. - export_dynamic_flag_spec='${wl}-Blargedynsym'
  3067. - runpath_var=LD_RUN_PATH
  3068. - ;;
  3069. - siemens)
  3070. - need_lib_prefix=no
  3071. - ;;
  3072. - motorola)
  3073. - need_lib_prefix=no
  3074. - need_version=no
  3075. - shlibpath_overrides_runpath=no
  3076. - sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  3077. - ;;
  3078. - esac
  3079. - ;;
  3080. -
  3081. -sysv4*MP*)
  3082. - if test -d /usr/nec ;then
  3083. - version_type=linux
  3084. - library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  3085. - soname_spec='$libname${shared_ext}.$major'
  3086. - shlibpath_var=LD_LIBRARY_PATH
  3087. - fi
  3088. - ;;
  3089. -
  3090. -sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  3091. - version_type=freebsd-elf
  3092. - need_lib_prefix=no
  3093. - need_version=no
  3094. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  3095. - soname_spec='${libname}${release}${shared_ext}$major'
  3096. - shlibpath_var=LD_LIBRARY_PATH
  3097. - hardcode_into_libs=yes
  3098. - if test "$with_gnu_ld" = yes; then
  3099. - sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  3100. - shlibpath_overrides_runpath=no
  3101. - else
  3102. - sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  3103. - shlibpath_overrides_runpath=yes
  3104. - case $host_os in
  3105. - sco3.2v5*)
  3106. - sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  3107. - ;;
  3108. + return status;
  3109. +}]
  3110. +_LT_EOF
  3111. + if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then
  3112. + (./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null
  3113. + lt_status=$?
  3114. + case x$lt_status in
  3115. + x$lt_dlno_uscore) $1 ;;
  3116. + x$lt_dlneed_uscore) $2 ;;
  3117. + x$lt_dlunknown|x*) $3 ;;
  3118. esac
  3119. + else :
  3120. + # compilation failed
  3121. + $3
  3122. fi
  3123. - sys_lib_dlsearch_path_spec='/usr/lib'
  3124. - ;;
  3125. -
  3126. -uts4*)
  3127. - version_type=linux
  3128. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  3129. - soname_spec='${libname}${release}${shared_ext}$major'
  3130. - shlibpath_var=LD_LIBRARY_PATH
  3131. - ;;
  3132. -
  3133. -*)
  3134. - dynamic_linker=no
  3135. - ;;
  3136. -esac
  3137. -AC_MSG_RESULT([$dynamic_linker])
  3138. -test "$dynamic_linker" = no && can_build_shared=no
  3139. -
  3140. -variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  3141. -if test "$GCC" = yes; then
  3142. - variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  3143. fi
  3144. -])# AC_LIBTOOL_SYS_DYNAMIC_LINKER
  3145. -
  3146. +rm -fr conftest*
  3147. +])# _LT_TRY_DLOPEN_SELF
  3148. -# _LT_AC_TAGCONFIG
  3149. -# ----------------
  3150. -AC_DEFUN([_LT_AC_TAGCONFIG],
  3151. -[AC_ARG_WITH([tags],
  3152. - [AC_HELP_STRING([--with-tags@<:@=TAGS@:>@],
  3153. - [include additional configurations @<:@automatic@:>@])],
  3154. - [tagnames="$withval"])
  3155. -
  3156. -if test -f "$ltmain" && test -n "$tagnames"; then
  3157. - if test ! -f "${ofile}"; then
  3158. - AC_MSG_WARN([output file `$ofile' does not exist])
  3159. - fi
  3160. - if test -z "$LTCC"; then
  3161. - eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
  3162. - if test -z "$LTCC"; then
  3163. - AC_MSG_WARN([output file `$ofile' does not look like a libtool script])
  3164. - else
  3165. - AC_MSG_WARN([using `LTCC=$LTCC', extracted from `$ofile'])
  3166. - fi
  3167. - fi
  3168. - if test -z "$LTCFLAGS"; then
  3169. - eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
  3170. - fi
  3171. +# LT_SYS_DLOPEN_SELF
  3172. +# ------------------
  3173. +AC_DEFUN([LT_SYS_DLOPEN_SELF],
  3174. +[m4_require([_LT_HEADER_DLFCN])dnl
  3175. +if test "x$enable_dlopen" != xyes; then
  3176. + enable_dlopen=unknown
  3177. + enable_dlopen_self=unknown
  3178. + enable_dlopen_self_static=unknown
  3179. +else
  3180. + lt_cv_dlopen=no
  3181. + lt_cv_dlopen_libs=
  3182. - # Extract list of available tagged configurations in $ofile.
  3183. - # Note that this assumes the entire list is on one line.
  3184. - available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
  3185. + case $host_os in
  3186. + beos*)
  3187. + lt_cv_dlopen="load_add_on"
  3188. + lt_cv_dlopen_libs=
  3189. + lt_cv_dlopen_self=yes
  3190. + ;;
  3191. - lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  3192. - for tagname in $tagnames; do
  3193. - IFS="$lt_save_ifs"
  3194. - # Check whether tagname contains only valid characters
  3195. - case `$echo "X$tagname" | $Xsed -e 's:[[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]]::g'` in
  3196. - "") ;;
  3197. - *) AC_MSG_ERROR([invalid tag name: $tagname])
  3198. - ;;
  3199. - esac
  3200. + mingw* | pw32* | cegcc*)
  3201. + lt_cv_dlopen="LoadLibrary"
  3202. + lt_cv_dlopen_libs=
  3203. + ;;
  3204. - if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
  3205. - then
  3206. - AC_MSG_ERROR([tag name \"$tagname\" already exists])
  3207. - fi
  3208. + cygwin*)
  3209. + lt_cv_dlopen="dlopen"
  3210. + lt_cv_dlopen_libs=
  3211. + ;;
  3212. - # Update the list of available tags.
  3213. - if test -n "$tagname"; then
  3214. - echo appending configuration tag \"$tagname\" to $ofile
  3215. -
  3216. - case $tagname in
  3217. - CXX)
  3218. - if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
  3219. - ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
  3220. - (test "X$CXX" != "Xg++"))) ; then
  3221. - AC_LIBTOOL_LANG_CXX_CONFIG
  3222. - else
  3223. - tagname=""
  3224. - fi
  3225. - ;;
  3226. + darwin*)
  3227. + # if libdl is installed we need to link against it
  3228. + AC_CHECK_LIB([dl], [dlopen],
  3229. + [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],[
  3230. + lt_cv_dlopen="dyld"
  3231. + lt_cv_dlopen_libs=
  3232. + lt_cv_dlopen_self=yes
  3233. + ])
  3234. + ;;
  3235. - F77)
  3236. - if test -n "$F77" && test "X$F77" != "Xno"; then
  3237. - AC_LIBTOOL_LANG_F77_CONFIG
  3238. - else
  3239. - tagname=""
  3240. - fi
  3241. - ;;
  3242. + *)
  3243. + AC_CHECK_FUNC([shl_load],
  3244. + [lt_cv_dlopen="shl_load"],
  3245. + [AC_CHECK_LIB([dld], [shl_load],
  3246. + [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"],
  3247. + [AC_CHECK_FUNC([dlopen],
  3248. + [lt_cv_dlopen="dlopen"],
  3249. + [AC_CHECK_LIB([dl], [dlopen],
  3250. + [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],
  3251. + [AC_CHECK_LIB([svld], [dlopen],
  3252. + [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"],
  3253. + [AC_CHECK_LIB([dld], [dld_link],
  3254. + [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"])
  3255. + ])
  3256. + ])
  3257. + ])
  3258. + ])
  3259. + ])
  3260. + ;;
  3261. + esac
  3262. - GCJ)
  3263. - if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
  3264. - AC_LIBTOOL_LANG_GCJ_CONFIG
  3265. - else
  3266. - tagname=""
  3267. - fi
  3268. - ;;
  3269. + if test "x$lt_cv_dlopen" != xno; then
  3270. + enable_dlopen=yes
  3271. + else
  3272. + enable_dlopen=no
  3273. + fi
  3274. - RC)
  3275. - AC_LIBTOOL_LANG_RC_CONFIG
  3276. - ;;
  3277. + case $lt_cv_dlopen in
  3278. + dlopen)
  3279. + save_CPPFLAGS="$CPPFLAGS"
  3280. + test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  3281. - *)
  3282. - AC_MSG_ERROR([Unsupported tag name: $tagname])
  3283. - ;;
  3284. - esac
  3285. + save_LDFLAGS="$LDFLAGS"
  3286. + wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  3287. - # Append the new tag name to the list of available tags.
  3288. - if test -n "$tagname" ; then
  3289. - available_tags="$available_tags $tagname"
  3290. - fi
  3291. - fi
  3292. - done
  3293. - IFS="$lt_save_ifs"
  3294. + save_LIBS="$LIBS"
  3295. + LIBS="$lt_cv_dlopen_libs $LIBS"
  3296. - # Now substitute the updated list of available tags.
  3297. - if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
  3298. - mv "${ofile}T" "$ofile"
  3299. - chmod +x "$ofile"
  3300. - else
  3301. - rm -f "${ofile}T"
  3302. - AC_MSG_ERROR([unable to update list of available tagged configurations.])
  3303. - fi
  3304. -fi
  3305. -])# _LT_AC_TAGCONFIG
  3306. + AC_CACHE_CHECK([whether a program can dlopen itself],
  3307. + lt_cv_dlopen_self, [dnl
  3308. + _LT_TRY_DLOPEN_SELF(
  3309. + lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes,
  3310. + lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross)
  3311. + ])
  3312. + if test "x$lt_cv_dlopen_self" = xyes; then
  3313. + wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  3314. + AC_CACHE_CHECK([whether a statically linked program can dlopen itself],
  3315. + lt_cv_dlopen_self_static, [dnl
  3316. + _LT_TRY_DLOPEN_SELF(
  3317. + lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes,
  3318. + lt_cv_dlopen_self_static=no, lt_cv_dlopen_self_static=cross)
  3319. + ])
  3320. + fi
  3321. -# AC_LIBTOOL_DLOPEN
  3322. -# -----------------
  3323. -# enable checks for dlopen support
  3324. -AC_DEFUN([AC_LIBTOOL_DLOPEN],
  3325. - [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])
  3326. -])# AC_LIBTOOL_DLOPEN
  3327. + CPPFLAGS="$save_CPPFLAGS"
  3328. + LDFLAGS="$save_LDFLAGS"
  3329. + LIBS="$save_LIBS"
  3330. + ;;
  3331. + esac
  3332. + case $lt_cv_dlopen_self in
  3333. + yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  3334. + *) enable_dlopen_self=unknown ;;
  3335. + esac
  3336. -# AC_LIBTOOL_WIN32_DLL
  3337. -# --------------------
  3338. -# declare package support for building win32 DLLs
  3339. -AC_DEFUN([AC_LIBTOOL_WIN32_DLL],
  3340. -[AC_BEFORE([$0], [AC_LIBTOOL_SETUP])
  3341. -])# AC_LIBTOOL_WIN32_DLL
  3342. + case $lt_cv_dlopen_self_static in
  3343. + yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  3344. + *) enable_dlopen_self_static=unknown ;;
  3345. + esac
  3346. +fi
  3347. +_LT_DECL([dlopen_support], [enable_dlopen], [0],
  3348. + [Whether dlopen is supported])
  3349. +_LT_DECL([dlopen_self], [enable_dlopen_self], [0],
  3350. + [Whether dlopen of programs is supported])
  3351. +_LT_DECL([dlopen_self_static], [enable_dlopen_self_static], [0],
  3352. + [Whether dlopen of statically linked programs is supported])
  3353. +])# LT_SYS_DLOPEN_SELF
  3354. +
  3355. +# Old name:
  3356. +AU_ALIAS([AC_LIBTOOL_DLOPEN_SELF], [LT_SYS_DLOPEN_SELF])
  3357. +dnl aclocal-1.4 backwards compatibility:
  3358. +dnl AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF], [])
  3359. -# AC_ENABLE_SHARED([DEFAULT])
  3360. +# _LT_COMPILER_C_O([TAGNAME])
  3361. # ---------------------------
  3362. -# implement the --enable-shared flag
  3363. -# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
  3364. -AC_DEFUN([AC_ENABLE_SHARED],
  3365. -[define([AC_ENABLE_SHARED_DEFAULT], ifelse($1, no, no, yes))dnl
  3366. -AC_ARG_ENABLE([shared],
  3367. - [AC_HELP_STRING([--enable-shared@<:@=PKGS@:>@],
  3368. - [build shared libraries @<:@default=]AC_ENABLE_SHARED_DEFAULT[@:>@])],
  3369. - [p=${PACKAGE-default}
  3370. - case $enableval in
  3371. - yes) enable_shared=yes ;;
  3372. - no) enable_shared=no ;;
  3373. - *)
  3374. - enable_shared=no
  3375. - # Look at the argument we got. We use all the common list separators.
  3376. - lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  3377. - for pkg in $enableval; do
  3378. - IFS="$lt_save_ifs"
  3379. - if test "X$pkg" = "X$p"; then
  3380. - enable_shared=yes
  3381. - fi
  3382. - done
  3383. - IFS="$lt_save_ifs"
  3384. - ;;
  3385. - esac],
  3386. - [enable_shared=]AC_ENABLE_SHARED_DEFAULT)
  3387. -])# AC_ENABLE_SHARED
  3388. -
  3389. -
  3390. -# AC_DISABLE_SHARED
  3391. -# -----------------
  3392. -# set the default shared flag to --disable-shared
  3393. -AC_DEFUN([AC_DISABLE_SHARED],
  3394. -[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
  3395. -AC_ENABLE_SHARED(no)
  3396. -])# AC_DISABLE_SHARED
  3397. -
  3398. -
  3399. -# AC_ENABLE_STATIC([DEFAULT])
  3400. -# ---------------------------
  3401. -# implement the --enable-static flag
  3402. -# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
  3403. -AC_DEFUN([AC_ENABLE_STATIC],
  3404. -[define([AC_ENABLE_STATIC_DEFAULT], ifelse($1, no, no, yes))dnl
  3405. -AC_ARG_ENABLE([static],
  3406. - [AC_HELP_STRING([--enable-static@<:@=PKGS@:>@],
  3407. - [build static libraries @<:@default=]AC_ENABLE_STATIC_DEFAULT[@:>@])],
  3408. - [p=${PACKAGE-default}
  3409. - case $enableval in
  3410. - yes) enable_static=yes ;;
  3411. - no) enable_static=no ;;
  3412. - *)
  3413. - enable_static=no
  3414. - # Look at the argument we got. We use all the common list separators.
  3415. - lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  3416. - for pkg in $enableval; do
  3417. - IFS="$lt_save_ifs"
  3418. - if test "X$pkg" = "X$p"; then
  3419. - enable_static=yes
  3420. - fi
  3421. - done
  3422. - IFS="$lt_save_ifs"
  3423. - ;;
  3424. - esac],
  3425. - [enable_static=]AC_ENABLE_STATIC_DEFAULT)
  3426. -])# AC_ENABLE_STATIC
  3427. -
  3428. -
  3429. -# AC_DISABLE_STATIC
  3430. -# -----------------
  3431. -# set the default static flag to --disable-static
  3432. -AC_DEFUN([AC_DISABLE_STATIC],
  3433. -[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
  3434. -AC_ENABLE_STATIC(no)
  3435. -])# AC_DISABLE_STATIC
  3436. -
  3437. -
  3438. -# AC_ENABLE_FAST_INSTALL([DEFAULT])
  3439. -# ---------------------------------
  3440. -# implement the --enable-fast-install flag
  3441. -# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
  3442. -AC_DEFUN([AC_ENABLE_FAST_INSTALL],
  3443. -[define([AC_ENABLE_FAST_INSTALL_DEFAULT], ifelse($1, no, no, yes))dnl
  3444. -AC_ARG_ENABLE([fast-install],
  3445. - [AC_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@],
  3446. - [optimize for fast installation @<:@default=]AC_ENABLE_FAST_INSTALL_DEFAULT[@:>@])],
  3447. - [p=${PACKAGE-default}
  3448. - case $enableval in
  3449. - yes) enable_fast_install=yes ;;
  3450. - no) enable_fast_install=no ;;
  3451. - *)
  3452. - enable_fast_install=no
  3453. - # Look at the argument we got. We use all the common list separators.
  3454. - lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  3455. - for pkg in $enableval; do
  3456. - IFS="$lt_save_ifs"
  3457. - if test "X$pkg" = "X$p"; then
  3458. - enable_fast_install=yes
  3459. - fi
  3460. - done
  3461. - IFS="$lt_save_ifs"
  3462. - ;;
  3463. - esac],
  3464. - [enable_fast_install=]AC_ENABLE_FAST_INSTALL_DEFAULT)
  3465. -])# AC_ENABLE_FAST_INSTALL
  3466. -
  3467. -
  3468. -# AC_DISABLE_FAST_INSTALL
  3469. -# -----------------------
  3470. -# set the default to --disable-fast-install
  3471. -AC_DEFUN([AC_DISABLE_FAST_INSTALL],
  3472. -[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
  3473. -AC_ENABLE_FAST_INSTALL(no)
  3474. -])# AC_DISABLE_FAST_INSTALL
  3475. -
  3476. -
  3477. -# AC_LIBTOOL_PICMODE([MODE])
  3478. -# --------------------------
  3479. -# implement the --with-pic flag
  3480. -# MODE is either `yes' or `no'. If omitted, it defaults to `both'.
  3481. -AC_DEFUN([AC_LIBTOOL_PICMODE],
  3482. -[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
  3483. -pic_mode=ifelse($#,1,$1,default)
  3484. -])# AC_LIBTOOL_PICMODE
  3485. +# Check to see if options -c and -o are simultaneously supported by compiler.
  3486. +# This macro does not hard code the compiler like AC_PROG_CC_C_O.
  3487. +m4_defun([_LT_COMPILER_C_O],
  3488. +[m4_require([_LT_DECL_SED])dnl
  3489. +m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  3490. +m4_require([_LT_TAG_COMPILER])dnl
  3491. +AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext],
  3492. + [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)],
  3493. + [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no
  3494. + $RM -r conftest 2>/dev/null
  3495. + mkdir conftest
  3496. + cd conftest
  3497. + mkdir out
  3498. + echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  3499. + lt_compiler_flag="-o out/conftest2.$ac_objext"
  3500. + # Insert the option either (1) after the last *FLAGS variable, or
  3501. + # (2) before a word containing "conftest.", or (3) at the end.
  3502. + # Note that $ac_compile itself does not contain backslashes and begins
  3503. + # with a dollar sign (not a hyphen), so the echo should work correctly.
  3504. + lt_compile=`echo "$ac_compile" | $SED \
  3505. + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  3506. + -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
  3507. + -e 's:$: $lt_compiler_flag:'`
  3508. + (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
  3509. + (eval "$lt_compile" 2>out/conftest.err)
  3510. + ac_status=$?
  3511. + cat out/conftest.err >&AS_MESSAGE_LOG_FD
  3512. + echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
  3513. + if (exit $ac_status) && test -s out/conftest2.$ac_objext
  3514. + then
  3515. + # The compiler can only warn and ignore the option if not recognized
  3516. + # So say no if there are warnings
  3517. + $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  3518. + $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  3519. + if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  3520. + _LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
  3521. + fi
  3522. + fi
  3523. + chmod u+w . 2>&AS_MESSAGE_LOG_FD
  3524. + $RM conftest*
  3525. + # SGI C++ compiler will create directory out/ii_files/ for
  3526. + # template instantiation
  3527. + test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  3528. + $RM out/* && rmdir out
  3529. + cd ..
  3530. + $RM -r conftest
  3531. + $RM conftest*
  3532. +])
  3533. +_LT_TAGDECL([compiler_c_o], [lt_cv_prog_compiler_c_o], [1],
  3534. + [Does compiler simultaneously support -c and -o options?])
  3535. +])# _LT_COMPILER_C_O
  3536. -# AC_PROG_EGREP
  3537. -# -------------
  3538. -# This is predefined starting with Autoconf 2.54, so this conditional
  3539. -# definition can be removed once we require Autoconf 2.54 or later.
  3540. -m4_ifndef([AC_PROG_EGREP], [AC_DEFUN([AC_PROG_EGREP],
  3541. -[AC_CACHE_CHECK([for egrep], [ac_cv_prog_egrep],
  3542. - [if echo a | (grep -E '(a|b)') >/dev/null 2>&1
  3543. - then ac_cv_prog_egrep='grep -E'
  3544. - else ac_cv_prog_egrep='egrep'
  3545. - fi])
  3546. - EGREP=$ac_cv_prog_egrep
  3547. - AC_SUBST([EGREP])
  3548. -])])
  3549. +# _LT_COMPILER_FILE_LOCKS([TAGNAME])
  3550. +# ----------------------------------
  3551. +# Check to see if we can do hard links to lock some files if needed
  3552. +m4_defun([_LT_COMPILER_FILE_LOCKS],
  3553. +[m4_require([_LT_ENABLE_LOCK])dnl
  3554. +m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  3555. +_LT_COMPILER_C_O([$1])
  3556. -# AC_PATH_TOOL_PREFIX
  3557. -# -------------------
  3558. -# find a file program which can recognise shared library
  3559. -AC_DEFUN([AC_PATH_TOOL_PREFIX],
  3560. -[AC_REQUIRE([AC_PROG_EGREP])dnl
  3561. -AC_MSG_CHECKING([for $1])
  3562. -AC_CACHE_VAL(lt_cv_path_MAGIC_CMD,
  3563. -[case $MAGIC_CMD in
  3564. -[[\\/*] | ?:[\\/]*])
  3565. - lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  3566. - ;;
  3567. -*)
  3568. - lt_save_MAGIC_CMD="$MAGIC_CMD"
  3569. - lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  3570. -dnl $ac_dummy forces splitting on constant user-supplied paths.
  3571. -dnl POSIX.2 word splitting is done only on the output of word expansions,
  3572. -dnl not every word. This closes a longstanding sh security hole.
  3573. - ac_dummy="ifelse([$2], , $PATH, [$2])"
  3574. - for ac_dir in $ac_dummy; do
  3575. - IFS="$lt_save_ifs"
  3576. - test -z "$ac_dir" && ac_dir=.
  3577. - if test -f $ac_dir/$1; then
  3578. - lt_cv_path_MAGIC_CMD="$ac_dir/$1"
  3579. - if test -n "$file_magic_test_file"; then
  3580. - case $deplibs_check_method in
  3581. - "file_magic "*)
  3582. - file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  3583. - MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  3584. - if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  3585. - $EGREP "$file_magic_regex" > /dev/null; then
  3586. - :
  3587. - else
  3588. - cat <<EOF 1>&2
  3589. +hard_links="nottested"
  3590. +if test "$_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" != no; then
  3591. + # do not overwrite the value of need_locks provided by the user
  3592. + AC_MSG_CHECKING([if we can lock with hard links])
  3593. + hard_links=yes
  3594. + $RM conftest*
  3595. + ln conftest.a conftest.b 2>/dev/null && hard_links=no
  3596. + touch conftest.a
  3597. + ln conftest.a conftest.b 2>&5 || hard_links=no
  3598. + ln conftest.a conftest.b 2>/dev/null && hard_links=no
  3599. + AC_MSG_RESULT([$hard_links])
  3600. + if test "$hard_links" = no; then
  3601. + AC_MSG_WARN([`$CC' does not support `-c -o', so `make -j' may be unsafe])
  3602. + need_locks=warn
  3603. + fi
  3604. +else
  3605. + need_locks=no
  3606. +fi
  3607. +_LT_DECL([], [need_locks], [1], [Must we lock files when doing compilation?])
  3608. +])# _LT_COMPILER_FILE_LOCKS
  3609. -*** Warning: the command libtool uses to detect shared libraries,
  3610. -*** $file_magic_cmd, produces output that libtool cannot recognize.
  3611. -*** The result is that libtool may fail to recognize shared libraries
  3612. -*** as such. This will affect the creation of libtool libraries that
  3613. -*** depend on shared libraries, but programs linked with such libtool
  3614. -*** libraries will work regardless of this problem. Nevertheless, you
  3615. -*** may want to report the problem to your system manager and/or to
  3616. -*** bug-libtool@gnu.org
  3617. -EOF
  3618. - fi ;;
  3619. - esac
  3620. - fi
  3621. - break
  3622. - fi
  3623. - done
  3624. - IFS="$lt_save_ifs"
  3625. - MAGIC_CMD="$lt_save_MAGIC_CMD"
  3626. - ;;
  3627. -esac])
  3628. -MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  3629. -if test -n "$MAGIC_CMD"; then
  3630. - AC_MSG_RESULT($MAGIC_CMD)
  3631. +# _LT_CHECK_OBJDIR
  3632. +# ----------------
  3633. +m4_defun([_LT_CHECK_OBJDIR],
  3634. +[AC_CACHE_CHECK([for objdir], [lt_cv_objdir],
  3635. +[rm -f .libs 2>/dev/null
  3636. +mkdir .libs 2>/dev/null
  3637. +if test -d .libs; then
  3638. + lt_cv_objdir=.libs
  3639. else
  3640. - AC_MSG_RESULT(no)
  3641. + # MS-DOS does not allow filenames that begin with a dot.
  3642. + lt_cv_objdir=_libs
  3643. fi
  3644. -])# AC_PATH_TOOL_PREFIX
  3645. +rmdir .libs 2>/dev/null])
  3646. +objdir=$lt_cv_objdir
  3647. +_LT_DECL([], [objdir], [0],
  3648. + [The name of the directory that contains temporary libtool files])dnl
  3649. +m4_pattern_allow([LT_OBJDIR])dnl
  3650. +AC_DEFINE_UNQUOTED(LT_OBJDIR, "$lt_cv_objdir/",
  3651. + [Define to the sub-directory in which libtool stores uninstalled libraries.])
  3652. +])# _LT_CHECK_OBJDIR
  3653. -# AC_PATH_MAGIC
  3654. -# -------------
  3655. -# find a file program which can recognise a shared library
  3656. -AC_DEFUN([AC_PATH_MAGIC],
  3657. -[AC_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH)
  3658. -if test -z "$lt_cv_path_MAGIC_CMD"; then
  3659. - if test -n "$ac_tool_prefix"; then
  3660. - AC_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH)
  3661. +# _LT_LINKER_HARDCODE_LIBPATH([TAGNAME])
  3662. +# --------------------------------------
  3663. +# Check hardcoding attributes.
  3664. +m4_defun([_LT_LINKER_HARDCODE_LIBPATH],
  3665. +[AC_MSG_CHECKING([how to hardcode library paths into programs])
  3666. +_LT_TAGVAR(hardcode_action, $1)=
  3667. +if test -n "$_LT_TAGVAR(hardcode_libdir_flag_spec, $1)" ||
  3668. + test -n "$_LT_TAGVAR(runpath_var, $1)" ||
  3669. + test "X$_LT_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then
  3670. +
  3671. + # We can hardcode non-existent directories.
  3672. + if test "$_LT_TAGVAR(hardcode_direct, $1)" != no &&
  3673. + # If the only mechanism to avoid hardcoding is shlibpath_var, we
  3674. + # have to relink, otherwise we might link with an installed library
  3675. + # when we should be linking with a yet-to-be-installed one
  3676. + ## test "$_LT_TAGVAR(hardcode_shlibpath_var, $1)" != no &&
  3677. + test "$_LT_TAGVAR(hardcode_minus_L, $1)" != no; then
  3678. + # Linking always hardcodes the temporary library directory.
  3679. + _LT_TAGVAR(hardcode_action, $1)=relink
  3680. else
  3681. - MAGIC_CMD=:
  3682. + # We can link without hardcoding, and we can hardcode nonexisting dirs.
  3683. + _LT_TAGVAR(hardcode_action, $1)=immediate
  3684. fi
  3685. +else
  3686. + # We cannot hardcode anything, or else we can only hardcode existing
  3687. + # directories.
  3688. + _LT_TAGVAR(hardcode_action, $1)=unsupported
  3689. fi
  3690. -])# AC_PATH_MAGIC
  3691. +AC_MSG_RESULT([$_LT_TAGVAR(hardcode_action, $1)])
  3692. +if test "$_LT_TAGVAR(hardcode_action, $1)" = relink ||
  3693. + test "$_LT_TAGVAR(inherit_rpath, $1)" = yes; then
  3694. + # Fast installation is not supported
  3695. + enable_fast_install=no
  3696. +elif test "$shlibpath_overrides_runpath" = yes ||
  3697. + test "$enable_shared" = no; then
  3698. + # Fast installation is not necessary
  3699. + enable_fast_install=needless
  3700. +fi
  3701. +_LT_TAGDECL([], [hardcode_action], [0],
  3702. + [How to hardcode a shared library path into an executable])
  3703. +])# _LT_LINKER_HARDCODE_LIBPATH
  3704. -# AC_PROG_LD
  3705. -# ----------
  3706. -# find the pathname to the GNU or non-GNU linker
  3707. -AC_DEFUN([AC_PROG_LD],
  3708. -[AC_ARG_WITH([gnu-ld],
  3709. - [AC_HELP_STRING([--with-gnu-ld],
  3710. - [assume the C compiler uses GNU ld @<:@default=no@:>@])],
  3711. - [test "$withval" = no || with_gnu_ld=yes],
  3712. - [with_gnu_ld=no])
  3713. -AC_REQUIRE([LT_AC_PROG_SED])dnl
  3714. -AC_REQUIRE([AC_PROG_CC])dnl
  3715. -AC_REQUIRE([AC_CANONICAL_HOST])dnl
  3716. -AC_REQUIRE([AC_CANONICAL_BUILD])dnl
  3717. -ac_prog=ld
  3718. -if test "$GCC" = yes; then
  3719. - # Check if gcc -print-prog-name=ld gives a path.
  3720. - AC_MSG_CHECKING([for ld used by $CC])
  3721. - case $host in
  3722. - *-*-mingw*)
  3723. - # gcc leaves a trailing carriage return which upsets mingw
  3724. - ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  3725. - *)
  3726. - ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  3727. - esac
  3728. - case $ac_prog in
  3729. - # Accept absolute paths.
  3730. - [[\\/]]* | ?:[[\\/]]*)
  3731. - re_direlt='/[[^/]][[^/]]*/\.\./'
  3732. - # Canonicalize the pathname of ld
  3733. - ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
  3734. - while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
  3735. - ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
  3736. - done
  3737. - test -z "$LD" && LD="$ac_prog"
  3738. - ;;
  3739. - "")
  3740. - # If it fails, then pretend we aren't using GCC.
  3741. - ac_prog=ld
  3742. +
  3743. +# _LT_CMD_STRIPLIB
  3744. +# ----------------
  3745. +m4_defun([_LT_CMD_STRIPLIB],
  3746. +[m4_require([_LT_DECL_EGREP])
  3747. +striplib=
  3748. +old_striplib=
  3749. +AC_MSG_CHECKING([whether stripping libraries is possible])
  3750. +if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  3751. + test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  3752. + test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  3753. + AC_MSG_RESULT([yes])
  3754. +else
  3755. +# FIXME - insert some real tests, host_os isn't really good enough
  3756. + case $host_os in
  3757. + darwin*)
  3758. + if test -n "$STRIP" ; then
  3759. + striplib="$STRIP -x"
  3760. + old_striplib="$STRIP -S"
  3761. + AC_MSG_RESULT([yes])
  3762. + else
  3763. + AC_MSG_RESULT([no])
  3764. + fi
  3765. ;;
  3766. *)
  3767. - # If it is relative, then search for the first ld in PATH.
  3768. - with_gnu_ld=unknown
  3769. + AC_MSG_RESULT([no])
  3770. ;;
  3771. esac
  3772. -elif test "$with_gnu_ld" = yes; then
  3773. - AC_MSG_CHECKING([for GNU ld])
  3774. -else
  3775. - AC_MSG_CHECKING([for non-GNU ld])
  3776. fi
  3777. -AC_CACHE_VAL(lt_cv_path_LD,
  3778. -[if test -z "$LD"; then
  3779. - lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  3780. - for ac_dir in $PATH; do
  3781. - IFS="$lt_save_ifs"
  3782. - test -z "$ac_dir" && ac_dir=.
  3783. - if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  3784. - lt_cv_path_LD="$ac_dir/$ac_prog"
  3785. - # Check to see if the program is GNU ld. I'd rather use --version,
  3786. - # but apparently some variants of GNU ld only accept -v.
  3787. - # Break only if it was the GNU/non-GNU ld that we prefer.
  3788. - case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  3789. - *GNU* | *'with BFD'*)
  3790. - test "$with_gnu_ld" != no && break
  3791. - ;;
  3792. - *)
  3793. - test "$with_gnu_ld" != yes && break
  3794. - ;;
  3795. - esac
  3796. - fi
  3797. - done
  3798. - IFS="$lt_save_ifs"
  3799. -else
  3800. - lt_cv_path_LD="$LD" # Let the user override the test with a path.
  3801. -fi])
  3802. -LD="$lt_cv_path_LD"
  3803. -if test -n "$LD"; then
  3804. - AC_MSG_RESULT($LD)
  3805. -else
  3806. - AC_MSG_RESULT(no)
  3807. -fi
  3808. -test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])
  3809. -AC_PROG_LD_GNU
  3810. -])# AC_PROG_LD
  3811. -
  3812. -
  3813. -# AC_PROG_LD_GNU
  3814. -# --------------
  3815. -AC_DEFUN([AC_PROG_LD_GNU],
  3816. -[AC_REQUIRE([AC_PROG_EGREP])dnl
  3817. -AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld,
  3818. -[# I'd rather use --version here, but apparently some GNU lds only accept -v.
  3819. -case `$LD -v 2>&1 </dev/null` in
  3820. -*GNU* | *'with BFD'*)
  3821. - lt_cv_prog_gnu_ld=yes
  3822. - ;;
  3823. -*)
  3824. - lt_cv_prog_gnu_ld=no
  3825. - ;;
  3826. -esac])
  3827. -with_gnu_ld=$lt_cv_prog_gnu_ld
  3828. -])# AC_PROG_LD_GNU
  3829. +_LT_DECL([], [old_striplib], [1], [Commands to strip libraries])
  3830. +_LT_DECL([], [striplib], [1])
  3831. +])# _LT_CMD_STRIPLIB
  3832. -# AC_PROG_LD_RELOAD_FLAG
  3833. -# ----------------------
  3834. -# find reload flag for linker
  3835. -# -- PORTME Some linkers may need a different reload flag.
  3836. -AC_DEFUN([AC_PROG_LD_RELOAD_FLAG],
  3837. -[AC_CACHE_CHECK([for $LD option to reload object files],
  3838. - lt_cv_ld_reload_flag,
  3839. - [lt_cv_ld_reload_flag='-r'])
  3840. -reload_flag=$lt_cv_ld_reload_flag
  3841. -case $reload_flag in
  3842. -"" | " "*) ;;
  3843. -*) reload_flag=" $reload_flag" ;;
  3844. -esac
  3845. -reload_cmds='$LD$reload_flag -o $output$reload_objs'
  3846. -case $host_os in
  3847. - darwin*)
  3848. - if test "$GCC" = yes; then
  3849. - reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
  3850. +# _LT_SYS_DYNAMIC_LINKER([TAG])
  3851. +# -----------------------------
  3852. +# PORTME Fill in your ld.so characteristics
  3853. +m4_defun([_LT_SYS_DYNAMIC_LINKER],
  3854. +[AC_REQUIRE([AC_CANONICAL_HOST])dnl
  3855. +m4_require([_LT_DECL_EGREP])dnl
  3856. +m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  3857. +m4_require([_LT_DECL_OBJDUMP])dnl
  3858. +m4_require([_LT_DECL_SED])dnl
  3859. +AC_MSG_CHECKING([dynamic linker characteristics])
  3860. +m4_if([$1],
  3861. + [], [
  3862. +if test "$GCC" = yes; then
  3863. + case $host_os in
  3864. + darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
  3865. + *) lt_awk_arg="/^libraries:/" ;;
  3866. + esac
  3867. + lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  3868. + if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
  3869. + # if the path contains ";" then we assume it to be the separator
  3870. + # otherwise default to the standard path separator (i.e. ":") - it is
  3871. + # assumed that no part of a normal pathname contains ";" but that should
  3872. + # okay in the real world where ";" in dirpaths is itself problematic.
  3873. + lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
  3874. + else
  3875. + lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  3876. + fi
  3877. + # Ok, now we have the path, separated by spaces, we can step through it
  3878. + # and add multilib dir if necessary.
  3879. + lt_tmp_lt_search_path_spec=
  3880. + lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  3881. + for lt_sys_path in $lt_search_path_spec; do
  3882. + if test -d "$lt_sys_path/$lt_multi_os_dir"; then
  3883. + lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
  3884. else
  3885. - reload_cmds='$LD$reload_flag -o $output$reload_objs'
  3886. + test -d "$lt_sys_path" && \
  3887. + lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  3888. fi
  3889. - ;;
  3890. -esac
  3891. -])# AC_PROG_LD_RELOAD_FLAG
  3892. -
  3893. + done
  3894. + lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
  3895. +BEGIN {RS=" "; FS="/|\n";} {
  3896. + lt_foo="";
  3897. + lt_count=0;
  3898. + for (lt_i = NF; lt_i > 0; lt_i--) {
  3899. + if ($lt_i != "" && $lt_i != ".") {
  3900. + if ($lt_i == "..") {
  3901. + lt_count++;
  3902. + } else {
  3903. + if (lt_count == 0) {
  3904. + lt_foo="/" $lt_i lt_foo;
  3905. + } else {
  3906. + lt_count--;
  3907. + }
  3908. + }
  3909. + }
  3910. + }
  3911. + if (lt_foo != "") { lt_freq[[lt_foo]]++; }
  3912. + if (lt_freq[[lt_foo]] == 1) { print lt_foo; }
  3913. +}'`
  3914. + sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
  3915. +else
  3916. + sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  3917. +fi])
  3918. +library_names_spec=
  3919. +libname_spec='lib$name'
  3920. +soname_spec=
  3921. +shrext_cmds=".so"
  3922. +postinstall_cmds=
  3923. +postuninstall_cmds=
  3924. +finish_cmds=
  3925. +finish_eval=
  3926. +shlibpath_var=
  3927. +shlibpath_overrides_runpath=unknown
  3928. +version_type=none
  3929. +dynamic_linker="$host_os ld.so"
  3930. +sys_lib_dlsearch_path_spec="/lib /usr/lib"
  3931. +need_lib_prefix=unknown
  3932. +hardcode_into_libs=no
  3933. -# AC_DEPLIBS_CHECK_METHOD
  3934. -# -----------------------
  3935. -# how to check for library dependencies
  3936. -# -- PORTME fill in with the dynamic library characteristics
  3937. -AC_DEFUN([AC_DEPLIBS_CHECK_METHOD],
  3938. -[AC_CACHE_CHECK([how to recognise dependent libraries],
  3939. -lt_cv_deplibs_check_method,
  3940. -[lt_cv_file_magic_cmd='$MAGIC_CMD'
  3941. -lt_cv_file_magic_test_file=
  3942. -lt_cv_deplibs_check_method='unknown'
  3943. -# Need to set the preceding variable on all platforms that support
  3944. -# interlibrary dependencies.
  3945. -# 'none' -- dependencies not supported.
  3946. -# `unknown' -- same as none, but documents that we really don't know.
  3947. -# 'pass_all' -- all dependencies passed with no checks.
  3948. -# 'test_compile' -- check by making test program.
  3949. -# 'file_magic [[regex]]' -- check by looking for files in library path
  3950. -# which responds to the $file_magic_cmd with a given extended regex.
  3951. -# If you have `file' or equivalent on your system and you're not sure
  3952. -# whether `pass_all' will *always* work, you probably want this one.
  3953. +# when you set need_version to no, make sure it does not cause -set_version
  3954. +# flags to be left without arguments
  3955. +need_version=unknown
  3956. case $host_os in
  3957. -aix4* | aix5*)
  3958. - lt_cv_deplibs_check_method=pass_all
  3959. - ;;
  3960. -
  3961. -beos*)
  3962. - lt_cv_deplibs_check_method=pass_all
  3963. - ;;
  3964. -
  3965. -bsdi[[45]]*)
  3966. - lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)'
  3967. - lt_cv_file_magic_cmd='/usr/bin/file -L'
  3968. - lt_cv_file_magic_test_file=/shlib/libc.so
  3969. - ;;
  3970. -
  3971. -cygwin*)
  3972. - # func_win32_libid is a shell function defined in ltmain.sh
  3973. - lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  3974. - lt_cv_file_magic_cmd='func_win32_libid'
  3975. - ;;
  3976. -
  3977. -mingw* | pw32*)
  3978. - # Base MSYS/MinGW do not provide the 'file' command needed by
  3979. - # func_win32_libid shell function, so use a weaker test based on 'objdump'.
  3980. - lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
  3981. - lt_cv_file_magic_cmd='$OBJDUMP -f'
  3982. - ;;
  3983. +aix3*)
  3984. + version_type=linux
  3985. + library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  3986. + shlibpath_var=LIBPATH
  3987. -darwin* | rhapsody*)
  3988. - lt_cv_deplibs_check_method=pass_all
  3989. + # AIX 3 has no versioning support, so we append a major version to the name.
  3990. + soname_spec='${libname}${release}${shared_ext}$major'
  3991. ;;
  3992. -freebsd* | kfreebsd*-gnu | dragonfly*)
  3993. - if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
  3994. - case $host_cpu in
  3995. - i*86 )
  3996. - # Not sure whether the presence of OpenBSD here was a mistake.
  3997. - # Let's accept both of them until this is cleared up.
  3998. - lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[[3-9]]86 (compact )?demand paged shared library'
  3999. - lt_cv_file_magic_cmd=/usr/bin/file
  4000. - lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  4001. +aix[[4-9]]*)
  4002. + version_type=linux
  4003. + need_lib_prefix=no
  4004. + need_version=no
  4005. + hardcode_into_libs=yes
  4006. + if test "$host_cpu" = ia64; then
  4007. + # AIX 5 supports IA64
  4008. + library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  4009. + shlibpath_var=LD_LIBRARY_PATH
  4010. + else
  4011. + # With GCC up to 2.95.x, collect2 would create an import file
  4012. + # for dependence libraries. The import file would start with
  4013. + # the line `#! .'. This would cause the generated library to
  4014. + # depend on `.', always an invalid library. This was fixed in
  4015. + # development snapshots of GCC prior to 3.0.
  4016. + case $host_os in
  4017. + aix4 | aix4.[[01]] | aix4.[[01]].*)
  4018. + if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  4019. + echo ' yes '
  4020. + echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  4021. + :
  4022. + else
  4023. + can_build_shared=no
  4024. + fi
  4025. ;;
  4026. esac
  4027. - else
  4028. - lt_cv_deplibs_check_method=pass_all
  4029. + # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  4030. + # soname into executable. Probably we can add versioning support to
  4031. + # collect2, so additional links can be useful in future.
  4032. + if test "$aix_use_runtimelinking" = yes; then
  4033. + # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  4034. + # instead of lib<name>.a to let people know that these are not
  4035. + # typical AIX shared libraries.
  4036. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  4037. + else
  4038. + # We preserve .a as extension for shared libraries through AIX4.2
  4039. + # and later when we are not doing run time linking.
  4040. + library_names_spec='${libname}${release}.a $libname.a'
  4041. + soname_spec='${libname}${release}${shared_ext}$major'
  4042. + fi
  4043. + shlibpath_var=LIBPATH
  4044. fi
  4045. ;;
  4046. -gnu*)
  4047. - lt_cv_deplibs_check_method=pass_all
  4048. - ;;
  4049. -
  4050. -hpux10.20* | hpux11*)
  4051. - lt_cv_file_magic_cmd=/usr/bin/file
  4052. +amigaos*)
  4053. case $host_cpu in
  4054. - ia64*)
  4055. - lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64'
  4056. - lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  4057. - ;;
  4058. - hppa*64*)
  4059. - [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]']
  4060. - lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  4061. + powerpc)
  4062. + # Since July 2007 AmigaOS4 officially supports .so libraries.
  4063. + # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  4064. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  4065. ;;
  4066. - *)
  4067. - lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]].[[0-9]]) shared library'
  4068. - lt_cv_file_magic_test_file=/usr/lib/libc.sl
  4069. + m68k)
  4070. + library_names_spec='$libname.ixlibrary $libname.a'
  4071. + # Create ${libname}_ixlibrary.a entries in /sys/libs.
  4072. + 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'
  4073. ;;
  4074. esac
  4075. ;;
  4076. -interix3*)
  4077. - # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  4078. - lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|\.a)$'
  4079. - ;;
  4080. -
  4081. -irix5* | irix6* | nonstopux*)
  4082. - case $LD in
  4083. - *-32|*"-32 ") libmagic=32-bit;;
  4084. - *-n32|*"-n32 ") libmagic=N32;;
  4085. - *-64|*"-64 ") libmagic=64-bit;;
  4086. - *) libmagic=never-match;;
  4087. - esac
  4088. - lt_cv_deplibs_check_method=pass_all
  4089. +beos*)
  4090. + library_names_spec='${libname}${shared_ext}'
  4091. + dynamic_linker="$host_os ld.so"
  4092. + shlibpath_var=LIBRARY_PATH
  4093. ;;
  4094. -# This must be Linux ELF.
  4095. -linux*)
  4096. - lt_cv_deplibs_check_method=pass_all
  4097. +bsdi[[45]]*)
  4098. + version_type=linux
  4099. + need_version=no
  4100. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  4101. + soname_spec='${libname}${release}${shared_ext}$major'
  4102. + finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  4103. + shlibpath_var=LD_LIBRARY_PATH
  4104. + sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  4105. + sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  4106. + # the default ld.so.conf also contains /usr/contrib/lib and
  4107. + # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  4108. + # libtool to hard-code these into programs
  4109. ;;
  4110. -netbsd*)
  4111. - if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
  4112. - lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
  4113. - else
  4114. - lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$'
  4115. - fi
  4116. - ;;
  4117. +cygwin* | mingw* | pw32* | cegcc*)
  4118. + version_type=windows
  4119. + shrext_cmds=".dll"
  4120. + need_version=no
  4121. + need_lib_prefix=no
  4122. -newos6*)
  4123. - lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (executable|dynamic lib)'
  4124. - lt_cv_file_magic_cmd=/usr/bin/file
  4125. - lt_cv_file_magic_test_file=/usr/lib/libnls.so
  4126. - ;;
  4127. + case $GCC,$host_os in
  4128. + yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
  4129. + library_names_spec='$libname.dll.a'
  4130. + # DLL is installed to $(libdir)/../bin by postinstall_cmds
  4131. + postinstall_cmds='base_file=`basename \${file}`~
  4132. + dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  4133. + dldir=$destdir/`dirname \$dlpath`~
  4134. + test -d \$dldir || mkdir -p \$dldir~
  4135. + $install_prog $dir/$dlname \$dldir/$dlname~
  4136. + chmod a+x \$dldir/$dlname~
  4137. + if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  4138. + eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  4139. + fi'
  4140. + postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  4141. + dlpath=$dir/\$dldll~
  4142. + $RM \$dlpath'
  4143. + shlibpath_overrides_runpath=yes
  4144. +
  4145. + case $host_os in
  4146. + cygwin*)
  4147. + # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  4148. + soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  4149. + sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  4150. + ;;
  4151. + mingw* | cegcc*)
  4152. + # MinGW DLLs use traditional 'lib' prefix
  4153. + soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  4154. + sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  4155. + if $ECHO "$sys_lib_search_path_spec" | [$GREP ';[c-zC-Z]:/' >/dev/null]; then
  4156. + # It is most probably a Windows format PATH printed by
  4157. + # mingw gcc, but we are running on Cygwin. Gcc prints its search
  4158. + # path with ; separators, and with drive letters. We can handle the
  4159. + # drive letters (cygwin fileutils understands them), so leave them,
  4160. + # especially as we might pass files found there to a mingw objdump,
  4161. + # which wouldn't understand a cygwinified path. Ahh.
  4162. + sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  4163. + else
  4164. + sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  4165. + fi
  4166. + ;;
  4167. + pw32*)
  4168. + # pw32 DLLs use 'pw' prefix rather than 'lib'
  4169. + library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  4170. + ;;
  4171. + esac
  4172. + ;;
  4173. -nto-qnx*)
  4174. - lt_cv_deplibs_check_method=unknown
  4175. + *)
  4176. + library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $libname.lib'
  4177. + ;;
  4178. + esac
  4179. + dynamic_linker='Win32 ld.exe'
  4180. + # FIXME: first we should search . and the directory the executable is in
  4181. + shlibpath_var=PATH
  4182. ;;
  4183. -openbsd*)
  4184. - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  4185. - lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$'
  4186. - else
  4187. - lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
  4188. - fi
  4189. +darwin* | rhapsody*)
  4190. + dynamic_linker="$host_os dyld"
  4191. + version_type=darwin
  4192. + need_lib_prefix=no
  4193. + need_version=no
  4194. + library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  4195. + soname_spec='${libname}${release}${major}$shared_ext'
  4196. + shlibpath_overrides_runpath=yes
  4197. + shlibpath_var=DYLD_LIBRARY_PATH
  4198. + shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  4199. +m4_if([$1], [],[
  4200. + sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"])
  4201. + sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  4202. ;;
  4203. -osf3* | osf4* | osf5*)
  4204. - lt_cv_deplibs_check_method=pass_all
  4205. +dgux*)
  4206. + version_type=linux
  4207. + need_lib_prefix=no
  4208. + need_version=no
  4209. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  4210. + soname_spec='${libname}${release}${shared_ext}$major'
  4211. + shlibpath_var=LD_LIBRARY_PATH
  4212. ;;
  4213. -solaris*)
  4214. - lt_cv_deplibs_check_method=pass_all
  4215. +freebsd1*)
  4216. + dynamic_linker=no
  4217. ;;
  4218. -sysv4 | sysv4.3*)
  4219. - case $host_vendor in
  4220. - motorola)
  4221. - 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]]'
  4222. - lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  4223. +freebsd* | dragonfly*)
  4224. + # DragonFly does not have aout. When/if they implement a new
  4225. + # versioning mechanism, adjust this.
  4226. + if test -x /usr/bin/objformat; then
  4227. + objformat=`/usr/bin/objformat`
  4228. + else
  4229. + case $host_os in
  4230. + freebsd[[123]]*) objformat=aout ;;
  4231. + *) objformat=elf ;;
  4232. + esac
  4233. + fi
  4234. + version_type=freebsd-$objformat
  4235. + case $version_type in
  4236. + freebsd-elf*)
  4237. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  4238. + need_version=no
  4239. + need_lib_prefix=no
  4240. + ;;
  4241. + freebsd-*)
  4242. + library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  4243. + need_version=yes
  4244. + ;;
  4245. + esac
  4246. + shlibpath_var=LD_LIBRARY_PATH
  4247. + case $host_os in
  4248. + freebsd2*)
  4249. + shlibpath_overrides_runpath=yes
  4250. ;;
  4251. - ncr)
  4252. - lt_cv_deplibs_check_method=pass_all
  4253. + freebsd3.[[01]]* | freebsdelf3.[[01]]*)
  4254. + shlibpath_overrides_runpath=yes
  4255. + hardcode_into_libs=yes
  4256. ;;
  4257. - sequent)
  4258. - lt_cv_file_magic_cmd='/bin/file'
  4259. - lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )'
  4260. + freebsd3.[[2-9]]* | freebsdelf3.[[2-9]]* | \
  4261. + freebsd4.[[0-5]] | freebsdelf4.[[0-5]] | freebsd4.1.1 | freebsdelf4.1.1)
  4262. + shlibpath_overrides_runpath=no
  4263. + hardcode_into_libs=yes
  4264. ;;
  4265. - sni)
  4266. - lt_cv_file_magic_cmd='/bin/file'
  4267. - lt_cv_deplibs_check_method="file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB dynamic lib"
  4268. - lt_cv_file_magic_test_file=/lib/libc.so
  4269. + *) # from 4.6 on, and DragonFly
  4270. + shlibpath_overrides_runpath=yes
  4271. + hardcode_into_libs=yes
  4272. ;;
  4273. - siemens)
  4274. - lt_cv_deplibs_check_method=pass_all
  4275. + esac
  4276. + ;;
  4277. +
  4278. +gnu*)
  4279. + version_type=linux
  4280. + need_lib_prefix=no
  4281. + need_version=no
  4282. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  4283. + soname_spec='${libname}${release}${shared_ext}$major'
  4284. + shlibpath_var=LD_LIBRARY_PATH
  4285. + hardcode_into_libs=yes
  4286. + ;;
  4287. +
  4288. +hpux9* | hpux10* | hpux11*)
  4289. + # Give a soname corresponding to the major version so that dld.sl refuses to
  4290. + # link against other versions.
  4291. + version_type=sunos
  4292. + need_lib_prefix=no
  4293. + need_version=no
  4294. + case $host_cpu in
  4295. + ia64*)
  4296. + shrext_cmds='.so'
  4297. + hardcode_into_libs=yes
  4298. + dynamic_linker="$host_os dld.so"
  4299. + shlibpath_var=LD_LIBRARY_PATH
  4300. + shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  4301. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  4302. + soname_spec='${libname}${release}${shared_ext}$major'
  4303. + if test "X$HPUX_IA64_MODE" = X32; then
  4304. + sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  4305. + else
  4306. + sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  4307. + fi
  4308. + sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  4309. ;;
  4310. - pc)
  4311. - lt_cv_deplibs_check_method=pass_all
  4312. + hppa*64*)
  4313. + shrext_cmds='.sl'
  4314. + hardcode_into_libs=yes
  4315. + dynamic_linker="$host_os dld.sl"
  4316. + shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  4317. + shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  4318. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  4319. + soname_spec='${libname}${release}${shared_ext}$major'
  4320. + sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  4321. + sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  4322. + ;;
  4323. + *)
  4324. + shrext_cmds='.sl'
  4325. + dynamic_linker="$host_os dld.sl"
  4326. + shlibpath_var=SHLIB_PATH
  4327. + shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  4328. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  4329. + soname_spec='${libname}${release}${shared_ext}$major'
  4330. ;;
  4331. esac
  4332. + # HP-UX runs *really* slowly unless shared libraries are mode 555.
  4333. + postinstall_cmds='chmod 555 $lib'
  4334. ;;
  4335. -sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  4336. - lt_cv_deplibs_check_method=pass_all
  4337. +interix[[3-9]]*)
  4338. + version_type=linux
  4339. + need_lib_prefix=no
  4340. + need_version=no
  4341. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  4342. + soname_spec='${libname}${release}${shared_ext}$major'
  4343. + dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  4344. + shlibpath_var=LD_LIBRARY_PATH
  4345. + shlibpath_overrides_runpath=no
  4346. + hardcode_into_libs=yes
  4347. + ;;
  4348. +
  4349. +irix5* | irix6* | nonstopux*)
  4350. + case $host_os in
  4351. + nonstopux*) version_type=nonstopux ;;
  4352. + *)
  4353. + if test "$lt_cv_prog_gnu_ld" = yes; then
  4354. + version_type=linux
  4355. + else
  4356. + version_type=irix
  4357. + fi ;;
  4358. + esac
  4359. + need_lib_prefix=no
  4360. + need_version=no
  4361. + soname_spec='${libname}${release}${shared_ext}$major'
  4362. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  4363. + case $host_os in
  4364. + irix5* | nonstopux*)
  4365. + libsuff= shlibsuff=
  4366. + ;;
  4367. + *)
  4368. + case $LD in # libtool.m4 will add one of these switches to LD
  4369. + *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  4370. + libsuff= shlibsuff= libmagic=32-bit;;
  4371. + *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  4372. + libsuff=32 shlibsuff=N32 libmagic=N32;;
  4373. + *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  4374. + libsuff=64 shlibsuff=64 libmagic=64-bit;;
  4375. + *) libsuff= shlibsuff= libmagic=never-match;;
  4376. + esac
  4377. + ;;
  4378. + esac
  4379. + shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  4380. + shlibpath_overrides_runpath=no
  4381. + sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  4382. + sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  4383. + hardcode_into_libs=yes
  4384. ;;
  4385. -esac
  4386. -])
  4387. -file_magic_cmd=$lt_cv_file_magic_cmd
  4388. -deplibs_check_method=$lt_cv_deplibs_check_method
  4389. -test -z "$deplibs_check_method" && deplibs_check_method=unknown
  4390. -])# AC_DEPLIBS_CHECK_METHOD
  4391. +# No shared lib support for Linux oldld, aout, or coff.
  4392. +linux*oldld* | linux*aout* | linux*coff*)
  4393. + dynamic_linker=no
  4394. + ;;
  4395. -# AC_PROG_NM
  4396. -# ----------
  4397. -# find the pathname to a BSD-compatible name lister
  4398. -AC_DEFUN([AC_PROG_NM],
  4399. -[AC_CACHE_CHECK([for BSD-compatible nm], lt_cv_path_NM,
  4400. -[if test -n "$NM"; then
  4401. - # Let the user override the test.
  4402. - lt_cv_path_NM="$NM"
  4403. -else
  4404. - lt_nm_to_check="${ac_tool_prefix}nm"
  4405. - if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  4406. - lt_nm_to_check="$lt_nm_to_check nm"
  4407. +# This must be Linux ELF.
  4408. +linux* | k*bsd*-gnu | kopensolaris*-gnu)
  4409. + version_type=linux
  4410. + need_lib_prefix=no
  4411. + need_version=no
  4412. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  4413. + soname_spec='${libname}${release}${shared_ext}$major'
  4414. + finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  4415. + shlibpath_var=LD_LIBRARY_PATH
  4416. + shlibpath_overrides_runpath=no
  4417. + # Some binutils ld are patched to set DT_RUNPATH
  4418. + save_LDFLAGS=$LDFLAGS
  4419. + save_libdir=$libdir
  4420. + eval "libdir=/foo; wl=\"$_LT_TAGVAR(lt_prog_compiler_wl, $1)\"; \
  4421. + LDFLAGS=\"\$LDFLAGS $_LT_TAGVAR(hardcode_libdir_flag_spec, $1)\""
  4422. + AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
  4423. + [AS_IF([ ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null],
  4424. + [shlibpath_overrides_runpath=yes])])
  4425. + LDFLAGS=$save_LDFLAGS
  4426. + libdir=$save_libdir
  4427. +
  4428. + # This implies no fast_install, which is unacceptable.
  4429. + # Some rework will be needed to allow for fast_install
  4430. + # before this can be enabled.
  4431. + hardcode_into_libs=yes
  4432. +
  4433. + # Append ld.so.conf contents to the search path
  4434. + if test -f /etc/ld.so.conf; then
  4435. + 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' ' '`
  4436. + sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  4437. fi
  4438. - for lt_tmp_nm in $lt_nm_to_check; do
  4439. - lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  4440. - for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  4441. - IFS="$lt_save_ifs"
  4442. - test -z "$ac_dir" && ac_dir=.
  4443. - tmp_nm="$ac_dir/$lt_tmp_nm"
  4444. - if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
  4445. - # Check to see if the nm accepts a BSD-compat flag.
  4446. - # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  4447. - # nm: unknown option "B" ignored
  4448. - # Tru64's nm complains that /dev/null is an invalid object file
  4449. - case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
  4450. - */dev/null* | *'Invalid file or object type'*)
  4451. - lt_cv_path_NM="$tmp_nm -B"
  4452. - break
  4453. - ;;
  4454. - *)
  4455. - case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  4456. - */dev/null*)
  4457. - lt_cv_path_NM="$tmp_nm -p"
  4458. - break
  4459. - ;;
  4460. - *)
  4461. - lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  4462. - continue # so that we can try to find one that supports BSD flags
  4463. - ;;
  4464. - esac
  4465. - ;;
  4466. - esac
  4467. - fi
  4468. - done
  4469. - IFS="$lt_save_ifs"
  4470. - done
  4471. - test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
  4472. -fi])
  4473. -NM="$lt_cv_path_NM"
  4474. -])# AC_PROG_NM
  4475. -
  4476. -# AC_CHECK_LIBM
  4477. -# -------------
  4478. -# check for math library
  4479. -AC_DEFUN([AC_CHECK_LIBM],
  4480. -[AC_REQUIRE([AC_CANONICAL_HOST])dnl
  4481. -LIBM=
  4482. -case $host in
  4483. -*-*-beos* | *-*-cygwin* | *-*-pw32* | *-*-darwin*)
  4484. - # These system don't have libm, or don't need it
  4485. - ;;
  4486. -*-ncr-sysv4.3*)
  4487. - AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM="-lmw")
  4488. - AC_CHECK_LIB(m, cos, LIBM="$LIBM -lm")
  4489. + # We used to test for /lib/ld.so.1 and disable shared libraries on
  4490. + # powerpc, because MkLinux only supported shared libraries with the
  4491. + # GNU dynamic linker. Since this was broken with cross compilers,
  4492. + # most powerpc-linux boxes support dynamic linking these days and
  4493. + # people can always --disable-shared, the test was removed, and we
  4494. + # assume the GNU/Linux dynamic linker is in use.
  4495. + dynamic_linker='GNU/Linux ld.so'
  4496. ;;
  4497. -*)
  4498. - AC_CHECK_LIB(m, cos, LIBM="-lm")
  4499. +
  4500. +netbsdelf*-gnu)
  4501. + version_type=linux
  4502. + need_lib_prefix=no
  4503. + need_version=no
  4504. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  4505. + soname_spec='${libname}${release}${shared_ext}$major'
  4506. + shlibpath_var=LD_LIBRARY_PATH
  4507. + shlibpath_overrides_runpath=no
  4508. + hardcode_into_libs=yes
  4509. + dynamic_linker='NetBSD ld.elf_so'
  4510. ;;
  4511. -esac
  4512. -])# AC_CHECK_LIBM
  4513. +netbsd*)
  4514. + version_type=sunos
  4515. + need_lib_prefix=no
  4516. + need_version=no
  4517. + if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  4518. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  4519. + finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  4520. + dynamic_linker='NetBSD (a.out) ld.so'
  4521. + else
  4522. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  4523. + soname_spec='${libname}${release}${shared_ext}$major'
  4524. + dynamic_linker='NetBSD ld.elf_so'
  4525. + fi
  4526. + shlibpath_var=LD_LIBRARY_PATH
  4527. + shlibpath_overrides_runpath=yes
  4528. + hardcode_into_libs=yes
  4529. + ;;
  4530. -# AC_LIBLTDL_CONVENIENCE([DIRECTORY])
  4531. -# -----------------------------------
  4532. -# sets LIBLTDL to the link flags for the libltdl convenience library and
  4533. -# LTDLINCL to the include flags for the libltdl header and adds
  4534. -# --enable-ltdl-convenience to the configure arguments. Note that
  4535. -# AC_CONFIG_SUBDIRS is not called here. If DIRECTORY is not provided,
  4536. -# it is assumed to be `libltdl'. LIBLTDL will be prefixed with
  4537. -# '${top_builddir}/' and LTDLINCL will be prefixed with '${top_srcdir}/'
  4538. -# (note the single quotes!). If your package is not flat and you're not
  4539. -# using automake, define top_builddir and top_srcdir appropriately in
  4540. -# the Makefiles.
  4541. -AC_DEFUN([AC_LIBLTDL_CONVENIENCE],
  4542. -[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
  4543. - case $enable_ltdl_convenience in
  4544. - no) AC_MSG_ERROR([this package needs a convenience libltdl]) ;;
  4545. - "") enable_ltdl_convenience=yes
  4546. - ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
  4547. - esac
  4548. - LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdlc.la
  4549. - LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
  4550. - # For backwards non-gettext consistent compatibility...
  4551. - INCLTDL="$LTDLINCL"
  4552. -])# AC_LIBLTDL_CONVENIENCE
  4553. +newsos6)
  4554. + version_type=linux
  4555. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  4556. + shlibpath_var=LD_LIBRARY_PATH
  4557. + shlibpath_overrides_runpath=yes
  4558. + ;;
  4559. +*nto* | *qnx*)
  4560. + version_type=qnx
  4561. + need_lib_prefix=no
  4562. + need_version=no
  4563. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  4564. + soname_spec='${libname}${release}${shared_ext}$major'
  4565. + shlibpath_var=LD_LIBRARY_PATH
  4566. + shlibpath_overrides_runpath=no
  4567. + hardcode_into_libs=yes
  4568. + dynamic_linker='ldqnx.so'
  4569. + ;;
  4570. -# AC_LIBLTDL_INSTALLABLE([DIRECTORY])
  4571. -# -----------------------------------
  4572. -# sets LIBLTDL to the link flags for the libltdl installable library and
  4573. -# LTDLINCL to the include flags for the libltdl header and adds
  4574. -# --enable-ltdl-install to the configure arguments. Note that
  4575. -# AC_CONFIG_SUBDIRS is not called here. If DIRECTORY is not provided,
  4576. -# and an installed libltdl is not found, it is assumed to be `libltdl'.
  4577. -# LIBLTDL will be prefixed with '${top_builddir}/'# and LTDLINCL with
  4578. -# '${top_srcdir}/' (note the single quotes!). If your package is not
  4579. -# flat and you're not using automake, define top_builddir and top_srcdir
  4580. -# appropriately in the Makefiles.
  4581. -# In the future, this macro may have to be called after AC_PROG_LIBTOOL.
  4582. -AC_DEFUN([AC_LIBLTDL_INSTALLABLE],
  4583. -[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
  4584. - AC_CHECK_LIB(ltdl, lt_dlinit,
  4585. - [test x"$enable_ltdl_install" != xyes && enable_ltdl_install=no],
  4586. - [if test x"$enable_ltdl_install" = xno; then
  4587. - AC_MSG_WARN([libltdl not installed, but installation disabled])
  4588. - else
  4589. - enable_ltdl_install=yes
  4590. - fi
  4591. - ])
  4592. - if test x"$enable_ltdl_install" = x"yes"; then
  4593. - ac_configure_args="$ac_configure_args --enable-ltdl-install"
  4594. - LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdl.la
  4595. - LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
  4596. +openbsd*)
  4597. + version_type=sunos
  4598. + sys_lib_dlsearch_path_spec="/usr/lib"
  4599. + need_lib_prefix=no
  4600. + # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  4601. + case $host_os in
  4602. + openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  4603. + *) need_version=no ;;
  4604. + esac
  4605. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  4606. + finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  4607. + shlibpath_var=LD_LIBRARY_PATH
  4608. + if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  4609. + case $host_os in
  4610. + openbsd2.[[89]] | openbsd2.[[89]].*)
  4611. + shlibpath_overrides_runpath=no
  4612. + ;;
  4613. + *)
  4614. + shlibpath_overrides_runpath=yes
  4615. + ;;
  4616. + esac
  4617. else
  4618. - ac_configure_args="$ac_configure_args --enable-ltdl-install=no"
  4619. - LIBLTDL="-lltdl"
  4620. - LTDLINCL=
  4621. + shlibpath_overrides_runpath=yes
  4622. fi
  4623. - # For backwards non-gettext consistent compatibility...
  4624. - INCLTDL="$LTDLINCL"
  4625. -])# AC_LIBLTDL_INSTALLABLE
  4626. -
  4627. + ;;
  4628. -# AC_LIBTOOL_CXX
  4629. -# --------------
  4630. -# enable support for C++ libraries
  4631. -AC_DEFUN([AC_LIBTOOL_CXX],
  4632. -[AC_REQUIRE([_LT_AC_LANG_CXX])
  4633. -])# AC_LIBTOOL_CXX
  4634. +os2*)
  4635. + libname_spec='$name'
  4636. + shrext_cmds=".dll"
  4637. + need_lib_prefix=no
  4638. + library_names_spec='$libname${shared_ext} $libname.a'
  4639. + dynamic_linker='OS/2 ld.exe'
  4640. + shlibpath_var=LIBPATH
  4641. + ;;
  4642. +osf3* | osf4* | osf5*)
  4643. + version_type=osf
  4644. + need_lib_prefix=no
  4645. + need_version=no
  4646. + soname_spec='${libname}${release}${shared_ext}$major'
  4647. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  4648. + shlibpath_var=LD_LIBRARY_PATH
  4649. + sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  4650. + sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  4651. + ;;
  4652. -# _LT_AC_LANG_CXX
  4653. -# ---------------
  4654. -AC_DEFUN([_LT_AC_LANG_CXX],
  4655. -[AC_REQUIRE([AC_PROG_CXX])
  4656. -AC_REQUIRE([_LT_AC_PROG_CXXCPP])
  4657. -_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}CXX])
  4658. -])# _LT_AC_LANG_CXX
  4659. +rdos*)
  4660. + dynamic_linker=no
  4661. + ;;
  4662. -# _LT_AC_PROG_CXXCPP
  4663. -# ------------------
  4664. -AC_DEFUN([_LT_AC_PROG_CXXCPP],
  4665. -[
  4666. -AC_REQUIRE([AC_PROG_CXX])
  4667. -if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
  4668. - ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
  4669. - (test "X$CXX" != "Xg++"))) ; then
  4670. - AC_PROG_CXXCPP
  4671. -fi
  4672. -])# _LT_AC_PROG_CXXCPP
  4673. +solaris*)
  4674. + version_type=linux
  4675. + need_lib_prefix=no
  4676. + need_version=no
  4677. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  4678. + soname_spec='${libname}${release}${shared_ext}$major'
  4679. + shlibpath_var=LD_LIBRARY_PATH
  4680. + shlibpath_overrides_runpath=yes
  4681. + hardcode_into_libs=yes
  4682. + # ldd complains unless libraries are executable
  4683. + postinstall_cmds='chmod +x $lib'
  4684. + ;;
  4685. -# AC_LIBTOOL_F77
  4686. -# --------------
  4687. -# enable support for Fortran 77 libraries
  4688. -AC_DEFUN([AC_LIBTOOL_F77],
  4689. -[AC_REQUIRE([_LT_AC_LANG_F77])
  4690. -])# AC_LIBTOOL_F77
  4691. +sunos4*)
  4692. + version_type=sunos
  4693. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  4694. + finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  4695. + shlibpath_var=LD_LIBRARY_PATH
  4696. + shlibpath_overrides_runpath=yes
  4697. + if test "$with_gnu_ld" = yes; then
  4698. + need_lib_prefix=no
  4699. + fi
  4700. + need_version=yes
  4701. + ;;
  4702. +sysv4 | sysv4.3*)
  4703. + version_type=linux
  4704. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  4705. + soname_spec='${libname}${release}${shared_ext}$major'
  4706. + shlibpath_var=LD_LIBRARY_PATH
  4707. + case $host_vendor in
  4708. + sni)
  4709. + shlibpath_overrides_runpath=no
  4710. + need_lib_prefix=no
  4711. + runpath_var=LD_RUN_PATH
  4712. + ;;
  4713. + siemens)
  4714. + need_lib_prefix=no
  4715. + ;;
  4716. + motorola)
  4717. + need_lib_prefix=no
  4718. + need_version=no
  4719. + shlibpath_overrides_runpath=no
  4720. + sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  4721. + ;;
  4722. + esac
  4723. + ;;
  4724. -# _LT_AC_LANG_F77
  4725. -# ---------------
  4726. -AC_DEFUN([_LT_AC_LANG_F77],
  4727. -[AC_REQUIRE([AC_PROG_F77])
  4728. -_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}F77])
  4729. -])# _LT_AC_LANG_F77
  4730. +sysv4*MP*)
  4731. + if test -d /usr/nec ;then
  4732. + version_type=linux
  4733. + library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  4734. + soname_spec='$libname${shared_ext}.$major'
  4735. + shlibpath_var=LD_LIBRARY_PATH
  4736. + fi
  4737. + ;;
  4738. +sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  4739. + version_type=freebsd-elf
  4740. + need_lib_prefix=no
  4741. + need_version=no
  4742. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  4743. + soname_spec='${libname}${release}${shared_ext}$major'
  4744. + shlibpath_var=LD_LIBRARY_PATH
  4745. + shlibpath_overrides_runpath=yes
  4746. + hardcode_into_libs=yes
  4747. + if test "$with_gnu_ld" = yes; then
  4748. + sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  4749. + else
  4750. + sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  4751. + case $host_os in
  4752. + sco3.2v5*)
  4753. + sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  4754. + ;;
  4755. + esac
  4756. + fi
  4757. + sys_lib_dlsearch_path_spec='/usr/lib'
  4758. + ;;
  4759. -# AC_LIBTOOL_GCJ
  4760. -# --------------
  4761. -# enable support for GCJ libraries
  4762. -AC_DEFUN([AC_LIBTOOL_GCJ],
  4763. -[AC_REQUIRE([_LT_AC_LANG_GCJ])
  4764. -])# AC_LIBTOOL_GCJ
  4765. +tpf*)
  4766. + # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  4767. + version_type=linux
  4768. + need_lib_prefix=no
  4769. + need_version=no
  4770. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  4771. + shlibpath_var=LD_LIBRARY_PATH
  4772. + shlibpath_overrides_runpath=no
  4773. + hardcode_into_libs=yes
  4774. + ;;
  4775. +uts4*)
  4776. + version_type=linux
  4777. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  4778. + soname_spec='${libname}${release}${shared_ext}$major'
  4779. + shlibpath_var=LD_LIBRARY_PATH
  4780. + ;;
  4781. -# _LT_AC_LANG_GCJ
  4782. -# ---------------
  4783. -AC_DEFUN([_LT_AC_LANG_GCJ],
  4784. -[AC_PROVIDE_IFELSE([AC_PROG_GCJ],[],
  4785. - [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],[],
  4786. - [AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ],[],
  4787. - [ifdef([AC_PROG_GCJ],[AC_REQUIRE([AC_PROG_GCJ])],
  4788. - [ifdef([A][M_PROG_GCJ],[AC_REQUIRE([A][M_PROG_GCJ])],
  4789. - [AC_REQUIRE([A][C_PROG_GCJ_OR_A][M_PROG_GCJ])])])])])])
  4790. -_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}GCJ])
  4791. -])# _LT_AC_LANG_GCJ
  4792. +*)
  4793. + dynamic_linker=no
  4794. + ;;
  4795. +esac
  4796. +AC_MSG_RESULT([$dynamic_linker])
  4797. +test "$dynamic_linker" = no && can_build_shared=no
  4798. +variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  4799. +if test "$GCC" = yes; then
  4800. + variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  4801. +fi
  4802. -# AC_LIBTOOL_RC
  4803. -# -------------
  4804. -# enable support for Windows resource files
  4805. -AC_DEFUN([AC_LIBTOOL_RC],
  4806. -[AC_REQUIRE([LT_AC_PROG_RC])
  4807. -_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}RC])
  4808. -])# AC_LIBTOOL_RC
  4809. +if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  4810. + sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  4811. +fi
  4812. +if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  4813. + sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  4814. +fi
  4815. +_LT_DECL([], [variables_saved_for_relink], [1],
  4816. + [Variables whose values should be saved in libtool wrapper scripts and
  4817. + restored at link time])
  4818. +_LT_DECL([], [need_lib_prefix], [0],
  4819. + [Do we need the "lib" prefix for modules?])
  4820. +_LT_DECL([], [need_version], [0], [Do we need a version for libraries?])
  4821. +_LT_DECL([], [version_type], [0], [Library versioning type])
  4822. +_LT_DECL([], [runpath_var], [0], [Shared library runtime path variable])
  4823. +_LT_DECL([], [shlibpath_var], [0],[Shared library path variable])
  4824. +_LT_DECL([], [shlibpath_overrides_runpath], [0],
  4825. + [Is shlibpath searched before the hard-coded library search path?])
  4826. +_LT_DECL([], [libname_spec], [1], [Format of library name prefix])
  4827. +_LT_DECL([], [library_names_spec], [1],
  4828. + [[List of archive names. First name is the real one, the rest are links.
  4829. + The last name is the one that the linker finds with -lNAME]])
  4830. +_LT_DECL([], [soname_spec], [1],
  4831. + [[The coded name of the library, if different from the real name]])
  4832. +_LT_DECL([], [postinstall_cmds], [2],
  4833. + [Command to use after installation of a shared archive])
  4834. +_LT_DECL([], [postuninstall_cmds], [2],
  4835. + [Command to use after uninstallation of a shared archive])
  4836. +_LT_DECL([], [finish_cmds], [2],
  4837. + [Commands used to finish a libtool library installation in a directory])
  4838. +_LT_DECL([], [finish_eval], [1],
  4839. + [[As "finish_cmds", except a single script fragment to be evaled but
  4840. + not shown]])
  4841. +_LT_DECL([], [hardcode_into_libs], [0],
  4842. + [Whether we should hardcode library paths into libraries])
  4843. +_LT_DECL([], [sys_lib_search_path_spec], [2],
  4844. + [Compile-time system search path for libraries])
  4845. +_LT_DECL([], [sys_lib_dlsearch_path_spec], [2],
  4846. + [Run-time system search path for libraries])
  4847. +])# _LT_SYS_DYNAMIC_LINKER
  4848. -# AC_LIBTOOL_LANG_C_CONFIG
  4849. -# ------------------------
  4850. -# Ensure that the configuration vars for the C compiler are
  4851. -# suitably defined. Those variables are subsequently used by
  4852. -# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
  4853. -AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG], [_LT_AC_LANG_C_CONFIG])
  4854. -AC_DEFUN([_LT_AC_LANG_C_CONFIG],
  4855. -[lt_save_CC="$CC"
  4856. -AC_LANG_PUSH(C)
  4857. -# Source file extension for C test sources.
  4858. -ac_ext=c
  4859. -
  4860. -# Object file extension for compiled C test sources.
  4861. -objext=o
  4862. -_LT_AC_TAGVAR(objext, $1)=$objext
  4863. -
  4864. -# Code to be used in simple compile tests
  4865. -lt_simple_compile_test_code="int some_variable = 0;\n"
  4866. -
  4867. -# Code to be used in simple link tests
  4868. -lt_simple_link_test_code='int main(){return(0);}\n'
  4869. -
  4870. -_LT_AC_SYS_COMPILER
  4871. -
  4872. -# save warnings/boilerplate of simple test code
  4873. -_LT_COMPILER_BOILERPLATE
  4874. -_LT_LINKER_BOILERPLATE
  4875. -
  4876. -AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1)
  4877. -AC_LIBTOOL_PROG_COMPILER_PIC($1)
  4878. -AC_LIBTOOL_PROG_CC_C_O($1)
  4879. -AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
  4880. -AC_LIBTOOL_PROG_LD_SHLIBS($1)
  4881. -AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
  4882. -AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
  4883. -AC_LIBTOOL_SYS_LIB_STRIP
  4884. -AC_LIBTOOL_DLOPEN_SELF
  4885. -
  4886. -# Report which library types will actually be built
  4887. -AC_MSG_CHECKING([if libtool supports shared libraries])
  4888. -AC_MSG_RESULT([$can_build_shared])
  4889. -
  4890. -AC_MSG_CHECKING([whether to build shared libraries])
  4891. -test "$can_build_shared" = "no" && enable_shared=no
  4892. -
  4893. -# On AIX, shared libraries and static libraries use the same namespace, and
  4894. -# are all built from PIC.
  4895. -case $host_os in
  4896. -aix3*)
  4897. - test "$enable_shared" = yes && enable_static=no
  4898. - if test -n "$RANLIB"; then
  4899. - archive_cmds="$archive_cmds~\$RANLIB \$lib"
  4900. - postinstall_cmds='$RANLIB $lib'
  4901. - fi
  4902. +# _LT_PATH_TOOL_PREFIX(TOOL)
  4903. +# --------------------------
  4904. +# find a file program which can recognize shared library
  4905. +AC_DEFUN([_LT_PATH_TOOL_PREFIX],
  4906. +[m4_require([_LT_DECL_EGREP])dnl
  4907. +AC_MSG_CHECKING([for $1])
  4908. +AC_CACHE_VAL(lt_cv_path_MAGIC_CMD,
  4909. +[case $MAGIC_CMD in
  4910. +[[\\/*] | ?:[\\/]*])
  4911. + lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  4912. ;;
  4913. +*)
  4914. + lt_save_MAGIC_CMD="$MAGIC_CMD"
  4915. + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  4916. +dnl $ac_dummy forces splitting on constant user-supplied paths.
  4917. +dnl POSIX.2 word splitting is done only on the output of word expansions,
  4918. +dnl not every word. This closes a longstanding sh security hole.
  4919. + ac_dummy="m4_if([$2], , $PATH, [$2])"
  4920. + for ac_dir in $ac_dummy; do
  4921. + IFS="$lt_save_ifs"
  4922. + test -z "$ac_dir" && ac_dir=.
  4923. + if test -f $ac_dir/$1; then
  4924. + lt_cv_path_MAGIC_CMD="$ac_dir/$1"
  4925. + if test -n "$file_magic_test_file"; then
  4926. + case $deplibs_check_method in
  4927. + "file_magic "*)
  4928. + file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  4929. + MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  4930. + if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  4931. + $EGREP "$file_magic_regex" > /dev/null; then
  4932. + :
  4933. + else
  4934. + cat <<_LT_EOF 1>&2
  4935. -aix4* | aix5*)
  4936. - if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  4937. - test "$enable_shared" = yes && enable_static=no
  4938. - fi
  4939. - ;;
  4940. -esac
  4941. -AC_MSG_RESULT([$enable_shared])
  4942. -
  4943. -AC_MSG_CHECKING([whether to build static libraries])
  4944. -# Make sure either enable_shared or enable_static is yes.
  4945. -test "$enable_shared" = yes || enable_static=yes
  4946. -AC_MSG_RESULT([$enable_static])
  4947. -
  4948. -AC_LIBTOOL_CONFIG($1)
  4949. -
  4950. -AC_LANG_POP
  4951. -CC="$lt_save_CC"
  4952. -])# AC_LIBTOOL_LANG_C_CONFIG
  4953. -
  4954. -
  4955. -# AC_LIBTOOL_LANG_CXX_CONFIG
  4956. -# --------------------------
  4957. -# Ensure that the configuration vars for the C compiler are
  4958. -# suitably defined. Those variables are subsequently used by
  4959. -# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
  4960. -AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG], [_LT_AC_LANG_CXX_CONFIG(CXX)])
  4961. -AC_DEFUN([_LT_AC_LANG_CXX_CONFIG],
  4962. -[AC_LANG_PUSH(C++)
  4963. -AC_REQUIRE([AC_PROG_CXX])
  4964. -AC_REQUIRE([_LT_AC_PROG_CXXCPP])
  4965. -
  4966. -_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  4967. -_LT_AC_TAGVAR(allow_undefined_flag, $1)=
  4968. -_LT_AC_TAGVAR(always_export_symbols, $1)=no
  4969. -_LT_AC_TAGVAR(archive_expsym_cmds, $1)=
  4970. -_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
  4971. -_LT_AC_TAGVAR(hardcode_direct, $1)=no
  4972. -_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
  4973. -_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
  4974. -_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
  4975. -_LT_AC_TAGVAR(hardcode_minus_L, $1)=no
  4976. -_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
  4977. -_LT_AC_TAGVAR(hardcode_automatic, $1)=no
  4978. -_LT_AC_TAGVAR(module_cmds, $1)=
  4979. -_LT_AC_TAGVAR(module_expsym_cmds, $1)=
  4980. -_LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
  4981. -_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
  4982. -_LT_AC_TAGVAR(no_undefined_flag, $1)=
  4983. -_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
  4984. -_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
  4985. +*** Warning: the command libtool uses to detect shared libraries,
  4986. +*** $file_magic_cmd, produces output that libtool cannot recognize.
  4987. +*** The result is that libtool may fail to recognize shared libraries
  4988. +*** as such. This will affect the creation of libtool libraries that
  4989. +*** depend on shared libraries, but programs linked with such libtool
  4990. +*** libraries will work regardless of this problem. Nevertheless, you
  4991. +*** may want to report the problem to your system manager and/or to
  4992. +*** bug-libtool@gnu.org
  4993. -# Dependencies to place before and after the object being linked:
  4994. -_LT_AC_TAGVAR(predep_objects, $1)=
  4995. -_LT_AC_TAGVAR(postdep_objects, $1)=
  4996. -_LT_AC_TAGVAR(predeps, $1)=
  4997. -_LT_AC_TAGVAR(postdeps, $1)=
  4998. -_LT_AC_TAGVAR(compiler_lib_search_path, $1)=
  4999. +_LT_EOF
  5000. + fi ;;
  5001. + esac
  5002. + fi
  5003. + break
  5004. + fi
  5005. + done
  5006. + IFS="$lt_save_ifs"
  5007. + MAGIC_CMD="$lt_save_MAGIC_CMD"
  5008. + ;;
  5009. +esac])
  5010. +MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  5011. +if test -n "$MAGIC_CMD"; then
  5012. + AC_MSG_RESULT($MAGIC_CMD)
  5013. +else
  5014. + AC_MSG_RESULT(no)
  5015. +fi
  5016. +_LT_DECL([], [MAGIC_CMD], [0],
  5017. + [Used to examine libraries when file_magic_cmd begins with "file"])dnl
  5018. +])# _LT_PATH_TOOL_PREFIX
  5019. -# Source file extension for C++ test sources.
  5020. -ac_ext=cpp
  5021. +# Old name:
  5022. +AU_ALIAS([AC_PATH_TOOL_PREFIX], [_LT_PATH_TOOL_PREFIX])
  5023. +dnl aclocal-1.4 backwards compatibility:
  5024. +dnl AC_DEFUN([AC_PATH_TOOL_PREFIX], [])
  5025. -# Object file extension for compiled C++ test sources.
  5026. -objext=o
  5027. -_LT_AC_TAGVAR(objext, $1)=$objext
  5028. -# Code to be used in simple compile tests
  5029. -lt_simple_compile_test_code="int some_variable = 0;\n"
  5030. +# _LT_PATH_MAGIC
  5031. +# --------------
  5032. +# find a file program which can recognize a shared library
  5033. +m4_defun([_LT_PATH_MAGIC],
  5034. +[_LT_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH)
  5035. +if test -z "$lt_cv_path_MAGIC_CMD"; then
  5036. + if test -n "$ac_tool_prefix"; then
  5037. + _LT_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH)
  5038. + else
  5039. + MAGIC_CMD=:
  5040. + fi
  5041. +fi
  5042. +])# _LT_PATH_MAGIC
  5043. -# Code to be used in simple link tests
  5044. -lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }\n'
  5045. -# ltmain only uses $CC for tagged configurations so make sure $CC is set.
  5046. -_LT_AC_SYS_COMPILER
  5047. +# LT_PATH_LD
  5048. +# ----------
  5049. +# find the pathname to the GNU or non-GNU linker
  5050. +AC_DEFUN([LT_PATH_LD],
  5051. +[AC_REQUIRE([AC_PROG_CC])dnl
  5052. +AC_REQUIRE([AC_CANONICAL_HOST])dnl
  5053. +AC_REQUIRE([AC_CANONICAL_BUILD])dnl
  5054. +m4_require([_LT_DECL_SED])dnl
  5055. +m4_require([_LT_DECL_EGREP])dnl
  5056. -# save warnings/boilerplate of simple test code
  5057. -_LT_COMPILER_BOILERPLATE
  5058. -_LT_LINKER_BOILERPLATE
  5059. +AC_ARG_WITH([gnu-ld],
  5060. + [AS_HELP_STRING([--with-gnu-ld],
  5061. + [assume the C compiler uses GNU ld @<:@default=no@:>@])],
  5062. + [test "$withval" = no || with_gnu_ld=yes],
  5063. + [with_gnu_ld=no])dnl
  5064. -# Allow CC to be a program name with arguments.
  5065. -lt_save_CC=$CC
  5066. -lt_save_LD=$LD
  5067. -lt_save_GCC=$GCC
  5068. -GCC=$GXX
  5069. -lt_save_with_gnu_ld=$with_gnu_ld
  5070. -lt_save_path_LD=$lt_cv_path_LD
  5071. -if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
  5072. - lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  5073. +ac_prog=ld
  5074. +if test "$GCC" = yes; then
  5075. + # Check if gcc -print-prog-name=ld gives a path.
  5076. + AC_MSG_CHECKING([for ld used by $CC])
  5077. + case $host in
  5078. + *-*-mingw*)
  5079. + # gcc leaves a trailing carriage return which upsets mingw
  5080. + ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  5081. + *)
  5082. + ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  5083. + esac
  5084. + case $ac_prog in
  5085. + # Accept absolute paths.
  5086. + [[\\/]]* | ?:[[\\/]]*)
  5087. + re_direlt='/[[^/]][[^/]]*/\.\./'
  5088. + # Canonicalize the pathname of ld
  5089. + ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  5090. + while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  5091. + ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  5092. + done
  5093. + test -z "$LD" && LD="$ac_prog"
  5094. + ;;
  5095. + "")
  5096. + # If it fails, then pretend we aren't using GCC.
  5097. + ac_prog=ld
  5098. + ;;
  5099. + *)
  5100. + # If it is relative, then search for the first ld in PATH.
  5101. + with_gnu_ld=unknown
  5102. + ;;
  5103. + esac
  5104. +elif test "$with_gnu_ld" = yes; then
  5105. + AC_MSG_CHECKING([for GNU ld])
  5106. else
  5107. - $as_unset lt_cv_prog_gnu_ld
  5108. + AC_MSG_CHECKING([for non-GNU ld])
  5109. fi
  5110. -if test -n "${lt_cv_path_LDCXX+set}"; then
  5111. - lt_cv_path_LD=$lt_cv_path_LDCXX
  5112. +AC_CACHE_VAL(lt_cv_path_LD,
  5113. +[if test -z "$LD"; then
  5114. + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  5115. + for ac_dir in $PATH; do
  5116. + IFS="$lt_save_ifs"
  5117. + test -z "$ac_dir" && ac_dir=.
  5118. + if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  5119. + lt_cv_path_LD="$ac_dir/$ac_prog"
  5120. + # Check to see if the program is GNU ld. I'd rather use --version,
  5121. + # but apparently some variants of GNU ld only accept -v.
  5122. + # Break only if it was the GNU/non-GNU ld that we prefer.
  5123. + case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  5124. + *GNU* | *'with BFD'*)
  5125. + test "$with_gnu_ld" != no && break
  5126. + ;;
  5127. + *)
  5128. + test "$with_gnu_ld" != yes && break
  5129. + ;;
  5130. + esac
  5131. + fi
  5132. + done
  5133. + IFS="$lt_save_ifs"
  5134. else
  5135. - $as_unset lt_cv_path_LD
  5136. -fi
  5137. -test -z "${LDCXX+set}" || LD=$LDCXX
  5138. -CC=${CXX-"c++"}
  5139. -compiler=$CC
  5140. -_LT_AC_TAGVAR(compiler, $1)=$CC
  5141. -_LT_CC_BASENAME([$compiler])
  5142. -
  5143. -# We don't want -fno-exception wen compiling C++ code, so set the
  5144. -# no_builtin_flag separately
  5145. -if test "$GXX" = yes; then
  5146. - _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
  5147. + lt_cv_path_LD="$LD" # Let the user override the test with a path.
  5148. +fi])
  5149. +LD="$lt_cv_path_LD"
  5150. +if test -n "$LD"; then
  5151. + AC_MSG_RESULT($LD)
  5152. else
  5153. - _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
  5154. + AC_MSG_RESULT(no)
  5155. fi
  5156. +test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])
  5157. +_LT_PATH_LD_GNU
  5158. +AC_SUBST([LD])
  5159. -if test "$GXX" = yes; then
  5160. - # Set up default GNU C++ configuration
  5161. -
  5162. - AC_PROG_LD
  5163. -
  5164. - # Check if GNU C++ uses GNU ld as the underlying linker, since the
  5165. - # archiving commands below assume that GNU ld is being used.
  5166. - if test "$with_gnu_ld" = yes; then
  5167. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  5168. - _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'
  5169. +_LT_TAGDECL([], [LD], [1], [The linker used to build libraries])
  5170. +])# LT_PATH_LD
  5171. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
  5172. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  5173. +# Old names:
  5174. +AU_ALIAS([AM_PROG_LD], [LT_PATH_LD])
  5175. +AU_ALIAS([AC_PROG_LD], [LT_PATH_LD])
  5176. +dnl aclocal-1.4 backwards compatibility:
  5177. +dnl AC_DEFUN([AM_PROG_LD], [])
  5178. +dnl AC_DEFUN([AC_PROG_LD], [])
  5179. +
  5180. +
  5181. +# _LT_PATH_LD_GNU
  5182. +#- --------------
  5183. +m4_defun([_LT_PATH_LD_GNU],
  5184. +[AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld,
  5185. +[# I'd rather use --version here, but apparently some GNU lds only accept -v.
  5186. +case `$LD -v 2>&1 </dev/null` in
  5187. +*GNU* | *'with BFD'*)
  5188. + lt_cv_prog_gnu_ld=yes
  5189. + ;;
  5190. +*)
  5191. + lt_cv_prog_gnu_ld=no
  5192. + ;;
  5193. +esac])
  5194. +with_gnu_ld=$lt_cv_prog_gnu_ld
  5195. +])# _LT_PATH_LD_GNU
  5196. - # If archive_cmds runs LD, not CC, wlarc should be empty
  5197. - # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
  5198. - # investigate it a little bit more. (MM)
  5199. - wlarc='${wl}'
  5200. - # ancient GNU ld didn't support --whole-archive et. al.
  5201. - if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
  5202. - grep 'no-whole-archive' > /dev/null; then
  5203. - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  5204. +# _LT_CMD_RELOAD
  5205. +# --------------
  5206. +# find reload flag for linker
  5207. +# -- PORTME Some linkers may need a different reload flag.
  5208. +m4_defun([_LT_CMD_RELOAD],
  5209. +[AC_CACHE_CHECK([for $LD option to reload object files],
  5210. + lt_cv_ld_reload_flag,
  5211. + [lt_cv_ld_reload_flag='-r'])
  5212. +reload_flag=$lt_cv_ld_reload_flag
  5213. +case $reload_flag in
  5214. +"" | " "*) ;;
  5215. +*) reload_flag=" $reload_flag" ;;
  5216. +esac
  5217. +reload_cmds='$LD$reload_flag -o $output$reload_objs'
  5218. +case $host_os in
  5219. + darwin*)
  5220. + if test "$GCC" = yes; then
  5221. + reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
  5222. else
  5223. - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
  5224. + reload_cmds='$LD$reload_flag -o $output$reload_objs'
  5225. fi
  5226. - else
  5227. - with_gnu_ld=no
  5228. - wlarc=
  5229. -
  5230. - # A generic and very simple default shared library creation
  5231. - # command for GNU C++ for the case where it uses the native
  5232. - # linker, instead of GNU ld. If possible, this setting should
  5233. - # overridden to take advantage of the native linker features on
  5234. - # the platform it is being used on.
  5235. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  5236. - fi
  5237. + ;;
  5238. +esac
  5239. +_LT_DECL([], [reload_flag], [1], [How to create reloadable object files])dnl
  5240. +_LT_DECL([], [reload_cmds], [2])dnl
  5241. +])# _LT_CMD_RELOAD
  5242. - # Commands to make compiler produce verbose output that lists
  5243. - # what "hidden" libraries, object files and flags are used when
  5244. - # linking a shared library.
  5245. - output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
  5246. -else
  5247. - GXX=no
  5248. - with_gnu_ld=no
  5249. - wlarc=
  5250. -fi
  5251. +# _LT_CHECK_MAGIC_METHOD
  5252. +# ----------------------
  5253. +# how to check for library dependencies
  5254. +# -- PORTME fill in with the dynamic library characteristics
  5255. +m4_defun([_LT_CHECK_MAGIC_METHOD],
  5256. +[m4_require([_LT_DECL_EGREP])
  5257. +m4_require([_LT_DECL_OBJDUMP])
  5258. +AC_CACHE_CHECK([how to recognize dependent libraries],
  5259. +lt_cv_deplibs_check_method,
  5260. +[lt_cv_file_magic_cmd='$MAGIC_CMD'
  5261. +lt_cv_file_magic_test_file=
  5262. +lt_cv_deplibs_check_method='unknown'
  5263. +# Need to set the preceding variable on all platforms that support
  5264. +# interlibrary dependencies.
  5265. +# 'none' -- dependencies not supported.
  5266. +# `unknown' -- same as none, but documents that we really don't know.
  5267. +# 'pass_all' -- all dependencies passed with no checks.
  5268. +# 'test_compile' -- check by making test program.
  5269. +# 'file_magic [[regex]]' -- check by looking for files in library path
  5270. +# which responds to the $file_magic_cmd with a given extended regex.
  5271. +# If you have `file' or equivalent on your system and you're not sure
  5272. +# whether `pass_all' will *always* work, you probably want this one.
  5273. -# PORTME: fill in a description of your system's C++ link characteristics
  5274. -AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
  5275. -_LT_AC_TAGVAR(ld_shlibs, $1)=yes
  5276. case $host_os in
  5277. - aix3*)
  5278. - # FIXME: insert proper C++ library support
  5279. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  5280. - ;;
  5281. - aix4* | aix5*)
  5282. - if test "$host_cpu" = ia64; then
  5283. - # On IA64, the linker does run time linking by default, so we don't
  5284. - # have to do anything special.
  5285. - aix_use_runtimelinking=no
  5286. - exp_sym_flag='-Bexport'
  5287. - no_entry_flag=""
  5288. - else
  5289. - aix_use_runtimelinking=no
  5290. -
  5291. - # Test if we are trying to use run time linking or normal
  5292. - # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  5293. - # need to do runtime linking.
  5294. - case $host_os in aix4.[[23]]|aix4.[[23]].*|aix5*)
  5295. - for ld_flag in $LDFLAGS; do
  5296. - case $ld_flag in
  5297. - *-brtl*)
  5298. - aix_use_runtimelinking=yes
  5299. - break
  5300. - ;;
  5301. - esac
  5302. - done
  5303. - ;;
  5304. - esac
  5305. +aix[[4-9]]*)
  5306. + lt_cv_deplibs_check_method=pass_all
  5307. + ;;
  5308. - exp_sym_flag='-bexport'
  5309. - no_entry_flag='-bnoentry'
  5310. - fi
  5311. +beos*)
  5312. + lt_cv_deplibs_check_method=pass_all
  5313. + ;;
  5314. - # When large executables or shared objects are built, AIX ld can
  5315. - # have problems creating the table of contents. If linking a library
  5316. - # or program results in "error TOC overflow" add -mminimal-toc to
  5317. - # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  5318. - # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  5319. -
  5320. - _LT_AC_TAGVAR(archive_cmds, $1)=''
  5321. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  5322. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
  5323. - _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
  5324. +bsdi[[45]]*)
  5325. + lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)'
  5326. + lt_cv_file_magic_cmd='/usr/bin/file -L'
  5327. + lt_cv_file_magic_test_file=/shlib/libc.so
  5328. + ;;
  5329. - if test "$GXX" = yes; then
  5330. - case $host_os in aix4.[[012]]|aix4.[[012]].*)
  5331. - # We only want to do this on AIX 4.2 and lower, the check
  5332. - # below for broken collect2 doesn't work under 4.3+
  5333. - collect2name=`${CC} -print-prog-name=collect2`
  5334. - if test -f "$collect2name" && \
  5335. - strings "$collect2name" | grep resolve_lib_name >/dev/null
  5336. - then
  5337. - # We have reworked collect2
  5338. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  5339. - else
  5340. - # We have old collect2
  5341. - _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
  5342. - # It fails to find uninstalled libraries when the uninstalled
  5343. - # path is not listed in the libpath. Setting hardcode_minus_L
  5344. - # to unsupported forces relinking
  5345. - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
  5346. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  5347. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
  5348. - fi
  5349. - ;;
  5350. - esac
  5351. - shared_flag='-shared'
  5352. - if test "$aix_use_runtimelinking" = yes; then
  5353. - shared_flag="$shared_flag "'${wl}-G'
  5354. - fi
  5355. - else
  5356. - # not using gcc
  5357. - if test "$host_cpu" = ia64; then
  5358. - # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  5359. - # chokes on -Wl,-G. The following line is correct:
  5360. - shared_flag='-G'
  5361. - else
  5362. - if test "$aix_use_runtimelinking" = yes; then
  5363. - shared_flag='${wl}-G'
  5364. - else
  5365. - shared_flag='${wl}-bM:SRE'
  5366. - fi
  5367. - fi
  5368. - fi
  5369. +cygwin*)
  5370. + # func_win32_libid is a shell function defined in ltmain.sh
  5371. + lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  5372. + lt_cv_file_magic_cmd='func_win32_libid'
  5373. + ;;
  5374. - # It seems that -bexpall does not export symbols beginning with
  5375. - # underscore (_), so it is better to generate a list of symbols to export.
  5376. - _LT_AC_TAGVAR(always_export_symbols, $1)=yes
  5377. - if test "$aix_use_runtimelinking" = yes; then
  5378. - # Warning - without using the other runtime loading flags (-brtl),
  5379. - # -berok will link without error, but may produce a broken library.
  5380. - _LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok'
  5381. - # Determine the default libpath from the value encoded in an empty executable.
  5382. - _LT_AC_SYS_LIBPATH_AIX
  5383. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
  5384. +mingw* | pw32*)
  5385. + # Base MSYS/MinGW do not provide the 'file' command needed by
  5386. + # func_win32_libid shell function, so use a weaker test based on 'objdump',
  5387. + # unless we find 'file', for example because we are cross-compiling.
  5388. + if ( file / ) >/dev/null 2>&1; then
  5389. + lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  5390. + lt_cv_file_magic_cmd='func_win32_libid'
  5391. + else
  5392. + lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
  5393. + lt_cv_file_magic_cmd='$OBJDUMP -f'
  5394. + fi
  5395. + ;;
  5396. - _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"
  5397. - else
  5398. - if test "$host_cpu" = ia64; then
  5399. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
  5400. - _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
  5401. - _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"
  5402. - else
  5403. - # Determine the default libpath from the value encoded in an empty executable.
  5404. - _LT_AC_SYS_LIBPATH_AIX
  5405. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
  5406. - # Warning - without using the other run time loading flags,
  5407. - # -berok will link without error, but may produce a broken library.
  5408. - _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
  5409. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
  5410. - # Exported symbols can be pulled into shared objects from archives
  5411. - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
  5412. - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
  5413. - # This is similar to how AIX traditionally builds its shared libraries.
  5414. - _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'
  5415. - fi
  5416. - fi
  5417. - ;;
  5418. +cegcc)
  5419. + # use the weaker test based on 'objdump'. See mingw*.
  5420. + lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  5421. + lt_cv_file_magic_cmd='$OBJDUMP -f'
  5422. + ;;
  5423. - beos*)
  5424. - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  5425. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
  5426. - # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  5427. - # support --undefined. This deserves some investigation. FIXME
  5428. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  5429. - else
  5430. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  5431. - fi
  5432. - ;;
  5433. +darwin* | rhapsody*)
  5434. + lt_cv_deplibs_check_method=pass_all
  5435. + ;;
  5436. - chorus*)
  5437. - case $cc_basename in
  5438. - *)
  5439. - # FIXME: insert proper C++ library support
  5440. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  5441. - ;;
  5442. +freebsd* | dragonfly*)
  5443. + if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  5444. + case $host_cpu in
  5445. + i*86 )
  5446. + # Not sure whether the presence of OpenBSD here was a mistake.
  5447. + # Let's accept both of them until this is cleared up.
  5448. + lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[[3-9]]86 (compact )?demand paged shared library'
  5449. + lt_cv_file_magic_cmd=/usr/bin/file
  5450. + lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  5451. + ;;
  5452. esac
  5453. - ;;
  5454. + else
  5455. + lt_cv_deplibs_check_method=pass_all
  5456. + fi
  5457. + ;;
  5458. - cygwin* | mingw* | pw32*)
  5459. - # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
  5460. - # as there is no search path for DLLs.
  5461. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  5462. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
  5463. - _LT_AC_TAGVAR(always_export_symbols, $1)=no
  5464. - _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
  5465. -
  5466. - if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
  5467. - _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'
  5468. - # If the export-symbols file already is a .def file (1st line
  5469. - # is EXPORTS), use it as is; otherwise, prepend...
  5470. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  5471. - cp $export_symbols $output_objdir/$soname.def;
  5472. - else
  5473. - echo EXPORTS > $output_objdir/$soname.def;
  5474. - cat $export_symbols >> $output_objdir/$soname.def;
  5475. - fi~
  5476. - $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'
  5477. - else
  5478. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  5479. - fi
  5480. +gnu*)
  5481. + lt_cv_deplibs_check_method=pass_all
  5482. ;;
  5483. - darwin* | rhapsody*)
  5484. - case $host_os in
  5485. - rhapsody* | darwin1.[[012]])
  5486. - _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}suppress'
  5487. - ;;
  5488. - *) # Darwin 1.3 on
  5489. - if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
  5490. - _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  5491. - else
  5492. - case ${MACOSX_DEPLOYMENT_TARGET} in
  5493. - 10.[[012]])
  5494. - _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  5495. - ;;
  5496. - 10.*)
  5497. - _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}dynamic_lookup'
  5498. - ;;
  5499. - esac
  5500. - fi
  5501. - ;;
  5502. - esac
  5503. - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  5504. - _LT_AC_TAGVAR(hardcode_direct, $1)=no
  5505. - _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
  5506. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
  5507. - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=''
  5508. - _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
  5509. -
  5510. - if test "$GXX" = yes ; then
  5511. - lt_int_apple_cc_single_mod=no
  5512. - output_verbose_link_cmd='echo'
  5513. - if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
  5514. - lt_int_apple_cc_single_mod=yes
  5515. - fi
  5516. - if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
  5517. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
  5518. - else
  5519. - _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'
  5520. - fi
  5521. - _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  5522. - # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  5523. - if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
  5524. - _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}'
  5525. - else
  5526. - _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}'
  5527. - fi
  5528. - _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}'
  5529. - else
  5530. - case $cc_basename in
  5531. - xlc*)
  5532. - output_verbose_link_cmd='echo'
  5533. - _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'
  5534. - _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  5535. - # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  5536. - _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}'
  5537. - _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}'
  5538. - ;;
  5539. - *)
  5540. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  5541. - ;;
  5542. - esac
  5543. - fi
  5544. - ;;
  5545. - dgux*)
  5546. - case $cc_basename in
  5547. - ec++*)
  5548. - # FIXME: insert proper C++ library support
  5549. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  5550. - ;;
  5551. - ghcx*)
  5552. - # Green Hills C++ Compiler
  5553. - # FIXME: insert proper C++ library support
  5554. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  5555. - ;;
  5556. - *)
  5557. - # FIXME: insert proper C++ library support
  5558. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  5559. - ;;
  5560. - esac
  5561. - ;;
  5562. - freebsd[[12]]*)
  5563. - # C++ shared libraries reported to be fairly broken before switch to ELF
  5564. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  5565. - ;;
  5566. - freebsd-elf*)
  5567. - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  5568. - ;;
  5569. - freebsd* | kfreebsd*-gnu | dragonfly*)
  5570. - # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
  5571. - # conventions
  5572. - _LT_AC_TAGVAR(ld_shlibs, $1)=yes
  5573. +hpux10.20* | hpux11*)
  5574. + lt_cv_file_magic_cmd=/usr/bin/file
  5575. + case $host_cpu in
  5576. + ia64*)
  5577. + lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64'
  5578. + lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  5579. ;;
  5580. - gnu*)
  5581. + hppa*64*)
  5582. + [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]']
  5583. + lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  5584. ;;
  5585. - hpux9*)
  5586. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  5587. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  5588. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  5589. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  5590. - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
  5591. - # but as the default
  5592. - # location of the library.
  5593. -
  5594. - case $cc_basename in
  5595. - CC*)
  5596. - # FIXME: insert proper C++ library support
  5597. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  5598. - ;;
  5599. - aCC*)
  5600. - _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'
  5601. - # Commands to make compiler produce verbose output that lists
  5602. - # what "hidden" libraries, object files and flags are used when
  5603. - # linking a shared library.
  5604. - #
  5605. - # There doesn't appear to be a way to prevent this compiler from
  5606. - # explicitly linking system object files so we need to strip them
  5607. - # from the output so that they don't get included in the library
  5608. - # dependencies.
  5609. - 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'
  5610. - ;;
  5611. - *)
  5612. - if test "$GXX" = yes; then
  5613. - _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'
  5614. - else
  5615. - # FIXME: insert proper C++ library support
  5616. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  5617. - fi
  5618. - ;;
  5619. - esac
  5620. + *)
  5621. + lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]].[[0-9]]) shared library'
  5622. + lt_cv_file_magic_test_file=/usr/lib/libc.sl
  5623. ;;
  5624. - hpux10*|hpux11*)
  5625. - if test $with_gnu_ld = no; then
  5626. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  5627. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  5628. + esac
  5629. + ;;
  5630. - case $host_cpu in
  5631. - hppa*64*|ia64*)
  5632. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
  5633. - ;;
  5634. - *)
  5635. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  5636. - ;;
  5637. - esac
  5638. - fi
  5639. - case $host_cpu in
  5640. - hppa*64*|ia64*)
  5641. - _LT_AC_TAGVAR(hardcode_direct, $1)=no
  5642. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  5643. - ;;
  5644. - *)
  5645. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  5646. - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
  5647. - # but as the default
  5648. - # location of the library.
  5649. - ;;
  5650. - esac
  5651. +interix[[3-9]]*)
  5652. + # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  5653. + lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|\.a)$'
  5654. + ;;
  5655. - case $cc_basename in
  5656. - CC*)
  5657. - # FIXME: insert proper C++ library support
  5658. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  5659. - ;;
  5660. - aCC*)
  5661. - case $host_cpu in
  5662. - hppa*64*)
  5663. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  5664. - ;;
  5665. - ia64*)
  5666. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  5667. - ;;
  5668. - *)
  5669. - _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'
  5670. - ;;
  5671. - esac
  5672. - # Commands to make compiler produce verbose output that lists
  5673. - # what "hidden" libraries, object files and flags are used when
  5674. - # linking a shared library.
  5675. - #
  5676. - # There doesn't appear to be a way to prevent this compiler from
  5677. - # explicitly linking system object files so we need to strip them
  5678. - # from the output so that they don't get included in the library
  5679. - # dependencies.
  5680. - 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'
  5681. - ;;
  5682. - *)
  5683. - if test "$GXX" = yes; then
  5684. - if test $with_gnu_ld = no; then
  5685. - case $host_cpu in
  5686. - hppa*64*)
  5687. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  5688. - ;;
  5689. - ia64*)
  5690. - _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'
  5691. - ;;
  5692. - *)
  5693. - _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'
  5694. - ;;
  5695. - esac
  5696. - fi
  5697. - else
  5698. - # FIXME: insert proper C++ library support
  5699. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  5700. - fi
  5701. - ;;
  5702. - esac
  5703. - ;;
  5704. - interix3*)
  5705. - _LT_AC_TAGVAR(hardcode_direct, $1)=no
  5706. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  5707. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  5708. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  5709. - # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  5710. - # Instead, shared libraries are loaded at an image base (0x10000000 by
  5711. - # default) and relocated if they conflict, which is a slow very memory
  5712. - # consuming and fragmenting process. To avoid this, we pick a random,
  5713. - # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  5714. - # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  5715. - _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'
  5716. - _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'
  5717. - ;;
  5718. - irix5* | irix6*)
  5719. - case $cc_basename in
  5720. - CC*)
  5721. - # SGI C++
  5722. - _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'
  5723. -
  5724. - # Archives containing C++ object files must be created using
  5725. - # "CC -ar", where "CC" is the IRIX C++ compiler. This is
  5726. - # necessary to make sure instantiated templates are included
  5727. - # in the archive.
  5728. - _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs'
  5729. - ;;
  5730. - *)
  5731. - if test "$GXX" = yes; then
  5732. - if test "$with_gnu_ld" = no; then
  5733. - _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'
  5734. - else
  5735. - _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'
  5736. - fi
  5737. - fi
  5738. - _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
  5739. - ;;
  5740. - esac
  5741. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  5742. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  5743. - ;;
  5744. - linux*)
  5745. - case $cc_basename in
  5746. - KCC*)
  5747. - # Kuck and Associates, Inc. (KAI) C++ Compiler
  5748. -
  5749. - # KCC will only create a shared library if the output file
  5750. - # ends with ".so" (or ".sl" for HP-UX), so rename the library
  5751. - # to its proper name (with version) after linking.
  5752. - _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'
  5753. - _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'
  5754. - # Commands to make compiler produce verbose output that lists
  5755. - # what "hidden" libraries, object files and flags are used when
  5756. - # linking a shared library.
  5757. - #
  5758. - # There doesn't appear to be a way to prevent this compiler from
  5759. - # explicitly linking system object files so we need to strip them
  5760. - # from the output so that they don't get included in the library
  5761. - # dependencies.
  5762. - 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'
  5763. -
  5764. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath,$libdir'
  5765. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  5766. -
  5767. - # Archives containing C++ object files must be created using
  5768. - # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  5769. - _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
  5770. - ;;
  5771. - icpc*)
  5772. - # Intel C++
  5773. - with_gnu_ld=yes
  5774. - # version 8.0 and above of icpc choke on multiply defined symbols
  5775. - # if we add $predep_objects and $postdep_objects, however 7.1 and
  5776. - # earlier do not add the objects themselves.
  5777. - case `$CC -V 2>&1` in
  5778. - *"Version 7."*)
  5779. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  5780. - _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'
  5781. - ;;
  5782. - *) # Version 8.0 or newer
  5783. - tmp_idyn=
  5784. - case $host_cpu in
  5785. - ia64*) tmp_idyn=' -i_dynamic';;
  5786. - esac
  5787. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  5788. - _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'
  5789. - ;;
  5790. - esac
  5791. - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  5792. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  5793. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  5794. - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  5795. - ;;
  5796. - pgCC*)
  5797. - # Portland Group C++ compiler
  5798. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  5799. - _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'
  5800. -
  5801. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
  5802. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  5803. - _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'
  5804. - ;;
  5805. - cxx*)
  5806. - # Compaq C++
  5807. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  5808. - _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'
  5809. +irix5* | irix6* | nonstopux*)
  5810. + case $LD in
  5811. + *-32|*"-32 ") libmagic=32-bit;;
  5812. + *-n32|*"-n32 ") libmagic=N32;;
  5813. + *-64|*"-64 ") libmagic=64-bit;;
  5814. + *) libmagic=never-match;;
  5815. + esac
  5816. + lt_cv_deplibs_check_method=pass_all
  5817. + ;;
  5818. - runpath_var=LD_RUN_PATH
  5819. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
  5820. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  5821. +# This must be Linux ELF.
  5822. +linux* | k*bsd*-gnu | kopensolaris*-gnu)
  5823. + lt_cv_deplibs_check_method=pass_all
  5824. + ;;
  5825. - # Commands to make compiler produce verbose output that lists
  5826. - # what "hidden" libraries, object files and flags are used when
  5827. - # linking a shared library.
  5828. - #
  5829. - # There doesn't appear to be a way to prevent this compiler from
  5830. - # explicitly linking system object files so we need to strip them
  5831. - # from the output so that they don't get included in the library
  5832. - # dependencies.
  5833. - 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'
  5834. - ;;
  5835. - esac
  5836. - ;;
  5837. - lynxos*)
  5838. - # FIXME: insert proper C++ library support
  5839. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  5840. - ;;
  5841. - m88k*)
  5842. - # FIXME: insert proper C++ library support
  5843. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  5844. - ;;
  5845. - mvs*)
  5846. - case $cc_basename in
  5847. - cxx*)
  5848. - # FIXME: insert proper C++ library support
  5849. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  5850. - ;;
  5851. - *)
  5852. - # FIXME: insert proper C++ library support
  5853. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  5854. - ;;
  5855. - esac
  5856. - ;;
  5857. - netbsd*)
  5858. - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  5859. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
  5860. - wlarc=
  5861. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  5862. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  5863. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  5864. - fi
  5865. - # Workaround some broken pre-1.5 toolchains
  5866. - output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
  5867. - ;;
  5868. - openbsd2*)
  5869. - # C++ shared libraries are fairly broken
  5870. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  5871. - ;;
  5872. - openbsd*)
  5873. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  5874. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  5875. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  5876. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  5877. - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  5878. - _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'
  5879. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  5880. - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  5881. - fi
  5882. - output_verbose_link_cmd='echo'
  5883. - ;;
  5884. - osf3*)
  5885. - case $cc_basename in
  5886. - KCC*)
  5887. - # Kuck and Associates, Inc. (KAI) C++ Compiler
  5888. -
  5889. - # KCC will only create a shared library if the output file
  5890. - # ends with ".so" (or ".sl" for HP-UX), so rename the library
  5891. - # to its proper name (with version) after linking.
  5892. - _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'
  5893. -
  5894. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  5895. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  5896. -
  5897. - # Archives containing C++ object files must be created using
  5898. - # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  5899. - _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
  5900. -
  5901. - ;;
  5902. - RCC*)
  5903. - # Rational C++ 2.4.1
  5904. - # FIXME: insert proper C++ library support
  5905. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  5906. - ;;
  5907. - cxx*)
  5908. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
  5909. - _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'
  5910. -
  5911. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  5912. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  5913. -
  5914. - # Commands to make compiler produce verbose output that lists
  5915. - # what "hidden" libraries, object files and flags are used when
  5916. - # linking a shared library.
  5917. - #
  5918. - # There doesn't appear to be a way to prevent this compiler from
  5919. - # explicitly linking system object files so we need to strip them
  5920. - # from the output so that they don't get included in the library
  5921. - # dependencies.
  5922. - 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'
  5923. - ;;
  5924. - *)
  5925. - if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  5926. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
  5927. - _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'
  5928. -
  5929. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  5930. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  5931. -
  5932. - # Commands to make compiler produce verbose output that lists
  5933. - # what "hidden" libraries, object files and flags are used when
  5934. - # linking a shared library.
  5935. - output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
  5936. +netbsd* | netbsdelf*-gnu)
  5937. + if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  5938. + lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
  5939. + else
  5940. + lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$'
  5941. + fi
  5942. + ;;
  5943. - else
  5944. - # FIXME: insert proper C++ library support
  5945. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  5946. - fi
  5947. - ;;
  5948. - esac
  5949. - ;;
  5950. - osf4* | osf5*)
  5951. - case $cc_basename in
  5952. - KCC*)
  5953. - # Kuck and Associates, Inc. (KAI) C++ Compiler
  5954. -
  5955. - # KCC will only create a shared library if the output file
  5956. - # ends with ".so" (or ".sl" for HP-UX), so rename the library
  5957. - # to its proper name (with version) after linking.
  5958. - _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'
  5959. -
  5960. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  5961. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  5962. -
  5963. - # Archives containing C++ object files must be created using
  5964. - # the KAI C++ compiler.
  5965. - _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs'
  5966. - ;;
  5967. - RCC*)
  5968. - # Rational C++ 2.4.1
  5969. - # FIXME: insert proper C++ library support
  5970. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  5971. - ;;
  5972. - cxx*)
  5973. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
  5974. - _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'
  5975. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
  5976. - echo "-hidden">> $lib.exp~
  5977. - $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~
  5978. - $rm $lib.exp'
  5979. -
  5980. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
  5981. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  5982. -
  5983. - # Commands to make compiler produce verbose output that lists
  5984. - # what "hidden" libraries, object files and flags are used when
  5985. - # linking a shared library.
  5986. - #
  5987. - # There doesn't appear to be a way to prevent this compiler from
  5988. - # explicitly linking system object files so we need to strip them
  5989. - # from the output so that they don't get included in the library
  5990. - # dependencies.
  5991. - 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'
  5992. - ;;
  5993. - *)
  5994. - if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  5995. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
  5996. - _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'
  5997. -
  5998. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  5999. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  6000. -
  6001. - # Commands to make compiler produce verbose output that lists
  6002. - # what "hidden" libraries, object files and flags are used when
  6003. - # linking a shared library.
  6004. - output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
  6005. +newos6*)
  6006. + lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (executable|dynamic lib)'
  6007. + lt_cv_file_magic_cmd=/usr/bin/file
  6008. + lt_cv_file_magic_test_file=/usr/lib/libnls.so
  6009. + ;;
  6010. - else
  6011. - # FIXME: insert proper C++ library support
  6012. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  6013. - fi
  6014. - ;;
  6015. - esac
  6016. - ;;
  6017. - psos*)
  6018. - # FIXME: insert proper C++ library support
  6019. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  6020. - ;;
  6021. - sunos4*)
  6022. - case $cc_basename in
  6023. - CC*)
  6024. - # Sun C++ 4.x
  6025. - # FIXME: insert proper C++ library support
  6026. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  6027. - ;;
  6028. - lcc*)
  6029. - # Lucid
  6030. - # FIXME: insert proper C++ library support
  6031. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  6032. - ;;
  6033. - *)
  6034. - # FIXME: insert proper C++ library support
  6035. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  6036. - ;;
  6037. - esac
  6038. - ;;
  6039. - solaris*)
  6040. - case $cc_basename in
  6041. - CC*)
  6042. - # Sun C++ 4.2, 5.x and Centerline C++
  6043. - _LT_AC_TAGVAR(archive_cmds_need_lc,$1)=yes
  6044. - _LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs'
  6045. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  6046. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  6047. - $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'
  6048. -
  6049. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  6050. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  6051. - case $host_os in
  6052. - solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
  6053. - *)
  6054. - # The C++ compiler is used as linker so we must use $wl
  6055. - # flag to pass the commands to the underlying system
  6056. - # linker. We must also pass each convience library through
  6057. - # to the system linker between allextract/defaultextract.
  6058. - # The C++ compiler will combine linker options so we
  6059. - # cannot just pass the convience library names through
  6060. - # without $wl.
  6061. - # Supported since Solaris 2.6 (maybe 2.5.1?)
  6062. - _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'
  6063. - ;;
  6064. - esac
  6065. - _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
  6066. +*nto* | *qnx*)
  6067. + lt_cv_deplibs_check_method=pass_all
  6068. + ;;
  6069. - output_verbose_link_cmd='echo'
  6070. +openbsd*)
  6071. + if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  6072. + lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$'
  6073. + else
  6074. + lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
  6075. + fi
  6076. + ;;
  6077. - # Archives containing C++ object files must be created using
  6078. - # "CC -xar", where "CC" is the Sun C++ compiler. This is
  6079. - # necessary to make sure instantiated templates are included
  6080. - # in the archive.
  6081. - _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
  6082. - ;;
  6083. - gcx*)
  6084. - # Green Hills C++ Compiler
  6085. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  6086. +osf3* | osf4* | osf5*)
  6087. + lt_cv_deplibs_check_method=pass_all
  6088. + ;;
  6089. - # The C++ compiler must be used to create the archive.
  6090. - _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
  6091. - ;;
  6092. - *)
  6093. - # GNU C++ compiler with Solaris linker
  6094. - if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  6095. - _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs'
  6096. - if $CC --version | grep -v '^2\.7' > /dev/null; then
  6097. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  6098. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  6099. - $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
  6100. +rdos*)
  6101. + lt_cv_deplibs_check_method=pass_all
  6102. + ;;
  6103. - # Commands to make compiler produce verbose output that lists
  6104. - # what "hidden" libraries, object files and flags are used when
  6105. - # linking a shared library.
  6106. - output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
  6107. - else
  6108. - # g++ 2.7 appears to require `-G' NOT `-shared' on this
  6109. - # platform.
  6110. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  6111. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  6112. - $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
  6113. +solaris*)
  6114. + lt_cv_deplibs_check_method=pass_all
  6115. + ;;
  6116. - # Commands to make compiler produce verbose output that lists
  6117. - # what "hidden" libraries, object files and flags are used when
  6118. - # linking a shared library.
  6119. - output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
  6120. - fi
  6121. +sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  6122. + lt_cv_deplibs_check_method=pass_all
  6123. + ;;
  6124. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir'
  6125. - fi
  6126. - ;;
  6127. - esac
  6128. +sysv4 | sysv4.3*)
  6129. + case $host_vendor in
  6130. + motorola)
  6131. + 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]]'
  6132. + lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  6133. ;;
  6134. - sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
  6135. - _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
  6136. - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  6137. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  6138. - runpath_var='LD_RUN_PATH'
  6139. -
  6140. - case $cc_basename in
  6141. - CC*)
  6142. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  6143. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  6144. - ;;
  6145. - *)
  6146. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  6147. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  6148. - ;;
  6149. - esac
  6150. + ncr)
  6151. + lt_cv_deplibs_check_method=pass_all
  6152. ;;
  6153. - sysv5* | sco3.2v5* | sco5v6*)
  6154. - # Note: We can NOT use -z defs as we might desire, because we do not
  6155. - # link with -lc, and that would cause any symbols used from libc to
  6156. - # always be unresolved, which means just about no library would
  6157. - # ever link correctly. If we're not using GNU ld we use -z text
  6158. - # though, which does catch some bad symbols but isn't as heavy-handed
  6159. - # as -z defs.
  6160. - # For security reasons, it is highly recommended that you always
  6161. - # use absolute paths for naming shared libraries, and exclude the
  6162. - # DT_RUNPATH tag from executables and libraries. But doing so
  6163. - # requires that you compile everything twice, which is a pain.
  6164. - # So that behaviour is only enabled if SCOABSPATH is set to a
  6165. - # non-empty value in the environment. Most likely only useful for
  6166. - # creating official distributions of packages.
  6167. - # This is a hack until libtool officially supports absolute path
  6168. - # names for shared libraries.
  6169. - _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
  6170. - _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
  6171. - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  6172. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  6173. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
  6174. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
  6175. - _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
  6176. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
  6177. - runpath_var='LD_RUN_PATH'
  6178. -
  6179. - case $cc_basename in
  6180. - CC*)
  6181. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  6182. - _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'
  6183. - ;;
  6184. - *)
  6185. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  6186. - _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'
  6187. - ;;
  6188. - esac
  6189. + sequent)
  6190. + lt_cv_file_magic_cmd='/bin/file'
  6191. + lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )'
  6192. ;;
  6193. - tandem*)
  6194. - case $cc_basename in
  6195. - NCC*)
  6196. - # NonStop-UX NCC 3.20
  6197. - # FIXME: insert proper C++ library support
  6198. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  6199. - ;;
  6200. - *)
  6201. - # FIXME: insert proper C++ library support
  6202. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  6203. - ;;
  6204. - esac
  6205. + sni)
  6206. + lt_cv_file_magic_cmd='/bin/file'
  6207. + lt_cv_deplibs_check_method="file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB dynamic lib"
  6208. + lt_cv_file_magic_test_file=/lib/libc.so
  6209. ;;
  6210. - vxworks*)
  6211. - # FIXME: insert proper C++ library support
  6212. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  6213. + siemens)
  6214. + lt_cv_deplibs_check_method=pass_all
  6215. ;;
  6216. - *)
  6217. - # FIXME: insert proper C++ library support
  6218. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  6219. + pc)
  6220. + lt_cv_deplibs_check_method=pass_all
  6221. ;;
  6222. -esac
  6223. -AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)])
  6224. -test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
  6225. -
  6226. -_LT_AC_TAGVAR(GCC, $1)="$GXX"
  6227. -_LT_AC_TAGVAR(LD, $1)="$LD"
  6228. -
  6229. -AC_LIBTOOL_POSTDEP_PREDEP($1)
  6230. -AC_LIBTOOL_PROG_COMPILER_PIC($1)
  6231. -AC_LIBTOOL_PROG_CC_C_O($1)
  6232. -AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
  6233. -AC_LIBTOOL_PROG_LD_SHLIBS($1)
  6234. -AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
  6235. -AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
  6236. -
  6237. -AC_LIBTOOL_CONFIG($1)
  6238. -
  6239. -AC_LANG_POP
  6240. -CC=$lt_save_CC
  6241. -LDCXX=$LD
  6242. -LD=$lt_save_LD
  6243. -GCC=$lt_save_GCC
  6244. -with_gnu_ldcxx=$with_gnu_ld
  6245. -with_gnu_ld=$lt_save_with_gnu_ld
  6246. -lt_cv_path_LDCXX=$lt_cv_path_LD
  6247. -lt_cv_path_LD=$lt_save_path_LD
  6248. -lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  6249. -lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
  6250. -])# AC_LIBTOOL_LANG_CXX_CONFIG
  6251. + esac
  6252. + ;;
  6253. -# AC_LIBTOOL_POSTDEP_PREDEP([TAGNAME])
  6254. -# ------------------------------------
  6255. -# Figure out "hidden" library dependencies from verbose
  6256. -# compiler output when linking a shared library.
  6257. -# Parse the compiler output and extract the necessary
  6258. -# objects, libraries and library flags.
  6259. -AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP],[
  6260. -dnl we can't use the lt_simple_compile_test_code here,
  6261. -dnl because it contains code intended for an executable,
  6262. -dnl not a library. It's possible we should let each
  6263. -dnl tag define a new lt_????_link_test_code variable,
  6264. -dnl but it's only used here...
  6265. -ifelse([$1],[],[cat > conftest.$ac_ext <<EOF
  6266. -int a;
  6267. -void foo (void) { a = 0; }
  6268. -EOF
  6269. -],[$1],[CXX],[cat > conftest.$ac_ext <<EOF
  6270. -class Foo
  6271. -{
  6272. -public:
  6273. - Foo (void) { a = 0; }
  6274. -private:
  6275. - int a;
  6276. -};
  6277. -EOF
  6278. -],[$1],[F77],[cat > conftest.$ac_ext <<EOF
  6279. - subroutine foo
  6280. - implicit none
  6281. - integer*4 a
  6282. - a=0
  6283. - return
  6284. - end
  6285. -EOF
  6286. -],[$1],[GCJ],[cat > conftest.$ac_ext <<EOF
  6287. -public class foo {
  6288. - private int a;
  6289. - public void bar (void) {
  6290. - a = 0;
  6291. - }
  6292. -};
  6293. -EOF
  6294. +tpf*)
  6295. + lt_cv_deplibs_check_method=pass_all
  6296. + ;;
  6297. +esac
  6298. ])
  6299. -dnl Parse the compiler output and extract the necessary
  6300. -dnl objects, libraries and library flags.
  6301. -if AC_TRY_EVAL(ac_compile); then
  6302. - # Parse the compiler output and extract the necessary
  6303. - # objects, libraries and library flags.
  6304. -
  6305. - # Sentinel used to keep track of whether or not we are before
  6306. - # the conftest object file.
  6307. - pre_test_object_deps_done=no
  6308. -
  6309. - # The `*' in the case matches for architectures that use `case' in
  6310. - # $output_verbose_cmd can trigger glob expansion during the loop
  6311. - # eval without this substitution.
  6312. - output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
  6313. -
  6314. - for p in `eval $output_verbose_link_cmd`; do
  6315. - case $p in
  6316. -
  6317. - -L* | -R* | -l*)
  6318. - # Some compilers place space between "-{L,R}" and the path.
  6319. - # Remove the space.
  6320. - if test $p = "-L" \
  6321. - || test $p = "-R"; then
  6322. - prev=$p
  6323. - continue
  6324. - else
  6325. - prev=
  6326. - fi
  6327. -
  6328. - if test "$pre_test_object_deps_done" = no; then
  6329. - case $p in
  6330. - -L* | -R*)
  6331. - # Internal compiler library paths should come after those
  6332. - # provided the user. The postdeps already come after the
  6333. - # user supplied libs so there is no need to process them.
  6334. - if test -z "$_LT_AC_TAGVAR(compiler_lib_search_path, $1)"; then
  6335. - _LT_AC_TAGVAR(compiler_lib_search_path, $1)="${prev}${p}"
  6336. - else
  6337. - _LT_AC_TAGVAR(compiler_lib_search_path, $1)="${_LT_AC_TAGVAR(compiler_lib_search_path, $1)} ${prev}${p}"
  6338. - fi
  6339. - ;;
  6340. - # The "-l" case would never come before the object being
  6341. - # linked, so don't bother handling this case.
  6342. - esac
  6343. - else
  6344. - if test -z "$_LT_AC_TAGVAR(postdeps, $1)"; then
  6345. - _LT_AC_TAGVAR(postdeps, $1)="${prev}${p}"
  6346. - else
  6347. - _LT_AC_TAGVAR(postdeps, $1)="${_LT_AC_TAGVAR(postdeps, $1)} ${prev}${p}"
  6348. - fi
  6349. - fi
  6350. - ;;
  6351. -
  6352. - *.$objext)
  6353. - # This assumes that the test object file only shows up
  6354. - # once in the compiler output.
  6355. - if test "$p" = "conftest.$objext"; then
  6356. - pre_test_object_deps_done=yes
  6357. - continue
  6358. - fi
  6359. +file_magic_cmd=$lt_cv_file_magic_cmd
  6360. +deplibs_check_method=$lt_cv_deplibs_check_method
  6361. +test -z "$deplibs_check_method" && deplibs_check_method=unknown
  6362. - if test "$pre_test_object_deps_done" = no; then
  6363. - if test -z "$_LT_AC_TAGVAR(predep_objects, $1)"; then
  6364. - _LT_AC_TAGVAR(predep_objects, $1)="$p"
  6365. - else
  6366. - _LT_AC_TAGVAR(predep_objects, $1)="$_LT_AC_TAGVAR(predep_objects, $1) $p"
  6367. - fi
  6368. - else
  6369. - if test -z "$_LT_AC_TAGVAR(postdep_objects, $1)"; then
  6370. - _LT_AC_TAGVAR(postdep_objects, $1)="$p"
  6371. - else
  6372. - _LT_AC_TAGVAR(postdep_objects, $1)="$_LT_AC_TAGVAR(postdep_objects, $1) $p"
  6373. - fi
  6374. - fi
  6375. - ;;
  6376. +_LT_DECL([], [deplibs_check_method], [1],
  6377. + [Method to check whether dependent libraries are shared objects])
  6378. +_LT_DECL([], [file_magic_cmd], [1],
  6379. + [Command to use when deplibs_check_method == "file_magic"])
  6380. +])# _LT_CHECK_MAGIC_METHOD
  6381. - *) ;; # Ignore the rest.
  6382. - esac
  6383. +# LT_PATH_NM
  6384. +# ----------
  6385. +# find the pathname to a BSD- or MS-compatible name lister
  6386. +AC_DEFUN([LT_PATH_NM],
  6387. +[AC_REQUIRE([AC_PROG_CC])dnl
  6388. +AC_CACHE_CHECK([for BSD- or MS-compatible name lister (nm)], lt_cv_path_NM,
  6389. +[if test -n "$NM"; then
  6390. + # Let the user override the test.
  6391. + lt_cv_path_NM="$NM"
  6392. +else
  6393. + lt_nm_to_check="${ac_tool_prefix}nm"
  6394. + if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  6395. + lt_nm_to_check="$lt_nm_to_check nm"
  6396. + fi
  6397. + for lt_tmp_nm in $lt_nm_to_check; do
  6398. + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  6399. + for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  6400. + IFS="$lt_save_ifs"
  6401. + test -z "$ac_dir" && ac_dir=.
  6402. + tmp_nm="$ac_dir/$lt_tmp_nm"
  6403. + if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
  6404. + # Check to see if the nm accepts a BSD-compat flag.
  6405. + # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  6406. + # nm: unknown option "B" ignored
  6407. + # Tru64's nm complains that /dev/null is an invalid object file
  6408. + case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
  6409. + */dev/null* | *'Invalid file or object type'*)
  6410. + lt_cv_path_NM="$tmp_nm -B"
  6411. + break
  6412. + ;;
  6413. + *)
  6414. + case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  6415. + */dev/null*)
  6416. + lt_cv_path_NM="$tmp_nm -p"
  6417. + break
  6418. + ;;
  6419. + *)
  6420. + lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  6421. + continue # so that we can try to find one that supports BSD flags
  6422. + ;;
  6423. + esac
  6424. + ;;
  6425. + esac
  6426. + fi
  6427. + done
  6428. + IFS="$lt_save_ifs"
  6429. done
  6430. -
  6431. - # Clean up.
  6432. - rm -f a.out a.exe
  6433. + : ${lt_cv_path_NM=no}
  6434. +fi])
  6435. +if test "$lt_cv_path_NM" != "no"; then
  6436. + NM="$lt_cv_path_NM"
  6437. else
  6438. - echo "libtool.m4: error: problem compiling $1 test program"
  6439. + # Didn't find any BSD compatible name lister, look for dumpbin.
  6440. + AC_CHECK_TOOLS(DUMPBIN, ["dumpbin -symbols" "link -dump -symbols"], :)
  6441. + AC_SUBST([DUMPBIN])
  6442. + if test "$DUMPBIN" != ":"; then
  6443. + NM="$DUMPBIN"
  6444. + fi
  6445. fi
  6446. +test -z "$NM" && NM=nm
  6447. +AC_SUBST([NM])
  6448. +_LT_DECL([], [NM], [1], [A BSD- or MS-compatible name lister])dnl
  6449. -$rm -f confest.$objext
  6450. +AC_CACHE_CHECK([the name lister ($NM) interface], [lt_cv_nm_interface],
  6451. + [lt_cv_nm_interface="BSD nm"
  6452. + echo "int some_variable = 0;" > conftest.$ac_ext
  6453. + (eval echo "\"\$as_me:__oline__: $ac_compile\"" >&AS_MESSAGE_LOG_FD)
  6454. + (eval "$ac_compile" 2>conftest.err)
  6455. + cat conftest.err >&AS_MESSAGE_LOG_FD
  6456. + (eval echo "\"\$as_me:__oline__: $NM \\\"conftest.$ac_objext\\\"\"" >&AS_MESSAGE_LOG_FD)
  6457. + (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  6458. + cat conftest.err >&AS_MESSAGE_LOG_FD
  6459. + (eval echo "\"\$as_me:__oline__: output\"" >&AS_MESSAGE_LOG_FD)
  6460. + cat conftest.out >&AS_MESSAGE_LOG_FD
  6461. + if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  6462. + lt_cv_nm_interface="MS dumpbin"
  6463. + fi
  6464. + rm -f conftest*])
  6465. +])# LT_PATH_NM
  6466. +
  6467. +# Old names:
  6468. +AU_ALIAS([AM_PROG_NM], [LT_PATH_NM])
  6469. +AU_ALIAS([AC_PROG_NM], [LT_PATH_NM])
  6470. +dnl aclocal-1.4 backwards compatibility:
  6471. +dnl AC_DEFUN([AM_PROG_NM], [])
  6472. +dnl AC_DEFUN([AC_PROG_NM], [])
  6473. -# PORTME: override above test on systems where it is broken
  6474. -ifelse([$1],[CXX],
  6475. -[case $host_os in
  6476. -interix3*)
  6477. - # Interix 3.5 installs completely hosed .la files for C++, so rather than
  6478. - # hack all around it, let's just trust "g++" to DTRT.
  6479. - _LT_AC_TAGVAR(predep_objects,$1)=
  6480. - _LT_AC_TAGVAR(postdep_objects,$1)=
  6481. - _LT_AC_TAGVAR(postdeps,$1)=
  6482. - ;;
  6483. -solaris*)
  6484. - case $cc_basename in
  6485. - CC*)
  6486. - # Adding this requires a known-good setup of shared libraries for
  6487. - # Sun compiler versions before 5.6, else PIC objects from an old
  6488. - # archive will be linked into the output, leading to subtle bugs.
  6489. - _LT_AC_TAGVAR(postdeps,$1)='-lCstd -lCrun'
  6490. - ;;
  6491. - esac
  6492. +# LT_LIB_M
  6493. +# --------
  6494. +# check for math library
  6495. +AC_DEFUN([LT_LIB_M],
  6496. +[AC_REQUIRE([AC_CANONICAL_HOST])dnl
  6497. +LIBM=
  6498. +case $host in
  6499. +*-*-beos* | *-*-cygwin* | *-*-pw32* | *-*-darwin*)
  6500. + # These system don't have libm, or don't need it
  6501. + ;;
  6502. +*-ncr-sysv4.3*)
  6503. + AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM="-lmw")
  6504. + AC_CHECK_LIB(m, cos, LIBM="$LIBM -lm")
  6505. + ;;
  6506. +*)
  6507. + AC_CHECK_LIB(m, cos, LIBM="-lm")
  6508. ;;
  6509. esac
  6510. -])
  6511. -
  6512. -case " $_LT_AC_TAGVAR(postdeps, $1) " in
  6513. -*" -lc "*) _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no ;;
  6514. -esac
  6515. -])# AC_LIBTOOL_POSTDEP_PREDEP
  6516. +AC_SUBST([LIBM])
  6517. +])# LT_LIB_M
  6518. -# AC_LIBTOOL_LANG_F77_CONFIG
  6519. -# --------------------------
  6520. -# Ensure that the configuration vars for the C compiler are
  6521. -# suitably defined. Those variables are subsequently used by
  6522. -# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
  6523. -AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG], [_LT_AC_LANG_F77_CONFIG(F77)])
  6524. -AC_DEFUN([_LT_AC_LANG_F77_CONFIG],
  6525. -[AC_REQUIRE([AC_PROG_F77])
  6526. -AC_LANG_PUSH(Fortran 77)
  6527. +# Old name:
  6528. +AU_ALIAS([AC_CHECK_LIBM], [LT_LIB_M])
  6529. +dnl aclocal-1.4 backwards compatibility:
  6530. +dnl AC_DEFUN([AC_CHECK_LIBM], [])
  6531. -_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  6532. -_LT_AC_TAGVAR(allow_undefined_flag, $1)=
  6533. -_LT_AC_TAGVAR(always_export_symbols, $1)=no
  6534. -_LT_AC_TAGVAR(archive_expsym_cmds, $1)=
  6535. -_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
  6536. -_LT_AC_TAGVAR(hardcode_direct, $1)=no
  6537. -_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
  6538. -_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
  6539. -_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
  6540. -_LT_AC_TAGVAR(hardcode_minus_L, $1)=no
  6541. -_LT_AC_TAGVAR(hardcode_automatic, $1)=no
  6542. -_LT_AC_TAGVAR(module_cmds, $1)=
  6543. -_LT_AC_TAGVAR(module_expsym_cmds, $1)=
  6544. -_LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
  6545. -_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
  6546. -_LT_AC_TAGVAR(no_undefined_flag, $1)=
  6547. -_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
  6548. -_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
  6549. -# Source file extension for f77 test sources.
  6550. -ac_ext=f
  6551. +# _LT_COMPILER_NO_RTTI([TAGNAME])
  6552. +# -------------------------------
  6553. +m4_defun([_LT_COMPILER_NO_RTTI],
  6554. +[m4_require([_LT_TAG_COMPILER])dnl
  6555. -# Object file extension for compiled f77 test sources.
  6556. -objext=o
  6557. -_LT_AC_TAGVAR(objext, $1)=$objext
  6558. +_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
  6559. -# Code to be used in simple compile tests
  6560. -lt_simple_compile_test_code=" subroutine t\n return\n end\n"
  6561. +if test "$GCC" = yes; then
  6562. + _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
  6563. -# Code to be used in simple link tests
  6564. -lt_simple_link_test_code=" program t\n end\n"
  6565. + _LT_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions],
  6566. + lt_cv_prog_compiler_rtti_exceptions,
  6567. + [-fno-rtti -fno-exceptions], [],
  6568. + [_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"])
  6569. +fi
  6570. +_LT_TAGDECL([no_builtin_flag], [lt_prog_compiler_no_builtin_flag], [1],
  6571. + [Compiler flag to turn off builtin functions])
  6572. +])# _LT_COMPILER_NO_RTTI
  6573. -# ltmain only uses $CC for tagged configurations so make sure $CC is set.
  6574. -_LT_AC_SYS_COMPILER
  6575. -# save warnings/boilerplate of simple test code
  6576. -_LT_COMPILER_BOILERPLATE
  6577. -_LT_LINKER_BOILERPLATE
  6578. +# _LT_CMD_GLOBAL_SYMBOLS
  6579. +# ----------------------
  6580. +m4_defun([_LT_CMD_GLOBAL_SYMBOLS],
  6581. +[AC_REQUIRE([AC_CANONICAL_HOST])dnl
  6582. +AC_REQUIRE([AC_PROG_CC])dnl
  6583. +AC_REQUIRE([LT_PATH_NM])dnl
  6584. +AC_REQUIRE([LT_PATH_LD])dnl
  6585. +m4_require([_LT_DECL_SED])dnl
  6586. +m4_require([_LT_DECL_EGREP])dnl
  6587. +m4_require([_LT_TAG_COMPILER])dnl
  6588. -# Allow CC to be a program name with arguments.
  6589. -lt_save_CC="$CC"
  6590. -CC=${F77-"f77"}
  6591. -compiler=$CC
  6592. -_LT_AC_TAGVAR(compiler, $1)=$CC
  6593. -_LT_CC_BASENAME([$compiler])
  6594. +# Check for command to grab the raw symbol name followed by C symbol from nm.
  6595. +AC_MSG_CHECKING([command to parse $NM output from $compiler object])
  6596. +AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe],
  6597. +[
  6598. +# These are sane defaults that work on at least a few old systems.
  6599. +# [They come from Ultrix. What could be older than Ultrix?!! ;)]
  6600. -AC_MSG_CHECKING([if libtool supports shared libraries])
  6601. -AC_MSG_RESULT([$can_build_shared])
  6602. +# Character class describing NM global symbol codes.
  6603. +symcode='[[BCDEGRST]]'
  6604. -AC_MSG_CHECKING([whether to build shared libraries])
  6605. -test "$can_build_shared" = "no" && enable_shared=no
  6606. +# Regexp to match symbols that can be accessed directly from C.
  6607. +sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)'
  6608. -# On AIX, shared libraries and static libraries use the same namespace, and
  6609. -# are all built from PIC.
  6610. +# Define system-specific variables.
  6611. case $host_os in
  6612. -aix3*)
  6613. - test "$enable_shared" = yes && enable_static=no
  6614. - if test -n "$RANLIB"; then
  6615. - archive_cmds="$archive_cmds~\$RANLIB \$lib"
  6616. - postinstall_cmds='$RANLIB $lib'
  6617. - fi
  6618. +aix*)
  6619. + symcode='[[BCDT]]'
  6620. ;;
  6621. -aix4* | aix5*)
  6622. - if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  6623. - test "$enable_shared" = yes && enable_static=no
  6624. - fi
  6625. +cygwin* | mingw* | pw32* | cegcc*)
  6626. + symcode='[[ABCDGISTW]]'
  6627. ;;
  6628. -esac
  6629. -AC_MSG_RESULT([$enable_shared])
  6630. -
  6631. -AC_MSG_CHECKING([whether to build static libraries])
  6632. -# Make sure either enable_shared or enable_static is yes.
  6633. -test "$enable_shared" = yes || enable_static=yes
  6634. -AC_MSG_RESULT([$enable_static])
  6635. -
  6636. -_LT_AC_TAGVAR(GCC, $1)="$G77"
  6637. -_LT_AC_TAGVAR(LD, $1)="$LD"
  6638. -
  6639. -AC_LIBTOOL_PROG_COMPILER_PIC($1)
  6640. -AC_LIBTOOL_PROG_CC_C_O($1)
  6641. -AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
  6642. -AC_LIBTOOL_PROG_LD_SHLIBS($1)
  6643. -AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
  6644. -AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
  6645. -
  6646. -AC_LIBTOOL_CONFIG($1)
  6647. -
  6648. -AC_LANG_POP
  6649. -CC="$lt_save_CC"
  6650. -])# AC_LIBTOOL_LANG_F77_CONFIG
  6651. -
  6652. -
  6653. -# AC_LIBTOOL_LANG_GCJ_CONFIG
  6654. -# --------------------------
  6655. -# Ensure that the configuration vars for the C compiler are
  6656. -# suitably defined. Those variables are subsequently used by
  6657. -# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
  6658. -AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG], [_LT_AC_LANG_GCJ_CONFIG(GCJ)])
  6659. -AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG],
  6660. -[AC_LANG_SAVE
  6661. -
  6662. -# Source file extension for Java test sources.
  6663. -ac_ext=java
  6664. +hpux*)
  6665. + if test "$host_cpu" = ia64; then
  6666. + symcode='[[ABCDEGRST]]'
  6667. + fi
  6668. + ;;
  6669. +irix* | nonstopux*)
  6670. + symcode='[[BCDEGRST]]'
  6671. + ;;
  6672. +osf*)
  6673. + symcode='[[BCDEGQRST]]'
  6674. + ;;
  6675. +solaris*)
  6676. + symcode='[[BDRT]]'
  6677. + ;;
  6678. +sco3.2v5*)
  6679. + symcode='[[DT]]'
  6680. + ;;
  6681. +sysv4.2uw2*)
  6682. + symcode='[[DT]]'
  6683. + ;;
  6684. +sysv5* | sco5v6* | unixware* | OpenUNIX*)
  6685. + symcode='[[ABDT]]'
  6686. + ;;
  6687. +sysv4)
  6688. + symcode='[[DFNSTU]]'
  6689. + ;;
  6690. +esac
  6691. -# Object file extension for compiled Java test sources.
  6692. -objext=o
  6693. -_LT_AC_TAGVAR(objext, $1)=$objext
  6694. +# If we're using GNU nm, then use its standard symbol codes.
  6695. +case `$NM -V 2>&1` in
  6696. +*GNU* | *'with BFD'*)
  6697. + symcode='[[ABCDGIRSTW]]' ;;
  6698. +esac
  6699. -# Code to be used in simple compile tests
  6700. -lt_simple_compile_test_code="class foo {}\n"
  6701. +# Transform an extracted symbol line into a proper C declaration.
  6702. +# Some systems (esp. on ia64) link data and code symbols differently,
  6703. +# so use this general approach.
  6704. +lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  6705. -# Code to be used in simple link tests
  6706. -lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }\n'
  6707. +# Transform an extracted symbol line into symbol name and symbol address
  6708. +lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (void *) \&\2},/p'"
  6709. +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'"
  6710. -# ltmain only uses $CC for tagged configurations so make sure $CC is set.
  6711. -_LT_AC_SYS_COMPILER
  6712. +# Handle CRLF in mingw tool chain
  6713. +opt_cr=
  6714. +case $build_os in
  6715. +mingw*)
  6716. + opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  6717. + ;;
  6718. +esac
  6719. -# save warnings/boilerplate of simple test code
  6720. -_LT_COMPILER_BOILERPLATE
  6721. -_LT_LINKER_BOILERPLATE
  6722. +# Try without a prefix underscore, then with it.
  6723. +for ac_symprfx in "" "_"; do
  6724. -# Allow CC to be a program name with arguments.
  6725. -lt_save_CC="$CC"
  6726. -CC=${GCJ-"gcj"}
  6727. -compiler=$CC
  6728. -_LT_AC_TAGVAR(compiler, $1)=$CC
  6729. -_LT_CC_BASENAME([$compiler])
  6730. + # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  6731. + symxfrm="\\1 $ac_symprfx\\2 \\2"
  6732. -# GCJ did not exist at the time GCC didn't implicitly link libc in.
  6733. -_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  6734. + # Write the raw and C identifiers.
  6735. + if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  6736. + # Fake it for dumpbin and say T for any non-static function
  6737. + # and D for any global variable.
  6738. + # Also find C++ and __fastcall symbols from MSVC++,
  6739. + # which start with @ or ?.
  6740. + lt_cv_sys_global_symbol_pipe="$AWK ['"\
  6741. +" {last_section=section; section=\$ 3};"\
  6742. +" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  6743. +" \$ 0!~/External *\|/{next};"\
  6744. +" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  6745. +" {if(hide[section]) next};"\
  6746. +" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
  6747. +" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
  6748. +" s[1]~/^[@?]/{print s[1], s[1]; next};"\
  6749. +" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
  6750. +" ' prfx=^$ac_symprfx]"
  6751. + else
  6752. + lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  6753. + fi
  6754. -_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
  6755. + # Check to see that the pipe works correctly.
  6756. + pipe_works=no
  6757. -AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1)
  6758. -AC_LIBTOOL_PROG_COMPILER_PIC($1)
  6759. -AC_LIBTOOL_PROG_CC_C_O($1)
  6760. -AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
  6761. -AC_LIBTOOL_PROG_LD_SHLIBS($1)
  6762. -AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
  6763. -AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
  6764. + rm -f conftest*
  6765. + cat > conftest.$ac_ext <<_LT_EOF
  6766. +#ifdef __cplusplus
  6767. +extern "C" {
  6768. +#endif
  6769. +char nm_test_var;
  6770. +void nm_test_func(void);
  6771. +void nm_test_func(void){}
  6772. +#ifdef __cplusplus
  6773. +}
  6774. +#endif
  6775. +int main(){nm_test_var='a';nm_test_func();return(0);}
  6776. +_LT_EOF
  6777. -AC_LIBTOOL_CONFIG($1)
  6778. + if AC_TRY_EVAL(ac_compile); then
  6779. + # Now try to grab the symbols.
  6780. + nlist=conftest.nm
  6781. + if AC_TRY_EVAL(NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) && test -s "$nlist"; then
  6782. + # Try sorting and uniquifying the output.
  6783. + if sort "$nlist" | uniq > "$nlist"T; then
  6784. + mv -f "$nlist"T "$nlist"
  6785. + else
  6786. + rm -f "$nlist"T
  6787. + fi
  6788. -AC_LANG_RESTORE
  6789. -CC="$lt_save_CC"
  6790. -])# AC_LIBTOOL_LANG_GCJ_CONFIG
  6791. + # Make sure that we snagged all the symbols we need.
  6792. + if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  6793. + if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  6794. + cat <<_LT_EOF > conftest.$ac_ext
  6795. +#ifdef __cplusplus
  6796. +extern "C" {
  6797. +#endif
  6798. +_LT_EOF
  6799. + # Now generate the symbol file.
  6800. + eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  6801. -# AC_LIBTOOL_LANG_RC_CONFIG
  6802. -# -------------------------
  6803. -# Ensure that the configuration vars for the Windows resource compiler are
  6804. -# suitably defined. Those variables are subsequently used by
  6805. -# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
  6806. -AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG], [_LT_AC_LANG_RC_CONFIG(RC)])
  6807. -AC_DEFUN([_LT_AC_LANG_RC_CONFIG],
  6808. -[AC_LANG_SAVE
  6809. + cat <<_LT_EOF >> conftest.$ac_ext
  6810. -# Source file extension for RC test sources.
  6811. -ac_ext=rc
  6812. +/* The mapping between symbol names and symbols. */
  6813. +const struct {
  6814. + const char *name;
  6815. + void *address;
  6816. +}
  6817. +lt__PROGRAM__LTX_preloaded_symbols[[]] =
  6818. +{
  6819. + { "@PROGRAM@", (void *) 0 },
  6820. +_LT_EOF
  6821. + $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  6822. + cat <<\_LT_EOF >> conftest.$ac_ext
  6823. + {0, (void *) 0}
  6824. +};
  6825. -# Object file extension for compiled RC test sources.
  6826. -objext=o
  6827. -_LT_AC_TAGVAR(objext, $1)=$objext
  6828. +/* This works around a problem in FreeBSD linker */
  6829. +#ifdef FREEBSD_WORKAROUND
  6830. +static const void *lt_preloaded_setup() {
  6831. + return lt__PROGRAM__LTX_preloaded_symbols;
  6832. +}
  6833. +#endif
  6834. -# Code to be used in simple compile tests
  6835. -lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
  6836. +#ifdef __cplusplus
  6837. +}
  6838. +#endif
  6839. +_LT_EOF
  6840. + # Now try linking the two files.
  6841. + mv conftest.$ac_objext conftstm.$ac_objext
  6842. + lt_save_LIBS="$LIBS"
  6843. + lt_save_CFLAGS="$CFLAGS"
  6844. + LIBS="conftstm.$ac_objext"
  6845. + CFLAGS="$CFLAGS$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)"
  6846. + if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then
  6847. + pipe_works=yes
  6848. + fi
  6849. + LIBS="$lt_save_LIBS"
  6850. + CFLAGS="$lt_save_CFLAGS"
  6851. + else
  6852. + echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD
  6853. + fi
  6854. + else
  6855. + echo "cannot find nm_test_var in $nlist" >&AS_MESSAGE_LOG_FD
  6856. + fi
  6857. + else
  6858. + echo "cannot run $lt_cv_sys_global_symbol_pipe" >&AS_MESSAGE_LOG_FD
  6859. + fi
  6860. + else
  6861. + echo "$progname: failed program was:" >&AS_MESSAGE_LOG_FD
  6862. + cat conftest.$ac_ext >&5
  6863. + fi
  6864. + rm -rf conftest* conftst*
  6865. -# Code to be used in simple link tests
  6866. -lt_simple_link_test_code="$lt_simple_compile_test_code"
  6867. + # Do not use the global_symbol_pipe unless it works.
  6868. + if test "$pipe_works" = yes; then
  6869. + break
  6870. + else
  6871. + lt_cv_sys_global_symbol_pipe=
  6872. + fi
  6873. +done
  6874. +])
  6875. +if test -z "$lt_cv_sys_global_symbol_pipe"; then
  6876. + lt_cv_sys_global_symbol_to_cdecl=
  6877. +fi
  6878. +if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  6879. + AC_MSG_RESULT(failed)
  6880. +else
  6881. + AC_MSG_RESULT(ok)
  6882. +fi
  6883. -# ltmain only uses $CC for tagged configurations so make sure $CC is set.
  6884. -_LT_AC_SYS_COMPILER
  6885. +_LT_DECL([global_symbol_pipe], [lt_cv_sys_global_symbol_pipe], [1],
  6886. + [Take the output of nm and produce a listing of raw symbols and C names])
  6887. +_LT_DECL([global_symbol_to_cdecl], [lt_cv_sys_global_symbol_to_cdecl], [1],
  6888. + [Transform the output of nm in a proper C declaration])
  6889. +_LT_DECL([global_symbol_to_c_name_address],
  6890. + [lt_cv_sys_global_symbol_to_c_name_address], [1],
  6891. + [Transform the output of nm in a C name address pair])
  6892. +_LT_DECL([global_symbol_to_c_name_address_lib_prefix],
  6893. + [lt_cv_sys_global_symbol_to_c_name_address_lib_prefix], [1],
  6894. + [Transform the output of nm in a C name address pair when lib prefix is needed])
  6895. +]) # _LT_CMD_GLOBAL_SYMBOLS
  6896. -# save warnings/boilerplate of simple test code
  6897. -_LT_COMPILER_BOILERPLATE
  6898. -_LT_LINKER_BOILERPLATE
  6899. -# Allow CC to be a program name with arguments.
  6900. -lt_save_CC="$CC"
  6901. -CC=${RC-"windres"}
  6902. -compiler=$CC
  6903. -_LT_AC_TAGVAR(compiler, $1)=$CC
  6904. -_LT_CC_BASENAME([$compiler])
  6905. -_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
  6906. +# _LT_COMPILER_PIC([TAGNAME])
  6907. +# ---------------------------
  6908. +m4_defun([_LT_COMPILER_PIC],
  6909. +[m4_require([_LT_TAG_COMPILER])dnl
  6910. +_LT_TAGVAR(lt_prog_compiler_wl, $1)=
  6911. +_LT_TAGVAR(lt_prog_compiler_pic, $1)=
  6912. +_LT_TAGVAR(lt_prog_compiler_static, $1)=
  6913. -AC_LIBTOOL_CONFIG($1)
  6914. +AC_MSG_CHECKING([for $compiler option to produce PIC])
  6915. +m4_if([$1], [CXX], [
  6916. + # C++ specific cases for pic, static, wl, etc.
  6917. + if test "$GXX" = yes; then
  6918. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  6919. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
  6920. -AC_LANG_RESTORE
  6921. -CC="$lt_save_CC"
  6922. -])# AC_LIBTOOL_LANG_RC_CONFIG
  6923. + case $host_os in
  6924. + aix*)
  6925. + # All AIX code is PIC.
  6926. + if test "$host_cpu" = ia64; then
  6927. + # AIX 5 now supports IA64 processor
  6928. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  6929. + fi
  6930. + ;;
  6931. + amigaos*)
  6932. + case $host_cpu in
  6933. + powerpc)
  6934. + # see comment about AmigaOS4 .so support
  6935. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  6936. + ;;
  6937. + m68k)
  6938. + # FIXME: we need at least 68020 code to build shared libraries, but
  6939. + # adding the `-m68020' flag to GCC prevents building anything better,
  6940. + # like `-m68040'.
  6941. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
  6942. + ;;
  6943. + esac
  6944. + ;;
  6945. -# AC_LIBTOOL_CONFIG([TAGNAME])
  6946. -# ----------------------------
  6947. -# If TAGNAME is not passed, then create an initial libtool script
  6948. -# with a default configuration from the untagged config vars. Otherwise
  6949. -# add code to config.status for appending the configuration named by
  6950. -# TAGNAME from the matching tagged config vars.
  6951. -AC_DEFUN([AC_LIBTOOL_CONFIG],
  6952. -[# The else clause should only fire when bootstrapping the
  6953. -# libtool distribution, otherwise you forgot to ship ltmain.sh
  6954. -# with your package, and you will get complaints that there are
  6955. -# no rules to generate ltmain.sh.
  6956. -if test -f "$ltmain"; then
  6957. - # See if we are running on zsh, and set the options which allow our commands through
  6958. - # without removal of \ escapes.
  6959. - if test -n "${ZSH_VERSION+set}" ; then
  6960. - setopt NO_GLOB_SUBST
  6961. - fi
  6962. - # Now quote all the things that may contain metacharacters while being
  6963. - # careful not to overquote the AC_SUBSTed values. We take copies of the
  6964. - # variables and quote the copies for generation of the libtool script.
  6965. - for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
  6966. - SED SHELL STRIP \
  6967. - libname_spec library_names_spec soname_spec extract_expsyms_cmds \
  6968. - old_striplib striplib file_magic_cmd finish_cmds finish_eval \
  6969. - deplibs_check_method reload_flag reload_cmds need_locks \
  6970. - lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
  6971. - lt_cv_sys_global_symbol_to_c_name_address \
  6972. - sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  6973. - old_postinstall_cmds old_postuninstall_cmds \
  6974. - _LT_AC_TAGVAR(compiler, $1) \
  6975. - _LT_AC_TAGVAR(CC, $1) \
  6976. - _LT_AC_TAGVAR(LD, $1) \
  6977. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1) \
  6978. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1) \
  6979. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1) \
  6980. - _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) \
  6981. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1) \
  6982. - _LT_AC_TAGVAR(thread_safe_flag_spec, $1) \
  6983. - _LT_AC_TAGVAR(whole_archive_flag_spec, $1) \
  6984. - _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1) \
  6985. - _LT_AC_TAGVAR(old_archive_cmds, $1) \
  6986. - _LT_AC_TAGVAR(old_archive_from_new_cmds, $1) \
  6987. - _LT_AC_TAGVAR(predep_objects, $1) \
  6988. - _LT_AC_TAGVAR(postdep_objects, $1) \
  6989. - _LT_AC_TAGVAR(predeps, $1) \
  6990. - _LT_AC_TAGVAR(postdeps, $1) \
  6991. - _LT_AC_TAGVAR(compiler_lib_search_path, $1) \
  6992. - _LT_AC_TAGVAR(archive_cmds, $1) \
  6993. - _LT_AC_TAGVAR(archive_expsym_cmds, $1) \
  6994. - _LT_AC_TAGVAR(postinstall_cmds, $1) \
  6995. - _LT_AC_TAGVAR(postuninstall_cmds, $1) \
  6996. - _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) \
  6997. - _LT_AC_TAGVAR(allow_undefined_flag, $1) \
  6998. - _LT_AC_TAGVAR(no_undefined_flag, $1) \
  6999. - _LT_AC_TAGVAR(export_symbols_cmds, $1) \
  7000. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) \
  7001. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1) \
  7002. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1) \
  7003. - _LT_AC_TAGVAR(hardcode_automatic, $1) \
  7004. - _LT_AC_TAGVAR(module_cmds, $1) \
  7005. - _LT_AC_TAGVAR(module_expsym_cmds, $1) \
  7006. - _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1) \
  7007. - _LT_AC_TAGVAR(exclude_expsyms, $1) \
  7008. - _LT_AC_TAGVAR(include_expsyms, $1); do
  7009. -
  7010. - case $var in
  7011. - _LT_AC_TAGVAR(old_archive_cmds, $1) | \
  7012. - _LT_AC_TAGVAR(old_archive_from_new_cmds, $1) | \
  7013. - _LT_AC_TAGVAR(archive_cmds, $1) | \
  7014. - _LT_AC_TAGVAR(archive_expsym_cmds, $1) | \
  7015. - _LT_AC_TAGVAR(module_cmds, $1) | \
  7016. - _LT_AC_TAGVAR(module_expsym_cmds, $1) | \
  7017. - _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) | \
  7018. - _LT_AC_TAGVAR(export_symbols_cmds, $1) | \
  7019. - extract_expsyms_cmds | reload_cmds | finish_cmds | \
  7020. - postinstall_cmds | postuninstall_cmds | \
  7021. - old_postinstall_cmds | old_postuninstall_cmds | \
  7022. - sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  7023. - # Double-quote double-evaled strings.
  7024. - eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
  7025. + beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  7026. + # PIC is the default for these OSes.
  7027. + ;;
  7028. + mingw* | cygwin* | os2* | pw32* | cegcc*)
  7029. + # This hack is so that the source file can tell whether it is being
  7030. + # built for inclusion in a dll (and should export symbols for example).
  7031. + # Although the cygwin gcc ignores -fPIC, still need this for old-style
  7032. + # (--disable-auto-import) libraries
  7033. + m4_if([$1], [GCJ], [],
  7034. + [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
  7035. + ;;
  7036. + darwin* | rhapsody*)
  7037. + # PIC is the default on this platform
  7038. + # Common symbols not allowed in MH_DYLIB files
  7039. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
  7040. + ;;
  7041. + *djgpp*)
  7042. + # DJGPP does not support shared libraries at all
  7043. + _LT_TAGVAR(lt_prog_compiler_pic, $1)=
  7044. + ;;
  7045. + interix[[3-9]]*)
  7046. + # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  7047. + # Instead, we relocate shared libraries at runtime.
  7048. + ;;
  7049. + sysv4*MP*)
  7050. + if test -d /usr/nec; then
  7051. + _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
  7052. + fi
  7053. + ;;
  7054. + hpux*)
  7055. + # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  7056. + # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  7057. + # sets the default TLS model and affects inlining.
  7058. + case $host_cpu in
  7059. + hppa*64*)
  7060. + ;;
  7061. + *)
  7062. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  7063. + ;;
  7064. + esac
  7065. + ;;
  7066. + *qnx* | *nto*)
  7067. + # QNX uses GNU C++, but need to define -shared option too, otherwise
  7068. + # it will coredump.
  7069. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
  7070. ;;
  7071. *)
  7072. - eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
  7073. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  7074. ;;
  7075. esac
  7076. - done
  7077. -
  7078. - case $lt_echo in
  7079. - *'\[$]0 --fallback-echo"')
  7080. - lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\[$]0 --fallback-echo"[$]/[$]0 --fallback-echo"/'`
  7081. - ;;
  7082. - esac
  7083. -
  7084. -ifelse([$1], [],
  7085. - [cfgfile="${ofile}T"
  7086. - trap "$rm \"$cfgfile\"; exit 1" 1 2 15
  7087. - $rm -f "$cfgfile"
  7088. - AC_MSG_NOTICE([creating $ofile])],
  7089. - [cfgfile="$ofile"])
  7090. -
  7091. - cat <<__EOF__ >> "$cfgfile"
  7092. -ifelse([$1], [],
  7093. -[#! $SHELL
  7094. -
  7095. -# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  7096. -# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
  7097. -# NOTE: Changes made to this file will be lost: look at ltmain.sh.
  7098. -#
  7099. -# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
  7100. -# Free Software Foundation, Inc.
  7101. -#
  7102. -# This file is part of GNU Libtool:
  7103. -# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
  7104. -#
  7105. -# This program is free software; you can redistribute it and/or modify
  7106. -# it under the terms of the GNU General Public License as published by
  7107. -# the Free Software Foundation; either version 2 of the License, or
  7108. -# (at your option) any later version.
  7109. -#
  7110. -# This program is distributed in the hope that it will be useful, but
  7111. -# WITHOUT ANY WARRANTY; without even the implied warranty of
  7112. -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  7113. -# General Public License for more details.
  7114. -#
  7115. -# You should have received a copy of the GNU General Public License
  7116. -# along with this program; if not, write to the Free Software
  7117. -# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  7118. -#
  7119. -# As a special exception to the GNU General Public License, if you
  7120. -# distribute this file as part of a program that contains a
  7121. -# configuration script generated by Autoconf, you may include it under
  7122. -# the same distribution terms that you use for the rest of that program.
  7123. -
  7124. -# A sed program that does not truncate output.
  7125. -SED=$lt_SED
  7126. -
  7127. -# Sed that helps us avoid accidentally triggering echo(1) options like -n.
  7128. -Xsed="$SED -e 1s/^X//"
  7129. -
  7130. -# The HP-UX ksh and POSIX shell print the target directory to stdout
  7131. -# if CDPATH is set.
  7132. -(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  7133. -
  7134. -# The names of the tagged configurations supported by this script.
  7135. -available_tags=
  7136. -
  7137. -# ### BEGIN LIBTOOL CONFIG],
  7138. -[# ### BEGIN LIBTOOL TAG CONFIG: $tagname])
  7139. -
  7140. -# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  7141. -
  7142. -# Shell to use when invoking shell scripts.
  7143. -SHELL=$lt_SHELL
  7144. -
  7145. -# Whether or not to build shared libraries.
  7146. -build_libtool_libs=$enable_shared
  7147. -
  7148. -# Whether or not to build static libraries.
  7149. -build_old_libs=$enable_static
  7150. -
  7151. -# Whether or not to add -lc for building shared libraries.
  7152. -build_libtool_need_lc=$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)
  7153. -
  7154. -# Whether or not to disallow shared libs when runtime libs are static
  7155. -allow_libtool_libs_with_static_runtimes=$_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)
  7156. -
  7157. -# Whether or not to optimize for fast installation.
  7158. -fast_install=$enable_fast_install
  7159. -
  7160. -# The host system.
  7161. -host_alias=$host_alias
  7162. -host=$host
  7163. -host_os=$host_os
  7164. -
  7165. -# The build system.
  7166. -build_alias=$build_alias
  7167. -build=$build
  7168. -build_os=$build_os
  7169. -
  7170. -# An echo program that does not interpret backslashes.
  7171. -echo=$lt_echo
  7172. -
  7173. -# The archiver.
  7174. -AR=$lt_AR
  7175. -AR_FLAGS=$lt_AR_FLAGS
  7176. -
  7177. -# A C compiler.
  7178. -LTCC=$lt_LTCC
  7179. -
  7180. -# LTCC compiler flags.
  7181. -LTCFLAGS=$lt_LTCFLAGS
  7182. -
  7183. -# A language-specific compiler.
  7184. -CC=$lt_[]_LT_AC_TAGVAR(compiler, $1)
  7185. -
  7186. -# Is the compiler the GNU C compiler?
  7187. -with_gcc=$_LT_AC_TAGVAR(GCC, $1)
  7188. -
  7189. -gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\`
  7190. -gcc_ver=\`gcc -dumpversion\`
  7191. -
  7192. -# An ERE matcher.
  7193. -EGREP=$lt_EGREP
  7194. -
  7195. -# The linker used to build libraries.
  7196. -LD=$lt_[]_LT_AC_TAGVAR(LD, $1)
  7197. -
  7198. -# Whether we need hard or soft links.
  7199. -LN_S=$lt_LN_S
  7200. + else
  7201. + case $host_os in
  7202. + aix[[4-9]]*)
  7203. + # All AIX code is PIC.
  7204. + if test "$host_cpu" = ia64; then
  7205. + # AIX 5 now supports IA64 processor
  7206. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  7207. + else
  7208. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
  7209. + fi
  7210. + ;;
  7211. + chorus*)
  7212. + case $cc_basename in
  7213. + cxch68*)
  7214. + # Green Hills C++ Compiler
  7215. + # _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"
  7216. + ;;
  7217. + esac
  7218. + ;;
  7219. + dgux*)
  7220. + case $cc_basename in
  7221. + ec++*)
  7222. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  7223. + ;;
  7224. + ghcx*)
  7225. + # Green Hills C++ Compiler
  7226. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  7227. + ;;
  7228. + *)
  7229. + ;;
  7230. + esac
  7231. + ;;
  7232. + freebsd* | dragonfly*)
  7233. + # FreeBSD uses GNU C++
  7234. + ;;
  7235. + hpux9* | hpux10* | hpux11*)
  7236. + case $cc_basename in
  7237. + CC*)
  7238. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  7239. + _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
  7240. + if test "$host_cpu" != ia64; then
  7241. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
  7242. + fi
  7243. + ;;
  7244. + aCC*)
  7245. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  7246. + _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
  7247. + case $host_cpu in
  7248. + hppa*64*|ia64*)
  7249. + # +Z the default
  7250. + ;;
  7251. + *)
  7252. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
  7253. + ;;
  7254. + esac
  7255. + ;;
  7256. + *)
  7257. + ;;
  7258. + esac
  7259. + ;;
  7260. + interix*)
  7261. + # This is c89, which is MS Visual C++ (no shared libs)
  7262. + # Anyone wants to do a port?
  7263. + ;;
  7264. + irix5* | irix6* | nonstopux*)
  7265. + case $cc_basename in
  7266. + CC*)
  7267. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  7268. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  7269. + # CC pic flag -KPIC is the default.
  7270. + ;;
  7271. + *)
  7272. + ;;
  7273. + esac
  7274. + ;;
  7275. + linux* | k*bsd*-gnu | kopensolaris*-gnu)
  7276. + case $cc_basename in
  7277. + KCC*)
  7278. + # KAI C++ Compiler
  7279. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
  7280. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  7281. + ;;
  7282. + ecpc* )
  7283. + # old Intel C++ for x86_64 which still supported -KPIC.
  7284. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  7285. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  7286. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
  7287. + ;;
  7288. + icpc* )
  7289. + # Intel C++, used to be incompatible with GCC.
  7290. + # ICC 10 doesn't accept -KPIC any more.
  7291. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  7292. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  7293. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
  7294. + ;;
  7295. + pgCC* | pgcpp*)
  7296. + # Portland Group C++ compiler
  7297. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  7298. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
  7299. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  7300. + ;;
  7301. + cxx*)
  7302. + # Compaq C++
  7303. + # Make sure the PIC flag is empty. It appears that all Alpha
  7304. + # Linux and Compaq Tru64 Unix objects are PIC.
  7305. + _LT_TAGVAR(lt_prog_compiler_pic, $1)=
  7306. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  7307. + ;;
  7308. + xlc* | xlC*)
  7309. + # IBM XL 8.0 on PPC
  7310. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  7311. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
  7312. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
  7313. + ;;
  7314. + *)
  7315. + case `$CC -V 2>&1 | sed 5q` in
  7316. + *Sun\ C*)
  7317. + # Sun C++ 5.9
  7318. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  7319. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  7320. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
  7321. + ;;
  7322. + esac
  7323. + ;;
  7324. + esac
  7325. + ;;
  7326. + lynxos*)
  7327. + ;;
  7328. + m88k*)
  7329. + ;;
  7330. + mvs*)
  7331. + case $cc_basename in
  7332. + cxx*)
  7333. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall'
  7334. + ;;
  7335. + *)
  7336. + ;;
  7337. + esac
  7338. + ;;
  7339. + netbsd* | netbsdelf*-gnu)
  7340. + ;;
  7341. + *qnx* | *nto*)
  7342. + # QNX uses GNU C++, but need to define -shared option too, otherwise
  7343. + # it will coredump.
  7344. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
  7345. + ;;
  7346. + osf3* | osf4* | osf5*)
  7347. + case $cc_basename in
  7348. + KCC*)
  7349. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
  7350. + ;;
  7351. + RCC*)
  7352. + # Rational C++ 2.4.1
  7353. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  7354. + ;;
  7355. + cxx*)
  7356. + # Digital/Compaq C++
  7357. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  7358. + # Make sure the PIC flag is empty. It appears that all Alpha
  7359. + # Linux and Compaq Tru64 Unix objects are PIC.
  7360. + _LT_TAGVAR(lt_prog_compiler_pic, $1)=
  7361. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  7362. + ;;
  7363. + *)
  7364. + ;;
  7365. + esac
  7366. + ;;
  7367. + psos*)
  7368. + ;;
  7369. + solaris*)
  7370. + case $cc_basename in
  7371. + CC*)
  7372. + # Sun C++ 4.2, 5.x and Centerline C++
  7373. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  7374. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  7375. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
  7376. + ;;
  7377. + gcx*)
  7378. + # Green Hills C++ Compiler
  7379. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
  7380. + ;;
  7381. + *)
  7382. + ;;
  7383. + esac
  7384. + ;;
  7385. + sunos4*)
  7386. + case $cc_basename in
  7387. + CC*)
  7388. + # Sun C++ 4.x
  7389. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  7390. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  7391. + ;;
  7392. + lcc*)
  7393. + # Lucid
  7394. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  7395. + ;;
  7396. + *)
  7397. + ;;
  7398. + esac
  7399. + ;;
  7400. + sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  7401. + case $cc_basename in
  7402. + CC*)
  7403. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  7404. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  7405. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  7406. + ;;
  7407. + esac
  7408. + ;;
  7409. + tandem*)
  7410. + case $cc_basename in
  7411. + NCC*)
  7412. + # NonStop-UX NCC 3.20
  7413. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  7414. + ;;
  7415. + *)
  7416. + ;;
  7417. + esac
  7418. + ;;
  7419. + vxworks*)
  7420. + ;;
  7421. + *)
  7422. + _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
  7423. + ;;
  7424. + esac
  7425. + fi
  7426. +],
  7427. +[
  7428. + if test "$GCC" = yes; then
  7429. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  7430. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
  7431. -# A BSD-compatible nm program.
  7432. -NM=$lt_NM
  7433. + case $host_os in
  7434. + aix*)
  7435. + # All AIX code is PIC.
  7436. + if test "$host_cpu" = ia64; then
  7437. + # AIX 5 now supports IA64 processor
  7438. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  7439. + fi
  7440. + ;;
  7441. -# A symbol stripping program
  7442. -STRIP=$lt_STRIP
  7443. + amigaos*)
  7444. + case $host_cpu in
  7445. + powerpc)
  7446. + # see comment about AmigaOS4 .so support
  7447. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  7448. + ;;
  7449. + m68k)
  7450. + # FIXME: we need at least 68020 code to build shared libraries, but
  7451. + # adding the `-m68020' flag to GCC prevents building anything better,
  7452. + # like `-m68040'.
  7453. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
  7454. + ;;
  7455. + esac
  7456. + ;;
  7457. -# Used to examine libraries when file_magic_cmd begins "file"
  7458. -MAGIC_CMD=$MAGIC_CMD
  7459. + beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  7460. + # PIC is the default for these OSes.
  7461. + ;;
  7462. -# Used on cygwin: DLL creation program.
  7463. -DLLTOOL="$DLLTOOL"
  7464. + mingw* | cygwin* | pw32* | os2* | cegcc*)
  7465. + # This hack is so that the source file can tell whether it is being
  7466. + # built for inclusion in a dll (and should export symbols for example).
  7467. + # Although the cygwin gcc ignores -fPIC, still need this for old-style
  7468. + # (--disable-auto-import) libraries
  7469. + m4_if([$1], [GCJ], [],
  7470. + [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
  7471. + ;;
  7472. -# Used on cygwin: object dumper.
  7473. -OBJDUMP="$OBJDUMP"
  7474. + darwin* | rhapsody*)
  7475. + # PIC is the default on this platform
  7476. + # Common symbols not allowed in MH_DYLIB files
  7477. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
  7478. + ;;
  7479. -# Used on cygwin: assembler.
  7480. -AS="$AS"
  7481. + hpux*)
  7482. + # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  7483. + # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  7484. + # sets the default TLS model and affects inlining.
  7485. + case $host_cpu in
  7486. + hppa*64*)
  7487. + # +Z the default
  7488. + ;;
  7489. + *)
  7490. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  7491. + ;;
  7492. + esac
  7493. + ;;
  7494. -# The name of the directory that contains temporary libtool files.
  7495. -objdir=$objdir
  7496. + interix[[3-9]]*)
  7497. + # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  7498. + # Instead, we relocate shared libraries at runtime.
  7499. + ;;
  7500. -# How to create reloadable object files.
  7501. -reload_flag=$lt_reload_flag
  7502. -reload_cmds=$lt_reload_cmds
  7503. + msdosdjgpp*)
  7504. + # Just because we use GCC doesn't mean we suddenly get shared libraries
  7505. + # on systems that don't support them.
  7506. + _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
  7507. + enable_shared=no
  7508. + ;;
  7509. -# How to pass a linker flag through the compiler.
  7510. -wl=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)
  7511. + *nto* | *qnx*)
  7512. + # QNX uses GNU C++, but need to define -shared option too, otherwise
  7513. + # it will coredump.
  7514. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
  7515. + ;;
  7516. -# Object file suffix (normally "o").
  7517. -objext="$ac_objext"
  7518. + sysv4*MP*)
  7519. + if test -d /usr/nec; then
  7520. + _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
  7521. + fi
  7522. + ;;
  7523. -# Old archive suffix (normally "a").
  7524. -libext="$libext"
  7525. + *)
  7526. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  7527. + ;;
  7528. + esac
  7529. + else
  7530. + # PORTME Check for flag to pass linker flags through the system compiler.
  7531. + case $host_os in
  7532. + aix*)
  7533. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  7534. + if test "$host_cpu" = ia64; then
  7535. + # AIX 5 now supports IA64 processor
  7536. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  7537. + else
  7538. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
  7539. + fi
  7540. + ;;
  7541. -# Shared library suffix (normally ".so").
  7542. -shrext_cmds='$shrext_cmds'
  7543. + mingw* | cygwin* | pw32* | os2* | cegcc*)
  7544. + # This hack is so that the source file can tell whether it is being
  7545. + # built for inclusion in a dll (and should export symbols for example).
  7546. + m4_if([$1], [GCJ], [],
  7547. + [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
  7548. + ;;
  7549. -# Executable file suffix (normally "").
  7550. -exeext="$exeext"
  7551. + hpux9* | hpux10* | hpux11*)
  7552. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  7553. + # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  7554. + # not for PA HP-UX.
  7555. + case $host_cpu in
  7556. + hppa*64*|ia64*)
  7557. + # +Z the default
  7558. + ;;
  7559. + *)
  7560. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
  7561. + ;;
  7562. + esac
  7563. + # Is there a better lt_prog_compiler_static that works with the bundled CC?
  7564. + _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
  7565. + ;;
  7566. -# Additional compiler flags for building library objects.
  7567. -pic_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)
  7568. -pic_mode=$pic_mode
  7569. + irix5* | irix6* | nonstopux*)
  7570. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  7571. + # PIC (with -KPIC) is the default.
  7572. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  7573. + ;;
  7574. -# What is the maximum length of a command?
  7575. -max_cmd_len=$lt_cv_sys_max_cmd_len
  7576. + linux* | k*bsd*-gnu | kopensolaris*-gnu)
  7577. + case $cc_basename in
  7578. + # old Intel for x86_64 which still supported -KPIC.
  7579. + ecc*)
  7580. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  7581. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  7582. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
  7583. + ;;
  7584. + # icc used to be incompatible with GCC.
  7585. + # ICC 10 doesn't accept -KPIC any more.
  7586. + icc* | ifort*)
  7587. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  7588. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  7589. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
  7590. + ;;
  7591. + # Lahey Fortran 8.1.
  7592. + lf95*)
  7593. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  7594. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='--shared'
  7595. + _LT_TAGVAR(lt_prog_compiler_static, $1)='--static'
  7596. + ;;
  7597. + pgcc* | pgf77* | pgf90* | pgf95*)
  7598. + # Portland Group compilers (*not* the Pentium gcc compiler,
  7599. + # which looks to be a dead project)
  7600. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  7601. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
  7602. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  7603. + ;;
  7604. + ccc*)
  7605. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  7606. + # All Alpha code is PIC.
  7607. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  7608. + ;;
  7609. + xl*)
  7610. + # IBM XL C 8.0/Fortran 10.1 on PPC
  7611. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  7612. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
  7613. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
  7614. + ;;
  7615. + *)
  7616. + case `$CC -V 2>&1 | sed 5q` in
  7617. + *Sun\ C*)
  7618. + # Sun C 5.9
  7619. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  7620. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  7621. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  7622. + ;;
  7623. + *Sun\ F*)
  7624. + # Sun Fortran 8.3 passes all unrecognized flags to the linker
  7625. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  7626. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  7627. + _LT_TAGVAR(lt_prog_compiler_wl, $1)=''
  7628. + ;;
  7629. + esac
  7630. + ;;
  7631. + esac
  7632. + ;;
  7633. -# Does compiler simultaneously support -c and -o options?
  7634. -compiler_c_o=$lt_[]_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)
  7635. + newsos6)
  7636. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  7637. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  7638. + ;;
  7639. -# Must we lock files when doing compilation?
  7640. -need_locks=$lt_need_locks
  7641. + *nto* | *qnx*)
  7642. + # QNX uses GNU C++, but need to define -shared option too, otherwise
  7643. + # it will coredump.
  7644. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
  7645. + ;;
  7646. -# Do we need the lib prefix for modules?
  7647. -need_lib_prefix=$need_lib_prefix
  7648. -
  7649. -# Do we need a version for libraries?
  7650. -need_version=$need_version
  7651. -
  7652. -# Whether dlopen is supported.
  7653. -dlopen_support=$enable_dlopen
  7654. + osf3* | osf4* | osf5*)
  7655. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  7656. + # All OSF/1 code is PIC.
  7657. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  7658. + ;;
  7659. -# Whether dlopen of programs is supported.
  7660. -dlopen_self=$enable_dlopen_self
  7661. + rdos*)
  7662. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  7663. + ;;
  7664. -# Whether dlopen of statically linked programs is supported.
  7665. -dlopen_self_static=$enable_dlopen_self_static
  7666. + solaris*)
  7667. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  7668. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  7669. + case $cc_basename in
  7670. + f77* | f90* | f95*)
  7671. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';;
  7672. + *)
  7673. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';;
  7674. + esac
  7675. + ;;
  7676. -# Compiler flag to prevent dynamic linking.
  7677. -link_static_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_static, $1)
  7678. + sunos4*)
  7679. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
  7680. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
  7681. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  7682. + ;;
  7683. -# Compiler flag to turn off builtin functions.
  7684. -no_builtin_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)
  7685. + sysv4 | sysv4.2uw2* | sysv4.3*)
  7686. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  7687. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  7688. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  7689. + ;;
  7690. -# Compiler flag to allow reflexive dlopens.
  7691. -export_dynamic_flag_spec=$lt_[]_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)
  7692. + sysv4*MP*)
  7693. + if test -d /usr/nec ;then
  7694. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic'
  7695. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  7696. + fi
  7697. + ;;
  7698. -# Compiler flag to generate shared objects directly from archives.
  7699. -whole_archive_flag_spec=$lt_[]_LT_AC_TAGVAR(whole_archive_flag_spec, $1)
  7700. + sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  7701. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  7702. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  7703. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  7704. + ;;
  7705. -# Compiler flag to generate thread-safe objects.
  7706. -thread_safe_flag_spec=$lt_[]_LT_AC_TAGVAR(thread_safe_flag_spec, $1)
  7707. + unicos*)
  7708. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  7709. + _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
  7710. + ;;
  7711. -# Library versioning type.
  7712. -version_type=$version_type
  7713. + uts4*)
  7714. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  7715. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  7716. + ;;
  7717. -# Format of library name prefix.
  7718. -libname_spec=$lt_libname_spec
  7719. + *)
  7720. + _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
  7721. + ;;
  7722. + esac
  7723. + fi
  7724. +])
  7725. +case $host_os in
  7726. + # For platforms which do not support PIC, -DPIC is meaningless:
  7727. + *djgpp*)
  7728. + _LT_TAGVAR(lt_prog_compiler_pic, $1)=
  7729. + ;;
  7730. + *)
  7731. + _LT_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])"
  7732. + ;;
  7733. +esac
  7734. +AC_MSG_RESULT([$_LT_TAGVAR(lt_prog_compiler_pic, $1)])
  7735. +_LT_TAGDECL([wl], [lt_prog_compiler_wl], [1],
  7736. + [How to pass a linker flag through the compiler])
  7737. -# List of archive names. First name is the real one, the rest are links.
  7738. -# The last name is the one that the linker finds with -lNAME.
  7739. -library_names_spec=$lt_library_names_spec
  7740. +#
  7741. +# Check to make sure the PIC flag actually works.
  7742. +#
  7743. +if test -n "$_LT_TAGVAR(lt_prog_compiler_pic, $1)"; then
  7744. + _LT_COMPILER_OPTION([if $compiler PIC flag $_LT_TAGVAR(lt_prog_compiler_pic, $1) works],
  7745. + [_LT_TAGVAR(lt_cv_prog_compiler_pic_works, $1)],
  7746. + [$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])], [],
  7747. + [case $_LT_TAGVAR(lt_prog_compiler_pic, $1) in
  7748. + "" | " "*) ;;
  7749. + *) _LT_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_TAGVAR(lt_prog_compiler_pic, $1)" ;;
  7750. + esac],
  7751. + [_LT_TAGVAR(lt_prog_compiler_pic, $1)=
  7752. + _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no])
  7753. +fi
  7754. +_LT_TAGDECL([pic_flag], [lt_prog_compiler_pic], [1],
  7755. + [Additional compiler flags for building library objects])
  7756. -# The coded name of the library, if different from the real name.
  7757. -soname_spec=$lt_soname_spec
  7758. +#
  7759. +# Check to make sure the static flag actually works.
  7760. +#
  7761. +wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_TAGVAR(lt_prog_compiler_static, $1)\"
  7762. +_LT_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works],
  7763. + _LT_TAGVAR(lt_cv_prog_compiler_static_works, $1),
  7764. + $lt_tmp_static_flag,
  7765. + [],
  7766. + [_LT_TAGVAR(lt_prog_compiler_static, $1)=])
  7767. +_LT_TAGDECL([link_static_flag], [lt_prog_compiler_static], [1],
  7768. + [Compiler flag to prevent dynamic linking])
  7769. +])# _LT_COMPILER_PIC
  7770. -# Commands used to build and install an old-style archive.
  7771. -RANLIB=$lt_RANLIB
  7772. -old_archive_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_cmds, $1)
  7773. -old_postinstall_cmds=$lt_old_postinstall_cmds
  7774. -old_postuninstall_cmds=$lt_old_postuninstall_cmds
  7775. -# Create an old-style archive from a shared archive.
  7776. -old_archive_from_new_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_from_new_cmds, $1)
  7777. +# _LT_LINKER_SHLIBS([TAGNAME])
  7778. +# ----------------------------
  7779. +# See if the linker supports building shared libraries.
  7780. +m4_defun([_LT_LINKER_SHLIBS],
  7781. +[AC_REQUIRE([LT_PATH_LD])dnl
  7782. +AC_REQUIRE([LT_PATH_NM])dnl
  7783. +m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  7784. +m4_require([_LT_DECL_EGREP])dnl
  7785. +m4_require([_LT_DECL_SED])dnl
  7786. +m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
  7787. +m4_require([_LT_TAG_COMPILER])dnl
  7788. +AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
  7789. +m4_if([$1], [CXX], [
  7790. + _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  7791. + case $host_os in
  7792. + aix[[4-9]]*)
  7793. + # If we're using GNU nm, then we don't want the "-C" option.
  7794. + # -C means demangle to AIX nm, but means don't demangle with GNU nm
  7795. + if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  7796. + _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'
  7797. + else
  7798. + _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'
  7799. + fi
  7800. + ;;
  7801. + pw32*)
  7802. + _LT_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
  7803. + ;;
  7804. + cygwin* | mingw* | cegcc*)
  7805. + _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'
  7806. + ;;
  7807. + linux* | k*bsd*-gnu)
  7808. + _LT_TAGVAR(link_all_deplibs, $1)=no
  7809. + ;;
  7810. + *)
  7811. + _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  7812. + ;;
  7813. + esac
  7814. + _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
  7815. +], [
  7816. + runpath_var=
  7817. + _LT_TAGVAR(allow_undefined_flag, $1)=
  7818. + _LT_TAGVAR(always_export_symbols, $1)=no
  7819. + _LT_TAGVAR(archive_cmds, $1)=
  7820. + _LT_TAGVAR(archive_expsym_cmds, $1)=
  7821. + _LT_TAGVAR(compiler_needs_object, $1)=no
  7822. + _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
  7823. + _LT_TAGVAR(export_dynamic_flag_spec, $1)=
  7824. + _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  7825. + _LT_TAGVAR(hardcode_automatic, $1)=no
  7826. + _LT_TAGVAR(hardcode_direct, $1)=no
  7827. + _LT_TAGVAR(hardcode_direct_absolute, $1)=no
  7828. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
  7829. + _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
  7830. + _LT_TAGVAR(hardcode_libdir_separator, $1)=
  7831. + _LT_TAGVAR(hardcode_minus_L, $1)=no
  7832. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
  7833. + _LT_TAGVAR(inherit_rpath, $1)=no
  7834. + _LT_TAGVAR(link_all_deplibs, $1)=unknown
  7835. + _LT_TAGVAR(module_cmds, $1)=
  7836. + _LT_TAGVAR(module_expsym_cmds, $1)=
  7837. + _LT_TAGVAR(old_archive_from_new_cmds, $1)=
  7838. + _LT_TAGVAR(old_archive_from_expsyms_cmds, $1)=
  7839. + _LT_TAGVAR(thread_safe_flag_spec, $1)=
  7840. + _LT_TAGVAR(whole_archive_flag_spec, $1)=
  7841. + # include_expsyms should be a list of space-separated symbols to be *always*
  7842. + # included in the symbol list
  7843. + _LT_TAGVAR(include_expsyms, $1)=
  7844. + # exclude_expsyms can be an extended regexp of symbols to exclude
  7845. + # it will be wrapped by ` (' and `)$', so one must not match beginning or
  7846. + # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  7847. + # as well as any symbol that contains `d'.
  7848. + _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
  7849. + # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  7850. + # platforms (ab)use it in PIC code, but their linkers get confused if
  7851. + # the symbol is explicitly referenced. Since portable code cannot
  7852. + # rely on this symbol name, it's probably fine to never include it in
  7853. + # preloaded symbol tables.
  7854. + # Exclude shared library initialization/finalization symbols.
  7855. +dnl Note also adjust exclude_expsyms for C++ above.
  7856. + extract_expsyms_cmds=
  7857. -# Create a temporary old-style archive to link instead of a shared archive.
  7858. -old_archive_from_expsyms_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1)
  7859. + case $host_os in
  7860. + cygwin* | mingw* | pw32* | cegcc*)
  7861. + # FIXME: the MSVC++ port hasn't been tested in a loooong time
  7862. + # When not using gcc, we currently assume that we are using
  7863. + # Microsoft Visual C++.
  7864. + if test "$GCC" != yes; then
  7865. + with_gnu_ld=no
  7866. + fi
  7867. + ;;
  7868. + interix*)
  7869. + # we just hope/assume this is gcc and not c89 (= MSVC++)
  7870. + with_gnu_ld=yes
  7871. + ;;
  7872. + openbsd*)
  7873. + with_gnu_ld=no
  7874. + ;;
  7875. + linux* | k*bsd*-gnu)
  7876. + _LT_TAGVAR(link_all_deplibs, $1)=no
  7877. + ;;
  7878. + esac
  7879. -# Commands used to build and install a shared archive.
  7880. -archive_cmds=$lt_[]_LT_AC_TAGVAR(archive_cmds, $1)
  7881. -archive_expsym_cmds=$lt_[]_LT_AC_TAGVAR(archive_expsym_cmds, $1)
  7882. -postinstall_cmds=$lt_postinstall_cmds
  7883. -postuninstall_cmds=$lt_postuninstall_cmds
  7884. + _LT_TAGVAR(ld_shlibs, $1)=yes
  7885. + if test "$with_gnu_ld" = yes; then
  7886. + # If archive_cmds runs LD, not CC, wlarc should be empty
  7887. + wlarc='${wl}'
  7888. -# Commands used to build a loadable module (assumed same as above if empty)
  7889. -module_cmds=$lt_[]_LT_AC_TAGVAR(module_cmds, $1)
  7890. -module_expsym_cmds=$lt_[]_LT_AC_TAGVAR(module_expsym_cmds, $1)
  7891. + # Set some defaults for GNU ld with shared library support. These
  7892. + # are reset later if shared libraries are not supported. Putting them
  7893. + # here allows them to be overridden if necessary.
  7894. + runpath_var=LD_RUN_PATH
  7895. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  7896. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  7897. + # ancient GNU ld didn't support --whole-archive et. al.
  7898. + if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  7899. + _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  7900. + else
  7901. + _LT_TAGVAR(whole_archive_flag_spec, $1)=
  7902. + fi
  7903. + supports_anon_versioning=no
  7904. + case `$LD -v 2>&1` in
  7905. + *GNU\ gold*) supports_anon_versioning=yes ;;
  7906. + *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11
  7907. + *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  7908. + *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  7909. + *\ 2.11.*) ;; # other 2.11 versions
  7910. + *) supports_anon_versioning=yes ;;
  7911. + esac
  7912. -# Commands to strip libraries.
  7913. -old_striplib=$lt_old_striplib
  7914. -striplib=$lt_striplib
  7915. + # See if GNU ld supports shared libraries.
  7916. + case $host_os in
  7917. + aix[[3-9]]*)
  7918. + # On AIX/PPC, the GNU linker is very broken
  7919. + if test "$host_cpu" != ia64; then
  7920. + _LT_TAGVAR(ld_shlibs, $1)=no
  7921. + cat <<_LT_EOF 1>&2
  7922. -# Dependencies to place before the objects being linked to create a
  7923. -# shared library.
  7924. -predep_objects=\`echo $lt_[]_LT_AC_TAGVAR(predep_objects, $1) | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
  7925. +*** Warning: the GNU linker, at least up to release 2.9.1, is reported
  7926. +*** to be unable to reliably create shared libraries on AIX.
  7927. +*** Therefore, libtool is disabling shared libraries support. If you
  7928. +*** really care for shared libraries, you may want to modify your PATH
  7929. +*** so that a non-GNU linker is found, and then restart.
  7930. -# Dependencies to place after the objects being linked to create a
  7931. -# shared library.
  7932. -postdep_objects=\`echo $lt_[]_LT_AC_TAGVAR(postdep_objects, $1) | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
  7933. +_LT_EOF
  7934. + fi
  7935. + ;;
  7936. -# Dependencies to place before the objects being linked to create a
  7937. -# shared library.
  7938. -predeps=$lt_[]_LT_AC_TAGVAR(predeps, $1)
  7939. + amigaos*)
  7940. + case $host_cpu in
  7941. + powerpc)
  7942. + # see comment about AmigaOS4 .so support
  7943. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7944. + _LT_TAGVAR(archive_expsym_cmds, $1)=''
  7945. + ;;
  7946. + m68k)
  7947. + _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)'
  7948. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  7949. + _LT_TAGVAR(hardcode_minus_L, $1)=yes
  7950. + ;;
  7951. + esac
  7952. + ;;
  7953. -# Dependencies to place after the objects being linked to create a
  7954. -# shared library.
  7955. -postdeps=$lt_[]_LT_AC_TAGVAR(postdeps, $1)
  7956. + beos*)
  7957. + if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7958. + _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  7959. + # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  7960. + # support --undefined. This deserves some investigation. FIXME
  7961. + _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7962. + else
  7963. + _LT_TAGVAR(ld_shlibs, $1)=no
  7964. + fi
  7965. + ;;
  7966. -# The library search path used internally by the compiler when linking
  7967. -# a shared library.
  7968. -compiler_lib_search_path=\`echo $lt_[]_LT_AC_TAGVAR(compiler_lib_search_path, $1) | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
  7969. + cygwin* | mingw* | pw32* | cegcc*)
  7970. + # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
  7971. + # as there is no search path for DLLs.
  7972. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  7973. + _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  7974. + _LT_TAGVAR(always_export_symbols, $1)=no
  7975. + _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
  7976. + _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'
  7977. -# Method to check whether dependent libraries are shared objects.
  7978. -deplibs_check_method=$lt_deplibs_check_method
  7979. + if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  7980. + _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'
  7981. + # If the export-symbols file already is a .def file (1st line
  7982. + # is EXPORTS), use it as is; otherwise, prepend...
  7983. + _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  7984. + cp $export_symbols $output_objdir/$soname.def;
  7985. + else
  7986. + echo EXPORTS > $output_objdir/$soname.def;
  7987. + cat $export_symbols >> $output_objdir/$soname.def;
  7988. + fi~
  7989. + $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  7990. + else
  7991. + _LT_TAGVAR(ld_shlibs, $1)=no
  7992. + fi
  7993. + ;;
  7994. -# Command to use when deplibs_check_method == file_magic.
  7995. -file_magic_cmd=$lt_file_magic_cmd
  7996. + interix[[3-9]]*)
  7997. + _LT_TAGVAR(hardcode_direct, $1)=no
  7998. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  7999. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  8000. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  8001. + # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  8002. + # Instead, shared libraries are loaded at an image base (0x10000000 by
  8003. + # default) and relocated if they conflict, which is a slow very memory
  8004. + # consuming and fragmenting process. To avoid this, we pick a random,
  8005. + # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  8006. + # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  8007. + _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'
  8008. + _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'
  8009. + ;;
  8010. -# Flag that allows shared libraries with undefined symbols to be built.
  8011. -allow_undefined_flag=$lt_[]_LT_AC_TAGVAR(allow_undefined_flag, $1)
  8012. + gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
  8013. + tmp_diet=no
  8014. + if test "$host_os" = linux-dietlibc; then
  8015. + case $cc_basename in
  8016. + diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  8017. + esac
  8018. + fi
  8019. + if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  8020. + && test "$tmp_diet" = no
  8021. + then
  8022. + tmp_addflag=
  8023. + tmp_sharedflag='-shared'
  8024. + case $cc_basename,$host_cpu in
  8025. + pgcc*) # Portland Group C compiler
  8026. + _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'
  8027. + tmp_addflag=' $pic_flag'
  8028. + ;;
  8029. + pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
  8030. + _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'
  8031. + tmp_addflag=' $pic_flag -Mnomain' ;;
  8032. + ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  8033. + tmp_addflag=' -i_dynamic' ;;
  8034. + efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  8035. + tmp_addflag=' -i_dynamic -nofor_main' ;;
  8036. + ifc* | ifort*) # Intel Fortran compiler
  8037. + tmp_addflag=' -nofor_main' ;;
  8038. + lf95*) # Lahey Fortran 8.1
  8039. + _LT_TAGVAR(whole_archive_flag_spec, $1)=
  8040. + tmp_sharedflag='--shared' ;;
  8041. + xl[[cC]]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  8042. + tmp_sharedflag='-qmkshrobj'
  8043. + tmp_addflag= ;;
  8044. + esac
  8045. + case `$CC -V 2>&1 | sed 5q` in
  8046. + *Sun\ C*) # Sun C 5.9
  8047. + _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'
  8048. + _LT_TAGVAR(compiler_needs_object, $1)=yes
  8049. + tmp_sharedflag='-G' ;;
  8050. + *Sun\ F*) # Sun Fortran 8.3
  8051. + tmp_sharedflag='-G' ;;
  8052. + esac
  8053. + _LT_TAGVAR(archive_cmds, $1)='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8054. -# Flag that forces no undefined symbols.
  8055. -no_undefined_flag=$lt_[]_LT_AC_TAGVAR(no_undefined_flag, $1)
  8056. + if test "x$supports_anon_versioning" = xyes; then
  8057. + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
  8058. + cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  8059. + echo "local: *; };" >> $output_objdir/$libname.ver~
  8060. + $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  8061. + fi
  8062. -# Commands used to finish a libtool library installation in a directory.
  8063. -finish_cmds=$lt_finish_cmds
  8064. + case $cc_basename in
  8065. + xlf*)
  8066. + # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  8067. + _LT_TAGVAR(whole_archive_flag_spec, $1)='--whole-archive$convenience --no-whole-archive'
  8068. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
  8069. + _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='-rpath $libdir'
  8070. + _LT_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
  8071. + if test "x$supports_anon_versioning" = xyes; then
  8072. + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
  8073. + cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  8074. + echo "local: *; };" >> $output_objdir/$libname.ver~
  8075. + $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  8076. + fi
  8077. + ;;
  8078. + esac
  8079. + else
  8080. + _LT_TAGVAR(ld_shlibs, $1)=no
  8081. + fi
  8082. + ;;
  8083. -# Same as above, but a single script fragment to be evaled but not shown.
  8084. -finish_eval=$lt_finish_eval
  8085. + netbsd* | netbsdelf*-gnu)
  8086. + if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8087. + _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  8088. + wlarc=
  8089. + else
  8090. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8091. + _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'
  8092. + fi
  8093. + ;;
  8094. -# Take the output of nm and produce a listing of raw symbols and C names.
  8095. -global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  8096. + solaris*)
  8097. + if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  8098. + _LT_TAGVAR(ld_shlibs, $1)=no
  8099. + cat <<_LT_EOF 1>&2
  8100. -# Transform the output of nm in a proper C declaration
  8101. -global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  8102. +*** Warning: The releases 2.8.* of the GNU linker cannot reliably
  8103. +*** create shared libraries on Solaris systems. Therefore, libtool
  8104. +*** is disabling shared libraries support. We urge you to upgrade GNU
  8105. +*** binutils to release 2.9.1 or newer. Another option is to modify
  8106. +*** your PATH or compiler configuration so that the native linker is
  8107. +*** used, and then restart.
  8108. -# Transform the output of nm in a C name address pair
  8109. -global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  8110. +_LT_EOF
  8111. + elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8112. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8113. + _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'
  8114. + else
  8115. + _LT_TAGVAR(ld_shlibs, $1)=no
  8116. + fi
  8117. + ;;
  8118. -# This is the shared library runtime path variable.
  8119. -runpath_var=$runpath_var
  8120. + sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  8121. + case `$LD -v 2>&1` in
  8122. + *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*)
  8123. + _LT_TAGVAR(ld_shlibs, $1)=no
  8124. + cat <<_LT_EOF 1>&2
  8125. -# This is the shared library path variable.
  8126. -shlibpath_var=$shlibpath_var
  8127. +*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  8128. +*** reliably create shared libraries on SCO systems. Therefore, libtool
  8129. +*** is disabling shared libraries support. We urge you to upgrade GNU
  8130. +*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  8131. +*** your PATH or compiler configuration so that the native linker is
  8132. +*** used, and then restart.
  8133. -# Is shlibpath searched before the hard-coded library search path?
  8134. -shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  8135. +_LT_EOF
  8136. + ;;
  8137. + *)
  8138. + # For security reasons, it is highly recommended that you always
  8139. + # use absolute paths for naming shared libraries, and exclude the
  8140. + # DT_RUNPATH tag from executables and libraries. But doing so
  8141. + # requires that you compile everything twice, which is a pain.
  8142. + if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8143. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  8144. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8145. + _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'
  8146. + else
  8147. + _LT_TAGVAR(ld_shlibs, $1)=no
  8148. + fi
  8149. + ;;
  8150. + esac
  8151. + ;;
  8152. -# How to hardcode a shared library path into an executable.
  8153. -hardcode_action=$_LT_AC_TAGVAR(hardcode_action, $1)
  8154. + sunos4*)
  8155. + _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8156. + wlarc=
  8157. + _LT_TAGVAR(hardcode_direct, $1)=yes
  8158. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  8159. + ;;
  8160. -# Whether we should hardcode library paths into libraries.
  8161. -hardcode_into_libs=$hardcode_into_libs
  8162. + *)
  8163. + if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8164. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8165. + _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'
  8166. + else
  8167. + _LT_TAGVAR(ld_shlibs, $1)=no
  8168. + fi
  8169. + ;;
  8170. + esac
  8171. -# Flag to hardcode \$libdir into a binary during linking.
  8172. -# This must work even if \$libdir does not exist.
  8173. -hardcode_libdir_flag_spec=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)
  8174. + if test "$_LT_TAGVAR(ld_shlibs, $1)" = no; then
  8175. + runpath_var=
  8176. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
  8177. + _LT_TAGVAR(export_dynamic_flag_spec, $1)=
  8178. + _LT_TAGVAR(whole_archive_flag_spec, $1)=
  8179. + fi
  8180. + else
  8181. + # PORTME fill in a description of your system's linker (not GNU ld)
  8182. + case $host_os in
  8183. + aix3*)
  8184. + _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  8185. + _LT_TAGVAR(always_export_symbols, $1)=yes
  8186. + _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'
  8187. + # Note: this linker hardcodes the directories in LIBPATH if there
  8188. + # are no directories specified by -L.
  8189. + _LT_TAGVAR(hardcode_minus_L, $1)=yes
  8190. + if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  8191. + # Neither direct hardcoding nor static linking is supported with a
  8192. + # broken collect2.
  8193. + _LT_TAGVAR(hardcode_direct, $1)=unsupported
  8194. + fi
  8195. + ;;
  8196. -# If ld is used when linking, flag to hardcode \$libdir into
  8197. -# a binary during linking. This must work even if \$libdir does
  8198. -# not exist.
  8199. -hardcode_libdir_flag_spec_ld=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)
  8200. + aix[[4-9]]*)
  8201. + if test "$host_cpu" = ia64; then
  8202. + # On IA64, the linker does run time linking by default, so we don't
  8203. + # have to do anything special.
  8204. + aix_use_runtimelinking=no
  8205. + exp_sym_flag='-Bexport'
  8206. + no_entry_flag=""
  8207. + else
  8208. + # If we're using GNU nm, then we don't want the "-C" option.
  8209. + # -C means demangle to AIX nm, but means don't demangle with GNU nm
  8210. + if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  8211. + _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'
  8212. + else
  8213. + _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'
  8214. + fi
  8215. + aix_use_runtimelinking=no
  8216. -# Whether we need a single -rpath flag with a separated argument.
  8217. -hardcode_libdir_separator=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_separator, $1)
  8218. + # Test if we are trying to use run time linking or normal
  8219. + # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  8220. + # need to do runtime linking.
  8221. + case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
  8222. + for ld_flag in $LDFLAGS; do
  8223. + if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  8224. + aix_use_runtimelinking=yes
  8225. + break
  8226. + fi
  8227. + done
  8228. + ;;
  8229. + esac
  8230. -# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
  8231. -# resulting binary.
  8232. -hardcode_direct=$_LT_AC_TAGVAR(hardcode_direct, $1)
  8233. + exp_sym_flag='-bexport'
  8234. + no_entry_flag='-bnoentry'
  8235. + fi
  8236. -# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  8237. -# resulting binary.
  8238. -hardcode_minus_L=$_LT_AC_TAGVAR(hardcode_minus_L, $1)
  8239. + # When large executables or shared objects are built, AIX ld can
  8240. + # have problems creating the table of contents. If linking a library
  8241. + # or program results in "error TOC overflow" add -mminimal-toc to
  8242. + # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  8243. + # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  8244. -# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
  8245. -# the resulting binary.
  8246. -hardcode_shlibpath_var=$_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)
  8247. + _LT_TAGVAR(archive_cmds, $1)=''
  8248. + _LT_TAGVAR(hardcode_direct, $1)=yes
  8249. + _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
  8250. + _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
  8251. + _LT_TAGVAR(link_all_deplibs, $1)=yes
  8252. + _LT_TAGVAR(file_list_spec, $1)='${wl}-f,'
  8253. -# Set to yes if building a shared library automatically hardcodes DIR into the library
  8254. -# and all subsequent libraries and executables linked against it.
  8255. -hardcode_automatic=$_LT_AC_TAGVAR(hardcode_automatic, $1)
  8256. + if test "$GCC" = yes; then
  8257. + case $host_os in aix4.[[012]]|aix4.[[012]].*)
  8258. + # We only want to do this on AIX 4.2 and lower, the check
  8259. + # below for broken collect2 doesn't work under 4.3+
  8260. + collect2name=`${CC} -print-prog-name=collect2`
  8261. + if test -f "$collect2name" &&
  8262. + strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  8263. + then
  8264. + # We have reworked collect2
  8265. + :
  8266. + else
  8267. + # We have old collect2
  8268. + _LT_TAGVAR(hardcode_direct, $1)=unsupported
  8269. + # It fails to find uninstalled libraries when the uninstalled
  8270. + # path is not listed in the libpath. Setting hardcode_minus_L
  8271. + # to unsupported forces relinking
  8272. + _LT_TAGVAR(hardcode_minus_L, $1)=yes
  8273. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  8274. + _LT_TAGVAR(hardcode_libdir_separator, $1)=
  8275. + fi
  8276. + ;;
  8277. + esac
  8278. + shared_flag='-shared'
  8279. + if test "$aix_use_runtimelinking" = yes; then
  8280. + shared_flag="$shared_flag "'${wl}-G'
  8281. + fi
  8282. + _LT_TAGVAR(link_all_deplibs, $1)=no
  8283. + else
  8284. + # not using gcc
  8285. + if test "$host_cpu" = ia64; then
  8286. + # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  8287. + # chokes on -Wl,-G. The following line is correct:
  8288. + shared_flag='-G'
  8289. + else
  8290. + if test "$aix_use_runtimelinking" = yes; then
  8291. + shared_flag='${wl}-G'
  8292. + else
  8293. + shared_flag='${wl}-bM:SRE'
  8294. + fi
  8295. + fi
  8296. + fi
  8297. -# Variables whose values should be saved in libtool wrapper scripts and
  8298. -# restored at relink time.
  8299. -variables_saved_for_relink="$variables_saved_for_relink"
  8300. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-bexpall'
  8301. + # It seems that -bexpall does not export symbols beginning with
  8302. + # underscore (_), so it is better to generate a list of symbols to export.
  8303. + _LT_TAGVAR(always_export_symbols, $1)=yes
  8304. + if test "$aix_use_runtimelinking" = yes; then
  8305. + # Warning - without using the other runtime loading flags (-brtl),
  8306. + # -berok will link without error, but may produce a broken library.
  8307. + _LT_TAGVAR(allow_undefined_flag, $1)='-berok'
  8308. + # Determine the default libpath from the value encoded in an
  8309. + # empty executable.
  8310. + _LT_SYS_MODULE_PATH_AIX
  8311. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
  8312. + _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"
  8313. + else
  8314. + if test "$host_cpu" = ia64; then
  8315. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
  8316. + _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
  8317. + _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"
  8318. + else
  8319. + # Determine the default libpath from the value encoded in an
  8320. + # empty executable.
  8321. + _LT_SYS_MODULE_PATH_AIX
  8322. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
  8323. + # Warning - without using the other run time loading flags,
  8324. + # -berok will link without error, but may produce a broken library.
  8325. + _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
  8326. + _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
  8327. + # Exported symbols can be pulled into shared objects from archives
  8328. + _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
  8329. + _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
  8330. + # This is similar to how AIX traditionally builds its shared libraries.
  8331. + _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'
  8332. + fi
  8333. + fi
  8334. + ;;
  8335. -# Whether libtool must link a program against all its dependency libraries.
  8336. -link_all_deplibs=$_LT_AC_TAGVAR(link_all_deplibs, $1)
  8337. + amigaos*)
  8338. + case $host_cpu in
  8339. + powerpc)
  8340. + # see comment about AmigaOS4 .so support
  8341. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8342. + _LT_TAGVAR(archive_expsym_cmds, $1)=''
  8343. + ;;
  8344. + m68k)
  8345. + _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)'
  8346. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  8347. + _LT_TAGVAR(hardcode_minus_L, $1)=yes
  8348. + ;;
  8349. + esac
  8350. + ;;
  8351. -# Compile-time system search path for libraries
  8352. -sys_lib_search_path_spec=\`echo $lt_sys_lib_search_path_spec | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
  8353. + bsdi[[45]]*)
  8354. + _LT_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic
  8355. + ;;
  8356. -# Run-time system search path for libraries
  8357. -sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  8358. + cygwin* | mingw* | pw32* | cegcc*)
  8359. + # When not using gcc, we currently assume that we are using
  8360. + # Microsoft Visual C++.
  8361. + # hardcode_libdir_flag_spec is actually meaningless, as there is
  8362. + # no search path for DLLs.
  8363. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
  8364. + _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  8365. + # Tell ltmain to make .lib files, not .a files.
  8366. + libext=lib
  8367. + # Tell ltmain to make .dll files, not .so files.
  8368. + shrext_cmds=".dll"
  8369. + # FIXME: Setting linknames here is a bad hack.
  8370. + _LT_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
  8371. + # The linker will automatically build a .lib file if we build a DLL.
  8372. + _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
  8373. + # FIXME: Should let the user specify the lib program.
  8374. + _LT_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs'
  8375. + _LT_TAGVAR(fix_srcfile_path, $1)='`cygpath -w "$srcfile"`'
  8376. + _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
  8377. + ;;
  8378. -# Fix the shell variable \$srcfile for the compiler.
  8379. -fix_srcfile_path="$_LT_AC_TAGVAR(fix_srcfile_path, $1)"
  8380. + darwin* | rhapsody*)
  8381. + _LT_DARWIN_LINKER_FEATURES($1)
  8382. + ;;
  8383. -# Set to yes if exported symbols are required.
  8384. -always_export_symbols=$_LT_AC_TAGVAR(always_export_symbols, $1)
  8385. + dgux*)
  8386. + _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8387. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  8388. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  8389. + ;;
  8390. -# The commands to list exported symbols.
  8391. -export_symbols_cmds=$lt_[]_LT_AC_TAGVAR(export_symbols_cmds, $1)
  8392. + freebsd1*)
  8393. + _LT_TAGVAR(ld_shlibs, $1)=no
  8394. + ;;
  8395. -# The commands to extract the exported symbol list from a shared archive.
  8396. -extract_expsyms_cmds=$lt_extract_expsyms_cmds
  8397. + # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  8398. + # support. Future versions do this automatically, but an explicit c++rt0.o
  8399. + # does not break anything, and helps significantly (at the cost of a little
  8400. + # extra space).
  8401. + freebsd2.2*)
  8402. + _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  8403. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  8404. + _LT_TAGVAR(hardcode_direct, $1)=yes
  8405. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  8406. + ;;
  8407. -# Symbols that should not be listed in the preloaded symbols.
  8408. -exclude_expsyms=$lt_[]_LT_AC_TAGVAR(exclude_expsyms, $1)
  8409. + # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  8410. + freebsd2*)
  8411. + _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8412. + _LT_TAGVAR(hardcode_direct, $1)=yes
  8413. + _LT_TAGVAR(hardcode_minus_L, $1)=yes
  8414. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  8415. + ;;
  8416. -# Symbols that must always be exported.
  8417. -include_expsyms=$lt_[]_LT_AC_TAGVAR(include_expsyms, $1)
  8418. + # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  8419. + freebsd* | dragonfly*)
  8420. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  8421. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  8422. + _LT_TAGVAR(hardcode_direct, $1)=yes
  8423. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  8424. + ;;
  8425. -ifelse([$1],[],
  8426. -[# ### END LIBTOOL CONFIG],
  8427. -[# ### END LIBTOOL TAG CONFIG: $tagname])
  8428. + hpux9*)
  8429. + if test "$GCC" = yes; then
  8430. + _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'
  8431. + else
  8432. + _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'
  8433. + fi
  8434. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  8435. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  8436. + _LT_TAGVAR(hardcode_direct, $1)=yes
  8437. -__EOF__
  8438. + # hardcode_minus_L: Not really in the search PATH,
  8439. + # but as the default location of the library.
  8440. + _LT_TAGVAR(hardcode_minus_L, $1)=yes
  8441. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  8442. + ;;
  8443. -ifelse([$1],[], [
  8444. - case $host_os in
  8445. - aix3*)
  8446. - cat <<\EOF >> "$cfgfile"
  8447. + hpux10*)
  8448. + if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  8449. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8450. + else
  8451. + _LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  8452. + fi
  8453. + if test "$with_gnu_ld" = no; then
  8454. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  8455. + _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
  8456. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  8457. + _LT_TAGVAR(hardcode_direct, $1)=yes
  8458. + _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
  8459. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  8460. + # hardcode_minus_L: Not really in the search PATH,
  8461. + # but as the default location of the library.
  8462. + _LT_TAGVAR(hardcode_minus_L, $1)=yes
  8463. + fi
  8464. + ;;
  8465. -# AIX sometimes has problems with the GCC collect2 program. For some
  8466. -# reason, if we set the COLLECT_NAMES environment variable, the problems
  8467. -# vanish in a puff of smoke.
  8468. -if test "X${COLLECT_NAMES+set}" != Xset; then
  8469. - COLLECT_NAMES=
  8470. - export COLLECT_NAMES
  8471. -fi
  8472. -EOF
  8473. - ;;
  8474. - esac
  8475. + hpux11*)
  8476. + if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  8477. + case $host_cpu in
  8478. + hppa*64*)
  8479. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8480. + ;;
  8481. + ia64*)
  8482. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8483. + ;;
  8484. + *)
  8485. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8486. + ;;
  8487. + esac
  8488. + else
  8489. + case $host_cpu in
  8490. + hppa*64*)
  8491. + _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8492. + ;;
  8493. + ia64*)
  8494. + _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8495. + ;;
  8496. + *)
  8497. + _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8498. + ;;
  8499. + esac
  8500. + fi
  8501. + if test "$with_gnu_ld" = no; then
  8502. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  8503. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  8504. - # We use sed instead of cat because bash on DJGPP gets confused if
  8505. - # if finds mixed CR/LF and LF-only lines. Since sed operates in
  8506. - # text mode, it properly converts lines to CR/LF. This bash problem
  8507. - # is reportedly fixed, but why not run on old versions too?
  8508. - sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
  8509. + case $host_cpu in
  8510. + hppa*64*|ia64*)
  8511. + _LT_TAGVAR(hardcode_direct, $1)=no
  8512. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  8513. + ;;
  8514. + *)
  8515. + _LT_TAGVAR(hardcode_direct, $1)=yes
  8516. + _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
  8517. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  8518. - mv -f "$cfgfile" "$ofile" || \
  8519. - (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  8520. - chmod +x "$ofile"
  8521. -])
  8522. -else
  8523. - # If there is no Makefile yet, we rely on a make rule to execute
  8524. - # `config.status --recheck' to rerun these tests and create the
  8525. - # libtool script then.
  8526. - ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  8527. - if test -f "$ltmain_in"; then
  8528. - test -f Makefile && make "$ltmain"
  8529. - fi
  8530. -fi
  8531. -])# AC_LIBTOOL_CONFIG
  8532. + # hardcode_minus_L: Not really in the search PATH,
  8533. + # but as the default location of the library.
  8534. + _LT_TAGVAR(hardcode_minus_L, $1)=yes
  8535. + ;;
  8536. + esac
  8537. + fi
  8538. + ;;
  8539. + irix5* | irix6* | nonstopux*)
  8540. + if test "$GCC" = yes; then
  8541. + _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'
  8542. + # Try to use the -exported_symbol ld option, if it does not
  8543. + # work, assume that -exports_file does not work either and
  8544. + # implicitly export all symbols.
  8545. + save_LDFLAGS="$LDFLAGS"
  8546. + LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
  8547. + AC_LINK_IFELSE(int foo(void) {},
  8548. + _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'
  8549. + )
  8550. + LDFLAGS="$save_LDFLAGS"
  8551. + else
  8552. + _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'
  8553. + _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'
  8554. + fi
  8555. + _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
  8556. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  8557. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  8558. + _LT_TAGVAR(inherit_rpath, $1)=yes
  8559. + _LT_TAGVAR(link_all_deplibs, $1)=yes
  8560. + ;;
  8561. -# AC_LIBTOOL_PROG_COMPILER_NO_RTTI([TAGNAME])
  8562. -# -------------------------------------------
  8563. -AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI],
  8564. -[AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
  8565. + netbsd* | netbsdelf*-gnu)
  8566. + if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8567. + _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  8568. + else
  8569. + _LT_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  8570. + fi
  8571. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  8572. + _LT_TAGVAR(hardcode_direct, $1)=yes
  8573. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  8574. + ;;
  8575. -_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
  8576. + newsos6)
  8577. + _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8578. + _LT_TAGVAR(hardcode_direct, $1)=yes
  8579. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  8580. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  8581. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  8582. + ;;
  8583. -if test "$GCC" = yes; then
  8584. - _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
  8585. + *nto* | *qnx*)
  8586. + ;;
  8587. - AC_LIBTOOL_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions],
  8588. - lt_cv_prog_compiler_rtti_exceptions,
  8589. - [-fno-rtti -fno-exceptions], [],
  8590. - [_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"])
  8591. -fi
  8592. -])# AC_LIBTOOL_PROG_COMPILER_NO_RTTI
  8593. + openbsd*)
  8594. + if test -f /usr/libexec/ld.so; then
  8595. + _LT_TAGVAR(hardcode_direct, $1)=yes
  8596. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  8597. + _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
  8598. + if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  8599. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8600. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  8601. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  8602. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  8603. + else
  8604. + case $host_os in
  8605. + openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)
  8606. + _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8607. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  8608. + ;;
  8609. + *)
  8610. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8611. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  8612. + ;;
  8613. + esac
  8614. + fi
  8615. + else
  8616. + _LT_TAGVAR(ld_shlibs, $1)=no
  8617. + fi
  8618. + ;;
  8619. + os2*)
  8620. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  8621. + _LT_TAGVAR(hardcode_minus_L, $1)=yes
  8622. + _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  8623. + _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'
  8624. + _LT_TAGVAR(old_archive_from_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  8625. + ;;
  8626. -# AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
  8627. -# ---------------------------------
  8628. -AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE],
  8629. -[AC_REQUIRE([AC_CANONICAL_HOST])
  8630. -AC_REQUIRE([AC_PROG_NM])
  8631. -AC_REQUIRE([AC_OBJEXT])
  8632. -# Check for command to grab the raw symbol name followed by C symbol from nm.
  8633. -AC_MSG_CHECKING([command to parse $NM output from $compiler object])
  8634. -AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe],
  8635. -[
  8636. -# These are sane defaults that work on at least a few old systems.
  8637. -# [They come from Ultrix. What could be older than Ultrix?!! ;)]
  8638. + osf3*)
  8639. + if test "$GCC" = yes; then
  8640. + _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
  8641. + _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'
  8642. + else
  8643. + _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
  8644. + _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'
  8645. + fi
  8646. + _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
  8647. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  8648. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  8649. + ;;
  8650. -# Character class describing NM global symbol codes.
  8651. -symcode='[[BCDEGRST]]'
  8652. + osf4* | osf5*) # as osf3* with the addition of -msym flag
  8653. + if test "$GCC" = yes; then
  8654. + _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
  8655. + _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'
  8656. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  8657. + else
  8658. + _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
  8659. + _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'
  8660. + _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~
  8661. + $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'
  8662. -# Regexp to match symbols that can be accessed directly from C.
  8663. -sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)'
  8664. + # Both c and cxx compiler support -rpath directly
  8665. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
  8666. + fi
  8667. + _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
  8668. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  8669. + ;;
  8670. -# Transform an extracted symbol line into a proper C declaration
  8671. -lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
  8672. + solaris*)
  8673. + _LT_TAGVAR(no_undefined_flag, $1)=' -z defs'
  8674. + if test "$GCC" = yes; then
  8675. + wlarc='${wl}'
  8676. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8677. + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8678. + $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  8679. + else
  8680. + case `$CC -V 2>&1` in
  8681. + *"Compilers 5.0"*)
  8682. + wlarc=''
  8683. + _LT_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8684. + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8685. + $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  8686. + ;;
  8687. + *)
  8688. + wlarc='${wl}'
  8689. + _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  8690. + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8691. + $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  8692. + ;;
  8693. + esac
  8694. + fi
  8695. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  8696. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  8697. + case $host_os in
  8698. + solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
  8699. + *)
  8700. + # The compiler driver will combine and reorder linker options,
  8701. + # but understands `-z linker_flag'. GCC discards it without `$wl',
  8702. + # but is careful enough not to reorder.
  8703. + # Supported since Solaris 2.6 (maybe 2.5.1?)
  8704. + if test "$GCC" = yes; then
  8705. + _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  8706. + else
  8707. + _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
  8708. + fi
  8709. + ;;
  8710. + esac
  8711. + _LT_TAGVAR(link_all_deplibs, $1)=yes
  8712. + ;;
  8713. -# Transform an extracted symbol line into symbol name and symbol address
  8714. -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'"
  8715. + sunos4*)
  8716. + if test "x$host_vendor" = xsequent; then
  8717. + # Use $CC to link under sequent, because it throws in some extra .o
  8718. + # files that make .init and .fini sections work.
  8719. + _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  8720. + else
  8721. + _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  8722. + fi
  8723. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  8724. + _LT_TAGVAR(hardcode_direct, $1)=yes
  8725. + _LT_TAGVAR(hardcode_minus_L, $1)=yes
  8726. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  8727. + ;;
  8728. -# Define system-specific variables.
  8729. -case $host_os in
  8730. -aix*)
  8731. - symcode='[[BCDT]]'
  8732. - ;;
  8733. -cygwin* | mingw* | pw32*)
  8734. - symcode='[[ABCDGISTW]]'
  8735. - ;;
  8736. -hpux*) # Its linker distinguishes data from code symbols
  8737. - if test "$host_cpu" = ia64; then
  8738. - symcode='[[ABCDEGRST]]'
  8739. - fi
  8740. - lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  8741. - 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'"
  8742. - ;;
  8743. -linux*)
  8744. - if test "$host_cpu" = ia64; then
  8745. - symcode='[[ABCDGIRSTW]]'
  8746. - lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  8747. - 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'"
  8748. - fi
  8749. - ;;
  8750. -irix* | nonstopux*)
  8751. - symcode='[[BCDEGRST]]'
  8752. - ;;
  8753. -osf*)
  8754. - symcode='[[BCDEGQRST]]'
  8755. - ;;
  8756. -solaris*)
  8757. - symcode='[[BDRT]]'
  8758. - ;;
  8759. -sco3.2v5*)
  8760. - symcode='[[DT]]'
  8761. - ;;
  8762. -sysv4.2uw2*)
  8763. - symcode='[[DT]]'
  8764. - ;;
  8765. -sysv5* | sco5v6* | unixware* | OpenUNIX*)
  8766. - symcode='[[ABDT]]'
  8767. - ;;
  8768. -sysv4)
  8769. - symcode='[[DFNSTU]]'
  8770. - ;;
  8771. -esac
  8772. -
  8773. -# Handle CRLF in mingw tool chain
  8774. -opt_cr=
  8775. -case $build_os in
  8776. -mingw*)
  8777. - opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  8778. - ;;
  8779. -esac
  8780. -
  8781. -# If we're using GNU nm, then use its standard symbol codes.
  8782. -case `$NM -V 2>&1` in
  8783. -*GNU* | *'with BFD'*)
  8784. - symcode='[[ABCDGIRSTW]]' ;;
  8785. -esac
  8786. + sysv4)
  8787. + case $host_vendor in
  8788. + sni)
  8789. + _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8790. + _LT_TAGVAR(hardcode_direct, $1)=yes # is this really true???
  8791. + ;;
  8792. + siemens)
  8793. + ## LD is ld it makes a PLAMLIB
  8794. + ## CC just makes a GrossModule.
  8795. + _LT_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  8796. + _LT_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs'
  8797. + _LT_TAGVAR(hardcode_direct, $1)=no
  8798. + ;;
  8799. + motorola)
  8800. + _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8801. + _LT_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie
  8802. + ;;
  8803. + esac
  8804. + runpath_var='LD_RUN_PATH'
  8805. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  8806. + ;;
  8807. -# Try without a prefix undercore, then with it.
  8808. -for ac_symprfx in "" "_"; do
  8809. + sysv4.3*)
  8810. + _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8811. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  8812. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport'
  8813. + ;;
  8814. - # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  8815. - symxfrm="\\1 $ac_symprfx\\2 \\2"
  8816. + sysv4*MP*)
  8817. + if test -d /usr/nec; then
  8818. + _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8819. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  8820. + runpath_var=LD_RUN_PATH
  8821. + hardcode_runpath_var=yes
  8822. + _LT_TAGVAR(ld_shlibs, $1)=yes
  8823. + fi
  8824. + ;;
  8825. - # Write the raw and C identifiers.
  8826. - lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  8827. + sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
  8828. + _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
  8829. + _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  8830. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  8831. + runpath_var='LD_RUN_PATH'
  8832. - # Check to see that the pipe works correctly.
  8833. - pipe_works=no
  8834. + if test "$GCC" = yes; then
  8835. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8836. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8837. + else
  8838. + _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8839. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8840. + fi
  8841. + ;;
  8842. - rm -f conftest*
  8843. - cat > conftest.$ac_ext <<EOF
  8844. -#ifdef __cplusplus
  8845. -extern "C" {
  8846. -#endif
  8847. -char nm_test_var;
  8848. -void nm_test_func(){}
  8849. -#ifdef __cplusplus
  8850. -}
  8851. -#endif
  8852. -int main(){nm_test_var='a';nm_test_func();return(0);}
  8853. -EOF
  8854. + sysv5* | sco3.2v5* | sco5v6*)
  8855. + # Note: We can NOT use -z defs as we might desire, because we do not
  8856. + # link with -lc, and that would cause any symbols used from libc to
  8857. + # always be unresolved, which means just about no library would
  8858. + # ever link correctly. If we're not using GNU ld we use -z text
  8859. + # though, which does catch some bad symbols but isn't as heavy-handed
  8860. + # as -z defs.
  8861. + _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
  8862. + _LT_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
  8863. + _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  8864. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  8865. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R,$libdir'
  8866. + _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
  8867. + _LT_TAGVAR(link_all_deplibs, $1)=yes
  8868. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
  8869. + runpath_var='LD_RUN_PATH'
  8870. - if AC_TRY_EVAL(ac_compile); then
  8871. - # Now try to grab the symbols.
  8872. - nlist=conftest.nm
  8873. - if AC_TRY_EVAL(NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) && test -s "$nlist"; then
  8874. - # Try sorting and uniquifying the output.
  8875. - if sort "$nlist" | uniq > "$nlist"T; then
  8876. - mv -f "$nlist"T "$nlist"
  8877. + if test "$GCC" = yes; then
  8878. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8879. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8880. else
  8881. - rm -f "$nlist"T
  8882. + _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8883. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8884. fi
  8885. + ;;
  8886. - # Make sure that we snagged all the symbols we need.
  8887. - if grep ' nm_test_var$' "$nlist" >/dev/null; then
  8888. - if grep ' nm_test_func$' "$nlist" >/dev/null; then
  8889. - cat <<EOF > conftest.$ac_ext
  8890. -#ifdef __cplusplus
  8891. -extern "C" {
  8892. -#endif
  8893. + uts4*)
  8894. + _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8895. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  8896. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  8897. + ;;
  8898. -EOF
  8899. - # Now generate the symbol file.
  8900. - eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
  8901. + *)
  8902. + _LT_TAGVAR(ld_shlibs, $1)=no
  8903. + ;;
  8904. + esac
  8905. - cat <<EOF >> conftest.$ac_ext
  8906. -#if defined (__STDC__) && __STDC__
  8907. -# define lt_ptr_t void *
  8908. -#else
  8909. -# define lt_ptr_t char *
  8910. -# define const
  8911. -#endif
  8912. + if test x$host_vendor = xsni; then
  8913. + case $host in
  8914. + sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  8915. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Blargedynsym'
  8916. + ;;
  8917. + esac
  8918. + fi
  8919. + fi
  8920. +])
  8921. +AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)])
  8922. +test "$_LT_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
  8923. -/* The mapping between symbol names and symbols. */
  8924. -const struct {
  8925. - const char *name;
  8926. - lt_ptr_t address;
  8927. -}
  8928. -lt_preloaded_symbols[[]] =
  8929. -{
  8930. -EOF
  8931. - $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
  8932. - cat <<\EOF >> conftest.$ac_ext
  8933. - {0, (lt_ptr_t) 0}
  8934. -};
  8935. +_LT_TAGVAR(with_gnu_ld, $1)=$with_gnu_ld
  8936. -#ifdef __cplusplus
  8937. -}
  8938. -#endif
  8939. -EOF
  8940. - # Now try linking the two files.
  8941. - mv conftest.$ac_objext conftstm.$ac_objext
  8942. - lt_save_LIBS="$LIBS"
  8943. - lt_save_CFLAGS="$CFLAGS"
  8944. - LIBS="conftstm.$ac_objext"
  8945. - CFLAGS="$CFLAGS$_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)"
  8946. - if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then
  8947. - pipe_works=yes
  8948. - fi
  8949. - LIBS="$lt_save_LIBS"
  8950. - CFLAGS="$lt_save_CFLAGS"
  8951. - else
  8952. - echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD
  8953. - fi
  8954. +_LT_DECL([], [libext], [0], [Old archive suffix (normally "a")])dnl
  8955. +_LT_DECL([], [shrext_cmds], [1], [Shared library suffix (normally ".so")])dnl
  8956. +_LT_DECL([], [extract_expsyms_cmds], [2],
  8957. + [The commands to extract the exported symbol list from a shared archive])
  8958. +
  8959. +#
  8960. +# Do we need to explicitly link libc?
  8961. +#
  8962. +case "x$_LT_TAGVAR(archive_cmds_need_lc, $1)" in
  8963. +x|xyes)
  8964. + # Assume -lc should be added
  8965. + _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
  8966. +
  8967. + if test "$enable_shared" = yes && test "$GCC" = yes; then
  8968. + case $_LT_TAGVAR(archive_cmds, $1) in
  8969. + *'~'*)
  8970. + # FIXME: we may have to deal with multi-command sequences.
  8971. + ;;
  8972. + '$CC '*)
  8973. + # Test whether the compiler implicitly links with -lc since on some
  8974. + # systems, -lgcc has to come before -lc. If gcc already passes -lc
  8975. + # to ld, don't add -lc before -lgcc.
  8976. + AC_MSG_CHECKING([whether -lc should be explicitly linked in])
  8977. + $RM conftest*
  8978. + echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8979. +
  8980. + if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
  8981. + soname=conftest
  8982. + lib=conftest
  8983. + libobjs=conftest.$ac_objext
  8984. + deplibs=
  8985. + wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1)
  8986. + pic_flag=$_LT_TAGVAR(lt_prog_compiler_pic, $1)
  8987. + compiler_flags=-v
  8988. + linker_flags=-v
  8989. + verstring=
  8990. + output_objdir=.
  8991. + libname=conftest
  8992. + lt_save_allow_undefined_flag=$_LT_TAGVAR(allow_undefined_flag, $1)
  8993. + _LT_TAGVAR(allow_undefined_flag, $1)=
  8994. + if AC_TRY_EVAL(_LT_TAGVAR(archive_cmds, $1) 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1)
  8995. + then
  8996. + _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  8997. + else
  8998. + _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
  8999. + fi
  9000. + _LT_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
  9001. else
  9002. - echo "cannot find nm_test_var in $nlist" >&AS_MESSAGE_LOG_FD
  9003. + cat conftest.err 1>&5
  9004. fi
  9005. - else
  9006. - echo "cannot run $lt_cv_sys_global_symbol_pipe" >&AS_MESSAGE_LOG_FD
  9007. - fi
  9008. - else
  9009. - echo "$progname: failed program was:" >&AS_MESSAGE_LOG_FD
  9010. - cat conftest.$ac_ext >&5
  9011. + $RM conftest*
  9012. + AC_MSG_RESULT([$_LT_TAGVAR(archive_cmds_need_lc, $1)])
  9013. + ;;
  9014. + esac
  9015. fi
  9016. - rm -f conftest* conftst*
  9017. + ;;
  9018. +esac
  9019. - # Do not use the global_symbol_pipe unless it works.
  9020. - if test "$pipe_works" = yes; then
  9021. - break
  9022. - else
  9023. - lt_cv_sys_global_symbol_pipe=
  9024. - fi
  9025. -done
  9026. -])
  9027. -if test -z "$lt_cv_sys_global_symbol_pipe"; then
  9028. - lt_cv_sys_global_symbol_to_cdecl=
  9029. +_LT_TAGDECL([build_libtool_need_lc], [archive_cmds_need_lc], [0],
  9030. + [Whether or not to add -lc for building shared libraries])
  9031. +_LT_TAGDECL([allow_libtool_libs_with_static_runtimes],
  9032. + [enable_shared_with_static_runtimes], [0],
  9033. + [Whether or not to disallow shared libs when runtime libs are static])
  9034. +_LT_TAGDECL([], [export_dynamic_flag_spec], [1],
  9035. + [Compiler flag to allow reflexive dlopens])
  9036. +_LT_TAGDECL([], [whole_archive_flag_spec], [1],
  9037. + [Compiler flag to generate shared objects directly from archives])
  9038. +_LT_TAGDECL([], [compiler_needs_object], [1],
  9039. + [Whether the compiler copes with passing no objects directly])
  9040. +_LT_TAGDECL([], [old_archive_from_new_cmds], [2],
  9041. + [Create an old-style archive from a shared archive])
  9042. +_LT_TAGDECL([], [old_archive_from_expsyms_cmds], [2],
  9043. + [Create a temporary old-style archive to link instead of a shared archive])
  9044. +_LT_TAGDECL([], [archive_cmds], [2], [Commands used to build a shared archive])
  9045. +_LT_TAGDECL([], [archive_expsym_cmds], [2])
  9046. +_LT_TAGDECL([], [module_cmds], [2],
  9047. + [Commands used to build a loadable module if different from building
  9048. + a shared archive.])
  9049. +_LT_TAGDECL([], [module_expsym_cmds], [2])
  9050. +_LT_TAGDECL([], [with_gnu_ld], [1],
  9051. + [Whether we are building with GNU ld or not])
  9052. +_LT_TAGDECL([], [allow_undefined_flag], [1],
  9053. + [Flag that allows shared libraries with undefined symbols to be built])
  9054. +_LT_TAGDECL([], [no_undefined_flag], [1],
  9055. + [Flag that enforces no undefined symbols])
  9056. +_LT_TAGDECL([], [hardcode_libdir_flag_spec], [1],
  9057. + [Flag to hardcode $libdir into a binary during linking.
  9058. + This must work even if $libdir does not exist])
  9059. +_LT_TAGDECL([], [hardcode_libdir_flag_spec_ld], [1],
  9060. + [[If ld is used when linking, flag to hardcode $libdir into a binary
  9061. + during linking. This must work even if $libdir does not exist]])
  9062. +_LT_TAGDECL([], [hardcode_libdir_separator], [1],
  9063. + [Whether we need a single "-rpath" flag with a separated argument])
  9064. +_LT_TAGDECL([], [hardcode_direct], [0],
  9065. + [Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes
  9066. + DIR into the resulting binary])
  9067. +_LT_TAGDECL([], [hardcode_direct_absolute], [0],
  9068. + [Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes
  9069. + DIR into the resulting binary and the resulting library dependency is
  9070. + "absolute", i.e impossible to change by setting ${shlibpath_var} if the
  9071. + library is relocated])
  9072. +_LT_TAGDECL([], [hardcode_minus_L], [0],
  9073. + [Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  9074. + into the resulting binary])
  9075. +_LT_TAGDECL([], [hardcode_shlibpath_var], [0],
  9076. + [Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  9077. + into the resulting binary])
  9078. +_LT_TAGDECL([], [hardcode_automatic], [0],
  9079. + [Set to "yes" if building a shared library automatically hardcodes DIR
  9080. + into the library and all subsequent libraries and executables linked
  9081. + against it])
  9082. +_LT_TAGDECL([], [inherit_rpath], [0],
  9083. + [Set to yes if linker adds runtime paths of dependent libraries
  9084. + to runtime path list])
  9085. +_LT_TAGDECL([], [link_all_deplibs], [0],
  9086. + [Whether libtool must link a program against all its dependency libraries])
  9087. +_LT_TAGDECL([], [fix_srcfile_path], [1],
  9088. + [Fix the shell variable $srcfile for the compiler])
  9089. +_LT_TAGDECL([], [always_export_symbols], [0],
  9090. + [Set to "yes" if exported symbols are required])
  9091. +_LT_TAGDECL([], [export_symbols_cmds], [2],
  9092. + [The commands to list exported symbols])
  9093. +_LT_TAGDECL([], [exclude_expsyms], [1],
  9094. + [Symbols that should not be listed in the preloaded symbols])
  9095. +_LT_TAGDECL([], [include_expsyms], [1],
  9096. + [Symbols that must always be exported])
  9097. +_LT_TAGDECL([], [prelink_cmds], [2],
  9098. + [Commands necessary for linking programs (against libraries) with templates])
  9099. +_LT_TAGDECL([], [file_list_spec], [1],
  9100. + [Specify filename containing input files])
  9101. +dnl FIXME: Not yet implemented
  9102. +dnl _LT_TAGDECL([], [thread_safe_flag_spec], [1],
  9103. +dnl [Compiler flag to generate thread safe objects])
  9104. +])# _LT_LINKER_SHLIBS
  9105. +
  9106. +
  9107. +# _LT_LANG_C_CONFIG([TAG])
  9108. +# ------------------------
  9109. +# Ensure that the configuration variables for a C compiler are suitably
  9110. +# defined. These variables are subsequently used by _LT_CONFIG to write
  9111. +# the compiler configuration to `libtool'.
  9112. +m4_defun([_LT_LANG_C_CONFIG],
  9113. +[m4_require([_LT_DECL_EGREP])dnl
  9114. +lt_save_CC="$CC"
  9115. +AC_LANG_PUSH(C)
  9116. +
  9117. +# Source file extension for C test sources.
  9118. +ac_ext=c
  9119. +
  9120. +# Object file extension for compiled C test sources.
  9121. +objext=o
  9122. +_LT_TAGVAR(objext, $1)=$objext
  9123. +
  9124. +# Code to be used in simple compile tests
  9125. +lt_simple_compile_test_code="int some_variable = 0;"
  9126. +
  9127. +# Code to be used in simple link tests
  9128. +lt_simple_link_test_code='int main(){return(0);}'
  9129. +
  9130. +_LT_TAG_COMPILER
  9131. +# Save the default compiler, since it gets overwritten when the other
  9132. +# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  9133. +compiler_DEFAULT=$CC
  9134. +
  9135. +# save warnings/boilerplate of simple test code
  9136. +_LT_COMPILER_BOILERPLATE
  9137. +_LT_LINKER_BOILERPLATE
  9138. +
  9139. +if test -n "$compiler"; then
  9140. + _LT_COMPILER_NO_RTTI($1)
  9141. + _LT_COMPILER_PIC($1)
  9142. + _LT_COMPILER_C_O($1)
  9143. + _LT_COMPILER_FILE_LOCKS($1)
  9144. + _LT_LINKER_SHLIBS($1)
  9145. + _LT_SYS_DYNAMIC_LINKER($1)
  9146. + _LT_LINKER_HARDCODE_LIBPATH($1)
  9147. + LT_SYS_DLOPEN_SELF
  9148. + _LT_CMD_STRIPLIB
  9149. +
  9150. + # Report which library types will actually be built
  9151. + AC_MSG_CHECKING([if libtool supports shared libraries])
  9152. + AC_MSG_RESULT([$can_build_shared])
  9153. +
  9154. + AC_MSG_CHECKING([whether to build shared libraries])
  9155. + test "$can_build_shared" = "no" && enable_shared=no
  9156. +
  9157. + # On AIX, shared libraries and static libraries use the same namespace, and
  9158. + # are all built from PIC.
  9159. + case $host_os in
  9160. + aix3*)
  9161. + test "$enable_shared" = yes && enable_static=no
  9162. + if test -n "$RANLIB"; then
  9163. + archive_cmds="$archive_cmds~\$RANLIB \$lib"
  9164. + postinstall_cmds='$RANLIB $lib'
  9165. + fi
  9166. + ;;
  9167. +
  9168. + aix[[4-9]]*)
  9169. + if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  9170. + test "$enable_shared" = yes && enable_static=no
  9171. + fi
  9172. + ;;
  9173. + esac
  9174. + AC_MSG_RESULT([$enable_shared])
  9175. +
  9176. + AC_MSG_CHECKING([whether to build static libraries])
  9177. + # Make sure either enable_shared or enable_static is yes.
  9178. + test "$enable_shared" = yes || enable_static=yes
  9179. + AC_MSG_RESULT([$enable_static])
  9180. +
  9181. + _LT_CONFIG($1)
  9182. fi
  9183. -if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  9184. - AC_MSG_RESULT(failed)
  9185. +AC_LANG_POP
  9186. +CC="$lt_save_CC"
  9187. +])# _LT_LANG_C_CONFIG
  9188. +
  9189. +
  9190. +# _LT_PROG_CXX
  9191. +# ------------
  9192. +# Since AC_PROG_CXX is broken, in that it returns g++ if there is no c++
  9193. +# compiler, we have our own version here.
  9194. +m4_defun([_LT_PROG_CXX],
  9195. +[
  9196. +pushdef([AC_MSG_ERROR], [_lt_caught_CXX_error=yes])
  9197. +AC_PROG_CXX
  9198. +if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
  9199. + ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
  9200. + (test "X$CXX" != "Xg++"))) ; then
  9201. + AC_PROG_CXXCPP
  9202. else
  9203. - AC_MSG_RESULT(ok)
  9204. + _lt_caught_CXX_error=yes
  9205. fi
  9206. -]) # AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
  9207. +popdef([AC_MSG_ERROR])
  9208. +])# _LT_PROG_CXX
  9209. +dnl aclocal-1.4 backwards compatibility:
  9210. +dnl AC_DEFUN([_LT_PROG_CXX], [])
  9211. -# AC_LIBTOOL_PROG_COMPILER_PIC([TAGNAME])
  9212. -# ---------------------------------------
  9213. -AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_PIC],
  9214. -[_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)=
  9215. -_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
  9216. -_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=
  9217. -AC_MSG_CHECKING([for $compiler option to produce PIC])
  9218. - ifelse([$1],[CXX],[
  9219. - # C++ specific cases for pic, static, wl, etc.
  9220. - if test "$GXX" = yes; then
  9221. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  9222. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
  9223. +# _LT_LANG_CXX_CONFIG([TAG])
  9224. +# --------------------------
  9225. +# Ensure that the configuration variables for a C++ compiler are suitably
  9226. +# defined. These variables are subsequently used by _LT_CONFIG to write
  9227. +# the compiler configuration to `libtool'.
  9228. +m4_defun([_LT_LANG_CXX_CONFIG],
  9229. +[AC_REQUIRE([_LT_PROG_CXX])dnl
  9230. +m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  9231. +m4_require([_LT_DECL_EGREP])dnl
  9232. +
  9233. +AC_LANG_PUSH(C++)
  9234. +_LT_TAGVAR(archive_cmds_need_lc, $1)=no
  9235. +_LT_TAGVAR(allow_undefined_flag, $1)=
  9236. +_LT_TAGVAR(always_export_symbols, $1)=no
  9237. +_LT_TAGVAR(archive_expsym_cmds, $1)=
  9238. +_LT_TAGVAR(compiler_needs_object, $1)=no
  9239. +_LT_TAGVAR(export_dynamic_flag_spec, $1)=
  9240. +_LT_TAGVAR(hardcode_direct, $1)=no
  9241. +_LT_TAGVAR(hardcode_direct_absolute, $1)=no
  9242. +_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
  9243. +_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
  9244. +_LT_TAGVAR(hardcode_libdir_separator, $1)=
  9245. +_LT_TAGVAR(hardcode_minus_L, $1)=no
  9246. +_LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
  9247. +_LT_TAGVAR(hardcode_automatic, $1)=no
  9248. +_LT_TAGVAR(inherit_rpath, $1)=no
  9249. +_LT_TAGVAR(module_cmds, $1)=
  9250. +_LT_TAGVAR(module_expsym_cmds, $1)=
  9251. +_LT_TAGVAR(link_all_deplibs, $1)=unknown
  9252. +_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
  9253. +_LT_TAGVAR(no_undefined_flag, $1)=
  9254. +_LT_TAGVAR(whole_archive_flag_spec, $1)=
  9255. +_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
  9256. - case $host_os in
  9257. - aix*)
  9258. - # All AIX code is PIC.
  9259. - if test "$host_cpu" = ia64; then
  9260. - # AIX 5 now supports IA64 processor
  9261. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  9262. - fi
  9263. - ;;
  9264. - amigaos*)
  9265. - # FIXME: we need at least 68020 code to build shared libraries, but
  9266. - # adding the `-m68020' flag to GCC prevents building anything better,
  9267. - # like `-m68040'.
  9268. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
  9269. - ;;
  9270. - beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  9271. - # PIC is the default for these OSes.
  9272. - ;;
  9273. - mingw* | os2* | pw32*)
  9274. - # This hack is so that the source file can tell whether it is being
  9275. - # built for inclusion in a dll (and should export symbols for example).
  9276. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
  9277. - ;;
  9278. - darwin* | rhapsody*)
  9279. - # PIC is the default on this platform
  9280. - # Common symbols not allowed in MH_DYLIB files
  9281. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
  9282. - ;;
  9283. - *djgpp*)
  9284. - # DJGPP does not support shared libraries at all
  9285. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
  9286. - ;;
  9287. - interix3*)
  9288. - # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  9289. - # Instead, we relocate shared libraries at runtime.
  9290. - ;;
  9291. - sysv4*MP*)
  9292. - if test -d /usr/nec; then
  9293. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
  9294. - fi
  9295. - ;;
  9296. - hpux*)
  9297. - # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  9298. - # not for PA HP-UX.
  9299. - case $host_cpu in
  9300. - hppa*64*|ia64*)
  9301. - ;;
  9302. - *)
  9303. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  9304. - ;;
  9305. - esac
  9306. - ;;
  9307. - *)
  9308. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  9309. - ;;
  9310. - esac
  9311. +# Source file extension for C++ test sources.
  9312. +ac_ext=cpp
  9313. +
  9314. +# Object file extension for compiled C++ test sources.
  9315. +objext=o
  9316. +_LT_TAGVAR(objext, $1)=$objext
  9317. +
  9318. +# No sense in running all these tests if we already determined that
  9319. +# the CXX compiler isn't working. Some variables (like enable_shared)
  9320. +# are currently assumed to apply to all compilers on this platform,
  9321. +# and will be corrupted by setting them based on a non-working compiler.
  9322. +if test "$_lt_caught_CXX_error" != yes; then
  9323. + # Code to be used in simple compile tests
  9324. + lt_simple_compile_test_code="int some_variable = 0;"
  9325. +
  9326. + # Code to be used in simple link tests
  9327. + lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }'
  9328. +
  9329. + # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  9330. + _LT_TAG_COMPILER
  9331. +
  9332. + # save warnings/boilerplate of simple test code
  9333. + _LT_COMPILER_BOILERPLATE
  9334. + _LT_LINKER_BOILERPLATE
  9335. +
  9336. + # Allow CC to be a program name with arguments.
  9337. + lt_save_CC=$CC
  9338. + lt_save_LD=$LD
  9339. + lt_save_GCC=$GCC
  9340. + GCC=$GXX
  9341. + lt_save_with_gnu_ld=$with_gnu_ld
  9342. + lt_save_path_LD=$lt_cv_path_LD
  9343. + if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
  9344. + lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  9345. + else
  9346. + $as_unset lt_cv_prog_gnu_ld
  9347. + fi
  9348. + if test -n "${lt_cv_path_LDCXX+set}"; then
  9349. + lt_cv_path_LD=$lt_cv_path_LDCXX
  9350. else
  9351. + $as_unset lt_cv_path_LD
  9352. + fi
  9353. + test -z "${LDCXX+set}" || LD=$LDCXX
  9354. + CC=${CXX-"c++"}
  9355. + compiler=$CC
  9356. + _LT_TAGVAR(compiler, $1)=$CC
  9357. + _LT_CC_BASENAME([$compiler])
  9358. +
  9359. + if test -n "$compiler"; then
  9360. + # We don't want -fno-exception when compiling C++ code, so set the
  9361. + # no_builtin_flag separately
  9362. + if test "$GXX" = yes; then
  9363. + _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
  9364. + else
  9365. + _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
  9366. + fi
  9367. +
  9368. + if test "$GXX" = yes; then
  9369. + # Set up default GNU C++ configuration
  9370. +
  9371. + LT_PATH_LD
  9372. +
  9373. + # Check if GNU C++ uses GNU ld as the underlying linker, since the
  9374. + # archiving commands below assume that GNU ld is being used.
  9375. + if test "$with_gnu_ld" = yes; then
  9376. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  9377. + _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'
  9378. +
  9379. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  9380. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  9381. +
  9382. + # If archive_cmds runs LD, not CC, wlarc should be empty
  9383. + # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
  9384. + # investigate it a little bit more. (MM)
  9385. + wlarc='${wl}'
  9386. +
  9387. + # ancient GNU ld didn't support --whole-archive et. al.
  9388. + if eval "`$CC -print-prog-name=ld` --help 2>&1" |
  9389. + $GREP 'no-whole-archive' > /dev/null; then
  9390. + _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  9391. + else
  9392. + _LT_TAGVAR(whole_archive_flag_spec, $1)=
  9393. + fi
  9394. + else
  9395. + with_gnu_ld=no
  9396. + wlarc=
  9397. +
  9398. + # A generic and very simple default shared library creation
  9399. + # command for GNU C++ for the case where it uses the native
  9400. + # linker, instead of GNU ld. If possible, this setting should
  9401. + # overridden to take advantage of the native linker features on
  9402. + # the platform it is being used on.
  9403. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  9404. + fi
  9405. +
  9406. + # Commands to make compiler produce verbose output that lists
  9407. + # what "hidden" libraries, object files and flags are used when
  9408. + # linking a shared library.
  9409. + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
  9410. +
  9411. + else
  9412. + GXX=no
  9413. + with_gnu_ld=no
  9414. + wlarc=
  9415. + fi
  9416. +
  9417. + # PORTME: fill in a description of your system's C++ link characteristics
  9418. + AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
  9419. + _LT_TAGVAR(ld_shlibs, $1)=yes
  9420. case $host_os in
  9421. - aix4* | aix5*)
  9422. - # All AIX code is PIC.
  9423. - if test "$host_cpu" = ia64; then
  9424. - # AIX 5 now supports IA64 processor
  9425. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  9426. + aix3*)
  9427. + # FIXME: insert proper C++ library support
  9428. + _LT_TAGVAR(ld_shlibs, $1)=no
  9429. + ;;
  9430. + aix[[4-9]]*)
  9431. + if test "$host_cpu" = ia64; then
  9432. + # On IA64, the linker does run time linking by default, so we don't
  9433. + # have to do anything special.
  9434. + aix_use_runtimelinking=no
  9435. + exp_sym_flag='-Bexport'
  9436. + no_entry_flag=""
  9437. + else
  9438. + aix_use_runtimelinking=no
  9439. +
  9440. + # Test if we are trying to use run time linking or normal
  9441. + # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  9442. + # need to do runtime linking.
  9443. + case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
  9444. + for ld_flag in $LDFLAGS; do
  9445. + case $ld_flag in
  9446. + *-brtl*)
  9447. + aix_use_runtimelinking=yes
  9448. + break
  9449. + ;;
  9450. + esac
  9451. + done
  9452. + ;;
  9453. + esac
  9454. +
  9455. + exp_sym_flag='-bexport'
  9456. + no_entry_flag='-bnoentry'
  9457. + fi
  9458. +
  9459. + # When large executables or shared objects are built, AIX ld can
  9460. + # have problems creating the table of contents. If linking a library
  9461. + # or program results in "error TOC overflow" add -mminimal-toc to
  9462. + # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  9463. + # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  9464. +
  9465. + _LT_TAGVAR(archive_cmds, $1)=''
  9466. + _LT_TAGVAR(hardcode_direct, $1)=yes
  9467. + _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
  9468. + _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
  9469. + _LT_TAGVAR(link_all_deplibs, $1)=yes
  9470. + _LT_TAGVAR(file_list_spec, $1)='${wl}-f,'
  9471. +
  9472. + if test "$GXX" = yes; then
  9473. + case $host_os in aix4.[[012]]|aix4.[[012]].*)
  9474. + # We only want to do this on AIX 4.2 and lower, the check
  9475. + # below for broken collect2 doesn't work under 4.3+
  9476. + collect2name=`${CC} -print-prog-name=collect2`
  9477. + if test -f "$collect2name" &&
  9478. + strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  9479. + then
  9480. + # We have reworked collect2
  9481. + :
  9482. + else
  9483. + # We have old collect2
  9484. + _LT_TAGVAR(hardcode_direct, $1)=unsupported
  9485. + # It fails to find uninstalled libraries when the uninstalled
  9486. + # path is not listed in the libpath. Setting hardcode_minus_L
  9487. + # to unsupported forces relinking
  9488. + _LT_TAGVAR(hardcode_minus_L, $1)=yes
  9489. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  9490. + _LT_TAGVAR(hardcode_libdir_separator, $1)=
  9491. + fi
  9492. + esac
  9493. + shared_flag='-shared'
  9494. + if test "$aix_use_runtimelinking" = yes; then
  9495. + shared_flag="$shared_flag "'${wl}-G'
  9496. + fi
  9497. + else
  9498. + # not using gcc
  9499. + if test "$host_cpu" = ia64; then
  9500. + # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  9501. + # chokes on -Wl,-G. The following line is correct:
  9502. + shared_flag='-G'
  9503. + else
  9504. + if test "$aix_use_runtimelinking" = yes; then
  9505. + shared_flag='${wl}-G'
  9506. + else
  9507. + shared_flag='${wl}-bM:SRE'
  9508. + fi
  9509. + fi
  9510. + fi
  9511. +
  9512. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-bexpall'
  9513. + # It seems that -bexpall does not export symbols beginning with
  9514. + # underscore (_), so it is better to generate a list of symbols to
  9515. + # export.
  9516. + _LT_TAGVAR(always_export_symbols, $1)=yes
  9517. + if test "$aix_use_runtimelinking" = yes; then
  9518. + # Warning - without using the other runtime loading flags (-brtl),
  9519. + # -berok will link without error, but may produce a broken library.
  9520. + _LT_TAGVAR(allow_undefined_flag, $1)='-berok'
  9521. + # Determine the default libpath from the value encoded in an empty
  9522. + # executable.
  9523. + _LT_SYS_MODULE_PATH_AIX
  9524. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
  9525. +
  9526. + _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"
  9527. + else
  9528. + if test "$host_cpu" = ia64; then
  9529. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
  9530. + _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
  9531. + _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"
  9532. + else
  9533. + # Determine the default libpath from the value encoded in an
  9534. + # empty executable.
  9535. + _LT_SYS_MODULE_PATH_AIX
  9536. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
  9537. + # Warning - without using the other run time loading flags,
  9538. + # -berok will link without error, but may produce a broken library.
  9539. + _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
  9540. + _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
  9541. + # Exported symbols can be pulled into shared objects from archives
  9542. + _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
  9543. + _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
  9544. + # This is similar to how AIX traditionally builds its shared
  9545. + # libraries.
  9546. + _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'
  9547. + fi
  9548. + fi
  9549. + ;;
  9550. +
  9551. + beos*)
  9552. + if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  9553. + _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  9554. + # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  9555. + # support --undefined. This deserves some investigation. FIXME
  9556. + _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  9557. else
  9558. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
  9559. + _LT_TAGVAR(ld_shlibs, $1)=no
  9560. fi
  9561. ;;
  9562. +
  9563. chorus*)
  9564. - case $cc_basename in
  9565. - cxch68*)
  9566. - # Green Hills C++ Compiler
  9567. - # _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"
  9568. + case $cc_basename in
  9569. + *)
  9570. + # FIXME: insert proper C++ library support
  9571. + _LT_TAGVAR(ld_shlibs, $1)=no
  9572. ;;
  9573. - esac
  9574. + esac
  9575. + ;;
  9576. +
  9577. + cygwin* | mingw* | pw32* | cegcc*)
  9578. + # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
  9579. + # as there is no search path for DLLs.
  9580. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  9581. + _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  9582. + _LT_TAGVAR(always_export_symbols, $1)=no
  9583. + _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
  9584. +
  9585. + if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  9586. + _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'
  9587. + # If the export-symbols file already is a .def file (1st line
  9588. + # is EXPORTS), use it as is; otherwise, prepend...
  9589. + _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  9590. + cp $export_symbols $output_objdir/$soname.def;
  9591. + else
  9592. + echo EXPORTS > $output_objdir/$soname.def;
  9593. + cat $export_symbols >> $output_objdir/$soname.def;
  9594. + fi~
  9595. + $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'
  9596. + else
  9597. + _LT_TAGVAR(ld_shlibs, $1)=no
  9598. + fi
  9599. + ;;
  9600. + darwin* | rhapsody*)
  9601. + _LT_DARWIN_LINKER_FEATURES($1)
  9602. ;;
  9603. - darwin*)
  9604. - # PIC is the default on this platform
  9605. - # Common symbols not allowed in MH_DYLIB files
  9606. - case $cc_basename in
  9607. - xlc*)
  9608. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-qnocommon'
  9609. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  9610. - ;;
  9611. - esac
  9612. - ;;
  9613. +
  9614. dgux*)
  9615. - case $cc_basename in
  9616. - ec++*)
  9617. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  9618. + case $cc_basename in
  9619. + ec++*)
  9620. + # FIXME: insert proper C++ library support
  9621. + _LT_TAGVAR(ld_shlibs, $1)=no
  9622. ;;
  9623. - ghcx*)
  9624. + ghcx*)
  9625. # Green Hills C++ Compiler
  9626. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  9627. + # FIXME: insert proper C++ library support
  9628. + _LT_TAGVAR(ld_shlibs, $1)=no
  9629. ;;
  9630. - *)
  9631. + *)
  9632. + # FIXME: insert proper C++ library support
  9633. + _LT_TAGVAR(ld_shlibs, $1)=no
  9634. ;;
  9635. - esac
  9636. - ;;
  9637. - freebsd* | kfreebsd*-gnu | dragonfly*)
  9638. - # FreeBSD uses GNU C++
  9639. - ;;
  9640. - hpux9* | hpux10* | hpux11*)
  9641. - case $cc_basename in
  9642. - CC*)
  9643. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  9644. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
  9645. - if test "$host_cpu" != ia64; then
  9646. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
  9647. - fi
  9648. + esac
  9649. + ;;
  9650. +
  9651. + freebsd[[12]]*)
  9652. + # C++ shared libraries reported to be fairly broken before
  9653. + # switch to ELF
  9654. + _LT_TAGVAR(ld_shlibs, $1)=no
  9655. + ;;
  9656. +
  9657. + freebsd-elf*)
  9658. + _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  9659. + ;;
  9660. +
  9661. + freebsd* | dragonfly*)
  9662. + # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
  9663. + # conventions
  9664. + _LT_TAGVAR(ld_shlibs, $1)=yes
  9665. + ;;
  9666. +
  9667. + gnu*)
  9668. + ;;
  9669. +
  9670. + hpux9*)
  9671. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  9672. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  9673. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  9674. + _LT_TAGVAR(hardcode_direct, $1)=yes
  9675. + _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
  9676. + # but as the default
  9677. + # location of the library.
  9678. +
  9679. + case $cc_basename in
  9680. + CC*)
  9681. + # FIXME: insert proper C++ library support
  9682. + _LT_TAGVAR(ld_shlibs, $1)=no
  9683. + ;;
  9684. + aCC*)
  9685. + _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'
  9686. + # Commands to make compiler produce verbose output that lists
  9687. + # what "hidden" libraries, object files and flags are used when
  9688. + # linking a shared library.
  9689. + #
  9690. + # There doesn't appear to be a way to prevent this compiler from
  9691. + # explicitly linking system object files so we need to strip them
  9692. + # from the output so that they don't get included in the library
  9693. + # dependencies.
  9694. + 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'
  9695. + ;;
  9696. + *)
  9697. + if test "$GXX" = yes; then
  9698. + _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'
  9699. + else
  9700. + # FIXME: insert proper C++ library support
  9701. + _LT_TAGVAR(ld_shlibs, $1)=no
  9702. + fi
  9703. + ;;
  9704. + esac
  9705. + ;;
  9706. +
  9707. + hpux10*|hpux11*)
  9708. + if test $with_gnu_ld = no; then
  9709. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  9710. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  9711. +
  9712. + case $host_cpu in
  9713. + hppa*64*|ia64*)
  9714. + ;;
  9715. + *)
  9716. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  9717. + ;;
  9718. + esac
  9719. + fi
  9720. + case $host_cpu in
  9721. + hppa*64*|ia64*)
  9722. + _LT_TAGVAR(hardcode_direct, $1)=no
  9723. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  9724. + ;;
  9725. + *)
  9726. + _LT_TAGVAR(hardcode_direct, $1)=yes
  9727. + _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
  9728. + _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
  9729. + # but as the default
  9730. + # location of the library.
  9731. + ;;
  9732. + esac
  9733. +
  9734. + case $cc_basename in
  9735. + CC*)
  9736. + # FIXME: insert proper C++ library support
  9737. + _LT_TAGVAR(ld_shlibs, $1)=no
  9738. ;;
  9739. - aCC*)
  9740. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  9741. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
  9742. + aCC*)
  9743. case $host_cpu in
  9744. - hppa*64*|ia64*)
  9745. - # +Z the default
  9746. - ;;
  9747. - *)
  9748. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
  9749. - ;;
  9750. + hppa*64*)
  9751. + _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  9752. + ;;
  9753. + ia64*)
  9754. + _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  9755. + ;;
  9756. + *)
  9757. + _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'
  9758. + ;;
  9759. esac
  9760. + # Commands to make compiler produce verbose output that lists
  9761. + # what "hidden" libraries, object files and flags are used when
  9762. + # linking a shared library.
  9763. + #
  9764. + # There doesn't appear to be a way to prevent this compiler from
  9765. + # explicitly linking system object files so we need to strip them
  9766. + # from the output so that they don't get included in the library
  9767. + # dependencies.
  9768. + 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'
  9769. ;;
  9770. - *)
  9771. + *)
  9772. + if test "$GXX" = yes; then
  9773. + if test $with_gnu_ld = no; then
  9774. + case $host_cpu in
  9775. + hppa*64*)
  9776. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  9777. + ;;
  9778. + ia64*)
  9779. + _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'
  9780. + ;;
  9781. + *)
  9782. + _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'
  9783. + ;;
  9784. + esac
  9785. + fi
  9786. + else
  9787. + # FIXME: insert proper C++ library support
  9788. + _LT_TAGVAR(ld_shlibs, $1)=no
  9789. + fi
  9790. ;;
  9791. - esac
  9792. - ;;
  9793. - interix*)
  9794. - # This is c89, which is MS Visual C++ (no shared libs)
  9795. - # Anyone wants to do a port?
  9796. - ;;
  9797. - irix5* | irix6* | nonstopux*)
  9798. - case $cc_basename in
  9799. - CC*)
  9800. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  9801. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  9802. - # CC pic flag -KPIC is the default.
  9803. + esac
  9804. + ;;
  9805. +
  9806. + interix[[3-9]]*)
  9807. + _LT_TAGVAR(hardcode_direct, $1)=no
  9808. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  9809. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  9810. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  9811. + # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  9812. + # Instead, shared libraries are loaded at an image base (0x10000000 by
  9813. + # default) and relocated if they conflict, which is a slow very memory
  9814. + # consuming and fragmenting process. To avoid this, we pick a random,
  9815. + # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  9816. + # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  9817. + _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'
  9818. + _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'
  9819. + ;;
  9820. + irix5* | irix6*)
  9821. + case $cc_basename in
  9822. + CC*)
  9823. + # SGI C++
  9824. + _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'
  9825. +
  9826. + # Archives containing C++ object files must be created using
  9827. + # "CC -ar", where "CC" is the IRIX C++ compiler. This is
  9828. + # necessary to make sure instantiated templates are included
  9829. + # in the archive.
  9830. + _LT_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs'
  9831. ;;
  9832. - *)
  9833. + *)
  9834. + if test "$GXX" = yes; then
  9835. + if test "$with_gnu_ld" = no; then
  9836. + _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'
  9837. + else
  9838. + _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'
  9839. + fi
  9840. + fi
  9841. + _LT_TAGVAR(link_all_deplibs, $1)=yes
  9842. ;;
  9843. - esac
  9844. - ;;
  9845. - linux*)
  9846. - case $cc_basename in
  9847. - KCC*)
  9848. - # KAI C++ Compiler
  9849. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
  9850. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  9851. + esac
  9852. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  9853. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  9854. + _LT_TAGVAR(inherit_rpath, $1)=yes
  9855. + ;;
  9856. +
  9857. + linux* | k*bsd*-gnu | kopensolaris*-gnu)
  9858. + case $cc_basename in
  9859. + KCC*)
  9860. + # Kuck and Associates, Inc. (KAI) C++ Compiler
  9861. +
  9862. + # KCC will only create a shared library if the output file
  9863. + # ends with ".so" (or ".sl" for HP-UX), so rename the library
  9864. + # to its proper name (with version) after linking.
  9865. + _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'
  9866. + _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'
  9867. + # Commands to make compiler produce verbose output that lists
  9868. + # what "hidden" libraries, object files and flags are used when
  9869. + # linking a shared library.
  9870. + #
  9871. + # There doesn't appear to be a way to prevent this compiler from
  9872. + # explicitly linking system object files so we need to strip them
  9873. + # from the output so that they don't get included in the library
  9874. + # dependencies.
  9875. + 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'
  9876. +
  9877. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  9878. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  9879. +
  9880. + # Archives containing C++ object files must be created using
  9881. + # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  9882. + _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
  9883. ;;
  9884. - icpc* | ecpc*)
  9885. + icpc* | ecpc* )
  9886. # Intel C++
  9887. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  9888. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  9889. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
  9890. - ;;
  9891. - pgCC*)
  9892. - # Portland Group C++ compiler.
  9893. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  9894. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
  9895. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  9896. + with_gnu_ld=yes
  9897. + # version 8.0 and above of icpc choke on multiply defined symbols
  9898. + # if we add $predep_objects and $postdep_objects, however 7.1 and
  9899. + # earlier do not add the objects themselves.
  9900. + case `$CC -V 2>&1` in
  9901. + *"Version 7."*)
  9902. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  9903. + _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'
  9904. + ;;
  9905. + *) # Version 8.0 or newer
  9906. + tmp_idyn=
  9907. + case $host_cpu in
  9908. + ia64*) tmp_idyn=' -i_dynamic';;
  9909. + esac
  9910. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  9911. + _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'
  9912. + ;;
  9913. + esac
  9914. + _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  9915. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  9916. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  9917. + _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  9918. ;;
  9919. + pgCC* | pgcpp*)
  9920. + # Portland Group C++ compiler
  9921. + case `$CC -V` in
  9922. + *pgCC\ [[1-5]]* | *pgcpp\ [[1-5]]*)
  9923. + _LT_TAGVAR(prelink_cmds, $1)='tpldir=Template.dir~
  9924. + rm -rf $tpldir~
  9925. + $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
  9926. + compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
  9927. + _LT_TAGVAR(old_archive_cmds, $1)='tpldir=Template.dir~
  9928. + rm -rf $tpldir~
  9929. + $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
  9930. + $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
  9931. + $RANLIB $oldlib'
  9932. + _LT_TAGVAR(archive_cmds, $1)='tpldir=Template.dir~
  9933. + rm -rf $tpldir~
  9934. + $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  9935. + $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  9936. + _LT_TAGVAR(archive_expsym_cmds, $1)='tpldir=Template.dir~
  9937. + rm -rf $tpldir~
  9938. + $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  9939. + $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'
  9940. + ;;
  9941. + *) # Version 6 will use weak symbols
  9942. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  9943. + _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'
  9944. + ;;
  9945. + esac
  9946. +
  9947. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
  9948. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  9949. + _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'
  9950. + ;;
  9951. cxx*)
  9952. # Compaq C++
  9953. - # Make sure the PIC flag is empty. It appears that all Alpha
  9954. - # Linux and Compaq Tru64 Unix objects are PIC.
  9955. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
  9956. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  9957. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  9958. + _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'
  9959. +
  9960. + runpath_var=LD_RUN_PATH
  9961. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
  9962. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  9963. +
  9964. + # Commands to make compiler produce verbose output that lists
  9965. + # what "hidden" libraries, object files and flags are used when
  9966. + # linking a shared library.
  9967. + #
  9968. + # There doesn't appear to be a way to prevent this compiler from
  9969. + # explicitly linking system object files so we need to strip them
  9970. + # from the output so that they don't get included in the library
  9971. + # dependencies.
  9972. + 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'
  9973. + ;;
  9974. + xl*)
  9975. + # IBM XL 8.0 on PPC, with GNU ld
  9976. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  9977. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  9978. + _LT_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  9979. + if test "x$supports_anon_versioning" = xyes; then
  9980. + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
  9981. + cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  9982. + echo "local: *; };" >> $output_objdir/$libname.ver~
  9983. + $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  9984. + fi
  9985. ;;
  9986. *)
  9987. + case `$CC -V 2>&1 | sed 5q` in
  9988. + *Sun\ C*)
  9989. + # Sun C++ 5.9
  9990. + _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
  9991. + _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  9992. + _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'
  9993. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  9994. + _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'
  9995. + _LT_TAGVAR(compiler_needs_object, $1)=yes
  9996. +
  9997. + # Not sure whether something based on
  9998. + # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
  9999. + # would be better.
  10000. + output_verbose_link_cmd='echo'
  10001. +
  10002. + # Archives containing C++ object files must be created using
  10003. + # "CC -xar", where "CC" is the Sun C++ compiler. This is
  10004. + # necessary to make sure instantiated templates are included
  10005. + # in the archive.
  10006. + _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
  10007. + ;;
  10008. + esac
  10009. ;;
  10010. esac
  10011. ;;
  10012. +
  10013. lynxos*)
  10014. + # FIXME: insert proper C++ library support
  10015. + _LT_TAGVAR(ld_shlibs, $1)=no
  10016. ;;
  10017. +
  10018. m88k*)
  10019. + # FIXME: insert proper C++ library support
  10020. + _LT_TAGVAR(ld_shlibs, $1)=no
  10021. ;;
  10022. +
  10023. mvs*)
  10024. - case $cc_basename in
  10025. - cxx*)
  10026. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall'
  10027. + case $cc_basename in
  10028. + cxx*)
  10029. + # FIXME: insert proper C++ library support
  10030. + _LT_TAGVAR(ld_shlibs, $1)=no
  10031. ;;
  10032. *)
  10033. + # FIXME: insert proper C++ library support
  10034. + _LT_TAGVAR(ld_shlibs, $1)=no
  10035. ;;
  10036. esac
  10037. ;;
  10038. +
  10039. netbsd*)
  10040. + if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  10041. + _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
  10042. + wlarc=
  10043. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  10044. + _LT_TAGVAR(hardcode_direct, $1)=yes
  10045. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  10046. + fi
  10047. + # Workaround some broken pre-1.5 toolchains
  10048. + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
  10049. + ;;
  10050. +
  10051. + *nto* | *qnx*)
  10052. + _LT_TAGVAR(ld_shlibs, $1)=yes
  10053. ;;
  10054. +
  10055. + openbsd2*)
  10056. + # C++ shared libraries are fairly broken
  10057. + _LT_TAGVAR(ld_shlibs, $1)=no
  10058. + ;;
  10059. +
  10060. + openbsd*)
  10061. + if test -f /usr/libexec/ld.so; then
  10062. + _LT_TAGVAR(hardcode_direct, $1)=yes
  10063. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  10064. + _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
  10065. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  10066. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  10067. + if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  10068. + _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'
  10069. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  10070. + _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  10071. + fi
  10072. + output_verbose_link_cmd=echo
  10073. + else
  10074. + _LT_TAGVAR(ld_shlibs, $1)=no
  10075. + fi
  10076. + ;;
  10077. +
  10078. osf3* | osf4* | osf5*)
  10079. - case $cc_basename in
  10080. - KCC*)
  10081. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
  10082. + case $cc_basename in
  10083. + KCC*)
  10084. + # Kuck and Associates, Inc. (KAI) C++ Compiler
  10085. +
  10086. + # KCC will only create a shared library if the output file
  10087. + # ends with ".so" (or ".sl" for HP-UX), so rename the library
  10088. + # to its proper name (with version) after linking.
  10089. + _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'
  10090. +
  10091. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  10092. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  10093. +
  10094. + # Archives containing C++ object files must be created using
  10095. + # the KAI C++ compiler.
  10096. + case $host in
  10097. + osf3*) _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' ;;
  10098. + *) _LT_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs' ;;
  10099. + esac
  10100. ;;
  10101. - RCC*)
  10102. + RCC*)
  10103. # Rational C++ 2.4.1
  10104. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  10105. + # FIXME: insert proper C++ library support
  10106. + _LT_TAGVAR(ld_shlibs, $1)=no
  10107. ;;
  10108. - cxx*)
  10109. - # Digital/Compaq C++
  10110. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  10111. - # Make sure the PIC flag is empty. It appears that all Alpha
  10112. - # Linux and Compaq Tru64 Unix objects are PIC.
  10113. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
  10114. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  10115. + cxx*)
  10116. + case $host in
  10117. + osf3*)
  10118. + _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
  10119. + _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'
  10120. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  10121. + ;;
  10122. + *)
  10123. + _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
  10124. + _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'
  10125. + _LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
  10126. + echo "-hidden">> $lib.exp~
  10127. + $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~
  10128. + $RM $lib.exp'
  10129. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
  10130. + ;;
  10131. + esac
  10132. +
  10133. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  10134. +
  10135. + # Commands to make compiler produce verbose output that lists
  10136. + # what "hidden" libraries, object files and flags are used when
  10137. + # linking a shared library.
  10138. + #
  10139. + # There doesn't appear to be a way to prevent this compiler from
  10140. + # explicitly linking system object files so we need to strip them
  10141. + # from the output so that they don't get included in the library
  10142. + # dependencies.
  10143. + 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'
  10144. ;;
  10145. *)
  10146. + if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  10147. + _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
  10148. + case $host in
  10149. + osf3*)
  10150. + _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'
  10151. + ;;
  10152. + *)
  10153. + _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'
  10154. + ;;
  10155. + esac
  10156. +
  10157. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  10158. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  10159. +
  10160. + # Commands to make compiler produce verbose output that lists
  10161. + # what "hidden" libraries, object files and flags are used when
  10162. + # linking a shared library.
  10163. + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
  10164. +
  10165. + else
  10166. + # FIXME: insert proper C++ library support
  10167. + _LT_TAGVAR(ld_shlibs, $1)=no
  10168. + fi
  10169. ;;
  10170. - esac
  10171. - ;;
  10172. + esac
  10173. + ;;
  10174. +
  10175. psos*)
  10176. - ;;
  10177. + # FIXME: insert proper C++ library support
  10178. + _LT_TAGVAR(ld_shlibs, $1)=no
  10179. + ;;
  10180. +
  10181. + sunos4*)
  10182. + case $cc_basename in
  10183. + CC*)
  10184. + # Sun C++ 4.x
  10185. + # FIXME: insert proper C++ library support
  10186. + _LT_TAGVAR(ld_shlibs, $1)=no
  10187. + ;;
  10188. + lcc*)
  10189. + # Lucid
  10190. + # FIXME: insert proper C++ library support
  10191. + _LT_TAGVAR(ld_shlibs, $1)=no
  10192. + ;;
  10193. + *)
  10194. + # FIXME: insert proper C++ library support
  10195. + _LT_TAGVAR(ld_shlibs, $1)=no
  10196. + ;;
  10197. + esac
  10198. + ;;
  10199. +
  10200. solaris*)
  10201. - case $cc_basename in
  10202. - CC*)
  10203. + case $cc_basename in
  10204. + CC*)
  10205. # Sun C++ 4.2, 5.x and Centerline C++
  10206. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  10207. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  10208. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
  10209. + _LT_TAGVAR(archive_cmds_need_lc,$1)=yes
  10210. + _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
  10211. + _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10212. + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  10213. + $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'
  10214. +
  10215. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  10216. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  10217. + case $host_os in
  10218. + solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
  10219. + *)
  10220. + # The compiler driver will combine and reorder linker options,
  10221. + # but understands `-z linker_flag'.
  10222. + # Supported since Solaris 2.6 (maybe 2.5.1?)
  10223. + _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
  10224. + ;;
  10225. + esac
  10226. + _LT_TAGVAR(link_all_deplibs, $1)=yes
  10227. +
  10228. + output_verbose_link_cmd='echo'
  10229. +
  10230. + # Archives containing C++ object files must be created using
  10231. + # "CC -xar", where "CC" is the Sun C++ compiler. This is
  10232. + # necessary to make sure instantiated templates are included
  10233. + # in the archive.
  10234. + _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
  10235. ;;
  10236. - gcx*)
  10237. + gcx*)
  10238. # Green Hills C++ Compiler
  10239. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
  10240. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  10241. +
  10242. + # The C++ compiler must be used to create the archive.
  10243. + _LT_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
  10244. ;;
  10245. - *)
  10246. + *)
  10247. + # GNU C++ compiler with Solaris linker
  10248. + if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  10249. + _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs'
  10250. + if $CC --version | $GREP -v '^2\.7' > /dev/null; then
  10251. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  10252. + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  10253. + $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  10254. +
  10255. + # Commands to make compiler produce verbose output that lists
  10256. + # what "hidden" libraries, object files and flags are used when
  10257. + # linking a shared library.
  10258. + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
  10259. + else
  10260. + # g++ 2.7 appears to require `-G' NOT `-shared' on this
  10261. + # platform.
  10262. + _LT_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  10263. + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  10264. + $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  10265. +
  10266. + # Commands to make compiler produce verbose output that lists
  10267. + # what "hidden" libraries, object files and flags are used when
  10268. + # linking a shared library.
  10269. + output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
  10270. + fi
  10271. +
  10272. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir'
  10273. + case $host_os in
  10274. + solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
  10275. + *)
  10276. + _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  10277. + ;;
  10278. + esac
  10279. + fi
  10280. ;;
  10281. - esac
  10282. - ;;
  10283. - sunos4*)
  10284. + esac
  10285. + ;;
  10286. +
  10287. + sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
  10288. + _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
  10289. + _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  10290. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  10291. + runpath_var='LD_RUN_PATH'
  10292. +
  10293. + case $cc_basename in
  10294. + CC*)
  10295. + _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10296. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10297. + ;;
  10298. + *)
  10299. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10300. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10301. + ;;
  10302. + esac
  10303. + ;;
  10304. +
  10305. + sysv5* | sco3.2v5* | sco5v6*)
  10306. + # Note: We can NOT use -z defs as we might desire, because we do not
  10307. + # link with -lc, and that would cause any symbols used from libc to
  10308. + # always be unresolved, which means just about no library would
  10309. + # ever link correctly. If we're not using GNU ld we use -z text
  10310. + # though, which does catch some bad symbols but isn't as heavy-handed
  10311. + # as -z defs.
  10312. + _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
  10313. + _LT_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
  10314. + _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  10315. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  10316. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R,$libdir'
  10317. + _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
  10318. + _LT_TAGVAR(link_all_deplibs, $1)=yes
  10319. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
  10320. + runpath_var='LD_RUN_PATH'
  10321. +
  10322. case $cc_basename in
  10323. - CC*)
  10324. - # Sun C++ 4.x
  10325. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  10326. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  10327. - ;;
  10328. - lcc*)
  10329. - # Lucid
  10330. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  10331. + CC*)
  10332. + _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10333. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10334. ;;
  10335. *)
  10336. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10337. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10338. ;;
  10339. esac
  10340. - ;;
  10341. + ;;
  10342. +
  10343. tandem*)
  10344. - case $cc_basename in
  10345. - NCC*)
  10346. + case $cc_basename in
  10347. + NCC*)
  10348. # NonStop-UX NCC 3.20
  10349. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  10350. - ;;
  10351. - *)
  10352. + # FIXME: insert proper C++ library support
  10353. + _LT_TAGVAR(ld_shlibs, $1)=no
  10354. ;;
  10355. - esac
  10356. - ;;
  10357. - sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  10358. - case $cc_basename in
  10359. - CC*)
  10360. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  10361. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  10362. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  10363. + *)
  10364. + # FIXME: insert proper C++ library support
  10365. + _LT_TAGVAR(ld_shlibs, $1)=no
  10366. ;;
  10367. - esac
  10368. - ;;
  10369. + esac
  10370. + ;;
  10371. +
  10372. vxworks*)
  10373. - ;;
  10374. + # FIXME: insert proper C++ library support
  10375. + _LT_TAGVAR(ld_shlibs, $1)=no
  10376. + ;;
  10377. +
  10378. *)
  10379. - _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
  10380. - ;;
  10381. + # FIXME: insert proper C++ library support
  10382. + _LT_TAGVAR(ld_shlibs, $1)=no
  10383. + ;;
  10384. esac
  10385. - fi
  10386. -],
  10387. +
  10388. + AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)])
  10389. + test "$_LT_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
  10390. +
  10391. + _LT_TAGVAR(GCC, $1)="$GXX"
  10392. + _LT_TAGVAR(LD, $1)="$LD"
  10393. +
  10394. + ## CAVEAT EMPTOR:
  10395. + ## There is no encapsulation within the following macros, do not change
  10396. + ## the running order or otherwise move them around unless you know exactly
  10397. + ## what you are doing...
  10398. + _LT_SYS_HIDDEN_LIBDEPS($1)
  10399. + _LT_COMPILER_PIC($1)
  10400. + _LT_COMPILER_C_O($1)
  10401. + _LT_COMPILER_FILE_LOCKS($1)
  10402. + _LT_LINKER_SHLIBS($1)
  10403. + _LT_SYS_DYNAMIC_LINKER($1)
  10404. + _LT_LINKER_HARDCODE_LIBPATH($1)
  10405. +
  10406. + _LT_CONFIG($1)
  10407. + fi # test -n "$compiler"
  10408. +
  10409. + CC=$lt_save_CC
  10410. + LDCXX=$LD
  10411. + LD=$lt_save_LD
  10412. + GCC=$lt_save_GCC
  10413. + with_gnu_ld=$lt_save_with_gnu_ld
  10414. + lt_cv_path_LDCXX=$lt_cv_path_LD
  10415. + lt_cv_path_LD=$lt_save_path_LD
  10416. + lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  10417. + lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
  10418. +fi # test "$_lt_caught_CXX_error" != yes
  10419. +
  10420. +AC_LANG_POP
  10421. +])# _LT_LANG_CXX_CONFIG
  10422. +
  10423. +
  10424. +# _LT_SYS_HIDDEN_LIBDEPS([TAGNAME])
  10425. +# ---------------------------------
  10426. +# Figure out "hidden" library dependencies from verbose
  10427. +# compiler output when linking a shared library.
  10428. +# Parse the compiler output and extract the necessary
  10429. +# objects, libraries and library flags.
  10430. +m4_defun([_LT_SYS_HIDDEN_LIBDEPS],
  10431. +[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  10432. +# Dependencies to place before and after the object being linked:
  10433. +_LT_TAGVAR(predep_objects, $1)=
  10434. +_LT_TAGVAR(postdep_objects, $1)=
  10435. +_LT_TAGVAR(predeps, $1)=
  10436. +_LT_TAGVAR(postdeps, $1)=
  10437. +_LT_TAGVAR(compiler_lib_search_path, $1)=
  10438. +
  10439. +dnl we can't use the lt_simple_compile_test_code here,
  10440. +dnl because it contains code intended for an executable,
  10441. +dnl not a library. It's possible we should let each
  10442. +dnl tag define a new lt_????_link_test_code variable,
  10443. +dnl but it's only used here...
  10444. +m4_if([$1], [], [cat > conftest.$ac_ext <<_LT_EOF
  10445. +int a;
  10446. +void foo (void) { a = 0; }
  10447. +_LT_EOF
  10448. +], [$1], [CXX], [cat > conftest.$ac_ext <<_LT_EOF
  10449. +class Foo
  10450. +{
  10451. +public:
  10452. + Foo (void) { a = 0; }
  10453. +private:
  10454. + int a;
  10455. +};
  10456. +_LT_EOF
  10457. +], [$1], [F77], [cat > conftest.$ac_ext <<_LT_EOF
  10458. + subroutine foo
  10459. + implicit none
  10460. + integer*4 a
  10461. + a=0
  10462. + return
  10463. + end
  10464. +_LT_EOF
  10465. +], [$1], [FC], [cat > conftest.$ac_ext <<_LT_EOF
  10466. + subroutine foo
  10467. + implicit none
  10468. + integer a
  10469. + a=0
  10470. + return
  10471. + end
  10472. +_LT_EOF
  10473. +], [$1], [GCJ], [cat > conftest.$ac_ext <<_LT_EOF
  10474. +public class foo {
  10475. + private int a;
  10476. + public void bar (void) {
  10477. + a = 0;
  10478. + }
  10479. +};
  10480. +_LT_EOF
  10481. +])
  10482. +dnl Parse the compiler output and extract the necessary
  10483. +dnl objects, libraries and library flags.
  10484. +if AC_TRY_EVAL(ac_compile); then
  10485. + # Parse the compiler output and extract the necessary
  10486. + # objects, libraries and library flags.
  10487. +
  10488. + # Sentinel used to keep track of whether or not we are before
  10489. + # the conftest object file.
  10490. + pre_test_object_deps_done=no
  10491. +
  10492. + for p in `eval "$output_verbose_link_cmd"`; do
  10493. + case $p in
  10494. +
  10495. + -L* | -R* | -l*)
  10496. + # Some compilers place space between "-{L,R}" and the path.
  10497. + # Remove the space.
  10498. + if test $p = "-L" ||
  10499. + test $p = "-R"; then
  10500. + prev=$p
  10501. + continue
  10502. + else
  10503. + prev=
  10504. + fi
  10505. +
  10506. + if test "$pre_test_object_deps_done" = no; then
  10507. + case $p in
  10508. + -L* | -R*)
  10509. + # Internal compiler library paths should come after those
  10510. + # provided the user. The postdeps already come after the
  10511. + # user supplied libs so there is no need to process them.
  10512. + if test -z "$_LT_TAGVAR(compiler_lib_search_path, $1)"; then
  10513. + _LT_TAGVAR(compiler_lib_search_path, $1)="${prev}${p}"
  10514. + else
  10515. + _LT_TAGVAR(compiler_lib_search_path, $1)="${_LT_TAGVAR(compiler_lib_search_path, $1)} ${prev}${p}"
  10516. + fi
  10517. + ;;
  10518. + # The "-l" case would never come before the object being
  10519. + # linked, so don't bother handling this case.
  10520. + esac
  10521. + else
  10522. + if test -z "$_LT_TAGVAR(postdeps, $1)"; then
  10523. + _LT_TAGVAR(postdeps, $1)="${prev}${p}"
  10524. + else
  10525. + _LT_TAGVAR(postdeps, $1)="${_LT_TAGVAR(postdeps, $1)} ${prev}${p}"
  10526. + fi
  10527. + fi
  10528. + ;;
  10529. +
  10530. + *.$objext)
  10531. + # This assumes that the test object file only shows up
  10532. + # once in the compiler output.
  10533. + if test "$p" = "conftest.$objext"; then
  10534. + pre_test_object_deps_done=yes
  10535. + continue
  10536. + fi
  10537. +
  10538. + if test "$pre_test_object_deps_done" = no; then
  10539. + if test -z "$_LT_TAGVAR(predep_objects, $1)"; then
  10540. + _LT_TAGVAR(predep_objects, $1)="$p"
  10541. + else
  10542. + _LT_TAGVAR(predep_objects, $1)="$_LT_TAGVAR(predep_objects, $1) $p"
  10543. + fi
  10544. + else
  10545. + if test -z "$_LT_TAGVAR(postdep_objects, $1)"; then
  10546. + _LT_TAGVAR(postdep_objects, $1)="$p"
  10547. + else
  10548. + _LT_TAGVAR(postdep_objects, $1)="$_LT_TAGVAR(postdep_objects, $1) $p"
  10549. + fi
  10550. + fi
  10551. + ;;
  10552. +
  10553. + *) ;; # Ignore the rest.
  10554. +
  10555. + esac
  10556. + done
  10557. +
  10558. + # Clean up.
  10559. + rm -f a.out a.exe
  10560. +else
  10561. + echo "libtool.m4: error: problem compiling $1 test program"
  10562. +fi
  10563. +
  10564. +$RM -f confest.$objext
  10565. +
  10566. +# PORTME: override above test on systems where it is broken
  10567. +m4_if([$1], [CXX],
  10568. +[case $host_os in
  10569. +interix[[3-9]]*)
  10570. + # Interix 3.5 installs completely hosed .la files for C++, so rather than
  10571. + # hack all around it, let's just trust "g++" to DTRT.
  10572. + _LT_TAGVAR(predep_objects,$1)=
  10573. + _LT_TAGVAR(postdep_objects,$1)=
  10574. + _LT_TAGVAR(postdeps,$1)=
  10575. + ;;
  10576. +
  10577. +linux*)
  10578. + case `$CC -V 2>&1 | sed 5q` in
  10579. + *Sun\ C*)
  10580. + # Sun C++ 5.9
  10581. +
  10582. + # The more standards-conforming stlport4 library is
  10583. + # incompatible with the Cstd library. Avoid specifying
  10584. + # it if it's in CXXFLAGS. Ignore libCrun as
  10585. + # -library=stlport4 depends on it.
  10586. + case " $CXX $CXXFLAGS " in
  10587. + *" -library=stlport4 "*)
  10588. + solaris_use_stlport4=yes
  10589. + ;;
  10590. + esac
  10591. +
  10592. + if test "$solaris_use_stlport4" != yes; then
  10593. + _LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
  10594. + fi
  10595. + ;;
  10596. + esac
  10597. + ;;
  10598. +
  10599. +solaris*)
  10600. + case $cc_basename in
  10601. + CC*)
  10602. + # The more standards-conforming stlport4 library is
  10603. + # incompatible with the Cstd library. Avoid specifying
  10604. + # it if it's in CXXFLAGS. Ignore libCrun as
  10605. + # -library=stlport4 depends on it.
  10606. + case " $CXX $CXXFLAGS " in
  10607. + *" -library=stlport4 "*)
  10608. + solaris_use_stlport4=yes
  10609. + ;;
  10610. + esac
  10611. +
  10612. + # Adding this requires a known-good setup of shared libraries for
  10613. + # Sun compiler versions before 5.6, else PIC objects from an old
  10614. + # archive will be linked into the output, leading to subtle bugs.
  10615. + if test "$solaris_use_stlport4" != yes; then
  10616. + _LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
  10617. + fi
  10618. + ;;
  10619. + esac
  10620. + ;;
  10621. +esac
  10622. +])
  10623. +
  10624. +case " $_LT_TAGVAR(postdeps, $1) " in
  10625. +*" -lc "*) _LT_TAGVAR(archive_cmds_need_lc, $1)=no ;;
  10626. +esac
  10627. + _LT_TAGVAR(compiler_lib_search_dirs, $1)=
  10628. +if test -n "${_LT_TAGVAR(compiler_lib_search_path, $1)}"; then
  10629. + _LT_TAGVAR(compiler_lib_search_dirs, $1)=`echo " ${_LT_TAGVAR(compiler_lib_search_path, $1)}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
  10630. +fi
  10631. +_LT_TAGDECL([], [compiler_lib_search_dirs], [1],
  10632. + [The directories searched by this compiler when creating a shared library])
  10633. +_LT_TAGDECL([], [predep_objects], [1],
  10634. + [Dependencies to place before and after the objects being linked to
  10635. + create a shared library])
  10636. +_LT_TAGDECL([], [postdep_objects], [1])
  10637. +_LT_TAGDECL([], [predeps], [1])
  10638. +_LT_TAGDECL([], [postdeps], [1])
  10639. +_LT_TAGDECL([], [compiler_lib_search_path], [1],
  10640. + [The library search path used internally by the compiler when linking
  10641. + a shared library])
  10642. +])# _LT_SYS_HIDDEN_LIBDEPS
  10643. +
  10644. +
  10645. +# _LT_PROG_F77
  10646. +# ------------
  10647. +# Since AC_PROG_F77 is broken, in that it returns the empty string
  10648. +# if there is no fortran compiler, we have our own version here.
  10649. +m4_defun([_LT_PROG_F77],
  10650. [
  10651. - if test "$GCC" = yes; then
  10652. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  10653. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
  10654. +pushdef([AC_MSG_ERROR], [_lt_disable_F77=yes])
  10655. +AC_PROG_F77
  10656. +if test -z "$F77" || test "X$F77" = "Xno"; then
  10657. + _lt_disable_F77=yes
  10658. +fi
  10659. +popdef([AC_MSG_ERROR])
  10660. +])# _LT_PROG_F77
  10661. +
  10662. +dnl aclocal-1.4 backwards compatibility:
  10663. +dnl AC_DEFUN([_LT_PROG_F77], [])
  10664. +
  10665. +
  10666. +# _LT_LANG_F77_CONFIG([TAG])
  10667. +# --------------------------
  10668. +# Ensure that the configuration variables for a Fortran 77 compiler are
  10669. +# suitably defined. These variables are subsequently used by _LT_CONFIG
  10670. +# to write the compiler configuration to `libtool'.
  10671. +m4_defun([_LT_LANG_F77_CONFIG],
  10672. +[AC_REQUIRE([_LT_PROG_F77])dnl
  10673. +AC_LANG_PUSH(Fortran 77)
  10674. +
  10675. +_LT_TAGVAR(archive_cmds_need_lc, $1)=no
  10676. +_LT_TAGVAR(allow_undefined_flag, $1)=
  10677. +_LT_TAGVAR(always_export_symbols, $1)=no
  10678. +_LT_TAGVAR(archive_expsym_cmds, $1)=
  10679. +_LT_TAGVAR(export_dynamic_flag_spec, $1)=
  10680. +_LT_TAGVAR(hardcode_direct, $1)=no
  10681. +_LT_TAGVAR(hardcode_direct_absolute, $1)=no
  10682. +_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
  10683. +_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
  10684. +_LT_TAGVAR(hardcode_libdir_separator, $1)=
  10685. +_LT_TAGVAR(hardcode_minus_L, $1)=no
  10686. +_LT_TAGVAR(hardcode_automatic, $1)=no
  10687. +_LT_TAGVAR(inherit_rpath, $1)=no
  10688. +_LT_TAGVAR(module_cmds, $1)=
  10689. +_LT_TAGVAR(module_expsym_cmds, $1)=
  10690. +_LT_TAGVAR(link_all_deplibs, $1)=unknown
  10691. +_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
  10692. +_LT_TAGVAR(no_undefined_flag, $1)=
  10693. +_LT_TAGVAR(whole_archive_flag_spec, $1)=
  10694. +_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
  10695. +
  10696. +# Source file extension for f77 test sources.
  10697. +ac_ext=f
  10698. +
  10699. +# Object file extension for compiled f77 test sources.
  10700. +objext=o
  10701. +_LT_TAGVAR(objext, $1)=$objext
  10702. +
  10703. +# No sense in running all these tests if we already determined that
  10704. +# the F77 compiler isn't working. Some variables (like enable_shared)
  10705. +# are currently assumed to apply to all compilers on this platform,
  10706. +# and will be corrupted by setting them based on a non-working compiler.
  10707. +if test "$_lt_disable_F77" != yes; then
  10708. + # Code to be used in simple compile tests
  10709. + lt_simple_compile_test_code="\
  10710. + subroutine t
  10711. + return
  10712. + end
  10713. +"
  10714. +
  10715. + # Code to be used in simple link tests
  10716. + lt_simple_link_test_code="\
  10717. + program t
  10718. + end
  10719. +"
  10720. +
  10721. + # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  10722. + _LT_TAG_COMPILER
  10723. +
  10724. + # save warnings/boilerplate of simple test code
  10725. + _LT_COMPILER_BOILERPLATE
  10726. + _LT_LINKER_BOILERPLATE
  10727. +
  10728. + # Allow CC to be a program name with arguments.
  10729. + lt_save_CC="$CC"
  10730. + lt_save_GCC=$GCC
  10731. + CC=${F77-"f77"}
  10732. + compiler=$CC
  10733. + _LT_TAGVAR(compiler, $1)=$CC
  10734. + _LT_CC_BASENAME([$compiler])
  10735. + GCC=$G77
  10736. + if test -n "$compiler"; then
  10737. + AC_MSG_CHECKING([if libtool supports shared libraries])
  10738. + AC_MSG_RESULT([$can_build_shared])
  10739. +
  10740. + AC_MSG_CHECKING([whether to build shared libraries])
  10741. + test "$can_build_shared" = "no" && enable_shared=no
  10742. +
  10743. + # On AIX, shared libraries and static libraries use the same namespace, and
  10744. + # are all built from PIC.
  10745. + case $host_os in
  10746. + aix3*)
  10747. + test "$enable_shared" = yes && enable_static=no
  10748. + if test -n "$RANLIB"; then
  10749. + archive_cmds="$archive_cmds~\$RANLIB \$lib"
  10750. + postinstall_cmds='$RANLIB $lib'
  10751. + fi
  10752. + ;;
  10753. + aix[[4-9]]*)
  10754. + if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  10755. + test "$enable_shared" = yes && enable_static=no
  10756. + fi
  10757. + ;;
  10758. + esac
  10759. + AC_MSG_RESULT([$enable_shared])
  10760. +
  10761. + AC_MSG_CHECKING([whether to build static libraries])
  10762. + # Make sure either enable_shared or enable_static is yes.
  10763. + test "$enable_shared" = yes || enable_static=yes
  10764. + AC_MSG_RESULT([$enable_static])
  10765. +
  10766. + _LT_TAGVAR(GCC, $1)="$G77"
  10767. + _LT_TAGVAR(LD, $1)="$LD"
  10768. +
  10769. + ## CAVEAT EMPTOR:
  10770. + ## There is no encapsulation within the following macros, do not change
  10771. + ## the running order or otherwise move them around unless you know exactly
  10772. + ## what you are doing...
  10773. + _LT_COMPILER_PIC($1)
  10774. + _LT_COMPILER_C_O($1)
  10775. + _LT_COMPILER_FILE_LOCKS($1)
  10776. + _LT_LINKER_SHLIBS($1)
  10777. + _LT_SYS_DYNAMIC_LINKER($1)
  10778. + _LT_LINKER_HARDCODE_LIBPATH($1)
  10779. +
  10780. + _LT_CONFIG($1)
  10781. + fi # test -n "$compiler"
  10782. +
  10783. + GCC=$lt_save_GCC
  10784. + CC="$lt_save_CC"
  10785. +fi # test "$_lt_disable_F77" != yes
  10786. +
  10787. +AC_LANG_POP
  10788. +])# _LT_LANG_F77_CONFIG
  10789. +
  10790. +
  10791. +# _LT_PROG_FC
  10792. +# -----------
  10793. +# Since AC_PROG_FC is broken, in that it returns the empty string
  10794. +# if there is no fortran compiler, we have our own version here.
  10795. +m4_defun([_LT_PROG_FC],
  10796. +[
  10797. +pushdef([AC_MSG_ERROR], [_lt_disable_FC=yes])
  10798. +AC_PROG_FC
  10799. +if test -z "$FC" || test "X$FC" = "Xno"; then
  10800. + _lt_disable_FC=yes
  10801. +fi
  10802. +popdef([AC_MSG_ERROR])
  10803. +])# _LT_PROG_FC
  10804. +
  10805. +dnl aclocal-1.4 backwards compatibility:
  10806. +dnl AC_DEFUN([_LT_PROG_FC], [])
  10807. +
  10808. +
  10809. +# _LT_LANG_FC_CONFIG([TAG])
  10810. +# -------------------------
  10811. +# Ensure that the configuration variables for a Fortran compiler are
  10812. +# suitably defined. These variables are subsequently used by _LT_CONFIG
  10813. +# to write the compiler configuration to `libtool'.
  10814. +m4_defun([_LT_LANG_FC_CONFIG],
  10815. +[AC_REQUIRE([_LT_PROG_FC])dnl
  10816. +AC_LANG_PUSH(Fortran)
  10817. +
  10818. +_LT_TAGVAR(archive_cmds_need_lc, $1)=no
  10819. +_LT_TAGVAR(allow_undefined_flag, $1)=
  10820. +_LT_TAGVAR(always_export_symbols, $1)=no
  10821. +_LT_TAGVAR(archive_expsym_cmds, $1)=
  10822. +_LT_TAGVAR(export_dynamic_flag_spec, $1)=
  10823. +_LT_TAGVAR(hardcode_direct, $1)=no
  10824. +_LT_TAGVAR(hardcode_direct_absolute, $1)=no
  10825. +_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
  10826. +_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
  10827. +_LT_TAGVAR(hardcode_libdir_separator, $1)=
  10828. +_LT_TAGVAR(hardcode_minus_L, $1)=no
  10829. +_LT_TAGVAR(hardcode_automatic, $1)=no
  10830. +_LT_TAGVAR(inherit_rpath, $1)=no
  10831. +_LT_TAGVAR(module_cmds, $1)=
  10832. +_LT_TAGVAR(module_expsym_cmds, $1)=
  10833. +_LT_TAGVAR(link_all_deplibs, $1)=unknown
  10834. +_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
  10835. +_LT_TAGVAR(no_undefined_flag, $1)=
  10836. +_LT_TAGVAR(whole_archive_flag_spec, $1)=
  10837. +_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
  10838. +
  10839. +# Source file extension for fc test sources.
  10840. +ac_ext=${ac_fc_srcext-f}
  10841. +
  10842. +# Object file extension for compiled fc test sources.
  10843. +objext=o
  10844. +_LT_TAGVAR(objext, $1)=$objext
  10845. +
  10846. +# No sense in running all these tests if we already determined that
  10847. +# the FC compiler isn't working. Some variables (like enable_shared)
  10848. +# are currently assumed to apply to all compilers on this platform,
  10849. +# and will be corrupted by setting them based on a non-working compiler.
  10850. +if test "$_lt_disable_FC" != yes; then
  10851. + # Code to be used in simple compile tests
  10852. + lt_simple_compile_test_code="\
  10853. + subroutine t
  10854. + return
  10855. + end
  10856. +"
  10857. +
  10858. + # Code to be used in simple link tests
  10859. + lt_simple_link_test_code="\
  10860. + program t
  10861. + end
  10862. +"
  10863. +
  10864. + # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  10865. + _LT_TAG_COMPILER
  10866. +
  10867. + # save warnings/boilerplate of simple test code
  10868. + _LT_COMPILER_BOILERPLATE
  10869. + _LT_LINKER_BOILERPLATE
  10870. +
  10871. + # Allow CC to be a program name with arguments.
  10872. + lt_save_CC="$CC"
  10873. + lt_save_GCC=$GCC
  10874. + CC=${FC-"f95"}
  10875. + compiler=$CC
  10876. + GCC=$ac_cv_fc_compiler_gnu
  10877. +
  10878. + _LT_TAGVAR(compiler, $1)=$CC
  10879. + _LT_CC_BASENAME([$compiler])
  10880. +
  10881. + if test -n "$compiler"; then
  10882. + AC_MSG_CHECKING([if libtool supports shared libraries])
  10883. + AC_MSG_RESULT([$can_build_shared])
  10884. +
  10885. + AC_MSG_CHECKING([whether to build shared libraries])
  10886. + test "$can_build_shared" = "no" && enable_shared=no
  10887. +
  10888. + # On AIX, shared libraries and static libraries use the same namespace, and
  10889. + # are all built from PIC.
  10890. + case $host_os in
  10891. + aix3*)
  10892. + test "$enable_shared" = yes && enable_static=no
  10893. + if test -n "$RANLIB"; then
  10894. + archive_cmds="$archive_cmds~\$RANLIB \$lib"
  10895. + postinstall_cmds='$RANLIB $lib'
  10896. + fi
  10897. + ;;
  10898. + aix[[4-9]]*)
  10899. + if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  10900. + test "$enable_shared" = yes && enable_static=no
  10901. + fi
  10902. + ;;
  10903. + esac
  10904. + AC_MSG_RESULT([$enable_shared])
  10905. +
  10906. + AC_MSG_CHECKING([whether to build static libraries])
  10907. + # Make sure either enable_shared or enable_static is yes.
  10908. + test "$enable_shared" = yes || enable_static=yes
  10909. + AC_MSG_RESULT([$enable_static])
  10910. +
  10911. + _LT_TAGVAR(GCC, $1)="$ac_cv_fc_compiler_gnu"
  10912. + _LT_TAGVAR(LD, $1)="$LD"
  10913. +
  10914. + ## CAVEAT EMPTOR:
  10915. + ## There is no encapsulation within the following macros, do not change
  10916. + ## the running order or otherwise move them around unless you know exactly
  10917. + ## what you are doing...
  10918. + _LT_SYS_HIDDEN_LIBDEPS($1)
  10919. + _LT_COMPILER_PIC($1)
  10920. + _LT_COMPILER_C_O($1)
  10921. + _LT_COMPILER_FILE_LOCKS($1)
  10922. + _LT_LINKER_SHLIBS($1)
  10923. + _LT_SYS_DYNAMIC_LINKER($1)
  10924. + _LT_LINKER_HARDCODE_LIBPATH($1)
  10925. +
  10926. + _LT_CONFIG($1)
  10927. + fi # test -n "$compiler"
  10928. +
  10929. + GCC=$lt_save_GCC
  10930. + CC="$lt_save_CC"
  10931. +fi # test "$_lt_disable_FC" != yes
  10932. +
  10933. +AC_LANG_POP
  10934. +])# _LT_LANG_FC_CONFIG
  10935. +
  10936. +
  10937. +# _LT_LANG_GCJ_CONFIG([TAG])
  10938. +# --------------------------
  10939. +# Ensure that the configuration variables for the GNU Java Compiler compiler
  10940. +# are suitably defined. These variables are subsequently used by _LT_CONFIG
  10941. +# to write the compiler configuration to `libtool'.
  10942. +m4_defun([_LT_LANG_GCJ_CONFIG],
  10943. +[AC_REQUIRE([LT_PROG_GCJ])dnl
  10944. +AC_LANG_SAVE
  10945. - case $host_os in
  10946. - aix*)
  10947. - # All AIX code is PIC.
  10948. - if test "$host_cpu" = ia64; then
  10949. - # AIX 5 now supports IA64 processor
  10950. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  10951. - fi
  10952. - ;;
  10953. +# Source file extension for Java test sources.
  10954. +ac_ext=java
  10955. - amigaos*)
  10956. - # FIXME: we need at least 68020 code to build shared libraries, but
  10957. - # adding the `-m68020' flag to GCC prevents building anything better,
  10958. - # like `-m68040'.
  10959. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
  10960. - ;;
  10961. +# Object file extension for compiled Java test sources.
  10962. +objext=o
  10963. +_LT_TAGVAR(objext, $1)=$objext
  10964. - beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  10965. - # PIC is the default for these OSes.
  10966. - ;;
  10967. +# Code to be used in simple compile tests
  10968. +lt_simple_compile_test_code="class foo {}"
  10969. - mingw* | pw32* | os2*)
  10970. - # This hack is so that the source file can tell whether it is being
  10971. - # built for inclusion in a dll (and should export symbols for example).
  10972. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
  10973. - ;;
  10974. +# Code to be used in simple link tests
  10975. +lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }'
  10976. - darwin* | rhapsody*)
  10977. - # PIC is the default on this platform
  10978. - # Common symbols not allowed in MH_DYLIB files
  10979. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
  10980. - ;;
  10981. +# ltmain only uses $CC for tagged configurations so make sure $CC is set.
  10982. +_LT_TAG_COMPILER
  10983. - interix3*)
  10984. - # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  10985. - # Instead, we relocate shared libraries at runtime.
  10986. - ;;
  10987. +# save warnings/boilerplate of simple test code
  10988. +_LT_COMPILER_BOILERPLATE
  10989. +_LT_LINKER_BOILERPLATE
  10990. - msdosdjgpp*)
  10991. - # Just because we use GCC doesn't mean we suddenly get shared libraries
  10992. - # on systems that don't support them.
  10993. - _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
  10994. - enable_shared=no
  10995. - ;;
  10996. +# Allow CC to be a program name with arguments.
  10997. +lt_save_CC="$CC"
  10998. +lt_save_GCC=$GCC
  10999. +GCC=yes
  11000. +CC=${GCJ-"gcj"}
  11001. +compiler=$CC
  11002. +_LT_TAGVAR(compiler, $1)=$CC
  11003. +_LT_TAGVAR(LD, $1)="$LD"
  11004. +_LT_CC_BASENAME([$compiler])
  11005. - sysv4*MP*)
  11006. - if test -d /usr/nec; then
  11007. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
  11008. - fi
  11009. - ;;
  11010. +# GCJ did not exist at the time GCC didn't implicitly link libc in.
  11011. +_LT_TAGVAR(archive_cmds_need_lc, $1)=no
  11012. - hpux*)
  11013. - # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  11014. - # not for PA HP-UX.
  11015. - case $host_cpu in
  11016. - hppa*64*|ia64*)
  11017. - # +Z the default
  11018. - ;;
  11019. - *)
  11020. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  11021. - ;;
  11022. - esac
  11023. - ;;
  11024. +_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
  11025. - *)
  11026. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  11027. - ;;
  11028. - esac
  11029. - else
  11030. - # PORTME Check for flag to pass linker flags through the system compiler.
  11031. - case $host_os in
  11032. - aix*)
  11033. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  11034. - if test "$host_cpu" = ia64; then
  11035. - # AIX 5 now supports IA64 processor
  11036. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  11037. - else
  11038. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
  11039. +if test -n "$compiler"; then
  11040. + _LT_COMPILER_NO_RTTI($1)
  11041. + _LT_COMPILER_PIC($1)
  11042. + _LT_COMPILER_C_O($1)
  11043. + _LT_COMPILER_FILE_LOCKS($1)
  11044. + _LT_LINKER_SHLIBS($1)
  11045. + _LT_LINKER_HARDCODE_LIBPATH($1)
  11046. +
  11047. + _LT_CONFIG($1)
  11048. +fi
  11049. +
  11050. +AC_LANG_RESTORE
  11051. +
  11052. +GCC=$lt_save_GCC
  11053. +CC="$lt_save_CC"
  11054. +])# _LT_LANG_GCJ_CONFIG
  11055. +
  11056. +
  11057. +# _LT_LANG_RC_CONFIG([TAG])
  11058. +# -------------------------
  11059. +# Ensure that the configuration variables for the Windows resource compiler
  11060. +# are suitably defined. These variables are subsequently used by _LT_CONFIG
  11061. +# to write the compiler configuration to `libtool'.
  11062. +m4_defun([_LT_LANG_RC_CONFIG],
  11063. +[AC_REQUIRE([LT_PROG_RC])dnl
  11064. +AC_LANG_SAVE
  11065. +
  11066. +# Source file extension for RC test sources.
  11067. +ac_ext=rc
  11068. +
  11069. +# Object file extension for compiled RC test sources.
  11070. +objext=o
  11071. +_LT_TAGVAR(objext, $1)=$objext
  11072. +
  11073. +# Code to be used in simple compile tests
  11074. +lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
  11075. +
  11076. +# Code to be used in simple link tests
  11077. +lt_simple_link_test_code="$lt_simple_compile_test_code"
  11078. +
  11079. +# ltmain only uses $CC for tagged configurations so make sure $CC is set.
  11080. +_LT_TAG_COMPILER
  11081. +
  11082. +# save warnings/boilerplate of simple test code
  11083. +_LT_COMPILER_BOILERPLATE
  11084. +_LT_LINKER_BOILERPLATE
  11085. +
  11086. +# Allow CC to be a program name with arguments.
  11087. +lt_save_CC="$CC"
  11088. +lt_save_GCC=$GCC
  11089. +GCC=
  11090. +CC=${RC-"windres"}
  11091. +compiler=$CC
  11092. +_LT_TAGVAR(compiler, $1)=$CC
  11093. +_LT_CC_BASENAME([$compiler])
  11094. +_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
  11095. +
  11096. +if test -n "$compiler"; then
  11097. + :
  11098. + _LT_CONFIG($1)
  11099. +fi
  11100. +
  11101. +GCC=$lt_save_GCC
  11102. +AC_LANG_RESTORE
  11103. +CC="$lt_save_CC"
  11104. +])# _LT_LANG_RC_CONFIG
  11105. +
  11106. +
  11107. +# LT_PROG_GCJ
  11108. +# -----------
  11109. +AC_DEFUN([LT_PROG_GCJ],
  11110. +[m4_ifdef([AC_PROG_GCJ], [AC_PROG_GCJ],
  11111. + [m4_ifdef([A][M_PROG_GCJ], [A][M_PROG_GCJ],
  11112. + [AC_CHECK_TOOL(GCJ, gcj,)
  11113. + test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
  11114. + AC_SUBST(GCJFLAGS)])])[]dnl
  11115. +])
  11116. +
  11117. +# Old name:
  11118. +AU_ALIAS([LT_AC_PROG_GCJ], [LT_PROG_GCJ])
  11119. +dnl aclocal-1.4 backwards compatibility:
  11120. +dnl AC_DEFUN([LT_AC_PROG_GCJ], [])
  11121. +
  11122. +
  11123. +# LT_PROG_RC
  11124. +# ----------
  11125. +AC_DEFUN([LT_PROG_RC],
  11126. +[AC_CHECK_TOOL(RC, windres,)
  11127. +])
  11128. +
  11129. +# Old name:
  11130. +AU_ALIAS([LT_AC_PROG_RC], [LT_PROG_RC])
  11131. +dnl aclocal-1.4 backwards compatibility:
  11132. +dnl AC_DEFUN([LT_AC_PROG_RC], [])
  11133. +
  11134. +
  11135. +# _LT_DECL_EGREP
  11136. +# --------------
  11137. +# If we don't have a new enough Autoconf to choose the best grep
  11138. +# available, choose the one first in the user's PATH.
  11139. +m4_defun([_LT_DECL_EGREP],
  11140. +[AC_REQUIRE([AC_PROG_EGREP])dnl
  11141. +AC_REQUIRE([AC_PROG_FGREP])dnl
  11142. +test -z "$GREP" && GREP=grep
  11143. +_LT_DECL([], [GREP], [1], [A grep program that handles long lines])
  11144. +_LT_DECL([], [EGREP], [1], [An ERE matcher])
  11145. +_LT_DECL([], [FGREP], [1], [A literal string matcher])
  11146. +dnl Non-bleeding-edge autoconf doesn't subst GREP, so do it here too
  11147. +AC_SUBST([GREP])
  11148. +])
  11149. +
  11150. +
  11151. +# _LT_DECL_OBJDUMP
  11152. +# --------------
  11153. +# If we don't have a new enough Autoconf to choose the best objdump
  11154. +# available, choose the one first in the user's PATH.
  11155. +m4_defun([_LT_DECL_OBJDUMP],
  11156. +[AC_CHECK_TOOL(OBJDUMP, objdump, false)
  11157. +test -z "$OBJDUMP" && OBJDUMP=objdump
  11158. +_LT_DECL([], [OBJDUMP], [1], [An object symbol dumper])
  11159. +AC_SUBST([OBJDUMP])
  11160. +])
  11161. +
  11162. +
  11163. +# _LT_DECL_SED
  11164. +# ------------
  11165. +# Check for a fully-functional sed program, that truncates
  11166. +# as few characters as possible. Prefer GNU sed if found.
  11167. +m4_defun([_LT_DECL_SED],
  11168. +[AC_PROG_SED
  11169. +test -z "$SED" && SED=sed
  11170. +Xsed="$SED -e 1s/^X//"
  11171. +_LT_DECL([], [SED], [1], [A sed program that does not truncate output])
  11172. +_LT_DECL([], [Xsed], ["\$SED -e 1s/^X//"],
  11173. + [Sed that helps us avoid accidentally triggering echo(1) options like -n])
  11174. +])# _LT_DECL_SED
  11175. +
  11176. +m4_ifndef([AC_PROG_SED], [
  11177. +# NOTE: This macro has been submitted for inclusion into #
  11178. +# GNU Autoconf as AC_PROG_SED. When it is available in #
  11179. +# a released version of Autoconf we should remove this #
  11180. +# macro and use it instead. #
  11181. +
  11182. +m4_defun([AC_PROG_SED],
  11183. +[AC_MSG_CHECKING([for a sed that does not truncate output])
  11184. +AC_CACHE_VAL(lt_cv_path_SED,
  11185. +[# Loop through the user's path and test for sed and gsed.
  11186. +# Then use that list of sed's as ones to test for truncation.
  11187. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11188. +for as_dir in $PATH
  11189. +do
  11190. + IFS=$as_save_IFS
  11191. + test -z "$as_dir" && as_dir=.
  11192. + for lt_ac_prog in sed gsed; do
  11193. + for ac_exec_ext in '' $ac_executable_extensions; do
  11194. + if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
  11195. + lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
  11196. fi
  11197. - ;;
  11198. - darwin*)
  11199. - # PIC is the default on this platform
  11200. - # Common symbols not allowed in MH_DYLIB files
  11201. - case $cc_basename in
  11202. - xlc*)
  11203. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-qnocommon'
  11204. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  11205. - ;;
  11206. - esac
  11207. - ;;
  11208. + done
  11209. + done
  11210. +done
  11211. +IFS=$as_save_IFS
  11212. +lt_ac_max=0
  11213. +lt_ac_count=0
  11214. +# Add /usr/xpg4/bin/sed as it is typically found on Solaris
  11215. +# along with /bin/sed that truncates output.
  11216. +for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
  11217. + test ! -f $lt_ac_sed && continue
  11218. + cat /dev/null > conftest.in
  11219. + lt_ac_count=0
  11220. + echo $ECHO_N "0123456789$ECHO_C" >conftest.in
  11221. + # Check for GNU sed and select it if it is found.
  11222. + if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
  11223. + lt_cv_path_SED=$lt_ac_sed
  11224. + break
  11225. + fi
  11226. + while true; do
  11227. + cat conftest.in conftest.in >conftest.tmp
  11228. + mv conftest.tmp conftest.in
  11229. + cp conftest.in conftest.nl
  11230. + echo >>conftest.nl
  11231. + $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
  11232. + cmp -s conftest.out conftest.nl || break
  11233. + # 10000 chars as input seems more than enough
  11234. + test $lt_ac_count -gt 10 && break
  11235. + lt_ac_count=`expr $lt_ac_count + 1`
  11236. + if test $lt_ac_count -gt $lt_ac_max; then
  11237. + lt_ac_max=$lt_ac_count
  11238. + lt_cv_path_SED=$lt_ac_sed
  11239. + fi
  11240. + done
  11241. +done
  11242. +])
  11243. +SED=$lt_cv_path_SED
  11244. +AC_SUBST([SED])
  11245. +AC_MSG_RESULT([$SED])
  11246. +])#AC_PROG_SED
  11247. +])#m4_ifndef
  11248. - mingw* | pw32* | os2*)
  11249. - # This hack is so that the source file can tell whether it is being
  11250. - # built for inclusion in a dll (and should export symbols for example).
  11251. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
  11252. - ;;
  11253. +# Old name:
  11254. +AU_ALIAS([LT_AC_PROG_SED], [AC_PROG_SED])
  11255. +dnl aclocal-1.4 backwards compatibility:
  11256. +dnl AC_DEFUN([LT_AC_PROG_SED], [])
  11257. - hpux9* | hpux10* | hpux11*)
  11258. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  11259. - # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  11260. - # not for PA HP-UX.
  11261. - case $host_cpu in
  11262. - hppa*64*|ia64*)
  11263. - # +Z the default
  11264. - ;;
  11265. - *)
  11266. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
  11267. - ;;
  11268. - esac
  11269. - # Is there a better lt_prog_compiler_static that works with the bundled CC?
  11270. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
  11271. - ;;
  11272. - irix5* | irix6* | nonstopux*)
  11273. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  11274. - # PIC (with -KPIC) is the default.
  11275. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  11276. - ;;
  11277. +# _LT_CHECK_SHELL_FEATURES
  11278. +# ------------------------
  11279. +# Find out whether the shell is Bourne or XSI compatible,
  11280. +# or has some other useful features.
  11281. +m4_defun([_LT_CHECK_SHELL_FEATURES],
  11282. +[AC_MSG_CHECKING([whether the shell understands some XSI constructs])
  11283. +# Try some XSI features
  11284. +xsi_shell=no
  11285. +( _lt_dummy="a/b/c"
  11286. + test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
  11287. + = c,a/b,, \
  11288. + && eval 'test $(( 1 + 1 )) -eq 2 \
  11289. + && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
  11290. + && xsi_shell=yes
  11291. +AC_MSG_RESULT([$xsi_shell])
  11292. +_LT_CONFIG_LIBTOOL_INIT([xsi_shell='$xsi_shell'])
  11293. +
  11294. +AC_MSG_CHECKING([whether the shell understands "+="])
  11295. +lt_shell_append=no
  11296. +( foo=bar; set foo baz; eval "$[1]+=\$[2]" && test "$foo" = barbaz ) \
  11297. + >/dev/null 2>&1 \
  11298. + && lt_shell_append=yes
  11299. +AC_MSG_RESULT([$lt_shell_append])
  11300. +_LT_CONFIG_LIBTOOL_INIT([lt_shell_append='$lt_shell_append'])
  11301. - newsos6)
  11302. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  11303. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  11304. - ;;
  11305. +if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  11306. + lt_unset=unset
  11307. +else
  11308. + lt_unset=false
  11309. +fi
  11310. +_LT_DECL([], [lt_unset], [0], [whether the shell understands "unset"])dnl
  11311. - linux*)
  11312. - case $cc_basename in
  11313. - icc* | ecc*)
  11314. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  11315. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  11316. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
  11317. - ;;
  11318. - pgcc* | pgf77* | pgf90* | pgf95*)
  11319. - # Portland Group compilers (*not* the Pentium gcc compiler,
  11320. - # which looks to be a dead project)
  11321. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  11322. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
  11323. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  11324. - ;;
  11325. - ccc*)
  11326. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  11327. - # All Alpha code is PIC.
  11328. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  11329. - ;;
  11330. - esac
  11331. - ;;
  11332. +# test EBCDIC or ASCII
  11333. +case `echo X|tr X '\101'` in
  11334. + A) # ASCII based system
  11335. + # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  11336. + lt_SP2NL='tr \040 \012'
  11337. + lt_NL2SP='tr \015\012 \040\040'
  11338. + ;;
  11339. + *) # EBCDIC based system
  11340. + lt_SP2NL='tr \100 \n'
  11341. + lt_NL2SP='tr \r\n \100\100'
  11342. + ;;
  11343. +esac
  11344. +_LT_DECL([SP2NL], [lt_SP2NL], [1], [turn spaces into newlines])dnl
  11345. +_LT_DECL([NL2SP], [lt_NL2SP], [1], [turn newlines into spaces])dnl
  11346. +])# _LT_CHECK_SHELL_FEATURES
  11347. - osf3* | osf4* | osf5*)
  11348. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  11349. - # All OSF/1 code is PIC.
  11350. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  11351. - ;;
  11352. - solaris*)
  11353. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  11354. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  11355. - case $cc_basename in
  11356. - f77* | f90* | f95*)
  11357. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';;
  11358. - *)
  11359. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';;
  11360. - esac
  11361. - ;;
  11362. +# _LT_PROG_XSI_SHELLFNS
  11363. +# ---------------------
  11364. +# Bourne and XSI compatible variants of some useful shell functions.
  11365. +m4_defun([_LT_PROG_XSI_SHELLFNS],
  11366. +[case $xsi_shell in
  11367. + yes)
  11368. + cat << \_LT_EOF >> "$cfgfile"
  11369. +
  11370. +# func_dirname file append nondir_replacement
  11371. +# Compute the dirname of FILE. If nonempty, add APPEND to the result,
  11372. +# otherwise set result to NONDIR_REPLACEMENT.
  11373. +func_dirname ()
  11374. +{
  11375. + case ${1} in
  11376. + */*) func_dirname_result="${1%/*}${2}" ;;
  11377. + * ) func_dirname_result="${3}" ;;
  11378. + esac
  11379. +}
  11380. - sunos4*)
  11381. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
  11382. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
  11383. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  11384. - ;;
  11385. +# func_basename file
  11386. +func_basename ()
  11387. +{
  11388. + func_basename_result="${1##*/}"
  11389. +}
  11390. - sysv4 | sysv4.2uw2* | sysv4.3*)
  11391. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  11392. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  11393. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  11394. - ;;
  11395. +# func_dirname_and_basename file append nondir_replacement
  11396. +# perform func_basename and func_dirname in a single function
  11397. +# call:
  11398. +# dirname: Compute the dirname of FILE. If nonempty,
  11399. +# add APPEND to the result, otherwise set result
  11400. +# to NONDIR_REPLACEMENT.
  11401. +# value returned in "$func_dirname_result"
  11402. +# basename: Compute filename of FILE.
  11403. +# value retuned in "$func_basename_result"
  11404. +# Implementation must be kept synchronized with func_dirname
  11405. +# and func_basename. For efficiency, we do not delegate to
  11406. +# those functions but instead duplicate the functionality here.
  11407. +func_dirname_and_basename ()
  11408. +{
  11409. + case ${1} in
  11410. + */*) func_dirname_result="${1%/*}${2}" ;;
  11411. + * ) func_dirname_result="${3}" ;;
  11412. + esac
  11413. + func_basename_result="${1##*/}"
  11414. +}
  11415. +
  11416. +# func_stripname prefix suffix name
  11417. +# strip PREFIX and SUFFIX off of NAME.
  11418. +# PREFIX and SUFFIX must not contain globbing or regex special
  11419. +# characters, hashes, percent signs, but SUFFIX may contain a leading
  11420. +# dot (in which case that matches only a dot).
  11421. +func_stripname ()
  11422. +{
  11423. + # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
  11424. + # positional parameters, so assign one to ordinary parameter first.
  11425. + func_stripname_result=${3}
  11426. + func_stripname_result=${func_stripname_result#"${1}"}
  11427. + func_stripname_result=${func_stripname_result%"${2}"}
  11428. +}
  11429. - sysv4*MP*)
  11430. - if test -d /usr/nec ;then
  11431. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic'
  11432. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  11433. - fi
  11434. - ;;
  11435. +# func_opt_split
  11436. +func_opt_split ()
  11437. +{
  11438. + func_opt_split_opt=${1%%=*}
  11439. + func_opt_split_arg=${1#*=}
  11440. +}
  11441. - sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  11442. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  11443. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  11444. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  11445. - ;;
  11446. +# func_lo2o object
  11447. +func_lo2o ()
  11448. +{
  11449. + case ${1} in
  11450. + *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
  11451. + *) func_lo2o_result=${1} ;;
  11452. + esac
  11453. +}
  11454. - unicos*)
  11455. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  11456. - _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
  11457. - ;;
  11458. +# func_xform libobj-or-source
  11459. +func_xform ()
  11460. +{
  11461. + func_xform_result=${1%.*}.lo
  11462. +}
  11463. - uts4*)
  11464. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  11465. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  11466. - ;;
  11467. +# func_arith arithmetic-term...
  11468. +func_arith ()
  11469. +{
  11470. + func_arith_result=$(( $[*] ))
  11471. +}
  11472. - *)
  11473. - _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
  11474. - ;;
  11475. - esac
  11476. - fi
  11477. -])
  11478. -AC_MSG_RESULT([$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)])
  11479. +# func_len string
  11480. +# STRING may not start with a hyphen.
  11481. +func_len ()
  11482. +{
  11483. + func_len_result=${#1}
  11484. +}
  11485. -#
  11486. -# Check to make sure the PIC flag actually works.
  11487. -#
  11488. -if test -n "$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)"; then
  11489. - AC_LIBTOOL_COMPILER_OPTION([if $compiler PIC flag $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) works],
  11490. - _LT_AC_TAGVAR(lt_prog_compiler_pic_works, $1),
  11491. - [$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])], [],
  11492. - [case $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) in
  11493. - "" | " "*) ;;
  11494. - *) _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)" ;;
  11495. - esac],
  11496. - [_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
  11497. - _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no])
  11498. -fi
  11499. -case $host_os in
  11500. - # For platforms which do not support PIC, -DPIC is meaningless:
  11501. - *djgpp*)
  11502. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
  11503. - ;;
  11504. - *)
  11505. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])"
  11506. +_LT_EOF
  11507. ;;
  11508. -esac
  11509. + *) # Bourne compatible functions.
  11510. + cat << \_LT_EOF >> "$cfgfile"
  11511. -#
  11512. -# Check to make sure the static flag actually works.
  11513. -#
  11514. -wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_AC_TAGVAR(lt_prog_compiler_static, $1)\"
  11515. -AC_LIBTOOL_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works],
  11516. - _LT_AC_TAGVAR(lt_prog_compiler_static_works, $1),
  11517. - $lt_tmp_static_flag,
  11518. - [],
  11519. - [_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=])
  11520. -])
  11521. +# func_dirname file append nondir_replacement
  11522. +# Compute the dirname of FILE. If nonempty, add APPEND to the result,
  11523. +# otherwise set result to NONDIR_REPLACEMENT.
  11524. +func_dirname ()
  11525. +{
  11526. + # Extract subdirectory from the argument.
  11527. + func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
  11528. + if test "X$func_dirname_result" = "X${1}"; then
  11529. + func_dirname_result="${3}"
  11530. + else
  11531. + func_dirname_result="$func_dirname_result${2}"
  11532. + fi
  11533. +}
  11534. +# func_basename file
  11535. +func_basename ()
  11536. +{
  11537. + func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
  11538. +}
  11539. -# AC_LIBTOOL_PROG_LD_SHLIBS([TAGNAME])
  11540. -# ------------------------------------
  11541. -# See if the linker supports building shared libraries.
  11542. -AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS],
  11543. -[AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
  11544. -ifelse([$1],[CXX],[
  11545. - _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  11546. - case $host_os in
  11547. - aix4* | aix5*)
  11548. - # If we're using GNU nm, then we don't want the "-C" option.
  11549. - # -C means demangle to AIX nm, but means don't demangle with GNU nm
  11550. - if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
  11551. - _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'
  11552. - else
  11553. - _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'
  11554. - fi
  11555. - ;;
  11556. - pw32*)
  11557. - _LT_AC_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
  11558. - ;;
  11559. - cygwin* | mingw*)
  11560. - _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'
  11561. - ;;
  11562. - *)
  11563. - _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  11564. - ;;
  11565. - esac
  11566. -],[
  11567. - runpath_var=
  11568. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=
  11569. - _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
  11570. - _LT_AC_TAGVAR(archive_cmds, $1)=
  11571. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)=
  11572. - _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)=
  11573. - _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1)=
  11574. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
  11575. - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
  11576. - _LT_AC_TAGVAR(thread_safe_flag_spec, $1)=
  11577. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
  11578. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
  11579. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
  11580. - _LT_AC_TAGVAR(hardcode_direct, $1)=no
  11581. - _LT_AC_TAGVAR(hardcode_minus_L, $1)=no
  11582. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
  11583. - _LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
  11584. - _LT_AC_TAGVAR(hardcode_automatic, $1)=no
  11585. - _LT_AC_TAGVAR(module_cmds, $1)=
  11586. - _LT_AC_TAGVAR(module_expsym_cmds, $1)=
  11587. - _LT_AC_TAGVAR(always_export_symbols, $1)=no
  11588. - _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  11589. - # include_expsyms should be a list of space-separated symbols to be *always*
  11590. - # included in the symbol list
  11591. - _LT_AC_TAGVAR(include_expsyms, $1)=
  11592. - # exclude_expsyms can be an extended regexp of symbols to exclude
  11593. - # it will be wrapped by ` (' and `)$', so one must not match beginning or
  11594. - # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  11595. - # as well as any symbol that contains `d'.
  11596. - _LT_AC_TAGVAR(exclude_expsyms, $1)="_GLOBAL_OFFSET_TABLE_"
  11597. - # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  11598. - # platforms (ab)use it in PIC code, but their linkers get confused if
  11599. - # the symbol is explicitly referenced. Since portable code cannot
  11600. - # rely on this symbol name, it's probably fine to never include it in
  11601. - # preloaded symbol tables.
  11602. - extract_expsyms_cmds=
  11603. - # Just being paranoid about ensuring that cc_basename is set.
  11604. - _LT_CC_BASENAME([$compiler])
  11605. - case $host_os in
  11606. - cygwin* | mingw* | pw32*)
  11607. - # FIXME: the MSVC++ port hasn't been tested in a loooong time
  11608. - # When not using gcc, we currently assume that we are using
  11609. - # Microsoft Visual C++.
  11610. - if test "$GCC" != yes; then
  11611. - with_gnu_ld=no
  11612. - fi
  11613. - ;;
  11614. - interix*)
  11615. - # we just hope/assume this is gcc and not c89 (= MSVC++)
  11616. - with_gnu_ld=yes
  11617. - ;;
  11618. - openbsd*)
  11619. - with_gnu_ld=no
  11620. - ;;
  11621. +dnl func_dirname_and_basename
  11622. +dnl A portable version of this function is already defined in general.m4sh
  11623. +dnl so there is no need for it here.
  11624. +
  11625. +# func_stripname prefix suffix name
  11626. +# strip PREFIX and SUFFIX off of NAME.
  11627. +# PREFIX and SUFFIX must not contain globbing or regex special
  11628. +# characters, hashes, percent signs, but SUFFIX may contain a leading
  11629. +# dot (in which case that matches only a dot).
  11630. +# func_strip_suffix prefix name
  11631. +func_stripname ()
  11632. +{
  11633. + case ${2} in
  11634. + .*) func_stripname_result=`$ECHO "X${3}" \
  11635. + | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
  11636. + *) func_stripname_result=`$ECHO "X${3}" \
  11637. + | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
  11638. esac
  11639. +}
  11640. - _LT_AC_TAGVAR(ld_shlibs, $1)=yes
  11641. - if test "$with_gnu_ld" = yes; then
  11642. - # If archive_cmds runs LD, not CC, wlarc should be empty
  11643. - wlarc='${wl}'
  11644. +# sed scripts:
  11645. +my_sed_long_opt='1s/^\(-[[^=]]*\)=.*/\1/;q'
  11646. +my_sed_long_arg='1s/^-[[^=]]*=//'
  11647. - # Set some defaults for GNU ld with shared library support. These
  11648. - # are reset later if shared libraries are not supported. Putting them
  11649. - # here allows them to be overridden if necessary.
  11650. - runpath_var=LD_RUN_PATH
  11651. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
  11652. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  11653. - # ancient GNU ld didn't support --whole-archive et. al.
  11654. - if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
  11655. - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  11656. - else
  11657. - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
  11658. - fi
  11659. - supports_anon_versioning=no
  11660. - case `$LD -v 2>/dev/null` in
  11661. - *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11
  11662. - *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  11663. - *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  11664. - *\ 2.11.*) ;; # other 2.11 versions
  11665. - *) supports_anon_versioning=yes ;;
  11666. - esac
  11667. +# func_opt_split
  11668. +func_opt_split ()
  11669. +{
  11670. + func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
  11671. + func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
  11672. +}
  11673. - # See if GNU ld supports shared libraries.
  11674. - case $host_os in
  11675. - aix3* | aix4* | aix5*)
  11676. - # On AIX/PPC, the GNU linker is very broken
  11677. - if test "$host_cpu" != ia64; then
  11678. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  11679. - cat <<EOF 1>&2
  11680. +# func_lo2o object
  11681. +func_lo2o ()
  11682. +{
  11683. + func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
  11684. +}
  11685. -*** Warning: the GNU linker, at least up to release 2.9.1, is reported
  11686. -*** to be unable to reliably create shared libraries on AIX.
  11687. -*** Therefore, libtool is disabling shared libraries support. If you
  11688. -*** really care for shared libraries, you may want to modify your PATH
  11689. -*** so that a non-GNU linker is found, and then restart.
  11690. +# func_xform libobj-or-source
  11691. +func_xform ()
  11692. +{
  11693. + func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[[^.]]*$/.lo/'`
  11694. +}
  11695. -EOF
  11696. - fi
  11697. - ;;
  11698. +# func_arith arithmetic-term...
  11699. +func_arith ()
  11700. +{
  11701. + func_arith_result=`expr "$[@]"`
  11702. +}
  11703. - amigaos*)
  11704. - _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)'
  11705. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  11706. - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
  11707. -
  11708. - # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
  11709. - # that the semantics of dynamic libraries on AmigaOS, at least up
  11710. - # to version 4, is to share data among multiple programs linked
  11711. - # with the same dynamic library. Since this doesn't match the
  11712. - # behavior of shared libraries on other platforms, we can't use
  11713. - # them.
  11714. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  11715. - ;;
  11716. +# func_len string
  11717. +# STRING may not start with a hyphen.
  11718. +func_len ()
  11719. +{
  11720. + func_len_result=`expr "$[1]" : ".*" 2>/dev/null || echo $max_cmd_len`
  11721. +}
  11722. - beos*)
  11723. - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  11724. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
  11725. - # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  11726. - # support --undefined. This deserves some investigation. FIXME
  11727. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11728. - else
  11729. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  11730. - fi
  11731. - ;;
  11732. +_LT_EOF
  11733. +esac
  11734. - cygwin* | mingw* | pw32*)
  11735. - # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
  11736. - # as there is no search path for DLLs.
  11737. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  11738. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
  11739. - _LT_AC_TAGVAR(always_export_symbols, $1)=no
  11740. - _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
  11741. - _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'
  11742. +case $lt_shell_append in
  11743. + yes)
  11744. + cat << \_LT_EOF >> "$cfgfile"
  11745. +
  11746. +# func_append var value
  11747. +# Append VALUE to the end of shell variable VAR.
  11748. +func_append ()
  11749. +{
  11750. + eval "$[1]+=\$[2]"
  11751. +}
  11752. +_LT_EOF
  11753. + ;;
  11754. + *)
  11755. + cat << \_LT_EOF >> "$cfgfile"
  11756. - if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
  11757. - _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'
  11758. - # If the export-symbols file already is a .def file (1st line
  11759. - # is EXPORTS), use it as is; otherwise, prepend...
  11760. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  11761. - cp $export_symbols $output_objdir/$soname.def;
  11762. - else
  11763. - echo EXPORTS > $output_objdir/$soname.def;
  11764. - cat $export_symbols >> $output_objdir/$soname.def;
  11765. - fi~
  11766. - $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  11767. - else
  11768. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  11769. - fi
  11770. - ;;
  11771. +# func_append var value
  11772. +# Append VALUE to the end of shell variable VAR.
  11773. +func_append ()
  11774. +{
  11775. + eval "$[1]=\$$[1]\$[2]"
  11776. +}
  11777. - interix3*)
  11778. - _LT_AC_TAGVAR(hardcode_direct, $1)=no
  11779. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  11780. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  11781. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  11782. - # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  11783. - # Instead, shared libraries are loaded at an image base (0x10000000 by
  11784. - # default) and relocated if they conflict, which is a slow very memory
  11785. - # consuming and fragmenting process. To avoid this, we pick a random,
  11786. - # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  11787. - # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  11788. - _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'
  11789. - _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'
  11790. - ;;
  11791. +_LT_EOF
  11792. + ;;
  11793. + esac
  11794. +])
  11795. - linux*)
  11796. - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  11797. - tmp_addflag=
  11798. - case $cc_basename,$host_cpu in
  11799. - pgcc*) # Portland Group C compiler
  11800. - _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'
  11801. - tmp_addflag=' $pic_flag'
  11802. - ;;
  11803. - pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
  11804. - _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'
  11805. - tmp_addflag=' $pic_flag -Mnomain' ;;
  11806. - ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  11807. - tmp_addflag=' -i_dynamic' ;;
  11808. - efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  11809. - tmp_addflag=' -i_dynamic -nofor_main' ;;
  11810. - ifc* | ifort*) # Intel Fortran compiler
  11811. - tmp_addflag=' -nofor_main' ;;
  11812. - esac
  11813. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11814. +# Helper functions for option handling. -*- Autoconf -*-
  11815. +#
  11816. +# Copyright (C) 2004, 2005, 2007, 2008 Free Software Foundation, Inc.
  11817. +# Written by Gary V. Vaughan, 2004
  11818. +#
  11819. +# This file is free software; the Free Software Foundation gives
  11820. +# unlimited permission to copy and/or distribute it, with or without
  11821. +# modifications, as long as this notice is preserved.
  11822. - if test $supports_anon_versioning = yes; then
  11823. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $output_objdir/$libname.ver~
  11824. - cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  11825. - $echo "local: *; };" >> $output_objdir/$libname.ver~
  11826. - $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  11827. - fi
  11828. - else
  11829. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  11830. - fi
  11831. - ;;
  11832. +# serial 6 ltoptions.m4
  11833. - netbsd*)
  11834. - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  11835. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  11836. - wlarc=
  11837. - else
  11838. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11839. - _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'
  11840. - fi
  11841. - ;;
  11842. +# This is to help aclocal find these macros, as it can't see m4_define.
  11843. +AC_DEFUN([LTOPTIONS_VERSION], [m4_if([1])])
  11844. - solaris*)
  11845. - if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
  11846. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  11847. - cat <<EOF 1>&2
  11848. -*** Warning: The releases 2.8.* of the GNU linker cannot reliably
  11849. -*** create shared libraries on Solaris systems. Therefore, libtool
  11850. -*** is disabling shared libraries support. We urge you to upgrade GNU
  11851. -*** binutils to release 2.9.1 or newer. Another option is to modify
  11852. -*** your PATH or compiler configuration so that the native linker is
  11853. -*** used, and then restart.
  11854. +# _LT_MANGLE_OPTION(MACRO-NAME, OPTION-NAME)
  11855. +# ------------------------------------------
  11856. +m4_define([_LT_MANGLE_OPTION],
  11857. +[[_LT_OPTION_]m4_bpatsubst($1__$2, [[^a-zA-Z0-9_]], [_])])
  11858. -EOF
  11859. - elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  11860. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11861. - _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'
  11862. - else
  11863. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  11864. - fi
  11865. - ;;
  11866. - sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  11867. - case `$LD -v 2>&1` in
  11868. - *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*)
  11869. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  11870. - cat <<_LT_EOF 1>&2
  11871. +# _LT_SET_OPTION(MACRO-NAME, OPTION-NAME)
  11872. +# ---------------------------------------
  11873. +# Set option OPTION-NAME for macro MACRO-NAME, and if there is a
  11874. +# matching handler defined, dispatch to it. Other OPTION-NAMEs are
  11875. +# saved as a flag.
  11876. +m4_define([_LT_SET_OPTION],
  11877. +[m4_define(_LT_MANGLE_OPTION([$1], [$2]))dnl
  11878. +m4_ifdef(_LT_MANGLE_DEFUN([$1], [$2]),
  11879. + _LT_MANGLE_DEFUN([$1], [$2]),
  11880. + [m4_warning([Unknown $1 option `$2'])])[]dnl
  11881. +])
  11882. -*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  11883. -*** reliably create shared libraries on SCO systems. Therefore, libtool
  11884. -*** is disabling shared libraries support. We urge you to upgrade GNU
  11885. -*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  11886. -*** your PATH or compiler configuration so that the native linker is
  11887. -*** used, and then restart.
  11888. -_LT_EOF
  11889. - ;;
  11890. - *)
  11891. - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  11892. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
  11893. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
  11894. - _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'
  11895. - else
  11896. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  11897. - fi
  11898. - ;;
  11899. - esac
  11900. - ;;
  11901. +# _LT_IF_OPTION(MACRO-NAME, OPTION-NAME, IF-SET, [IF-NOT-SET])
  11902. +# ------------------------------------------------------------
  11903. +# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
  11904. +m4_define([_LT_IF_OPTION],
  11905. +[m4_ifdef(_LT_MANGLE_OPTION([$1], [$2]), [$3], [$4])])
  11906. - sunos4*)
  11907. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  11908. - wlarc=
  11909. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  11910. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  11911. - ;;
  11912. - *)
  11913. - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  11914. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11915. - _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'
  11916. - else
  11917. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  11918. - fi
  11919. - ;;
  11920. - esac
  11921. +# _LT_UNLESS_OPTIONS(MACRO-NAME, OPTION-LIST, IF-NOT-SET)
  11922. +# -------------------------------------------------------
  11923. +# Execute IF-NOT-SET unless all options in OPTION-LIST for MACRO-NAME
  11924. +# are set.
  11925. +m4_define([_LT_UNLESS_OPTIONS],
  11926. +[m4_foreach([_LT_Option], m4_split(m4_normalize([$2])),
  11927. + [m4_ifdef(_LT_MANGLE_OPTION([$1], _LT_Option),
  11928. + [m4_define([$0_found])])])[]dnl
  11929. +m4_ifdef([$0_found], [m4_undefine([$0_found])], [$3
  11930. +])[]dnl
  11931. +])
  11932. +
  11933. +
  11934. +# _LT_SET_OPTIONS(MACRO-NAME, OPTION-LIST)
  11935. +# ----------------------------------------
  11936. +# OPTION-LIST is a space-separated list of Libtool options associated
  11937. +# with MACRO-NAME. If any OPTION has a matching handler declared with
  11938. +# LT_OPTION_DEFINE, dispatch to that macro; otherwise complain about
  11939. +# the unknown option and exit.
  11940. +m4_defun([_LT_SET_OPTIONS],
  11941. +[# Set options
  11942. +m4_foreach([_LT_Option], m4_split(m4_normalize([$2])),
  11943. + [_LT_SET_OPTION([$1], _LT_Option)])
  11944. +
  11945. +m4_if([$1],[LT_INIT],[
  11946. + dnl
  11947. + dnl Simply set some default values (i.e off) if boolean options were not
  11948. + dnl specified:
  11949. + _LT_UNLESS_OPTIONS([LT_INIT], [dlopen], [enable_dlopen=no
  11950. + ])
  11951. + _LT_UNLESS_OPTIONS([LT_INIT], [win32-dll], [enable_win32_dll=no
  11952. + ])
  11953. + dnl
  11954. + dnl If no reference was made to various pairs of opposing options, then
  11955. + dnl we run the default mode handler for the pair. For example, if neither
  11956. + dnl `shared' nor `disable-shared' was passed, we enable building of shared
  11957. + dnl archives by default:
  11958. + _LT_UNLESS_OPTIONS([LT_INIT], [shared disable-shared], [_LT_ENABLE_SHARED])
  11959. + _LT_UNLESS_OPTIONS([LT_INIT], [static disable-static], [_LT_ENABLE_STATIC])
  11960. + _LT_UNLESS_OPTIONS([LT_INIT], [pic-only no-pic], [_LT_WITH_PIC])
  11961. + _LT_UNLESS_OPTIONS([LT_INIT], [fast-install disable-fast-install],
  11962. + [_LT_ENABLE_FAST_INSTALL])
  11963. + ])
  11964. +])# _LT_SET_OPTIONS
  11965. +
  11966. - if test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no; then
  11967. - runpath_var=
  11968. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
  11969. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
  11970. - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
  11971. - fi
  11972. - else
  11973. - # PORTME fill in a description of your system's linker (not GNU ld)
  11974. - case $host_os in
  11975. - aix3*)
  11976. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
  11977. - _LT_AC_TAGVAR(always_export_symbols, $1)=yes
  11978. - _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'
  11979. - # Note: this linker hardcodes the directories in LIBPATH if there
  11980. - # are no directories specified by -L.
  11981. - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
  11982. - if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  11983. - # Neither direct hardcoding nor static linking is supported with a
  11984. - # broken collect2.
  11985. - _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
  11986. - fi
  11987. - ;;
  11988. - aix4* | aix5*)
  11989. - if test "$host_cpu" = ia64; then
  11990. - # On IA64, the linker does run time linking by default, so we don't
  11991. - # have to do anything special.
  11992. - aix_use_runtimelinking=no
  11993. - exp_sym_flag='-Bexport'
  11994. - no_entry_flag=""
  11995. - else
  11996. - # If we're using GNU nm, then we don't want the "-C" option.
  11997. - # -C means demangle to AIX nm, but means don't demangle with GNU nm
  11998. - if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
  11999. - _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'
  12000. - else
  12001. - _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'
  12002. - fi
  12003. - aix_use_runtimelinking=no
  12004. +# _LT_MANGLE_DEFUN(MACRO-NAME, OPTION-NAME)
  12005. +# -----------------------------------------
  12006. +m4_define([_LT_MANGLE_DEFUN],
  12007. +[[_LT_OPTION_DEFUN_]m4_bpatsubst(m4_toupper([$1__$2]), [[^A-Z0-9_]], [_])])
  12008. - # Test if we are trying to use run time linking or normal
  12009. - # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  12010. - # need to do runtime linking.
  12011. - case $host_os in aix4.[[23]]|aix4.[[23]].*|aix5*)
  12012. - for ld_flag in $LDFLAGS; do
  12013. - if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  12014. - aix_use_runtimelinking=yes
  12015. - break
  12016. - fi
  12017. - done
  12018. - ;;
  12019. - esac
  12020. - exp_sym_flag='-bexport'
  12021. - no_entry_flag='-bnoentry'
  12022. - fi
  12023. +# LT_OPTION_DEFINE(MACRO-NAME, OPTION-NAME, CODE)
  12024. +# -----------------------------------------------
  12025. +m4_define([LT_OPTION_DEFINE],
  12026. +[m4_define(_LT_MANGLE_DEFUN([$1], [$2]), [$3])[]dnl
  12027. +])# LT_OPTION_DEFINE
  12028. - # When large executables or shared objects are built, AIX ld can
  12029. - # have problems creating the table of contents. If linking a library
  12030. - # or program results in "error TOC overflow" add -mminimal-toc to
  12031. - # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  12032. - # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  12033. - _LT_AC_TAGVAR(archive_cmds, $1)=''
  12034. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  12035. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
  12036. - _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
  12037. +# dlopen
  12038. +# ------
  12039. +LT_OPTION_DEFINE([LT_INIT], [dlopen], [enable_dlopen=yes
  12040. +])
  12041. - if test "$GCC" = yes; then
  12042. - case $host_os in aix4.[[012]]|aix4.[[012]].*)
  12043. - # We only want to do this on AIX 4.2 and lower, the check
  12044. - # below for broken collect2 doesn't work under 4.3+
  12045. - collect2name=`${CC} -print-prog-name=collect2`
  12046. - if test -f "$collect2name" && \
  12047. - strings "$collect2name" | grep resolve_lib_name >/dev/null
  12048. - then
  12049. - # We have reworked collect2
  12050. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  12051. - else
  12052. - # We have old collect2
  12053. - _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
  12054. - # It fails to find uninstalled libraries when the uninstalled
  12055. - # path is not listed in the libpath. Setting hardcode_minus_L
  12056. - # to unsupported forces relinking
  12057. - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
  12058. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  12059. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
  12060. - fi
  12061. - ;;
  12062. - esac
  12063. - shared_flag='-shared'
  12064. - if test "$aix_use_runtimelinking" = yes; then
  12065. - shared_flag="$shared_flag "'${wl}-G'
  12066. - fi
  12067. - else
  12068. - # not using gcc
  12069. - if test "$host_cpu" = ia64; then
  12070. - # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  12071. - # chokes on -Wl,-G. The following line is correct:
  12072. - shared_flag='-G'
  12073. - else
  12074. - if test "$aix_use_runtimelinking" = yes; then
  12075. - shared_flag='${wl}-G'
  12076. - else
  12077. - shared_flag='${wl}-bM:SRE'
  12078. - fi
  12079. - fi
  12080. - fi
  12081. +AU_DEFUN([AC_LIBTOOL_DLOPEN],
  12082. +[_LT_SET_OPTION([LT_INIT], [dlopen])
  12083. +AC_DIAGNOSE([obsolete],
  12084. +[$0: Remove this warning and the call to _LT_SET_OPTION when you
  12085. +put the `dlopen' option into LT_INIT's first parameter.])
  12086. +])
  12087. - # It seems that -bexpall does not export symbols beginning with
  12088. - # underscore (_), so it is better to generate a list of symbols to export.
  12089. - _LT_AC_TAGVAR(always_export_symbols, $1)=yes
  12090. - if test "$aix_use_runtimelinking" = yes; then
  12091. - # Warning - without using the other runtime loading flags (-brtl),
  12092. - # -berok will link without error, but may produce a broken library.
  12093. - _LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok'
  12094. - # Determine the default libpath from the value encoded in an empty executable.
  12095. - _LT_AC_SYS_LIBPATH_AIX
  12096. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
  12097. - _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"
  12098. - else
  12099. - if test "$host_cpu" = ia64; then
  12100. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
  12101. - _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
  12102. - _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"
  12103. - else
  12104. - # Determine the default libpath from the value encoded in an empty executable.
  12105. - _LT_AC_SYS_LIBPATH_AIX
  12106. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
  12107. - # Warning - without using the other run time loading flags,
  12108. - # -berok will link without error, but may produce a broken library.
  12109. - _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
  12110. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
  12111. - # Exported symbols can be pulled into shared objects from archives
  12112. - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
  12113. - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
  12114. - # This is similar to how AIX traditionally builds its shared libraries.
  12115. - _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'
  12116. - fi
  12117. - fi
  12118. - ;;
  12119. +dnl aclocal-1.4 backwards compatibility:
  12120. +dnl AC_DEFUN([AC_LIBTOOL_DLOPEN], [])
  12121. - amigaos*)
  12122. - _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)'
  12123. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  12124. - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
  12125. - # see comment about different semantics on the GNU ld section
  12126. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  12127. - ;;
  12128. - bsdi[[45]]*)
  12129. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic
  12130. - ;;
  12131. +# win32-dll
  12132. +# ---------
  12133. +# Declare package support for building win32 dll's.
  12134. +LT_OPTION_DEFINE([LT_INIT], [win32-dll],
  12135. +[enable_win32_dll=yes
  12136. - cygwin* | mingw* | pw32*)
  12137. - # When not using gcc, we currently assume that we are using
  12138. - # Microsoft Visual C++.
  12139. - # hardcode_libdir_flag_spec is actually meaningless, as there is
  12140. - # no search path for DLLs.
  12141. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
  12142. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
  12143. - # Tell ltmain to make .lib files, not .a files.
  12144. - libext=lib
  12145. - # Tell ltmain to make .dll files, not .so files.
  12146. - shrext_cmds=".dll"
  12147. - # FIXME: Setting linknames here is a bad hack.
  12148. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
  12149. - # The linker will automatically build a .lib file if we build a DLL.
  12150. - _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='true'
  12151. - # FIXME: Should let the user specify the lib program.
  12152. - _LT_AC_TAGVAR(old_archive_cmds, $1)='lib /OUT:$oldlib$oldobjs$old_deplibs'
  12153. - _LT_AC_TAGVAR(fix_srcfile_path, $1)='`cygpath -w "$srcfile"`'
  12154. - _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
  12155. - ;;
  12156. +case $host in
  12157. +*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-cegcc*)
  12158. + AC_CHECK_TOOL(AS, as, false)
  12159. + AC_CHECK_TOOL(DLLTOOL, dlltool, false)
  12160. + AC_CHECK_TOOL(OBJDUMP, objdump, false)
  12161. + ;;
  12162. +esac
  12163. - darwin* | rhapsody*)
  12164. - case $host_os in
  12165. - rhapsody* | darwin1.[[012]])
  12166. - _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}suppress'
  12167. - ;;
  12168. - *) # Darwin 1.3 on
  12169. - if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
  12170. - _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  12171. - else
  12172. - case ${MACOSX_DEPLOYMENT_TARGET} in
  12173. - 10.[[012]])
  12174. - _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  12175. - ;;
  12176. - 10.*)
  12177. - _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}dynamic_lookup'
  12178. - ;;
  12179. - esac
  12180. - fi
  12181. - ;;
  12182. - esac
  12183. - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  12184. - _LT_AC_TAGVAR(hardcode_direct, $1)=no
  12185. - _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
  12186. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
  12187. - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=''
  12188. - _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
  12189. - if test "$GCC" = yes ; then
  12190. - output_verbose_link_cmd='echo'
  12191. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
  12192. - _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  12193. - # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  12194. - _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}'
  12195. - _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}'
  12196. - else
  12197. - case $cc_basename in
  12198. - xlc*)
  12199. - output_verbose_link_cmd='echo'
  12200. - _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'
  12201. - _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  12202. - # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  12203. - _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}'
  12204. - _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}'
  12205. - ;;
  12206. - *)
  12207. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  12208. - ;;
  12209. - esac
  12210. - fi
  12211. - ;;
  12212. +test -z "$AS" && AS=as
  12213. +_LT_DECL([], [AS], [0], [Assembler program])dnl
  12214. - dgux*)
  12215. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  12216. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  12217. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  12218. - ;;
  12219. +test -z "$DLLTOOL" && DLLTOOL=dlltool
  12220. +_LT_DECL([], [DLLTOOL], [0], [DLL creation program])dnl
  12221. - freebsd1*)
  12222. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  12223. - ;;
  12224. +test -z "$OBJDUMP" && OBJDUMP=objdump
  12225. +_LT_DECL([], [OBJDUMP], [0], [Object dumper program])dnl
  12226. +])# win32-dll
  12227. - # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  12228. - # support. Future versions do this automatically, but an explicit c++rt0.o
  12229. - # does not break anything, and helps significantly (at the cost of a little
  12230. - # extra space).
  12231. - freebsd2.2*)
  12232. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  12233. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  12234. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  12235. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  12236. - ;;
  12237. +AU_DEFUN([AC_LIBTOOL_WIN32_DLL],
  12238. +[AC_REQUIRE([AC_CANONICAL_HOST])dnl
  12239. +_LT_SET_OPTION([LT_INIT], [win32-dll])
  12240. +AC_DIAGNOSE([obsolete],
  12241. +[$0: Remove this warning and the call to _LT_SET_OPTION when you
  12242. +put the `win32-dll' option into LT_INIT's first parameter.])
  12243. +])
  12244. - # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  12245. - freebsd2*)
  12246. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  12247. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  12248. - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
  12249. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  12250. - ;;
  12251. +dnl aclocal-1.4 backwards compatibility:
  12252. +dnl AC_DEFUN([AC_LIBTOOL_WIN32_DLL], [])
  12253. - # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  12254. - freebsd* | kfreebsd*-gnu | dragonfly*)
  12255. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  12256. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  12257. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  12258. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  12259. +
  12260. +# _LT_ENABLE_SHARED([DEFAULT])
  12261. +# ----------------------------
  12262. +# implement the --enable-shared flag, and supports the `shared' and
  12263. +# `disable-shared' LT_INIT options.
  12264. +# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
  12265. +m4_define([_LT_ENABLE_SHARED],
  12266. +[m4_define([_LT_ENABLE_SHARED_DEFAULT], [m4_if($1, no, no, yes)])dnl
  12267. +AC_ARG_ENABLE([shared],
  12268. + [AS_HELP_STRING([--enable-shared@<:@=PKGS@:>@],
  12269. + [build shared libraries @<:@default=]_LT_ENABLE_SHARED_DEFAULT[@:>@])],
  12270. + [p=${PACKAGE-default}
  12271. + case $enableval in
  12272. + yes) enable_shared=yes ;;
  12273. + no) enable_shared=no ;;
  12274. + *)
  12275. + enable_shared=no
  12276. + # Look at the argument we got. We use all the common list separators.
  12277. + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  12278. + for pkg in $enableval; do
  12279. + IFS="$lt_save_ifs"
  12280. + if test "X$pkg" = "X$p"; then
  12281. + enable_shared=yes
  12282. + fi
  12283. + done
  12284. + IFS="$lt_save_ifs"
  12285. ;;
  12286. + esac],
  12287. + [enable_shared=]_LT_ENABLE_SHARED_DEFAULT)
  12288. - hpux9*)
  12289. - if test "$GCC" = yes; then
  12290. - _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'
  12291. - else
  12292. - _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'
  12293. - fi
  12294. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  12295. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  12296. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  12297. + _LT_DECL([build_libtool_libs], [enable_shared], [0],
  12298. + [Whether or not to build shared libraries])
  12299. +])# _LT_ENABLE_SHARED
  12300. - # hardcode_minus_L: Not really in the search PATH,
  12301. - # but as the default location of the library.
  12302. - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
  12303. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  12304. - ;;
  12305. +LT_OPTION_DEFINE([LT_INIT], [shared], [_LT_ENABLE_SHARED([yes])])
  12306. +LT_OPTION_DEFINE([LT_INIT], [disable-shared], [_LT_ENABLE_SHARED([no])])
  12307. - hpux10*)
  12308. - if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  12309. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  12310. - else
  12311. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  12312. - fi
  12313. - if test "$with_gnu_ld" = no; then
  12314. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  12315. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  12316. +# Old names:
  12317. +AC_DEFUN([AC_ENABLE_SHARED],
  12318. +[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[shared])
  12319. +])
  12320. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  12321. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  12322. +AC_DEFUN([AC_DISABLE_SHARED],
  12323. +[_LT_SET_OPTION([LT_INIT], [disable-shared])
  12324. +])
  12325. - # hardcode_minus_L: Not really in the search PATH,
  12326. - # but as the default location of the library.
  12327. - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
  12328. - fi
  12329. - ;;
  12330. +AU_DEFUN([AM_ENABLE_SHARED], [AC_ENABLE_SHARED($@)])
  12331. +AU_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)])
  12332. - hpux11*)
  12333. - if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  12334. - case $host_cpu in
  12335. - hppa*64*)
  12336. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  12337. - ;;
  12338. - ia64*)
  12339. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  12340. - ;;
  12341. - *)
  12342. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  12343. - ;;
  12344. - esac
  12345. - else
  12346. - case $host_cpu in
  12347. - hppa*64*)
  12348. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  12349. - ;;
  12350. - ia64*)
  12351. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  12352. - ;;
  12353. - *)
  12354. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  12355. - ;;
  12356. - esac
  12357. - fi
  12358. - if test "$with_gnu_ld" = no; then
  12359. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  12360. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  12361. +dnl aclocal-1.4 backwards compatibility:
  12362. +dnl AC_DEFUN([AM_ENABLE_SHARED], [])
  12363. +dnl AC_DEFUN([AM_DISABLE_SHARED], [])
  12364. - case $host_cpu in
  12365. - hppa*64*|ia64*)
  12366. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
  12367. - _LT_AC_TAGVAR(hardcode_direct, $1)=no
  12368. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  12369. - ;;
  12370. - *)
  12371. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  12372. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  12373. - # hardcode_minus_L: Not really in the search PATH,
  12374. - # but as the default location of the library.
  12375. - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
  12376. - ;;
  12377. - esac
  12378. - fi
  12379. - ;;
  12380. - irix5* | irix6* | nonstopux*)
  12381. - if test "$GCC" = yes; then
  12382. - _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'
  12383. - else
  12384. - _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'
  12385. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='-rpath $libdir'
  12386. - fi
  12387. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  12388. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  12389. - _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
  12390. +# _LT_ENABLE_STATIC([DEFAULT])
  12391. +# ----------------------------
  12392. +# implement the --enable-static flag, and support the `static' and
  12393. +# `disable-static' LT_INIT options.
  12394. +# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
  12395. +m4_define([_LT_ENABLE_STATIC],
  12396. +[m4_define([_LT_ENABLE_STATIC_DEFAULT], [m4_if($1, no, no, yes)])dnl
  12397. +AC_ARG_ENABLE([static],
  12398. + [AS_HELP_STRING([--enable-static@<:@=PKGS@:>@],
  12399. + [build static libraries @<:@default=]_LT_ENABLE_STATIC_DEFAULT[@:>@])],
  12400. + [p=${PACKAGE-default}
  12401. + case $enableval in
  12402. + yes) enable_static=yes ;;
  12403. + no) enable_static=no ;;
  12404. + *)
  12405. + enable_static=no
  12406. + # Look at the argument we got. We use all the common list separators.
  12407. + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  12408. + for pkg in $enableval; do
  12409. + IFS="$lt_save_ifs"
  12410. + if test "X$pkg" = "X$p"; then
  12411. + enable_static=yes
  12412. + fi
  12413. + done
  12414. + IFS="$lt_save_ifs"
  12415. ;;
  12416. + esac],
  12417. + [enable_static=]_LT_ENABLE_STATIC_DEFAULT)
  12418. - netbsd*)
  12419. - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  12420. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  12421. - else
  12422. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  12423. - fi
  12424. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  12425. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  12426. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  12427. - ;;
  12428. + _LT_DECL([build_old_libs], [enable_static], [0],
  12429. + [Whether or not to build static libraries])
  12430. +])# _LT_ENABLE_STATIC
  12431. - newsos6)
  12432. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  12433. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  12434. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  12435. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  12436. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  12437. - ;;
  12438. +LT_OPTION_DEFINE([LT_INIT], [static], [_LT_ENABLE_STATIC([yes])])
  12439. +LT_OPTION_DEFINE([LT_INIT], [disable-static], [_LT_ENABLE_STATIC([no])])
  12440. - openbsd*)
  12441. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  12442. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  12443. - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  12444. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  12445. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  12446. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  12447. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  12448. - else
  12449. - case $host_os in
  12450. - openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)
  12451. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  12452. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  12453. - ;;
  12454. - *)
  12455. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  12456. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  12457. - ;;
  12458. - esac
  12459. - fi
  12460. - ;;
  12461. +# Old names:
  12462. +AC_DEFUN([AC_ENABLE_STATIC],
  12463. +[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[static])
  12464. +])
  12465. - os2*)
  12466. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  12467. - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
  12468. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
  12469. - _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'
  12470. - _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  12471. - ;;
  12472. +AC_DEFUN([AC_DISABLE_STATIC],
  12473. +[_LT_SET_OPTION([LT_INIT], [disable-static])
  12474. +])
  12475. - osf3*)
  12476. - if test "$GCC" = yes; then
  12477. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
  12478. - _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'
  12479. - else
  12480. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
  12481. - _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'
  12482. - fi
  12483. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  12484. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  12485. +AU_DEFUN([AM_ENABLE_STATIC], [AC_ENABLE_STATIC($@)])
  12486. +AU_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)])
  12487. +
  12488. +dnl aclocal-1.4 backwards compatibility:
  12489. +dnl AC_DEFUN([AM_ENABLE_STATIC], [])
  12490. +dnl AC_DEFUN([AM_DISABLE_STATIC], [])
  12491. +
  12492. +
  12493. +
  12494. +# _LT_ENABLE_FAST_INSTALL([DEFAULT])
  12495. +# ----------------------------------
  12496. +# implement the --enable-fast-install flag, and support the `fast-install'
  12497. +# and `disable-fast-install' LT_INIT options.
  12498. +# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
  12499. +m4_define([_LT_ENABLE_FAST_INSTALL],
  12500. +[m4_define([_LT_ENABLE_FAST_INSTALL_DEFAULT], [m4_if($1, no, no, yes)])dnl
  12501. +AC_ARG_ENABLE([fast-install],
  12502. + [AS_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@],
  12503. + [optimize for fast installation @<:@default=]_LT_ENABLE_FAST_INSTALL_DEFAULT[@:>@])],
  12504. + [p=${PACKAGE-default}
  12505. + case $enableval in
  12506. + yes) enable_fast_install=yes ;;
  12507. + no) enable_fast_install=no ;;
  12508. + *)
  12509. + enable_fast_install=no
  12510. + # Look at the argument we got. We use all the common list separators.
  12511. + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  12512. + for pkg in $enableval; do
  12513. + IFS="$lt_save_ifs"
  12514. + if test "X$pkg" = "X$p"; then
  12515. + enable_fast_install=yes
  12516. + fi
  12517. + done
  12518. + IFS="$lt_save_ifs"
  12519. ;;
  12520. + esac],
  12521. + [enable_fast_install=]_LT_ENABLE_FAST_INSTALL_DEFAULT)
  12522. - osf4* | osf5*) # as osf3* with the addition of -msym flag
  12523. - if test "$GCC" = yes; then
  12524. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
  12525. - _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'
  12526. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  12527. - else
  12528. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
  12529. - _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'
  12530. - _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~
  12531. - $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'
  12532. +_LT_DECL([fast_install], [enable_fast_install], [0],
  12533. + [Whether or not to optimize for fast installation])dnl
  12534. +])# _LT_ENABLE_FAST_INSTALL
  12535. +
  12536. +LT_OPTION_DEFINE([LT_INIT], [fast-install], [_LT_ENABLE_FAST_INSTALL([yes])])
  12537. +LT_OPTION_DEFINE([LT_INIT], [disable-fast-install], [_LT_ENABLE_FAST_INSTALL([no])])
  12538. +
  12539. +# Old names:
  12540. +AU_DEFUN([AC_ENABLE_FAST_INSTALL],
  12541. +[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[fast-install])
  12542. +AC_DIAGNOSE([obsolete],
  12543. +[$0: Remove this warning and the call to _LT_SET_OPTION when you put
  12544. +the `fast-install' option into LT_INIT's first parameter.])
  12545. +])
  12546. - # Both c and cxx compiler support -rpath directly
  12547. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
  12548. - fi
  12549. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  12550. - ;;
  12551. +AU_DEFUN([AC_DISABLE_FAST_INSTALL],
  12552. +[_LT_SET_OPTION([LT_INIT], [disable-fast-install])
  12553. +AC_DIAGNOSE([obsolete],
  12554. +[$0: Remove this warning and the call to _LT_SET_OPTION when you put
  12555. +the `disable-fast-install' option into LT_INIT's first parameter.])
  12556. +])
  12557. - solaris*)
  12558. - _LT_AC_TAGVAR(no_undefined_flag, $1)=' -z text'
  12559. - if test "$GCC" = yes; then
  12560. - wlarc='${wl}'
  12561. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  12562. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  12563. - $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
  12564. - else
  12565. - wlarc=''
  12566. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  12567. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  12568. - $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
  12569. - fi
  12570. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  12571. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  12572. - case $host_os in
  12573. - solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
  12574. - *)
  12575. - # The compiler driver will combine linker options so we
  12576. - # cannot just pass the convience library names through
  12577. - # without $wl, iff we do not link with $LD.
  12578. - # Luckily, gcc supports the same syntax we need for Sun Studio.
  12579. - # Supported since Solaris 2.6 (maybe 2.5.1?)
  12580. - case $wlarc in
  12581. - '')
  12582. - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' ;;
  12583. - *)
  12584. - _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' ;;
  12585. - esac ;;
  12586. - esac
  12587. - _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
  12588. - ;;
  12589. +dnl aclocal-1.4 backwards compatibility:
  12590. +dnl AC_DEFUN([AC_ENABLE_FAST_INSTALL], [])
  12591. +dnl AC_DEFUN([AM_DISABLE_FAST_INSTALL], [])
  12592. - sunos4*)
  12593. - if test "x$host_vendor" = xsequent; then
  12594. - # Use $CC to link under sequent, because it throws in some extra .o
  12595. - # files that make .init and .fini sections work.
  12596. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  12597. - else
  12598. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  12599. - fi
  12600. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  12601. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  12602. - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
  12603. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  12604. - ;;
  12605. - sysv4)
  12606. - case $host_vendor in
  12607. - sni)
  12608. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  12609. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes # is this really true???
  12610. - ;;
  12611. - siemens)
  12612. - ## LD is ld it makes a PLAMLIB
  12613. - ## CC just makes a GrossModule.
  12614. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  12615. - _LT_AC_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs'
  12616. - _LT_AC_TAGVAR(hardcode_direct, $1)=no
  12617. - ;;
  12618. - motorola)
  12619. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  12620. - _LT_AC_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie
  12621. - ;;
  12622. - esac
  12623. - runpath_var='LD_RUN_PATH'
  12624. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  12625. - ;;
  12626. +# _LT_WITH_PIC([MODE])
  12627. +# --------------------
  12628. +# implement the --with-pic flag, and support the `pic-only' and `no-pic'
  12629. +# LT_INIT options.
  12630. +# MODE is either `yes' or `no'. If omitted, it defaults to `both'.
  12631. +m4_define([_LT_WITH_PIC],
  12632. +[AC_ARG_WITH([pic],
  12633. + [AS_HELP_STRING([--with-pic],
  12634. + [try to use only PIC/non-PIC objects @<:@default=use both@:>@])],
  12635. + [pic_mode="$withval"],
  12636. + [pic_mode=default])
  12637. - sysv4.3*)
  12638. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  12639. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  12640. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport'
  12641. - ;;
  12642. +test -z "$pic_mode" && pic_mode=m4_default([$1], [default])
  12643. - sysv4*MP*)
  12644. - if test -d /usr/nec; then
  12645. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  12646. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  12647. - runpath_var=LD_RUN_PATH
  12648. - hardcode_runpath_var=yes
  12649. - _LT_AC_TAGVAR(ld_shlibs, $1)=yes
  12650. - fi
  12651. - ;;
  12652. +_LT_DECL([], [pic_mode], [0], [What type of objects to build])dnl
  12653. +])# _LT_WITH_PIC
  12654. - sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7*)
  12655. - _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
  12656. - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  12657. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  12658. - runpath_var='LD_RUN_PATH'
  12659. +LT_OPTION_DEFINE([LT_INIT], [pic-only], [_LT_WITH_PIC([yes])])
  12660. +LT_OPTION_DEFINE([LT_INIT], [no-pic], [_LT_WITH_PIC([no])])
  12661. - if test "$GCC" = yes; then
  12662. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12663. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12664. - else
  12665. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12666. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12667. - fi
  12668. - ;;
  12669. +# Old name:
  12670. +AU_DEFUN([AC_LIBTOOL_PICMODE],
  12671. +[_LT_SET_OPTION([LT_INIT], [pic-only])
  12672. +AC_DIAGNOSE([obsolete],
  12673. +[$0: Remove this warning and the call to _LT_SET_OPTION when you
  12674. +put the `pic-only' option into LT_INIT's first parameter.])
  12675. +])
  12676. - sysv5* | sco3.2v5* | sco5v6*)
  12677. - # Note: We can NOT use -z defs as we might desire, because we do not
  12678. - # link with -lc, and that would cause any symbols used from libc to
  12679. - # always be unresolved, which means just about no library would
  12680. - # ever link correctly. If we're not using GNU ld we use -z text
  12681. - # though, which does catch some bad symbols but isn't as heavy-handed
  12682. - # as -z defs.
  12683. - _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
  12684. - _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
  12685. - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  12686. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  12687. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
  12688. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
  12689. - _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
  12690. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
  12691. - runpath_var='LD_RUN_PATH'
  12692. +dnl aclocal-1.4 backwards compatibility:
  12693. +dnl AC_DEFUN([AC_LIBTOOL_PICMODE], [])
  12694. - if test "$GCC" = yes; then
  12695. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  12696. - _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'
  12697. - else
  12698. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  12699. - _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'
  12700. - fi
  12701. - ;;
  12702. - uts4*)
  12703. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  12704. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  12705. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  12706. - ;;
  12707. +m4_define([_LTDL_MODE], [])
  12708. +LT_OPTION_DEFINE([LTDL_INIT], [nonrecursive],
  12709. + [m4_define([_LTDL_MODE], [nonrecursive])])
  12710. +LT_OPTION_DEFINE([LTDL_INIT], [recursive],
  12711. + [m4_define([_LTDL_MODE], [recursive])])
  12712. +LT_OPTION_DEFINE([LTDL_INIT], [subproject],
  12713. + [m4_define([_LTDL_MODE], [subproject])])
  12714. - *)
  12715. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  12716. - ;;
  12717. - esac
  12718. - fi
  12719. -])
  12720. -AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)])
  12721. -test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
  12722. +m4_define([_LTDL_TYPE], [])
  12723. +LT_OPTION_DEFINE([LTDL_INIT], [installable],
  12724. + [m4_define([_LTDL_TYPE], [installable])])
  12725. +LT_OPTION_DEFINE([LTDL_INIT], [convenience],
  12726. + [m4_define([_LTDL_TYPE], [convenience])])
  12727. +# ltsugar.m4 -- libtool m4 base layer. -*-Autoconf-*-
  12728. #
  12729. -# Do we need to explicitly link libc?
  12730. +# Copyright (C) 2004, 2005, 2007, 2008 Free Software Foundation, Inc.
  12731. +# Written by Gary V. Vaughan, 2004
  12732. #
  12733. -case "x$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)" in
  12734. -x|xyes)
  12735. - # Assume -lc should be added
  12736. - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
  12737. +# This file is free software; the Free Software Foundation gives
  12738. +# unlimited permission to copy and/or distribute it, with or without
  12739. +# modifications, as long as this notice is preserved.
  12740. - if test "$enable_shared" = yes && test "$GCC" = yes; then
  12741. - case $_LT_AC_TAGVAR(archive_cmds, $1) in
  12742. - *'~'*)
  12743. - # FIXME: we may have to deal with multi-command sequences.
  12744. - ;;
  12745. - '$CC '*)
  12746. - # Test whether the compiler implicitly links with -lc since on some
  12747. - # systems, -lgcc has to come before -lc. If gcc already passes -lc
  12748. - # to ld, don't add -lc before -lgcc.
  12749. - AC_MSG_CHECKING([whether -lc should be explicitly linked in])
  12750. - $rm conftest*
  12751. - printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  12752. +# serial 6 ltsugar.m4
  12753. - if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
  12754. - soname=conftest
  12755. - lib=conftest
  12756. - libobjs=conftest.$ac_objext
  12757. - deplibs=
  12758. - wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)
  12759. - pic_flag=$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)
  12760. - compiler_flags=-v
  12761. - linker_flags=-v
  12762. - verstring=
  12763. - output_objdir=.
  12764. - libname=conftest
  12765. - lt_save_allow_undefined_flag=$_LT_AC_TAGVAR(allow_undefined_flag, $1)
  12766. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=
  12767. - if AC_TRY_EVAL(_LT_AC_TAGVAR(archive_cmds, $1) 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1)
  12768. - then
  12769. - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  12770. - else
  12771. - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
  12772. - fi
  12773. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
  12774. - else
  12775. - cat conftest.err 1>&5
  12776. - fi
  12777. - $rm conftest*
  12778. - AC_MSG_RESULT([$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)])
  12779. - ;;
  12780. - esac
  12781. - fi
  12782. - ;;
  12783. -esac
  12784. -])# AC_LIBTOOL_PROG_LD_SHLIBS
  12785. +# This is to help aclocal find these macros, as it can't see m4_define.
  12786. +AC_DEFUN([LTSUGAR_VERSION], [m4_if([0.1])])
  12787. -# _LT_AC_FILE_LTDLL_C
  12788. -# -------------------
  12789. -# Be careful that the start marker always follows a newline.
  12790. -AC_DEFUN([_LT_AC_FILE_LTDLL_C], [
  12791. -# /* ltdll.c starts here */
  12792. -# #define WIN32_LEAN_AND_MEAN
  12793. -# #include <windows.h>
  12794. -# #undef WIN32_LEAN_AND_MEAN
  12795. -# #include <stdio.h>
  12796. -#
  12797. -# #ifndef __CYGWIN__
  12798. -# # ifdef __CYGWIN32__
  12799. -# # define __CYGWIN__ __CYGWIN32__
  12800. -# # endif
  12801. -# #endif
  12802. -#
  12803. -# #ifdef __cplusplus
  12804. -# extern "C" {
  12805. -# #endif
  12806. -# BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
  12807. -# #ifdef __cplusplus
  12808. -# }
  12809. -# #endif
  12810. -#
  12811. -# #ifdef __CYGWIN__
  12812. -# #include <cygwin/cygwin_dll.h>
  12813. -# DECLARE_CYGWIN_DLL( DllMain );
  12814. -# #endif
  12815. -# HINSTANCE __hDllInstance_base;
  12816. -#
  12817. -# BOOL APIENTRY
  12818. -# DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
  12819. -# {
  12820. -# __hDllInstance_base = hInst;
  12821. -# return TRUE;
  12822. -# }
  12823. -# /* ltdll.c ends here */
  12824. -])# _LT_AC_FILE_LTDLL_C
  12825. +# lt_join(SEP, ARG1, [ARG2...])
  12826. +# -----------------------------
  12827. +# Produce ARG1SEPARG2...SEPARGn, omitting [] arguments and their
  12828. +# associated separator.
  12829. +# Needed until we can rely on m4_join from Autoconf 2.62, since all earlier
  12830. +# versions in m4sugar had bugs.
  12831. +m4_define([lt_join],
  12832. +[m4_if([$#], [1], [],
  12833. + [$#], [2], [[$2]],
  12834. + [m4_if([$2], [], [], [[$2]_])$0([$1], m4_shift(m4_shift($@)))])])
  12835. +m4_define([_lt_join],
  12836. +[m4_if([$#$2], [2], [],
  12837. + [m4_if([$2], [], [], [[$1$2]])$0([$1], m4_shift(m4_shift($@)))])])
  12838. -# _LT_AC_TAGVAR(VARNAME, [TAGNAME])
  12839. -# ---------------------------------
  12840. -AC_DEFUN([_LT_AC_TAGVAR], [ifelse([$2], [], [$1], [$1_$2])])
  12841. +# lt_car(LIST)
  12842. +# lt_cdr(LIST)
  12843. +# ------------
  12844. +# Manipulate m4 lists.
  12845. +# These macros are necessary as long as will still need to support
  12846. +# Autoconf-2.59 which quotes differently.
  12847. +m4_define([lt_car], [[$1]])
  12848. +m4_define([lt_cdr],
  12849. +[m4_if([$#], 0, [m4_fatal([$0: cannot be called without arguments])],
  12850. + [$#], 1, [],
  12851. + [m4_dquote(m4_shift($@))])])
  12852. +m4_define([lt_unquote], $1)
  12853. +
  12854. +
  12855. +# lt_append(MACRO-NAME, STRING, [SEPARATOR])
  12856. +# ------------------------------------------
  12857. +# Redefine MACRO-NAME to hold its former content plus `SEPARATOR'`STRING'.
  12858. +# Note that neither SEPARATOR nor STRING are expanded; they are appended
  12859. +# to MACRO-NAME as is (leaving the expansion for when MACRO-NAME is invoked).
  12860. +# No SEPARATOR is output if MACRO-NAME was previously undefined (different
  12861. +# than defined and empty).
  12862. +#
  12863. +# This macro is needed until we can rely on Autoconf 2.62, since earlier
  12864. +# versions of m4sugar mistakenly expanded SEPARATOR but not STRING.
  12865. +m4_define([lt_append],
  12866. +[m4_define([$1],
  12867. + m4_ifdef([$1], [m4_defn([$1])[$3]])[$2])])
  12868. -# old names
  12869. -AC_DEFUN([AM_PROG_LIBTOOL], [AC_PROG_LIBTOOL])
  12870. -AC_DEFUN([AM_ENABLE_SHARED], [AC_ENABLE_SHARED($@)])
  12871. -AC_DEFUN([AM_ENABLE_STATIC], [AC_ENABLE_STATIC($@)])
  12872. -AC_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)])
  12873. -AC_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)])
  12874. -AC_DEFUN([AM_PROG_LD], [AC_PROG_LD])
  12875. -AC_DEFUN([AM_PROG_NM], [AC_PROG_NM])
  12876. -# This is just to silence aclocal about the macro not being used
  12877. -ifelse([AC_DISABLE_FAST_INSTALL])
  12878. +# lt_combine(SEP, PREFIX-LIST, INFIX, SUFFIX1, [SUFFIX2...])
  12879. +# ----------------------------------------------------------
  12880. +# Produce a SEP delimited list of all paired combinations of elements of
  12881. +# PREFIX-LIST with SUFFIX1 through SUFFIXn. Each element of the list
  12882. +# has the form PREFIXmINFIXSUFFIXn.
  12883. +# Needed until we can rely on m4_combine added in Autoconf 2.62.
  12884. +m4_define([lt_combine],
  12885. +[m4_if(m4_eval([$# > 3]), [1],
  12886. + [m4_pushdef([_Lt_sep], [m4_define([_Lt_sep], m4_defn([lt_car]))])]]dnl
  12887. +[[m4_foreach([_Lt_prefix], [$2],
  12888. + [m4_foreach([_Lt_suffix],
  12889. + ]m4_dquote(m4_dquote(m4_shift(m4_shift(m4_shift($@)))))[,
  12890. + [_Lt_sep([$1])[]m4_defn([_Lt_prefix])[$3]m4_defn([_Lt_suffix])])])])])
  12891. +
  12892. +
  12893. +# lt_if_append_uniq(MACRO-NAME, VARNAME, [SEPARATOR], [UNIQ], [NOT-UNIQ])
  12894. +# -----------------------------------------------------------------------
  12895. +# Iff MACRO-NAME does not yet contain VARNAME, then append it (delimited
  12896. +# by SEPARATOR if supplied) and expand UNIQ, else NOT-UNIQ.
  12897. +m4_define([lt_if_append_uniq],
  12898. +[m4_ifdef([$1],
  12899. + [m4_if(m4_index([$3]m4_defn([$1])[$3], [$3$2$3]), [-1],
  12900. + [lt_append([$1], [$2], [$3])$4],
  12901. + [$5])],
  12902. + [lt_append([$1], [$2], [$3])$4])])
  12903. -AC_DEFUN([LT_AC_PROG_GCJ],
  12904. -[AC_CHECK_TOOL(GCJ, gcj, no)
  12905. - test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
  12906. - AC_SUBST(GCJFLAGS)
  12907. -])
  12908. -AC_DEFUN([LT_AC_PROG_RC],
  12909. -[AC_CHECK_TOOL(RC, windres, no)
  12910. -])
  12911. +# lt_dict_add(DICT, KEY, VALUE)
  12912. +# -----------------------------
  12913. +m4_define([lt_dict_add],
  12914. +[m4_define([$1($2)], [$3])])
  12915. -# NOTE: This macro has been submitted for inclusion into #
  12916. -# GNU Autoconf as AC_PROG_SED. When it is available in #
  12917. -# a released version of Autoconf we should remove this #
  12918. -# macro and use it instead. #
  12919. -# LT_AC_PROG_SED
  12920. -# --------------
  12921. -# Check for a fully-functional sed program, that truncates
  12922. -# as few characters as possible. Prefer GNU sed if found.
  12923. -AC_DEFUN([LT_AC_PROG_SED],
  12924. -[AC_MSG_CHECKING([for a sed that does not truncate output])
  12925. -AC_CACHE_VAL(lt_cv_path_SED,
  12926. -[# Loop through the user's path and test for sed and gsed.
  12927. -# Then use that list of sed's as ones to test for truncation.
  12928. -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  12929. -for as_dir in $PATH
  12930. -do
  12931. - IFS=$as_save_IFS
  12932. - test -z "$as_dir" && as_dir=.
  12933. - for lt_ac_prog in sed gsed; do
  12934. - for ac_exec_ext in '' $ac_executable_extensions; do
  12935. - if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
  12936. - lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
  12937. - fi
  12938. - done
  12939. - done
  12940. -done
  12941. -IFS=$as_save_IFS
  12942. -lt_ac_max=0
  12943. -lt_ac_count=0
  12944. -# Add /usr/xpg4/bin/sed as it is typically found on Solaris
  12945. -# along with /bin/sed that truncates output.
  12946. -for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
  12947. - test ! -f $lt_ac_sed && continue
  12948. - cat /dev/null > conftest.in
  12949. - lt_ac_count=0
  12950. - echo $ECHO_N "0123456789$ECHO_C" >conftest.in
  12951. - # Check for GNU sed and select it if it is found.
  12952. - if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
  12953. - lt_cv_path_SED=$lt_ac_sed
  12954. - break
  12955. - fi
  12956. - while true; do
  12957. - cat conftest.in conftest.in >conftest.tmp
  12958. - mv conftest.tmp conftest.in
  12959. - cp conftest.in conftest.nl
  12960. - echo >>conftest.nl
  12961. - $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
  12962. - cmp -s conftest.out conftest.nl || break
  12963. - # 10000 chars as input seems more than enough
  12964. - test $lt_ac_count -gt 10 && break
  12965. - lt_ac_count=`expr $lt_ac_count + 1`
  12966. - if test $lt_ac_count -gt $lt_ac_max; then
  12967. - lt_ac_max=$lt_ac_count
  12968. - lt_cv_path_SED=$lt_ac_sed
  12969. - fi
  12970. - done
  12971. -done
  12972. +
  12973. +# lt_dict_add_subkey(DICT, KEY, SUBKEY, VALUE)
  12974. +# --------------------------------------------
  12975. +m4_define([lt_dict_add_subkey],
  12976. +[m4_define([$1($2:$3)], [$4])])
  12977. +
  12978. +
  12979. +# lt_dict_fetch(DICT, KEY, [SUBKEY])
  12980. +# ----------------------------------
  12981. +m4_define([lt_dict_fetch],
  12982. +[m4_ifval([$3],
  12983. + m4_ifdef([$1($2:$3)], [m4_defn([$1($2:$3)])]),
  12984. + m4_ifdef([$1($2)], [m4_defn([$1($2)])]))])
  12985. +
  12986. +
  12987. +# lt_if_dict_fetch(DICT, KEY, [SUBKEY], VALUE, IF-TRUE, [IF-FALSE])
  12988. +# -----------------------------------------------------------------
  12989. +m4_define([lt_if_dict_fetch],
  12990. +[m4_if(lt_dict_fetch([$1], [$2], [$3]), [$4],
  12991. + [$5],
  12992. + [$6])])
  12993. +
  12994. +
  12995. +# lt_dict_filter(DICT, [SUBKEY], VALUE, [SEPARATOR], KEY, [...])
  12996. +# --------------------------------------------------------------
  12997. +m4_define([lt_dict_filter],
  12998. +[m4_if([$5], [], [],
  12999. + [lt_join(m4_quote(m4_default([$4], [[, ]])),
  13000. + lt_unquote(m4_split(m4_normalize(m4_foreach(_Lt_key, lt_car([m4_shiftn(4, $@)]),
  13001. + [lt_if_dict_fetch([$1], _Lt_key, [$2], [$3], [_Lt_key ])])))))])[]dnl
  13002. ])
  13003. -SED=$lt_cv_path_SED
  13004. -AC_SUBST([SED])
  13005. -AC_MSG_RESULT([$SED])
  13006. +
  13007. +# ltversion.m4 -- version numbers -*- Autoconf -*-
  13008. +#
  13009. +# Copyright (C) 2004 Free Software Foundation, Inc.
  13010. +# Written by Scott James Remnant, 2004
  13011. +#
  13012. +# This file is free software; the Free Software Foundation gives
  13013. +# unlimited permission to copy and/or distribute it, with or without
  13014. +# modifications, as long as this notice is preserved.
  13015. +
  13016. +# Generated from ltversion.in.
  13017. +
  13018. +# serial 3017 ltversion.m4
  13019. +# This file is part of GNU Libtool
  13020. +
  13021. +m4_define([LT_PACKAGE_VERSION], [2.2.6b])
  13022. +m4_define([LT_PACKAGE_REVISION], [1.3017])
  13023. +
  13024. +AC_DEFUN([LTVERSION_VERSION],
  13025. +[macro_version='2.2.6b'
  13026. +macro_revision='1.3017'
  13027. +_LT_DECL(, macro_version, 0, [Which release of libtool.m4 was used?])
  13028. +_LT_DECL(, macro_revision, 0)
  13029. ])
  13030. -# Copyright (C) 2002, 2003, 2005 Free Software Foundation, Inc.
  13031. +# lt~obsolete.m4 -- aclocal satisfying obsolete definitions. -*-Autoconf-*-
  13032. +#
  13033. +# Copyright (C) 2004, 2005, 2007 Free Software Foundation, Inc.
  13034. +# Written by Scott James Remnant, 2004.
  13035. +#
  13036. +# This file is free software; the Free Software Foundation gives
  13037. +# unlimited permission to copy and/or distribute it, with or without
  13038. +# modifications, as long as this notice is preserved.
  13039. +
  13040. +# serial 4 lt~obsolete.m4
  13041. +
  13042. +# These exist entirely to fool aclocal when bootstrapping libtool.
  13043. +#
  13044. +# In the past libtool.m4 has provided macros via AC_DEFUN (or AU_DEFUN)
  13045. +# which have later been changed to m4_define as they aren't part of the
  13046. +# exported API, or moved to Autoconf or Automake where they belong.
  13047. +#
  13048. +# The trouble is, aclocal is a bit thick. It'll see the old AC_DEFUN
  13049. +# in /usr/share/aclocal/libtool.m4 and remember it, then when it sees us
  13050. +# using a macro with the same name in our local m4/libtool.m4 it'll
  13051. +# pull the old libtool.m4 in (it doesn't see our shiny new m4_define
  13052. +# and doesn't know about Autoconf macros at all.)
  13053. +#
  13054. +# So we provide this file, which has a silly filename so it's always
  13055. +# included after everything else. This provides aclocal with the
  13056. +# AC_DEFUNs it wants, but when m4 processes it, it doesn't do anything
  13057. +# because those macros already exist, or will be overwritten later.
  13058. +# We use AC_DEFUN over AU_DEFUN for compatibility with aclocal-1.6.
  13059. +#
  13060. +# Anytime we withdraw an AC_DEFUN or AU_DEFUN, remember to add it here.
  13061. +# Yes, that means every name once taken will need to remain here until
  13062. +# we give up compatibility with versions before 1.7, at which point
  13063. +# we need to keep only those names which we still refer to.
  13064. +
  13065. +# This is to help aclocal find these macros, as it can't see m4_define.
  13066. +AC_DEFUN([LTOBSOLETE_VERSION], [m4_if([1])])
  13067. +
  13068. +m4_ifndef([AC_LIBTOOL_LINKER_OPTION], [AC_DEFUN([AC_LIBTOOL_LINKER_OPTION])])
  13069. +m4_ifndef([AC_PROG_EGREP], [AC_DEFUN([AC_PROG_EGREP])])
  13070. +m4_ifndef([_LT_AC_PROG_ECHO_BACKSLASH], [AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH])])
  13071. +m4_ifndef([_LT_AC_SHELL_INIT], [AC_DEFUN([_LT_AC_SHELL_INIT])])
  13072. +m4_ifndef([_LT_AC_SYS_LIBPATH_AIX], [AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX])])
  13073. +m4_ifndef([_LT_PROG_LTMAIN], [AC_DEFUN([_LT_PROG_LTMAIN])])
  13074. +m4_ifndef([_LT_AC_TAGVAR], [AC_DEFUN([_LT_AC_TAGVAR])])
  13075. +m4_ifndef([AC_LTDL_ENABLE_INSTALL], [AC_DEFUN([AC_LTDL_ENABLE_INSTALL])])
  13076. +m4_ifndef([AC_LTDL_PREOPEN], [AC_DEFUN([AC_LTDL_PREOPEN])])
  13077. +m4_ifndef([_LT_AC_SYS_COMPILER], [AC_DEFUN([_LT_AC_SYS_COMPILER])])
  13078. +m4_ifndef([_LT_AC_LOCK], [AC_DEFUN([_LT_AC_LOCK])])
  13079. +m4_ifndef([AC_LIBTOOL_SYS_OLD_ARCHIVE], [AC_DEFUN([AC_LIBTOOL_SYS_OLD_ARCHIVE])])
  13080. +m4_ifndef([_LT_AC_TRY_DLOPEN_SELF], [AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF])])
  13081. +m4_ifndef([AC_LIBTOOL_PROG_CC_C_O], [AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O])])
  13082. +m4_ifndef([AC_LIBTOOL_SYS_HARD_LINK_LOCKS], [AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS])])
  13083. +m4_ifndef([AC_LIBTOOL_OBJDIR], [AC_DEFUN([AC_LIBTOOL_OBJDIR])])
  13084. +m4_ifndef([AC_LTDL_OBJDIR], [AC_DEFUN([AC_LTDL_OBJDIR])])
  13085. +m4_ifndef([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH], [AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH])])
  13086. +m4_ifndef([AC_LIBTOOL_SYS_LIB_STRIP], [AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP])])
  13087. +m4_ifndef([AC_PATH_MAGIC], [AC_DEFUN([AC_PATH_MAGIC])])
  13088. +m4_ifndef([AC_PROG_LD_GNU], [AC_DEFUN([AC_PROG_LD_GNU])])
  13089. +m4_ifndef([AC_PROG_LD_RELOAD_FLAG], [AC_DEFUN([AC_PROG_LD_RELOAD_FLAG])])
  13090. +m4_ifndef([AC_DEPLIBS_CHECK_METHOD], [AC_DEFUN([AC_DEPLIBS_CHECK_METHOD])])
  13091. +m4_ifndef([AC_LIBTOOL_PROG_COMPILER_NO_RTTI], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI])])
  13092. +m4_ifndef([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE], [AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE])])
  13093. +m4_ifndef([AC_LIBTOOL_PROG_COMPILER_PIC], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_PIC])])
  13094. +m4_ifndef([AC_LIBTOOL_PROG_LD_SHLIBS], [AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS])])
  13095. +m4_ifndef([AC_LIBTOOL_POSTDEP_PREDEP], [AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP])])
  13096. +m4_ifndef([LT_AC_PROG_EGREP], [AC_DEFUN([LT_AC_PROG_EGREP])])
  13097. +m4_ifndef([LT_AC_PROG_SED], [AC_DEFUN([LT_AC_PROG_SED])])
  13098. +m4_ifndef([_LT_CC_BASENAME], [AC_DEFUN([_LT_CC_BASENAME])])
  13099. +m4_ifndef([_LT_COMPILER_BOILERPLATE], [AC_DEFUN([_LT_COMPILER_BOILERPLATE])])
  13100. +m4_ifndef([_LT_LINKER_BOILERPLATE], [AC_DEFUN([_LT_LINKER_BOILERPLATE])])
  13101. +m4_ifndef([_AC_PROG_LIBTOOL], [AC_DEFUN([_AC_PROG_LIBTOOL])])
  13102. +m4_ifndef([AC_LIBTOOL_SETUP], [AC_DEFUN([AC_LIBTOOL_SETUP])])
  13103. +m4_ifndef([_LT_AC_CHECK_DLFCN], [AC_DEFUN([_LT_AC_CHECK_DLFCN])])
  13104. +m4_ifndef([AC_LIBTOOL_SYS_DYNAMIC_LINKER], [AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER])])
  13105. +m4_ifndef([_LT_AC_TAGCONFIG], [AC_DEFUN([_LT_AC_TAGCONFIG])])
  13106. +m4_ifndef([AC_DISABLE_FAST_INSTALL], [AC_DEFUN([AC_DISABLE_FAST_INSTALL])])
  13107. +m4_ifndef([_LT_AC_LANG_CXX], [AC_DEFUN([_LT_AC_LANG_CXX])])
  13108. +m4_ifndef([_LT_AC_LANG_F77], [AC_DEFUN([_LT_AC_LANG_F77])])
  13109. +m4_ifndef([_LT_AC_LANG_GCJ], [AC_DEFUN([_LT_AC_LANG_GCJ])])
  13110. +m4_ifndef([AC_LIBTOOL_RC], [AC_DEFUN([AC_LIBTOOL_RC])])
  13111. +m4_ifndef([AC_LIBTOOL_LANG_C_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG])])
  13112. +m4_ifndef([_LT_AC_LANG_C_CONFIG], [AC_DEFUN([_LT_AC_LANG_C_CONFIG])])
  13113. +m4_ifndef([AC_LIBTOOL_LANG_CXX_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG])])
  13114. +m4_ifndef([_LT_AC_LANG_CXX_CONFIG], [AC_DEFUN([_LT_AC_LANG_CXX_CONFIG])])
  13115. +m4_ifndef([AC_LIBTOOL_LANG_F77_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG])])
  13116. +m4_ifndef([_LT_AC_LANG_F77_CONFIG], [AC_DEFUN([_LT_AC_LANG_F77_CONFIG])])
  13117. +m4_ifndef([AC_LIBTOOL_LANG_GCJ_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG])])
  13118. +m4_ifndef([_LT_AC_LANG_GCJ_CONFIG], [AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG])])
  13119. +m4_ifndef([AC_LIBTOOL_LANG_RC_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG])])
  13120. +m4_ifndef([_LT_AC_LANG_RC_CONFIG], [AC_DEFUN([_LT_AC_LANG_RC_CONFIG])])
  13121. +m4_ifndef([AC_LIBTOOL_CONFIG], [AC_DEFUN([AC_LIBTOOL_CONFIG])])
  13122. +m4_ifndef([_LT_AC_FILE_LTDLL_C], [AC_DEFUN([_LT_AC_FILE_LTDLL_C])])
  13123. +
  13124. +# Copyright (C) 2002, 2003, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
  13125. #
  13126. # This file is free software; the Free Software Foundation
  13127. # gives unlimited permission to copy and/or distribute it,
  13128. @@ -6420,14 +7995,31 @@
  13129. # ----------------------------
  13130. # Automake X.Y traces this macro to ensure aclocal.m4 has been
  13131. # generated from the m4 files accompanying Automake X.Y.
  13132. -AC_DEFUN([AM_AUTOMAKE_VERSION], [am__api_version="1.9"])
  13133. +# (This private macro should not be called outside this file.)
  13134. +AC_DEFUN([AM_AUTOMAKE_VERSION],
  13135. +[am__api_version='1.11'
  13136. +dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
  13137. +dnl require some minimum version. Point them to the right macro.
  13138. +m4_if([$1], [1.11.1], [],
  13139. + [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
  13140. +])
  13141. +
  13142. +# _AM_AUTOCONF_VERSION(VERSION)
  13143. +# -----------------------------
  13144. +# aclocal traces this macro to find the Autoconf version.
  13145. +# This is a private macro too. Using m4_define simplifies
  13146. +# the logic in aclocal, which can simply ignore this definition.
  13147. +m4_define([_AM_AUTOCONF_VERSION], [])
  13148. # AM_SET_CURRENT_AUTOMAKE_VERSION
  13149. # -------------------------------
  13150. -# Call AM_AUTOMAKE_VERSION so it can be traced.
  13151. -# This function is AC_REQUIREd by AC_INIT_AUTOMAKE.
  13152. +# Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
  13153. +# This function is AC_REQUIREd by AM_INIT_AUTOMAKE.
  13154. AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
  13155. - [AM_AUTOMAKE_VERSION([1.9.6])])
  13156. +[AM_AUTOMAKE_VERSION([1.11.1])dnl
  13157. +m4_ifndef([AC_AUTOCONF_VERSION],
  13158. + [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
  13159. +_AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))])
  13160. # AM_AUX_DIR_EXPAND -*- Autoconf -*-
  13161. @@ -6484,14 +8076,14 @@
  13162. # AM_CONDITIONAL -*- Autoconf -*-
  13163. -# Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005
  13164. +# Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006, 2008
  13165. # Free Software Foundation, Inc.
  13166. #
  13167. # This file is free software; the Free Software Foundation
  13168. # gives unlimited permission to copy and/or distribute it,
  13169. # with or without modifications, as long as this notice is preserved.
  13170. -# serial 7
  13171. +# serial 9
  13172. # AM_CONDITIONAL(NAME, SHELL-CONDITION)
  13173. # -------------------------------------
  13174. @@ -6500,8 +8092,11 @@
  13175. [AC_PREREQ(2.52)dnl
  13176. ifelse([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])],
  13177. [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
  13178. -AC_SUBST([$1_TRUE])
  13179. -AC_SUBST([$1_FALSE])
  13180. +AC_SUBST([$1_TRUE])dnl
  13181. +AC_SUBST([$1_FALSE])dnl
  13182. +_AM_SUBST_NOTMAKE([$1_TRUE])dnl
  13183. +_AM_SUBST_NOTMAKE([$1_FALSE])dnl
  13184. +m4_define([_AM_COND_VALUE_$1], [$2])dnl
  13185. if $2; then
  13186. $1_TRUE=
  13187. $1_FALSE='#'
  13188. @@ -6515,15 +8110,14 @@
  13189. Usually this means the macro was only invoked conditionally.]])
  13190. fi])])
  13191. -
  13192. -# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005
  13193. +# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2009
  13194. # Free Software Foundation, Inc.
  13195. #
  13196. # This file is free software; the Free Software Foundation
  13197. # gives unlimited permission to copy and/or distribute it,
  13198. # with or without modifications, as long as this notice is preserved.
  13199. -# serial 8
  13200. +# serial 10
  13201. # There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
  13202. # written in clear, in which case automake, when reading aclocal.m4,
  13203. @@ -6551,6 +8145,7 @@
  13204. ifelse([$1], CC, [depcc="$CC" am_compiler_list=],
  13205. [$1], CXX, [depcc="$CXX" am_compiler_list=],
  13206. [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
  13207. + [$1], UPC, [depcc="$UPC" am_compiler_list=],
  13208. [$1], GCJ, [depcc="$GCJ" am_compiler_list='gcc3 gcc'],
  13209. [depcc="$$1" am_compiler_list=])
  13210. @@ -6579,6 +8174,16 @@
  13211. if test "$am_compiler_list" = ""; then
  13212. am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
  13213. fi
  13214. + am__universal=false
  13215. + m4_case([$1], [CC],
  13216. + [case " $depcc " in #(
  13217. + *\ -arch\ *\ -arch\ *) am__universal=true ;;
  13218. + esac],
  13219. + [CXX],
  13220. + [case " $depcc " in #(
  13221. + *\ -arch\ *\ -arch\ *) am__universal=true ;;
  13222. + esac])
  13223. +
  13224. for depmode in $am_compiler_list; do
  13225. # Setup a source with many dependencies, because some compilers
  13226. # like to wrap large dependency lists on column 80 (with \), and
  13227. @@ -6596,7 +8201,17 @@
  13228. done
  13229. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  13230. + # We check with `-c' and `-o' for the sake of the "dashmstdout"
  13231. + # mode. It turns out that the SunPro C++ compiler does not properly
  13232. + # handle `-M -o', and we need to detect this. Also, some Intel
  13233. + # versions had trouble with output in subdirs
  13234. + am__obj=sub/conftest.${OBJEXT-o}
  13235. + am__minus_obj="-o $am__obj"
  13236. case $depmode in
  13237. + gcc)
  13238. + # This depmode causes a compiler race in universal mode.
  13239. + test "$am__universal" = false || continue
  13240. + ;;
  13241. nosideeffect)
  13242. # after this tag, mechanisms are not by side-effect, so they'll
  13243. # only be used when explicitly requested
  13244. @@ -6606,18 +8221,23 @@
  13245. break
  13246. fi
  13247. ;;
  13248. + msvisualcpp | msvcmsys)
  13249. + # This compiler won't grok `-c -o', but also, the minuso test has
  13250. + # not run yet. These depmodes are late enough in the game, and
  13251. + # so weak that their functioning should not be impacted.
  13252. + am__obj=conftest.${OBJEXT-o}
  13253. + am__minus_obj=
  13254. + ;;
  13255. none) break ;;
  13256. esac
  13257. - # We check with `-c' and `-o' for the sake of the "dashmstdout"
  13258. - # mode. It turns out that the SunPro C++ compiler does not properly
  13259. - # handle `-M -o', and we need to detect this.
  13260. if depmode=$depmode \
  13261. - source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
  13262. + source=sub/conftest.c object=$am__obj \
  13263. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  13264. - $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
  13265. + $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  13266. >/dev/null 2>conftest.err &&
  13267. + grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  13268. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  13269. - grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
  13270. + grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  13271. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  13272. # icc doesn't choke on unknown options, it will just issue warnings
  13273. # or remarks (even with -Werror). So we grep stderr for any message
  13274. @@ -6668,61 +8288,74 @@
  13275. AMDEPBACKSLASH='\'
  13276. fi
  13277. AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
  13278. -AC_SUBST([AMDEPBACKSLASH])
  13279. +AC_SUBST([AMDEPBACKSLASH])dnl
  13280. +_AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl
  13281. ])
  13282. # Generate code to set up dependency tracking. -*- Autoconf -*-
  13283. -# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005
  13284. +# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2008
  13285. # Free Software Foundation, Inc.
  13286. #
  13287. # This file is free software; the Free Software Foundation
  13288. # gives unlimited permission to copy and/or distribute it,
  13289. # with or without modifications, as long as this notice is preserved.
  13290. -#serial 3
  13291. +#serial 5
  13292. # _AM_OUTPUT_DEPENDENCY_COMMANDS
  13293. # ------------------------------
  13294. AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
  13295. -[for mf in $CONFIG_FILES; do
  13296. - # Strip MF so we end up with the name of the file.
  13297. - mf=`echo "$mf" | sed -e 's/:.*$//'`
  13298. - # Check whether this is an Automake generated Makefile or not.
  13299. - # We used to match only the files named `Makefile.in', but
  13300. - # some people rename them; so instead we look at the file content.
  13301. - # Grep'ing the first line is not enough: some people post-process
  13302. - # each Makefile.in and add a new line on top of each file to say so.
  13303. - # So let's grep whole file.
  13304. - if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
  13305. - dirpart=`AS_DIRNAME("$mf")`
  13306. - else
  13307. - continue
  13308. - fi
  13309. - # Extract the definition of DEPDIR, am__include, and am__quote
  13310. - # from the Makefile without running `make'.
  13311. - DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  13312. - test -z "$DEPDIR" && continue
  13313. - am__include=`sed -n 's/^am__include = //p' < "$mf"`
  13314. - test -z "am__include" && continue
  13315. - am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  13316. - # When using ansi2knr, U may be empty or an underscore; expand it
  13317. - U=`sed -n 's/^U = //p' < "$mf"`
  13318. - # Find all dependency output files, they are included files with
  13319. - # $(DEPDIR) in their names. We invoke sed twice because it is the
  13320. - # simplest approach to changing $(DEPDIR) to its actual value in the
  13321. - # expansion.
  13322. - for file in `sed -n "
  13323. - s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  13324. - sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
  13325. - # Make sure the directory exists.
  13326. - test -f "$dirpart/$file" && continue
  13327. - fdir=`AS_DIRNAME(["$file"])`
  13328. - AS_MKDIR_P([$dirpart/$fdir])
  13329. - # echo "creating $dirpart/$file"
  13330. - echo '# dummy' > "$dirpart/$file"
  13331. +[{
  13332. + # Autoconf 2.62 quotes --file arguments for eval, but not when files
  13333. + # are listed without --file. Let's play safe and only enable the eval
  13334. + # if we detect the quoting.
  13335. + case $CONFIG_FILES in
  13336. + *\'*) eval set x "$CONFIG_FILES" ;;
  13337. + *) set x $CONFIG_FILES ;;
  13338. + esac
  13339. + shift
  13340. + for mf
  13341. + do
  13342. + # Strip MF so we end up with the name of the file.
  13343. + mf=`echo "$mf" | sed -e 's/:.*$//'`
  13344. + # Check whether this is an Automake generated Makefile or not.
  13345. + # We used to match only the files named `Makefile.in', but
  13346. + # some people rename them; so instead we look at the file content.
  13347. + # Grep'ing the first line is not enough: some people post-process
  13348. + # each Makefile.in and add a new line on top of each file to say so.
  13349. + # Grep'ing the whole file is not good either: AIX grep has a line
  13350. + # limit of 2048, but all sed's we know have understand at least 4000.
  13351. + if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
  13352. + dirpart=`AS_DIRNAME("$mf")`
  13353. + else
  13354. + continue
  13355. + fi
  13356. + # Extract the definition of DEPDIR, am__include, and am__quote
  13357. + # from the Makefile without running `make'.
  13358. + DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  13359. + test -z "$DEPDIR" && continue
  13360. + am__include=`sed -n 's/^am__include = //p' < "$mf"`
  13361. + test -z "am__include" && continue
  13362. + am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  13363. + # When using ansi2knr, U may be empty or an underscore; expand it
  13364. + U=`sed -n 's/^U = //p' < "$mf"`
  13365. + # Find all dependency output files, they are included files with
  13366. + # $(DEPDIR) in their names. We invoke sed twice because it is the
  13367. + # simplest approach to changing $(DEPDIR) to its actual value in the
  13368. + # expansion.
  13369. + for file in `sed -n "
  13370. + s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  13371. + sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
  13372. + # Make sure the directory exists.
  13373. + test -f "$dirpart/$file" && continue
  13374. + fdir=`AS_DIRNAME(["$file"])`
  13375. + AS_MKDIR_P([$dirpart/$fdir])
  13376. + # echo "creating $dirpart/$file"
  13377. + echo '# dummy' > "$dirpart/$file"
  13378. + done
  13379. done
  13380. -done
  13381. +}
  13382. ])# _AM_OUTPUT_DEPENDENCY_COMMANDS
  13383. @@ -6741,14 +8374,14 @@
  13384. # Do all the work for Automake. -*- Autoconf -*-
  13385. -# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005
  13386. -# Free Software Foundation, Inc.
  13387. +# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
  13388. +# 2005, 2006, 2008, 2009 Free Software Foundation, Inc.
  13389. #
  13390. # This file is free software; the Free Software Foundation
  13391. # gives unlimited permission to copy and/or distribute it,
  13392. # with or without modifications, as long as this notice is preserved.
  13393. -# serial 12
  13394. +# serial 16
  13395. # This macro actually does too much. Some checks are only needed if
  13396. # your package does certain things. But this isn't really a big deal.
  13397. @@ -6765,16 +8398,20 @@
  13398. # arguments mandatory, and then we can depend on a new Autoconf
  13399. # release and drop the old call support.
  13400. AC_DEFUN([AM_INIT_AUTOMAKE],
  13401. -[AC_PREREQ([2.58])dnl
  13402. +[AC_PREREQ([2.62])dnl
  13403. dnl Autoconf wants to disallow AM_ names. We explicitly allow
  13404. dnl the ones we care about.
  13405. m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
  13406. AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
  13407. AC_REQUIRE([AC_PROG_INSTALL])dnl
  13408. -# test to see if srcdir already configured
  13409. -if test "`cd $srcdir && pwd`" != "`pwd`" &&
  13410. - test -f $srcdir/config.status; then
  13411. - AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
  13412. +if test "`cd $srcdir && pwd`" != "`pwd`"; then
  13413. + # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  13414. + # is not polluted with repeated "-I."
  13415. + AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl
  13416. + # test to see if srcdir already configured
  13417. + if test -f $srcdir/config.status; then
  13418. + AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
  13419. + fi
  13420. fi
  13421. # test whether we have cygpath
  13422. @@ -6794,6 +8431,9 @@
  13423. AC_SUBST([PACKAGE], [$1])dnl
  13424. AC_SUBST([VERSION], [$2])],
  13425. [_AM_SET_OPTIONS([$1])dnl
  13426. +dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT.
  13427. +m4_if(m4_ifdef([AC_PACKAGE_NAME], 1)m4_ifdef([AC_PACKAGE_VERSION], 1), 11,,
  13428. + [m4_fatal([AC_INIT should be called with package and version arguments])])dnl
  13429. AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
  13430. AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
  13431. @@ -6809,8 +8449,8 @@
  13432. AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version})
  13433. AM_MISSING_PROG(AUTOHEADER, autoheader)
  13434. AM_MISSING_PROG(MAKEINFO, makeinfo)
  13435. -AM_PROG_INSTALL_SH
  13436. -AM_PROG_INSTALL_STRIP
  13437. +AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
  13438. +AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl
  13439. AC_REQUIRE([AM_PROG_MKDIR_P])dnl
  13440. # We need awk for the "check" target. The system "awk" is bad on
  13441. # some platforms.
  13442. @@ -6818,20 +8458,37 @@
  13443. AC_REQUIRE([AC_PROG_MAKE_SET])dnl
  13444. AC_REQUIRE([AM_SET_LEADING_DOT])dnl
  13445. _AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])],
  13446. - [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
  13447. - [_AM_PROG_TAR([v7])])])
  13448. + [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
  13449. + [_AM_PROG_TAR([v7])])])
  13450. _AM_IF_OPTION([no-dependencies],,
  13451. [AC_PROVIDE_IFELSE([AC_PROG_CC],
  13452. - [_AM_DEPENDENCIES(CC)],
  13453. - [define([AC_PROG_CC],
  13454. - defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl
  13455. + [_AM_DEPENDENCIES(CC)],
  13456. + [define([AC_PROG_CC],
  13457. + defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl
  13458. AC_PROVIDE_IFELSE([AC_PROG_CXX],
  13459. - [_AM_DEPENDENCIES(CXX)],
  13460. - [define([AC_PROG_CXX],
  13461. - defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
  13462. + [_AM_DEPENDENCIES(CXX)],
  13463. + [define([AC_PROG_CXX],
  13464. + defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
  13465. +AC_PROVIDE_IFELSE([AC_PROG_OBJC],
  13466. + [_AM_DEPENDENCIES(OBJC)],
  13467. + [define([AC_PROG_OBJC],
  13468. + defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl
  13469. ])
  13470. +_AM_IF_OPTION([silent-rules], [AC_REQUIRE([AM_SILENT_RULES])])dnl
  13471. +dnl The `parallel-tests' driver may need to know about EXEEXT, so add the
  13472. +dnl `am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen. This macro
  13473. +dnl is hooked onto _AC_COMPILER_EXEEXT early, see below.
  13474. +AC_CONFIG_COMMANDS_PRE(dnl
  13475. +[m4_provide_if([_AM_COMPILER_EXEEXT],
  13476. + [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl
  13477. ])
  13478. +dnl Hook into `_AC_COMPILER_EXEEXT' early to learn its expansion. Do not
  13479. +dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further
  13480. +dnl mangled by Autoconf and run in a shell conditional statement.
  13481. +m4_define([_AC_COMPILER_EXEEXT],
  13482. +m4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])])
  13483. +
  13484. # When config.status generates a header, we must update the stamp-h file.
  13485. # This file resides in the same directory as the config header
  13486. @@ -6842,18 +8499,19 @@
  13487. # our stamp files there.
  13488. AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
  13489. [# Compute $1's index in $config_headers.
  13490. +_am_arg=$1
  13491. _am_stamp_count=1
  13492. for _am_header in $config_headers :; do
  13493. case $_am_header in
  13494. - $1 | $1:* )
  13495. + $_am_arg | $_am_arg:* )
  13496. break ;;
  13497. * )
  13498. _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  13499. esac
  13500. done
  13501. -echo "timestamp for $1" >`AS_DIRNAME([$1])`/stamp-h[]$_am_stamp_count])
  13502. +echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count])
  13503. -# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
  13504. +# Copyright (C) 2001, 2003, 2005, 2008 Free Software Foundation, Inc.
  13505. #
  13506. # This file is free software; the Free Software Foundation
  13507. # gives unlimited permission to copy and/or distribute it,
  13508. @@ -6864,7 +8522,14 @@
  13509. # Define $install_sh.
  13510. AC_DEFUN([AM_PROG_INSTALL_SH],
  13511. [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
  13512. -install_sh=${install_sh-"$am_aux_dir/install-sh"}
  13513. +if test x"${install_sh}" != xset; then
  13514. + case $am_aux_dir in
  13515. + *\ * | *\ *)
  13516. + install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
  13517. + *)
  13518. + install_sh="\${SHELL} $am_aux_dir/install-sh"
  13519. + esac
  13520. +fi
  13521. AC_SUBST(install_sh)])
  13522. # Copyright (C) 2003, 2005 Free Software Foundation, Inc.
  13523. @@ -6890,13 +8555,13 @@
  13524. # Check to see how 'make' treats includes. -*- Autoconf -*-
  13525. -# Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation, Inc.
  13526. +# Copyright (C) 2001, 2002, 2003, 2005, 2009 Free Software Foundation, Inc.
  13527. #
  13528. # This file is free software; the Free Software Foundation
  13529. # gives unlimited permission to copy and/or distribute it,
  13530. # with or without modifications, as long as this notice is preserved.
  13531. -# serial 3
  13532. +# serial 4
  13533. # AM_MAKE_INCLUDE()
  13534. # -----------------
  13535. @@ -6905,7 +8570,7 @@
  13536. [am_make=${MAKE-make}
  13537. cat > confinc << 'END'
  13538. am__doit:
  13539. - @echo done
  13540. + @echo this is the am__doit target
  13541. .PHONY: am__doit
  13542. END
  13543. # If we don't find an include directive, just comment out the code.
  13544. @@ -6915,24 +8580,24 @@
  13545. _am_result=none
  13546. # First try GNU make style include.
  13547. echo "include confinc" > confmf
  13548. -# We grep out `Entering directory' and `Leaving directory'
  13549. -# messages which can occur if `w' ends up in MAKEFLAGS.
  13550. -# In particular we don't look at `^make:' because GNU make might
  13551. -# be invoked under some other name (usually "gmake"), in which
  13552. -# case it prints its new name instead of `make'.
  13553. -if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
  13554. - am__include=include
  13555. - am__quote=
  13556. - _am_result=GNU
  13557. -fi
  13558. +# Ignore all kinds of additional output from `make'.
  13559. +case `$am_make -s -f confmf 2> /dev/null` in #(
  13560. +*the\ am__doit\ target*)
  13561. + am__include=include
  13562. + am__quote=
  13563. + _am_result=GNU
  13564. + ;;
  13565. +esac
  13566. # Now try BSD make style include.
  13567. if test "$am__include" = "#"; then
  13568. echo '.include "confinc"' > confmf
  13569. - if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
  13570. - am__include=.include
  13571. - am__quote="\""
  13572. - _am_result=BSD
  13573. - fi
  13574. + case `$am_make -s -f confmf 2> /dev/null` in #(
  13575. + *the\ am__doit\ target*)
  13576. + am__include=.include
  13577. + am__quote="\""
  13578. + _am_result=BSD
  13579. + ;;
  13580. + esac
  13581. fi
  13582. AC_SUBST([am__include])
  13583. AC_SUBST([am__quote])
  13584. @@ -6942,14 +8607,14 @@
  13585. # Fake the existence of programs that GNU maintainers use. -*- Autoconf -*-
  13586. -# Copyright (C) 1997, 1999, 2000, 2001, 2003, 2005
  13587. +# Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005, 2008
  13588. # Free Software Foundation, Inc.
  13589. #
  13590. # This file is free software; the Free Software Foundation
  13591. # gives unlimited permission to copy and/or distribute it,
  13592. # with or without modifications, as long as this notice is preserved.
  13593. -# serial 4
  13594. +# serial 6
  13595. # AM_MISSING_PROG(NAME, PROGRAM)
  13596. # ------------------------------
  13597. @@ -6965,7 +8630,15 @@
  13598. # If it does, set am_missing_run to use it, otherwise, to nothing.
  13599. AC_DEFUN([AM_MISSING_HAS_RUN],
  13600. [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
  13601. -test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
  13602. +AC_REQUIRE_AUX_FILE([missing])dnl
  13603. +if test x"${MISSING+set}" != xset; then
  13604. + case $am_aux_dir in
  13605. + *\ * | *\ *)
  13606. + MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
  13607. + *)
  13608. + MISSING="\${SHELL} $am_aux_dir/missing" ;;
  13609. + esac
  13610. +fi
  13611. # Use eval to expand $SHELL
  13612. if eval "$MISSING --run true"; then
  13613. am_missing_run="$MISSING --run "
  13614. @@ -6975,7 +8648,7 @@
  13615. fi
  13616. ])
  13617. -# Copyright (C) 2003, 2004, 2005 Free Software Foundation, Inc.
  13618. +# Copyright (C) 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
  13619. #
  13620. # This file is free software; the Free Software Foundation
  13621. # gives unlimited permission to copy and/or distribute it,
  13622. @@ -6983,70 +8656,33 @@
  13623. # AM_PROG_MKDIR_P
  13624. # ---------------
  13625. -# Check whether `mkdir -p' is supported, fallback to mkinstalldirs otherwise.
  13626. -#
  13627. -# Automake 1.8 used `mkdir -m 0755 -p --' to ensure that directories
  13628. -# created by `make install' are always world readable, even if the
  13629. -# installer happens to have an overly restrictive umask (e.g. 077).
  13630. -# This was a mistake. There are at least two reasons why we must not
  13631. -# use `-m 0755':
  13632. -# - it causes special bits like SGID to be ignored,
  13633. -# - it may be too restrictive (some setups expect 775 directories).
  13634. -#
  13635. -# Do not use -m 0755 and let people choose whatever they expect by
  13636. -# setting umask.
  13637. -#
  13638. -# We cannot accept any implementation of `mkdir' that recognizes `-p'.
  13639. -# Some implementations (such as Solaris 8's) are not thread-safe: if a
  13640. -# parallel make tries to run `mkdir -p a/b' and `mkdir -p a/c'
  13641. -# concurrently, both version can detect that a/ is missing, but only
  13642. -# one can create it and the other will error out. Consequently we
  13643. -# restrict ourselves to GNU make (using the --version option ensures
  13644. -# this.)
  13645. +# Check for `mkdir -p'.
  13646. AC_DEFUN([AM_PROG_MKDIR_P],
  13647. -[if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
  13648. - # We used to keeping the `.' as first argument, in order to
  13649. - # allow $(mkdir_p) to be used without argument. As in
  13650. - # $(mkdir_p) $(somedir)
  13651. - # where $(somedir) is conditionally defined. However this is wrong
  13652. - # for two reasons:
  13653. - # 1. if the package is installed by a user who cannot write `.'
  13654. - # make install will fail,
  13655. - # 2. the above comment should most certainly read
  13656. - # $(mkdir_p) $(DESTDIR)$(somedir)
  13657. - # so it does not work when $(somedir) is undefined and
  13658. - # $(DESTDIR) is not.
  13659. - # To support the latter case, we have to write
  13660. - # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
  13661. - # so the `.' trick is pointless.
  13662. - mkdir_p='mkdir -p --'
  13663. -else
  13664. - # On NextStep and OpenStep, the `mkdir' command does not
  13665. - # recognize any option. It will interpret all options as
  13666. - # directories to create, and then abort because `.' already
  13667. - # exists.
  13668. - for d in ./-p ./--version;
  13669. - do
  13670. - test -d $d && rmdir $d
  13671. - done
  13672. - # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
  13673. - if test -f "$ac_aux_dir/mkinstalldirs"; then
  13674. - mkdir_p='$(mkinstalldirs)'
  13675. - else
  13676. - mkdir_p='$(install_sh) -d'
  13677. - fi
  13678. -fi
  13679. -AC_SUBST([mkdir_p])])
  13680. +[AC_PREREQ([2.60])dnl
  13681. +AC_REQUIRE([AC_PROG_MKDIR_P])dnl
  13682. +dnl Automake 1.8 to 1.9.6 used to define mkdir_p. We now use MKDIR_P,
  13683. +dnl while keeping a definition of mkdir_p for backward compatibility.
  13684. +dnl @MKDIR_P@ is magic: AC_OUTPUT adjusts its value for each Makefile.
  13685. +dnl However we cannot define mkdir_p as $(MKDIR_P) for the sake of
  13686. +dnl Makefile.ins that do not define MKDIR_P, so we do our own
  13687. +dnl adjustment using top_builddir (which is defined more often than
  13688. +dnl MKDIR_P).
  13689. +AC_SUBST([mkdir_p], ["$MKDIR_P"])dnl
  13690. +case $mkdir_p in
  13691. + [[\\/$]]* | ?:[[\\/]]*) ;;
  13692. + */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
  13693. +esac
  13694. +])
  13695. # Helper functions for option handling. -*- Autoconf -*-
  13696. -# Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation, Inc.
  13697. +# Copyright (C) 2001, 2002, 2003, 2005, 2008 Free Software Foundation, Inc.
  13698. #
  13699. # This file is free software; the Free Software Foundation
  13700. # gives unlimited permission to copy and/or distribute it,
  13701. # with or without modifications, as long as this notice is preserved.
  13702. -# serial 3
  13703. +# serial 4
  13704. # _AM_MANGLE_OPTION(NAME)
  13705. # -----------------------
  13706. @@ -7063,7 +8699,7 @@
  13707. # ----------------------------------
  13708. # OPTIONS is a space-separated list of Automake options.
  13709. AC_DEFUN([_AM_SET_OPTIONS],
  13710. -[AC_FOREACH([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
  13711. +[m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
  13712. # _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
  13713. # -------------------------------------------
  13714. @@ -7073,14 +8709,14 @@
  13715. # Check to make sure that the build environment is sane. -*- Autoconf -*-
  13716. -# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005
  13717. +# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005, 2008
  13718. # Free Software Foundation, Inc.
  13719. #
  13720. # This file is free software; the Free Software Foundation
  13721. # gives unlimited permission to copy and/or distribute it,
  13722. # with or without modifications, as long as this notice is preserved.
  13723. -# serial 4
  13724. +# serial 5
  13725. # AM_SANITY_CHECK
  13726. # ---------------
  13727. @@ -7089,16 +8725,29 @@
  13728. # Just in case
  13729. sleep 1
  13730. echo timestamp > conftest.file
  13731. +# Reject unsafe characters in $srcdir or the absolute working directory
  13732. +# name. Accept space and tab only in the latter.
  13733. +am_lf='
  13734. +'
  13735. +case `pwd` in
  13736. + *[[\\\"\#\$\&\'\`$am_lf]]*)
  13737. + AC_MSG_ERROR([unsafe absolute working directory name]);;
  13738. +esac
  13739. +case $srcdir in
  13740. + *[[\\\"\#\$\&\'\`$am_lf\ \ ]]*)
  13741. + AC_MSG_ERROR([unsafe srcdir value: `$srcdir']);;
  13742. +esac
  13743. +
  13744. # Do `set' in a subshell so we don't clobber the current shell's
  13745. # arguments. Must try -L first in case configure is actually a
  13746. # symlink; some systems play weird games with the mod time of symlinks
  13747. # (eg FreeBSD returns the mod time of the symlink's containing
  13748. # directory).
  13749. if (
  13750. - set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
  13751. + set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
  13752. if test "$[*]" = "X"; then
  13753. # -L didn't work.
  13754. - set X `ls -t $srcdir/configure conftest.file`
  13755. + set X `ls -t "$srcdir/configure" conftest.file`
  13756. fi
  13757. rm -f conftest.file
  13758. if test "$[*]" != "X $srcdir/configure conftest.file" \
  13759. @@ -7148,9 +8797,28 @@
  13760. if test "$cross_compiling" != no; then
  13761. AC_CHECK_TOOL([STRIP], [strip], :)
  13762. fi
  13763. -INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
  13764. +INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  13765. AC_SUBST([INSTALL_STRIP_PROGRAM])])
  13766. +# Copyright (C) 2006, 2008 Free Software Foundation, Inc.
  13767. +#
  13768. +# This file is free software; the Free Software Foundation
  13769. +# gives unlimited permission to copy and/or distribute it,
  13770. +# with or without modifications, as long as this notice is preserved.
  13771. +
  13772. +# serial 2
  13773. +
  13774. +# _AM_SUBST_NOTMAKE(VARIABLE)
  13775. +# ---------------------------
  13776. +# Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in.
  13777. +# This macro is traced by Automake.
  13778. +AC_DEFUN([_AM_SUBST_NOTMAKE])
  13779. +
  13780. +# AM_SUBST_NOTMAKE(VARIABLE)
  13781. +# ---------------------------
  13782. +# Public sister of _AM_SUBST_NOTMAKE.
  13783. +AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)])
  13784. +
  13785. # Check how to create a tarball. -*- Autoconf -*-
  13786. # Copyright (C) 2004, 2005 Free Software Foundation, Inc.
  13787. diff -Nur libgssglue-0.1.orig/config.guess libgssglue-0.1/config.guess
  13788. --- libgssglue-0.1.orig/config.guess 2005-12-02 22:14:34.000000000 +0100
  13789. +++ libgssglue-0.1/config.guess 2011-02-17 17:14:45.987311601 +0100
  13790. @@ -1,9 +1,10 @@
  13791. #! /bin/sh
  13792. # Attempt to guess a canonical system name.
  13793. # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
  13794. -# 2000, 2001, 2002, 2003, 2004 Free Software Foundation, Inc.
  13795. +# 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009
  13796. +# Free Software Foundation, Inc.
  13797. -timestamp='2004-08-13'
  13798. +timestamp='2009-06-10'
  13799. # This file is free software; you can redistribute it and/or modify it
  13800. # under the terms of the GNU General Public License as published by
  13801. @@ -17,13 +18,15 @@
  13802. #
  13803. # You should have received a copy of the GNU General Public License
  13804. # along with this program; if not, write to the Free Software
  13805. -# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
  13806. +# Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA
  13807. +# 02110-1301, USA.
  13808. #
  13809. # As a special exception to the GNU General Public License, if you
  13810. # distribute this file as part of a program that contains a
  13811. # configuration script generated by Autoconf, you may include it under
  13812. # the same distribution terms that you use for the rest of that program.
  13813. +
  13814. # Originally written by Per Bothner <per@bothner.com>.
  13815. # Please send patches to <config-patches@gnu.org>. Submit a context
  13816. # diff and a properly formatted ChangeLog entry.
  13817. @@ -53,8 +56,8 @@
  13818. GNU config.guess ($timestamp)
  13819. Originally written by Per Bothner.
  13820. -Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004
  13821. -Free Software Foundation, Inc.
  13822. +Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001,
  13823. +2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
  13824. This is free software; see the source for copying conditions. There is NO
  13825. warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
  13826. @@ -66,11 +69,11 @@
  13827. while test $# -gt 0 ; do
  13828. case $1 in
  13829. --time-stamp | --time* | -t )
  13830. - echo "$timestamp" ; exit 0 ;;
  13831. + echo "$timestamp" ; exit ;;
  13832. --version | -v )
  13833. - echo "$version" ; exit 0 ;;
  13834. + echo "$version" ; exit ;;
  13835. --help | --h* | -h )
  13836. - echo "$usage"; exit 0 ;;
  13837. + echo "$usage"; exit ;;
  13838. -- ) # Stop option processing
  13839. shift; break ;;
  13840. - ) # Use stdin as input.
  13841. @@ -104,7 +107,7 @@
  13842. trap "exitcode=\$?; (rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null) && exit \$exitcode" 0 ;
  13843. trap "rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null; exit 1" 1 2 13 15 ;
  13844. : ${TMPDIR=/tmp} ;
  13845. - { tmp=`(umask 077 && mktemp -d -q "$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" ; } ||
  13846. + { tmp=`(umask 077 && mktemp -d "$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" ; } ||
  13847. { test -n "$RANDOM" && tmp=$TMPDIR/cg$$-$RANDOM && (umask 077 && mkdir $tmp) ; } ||
  13848. { tmp=$TMPDIR/cg-$$ && (umask 077 && mkdir $tmp) && echo "Warning: creating insecure temp directory" >&2 ; } ||
  13849. { echo "$me: cannot create a temporary directory in $TMPDIR" >&2 ; exit 1 ; } ;
  13850. @@ -123,7 +126,7 @@
  13851. ;;
  13852. ,,*) CC_FOR_BUILD=$CC ;;
  13853. ,*,*) CC_FOR_BUILD=$HOST_CC ;;
  13854. -esac ;'
  13855. +esac ; set_cc_for_build= ;'
  13856. # This is needed to find uname on a Pyramid OSx when run in the BSD universe.
  13857. # (ghazi@noc.rutgers.edu 1994-08-24)
  13858. @@ -158,6 +161,7 @@
  13859. arm*) machine=arm-unknown ;;
  13860. sh3el) machine=shl-unknown ;;
  13861. sh3eb) machine=sh-unknown ;;
  13862. + sh5el) machine=sh5le-unknown ;;
  13863. *) machine=${UNAME_MACHINE_ARCH}-unknown ;;
  13864. esac
  13865. # The Operating System including object format, if it has switched
  13866. @@ -166,7 +170,7 @@
  13867. arm*|i386|m68k|ns32k|sh3*|sparc|vax)
  13868. eval $set_cc_for_build
  13869. if echo __ELF__ | $CC_FOR_BUILD -E - 2>/dev/null \
  13870. - | grep __ELF__ >/dev/null
  13871. + | grep -q __ELF__
  13872. then
  13873. # Once all utilities can be ECOFF (netbsdecoff) or a.out (netbsdaout).
  13874. # Return netbsd for either. FIX?
  13875. @@ -196,55 +200,23 @@
  13876. # contains redundant information, the shorter form:
  13877. # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used.
  13878. echo "${machine}-${os}${release}"
  13879. - exit 0 ;;
  13880. - amd64:OpenBSD:*:*)
  13881. - echo x86_64-unknown-openbsd${UNAME_RELEASE}
  13882. - exit 0 ;;
  13883. - amiga:OpenBSD:*:*)
  13884. - echo m68k-unknown-openbsd${UNAME_RELEASE}
  13885. - exit 0 ;;
  13886. - cats:OpenBSD:*:*)
  13887. - echo arm-unknown-openbsd${UNAME_RELEASE}
  13888. - exit 0 ;;
  13889. - hp300:OpenBSD:*:*)
  13890. - echo m68k-unknown-openbsd${UNAME_RELEASE}
  13891. - exit 0 ;;
  13892. - luna88k:OpenBSD:*:*)
  13893. - echo m88k-unknown-openbsd${UNAME_RELEASE}
  13894. - exit 0 ;;
  13895. - mac68k:OpenBSD:*:*)
  13896. - echo m68k-unknown-openbsd${UNAME_RELEASE}
  13897. - exit 0 ;;
  13898. - macppc:OpenBSD:*:*)
  13899. - echo powerpc-unknown-openbsd${UNAME_RELEASE}
  13900. - exit 0 ;;
  13901. - mvme68k:OpenBSD:*:*)
  13902. - echo m68k-unknown-openbsd${UNAME_RELEASE}
  13903. - exit 0 ;;
  13904. - mvme88k:OpenBSD:*:*)
  13905. - echo m88k-unknown-openbsd${UNAME_RELEASE}
  13906. - exit 0 ;;
  13907. - mvmeppc:OpenBSD:*:*)
  13908. - echo powerpc-unknown-openbsd${UNAME_RELEASE}
  13909. - exit 0 ;;
  13910. - sgi:OpenBSD:*:*)
  13911. - echo mips64-unknown-openbsd${UNAME_RELEASE}
  13912. - exit 0 ;;
  13913. - sun3:OpenBSD:*:*)
  13914. - echo m68k-unknown-openbsd${UNAME_RELEASE}
  13915. - exit 0 ;;
  13916. + exit ;;
  13917. *:OpenBSD:*:*)
  13918. - echo ${UNAME_MACHINE}-unknown-openbsd${UNAME_RELEASE}
  13919. - exit 0 ;;
  13920. + UNAME_MACHINE_ARCH=`arch | sed 's/OpenBSD.//'`
  13921. + echo ${UNAME_MACHINE_ARCH}-unknown-openbsd${UNAME_RELEASE}
  13922. + exit ;;
  13923. *:ekkoBSD:*:*)
  13924. echo ${UNAME_MACHINE}-unknown-ekkobsd${UNAME_RELEASE}
  13925. - exit 0 ;;
  13926. + exit ;;
  13927. + *:SolidBSD:*:*)
  13928. + echo ${UNAME_MACHINE}-unknown-solidbsd${UNAME_RELEASE}
  13929. + exit ;;
  13930. macppc:MirBSD:*:*)
  13931. - echo powerppc-unknown-mirbsd${UNAME_RELEASE}
  13932. - exit 0 ;;
  13933. + echo powerpc-unknown-mirbsd${UNAME_RELEASE}
  13934. + exit ;;
  13935. *:MirBSD:*:*)
  13936. echo ${UNAME_MACHINE}-unknown-mirbsd${UNAME_RELEASE}
  13937. - exit 0 ;;
  13938. + exit ;;
  13939. alpha:OSF1:*:*)
  13940. case $UNAME_RELEASE in
  13941. *4.0)
  13942. @@ -297,37 +269,43 @@
  13943. # A Xn.n version is an unreleased experimental baselevel.
  13944. # 1.2 uses "1.2" for uname -r.
  13945. echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[PVTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
  13946. - exit 0 ;;
  13947. + exit ;;
  13948. Alpha\ *:Windows_NT*:*)
  13949. # How do we know it's Interix rather than the generic POSIX subsystem?
  13950. # Should we change UNAME_MACHINE based on the output of uname instead
  13951. # of the specific Alpha model?
  13952. echo alpha-pc-interix
  13953. - exit 0 ;;
  13954. + exit ;;
  13955. 21064:Windows_NT:50:3)
  13956. echo alpha-dec-winnt3.5
  13957. - exit 0 ;;
  13958. + exit ;;
  13959. Amiga*:UNIX_System_V:4.0:*)
  13960. echo m68k-unknown-sysv4
  13961. - exit 0;;
  13962. + exit ;;
  13963. *:[Aa]miga[Oo][Ss]:*:*)
  13964. echo ${UNAME_MACHINE}-unknown-amigaos
  13965. - exit 0 ;;
  13966. + exit ;;
  13967. *:[Mm]orph[Oo][Ss]:*:*)
  13968. echo ${UNAME_MACHINE}-unknown-morphos
  13969. - exit 0 ;;
  13970. + exit ;;
  13971. *:OS/390:*:*)
  13972. echo i370-ibm-openedition
  13973. - exit 0 ;;
  13974. + exit ;;
  13975. + *:z/VM:*:*)
  13976. + echo s390-ibm-zvmoe
  13977. + exit ;;
  13978. *:OS400:*:*)
  13979. echo powerpc-ibm-os400
  13980. - exit 0 ;;
  13981. + exit ;;
  13982. arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*)
  13983. echo arm-acorn-riscix${UNAME_RELEASE}
  13984. - exit 0;;
  13985. + exit ;;
  13986. + arm:riscos:*:*|arm:RISCOS:*:*)
  13987. + echo arm-unknown-riscos
  13988. + exit ;;
  13989. SR2?01:HI-UX/MPP:*:* | SR8000:HI-UX/MPP:*:*)
  13990. echo hppa1.1-hitachi-hiuxmpp
  13991. - exit 0;;
  13992. + exit ;;
  13993. Pyramid*:OSx*:*:* | MIS*:OSx*:*:* | MIS*:SMP_DC-OSx*:*:*)
  13994. # akee@wpdis03.wpafb.af.mil (Earle F. Ake) contributed MIS and NILE.
  13995. if test "`(/bin/universe) 2>/dev/null`" = att ; then
  13996. @@ -335,32 +313,48 @@
  13997. else
  13998. echo pyramid-pyramid-bsd
  13999. fi
  14000. - exit 0 ;;
  14001. + exit ;;
  14002. NILE*:*:*:dcosx)
  14003. echo pyramid-pyramid-svr4
  14004. - exit 0 ;;
  14005. + exit ;;
  14006. DRS?6000:unix:4.0:6*)
  14007. echo sparc-icl-nx6
  14008. - exit 0 ;;
  14009. - DRS?6000:UNIX_SV:4.2*:7*)
  14010. + exit ;;
  14011. + DRS?6000:UNIX_SV:4.2*:7* | DRS?6000:isis:4.2*:7*)
  14012. case `/usr/bin/uname -p` in
  14013. - sparc) echo sparc-icl-nx7 && exit 0 ;;
  14014. + sparc) echo sparc-icl-nx7; exit ;;
  14015. esac ;;
  14016. + s390x:SunOS:*:*)
  14017. + echo ${UNAME_MACHINE}-ibm-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
  14018. + exit ;;
  14019. sun4H:SunOS:5.*:*)
  14020. echo sparc-hal-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
  14021. - exit 0 ;;
  14022. + exit ;;
  14023. sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*)
  14024. echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
  14025. - exit 0 ;;
  14026. - i86pc:SunOS:5.*:*)
  14027. - echo i386-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
  14028. - exit 0 ;;
  14029. + exit ;;
  14030. + i86pc:SunOS:5.*:* | i86xen:SunOS:5.*:*)
  14031. + eval $set_cc_for_build
  14032. + SUN_ARCH="i386"
  14033. + # If there is a compiler, see if it is configured for 64-bit objects.
  14034. + # Note that the Sun cc does not turn __LP64__ into 1 like gcc does.
  14035. + # This test works for both compilers.
  14036. + if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then
  14037. + if (echo '#ifdef __amd64'; echo IS_64BIT_ARCH; echo '#endif') | \
  14038. + (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \
  14039. + grep IS_64BIT_ARCH >/dev/null
  14040. + then
  14041. + SUN_ARCH="x86_64"
  14042. + fi
  14043. + fi
  14044. + echo ${SUN_ARCH}-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
  14045. + exit ;;
  14046. sun4*:SunOS:6*:*)
  14047. # According to config.sub, this is the proper way to canonicalize
  14048. # SunOS6. Hard to guess exactly what SunOS6 will be like, but
  14049. # it's likely to be more like Solaris than SunOS4.
  14050. echo sparc-sun-solaris3`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
  14051. - exit 0 ;;
  14052. + exit ;;
  14053. sun4*:SunOS:*:*)
  14054. case "`/usr/bin/arch -k`" in
  14055. Series*|S4*)
  14056. @@ -369,10 +363,10 @@
  14057. esac
  14058. # Japanese Language versions have a version number like `4.1.3-JL'.
  14059. echo sparc-sun-sunos`echo ${UNAME_RELEASE}|sed -e 's/-/_/'`
  14060. - exit 0 ;;
  14061. + exit ;;
  14062. sun3*:SunOS:*:*)
  14063. echo m68k-sun-sunos${UNAME_RELEASE}
  14064. - exit 0 ;;
  14065. + exit ;;
  14066. sun*:*:4.2BSD:*)
  14067. UNAME_RELEASE=`(sed 1q /etc/motd | awk '{print substr($5,1,3)}') 2>/dev/null`
  14068. test "x${UNAME_RELEASE}" = "x" && UNAME_RELEASE=3
  14069. @@ -384,10 +378,10 @@
  14070. echo sparc-sun-sunos${UNAME_RELEASE}
  14071. ;;
  14072. esac
  14073. - exit 0 ;;
  14074. + exit ;;
  14075. aushp:SunOS:*:*)
  14076. echo sparc-auspex-sunos${UNAME_RELEASE}
  14077. - exit 0 ;;
  14078. + exit ;;
  14079. # The situation for MiNT is a little confusing. The machine name
  14080. # can be virtually everything (everything which is not
  14081. # "atarist" or "atariste" at least should have a processor
  14082. @@ -398,40 +392,40 @@
  14083. # be no problem.
  14084. atarist[e]:*MiNT:*:* | atarist[e]:*mint:*:* | atarist[e]:*TOS:*:*)
  14085. echo m68k-atari-mint${UNAME_RELEASE}
  14086. - exit 0 ;;
  14087. + exit ;;
  14088. atari*:*MiNT:*:* | atari*:*mint:*:* | atarist[e]:*TOS:*:*)
  14089. echo m68k-atari-mint${UNAME_RELEASE}
  14090. - exit 0 ;;
  14091. + exit ;;
  14092. *falcon*:*MiNT:*:* | *falcon*:*mint:*:* | *falcon*:*TOS:*:*)
  14093. echo m68k-atari-mint${UNAME_RELEASE}
  14094. - exit 0 ;;
  14095. + exit ;;
  14096. milan*:*MiNT:*:* | milan*:*mint:*:* | *milan*:*TOS:*:*)
  14097. echo m68k-milan-mint${UNAME_RELEASE}
  14098. - exit 0 ;;
  14099. + exit ;;
  14100. hades*:*MiNT:*:* | hades*:*mint:*:* | *hades*:*TOS:*:*)
  14101. echo m68k-hades-mint${UNAME_RELEASE}
  14102. - exit 0 ;;
  14103. + exit ;;
  14104. *:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*)
  14105. echo m68k-unknown-mint${UNAME_RELEASE}
  14106. - exit 0 ;;
  14107. + exit ;;
  14108. m68k:machten:*:*)
  14109. echo m68k-apple-machten${UNAME_RELEASE}
  14110. - exit 0 ;;
  14111. + exit ;;
  14112. powerpc:machten:*:*)
  14113. echo powerpc-apple-machten${UNAME_RELEASE}
  14114. - exit 0 ;;
  14115. + exit ;;
  14116. RISC*:Mach:*:*)
  14117. echo mips-dec-mach_bsd4.3
  14118. - exit 0 ;;
  14119. + exit ;;
  14120. RISC*:ULTRIX:*:*)
  14121. echo mips-dec-ultrix${UNAME_RELEASE}
  14122. - exit 0 ;;
  14123. + exit ;;
  14124. VAX*:ULTRIX*:*:*)
  14125. echo vax-dec-ultrix${UNAME_RELEASE}
  14126. - exit 0 ;;
  14127. + exit ;;
  14128. 2020:CLIX:*:* | 2430:CLIX:*:*)
  14129. echo clipper-intergraph-clix${UNAME_RELEASE}
  14130. - exit 0 ;;
  14131. + exit ;;
  14132. mips:*:*:UMIPS | mips:*:*:RISCos)
  14133. eval $set_cc_for_build
  14134. sed 's/^ //' << EOF >$dummy.c
  14135. @@ -455,32 +449,33 @@
  14136. exit (-1);
  14137. }
  14138. EOF
  14139. - $CC_FOR_BUILD -o $dummy $dummy.c \
  14140. - && $dummy `echo "${UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` \
  14141. - && exit 0
  14142. + $CC_FOR_BUILD -o $dummy $dummy.c &&
  14143. + dummyarg=`echo "${UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` &&
  14144. + SYSTEM_NAME=`$dummy $dummyarg` &&
  14145. + { echo "$SYSTEM_NAME"; exit; }
  14146. echo mips-mips-riscos${UNAME_RELEASE}
  14147. - exit 0 ;;
  14148. + exit ;;
  14149. Motorola:PowerMAX_OS:*:*)
  14150. echo powerpc-motorola-powermax
  14151. - exit 0 ;;
  14152. + exit ;;
  14153. Motorola:*:4.3:PL8-*)
  14154. echo powerpc-harris-powermax
  14155. - exit 0 ;;
  14156. + exit ;;
  14157. Night_Hawk:*:*:PowerMAX_OS | Synergy:PowerMAX_OS:*:*)
  14158. echo powerpc-harris-powermax
  14159. - exit 0 ;;
  14160. + exit ;;
  14161. Night_Hawk:Power_UNIX:*:*)
  14162. echo powerpc-harris-powerunix
  14163. - exit 0 ;;
  14164. + exit ;;
  14165. m88k:CX/UX:7*:*)
  14166. echo m88k-harris-cxux7
  14167. - exit 0 ;;
  14168. + exit ;;
  14169. m88k:*:4*:R4*)
  14170. echo m88k-motorola-sysv4
  14171. - exit 0 ;;
  14172. + exit ;;
  14173. m88k:*:3*:R3*)
  14174. echo m88k-motorola-sysv3
  14175. - exit 0 ;;
  14176. + exit ;;
  14177. AViiON:dgux:*:*)
  14178. # DG/UX returns AViiON for all architectures
  14179. UNAME_PROCESSOR=`/usr/bin/uname -p`
  14180. @@ -496,29 +491,29 @@
  14181. else
  14182. echo i586-dg-dgux${UNAME_RELEASE}
  14183. fi
  14184. - exit 0 ;;
  14185. + exit ;;
  14186. M88*:DolphinOS:*:*) # DolphinOS (SVR3)
  14187. echo m88k-dolphin-sysv3
  14188. - exit 0 ;;
  14189. + exit ;;
  14190. M88*:*:R3*:*)
  14191. # Delta 88k system running SVR3
  14192. echo m88k-motorola-sysv3
  14193. - exit 0 ;;
  14194. + exit ;;
  14195. XD88*:*:*:*) # Tektronix XD88 system running UTekV (SVR3)
  14196. echo m88k-tektronix-sysv3
  14197. - exit 0 ;;
  14198. + exit ;;
  14199. Tek43[0-9][0-9]:UTek:*:*) # Tektronix 4300 system running UTek (BSD)
  14200. echo m68k-tektronix-bsd
  14201. - exit 0 ;;
  14202. + exit ;;
  14203. *:IRIX*:*:*)
  14204. echo mips-sgi-irix`echo ${UNAME_RELEASE}|sed -e 's/-/_/g'`
  14205. - exit 0 ;;
  14206. + exit ;;
  14207. ????????:AIX?:[12].1:2) # AIX 2.2.1 or AIX 2.1.1 is RT/PC AIX.
  14208. - echo romp-ibm-aix # uname -m gives an 8 hex-code CPU id
  14209. - exit 0 ;; # Note that: echo "'`uname -s`'" gives 'AIX '
  14210. + echo romp-ibm-aix # uname -m gives an 8 hex-code CPU id
  14211. + exit ;; # Note that: echo "'`uname -s`'" gives 'AIX '
  14212. i*86:AIX:*:*)
  14213. echo i386-ibm-aix
  14214. - exit 0 ;;
  14215. + exit ;;
  14216. ia64:AIX:*:*)
  14217. if [ -x /usr/bin/oslevel ] ; then
  14218. IBM_REV=`/usr/bin/oslevel`
  14219. @@ -526,7 +521,7 @@
  14220. IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE}
  14221. fi
  14222. echo ${UNAME_MACHINE}-ibm-aix${IBM_REV}
  14223. - exit 0 ;;
  14224. + exit ;;
  14225. *:AIX:2:3)
  14226. if grep bos325 /usr/include/stdio.h >/dev/null 2>&1; then
  14227. eval $set_cc_for_build
  14228. @@ -541,15 +536,19 @@
  14229. exit(0);
  14230. }
  14231. EOF
  14232. - $CC_FOR_BUILD -o $dummy $dummy.c && $dummy && exit 0
  14233. - echo rs6000-ibm-aix3.2.5
  14234. + if $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy`
  14235. + then
  14236. + echo "$SYSTEM_NAME"
  14237. + else
  14238. + echo rs6000-ibm-aix3.2.5
  14239. + fi
  14240. elif grep bos324 /usr/include/stdio.h >/dev/null 2>&1; then
  14241. echo rs6000-ibm-aix3.2.4
  14242. else
  14243. echo rs6000-ibm-aix3.2
  14244. fi
  14245. - exit 0 ;;
  14246. - *:AIX:*:[45])
  14247. + exit ;;
  14248. + *:AIX:*:[456])
  14249. IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'`
  14250. if /usr/sbin/lsattr -El ${IBM_CPU_ID} | grep ' POWER' >/dev/null 2>&1; then
  14251. IBM_ARCH=rs6000
  14252. @@ -562,28 +561,28 @@
  14253. IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE}
  14254. fi
  14255. echo ${IBM_ARCH}-ibm-aix${IBM_REV}
  14256. - exit 0 ;;
  14257. + exit ;;
  14258. *:AIX:*:*)
  14259. echo rs6000-ibm-aix
  14260. - exit 0 ;;
  14261. + exit ;;
  14262. ibmrt:4.4BSD:*|romp-ibm:BSD:*)
  14263. echo romp-ibm-bsd4.4
  14264. - exit 0 ;;
  14265. + exit ;;
  14266. ibmrt:*BSD:*|romp-ibm:BSD:*) # covers RT/PC BSD and
  14267. echo romp-ibm-bsd${UNAME_RELEASE} # 4.3 with uname added to
  14268. - exit 0 ;; # report: romp-ibm BSD 4.3
  14269. + exit ;; # report: romp-ibm BSD 4.3
  14270. *:BOSX:*:*)
  14271. echo rs6000-bull-bosx
  14272. - exit 0 ;;
  14273. + exit ;;
  14274. DPX/2?00:B.O.S.:*:*)
  14275. echo m68k-bull-sysv3
  14276. - exit 0 ;;
  14277. + exit ;;
  14278. 9000/[34]??:4.3bsd:1.*:*)
  14279. echo m68k-hp-bsd
  14280. - exit 0 ;;
  14281. + exit ;;
  14282. hp300:4.4BSD:*:* | 9000/[34]??:4.3bsd:2.*:*)
  14283. echo m68k-hp-bsd4.4
  14284. - exit 0 ;;
  14285. + exit ;;
  14286. 9000/[34678]??:HP-UX:*:*)
  14287. HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'`
  14288. case "${UNAME_MACHINE}" in
  14289. @@ -645,9 +644,19 @@
  14290. esac
  14291. if [ ${HP_ARCH} = "hppa2.0w" ]
  14292. then
  14293. - # avoid double evaluation of $set_cc_for_build
  14294. - test -n "$CC_FOR_BUILD" || eval $set_cc_for_build
  14295. - if echo __LP64__ | (CCOPTS= $CC_FOR_BUILD -E -) | grep __LP64__ >/dev/null
  14296. + eval $set_cc_for_build
  14297. +
  14298. + # hppa2.0w-hp-hpux* has a 64-bit kernel and a compiler generating
  14299. + # 32-bit code. hppa64-hp-hpux* has the same kernel and a compiler
  14300. + # generating 64-bit code. GNU and HP use different nomenclature:
  14301. + #
  14302. + # $ CC_FOR_BUILD=cc ./config.guess
  14303. + # => hppa2.0w-hp-hpux11.23
  14304. + # $ CC_FOR_BUILD="cc +DA2.0w" ./config.guess
  14305. + # => hppa64-hp-hpux11.23
  14306. +
  14307. + if echo __LP64__ | (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) |
  14308. + grep -q __LP64__
  14309. then
  14310. HP_ARCH="hppa2.0w"
  14311. else
  14312. @@ -655,11 +664,11 @@
  14313. fi
  14314. fi
  14315. echo ${HP_ARCH}-hp-hpux${HPUX_REV}
  14316. - exit 0 ;;
  14317. + exit ;;
  14318. ia64:HP-UX:*:*)
  14319. HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'`
  14320. echo ia64-hp-hpux${HPUX_REV}
  14321. - exit 0 ;;
  14322. + exit ;;
  14323. 3050*:HI-UX:*:*)
  14324. eval $set_cc_for_build
  14325. sed 's/^ //' << EOF >$dummy.c
  14326. @@ -687,196 +696,227 @@
  14327. exit (0);
  14328. }
  14329. EOF
  14330. - $CC_FOR_BUILD -o $dummy $dummy.c && $dummy && exit 0
  14331. + $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy` &&
  14332. + { echo "$SYSTEM_NAME"; exit; }
  14333. echo unknown-hitachi-hiuxwe2
  14334. - exit 0 ;;
  14335. + exit ;;
  14336. 9000/7??:4.3bsd:*:* | 9000/8?[79]:4.3bsd:*:* )
  14337. echo hppa1.1-hp-bsd
  14338. - exit 0 ;;
  14339. + exit ;;
  14340. 9000/8??:4.3bsd:*:*)
  14341. echo hppa1.0-hp-bsd
  14342. - exit 0 ;;
  14343. + exit ;;
  14344. *9??*:MPE/iX:*:* | *3000*:MPE/iX:*:*)
  14345. echo hppa1.0-hp-mpeix
  14346. - exit 0 ;;
  14347. + exit ;;
  14348. hp7??:OSF1:*:* | hp8?[79]:OSF1:*:* )
  14349. echo hppa1.1-hp-osf
  14350. - exit 0 ;;
  14351. + exit ;;
  14352. hp8??:OSF1:*:*)
  14353. echo hppa1.0-hp-osf
  14354. - exit 0 ;;
  14355. + exit ;;
  14356. i*86:OSF1:*:*)
  14357. if [ -x /usr/sbin/sysversion ] ; then
  14358. echo ${UNAME_MACHINE}-unknown-osf1mk
  14359. else
  14360. echo ${UNAME_MACHINE}-unknown-osf1
  14361. fi
  14362. - exit 0 ;;
  14363. + exit ;;
  14364. parisc*:Lites*:*:*)
  14365. echo hppa1.1-hp-lites
  14366. - exit 0 ;;
  14367. + exit ;;
  14368. C1*:ConvexOS:*:* | convex:ConvexOS:C1*:*)
  14369. echo c1-convex-bsd
  14370. - exit 0 ;;
  14371. + exit ;;
  14372. C2*:ConvexOS:*:* | convex:ConvexOS:C2*:*)
  14373. if getsysinfo -f scalar_acc
  14374. then echo c32-convex-bsd
  14375. else echo c2-convex-bsd
  14376. fi
  14377. - exit 0 ;;
  14378. + exit ;;
  14379. C34*:ConvexOS:*:* | convex:ConvexOS:C34*:*)
  14380. echo c34-convex-bsd
  14381. - exit 0 ;;
  14382. + exit ;;
  14383. C38*:ConvexOS:*:* | convex:ConvexOS:C38*:*)
  14384. echo c38-convex-bsd
  14385. - exit 0 ;;
  14386. + exit ;;
  14387. C4*:ConvexOS:*:* | convex:ConvexOS:C4*:*)
  14388. echo c4-convex-bsd
  14389. - exit 0 ;;
  14390. + exit ;;
  14391. CRAY*Y-MP:*:*:*)
  14392. echo ymp-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
  14393. - exit 0 ;;
  14394. + exit ;;
  14395. CRAY*[A-Z]90:*:*:*)
  14396. echo ${UNAME_MACHINE}-cray-unicos${UNAME_RELEASE} \
  14397. | sed -e 's/CRAY.*\([A-Z]90\)/\1/' \
  14398. -e y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/ \
  14399. -e 's/\.[^.]*$/.X/'
  14400. - exit 0 ;;
  14401. + exit ;;
  14402. CRAY*TS:*:*:*)
  14403. echo t90-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
  14404. - exit 0 ;;
  14405. + exit ;;
  14406. CRAY*T3E:*:*:*)
  14407. echo alphaev5-cray-unicosmk${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
  14408. - exit 0 ;;
  14409. + exit ;;
  14410. CRAY*SV1:*:*:*)
  14411. echo sv1-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
  14412. - exit 0 ;;
  14413. + exit ;;
  14414. *:UNICOS/mp:*:*)
  14415. echo craynv-cray-unicosmp${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
  14416. - exit 0 ;;
  14417. + exit ;;
  14418. F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*)
  14419. FUJITSU_PROC=`uname -m | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
  14420. FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
  14421. FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'`
  14422. echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
  14423. - exit 0 ;;
  14424. + exit ;;
  14425. 5000:UNIX_System_V:4.*:*)
  14426. FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
  14427. FUJITSU_REL=`echo ${UNAME_RELEASE} | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/ /_/'`
  14428. echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
  14429. - exit 0 ;;
  14430. + exit ;;
  14431. i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*)
  14432. echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE}
  14433. - exit 0 ;;
  14434. + exit ;;
  14435. sparc*:BSD/OS:*:*)
  14436. echo sparc-unknown-bsdi${UNAME_RELEASE}
  14437. - exit 0 ;;
  14438. + exit ;;
  14439. *:BSD/OS:*:*)
  14440. echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE}
  14441. - exit 0 ;;
  14442. + exit ;;
  14443. *:FreeBSD:*:*)
  14444. - echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`
  14445. - exit 0 ;;
  14446. + case ${UNAME_MACHINE} in
  14447. + pc98)
  14448. + echo i386-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
  14449. + amd64)
  14450. + echo x86_64-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
  14451. + *)
  14452. + echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
  14453. + esac
  14454. + exit ;;
  14455. i*:CYGWIN*:*)
  14456. echo ${UNAME_MACHINE}-pc-cygwin
  14457. - exit 0 ;;
  14458. - i*:MINGW*:*)
  14459. + exit ;;
  14460. + *:MINGW*:*)
  14461. echo ${UNAME_MACHINE}-pc-mingw32
  14462. - exit 0 ;;
  14463. + exit ;;
  14464. + i*:windows32*:*)
  14465. + # uname -m includes "-pc" on this system.
  14466. + echo ${UNAME_MACHINE}-mingw32
  14467. + exit ;;
  14468. i*:PW*:*)
  14469. echo ${UNAME_MACHINE}-pc-pw32
  14470. - exit 0 ;;
  14471. - x86:Interix*:[34]*)
  14472. - echo i586-pc-interix${UNAME_RELEASE}|sed -e 's/\..*//'
  14473. - exit 0 ;;
  14474. + exit ;;
  14475. + *:Interix*:[3456]*)
  14476. + case ${UNAME_MACHINE} in
  14477. + x86)
  14478. + echo i586-pc-interix${UNAME_RELEASE}
  14479. + exit ;;
  14480. + EM64T | authenticamd | genuineintel)
  14481. + echo x86_64-unknown-interix${UNAME_RELEASE}
  14482. + exit ;;
  14483. + IA64)
  14484. + echo ia64-unknown-interix${UNAME_RELEASE}
  14485. + exit ;;
  14486. + esac ;;
  14487. [345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*)
  14488. echo i${UNAME_MACHINE}-pc-mks
  14489. - exit 0 ;;
  14490. + exit ;;
  14491. + 8664:Windows_NT:*)
  14492. + echo x86_64-pc-mks
  14493. + exit ;;
  14494. i*:Windows_NT*:* | Pentium*:Windows_NT*:*)
  14495. # How do we know it's Interix rather than the generic POSIX subsystem?
  14496. # It also conflicts with pre-2.0 versions of AT&T UWIN. Should we
  14497. # UNAME_MACHINE based on the output of uname instead of i386?
  14498. echo i586-pc-interix
  14499. - exit 0 ;;
  14500. + exit ;;
  14501. i*:UWIN*:*)
  14502. echo ${UNAME_MACHINE}-pc-uwin
  14503. - exit 0 ;;
  14504. + exit ;;
  14505. + amd64:CYGWIN*:*:* | x86_64:CYGWIN*:*:*)
  14506. + echo x86_64-unknown-cygwin
  14507. + exit ;;
  14508. p*:CYGWIN*:*)
  14509. echo powerpcle-unknown-cygwin
  14510. - exit 0 ;;
  14511. + exit ;;
  14512. prep*:SunOS:5.*:*)
  14513. echo powerpcle-unknown-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
  14514. - exit 0 ;;
  14515. + exit ;;
  14516. *:GNU:*:*)
  14517. # the GNU system
  14518. echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-gnu`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'`
  14519. - exit 0 ;;
  14520. + exit ;;
  14521. *:GNU/*:*:*)
  14522. # other systems with GNU libc and userland
  14523. echo ${UNAME_MACHINE}-unknown-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr '[A-Z]' '[a-z]'``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-gnu
  14524. - exit 0 ;;
  14525. + exit ;;
  14526. i*86:Minix:*:*)
  14527. echo ${UNAME_MACHINE}-pc-minix
  14528. - exit 0 ;;
  14529. + exit ;;
  14530. arm*:Linux:*:*)
  14531. + eval $set_cc_for_build
  14532. + if echo __ARM_EABI__ | $CC_FOR_BUILD -E - 2>/dev/null \
  14533. + | grep -q __ARM_EABI__
  14534. + then
  14535. + echo ${UNAME_MACHINE}-unknown-linux-gnu
  14536. + else
  14537. + echo ${UNAME_MACHINE}-unknown-linux-gnueabi
  14538. + fi
  14539. + exit ;;
  14540. + avr32*:Linux:*:*)
  14541. echo ${UNAME_MACHINE}-unknown-linux-gnu
  14542. - exit 0 ;;
  14543. + exit ;;
  14544. cris:Linux:*:*)
  14545. echo cris-axis-linux-gnu
  14546. - exit 0 ;;
  14547. + exit ;;
  14548. + crisv32:Linux:*:*)
  14549. + echo crisv32-axis-linux-gnu
  14550. + exit ;;
  14551. + frv:Linux:*:*)
  14552. + echo frv-unknown-linux-gnu
  14553. + exit ;;
  14554. ia64:Linux:*:*)
  14555. echo ${UNAME_MACHINE}-unknown-linux-gnu
  14556. - exit 0 ;;
  14557. + exit ;;
  14558. m32r*:Linux:*:*)
  14559. echo ${UNAME_MACHINE}-unknown-linux-gnu
  14560. - exit 0 ;;
  14561. + exit ;;
  14562. m68*:Linux:*:*)
  14563. echo ${UNAME_MACHINE}-unknown-linux-gnu
  14564. - exit 0 ;;
  14565. - mips:Linux:*:*)
  14566. + exit ;;
  14567. + mips:Linux:*:* | mips64:Linux:*:*)
  14568. eval $set_cc_for_build
  14569. sed 's/^ //' << EOF >$dummy.c
  14570. #undef CPU
  14571. - #undef mips
  14572. - #undef mipsel
  14573. + #undef ${UNAME_MACHINE}
  14574. + #undef ${UNAME_MACHINE}el
  14575. #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL)
  14576. - CPU=mipsel
  14577. + CPU=${UNAME_MACHINE}el
  14578. #else
  14579. #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB)
  14580. - CPU=mips
  14581. + CPU=${UNAME_MACHINE}
  14582. #else
  14583. CPU=
  14584. #endif
  14585. #endif
  14586. EOF
  14587. - eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^CPU=`
  14588. - test x"${CPU}" != x && echo "${CPU}-unknown-linux-gnu" && exit 0
  14589. - ;;
  14590. - mips64:Linux:*:*)
  14591. - eval $set_cc_for_build
  14592. - sed 's/^ //' << EOF >$dummy.c
  14593. - #undef CPU
  14594. - #undef mips64
  14595. - #undef mips64el
  14596. - #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL)
  14597. - CPU=mips64el
  14598. - #else
  14599. - #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB)
  14600. - CPU=mips64
  14601. - #else
  14602. - CPU=
  14603. - #endif
  14604. - #endif
  14605. -EOF
  14606. - eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^CPU=`
  14607. - test x"${CPU}" != x && echo "${CPU}-unknown-linux-gnu" && exit 0
  14608. + eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n '
  14609. + /^CPU/{
  14610. + s: ::g
  14611. + p
  14612. + }'`"
  14613. + test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; }
  14614. ;;
  14615. + or32:Linux:*:*)
  14616. + echo or32-unknown-linux-gnu
  14617. + exit ;;
  14618. ppc:Linux:*:*)
  14619. echo powerpc-unknown-linux-gnu
  14620. - exit 0 ;;
  14621. + exit ;;
  14622. ppc64:Linux:*:*)
  14623. echo powerpc64-unknown-linux-gnu
  14624. - exit 0 ;;
  14625. + exit ;;
  14626. alpha:Linux:*:*)
  14627. case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in
  14628. EV5) UNAME_MACHINE=alphaev5 ;;
  14629. @@ -887,10 +927,13 @@
  14630. EV67) UNAME_MACHINE=alphaev67 ;;
  14631. EV68*) UNAME_MACHINE=alphaev68 ;;
  14632. esac
  14633. - objdump --private-headers /bin/sh | grep ld.so.1 >/dev/null
  14634. + objdump --private-headers /bin/sh | grep -q ld.so.1
  14635. if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi
  14636. echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC}
  14637. - exit 0 ;;
  14638. + exit ;;
  14639. + padre:Linux:*:*)
  14640. + echo sparc-unknown-linux-gnu
  14641. + exit ;;
  14642. parisc:Linux:*:* | hppa:Linux:*:*)
  14643. # Look for CPU level
  14644. case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in
  14645. @@ -898,25 +941,31 @@
  14646. PA8*) echo hppa2.0-unknown-linux-gnu ;;
  14647. *) echo hppa-unknown-linux-gnu ;;
  14648. esac
  14649. - exit 0 ;;
  14650. + exit ;;
  14651. parisc64:Linux:*:* | hppa64:Linux:*:*)
  14652. echo hppa64-unknown-linux-gnu
  14653. - exit 0 ;;
  14654. + exit ;;
  14655. s390:Linux:*:* | s390x:Linux:*:*)
  14656. echo ${UNAME_MACHINE}-ibm-linux
  14657. - exit 0 ;;
  14658. + exit ;;
  14659. sh64*:Linux:*:*)
  14660. echo ${UNAME_MACHINE}-unknown-linux-gnu
  14661. - exit 0 ;;
  14662. + exit ;;
  14663. sh*:Linux:*:*)
  14664. echo ${UNAME_MACHINE}-unknown-linux-gnu
  14665. - exit 0 ;;
  14666. + exit ;;
  14667. sparc:Linux:*:* | sparc64:Linux:*:*)
  14668. echo ${UNAME_MACHINE}-unknown-linux-gnu
  14669. - exit 0 ;;
  14670. + exit ;;
  14671. + vax:Linux:*:*)
  14672. + echo ${UNAME_MACHINE}-dec-linux-gnu
  14673. + exit ;;
  14674. x86_64:Linux:*:*)
  14675. echo x86_64-unknown-linux-gnu
  14676. - exit 0 ;;
  14677. + exit ;;
  14678. + xtensa*:Linux:*:*)
  14679. + echo ${UNAME_MACHINE}-unknown-linux-gnu
  14680. + exit ;;
  14681. i*86:Linux:*:*)
  14682. # The BFD linker knows what the default object file format is, so
  14683. # first see if it will tell us. cd to the root directory to prevent
  14684. @@ -932,17 +981,6 @@
  14685. elf32-i386)
  14686. TENTATIVE="${UNAME_MACHINE}-pc-linux-gnu"
  14687. ;;
  14688. - a.out-i386-linux)
  14689. - echo "${UNAME_MACHINE}-pc-linux-gnuaout"
  14690. - exit 0 ;;
  14691. - coff-i386)
  14692. - echo "${UNAME_MACHINE}-pc-linux-gnucoff"
  14693. - exit 0 ;;
  14694. - "")
  14695. - # Either a pre-BFD a.out linker (linux-gnuoldld) or
  14696. - # one that does not give us useful --help.
  14697. - echo "${UNAME_MACHINE}-pc-linux-gnuoldld"
  14698. - exit 0 ;;
  14699. esac
  14700. # Determine whether the default compiler is a.out or elf
  14701. eval $set_cc_for_build
  14702. @@ -959,7 +997,7 @@
  14703. LIBC=gnulibc1
  14704. # endif
  14705. #else
  14706. - #ifdef __INTEL_COMPILER
  14707. + #if defined(__INTEL_COMPILER) || defined(__PGI) || defined(__SUNPRO_C) || defined(__SUNPRO_CC)
  14708. LIBC=gnu
  14709. #else
  14710. LIBC=gnuaout
  14711. @@ -969,16 +1007,23 @@
  14712. LIBC=dietlibc
  14713. #endif
  14714. EOF
  14715. - eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^LIBC=`
  14716. - test x"${LIBC}" != x && echo "${UNAME_MACHINE}-pc-linux-${LIBC}" && exit 0
  14717. - test x"${TENTATIVE}" != x && echo "${TENTATIVE}" && exit 0
  14718. + eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n '
  14719. + /^LIBC/{
  14720. + s: ::g
  14721. + p
  14722. + }'`"
  14723. + test x"${LIBC}" != x && {
  14724. + echo "${UNAME_MACHINE}-pc-linux-${LIBC}"
  14725. + exit
  14726. + }
  14727. + test x"${TENTATIVE}" != x && { echo "${TENTATIVE}"; exit; }
  14728. ;;
  14729. i*86:DYNIX/ptx:4*:*)
  14730. # ptx 4.0 does uname -s correctly, with DYNIX/ptx in there.
  14731. # earlier versions are messed up and put the nodename in both
  14732. # sysname and nodename.
  14733. echo i386-sequent-sysv4
  14734. - exit 0 ;;
  14735. + exit ;;
  14736. i*86:UNIX_SV:4.2MP:2.*)
  14737. # Unixware is an offshoot of SVR4, but it has its own version
  14738. # number series starting with 2...
  14739. @@ -986,27 +1031,27 @@
  14740. # I just have to hope. -- rms.
  14741. # Use sysv4.2uw... so that sysv4* matches it.
  14742. echo ${UNAME_MACHINE}-pc-sysv4.2uw${UNAME_VERSION}
  14743. - exit 0 ;;
  14744. + exit ;;
  14745. i*86:OS/2:*:*)
  14746. # If we were able to find `uname', then EMX Unix compatibility
  14747. # is probably installed.
  14748. echo ${UNAME_MACHINE}-pc-os2-emx
  14749. - exit 0 ;;
  14750. + exit ;;
  14751. i*86:XTS-300:*:STOP)
  14752. echo ${UNAME_MACHINE}-unknown-stop
  14753. - exit 0 ;;
  14754. + exit ;;
  14755. i*86:atheos:*:*)
  14756. echo ${UNAME_MACHINE}-unknown-atheos
  14757. - exit 0 ;;
  14758. - i*86:syllable:*:*)
  14759. + exit ;;
  14760. + i*86:syllable:*:*)
  14761. echo ${UNAME_MACHINE}-pc-syllable
  14762. - exit 0 ;;
  14763. - i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.0*:*)
  14764. + exit ;;
  14765. + i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.[02]*:*)
  14766. echo i386-unknown-lynxos${UNAME_RELEASE}
  14767. - exit 0 ;;
  14768. + exit ;;
  14769. i*86:*DOS:*:*)
  14770. echo ${UNAME_MACHINE}-pc-msdosdjgpp
  14771. - exit 0 ;;
  14772. + exit ;;
  14773. i*86:*:4.*:* | i*86:SYSTEM_V:4.*:*)
  14774. UNAME_REL=`echo ${UNAME_RELEASE} | sed 's/\/MP$//'`
  14775. if grep Novell /usr/include/link.h >/dev/null 2>/dev/null; then
  14776. @@ -1014,15 +1059,16 @@
  14777. else
  14778. echo ${UNAME_MACHINE}-pc-sysv${UNAME_REL}
  14779. fi
  14780. - exit 0 ;;
  14781. - i*86:*:5:[78]*)
  14782. + exit ;;
  14783. + i*86:*:5:[678]*)
  14784. + # UnixWare 7.x, OpenUNIX and OpenServer 6.
  14785. case `/bin/uname -X | grep "^Machine"` in
  14786. *486*) UNAME_MACHINE=i486 ;;
  14787. *Pentium) UNAME_MACHINE=i586 ;;
  14788. *Pent*|*Celeron) UNAME_MACHINE=i686 ;;
  14789. esac
  14790. echo ${UNAME_MACHINE}-unknown-sysv${UNAME_RELEASE}${UNAME_SYSTEM}${UNAME_VERSION}
  14791. - exit 0 ;;
  14792. + exit ;;
  14793. i*86:*:3.2:*)
  14794. if test -f /usr/options/cb.name; then
  14795. UNAME_REL=`sed -n 's/.*Version //p' </usr/options/cb.name`
  14796. @@ -1040,73 +1086,86 @@
  14797. else
  14798. echo ${UNAME_MACHINE}-pc-sysv32
  14799. fi
  14800. - exit 0 ;;
  14801. + exit ;;
  14802. pc:*:*:*)
  14803. # Left here for compatibility:
  14804. # uname -m prints for DJGPP always 'pc', but it prints nothing about
  14805. - # the processor, so we play safe by assuming i386.
  14806. - echo i386-pc-msdosdjgpp
  14807. - exit 0 ;;
  14808. + # the processor, so we play safe by assuming i586.
  14809. + # Note: whatever this is, it MUST be the same as what config.sub
  14810. + # prints for the "djgpp" host, or else GDB configury will decide that
  14811. + # this is a cross-build.
  14812. + echo i586-pc-msdosdjgpp
  14813. + exit ;;
  14814. Intel:Mach:3*:*)
  14815. echo i386-pc-mach3
  14816. - exit 0 ;;
  14817. + exit ;;
  14818. paragon:*:*:*)
  14819. echo i860-intel-osf1
  14820. - exit 0 ;;
  14821. + exit ;;
  14822. i860:*:4.*:*) # i860-SVR4
  14823. if grep Stardent /usr/include/sys/uadmin.h >/dev/null 2>&1 ; then
  14824. echo i860-stardent-sysv${UNAME_RELEASE} # Stardent Vistra i860-SVR4
  14825. else # Add other i860-SVR4 vendors below as they are discovered.
  14826. echo i860-unknown-sysv${UNAME_RELEASE} # Unknown i860-SVR4
  14827. fi
  14828. - exit 0 ;;
  14829. + exit ;;
  14830. mini*:CTIX:SYS*5:*)
  14831. # "miniframe"
  14832. echo m68010-convergent-sysv
  14833. - exit 0 ;;
  14834. + exit ;;
  14835. mc68k:UNIX:SYSTEM5:3.51m)
  14836. echo m68k-convergent-sysv
  14837. - exit 0 ;;
  14838. + exit ;;
  14839. M680?0:D-NIX:5.3:*)
  14840. echo m68k-diab-dnix
  14841. - exit 0 ;;
  14842. + exit ;;
  14843. M68*:*:R3V[5678]*:*)
  14844. - test -r /sysV68 && echo 'm68k-motorola-sysv' && exit 0 ;;
  14845. + test -r /sysV68 && { echo 'm68k-motorola-sysv'; exit; } ;;
  14846. 3[345]??:*:4.0:3.0 | 3[34]??A:*:4.0:3.0 | 3[34]??,*:*:4.0:3.0 | 3[34]??/*:*:4.0:3.0 | 4400:*:4.0:3.0 | 4850:*:4.0:3.0 | SKA40:*:4.0:3.0 | SDS2:*:4.0:3.0 | SHG2:*:4.0:3.0 | S7501*:*:4.0:3.0)
  14847. OS_REL=''
  14848. test -r /etc/.relid \
  14849. && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid`
  14850. /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
  14851. - && echo i486-ncr-sysv4.3${OS_REL} && exit 0
  14852. + && { echo i486-ncr-sysv4.3${OS_REL}; exit; }
  14853. /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \
  14854. - && echo i586-ncr-sysv4.3${OS_REL} && exit 0 ;;
  14855. + && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;;
  14856. 3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*)
  14857. /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
  14858. - && echo i486-ncr-sysv4 && exit 0 ;;
  14859. + && { echo i486-ncr-sysv4; exit; } ;;
  14860. + NCR*:*:4.2:* | MPRAS*:*:4.2:*)
  14861. + OS_REL='.3'
  14862. + test -r /etc/.relid \
  14863. + && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid`
  14864. + /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
  14865. + && { echo i486-ncr-sysv4.3${OS_REL}; exit; }
  14866. + /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \
  14867. + && { echo i586-ncr-sysv4.3${OS_REL}; exit; }
  14868. + /bin/uname -p 2>/dev/null | /bin/grep pteron >/dev/null \
  14869. + && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;;
  14870. m68*:LynxOS:2.*:* | m68*:LynxOS:3.0*:*)
  14871. echo m68k-unknown-lynxos${UNAME_RELEASE}
  14872. - exit 0 ;;
  14873. + exit ;;
  14874. mc68030:UNIX_System_V:4.*:*)
  14875. echo m68k-atari-sysv4
  14876. - exit 0 ;;
  14877. + exit ;;
  14878. TSUNAMI:LynxOS:2.*:*)
  14879. echo sparc-unknown-lynxos${UNAME_RELEASE}
  14880. - exit 0 ;;
  14881. + exit ;;
  14882. rs6000:LynxOS:2.*:*)
  14883. echo rs6000-unknown-lynxos${UNAME_RELEASE}
  14884. - exit 0 ;;
  14885. - PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.0*:*)
  14886. + exit ;;
  14887. + PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.[02]*:*)
  14888. echo powerpc-unknown-lynxos${UNAME_RELEASE}
  14889. - exit 0 ;;
  14890. + exit ;;
  14891. SM[BE]S:UNIX_SV:*:*)
  14892. echo mips-dde-sysv${UNAME_RELEASE}
  14893. - exit 0 ;;
  14894. + exit ;;
  14895. RM*:ReliantUNIX-*:*:*)
  14896. echo mips-sni-sysv4
  14897. - exit 0 ;;
  14898. + exit ;;
  14899. RM*:SINIX-*:*:*)
  14900. echo mips-sni-sysv4
  14901. - exit 0 ;;
  14902. + exit ;;
  14903. *:SINIX-*:*:*)
  14904. if uname -p 2>/dev/null >/dev/null ; then
  14905. UNAME_MACHINE=`(uname -p) 2>/dev/null`
  14906. @@ -1114,69 +1173,84 @@
  14907. else
  14908. echo ns32k-sni-sysv
  14909. fi
  14910. - exit 0 ;;
  14911. + exit ;;
  14912. PENTIUM:*:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort
  14913. # says <Richard.M.Bartel@ccMail.Census.GOV>
  14914. echo i586-unisys-sysv4
  14915. - exit 0 ;;
  14916. + exit ;;
  14917. *:UNIX_System_V:4*:FTX*)
  14918. # From Gerald Hewes <hewes@openmarket.com>.
  14919. # How about differentiating between stratus architectures? -djm
  14920. echo hppa1.1-stratus-sysv4
  14921. - exit 0 ;;
  14922. + exit ;;
  14923. *:*:*:FTX*)
  14924. # From seanf@swdc.stratus.com.
  14925. echo i860-stratus-sysv4
  14926. - exit 0 ;;
  14927. + exit ;;
  14928. + i*86:VOS:*:*)
  14929. + # From Paul.Green@stratus.com.
  14930. + echo ${UNAME_MACHINE}-stratus-vos
  14931. + exit ;;
  14932. *:VOS:*:*)
  14933. # From Paul.Green@stratus.com.
  14934. echo hppa1.1-stratus-vos
  14935. - exit 0 ;;
  14936. + exit ;;
  14937. mc68*:A/UX:*:*)
  14938. echo m68k-apple-aux${UNAME_RELEASE}
  14939. - exit 0 ;;
  14940. + exit ;;
  14941. news*:NEWS-OS:6*:*)
  14942. echo mips-sony-newsos6
  14943. - exit 0 ;;
  14944. + exit ;;
  14945. R[34]000:*System_V*:*:* | R4000:UNIX_SYSV:*:* | R*000:UNIX_SV:*:*)
  14946. if [ -d /usr/nec ]; then
  14947. echo mips-nec-sysv${UNAME_RELEASE}
  14948. else
  14949. echo mips-unknown-sysv${UNAME_RELEASE}
  14950. fi
  14951. - exit 0 ;;
  14952. + exit ;;
  14953. BeBox:BeOS:*:*) # BeOS running on hardware made by Be, PPC only.
  14954. echo powerpc-be-beos
  14955. - exit 0 ;;
  14956. + exit ;;
  14957. BeMac:BeOS:*:*) # BeOS running on Mac or Mac clone, PPC only.
  14958. echo powerpc-apple-beos
  14959. - exit 0 ;;
  14960. + exit ;;
  14961. BePC:BeOS:*:*) # BeOS running on Intel PC compatible.
  14962. echo i586-pc-beos
  14963. - exit 0 ;;
  14964. + exit ;;
  14965. + BePC:Haiku:*:*) # Haiku running on Intel PC compatible.
  14966. + echo i586-pc-haiku
  14967. + exit ;;
  14968. SX-4:SUPER-UX:*:*)
  14969. echo sx4-nec-superux${UNAME_RELEASE}
  14970. - exit 0 ;;
  14971. + exit ;;
  14972. SX-5:SUPER-UX:*:*)
  14973. echo sx5-nec-superux${UNAME_RELEASE}
  14974. - exit 0 ;;
  14975. + exit ;;
  14976. SX-6:SUPER-UX:*:*)
  14977. echo sx6-nec-superux${UNAME_RELEASE}
  14978. - exit 0 ;;
  14979. + exit ;;
  14980. + SX-7:SUPER-UX:*:*)
  14981. + echo sx7-nec-superux${UNAME_RELEASE}
  14982. + exit ;;
  14983. + SX-8:SUPER-UX:*:*)
  14984. + echo sx8-nec-superux${UNAME_RELEASE}
  14985. + exit ;;
  14986. + SX-8R:SUPER-UX:*:*)
  14987. + echo sx8r-nec-superux${UNAME_RELEASE}
  14988. + exit ;;
  14989. Power*:Rhapsody:*:*)
  14990. echo powerpc-apple-rhapsody${UNAME_RELEASE}
  14991. - exit 0 ;;
  14992. + exit ;;
  14993. *:Rhapsody:*:*)
  14994. echo ${UNAME_MACHINE}-apple-rhapsody${UNAME_RELEASE}
  14995. - exit 0 ;;
  14996. + exit ;;
  14997. *:Darwin:*:*)
  14998. UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown
  14999. case $UNAME_PROCESSOR in
  15000. - *86) UNAME_PROCESSOR=i686 ;;
  15001. unknown) UNAME_PROCESSOR=powerpc ;;
  15002. esac
  15003. echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE}
  15004. - exit 0 ;;
  15005. + exit ;;
  15006. *:procnto*:*:* | *:QNX:[0123456789]*:*)
  15007. UNAME_PROCESSOR=`uname -p`
  15008. if test "$UNAME_PROCESSOR" = "x86"; then
  15009. @@ -1184,22 +1258,25 @@
  15010. UNAME_MACHINE=pc
  15011. fi
  15012. echo ${UNAME_PROCESSOR}-${UNAME_MACHINE}-nto-qnx${UNAME_RELEASE}
  15013. - exit 0 ;;
  15014. + exit ;;
  15015. *:QNX:*:4*)
  15016. echo i386-pc-qnx
  15017. - exit 0 ;;
  15018. + exit ;;
  15019. + NSE-?:NONSTOP_KERNEL:*:*)
  15020. + echo nse-tandem-nsk${UNAME_RELEASE}
  15021. + exit ;;
  15022. NSR-?:NONSTOP_KERNEL:*:*)
  15023. echo nsr-tandem-nsk${UNAME_RELEASE}
  15024. - exit 0 ;;
  15025. + exit ;;
  15026. *:NonStop-UX:*:*)
  15027. echo mips-compaq-nonstopux
  15028. - exit 0 ;;
  15029. + exit ;;
  15030. BS2000:POSIX*:*:*)
  15031. echo bs2000-siemens-sysv
  15032. - exit 0 ;;
  15033. + exit ;;
  15034. DS/*:UNIX_System_V:*:*)
  15035. echo ${UNAME_MACHINE}-${UNAME_SYSTEM}-${UNAME_RELEASE}
  15036. - exit 0 ;;
  15037. + exit ;;
  15038. *:Plan9:*:*)
  15039. # "uname -m" is not consistent, so use $cputype instead. 386
  15040. # is converted to i386 for consistency with other x86
  15041. @@ -1210,38 +1287,50 @@
  15042. UNAME_MACHINE="$cputype"
  15043. fi
  15044. echo ${UNAME_MACHINE}-unknown-plan9
  15045. - exit 0 ;;
  15046. + exit ;;
  15047. *:TOPS-10:*:*)
  15048. echo pdp10-unknown-tops10
  15049. - exit 0 ;;
  15050. + exit ;;
  15051. *:TENEX:*:*)
  15052. echo pdp10-unknown-tenex
  15053. - exit 0 ;;
  15054. + exit ;;
  15055. KS10:TOPS-20:*:* | KL10:TOPS-20:*:* | TYPE4:TOPS-20:*:*)
  15056. echo pdp10-dec-tops20
  15057. - exit 0 ;;
  15058. + exit ;;
  15059. XKL-1:TOPS-20:*:* | TYPE5:TOPS-20:*:*)
  15060. echo pdp10-xkl-tops20
  15061. - exit 0 ;;
  15062. + exit ;;
  15063. *:TOPS-20:*:*)
  15064. echo pdp10-unknown-tops20
  15065. - exit 0 ;;
  15066. + exit ;;
  15067. *:ITS:*:*)
  15068. echo pdp10-unknown-its
  15069. - exit 0 ;;
  15070. + exit ;;
  15071. SEI:*:*:SEIUX)
  15072. echo mips-sei-seiux${UNAME_RELEASE}
  15073. - exit 0 ;;
  15074. + exit ;;
  15075. *:DragonFly:*:*)
  15076. echo ${UNAME_MACHINE}-unknown-dragonfly`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`
  15077. - exit 0 ;;
  15078. + exit ;;
  15079. *:*VMS:*:*)
  15080. UNAME_MACHINE=`(uname -p) 2>/dev/null`
  15081. case "${UNAME_MACHINE}" in
  15082. - A*) echo alpha-dec-vms && exit 0 ;;
  15083. - I*) echo ia64-dec-vms && exit 0 ;;
  15084. - V*) echo vax-dec-vms && exit 0 ;;
  15085. - esac
  15086. + A*) echo alpha-dec-vms ; exit ;;
  15087. + I*) echo ia64-dec-vms ; exit ;;
  15088. + V*) echo vax-dec-vms ; exit ;;
  15089. + esac ;;
  15090. + *:XENIX:*:SysV)
  15091. + echo i386-pc-xenix
  15092. + exit ;;
  15093. + i*86:skyos:*:*)
  15094. + echo ${UNAME_MACHINE}-pc-skyos`echo ${UNAME_RELEASE}` | sed -e 's/ .*$//'
  15095. + exit ;;
  15096. + i*86:rdos:*:*)
  15097. + echo ${UNAME_MACHINE}-pc-rdos
  15098. + exit ;;
  15099. + i*86:AROS:*:*)
  15100. + echo ${UNAME_MACHINE}-pc-aros
  15101. + exit ;;
  15102. esac
  15103. #echo '(No uname command or uname output not recognized.)' 1>&2
  15104. @@ -1273,7 +1362,7 @@
  15105. #endif
  15106. #if defined (__arm) && defined (__acorn) && defined (__unix)
  15107. - printf ("arm-acorn-riscix"); exit (0);
  15108. + printf ("arm-acorn-riscix\n"); exit (0);
  15109. #endif
  15110. #if defined (hp300) && !defined (hpux)
  15111. @@ -1362,11 +1451,12 @@
  15112. }
  15113. EOF
  15114. -$CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null && $dummy && exit 0
  15115. +$CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null && SYSTEM_NAME=`$dummy` &&
  15116. + { echo "$SYSTEM_NAME"; exit; }
  15117. # Apollos put the system type in the environment.
  15118. -test -d /usr/apollo && { echo ${ISP}-apollo-${SYSTYPE}; exit 0; }
  15119. +test -d /usr/apollo && { echo ${ISP}-apollo-${SYSTYPE}; exit; }
  15120. # Convex versions that predate uname can use getsysinfo(1)
  15121. @@ -1375,22 +1465,22 @@
  15122. case `getsysinfo -f cpu_type` in
  15123. c1*)
  15124. echo c1-convex-bsd
  15125. - exit 0 ;;
  15126. + exit ;;
  15127. c2*)
  15128. if getsysinfo -f scalar_acc
  15129. then echo c32-convex-bsd
  15130. else echo c2-convex-bsd
  15131. fi
  15132. - exit 0 ;;
  15133. + exit ;;
  15134. c34*)
  15135. echo c34-convex-bsd
  15136. - exit 0 ;;
  15137. + exit ;;
  15138. c38*)
  15139. echo c38-convex-bsd
  15140. - exit 0 ;;
  15141. + exit ;;
  15142. c4*)
  15143. echo c4-convex-bsd
  15144. - exit 0 ;;
  15145. + exit ;;
  15146. esac
  15147. fi
  15148. @@ -1401,7 +1491,9 @@
  15149. the operating system you are using. It is advised that you
  15150. download the most up to date version of the config scripts from
  15151. - ftp://ftp.gnu.org/pub/gnu/config/
  15152. + http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD
  15153. +and
  15154. + http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD
  15155. If the version you run ($0) is already up to date, please
  15156. send the following data and any information you think might be
  15157. diff -Nur libgssglue-0.1.orig/config.sub libgssglue-0.1/config.sub
  15158. --- libgssglue-0.1.orig/config.sub 2005-12-02 22:14:34.000000000 +0100
  15159. +++ libgssglue-0.1/config.sub 2011-02-17 17:14:45.997310868 +0100
  15160. @@ -1,9 +1,10 @@
  15161. #! /bin/sh
  15162. # Configuration validation subroutine script.
  15163. # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
  15164. -# 2000, 2001, 2002, 2003, 2004 Free Software Foundation, Inc.
  15165. +# 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009
  15166. +# Free Software Foundation, Inc.
  15167. -timestamp='2004-06-24'
  15168. +timestamp='2009-06-11'
  15169. # This file is (in principle) common to ALL GNU software.
  15170. # The presence of a machine in this file suggests that SOME GNU software
  15171. @@ -21,14 +22,15 @@
  15172. #
  15173. # You should have received a copy of the GNU General Public License
  15174. # along with this program; if not, write to the Free Software
  15175. -# Foundation, Inc., 59 Temple Place - Suite 330,
  15176. -# Boston, MA 02111-1307, USA.
  15177. -
  15178. +# Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA
  15179. +# 02110-1301, USA.
  15180. +#
  15181. # As a special exception to the GNU General Public License, if you
  15182. # distribute this file as part of a program that contains a
  15183. # configuration script generated by Autoconf, you may include it under
  15184. # the same distribution terms that you use for the rest of that program.
  15185. +
  15186. # Please send patches to <config-patches@gnu.org>. Submit a context
  15187. # diff and a properly formatted ChangeLog entry.
  15188. #
  15189. @@ -70,8 +72,8 @@
  15190. version="\
  15191. GNU config.sub ($timestamp)
  15192. -Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004
  15193. -Free Software Foundation, Inc.
  15194. +Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001,
  15195. +2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
  15196. This is free software; see the source for copying conditions. There is NO
  15197. warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
  15198. @@ -83,11 +85,11 @@
  15199. while test $# -gt 0 ; do
  15200. case $1 in
  15201. --time-stamp | --time* | -t )
  15202. - echo "$timestamp" ; exit 0 ;;
  15203. + echo "$timestamp" ; exit ;;
  15204. --version | -v )
  15205. - echo "$version" ; exit 0 ;;
  15206. + echo "$version" ; exit ;;
  15207. --help | --h* | -h )
  15208. - echo "$usage"; exit 0 ;;
  15209. + echo "$usage"; exit ;;
  15210. -- ) # Stop option processing
  15211. shift; break ;;
  15212. - ) # Use stdin as input.
  15213. @@ -99,7 +101,7 @@
  15214. *local*)
  15215. # First pass through any local machine types.
  15216. echo $1
  15217. - exit 0;;
  15218. + exit ;;
  15219. * )
  15220. break ;;
  15221. @@ -118,8 +120,10 @@
  15222. # Here we must recognize all the valid KERNEL-OS combinations.
  15223. maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'`
  15224. case $maybe_os in
  15225. - nto-qnx* | linux-gnu* | linux-dietlibc | linux-uclibc* | uclinux-uclibc* | uclinux-gnu* | \
  15226. - kfreebsd*-gnu* | knetbsd*-gnu* | netbsd*-gnu* | storm-chaos* | os2-emx* | rtmk-nova*)
  15227. + nto-qnx* | linux-gnu* | linux-dietlibc | linux-newlib* | linux-uclibc* | \
  15228. + uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | knetbsd*-gnu* | netbsd*-gnu* | \
  15229. + kopensolaris*-gnu* | \
  15230. + storm-chaos* | os2-emx* | rtmk-nova*)
  15231. os=-$maybe_os
  15232. basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`
  15233. ;;
  15234. @@ -149,6 +153,9 @@
  15235. os=
  15236. basic_machine=$1
  15237. ;;
  15238. + -bluegene*)
  15239. + os=-cnk
  15240. + ;;
  15241. -sim | -cisco | -oki | -wec | -winbond)
  15242. os=
  15243. basic_machine=$1
  15244. @@ -170,6 +177,10 @@
  15245. -hiux*)
  15246. os=-hiuxwe2
  15247. ;;
  15248. + -sco6)
  15249. + os=-sco5v6
  15250. + basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
  15251. + ;;
  15252. -sco5)
  15253. os=-sco3.2v5
  15254. basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
  15255. @@ -186,6 +197,10 @@
  15256. # Don't forget version if it is 3.2v4 or newer.
  15257. basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
  15258. ;;
  15259. + -sco5v6*)
  15260. + # Don't forget version if it is 3.2v4 or newer.
  15261. + basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
  15262. + ;;
  15263. -sco*)
  15264. os=-sco3.2v2
  15265. basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
  15266. @@ -230,22 +245,28 @@
  15267. | alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \
  15268. | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \
  15269. | am33_2.0 \
  15270. - | arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr \
  15271. + | arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr | avr32 \
  15272. + | bfin \
  15273. | c4x | clipper \
  15274. | d10v | d30v | dlx | dsp16xx \
  15275. - | fr30 | frv \
  15276. + | fido | fr30 | frv \
  15277. | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \
  15278. | i370 | i860 | i960 | ia64 \
  15279. | ip2k | iq2000 \
  15280. - | m32r | m32rle | m68000 | m68k | m88k | mcore \
  15281. + | lm32 \
  15282. + | m32c | m32r | m32rle | m68000 | m68k | m88k \
  15283. + | maxq | mb | microblaze | mcore | mep | metag \
  15284. | mips | mipsbe | mipseb | mipsel | mipsle \
  15285. | mips16 \
  15286. | mips64 | mips64el \
  15287. - | mips64vr | mips64vrel \
  15288. + | mips64octeon | mips64octeonel \
  15289. | mips64orion | mips64orionel \
  15290. + | mips64r5900 | mips64r5900el \
  15291. + | mips64vr | mips64vrel \
  15292. | mips64vr4100 | mips64vr4100el \
  15293. | mips64vr4300 | mips64vr4300el \
  15294. | mips64vr5000 | mips64vr5000el \
  15295. + | mips64vr5900 | mips64vr5900el \
  15296. | mipsisa32 | mipsisa32el \
  15297. | mipsisa32r2 | mipsisa32r2el \
  15298. | mipsisa64 | mipsisa64el \
  15299. @@ -254,21 +275,26 @@
  15300. | mipsisa64sr71k | mipsisa64sr71kel \
  15301. | mipstx39 | mipstx39el \
  15302. | mn10200 | mn10300 \
  15303. + | moxie \
  15304. + | mt \
  15305. | msp430 \
  15306. + | nios | nios2 \
  15307. | ns16k | ns32k \
  15308. - | openrisc | or32 \
  15309. + | or32 \
  15310. | pdp10 | pdp11 | pj | pjl \
  15311. | powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe \
  15312. | pyramid \
  15313. - | sh | sh[1234] | sh[23]e | sh[34]eb | shbe | shle | sh[1234]le | sh3ele \
  15314. + | score \
  15315. + | sh | sh[1234] | sh[24]a | sh[24]aeb | sh[23]e | sh[34]eb | sheb | shbe | shle | sh[1234]le | sh3ele \
  15316. | sh64 | sh64le \
  15317. - | sparc | sparc64 | sparc86x | sparclet | sparclite | sparcv8 | sparcv9 | sparcv9b \
  15318. - | strongarm \
  15319. + | sparc | sparc64 | sparc64b | sparc64v | sparc86x | sparclet | sparclite \
  15320. + | sparcv8 | sparcv9 | sparcv9b | sparcv9v \
  15321. + | spu | strongarm \
  15322. | tahoe | thumb | tic4x | tic80 | tron \
  15323. | v850 | v850e \
  15324. | we32k \
  15325. - | x86 | xscale | xstormy16 | xtensa \
  15326. - | z8k)
  15327. + | x86 | xc16x | xscale | xscalee[bl] | xstormy16 | xtensa \
  15328. + | z8k | z80)
  15329. basic_machine=$basic_machine-unknown
  15330. ;;
  15331. m6811 | m68hc11 | m6812 | m68hc12)
  15332. @@ -278,6 +304,9 @@
  15333. ;;
  15334. m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | v70 | w65 | z8k)
  15335. ;;
  15336. + ms1)
  15337. + basic_machine=mt-unknown
  15338. + ;;
  15339. # We use `pc' rather than `unknown'
  15340. # because (1) that's what they normally are, and
  15341. @@ -297,28 +326,32 @@
  15342. | alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \
  15343. | alphapca5[67]-* | alpha64pca5[67]-* | arc-* \
  15344. | arm-* | armbe-* | armle-* | armeb-* | armv*-* \
  15345. - | avr-* \
  15346. - | bs2000-* \
  15347. + | avr-* | avr32-* \
  15348. + | bfin-* | bs2000-* \
  15349. | c[123]* | c30-* | [cjt]90-* | c4x-* | c54x-* | c55x-* | c6x-* \
  15350. | clipper-* | craynv-* | cydra-* \
  15351. | d10v-* | d30v-* | dlx-* \
  15352. | elxsi-* \
  15353. - | f30[01]-* | f700-* | fr30-* | frv-* | fx80-* \
  15354. + | f30[01]-* | f700-* | fido-* | fr30-* | frv-* | fx80-* \
  15355. | h8300-* | h8500-* \
  15356. | hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \
  15357. | i*86-* | i860-* | i960-* | ia64-* \
  15358. | ip2k-* | iq2000-* \
  15359. - | m32r-* | m32rle-* \
  15360. + | lm32-* \
  15361. + | m32c-* | m32r-* | m32rle-* \
  15362. | m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \
  15363. - | m88110-* | m88k-* | mcore-* \
  15364. + | m88110-* | m88k-* | maxq-* | mcore-* | metag-* \
  15365. | mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \
  15366. | mips16-* \
  15367. | mips64-* | mips64el-* \
  15368. - | mips64vr-* | mips64vrel-* \
  15369. + | mips64octeon-* | mips64octeonel-* \
  15370. | mips64orion-* | mips64orionel-* \
  15371. + | mips64r5900-* | mips64r5900el-* \
  15372. + | mips64vr-* | mips64vrel-* \
  15373. | mips64vr4100-* | mips64vr4100el-* \
  15374. | mips64vr4300-* | mips64vr4300el-* \
  15375. | mips64vr5000-* | mips64vr5000el-* \
  15376. + | mips64vr5900-* | mips64vr5900el-* \
  15377. | mipsisa32-* | mipsisa32el-* \
  15378. | mipsisa32r2-* | mipsisa32r2el-* \
  15379. | mipsisa64-* | mipsisa64el-* \
  15380. @@ -327,26 +360,33 @@
  15381. | mipsisa64sr71k-* | mipsisa64sr71kel-* \
  15382. | mipstx39-* | mipstx39el-* \
  15383. | mmix-* \
  15384. + | mt-* \
  15385. | msp430-* \
  15386. + | nios-* | nios2-* \
  15387. | none-* | np1-* | ns16k-* | ns32k-* \
  15388. | orion-* \
  15389. | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \
  15390. | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-* \
  15391. | pyramid-* \
  15392. | romp-* | rs6000-* \
  15393. - | sh-* | sh[1234]-* | sh[23]e-* | sh[34]eb-* | shbe-* \
  15394. + | sh-* | sh[1234]-* | sh[24]a-* | sh[24]aeb-* | sh[23]e-* | sh[34]eb-* | sheb-* | shbe-* \
  15395. | shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \
  15396. - | sparc-* | sparc64-* | sparc86x-* | sparclet-* | sparclite-* \
  15397. - | sparcv8-* | sparcv9-* | sparcv9b-* | strongarm-* | sv1-* | sx?-* \
  15398. + | sparc-* | sparc64-* | sparc64b-* | sparc64v-* | sparc86x-* | sparclet-* \
  15399. + | sparclite-* \
  15400. + | sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | strongarm-* | sv1-* | sx?-* \
  15401. | tahoe-* | thumb-* \
  15402. - | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \
  15403. + | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* | tile-* \
  15404. | tron-* \
  15405. | v850-* | v850e-* | vax-* \
  15406. | we32k-* \
  15407. - | x86-* | x86_64-* | xps100-* | xscale-* | xstormy16-* \
  15408. - | xtensa-* \
  15409. + | x86-* | x86_64-* | xc16x-* | xps100-* | xscale-* | xscalee[bl]-* \
  15410. + | xstormy16-* | xtensa*-* \
  15411. | ymp-* \
  15412. - | z8k-*)
  15413. + | z8k-* | z80-*)
  15414. + ;;
  15415. + # Recognize the basic CPU types without company name, with glob match.
  15416. + xtensa*)
  15417. + basic_machine=$basic_machine-unknown
  15418. ;;
  15419. # Recognize the various machine names and aliases which stand
  15420. # for a CPU type and a company and sometimes even an OS.
  15421. @@ -410,6 +450,10 @@
  15422. basic_machine=m68k-apollo
  15423. os=-bsd
  15424. ;;
  15425. + aros)
  15426. + basic_machine=i386-pc
  15427. + os=-aros
  15428. + ;;
  15429. aux)
  15430. basic_machine=m68k-apple
  15431. os=-aux
  15432. @@ -418,10 +462,26 @@
  15433. basic_machine=ns32k-sequent
  15434. os=-dynix
  15435. ;;
  15436. + blackfin)
  15437. + basic_machine=bfin-unknown
  15438. + os=-linux
  15439. + ;;
  15440. + blackfin-*)
  15441. + basic_machine=bfin-`echo $basic_machine | sed 's/^[^-]*-//'`
  15442. + os=-linux
  15443. + ;;
  15444. + bluegene*)
  15445. + basic_machine=powerpc-ibm
  15446. + os=-cnk
  15447. + ;;
  15448. c90)
  15449. basic_machine=c90-cray
  15450. os=-unicos
  15451. ;;
  15452. + cegcc)
  15453. + basic_machine=arm-unknown
  15454. + os=-cegcc
  15455. + ;;
  15456. convex-c1)
  15457. basic_machine=c1-convex
  15458. os=-bsd
  15459. @@ -450,13 +510,16 @@
  15460. basic_machine=craynv-cray
  15461. os=-unicosmp
  15462. ;;
  15463. - cr16c)
  15464. - basic_machine=cr16c-unknown
  15465. + cr16)
  15466. + basic_machine=cr16-unknown
  15467. os=-elf
  15468. ;;
  15469. crds | unos)
  15470. basic_machine=m68k-crds
  15471. ;;
  15472. + crisv32 | crisv32-* | etraxfs*)
  15473. + basic_machine=crisv32-axis
  15474. + ;;
  15475. cris | cris-* | etrax*)
  15476. basic_machine=cris-axis
  15477. ;;
  15478. @@ -486,6 +549,14 @@
  15479. basic_machine=m88k-motorola
  15480. os=-sysv3
  15481. ;;
  15482. + dicos)
  15483. + basic_machine=i686-pc
  15484. + os=-dicos
  15485. + ;;
  15486. + djgpp)
  15487. + basic_machine=i586-pc
  15488. + os=-msdosdjgpp
  15489. + ;;
  15490. dpx20 | dpx20-*)
  15491. basic_machine=rs6000-bull
  15492. os=-bosx
  15493. @@ -636,6 +707,14 @@
  15494. basic_machine=m68k-isi
  15495. os=-sysv
  15496. ;;
  15497. + m68knommu)
  15498. + basic_machine=m68k-unknown
  15499. + os=-linux
  15500. + ;;
  15501. + m68knommu-*)
  15502. + basic_machine=m68k-`echo $basic_machine | sed 's/^[^-]*-//'`
  15503. + os=-linux
  15504. + ;;
  15505. m88k-omron*)
  15506. basic_machine=m88k-omron
  15507. ;;
  15508. @@ -651,6 +730,10 @@
  15509. basic_machine=i386-pc
  15510. os=-mingw32
  15511. ;;
  15512. + mingw32ce)
  15513. + basic_machine=arm-unknown
  15514. + os=-mingw32ce
  15515. + ;;
  15516. miniframe)
  15517. basic_machine=m68000-convergent
  15518. ;;
  15519. @@ -676,6 +759,9 @@
  15520. basic_machine=i386-pc
  15521. os=-msdos
  15522. ;;
  15523. + ms1-*)
  15524. + basic_machine=`echo $basic_machine | sed -e 's/ms1-/mt-/'`
  15525. + ;;
  15526. mvs)
  15527. basic_machine=i370-ibm
  15528. os=-mvs
  15529. @@ -751,9 +837,8 @@
  15530. basic_machine=hppa1.1-oki
  15531. os=-proelf
  15532. ;;
  15533. - or32 | or32-*)
  15534. + openrisc | openrisc-*)
  15535. basic_machine=or32-unknown
  15536. - os=-coff
  15537. ;;
  15538. os400)
  15539. basic_machine=powerpc-ibm
  15540. @@ -775,6 +860,14 @@
  15541. basic_machine=i860-intel
  15542. os=-osf
  15543. ;;
  15544. + parisc)
  15545. + basic_machine=hppa-unknown
  15546. + os=-linux
  15547. + ;;
  15548. + parisc-*)
  15549. + basic_machine=hppa-`echo $basic_machine | sed 's/^[^-]*-//'`
  15550. + os=-linux
  15551. + ;;
  15552. pbd)
  15553. basic_machine=sparc-tti
  15554. ;;
  15555. @@ -784,6 +877,12 @@
  15556. pc532 | pc532-*)
  15557. basic_machine=ns32k-pc532
  15558. ;;
  15559. + pc98)
  15560. + basic_machine=i386-pc
  15561. + ;;
  15562. + pc98-*)
  15563. + basic_machine=i386-`echo $basic_machine | sed 's/^[^-]*-//'`
  15564. + ;;
  15565. pentium | p5 | k5 | k6 | nexgen | viac3)
  15566. basic_machine=i586-pc
  15567. ;;
  15568. @@ -840,6 +939,10 @@
  15569. basic_machine=i586-unknown
  15570. os=-pw32
  15571. ;;
  15572. + rdos)
  15573. + basic_machine=i386-pc
  15574. + os=-rdos
  15575. + ;;
  15576. rom68k)
  15577. basic_machine=m68k-rom68k
  15578. os=-coff
  15579. @@ -866,6 +969,10 @@
  15580. sb1el)
  15581. basic_machine=mipsisa64sb1el-unknown
  15582. ;;
  15583. + sde)
  15584. + basic_machine=mipsisa32-sde
  15585. + os=-elf
  15586. + ;;
  15587. sei)
  15588. basic_machine=mips-sei
  15589. os=-seiux
  15590. @@ -877,6 +984,9 @@
  15591. basic_machine=sh-hitachi
  15592. os=-hms
  15593. ;;
  15594. + sh5el)
  15595. + basic_machine=sh5le-unknown
  15596. + ;;
  15597. sh64)
  15598. basic_machine=sh64-unknown
  15599. ;;
  15600. @@ -966,6 +1076,10 @@
  15601. basic_machine=tic6x-unknown
  15602. os=-coff
  15603. ;;
  15604. + tile*)
  15605. + basic_machine=tile-unknown
  15606. + os=-linux-gnu
  15607. + ;;
  15608. tx39)
  15609. basic_machine=mipstx39-unknown
  15610. ;;
  15611. @@ -1026,6 +1140,10 @@
  15612. basic_machine=hppa1.1-winbond
  15613. os=-proelf
  15614. ;;
  15615. + xbox)
  15616. + basic_machine=i686-pc
  15617. + os=-mingw32
  15618. + ;;
  15619. xps | xps100)
  15620. basic_machine=xps100-honeywell
  15621. ;;
  15622. @@ -1037,6 +1155,10 @@
  15623. basic_machine=z8k-unknown
  15624. os=-sim
  15625. ;;
  15626. + z80-*-coff)
  15627. + basic_machine=z80-unknown
  15628. + os=-sim
  15629. + ;;
  15630. none)
  15631. basic_machine=none-none
  15632. os=-none
  15633. @@ -1075,13 +1197,10 @@
  15634. we32k)
  15635. basic_machine=we32k-att
  15636. ;;
  15637. - sh3 | sh4 | sh[34]eb | sh[1234]le | sh[23]ele)
  15638. + sh[1234] | sh[24]a | sh[24]aeb | sh[34]eb | sh[1234]le | sh[23]ele)
  15639. basic_machine=sh-unknown
  15640. ;;
  15641. - sh64)
  15642. - basic_machine=sh64-unknown
  15643. - ;;
  15644. - sparc | sparcv8 | sparcv9 | sparcv9b)
  15645. + sparc | sparcv8 | sparcv9 | sparcv9b | sparcv9v)
  15646. basic_machine=sparc-sun
  15647. ;;
  15648. cydra)
  15649. @@ -1148,26 +1267,30 @@
  15650. # Each alternative MUST END IN A *, to match a version number.
  15651. # -sysv* is not here because it comes later, after sysvr4.
  15652. -gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \
  15653. - | -*vms* | -sco* | -esix* | -isc* | -aix* | -sunos | -sunos[34]*\
  15654. + | -*vms* | -sco* | -esix* | -isc* | -aix* | -cnk* | -sunos | -sunos[34]*\
  15655. | -hpux* | -unos* | -osf* | -luna* | -dgux* | -solaris* | -sym* \
  15656. + | -kopensolaris* \
  15657. | -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \
  15658. - | -aos* \
  15659. + | -aos* | -aros* \
  15660. | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \
  15661. | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \
  15662. - | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* | -openbsd* \
  15663. + | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* \
  15664. + | -openbsd* | -solidbsd* \
  15665. | -ekkobsd* | -kfreebsd* | -freebsd* | -riscix* | -lynxos* \
  15666. | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \
  15667. | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \
  15668. | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \
  15669. - | -chorusos* | -chorusrdb* \
  15670. + | -chorusos* | -chorusrdb* | -cegcc* \
  15671. | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
  15672. - | -mingw32* | -linux-gnu* | -linux-uclibc* | -uxpv* | -beos* | -mpeix* | -udk* \
  15673. + | -mingw32* | -linux-gnu* | -linux-newlib* | -linux-uclibc* \
  15674. + | -uxpv* | -beos* | -mpeix* | -udk* \
  15675. | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \
  15676. | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \
  15677. | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \
  15678. | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \
  15679. | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \
  15680. - | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly*)
  15681. + | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \
  15682. + | -skyos* | -haiku* | -rdos* | -toppers* | -drops*)
  15683. # Remember, each alternative MUST END IN *, to match a version number.
  15684. ;;
  15685. -qnx*)
  15686. @@ -1185,7 +1308,7 @@
  15687. os=`echo $os | sed -e 's|nto|nto-qnx|'`
  15688. ;;
  15689. -sim | -es1800* | -hms* | -xray | -os68k* | -none* | -v88r* \
  15690. - | -windows* | -osx | -abug | -netware* | -os9* | -beos* \
  15691. + | -windows* | -osx | -abug | -netware* | -os9* | -beos* | -haiku* \
  15692. | -macos* | -mpw* | -magic* | -mmixware* | -mon960* | -lnews*)
  15693. ;;
  15694. -mac*)
  15695. @@ -1294,6 +1417,12 @@
  15696. -kaos*)
  15697. os=-kaos
  15698. ;;
  15699. + -zvmoe)
  15700. + os=-zvmoe
  15701. + ;;
  15702. + -dicos*)
  15703. + os=-dicos
  15704. + ;;
  15705. -none)
  15706. ;;
  15707. *)
  15708. @@ -1316,6 +1445,12 @@
  15709. # system, and we'll never get to this point.
  15710. case $basic_machine in
  15711. + score-*)
  15712. + os=-elf
  15713. + ;;
  15714. + spu-*)
  15715. + os=-elf
  15716. + ;;
  15717. *-acorn)
  15718. os=-riscix1.2
  15719. ;;
  15720. @@ -1325,9 +1460,9 @@
  15721. arm*-semi)
  15722. os=-aout
  15723. ;;
  15724. - c4x-* | tic4x-*)
  15725. - os=-coff
  15726. - ;;
  15727. + c4x-* | tic4x-*)
  15728. + os=-coff
  15729. + ;;
  15730. # This must come before the *-dec entry.
  15731. pdp10-*)
  15732. os=-tops20
  15733. @@ -1353,6 +1488,9 @@
  15734. m68*-cisco)
  15735. os=-aout
  15736. ;;
  15737. + mep-*)
  15738. + os=-elf
  15739. + ;;
  15740. mips*-cisco)
  15741. os=-elf
  15742. ;;
  15743. @@ -1371,6 +1509,9 @@
  15744. *-be)
  15745. os=-beos
  15746. ;;
  15747. + *-haiku)
  15748. + os=-haiku
  15749. + ;;
  15750. *-ibm)
  15751. os=-aix
  15752. ;;
  15753. @@ -1479,7 +1620,7 @@
  15754. -sunos*)
  15755. vendor=sun
  15756. ;;
  15757. - -aix*)
  15758. + -cnk*|-aix*)
  15759. vendor=ibm
  15760. ;;
  15761. -beos*)
  15762. @@ -1542,7 +1683,7 @@
  15763. esac
  15764. echo $basic_machine$os
  15765. -exit 0
  15766. +exit
  15767. # Local variables:
  15768. # eval: (add-hook 'write-file-hooks 'time-stamp)
  15769. diff -Nur libgssglue-0.1.orig/configure libgssglue-0.1/configure
  15770. --- libgssglue-0.1.orig/configure 2007-09-04 15:39:47.000000000 +0200
  15771. +++ libgssglue-0.1/configure 2011-02-17 17:14:44.963807337 +0100
  15772. @@ -1,58 +1,85 @@
  15773. #! /bin/sh
  15774. # Guess values for system-dependent variables and create Makefiles.
  15775. -# Generated by GNU Autoconf 2.60 for libgssglue 0.1.
  15776. +# Generated by GNU Autoconf 2.65 for libgssglue 0.1.
  15777. #
  15778. # Report bugs to <nfsv4-wg@citi.umich.edu>.
  15779. #
  15780. +#
  15781. # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
  15782. -# 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
  15783. +# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
  15784. +# Inc.
  15785. +#
  15786. +#
  15787. # This configure script is free software; the Free Software Foundation
  15788. # gives unlimited permission to copy, distribute and modify it.
  15789. -## --------------------- ##
  15790. -## M4sh Initialization. ##
  15791. -## --------------------- ##
  15792. +## -------------------- ##
  15793. +## M4sh Initialization. ##
  15794. +## -------------------- ##
  15795. -# Be Bourne compatible
  15796. -if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  15797. +# Be more Bourne compatible
  15798. +DUALCASE=1; export DUALCASE # for MKS sh
  15799. +if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  15800. emulate sh
  15801. NULLCMD=:
  15802. - # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  15803. + # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  15804. # is contrary to our usage. Disable this feature.
  15805. alias -g '${1+"$@"}'='"$@"'
  15806. setopt NO_GLOB_SUBST
  15807. else
  15808. - case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
  15809. + case `(set -o) 2>/dev/null` in #(
  15810. + *posix*) :
  15811. + set -o posix ;; #(
  15812. + *) :
  15813. + ;;
  15814. +esac
  15815. fi
  15816. -BIN_SH=xpg4; export BIN_SH # for Tru64
  15817. -DUALCASE=1; export DUALCASE # for MKS sh
  15818. -
  15819. -# PATH needs CR
  15820. -# Avoid depending upon Character Ranges.
  15821. -as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  15822. -as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  15823. -as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  15824. -as_cr_digits='0123456789'
  15825. -as_cr_alnum=$as_cr_Letters$as_cr_digits
  15826. -# The user is always right.
  15827. -if test "${PATH_SEPARATOR+set}" != set; then
  15828. - echo "#! /bin/sh" >conf$$.sh
  15829. - echo "exit 0" >>conf$$.sh
  15830. - chmod +x conf$$.sh
  15831. - if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  15832. - PATH_SEPARATOR=';'
  15833. - else
  15834. - PATH_SEPARATOR=:
  15835. +as_nl='
  15836. +'
  15837. +export as_nl
  15838. +# Printing a long string crashes Solaris 7 /usr/bin/printf.
  15839. +as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  15840. +as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  15841. +as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  15842. +# Prefer a ksh shell builtin over an external printf program on Solaris,
  15843. +# but without wasting forks for bash or zsh.
  15844. +if test -z "$BASH_VERSION$ZSH_VERSION" \
  15845. + && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  15846. + as_echo='print -r --'
  15847. + as_echo_n='print -rn --'
  15848. +elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  15849. + as_echo='printf %s\n'
  15850. + as_echo_n='printf %s'
  15851. +else
  15852. + if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  15853. + as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  15854. + as_echo_n='/usr/ucb/echo -n'
  15855. + else
  15856. + as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  15857. + as_echo_n_body='eval
  15858. + arg=$1;
  15859. + case $arg in #(
  15860. + *"$as_nl"*)
  15861. + expr "X$arg" : "X\\(.*\\)$as_nl";
  15862. + arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  15863. + esac;
  15864. + expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  15865. + '
  15866. + export as_echo_n_body
  15867. + as_echo_n='sh -c $as_echo_n_body as_echo'
  15868. fi
  15869. - rm -f conf$$.sh
  15870. + export as_echo_body
  15871. + as_echo='sh -c $as_echo_body as_echo'
  15872. fi
  15873. -# Support unset when possible.
  15874. -if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  15875. - as_unset=unset
  15876. -else
  15877. - as_unset=false
  15878. +# The user is always right.
  15879. +if test "${PATH_SEPARATOR+set}" != set; then
  15880. + PATH_SEPARATOR=:
  15881. + (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  15882. + (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  15883. + PATH_SEPARATOR=';'
  15884. + }
  15885. fi
  15886. @@ -61,20 +88,18 @@
  15887. # there to prevent editors from complaining about space-tab.
  15888. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  15889. # splitting by setting IFS to empty value.)
  15890. -as_nl='
  15891. -'
  15892. IFS=" "" $as_nl"
  15893. # Find who we are. Look in the path if we contain no directory separator.
  15894. -case $0 in
  15895. +case $0 in #((
  15896. *[\\/]* ) as_myself=$0 ;;
  15897. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15898. for as_dir in $PATH
  15899. do
  15900. IFS=$as_save_IFS
  15901. test -z "$as_dir" && as_dir=.
  15902. - test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  15903. -done
  15904. + test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  15905. + done
  15906. IFS=$as_save_IFS
  15907. ;;
  15908. @@ -85,352 +110,322 @@
  15909. as_myself=$0
  15910. fi
  15911. if test ! -f "$as_myself"; then
  15912. - echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  15913. - { (exit 1); exit 1; }
  15914. + $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  15915. + exit 1
  15916. fi
  15917. -# Work around bugs in pre-3.0 UWIN ksh.
  15918. -for as_var in ENV MAIL MAILPATH
  15919. -do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  15920. +# Unset variables that we do not need and which cause bugs (e.g. in
  15921. +# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  15922. +# suppresses any "Segmentation fault" message there. '((' could
  15923. +# trigger a bug in pdksh 5.2.14.
  15924. +for as_var in BASH_ENV ENV MAIL MAILPATH
  15925. +do eval test x\${$as_var+set} = xset \
  15926. + && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  15927. done
  15928. PS1='$ '
  15929. PS2='> '
  15930. PS4='+ '
  15931. # NLS nuisances.
  15932. -for as_var in \
  15933. - LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
  15934. - LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
  15935. - LC_TELEPHONE LC_TIME
  15936. -do
  15937. - if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
  15938. - eval $as_var=C; export $as_var
  15939. - else
  15940. - ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  15941. - fi
  15942. -done
  15943. -
  15944. -# Required to use basename.
  15945. -if expr a : '\(a\)' >/dev/null 2>&1 &&
  15946. - test "X`expr 00001 : '.*\(...\)'`" = X001; then
  15947. - as_expr=expr
  15948. -else
  15949. - as_expr=false
  15950. -fi
  15951. -
  15952. -if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  15953. - as_basename=basename
  15954. -else
  15955. - as_basename=false
  15956. -fi
  15957. -
  15958. -
  15959. -# Name of the executable.
  15960. -as_me=`$as_basename -- "$0" ||
  15961. -$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  15962. - X"$0" : 'X\(//\)$' \| \
  15963. - X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  15964. -echo X/"$0" |
  15965. - sed '/^.*\/\([^/][^/]*\)\/*$/{
  15966. - s//\1/
  15967. - q
  15968. - }
  15969. - /^X\/\(\/\/\)$/{
  15970. - s//\1/
  15971. - q
  15972. - }
  15973. - /^X\/\(\/\).*/{
  15974. - s//\1/
  15975. - q
  15976. - }
  15977. - s/.*/./; q'`
  15978. +LC_ALL=C
  15979. +export LC_ALL
  15980. +LANGUAGE=C
  15981. +export LANGUAGE
  15982. # CDPATH.
  15983. -$as_unset CDPATH
  15984. -
  15985. +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  15986. if test "x$CONFIG_SHELL" = x; then
  15987. - if (eval ":") 2>/dev/null; then
  15988. - as_have_required=yes
  15989. + as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
  15990. + emulate sh
  15991. + NULLCMD=:
  15992. + # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
  15993. + # is contrary to our usage. Disable this feature.
  15994. + alias -g '\${1+\"\$@\"}'='\"\$@\"'
  15995. + setopt NO_GLOB_SUBST
  15996. else
  15997. - as_have_required=no
  15998. + case \`(set -o) 2>/dev/null\` in #(
  15999. + *posix*) :
  16000. + set -o posix ;; #(
  16001. + *) :
  16002. + ;;
  16003. +esac
  16004. fi
  16005. -
  16006. - if test $as_have_required = yes && (eval ":
  16007. -(as_func_return () {
  16008. - (exit \$1)
  16009. -}
  16010. -as_func_success () {
  16011. - as_func_return 0
  16012. -}
  16013. -as_func_failure () {
  16014. - as_func_return 1
  16015. -}
  16016. -as_func_ret_success () {
  16017. - return 0
  16018. -}
  16019. -as_func_ret_failure () {
  16020. - return 1
  16021. -}
  16022. +"
  16023. + as_required="as_fn_return () { (exit \$1); }
  16024. +as_fn_success () { as_fn_return 0; }
  16025. +as_fn_failure () { as_fn_return 1; }
  16026. +as_fn_ret_success () { return 0; }
  16027. +as_fn_ret_failure () { return 1; }
  16028. exitcode=0
  16029. -if as_func_success; then
  16030. - :
  16031. -else
  16032. - exitcode=1
  16033. - echo as_func_success failed.
  16034. -fi
  16035. -
  16036. -if as_func_failure; then
  16037. - exitcode=1
  16038. - echo as_func_failure succeeded.
  16039. -fi
  16040. -
  16041. -if as_func_ret_success; then
  16042. - :
  16043. -else
  16044. - exitcode=1
  16045. - echo as_func_ret_success failed.
  16046. -fi
  16047. -
  16048. -if as_func_ret_failure; then
  16049. - exitcode=1
  16050. - echo as_func_ret_failure succeeded.
  16051. -fi
  16052. -
  16053. -if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
  16054. - :
  16055. +as_fn_success || { exitcode=1; echo as_fn_success failed.; }
  16056. +as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
  16057. +as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
  16058. +as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
  16059. +if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
  16060. +
  16061. +else
  16062. + exitcode=1; echo positional parameters were not saved.
  16063. +fi
  16064. +test x\$exitcode = x0 || exit 1"
  16065. + as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
  16066. + as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
  16067. + eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
  16068. + test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
  16069. +test \$(( 1 + 1 )) = 2 || exit 1"
  16070. + if (eval "$as_required") 2>/dev/null; then :
  16071. + as_have_required=yes
  16072. else
  16073. - exitcode=1
  16074. - echo positional parameters were not saved.
  16075. + as_have_required=no
  16076. fi
  16077. + if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
  16078. -test \$exitcode = 0) || { (exit 1); exit 1; }
  16079. -
  16080. -(
  16081. - as_lineno_1=\$LINENO
  16082. - as_lineno_2=\$LINENO
  16083. - test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
  16084. - test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
  16085. -") 2> /dev/null; then
  16086. - :
  16087. else
  16088. - as_candidate_shells=
  16089. - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  16090. -for as_dir in /usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  16091. + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  16092. +as_found=false
  16093. +for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  16094. do
  16095. IFS=$as_save_IFS
  16096. test -z "$as_dir" && as_dir=.
  16097. - case $as_dir in
  16098. + as_found=:
  16099. + case $as_dir in #(
  16100. /*)
  16101. for as_base in sh bash ksh sh5; do
  16102. - as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
  16103. + # Try only shells that exist, to save several forks.
  16104. + as_shell=$as_dir/$as_base
  16105. + if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  16106. + { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
  16107. + CONFIG_SHELL=$as_shell as_have_required=yes
  16108. + if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
  16109. + break 2
  16110. +fi
  16111. +fi
  16112. done;;
  16113. esac
  16114. + as_found=false
  16115. done
  16116. +$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
  16117. + { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
  16118. + CONFIG_SHELL=$SHELL as_have_required=yes
  16119. +fi; }
  16120. IFS=$as_save_IFS
  16121. - for as_shell in $as_candidate_shells $SHELL; do
  16122. - # Try only shells that exist, to save several forks.
  16123. - if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  16124. - { ("$as_shell") 2> /dev/null <<\_ASEOF
  16125. -# Be Bourne compatible
  16126. -if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  16127. - emulate sh
  16128. - NULLCMD=:
  16129. - # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  16130. - # is contrary to our usage. Disable this feature.
  16131. - alias -g '${1+"$@"}'='"$@"'
  16132. - setopt NO_GLOB_SUBST
  16133. -else
  16134. - case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
  16135. -fi
  16136. -BIN_SH=xpg4; export BIN_SH # for Tru64
  16137. -DUALCASE=1; export DUALCASE # for MKS sh
  16138. -
  16139. -:
  16140. -_ASEOF
  16141. -}; then
  16142. - CONFIG_SHELL=$as_shell
  16143. - as_have_required=yes
  16144. - if { "$as_shell" 2> /dev/null <<\_ASEOF
  16145. -# Be Bourne compatible
  16146. -if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  16147. - emulate sh
  16148. - NULLCMD=:
  16149. - # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  16150. - # is contrary to our usage. Disable this feature.
  16151. - alias -g '${1+"$@"}'='"$@"'
  16152. - setopt NO_GLOB_SUBST
  16153. -else
  16154. - case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
  16155. -fi
  16156. -BIN_SH=xpg4; export BIN_SH # for Tru64
  16157. -DUALCASE=1; export DUALCASE # for MKS sh
  16158. -
  16159. -:
  16160. -(as_func_return () {
  16161. - (exit $1)
  16162. -}
  16163. -as_func_success () {
  16164. - as_func_return 0
  16165. -}
  16166. -as_func_failure () {
  16167. - as_func_return 1
  16168. -}
  16169. -as_func_ret_success () {
  16170. - return 0
  16171. -}
  16172. -as_func_ret_failure () {
  16173. - return 1
  16174. -}
  16175. -
  16176. -exitcode=0
  16177. -if as_func_success; then
  16178. - :
  16179. -else
  16180. - exitcode=1
  16181. - echo as_func_success failed.
  16182. -fi
  16183. -
  16184. -if as_func_failure; then
  16185. - exitcode=1
  16186. - echo as_func_failure succeeded.
  16187. -fi
  16188. -
  16189. -if as_func_ret_success; then
  16190. - :
  16191. -else
  16192. - exitcode=1
  16193. - echo as_func_ret_success failed.
  16194. -fi
  16195. -
  16196. -if as_func_ret_failure; then
  16197. - exitcode=1
  16198. - echo as_func_ret_failure succeeded.
  16199. -fi
  16200. -
  16201. -if ( set x; as_func_ret_success y && test x = "$1" ); then
  16202. - :
  16203. -else
  16204. - exitcode=1
  16205. - echo positional parameters were not saved.
  16206. + if test "x$CONFIG_SHELL" != x; then :
  16207. + # We cannot yet assume a decent shell, so we have to provide a
  16208. + # neutralization value for shells without unset; and this also
  16209. + # works around shells that cannot unset nonexistent variables.
  16210. + BASH_ENV=/dev/null
  16211. + ENV=/dev/null
  16212. + (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  16213. + export CONFIG_SHELL
  16214. + exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
  16215. fi
  16216. -test $exitcode = 0) || { (exit 1); exit 1; }
  16217. -
  16218. -(
  16219. - as_lineno_1=$LINENO
  16220. - as_lineno_2=$LINENO
  16221. - test "x$as_lineno_1" != "x$as_lineno_2" &&
  16222. - test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
  16223. -
  16224. -_ASEOF
  16225. -}; then
  16226. - break
  16227. + if test x$as_have_required = xno; then :
  16228. + $as_echo "$0: This script requires a shell more modern than all"
  16229. + $as_echo "$0: the shells that I found on your system."
  16230. + if test x${ZSH_VERSION+set} = xset ; then
  16231. + $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
  16232. + $as_echo "$0: be upgraded to zsh 4.3.4 or later."
  16233. + else
  16234. + $as_echo "$0: Please tell bug-autoconf@gnu.org and
  16235. +$0: nfsv4-wg@citi.umich.edu about your system, including
  16236. +$0: any error possibly output before this message. Then
  16237. +$0: install a modern shell, or manually run the script
  16238. +$0: under such a shell if you do have one."
  16239. + fi
  16240. + exit 1
  16241. fi
  16242. -
  16243. fi
  16244. -
  16245. - done
  16246. -
  16247. - if test "x$CONFIG_SHELL" != x; then
  16248. - for as_var in BASH_ENV ENV
  16249. - do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  16250. - done
  16251. - export CONFIG_SHELL
  16252. - exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
  16253. fi
  16254. +SHELL=${CONFIG_SHELL-/bin/sh}
  16255. +export SHELL
  16256. +# Unset more variables known to interfere with behavior of common tools.
  16257. +CLICOLOR_FORCE= GREP_OPTIONS=
  16258. +unset CLICOLOR_FORCE GREP_OPTIONS
  16259. +## --------------------- ##
  16260. +## M4sh Shell Functions. ##
  16261. +## --------------------- ##
  16262. +# as_fn_unset VAR
  16263. +# ---------------
  16264. +# Portably unset VAR.
  16265. +as_fn_unset ()
  16266. +{
  16267. + { eval $1=; unset $1;}
  16268. +}
  16269. +as_unset=as_fn_unset
  16270. +
  16271. +# as_fn_set_status STATUS
  16272. +# -----------------------
  16273. +# Set $? to STATUS, without forking.
  16274. +as_fn_set_status ()
  16275. +{
  16276. + return $1
  16277. +} # as_fn_set_status
  16278. +
  16279. +# as_fn_exit STATUS
  16280. +# -----------------
  16281. +# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  16282. +as_fn_exit ()
  16283. +{
  16284. + set +e
  16285. + as_fn_set_status $1
  16286. + exit $1
  16287. +} # as_fn_exit
  16288. +
  16289. +# as_fn_mkdir_p
  16290. +# -------------
  16291. +# Create "$as_dir" as a directory, including parents if necessary.
  16292. +as_fn_mkdir_p ()
  16293. +{
  16294. - if test $as_have_required = no; then
  16295. - echo This script requires a shell more modern than all the
  16296. - echo shells that I found on your system. Please install a
  16297. - echo modern shell, or manually run the script under such a
  16298. - echo shell if you do have one.
  16299. - { (exit 1); exit 1; }
  16300. -fi
  16301. -
  16302. + case $as_dir in #(
  16303. + -*) as_dir=./$as_dir;;
  16304. + esac
  16305. + test -d "$as_dir" || eval $as_mkdir_p || {
  16306. + as_dirs=
  16307. + while :; do
  16308. + case $as_dir in #(
  16309. + *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  16310. + *) as_qdir=$as_dir;;
  16311. + esac
  16312. + as_dirs="'$as_qdir' $as_dirs"
  16313. + as_dir=`$as_dirname -- "$as_dir" ||
  16314. +$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  16315. + X"$as_dir" : 'X\(//\)[^/]' \| \
  16316. + X"$as_dir" : 'X\(//\)$' \| \
  16317. + X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  16318. +$as_echo X"$as_dir" |
  16319. + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  16320. + s//\1/
  16321. + q
  16322. + }
  16323. + /^X\(\/\/\)[^/].*/{
  16324. + s//\1/
  16325. + q
  16326. + }
  16327. + /^X\(\/\/\)$/{
  16328. + s//\1/
  16329. + q
  16330. + }
  16331. + /^X\(\/\).*/{
  16332. + s//\1/
  16333. + q
  16334. + }
  16335. + s/.*/./; q'`
  16336. + test -d "$as_dir" && break
  16337. + done
  16338. + test -z "$as_dirs" || eval "mkdir $as_dirs"
  16339. + } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
  16340. -fi
  16341. -fi
  16342. +} # as_fn_mkdir_p
  16343. +# as_fn_append VAR VALUE
  16344. +# ----------------------
  16345. +# Append the text in VALUE to the end of the definition contained in VAR. Take
  16346. +# advantage of any shell optimizations that allow amortized linear growth over
  16347. +# repeated appends, instead of the typical quadratic growth present in naive
  16348. +# implementations.
  16349. +if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  16350. + eval 'as_fn_append ()
  16351. + {
  16352. + eval $1+=\$2
  16353. + }'
  16354. +else
  16355. + as_fn_append ()
  16356. + {
  16357. + eval $1=\$$1\$2
  16358. + }
  16359. +fi # as_fn_append
  16360. +# as_fn_arith ARG...
  16361. +# ------------------
  16362. +# Perform arithmetic evaluation on the ARGs, and store the result in the
  16363. +# global $as_val. Take advantage of shells that can avoid forks. The arguments
  16364. +# must be portable across $(()) and expr.
  16365. +if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  16366. + eval 'as_fn_arith ()
  16367. + {
  16368. + as_val=$(( $* ))
  16369. + }'
  16370. +else
  16371. + as_fn_arith ()
  16372. + {
  16373. + as_val=`expr "$@" || test $? -eq 1`
  16374. + }
  16375. +fi # as_fn_arith
  16376. -(eval "as_func_return () {
  16377. - (exit \$1)
  16378. -}
  16379. -as_func_success () {
  16380. - as_func_return 0
  16381. -}
  16382. -as_func_failure () {
  16383. - as_func_return 1
  16384. -}
  16385. -as_func_ret_success () {
  16386. - return 0
  16387. -}
  16388. -as_func_ret_failure () {
  16389. - return 1
  16390. -}
  16391. +# as_fn_error ERROR [LINENO LOG_FD]
  16392. +# ---------------------------------
  16393. +# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  16394. +# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  16395. +# script with status $?, using 1 if that was 0.
  16396. +as_fn_error ()
  16397. +{
  16398. + as_status=$?; test $as_status -eq 0 && as_status=1
  16399. + if test "$3"; then
  16400. + as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  16401. + $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
  16402. + fi
  16403. + $as_echo "$as_me: error: $1" >&2
  16404. + as_fn_exit $as_status
  16405. +} # as_fn_error
  16406. -exitcode=0
  16407. -if as_func_success; then
  16408. - :
  16409. +if expr a : '\(a\)' >/dev/null 2>&1 &&
  16410. + test "X`expr 00001 : '.*\(...\)'`" = X001; then
  16411. + as_expr=expr
  16412. else
  16413. - exitcode=1
  16414. - echo as_func_success failed.
  16415. -fi
  16416. -
  16417. -if as_func_failure; then
  16418. - exitcode=1
  16419. - echo as_func_failure succeeded.
  16420. + as_expr=false
  16421. fi
  16422. -if as_func_ret_success; then
  16423. - :
  16424. +if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  16425. + as_basename=basename
  16426. else
  16427. - exitcode=1
  16428. - echo as_func_ret_success failed.
  16429. -fi
  16430. -
  16431. -if as_func_ret_failure; then
  16432. - exitcode=1
  16433. - echo as_func_ret_failure succeeded.
  16434. + as_basename=false
  16435. fi
  16436. -if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
  16437. - :
  16438. +if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  16439. + as_dirname=dirname
  16440. else
  16441. - exitcode=1
  16442. - echo positional parameters were not saved.
  16443. + as_dirname=false
  16444. fi
  16445. -test \$exitcode = 0") || {
  16446. - echo No shell found that supports shell functions.
  16447. - echo Please tell autoconf@gnu.org about your system,
  16448. - echo including any error possibly output before this
  16449. - echo message
  16450. -}
  16451. +as_me=`$as_basename -- "$0" ||
  16452. +$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  16453. + X"$0" : 'X\(//\)$' \| \
  16454. + X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  16455. +$as_echo X/"$0" |
  16456. + sed '/^.*\/\([^/][^/]*\)\/*$/{
  16457. + s//\1/
  16458. + q
  16459. + }
  16460. + /^X\/\(\/\/\)$/{
  16461. + s//\1/
  16462. + q
  16463. + }
  16464. + /^X\/\(\/\).*/{
  16465. + s//\1/
  16466. + q
  16467. + }
  16468. + s/.*/./; q'`
  16469. +# Avoid depending upon Character Ranges.
  16470. +as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  16471. +as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  16472. +as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  16473. +as_cr_digits='0123456789'
  16474. +as_cr_alnum=$as_cr_Letters$as_cr_digits
  16475. - as_lineno_1=$LINENO
  16476. - as_lineno_2=$LINENO
  16477. - test "x$as_lineno_1" != "x$as_lineno_2" &&
  16478. - test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
  16479. -
  16480. - # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  16481. - # uniformly replaced by the line number. The first 'sed' inserts a
  16482. - # line-number line after each line using $LINENO; the second 'sed'
  16483. - # does the real work. The second script uses 'N' to pair each
  16484. - # line-number line with the line containing $LINENO, and appends
  16485. - # trailing '-' during substitution so that $LINENO is not a special
  16486. - # case at line end.
  16487. - # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  16488. - # scripts with optimization help from Paolo Bonzini. Blame Lee
  16489. - # E. McMahon (1931-1989) for sed's syntax. :-)
  16490. + as_lineno_1=$LINENO as_lineno_1a=$LINENO
  16491. + as_lineno_2=$LINENO as_lineno_2a=$LINENO
  16492. + eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
  16493. + test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
  16494. + # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
  16495. sed -n '
  16496. p
  16497. /[$]LINENO/=
  16498. @@ -447,8 +442,7 @@
  16499. s/-\n.*//
  16500. ' >$as_me.lineno &&
  16501. chmod +x "$as_me.lineno" ||
  16502. - { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
  16503. - { (exit 1); exit 1; }; }
  16504. + { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
  16505. # Don't try to exec as it changes $[0], causing all sort of problems
  16506. # (the dirname of $[0] is not the place where we might find the
  16507. @@ -458,49 +452,40 @@
  16508. exit
  16509. }
  16510. -
  16511. -if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  16512. - as_dirname=dirname
  16513. -else
  16514. - as_dirname=false
  16515. -fi
  16516. -
  16517. ECHO_C= ECHO_N= ECHO_T=
  16518. -case `echo -n x` in
  16519. +case `echo -n x` in #(((((
  16520. -n*)
  16521. - case `echo 'x\c'` in
  16522. + case `echo 'xy\c'` in
  16523. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  16524. - *) ECHO_C='\c';;
  16525. + xy) ECHO_C='\c';;
  16526. + *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  16527. + ECHO_T=' ';;
  16528. esac;;
  16529. *)
  16530. ECHO_N='-n';;
  16531. esac
  16532. -if expr a : '\(a\)' >/dev/null 2>&1 &&
  16533. - test "X`expr 00001 : '.*\(...\)'`" = X001; then
  16534. - as_expr=expr
  16535. -else
  16536. - as_expr=false
  16537. -fi
  16538. -
  16539. rm -f conf$$ conf$$.exe conf$$.file
  16540. if test -d conf$$.dir; then
  16541. rm -f conf$$.dir/conf$$.file
  16542. else
  16543. rm -f conf$$.dir
  16544. - mkdir conf$$.dir
  16545. + mkdir conf$$.dir 2>/dev/null
  16546. fi
  16547. -echo >conf$$.file
  16548. -if ln -s conf$$.file conf$$ 2>/dev/null; then
  16549. - as_ln_s='ln -s'
  16550. - # ... but there are two gotchas:
  16551. - # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  16552. - # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  16553. - # In both cases, we have to default to `cp -p'.
  16554. - ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  16555. +if (echo >conf$$.file) 2>/dev/null; then
  16556. + if ln -s conf$$.file conf$$ 2>/dev/null; then
  16557. + as_ln_s='ln -s'
  16558. + # ... but there are two gotchas:
  16559. + # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  16560. + # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  16561. + # In both cases, we have to default to `cp -p'.
  16562. + ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  16563. + as_ln_s='cp -p'
  16564. + elif ln conf$$.file conf$$ 2>/dev/null; then
  16565. + as_ln_s=ln
  16566. + else
  16567. as_ln_s='cp -p'
  16568. -elif ln conf$$.file conf$$ 2>/dev/null; then
  16569. - as_ln_s=ln
  16570. + fi
  16571. else
  16572. as_ln_s='cp -p'
  16573. fi
  16574. @@ -508,25 +493,34 @@
  16575. rmdir conf$$.dir 2>/dev/null
  16576. if mkdir -p . 2>/dev/null; then
  16577. - as_mkdir_p=:
  16578. + as_mkdir_p='mkdir -p "$as_dir"'
  16579. else
  16580. test -d ./-p && rmdir ./-p
  16581. as_mkdir_p=false
  16582. fi
  16583. -# Find out whether ``test -x'' works. Don't use a zero-byte file, as
  16584. -# systems may use methods other than mode bits to determine executability.
  16585. -cat >conf$$.file <<_ASEOF
  16586. -#! /bin/sh
  16587. -exit 0
  16588. -_ASEOF
  16589. -chmod +x conf$$.file
  16590. -if test -x conf$$.file >/dev/null 2>&1; then
  16591. - as_executable_p="test -x"
  16592. +if test -x / >/dev/null 2>&1; then
  16593. + as_test_x='test -x'
  16594. else
  16595. - as_executable_p=:
  16596. + if ls -dL / >/dev/null 2>&1; then
  16597. + as_ls_L_option=L
  16598. + else
  16599. + as_ls_L_option=
  16600. + fi
  16601. + as_test_x='
  16602. + eval sh -c '\''
  16603. + if test -d "$1"; then
  16604. + test -d "$1/.";
  16605. + else
  16606. + case $1 in #(
  16607. + -*)set "./$1";;
  16608. + esac;
  16609. + case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
  16610. + ???[sx]*):;;*)false;;esac;fi
  16611. + '\'' sh
  16612. + '
  16613. fi
  16614. -rm -f conf$$.file
  16615. +as_executable_p=$as_test_x
  16616. # Sed expression to map a string onto a valid CPP name.
  16617. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  16618. @@ -536,26 +530,25 @@
  16619. -
  16620. # Check that we are running under the correct shell.
  16621. SHELL=${CONFIG_SHELL-/bin/sh}
  16622. -case X$ECHO in
  16623. +case X$lt_ECHO in
  16624. X*--fallback-echo)
  16625. # Remove one level of quotation (which was required for Make).
  16626. - ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
  16627. + ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
  16628. ;;
  16629. esac
  16630. -echo=${ECHO-echo}
  16631. +ECHO=${lt_ECHO-echo}
  16632. if test "X$1" = X--no-reexec; then
  16633. # Discard the --no-reexec flag, and continue.
  16634. shift
  16635. elif test "X$1" = X--fallback-echo; then
  16636. # Avoid inline document here, it may be left over
  16637. :
  16638. -elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
  16639. - # Yippee, $echo works!
  16640. +elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
  16641. + # Yippee, $ECHO works!
  16642. :
  16643. else
  16644. # Restart under the correct shell.
  16645. @@ -565,9 +558,9 @@
  16646. if test "X$1" = X--fallback-echo; then
  16647. # used as fallback echo
  16648. shift
  16649. - cat <<EOF
  16650. + cat <<_LT_EOF
  16651. $*
  16652. -EOF
  16653. +_LT_EOF
  16654. exit 0
  16655. fi
  16656. @@ -575,122 +568,118 @@
  16657. # if CDPATH is set.
  16658. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  16659. -if test -z "$ECHO"; then
  16660. -if test "X${echo_test_string+set}" != Xset; then
  16661. -# find a string as large as possible, as long as the shell can cope with it
  16662. - for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
  16663. - # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
  16664. - if (echo_test_string=`eval $cmd`) 2>/dev/null &&
  16665. - echo_test_string=`eval $cmd` &&
  16666. - (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
  16667. - then
  16668. - break
  16669. - fi
  16670. - done
  16671. -fi
  16672. +if test -z "$lt_ECHO"; then
  16673. + if test "X${echo_test_string+set}" != Xset; then
  16674. + # find a string as large as possible, as long as the shell can cope with it
  16675. + for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
  16676. + # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
  16677. + if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
  16678. + { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
  16679. + then
  16680. + break
  16681. + fi
  16682. + done
  16683. + fi
  16684. -if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
  16685. - echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
  16686. - test "X$echo_testing_string" = "X$echo_test_string"; then
  16687. - :
  16688. -else
  16689. - # The Solaris, AIX, and Digital Unix default echo programs unquote
  16690. - # backslashes. This makes it impossible to quote backslashes using
  16691. - # echo "$something" | sed 's/\\/\\\\/g'
  16692. - #
  16693. - # So, first we look for a working echo in the user's PATH.
  16694. + if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
  16695. + echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
  16696. + test "X$echo_testing_string" = "X$echo_test_string"; then
  16697. + :
  16698. + else
  16699. + # The Solaris, AIX, and Digital Unix default echo programs unquote
  16700. + # backslashes. This makes it impossible to quote backslashes using
  16701. + # echo "$something" | sed 's/\\/\\\\/g'
  16702. + #
  16703. + # So, first we look for a working echo in the user's PATH.
  16704. - lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  16705. - for dir in $PATH /usr/ucb; do
  16706. + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  16707. + for dir in $PATH /usr/ucb; do
  16708. + IFS="$lt_save_ifs"
  16709. + if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
  16710. + test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
  16711. + echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
  16712. + test "X$echo_testing_string" = "X$echo_test_string"; then
  16713. + ECHO="$dir/echo"
  16714. + break
  16715. + fi
  16716. + done
  16717. IFS="$lt_save_ifs"
  16718. - if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
  16719. - test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
  16720. - echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
  16721. - test "X$echo_testing_string" = "X$echo_test_string"; then
  16722. - echo="$dir/echo"
  16723. - break
  16724. - fi
  16725. - done
  16726. - IFS="$lt_save_ifs"
  16727. - if test "X$echo" = Xecho; then
  16728. - # We didn't find a better echo, so look for alternatives.
  16729. - if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
  16730. - echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
  16731. - test "X$echo_testing_string" = "X$echo_test_string"; then
  16732. - # This shell has a builtin print -r that does the trick.
  16733. - echo='print -r'
  16734. - elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
  16735. - test "X$CONFIG_SHELL" != X/bin/ksh; then
  16736. - # If we have ksh, try running configure again with it.
  16737. - ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
  16738. - export ORIGINAL_CONFIG_SHELL
  16739. - CONFIG_SHELL=/bin/ksh
  16740. - export CONFIG_SHELL
  16741. - exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
  16742. - else
  16743. - # Try using printf.
  16744. - echo='printf %s\n'
  16745. - if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
  16746. - echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
  16747. - test "X$echo_testing_string" = "X$echo_test_string"; then
  16748. - # Cool, printf works
  16749. - :
  16750. - elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
  16751. - test "X$echo_testing_string" = 'X\t' &&
  16752. - echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  16753. - test "X$echo_testing_string" = "X$echo_test_string"; then
  16754. - CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
  16755. - export CONFIG_SHELL
  16756. - SHELL="$CONFIG_SHELL"
  16757. - export SHELL
  16758. - echo="$CONFIG_SHELL $0 --fallback-echo"
  16759. - elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
  16760. - test "X$echo_testing_string" = 'X\t' &&
  16761. - echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  16762. - test "X$echo_testing_string" = "X$echo_test_string"; then
  16763. - echo="$CONFIG_SHELL $0 --fallback-echo"
  16764. + if test "X$ECHO" = Xecho; then
  16765. + # We didn't find a better echo, so look for alternatives.
  16766. + if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
  16767. + echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
  16768. + test "X$echo_testing_string" = "X$echo_test_string"; then
  16769. + # This shell has a builtin print -r that does the trick.
  16770. + ECHO='print -r'
  16771. + elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
  16772. + test "X$CONFIG_SHELL" != X/bin/ksh; then
  16773. + # If we have ksh, try running configure again with it.
  16774. + ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
  16775. + export ORIGINAL_CONFIG_SHELL
  16776. + CONFIG_SHELL=/bin/ksh
  16777. + export CONFIG_SHELL
  16778. + exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
  16779. else
  16780. - # maybe with a smaller string...
  16781. - prev=:
  16782. + # Try using printf.
  16783. + ECHO='printf %s\n'
  16784. + if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
  16785. + echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
  16786. + test "X$echo_testing_string" = "X$echo_test_string"; then
  16787. + # Cool, printf works
  16788. + :
  16789. + elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
  16790. + test "X$echo_testing_string" = 'X\t' &&
  16791. + echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  16792. + test "X$echo_testing_string" = "X$echo_test_string"; then
  16793. + CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
  16794. + export CONFIG_SHELL
  16795. + SHELL="$CONFIG_SHELL"
  16796. + export SHELL
  16797. + ECHO="$CONFIG_SHELL $0 --fallback-echo"
  16798. + elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
  16799. + test "X$echo_testing_string" = 'X\t' &&
  16800. + echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  16801. + test "X$echo_testing_string" = "X$echo_test_string"; then
  16802. + ECHO="$CONFIG_SHELL $0 --fallback-echo"
  16803. + else
  16804. + # maybe with a smaller string...
  16805. + prev=:
  16806. - for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
  16807. - if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
  16808. - then
  16809. - break
  16810. - fi
  16811. - prev="$cmd"
  16812. - done
  16813. + for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
  16814. + if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
  16815. + then
  16816. + break
  16817. + fi
  16818. + prev="$cmd"
  16819. + done
  16820. - if test "$prev" != 'sed 50q "$0"'; then
  16821. - echo_test_string=`eval $prev`
  16822. - export echo_test_string
  16823. - exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
  16824. - else
  16825. - # Oops. We lost completely, so just stick with echo.
  16826. - echo=echo
  16827. - fi
  16828. + if test "$prev" != 'sed 50q "$0"'; then
  16829. + echo_test_string=`eval $prev`
  16830. + export echo_test_string
  16831. + exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
  16832. + else
  16833. + # Oops. We lost completely, so just stick with echo.
  16834. + ECHO=echo
  16835. + fi
  16836. + fi
  16837. fi
  16838. fi
  16839. fi
  16840. fi
  16841. -fi
  16842. # Copy echo and quote the copy suitably for passing to libtool from
  16843. # the Makefile, instead of quoting the original, which is used later.
  16844. -ECHO=$echo
  16845. -if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
  16846. - ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
  16847. +lt_ECHO=$ECHO
  16848. +if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
  16849. + lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
  16850. fi
  16851. -tagnames=${tagnames+${tagnames},}CXX
  16852. -
  16853. -tagnames=${tagnames+${tagnames},}F77
  16854. -
  16855. -exec 7<&0 </dev/null 6>&1
  16856. +test -n "$DJDIR" || exec 7<&0 </dev/null
  16857. +exec 6>&1
  16858. # Name of the host.
  16859. # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
  16860. @@ -708,7 +697,6 @@
  16861. subdirs=
  16862. MFLAGS=
  16863. MAKEFLAGS=
  16864. -SHELL=${CONFIG_SHELL-/bin/sh}
  16865. # Identity of this package.
  16866. PACKAGE_NAME='libgssglue'
  16867. @@ -716,167 +704,181 @@
  16868. PACKAGE_VERSION='0.1'
  16869. PACKAGE_STRING='libgssglue 0.1'
  16870. PACKAGE_BUGREPORT='nfsv4-wg@citi.umich.edu'
  16871. +PACKAGE_URL=''
  16872. ac_unique_file="src/g_accept_sec_context.c"
  16873. # Factoring default headers for most tests.
  16874. ac_includes_default="\
  16875. #include <stdio.h>
  16876. -#if HAVE_SYS_TYPES_H
  16877. +#ifdef HAVE_SYS_TYPES_H
  16878. # include <sys/types.h>
  16879. #endif
  16880. -#if HAVE_SYS_STAT_H
  16881. +#ifdef HAVE_SYS_STAT_H
  16882. # include <sys/stat.h>
  16883. #endif
  16884. -#if STDC_HEADERS
  16885. +#ifdef STDC_HEADERS
  16886. # include <stdlib.h>
  16887. # include <stddef.h>
  16888. #else
  16889. -# if HAVE_STDLIB_H
  16890. +# ifdef HAVE_STDLIB_H
  16891. # include <stdlib.h>
  16892. # endif
  16893. #endif
  16894. -#if HAVE_STRING_H
  16895. -# if !STDC_HEADERS && HAVE_MEMORY_H
  16896. +#ifdef HAVE_STRING_H
  16897. +# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  16898. # include <memory.h>
  16899. # endif
  16900. # include <string.h>
  16901. #endif
  16902. -#if HAVE_STRINGS_H
  16903. +#ifdef HAVE_STRINGS_H
  16904. # include <strings.h>
  16905. #endif
  16906. -#if HAVE_INTTYPES_H
  16907. +#ifdef HAVE_INTTYPES_H
  16908. # include <inttypes.h>
  16909. #endif
  16910. -#if HAVE_STDINT_H
  16911. +#ifdef HAVE_STDINT_H
  16912. # include <stdint.h>
  16913. #endif
  16914. -#if HAVE_UNISTD_H
  16915. +#ifdef HAVE_UNISTD_H
  16916. # include <unistd.h>
  16917. #endif"
  16918. -ac_subst_vars='SHELL
  16919. -PATH_SEPARATOR
  16920. -PACKAGE_NAME
  16921. -PACKAGE_TARNAME
  16922. -PACKAGE_VERSION
  16923. -PACKAGE_STRING
  16924. -PACKAGE_BUGREPORT
  16925. -exec_prefix
  16926. -prefix
  16927. -program_transform_name
  16928. -bindir
  16929. -sbindir
  16930. -libexecdir
  16931. -datarootdir
  16932. -datadir
  16933. -sysconfdir
  16934. -sharedstatedir
  16935. -localstatedir
  16936. -includedir
  16937. -oldincludedir
  16938. -docdir
  16939. -infodir
  16940. -htmldir
  16941. -dvidir
  16942. -pdfdir
  16943. -psdir
  16944. -libdir
  16945. -localedir
  16946. -mandir
  16947. -DEFS
  16948. -ECHO_C
  16949. -ECHO_N
  16950. -ECHO_T
  16951. -LIBS
  16952. -build_alias
  16953. -host_alias
  16954. -target_alias
  16955. -INSTALL_PROGRAM
  16956. -INSTALL_SCRIPT
  16957. -INSTALL_DATA
  16958. -CYGPATH_W
  16959. -PACKAGE
  16960. -VERSION
  16961. -ACLOCAL
  16962. -AUTOCONF
  16963. -AUTOMAKE
  16964. -AUTOHEADER
  16965. -MAKEINFO
  16966. -install_sh
  16967. -STRIP
  16968. -INSTALL_STRIP_PROGRAM
  16969. -mkdir_p
  16970. -AWK
  16971. -SET_MAKE
  16972. -am__leading_dot
  16973. -AMTAR
  16974. -am__tar
  16975. -am__untar
  16976. -build
  16977. -build_cpu
  16978. -build_vendor
  16979. -build_os
  16980. -host
  16981. -host_cpu
  16982. -host_vendor
  16983. -host_os
  16984. -CC
  16985. -CFLAGS
  16986. -LDFLAGS
  16987. -CPPFLAGS
  16988. -ac_ct_CC
  16989. -EXEEXT
  16990. -OBJEXT
  16991. -DEPDIR
  16992. -am__include
  16993. -am__quote
  16994. -AMDEP_TRUE
  16995. -AMDEP_FALSE
  16996. -AMDEPBACKSLASH
  16997. -CCDEPMODE
  16998. -am__fastdepCC_TRUE
  16999. -am__fastdepCC_FALSE
  17000. -SED
  17001. -GREP
  17002. -EGREP
  17003. -LN_S
  17004. -ECHO
  17005. -AR
  17006. -RANLIB
  17007. +ac_subst_vars='am__EXEEXT_FALSE
  17008. +am__EXEEXT_TRUE
  17009. +LTLIBOBJS
  17010. +LIBOBJS
  17011. CPP
  17012. -CXX
  17013. -CXXFLAGS
  17014. -ac_ct_CXX
  17015. -CXXDEPMODE
  17016. -am__fastdepCXX_TRUE
  17017. -am__fastdepCXX_FALSE
  17018. -CXXCPP
  17019. -F77
  17020. -FFLAGS
  17021. -ac_ct_F77
  17022. +OTOOL64
  17023. +OTOOL
  17024. +LIPO
  17025. +NMEDIT
  17026. +DSYMUTIL
  17027. +lt_ECHO
  17028. +RANLIB
  17029. +AR
  17030. +OBJDUMP
  17031. +LN_S
  17032. +NM
  17033. +ac_ct_DUMPBIN
  17034. +DUMPBIN
  17035. +LD
  17036. +FGREP
  17037. +EGREP
  17038. +GREP
  17039. +SED
  17040. +am__fastdepCC_FALSE
  17041. +am__fastdepCC_TRUE
  17042. +CCDEPMODE
  17043. +AMDEPBACKSLASH
  17044. +AMDEP_FALSE
  17045. +AMDEP_TRUE
  17046. +am__quote
  17047. +am__include
  17048. +DEPDIR
  17049. +OBJEXT
  17050. +EXEEXT
  17051. +ac_ct_CC
  17052. +CPPFLAGS
  17053. +LDFLAGS
  17054. +CFLAGS
  17055. +CC
  17056. +host_os
  17057. +host_vendor
  17058. +host_cpu
  17059. +host
  17060. +build_os
  17061. +build_vendor
  17062. +build_cpu
  17063. +build
  17064. LIBTOOL
  17065. -LIBOBJS
  17066. -LTLIBOBJS'
  17067. +am__untar
  17068. +am__tar
  17069. +AMTAR
  17070. +am__leading_dot
  17071. +SET_MAKE
  17072. +AWK
  17073. +mkdir_p
  17074. +MKDIR_P
  17075. +INSTALL_STRIP_PROGRAM
  17076. +STRIP
  17077. +install_sh
  17078. +MAKEINFO
  17079. +AUTOHEADER
  17080. +AUTOMAKE
  17081. +AUTOCONF
  17082. +ACLOCAL
  17083. +VERSION
  17084. +PACKAGE
  17085. +CYGPATH_W
  17086. +am__isrc
  17087. +INSTALL_DATA
  17088. +INSTALL_SCRIPT
  17089. +INSTALL_PROGRAM
  17090. +target_alias
  17091. +host_alias
  17092. +build_alias
  17093. +LIBS
  17094. +ECHO_T
  17095. +ECHO_N
  17096. +ECHO_C
  17097. +DEFS
  17098. +mandir
  17099. +localedir
  17100. +libdir
  17101. +psdir
  17102. +pdfdir
  17103. +dvidir
  17104. +htmldir
  17105. +infodir
  17106. +docdir
  17107. +oldincludedir
  17108. +includedir
  17109. +localstatedir
  17110. +sharedstatedir
  17111. +sysconfdir
  17112. +datadir
  17113. +datarootdir
  17114. +libexecdir
  17115. +sbindir
  17116. +bindir
  17117. +program_transform_name
  17118. +prefix
  17119. +exec_prefix
  17120. +PACKAGE_URL
  17121. +PACKAGE_BUGREPORT
  17122. +PACKAGE_STRING
  17123. +PACKAGE_VERSION
  17124. +PACKAGE_TARNAME
  17125. +PACKAGE_NAME
  17126. +PATH_SEPARATOR
  17127. +SHELL'
  17128. ac_subst_files=''
  17129. +ac_user_opts='
  17130. +enable_option_checking
  17131. +enable_shared
  17132. +enable_static
  17133. +with_pic
  17134. +enable_fast_install
  17135. +enable_dependency_tracking
  17136. +with_gnu_ld
  17137. +enable_libtool_lock
  17138. +'
  17139. ac_precious_vars='build_alias
  17140. host_alias
  17141. target_alias
  17142. CC
  17143. CFLAGS
  17144. LDFLAGS
  17145. +LIBS
  17146. CPPFLAGS
  17147. -CPP
  17148. -CXX
  17149. -CXXFLAGS
  17150. -CCC
  17151. -CXXCPP
  17152. -F77
  17153. -FFLAGS'
  17154. +CPP'
  17155. # Initialize some variables set by options.
  17156. ac_init_help=
  17157. ac_init_version=false
  17158. +ac_unrecognized_opts=
  17159. +ac_unrecognized_sep=
  17160. # The variables have the same names as the options, with
  17161. # dashes changed to underlines.
  17162. cache_file=/dev/null
  17163. @@ -975,13 +977,20 @@
  17164. datarootdir=$ac_optarg ;;
  17165. -disable-* | --disable-*)
  17166. - ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  17167. + ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  17168. # Reject names that are not valid shell variable names.
  17169. - expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  17170. - { echo "$as_me: error: invalid feature name: $ac_feature" >&2
  17171. - { (exit 1); exit 1; }; }
  17172. - ac_feature=`echo $ac_feature | sed 's/-/_/g'`
  17173. - eval enable_$ac_feature=no ;;
  17174. + expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  17175. + as_fn_error "invalid feature name: $ac_useropt"
  17176. + ac_useropt_orig=$ac_useropt
  17177. + ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  17178. + case $ac_user_opts in
  17179. + *"
  17180. +"enable_$ac_useropt"
  17181. +"*) ;;
  17182. + *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  17183. + ac_unrecognized_sep=', ';;
  17184. + esac
  17185. + eval enable_$ac_useropt=no ;;
  17186. -docdir | --docdir | --docdi | --doc | --do)
  17187. ac_prev=docdir ;;
  17188. @@ -994,13 +1003,20 @@
  17189. dvidir=$ac_optarg ;;
  17190. -enable-* | --enable-*)
  17191. - ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  17192. + ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  17193. # Reject names that are not valid shell variable names.
  17194. - expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  17195. - { echo "$as_me: error: invalid feature name: $ac_feature" >&2
  17196. - { (exit 1); exit 1; }; }
  17197. - ac_feature=`echo $ac_feature | sed 's/-/_/g'`
  17198. - eval enable_$ac_feature=\$ac_optarg ;;
  17199. + expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  17200. + as_fn_error "invalid feature name: $ac_useropt"
  17201. + ac_useropt_orig=$ac_useropt
  17202. + ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  17203. + case $ac_user_opts in
  17204. + *"
  17205. +"enable_$ac_useropt"
  17206. +"*) ;;
  17207. + *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  17208. + ac_unrecognized_sep=', ';;
  17209. + esac
  17210. + eval enable_$ac_useropt=\$ac_optarg ;;
  17211. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  17212. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  17213. @@ -1191,22 +1207,36 @@
  17214. ac_init_version=: ;;
  17215. -with-* | --with-*)
  17216. - ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  17217. + ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  17218. # Reject names that are not valid shell variable names.
  17219. - expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  17220. - { echo "$as_me: error: invalid package name: $ac_package" >&2
  17221. - { (exit 1); exit 1; }; }
  17222. - ac_package=`echo $ac_package| sed 's/-/_/g'`
  17223. - eval with_$ac_package=\$ac_optarg ;;
  17224. + expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  17225. + as_fn_error "invalid package name: $ac_useropt"
  17226. + ac_useropt_orig=$ac_useropt
  17227. + ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  17228. + case $ac_user_opts in
  17229. + *"
  17230. +"with_$ac_useropt"
  17231. +"*) ;;
  17232. + *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  17233. + ac_unrecognized_sep=', ';;
  17234. + esac
  17235. + eval with_$ac_useropt=\$ac_optarg ;;
  17236. -without-* | --without-*)
  17237. - ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  17238. + ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  17239. # Reject names that are not valid shell variable names.
  17240. - expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  17241. - { echo "$as_me: error: invalid package name: $ac_package" >&2
  17242. - { (exit 1); exit 1; }; }
  17243. - ac_package=`echo $ac_package | sed 's/-/_/g'`
  17244. - eval with_$ac_package=no ;;
  17245. + expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  17246. + as_fn_error "invalid package name: $ac_useropt"
  17247. + ac_useropt_orig=$ac_useropt
  17248. + ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  17249. + case $ac_user_opts in
  17250. + *"
  17251. +"with_$ac_useropt"
  17252. +"*) ;;
  17253. + *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  17254. + ac_unrecognized_sep=', ';;
  17255. + esac
  17256. + eval with_$ac_useropt=no ;;
  17257. --x)
  17258. # Obsolete; use --with-x.
  17259. @@ -1226,25 +1256,25 @@
  17260. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  17261. x_libraries=$ac_optarg ;;
  17262. - -*) { echo "$as_me: error: unrecognized option: $ac_option
  17263. -Try \`$0 --help' for more information." >&2
  17264. - { (exit 1); exit 1; }; }
  17265. + -*) as_fn_error "unrecognized option: \`$ac_option'
  17266. +Try \`$0 --help' for more information."
  17267. ;;
  17268. *=*)
  17269. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  17270. # Reject names that are not valid shell variable names.
  17271. - expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
  17272. - { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
  17273. - { (exit 1); exit 1; }; }
  17274. + case $ac_envvar in #(
  17275. + '' | [0-9]* | *[!_$as_cr_alnum]* )
  17276. + as_fn_error "invalid variable name: \`$ac_envvar'" ;;
  17277. + esac
  17278. eval $ac_envvar=\$ac_optarg
  17279. export $ac_envvar ;;
  17280. *)
  17281. # FIXME: should be removed in autoconf 3.0.
  17282. - echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  17283. + $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  17284. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  17285. - echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  17286. + $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  17287. : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
  17288. ;;
  17289. @@ -1253,23 +1283,36 @@
  17290. if test -n "$ac_prev"; then
  17291. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  17292. - { echo "$as_me: error: missing argument to $ac_option" >&2
  17293. - { (exit 1); exit 1; }; }
  17294. + as_fn_error "missing argument to $ac_option"
  17295. +fi
  17296. +
  17297. +if test -n "$ac_unrecognized_opts"; then
  17298. + case $enable_option_checking in
  17299. + no) ;;
  17300. + fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
  17301. + *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  17302. + esac
  17303. fi
  17304. -# Be sure to have absolute directory names.
  17305. +# Check all directory arguments for consistency.
  17306. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  17307. datadir sysconfdir sharedstatedir localstatedir includedir \
  17308. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  17309. libdir localedir mandir
  17310. do
  17311. eval ac_val=\$$ac_var
  17312. + # Remove trailing slashes.
  17313. + case $ac_val in
  17314. + */ )
  17315. + ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  17316. + eval $ac_var=\$ac_val;;
  17317. + esac
  17318. + # Be sure to have absolute directory names.
  17319. case $ac_val in
  17320. [\\/$]* | ?:[\\/]* ) continue;;
  17321. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  17322. esac
  17323. - { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
  17324. - { (exit 1); exit 1; }; }
  17325. + as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
  17326. done
  17327. # There might be people who depend on the old broken behavior: `$host'
  17328. @@ -1283,7 +1326,7 @@
  17329. if test "x$host_alias" != x; then
  17330. if test "x$build_alias" = x; then
  17331. cross_compiling=maybe
  17332. - echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
  17333. + $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
  17334. If a cross compiler is detected then cross compile mode will be used." >&2
  17335. elif test "x$build_alias" != "x$host_alias"; then
  17336. cross_compiling=yes
  17337. @@ -1299,23 +1342,21 @@
  17338. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  17339. ac_ls_di=`ls -di .` &&
  17340. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  17341. - { echo "$as_me: error: Working directory cannot be determined" >&2
  17342. - { (exit 1); exit 1; }; }
  17343. + as_fn_error "working directory cannot be determined"
  17344. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  17345. - { echo "$as_me: error: pwd does not report name of working directory" >&2
  17346. - { (exit 1); exit 1; }; }
  17347. + as_fn_error "pwd does not report name of working directory"
  17348. # Find the source files, if location was not specified.
  17349. if test -z "$srcdir"; then
  17350. ac_srcdir_defaulted=yes
  17351. # Try the directory containing this script, then the parent directory.
  17352. - ac_confdir=`$as_dirname -- "$0" ||
  17353. -$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  17354. - X"$0" : 'X\(//\)[^/]' \| \
  17355. - X"$0" : 'X\(//\)$' \| \
  17356. - X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  17357. -echo X"$0" |
  17358. + ac_confdir=`$as_dirname -- "$as_myself" ||
  17359. +$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  17360. + X"$as_myself" : 'X\(//\)[^/]' \| \
  17361. + X"$as_myself" : 'X\(//\)$' \| \
  17362. + X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  17363. +$as_echo X"$as_myself" |
  17364. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  17365. s//\1/
  17366. q
  17367. @@ -1342,13 +1383,11 @@
  17368. fi
  17369. if test ! -r "$srcdir/$ac_unique_file"; then
  17370. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  17371. - { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
  17372. - { (exit 1); exit 1; }; }
  17373. + as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
  17374. fi
  17375. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  17376. ac_abs_confdir=`(
  17377. - cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
  17378. - { (exit 1); exit 1; }; }
  17379. + cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
  17380. pwd)`
  17381. # When building in place, set srcdir=.
  17382. if test "$ac_abs_confdir" = "$ac_pwd"; then
  17383. @@ -1396,9 +1435,9 @@
  17384. Installation directories:
  17385. --prefix=PREFIX install architecture-independent files in PREFIX
  17386. - [$ac_default_prefix]
  17387. + [$ac_default_prefix]
  17388. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  17389. - [PREFIX]
  17390. + [PREFIX]
  17391. By default, \`make install' will install all the files in
  17392. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  17393. @@ -1408,25 +1447,25 @@
  17394. For better control, use the options below.
  17395. Fine tuning of the installation directories:
  17396. - --bindir=DIR user executables [EPREFIX/bin]
  17397. - --sbindir=DIR system admin executables [EPREFIX/sbin]
  17398. - --libexecdir=DIR program executables [EPREFIX/libexec]
  17399. - --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  17400. - --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  17401. - --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  17402. - --libdir=DIR object code libraries [EPREFIX/lib]
  17403. - --includedir=DIR C header files [PREFIX/include]
  17404. - --oldincludedir=DIR C header files for non-gcc [/usr/include]
  17405. - --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  17406. - --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  17407. - --infodir=DIR info documentation [DATAROOTDIR/info]
  17408. - --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  17409. - --mandir=DIR man documentation [DATAROOTDIR/man]
  17410. - --docdir=DIR documentation root [DATAROOTDIR/doc/libgssglue]
  17411. - --htmldir=DIR html documentation [DOCDIR]
  17412. - --dvidir=DIR dvi documentation [DOCDIR]
  17413. - --pdfdir=DIR pdf documentation [DOCDIR]
  17414. - --psdir=DIR ps documentation [DOCDIR]
  17415. + --bindir=DIR user executables [EPREFIX/bin]
  17416. + --sbindir=DIR system admin executables [EPREFIX/sbin]
  17417. + --libexecdir=DIR program executables [EPREFIX/libexec]
  17418. + --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  17419. + --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  17420. + --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  17421. + --libdir=DIR object code libraries [EPREFIX/lib]
  17422. + --includedir=DIR C header files [PREFIX/include]
  17423. + --oldincludedir=DIR C header files for non-gcc [/usr/include]
  17424. + --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  17425. + --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  17426. + --infodir=DIR info documentation [DATAROOTDIR/info]
  17427. + --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  17428. + --mandir=DIR man documentation [DATAROOTDIR/man]
  17429. + --docdir=DIR documentation root [DATAROOTDIR/doc/libgssglue]
  17430. + --htmldir=DIR html documentation [DOCDIR]
  17431. + --dvidir=DIR dvi documentation [DOCDIR]
  17432. + --pdfdir=DIR pdf documentation [DOCDIR]
  17433. + --psdir=DIR ps documentation [DOCDIR]
  17434. _ACEOF
  17435. cat <<\_ACEOF
  17436. @@ -1449,6 +1488,7 @@
  17437. cat <<\_ACEOF
  17438. Optional Features:
  17439. + --disable-option-checking ignore unrecognized --enable/--with options
  17440. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  17441. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  17442. --enable-shared[=PKGS] build shared libraries [default=yes]
  17443. @@ -1462,24 +1502,19 @@
  17444. Optional Packages:
  17445. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  17446. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  17447. - --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  17448. --with-pic try to use only PIC/non-PIC objects [default=use
  17449. both]
  17450. - --with-tags[=TAGS] include additional configurations [automatic]
  17451. + --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  17452. Some influential environment variables:
  17453. CC C compiler command
  17454. CFLAGS C compiler flags
  17455. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  17456. nonstandard directory <lib dir>
  17457. - CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
  17458. + LIBS libraries to pass to the linker, e.g. -l<library>
  17459. + CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  17460. you have headers in a nonstandard directory <include dir>
  17461. CPP C preprocessor
  17462. - CXX C++ compiler command
  17463. - CXXFLAGS C++ compiler flags
  17464. - CXXCPP C++ preprocessor
  17465. - F77 Fortran 77 compiler command
  17466. - FFLAGS Fortran 77 compiler flags
  17467. Use these variables to override the choices made by `configure' or to help
  17468. it to find libraries and programs with nonstandard names/locations.
  17469. @@ -1492,15 +1527,17 @@
  17470. if test "$ac_init_help" = "recursive"; then
  17471. # If there are subdirs, report their specific --help.
  17472. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  17473. - test -d "$ac_dir" || continue
  17474. + test -d "$ac_dir" ||
  17475. + { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  17476. + continue
  17477. ac_builddir=.
  17478. case "$ac_dir" in
  17479. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  17480. *)
  17481. - ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  17482. + ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  17483. # A ".." for each directory in $ac_dir_suffix.
  17484. - ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
  17485. + ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  17486. case $ac_top_builddir_sub in
  17487. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  17488. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  17489. @@ -1536,7 +1573,7 @@
  17490. echo &&
  17491. $SHELL "$ac_srcdir/configure" --help=recursive
  17492. else
  17493. - echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  17494. + $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  17495. fi || ac_status=$?
  17496. cd "$ac_pwd" || { ac_status=$?; break; }
  17497. done
  17498. @@ -1546,364 +1583,947 @@
  17499. if $ac_init_version; then
  17500. cat <<\_ACEOF
  17501. libgssglue configure 0.1
  17502. -generated by GNU Autoconf 2.60
  17503. +generated by GNU Autoconf 2.65
  17504. -Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
  17505. -2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
  17506. +Copyright (C) 2009 Free Software Foundation, Inc.
  17507. This configure script is free software; the Free Software Foundation
  17508. gives unlimited permission to copy, distribute and modify it.
  17509. _ACEOF
  17510. exit
  17511. fi
  17512. -cat >config.log <<_ACEOF
  17513. -This file contains any messages produced by compilers while
  17514. -running configure, to aid debugging if configure makes a mistake.
  17515. -
  17516. -It was created by libgssglue $as_me 0.1, which was
  17517. -generated by GNU Autoconf 2.60. Invocation command line was
  17518. -
  17519. - $ $0 $@
  17520. -_ACEOF
  17521. -exec 5>>config.log
  17522. +## ------------------------ ##
  17523. +## Autoconf initialization. ##
  17524. +## ------------------------ ##
  17525. +
  17526. +# ac_fn_c_try_compile LINENO
  17527. +# --------------------------
  17528. +# Try to compile conftest.$ac_ext, and return whether this succeeded.
  17529. +ac_fn_c_try_compile ()
  17530. {
  17531. -cat <<_ASUNAME
  17532. -## --------- ##
  17533. -## Platform. ##
  17534. -## --------- ##
  17535. -
  17536. -hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  17537. -uname -m = `(uname -m) 2>/dev/null || echo unknown`
  17538. -uname -r = `(uname -r) 2>/dev/null || echo unknown`
  17539. -uname -s = `(uname -s) 2>/dev/null || echo unknown`
  17540. -uname -v = `(uname -v) 2>/dev/null || echo unknown`
  17541. -
  17542. -/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  17543. -/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  17544. -
  17545. -/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  17546. -/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  17547. -/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  17548. -/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  17549. -/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  17550. -/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  17551. -/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  17552. -
  17553. -_ASUNAME
  17554. + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  17555. + rm -f conftest.$ac_objext
  17556. + if { { ac_try="$ac_compile"
  17557. +case "(($ac_try" in
  17558. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17559. + *) ac_try_echo=$ac_try;;
  17560. +esac
  17561. +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  17562. +$as_echo "$ac_try_echo"; } >&5
  17563. + (eval "$ac_compile") 2>conftest.err
  17564. + ac_status=$?
  17565. + if test -s conftest.err; then
  17566. + grep -v '^ *+' conftest.err >conftest.er1
  17567. + cat conftest.er1 >&5
  17568. + mv -f conftest.er1 conftest.err
  17569. + fi
  17570. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  17571. + test $ac_status = 0; } && {
  17572. + test -z "$ac_c_werror_flag" ||
  17573. + test ! -s conftest.err
  17574. + } && test -s conftest.$ac_objext; then :
  17575. + ac_retval=0
  17576. +else
  17577. + $as_echo "$as_me: failed program was:" >&5
  17578. +sed 's/^/| /' conftest.$ac_ext >&5
  17579. -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  17580. -for as_dir in $PATH
  17581. -do
  17582. - IFS=$as_save_IFS
  17583. - test -z "$as_dir" && as_dir=.
  17584. - echo "PATH: $as_dir"
  17585. -done
  17586. -IFS=$as_save_IFS
  17587. + ac_retval=1
  17588. +fi
  17589. + eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  17590. + as_fn_set_status $ac_retval
  17591. -} >&5
  17592. +} # ac_fn_c_try_compile
  17593. -cat >&5 <<_ACEOF
  17594. +# ac_fn_c_try_link LINENO
  17595. +# -----------------------
  17596. +# Try to link conftest.$ac_ext, and return whether this succeeded.
  17597. +ac_fn_c_try_link ()
  17598. +{
  17599. + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  17600. + rm -f conftest.$ac_objext conftest$ac_exeext
  17601. + if { { ac_try="$ac_link"
  17602. +case "(($ac_try" in
  17603. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17604. + *) ac_try_echo=$ac_try;;
  17605. +esac
  17606. +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  17607. +$as_echo "$ac_try_echo"; } >&5
  17608. + (eval "$ac_link") 2>conftest.err
  17609. + ac_status=$?
  17610. + if test -s conftest.err; then
  17611. + grep -v '^ *+' conftest.err >conftest.er1
  17612. + cat conftest.er1 >&5
  17613. + mv -f conftest.er1 conftest.err
  17614. + fi
  17615. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  17616. + test $ac_status = 0; } && {
  17617. + test -z "$ac_c_werror_flag" ||
  17618. + test ! -s conftest.err
  17619. + } && test -s conftest$ac_exeext && {
  17620. + test "$cross_compiling" = yes ||
  17621. + $as_test_x conftest$ac_exeext
  17622. + }; then :
  17623. + ac_retval=0
  17624. +else
  17625. + $as_echo "$as_me: failed program was:" >&5
  17626. +sed 's/^/| /' conftest.$ac_ext >&5
  17627. + ac_retval=1
  17628. +fi
  17629. + # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  17630. + # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  17631. + # interfere with the next link command; also delete a directory that is
  17632. + # left behind by Apple's compiler. We do this before executing the actions.
  17633. + rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  17634. + eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  17635. + as_fn_set_status $ac_retval
  17636. -## ----------- ##
  17637. -## Core tests. ##
  17638. -## ----------- ##
  17639. +} # ac_fn_c_try_link
  17640. +# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  17641. +# -------------------------------------------------------
  17642. +# Tests whether HEADER exists and can be compiled using the include files in
  17643. +# INCLUDES, setting the cache variable VAR accordingly.
  17644. +ac_fn_c_check_header_compile ()
  17645. +{
  17646. + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  17647. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  17648. +$as_echo_n "checking for $2... " >&6; }
  17649. +if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  17650. + $as_echo_n "(cached) " >&6
  17651. +else
  17652. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17653. +/* end confdefs.h. */
  17654. +$4
  17655. +#include <$2>
  17656. _ACEOF
  17657. +if ac_fn_c_try_compile "$LINENO"; then :
  17658. + eval "$3=yes"
  17659. +else
  17660. + eval "$3=no"
  17661. +fi
  17662. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17663. +fi
  17664. +eval ac_res=\$$3
  17665. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  17666. +$as_echo "$ac_res" >&6; }
  17667. + eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  17668. +} # ac_fn_c_check_header_compile
  17669. -# Keep a trace of the command line.
  17670. -# Strip out --no-create and --no-recursion so they do not pile up.
  17671. -# Strip out --silent because we don't want to record it for future runs.
  17672. -# Also quote any args containing shell meta-characters.
  17673. -# Make two passes to allow for proper duplicate-argument suppression.
  17674. -ac_configure_args=
  17675. -ac_configure_args0=
  17676. -ac_configure_args1=
  17677. -ac_must_keep_next=false
  17678. -for ac_pass in 1 2
  17679. -do
  17680. - for ac_arg
  17681. - do
  17682. - case $ac_arg in
  17683. - -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  17684. - -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  17685. - | -silent | --silent | --silen | --sile | --sil)
  17686. - continue ;;
  17687. - *\'*)
  17688. - ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  17689. - esac
  17690. - case $ac_pass in
  17691. - 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
  17692. - 2)
  17693. - ac_configure_args1="$ac_configure_args1 '$ac_arg'"
  17694. - if test $ac_must_keep_next = true; then
  17695. - ac_must_keep_next=false # Got value, back to normal.
  17696. - else
  17697. - case $ac_arg in
  17698. - *=* | --config-cache | -C | -disable-* | --disable-* \
  17699. - | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  17700. - | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  17701. - | -with-* | --with-* | -without-* | --without-* | --x)
  17702. - case "$ac_configure_args0 " in
  17703. - "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  17704. - esac
  17705. - ;;
  17706. - -* ) ac_must_keep_next=true ;;
  17707. - esac
  17708. - fi
  17709. - ac_configure_args="$ac_configure_args '$ac_arg'"
  17710. - ;;
  17711. - esac
  17712. - done
  17713. -done
  17714. -$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
  17715. -$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
  17716. -
  17717. -# When interrupted or exit'd, cleanup temporary files, and complete
  17718. -# config.log. We remove comments because anyway the quotes in there
  17719. -# would cause problems or look ugly.
  17720. -# WARNING: Use '\'' to represent an apostrophe within the trap.
  17721. -# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  17722. -trap 'exit_status=$?
  17723. - # Save into config.log some information that might help in debugging.
  17724. - {
  17725. - echo
  17726. -
  17727. - cat <<\_ASBOX
  17728. -## ---------------- ##
  17729. -## Cache variables. ##
  17730. -## ---------------- ##
  17731. -_ASBOX
  17732. - echo
  17733. - # The following way of writing the cache mishandles newlines in values,
  17734. -(
  17735. - for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  17736. - eval ac_val=\$$ac_var
  17737. - case $ac_val in #(
  17738. - *${as_nl}*)
  17739. - case $ac_var in #(
  17740. - *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
  17741. -echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
  17742. - esac
  17743. - case $ac_var in #(
  17744. - _ | IFS | as_nl) ;; #(
  17745. - *) $as_unset $ac_var ;;
  17746. - esac ;;
  17747. - esac
  17748. - done
  17749. - (set) 2>&1 |
  17750. - case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  17751. - *${as_nl}ac_space=\ *)
  17752. - sed -n \
  17753. - "s/'\''/'\''\\\\'\'''\''/g;
  17754. - s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  17755. - ;; #(
  17756. - *)
  17757. - sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  17758. - ;;
  17759. - esac |
  17760. - sort
  17761. -)
  17762. - echo
  17763. +# ac_fn_c_try_cpp LINENO
  17764. +# ----------------------
  17765. +# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  17766. +ac_fn_c_try_cpp ()
  17767. +{
  17768. + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  17769. + if { { ac_try="$ac_cpp conftest.$ac_ext"
  17770. +case "(($ac_try" in
  17771. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17772. + *) ac_try_echo=$ac_try;;
  17773. +esac
  17774. +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  17775. +$as_echo "$ac_try_echo"; } >&5
  17776. + (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  17777. + ac_status=$?
  17778. + if test -s conftest.err; then
  17779. + grep -v '^ *+' conftest.err >conftest.er1
  17780. + cat conftest.er1 >&5
  17781. + mv -f conftest.er1 conftest.err
  17782. + fi
  17783. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  17784. + test $ac_status = 0; } >/dev/null && {
  17785. + test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  17786. + test ! -s conftest.err
  17787. + }; then :
  17788. + ac_retval=0
  17789. +else
  17790. + $as_echo "$as_me: failed program was:" >&5
  17791. +sed 's/^/| /' conftest.$ac_ext >&5
  17792. - cat <<\_ASBOX
  17793. -## ----------------- ##
  17794. -## Output variables. ##
  17795. -## ----------------- ##
  17796. -_ASBOX
  17797. - echo
  17798. - for ac_var in $ac_subst_vars
  17799. - do
  17800. - eval ac_val=\$$ac_var
  17801. - case $ac_val in
  17802. - *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  17803. - esac
  17804. - echo "$ac_var='\''$ac_val'\''"
  17805. - done | sort
  17806. - echo
  17807. + ac_retval=1
  17808. +fi
  17809. + eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  17810. + as_fn_set_status $ac_retval
  17811. - if test -n "$ac_subst_files"; then
  17812. - cat <<\_ASBOX
  17813. -## ------------------- ##
  17814. -## File substitutions. ##
  17815. -## ------------------- ##
  17816. -_ASBOX
  17817. - echo
  17818. - for ac_var in $ac_subst_files
  17819. - do
  17820. - eval ac_val=\$$ac_var
  17821. - case $ac_val in
  17822. - *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  17823. - esac
  17824. - echo "$ac_var='\''$ac_val'\''"
  17825. - done | sort
  17826. - echo
  17827. - fi
  17828. +} # ac_fn_c_try_cpp
  17829. - if test -s confdefs.h; then
  17830. - cat <<\_ASBOX
  17831. -## ----------- ##
  17832. -## confdefs.h. ##
  17833. -## ----------- ##
  17834. -_ASBOX
  17835. - echo
  17836. - cat confdefs.h
  17837. - echo
  17838. - fi
  17839. - test "$ac_signal" != 0 &&
  17840. - echo "$as_me: caught signal $ac_signal"
  17841. - echo "$as_me: exit $exit_status"
  17842. - } >&5
  17843. - rm -f core *.core core.conftest.* &&
  17844. - rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  17845. - exit $exit_status
  17846. -' 0
  17847. -for ac_signal in 1 2 13 15; do
  17848. - trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
  17849. -done
  17850. -ac_signal=0
  17851. +# ac_fn_c_try_run LINENO
  17852. +# ----------------------
  17853. +# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  17854. +# that executables *can* be run.
  17855. +ac_fn_c_try_run ()
  17856. +{
  17857. + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  17858. + if { { ac_try="$ac_link"
  17859. +case "(($ac_try" in
  17860. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17861. + *) ac_try_echo=$ac_try;;
  17862. +esac
  17863. +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  17864. +$as_echo "$ac_try_echo"; } >&5
  17865. + (eval "$ac_link") 2>&5
  17866. + ac_status=$?
  17867. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  17868. + test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  17869. + { { case "(($ac_try" in
  17870. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17871. + *) ac_try_echo=$ac_try;;
  17872. +esac
  17873. +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  17874. +$as_echo "$ac_try_echo"; } >&5
  17875. + (eval "$ac_try") 2>&5
  17876. + ac_status=$?
  17877. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  17878. + test $ac_status = 0; }; }; then :
  17879. + ac_retval=0
  17880. +else
  17881. + $as_echo "$as_me: program exited with status $ac_status" >&5
  17882. + $as_echo "$as_me: failed program was:" >&5
  17883. +sed 's/^/| /' conftest.$ac_ext >&5
  17884. -# confdefs.h avoids OS command line length limits that DEFS can exceed.
  17885. -rm -f -r conftest* confdefs.h
  17886. + ac_retval=$ac_status
  17887. +fi
  17888. + rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  17889. + eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  17890. + as_fn_set_status $ac_retval
  17891. -# Predefined preprocessor variables.
  17892. +} # ac_fn_c_try_run
  17893. -cat >>confdefs.h <<_ACEOF
  17894. -#define PACKAGE_NAME "$PACKAGE_NAME"
  17895. -_ACEOF
  17896. +# ac_fn_c_check_func LINENO FUNC VAR
  17897. +# ----------------------------------
  17898. +# Tests whether FUNC exists, setting the cache variable VAR accordingly
  17899. +ac_fn_c_check_func ()
  17900. +{
  17901. + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  17902. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  17903. +$as_echo_n "checking for $2... " >&6; }
  17904. +if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  17905. + $as_echo_n "(cached) " >&6
  17906. +else
  17907. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17908. +/* end confdefs.h. */
  17909. +/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  17910. + For example, HP-UX 11i <limits.h> declares gettimeofday. */
  17911. +#define $2 innocuous_$2
  17912. +/* System header to define __stub macros and hopefully few prototypes,
  17913. + which can conflict with char $2 (); below.
  17914. + Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  17915. + <limits.h> exists even on freestanding compilers. */
  17916. -cat >>confdefs.h <<_ACEOF
  17917. -#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  17918. -_ACEOF
  17919. +#ifdef __STDC__
  17920. +# include <limits.h>
  17921. +#else
  17922. +# include <assert.h>
  17923. +#endif
  17924. +#undef $2
  17925. -cat >>confdefs.h <<_ACEOF
  17926. -#define PACKAGE_VERSION "$PACKAGE_VERSION"
  17927. -_ACEOF
  17928. -
  17929. +/* Override any GCC internal prototype to avoid an error.
  17930. + Use char because int might match the return type of a GCC
  17931. + builtin and then its argument prototype would still apply. */
  17932. +#ifdef __cplusplus
  17933. +extern "C"
  17934. +#endif
  17935. +char $2 ();
  17936. +/* The GNU C library defines this for functions which it implements
  17937. + to always fail with ENOSYS. Some functions are actually named
  17938. + something starting with __ and the normal name is an alias. */
  17939. +#if defined __stub_$2 || defined __stub___$2
  17940. +choke me
  17941. +#endif
  17942. -cat >>confdefs.h <<_ACEOF
  17943. -#define PACKAGE_STRING "$PACKAGE_STRING"
  17944. +int
  17945. +main ()
  17946. +{
  17947. +return $2 ();
  17948. + ;
  17949. + return 0;
  17950. +}
  17951. _ACEOF
  17952. -
  17953. -
  17954. -cat >>confdefs.h <<_ACEOF
  17955. -#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  17956. +if ac_fn_c_try_link "$LINENO"; then :
  17957. + eval "$3=yes"
  17958. +else
  17959. + eval "$3=no"
  17960. +fi
  17961. +rm -f core conftest.err conftest.$ac_objext \
  17962. + conftest$ac_exeext conftest.$ac_ext
  17963. +fi
  17964. +eval ac_res=\$$3
  17965. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  17966. +$as_echo "$ac_res" >&6; }
  17967. + eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  17968. +
  17969. +} # ac_fn_c_check_func
  17970. +
  17971. +# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
  17972. +# -------------------------------------------------------
  17973. +# Tests whether HEADER exists, giving a warning if it cannot be compiled using
  17974. +# the include files in INCLUDES and setting the cache variable VAR
  17975. +# accordingly.
  17976. +ac_fn_c_check_header_mongrel ()
  17977. +{
  17978. + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  17979. + if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  17980. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  17981. +$as_echo_n "checking for $2... " >&6; }
  17982. +if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  17983. + $as_echo_n "(cached) " >&6
  17984. +fi
  17985. +eval ac_res=\$$3
  17986. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  17987. +$as_echo "$ac_res" >&6; }
  17988. +else
  17989. + # Is the header compilable?
  17990. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  17991. +$as_echo_n "checking $2 usability... " >&6; }
  17992. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17993. +/* end confdefs.h. */
  17994. +$4
  17995. +#include <$2>
  17996. _ACEOF
  17997. -
  17998. -
  17999. -# Let the site file select an alternate cache file if it wants to.
  18000. -# Prefer explicitly selected file to automatically selected ones.
  18001. -if test -n "$CONFIG_SITE"; then
  18002. - set x "$CONFIG_SITE"
  18003. -elif test "x$prefix" != xNONE; then
  18004. - set x "$prefix/share/config.site" "$prefix/etc/config.site"
  18005. +if ac_fn_c_try_compile "$LINENO"; then :
  18006. + ac_header_compiler=yes
  18007. else
  18008. - set x "$ac_default_prefix/share/config.site" \
  18009. - "$ac_default_prefix/etc/config.site"
  18010. + ac_header_compiler=no
  18011. fi
  18012. -shift
  18013. -for ac_site_file
  18014. -do
  18015. - if test -r "$ac_site_file"; then
  18016. - { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
  18017. -echo "$as_me: loading site script $ac_site_file" >&6;}
  18018. - sed 's/^/| /' "$ac_site_file" >&5
  18019. - . "$ac_site_file"
  18020. - fi
  18021. -done
  18022. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18023. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  18024. +$as_echo "$ac_header_compiler" >&6; }
  18025. -if test -r "$cache_file"; then
  18026. - # Some versions of bash will fail to source /dev/null (special
  18027. - # files actually), so we avoid doing that.
  18028. - if test -f "$cache_file"; then
  18029. - { echo "$as_me:$LINENO: loading cache $cache_file" >&5
  18030. -echo "$as_me: loading cache $cache_file" >&6;}
  18031. - case $cache_file in
  18032. - [\\/]* | ?:[\\/]* ) . "$cache_file";;
  18033. - *) . "./$cache_file";;
  18034. - esac
  18035. - fi
  18036. +# Is the header present?
  18037. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  18038. +$as_echo_n "checking $2 presence... " >&6; }
  18039. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18040. +/* end confdefs.h. */
  18041. +#include <$2>
  18042. +_ACEOF
  18043. +if ac_fn_c_try_cpp "$LINENO"; then :
  18044. + ac_header_preproc=yes
  18045. else
  18046. - { echo "$as_me:$LINENO: creating cache $cache_file" >&5
  18047. -echo "$as_me: creating cache $cache_file" >&6;}
  18048. - >$cache_file
  18049. + ac_header_preproc=no
  18050. fi
  18051. +rm -f conftest.err conftest.$ac_ext
  18052. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  18053. +$as_echo "$ac_header_preproc" >&6; }
  18054. -# Check that the precious variables saved in the cache have kept the same
  18055. -# value.
  18056. -ac_cache_corrupted=false
  18057. -for ac_var in $ac_precious_vars; do
  18058. - eval ac_old_set=\$ac_cv_env_${ac_var}_set
  18059. - eval ac_new_set=\$ac_env_${ac_var}_set
  18060. - eval ac_old_val=\$ac_cv_env_${ac_var}_value
  18061. - eval ac_new_val=\$ac_env_${ac_var}_value
  18062. - case $ac_old_set,$ac_new_set in
  18063. - set,)
  18064. - { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  18065. -echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  18066. - ac_cache_corrupted=: ;;
  18067. - ,set)
  18068. - { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
  18069. -echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  18070. - ac_cache_corrupted=: ;;
  18071. - ,);;
  18072. - *)
  18073. - if test "x$ac_old_val" != "x$ac_new_val"; then
  18074. - { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
  18075. -echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  18076. - { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
  18077. -echo "$as_me: former value: $ac_old_val" >&2;}
  18078. - { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
  18079. -echo "$as_me: current value: $ac_new_val" >&2;}
  18080. - ac_cache_corrupted=:
  18081. - fi;;
  18082. - esac
  18083. - # Pass precious variables to config.status.
  18084. - if test "$ac_new_set" = set; then
  18085. - case $ac_new_val in
  18086. - *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  18087. - *) ac_arg=$ac_var=$ac_new_val ;;
  18088. - esac
  18089. - case " $ac_configure_args " in
  18090. - *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  18091. - *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  18092. - esac
  18093. - fi
  18094. -done
  18095. -if $ac_cache_corrupted; then
  18096. - { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
  18097. -echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  18098. - { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
  18099. -echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
  18100. - { (exit 1); exit 1; }; }
  18101. +# So? What about this header?
  18102. +case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
  18103. + yes:no: )
  18104. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  18105. +$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  18106. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  18107. +$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  18108. + ;;
  18109. + no:yes:* )
  18110. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  18111. +$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  18112. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
  18113. +$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
  18114. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  18115. +$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  18116. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
  18117. +$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
  18118. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  18119. +$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  18120. +( cat <<\_ASBOX
  18121. +## -------------------------------------- ##
  18122. +## Report this to nfsv4-wg@citi.umich.edu ##
  18123. +## -------------------------------------- ##
  18124. +_ASBOX
  18125. + ) | sed "s/^/$as_me: WARNING: /" >&2
  18126. + ;;
  18127. +esac
  18128. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  18129. +$as_echo_n "checking for $2... " >&6; }
  18130. +if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  18131. + $as_echo_n "(cached) " >&6
  18132. +else
  18133. + eval "$3=\$ac_header_compiler"
  18134. +fi
  18135. +eval ac_res=\$$3
  18136. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  18137. +$as_echo "$ac_res" >&6; }
  18138. fi
  18139. + eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  18140. +} # ac_fn_c_check_header_mongrel
  18141. +# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
  18142. +# -------------------------------------------
  18143. +# Tests whether TYPE exists after having included INCLUDES, setting cache
  18144. +# variable VAR accordingly.
  18145. +ac_fn_c_check_type ()
  18146. +{
  18147. + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  18148. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  18149. +$as_echo_n "checking for $2... " >&6; }
  18150. +if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  18151. + $as_echo_n "(cached) " >&6
  18152. +else
  18153. + eval "$3=no"
  18154. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18155. +/* end confdefs.h. */
  18156. +$4
  18157. +int
  18158. +main ()
  18159. +{
  18160. +if (sizeof ($2))
  18161. + return 0;
  18162. + ;
  18163. + return 0;
  18164. +}
  18165. +_ACEOF
  18166. +if ac_fn_c_try_compile "$LINENO"; then :
  18167. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18168. +/* end confdefs.h. */
  18169. +$4
  18170. +int
  18171. +main ()
  18172. +{
  18173. +if (sizeof (($2)))
  18174. + return 0;
  18175. + ;
  18176. + return 0;
  18177. +}
  18178. +_ACEOF
  18179. +if ac_fn_c_try_compile "$LINENO"; then :
  18180. +else
  18181. + eval "$3=yes"
  18182. +fi
  18183. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18184. +fi
  18185. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18186. +fi
  18187. +eval ac_res=\$$3
  18188. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  18189. +$as_echo "$ac_res" >&6; }
  18190. + eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  18191. +} # ac_fn_c_check_type
  18192. +# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
  18193. +# --------------------------------------------
  18194. +# Tries to find the compile-time value of EXPR in a program that includes
  18195. +# INCLUDES, setting VAR accordingly. Returns whether the value could be
  18196. +# computed
  18197. +ac_fn_c_compute_int ()
  18198. +{
  18199. + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  18200. + if test "$cross_compiling" = yes; then
  18201. + # Depending upon the size, compute the lo and hi bounds.
  18202. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18203. +/* end confdefs.h. */
  18204. +$4
  18205. +int
  18206. +main ()
  18207. +{
  18208. +static int test_array [1 - 2 * !(($2) >= 0)];
  18209. +test_array [0] = 0
  18210. + ;
  18211. + return 0;
  18212. +}
  18213. +_ACEOF
  18214. +if ac_fn_c_try_compile "$LINENO"; then :
  18215. + ac_lo=0 ac_mid=0
  18216. + while :; do
  18217. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18218. +/* end confdefs.h. */
  18219. +$4
  18220. +int
  18221. +main ()
  18222. +{
  18223. +static int test_array [1 - 2 * !(($2) <= $ac_mid)];
  18224. +test_array [0] = 0
  18225. + ;
  18226. + return 0;
  18227. +}
  18228. +_ACEOF
  18229. +if ac_fn_c_try_compile "$LINENO"; then :
  18230. + ac_hi=$ac_mid; break
  18231. +else
  18232. + as_fn_arith $ac_mid + 1 && ac_lo=$as_val
  18233. + if test $ac_lo -le $ac_mid; then
  18234. + ac_lo= ac_hi=
  18235. + break
  18236. + fi
  18237. + as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
  18238. +fi
  18239. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18240. + done
  18241. +else
  18242. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18243. +/* end confdefs.h. */
  18244. +$4
  18245. +int
  18246. +main ()
  18247. +{
  18248. +static int test_array [1 - 2 * !(($2) < 0)];
  18249. +test_array [0] = 0
  18250. + ;
  18251. + return 0;
  18252. +}
  18253. +_ACEOF
  18254. +if ac_fn_c_try_compile "$LINENO"; then :
  18255. + ac_hi=-1 ac_mid=-1
  18256. + while :; do
  18257. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18258. +/* end confdefs.h. */
  18259. +$4
  18260. +int
  18261. +main ()
  18262. +{
  18263. +static int test_array [1 - 2 * !(($2) >= $ac_mid)];
  18264. +test_array [0] = 0
  18265. + ;
  18266. + return 0;
  18267. +}
  18268. +_ACEOF
  18269. +if ac_fn_c_try_compile "$LINENO"; then :
  18270. + ac_lo=$ac_mid; break
  18271. +else
  18272. + as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
  18273. + if test $ac_mid -le $ac_hi; then
  18274. + ac_lo= ac_hi=
  18275. + break
  18276. + fi
  18277. + as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
  18278. +fi
  18279. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18280. + done
  18281. +else
  18282. + ac_lo= ac_hi=
  18283. +fi
  18284. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18285. +fi
  18286. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18287. +# Binary search between lo and hi bounds.
  18288. +while test "x$ac_lo" != "x$ac_hi"; do
  18289. + as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
  18290. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18291. +/* end confdefs.h. */
  18292. +$4
  18293. +int
  18294. +main ()
  18295. +{
  18296. +static int test_array [1 - 2 * !(($2) <= $ac_mid)];
  18297. +test_array [0] = 0
  18298. + ;
  18299. + return 0;
  18300. +}
  18301. +_ACEOF
  18302. +if ac_fn_c_try_compile "$LINENO"; then :
  18303. + ac_hi=$ac_mid
  18304. +else
  18305. + as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
  18306. +fi
  18307. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18308. +done
  18309. +case $ac_lo in #((
  18310. +?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
  18311. +'') ac_retval=1 ;;
  18312. +esac
  18313. + else
  18314. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18315. +/* end confdefs.h. */
  18316. +$4
  18317. +static long int longval () { return $2; }
  18318. +static unsigned long int ulongval () { return $2; }
  18319. +#include <stdio.h>
  18320. +#include <stdlib.h>
  18321. +int
  18322. +main ()
  18323. +{
  18324. + FILE *f = fopen ("conftest.val", "w");
  18325. + if (! f)
  18326. + return 1;
  18327. + if (($2) < 0)
  18328. + {
  18329. + long int i = longval ();
  18330. + if (i != ($2))
  18331. + return 1;
  18332. + fprintf (f, "%ld", i);
  18333. + }
  18334. + else
  18335. + {
  18336. + unsigned long int i = ulongval ();
  18337. + if (i != ($2))
  18338. + return 1;
  18339. + fprintf (f, "%lu", i);
  18340. + }
  18341. + /* Do not output a trailing newline, as this causes \r\n confusion
  18342. + on some platforms. */
  18343. + return ferror (f) || fclose (f) != 0;
  18344. + ;
  18345. + return 0;
  18346. +}
  18347. +_ACEOF
  18348. +if ac_fn_c_try_run "$LINENO"; then :
  18349. + echo >>conftest.val; read $3 <conftest.val; ac_retval=0
  18350. +else
  18351. + ac_retval=1
  18352. +fi
  18353. +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  18354. + conftest.$ac_objext conftest.beam conftest.$ac_ext
  18355. +rm -f conftest.val
  18356. + fi
  18357. + eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  18358. + as_fn_set_status $ac_retval
  18359. +} # ac_fn_c_compute_int
  18360. +cat >config.log <<_ACEOF
  18361. +This file contains any messages produced by compilers while
  18362. +running configure, to aid debugging if configure makes a mistake.
  18363. +It was created by libgssglue $as_me 0.1, which was
  18364. +generated by GNU Autoconf 2.65. Invocation command line was
  18365. + $ $0 $@
  18366. +_ACEOF
  18367. +exec 5>>config.log
  18368. +{
  18369. +cat <<_ASUNAME
  18370. +## --------- ##
  18371. +## Platform. ##
  18372. +## --------- ##
  18373. +hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  18374. +uname -m = `(uname -m) 2>/dev/null || echo unknown`
  18375. +uname -r = `(uname -r) 2>/dev/null || echo unknown`
  18376. +uname -s = `(uname -s) 2>/dev/null || echo unknown`
  18377. +uname -v = `(uname -v) 2>/dev/null || echo unknown`
  18378. +/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  18379. +/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  18380. +/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  18381. +/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  18382. +/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  18383. +/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  18384. +/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  18385. +/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  18386. +/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  18387. +
  18388. +_ASUNAME
  18389. +
  18390. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  18391. +for as_dir in $PATH
  18392. +do
  18393. + IFS=$as_save_IFS
  18394. + test -z "$as_dir" && as_dir=.
  18395. + $as_echo "PATH: $as_dir"
  18396. + done
  18397. +IFS=$as_save_IFS
  18398. +
  18399. +} >&5
  18400. +
  18401. +cat >&5 <<_ACEOF
  18402. +
  18403. +
  18404. +## ----------- ##
  18405. +## Core tests. ##
  18406. +## ----------- ##
  18407. +
  18408. +_ACEOF
  18409. +
  18410. +
  18411. +# Keep a trace of the command line.
  18412. +# Strip out --no-create and --no-recursion so they do not pile up.
  18413. +# Strip out --silent because we don't want to record it for future runs.
  18414. +# Also quote any args containing shell meta-characters.
  18415. +# Make two passes to allow for proper duplicate-argument suppression.
  18416. +ac_configure_args=
  18417. +ac_configure_args0=
  18418. +ac_configure_args1=
  18419. +ac_must_keep_next=false
  18420. +for ac_pass in 1 2
  18421. +do
  18422. + for ac_arg
  18423. + do
  18424. + case $ac_arg in
  18425. + -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  18426. + -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  18427. + | -silent | --silent | --silen | --sile | --sil)
  18428. + continue ;;
  18429. + *\'*)
  18430. + ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  18431. + esac
  18432. + case $ac_pass in
  18433. + 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  18434. + 2)
  18435. + as_fn_append ac_configure_args1 " '$ac_arg'"
  18436. + if test $ac_must_keep_next = true; then
  18437. + ac_must_keep_next=false # Got value, back to normal.
  18438. + else
  18439. + case $ac_arg in
  18440. + *=* | --config-cache | -C | -disable-* | --disable-* \
  18441. + | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  18442. + | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  18443. + | -with-* | --with-* | -without-* | --without-* | --x)
  18444. + case "$ac_configure_args0 " in
  18445. + "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  18446. + esac
  18447. + ;;
  18448. + -* ) ac_must_keep_next=true ;;
  18449. + esac
  18450. + fi
  18451. + as_fn_append ac_configure_args " '$ac_arg'"
  18452. + ;;
  18453. + esac
  18454. + done
  18455. +done
  18456. +{ ac_configure_args0=; unset ac_configure_args0;}
  18457. +{ ac_configure_args1=; unset ac_configure_args1;}
  18458. +
  18459. +# When interrupted or exit'd, cleanup temporary files, and complete
  18460. +# config.log. We remove comments because anyway the quotes in there
  18461. +# would cause problems or look ugly.
  18462. +# WARNING: Use '\'' to represent an apostrophe within the trap.
  18463. +# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  18464. +trap 'exit_status=$?
  18465. + # Save into config.log some information that might help in debugging.
  18466. + {
  18467. + echo
  18468. +
  18469. + cat <<\_ASBOX
  18470. +## ---------------- ##
  18471. +## Cache variables. ##
  18472. +## ---------------- ##
  18473. +_ASBOX
  18474. + echo
  18475. + # The following way of writing the cache mishandles newlines in values,
  18476. +(
  18477. + for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  18478. + eval ac_val=\$$ac_var
  18479. + case $ac_val in #(
  18480. + *${as_nl}*)
  18481. + case $ac_var in #(
  18482. + *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  18483. +$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  18484. + esac
  18485. + case $ac_var in #(
  18486. + _ | IFS | as_nl) ;; #(
  18487. + BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  18488. + *) { eval $ac_var=; unset $ac_var;} ;;
  18489. + esac ;;
  18490. + esac
  18491. + done
  18492. + (set) 2>&1 |
  18493. + case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  18494. + *${as_nl}ac_space=\ *)
  18495. + sed -n \
  18496. + "s/'\''/'\''\\\\'\'''\''/g;
  18497. + s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  18498. + ;; #(
  18499. + *)
  18500. + sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  18501. + ;;
  18502. + esac |
  18503. + sort
  18504. +)
  18505. + echo
  18506. +
  18507. + cat <<\_ASBOX
  18508. +## ----------------- ##
  18509. +## Output variables. ##
  18510. +## ----------------- ##
  18511. +_ASBOX
  18512. + echo
  18513. + for ac_var in $ac_subst_vars
  18514. + do
  18515. + eval ac_val=\$$ac_var
  18516. + case $ac_val in
  18517. + *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  18518. + esac
  18519. + $as_echo "$ac_var='\''$ac_val'\''"
  18520. + done | sort
  18521. + echo
  18522. +
  18523. + if test -n "$ac_subst_files"; then
  18524. + cat <<\_ASBOX
  18525. +## ------------------- ##
  18526. +## File substitutions. ##
  18527. +## ------------------- ##
  18528. +_ASBOX
  18529. + echo
  18530. + for ac_var in $ac_subst_files
  18531. + do
  18532. + eval ac_val=\$$ac_var
  18533. + case $ac_val in
  18534. + *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  18535. + esac
  18536. + $as_echo "$ac_var='\''$ac_val'\''"
  18537. + done | sort
  18538. + echo
  18539. + fi
  18540. +
  18541. + if test -s confdefs.h; then
  18542. + cat <<\_ASBOX
  18543. +## ----------- ##
  18544. +## confdefs.h. ##
  18545. +## ----------- ##
  18546. +_ASBOX
  18547. + echo
  18548. + cat confdefs.h
  18549. + echo
  18550. + fi
  18551. + test "$ac_signal" != 0 &&
  18552. + $as_echo "$as_me: caught signal $ac_signal"
  18553. + $as_echo "$as_me: exit $exit_status"
  18554. + } >&5
  18555. + rm -f core *.core core.conftest.* &&
  18556. + rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  18557. + exit $exit_status
  18558. +' 0
  18559. +for ac_signal in 1 2 13 15; do
  18560. + trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  18561. +done
  18562. +ac_signal=0
  18563. +
  18564. +# confdefs.h avoids OS command line length limits that DEFS can exceed.
  18565. +rm -f -r conftest* confdefs.h
  18566. +
  18567. +$as_echo "/* confdefs.h */" > confdefs.h
  18568. +
  18569. +# Predefined preprocessor variables.
  18570. +
  18571. +cat >>confdefs.h <<_ACEOF
  18572. +#define PACKAGE_NAME "$PACKAGE_NAME"
  18573. +_ACEOF
  18574. +
  18575. +cat >>confdefs.h <<_ACEOF
  18576. +#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  18577. +_ACEOF
  18578. +
  18579. +cat >>confdefs.h <<_ACEOF
  18580. +#define PACKAGE_VERSION "$PACKAGE_VERSION"
  18581. +_ACEOF
  18582. +
  18583. +cat >>confdefs.h <<_ACEOF
  18584. +#define PACKAGE_STRING "$PACKAGE_STRING"
  18585. +_ACEOF
  18586. +
  18587. +cat >>confdefs.h <<_ACEOF
  18588. +#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  18589. +_ACEOF
  18590. +
  18591. +cat >>confdefs.h <<_ACEOF
  18592. +#define PACKAGE_URL "$PACKAGE_URL"
  18593. +_ACEOF
  18594. +# Let the site file select an alternate cache file if it wants to.
  18595. +# Prefer an explicitly selected file to automatically selected ones.
  18596. +ac_site_file1=NONE
  18597. +ac_site_file2=NONE
  18598. +if test -n "$CONFIG_SITE"; then
  18599. + ac_site_file1=$CONFIG_SITE
  18600. +elif test "x$prefix" != xNONE; then
  18601. + ac_site_file1=$prefix/share/config.site
  18602. + ac_site_file2=$prefix/etc/config.site
  18603. +else
  18604. + ac_site_file1=$ac_default_prefix/share/config.site
  18605. + ac_site_file2=$ac_default_prefix/etc/config.site
  18606. +fi
  18607. +for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  18608. +do
  18609. + test "x$ac_site_file" = xNONE && continue
  18610. + if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
  18611. + { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  18612. +$as_echo "$as_me: loading site script $ac_site_file" >&6;}
  18613. + sed 's/^/| /' "$ac_site_file" >&5
  18614. + . "$ac_site_file"
  18615. + fi
  18616. +done
  18617. +if test -r "$cache_file"; then
  18618. + # Some versions of bash will fail to source /dev/null (special files
  18619. + # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  18620. + if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  18621. + { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  18622. +$as_echo "$as_me: loading cache $cache_file" >&6;}
  18623. + case $cache_file in
  18624. + [\\/]* | ?:[\\/]* ) . "$cache_file";;
  18625. + *) . "./$cache_file";;
  18626. + esac
  18627. + fi
  18628. +else
  18629. + { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  18630. +$as_echo "$as_me: creating cache $cache_file" >&6;}
  18631. + >$cache_file
  18632. +fi
  18633. +# Check that the precious variables saved in the cache have kept the same
  18634. +# value.
  18635. +ac_cache_corrupted=false
  18636. +for ac_var in $ac_precious_vars; do
  18637. + eval ac_old_set=\$ac_cv_env_${ac_var}_set
  18638. + eval ac_new_set=\$ac_env_${ac_var}_set
  18639. + eval ac_old_val=\$ac_cv_env_${ac_var}_value
  18640. + eval ac_new_val=\$ac_env_${ac_var}_value
  18641. + case $ac_old_set,$ac_new_set in
  18642. + set,)
  18643. + { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  18644. +$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  18645. + ac_cache_corrupted=: ;;
  18646. + ,set)
  18647. + { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  18648. +$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  18649. + ac_cache_corrupted=: ;;
  18650. + ,);;
  18651. + *)
  18652. + if test "x$ac_old_val" != "x$ac_new_val"; then
  18653. + # differences in whitespace do not lead to failure.
  18654. + ac_old_val_w=`echo x $ac_old_val`
  18655. + ac_new_val_w=`echo x $ac_new_val`
  18656. + if test "$ac_old_val_w" != "$ac_new_val_w"; then
  18657. + { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  18658. +$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  18659. + ac_cache_corrupted=:
  18660. + else
  18661. + { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  18662. +$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  18663. + eval $ac_var=\$ac_old_val
  18664. + fi
  18665. + { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  18666. +$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  18667. + { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  18668. +$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  18669. + fi;;
  18670. + esac
  18671. + # Pass precious variables to config.status.
  18672. + if test "$ac_new_set" = set; then
  18673. + case $ac_new_val in
  18674. + *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  18675. + *) ac_arg=$ac_var=$ac_new_val ;;
  18676. + esac
  18677. + case " $ac_configure_args " in
  18678. + *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  18679. + *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  18680. + esac
  18681. + fi
  18682. +done
  18683. +if $ac_cache_corrupted; then
  18684. + { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  18685. +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  18686. + { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  18687. +$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  18688. + as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  18689. +fi
  18690. +## -------------------- ##
  18691. +## Main body of script. ##
  18692. +## -------------------- ##
  18693. ac_ext=c
  18694. ac_cpp='$CPP $CPPFLAGS'
  18695. @@ -1913,27 +2533,20 @@
  18696. -am__api_version="1.9"
  18697. +am__api_version='1.11'
  18698. +
  18699. ac_aux_dir=
  18700. for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
  18701. - if test -f "$ac_dir/install-sh"; then
  18702. - ac_aux_dir=$ac_dir
  18703. - ac_install_sh="$ac_aux_dir/install-sh -c"
  18704. - break
  18705. - elif test -f "$ac_dir/install.sh"; then
  18706. - ac_aux_dir=$ac_dir
  18707. - ac_install_sh="$ac_aux_dir/install.sh -c"
  18708. - break
  18709. - elif test -f "$ac_dir/shtool"; then
  18710. - ac_aux_dir=$ac_dir
  18711. - ac_install_sh="$ac_aux_dir/shtool install -c"
  18712. - break
  18713. - fi
  18714. + for ac_t in install-sh install.sh shtool; do
  18715. + if test -f "$ac_dir/$ac_t"; then
  18716. + ac_aux_dir=$ac_dir
  18717. + ac_install_sh="$ac_aux_dir/$ac_t -c"
  18718. + break 2
  18719. + fi
  18720. + done
  18721. done
  18722. if test -z "$ac_aux_dir"; then
  18723. - { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
  18724. -echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
  18725. - { (exit 1); exit 1; }; }
  18726. + as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
  18727. fi
  18728. # These three variables are undocumented and unsupported,
  18729. @@ -1958,22 +2571,23 @@
  18730. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  18731. # OS/2's system install, which has a completely different semantic
  18732. # ./install, which can be erroneously created by make from ./install.sh.
  18733. -{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
  18734. -echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
  18735. +# Reject install programs that cannot install multiple files.
  18736. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  18737. +$as_echo_n "checking for a BSD-compatible install... " >&6; }
  18738. if test -z "$INSTALL"; then
  18739. -if test "${ac_cv_path_install+set}" = set; then
  18740. - echo $ECHO_N "(cached) $ECHO_C" >&6
  18741. +if test "${ac_cv_path_install+set}" = set; then :
  18742. + $as_echo_n "(cached) " >&6
  18743. else
  18744. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  18745. for as_dir in $PATH
  18746. do
  18747. IFS=$as_save_IFS
  18748. test -z "$as_dir" && as_dir=.
  18749. - # Account for people who put trailing slashes in PATH elements.
  18750. -case $as_dir/ in
  18751. - ./ | .// | /cC/* | \
  18752. + # Account for people who put trailing slashes in PATH elements.
  18753. +case $as_dir/ in #((
  18754. + ./ | .// | /[cC]/* | \
  18755. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  18756. - ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
  18757. + ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  18758. /usr/ucb/* ) ;;
  18759. *)
  18760. # OSF1 and SCO ODT 3.0 have their own names for install.
  18761. @@ -1981,7 +2595,7 @@
  18762. # by default.
  18763. for ac_prog in ginstall scoinst install; do
  18764. for ac_exec_ext in '' $ac_executable_extensions; do
  18765. - if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
  18766. + if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
  18767. if test $ac_prog = install &&
  18768. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  18769. # AIX install. It has an incompatible calling convention.
  18770. @@ -1991,17 +2605,29 @@
  18771. # program-specific install script used by HP pwplus--don't use.
  18772. :
  18773. else
  18774. - ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  18775. - break 3
  18776. + rm -rf conftest.one conftest.two conftest.dir
  18777. + echo one > conftest.one
  18778. + echo two > conftest.two
  18779. + mkdir conftest.dir
  18780. + if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  18781. + test -s conftest.one && test -s conftest.two &&
  18782. + test -s conftest.dir/conftest.one &&
  18783. + test -s conftest.dir/conftest.two
  18784. + then
  18785. + ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  18786. + break 3
  18787. + fi
  18788. fi
  18789. fi
  18790. done
  18791. done
  18792. ;;
  18793. esac
  18794. -done
  18795. +
  18796. + done
  18797. IFS=$as_save_IFS
  18798. +rm -rf conftest.one conftest.two conftest.dir
  18799. fi
  18800. if test "${ac_cv_path_install+set}" = set; then
  18801. @@ -2014,8 +2640,8 @@
  18802. INSTALL=$ac_install_sh
  18803. fi
  18804. fi
  18805. -{ echo "$as_me:$LINENO: result: $INSTALL" >&5
  18806. -echo "${ECHO_T}$INSTALL" >&6; }
  18807. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  18808. +$as_echo "$INSTALL" >&6; }
  18809. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  18810. # It thinks the first close brace ends the variable substitution.
  18811. @@ -2025,21 +2651,34 @@
  18812. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  18813. -{ echo "$as_me:$LINENO: checking whether build environment is sane" >&5
  18814. -echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
  18815. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
  18816. +$as_echo_n "checking whether build environment is sane... " >&6; }
  18817. # Just in case
  18818. sleep 1
  18819. echo timestamp > conftest.file
  18820. -# Do `set' in a subshell so we don't clobber the current shell's
  18821. +# Reject unsafe characters in $srcdir or the absolute working directory
  18822. +# name. Accept space and tab only in the latter.
  18823. +am_lf='
  18824. +'
  18825. +case `pwd` in
  18826. + *[\\\"\#\$\&\'\`$am_lf]*)
  18827. + as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
  18828. +esac
  18829. +case $srcdir in
  18830. + *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
  18831. + as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
  18832. +esac
  18833. +
  18834. +# Do `set' in a subshell so we don't clobber the current shell's
  18835. # arguments. Must try -L first in case configure is actually a
  18836. # symlink; some systems play weird games with the mod time of symlinks
  18837. # (eg FreeBSD returns the mod time of the symlink's containing
  18838. # directory).
  18839. if (
  18840. - set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
  18841. + set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
  18842. if test "$*" = "X"; then
  18843. # -L didn't work.
  18844. - set X `ls -t $srcdir/configure conftest.file`
  18845. + set X `ls -t "$srcdir/configure" conftest.file`
  18846. fi
  18847. rm -f conftest.file
  18848. if test "$*" != "X $srcdir/configure conftest.file" \
  18849. @@ -2049,11 +2688,8 @@
  18850. # if, for instance, CONFIG_SHELL is bash and it inherits a
  18851. # broken ls alias from the environment. This has actually
  18852. # happened. Such a system could not be considered "sane".
  18853. - { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
  18854. -alias in your environment" >&5
  18855. -echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
  18856. -alias in your environment" >&2;}
  18857. - { (exit 1); exit 1; }; }
  18858. + as_fn_error "ls -t appears to fail. Make sure there is not a broken
  18859. +alias in your environment" "$LINENO" 5
  18860. fi
  18861. test "$2" = conftest.file
  18862. @@ -2062,81 +2698,206 @@
  18863. # Ok.
  18864. :
  18865. else
  18866. - { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
  18867. -Check your system clock" >&5
  18868. -echo "$as_me: error: newly created file is older than distributed files!
  18869. -Check your system clock" >&2;}
  18870. - { (exit 1); exit 1; }; }
  18871. + as_fn_error "newly created file is older than distributed files!
  18872. +Check your system clock" "$LINENO" 5
  18873. fi
  18874. -{ echo "$as_me:$LINENO: result: yes" >&5
  18875. -echo "${ECHO_T}yes" >&6; }
  18876. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  18877. +$as_echo "yes" >&6; }
  18878. test "$program_prefix" != NONE &&
  18879. program_transform_name="s&^&$program_prefix&;$program_transform_name"
  18880. # Use a double $ so make ignores it.
  18881. test "$program_suffix" != NONE &&
  18882. program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  18883. -# Double any \ or $. echo might interpret backslashes.
  18884. +# Double any \ or $.
  18885. # By default was `s,x,x', remove it if useless.
  18886. -cat <<\_ACEOF >conftest.sed
  18887. -s/[\\$]/&&/g;s/;s,x,x,$//
  18888. -_ACEOF
  18889. -program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
  18890. -rm -f conftest.sed
  18891. +ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
  18892. +program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
  18893. # expand $ac_aux_dir to an absolute path
  18894. am_aux_dir=`cd $ac_aux_dir && pwd`
  18895. -test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
  18896. +if test x"${MISSING+set}" != xset; then
  18897. + case $am_aux_dir in
  18898. + *\ * | *\ *)
  18899. + MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
  18900. + *)
  18901. + MISSING="\${SHELL} $am_aux_dir/missing" ;;
  18902. + esac
  18903. +fi
  18904. # Use eval to expand $SHELL
  18905. if eval "$MISSING --run true"; then
  18906. am_missing_run="$MISSING --run "
  18907. else
  18908. am_missing_run=
  18909. - { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
  18910. -echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
  18911. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
  18912. +$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
  18913. fi
  18914. -if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
  18915. - # We used to keeping the `.' as first argument, in order to
  18916. - # allow $(mkdir_p) to be used without argument. As in
  18917. - # $(mkdir_p) $(somedir)
  18918. - # where $(somedir) is conditionally defined. However this is wrong
  18919. - # for two reasons:
  18920. - # 1. if the package is installed by a user who cannot write `.'
  18921. - # make install will fail,
  18922. - # 2. the above comment should most certainly read
  18923. - # $(mkdir_p) $(DESTDIR)$(somedir)
  18924. - # so it does not work when $(somedir) is undefined and
  18925. - # $(DESTDIR) is not.
  18926. - # To support the latter case, we have to write
  18927. - # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
  18928. - # so the `.' trick is pointless.
  18929. - mkdir_p='mkdir -p --'
  18930. -else
  18931. - # On NextStep and OpenStep, the `mkdir' command does not
  18932. - # recognize any option. It will interpret all options as
  18933. - # directories to create, and then abort because `.' already
  18934. - # exists.
  18935. - for d in ./-p ./--version;
  18936. - do
  18937. - test -d $d && rmdir $d
  18938. +if test x"${install_sh}" != xset; then
  18939. + case $am_aux_dir in
  18940. + *\ * | *\ *)
  18941. + install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
  18942. + *)
  18943. + install_sh="\${SHELL} $am_aux_dir/install-sh"
  18944. + esac
  18945. +fi
  18946. +
  18947. +# Installed binaries are usually stripped using `strip' when the user
  18948. +# run `make install-strip'. However `strip' might not be the right
  18949. +# tool to use in cross-compilation environments, therefore Automake
  18950. +# will honor the `STRIP' environment variable to overrule this program.
  18951. +if test "$cross_compiling" != no; then
  18952. + if test -n "$ac_tool_prefix"; then
  18953. + # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  18954. +set dummy ${ac_tool_prefix}strip; ac_word=$2
  18955. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  18956. +$as_echo_n "checking for $ac_word... " >&6; }
  18957. +if test "${ac_cv_prog_STRIP+set}" = set; then :
  18958. + $as_echo_n "(cached) " >&6
  18959. +else
  18960. + if test -n "$STRIP"; then
  18961. + ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  18962. +else
  18963. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  18964. +for as_dir in $PATH
  18965. +do
  18966. + IFS=$as_save_IFS
  18967. + test -z "$as_dir" && as_dir=.
  18968. + for ac_exec_ext in '' $ac_executable_extensions; do
  18969. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  18970. + ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  18971. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  18972. + break 2
  18973. + fi
  18974. +done
  18975. + done
  18976. +IFS=$as_save_IFS
  18977. +
  18978. +fi
  18979. +fi
  18980. +STRIP=$ac_cv_prog_STRIP
  18981. +if test -n "$STRIP"; then
  18982. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  18983. +$as_echo "$STRIP" >&6; }
  18984. +else
  18985. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18986. +$as_echo "no" >&6; }
  18987. +fi
  18988. +
  18989. +
  18990. +fi
  18991. +if test -z "$ac_cv_prog_STRIP"; then
  18992. + ac_ct_STRIP=$STRIP
  18993. + # Extract the first word of "strip", so it can be a program name with args.
  18994. +set dummy strip; ac_word=$2
  18995. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  18996. +$as_echo_n "checking for $ac_word... " >&6; }
  18997. +if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
  18998. + $as_echo_n "(cached) " >&6
  18999. +else
  19000. + if test -n "$ac_ct_STRIP"; then
  19001. + ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  19002. +else
  19003. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  19004. +for as_dir in $PATH
  19005. +do
  19006. + IFS=$as_save_IFS
  19007. + test -z "$as_dir" && as_dir=.
  19008. + for ac_exec_ext in '' $ac_executable_extensions; do
  19009. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  19010. + ac_cv_prog_ac_ct_STRIP="strip"
  19011. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  19012. + break 2
  19013. + fi
  19014. +done
  19015. + done
  19016. +IFS=$as_save_IFS
  19017. +
  19018. +fi
  19019. +fi
  19020. +ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  19021. +if test -n "$ac_ct_STRIP"; then
  19022. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  19023. +$as_echo "$ac_ct_STRIP" >&6; }
  19024. +else
  19025. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19026. +$as_echo "no" >&6; }
  19027. +fi
  19028. +
  19029. + if test "x$ac_ct_STRIP" = x; then
  19030. + STRIP=":"
  19031. + else
  19032. + case $cross_compiling:$ac_tool_warned in
  19033. +yes:)
  19034. +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  19035. +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  19036. +ac_tool_warned=yes ;;
  19037. +esac
  19038. + STRIP=$ac_ct_STRIP
  19039. + fi
  19040. +else
  19041. + STRIP="$ac_cv_prog_STRIP"
  19042. +fi
  19043. +
  19044. +fi
  19045. +INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  19046. +
  19047. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
  19048. +$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
  19049. +if test -z "$MKDIR_P"; then
  19050. + if test "${ac_cv_path_mkdir+set}" = set; then :
  19051. + $as_echo_n "(cached) " >&6
  19052. +else
  19053. + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  19054. +for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
  19055. +do
  19056. + IFS=$as_save_IFS
  19057. + test -z "$as_dir" && as_dir=.
  19058. + for ac_prog in mkdir gmkdir; do
  19059. + for ac_exec_ext in '' $ac_executable_extensions; do
  19060. + { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
  19061. + case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
  19062. + 'mkdir (GNU coreutils) '* | \
  19063. + 'mkdir (coreutils) '* | \
  19064. + 'mkdir (fileutils) '4.1*)
  19065. + ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
  19066. + break 3;;
  19067. + esac
  19068. + done
  19069. + done
  19070. done
  19071. - # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
  19072. - if test -f "$ac_aux_dir/mkinstalldirs"; then
  19073. - mkdir_p='$(mkinstalldirs)'
  19074. +IFS=$as_save_IFS
  19075. +
  19076. +fi
  19077. +
  19078. + test -d ./--version && rmdir ./--version
  19079. + if test "${ac_cv_path_mkdir+set}" = set; then
  19080. + MKDIR_P="$ac_cv_path_mkdir -p"
  19081. else
  19082. - mkdir_p='$(install_sh) -d'
  19083. + # As a last resort, use the slow shell script. Don't cache a
  19084. + # value for MKDIR_P within a source directory, because that will
  19085. + # break other packages using the cache if that directory is
  19086. + # removed, or if the value is a relative name.
  19087. + MKDIR_P="$ac_install_sh -d"
  19088. fi
  19089. fi
  19090. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
  19091. +$as_echo "$MKDIR_P" >&6; }
  19092. +
  19093. +mkdir_p="$MKDIR_P"
  19094. +case $mkdir_p in
  19095. + [\\/$]* | ?:[\\/]*) ;;
  19096. + */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
  19097. +esac
  19098. for ac_prog in gawk mawk nawk awk
  19099. do
  19100. # Extract the first word of "$ac_prog", so it can be a program name with args.
  19101. set dummy $ac_prog; ac_word=$2
  19102. -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
  19103. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  19104. -if test "${ac_cv_prog_AWK+set}" = set; then
  19105. - echo $ECHO_N "(cached) $ECHO_C" >&6
  19106. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  19107. +$as_echo_n "checking for $ac_word... " >&6; }
  19108. +if test "${ac_cv_prog_AWK+set}" = set; then :
  19109. + $as_echo_n "(cached) " >&6
  19110. else
  19111. if test -n "$AWK"; then
  19112. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  19113. @@ -2146,36 +2907,37 @@
  19114. do
  19115. IFS=$as_save_IFS
  19116. test -z "$as_dir" && as_dir=.
  19117. - for ac_exec_ext in '' $ac_executable_extensions; do
  19118. - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
  19119. + for ac_exec_ext in '' $ac_executable_extensions; do
  19120. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  19121. ac_cv_prog_AWK="$ac_prog"
  19122. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  19123. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  19124. break 2
  19125. fi
  19126. done
  19127. -done
  19128. + done
  19129. IFS=$as_save_IFS
  19130. fi
  19131. fi
  19132. AWK=$ac_cv_prog_AWK
  19133. if test -n "$AWK"; then
  19134. - { echo "$as_me:$LINENO: result: $AWK" >&5
  19135. -echo "${ECHO_T}$AWK" >&6; }
  19136. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  19137. +$as_echo "$AWK" >&6; }
  19138. else
  19139. - { echo "$as_me:$LINENO: result: no" >&5
  19140. -echo "${ECHO_T}no" >&6; }
  19141. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19142. +$as_echo "no" >&6; }
  19143. fi
  19144. test -n "$AWK" && break
  19145. done
  19146. -{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  19147. -echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
  19148. -set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  19149. -if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
  19150. - echo $ECHO_N "(cached) $ECHO_C" >&6
  19151. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  19152. +$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  19153. +set x ${MAKE-make}
  19154. +ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  19155. +if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
  19156. + $as_echo_n "(cached) " >&6
  19157. else
  19158. cat >conftest.make <<\_ACEOF
  19159. SHELL = /bin/sh
  19160. @@ -2192,12 +2954,12 @@
  19161. rm -f conftest.make
  19162. fi
  19163. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  19164. - { echo "$as_me:$LINENO: result: yes" >&5
  19165. -echo "${ECHO_T}yes" >&6; }
  19166. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19167. +$as_echo "yes" >&6; }
  19168. SET_MAKE=
  19169. else
  19170. - { echo "$as_me:$LINENO: result: no" >&5
  19171. -echo "${ECHO_T}no" >&6; }
  19172. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19173. +$as_echo "no" >&6; }
  19174. SET_MAKE="MAKE=${MAKE-make}"
  19175. fi
  19176. @@ -2210,12 +2972,14 @@
  19177. fi
  19178. rmdir .tst 2>/dev/null
  19179. -# test to see if srcdir already configured
  19180. -if test "`cd $srcdir && pwd`" != "`pwd`" &&
  19181. - test -f $srcdir/config.status; then
  19182. - { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
  19183. -echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
  19184. - { (exit 1); exit 1; }; }
  19185. +if test "`cd $srcdir && pwd`" != "`pwd`"; then
  19186. + # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  19187. + # is not polluted with repeated "-I."
  19188. + am__isrc=' -I$(srcdir)'
  19189. + # test to see if srcdir already configured
  19190. + if test -f $srcdir/config.status; then
  19191. + as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
  19192. + fi
  19193. fi
  19194. # test whether we have cygpath
  19195. @@ -2258,227 +3022,66 @@
  19196. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  19197. -install_sh=${install_sh-"$am_aux_dir/install-sh"}
  19198. +# We need awk for the "check" target. The system "awk" is bad on
  19199. +# some platforms.
  19200. +# Always define AMTAR for backward compatibility.
  19201. -# Installed binaries are usually stripped using `strip' when the user
  19202. -# run `make install-strip'. However `strip' might not be the right
  19203. -# tool to use in cross-compilation environments, therefore Automake
  19204. -# will honor the `STRIP' environment variable to overrule this program.
  19205. -if test "$cross_compiling" != no; then
  19206. - if test -n "$ac_tool_prefix"; then
  19207. - # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  19208. -set dummy ${ac_tool_prefix}strip; ac_word=$2
  19209. -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
  19210. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  19211. -if test "${ac_cv_prog_STRIP+set}" = set; then
  19212. - echo $ECHO_N "(cached) $ECHO_C" >&6
  19213. -else
  19214. - if test -n "$STRIP"; then
  19215. - ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  19216. -else
  19217. -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  19218. -for as_dir in $PATH
  19219. -do
  19220. - IFS=$as_save_IFS
  19221. - test -z "$as_dir" && as_dir=.
  19222. - for ac_exec_ext in '' $ac_executable_extensions; do
  19223. - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
  19224. - ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  19225. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  19226. - break 2
  19227. - fi
  19228. -done
  19229. -done
  19230. -IFS=$as_save_IFS
  19231. +AMTAR=${AMTAR-"${am_missing_run}tar"}
  19232. -fi
  19233. -fi
  19234. -STRIP=$ac_cv_prog_STRIP
  19235. -if test -n "$STRIP"; then
  19236. - { echo "$as_me:$LINENO: result: $STRIP" >&5
  19237. -echo "${ECHO_T}$STRIP" >&6; }
  19238. -else
  19239. - { echo "$as_me:$LINENO: result: no" >&5
  19240. -echo "${ECHO_T}no" >&6; }
  19241. -fi
  19242. +am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
  19243. -fi
  19244. -if test -z "$ac_cv_prog_STRIP"; then
  19245. - ac_ct_STRIP=$STRIP
  19246. - # Extract the first word of "strip", so it can be a program name with args.
  19247. -set dummy strip; ac_word=$2
  19248. -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
  19249. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  19250. -if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
  19251. - echo $ECHO_N "(cached) $ECHO_C" >&6
  19252. -else
  19253. - if test -n "$ac_ct_STRIP"; then
  19254. - ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  19255. -else
  19256. -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  19257. -for as_dir in $PATH
  19258. -do
  19259. - IFS=$as_save_IFS
  19260. - test -z "$as_dir" && as_dir=.
  19261. - for ac_exec_ext in '' $ac_executable_extensions; do
  19262. - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
  19263. - ac_cv_prog_ac_ct_STRIP="strip"
  19264. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  19265. - break 2
  19266. - fi
  19267. -done
  19268. -done
  19269. -IFS=$as_save_IFS
  19270. -fi
  19271. -fi
  19272. -ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  19273. -if test -n "$ac_ct_STRIP"; then
  19274. - { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
  19275. -echo "${ECHO_T}$ac_ct_STRIP" >&6; }
  19276. -else
  19277. - { echo "$as_me:$LINENO: result: no" >&5
  19278. -echo "${ECHO_T}no" >&6; }
  19279. -fi
  19280. - if test "x$ac_ct_STRIP" = x; then
  19281. - STRIP=":"
  19282. - else
  19283. - case $cross_compiling:$ac_tool_warned in
  19284. -yes:)
  19285. -{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  19286. -whose name does not start with the host triplet. If you think this
  19287. -configuration is useful to you, please write to autoconf@gnu.org." >&5
  19288. -echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  19289. -whose name does not start with the host triplet. If you think this
  19290. -configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  19291. -ac_tool_warned=yes ;;
  19292. +
  19293. +case `pwd` in
  19294. + *\ * | *\ *)
  19295. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
  19296. +$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
  19297. esac
  19298. - STRIP=$ac_ct_STRIP
  19299. - fi
  19300. -else
  19301. - STRIP="$ac_cv_prog_STRIP"
  19302. -fi
  19303. -fi
  19304. -INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
  19305. -# We need awk for the "check" target. The system "awk" is bad on
  19306. -# some platforms.
  19307. -# Always define AMTAR for backward compatibility.
  19308. -AMTAR=${AMTAR-"${am_missing_run}tar"}
  19309. +macro_version='2.2.6b'
  19310. +macro_revision='1.3017'
  19311. -am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
  19312. -# Check whether --enable-shared was given.
  19313. -if test "${enable_shared+set}" = set; then
  19314. - enableval=$enable_shared; p=${PACKAGE-default}
  19315. - case $enableval in
  19316. - yes) enable_shared=yes ;;
  19317. - no) enable_shared=no ;;
  19318. - *)
  19319. - enable_shared=no
  19320. - # Look at the argument we got. We use all the common list separators.
  19321. - lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  19322. - for pkg in $enableval; do
  19323. - IFS="$lt_save_ifs"
  19324. - if test "X$pkg" = "X$p"; then
  19325. - enable_shared=yes
  19326. - fi
  19327. - done
  19328. - IFS="$lt_save_ifs"
  19329. - ;;
  19330. - esac
  19331. -else
  19332. - enable_shared=yes
  19333. -fi
  19334. -# Check whether --enable-static was given.
  19335. -if test "${enable_static+set}" = set; then
  19336. - enableval=$enable_static; p=${PACKAGE-default}
  19337. - case $enableval in
  19338. - yes) enable_static=yes ;;
  19339. - no) enable_static=no ;;
  19340. - *)
  19341. - enable_static=no
  19342. - # Look at the argument we got. We use all the common list separators.
  19343. - lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  19344. - for pkg in $enableval; do
  19345. - IFS="$lt_save_ifs"
  19346. - if test "X$pkg" = "X$p"; then
  19347. - enable_static=yes
  19348. - fi
  19349. - done
  19350. - IFS="$lt_save_ifs"
  19351. - ;;
  19352. - esac
  19353. -else
  19354. - enable_static=yes
  19355. -fi
  19356. -# Check whether --enable-fast-install was given.
  19357. -if test "${enable_fast_install+set}" = set; then
  19358. - enableval=$enable_fast_install; p=${PACKAGE-default}
  19359. - case $enableval in
  19360. - yes) enable_fast_install=yes ;;
  19361. - no) enable_fast_install=no ;;
  19362. - *)
  19363. - enable_fast_install=no
  19364. - # Look at the argument we got. We use all the common list separators.
  19365. - lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  19366. - for pkg in $enableval; do
  19367. - IFS="$lt_save_ifs"
  19368. - if test "X$pkg" = "X$p"; then
  19369. - enable_fast_install=yes
  19370. - fi
  19371. - done
  19372. - IFS="$lt_save_ifs"
  19373. - ;;
  19374. - esac
  19375. -else
  19376. - enable_fast_install=yes
  19377. -fi
  19378. +
  19379. +ltmain="$ac_aux_dir/ltmain.sh"
  19380. +
  19381. # Make sure we can run config.sub.
  19382. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  19383. - { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
  19384. -echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
  19385. - { (exit 1); exit 1; }; }
  19386. -
  19387. -{ echo "$as_me:$LINENO: checking build system type" >&5
  19388. -echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
  19389. -if test "${ac_cv_build+set}" = set; then
  19390. - echo $ECHO_N "(cached) $ECHO_C" >&6
  19391. + as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  19392. +
  19393. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  19394. +$as_echo_n "checking build system type... " >&6; }
  19395. +if test "${ac_cv_build+set}" = set; then :
  19396. + $as_echo_n "(cached) " >&6
  19397. else
  19398. ac_build_alias=$build_alias
  19399. test "x$ac_build_alias" = x &&
  19400. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  19401. test "x$ac_build_alias" = x &&
  19402. - { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
  19403. -echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
  19404. - { (exit 1); exit 1; }; }
  19405. + as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
  19406. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  19407. - { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
  19408. -echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
  19409. - { (exit 1); exit 1; }; }
  19410. + as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  19411. fi
  19412. -{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
  19413. -echo "${ECHO_T}$ac_cv_build" >&6; }
  19414. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  19415. +$as_echo "$ac_cv_build" >&6; }
  19416. case $ac_cv_build in
  19417. *-*-*) ;;
  19418. -*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
  19419. -echo "$as_me: error: invalid value of canonical build" >&2;}
  19420. - { (exit 1); exit 1; }; };;
  19421. +*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
  19422. esac
  19423. build=$ac_cv_build
  19424. ac_save_IFS=$IFS; IFS='-'
  19425. @@ -2494,28 +3097,24 @@
  19426. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  19427. -{ echo "$as_me:$LINENO: checking host system type" >&5
  19428. -echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
  19429. -if test "${ac_cv_host+set}" = set; then
  19430. - echo $ECHO_N "(cached) $ECHO_C" >&6
  19431. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  19432. +$as_echo_n "checking host system type... " >&6; }
  19433. +if test "${ac_cv_host+set}" = set; then :
  19434. + $as_echo_n "(cached) " >&6
  19435. else
  19436. if test "x$host_alias" = x; then
  19437. ac_cv_host=$ac_cv_build
  19438. else
  19439. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  19440. - { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
  19441. -echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
  19442. - { (exit 1); exit 1; }; }
  19443. + as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  19444. fi
  19445. fi
  19446. -{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
  19447. -echo "${ECHO_T}$ac_cv_host" >&6; }
  19448. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  19449. +$as_echo "$ac_cv_host" >&6; }
  19450. case $ac_cv_host in
  19451. *-*-*) ;;
  19452. -*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
  19453. -echo "$as_me: error: invalid value of canonical host" >&2;}
  19454. - { (exit 1); exit 1; }; };;
  19455. +*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
  19456. esac
  19457. host=$ac_cv_host
  19458. ac_save_IFS=$IFS; IFS='-'
  19459. @@ -2539,44 +3138,44 @@
  19460. am_make=${MAKE-make}
  19461. cat > confinc << 'END'
  19462. am__doit:
  19463. - @echo done
  19464. + @echo this is the am__doit target
  19465. .PHONY: am__doit
  19466. END
  19467. # If we don't find an include directive, just comment out the code.
  19468. -{ echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
  19469. -echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
  19470. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
  19471. +$as_echo_n "checking for style of include used by $am_make... " >&6; }
  19472. am__include="#"
  19473. am__quote=
  19474. _am_result=none
  19475. # First try GNU make style include.
  19476. echo "include confinc" > confmf
  19477. -# We grep out `Entering directory' and `Leaving directory'
  19478. -# messages which can occur if `w' ends up in MAKEFLAGS.
  19479. -# In particular we don't look at `^make:' because GNU make might
  19480. -# be invoked under some other name (usually "gmake"), in which
  19481. -# case it prints its new name instead of `make'.
  19482. -if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
  19483. - am__include=include
  19484. - am__quote=
  19485. - _am_result=GNU
  19486. -fi
  19487. +# Ignore all kinds of additional output from `make'.
  19488. +case `$am_make -s -f confmf 2> /dev/null` in #(
  19489. +*the\ am__doit\ target*)
  19490. + am__include=include
  19491. + am__quote=
  19492. + _am_result=GNU
  19493. + ;;
  19494. +esac
  19495. # Now try BSD make style include.
  19496. if test "$am__include" = "#"; then
  19497. echo '.include "confinc"' > confmf
  19498. - if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
  19499. - am__include=.include
  19500. - am__quote="\""
  19501. - _am_result=BSD
  19502. - fi
  19503. + case `$am_make -s -f confmf 2> /dev/null` in #(
  19504. + *the\ am__doit\ target*)
  19505. + am__include=.include
  19506. + am__quote="\""
  19507. + _am_result=BSD
  19508. + ;;
  19509. + esac
  19510. fi
  19511. -{ echo "$as_me:$LINENO: result: $_am_result" >&5
  19512. -echo "${ECHO_T}$_am_result" >&6; }
  19513. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
  19514. +$as_echo "$_am_result" >&6; }
  19515. rm -f confinc confmf
  19516. # Check whether --enable-dependency-tracking was given.
  19517. -if test "${enable_dependency_tracking+set}" = set; then
  19518. +if test "${enable_dependency_tracking+set}" = set; then :
  19519. enableval=$enable_dependency_tracking;
  19520. fi
  19521. @@ -2584,9 +3183,7 @@
  19522. am_depcomp="$ac_aux_dir/depcomp"
  19523. AMDEPBACKSLASH='\'
  19524. fi
  19525. -
  19526. -
  19527. -if test "x$enable_dependency_tracking" != xno; then
  19528. + if test "x$enable_dependency_tracking" != xno; then
  19529. AMDEP_TRUE=
  19530. AMDEP_FALSE='#'
  19531. else
  19532. @@ -2595,7 +3192,6 @@
  19533. fi
  19534. -
  19535. ac_ext=c
  19536. ac_cpp='$CPP $CPPFLAGS'
  19537. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  19538. @@ -2604,10 +3200,10 @@
  19539. if test -n "$ac_tool_prefix"; then
  19540. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  19541. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  19542. -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
  19543. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  19544. -if test "${ac_cv_prog_CC+set}" = set; then
  19545. - echo $ECHO_N "(cached) $ECHO_C" >&6
  19546. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  19547. +$as_echo_n "checking for $ac_word... " >&6; }
  19548. +if test "${ac_cv_prog_CC+set}" = set; then :
  19549. + $as_echo_n "(cached) " >&6
  19550. else
  19551. if test -n "$CC"; then
  19552. ac_cv_prog_CC="$CC" # Let the user override the test.
  19553. @@ -2617,25 +3213,25 @@
  19554. do
  19555. IFS=$as_save_IFS
  19556. test -z "$as_dir" && as_dir=.
  19557. - for ac_exec_ext in '' $ac_executable_extensions; do
  19558. - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
  19559. + for ac_exec_ext in '' $ac_executable_extensions; do
  19560. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  19561. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  19562. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  19563. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  19564. break 2
  19565. fi
  19566. done
  19567. -done
  19568. + done
  19569. IFS=$as_save_IFS
  19570. fi
  19571. fi
  19572. CC=$ac_cv_prog_CC
  19573. if test -n "$CC"; then
  19574. - { echo "$as_me:$LINENO: result: $CC" >&5
  19575. -echo "${ECHO_T}$CC" >&6; }
  19576. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  19577. +$as_echo "$CC" >&6; }
  19578. else
  19579. - { echo "$as_me:$LINENO: result: no" >&5
  19580. -echo "${ECHO_T}no" >&6; }
  19581. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19582. +$as_echo "no" >&6; }
  19583. fi
  19584. @@ -2644,10 +3240,10 @@
  19585. ac_ct_CC=$CC
  19586. # Extract the first word of "gcc", so it can be a program name with args.
  19587. set dummy gcc; ac_word=$2
  19588. -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
  19589. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  19590. -if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  19591. - echo $ECHO_N "(cached) $ECHO_C" >&6
  19592. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  19593. +$as_echo_n "checking for $ac_word... " >&6; }
  19594. +if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
  19595. + $as_echo_n "(cached) " >&6
  19596. else
  19597. if test -n "$ac_ct_CC"; then
  19598. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  19599. @@ -2657,25 +3253,25 @@
  19600. do
  19601. IFS=$as_save_IFS
  19602. test -z "$as_dir" && as_dir=.
  19603. - for ac_exec_ext in '' $ac_executable_extensions; do
  19604. - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
  19605. + for ac_exec_ext in '' $ac_executable_extensions; do
  19606. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  19607. ac_cv_prog_ac_ct_CC="gcc"
  19608. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  19609. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  19610. break 2
  19611. fi
  19612. done
  19613. -done
  19614. + done
  19615. IFS=$as_save_IFS
  19616. fi
  19617. fi
  19618. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  19619. if test -n "$ac_ct_CC"; then
  19620. - { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  19621. -echo "${ECHO_T}$ac_ct_CC" >&6; }
  19622. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  19623. +$as_echo "$ac_ct_CC" >&6; }
  19624. else
  19625. - { echo "$as_me:$LINENO: result: no" >&5
  19626. -echo "${ECHO_T}no" >&6; }
  19627. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19628. +$as_echo "no" >&6; }
  19629. fi
  19630. if test "x$ac_ct_CC" = x; then
  19631. @@ -2683,12 +3279,8 @@
  19632. else
  19633. case $cross_compiling:$ac_tool_warned in
  19634. yes:)
  19635. -{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  19636. -whose name does not start with the host triplet. If you think this
  19637. -configuration is useful to you, please write to autoconf@gnu.org." >&5
  19638. -echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  19639. -whose name does not start with the host triplet. If you think this
  19640. -configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  19641. +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  19642. +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  19643. ac_tool_warned=yes ;;
  19644. esac
  19645. CC=$ac_ct_CC
  19646. @@ -2701,10 +3293,10 @@
  19647. if test -n "$ac_tool_prefix"; then
  19648. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  19649. set dummy ${ac_tool_prefix}cc; ac_word=$2
  19650. -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
  19651. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  19652. -if test "${ac_cv_prog_CC+set}" = set; then
  19653. - echo $ECHO_N "(cached) $ECHO_C" >&6
  19654. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  19655. +$as_echo_n "checking for $ac_word... " >&6; }
  19656. +if test "${ac_cv_prog_CC+set}" = set; then :
  19657. + $as_echo_n "(cached) " >&6
  19658. else
  19659. if test -n "$CC"; then
  19660. ac_cv_prog_CC="$CC" # Let the user override the test.
  19661. @@ -2714,25 +3306,25 @@
  19662. do
  19663. IFS=$as_save_IFS
  19664. test -z "$as_dir" && as_dir=.
  19665. - for ac_exec_ext in '' $ac_executable_extensions; do
  19666. - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
  19667. + for ac_exec_ext in '' $ac_executable_extensions; do
  19668. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  19669. ac_cv_prog_CC="${ac_tool_prefix}cc"
  19670. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  19671. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  19672. break 2
  19673. fi
  19674. done
  19675. -done
  19676. + done
  19677. IFS=$as_save_IFS
  19678. fi
  19679. fi
  19680. CC=$ac_cv_prog_CC
  19681. if test -n "$CC"; then
  19682. - { echo "$as_me:$LINENO: result: $CC" >&5
  19683. -echo "${ECHO_T}$CC" >&6; }
  19684. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  19685. +$as_echo "$CC" >&6; }
  19686. else
  19687. - { echo "$as_me:$LINENO: result: no" >&5
  19688. -echo "${ECHO_T}no" >&6; }
  19689. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19690. +$as_echo "no" >&6; }
  19691. fi
  19692. @@ -2741,10 +3333,10 @@
  19693. if test -z "$CC"; then
  19694. # Extract the first word of "cc", so it can be a program name with args.
  19695. set dummy cc; ac_word=$2
  19696. -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
  19697. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  19698. -if test "${ac_cv_prog_CC+set}" = set; then
  19699. - echo $ECHO_N "(cached) $ECHO_C" >&6
  19700. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  19701. +$as_echo_n "checking for $ac_word... " >&6; }
  19702. +if test "${ac_cv_prog_CC+set}" = set; then :
  19703. + $as_echo_n "(cached) " >&6
  19704. else
  19705. if test -n "$CC"; then
  19706. ac_cv_prog_CC="$CC" # Let the user override the test.
  19707. @@ -2755,18 +3347,18 @@
  19708. do
  19709. IFS=$as_save_IFS
  19710. test -z "$as_dir" && as_dir=.
  19711. - for ac_exec_ext in '' $ac_executable_extensions; do
  19712. - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
  19713. + for ac_exec_ext in '' $ac_executable_extensions; do
  19714. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  19715. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  19716. ac_prog_rejected=yes
  19717. continue
  19718. fi
  19719. ac_cv_prog_CC="cc"
  19720. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  19721. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  19722. break 2
  19723. fi
  19724. done
  19725. -done
  19726. + done
  19727. IFS=$as_save_IFS
  19728. if test $ac_prog_rejected = yes; then
  19729. @@ -2785,11 +3377,11 @@
  19730. fi
  19731. CC=$ac_cv_prog_CC
  19732. if test -n "$CC"; then
  19733. - { echo "$as_me:$LINENO: result: $CC" >&5
  19734. -echo "${ECHO_T}$CC" >&6; }
  19735. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  19736. +$as_echo "$CC" >&6; }
  19737. else
  19738. - { echo "$as_me:$LINENO: result: no" >&5
  19739. -echo "${ECHO_T}no" >&6; }
  19740. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19741. +$as_echo "no" >&6; }
  19742. fi
  19743. @@ -2800,10 +3392,10 @@
  19744. do
  19745. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  19746. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  19747. -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
  19748. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  19749. -if test "${ac_cv_prog_CC+set}" = set; then
  19750. - echo $ECHO_N "(cached) $ECHO_C" >&6
  19751. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  19752. +$as_echo_n "checking for $ac_word... " >&6; }
  19753. +if test "${ac_cv_prog_CC+set}" = set; then :
  19754. + $as_echo_n "(cached) " >&6
  19755. else
  19756. if test -n "$CC"; then
  19757. ac_cv_prog_CC="$CC" # Let the user override the test.
  19758. @@ -2813,25 +3405,25 @@
  19759. do
  19760. IFS=$as_save_IFS
  19761. test -z "$as_dir" && as_dir=.
  19762. - for ac_exec_ext in '' $ac_executable_extensions; do
  19763. - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
  19764. + for ac_exec_ext in '' $ac_executable_extensions; do
  19765. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  19766. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  19767. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  19768. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  19769. break 2
  19770. fi
  19771. done
  19772. -done
  19773. + done
  19774. IFS=$as_save_IFS
  19775. fi
  19776. fi
  19777. CC=$ac_cv_prog_CC
  19778. if test -n "$CC"; then
  19779. - { echo "$as_me:$LINENO: result: $CC" >&5
  19780. -echo "${ECHO_T}$CC" >&6; }
  19781. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  19782. +$as_echo "$CC" >&6; }
  19783. else
  19784. - { echo "$as_me:$LINENO: result: no" >&5
  19785. -echo "${ECHO_T}no" >&6; }
  19786. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19787. +$as_echo "no" >&6; }
  19788. fi
  19789. @@ -2844,10 +3436,10 @@
  19790. do
  19791. # Extract the first word of "$ac_prog", so it can be a program name with args.
  19792. set dummy $ac_prog; ac_word=$2
  19793. -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
  19794. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  19795. -if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  19796. - echo $ECHO_N "(cached) $ECHO_C" >&6
  19797. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  19798. +$as_echo_n "checking for $ac_word... " >&6; }
  19799. +if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
  19800. + $as_echo_n "(cached) " >&6
  19801. else
  19802. if test -n "$ac_ct_CC"; then
  19803. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  19804. @@ -2857,25 +3449,25 @@
  19805. do
  19806. IFS=$as_save_IFS
  19807. test -z "$as_dir" && as_dir=.
  19808. - for ac_exec_ext in '' $ac_executable_extensions; do
  19809. - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
  19810. + for ac_exec_ext in '' $ac_executable_extensions; do
  19811. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  19812. ac_cv_prog_ac_ct_CC="$ac_prog"
  19813. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  19814. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  19815. break 2
  19816. fi
  19817. done
  19818. -done
  19819. + done
  19820. IFS=$as_save_IFS
  19821. fi
  19822. fi
  19823. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  19824. if test -n "$ac_ct_CC"; then
  19825. - { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  19826. -echo "${ECHO_T}$ac_ct_CC" >&6; }
  19827. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  19828. +$as_echo "$ac_ct_CC" >&6; }
  19829. else
  19830. - { echo "$as_me:$LINENO: result: no" >&5
  19831. -echo "${ECHO_T}no" >&6; }
  19832. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19833. +$as_echo "no" >&6; }
  19834. fi
  19835. @@ -2887,12 +3479,8 @@
  19836. else
  19837. case $cross_compiling:$ac_tool_warned in
  19838. yes:)
  19839. -{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  19840. -whose name does not start with the host triplet. If you think this
  19841. -configuration is useful to you, please write to autoconf@gnu.org." >&5
  19842. -echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  19843. -whose name does not start with the host triplet. If you think this
  19844. -configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  19845. +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  19846. +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  19847. ac_tool_warned=yes ;;
  19848. esac
  19849. CC=$ac_ct_CC
  19850. @@ -2902,51 +3490,37 @@
  19851. fi
  19852. -test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
  19853. -See \`config.log' for more details." >&5
  19854. -echo "$as_me: error: no acceptable C compiler found in \$PATH
  19855. -See \`config.log' for more details." >&2;}
  19856. - { (exit 1); exit 1; }; }
  19857. +test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  19858. +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  19859. +as_fn_error "no acceptable C compiler found in \$PATH
  19860. +See \`config.log' for more details." "$LINENO" 5; }
  19861. # Provide some information about the compiler.
  19862. -echo "$as_me:$LINENO: checking for C compiler version" >&5
  19863. -ac_compiler=`set X $ac_compile; echo $2`
  19864. -{ (ac_try="$ac_compiler --version >&5"
  19865. -case "(($ac_try" in
  19866. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19867. - *) ac_try_echo=$ac_try;;
  19868. -esac
  19869. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  19870. - (eval "$ac_compiler --version >&5") 2>&5
  19871. - ac_status=$?
  19872. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19873. - (exit $ac_status); }
  19874. -{ (ac_try="$ac_compiler -v >&5"
  19875. -case "(($ac_try" in
  19876. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19877. - *) ac_try_echo=$ac_try;;
  19878. -esac
  19879. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  19880. - (eval "$ac_compiler -v >&5") 2>&5
  19881. - ac_status=$?
  19882. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19883. - (exit $ac_status); }
  19884. -{ (ac_try="$ac_compiler -V >&5"
  19885. +$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  19886. +set X $ac_compile
  19887. +ac_compiler=$2
  19888. +for ac_option in --version -v -V -qversion; do
  19889. + { { ac_try="$ac_compiler $ac_option >&5"
  19890. case "(($ac_try" in
  19891. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19892. *) ac_try_echo=$ac_try;;
  19893. esac
  19894. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  19895. - (eval "$ac_compiler -V >&5") 2>&5
  19896. +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  19897. +$as_echo "$ac_try_echo"; } >&5
  19898. + (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  19899. ac_status=$?
  19900. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19901. - (exit $ac_status); }
  19902. + if test -s conftest.err; then
  19903. + sed '10a\
  19904. +... rest of stderr output deleted ...
  19905. + 10q' conftest.err >conftest.er1
  19906. + cat conftest.er1 >&5
  19907. + fi
  19908. + rm -f conftest.er1 conftest.err
  19909. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19910. + test $ac_status = 0; }
  19911. +done
  19912. -cat >conftest.$ac_ext <<_ACEOF
  19913. -/* confdefs.h. */
  19914. -_ACEOF
  19915. -cat confdefs.h >>conftest.$ac_ext
  19916. -cat >>conftest.$ac_ext <<_ACEOF
  19917. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19918. /* end confdefs.h. */
  19919. int
  19920. @@ -2958,59 +3532,55 @@
  19921. }
  19922. _ACEOF
  19923. ac_clean_files_save=$ac_clean_files
  19924. -ac_clean_files="$ac_clean_files a.out a.exe b.out"
  19925. +ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  19926. # Try to create an executable without -o first, disregard a.out.
  19927. # It will help us diagnose broken compilers, and finding out an intuition
  19928. # of exeext.
  19929. -{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
  19930. -echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
  19931. -ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  19932. -#
  19933. -# List of possible output files, starting from the most likely.
  19934. -# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
  19935. -# only as a last resort. b.out is created by i960 compilers.
  19936. -ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
  19937. -#
  19938. -# The IRIX 6 linker writes into existing files which may not be
  19939. -# executable, retaining their permissions. Remove them first so a
  19940. -# subsequent execution test works.
  19941. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  19942. +$as_echo_n "checking whether the C compiler works... " >&6; }
  19943. +ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  19944. +
  19945. +# The possible output files:
  19946. +ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  19947. +
  19948. ac_rmfiles=
  19949. for ac_file in $ac_files
  19950. do
  19951. case $ac_file in
  19952. - *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
  19953. + *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  19954. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  19955. esac
  19956. done
  19957. rm -f $ac_rmfiles
  19958. -if { (ac_try="$ac_link_default"
  19959. +if { { ac_try="$ac_link_default"
  19960. case "(($ac_try" in
  19961. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19962. *) ac_try_echo=$ac_try;;
  19963. esac
  19964. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  19965. +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  19966. +$as_echo "$ac_try_echo"; } >&5
  19967. (eval "$ac_link_default") 2>&5
  19968. ac_status=$?
  19969. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19970. - (exit $ac_status); }; then
  19971. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19972. + test $ac_status = 0; }; then :
  19973. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  19974. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  19975. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  19976. # so that the user can short-circuit this test for compilers unknown to
  19977. # Autoconf.
  19978. -for ac_file in $ac_files
  19979. +for ac_file in $ac_files ''
  19980. do
  19981. test -f "$ac_file" || continue
  19982. case $ac_file in
  19983. - *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
  19984. + *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  19985. ;;
  19986. [ab].out )
  19987. # We found the default executable, but exeext='' is most
  19988. # certainly right.
  19989. break;;
  19990. *.* )
  19991. - if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  19992. + if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  19993. then :; else
  19994. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  19995. fi
  19996. @@ -3027,76 +3597,44 @@
  19997. test "$ac_cv_exeext" = no && ac_cv_exeext=
  19998. else
  19999. - echo "$as_me: failed program was:" >&5
  20000. -sed 's/^/| /' conftest.$ac_ext >&5
  20001. -
  20002. -{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
  20003. -See \`config.log' for more details." >&5
  20004. -echo "$as_me: error: C compiler cannot create executables
  20005. -See \`config.log' for more details." >&2;}
  20006. - { (exit 77); exit 77; }; }
  20007. + ac_file=''
  20008. fi
  20009. -
  20010. +if test -z "$ac_file"; then :
  20011. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20012. +$as_echo "no" >&6; }
  20013. +$as_echo "$as_me: failed program was:" >&5
  20014. +sed 's/^/| /' conftest.$ac_ext >&5
  20015. +
  20016. +{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  20017. +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  20018. +{ as_fn_set_status 77
  20019. +as_fn_error "C compiler cannot create executables
  20020. +See \`config.log' for more details." "$LINENO" 5; }; }
  20021. +else
  20022. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  20023. +$as_echo "yes" >&6; }
  20024. +fi
  20025. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  20026. +$as_echo_n "checking for C compiler default output file name... " >&6; }
  20027. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  20028. +$as_echo "$ac_file" >&6; }
  20029. ac_exeext=$ac_cv_exeext
  20030. -{ echo "$as_me:$LINENO: result: $ac_file" >&5
  20031. -echo "${ECHO_T}$ac_file" >&6; }
  20032. -
  20033. -# Check that the compiler produces executables we can run. If not, either
  20034. -# the compiler is broken, or we cross compile.
  20035. -{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
  20036. -echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
  20037. -# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
  20038. -# If not cross compiling, check that we can run a simple program.
  20039. -if test "$cross_compiling" != yes; then
  20040. - if { ac_try='./$ac_file'
  20041. - { (case "(($ac_try" in
  20042. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20043. - *) ac_try_echo=$ac_try;;
  20044. -esac
  20045. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  20046. - (eval "$ac_try") 2>&5
  20047. - ac_status=$?
  20048. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20049. - (exit $ac_status); }; }; then
  20050. - cross_compiling=no
  20051. - else
  20052. - if test "$cross_compiling" = maybe; then
  20053. - cross_compiling=yes
  20054. - else
  20055. - { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
  20056. -If you meant to cross compile, use \`--host'.
  20057. -See \`config.log' for more details." >&5
  20058. -echo "$as_me: error: cannot run C compiled programs.
  20059. -If you meant to cross compile, use \`--host'.
  20060. -See \`config.log' for more details." >&2;}
  20061. - { (exit 1); exit 1; }; }
  20062. - fi
  20063. - fi
  20064. -fi
  20065. -{ echo "$as_me:$LINENO: result: yes" >&5
  20066. -echo "${ECHO_T}yes" >&6; }
  20067. -rm -f a.out a.exe conftest$ac_cv_exeext b.out
  20068. +rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  20069. ac_clean_files=$ac_clean_files_save
  20070. -# Check that the compiler produces executables we can run. If not, either
  20071. -# the compiler is broken, or we cross compile.
  20072. -{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
  20073. -echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
  20074. -{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
  20075. -echo "${ECHO_T}$cross_compiling" >&6; }
  20076. -
  20077. -{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
  20078. -echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
  20079. -if { (ac_try="$ac_link"
  20080. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  20081. +$as_echo_n "checking for suffix of executables... " >&6; }
  20082. +if { { ac_try="$ac_link"
  20083. case "(($ac_try" in
  20084. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20085. *) ac_try_echo=$ac_try;;
  20086. esac
  20087. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  20088. +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  20089. +$as_echo "$ac_try_echo"; } >&5
  20090. (eval "$ac_link") 2>&5
  20091. ac_status=$?
  20092. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20093. - (exit $ac_status); }; then
  20094. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  20095. + test $ac_status = 0; }; then :
  20096. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  20097. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  20098. # work properly (i.e., refer to `conftest.exe'), while it won't with
  20099. @@ -3104,37 +3642,90 @@
  20100. for ac_file in conftest.exe conftest conftest.*; do
  20101. test -f "$ac_file" || continue
  20102. case $ac_file in
  20103. - *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
  20104. + *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  20105. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  20106. break;;
  20107. * ) break;;
  20108. esac
  20109. done
  20110. else
  20111. - { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
  20112. -See \`config.log' for more details." >&5
  20113. -echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
  20114. -See \`config.log' for more details." >&2;}
  20115. - { (exit 1); exit 1; }; }
  20116. -fi
  20117. -
  20118. -rm -f conftest$ac_cv_exeext
  20119. -{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
  20120. -echo "${ECHO_T}$ac_cv_exeext" >&6; }
  20121. + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  20122. +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  20123. +as_fn_error "cannot compute suffix of executables: cannot compile and link
  20124. +See \`config.log' for more details." "$LINENO" 5; }
  20125. +fi
  20126. +rm -f conftest conftest$ac_cv_exeext
  20127. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  20128. +$as_echo "$ac_cv_exeext" >&6; }
  20129. rm -f conftest.$ac_ext
  20130. EXEEXT=$ac_cv_exeext
  20131. ac_exeext=$EXEEXT
  20132. -{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
  20133. -echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
  20134. -if test "${ac_cv_objext+set}" = set; then
  20135. - echo $ECHO_N "(cached) $ECHO_C" >&6
  20136. -else
  20137. - cat >conftest.$ac_ext <<_ACEOF
  20138. -/* confdefs.h. */
  20139. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20140. +/* end confdefs.h. */
  20141. +#include <stdio.h>
  20142. +int
  20143. +main ()
  20144. +{
  20145. +FILE *f = fopen ("conftest.out", "w");
  20146. + return ferror (f) || fclose (f) != 0;
  20147. +
  20148. + ;
  20149. + return 0;
  20150. +}
  20151. _ACEOF
  20152. -cat confdefs.h >>conftest.$ac_ext
  20153. -cat >>conftest.$ac_ext <<_ACEOF
  20154. +ac_clean_files="$ac_clean_files conftest.out"
  20155. +# Check that the compiler produces executables we can run. If not, either
  20156. +# the compiler is broken, or we cross compile.
  20157. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  20158. +$as_echo_n "checking whether we are cross compiling... " >&6; }
  20159. +if test "$cross_compiling" != yes; then
  20160. + { { ac_try="$ac_link"
  20161. +case "(($ac_try" in
  20162. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20163. + *) ac_try_echo=$ac_try;;
  20164. +esac
  20165. +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  20166. +$as_echo "$ac_try_echo"; } >&5
  20167. + (eval "$ac_link") 2>&5
  20168. + ac_status=$?
  20169. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  20170. + test $ac_status = 0; }
  20171. + if { ac_try='./conftest$ac_cv_exeext'
  20172. + { { case "(($ac_try" in
  20173. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20174. + *) ac_try_echo=$ac_try;;
  20175. +esac
  20176. +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  20177. +$as_echo "$ac_try_echo"; } >&5
  20178. + (eval "$ac_try") 2>&5
  20179. + ac_status=$?
  20180. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  20181. + test $ac_status = 0; }; }; then
  20182. + cross_compiling=no
  20183. + else
  20184. + if test "$cross_compiling" = maybe; then
  20185. + cross_compiling=yes
  20186. + else
  20187. + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  20188. +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  20189. +as_fn_error "cannot run C compiled programs.
  20190. +If you meant to cross compile, use \`--host'.
  20191. +See \`config.log' for more details." "$LINENO" 5; }
  20192. + fi
  20193. + fi
  20194. +fi
  20195. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  20196. +$as_echo "$cross_compiling" >&6; }
  20197. +
  20198. +rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  20199. +ac_clean_files=$ac_clean_files_save
  20200. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  20201. +$as_echo_n "checking for suffix of object files... " >&6; }
  20202. +if test "${ac_cv_objext+set}" = set; then :
  20203. + $as_echo_n "(cached) " >&6
  20204. +else
  20205. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20206. /* end confdefs.h. */
  20207. int
  20208. @@ -3146,51 +3737,46 @@
  20209. }
  20210. _ACEOF
  20211. rm -f conftest.o conftest.obj
  20212. -if { (ac_try="$ac_compile"
  20213. +if { { ac_try="$ac_compile"
  20214. case "(($ac_try" in
  20215. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20216. *) ac_try_echo=$ac_try;;
  20217. esac
  20218. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  20219. +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  20220. +$as_echo "$ac_try_echo"; } >&5
  20221. (eval "$ac_compile") 2>&5
  20222. ac_status=$?
  20223. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20224. - (exit $ac_status); }; then
  20225. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  20226. + test $ac_status = 0; }; then :
  20227. for ac_file in conftest.o conftest.obj conftest.*; do
  20228. test -f "$ac_file" || continue;
  20229. case $ac_file in
  20230. - *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
  20231. + *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  20232. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  20233. break;;
  20234. esac
  20235. done
  20236. else
  20237. - echo "$as_me: failed program was:" >&5
  20238. + $as_echo "$as_me: failed program was:" >&5
  20239. sed 's/^/| /' conftest.$ac_ext >&5
  20240. -{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
  20241. -See \`config.log' for more details." >&5
  20242. -echo "$as_me: error: cannot compute suffix of object files: cannot compile
  20243. -See \`config.log' for more details." >&2;}
  20244. - { (exit 1); exit 1; }; }
  20245. +{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  20246. +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  20247. +as_fn_error "cannot compute suffix of object files: cannot compile
  20248. +See \`config.log' for more details." "$LINENO" 5; }
  20249. fi
  20250. -
  20251. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  20252. fi
  20253. -{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
  20254. -echo "${ECHO_T}$ac_cv_objext" >&6; }
  20255. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  20256. +$as_echo "$ac_cv_objext" >&6; }
  20257. OBJEXT=$ac_cv_objext
  20258. ac_objext=$OBJEXT
  20259. -{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
  20260. -echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
  20261. -if test "${ac_cv_c_compiler_gnu+set}" = set; then
  20262. - echo $ECHO_N "(cached) $ECHO_C" >&6
  20263. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  20264. +$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  20265. +if test "${ac_cv_c_compiler_gnu+set}" = set; then :
  20266. + $as_echo_n "(cached) " >&6
  20267. else
  20268. - cat >conftest.$ac_ext <<_ACEOF
  20269. -/* confdefs.h. */
  20270. -_ACEOF
  20271. -cat confdefs.h >>conftest.$ac_ext
  20272. -cat >>conftest.$ac_ext <<_ACEOF
  20273. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20274. /* end confdefs.h. */
  20275. int
  20276. @@ -3204,71 +3790,34 @@
  20277. return 0;
  20278. }
  20279. _ACEOF
  20280. -rm -f conftest.$ac_objext
  20281. -if { (ac_try="$ac_compile"
  20282. -case "(($ac_try" in
  20283. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20284. - *) ac_try_echo=$ac_try;;
  20285. -esac
  20286. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  20287. - (eval "$ac_compile") 2>conftest.er1
  20288. - ac_status=$?
  20289. - grep -v '^ *+' conftest.er1 >conftest.err
  20290. - rm -f conftest.er1
  20291. - cat conftest.err >&5
  20292. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20293. - (exit $ac_status); } &&
  20294. - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  20295. - { (case "(($ac_try" in
  20296. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20297. - *) ac_try_echo=$ac_try;;
  20298. -esac
  20299. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  20300. - (eval "$ac_try") 2>&5
  20301. - ac_status=$?
  20302. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20303. - (exit $ac_status); }; } &&
  20304. - { ac_try='test -s conftest.$ac_objext'
  20305. - { (case "(($ac_try" in
  20306. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20307. - *) ac_try_echo=$ac_try;;
  20308. -esac
  20309. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  20310. - (eval "$ac_try") 2>&5
  20311. - ac_status=$?
  20312. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20313. - (exit $ac_status); }; }; then
  20314. +if ac_fn_c_try_compile "$LINENO"; then :
  20315. ac_compiler_gnu=yes
  20316. else
  20317. - echo "$as_me: failed program was:" >&5
  20318. -sed 's/^/| /' conftest.$ac_ext >&5
  20319. -
  20320. - ac_compiler_gnu=no
  20321. + ac_compiler_gnu=no
  20322. fi
  20323. -
  20324. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20325. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  20326. fi
  20327. -{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
  20328. -echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
  20329. -GCC=`test $ac_compiler_gnu = yes && echo yes`
  20330. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  20331. +$as_echo "$ac_cv_c_compiler_gnu" >&6; }
  20332. +if test $ac_compiler_gnu = yes; then
  20333. + GCC=yes
  20334. +else
  20335. + GCC=
  20336. +fi
  20337. ac_test_CFLAGS=${CFLAGS+set}
  20338. ac_save_CFLAGS=$CFLAGS
  20339. -{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
  20340. -echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
  20341. -if test "${ac_cv_prog_cc_g+set}" = set; then
  20342. - echo $ECHO_N "(cached) $ECHO_C" >&6
  20343. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  20344. +$as_echo_n "checking whether $CC accepts -g... " >&6; }
  20345. +if test "${ac_cv_prog_cc_g+set}" = set; then :
  20346. + $as_echo_n "(cached) " >&6
  20347. else
  20348. ac_save_c_werror_flag=$ac_c_werror_flag
  20349. ac_c_werror_flag=yes
  20350. ac_cv_prog_cc_g=no
  20351. CFLAGS="-g"
  20352. - cat >conftest.$ac_ext <<_ACEOF
  20353. -/* confdefs.h. */
  20354. -_ACEOF
  20355. -cat confdefs.h >>conftest.$ac_ext
  20356. -cat >>conftest.$ac_ext <<_ACEOF
  20357. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20358. /* end confdefs.h. */
  20359. int
  20360. @@ -3279,51 +3828,11 @@
  20361. return 0;
  20362. }
  20363. _ACEOF
  20364. -rm -f conftest.$ac_objext
  20365. -if { (ac_try="$ac_compile"
  20366. -case "(($ac_try" in
  20367. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20368. - *) ac_try_echo=$ac_try;;
  20369. -esac
  20370. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  20371. - (eval "$ac_compile") 2>conftest.er1
  20372. - ac_status=$?
  20373. - grep -v '^ *+' conftest.er1 >conftest.err
  20374. - rm -f conftest.er1
  20375. - cat conftest.err >&5
  20376. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20377. - (exit $ac_status); } &&
  20378. - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  20379. - { (case "(($ac_try" in
  20380. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20381. - *) ac_try_echo=$ac_try;;
  20382. -esac
  20383. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  20384. - (eval "$ac_try") 2>&5
  20385. - ac_status=$?
  20386. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20387. - (exit $ac_status); }; } &&
  20388. - { ac_try='test -s conftest.$ac_objext'
  20389. - { (case "(($ac_try" in
  20390. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20391. - *) ac_try_echo=$ac_try;;
  20392. -esac
  20393. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  20394. - (eval "$ac_try") 2>&5
  20395. - ac_status=$?
  20396. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20397. - (exit $ac_status); }; }; then
  20398. +if ac_fn_c_try_compile "$LINENO"; then :
  20399. ac_cv_prog_cc_g=yes
  20400. else
  20401. - echo "$as_me: failed program was:" >&5
  20402. -sed 's/^/| /' conftest.$ac_ext >&5
  20403. -
  20404. - CFLAGS=""
  20405. - cat >conftest.$ac_ext <<_ACEOF
  20406. -/* confdefs.h. */
  20407. -_ACEOF
  20408. -cat confdefs.h >>conftest.$ac_ext
  20409. -cat >>conftest.$ac_ext <<_ACEOF
  20410. + CFLAGS=""
  20411. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20412. /* end confdefs.h. */
  20413. int
  20414. @@ -3334,52 +3843,12 @@
  20415. return 0;
  20416. }
  20417. _ACEOF
  20418. -rm -f conftest.$ac_objext
  20419. -if { (ac_try="$ac_compile"
  20420. -case "(($ac_try" in
  20421. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20422. - *) ac_try_echo=$ac_try;;
  20423. -esac
  20424. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  20425. - (eval "$ac_compile") 2>conftest.er1
  20426. - ac_status=$?
  20427. - grep -v '^ *+' conftest.er1 >conftest.err
  20428. - rm -f conftest.er1
  20429. - cat conftest.err >&5
  20430. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20431. - (exit $ac_status); } &&
  20432. - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  20433. - { (case "(($ac_try" in
  20434. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20435. - *) ac_try_echo=$ac_try;;
  20436. -esac
  20437. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  20438. - (eval "$ac_try") 2>&5
  20439. - ac_status=$?
  20440. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20441. - (exit $ac_status); }; } &&
  20442. - { ac_try='test -s conftest.$ac_objext'
  20443. - { (case "(($ac_try" in
  20444. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20445. - *) ac_try_echo=$ac_try;;
  20446. -esac
  20447. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  20448. - (eval "$ac_try") 2>&5
  20449. - ac_status=$?
  20450. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20451. - (exit $ac_status); }; }; then
  20452. - :
  20453. -else
  20454. - echo "$as_me: failed program was:" >&5
  20455. -sed 's/^/| /' conftest.$ac_ext >&5
  20456. +if ac_fn_c_try_compile "$LINENO"; then :
  20457. - ac_c_werror_flag=$ac_save_c_werror_flag
  20458. +else
  20459. + ac_c_werror_flag=$ac_save_c_werror_flag
  20460. CFLAGS="-g"
  20461. - cat >conftest.$ac_ext <<_ACEOF
  20462. -/* confdefs.h. */
  20463. -_ACEOF
  20464. -cat confdefs.h >>conftest.$ac_ext
  20465. -cat >>conftest.$ac_ext <<_ACEOF
  20466. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20467. /* end confdefs.h. */
  20468. int
  20469. @@ -3390,59 +3859,18 @@
  20470. return 0;
  20471. }
  20472. _ACEOF
  20473. -rm -f conftest.$ac_objext
  20474. -if { (ac_try="$ac_compile"
  20475. -case "(($ac_try" in
  20476. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20477. - *) ac_try_echo=$ac_try;;
  20478. -esac
  20479. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  20480. - (eval "$ac_compile") 2>conftest.er1
  20481. - ac_status=$?
  20482. - grep -v '^ *+' conftest.er1 >conftest.err
  20483. - rm -f conftest.er1
  20484. - cat conftest.err >&5
  20485. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20486. - (exit $ac_status); } &&
  20487. - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  20488. - { (case "(($ac_try" in
  20489. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20490. - *) ac_try_echo=$ac_try;;
  20491. -esac
  20492. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  20493. - (eval "$ac_try") 2>&5
  20494. - ac_status=$?
  20495. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20496. - (exit $ac_status); }; } &&
  20497. - { ac_try='test -s conftest.$ac_objext'
  20498. - { (case "(($ac_try" in
  20499. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20500. - *) ac_try_echo=$ac_try;;
  20501. -esac
  20502. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  20503. - (eval "$ac_try") 2>&5
  20504. - ac_status=$?
  20505. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20506. - (exit $ac_status); }; }; then
  20507. +if ac_fn_c_try_compile "$LINENO"; then :
  20508. ac_cv_prog_cc_g=yes
  20509. -else
  20510. - echo "$as_me: failed program was:" >&5
  20511. -sed 's/^/| /' conftest.$ac_ext >&5
  20512. -
  20513. -
  20514. fi
  20515. -
  20516. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20517. fi
  20518. -
  20519. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20520. fi
  20521. -
  20522. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20523. ac_c_werror_flag=$ac_save_c_werror_flag
  20524. fi
  20525. -{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
  20526. -echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
  20527. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  20528. +$as_echo "$ac_cv_prog_cc_g" >&6; }
  20529. if test "$ac_test_CFLAGS" = set; then
  20530. CFLAGS=$ac_save_CFLAGS
  20531. elif test $ac_cv_prog_cc_g = yes; then
  20532. @@ -3458,18 +3886,14 @@
  20533. CFLAGS=
  20534. fi
  20535. fi
  20536. -{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
  20537. -echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
  20538. -if test "${ac_cv_prog_cc_c89+set}" = set; then
  20539. - echo $ECHO_N "(cached) $ECHO_C" >&6
  20540. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  20541. +$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  20542. +if test "${ac_cv_prog_cc_c89+set}" = set; then :
  20543. + $as_echo_n "(cached) " >&6
  20544. else
  20545. ac_cv_prog_cc_c89=no
  20546. ac_save_CC=$CC
  20547. -cat >conftest.$ac_ext <<_ACEOF
  20548. -/* confdefs.h. */
  20549. -_ACEOF
  20550. -cat confdefs.h >>conftest.$ac_ext
  20551. -cat >>conftest.$ac_ext <<_ACEOF
  20552. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20553. /* end confdefs.h. */
  20554. #include <stdarg.h>
  20555. #include <stdio.h>
  20556. @@ -3526,48 +3950,9 @@
  20557. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  20558. do
  20559. CC="$ac_save_CC $ac_arg"
  20560. - rm -f conftest.$ac_objext
  20561. -if { (ac_try="$ac_compile"
  20562. -case "(($ac_try" in
  20563. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20564. - *) ac_try_echo=$ac_try;;
  20565. -esac
  20566. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  20567. - (eval "$ac_compile") 2>conftest.er1
  20568. - ac_status=$?
  20569. - grep -v '^ *+' conftest.er1 >conftest.err
  20570. - rm -f conftest.er1
  20571. - cat conftest.err >&5
  20572. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20573. - (exit $ac_status); } &&
  20574. - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  20575. - { (case "(($ac_try" in
  20576. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20577. - *) ac_try_echo=$ac_try;;
  20578. -esac
  20579. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  20580. - (eval "$ac_try") 2>&5
  20581. - ac_status=$?
  20582. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20583. - (exit $ac_status); }; } &&
  20584. - { ac_try='test -s conftest.$ac_objext'
  20585. - { (case "(($ac_try" in
  20586. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20587. - *) ac_try_echo=$ac_try;;
  20588. -esac
  20589. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  20590. - (eval "$ac_try") 2>&5
  20591. - ac_status=$?
  20592. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20593. - (exit $ac_status); }; }; then
  20594. + if ac_fn_c_try_compile "$LINENO"; then :
  20595. ac_cv_prog_cc_c89=$ac_arg
  20596. -else
  20597. - echo "$as_me: failed program was:" >&5
  20598. -sed 's/^/| /' conftest.$ac_ext >&5
  20599. -
  20600. -
  20601. fi
  20602. -
  20603. rm -f core conftest.err conftest.$ac_objext
  20604. test "x$ac_cv_prog_cc_c89" != "xno" && break
  20605. done
  20606. @@ -3578,17 +3963,19 @@
  20607. # AC_CACHE_VAL
  20608. case "x$ac_cv_prog_cc_c89" in
  20609. x)
  20610. - { echo "$as_me:$LINENO: result: none needed" >&5
  20611. -echo "${ECHO_T}none needed" >&6; } ;;
  20612. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  20613. +$as_echo "none needed" >&6; } ;;
  20614. xno)
  20615. - { echo "$as_me:$LINENO: result: unsupported" >&5
  20616. -echo "${ECHO_T}unsupported" >&6; } ;;
  20617. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  20618. +$as_echo "unsupported" >&6; } ;;
  20619. *)
  20620. CC="$CC $ac_cv_prog_cc_c89"
  20621. - { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
  20622. -echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
  20623. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  20624. +$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  20625. esac
  20626. +if test "x$ac_cv_prog_cc_c89" != xno; then :
  20627. +fi
  20628. ac_ext=c
  20629. ac_cpp='$CPP $CPPFLAGS'
  20630. @@ -3598,10 +3985,10 @@
  20631. depcc="$CC" am_compiler_list=
  20632. -{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
  20633. -echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
  20634. -if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
  20635. - echo $ECHO_N "(cached) $ECHO_C" >&6
  20636. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  20637. +$as_echo_n "checking dependency style of $depcc... " >&6; }
  20638. +if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
  20639. + $as_echo_n "(cached) " >&6
  20640. else
  20641. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  20642. # We make a subdir and do the tests there. Otherwise we can end up
  20643. @@ -3626,6 +4013,11 @@
  20644. if test "$am_compiler_list" = ""; then
  20645. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  20646. fi
  20647. + am__universal=false
  20648. + case " $depcc " in #(
  20649. + *\ -arch\ *\ -arch\ *) am__universal=true ;;
  20650. + esac
  20651. +
  20652. for depmode in $am_compiler_list; do
  20653. # Setup a source with many dependencies, because some compilers
  20654. # like to wrap large dependency lists on column 80 (with \), and
  20655. @@ -3643,7 +4035,17 @@
  20656. done
  20657. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  20658. + # We check with `-c' and `-o' for the sake of the "dashmstdout"
  20659. + # mode. It turns out that the SunPro C++ compiler does not properly
  20660. + # handle `-M -o', and we need to detect this. Also, some Intel
  20661. + # versions had trouble with output in subdirs
  20662. + am__obj=sub/conftest.${OBJEXT-o}
  20663. + am__minus_obj="-o $am__obj"
  20664. case $depmode in
  20665. + gcc)
  20666. + # This depmode causes a compiler race in universal mode.
  20667. + test "$am__universal" = false || continue
  20668. + ;;
  20669. nosideeffect)
  20670. # after this tag, mechanisms are not by side-effect, so they'll
  20671. # only be used when explicitly requested
  20672. @@ -3653,18 +4055,23 @@
  20673. break
  20674. fi
  20675. ;;
  20676. + msvisualcpp | msvcmsys)
  20677. + # This compiler won't grok `-c -o', but also, the minuso test has
  20678. + # not run yet. These depmodes are late enough in the game, and
  20679. + # so weak that their functioning should not be impacted.
  20680. + am__obj=conftest.${OBJEXT-o}
  20681. + am__minus_obj=
  20682. + ;;
  20683. none) break ;;
  20684. esac
  20685. - # We check with `-c' and `-o' for the sake of the "dashmstdout"
  20686. - # mode. It turns out that the SunPro C++ compiler does not properly
  20687. - # handle `-M -o', and we need to detect this.
  20688. if depmode=$depmode \
  20689. - source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
  20690. + source=sub/conftest.c object=$am__obj \
  20691. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  20692. - $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
  20693. + $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  20694. >/dev/null 2>conftest.err &&
  20695. + grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  20696. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  20697. - grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
  20698. + grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  20699. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  20700. # icc doesn't choke on unknown options, it will just issue warnings
  20701. # or remarks (even with -Werror). So we grep stderr for any message
  20702. @@ -3688,13 +4095,11 @@
  20703. fi
  20704. fi
  20705. -{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
  20706. -echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
  20707. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
  20708. +$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
  20709. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  20710. -
  20711. -
  20712. -if
  20713. + if
  20714. test "x$enable_dependency_tracking" != xno \
  20715. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  20716. am__fastdepCC_TRUE=
  20717. @@ -3705,108 +4110,50 @@
  20718. fi
  20719. -{ echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
  20720. -echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
  20721. -if test "${lt_cv_path_SED+set}" = set; then
  20722. - echo $ECHO_N "(cached) $ECHO_C" >&6
  20723. -else
  20724. - # Loop through the user's path and test for sed and gsed.
  20725. -# Then use that list of sed's as ones to test for truncation.
  20726. -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  20727. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  20728. +$as_echo_n "checking for a sed that does not truncate output... " >&6; }
  20729. +if test "${ac_cv_path_SED+set}" = set; then :
  20730. + $as_echo_n "(cached) " >&6
  20731. +else
  20732. + ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  20733. + for ac_i in 1 2 3 4 5 6 7; do
  20734. + ac_script="$ac_script$as_nl$ac_script"
  20735. + done
  20736. + echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  20737. + { ac_script=; unset ac_script;}
  20738. + if test -z "$SED"; then
  20739. + ac_path_SED_found=false
  20740. + # Loop through the user's path and test for each of PROGNAME-LIST
  20741. + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  20742. for as_dir in $PATH
  20743. do
  20744. IFS=$as_save_IFS
  20745. test -z "$as_dir" && as_dir=.
  20746. - for lt_ac_prog in sed gsed; do
  20747. + for ac_prog in sed gsed; do
  20748. for ac_exec_ext in '' $ac_executable_extensions; do
  20749. - if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
  20750. - lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
  20751. - fi
  20752. - done
  20753. - done
  20754. -done
  20755. -IFS=$as_save_IFS
  20756. -lt_ac_max=0
  20757. -lt_ac_count=0
  20758. -# Add /usr/xpg4/bin/sed as it is typically found on Solaris
  20759. -# along with /bin/sed that truncates output.
  20760. -for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
  20761. - test ! -f $lt_ac_sed && continue
  20762. - cat /dev/null > conftest.in
  20763. - lt_ac_count=0
  20764. - echo $ECHO_N "0123456789$ECHO_C" >conftest.in
  20765. - # Check for GNU sed and select it if it is found.
  20766. - if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
  20767. - lt_cv_path_SED=$lt_ac_sed
  20768. - break
  20769. - fi
  20770. - while true; do
  20771. - cat conftest.in conftest.in >conftest.tmp
  20772. - mv conftest.tmp conftest.in
  20773. - cp conftest.in conftest.nl
  20774. - echo >>conftest.nl
  20775. - $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
  20776. - cmp -s conftest.out conftest.nl || break
  20777. - # 10000 chars as input seems more than enough
  20778. - test $lt_ac_count -gt 10 && break
  20779. - lt_ac_count=`expr $lt_ac_count + 1`
  20780. - if test $lt_ac_count -gt $lt_ac_max; then
  20781. - lt_ac_max=$lt_ac_count
  20782. - lt_cv_path_SED=$lt_ac_sed
  20783. - fi
  20784. - done
  20785. -done
  20786. -
  20787. -fi
  20788. -
  20789. -SED=$lt_cv_path_SED
  20790. -
  20791. -{ echo "$as_me:$LINENO: result: $SED" >&5
  20792. -echo "${ECHO_T}$SED" >&6; }
  20793. -
  20794. -{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
  20795. -echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
  20796. -if test "${ac_cv_path_GREP+set}" = set; then
  20797. - echo $ECHO_N "(cached) $ECHO_C" >&6
  20798. -else
  20799. - # Extract the first word of "grep ggrep" to use in msg output
  20800. -if test -z "$GREP"; then
  20801. -set dummy grep ggrep; ac_prog_name=$2
  20802. -if test "${ac_cv_path_GREP+set}" = set; then
  20803. - echo $ECHO_N "(cached) $ECHO_C" >&6
  20804. -else
  20805. - ac_path_GREP_found=false
  20806. -# Loop through the user's path and test for each of PROGNAME-LIST
  20807. -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  20808. -for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  20809. -do
  20810. - IFS=$as_save_IFS
  20811. - test -z "$as_dir" && as_dir=.
  20812. - for ac_prog in grep ggrep; do
  20813. - for ac_exec_ext in '' $ac_executable_extensions; do
  20814. - ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  20815. - { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
  20816. - # Check for GNU ac_path_GREP and select it if it is found.
  20817. - # Check for GNU $ac_path_GREP
  20818. -case `"$ac_path_GREP" --version 2>&1` in
  20819. + ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  20820. + { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
  20821. +# Check for GNU ac_path_SED and select it if it is found.
  20822. + # Check for GNU $ac_path_SED
  20823. +case `"$ac_path_SED" --version 2>&1` in
  20824. *GNU*)
  20825. - ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  20826. + ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  20827. *)
  20828. ac_count=0
  20829. - echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
  20830. + $as_echo_n 0123456789 >"conftest.in"
  20831. while :
  20832. do
  20833. cat "conftest.in" "conftest.in" >"conftest.tmp"
  20834. mv "conftest.tmp" "conftest.in"
  20835. cp "conftest.in" "conftest.nl"
  20836. - echo 'GREP' >> "conftest.nl"
  20837. - "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  20838. + $as_echo '' >> "conftest.nl"
  20839. + "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  20840. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  20841. - ac_count=`expr $ac_count + 1`
  20842. - if test $ac_count -gt ${ac_path_GREP_max-0}; then
  20843. + as_fn_arith $ac_count + 1 && ac_count=$as_val
  20844. + if test $ac_count -gt ${ac_path_SED_max-0}; then
  20845. # Best one so far, save it but keep looking for a better one
  20846. - ac_cv_path_GREP="$ac_path_GREP"
  20847. - ac_path_GREP_max=$ac_count
  20848. + ac_cv_path_SED="$ac_path_SED"
  20849. + ac_path_SED_max=$ac_count
  20850. fi
  20851. # 10*(2^10) chars as input seems more than enough
  20852. test $ac_count -gt 10 && break
  20853. @@ -3814,77 +4161,137 @@
  20854. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  20855. esac
  20856. -
  20857. - $ac_path_GREP_found && break 3
  20858. + $ac_path_SED_found && break 3
  20859. + done
  20860. + done
  20861. done
  20862. -done
  20863. -
  20864. -done
  20865. IFS=$as_save_IFS
  20866. -
  20867. -
  20868. + if test -z "$ac_cv_path_SED"; then
  20869. + as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
  20870. + fi
  20871. +else
  20872. + ac_cv_path_SED=$SED
  20873. fi
  20874. -GREP="$ac_cv_path_GREP"
  20875. -if test -z "$GREP"; then
  20876. - { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
  20877. -echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
  20878. - { (exit 1); exit 1; }; }
  20879. fi
  20880. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  20881. +$as_echo "$ac_cv_path_SED" >&6; }
  20882. + SED="$ac_cv_path_SED"
  20883. + rm -f conftest.sed
  20884. +
  20885. +test -z "$SED" && SED=sed
  20886. +Xsed="$SED -e 1s/^X//"
  20887. +
  20888. +
  20889. +
  20890. +
  20891. +
  20892. +
  20893. +
  20894. +
  20895. +
  20896. +
  20897. +
  20898. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  20899. +$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  20900. +if test "${ac_cv_path_GREP+set}" = set; then :
  20901. + $as_echo_n "(cached) " >&6
  20902. +else
  20903. + if test -z "$GREP"; then
  20904. + ac_path_GREP_found=false
  20905. + # Loop through the user's path and test for each of PROGNAME-LIST
  20906. + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  20907. +for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  20908. +do
  20909. + IFS=$as_save_IFS
  20910. + test -z "$as_dir" && as_dir=.
  20911. + for ac_prog in grep ggrep; do
  20912. + for ac_exec_ext in '' $ac_executable_extensions; do
  20913. + ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  20914. + { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
  20915. +# Check for GNU ac_path_GREP and select it if it is found.
  20916. + # Check for GNU $ac_path_GREP
  20917. +case `"$ac_path_GREP" --version 2>&1` in
  20918. +*GNU*)
  20919. + ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  20920. +*)
  20921. + ac_count=0
  20922. + $as_echo_n 0123456789 >"conftest.in"
  20923. + while :
  20924. + do
  20925. + cat "conftest.in" "conftest.in" >"conftest.tmp"
  20926. + mv "conftest.tmp" "conftest.in"
  20927. + cp "conftest.in" "conftest.nl"
  20928. + $as_echo 'GREP' >> "conftest.nl"
  20929. + "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  20930. + diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  20931. + as_fn_arith $ac_count + 1 && ac_count=$as_val
  20932. + if test $ac_count -gt ${ac_path_GREP_max-0}; then
  20933. + # Best one so far, save it but keep looking for a better one
  20934. + ac_cv_path_GREP="$ac_path_GREP"
  20935. + ac_path_GREP_max=$ac_count
  20936. + fi
  20937. + # 10*(2^10) chars as input seems more than enough
  20938. + test $ac_count -gt 10 && break
  20939. + done
  20940. + rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  20941. +esac
  20942. + $ac_path_GREP_found && break 3
  20943. + done
  20944. + done
  20945. + done
  20946. +IFS=$as_save_IFS
  20947. + if test -z "$ac_cv_path_GREP"; then
  20948. + as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  20949. + fi
  20950. else
  20951. ac_cv_path_GREP=$GREP
  20952. fi
  20953. -
  20954. fi
  20955. -{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
  20956. -echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
  20957. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  20958. +$as_echo "$ac_cv_path_GREP" >&6; }
  20959. GREP="$ac_cv_path_GREP"
  20960. -{ echo "$as_me:$LINENO: checking for egrep" >&5
  20961. -echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
  20962. -if test "${ac_cv_path_EGREP+set}" = set; then
  20963. - echo $ECHO_N "(cached) $ECHO_C" >&6
  20964. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  20965. +$as_echo_n "checking for egrep... " >&6; }
  20966. +if test "${ac_cv_path_EGREP+set}" = set; then :
  20967. + $as_echo_n "(cached) " >&6
  20968. else
  20969. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  20970. then ac_cv_path_EGREP="$GREP -E"
  20971. else
  20972. - # Extract the first word of "egrep" to use in msg output
  20973. -if test -z "$EGREP"; then
  20974. -set dummy egrep; ac_prog_name=$2
  20975. -if test "${ac_cv_path_EGREP+set}" = set; then
  20976. - echo $ECHO_N "(cached) $ECHO_C" >&6
  20977. -else
  20978. + if test -z "$EGREP"; then
  20979. ac_path_EGREP_found=false
  20980. -# Loop through the user's path and test for each of PROGNAME-LIST
  20981. -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  20982. + # Loop through the user's path and test for each of PROGNAME-LIST
  20983. + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  20984. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  20985. do
  20986. IFS=$as_save_IFS
  20987. test -z "$as_dir" && as_dir=.
  20988. - for ac_prog in egrep; do
  20989. - for ac_exec_ext in '' $ac_executable_extensions; do
  20990. - ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  20991. - { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
  20992. - # Check for GNU ac_path_EGREP and select it if it is found.
  20993. + for ac_prog in egrep; do
  20994. + for ac_exec_ext in '' $ac_executable_extensions; do
  20995. + ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  20996. + { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
  20997. +# Check for GNU ac_path_EGREP and select it if it is found.
  20998. # Check for GNU $ac_path_EGREP
  20999. case `"$ac_path_EGREP" --version 2>&1` in
  21000. *GNU*)
  21001. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  21002. *)
  21003. ac_count=0
  21004. - echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
  21005. + $as_echo_n 0123456789 >"conftest.in"
  21006. while :
  21007. do
  21008. cat "conftest.in" "conftest.in" >"conftest.tmp"
  21009. mv "conftest.tmp" "conftest.in"
  21010. cp "conftest.in" "conftest.nl"
  21011. - echo 'EGREP' >> "conftest.nl"
  21012. + $as_echo 'EGREP' >> "conftest.nl"
  21013. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  21014. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  21015. - ac_count=`expr $ac_count + 1`
  21016. + as_fn_arith $ac_count + 1 && ac_count=$as_val
  21017. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  21018. # Best one so far, save it but keep looking for a better one
  21019. ac_cv_path_EGREP="$ac_path_EGREP"
  21020. @@ -3896,39 +4303,114 @@
  21021. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  21022. esac
  21023. -
  21024. - $ac_path_EGREP_found && break 3
  21025. + $ac_path_EGREP_found && break 3
  21026. + done
  21027. + done
  21028. done
  21029. -done
  21030. -
  21031. -done
  21032. IFS=$as_save_IFS
  21033. -
  21034. -
  21035. + if test -z "$ac_cv_path_EGREP"; then
  21036. + as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  21037. + fi
  21038. +else
  21039. + ac_cv_path_EGREP=$EGREP
  21040. fi
  21041. -EGREP="$ac_cv_path_EGREP"
  21042. -if test -z "$EGREP"; then
  21043. - { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
  21044. -echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
  21045. - { (exit 1); exit 1; }; }
  21046. + fi
  21047. fi
  21048. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  21049. +$as_echo "$ac_cv_path_EGREP" >&6; }
  21050. + EGREP="$ac_cv_path_EGREP"
  21051. +
  21052. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
  21053. +$as_echo_n "checking for fgrep... " >&6; }
  21054. +if test "${ac_cv_path_FGREP+set}" = set; then :
  21055. + $as_echo_n "(cached) " >&6
  21056. else
  21057. - ac_cv_path_EGREP=$EGREP
  21058. -fi
  21059. + if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  21060. + then ac_cv_path_FGREP="$GREP -F"
  21061. + else
  21062. + if test -z "$FGREP"; then
  21063. + ac_path_FGREP_found=false
  21064. + # Loop through the user's path and test for each of PROGNAME-LIST
  21065. + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  21066. +for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  21067. +do
  21068. + IFS=$as_save_IFS
  21069. + test -z "$as_dir" && as_dir=.
  21070. + for ac_prog in fgrep; do
  21071. + for ac_exec_ext in '' $ac_executable_extensions; do
  21072. + ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
  21073. + { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
  21074. +# Check for GNU ac_path_FGREP and select it if it is found.
  21075. + # Check for GNU $ac_path_FGREP
  21076. +case `"$ac_path_FGREP" --version 2>&1` in
  21077. +*GNU*)
  21078. + ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  21079. +*)
  21080. + ac_count=0
  21081. + $as_echo_n 0123456789 >"conftest.in"
  21082. + while :
  21083. + do
  21084. + cat "conftest.in" "conftest.in" >"conftest.tmp"
  21085. + mv "conftest.tmp" "conftest.in"
  21086. + cp "conftest.in" "conftest.nl"
  21087. + $as_echo 'FGREP' >> "conftest.nl"
  21088. + "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  21089. + diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  21090. + as_fn_arith $ac_count + 1 && ac_count=$as_val
  21091. + if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  21092. + # Best one so far, save it but keep looking for a better one
  21093. + ac_cv_path_FGREP="$ac_path_FGREP"
  21094. + ac_path_FGREP_max=$ac_count
  21095. + fi
  21096. + # 10*(2^10) chars as input seems more than enough
  21097. + test $ac_count -gt 10 && break
  21098. + done
  21099. + rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  21100. +esac
  21101. + $ac_path_FGREP_found && break 3
  21102. + done
  21103. + done
  21104. + done
  21105. +IFS=$as_save_IFS
  21106. + if test -z "$ac_cv_path_FGREP"; then
  21107. + as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  21108. + fi
  21109. +else
  21110. + ac_cv_path_FGREP=$FGREP
  21111. +fi
  21112. fi
  21113. fi
  21114. -{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
  21115. -echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
  21116. - EGREP="$ac_cv_path_EGREP"
  21117. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
  21118. +$as_echo "$ac_cv_path_FGREP" >&6; }
  21119. + FGREP="$ac_cv_path_FGREP"
  21120. +
  21121. +
  21122. +test -z "$GREP" && GREP=grep
  21123. +
  21124. +
  21125. +
  21126. +
  21127. +
  21128. +
  21129. +
  21130. +
  21131. +
  21132. +
  21133. +
  21134. +
  21135. +
  21136. +
  21137. +
  21138. +
  21139. # Check whether --with-gnu-ld was given.
  21140. -if test "${with_gnu_ld+set}" = set; then
  21141. +if test "${with_gnu_ld+set}" = set; then :
  21142. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  21143. else
  21144. with_gnu_ld=no
  21145. @@ -3937,8 +4419,8 @@
  21146. ac_prog=ld
  21147. if test "$GCC" = yes; then
  21148. # Check if gcc -print-prog-name=ld gives a path.
  21149. - { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
  21150. -echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
  21151. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  21152. +$as_echo_n "checking for ld used by $CC... " >&6; }
  21153. case $host in
  21154. *-*-mingw*)
  21155. # gcc leaves a trailing carriage return which upsets mingw
  21156. @@ -3951,9 +4433,9 @@
  21157. [\\/]* | ?:[\\/]*)
  21158. re_direlt='/[^/][^/]*/\.\./'
  21159. # Canonicalize the pathname of ld
  21160. - ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
  21161. - while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
  21162. - ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
  21163. + ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  21164. + while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  21165. + ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  21166. done
  21167. test -z "$LD" && LD="$ac_prog"
  21168. ;;
  21169. @@ -3967,14 +4449,14 @@
  21170. ;;
  21171. esac
  21172. elif test "$with_gnu_ld" = yes; then
  21173. - { echo "$as_me:$LINENO: checking for GNU ld" >&5
  21174. -echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
  21175. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  21176. +$as_echo_n "checking for GNU ld... " >&6; }
  21177. else
  21178. - { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
  21179. -echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
  21180. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  21181. +$as_echo_n "checking for non-GNU ld... " >&6; }
  21182. fi
  21183. -if test "${lt_cv_path_LD+set}" = set; then
  21184. - echo $ECHO_N "(cached) $ECHO_C" >&6
  21185. +if test "${lt_cv_path_LD+set}" = set; then :
  21186. + $as_echo_n "(cached) " >&6
  21187. else
  21188. if test -z "$LD"; then
  21189. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  21190. @@ -4004,19 +4486,17 @@
  21191. LD="$lt_cv_path_LD"
  21192. if test -n "$LD"; then
  21193. - { echo "$as_me:$LINENO: result: $LD" >&5
  21194. -echo "${ECHO_T}$LD" >&6; }
  21195. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  21196. +$as_echo "$LD" >&6; }
  21197. else
  21198. - { echo "$as_me:$LINENO: result: no" >&5
  21199. -echo "${ECHO_T}no" >&6; }
  21200. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  21201. +$as_echo "no" >&6; }
  21202. fi
  21203. -test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
  21204. -echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
  21205. - { (exit 1); exit 1; }; }
  21206. -{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
  21207. -echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
  21208. -if test "${lt_cv_prog_gnu_ld+set}" = set; then
  21209. - echo $ECHO_N "(cached) $ECHO_C" >&6
  21210. +test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
  21211. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  21212. +$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  21213. +if test "${lt_cv_prog_gnu_ld+set}" = set; then :
  21214. + $as_echo_n "(cached) " >&6
  21215. else
  21216. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  21217. case `$LD -v 2>&1 </dev/null` in
  21218. @@ -4028,40 +4508,22 @@
  21219. ;;
  21220. esac
  21221. fi
  21222. -{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
  21223. -echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
  21224. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  21225. +$as_echo "$lt_cv_prog_gnu_ld" >&6; }
  21226. with_gnu_ld=$lt_cv_prog_gnu_ld
  21227. -{ echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
  21228. -echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
  21229. -if test "${lt_cv_ld_reload_flag+set}" = set; then
  21230. - echo $ECHO_N "(cached) $ECHO_C" >&6
  21231. -else
  21232. - lt_cv_ld_reload_flag='-r'
  21233. -fi
  21234. -{ echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
  21235. -echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
  21236. -reload_flag=$lt_cv_ld_reload_flag
  21237. -case $reload_flag in
  21238. -"" | " "*) ;;
  21239. -*) reload_flag=" $reload_flag" ;;
  21240. -esac
  21241. -reload_cmds='$LD$reload_flag -o $output$reload_objs'
  21242. -case $host_os in
  21243. - darwin*)
  21244. - if test "$GCC" = yes; then
  21245. - reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
  21246. - else
  21247. - reload_cmds='$LD$reload_flag -o $output$reload_objs'
  21248. - fi
  21249. - ;;
  21250. -esac
  21251. -{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
  21252. -echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
  21253. -if test "${lt_cv_path_NM+set}" = set; then
  21254. - echo $ECHO_N "(cached) $ECHO_C" >&6
  21255. +
  21256. +
  21257. +
  21258. +
  21259. +
  21260. +
  21261. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
  21262. +$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
  21263. +if test "${lt_cv_path_NM+set}" = set; then :
  21264. + $as_echo_n "(cached) " >&6
  21265. else
  21266. if test -n "$NM"; then
  21267. # Let the user override the test.
  21268. @@ -4104,3144 +4566,2224 @@
  21269. done
  21270. IFS="$lt_save_ifs"
  21271. done
  21272. - test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
  21273. + : ${lt_cv_path_NM=no}
  21274. fi
  21275. fi
  21276. -{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
  21277. -echo "${ECHO_T}$lt_cv_path_NM" >&6; }
  21278. -NM="$lt_cv_path_NM"
  21279. -
  21280. -{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
  21281. -echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
  21282. -LN_S=$as_ln_s
  21283. -if test "$LN_S" = "ln -s"; then
  21284. - { echo "$as_me:$LINENO: result: yes" >&5
  21285. -echo "${ECHO_T}yes" >&6; }
  21286. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
  21287. +$as_echo "$lt_cv_path_NM" >&6; }
  21288. +if test "$lt_cv_path_NM" != "no"; then
  21289. + NM="$lt_cv_path_NM"
  21290. else
  21291. - { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
  21292. -echo "${ECHO_T}no, using $LN_S" >&6; }
  21293. -fi
  21294. -
  21295. -{ echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
  21296. -echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
  21297. -if test "${lt_cv_deplibs_check_method+set}" = set; then
  21298. - echo $ECHO_N "(cached) $ECHO_C" >&6
  21299. + # Didn't find any BSD compatible name lister, look for dumpbin.
  21300. + if test -n "$ac_tool_prefix"; then
  21301. + for ac_prog in "dumpbin -symbols" "link -dump -symbols"
  21302. + do
  21303. + # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  21304. +set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  21305. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  21306. +$as_echo_n "checking for $ac_word... " >&6; }
  21307. +if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
  21308. + $as_echo_n "(cached) " >&6
  21309. else
  21310. - lt_cv_file_magic_cmd='$MAGIC_CMD'
  21311. -lt_cv_file_magic_test_file=
  21312. -lt_cv_deplibs_check_method='unknown'
  21313. -# Need to set the preceding variable on all platforms that support
  21314. -# interlibrary dependencies.
  21315. -# 'none' -- dependencies not supported.
  21316. -# `unknown' -- same as none, but documents that we really don't know.
  21317. -# 'pass_all' -- all dependencies passed with no checks.
  21318. -# 'test_compile' -- check by making test program.
  21319. -# 'file_magic [[regex]]' -- check by looking for files in library path
  21320. -# which responds to the $file_magic_cmd with a given extended regex.
  21321. -# If you have `file' or equivalent on your system and you're not sure
  21322. -# whether `pass_all' will *always* work, you probably want this one.
  21323. + if test -n "$DUMPBIN"; then
  21324. + ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
  21325. +else
  21326. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  21327. +for as_dir in $PATH
  21328. +do
  21329. + IFS=$as_save_IFS
  21330. + test -z "$as_dir" && as_dir=.
  21331. + for ac_exec_ext in '' $ac_executable_extensions; do
  21332. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  21333. + ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
  21334. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  21335. + break 2
  21336. + fi
  21337. +done
  21338. + done
  21339. +IFS=$as_save_IFS
  21340. -case $host_os in
  21341. -aix4* | aix5*)
  21342. - lt_cv_deplibs_check_method=pass_all
  21343. - ;;
  21344. +fi
  21345. +fi
  21346. +DUMPBIN=$ac_cv_prog_DUMPBIN
  21347. +if test -n "$DUMPBIN"; then
  21348. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
  21349. +$as_echo "$DUMPBIN" >&6; }
  21350. +else
  21351. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  21352. +$as_echo "no" >&6; }
  21353. +fi
  21354. -beos*)
  21355. - lt_cv_deplibs_check_method=pass_all
  21356. - ;;
  21357. -bsdi[45]*)
  21358. - lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  21359. - lt_cv_file_magic_cmd='/usr/bin/file -L'
  21360. - lt_cv_file_magic_test_file=/shlib/libc.so
  21361. - ;;
  21362. + test -n "$DUMPBIN" && break
  21363. + done
  21364. +fi
  21365. +if test -z "$DUMPBIN"; then
  21366. + ac_ct_DUMPBIN=$DUMPBIN
  21367. + for ac_prog in "dumpbin -symbols" "link -dump -symbols"
  21368. +do
  21369. + # Extract the first word of "$ac_prog", so it can be a program name with args.
  21370. +set dummy $ac_prog; ac_word=$2
  21371. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  21372. +$as_echo_n "checking for $ac_word... " >&6; }
  21373. +if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
  21374. + $as_echo_n "(cached) " >&6
  21375. +else
  21376. + if test -n "$ac_ct_DUMPBIN"; then
  21377. + ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
  21378. +else
  21379. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  21380. +for as_dir in $PATH
  21381. +do
  21382. + IFS=$as_save_IFS
  21383. + test -z "$as_dir" && as_dir=.
  21384. + for ac_exec_ext in '' $ac_executable_extensions; do
  21385. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  21386. + ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
  21387. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  21388. + break 2
  21389. + fi
  21390. +done
  21391. + done
  21392. +IFS=$as_save_IFS
  21393. -cygwin*)
  21394. - # func_win32_libid is a shell function defined in ltmain.sh
  21395. - lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  21396. - lt_cv_file_magic_cmd='func_win32_libid'
  21397. - ;;
  21398. +fi
  21399. +fi
  21400. +ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
  21401. +if test -n "$ac_ct_DUMPBIN"; then
  21402. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
  21403. +$as_echo "$ac_ct_DUMPBIN" >&6; }
  21404. +else
  21405. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  21406. +$as_echo "no" >&6; }
  21407. +fi
  21408. -mingw* | pw32*)
  21409. - # Base MSYS/MinGW do not provide the 'file' command needed by
  21410. - # func_win32_libid shell function, so use a weaker test based on 'objdump'.
  21411. - lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
  21412. - lt_cv_file_magic_cmd='$OBJDUMP -f'
  21413. - ;;
  21414. -darwin* | rhapsody*)
  21415. - lt_cv_deplibs_check_method=pass_all
  21416. - ;;
  21417. + test -n "$ac_ct_DUMPBIN" && break
  21418. +done
  21419. -freebsd* | kfreebsd*-gnu | dragonfly*)
  21420. - if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
  21421. - case $host_cpu in
  21422. - i*86 )
  21423. - # Not sure whether the presence of OpenBSD here was a mistake.
  21424. - # Let's accept both of them until this is cleared up.
  21425. - lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  21426. - lt_cv_file_magic_cmd=/usr/bin/file
  21427. - lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  21428. - ;;
  21429. - esac
  21430. + if test "x$ac_ct_DUMPBIN" = x; then
  21431. + DUMPBIN=":"
  21432. else
  21433. - lt_cv_deplibs_check_method=pass_all
  21434. + case $cross_compiling:$ac_tool_warned in
  21435. +yes:)
  21436. +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  21437. +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  21438. +ac_tool_warned=yes ;;
  21439. +esac
  21440. + DUMPBIN=$ac_ct_DUMPBIN
  21441. fi
  21442. - ;;
  21443. +fi
  21444. -gnu*)
  21445. - lt_cv_deplibs_check_method=pass_all
  21446. - ;;
  21447. -hpux10.20* | hpux11*)
  21448. - lt_cv_file_magic_cmd=/usr/bin/file
  21449. - case $host_cpu in
  21450. - ia64*)
  21451. - lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  21452. - lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  21453. - ;;
  21454. - hppa*64*)
  21455. - 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]'
  21456. - lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  21457. - ;;
  21458. - *)
  21459. - lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
  21460. - lt_cv_file_magic_test_file=/usr/lib/libc.sl
  21461. - ;;
  21462. - esac
  21463. - ;;
  21464. + if test "$DUMPBIN" != ":"; then
  21465. + NM="$DUMPBIN"
  21466. + fi
  21467. +fi
  21468. +test -z "$NM" && NM=nm
  21469. -interix3*)
  21470. - # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  21471. - lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  21472. - ;;
  21473. -irix5* | irix6* | nonstopux*)
  21474. - case $LD in
  21475. - *-32|*"-32 ") libmagic=32-bit;;
  21476. - *-n32|*"-n32 ") libmagic=N32;;
  21477. - *-64|*"-64 ") libmagic=64-bit;;
  21478. - *) libmagic=never-match;;
  21479. - esac
  21480. - lt_cv_deplibs_check_method=pass_all
  21481. - ;;
  21482. -# This must be Linux ELF.
  21483. -linux*)
  21484. - lt_cv_deplibs_check_method=pass_all
  21485. - ;;
  21486. -netbsd*)
  21487. - if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
  21488. - lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  21489. - else
  21490. - lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  21491. +
  21492. +
  21493. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
  21494. +$as_echo_n "checking the name lister ($NM) interface... " >&6; }
  21495. +if test "${lt_cv_nm_interface+set}" = set; then :
  21496. + $as_echo_n "(cached) " >&6
  21497. +else
  21498. + lt_cv_nm_interface="BSD nm"
  21499. + echo "int some_variable = 0;" > conftest.$ac_ext
  21500. + (eval echo "\"\$as_me:4697: $ac_compile\"" >&5)
  21501. + (eval "$ac_compile" 2>conftest.err)
  21502. + cat conftest.err >&5
  21503. + (eval echo "\"\$as_me:4700: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  21504. + (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  21505. + cat conftest.err >&5
  21506. + (eval echo "\"\$as_me:4703: output\"" >&5)
  21507. + cat conftest.out >&5
  21508. + if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  21509. + lt_cv_nm_interface="MS dumpbin"
  21510. fi
  21511. - ;;
  21512. + rm -f conftest*
  21513. +fi
  21514. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
  21515. +$as_echo "$lt_cv_nm_interface" >&6; }
  21516. -newos6*)
  21517. - lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  21518. - lt_cv_file_magic_cmd=/usr/bin/file
  21519. - lt_cv_file_magic_test_file=/usr/lib/libnls.so
  21520. - ;;
  21521. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  21522. +$as_echo_n "checking whether ln -s works... " >&6; }
  21523. +LN_S=$as_ln_s
  21524. +if test "$LN_S" = "ln -s"; then
  21525. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  21526. +$as_echo "yes" >&6; }
  21527. +else
  21528. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  21529. +$as_echo "no, using $LN_S" >&6; }
  21530. +fi
  21531. -nto-qnx*)
  21532. - lt_cv_deplibs_check_method=unknown
  21533. - ;;
  21534. +# find the maximum length of command line arguments
  21535. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
  21536. +$as_echo_n "checking the maximum length of command line arguments... " >&6; }
  21537. +if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
  21538. + $as_echo_n "(cached) " >&6
  21539. +else
  21540. + i=0
  21541. + teststring="ABCD"
  21542. -openbsd*)
  21543. - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  21544. - lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  21545. - else
  21546. - lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  21547. - fi
  21548. - ;;
  21549. + case $build_os in
  21550. + msdosdjgpp*)
  21551. + # On DJGPP, this test can blow up pretty badly due to problems in libc
  21552. + # (any single argument exceeding 2000 bytes causes a buffer overrun
  21553. + # during glob expansion). Even if it were fixed, the result of this
  21554. + # check would be larger than it should be.
  21555. + lt_cv_sys_max_cmd_len=12288; # 12K is about right
  21556. + ;;
  21557. -osf3* | osf4* | osf5*)
  21558. - lt_cv_deplibs_check_method=pass_all
  21559. - ;;
  21560. + gnu*)
  21561. + # Under GNU Hurd, this test is not required because there is
  21562. + # no limit to the length of command line arguments.
  21563. + # Libtool will interpret -1 as no limit whatsoever
  21564. + lt_cv_sys_max_cmd_len=-1;
  21565. + ;;
  21566. -solaris*)
  21567. - lt_cv_deplibs_check_method=pass_all
  21568. - ;;
  21569. + cygwin* | mingw* | cegcc*)
  21570. + # On Win9x/ME, this test blows up -- it succeeds, but takes
  21571. + # about 5 minutes as the teststring grows exponentially.
  21572. + # Worse, since 9x/ME are not pre-emptively multitasking,
  21573. + # you end up with a "frozen" computer, even though with patience
  21574. + # the test eventually succeeds (with a max line length of 256k).
  21575. + # Instead, let's just punt: use the minimum linelength reported by
  21576. + # all of the supported platforms: 8192 (on NT/2K/XP).
  21577. + lt_cv_sys_max_cmd_len=8192;
  21578. + ;;
  21579. -sysv4 | sysv4.3*)
  21580. - case $host_vendor in
  21581. - motorola)
  21582. - 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]'
  21583. - lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  21584. + amigaos*)
  21585. + # On AmigaOS with pdksh, this test takes hours, literally.
  21586. + # So we just punt and use a minimum line length of 8192.
  21587. + lt_cv_sys_max_cmd_len=8192;
  21588. ;;
  21589. - ncr)
  21590. - lt_cv_deplibs_check_method=pass_all
  21591. +
  21592. + netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  21593. + # This has been around since 386BSD, at least. Likely further.
  21594. + if test -x /sbin/sysctl; then
  21595. + lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  21596. + elif test -x /usr/sbin/sysctl; then
  21597. + lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  21598. + else
  21599. + lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  21600. + fi
  21601. + # And add a safety zone
  21602. + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  21603. + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  21604. ;;
  21605. - sequent)
  21606. - lt_cv_file_magic_cmd='/bin/file'
  21607. - lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  21608. +
  21609. + interix*)
  21610. + # We know the value 262144 and hardcode it with a safety zone (like BSD)
  21611. + lt_cv_sys_max_cmd_len=196608
  21612. ;;
  21613. - sni)
  21614. - lt_cv_file_magic_cmd='/bin/file'
  21615. - lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  21616. - lt_cv_file_magic_test_file=/lib/libc.so
  21617. +
  21618. + osf*)
  21619. + # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  21620. + # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  21621. + # nice to cause kernel panics so lets avoid the loop below.
  21622. + # First set a reasonable default.
  21623. + lt_cv_sys_max_cmd_len=16384
  21624. + #
  21625. + if test -x /sbin/sysconfig; then
  21626. + case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  21627. + *1*) lt_cv_sys_max_cmd_len=-1 ;;
  21628. + esac
  21629. + fi
  21630. ;;
  21631. - siemens)
  21632. - lt_cv_deplibs_check_method=pass_all
  21633. + sco3.2v5*)
  21634. + lt_cv_sys_max_cmd_len=102400
  21635. ;;
  21636. - pc)
  21637. - lt_cv_deplibs_check_method=pass_all
  21638. + sysv5* | sco5v6* | sysv4.2uw2*)
  21639. + kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  21640. + if test -n "$kargmax"; then
  21641. + lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  21642. + else
  21643. + lt_cv_sys_max_cmd_len=32768
  21644. + fi
  21645. + ;;
  21646. + *)
  21647. + lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  21648. + if test -n "$lt_cv_sys_max_cmd_len"; then
  21649. + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  21650. + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  21651. + else
  21652. + # Make teststring a little bigger before we do anything with it.
  21653. + # a 1K string should be a reasonable start.
  21654. + for i in 1 2 3 4 5 6 7 8 ; do
  21655. + teststring=$teststring$teststring
  21656. + done
  21657. + SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  21658. + # If test is not a shell built-in, we'll probably end up computing a
  21659. + # maximum length that is only half of the actual maximum length, but
  21660. + # we can't tell.
  21661. + while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
  21662. + = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
  21663. + test $i != 17 # 1/2 MB should be enough
  21664. + do
  21665. + i=`expr $i + 1`
  21666. + teststring=$teststring$teststring
  21667. + done
  21668. + # Only check the string length outside the loop.
  21669. + lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  21670. + teststring=
  21671. + # Add a significant safety factor because C++ compilers can tack on
  21672. + # massive amounts of additional arguments before passing them to the
  21673. + # linker. It appears as though 1/2 is a usable value.
  21674. + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  21675. + fi
  21676. ;;
  21677. esac
  21678. - ;;
  21679. -sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  21680. - lt_cv_deplibs_check_method=pass_all
  21681. - ;;
  21682. -esac
  21683. +fi
  21684. +if test -n $lt_cv_sys_max_cmd_len ; then
  21685. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
  21686. +$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
  21687. +else
  21688. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
  21689. +$as_echo "none" >&6; }
  21690. fi
  21691. -{ echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
  21692. -echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
  21693. -file_magic_cmd=$lt_cv_file_magic_cmd
  21694. -deplibs_check_method=$lt_cv_deplibs_check_method
  21695. -test -z "$deplibs_check_method" && deplibs_check_method=unknown
  21696. +max_cmd_len=$lt_cv_sys_max_cmd_len
  21697. -# If no C compiler was specified, use CC.
  21698. -LTCC=${LTCC-"$CC"}
  21699. -# If no C compiler flags were specified, use CFLAGS.
  21700. -LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  21701. -# Allow CC to be a program name with arguments.
  21702. -compiler=$CC
  21703. +: ${CP="cp -f"}
  21704. +: ${MV="mv -f"}
  21705. +: ${RM="rm -f"}
  21706. +
  21707. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
  21708. +$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
  21709. +# Try some XSI features
  21710. +xsi_shell=no
  21711. +( _lt_dummy="a/b/c"
  21712. + test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
  21713. + = c,a/b,, \
  21714. + && eval 'test $(( 1 + 1 )) -eq 2 \
  21715. + && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
  21716. + && xsi_shell=yes
  21717. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
  21718. +$as_echo "$xsi_shell" >&6; }
  21719. +
  21720. +
  21721. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
  21722. +$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
  21723. +lt_shell_append=no
  21724. +( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
  21725. + >/dev/null 2>&1 \
  21726. + && lt_shell_append=yes
  21727. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
  21728. +$as_echo "$lt_shell_append" >&6; }
  21729. -# Check whether --enable-libtool-lock was given.
  21730. -if test "${enable_libtool_lock+set}" = set; then
  21731. - enableval=$enable_libtool_lock;
  21732. +if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  21733. + lt_unset=unset
  21734. +else
  21735. + lt_unset=false
  21736. fi
  21737. -test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  21738. -# Some flags need to be propagated to the compiler or linker for good
  21739. -# libtool support.
  21740. -case $host in
  21741. -ia64-*-hpux*)
  21742. - # Find out which ABI we are using.
  21743. - echo 'int i;' > conftest.$ac_ext
  21744. - if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  21745. - (eval $ac_compile) 2>&5
  21746. - ac_status=$?
  21747. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21748. - (exit $ac_status); }; then
  21749. - case `/usr/bin/file conftest.$ac_objext` in
  21750. - *ELF-32*)
  21751. - HPUX_IA64_MODE="32"
  21752. - ;;
  21753. - *ELF-64*)
  21754. - HPUX_IA64_MODE="64"
  21755. - ;;
  21756. - esac
  21757. - fi
  21758. - rm -rf conftest*
  21759. +
  21760. +
  21761. +
  21762. +# test EBCDIC or ASCII
  21763. +case `echo X|tr X '\101'` in
  21764. + A) # ASCII based system
  21765. + # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  21766. + lt_SP2NL='tr \040 \012'
  21767. + lt_NL2SP='tr \015\012 \040\040'
  21768. ;;
  21769. -*-*-irix6*)
  21770. - # Find out which ABI we are using.
  21771. - echo '#line 4351 "configure"' > conftest.$ac_ext
  21772. - if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  21773. - (eval $ac_compile) 2>&5
  21774. - ac_status=$?
  21775. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21776. - (exit $ac_status); }; then
  21777. - if test "$lt_cv_prog_gnu_ld" = yes; then
  21778. - case `/usr/bin/file conftest.$ac_objext` in
  21779. - *32-bit*)
  21780. - LD="${LD-ld} -melf32bsmip"
  21781. - ;;
  21782. - *N32*)
  21783. - LD="${LD-ld} -melf32bmipn32"
  21784. - ;;
  21785. - *64-bit*)
  21786. - LD="${LD-ld} -melf64bmip"
  21787. - ;;
  21788. - esac
  21789. - else
  21790. - case `/usr/bin/file conftest.$ac_objext` in
  21791. - *32-bit*)
  21792. - LD="${LD-ld} -32"
  21793. - ;;
  21794. - *N32*)
  21795. - LD="${LD-ld} -n32"
  21796. - ;;
  21797. - *64-bit*)
  21798. - LD="${LD-ld} -64"
  21799. - ;;
  21800. - esac
  21801. - fi
  21802. - fi
  21803. - rm -rf conftest*
  21804. + *) # EBCDIC based system
  21805. + lt_SP2NL='tr \100 \n'
  21806. + lt_NL2SP='tr \r\n \100\100'
  21807. ;;
  21808. +esac
  21809. -x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
  21810. - # Find out which ABI we are using.
  21811. - echo 'int i;' > conftest.$ac_ext
  21812. - if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  21813. - (eval $ac_compile) 2>&5
  21814. - ac_status=$?
  21815. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21816. - (exit $ac_status); }; then
  21817. - case `/usr/bin/file conftest.o` in
  21818. - *32-bit*)
  21819. - case $host in
  21820. - x86_64-*linux*)
  21821. - LD="${LD-ld} -m elf_i386"
  21822. - ;;
  21823. - ppc64-*linux*|powerpc64-*linux*)
  21824. - LD="${LD-ld} -m elf32ppclinux"
  21825. - ;;
  21826. - s390x-*linux*)
  21827. - LD="${LD-ld} -m elf_s390"
  21828. - ;;
  21829. - sparc64-*linux*)
  21830. - LD="${LD-ld} -m elf32_sparc"
  21831. - ;;
  21832. - esac
  21833. - ;;
  21834. - *64-bit*)
  21835. - case $host in
  21836. - x86_64-*linux*)
  21837. - LD="${LD-ld} -m elf_x86_64"
  21838. - ;;
  21839. - ppc*-*linux*|powerpc*-*linux*)
  21840. - LD="${LD-ld} -m elf64ppc"
  21841. - ;;
  21842. - s390*-*linux*)
  21843. - LD="${LD-ld} -m elf64_s390"
  21844. - ;;
  21845. - sparc*-*linux*)
  21846. - LD="${LD-ld} -m elf64_sparc"
  21847. - ;;
  21848. - esac
  21849. - ;;
  21850. - esac
  21851. - fi
  21852. - rm -rf conftest*
  21853. - ;;
  21854. -*-*-sco3.2v5*)
  21855. - # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  21856. - SAVE_CFLAGS="$CFLAGS"
  21857. - CFLAGS="$CFLAGS -belf"
  21858. - { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
  21859. -echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
  21860. -if test "${lt_cv_cc_needs_belf+set}" = set; then
  21861. - echo $ECHO_N "(cached) $ECHO_C" >&6
  21862. -else
  21863. - ac_ext=c
  21864. -ac_cpp='$CPP $CPPFLAGS'
  21865. -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  21866. -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  21867. -ac_compiler_gnu=$ac_cv_c_compiler_gnu
  21868. - cat >conftest.$ac_ext <<_ACEOF
  21869. -/* confdefs.h. */
  21870. -_ACEOF
  21871. -cat confdefs.h >>conftest.$ac_ext
  21872. -cat >>conftest.$ac_ext <<_ACEOF
  21873. -/* end confdefs.h. */
  21874. -int
  21875. -main ()
  21876. -{
  21877. - ;
  21878. - return 0;
  21879. -}
  21880. -_ACEOF
  21881. -rm -f conftest.$ac_objext conftest$ac_exeext
  21882. -if { (ac_try="$ac_link"
  21883. -case "(($ac_try" in
  21884. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  21885. - *) ac_try_echo=$ac_try;;
  21886. -esac
  21887. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  21888. - (eval "$ac_link") 2>conftest.er1
  21889. - ac_status=$?
  21890. - grep -v '^ *+' conftest.er1 >conftest.err
  21891. - rm -f conftest.er1
  21892. - cat conftest.err >&5
  21893. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21894. - (exit $ac_status); } &&
  21895. - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  21896. - { (case "(($ac_try" in
  21897. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  21898. - *) ac_try_echo=$ac_try;;
  21899. +
  21900. +
  21901. +
  21902. +
  21903. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
  21904. +$as_echo_n "checking for $LD option to reload object files... " >&6; }
  21905. +if test "${lt_cv_ld_reload_flag+set}" = set; then :
  21906. + $as_echo_n "(cached) " >&6
  21907. +else
  21908. + lt_cv_ld_reload_flag='-r'
  21909. +fi
  21910. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
  21911. +$as_echo "$lt_cv_ld_reload_flag" >&6; }
  21912. +reload_flag=$lt_cv_ld_reload_flag
  21913. +case $reload_flag in
  21914. +"" | " "*) ;;
  21915. +*) reload_flag=" $reload_flag" ;;
  21916. esac
  21917. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  21918. - (eval "$ac_try") 2>&5
  21919. - ac_status=$?
  21920. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21921. - (exit $ac_status); }; } &&
  21922. - { ac_try='test -s conftest$ac_exeext'
  21923. - { (case "(($ac_try" in
  21924. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  21925. - *) ac_try_echo=$ac_try;;
  21926. +reload_cmds='$LD$reload_flag -o $output$reload_objs'
  21927. +case $host_os in
  21928. + darwin*)
  21929. + if test "$GCC" = yes; then
  21930. + reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
  21931. + else
  21932. + reload_cmds='$LD$reload_flag -o $output$reload_objs'
  21933. + fi
  21934. + ;;
  21935. esac
  21936. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  21937. - (eval "$ac_try") 2>&5
  21938. - ac_status=$?
  21939. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21940. - (exit $ac_status); }; }; then
  21941. - lt_cv_cc_needs_belf=yes
  21942. -else
  21943. - echo "$as_me: failed program was:" >&5
  21944. -sed 's/^/| /' conftest.$ac_ext >&5
  21945. - lt_cv_cc_needs_belf=no
  21946. -fi
  21947. -rm -f core conftest.err conftest.$ac_objext \
  21948. - conftest$ac_exeext conftest.$ac_ext
  21949. - ac_ext=c
  21950. -ac_cpp='$CPP $CPPFLAGS'
  21951. -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  21952. -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  21953. -ac_compiler_gnu=$ac_cv_c_compiler_gnu
  21954. -fi
  21955. -{ echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
  21956. -echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
  21957. - if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  21958. - # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  21959. - CFLAGS="$SAVE_CFLAGS"
  21960. - fi
  21961. - ;;
  21962. -sparc*-*solaris*)
  21963. - # Find out which ABI we are using.
  21964. - echo 'int i;' > conftest.$ac_ext
  21965. - if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  21966. - (eval $ac_compile) 2>&5
  21967. - ac_status=$?
  21968. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21969. - (exit $ac_status); }; then
  21970. - case `/usr/bin/file conftest.o` in
  21971. - *64-bit*)
  21972. - case $lt_cv_prog_gnu_ld in
  21973. - yes*) LD="${LD-ld} -m elf64_sparc" ;;
  21974. - *) LD="${LD-ld} -64" ;;
  21975. - esac
  21976. - ;;
  21977. - esac
  21978. - fi
  21979. - rm -rf conftest*
  21980. - ;;
  21981. -esac
  21982. -need_locks="$enable_libtool_lock"
  21983. -ac_ext=c
  21984. -ac_cpp='$CPP $CPPFLAGS'
  21985. -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  21986. -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  21987. -ac_compiler_gnu=$ac_cv_c_compiler_gnu
  21988. -{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
  21989. -echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
  21990. -# On Suns, sometimes $CPP names a directory.
  21991. -if test -n "$CPP" && test -d "$CPP"; then
  21992. - CPP=
  21993. -fi
  21994. -if test -z "$CPP"; then
  21995. - if test "${ac_cv_prog_CPP+set}" = set; then
  21996. - echo $ECHO_N "(cached) $ECHO_C" >&6
  21997. +
  21998. +if test -n "$ac_tool_prefix"; then
  21999. + # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  22000. +set dummy ${ac_tool_prefix}objdump; ac_word=$2
  22001. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  22002. +$as_echo_n "checking for $ac_word... " >&6; }
  22003. +if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
  22004. + $as_echo_n "(cached) " >&6
  22005. else
  22006. - # Double quotes because CPP needs to be expanded
  22007. - for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  22008. - do
  22009. - ac_preproc_ok=false
  22010. -for ac_c_preproc_warn_flag in '' yes
  22011. + if test -n "$OBJDUMP"; then
  22012. + ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  22013. +else
  22014. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  22015. +for as_dir in $PATH
  22016. do
  22017. - # Use a header file that comes with gcc, so configuring glibc
  22018. - # with a fresh cross-compiler works.
  22019. - # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  22020. - # <limits.h> exists even on freestanding compilers.
  22021. - # On the NeXT, cc -E runs the code through the compiler's parser,
  22022. - # not just through cpp. "Syntax error" is here to catch this case.
  22023. - cat >conftest.$ac_ext <<_ACEOF
  22024. -/* confdefs.h. */
  22025. -_ACEOF
  22026. -cat confdefs.h >>conftest.$ac_ext
  22027. -cat >>conftest.$ac_ext <<_ACEOF
  22028. -/* end confdefs.h. */
  22029. -#ifdef __STDC__
  22030. -# include <limits.h>
  22031. -#else
  22032. -# include <assert.h>
  22033. -#endif
  22034. - Syntax error
  22035. -_ACEOF
  22036. -if { (ac_try="$ac_cpp conftest.$ac_ext"
  22037. -case "(($ac_try" in
  22038. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  22039. - *) ac_try_echo=$ac_try;;
  22040. -esac
  22041. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  22042. - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  22043. - ac_status=$?
  22044. - grep -v '^ *+' conftest.er1 >conftest.err
  22045. - rm -f conftest.er1
  22046. - cat conftest.err >&5
  22047. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22048. - (exit $ac_status); } >/dev/null; then
  22049. - if test -s conftest.err; then
  22050. - ac_cpp_err=$ac_c_preproc_warn_flag
  22051. - ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  22052. - else
  22053. - ac_cpp_err=
  22054. + IFS=$as_save_IFS
  22055. + test -z "$as_dir" && as_dir=.
  22056. + for ac_exec_ext in '' $ac_executable_extensions; do
  22057. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  22058. + ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  22059. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  22060. + break 2
  22061. fi
  22062. -else
  22063. - ac_cpp_err=yes
  22064. -fi
  22065. -if test -z "$ac_cpp_err"; then
  22066. - :
  22067. -else
  22068. - echo "$as_me: failed program was:" >&5
  22069. -sed 's/^/| /' conftest.$ac_ext >&5
  22070. +done
  22071. + done
  22072. +IFS=$as_save_IFS
  22073. - # Broken: fails on valid input.
  22074. -continue
  22075. fi
  22076. -
  22077. -rm -f conftest.err conftest.$ac_ext
  22078. -
  22079. - # OK, works on sane cases. Now check whether nonexistent headers
  22080. - # can be detected and how.
  22081. - cat >conftest.$ac_ext <<_ACEOF
  22082. -/* confdefs.h. */
  22083. -_ACEOF
  22084. -cat confdefs.h >>conftest.$ac_ext
  22085. -cat >>conftest.$ac_ext <<_ACEOF
  22086. -/* end confdefs.h. */
  22087. -#include <ac_nonexistent.h>
  22088. -_ACEOF
  22089. -if { (ac_try="$ac_cpp conftest.$ac_ext"
  22090. -case "(($ac_try" in
  22091. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  22092. - *) ac_try_echo=$ac_try;;
  22093. -esac
  22094. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  22095. - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  22096. - ac_status=$?
  22097. - grep -v '^ *+' conftest.er1 >conftest.err
  22098. - rm -f conftest.er1
  22099. - cat conftest.err >&5
  22100. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22101. - (exit $ac_status); } >/dev/null; then
  22102. - if test -s conftest.err; then
  22103. - ac_cpp_err=$ac_c_preproc_warn_flag
  22104. - ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  22105. - else
  22106. - ac_cpp_err=
  22107. - fi
  22108. -else
  22109. - ac_cpp_err=yes
  22110. fi
  22111. -if test -z "$ac_cpp_err"; then
  22112. - # Broken: success on invalid input.
  22113. -continue
  22114. +OBJDUMP=$ac_cv_prog_OBJDUMP
  22115. +if test -n "$OBJDUMP"; then
  22116. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  22117. +$as_echo "$OBJDUMP" >&6; }
  22118. else
  22119. - echo "$as_me: failed program was:" >&5
  22120. -sed 's/^/| /' conftest.$ac_ext >&5
  22121. -
  22122. - # Passes both tests.
  22123. -ac_preproc_ok=:
  22124. -break
  22125. -fi
  22126. -
  22127. -rm -f conftest.err conftest.$ac_ext
  22128. -
  22129. -done
  22130. -# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  22131. -rm -f conftest.err conftest.$ac_ext
  22132. -if $ac_preproc_ok; then
  22133. - break
  22134. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  22135. +$as_echo "no" >&6; }
  22136. fi
  22137. - done
  22138. - ac_cv_prog_CPP=$CPP
  22139. fi
  22140. - CPP=$ac_cv_prog_CPP
  22141. +if test -z "$ac_cv_prog_OBJDUMP"; then
  22142. + ac_ct_OBJDUMP=$OBJDUMP
  22143. + # Extract the first word of "objdump", so it can be a program name with args.
  22144. +set dummy objdump; ac_word=$2
  22145. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  22146. +$as_echo_n "checking for $ac_word... " >&6; }
  22147. +if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
  22148. + $as_echo_n "(cached) " >&6
  22149. else
  22150. - ac_cv_prog_CPP=$CPP
  22151. -fi
  22152. -{ echo "$as_me:$LINENO: result: $CPP" >&5
  22153. -echo "${ECHO_T}$CPP" >&6; }
  22154. -ac_preproc_ok=false
  22155. -for ac_c_preproc_warn_flag in '' yes
  22156. + if test -n "$ac_ct_OBJDUMP"; then
  22157. + ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  22158. +else
  22159. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  22160. +for as_dir in $PATH
  22161. do
  22162. - # Use a header file that comes with gcc, so configuring glibc
  22163. - # with a fresh cross-compiler works.
  22164. - # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  22165. - # <limits.h> exists even on freestanding compilers.
  22166. - # On the NeXT, cc -E runs the code through the compiler's parser,
  22167. - # not just through cpp. "Syntax error" is here to catch this case.
  22168. - cat >conftest.$ac_ext <<_ACEOF
  22169. -/* confdefs.h. */
  22170. -_ACEOF
  22171. -cat confdefs.h >>conftest.$ac_ext
  22172. -cat >>conftest.$ac_ext <<_ACEOF
  22173. -/* end confdefs.h. */
  22174. -#ifdef __STDC__
  22175. -# include <limits.h>
  22176. -#else
  22177. -# include <assert.h>
  22178. -#endif
  22179. - Syntax error
  22180. -_ACEOF
  22181. -if { (ac_try="$ac_cpp conftest.$ac_ext"
  22182. -case "(($ac_try" in
  22183. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  22184. - *) ac_try_echo=$ac_try;;
  22185. -esac
  22186. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  22187. - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  22188. - ac_status=$?
  22189. - grep -v '^ *+' conftest.er1 >conftest.err
  22190. - rm -f conftest.er1
  22191. - cat conftest.err >&5
  22192. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22193. - (exit $ac_status); } >/dev/null; then
  22194. - if test -s conftest.err; then
  22195. - ac_cpp_err=$ac_c_preproc_warn_flag
  22196. - ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  22197. - else
  22198. - ac_cpp_err=
  22199. + IFS=$as_save_IFS
  22200. + test -z "$as_dir" && as_dir=.
  22201. + for ac_exec_ext in '' $ac_executable_extensions; do
  22202. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  22203. + ac_cv_prog_ac_ct_OBJDUMP="objdump"
  22204. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  22205. + break 2
  22206. fi
  22207. -else
  22208. - ac_cpp_err=yes
  22209. +done
  22210. + done
  22211. +IFS=$as_save_IFS
  22212. +
  22213. fi
  22214. -if test -z "$ac_cpp_err"; then
  22215. - :
  22216. +fi
  22217. +ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  22218. +if test -n "$ac_ct_OBJDUMP"; then
  22219. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  22220. +$as_echo "$ac_ct_OBJDUMP" >&6; }
  22221. else
  22222. - echo "$as_me: failed program was:" >&5
  22223. -sed 's/^/| /' conftest.$ac_ext >&5
  22224. -
  22225. - # Broken: fails on valid input.
  22226. -continue
  22227. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  22228. +$as_echo "no" >&6; }
  22229. fi
  22230. -rm -f conftest.err conftest.$ac_ext
  22231. -
  22232. - # OK, works on sane cases. Now check whether nonexistent headers
  22233. - # can be detected and how.
  22234. - cat >conftest.$ac_ext <<_ACEOF
  22235. -/* confdefs.h. */
  22236. -_ACEOF
  22237. -cat confdefs.h >>conftest.$ac_ext
  22238. -cat >>conftest.$ac_ext <<_ACEOF
  22239. -/* end confdefs.h. */
  22240. -#include <ac_nonexistent.h>
  22241. -_ACEOF
  22242. -if { (ac_try="$ac_cpp conftest.$ac_ext"
  22243. -case "(($ac_try" in
  22244. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  22245. - *) ac_try_echo=$ac_try;;
  22246. -esac
  22247. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  22248. - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  22249. - ac_status=$?
  22250. - grep -v '^ *+' conftest.er1 >conftest.err
  22251. - rm -f conftest.er1
  22252. - cat conftest.err >&5
  22253. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22254. - (exit $ac_status); } >/dev/null; then
  22255. - if test -s conftest.err; then
  22256. - ac_cpp_err=$ac_c_preproc_warn_flag
  22257. - ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  22258. + if test "x$ac_ct_OBJDUMP" = x; then
  22259. + OBJDUMP="false"
  22260. else
  22261. - ac_cpp_err=
  22262. + case $cross_compiling:$ac_tool_warned in
  22263. +yes:)
  22264. +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  22265. +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  22266. +ac_tool_warned=yes ;;
  22267. +esac
  22268. + OBJDUMP=$ac_ct_OBJDUMP
  22269. fi
  22270. else
  22271. - ac_cpp_err=yes
  22272. + OBJDUMP="$ac_cv_prog_OBJDUMP"
  22273. fi
  22274. -if test -z "$ac_cpp_err"; then
  22275. - # Broken: success on invalid input.
  22276. -continue
  22277. -else
  22278. - echo "$as_me: failed program was:" >&5
  22279. -sed 's/^/| /' conftest.$ac_ext >&5
  22280. - # Passes both tests.
  22281. -ac_preproc_ok=:
  22282. -break
  22283. -fi
  22284. +test -z "$OBJDUMP" && OBJDUMP=objdump
  22285. -rm -f conftest.err conftest.$ac_ext
  22286. -done
  22287. -# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  22288. -rm -f conftest.err conftest.$ac_ext
  22289. -if $ac_preproc_ok; then
  22290. - :
  22291. -else
  22292. - { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
  22293. -See \`config.log' for more details." >&5
  22294. -echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
  22295. -See \`config.log' for more details." >&2;}
  22296. - { (exit 1); exit 1; }; }
  22297. -fi
  22298. -ac_ext=c
  22299. -ac_cpp='$CPP $CPPFLAGS'
  22300. -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  22301. -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  22302. -ac_compiler_gnu=$ac_cv_c_compiler_gnu
  22303. -{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
  22304. -echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
  22305. -if test "${ac_cv_header_stdc+set}" = set; then
  22306. - echo $ECHO_N "(cached) $ECHO_C" >&6
  22307. -else
  22308. - cat >conftest.$ac_ext <<_ACEOF
  22309. -/* confdefs.h. */
  22310. -_ACEOF
  22311. -cat confdefs.h >>conftest.$ac_ext
  22312. -cat >>conftest.$ac_ext <<_ACEOF
  22313. -/* end confdefs.h. */
  22314. -#include <stdlib.h>
  22315. -#include <stdarg.h>
  22316. -#include <string.h>
  22317. -#include <float.h>
  22318. -int
  22319. -main ()
  22320. -{
  22321. -
  22322. - ;
  22323. - return 0;
  22324. -}
  22325. -_ACEOF
  22326. -rm -f conftest.$ac_objext
  22327. -if { (ac_try="$ac_compile"
  22328. -case "(($ac_try" in
  22329. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  22330. - *) ac_try_echo=$ac_try;;
  22331. -esac
  22332. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  22333. - (eval "$ac_compile") 2>conftest.er1
  22334. - ac_status=$?
  22335. - grep -v '^ *+' conftest.er1 >conftest.err
  22336. - rm -f conftest.er1
  22337. - cat conftest.err >&5
  22338. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22339. - (exit $ac_status); } &&
  22340. - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  22341. - { (case "(($ac_try" in
  22342. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  22343. - *) ac_try_echo=$ac_try;;
  22344. -esac
  22345. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  22346. - (eval "$ac_try") 2>&5
  22347. - ac_status=$?
  22348. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22349. - (exit $ac_status); }; } &&
  22350. - { ac_try='test -s conftest.$ac_objext'
  22351. - { (case "(($ac_try" in
  22352. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  22353. - *) ac_try_echo=$ac_try;;
  22354. -esac
  22355. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  22356. - (eval "$ac_try") 2>&5
  22357. - ac_status=$?
  22358. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22359. - (exit $ac_status); }; }; then
  22360. - ac_cv_header_stdc=yes
  22361. -else
  22362. - echo "$as_me: failed program was:" >&5
  22363. -sed 's/^/| /' conftest.$ac_ext >&5
  22364. -
  22365. - ac_cv_header_stdc=no
  22366. -fi
  22367. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  22368. -if test $ac_cv_header_stdc = yes; then
  22369. - # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  22370. - cat >conftest.$ac_ext <<_ACEOF
  22371. -/* confdefs.h. */
  22372. -_ACEOF
  22373. -cat confdefs.h >>conftest.$ac_ext
  22374. -cat >>conftest.$ac_ext <<_ACEOF
  22375. -/* end confdefs.h. */
  22376. -#include <string.h>
  22377. -_ACEOF
  22378. -if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  22379. - $EGREP "memchr" >/dev/null 2>&1; then
  22380. - :
  22381. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
  22382. +$as_echo_n "checking how to recognize dependent libraries... " >&6; }
  22383. +if test "${lt_cv_deplibs_check_method+set}" = set; then :
  22384. + $as_echo_n "(cached) " >&6
  22385. else
  22386. - ac_cv_header_stdc=no
  22387. -fi
  22388. -rm -f conftest*
  22389. -
  22390. -fi
  22391. -
  22392. -if test $ac_cv_header_stdc = yes; then
  22393. - # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  22394. - cat >conftest.$ac_ext <<_ACEOF
  22395. -/* confdefs.h. */
  22396. -_ACEOF
  22397. -cat confdefs.h >>conftest.$ac_ext
  22398. -cat >>conftest.$ac_ext <<_ACEOF
  22399. -/* end confdefs.h. */
  22400. -#include <stdlib.h>
  22401. + lt_cv_file_magic_cmd='$MAGIC_CMD'
  22402. +lt_cv_file_magic_test_file=
  22403. +lt_cv_deplibs_check_method='unknown'
  22404. +# Need to set the preceding variable on all platforms that support
  22405. +# interlibrary dependencies.
  22406. +# 'none' -- dependencies not supported.
  22407. +# `unknown' -- same as none, but documents that we really don't know.
  22408. +# 'pass_all' -- all dependencies passed with no checks.
  22409. +# 'test_compile' -- check by making test program.
  22410. +# 'file_magic [[regex]]' -- check by looking for files in library path
  22411. +# which responds to the $file_magic_cmd with a given extended regex.
  22412. +# If you have `file' or equivalent on your system and you're not sure
  22413. +# whether `pass_all' will *always* work, you probably want this one.
  22414. -_ACEOF
  22415. -if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  22416. - $EGREP "free" >/dev/null 2>&1; then
  22417. - :
  22418. -else
  22419. - ac_cv_header_stdc=no
  22420. -fi
  22421. -rm -f conftest*
  22422. +case $host_os in
  22423. +aix[4-9]*)
  22424. + lt_cv_deplibs_check_method=pass_all
  22425. + ;;
  22426. -fi
  22427. +beos*)
  22428. + lt_cv_deplibs_check_method=pass_all
  22429. + ;;
  22430. -if test $ac_cv_header_stdc = yes; then
  22431. - # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  22432. - if test "$cross_compiling" = yes; then
  22433. - :
  22434. -else
  22435. - cat >conftest.$ac_ext <<_ACEOF
  22436. -/* confdefs.h. */
  22437. -_ACEOF
  22438. -cat confdefs.h >>conftest.$ac_ext
  22439. -cat >>conftest.$ac_ext <<_ACEOF
  22440. -/* end confdefs.h. */
  22441. -#include <ctype.h>
  22442. -#include <stdlib.h>
  22443. -#if ((' ' & 0x0FF) == 0x020)
  22444. -# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  22445. -# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  22446. -#else
  22447. -# define ISLOWER(c) \
  22448. - (('a' <= (c) && (c) <= 'i') \
  22449. - || ('j' <= (c) && (c) <= 'r') \
  22450. - || ('s' <= (c) && (c) <= 'z'))
  22451. -# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  22452. -#endif
  22453. +bsdi[45]*)
  22454. + lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  22455. + lt_cv_file_magic_cmd='/usr/bin/file -L'
  22456. + lt_cv_file_magic_test_file=/shlib/libc.so
  22457. + ;;
  22458. -#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  22459. -int
  22460. -main ()
  22461. -{
  22462. - int i;
  22463. - for (i = 0; i < 256; i++)
  22464. - if (XOR (islower (i), ISLOWER (i))
  22465. - || toupper (i) != TOUPPER (i))
  22466. - return 2;
  22467. - return 0;
  22468. -}
  22469. -_ACEOF
  22470. -rm -f conftest$ac_exeext
  22471. -if { (ac_try="$ac_link"
  22472. -case "(($ac_try" in
  22473. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  22474. - *) ac_try_echo=$ac_try;;
  22475. -esac
  22476. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  22477. - (eval "$ac_link") 2>&5
  22478. - ac_status=$?
  22479. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22480. - (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  22481. - { (case "(($ac_try" in
  22482. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  22483. - *) ac_try_echo=$ac_try;;
  22484. -esac
  22485. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  22486. - (eval "$ac_try") 2>&5
  22487. - ac_status=$?
  22488. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22489. - (exit $ac_status); }; }; then
  22490. - :
  22491. -else
  22492. - echo "$as_me: program exited with status $ac_status" >&5
  22493. -echo "$as_me: failed program was:" >&5
  22494. -sed 's/^/| /' conftest.$ac_ext >&5
  22495. +cygwin*)
  22496. + # func_win32_libid is a shell function defined in ltmain.sh
  22497. + lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  22498. + lt_cv_file_magic_cmd='func_win32_libid'
  22499. + ;;
  22500. -( exit $ac_status )
  22501. -ac_cv_header_stdc=no
  22502. -fi
  22503. -rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  22504. -fi
  22505. +mingw* | pw32*)
  22506. + # Base MSYS/MinGW do not provide the 'file' command needed by
  22507. + # func_win32_libid shell function, so use a weaker test based on 'objdump',
  22508. + # unless we find 'file', for example because we are cross-compiling.
  22509. + if ( file / ) >/dev/null 2>&1; then
  22510. + lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  22511. + lt_cv_file_magic_cmd='func_win32_libid'
  22512. + else
  22513. + lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
  22514. + lt_cv_file_magic_cmd='$OBJDUMP -f'
  22515. + fi
  22516. + ;;
  22517. +cegcc)
  22518. + # use the weaker test based on 'objdump'. See mingw*.
  22519. + lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  22520. + lt_cv_file_magic_cmd='$OBJDUMP -f'
  22521. + ;;
  22522. -fi
  22523. -fi
  22524. -{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
  22525. -echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
  22526. -if test $ac_cv_header_stdc = yes; then
  22527. +darwin* | rhapsody*)
  22528. + lt_cv_deplibs_check_method=pass_all
  22529. + ;;
  22530. -cat >>confdefs.h <<\_ACEOF
  22531. -#define STDC_HEADERS 1
  22532. -_ACEOF
  22533. +freebsd* | dragonfly*)
  22534. + if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  22535. + case $host_cpu in
  22536. + i*86 )
  22537. + # Not sure whether the presence of OpenBSD here was a mistake.
  22538. + # Let's accept both of them until this is cleared up.
  22539. + lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  22540. + lt_cv_file_magic_cmd=/usr/bin/file
  22541. + lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  22542. + ;;
  22543. + esac
  22544. + else
  22545. + lt_cv_deplibs_check_method=pass_all
  22546. + fi
  22547. + ;;
  22548. -fi
  22549. +gnu*)
  22550. + lt_cv_deplibs_check_method=pass_all
  22551. + ;;
  22552. -# On IRIX 5.3, sys/types and inttypes.h are conflicting.
  22553. +hpux10.20* | hpux11*)
  22554. + lt_cv_file_magic_cmd=/usr/bin/file
  22555. + case $host_cpu in
  22556. + ia64*)
  22557. + lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  22558. + lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  22559. + ;;
  22560. + hppa*64*)
  22561. + 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]'
  22562. + lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  22563. + ;;
  22564. + *)
  22565. + lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
  22566. + lt_cv_file_magic_test_file=/usr/lib/libc.sl
  22567. + ;;
  22568. + esac
  22569. + ;;
  22570. +interix[3-9]*)
  22571. + # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  22572. + lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  22573. + ;;
  22574. +irix5* | irix6* | nonstopux*)
  22575. + case $LD in
  22576. + *-32|*"-32 ") libmagic=32-bit;;
  22577. + *-n32|*"-n32 ") libmagic=N32;;
  22578. + *-64|*"-64 ") libmagic=64-bit;;
  22579. + *) libmagic=never-match;;
  22580. + esac
  22581. + lt_cv_deplibs_check_method=pass_all
  22582. + ;;
  22583. +# This must be Linux ELF.
  22584. +linux* | k*bsd*-gnu | kopensolaris*-gnu)
  22585. + lt_cv_deplibs_check_method=pass_all
  22586. + ;;
  22587. +netbsd* | netbsdelf*-gnu)
  22588. + if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  22589. + lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  22590. + else
  22591. + lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  22592. + fi
  22593. + ;;
  22594. +newos6*)
  22595. + lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  22596. + lt_cv_file_magic_cmd=/usr/bin/file
  22597. + lt_cv_file_magic_test_file=/usr/lib/libnls.so
  22598. + ;;
  22599. +*nto* | *qnx*)
  22600. + lt_cv_deplibs_check_method=pass_all
  22601. + ;;
  22602. +openbsd*)
  22603. + if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  22604. + lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  22605. + else
  22606. + lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  22607. + fi
  22608. + ;;
  22609. +osf3* | osf4* | osf5*)
  22610. + lt_cv_deplibs_check_method=pass_all
  22611. + ;;
  22612. -for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  22613. - inttypes.h stdint.h unistd.h
  22614. -do
  22615. -as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  22616. -{ echo "$as_me:$LINENO: checking for $ac_header" >&5
  22617. -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  22618. -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  22619. - echo $ECHO_N "(cached) $ECHO_C" >&6
  22620. -else
  22621. - cat >conftest.$ac_ext <<_ACEOF
  22622. -/* confdefs.h. */
  22623. -_ACEOF
  22624. -cat confdefs.h >>conftest.$ac_ext
  22625. -cat >>conftest.$ac_ext <<_ACEOF
  22626. -/* end confdefs.h. */
  22627. -$ac_includes_default
  22628. +rdos*)
  22629. + lt_cv_deplibs_check_method=pass_all
  22630. + ;;
  22631. -#include <$ac_header>
  22632. -_ACEOF
  22633. -rm -f conftest.$ac_objext
  22634. -if { (ac_try="$ac_compile"
  22635. -case "(($ac_try" in
  22636. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  22637. - *) ac_try_echo=$ac_try;;
  22638. -esac
  22639. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  22640. - (eval "$ac_compile") 2>conftest.er1
  22641. - ac_status=$?
  22642. - grep -v '^ *+' conftest.er1 >conftest.err
  22643. - rm -f conftest.er1
  22644. - cat conftest.err >&5
  22645. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22646. - (exit $ac_status); } &&
  22647. - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  22648. - { (case "(($ac_try" in
  22649. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  22650. - *) ac_try_echo=$ac_try;;
  22651. -esac
  22652. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  22653. - (eval "$ac_try") 2>&5
  22654. - ac_status=$?
  22655. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22656. - (exit $ac_status); }; } &&
  22657. - { ac_try='test -s conftest.$ac_objext'
  22658. - { (case "(($ac_try" in
  22659. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  22660. - *) ac_try_echo=$ac_try;;
  22661. -esac
  22662. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  22663. - (eval "$ac_try") 2>&5
  22664. - ac_status=$?
  22665. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22666. - (exit $ac_status); }; }; then
  22667. - eval "$as_ac_Header=yes"
  22668. -else
  22669. - echo "$as_me: failed program was:" >&5
  22670. -sed 's/^/| /' conftest.$ac_ext >&5
  22671. +solaris*)
  22672. + lt_cv_deplibs_check_method=pass_all
  22673. + ;;
  22674. - eval "$as_ac_Header=no"
  22675. -fi
  22676. +sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  22677. + lt_cv_deplibs_check_method=pass_all
  22678. + ;;
  22679. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  22680. -fi
  22681. -ac_res=`eval echo '${'$as_ac_Header'}'`
  22682. - { echo "$as_me:$LINENO: result: $ac_res" >&5
  22683. -echo "${ECHO_T}$ac_res" >&6; }
  22684. -if test `eval echo '${'$as_ac_Header'}'` = yes; then
  22685. - cat >>confdefs.h <<_ACEOF
  22686. -#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  22687. -_ACEOF
  22688. +sysv4 | sysv4.3*)
  22689. + case $host_vendor in
  22690. + motorola)
  22691. + 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]'
  22692. + lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  22693. + ;;
  22694. + ncr)
  22695. + lt_cv_deplibs_check_method=pass_all
  22696. + ;;
  22697. + sequent)
  22698. + lt_cv_file_magic_cmd='/bin/file'
  22699. + lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  22700. + ;;
  22701. + sni)
  22702. + lt_cv_file_magic_cmd='/bin/file'
  22703. + lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  22704. + lt_cv_file_magic_test_file=/lib/libc.so
  22705. + ;;
  22706. + siemens)
  22707. + lt_cv_deplibs_check_method=pass_all
  22708. + ;;
  22709. + pc)
  22710. + lt_cv_deplibs_check_method=pass_all
  22711. + ;;
  22712. + esac
  22713. + ;;
  22714. +
  22715. +tpf*)
  22716. + lt_cv_deplibs_check_method=pass_all
  22717. + ;;
  22718. +esac
  22719. fi
  22720. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
  22721. +$as_echo "$lt_cv_deplibs_check_method" >&6; }
  22722. +file_magic_cmd=$lt_cv_file_magic_cmd
  22723. +deplibs_check_method=$lt_cv_deplibs_check_method
  22724. +test -z "$deplibs_check_method" && deplibs_check_method=unknown
  22725. -done
  22726. -for ac_header in dlfcn.h
  22727. -do
  22728. -as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  22729. -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  22730. - { echo "$as_me:$LINENO: checking for $ac_header" >&5
  22731. -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  22732. -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  22733. - echo $ECHO_N "(cached) $ECHO_C" >&6
  22734. -fi
  22735. -ac_res=`eval echo '${'$as_ac_Header'}'`
  22736. - { echo "$as_me:$LINENO: result: $ac_res" >&5
  22737. -echo "${ECHO_T}$ac_res" >&6; }
  22738. +
  22739. +
  22740. +
  22741. +
  22742. +
  22743. +
  22744. +
  22745. +
  22746. +if test -n "$ac_tool_prefix"; then
  22747. + # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
  22748. +set dummy ${ac_tool_prefix}ar; ac_word=$2
  22749. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  22750. +$as_echo_n "checking for $ac_word... " >&6; }
  22751. +if test "${ac_cv_prog_AR+set}" = set; then :
  22752. + $as_echo_n "(cached) " >&6
  22753. else
  22754. - # Is the header compilable?
  22755. -{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
  22756. -echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  22757. -cat >conftest.$ac_ext <<_ACEOF
  22758. -/* confdefs.h. */
  22759. -_ACEOF
  22760. -cat confdefs.h >>conftest.$ac_ext
  22761. -cat >>conftest.$ac_ext <<_ACEOF
  22762. -/* end confdefs.h. */
  22763. -$ac_includes_default
  22764. -#include <$ac_header>
  22765. -_ACEOF
  22766. -rm -f conftest.$ac_objext
  22767. -if { (ac_try="$ac_compile"
  22768. -case "(($ac_try" in
  22769. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  22770. - *) ac_try_echo=$ac_try;;
  22771. -esac
  22772. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  22773. - (eval "$ac_compile") 2>conftest.er1
  22774. - ac_status=$?
  22775. - grep -v '^ *+' conftest.er1 >conftest.err
  22776. - rm -f conftest.er1
  22777. - cat conftest.err >&5
  22778. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22779. - (exit $ac_status); } &&
  22780. - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  22781. - { (case "(($ac_try" in
  22782. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  22783. - *) ac_try_echo=$ac_try;;
  22784. -esac
  22785. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  22786. - (eval "$ac_try") 2>&5
  22787. - ac_status=$?
  22788. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22789. - (exit $ac_status); }; } &&
  22790. - { ac_try='test -s conftest.$ac_objext'
  22791. - { (case "(($ac_try" in
  22792. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  22793. - *) ac_try_echo=$ac_try;;
  22794. -esac
  22795. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  22796. - (eval "$ac_try") 2>&5
  22797. - ac_status=$?
  22798. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22799. - (exit $ac_status); }; }; then
  22800. - ac_header_compiler=yes
  22801. + if test -n "$AR"; then
  22802. + ac_cv_prog_AR="$AR" # Let the user override the test.
  22803. else
  22804. - echo "$as_me: failed program was:" >&5
  22805. -sed 's/^/| /' conftest.$ac_ext >&5
  22806. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  22807. +for as_dir in $PATH
  22808. +do
  22809. + IFS=$as_save_IFS
  22810. + test -z "$as_dir" && as_dir=.
  22811. + for ac_exec_ext in '' $ac_executable_extensions; do
  22812. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  22813. + ac_cv_prog_AR="${ac_tool_prefix}ar"
  22814. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  22815. + break 2
  22816. + fi
  22817. +done
  22818. + done
  22819. +IFS=$as_save_IFS
  22820. - ac_header_compiler=no
  22821. +fi
  22822. +fi
  22823. +AR=$ac_cv_prog_AR
  22824. +if test -n "$AR"; then
  22825. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  22826. +$as_echo "$AR" >&6; }
  22827. +else
  22828. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  22829. +$as_echo "no" >&6; }
  22830. fi
  22831. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  22832. -{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  22833. -echo "${ECHO_T}$ac_header_compiler" >&6; }
  22834. -# Is the header present?
  22835. -{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
  22836. -echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  22837. -cat >conftest.$ac_ext <<_ACEOF
  22838. -/* confdefs.h. */
  22839. -_ACEOF
  22840. -cat confdefs.h >>conftest.$ac_ext
  22841. -cat >>conftest.$ac_ext <<_ACEOF
  22842. -/* end confdefs.h. */
  22843. -#include <$ac_header>
  22844. -_ACEOF
  22845. -if { (ac_try="$ac_cpp conftest.$ac_ext"
  22846. -case "(($ac_try" in
  22847. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  22848. - *) ac_try_echo=$ac_try;;
  22849. -esac
  22850. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  22851. - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  22852. - ac_status=$?
  22853. - grep -v '^ *+' conftest.er1 >conftest.err
  22854. - rm -f conftest.er1
  22855. - cat conftest.err >&5
  22856. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22857. - (exit $ac_status); } >/dev/null; then
  22858. - if test -s conftest.err; then
  22859. - ac_cpp_err=$ac_c_preproc_warn_flag
  22860. - ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  22861. - else
  22862. - ac_cpp_err=
  22863. - fi
  22864. -else
  22865. - ac_cpp_err=yes
  22866. fi
  22867. -if test -z "$ac_cpp_err"; then
  22868. - ac_header_preproc=yes
  22869. +if test -z "$ac_cv_prog_AR"; then
  22870. + ac_ct_AR=$AR
  22871. + # Extract the first word of "ar", so it can be a program name with args.
  22872. +set dummy ar; ac_word=$2
  22873. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  22874. +$as_echo_n "checking for $ac_word... " >&6; }
  22875. +if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
  22876. + $as_echo_n "(cached) " >&6
  22877. else
  22878. - echo "$as_me: failed program was:" >&5
  22879. -sed 's/^/| /' conftest.$ac_ext >&5
  22880. + if test -n "$ac_ct_AR"; then
  22881. + ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  22882. +else
  22883. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  22884. +for as_dir in $PATH
  22885. +do
  22886. + IFS=$as_save_IFS
  22887. + test -z "$as_dir" && as_dir=.
  22888. + for ac_exec_ext in '' $ac_executable_extensions; do
  22889. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  22890. + ac_cv_prog_ac_ct_AR="ar"
  22891. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  22892. + break 2
  22893. + fi
  22894. +done
  22895. + done
  22896. +IFS=$as_save_IFS
  22897. - ac_header_preproc=no
  22898. +fi
  22899. +fi
  22900. +ac_ct_AR=$ac_cv_prog_ac_ct_AR
  22901. +if test -n "$ac_ct_AR"; then
  22902. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  22903. +$as_echo "$ac_ct_AR" >&6; }
  22904. +else
  22905. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  22906. +$as_echo "no" >&6; }
  22907. fi
  22908. -rm -f conftest.err conftest.$ac_ext
  22909. -{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  22910. -echo "${ECHO_T}$ac_header_preproc" >&6; }
  22911. -
  22912. -# So? What about this header?
  22913. -case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  22914. - yes:no: )
  22915. - { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  22916. -echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  22917. - { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  22918. -echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  22919. - ac_header_preproc=yes
  22920. - ;;
  22921. - no:yes:* )
  22922. - { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  22923. -echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  22924. - { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  22925. -echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  22926. - { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  22927. -echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  22928. - { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  22929. -echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  22930. - { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  22931. -echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  22932. - { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  22933. -echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  22934. - ( cat <<\_ASBOX
  22935. -## -------------------------------------- ##
  22936. -## Report this to nfsv4-wg@citi.umich.edu ##
  22937. -## -------------------------------------- ##
  22938. -_ASBOX
  22939. - ) | sed "s/^/$as_me: WARNING: /" >&2
  22940. - ;;
  22941. + if test "x$ac_ct_AR" = x; then
  22942. + AR="false"
  22943. + else
  22944. + case $cross_compiling:$ac_tool_warned in
  22945. +yes:)
  22946. +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  22947. +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  22948. +ac_tool_warned=yes ;;
  22949. esac
  22950. -{ echo "$as_me:$LINENO: checking for $ac_header" >&5
  22951. -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  22952. -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  22953. - echo $ECHO_N "(cached) $ECHO_C" >&6
  22954. + AR=$ac_ct_AR
  22955. + fi
  22956. else
  22957. - eval "$as_ac_Header=\$ac_header_preproc"
  22958. + AR="$ac_cv_prog_AR"
  22959. fi
  22960. -ac_res=`eval echo '${'$as_ac_Header'}'`
  22961. - { echo "$as_me:$LINENO: result: $ac_res" >&5
  22962. -echo "${ECHO_T}$ac_res" >&6; }
  22963. -fi
  22964. -if test `eval echo '${'$as_ac_Header'}'` = yes; then
  22965. - cat >>confdefs.h <<_ACEOF
  22966. -#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  22967. -_ACEOF
  22968. +test -z "$AR" && AR=ar
  22969. +test -z "$AR_FLAGS" && AR_FLAGS=cru
  22970. -fi
  22971. -done
  22972. -ac_ext=cpp
  22973. -ac_cpp='$CXXCPP $CPPFLAGS'
  22974. -ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  22975. -ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  22976. -ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  22977. -if test -z "$CXX"; then
  22978. - if test -n "$CCC"; then
  22979. - CXX=$CCC
  22980. - else
  22981. - if test -n "$ac_tool_prefix"; then
  22982. - for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  22983. - do
  22984. - # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  22985. -set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  22986. -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
  22987. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  22988. -if test "${ac_cv_prog_CXX+set}" = set; then
  22989. - echo $ECHO_N "(cached) $ECHO_C" >&6
  22990. +
  22991. +
  22992. +
  22993. +
  22994. +
  22995. +
  22996. +
  22997. +
  22998. +if test -n "$ac_tool_prefix"; then
  22999. + # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  23000. +set dummy ${ac_tool_prefix}strip; ac_word=$2
  23001. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  23002. +$as_echo_n "checking for $ac_word... " >&6; }
  23003. +if test "${ac_cv_prog_STRIP+set}" = set; then :
  23004. + $as_echo_n "(cached) " >&6
  23005. else
  23006. - if test -n "$CXX"; then
  23007. - ac_cv_prog_CXX="$CXX" # Let the user override the test.
  23008. + if test -n "$STRIP"; then
  23009. + ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  23010. else
  23011. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  23012. for as_dir in $PATH
  23013. do
  23014. IFS=$as_save_IFS
  23015. test -z "$as_dir" && as_dir=.
  23016. - for ac_exec_ext in '' $ac_executable_extensions; do
  23017. - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
  23018. - ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  23019. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  23020. + for ac_exec_ext in '' $ac_executable_extensions; do
  23021. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  23022. + ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  23023. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  23024. break 2
  23025. fi
  23026. done
  23027. -done
  23028. + done
  23029. IFS=$as_save_IFS
  23030. fi
  23031. fi
  23032. -CXX=$ac_cv_prog_CXX
  23033. -if test -n "$CXX"; then
  23034. - { echo "$as_me:$LINENO: result: $CXX" >&5
  23035. -echo "${ECHO_T}$CXX" >&6; }
  23036. +STRIP=$ac_cv_prog_STRIP
  23037. +if test -n "$STRIP"; then
  23038. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  23039. +$as_echo "$STRIP" >&6; }
  23040. else
  23041. - { echo "$as_me:$LINENO: result: no" >&5
  23042. -echo "${ECHO_T}no" >&6; }
  23043. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  23044. +$as_echo "no" >&6; }
  23045. fi
  23046. - test -n "$CXX" && break
  23047. - done
  23048. fi
  23049. -if test -z "$CXX"; then
  23050. - ac_ct_CXX=$CXX
  23051. - for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  23052. -do
  23053. - # Extract the first word of "$ac_prog", so it can be a program name with args.
  23054. -set dummy $ac_prog; ac_word=$2
  23055. -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
  23056. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  23057. -if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
  23058. - echo $ECHO_N "(cached) $ECHO_C" >&6
  23059. +if test -z "$ac_cv_prog_STRIP"; then
  23060. + ac_ct_STRIP=$STRIP
  23061. + # Extract the first word of "strip", so it can be a program name with args.
  23062. +set dummy strip; ac_word=$2
  23063. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  23064. +$as_echo_n "checking for $ac_word... " >&6; }
  23065. +if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
  23066. + $as_echo_n "(cached) " >&6
  23067. else
  23068. - if test -n "$ac_ct_CXX"; then
  23069. - ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  23070. + if test -n "$ac_ct_STRIP"; then
  23071. + ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  23072. else
  23073. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  23074. for as_dir in $PATH
  23075. do
  23076. IFS=$as_save_IFS
  23077. test -z "$as_dir" && as_dir=.
  23078. - for ac_exec_ext in '' $ac_executable_extensions; do
  23079. - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
  23080. - ac_cv_prog_ac_ct_CXX="$ac_prog"
  23081. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  23082. + for ac_exec_ext in '' $ac_executable_extensions; do
  23083. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  23084. + ac_cv_prog_ac_ct_STRIP="strip"
  23085. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  23086. break 2
  23087. fi
  23088. done
  23089. -done
  23090. + done
  23091. IFS=$as_save_IFS
  23092. fi
  23093. fi
  23094. -ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  23095. -if test -n "$ac_ct_CXX"; then
  23096. - { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
  23097. -echo "${ECHO_T}$ac_ct_CXX" >&6; }
  23098. +ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  23099. +if test -n "$ac_ct_STRIP"; then
  23100. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  23101. +$as_echo "$ac_ct_STRIP" >&6; }
  23102. else
  23103. - { echo "$as_me:$LINENO: result: no" >&5
  23104. -echo "${ECHO_T}no" >&6; }
  23105. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  23106. +$as_echo "no" >&6; }
  23107. fi
  23108. -
  23109. - test -n "$ac_ct_CXX" && break
  23110. -done
  23111. -
  23112. - if test "x$ac_ct_CXX" = x; then
  23113. - CXX="g++"
  23114. + if test "x$ac_ct_STRIP" = x; then
  23115. + STRIP=":"
  23116. else
  23117. case $cross_compiling:$ac_tool_warned in
  23118. yes:)
  23119. -{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  23120. -whose name does not start with the host triplet. If you think this
  23121. -configuration is useful to you, please write to autoconf@gnu.org." >&5
  23122. -echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  23123. -whose name does not start with the host triplet. If you think this
  23124. -configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  23125. +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  23126. +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  23127. ac_tool_warned=yes ;;
  23128. esac
  23129. - CXX=$ac_ct_CXX
  23130. + STRIP=$ac_ct_STRIP
  23131. fi
  23132. +else
  23133. + STRIP="$ac_cv_prog_STRIP"
  23134. fi
  23135. - fi
  23136. -fi
  23137. -# Provide some information about the compiler.
  23138. -echo "$as_me:$LINENO: checking for C++ compiler version" >&5
  23139. -ac_compiler=`set X $ac_compile; echo $2`
  23140. -{ (ac_try="$ac_compiler --version >&5"
  23141. -case "(($ac_try" in
  23142. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  23143. - *) ac_try_echo=$ac_try;;
  23144. -esac
  23145. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  23146. - (eval "$ac_compiler --version >&5") 2>&5
  23147. - ac_status=$?
  23148. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23149. - (exit $ac_status); }
  23150. -{ (ac_try="$ac_compiler -v >&5"
  23151. -case "(($ac_try" in
  23152. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  23153. - *) ac_try_echo=$ac_try;;
  23154. -esac
  23155. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  23156. - (eval "$ac_compiler -v >&5") 2>&5
  23157. - ac_status=$?
  23158. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23159. - (exit $ac_status); }
  23160. -{ (ac_try="$ac_compiler -V >&5"
  23161. -case "(($ac_try" in
  23162. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  23163. - *) ac_try_echo=$ac_try;;
  23164. -esac
  23165. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  23166. - (eval "$ac_compiler -V >&5") 2>&5
  23167. - ac_status=$?
  23168. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23169. - (exit $ac_status); }
  23170. +test -z "$STRIP" && STRIP=:
  23171. -{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
  23172. -echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
  23173. -if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
  23174. - echo $ECHO_N "(cached) $ECHO_C" >&6
  23175. -else
  23176. - cat >conftest.$ac_ext <<_ACEOF
  23177. -/* confdefs.h. */
  23178. -_ACEOF
  23179. -cat confdefs.h >>conftest.$ac_ext
  23180. -cat >>conftest.$ac_ext <<_ACEOF
  23181. -/* end confdefs.h. */
  23182. -int
  23183. -main ()
  23184. -{
  23185. -#ifndef __GNUC__
  23186. - choke me
  23187. -#endif
  23188. - ;
  23189. - return 0;
  23190. -}
  23191. -_ACEOF
  23192. -rm -f conftest.$ac_objext
  23193. -if { (ac_try="$ac_compile"
  23194. -case "(($ac_try" in
  23195. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  23196. - *) ac_try_echo=$ac_try;;
  23197. -esac
  23198. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  23199. - (eval "$ac_compile") 2>conftest.er1
  23200. - ac_status=$?
  23201. - grep -v '^ *+' conftest.er1 >conftest.err
  23202. - rm -f conftest.er1
  23203. - cat conftest.err >&5
  23204. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23205. - (exit $ac_status); } &&
  23206. - { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  23207. - { (case "(($ac_try" in
  23208. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  23209. - *) ac_try_echo=$ac_try;;
  23210. -esac
  23211. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  23212. - (eval "$ac_try") 2>&5
  23213. - ac_status=$?
  23214. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23215. - (exit $ac_status); }; } &&
  23216. - { ac_try='test -s conftest.$ac_objext'
  23217. - { (case "(($ac_try" in
  23218. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  23219. - *) ac_try_echo=$ac_try;;
  23220. -esac
  23221. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  23222. - (eval "$ac_try") 2>&5
  23223. - ac_status=$?
  23224. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23225. - (exit $ac_status); }; }; then
  23226. - ac_compiler_gnu=yes
  23227. +
  23228. +
  23229. +
  23230. +if test -n "$ac_tool_prefix"; then
  23231. + # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  23232. +set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  23233. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  23234. +$as_echo_n "checking for $ac_word... " >&6; }
  23235. +if test "${ac_cv_prog_RANLIB+set}" = set; then :
  23236. + $as_echo_n "(cached) " >&6
  23237. else
  23238. - echo "$as_me: failed program was:" >&5
  23239. -sed 's/^/| /' conftest.$ac_ext >&5
  23240. + if test -n "$RANLIB"; then
  23241. + ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  23242. +else
  23243. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  23244. +for as_dir in $PATH
  23245. +do
  23246. + IFS=$as_save_IFS
  23247. + test -z "$as_dir" && as_dir=.
  23248. + for ac_exec_ext in '' $ac_executable_extensions; do
  23249. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  23250. + ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  23251. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  23252. + break 2
  23253. + fi
  23254. +done
  23255. + done
  23256. +IFS=$as_save_IFS
  23257. - ac_compiler_gnu=no
  23258. +fi
  23259. +fi
  23260. +RANLIB=$ac_cv_prog_RANLIB
  23261. +if test -n "$RANLIB"; then
  23262. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  23263. +$as_echo "$RANLIB" >&6; }
  23264. +else
  23265. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  23266. +$as_echo "no" >&6; }
  23267. fi
  23268. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  23269. -ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  23270. fi
  23271. -{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
  23272. -echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
  23273. -GXX=`test $ac_compiler_gnu = yes && echo yes`
  23274. -ac_test_CXXFLAGS=${CXXFLAGS+set}
  23275. -ac_save_CXXFLAGS=$CXXFLAGS
  23276. -{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
  23277. -echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
  23278. -if test "${ac_cv_prog_cxx_g+set}" = set; then
  23279. - echo $ECHO_N "(cached) $ECHO_C" >&6
  23280. -else
  23281. - ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  23282. - ac_cxx_werror_flag=yes
  23283. - ac_cv_prog_cxx_g=no
  23284. - CXXFLAGS="-g"
  23285. - cat >conftest.$ac_ext <<_ACEOF
  23286. -/* confdefs.h. */
  23287. -_ACEOF
  23288. -cat confdefs.h >>conftest.$ac_ext
  23289. -cat >>conftest.$ac_ext <<_ACEOF
  23290. -/* end confdefs.h. */
  23291. +if test -z "$ac_cv_prog_RANLIB"; then
  23292. + ac_ct_RANLIB=$RANLIB
  23293. + # Extract the first word of "ranlib", so it can be a program name with args.
  23294. +set dummy ranlib; ac_word=$2
  23295. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  23296. +$as_echo_n "checking for $ac_word... " >&6; }
  23297. +if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
  23298. + $as_echo_n "(cached) " >&6
  23299. +else
  23300. + if test -n "$ac_ct_RANLIB"; then
  23301. + ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  23302. +else
  23303. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  23304. +for as_dir in $PATH
  23305. +do
  23306. + IFS=$as_save_IFS
  23307. + test -z "$as_dir" && as_dir=.
  23308. + for ac_exec_ext in '' $ac_executable_extensions; do
  23309. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  23310. + ac_cv_prog_ac_ct_RANLIB="ranlib"
  23311. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  23312. + break 2
  23313. + fi
  23314. +done
  23315. + done
  23316. +IFS=$as_save_IFS
  23317. -int
  23318. -main ()
  23319. -{
  23320. +fi
  23321. +fi
  23322. +ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  23323. +if test -n "$ac_ct_RANLIB"; then
  23324. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  23325. +$as_echo "$ac_ct_RANLIB" >&6; }
  23326. +else
  23327. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  23328. +$as_echo "no" >&6; }
  23329. +fi
  23330. - ;
  23331. - return 0;
  23332. -}
  23333. -_ACEOF
  23334. -rm -f conftest.$ac_objext
  23335. -if { (ac_try="$ac_compile"
  23336. -case "(($ac_try" in
  23337. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  23338. - *) ac_try_echo=$ac_try;;
  23339. -esac
  23340. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  23341. - (eval "$ac_compile") 2>conftest.er1
  23342. - ac_status=$?
  23343. - grep -v '^ *+' conftest.er1 >conftest.err
  23344. - rm -f conftest.er1
  23345. - cat conftest.err >&5
  23346. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23347. - (exit $ac_status); } &&
  23348. - { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  23349. - { (case "(($ac_try" in
  23350. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  23351. - *) ac_try_echo=$ac_try;;
  23352. -esac
  23353. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  23354. - (eval "$ac_try") 2>&5
  23355. - ac_status=$?
  23356. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23357. - (exit $ac_status); }; } &&
  23358. - { ac_try='test -s conftest.$ac_objext'
  23359. - { (case "(($ac_try" in
  23360. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  23361. - *) ac_try_echo=$ac_try;;
  23362. + if test "x$ac_ct_RANLIB" = x; then
  23363. + RANLIB=":"
  23364. + else
  23365. + case $cross_compiling:$ac_tool_warned in
  23366. +yes:)
  23367. +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  23368. +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  23369. +ac_tool_warned=yes ;;
  23370. esac
  23371. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  23372. - (eval "$ac_try") 2>&5
  23373. - ac_status=$?
  23374. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23375. - (exit $ac_status); }; }; then
  23376. - ac_cv_prog_cxx_g=yes
  23377. + RANLIB=$ac_ct_RANLIB
  23378. + fi
  23379. else
  23380. - echo "$as_me: failed program was:" >&5
  23381. -sed 's/^/| /' conftest.$ac_ext >&5
  23382. + RANLIB="$ac_cv_prog_RANLIB"
  23383. +fi
  23384. - CXXFLAGS=""
  23385. - cat >conftest.$ac_ext <<_ACEOF
  23386. -/* confdefs.h. */
  23387. -_ACEOF
  23388. -cat confdefs.h >>conftest.$ac_ext
  23389. -cat >>conftest.$ac_ext <<_ACEOF
  23390. -/* end confdefs.h. */
  23391. +test -z "$RANLIB" && RANLIB=:
  23392. -int
  23393. -main ()
  23394. -{
  23395. - ;
  23396. - return 0;
  23397. -}
  23398. -_ACEOF
  23399. -rm -f conftest.$ac_objext
  23400. -if { (ac_try="$ac_compile"
  23401. -case "(($ac_try" in
  23402. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  23403. - *) ac_try_echo=$ac_try;;
  23404. -esac
  23405. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  23406. - (eval "$ac_compile") 2>conftest.er1
  23407. - ac_status=$?
  23408. - grep -v '^ *+' conftest.er1 >conftest.err
  23409. - rm -f conftest.er1
  23410. - cat conftest.err >&5
  23411. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23412. - (exit $ac_status); } &&
  23413. - { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  23414. - { (case "(($ac_try" in
  23415. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  23416. - *) ac_try_echo=$ac_try;;
  23417. -esac
  23418. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  23419. - (eval "$ac_try") 2>&5
  23420. - ac_status=$?
  23421. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23422. - (exit $ac_status); }; } &&
  23423. - { ac_try='test -s conftest.$ac_objext'
  23424. - { (case "(($ac_try" in
  23425. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  23426. - *) ac_try_echo=$ac_try;;
  23427. -esac
  23428. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  23429. - (eval "$ac_try") 2>&5
  23430. - ac_status=$?
  23431. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23432. - (exit $ac_status); }; }; then
  23433. - :
  23434. -else
  23435. - echo "$as_me: failed program was:" >&5
  23436. -sed 's/^/| /' conftest.$ac_ext >&5
  23437. - ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  23438. - CXXFLAGS="-g"
  23439. - cat >conftest.$ac_ext <<_ACEOF
  23440. -/* confdefs.h. */
  23441. -_ACEOF
  23442. -cat confdefs.h >>conftest.$ac_ext
  23443. -cat >>conftest.$ac_ext <<_ACEOF
  23444. -/* end confdefs.h. */
  23445. -int
  23446. -main ()
  23447. -{
  23448. - ;
  23449. - return 0;
  23450. -}
  23451. -_ACEOF
  23452. -rm -f conftest.$ac_objext
  23453. -if { (ac_try="$ac_compile"
  23454. -case "(($ac_try" in
  23455. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  23456. - *) ac_try_echo=$ac_try;;
  23457. -esac
  23458. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  23459. - (eval "$ac_compile") 2>conftest.er1
  23460. - ac_status=$?
  23461. - grep -v '^ *+' conftest.er1 >conftest.err
  23462. - rm -f conftest.er1
  23463. - cat conftest.err >&5
  23464. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23465. - (exit $ac_status); } &&
  23466. - { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  23467. - { (case "(($ac_try" in
  23468. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  23469. - *) ac_try_echo=$ac_try;;
  23470. -esac
  23471. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  23472. - (eval "$ac_try") 2>&5
  23473. - ac_status=$?
  23474. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23475. - (exit $ac_status); }; } &&
  23476. - { ac_try='test -s conftest.$ac_objext'
  23477. - { (case "(($ac_try" in
  23478. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  23479. - *) ac_try_echo=$ac_try;;
  23480. -esac
  23481. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  23482. - (eval "$ac_try") 2>&5
  23483. - ac_status=$?
  23484. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23485. - (exit $ac_status); }; }; then
  23486. - ac_cv_prog_cxx_g=yes
  23487. -else
  23488. - echo "$as_me: failed program was:" >&5
  23489. -sed 's/^/| /' conftest.$ac_ext >&5
  23490. +# Determine commands to create old-style static archives.
  23491. +old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  23492. +old_postinstall_cmds='chmod 644 $oldlib'
  23493. +old_postuninstall_cmds=
  23494. +if test -n "$RANLIB"; then
  23495. + case $host_os in
  23496. + openbsd*)
  23497. + old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
  23498. + ;;
  23499. + *)
  23500. + old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
  23501. + ;;
  23502. + esac
  23503. + old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
  23504. fi
  23505. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  23506. -fi
  23507. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  23508. -fi
  23509. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  23510. - ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  23511. -fi
  23512. -{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
  23513. -echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
  23514. -if test "$ac_test_CXXFLAGS" = set; then
  23515. - CXXFLAGS=$ac_save_CXXFLAGS
  23516. -elif test $ac_cv_prog_cxx_g = yes; then
  23517. - if test "$GXX" = yes; then
  23518. - CXXFLAGS="-g -O2"
  23519. - else
  23520. - CXXFLAGS="-g"
  23521. - fi
  23522. -else
  23523. - if test "$GXX" = yes; then
  23524. - CXXFLAGS="-O2"
  23525. - else
  23526. - CXXFLAGS=
  23527. - fi
  23528. -fi
  23529. -ac_ext=cpp
  23530. -ac_cpp='$CXXCPP $CPPFLAGS'
  23531. -ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  23532. -ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  23533. -ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  23534. -depcc="$CXX" am_compiler_list=
  23535. -{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
  23536. -echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
  23537. -if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
  23538. - echo $ECHO_N "(cached) $ECHO_C" >&6
  23539. -else
  23540. - if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  23541. - # We make a subdir and do the tests there. Otherwise we can end up
  23542. - # making bogus files that we don't know about and never remove. For
  23543. - # instance it was reported that on HP-UX the gcc test will end up
  23544. - # making a dummy file named `D' -- because `-MD' means `put the output
  23545. - # in D'.
  23546. - mkdir conftest.dir
  23547. - # Copy depcomp to subdir because otherwise we won't find it if we're
  23548. - # using a relative directory.
  23549. - cp "$am_depcomp" conftest.dir
  23550. - cd conftest.dir
  23551. - # We will build objects and dependencies in a subdirectory because
  23552. - # it helps to detect inapplicable dependency modes. For instance
  23553. - # both Tru64's cc and ICC support -MD to output dependencies as a
  23554. - # side effect of compilation, but ICC will put the dependencies in
  23555. - # the current directory while Tru64 will put them in the object
  23556. - # directory.
  23557. - mkdir sub
  23558. - am_cv_CXX_dependencies_compiler_type=none
  23559. - if test "$am_compiler_list" = ""; then
  23560. - am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  23561. - fi
  23562. - for depmode in $am_compiler_list; do
  23563. - # Setup a source with many dependencies, because some compilers
  23564. - # like to wrap large dependency lists on column 80 (with \), and
  23565. - # we should not choose a depcomp mode which is confused by this.
  23566. - #
  23567. - # We need to recreate these files for each test, as the compiler may
  23568. - # overwrite some of them when testing with obscure command lines.
  23569. - # This happens at least with the AIX C compiler.
  23570. - : > sub/conftest.c
  23571. - for i in 1 2 3 4 5 6; do
  23572. - echo '#include "conftst'$i'.h"' >> sub/conftest.c
  23573. - # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  23574. - # Solaris 8's {/usr,}/bin/sh.
  23575. - touch sub/conftst$i.h
  23576. - done
  23577. - echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  23578. - case $depmode in
  23579. - nosideeffect)
  23580. - # after this tag, mechanisms are not by side-effect, so they'll
  23581. - # only be used when explicitly requested
  23582. - if test "x$enable_dependency_tracking" = xyes; then
  23583. - continue
  23584. - else
  23585. - break
  23586. - fi
  23587. - ;;
  23588. - none) break ;;
  23589. - esac
  23590. - # We check with `-c' and `-o' for the sake of the "dashmstdout"
  23591. - # mode. It turns out that the SunPro C++ compiler does not properly
  23592. - # handle `-M -o', and we need to detect this.
  23593. - if depmode=$depmode \
  23594. - source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
  23595. - depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  23596. - $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
  23597. - >/dev/null 2>conftest.err &&
  23598. - grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  23599. - grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
  23600. - ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  23601. - # icc doesn't choke on unknown options, it will just issue warnings
  23602. - # or remarks (even with -Werror). So we grep stderr for any message
  23603. - # that says an option was ignored or not supported.
  23604. - # When given -MP, icc 7.0 and 7.1 complain thusly:
  23605. - # icc: Command line warning: ignoring option '-M'; no argument required
  23606. - # The diagnosis changed in icc 8.0:
  23607. - # icc: Command line remark: option '-MP' not supported
  23608. - if (grep 'ignoring option' conftest.err ||
  23609. - grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  23610. - am_cv_CXX_dependencies_compiler_type=$depmode
  23611. - break
  23612. - fi
  23613. - fi
  23614. - done
  23615. - cd ..
  23616. - rm -rf conftest.dir
  23617. -else
  23618. - am_cv_CXX_dependencies_compiler_type=none
  23619. -fi
  23620. -fi
  23621. -{ echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
  23622. -echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
  23623. -CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
  23624. -if
  23625. - test "x$enable_dependency_tracking" != xno \
  23626. - && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
  23627. - am__fastdepCXX_TRUE=
  23628. - am__fastdepCXX_FALSE='#'
  23629. -else
  23630. - am__fastdepCXX_TRUE='#'
  23631. - am__fastdepCXX_FALSE=
  23632. -fi
  23633. -if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
  23634. - ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
  23635. - (test "X$CXX" != "Xg++"))) ; then
  23636. - ac_ext=cpp
  23637. -ac_cpp='$CXXCPP $CPPFLAGS'
  23638. -ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  23639. -ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  23640. -ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  23641. -{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
  23642. -echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
  23643. -if test -z "$CXXCPP"; then
  23644. - if test "${ac_cv_prog_CXXCPP+set}" = set; then
  23645. - echo $ECHO_N "(cached) $ECHO_C" >&6
  23646. -else
  23647. - # Double quotes because CXXCPP needs to be expanded
  23648. - for CXXCPP in "$CXX -E" "/lib/cpp"
  23649. - do
  23650. - ac_preproc_ok=false
  23651. -for ac_cxx_preproc_warn_flag in '' yes
  23652. -do
  23653. - # Use a header file that comes with gcc, so configuring glibc
  23654. - # with a fresh cross-compiler works.
  23655. - # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  23656. - # <limits.h> exists even on freestanding compilers.
  23657. - # On the NeXT, cc -E runs the code through the compiler's parser,
  23658. - # not just through cpp. "Syntax error" is here to catch this case.
  23659. - cat >conftest.$ac_ext <<_ACEOF
  23660. -/* confdefs.h. */
  23661. -_ACEOF
  23662. -cat confdefs.h >>conftest.$ac_ext
  23663. -cat >>conftest.$ac_ext <<_ACEOF
  23664. -/* end confdefs.h. */
  23665. -#ifdef __STDC__
  23666. -# include <limits.h>
  23667. -#else
  23668. -# include <assert.h>
  23669. -#endif
  23670. - Syntax error
  23671. -_ACEOF
  23672. -if { (ac_try="$ac_cpp conftest.$ac_ext"
  23673. -case "(($ac_try" in
  23674. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  23675. - *) ac_try_echo=$ac_try;;
  23676. -esac
  23677. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  23678. - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  23679. - ac_status=$?
  23680. - grep -v '^ *+' conftest.er1 >conftest.err
  23681. - rm -f conftest.er1
  23682. - cat conftest.err >&5
  23683. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23684. - (exit $ac_status); } >/dev/null; then
  23685. - if test -s conftest.err; then
  23686. - ac_cpp_err=$ac_cxx_preproc_warn_flag
  23687. - ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
  23688. - else
  23689. - ac_cpp_err=
  23690. - fi
  23691. -else
  23692. - ac_cpp_err=yes
  23693. -fi
  23694. -if test -z "$ac_cpp_err"; then
  23695. - :
  23696. -else
  23697. - echo "$as_me: failed program was:" >&5
  23698. -sed 's/^/| /' conftest.$ac_ext >&5
  23699. - # Broken: fails on valid input.
  23700. -continue
  23701. -fi
  23702. -rm -f conftest.err conftest.$ac_ext
  23703. - # OK, works on sane cases. Now check whether nonexistent headers
  23704. - # can be detected and how.
  23705. - cat >conftest.$ac_ext <<_ACEOF
  23706. -/* confdefs.h. */
  23707. -_ACEOF
  23708. -cat confdefs.h >>conftest.$ac_ext
  23709. -cat >>conftest.$ac_ext <<_ACEOF
  23710. -/* end confdefs.h. */
  23711. -#include <ac_nonexistent.h>
  23712. -_ACEOF
  23713. -if { (ac_try="$ac_cpp conftest.$ac_ext"
  23714. -case "(($ac_try" in
  23715. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  23716. - *) ac_try_echo=$ac_try;;
  23717. -esac
  23718. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  23719. - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  23720. - ac_status=$?
  23721. - grep -v '^ *+' conftest.er1 >conftest.err
  23722. - rm -f conftest.er1
  23723. - cat conftest.err >&5
  23724. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23725. - (exit $ac_status); } >/dev/null; then
  23726. - if test -s conftest.err; then
  23727. - ac_cpp_err=$ac_cxx_preproc_warn_flag
  23728. - ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
  23729. - else
  23730. - ac_cpp_err=
  23731. - fi
  23732. -else
  23733. - ac_cpp_err=yes
  23734. -fi
  23735. -if test -z "$ac_cpp_err"; then
  23736. - # Broken: success on invalid input.
  23737. -continue
  23738. -else
  23739. - echo "$as_me: failed program was:" >&5
  23740. -sed 's/^/| /' conftest.$ac_ext >&5
  23741. - # Passes both tests.
  23742. -ac_preproc_ok=:
  23743. -break
  23744. -fi
  23745. -rm -f conftest.err conftest.$ac_ext
  23746. -done
  23747. -# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  23748. -rm -f conftest.err conftest.$ac_ext
  23749. -if $ac_preproc_ok; then
  23750. - break
  23751. -fi
  23752. - done
  23753. - ac_cv_prog_CXXCPP=$CXXCPP
  23754. -fi
  23755. - CXXCPP=$ac_cv_prog_CXXCPP
  23756. -else
  23757. - ac_cv_prog_CXXCPP=$CXXCPP
  23758. -fi
  23759. -{ echo "$as_me:$LINENO: result: $CXXCPP" >&5
  23760. -echo "${ECHO_T}$CXXCPP" >&6; }
  23761. -ac_preproc_ok=false
  23762. -for ac_cxx_preproc_warn_flag in '' yes
  23763. -do
  23764. - # Use a header file that comes with gcc, so configuring glibc
  23765. - # with a fresh cross-compiler works.
  23766. - # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  23767. - # <limits.h> exists even on freestanding compilers.
  23768. - # On the NeXT, cc -E runs the code through the compiler's parser,
  23769. - # not just through cpp. "Syntax error" is here to catch this case.
  23770. - cat >conftest.$ac_ext <<_ACEOF
  23771. -/* confdefs.h. */
  23772. -_ACEOF
  23773. -cat confdefs.h >>conftest.$ac_ext
  23774. -cat >>conftest.$ac_ext <<_ACEOF
  23775. -/* end confdefs.h. */
  23776. -#ifdef __STDC__
  23777. -# include <limits.h>
  23778. -#else
  23779. -# include <assert.h>
  23780. -#endif
  23781. - Syntax error
  23782. -_ACEOF
  23783. -if { (ac_try="$ac_cpp conftest.$ac_ext"
  23784. -case "(($ac_try" in
  23785. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  23786. - *) ac_try_echo=$ac_try;;
  23787. -esac
  23788. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  23789. - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  23790. - ac_status=$?
  23791. - grep -v '^ *+' conftest.er1 >conftest.err
  23792. - rm -f conftest.er1
  23793. - cat conftest.err >&5
  23794. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23795. - (exit $ac_status); } >/dev/null; then
  23796. - if test -s conftest.err; then
  23797. - ac_cpp_err=$ac_cxx_preproc_warn_flag
  23798. - ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
  23799. - else
  23800. - ac_cpp_err=
  23801. - fi
  23802. -else
  23803. - ac_cpp_err=yes
  23804. -fi
  23805. -if test -z "$ac_cpp_err"; then
  23806. - :
  23807. -else
  23808. - echo "$as_me: failed program was:" >&5
  23809. -sed 's/^/| /' conftest.$ac_ext >&5
  23810. - # Broken: fails on valid input.
  23811. -continue
  23812. -fi
  23813. -rm -f conftest.err conftest.$ac_ext
  23814. - # OK, works on sane cases. Now check whether nonexistent headers
  23815. - # can be detected and how.
  23816. - cat >conftest.$ac_ext <<_ACEOF
  23817. -/* confdefs.h. */
  23818. -_ACEOF
  23819. -cat confdefs.h >>conftest.$ac_ext
  23820. -cat >>conftest.$ac_ext <<_ACEOF
  23821. -/* end confdefs.h. */
  23822. -#include <ac_nonexistent.h>
  23823. -_ACEOF
  23824. -if { (ac_try="$ac_cpp conftest.$ac_ext"
  23825. -case "(($ac_try" in
  23826. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  23827. - *) ac_try_echo=$ac_try;;
  23828. -esac
  23829. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  23830. - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  23831. - ac_status=$?
  23832. - grep -v '^ *+' conftest.er1 >conftest.err
  23833. - rm -f conftest.er1
  23834. - cat conftest.err >&5
  23835. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23836. - (exit $ac_status); } >/dev/null; then
  23837. - if test -s conftest.err; then
  23838. - ac_cpp_err=$ac_cxx_preproc_warn_flag
  23839. - ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
  23840. - else
  23841. - ac_cpp_err=
  23842. - fi
  23843. -else
  23844. - ac_cpp_err=yes
  23845. -fi
  23846. -if test -z "$ac_cpp_err"; then
  23847. - # Broken: success on invalid input.
  23848. -continue
  23849. -else
  23850. - echo "$as_me: failed program was:" >&5
  23851. -sed 's/^/| /' conftest.$ac_ext >&5
  23852. - # Passes both tests.
  23853. -ac_preproc_ok=:
  23854. -break
  23855. -fi
  23856. -rm -f conftest.err conftest.$ac_ext
  23857. -done
  23858. -# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  23859. -rm -f conftest.err conftest.$ac_ext
  23860. -if $ac_preproc_ok; then
  23861. - :
  23862. -else
  23863. - { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
  23864. -See \`config.log' for more details." >&5
  23865. -echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
  23866. -See \`config.log' for more details." >&2;}
  23867. - { (exit 1); exit 1; }; }
  23868. -fi
  23869. -ac_ext=cpp
  23870. -ac_cpp='$CXXCPP $CPPFLAGS'
  23871. -ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  23872. -ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  23873. -ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  23874. -fi
  23875. -ac_ext=f
  23876. -ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
  23877. -ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  23878. -ac_compiler_gnu=$ac_cv_f77_compiler_gnu
  23879. -if test -n "$ac_tool_prefix"; then
  23880. - 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
  23881. - do
  23882. - # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  23883. -set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  23884. -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
  23885. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  23886. -if test "${ac_cv_prog_F77+set}" = set; then
  23887. - echo $ECHO_N "(cached) $ECHO_C" >&6
  23888. -else
  23889. - if test -n "$F77"; then
  23890. - ac_cv_prog_F77="$F77" # Let the user override the test.
  23891. -else
  23892. -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  23893. -for as_dir in $PATH
  23894. -do
  23895. - IFS=$as_save_IFS
  23896. - test -z "$as_dir" && as_dir=.
  23897. - for ac_exec_ext in '' $ac_executable_extensions; do
  23898. - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
  23899. - ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
  23900. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  23901. - break 2
  23902. - fi
  23903. -done
  23904. -done
  23905. -IFS=$as_save_IFS
  23906. +# If no C compiler was specified, use CC.
  23907. +LTCC=${LTCC-"$CC"}
  23908. -fi
  23909. -fi
  23910. -F77=$ac_cv_prog_F77
  23911. -if test -n "$F77"; then
  23912. - { echo "$as_me:$LINENO: result: $F77" >&5
  23913. -echo "${ECHO_T}$F77" >&6; }
  23914. -else
  23915. - { echo "$as_me:$LINENO: result: no" >&5
  23916. -echo "${ECHO_T}no" >&6; }
  23917. -fi
  23918. +# If no C compiler flags were specified, use CFLAGS.
  23919. +LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  23920. +
  23921. +# Allow CC to be a program name with arguments.
  23922. +compiler=$CC
  23923. - test -n "$F77" && break
  23924. - done
  23925. -fi
  23926. -if test -z "$F77"; then
  23927. - ac_ct_F77=$F77
  23928. - 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
  23929. -do
  23930. - # Extract the first word of "$ac_prog", so it can be a program name with args.
  23931. -set dummy $ac_prog; ac_word=$2
  23932. -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
  23933. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  23934. -if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
  23935. - echo $ECHO_N "(cached) $ECHO_C" >&6
  23936. -else
  23937. - if test -n "$ac_ct_F77"; then
  23938. - ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
  23939. +# Check for command to grab the raw symbol name followed by C symbol from nm.
  23940. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
  23941. +$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
  23942. +if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
  23943. + $as_echo_n "(cached) " >&6
  23944. else
  23945. -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  23946. -for as_dir in $PATH
  23947. -do
  23948. - IFS=$as_save_IFS
  23949. - test -z "$as_dir" && as_dir=.
  23950. - for ac_exec_ext in '' $ac_executable_extensions; do
  23951. - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
  23952. - ac_cv_prog_ac_ct_F77="$ac_prog"
  23953. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  23954. - break 2
  23955. +
  23956. +# These are sane defaults that work on at least a few old systems.
  23957. +# [They come from Ultrix. What could be older than Ultrix?!! ;)]
  23958. +
  23959. +# Character class describing NM global symbol codes.
  23960. +symcode='[BCDEGRST]'
  23961. +
  23962. +# Regexp to match symbols that can be accessed directly from C.
  23963. +sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  23964. +
  23965. +# Define system-specific variables.
  23966. +case $host_os in
  23967. +aix*)
  23968. + symcode='[BCDT]'
  23969. + ;;
  23970. +cygwin* | mingw* | pw32* | cegcc*)
  23971. + symcode='[ABCDGISTW]'
  23972. + ;;
  23973. +hpux*)
  23974. + if test "$host_cpu" = ia64; then
  23975. + symcode='[ABCDEGRST]'
  23976. fi
  23977. -done
  23978. -done
  23979. -IFS=$as_save_IFS
  23980. + ;;
  23981. +irix* | nonstopux*)
  23982. + symcode='[BCDEGRST]'
  23983. + ;;
  23984. +osf*)
  23985. + symcode='[BCDEGQRST]'
  23986. + ;;
  23987. +solaris*)
  23988. + symcode='[BDRT]'
  23989. + ;;
  23990. +sco3.2v5*)
  23991. + symcode='[DT]'
  23992. + ;;
  23993. +sysv4.2uw2*)
  23994. + symcode='[DT]'
  23995. + ;;
  23996. +sysv5* | sco5v6* | unixware* | OpenUNIX*)
  23997. + symcode='[ABDT]'
  23998. + ;;
  23999. +sysv4)
  24000. + symcode='[DFNSTU]'
  24001. + ;;
  24002. +esac
  24003. -fi
  24004. -fi
  24005. -ac_ct_F77=$ac_cv_prog_ac_ct_F77
  24006. -if test -n "$ac_ct_F77"; then
  24007. - { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
  24008. -echo "${ECHO_T}$ac_ct_F77" >&6; }
  24009. -else
  24010. - { echo "$as_me:$LINENO: result: no" >&5
  24011. -echo "${ECHO_T}no" >&6; }
  24012. -fi
  24013. +# If we're using GNU nm, then use its standard symbol codes.
  24014. +case `$NM -V 2>&1` in
  24015. +*GNU* | *'with BFD'*)
  24016. + symcode='[ABCDGIRSTW]' ;;
  24017. +esac
  24018. +# Transform an extracted symbol line into a proper C declaration.
  24019. +# Some systems (esp. on ia64) link data and code symbols differently,
  24020. +# so use this general approach.
  24021. +lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  24022. - test -n "$ac_ct_F77" && break
  24023. -done
  24024. +# Transform an extracted symbol line into symbol name and symbol address
  24025. +lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
  24026. +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'"
  24027. - if test "x$ac_ct_F77" = x; then
  24028. - F77=""
  24029. - else
  24030. - case $cross_compiling:$ac_tool_warned in
  24031. -yes:)
  24032. -{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  24033. -whose name does not start with the host triplet. If you think this
  24034. -configuration is useful to you, please write to autoconf@gnu.org." >&5
  24035. -echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  24036. -whose name does not start with the host triplet. If you think this
  24037. -configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  24038. -ac_tool_warned=yes ;;
  24039. +# Handle CRLF in mingw tool chain
  24040. +opt_cr=
  24041. +case $build_os in
  24042. +mingw*)
  24043. + opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  24044. + ;;
  24045. esac
  24046. - F77=$ac_ct_F77
  24047. +
  24048. +# Try without a prefix underscore, then with it.
  24049. +for ac_symprfx in "" "_"; do
  24050. +
  24051. + # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  24052. + symxfrm="\\1 $ac_symprfx\\2 \\2"
  24053. +
  24054. + # Write the raw and C identifiers.
  24055. + if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  24056. + # Fake it for dumpbin and say T for any non-static function
  24057. + # and D for any global variable.
  24058. + # Also find C++ and __fastcall symbols from MSVC++,
  24059. + # which start with @ or ?.
  24060. + lt_cv_sys_global_symbol_pipe="$AWK '"\
  24061. +" {last_section=section; section=\$ 3};"\
  24062. +" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  24063. +" \$ 0!~/External *\|/{next};"\
  24064. +" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  24065. +" {if(hide[section]) next};"\
  24066. +" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
  24067. +" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
  24068. +" s[1]~/^[@?]/{print s[1], s[1]; next};"\
  24069. +" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
  24070. +" ' prfx=^$ac_symprfx"
  24071. + else
  24072. + lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  24073. fi
  24074. -fi
  24075. + # Check to see that the pipe works correctly.
  24076. + pipe_works=no
  24077. -# Provide some information about the compiler.
  24078. -echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
  24079. -ac_compiler=`set X $ac_compile; echo $2`
  24080. -{ (ac_try="$ac_compiler --version >&5"
  24081. -case "(($ac_try" in
  24082. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  24083. - *) ac_try_echo=$ac_try;;
  24084. -esac
  24085. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  24086. - (eval "$ac_compiler --version >&5") 2>&5
  24087. - ac_status=$?
  24088. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24089. - (exit $ac_status); }
  24090. -{ (ac_try="$ac_compiler -v >&5"
  24091. -case "(($ac_try" in
  24092. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  24093. - *) ac_try_echo=$ac_try;;
  24094. -esac
  24095. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  24096. - (eval "$ac_compiler -v >&5") 2>&5
  24097. - ac_status=$?
  24098. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24099. - (exit $ac_status); }
  24100. -{ (ac_try="$ac_compiler -V >&5"
  24101. -case "(($ac_try" in
  24102. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  24103. - *) ac_try_echo=$ac_try;;
  24104. -esac
  24105. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  24106. - (eval "$ac_compiler -V >&5") 2>&5
  24107. - ac_status=$?
  24108. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24109. - (exit $ac_status); }
  24110. -rm -f a.out
  24111. -
  24112. -# If we don't use `.F' as extension, the preprocessor is not run on the
  24113. -# input file. (Note that this only needs to work for GNU compilers.)
  24114. -ac_save_ext=$ac_ext
  24115. -ac_ext=F
  24116. -{ echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
  24117. -echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
  24118. -if test "${ac_cv_f77_compiler_gnu+set}" = set; then
  24119. - echo $ECHO_N "(cached) $ECHO_C" >&6
  24120. -else
  24121. - cat >conftest.$ac_ext <<_ACEOF
  24122. - program main
  24123. -#ifndef __GNUC__
  24124. - choke me
  24125. + rm -f conftest*
  24126. + cat > conftest.$ac_ext <<_LT_EOF
  24127. +#ifdef __cplusplus
  24128. +extern "C" {
  24129. #endif
  24130. +char nm_test_var;
  24131. +void nm_test_func(void);
  24132. +void nm_test_func(void){}
  24133. +#ifdef __cplusplus
  24134. +}
  24135. +#endif
  24136. +int main(){nm_test_var='a';nm_test_func();return(0);}
  24137. +_LT_EOF
  24138. - end
  24139. -_ACEOF
  24140. -rm -f conftest.$ac_objext
  24141. -if { (ac_try="$ac_compile"
  24142. -case "(($ac_try" in
  24143. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  24144. - *) ac_try_echo=$ac_try;;
  24145. -esac
  24146. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  24147. - (eval "$ac_compile") 2>conftest.er1
  24148. - ac_status=$?
  24149. - grep -v '^ *+' conftest.er1 >conftest.err
  24150. - rm -f conftest.er1
  24151. - cat conftest.err >&5
  24152. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24153. - (exit $ac_status); } &&
  24154. - { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
  24155. - { (case "(($ac_try" in
  24156. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  24157. - *) ac_try_echo=$ac_try;;
  24158. -esac
  24159. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  24160. - (eval "$ac_try") 2>&5
  24161. + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  24162. + (eval $ac_compile) 2>&5
  24163. ac_status=$?
  24164. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24165. - (exit $ac_status); }; } &&
  24166. - { ac_try='test -s conftest.$ac_objext'
  24167. - { (case "(($ac_try" in
  24168. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  24169. - *) ac_try_echo=$ac_try;;
  24170. -esac
  24171. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  24172. - (eval "$ac_try") 2>&5
  24173. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  24174. + test $ac_status = 0; }; then
  24175. + # Now try to grab the symbols.
  24176. + nlist=conftest.nm
  24177. + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
  24178. + (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
  24179. ac_status=$?
  24180. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24181. - (exit $ac_status); }; }; then
  24182. - ac_compiler_gnu=yes
  24183. -else
  24184. - echo "$as_me: failed program was:" >&5
  24185. -sed 's/^/| /' conftest.$ac_ext >&5
  24186. -
  24187. - ac_compiler_gnu=no
  24188. -fi
  24189. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  24190. + test $ac_status = 0; } && test -s "$nlist"; then
  24191. + # Try sorting and uniquifying the output.
  24192. + if sort "$nlist" | uniq > "$nlist"T; then
  24193. + mv -f "$nlist"T "$nlist"
  24194. + else
  24195. + rm -f "$nlist"T
  24196. + fi
  24197. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  24198. -ac_cv_f77_compiler_gnu=$ac_compiler_gnu
  24199. + # Make sure that we snagged all the symbols we need.
  24200. + if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  24201. + if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  24202. + cat <<_LT_EOF > conftest.$ac_ext
  24203. +#ifdef __cplusplus
  24204. +extern "C" {
  24205. +#endif
  24206. -fi
  24207. -{ echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
  24208. -echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
  24209. -ac_ext=$ac_save_ext
  24210. -ac_test_FFLAGS=${FFLAGS+set}
  24211. -ac_save_FFLAGS=$FFLAGS
  24212. -FFLAGS=
  24213. -{ echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
  24214. -echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
  24215. -if test "${ac_cv_prog_f77_g+set}" = set; then
  24216. - echo $ECHO_N "(cached) $ECHO_C" >&6
  24217. -else
  24218. - FFLAGS=-g
  24219. -cat >conftest.$ac_ext <<_ACEOF
  24220. - program main
  24221. +_LT_EOF
  24222. + # Now generate the symbol file.
  24223. + eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  24224. - end
  24225. -_ACEOF
  24226. -rm -f conftest.$ac_objext
  24227. -if { (ac_try="$ac_compile"
  24228. -case "(($ac_try" in
  24229. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  24230. - *) ac_try_echo=$ac_try;;
  24231. -esac
  24232. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  24233. - (eval "$ac_compile") 2>conftest.er1
  24234. - ac_status=$?
  24235. - grep -v '^ *+' conftest.er1 >conftest.err
  24236. - rm -f conftest.er1
  24237. - cat conftest.err >&5
  24238. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24239. - (exit $ac_status); } &&
  24240. - { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
  24241. - { (case "(($ac_try" in
  24242. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  24243. - *) ac_try_echo=$ac_try;;
  24244. -esac
  24245. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  24246. - (eval "$ac_try") 2>&5
  24247. - ac_status=$?
  24248. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24249. - (exit $ac_status); }; } &&
  24250. - { ac_try='test -s conftest.$ac_objext'
  24251. - { (case "(($ac_try" in
  24252. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  24253. - *) ac_try_echo=$ac_try;;
  24254. -esac
  24255. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  24256. - (eval "$ac_try") 2>&5
  24257. - ac_status=$?
  24258. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24259. - (exit $ac_status); }; }; then
  24260. - ac_cv_prog_f77_g=yes
  24261. -else
  24262. - echo "$as_me: failed program was:" >&5
  24263. -sed 's/^/| /' conftest.$ac_ext >&5
  24264. + cat <<_LT_EOF >> conftest.$ac_ext
  24265. - ac_cv_prog_f77_g=no
  24266. -fi
  24267. +/* The mapping between symbol names and symbols. */
  24268. +const struct {
  24269. + const char *name;
  24270. + void *address;
  24271. +}
  24272. +lt__PROGRAM__LTX_preloaded_symbols[] =
  24273. +{
  24274. + { "@PROGRAM@", (void *) 0 },
  24275. +_LT_EOF
  24276. + $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  24277. + cat <<\_LT_EOF >> conftest.$ac_ext
  24278. + {0, (void *) 0}
  24279. +};
  24280. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  24281. +/* This works around a problem in FreeBSD linker */
  24282. +#ifdef FREEBSD_WORKAROUND
  24283. +static const void *lt_preloaded_setup() {
  24284. + return lt__PROGRAM__LTX_preloaded_symbols;
  24285. +}
  24286. +#endif
  24287. -fi
  24288. -{ echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
  24289. -echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
  24290. -if test "$ac_test_FFLAGS" = set; then
  24291. - FFLAGS=$ac_save_FFLAGS
  24292. -elif test $ac_cv_prog_f77_g = yes; then
  24293. - if test "x$ac_cv_f77_compiler_gnu" = xyes; then
  24294. - FFLAGS="-g -O2"
  24295. +#ifdef __cplusplus
  24296. +}
  24297. +#endif
  24298. +_LT_EOF
  24299. + # Now try linking the two files.
  24300. + mv conftest.$ac_objext conftstm.$ac_objext
  24301. + lt_save_LIBS="$LIBS"
  24302. + lt_save_CFLAGS="$CFLAGS"
  24303. + LIBS="conftstm.$ac_objext"
  24304. + CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  24305. + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  24306. + (eval $ac_link) 2>&5
  24307. + ac_status=$?
  24308. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  24309. + test $ac_status = 0; } && test -s conftest${ac_exeext}; then
  24310. + pipe_works=yes
  24311. + fi
  24312. + LIBS="$lt_save_LIBS"
  24313. + CFLAGS="$lt_save_CFLAGS"
  24314. + else
  24315. + echo "cannot find nm_test_func in $nlist" >&5
  24316. + fi
  24317. + else
  24318. + echo "cannot find nm_test_var in $nlist" >&5
  24319. + fi
  24320. + else
  24321. + echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  24322. + fi
  24323. else
  24324. - FFLAGS="-g"
  24325. + echo "$progname: failed program was:" >&5
  24326. + cat conftest.$ac_ext >&5
  24327. fi
  24328. -else
  24329. - if test "x$ac_cv_f77_compiler_gnu" = xyes; then
  24330. - FFLAGS="-O2"
  24331. + rm -rf conftest* conftst*
  24332. +
  24333. + # Do not use the global_symbol_pipe unless it works.
  24334. + if test "$pipe_works" = yes; then
  24335. + break
  24336. else
  24337. - FFLAGS=
  24338. + lt_cv_sys_global_symbol_pipe=
  24339. fi
  24340. +done
  24341. +
  24342. fi
  24343. -G77=`test $ac_compiler_gnu = yes && echo yes`
  24344. -ac_ext=c
  24345. -ac_cpp='$CPP $CPPFLAGS'
  24346. -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  24347. -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  24348. -ac_compiler_gnu=$ac_cv_c_compiler_gnu
  24349. +if test -z "$lt_cv_sys_global_symbol_pipe"; then
  24350. + lt_cv_sys_global_symbol_to_cdecl=
  24351. +fi
  24352. +if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  24353. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
  24354. +$as_echo "failed" >&6; }
  24355. +else
  24356. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  24357. +$as_echo "ok" >&6; }
  24358. +fi
  24359. -# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
  24360. -# find the maximum length of command line arguments
  24361. -{ echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
  24362. -echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
  24363. -if test "${lt_cv_sys_max_cmd_len+set}" = set; then
  24364. - echo $ECHO_N "(cached) $ECHO_C" >&6
  24365. -else
  24366. - i=0
  24367. - teststring="ABCD"
  24368. - case $build_os in
  24369. - msdosdjgpp*)
  24370. - # On DJGPP, this test can blow up pretty badly due to problems in libc
  24371. - # (any single argument exceeding 2000 bytes causes a buffer overrun
  24372. - # during glob expansion). Even if it were fixed, the result of this
  24373. - # check would be larger than it should be.
  24374. - lt_cv_sys_max_cmd_len=12288; # 12K is about right
  24375. - ;;
  24376. - gnu*)
  24377. - # Under GNU Hurd, this test is not required because there is
  24378. - # no limit to the length of command line arguments.
  24379. - # Libtool will interpret -1 as no limit whatsoever
  24380. - lt_cv_sys_max_cmd_len=-1;
  24381. - ;;
  24382. - cygwin* | mingw*)
  24383. - # On Win9x/ME, this test blows up -- it succeeds, but takes
  24384. - # about 5 minutes as the teststring grows exponentially.
  24385. - # Worse, since 9x/ME are not pre-emptively multitasking,
  24386. - # you end up with a "frozen" computer, even though with patience
  24387. - # the test eventually succeeds (with a max line length of 256k).
  24388. - # Instead, let's just punt: use the minimum linelength reported by
  24389. - # all of the supported platforms: 8192 (on NT/2K/XP).
  24390. - lt_cv_sys_max_cmd_len=8192;
  24391. - ;;
  24392. - amigaos*)
  24393. - # On AmigaOS with pdksh, this test takes hours, literally.
  24394. - # So we just punt and use a minimum line length of 8192.
  24395. - lt_cv_sys_max_cmd_len=8192;
  24396. - ;;
  24397. - netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  24398. - # This has been around since 386BSD, at least. Likely further.
  24399. - if test -x /sbin/sysctl; then
  24400. - lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  24401. - elif test -x /usr/sbin/sysctl; then
  24402. - lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  24403. - else
  24404. - lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  24405. - fi
  24406. - # And add a safety zone
  24407. - lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  24408. - lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  24409. - ;;
  24410. - interix*)
  24411. - # We know the value 262144 and hardcode it with a safety zone (like BSD)
  24412. - lt_cv_sys_max_cmd_len=196608
  24413. - ;;
  24414. - osf*)
  24415. - # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  24416. - # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  24417. - # nice to cause kernel panics so lets avoid the loop below.
  24418. - # First set a reasonable default.
  24419. - lt_cv_sys_max_cmd_len=16384
  24420. - #
  24421. - if test -x /sbin/sysconfig; then
  24422. - case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  24423. - *1*) lt_cv_sys_max_cmd_len=-1 ;;
  24424. - esac
  24425. - fi
  24426. - ;;
  24427. - sco3.2v5*)
  24428. - lt_cv_sys_max_cmd_len=102400
  24429. - ;;
  24430. - sysv5* | sco5v6* | sysv4.2uw2*)
  24431. - kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  24432. - if test -n "$kargmax"; then
  24433. - lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  24434. - else
  24435. - lt_cv_sys_max_cmd_len=32768
  24436. - fi
  24437. - ;;
  24438. - *)
  24439. - # If test is not a shell built-in, we'll probably end up computing a
  24440. - # maximum length that is only half of the actual maximum length, but
  24441. - # we can't tell.
  24442. - SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  24443. - while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
  24444. - = "XX$teststring") >/dev/null 2>&1 &&
  24445. - new_result=`expr "X$teststring" : ".*" 2>&1` &&
  24446. - lt_cv_sys_max_cmd_len=$new_result &&
  24447. - test $i != 17 # 1/2 MB should be enough
  24448. - do
  24449. - i=`expr $i + 1`
  24450. - teststring=$teststring$teststring
  24451. - done
  24452. - teststring=
  24453. - # Add a significant safety factor because C++ compilers can tack on massive
  24454. - # amounts of additional arguments before passing them to the linker.
  24455. - # It appears as though 1/2 is a usable value.
  24456. - lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  24457. - ;;
  24458. - esac
  24459. -fi
  24460. -if test -n $lt_cv_sys_max_cmd_len ; then
  24461. - { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
  24462. -echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
  24463. -else
  24464. - { echo "$as_me:$LINENO: result: none" >&5
  24465. -echo "${ECHO_T}none" >&6; }
  24466. -fi
  24467. -# Check for command to grab the raw symbol name followed by C symbol from nm.
  24468. -{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
  24469. -echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
  24470. -if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
  24471. - echo $ECHO_N "(cached) $ECHO_C" >&6
  24472. -else
  24473. -# These are sane defaults that work on at least a few old systems.
  24474. -# [They come from Ultrix. What could be older than Ultrix?!! ;)]
  24475. -# Character class describing NM global symbol codes.
  24476. -symcode='[BCDEGRST]'
  24477. -# Regexp to match symbols that can be accessed directly from C.
  24478. -sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  24479. -# Transform an extracted symbol line into a proper C declaration
  24480. -lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
  24481. -# Transform an extracted symbol line into symbol name and symbol address
  24482. -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'"
  24483. -# Define system-specific variables.
  24484. -case $host_os in
  24485. -aix*)
  24486. - symcode='[BCDT]'
  24487. - ;;
  24488. -cygwin* | mingw* | pw32*)
  24489. - symcode='[ABCDGISTW]'
  24490. - ;;
  24491. -hpux*) # Its linker distinguishes data from code symbols
  24492. - if test "$host_cpu" = ia64; then
  24493. - symcode='[ABCDEGRST]'
  24494. +# Check whether --enable-libtool-lock was given.
  24495. +if test "${enable_libtool_lock+set}" = set; then :
  24496. + enableval=$enable_libtool_lock;
  24497. +fi
  24498. +
  24499. +test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  24500. +
  24501. +# Some flags need to be propagated to the compiler or linker for good
  24502. +# libtool support.
  24503. +case $host in
  24504. +ia64-*-hpux*)
  24505. + # Find out which ABI we are using.
  24506. + echo 'int i;' > conftest.$ac_ext
  24507. + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  24508. + (eval $ac_compile) 2>&5
  24509. + ac_status=$?
  24510. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  24511. + test $ac_status = 0; }; then
  24512. + case `/usr/bin/file conftest.$ac_objext` in
  24513. + *ELF-32*)
  24514. + HPUX_IA64_MODE="32"
  24515. + ;;
  24516. + *ELF-64*)
  24517. + HPUX_IA64_MODE="64"
  24518. + ;;
  24519. + esac
  24520. fi
  24521. - lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  24522. - 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'"
  24523. + rm -rf conftest*
  24524. ;;
  24525. -linux*)
  24526. - if test "$host_cpu" = ia64; then
  24527. - symcode='[ABCDGIRSTW]'
  24528. - lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  24529. - 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'"
  24530. - fi
  24531. - ;;
  24532. -irix* | nonstopux*)
  24533. - symcode='[BCDEGRST]'
  24534. - ;;
  24535. -osf*)
  24536. - symcode='[BCDEGQRST]'
  24537. - ;;
  24538. -solaris*)
  24539. - symcode='[BDRT]'
  24540. - ;;
  24541. -sco3.2v5*)
  24542. - symcode='[DT]'
  24543. - ;;
  24544. -sysv4.2uw2*)
  24545. - symcode='[DT]'
  24546. - ;;
  24547. -sysv5* | sco5v6* | unixware* | OpenUNIX*)
  24548. - symcode='[ABDT]'
  24549. - ;;
  24550. -sysv4)
  24551. - symcode='[DFNSTU]'
  24552. - ;;
  24553. -esac
  24554. -
  24555. -# Handle CRLF in mingw tool chain
  24556. -opt_cr=
  24557. -case $build_os in
  24558. -mingw*)
  24559. - opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  24560. +*-*-irix6*)
  24561. + # Find out which ABI we are using.
  24562. + echo '#line 5909 "configure"' > conftest.$ac_ext
  24563. + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  24564. + (eval $ac_compile) 2>&5
  24565. + ac_status=$?
  24566. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  24567. + test $ac_status = 0; }; then
  24568. + if test "$lt_cv_prog_gnu_ld" = yes; then
  24569. + case `/usr/bin/file conftest.$ac_objext` in
  24570. + *32-bit*)
  24571. + LD="${LD-ld} -melf32bsmip"
  24572. + ;;
  24573. + *N32*)
  24574. + LD="${LD-ld} -melf32bmipn32"
  24575. + ;;
  24576. + *64-bit*)
  24577. + LD="${LD-ld} -melf64bmip"
  24578. + ;;
  24579. + esac
  24580. + else
  24581. + case `/usr/bin/file conftest.$ac_objext` in
  24582. + *32-bit*)
  24583. + LD="${LD-ld} -32"
  24584. + ;;
  24585. + *N32*)
  24586. + LD="${LD-ld} -n32"
  24587. + ;;
  24588. + *64-bit*)
  24589. + LD="${LD-ld} -64"
  24590. + ;;
  24591. + esac
  24592. + fi
  24593. + fi
  24594. + rm -rf conftest*
  24595. ;;
  24596. -esac
  24597. -
  24598. -# If we're using GNU nm, then use its standard symbol codes.
  24599. -case `$NM -V 2>&1` in
  24600. -*GNU* | *'with BFD'*)
  24601. - symcode='[ABCDGIRSTW]' ;;
  24602. -esac
  24603. -
  24604. -# Try without a prefix undercore, then with it.
  24605. -for ac_symprfx in "" "_"; do
  24606. -
  24607. - # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  24608. - symxfrm="\\1 $ac_symprfx\\2 \\2"
  24609. -
  24610. - # Write the raw and C identifiers.
  24611. - lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  24612. -
  24613. - # Check to see that the pipe works correctly.
  24614. - pipe_works=no
  24615. -
  24616. - rm -f conftest*
  24617. - cat > conftest.$ac_ext <<EOF
  24618. -#ifdef __cplusplus
  24619. -extern "C" {
  24620. -#endif
  24621. -char nm_test_var;
  24622. -void nm_test_func(){}
  24623. -#ifdef __cplusplus
  24624. -}
  24625. -#endif
  24626. -int main(){nm_test_var='a';nm_test_func();return(0);}
  24627. -EOF
  24628. - if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  24629. +x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
  24630. +s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  24631. + # Find out which ABI we are using.
  24632. + echo 'int i;' > conftest.$ac_ext
  24633. + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  24634. (eval $ac_compile) 2>&5
  24635. ac_status=$?
  24636. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24637. - (exit $ac_status); }; then
  24638. - # Now try to grab the symbols.
  24639. - nlist=conftest.nm
  24640. - if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
  24641. - (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
  24642. - ac_status=$?
  24643. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24644. - (exit $ac_status); } && test -s "$nlist"; then
  24645. - # Try sorting and uniquifying the output.
  24646. - if sort "$nlist" | uniq > "$nlist"T; then
  24647. - mv -f "$nlist"T "$nlist"
  24648. - else
  24649. - rm -f "$nlist"T
  24650. - fi
  24651. -
  24652. - # Make sure that we snagged all the symbols we need.
  24653. - if grep ' nm_test_var$' "$nlist" >/dev/null; then
  24654. - if grep ' nm_test_func$' "$nlist" >/dev/null; then
  24655. - cat <<EOF > conftest.$ac_ext
  24656. -#ifdef __cplusplus
  24657. -extern "C" {
  24658. -#endif
  24659. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  24660. + test $ac_status = 0; }; then
  24661. + case `/usr/bin/file conftest.o` in
  24662. + *32-bit*)
  24663. + case $host in
  24664. + x86_64-*kfreebsd*-gnu)
  24665. + LD="${LD-ld} -m elf_i386_fbsd"
  24666. + ;;
  24667. + x86_64-*linux*)
  24668. + LD="${LD-ld} -m elf_i386"
  24669. + ;;
  24670. + ppc64-*linux*|powerpc64-*linux*)
  24671. + LD="${LD-ld} -m elf32ppclinux"
  24672. + ;;
  24673. + s390x-*linux*)
  24674. + LD="${LD-ld} -m elf_s390"
  24675. + ;;
  24676. + sparc64-*linux*)
  24677. + LD="${LD-ld} -m elf32_sparc"
  24678. + ;;
  24679. + esac
  24680. + ;;
  24681. + *64-bit*)
  24682. + case $host in
  24683. + x86_64-*kfreebsd*-gnu)
  24684. + LD="${LD-ld} -m elf_x86_64_fbsd"
  24685. + ;;
  24686. + x86_64-*linux*)
  24687. + LD="${LD-ld} -m elf_x86_64"
  24688. + ;;
  24689. + ppc*-*linux*|powerpc*-*linux*)
  24690. + LD="${LD-ld} -m elf64ppc"
  24691. + ;;
  24692. + s390*-*linux*|s390*-*tpf*)
  24693. + LD="${LD-ld} -m elf64_s390"
  24694. + ;;
  24695. + sparc*-*linux*)
  24696. + LD="${LD-ld} -m elf64_sparc"
  24697. + ;;
  24698. + esac
  24699. + ;;
  24700. + esac
  24701. + fi
  24702. + rm -rf conftest*
  24703. + ;;
  24704. -EOF
  24705. - # Now generate the symbol file.
  24706. - eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
  24707. +*-*-sco3.2v5*)
  24708. + # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  24709. + SAVE_CFLAGS="$CFLAGS"
  24710. + CFLAGS="$CFLAGS -belf"
  24711. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
  24712. +$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
  24713. +if test "${lt_cv_cc_needs_belf+set}" = set; then :
  24714. + $as_echo_n "(cached) " >&6
  24715. +else
  24716. + ac_ext=c
  24717. +ac_cpp='$CPP $CPPFLAGS'
  24718. +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  24719. +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  24720. +ac_compiler_gnu=$ac_cv_c_compiler_gnu
  24721. - cat <<EOF >> conftest.$ac_ext
  24722. -#if defined (__STDC__) && __STDC__
  24723. -# define lt_ptr_t void *
  24724. -#else
  24725. -# define lt_ptr_t char *
  24726. -# define const
  24727. -#endif
  24728. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24729. +/* end confdefs.h. */
  24730. -/* The mapping between symbol names and symbols. */
  24731. -const struct {
  24732. - const char *name;
  24733. - lt_ptr_t address;
  24734. -}
  24735. -lt_preloaded_symbols[] =
  24736. +int
  24737. +main ()
  24738. {
  24739. -EOF
  24740. - $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
  24741. - cat <<\EOF >> conftest.$ac_ext
  24742. - {0, (lt_ptr_t) 0}
  24743. -};
  24744. -#ifdef __cplusplus
  24745. + ;
  24746. + return 0;
  24747. }
  24748. -#endif
  24749. -EOF
  24750. - # Now try linking the two files.
  24751. - mv conftest.$ac_objext conftstm.$ac_objext
  24752. - lt_save_LIBS="$LIBS"
  24753. - lt_save_CFLAGS="$CFLAGS"
  24754. - LIBS="conftstm.$ac_objext"
  24755. - CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  24756. - if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  24757. - (eval $ac_link) 2>&5
  24758. +_ACEOF
  24759. +if ac_fn_c_try_link "$LINENO"; then :
  24760. + lt_cv_cc_needs_belf=yes
  24761. +else
  24762. + lt_cv_cc_needs_belf=no
  24763. +fi
  24764. +rm -f core conftest.err conftest.$ac_objext \
  24765. + conftest$ac_exeext conftest.$ac_ext
  24766. + ac_ext=c
  24767. +ac_cpp='$CPP $CPPFLAGS'
  24768. +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  24769. +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  24770. +ac_compiler_gnu=$ac_cv_c_compiler_gnu
  24771. +
  24772. +fi
  24773. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
  24774. +$as_echo "$lt_cv_cc_needs_belf" >&6; }
  24775. + if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  24776. + # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  24777. + CFLAGS="$SAVE_CFLAGS"
  24778. + fi
  24779. + ;;
  24780. +sparc*-*solaris*)
  24781. + # Find out which ABI we are using.
  24782. + echo 'int i;' > conftest.$ac_ext
  24783. + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  24784. + (eval $ac_compile) 2>&5
  24785. ac_status=$?
  24786. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24787. - (exit $ac_status); } && test -s conftest${ac_exeext}; then
  24788. - pipe_works=yes
  24789. - fi
  24790. - LIBS="$lt_save_LIBS"
  24791. - CFLAGS="$lt_save_CFLAGS"
  24792. - else
  24793. - echo "cannot find nm_test_func in $nlist" >&5
  24794. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  24795. + test $ac_status = 0; }; then
  24796. + case `/usr/bin/file conftest.o` in
  24797. + *64-bit*)
  24798. + case $lt_cv_prog_gnu_ld in
  24799. + yes*) LD="${LD-ld} -m elf64_sparc" ;;
  24800. + *)
  24801. + if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  24802. + LD="${LD-ld} -64"
  24803. fi
  24804. - else
  24805. - echo "cannot find nm_test_var in $nlist" >&5
  24806. - fi
  24807. - else
  24808. - echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  24809. - fi
  24810. - else
  24811. - echo "$progname: failed program was:" >&5
  24812. - cat conftest.$ac_ext >&5
  24813. + ;;
  24814. + esac
  24815. + ;;
  24816. + esac
  24817. fi
  24818. - rm -f conftest* conftst*
  24819. + rm -rf conftest*
  24820. + ;;
  24821. +esac
  24822. - # Do not use the global_symbol_pipe unless it works.
  24823. - if test "$pipe_works" = yes; then
  24824. - break
  24825. - else
  24826. - lt_cv_sys_global_symbol_pipe=
  24827. +need_locks="$enable_libtool_lock"
  24828. +
  24829. +
  24830. + case $host_os in
  24831. + rhapsody* | darwin*)
  24832. + if test -n "$ac_tool_prefix"; then
  24833. + # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  24834. +set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  24835. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  24836. +$as_echo_n "checking for $ac_word... " >&6; }
  24837. +if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
  24838. + $as_echo_n "(cached) " >&6
  24839. +else
  24840. + if test -n "$DSYMUTIL"; then
  24841. + ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  24842. +else
  24843. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  24844. +for as_dir in $PATH
  24845. +do
  24846. + IFS=$as_save_IFS
  24847. + test -z "$as_dir" && as_dir=.
  24848. + for ac_exec_ext in '' $ac_executable_extensions; do
  24849. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  24850. + ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  24851. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  24852. + break 2
  24853. fi
  24854. done
  24855. + done
  24856. +IFS=$as_save_IFS
  24857. fi
  24858. -
  24859. -if test -z "$lt_cv_sys_global_symbol_pipe"; then
  24860. - lt_cv_sys_global_symbol_to_cdecl=
  24861. fi
  24862. -if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  24863. - { echo "$as_me:$LINENO: result: failed" >&5
  24864. -echo "${ECHO_T}failed" >&6; }
  24865. +DSYMUTIL=$ac_cv_prog_DSYMUTIL
  24866. +if test -n "$DSYMUTIL"; then
  24867. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
  24868. +$as_echo "$DSYMUTIL" >&6; }
  24869. else
  24870. - { echo "$as_me:$LINENO: result: ok" >&5
  24871. -echo "${ECHO_T}ok" >&6; }
  24872. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  24873. +$as_echo "no" >&6; }
  24874. fi
  24875. -{ echo "$as_me:$LINENO: checking for objdir" >&5
  24876. -echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
  24877. -if test "${lt_cv_objdir+set}" = set; then
  24878. - echo $ECHO_N "(cached) $ECHO_C" >&6
  24879. +
  24880. +fi
  24881. +if test -z "$ac_cv_prog_DSYMUTIL"; then
  24882. + ac_ct_DSYMUTIL=$DSYMUTIL
  24883. + # Extract the first word of "dsymutil", so it can be a program name with args.
  24884. +set dummy dsymutil; ac_word=$2
  24885. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  24886. +$as_echo_n "checking for $ac_word... " >&6; }
  24887. +if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
  24888. + $as_echo_n "(cached) " >&6
  24889. else
  24890. - rm -f .libs 2>/dev/null
  24891. -mkdir .libs 2>/dev/null
  24892. -if test -d .libs; then
  24893. - lt_cv_objdir=.libs
  24894. + if test -n "$ac_ct_DSYMUTIL"; then
  24895. + ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  24896. else
  24897. - # MS-DOS does not allow filenames that begin with a dot.
  24898. - lt_cv_objdir=_libs
  24899. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  24900. +for as_dir in $PATH
  24901. +do
  24902. + IFS=$as_save_IFS
  24903. + test -z "$as_dir" && as_dir=.
  24904. + for ac_exec_ext in '' $ac_executable_extensions; do
  24905. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  24906. + ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  24907. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  24908. + break 2
  24909. + fi
  24910. +done
  24911. + done
  24912. +IFS=$as_save_IFS
  24913. +
  24914. fi
  24915. -rmdir .libs 2>/dev/null
  24916. fi
  24917. -{ echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
  24918. -echo "${ECHO_T}$lt_cv_objdir" >&6; }
  24919. -objdir=$lt_cv_objdir
  24920. -
  24921. -
  24922. -
  24923. -
  24924. +ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  24925. +if test -n "$ac_ct_DSYMUTIL"; then
  24926. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
  24927. +$as_echo "$ac_ct_DSYMUTIL" >&6; }
  24928. +else
  24929. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  24930. +$as_echo "no" >&6; }
  24931. +fi
  24932. -case $host_os in
  24933. -aix3*)
  24934. - # AIX sometimes has problems with the GCC collect2 program. For some
  24935. - # reason, if we set the COLLECT_NAMES environment variable, the problems
  24936. - # vanish in a puff of smoke.
  24937. - if test "X${COLLECT_NAMES+set}" != Xset; then
  24938. - COLLECT_NAMES=
  24939. - export COLLECT_NAMES
  24940. - fi
  24941. - ;;
  24942. + if test "x$ac_ct_DSYMUTIL" = x; then
  24943. + DSYMUTIL=":"
  24944. + else
  24945. + case $cross_compiling:$ac_tool_warned in
  24946. +yes:)
  24947. +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  24948. +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  24949. +ac_tool_warned=yes ;;
  24950. esac
  24951. + DSYMUTIL=$ac_ct_DSYMUTIL
  24952. + fi
  24953. +else
  24954. + DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  24955. +fi
  24956. -# Sed substitution that helps us do robust quoting. It backslashifies
  24957. -# metacharacters that are still active within double-quoted strings.
  24958. -Xsed='sed -e 1s/^X//'
  24959. -sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
  24960. -
  24961. -# Same as above, but do not quote variable references.
  24962. -double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
  24963. + if test -n "$ac_tool_prefix"; then
  24964. + # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  24965. +set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  24966. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  24967. +$as_echo_n "checking for $ac_word... " >&6; }
  24968. +if test "${ac_cv_prog_NMEDIT+set}" = set; then :
  24969. + $as_echo_n "(cached) " >&6
  24970. +else
  24971. + if test -n "$NMEDIT"; then
  24972. + ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  24973. +else
  24974. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  24975. +for as_dir in $PATH
  24976. +do
  24977. + IFS=$as_save_IFS
  24978. + test -z "$as_dir" && as_dir=.
  24979. + for ac_exec_ext in '' $ac_executable_extensions; do
  24980. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  24981. + ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  24982. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  24983. + break 2
  24984. + fi
  24985. +done
  24986. + done
  24987. +IFS=$as_save_IFS
  24988. -# Sed substitution to delay expansion of an escaped shell variable in a
  24989. -# double_quote_subst'ed string.
  24990. -delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  24991. +fi
  24992. +fi
  24993. +NMEDIT=$ac_cv_prog_NMEDIT
  24994. +if test -n "$NMEDIT"; then
  24995. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
  24996. +$as_echo "$NMEDIT" >&6; }
  24997. +else
  24998. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  24999. +$as_echo "no" >&6; }
  25000. +fi
  25001. -# Sed substitution to avoid accidental globbing in evaled expressions
  25002. -no_glob_subst='s/\*/\\\*/g'
  25003. -# Constants:
  25004. -rm="rm -f"
  25005. +fi
  25006. +if test -z "$ac_cv_prog_NMEDIT"; then
  25007. + ac_ct_NMEDIT=$NMEDIT
  25008. + # Extract the first word of "nmedit", so it can be a program name with args.
  25009. +set dummy nmedit; ac_word=$2
  25010. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  25011. +$as_echo_n "checking for $ac_word... " >&6; }
  25012. +if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
  25013. + $as_echo_n "(cached) " >&6
  25014. +else
  25015. + if test -n "$ac_ct_NMEDIT"; then
  25016. + ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  25017. +else
  25018. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  25019. +for as_dir in $PATH
  25020. +do
  25021. + IFS=$as_save_IFS
  25022. + test -z "$as_dir" && as_dir=.
  25023. + for ac_exec_ext in '' $ac_executable_extensions; do
  25024. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  25025. + ac_cv_prog_ac_ct_NMEDIT="nmedit"
  25026. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  25027. + break 2
  25028. + fi
  25029. +done
  25030. + done
  25031. +IFS=$as_save_IFS
  25032. -# Global variables:
  25033. -default_ofile=libtool
  25034. -can_build_shared=yes
  25035. +fi
  25036. +fi
  25037. +ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  25038. +if test -n "$ac_ct_NMEDIT"; then
  25039. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
  25040. +$as_echo "$ac_ct_NMEDIT" >&6; }
  25041. +else
  25042. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  25043. +$as_echo "no" >&6; }
  25044. +fi
  25045. -# All known linkers require a `.a' archive for static linking (except MSVC,
  25046. -# which needs '.lib').
  25047. -libext=a
  25048. -ltmain="$ac_aux_dir/ltmain.sh"
  25049. -ofile="$default_ofile"
  25050. -with_gnu_ld="$lt_cv_prog_gnu_ld"
  25051. + if test "x$ac_ct_NMEDIT" = x; then
  25052. + NMEDIT=":"
  25053. + else
  25054. + case $cross_compiling:$ac_tool_warned in
  25055. +yes:)
  25056. +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  25057. +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  25058. +ac_tool_warned=yes ;;
  25059. +esac
  25060. + NMEDIT=$ac_ct_NMEDIT
  25061. + fi
  25062. +else
  25063. + NMEDIT="$ac_cv_prog_NMEDIT"
  25064. +fi
  25065. -if test -n "$ac_tool_prefix"; then
  25066. - # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
  25067. -set dummy ${ac_tool_prefix}ar; ac_word=$2
  25068. -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
  25069. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  25070. -if test "${ac_cv_prog_AR+set}" = set; then
  25071. - echo $ECHO_N "(cached) $ECHO_C" >&6
  25072. + if test -n "$ac_tool_prefix"; then
  25073. + # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
  25074. +set dummy ${ac_tool_prefix}lipo; ac_word=$2
  25075. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  25076. +$as_echo_n "checking for $ac_word... " >&6; }
  25077. +if test "${ac_cv_prog_LIPO+set}" = set; then :
  25078. + $as_echo_n "(cached) " >&6
  25079. else
  25080. - if test -n "$AR"; then
  25081. - ac_cv_prog_AR="$AR" # Let the user override the test.
  25082. + if test -n "$LIPO"; then
  25083. + ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  25084. else
  25085. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  25086. for as_dir in $PATH
  25087. do
  25088. IFS=$as_save_IFS
  25089. test -z "$as_dir" && as_dir=.
  25090. - for ac_exec_ext in '' $ac_executable_extensions; do
  25091. - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
  25092. - ac_cv_prog_AR="${ac_tool_prefix}ar"
  25093. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  25094. + for ac_exec_ext in '' $ac_executable_extensions; do
  25095. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  25096. + ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
  25097. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  25098. break 2
  25099. fi
  25100. done
  25101. -done
  25102. + done
  25103. IFS=$as_save_IFS
  25104. fi
  25105. fi
  25106. -AR=$ac_cv_prog_AR
  25107. -if test -n "$AR"; then
  25108. - { echo "$as_me:$LINENO: result: $AR" >&5
  25109. -echo "${ECHO_T}$AR" >&6; }
  25110. +LIPO=$ac_cv_prog_LIPO
  25111. +if test -n "$LIPO"; then
  25112. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
  25113. +$as_echo "$LIPO" >&6; }
  25114. else
  25115. - { echo "$as_me:$LINENO: result: no" >&5
  25116. -echo "${ECHO_T}no" >&6; }
  25117. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  25118. +$as_echo "no" >&6; }
  25119. fi
  25120. fi
  25121. -if test -z "$ac_cv_prog_AR"; then
  25122. - ac_ct_AR=$AR
  25123. - # Extract the first word of "ar", so it can be a program name with args.
  25124. -set dummy ar; ac_word=$2
  25125. -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
  25126. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  25127. -if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
  25128. - echo $ECHO_N "(cached) $ECHO_C" >&6
  25129. +if test -z "$ac_cv_prog_LIPO"; then
  25130. + ac_ct_LIPO=$LIPO
  25131. + # Extract the first word of "lipo", so it can be a program name with args.
  25132. +set dummy lipo; ac_word=$2
  25133. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  25134. +$as_echo_n "checking for $ac_word... " >&6; }
  25135. +if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
  25136. + $as_echo_n "(cached) " >&6
  25137. else
  25138. - if test -n "$ac_ct_AR"; then
  25139. - ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  25140. + if test -n "$ac_ct_LIPO"; then
  25141. + ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
  25142. else
  25143. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  25144. for as_dir in $PATH
  25145. do
  25146. IFS=$as_save_IFS
  25147. test -z "$as_dir" && as_dir=.
  25148. - for ac_exec_ext in '' $ac_executable_extensions; do
  25149. - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
  25150. - ac_cv_prog_ac_ct_AR="ar"
  25151. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  25152. + for ac_exec_ext in '' $ac_executable_extensions; do
  25153. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  25154. + ac_cv_prog_ac_ct_LIPO="lipo"
  25155. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  25156. break 2
  25157. fi
  25158. done
  25159. -done
  25160. + done
  25161. IFS=$as_save_IFS
  25162. fi
  25163. fi
  25164. -ac_ct_AR=$ac_cv_prog_ac_ct_AR
  25165. -if test -n "$ac_ct_AR"; then
  25166. - { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
  25167. -echo "${ECHO_T}$ac_ct_AR" >&6; }
  25168. +ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
  25169. +if test -n "$ac_ct_LIPO"; then
  25170. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
  25171. +$as_echo "$ac_ct_LIPO" >&6; }
  25172. else
  25173. - { echo "$as_me:$LINENO: result: no" >&5
  25174. -echo "${ECHO_T}no" >&6; }
  25175. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  25176. +$as_echo "no" >&6; }
  25177. fi
  25178. - if test "x$ac_ct_AR" = x; then
  25179. - AR="false"
  25180. + if test "x$ac_ct_LIPO" = x; then
  25181. + LIPO=":"
  25182. else
  25183. case $cross_compiling:$ac_tool_warned in
  25184. yes:)
  25185. -{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  25186. -whose name does not start with the host triplet. If you think this
  25187. -configuration is useful to you, please write to autoconf@gnu.org." >&5
  25188. -echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  25189. -whose name does not start with the host triplet. If you think this
  25190. -configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  25191. +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  25192. +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  25193. ac_tool_warned=yes ;;
  25194. esac
  25195. - AR=$ac_ct_AR
  25196. + LIPO=$ac_ct_LIPO
  25197. fi
  25198. else
  25199. - AR="$ac_cv_prog_AR"
  25200. + LIPO="$ac_cv_prog_LIPO"
  25201. fi
  25202. -if test -n "$ac_tool_prefix"; then
  25203. - # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  25204. -set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  25205. -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
  25206. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  25207. -if test "${ac_cv_prog_RANLIB+set}" = set; then
  25208. - echo $ECHO_N "(cached) $ECHO_C" >&6
  25209. + if test -n "$ac_tool_prefix"; then
  25210. + # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
  25211. +set dummy ${ac_tool_prefix}otool; ac_word=$2
  25212. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  25213. +$as_echo_n "checking for $ac_word... " >&6; }
  25214. +if test "${ac_cv_prog_OTOOL+set}" = set; then :
  25215. + $as_echo_n "(cached) " >&6
  25216. else
  25217. - if test -n "$RANLIB"; then
  25218. - ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  25219. + if test -n "$OTOOL"; then
  25220. + ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
  25221. else
  25222. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  25223. for as_dir in $PATH
  25224. do
  25225. IFS=$as_save_IFS
  25226. test -z "$as_dir" && as_dir=.
  25227. - for ac_exec_ext in '' $ac_executable_extensions; do
  25228. - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
  25229. - ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  25230. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  25231. + for ac_exec_ext in '' $ac_executable_extensions; do
  25232. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  25233. + ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
  25234. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  25235. break 2
  25236. fi
  25237. done
  25238. -done
  25239. + done
  25240. IFS=$as_save_IFS
  25241. fi
  25242. fi
  25243. -RANLIB=$ac_cv_prog_RANLIB
  25244. -if test -n "$RANLIB"; then
  25245. - { echo "$as_me:$LINENO: result: $RANLIB" >&5
  25246. -echo "${ECHO_T}$RANLIB" >&6; }
  25247. +OTOOL=$ac_cv_prog_OTOOL
  25248. +if test -n "$OTOOL"; then
  25249. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
  25250. +$as_echo "$OTOOL" >&6; }
  25251. else
  25252. - { echo "$as_me:$LINENO: result: no" >&5
  25253. -echo "${ECHO_T}no" >&6; }
  25254. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  25255. +$as_echo "no" >&6; }
  25256. fi
  25257. fi
  25258. -if test -z "$ac_cv_prog_RANLIB"; then
  25259. - ac_ct_RANLIB=$RANLIB
  25260. - # Extract the first word of "ranlib", so it can be a program name with args.
  25261. -set dummy ranlib; ac_word=$2
  25262. -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
  25263. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  25264. -if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
  25265. - echo $ECHO_N "(cached) $ECHO_C" >&6
  25266. +if test -z "$ac_cv_prog_OTOOL"; then
  25267. + ac_ct_OTOOL=$OTOOL
  25268. + # Extract the first word of "otool", so it can be a program name with args.
  25269. +set dummy otool; ac_word=$2
  25270. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  25271. +$as_echo_n "checking for $ac_word... " >&6; }
  25272. +if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
  25273. + $as_echo_n "(cached) " >&6
  25274. else
  25275. - if test -n "$ac_ct_RANLIB"; then
  25276. - ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  25277. + if test -n "$ac_ct_OTOOL"; then
  25278. + ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
  25279. else
  25280. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  25281. for as_dir in $PATH
  25282. do
  25283. IFS=$as_save_IFS
  25284. test -z "$as_dir" && as_dir=.
  25285. - for ac_exec_ext in '' $ac_executable_extensions; do
  25286. - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
  25287. - ac_cv_prog_ac_ct_RANLIB="ranlib"
  25288. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  25289. + for ac_exec_ext in '' $ac_executable_extensions; do
  25290. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  25291. + ac_cv_prog_ac_ct_OTOOL="otool"
  25292. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  25293. break 2
  25294. fi
  25295. done
  25296. -done
  25297. + done
  25298. IFS=$as_save_IFS
  25299. fi
  25300. fi
  25301. -ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  25302. -if test -n "$ac_ct_RANLIB"; then
  25303. - { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
  25304. -echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
  25305. +ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
  25306. +if test -n "$ac_ct_OTOOL"; then
  25307. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
  25308. +$as_echo "$ac_ct_OTOOL" >&6; }
  25309. else
  25310. - { echo "$as_me:$LINENO: result: no" >&5
  25311. -echo "${ECHO_T}no" >&6; }
  25312. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  25313. +$as_echo "no" >&6; }
  25314. fi
  25315. - if test "x$ac_ct_RANLIB" = x; then
  25316. - RANLIB=":"
  25317. + if test "x$ac_ct_OTOOL" = x; then
  25318. + OTOOL=":"
  25319. else
  25320. case $cross_compiling:$ac_tool_warned in
  25321. yes:)
  25322. -{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  25323. -whose name does not start with the host triplet. If you think this
  25324. -configuration is useful to you, please write to autoconf@gnu.org." >&5
  25325. -echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  25326. -whose name does not start with the host triplet. If you think this
  25327. -configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  25328. +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  25329. +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  25330. ac_tool_warned=yes ;;
  25331. esac
  25332. - RANLIB=$ac_ct_RANLIB
  25333. + OTOOL=$ac_ct_OTOOL
  25334. fi
  25335. else
  25336. - RANLIB="$ac_cv_prog_RANLIB"
  25337. + OTOOL="$ac_cv_prog_OTOOL"
  25338. fi
  25339. -if test -n "$ac_tool_prefix"; then
  25340. - # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  25341. -set dummy ${ac_tool_prefix}strip; ac_word=$2
  25342. -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
  25343. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  25344. -if test "${ac_cv_prog_STRIP+set}" = set; then
  25345. - echo $ECHO_N "(cached) $ECHO_C" >&6
  25346. + if test -n "$ac_tool_prefix"; then
  25347. + # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
  25348. +set dummy ${ac_tool_prefix}otool64; ac_word=$2
  25349. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  25350. +$as_echo_n "checking for $ac_word... " >&6; }
  25351. +if test "${ac_cv_prog_OTOOL64+set}" = set; then :
  25352. + $as_echo_n "(cached) " >&6
  25353. else
  25354. - if test -n "$STRIP"; then
  25355. - ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  25356. + if test -n "$OTOOL64"; then
  25357. + ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
  25358. else
  25359. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  25360. for as_dir in $PATH
  25361. do
  25362. IFS=$as_save_IFS
  25363. test -z "$as_dir" && as_dir=.
  25364. - for ac_exec_ext in '' $ac_executable_extensions; do
  25365. - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
  25366. - ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  25367. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  25368. + for ac_exec_ext in '' $ac_executable_extensions; do
  25369. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  25370. + ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
  25371. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  25372. break 2
  25373. fi
  25374. done
  25375. -done
  25376. + done
  25377. IFS=$as_save_IFS
  25378. fi
  25379. fi
  25380. -STRIP=$ac_cv_prog_STRIP
  25381. -if test -n "$STRIP"; then
  25382. - { echo "$as_me:$LINENO: result: $STRIP" >&5
  25383. -echo "${ECHO_T}$STRIP" >&6; }
  25384. +OTOOL64=$ac_cv_prog_OTOOL64
  25385. +if test -n "$OTOOL64"; then
  25386. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
  25387. +$as_echo "$OTOOL64" >&6; }
  25388. else
  25389. - { echo "$as_me:$LINENO: result: no" >&5
  25390. -echo "${ECHO_T}no" >&6; }
  25391. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  25392. +$as_echo "no" >&6; }
  25393. fi
  25394. fi
  25395. -if test -z "$ac_cv_prog_STRIP"; then
  25396. - ac_ct_STRIP=$STRIP
  25397. - # Extract the first word of "strip", so it can be a program name with args.
  25398. -set dummy strip; ac_word=$2
  25399. -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
  25400. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  25401. -if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
  25402. - echo $ECHO_N "(cached) $ECHO_C" >&6
  25403. +if test -z "$ac_cv_prog_OTOOL64"; then
  25404. + ac_ct_OTOOL64=$OTOOL64
  25405. + # Extract the first word of "otool64", so it can be a program name with args.
  25406. +set dummy otool64; ac_word=$2
  25407. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  25408. +$as_echo_n "checking for $ac_word... " >&6; }
  25409. +if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
  25410. + $as_echo_n "(cached) " >&6
  25411. else
  25412. - if test -n "$ac_ct_STRIP"; then
  25413. - ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  25414. + if test -n "$ac_ct_OTOOL64"; then
  25415. + ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
  25416. else
  25417. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  25418. for as_dir in $PATH
  25419. do
  25420. IFS=$as_save_IFS
  25421. test -z "$as_dir" && as_dir=.
  25422. - for ac_exec_ext in '' $ac_executable_extensions; do
  25423. - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
  25424. - ac_cv_prog_ac_ct_STRIP="strip"
  25425. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  25426. + for ac_exec_ext in '' $ac_executable_extensions; do
  25427. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  25428. + ac_cv_prog_ac_ct_OTOOL64="otool64"
  25429. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  25430. break 2
  25431. fi
  25432. done
  25433. -done
  25434. + done
  25435. IFS=$as_save_IFS
  25436. fi
  25437. fi
  25438. -ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  25439. -if test -n "$ac_ct_STRIP"; then
  25440. - { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
  25441. -echo "${ECHO_T}$ac_ct_STRIP" >&6; }
  25442. +ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
  25443. +if test -n "$ac_ct_OTOOL64"; then
  25444. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
  25445. +$as_echo "$ac_ct_OTOOL64" >&6; }
  25446. else
  25447. - { echo "$as_me:$LINENO: result: no" >&5
  25448. -echo "${ECHO_T}no" >&6; }
  25449. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  25450. +$as_echo "no" >&6; }
  25451. fi
  25452. - if test "x$ac_ct_STRIP" = x; then
  25453. - STRIP=":"
  25454. + if test "x$ac_ct_OTOOL64" = x; then
  25455. + OTOOL64=":"
  25456. else
  25457. case $cross_compiling:$ac_tool_warned in
  25458. yes:)
  25459. -{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  25460. -whose name does not start with the host triplet. If you think this
  25461. -configuration is useful to you, please write to autoconf@gnu.org." >&5
  25462. -echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  25463. -whose name does not start with the host triplet. If you think this
  25464. -configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  25465. +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  25466. +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  25467. ac_tool_warned=yes ;;
  25468. esac
  25469. - STRIP=$ac_ct_STRIP
  25470. + OTOOL64=$ac_ct_OTOOL64
  25471. fi
  25472. else
  25473. - STRIP="$ac_cv_prog_STRIP"
  25474. + OTOOL64="$ac_cv_prog_OTOOL64"
  25475. fi
  25476. -old_CC="$CC"
  25477. -old_CFLAGS="$CFLAGS"
  25478. -# Set sane defaults for various variables
  25479. -test -z "$AR" && AR=ar
  25480. -test -z "$AR_FLAGS" && AR_FLAGS=cru
  25481. -test -z "$AS" && AS=as
  25482. -test -z "$CC" && CC=cc
  25483. -test -z "$LTCC" && LTCC=$CC
  25484. -test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  25485. -test -z "$DLLTOOL" && DLLTOOL=dlltool
  25486. -test -z "$LD" && LD=ld
  25487. -test -z "$LN_S" && LN_S="ln -s"
  25488. -test -z "$MAGIC_CMD" && MAGIC_CMD=file
  25489. -test -z "$NM" && NM=nm
  25490. -test -z "$SED" && SED=sed
  25491. -test -z "$OBJDUMP" && OBJDUMP=objdump
  25492. -test -z "$RANLIB" && RANLIB=:
  25493. -test -z "$STRIP" && STRIP=:
  25494. -test -z "$ac_objext" && ac_objext=o
  25495. -# Determine commands to create old-style static archives.
  25496. -old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
  25497. -old_postinstall_cmds='chmod 644 $oldlib'
  25498. -old_postuninstall_cmds=
  25499. -if test -n "$RANLIB"; then
  25500. - case $host_os in
  25501. - openbsd*)
  25502. - old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
  25503. - ;;
  25504. - *)
  25505. - old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
  25506. - ;;
  25507. - esac
  25508. - old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
  25509. -fi
  25510. -for cc_temp in $compiler""; do
  25511. - case $cc_temp in
  25512. - compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  25513. - distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  25514. - \-*) ;;
  25515. - *) break;;
  25516. - esac
  25517. -done
  25518. -cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  25519. -# Only perform the check for file, if the check method requires it
  25520. -case $deplibs_check_method in
  25521. -file_magic*)
  25522. - if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  25523. - { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
  25524. -echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
  25525. -if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
  25526. - echo $ECHO_N "(cached) $ECHO_C" >&6
  25527. -else
  25528. - case $MAGIC_CMD in
  25529. -[\\/*] | ?:[\\/]*)
  25530. - lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  25531. - ;;
  25532. -*)
  25533. - lt_save_MAGIC_CMD="$MAGIC_CMD"
  25534. - lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  25535. - ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  25536. - for ac_dir in $ac_dummy; do
  25537. - IFS="$lt_save_ifs"
  25538. - test -z "$ac_dir" && ac_dir=.
  25539. - if test -f $ac_dir/${ac_tool_prefix}file; then
  25540. - lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
  25541. - if test -n "$file_magic_test_file"; then
  25542. - case $deplibs_check_method in
  25543. - "file_magic "*)
  25544. - file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  25545. - MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  25546. - if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  25547. - $EGREP "$file_magic_regex" > /dev/null; then
  25548. - :
  25549. - else
  25550. - cat <<EOF 1>&2
  25551. -*** Warning: the command libtool uses to detect shared libraries,
  25552. -*** $file_magic_cmd, produces output that libtool cannot recognize.
  25553. -*** The result is that libtool may fail to recognize shared libraries
  25554. -*** as such. This will affect the creation of libtool libraries that
  25555. -*** depend on shared libraries, but programs linked with such libtool
  25556. -*** libraries will work regardless of this problem. Nevertheless, you
  25557. -*** may want to report the problem to your system manager and/or to
  25558. -*** bug-libtool@gnu.org
  25559. -EOF
  25560. - fi ;;
  25561. - esac
  25562. - fi
  25563. - break
  25564. - fi
  25565. - done
  25566. - IFS="$lt_save_ifs"
  25567. - MAGIC_CMD="$lt_save_MAGIC_CMD"
  25568. - ;;
  25569. -esac
  25570. -fi
  25571. -MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  25572. -if test -n "$MAGIC_CMD"; then
  25573. - { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
  25574. -echo "${ECHO_T}$MAGIC_CMD" >&6; }
  25575. +
  25576. +
  25577. +
  25578. +
  25579. +
  25580. +
  25581. +
  25582. +
  25583. +
  25584. +
  25585. +
  25586. +
  25587. +
  25588. +
  25589. +
  25590. +
  25591. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
  25592. +$as_echo_n "checking for -single_module linker flag... " >&6; }
  25593. +if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
  25594. + $as_echo_n "(cached) " >&6
  25595. else
  25596. - { echo "$as_me:$LINENO: result: no" >&5
  25597. -echo "${ECHO_T}no" >&6; }
  25598. + lt_cv_apple_cc_single_mod=no
  25599. + if test -z "${LT_MULTI_MODULE}"; then
  25600. + # By default we will add the -single_module flag. You can override
  25601. + # by either setting the environment variable LT_MULTI_MODULE
  25602. + # non-empty at configure time, or by adding -multi_module to the
  25603. + # link flags.
  25604. + rm -rf libconftest.dylib*
  25605. + echo "int foo(void){return 1;}" > conftest.c
  25606. + echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  25607. +-dynamiclib -Wl,-single_module conftest.c" >&5
  25608. + $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  25609. + -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  25610. + _lt_result=$?
  25611. + if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
  25612. + lt_cv_apple_cc_single_mod=yes
  25613. + else
  25614. + cat conftest.err >&5
  25615. + fi
  25616. + rm -rf libconftest.dylib*
  25617. + rm -f conftest.*
  25618. + fi
  25619. fi
  25620. -
  25621. -if test -z "$lt_cv_path_MAGIC_CMD"; then
  25622. - if test -n "$ac_tool_prefix"; then
  25623. - { echo "$as_me:$LINENO: checking for file" >&5
  25624. -echo $ECHO_N "checking for file... $ECHO_C" >&6; }
  25625. -if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
  25626. - echo $ECHO_N "(cached) $ECHO_C" >&6
  25627. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
  25628. +$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
  25629. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
  25630. +$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
  25631. +if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
  25632. + $as_echo_n "(cached) " >&6
  25633. else
  25634. - case $MAGIC_CMD in
  25635. -[\\/*] | ?:[\\/]*)
  25636. - lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  25637. - ;;
  25638. -*)
  25639. - lt_save_MAGIC_CMD="$MAGIC_CMD"
  25640. - lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  25641. - ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  25642. - for ac_dir in $ac_dummy; do
  25643. - IFS="$lt_save_ifs"
  25644. - test -z "$ac_dir" && ac_dir=.
  25645. - if test -f $ac_dir/file; then
  25646. - lt_cv_path_MAGIC_CMD="$ac_dir/file"
  25647. - if test -n "$file_magic_test_file"; then
  25648. - case $deplibs_check_method in
  25649. - "file_magic "*)
  25650. - file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  25651. - MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  25652. - if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  25653. - $EGREP "$file_magic_regex" > /dev/null; then
  25654. - :
  25655. - else
  25656. - cat <<EOF 1>&2
  25657. + lt_cv_ld_exported_symbols_list=no
  25658. + save_LDFLAGS=$LDFLAGS
  25659. + echo "_main" > conftest.sym
  25660. + LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  25661. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  25662. +/* end confdefs.h. */
  25663. -*** Warning: the command libtool uses to detect shared libraries,
  25664. -*** $file_magic_cmd, produces output that libtool cannot recognize.
  25665. -*** The result is that libtool may fail to recognize shared libraries
  25666. -*** as such. This will affect the creation of libtool libraries that
  25667. -*** depend on shared libraries, but programs linked with such libtool
  25668. -*** libraries will work regardless of this problem. Nevertheless, you
  25669. -*** may want to report the problem to your system manager and/or to
  25670. -*** bug-libtool@gnu.org
  25671. +int
  25672. +main ()
  25673. +{
  25674. -EOF
  25675. - fi ;;
  25676. - esac
  25677. - fi
  25678. - break
  25679. + ;
  25680. + return 0;
  25681. +}
  25682. +_ACEOF
  25683. +if ac_fn_c_try_link "$LINENO"; then :
  25684. + lt_cv_ld_exported_symbols_list=yes
  25685. +else
  25686. + lt_cv_ld_exported_symbols_list=no
  25687. +fi
  25688. +rm -f core conftest.err conftest.$ac_objext \
  25689. + conftest$ac_exeext conftest.$ac_ext
  25690. + LDFLAGS="$save_LDFLAGS"
  25691. +
  25692. +fi
  25693. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
  25694. +$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
  25695. + case $host_os in
  25696. + rhapsody* | darwin1.[012])
  25697. + _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
  25698. + darwin1.*)
  25699. + _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  25700. + darwin*) # darwin 5.x on
  25701. + # if running on 10.5 or later, the deployment target defaults
  25702. + # to the OS version, if on x86, and 10.4, the deployment
  25703. + # target defaults to 10.4. Don't you love it?
  25704. + case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
  25705. + 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
  25706. + _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  25707. + 10.[012]*)
  25708. + _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  25709. + 10.*)
  25710. + _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  25711. + esac
  25712. + ;;
  25713. + esac
  25714. + if test "$lt_cv_apple_cc_single_mod" = "yes"; then
  25715. + _lt_dar_single_mod='$single_module'
  25716. fi
  25717. - done
  25718. - IFS="$lt_save_ifs"
  25719. - MAGIC_CMD="$lt_save_MAGIC_CMD"
  25720. - ;;
  25721. -esac
  25722. + if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
  25723. + _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
  25724. + else
  25725. + _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
  25726. + fi
  25727. + if test "$DSYMUTIL" != ":"; then
  25728. + _lt_dsymutil='~$DSYMUTIL $lib || :'
  25729. + else
  25730. + _lt_dsymutil=
  25731. + fi
  25732. + ;;
  25733. + esac
  25734. +
  25735. +ac_ext=c
  25736. +ac_cpp='$CPP $CPPFLAGS'
  25737. +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  25738. +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  25739. +ac_compiler_gnu=$ac_cv_c_compiler_gnu
  25740. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  25741. +$as_echo_n "checking how to run the C preprocessor... " >&6; }
  25742. +# On Suns, sometimes $CPP names a directory.
  25743. +if test -n "$CPP" && test -d "$CPP"; then
  25744. + CPP=
  25745. fi
  25746. +if test -z "$CPP"; then
  25747. + if test "${ac_cv_prog_CPP+set}" = set; then :
  25748. + $as_echo_n "(cached) " >&6
  25749. +else
  25750. + # Double quotes because CPP needs to be expanded
  25751. + for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  25752. + do
  25753. + ac_preproc_ok=false
  25754. +for ac_c_preproc_warn_flag in '' yes
  25755. +do
  25756. + # Use a header file that comes with gcc, so configuring glibc
  25757. + # with a fresh cross-compiler works.
  25758. + # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  25759. + # <limits.h> exists even on freestanding compilers.
  25760. + # On the NeXT, cc -E runs the code through the compiler's parser,
  25761. + # not just through cpp. "Syntax error" is here to catch this case.
  25762. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  25763. +/* end confdefs.h. */
  25764. +#ifdef __STDC__
  25765. +# include <limits.h>
  25766. +#else
  25767. +# include <assert.h>
  25768. +#endif
  25769. + Syntax error
  25770. +_ACEOF
  25771. +if ac_fn_c_try_cpp "$LINENO"; then :
  25772. -MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  25773. -if test -n "$MAGIC_CMD"; then
  25774. - { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
  25775. -echo "${ECHO_T}$MAGIC_CMD" >&6; }
  25776. else
  25777. - { echo "$as_me:$LINENO: result: no" >&5
  25778. -echo "${ECHO_T}no" >&6; }
  25779. + # Broken: fails on valid input.
  25780. +continue
  25781. fi
  25782. +rm -f conftest.err conftest.$ac_ext
  25783. - else
  25784. - MAGIC_CMD=:
  25785. - fi
  25786. + # OK, works on sane cases. Now check whether nonexistent headers
  25787. + # can be detected and how.
  25788. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  25789. +/* end confdefs.h. */
  25790. +#include <ac_nonexistent.h>
  25791. +_ACEOF
  25792. +if ac_fn_c_try_cpp "$LINENO"; then :
  25793. + # Broken: success on invalid input.
  25794. +continue
  25795. +else
  25796. + # Passes both tests.
  25797. +ac_preproc_ok=:
  25798. +break
  25799. fi
  25800. +rm -f conftest.err conftest.$ac_ext
  25801. - fi
  25802. - ;;
  25803. -esac
  25804. +done
  25805. +# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  25806. +rm -f conftest.err conftest.$ac_ext
  25807. +if $ac_preproc_ok; then :
  25808. + break
  25809. +fi
  25810. -enable_dlopen=no
  25811. -enable_win32_dll=no
  25812. + done
  25813. + ac_cv_prog_CPP=$CPP
  25814. -# Check whether --enable-libtool-lock was given.
  25815. -if test "${enable_libtool_lock+set}" = set; then
  25816. - enableval=$enable_libtool_lock;
  25817. fi
  25818. + CPP=$ac_cv_prog_CPP
  25819. +else
  25820. + ac_cv_prog_CPP=$CPP
  25821. +fi
  25822. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  25823. +$as_echo "$CPP" >&6; }
  25824. +ac_preproc_ok=false
  25825. +for ac_c_preproc_warn_flag in '' yes
  25826. +do
  25827. + # Use a header file that comes with gcc, so configuring glibc
  25828. + # with a fresh cross-compiler works.
  25829. + # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  25830. + # <limits.h> exists even on freestanding compilers.
  25831. + # On the NeXT, cc -E runs the code through the compiler's parser,
  25832. + # not just through cpp. "Syntax error" is here to catch this case.
  25833. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  25834. +/* end confdefs.h. */
  25835. +#ifdef __STDC__
  25836. +# include <limits.h>
  25837. +#else
  25838. +# include <assert.h>
  25839. +#endif
  25840. + Syntax error
  25841. +_ACEOF
  25842. +if ac_fn_c_try_cpp "$LINENO"; then :
  25843. -test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  25844. -
  25845. +else
  25846. + # Broken: fails on valid input.
  25847. +continue
  25848. +fi
  25849. +rm -f conftest.err conftest.$ac_ext
  25850. -# Check whether --with-pic was given.
  25851. -if test "${with_pic+set}" = set; then
  25852. - withval=$with_pic; pic_mode="$withval"
  25853. + # OK, works on sane cases. Now check whether nonexistent headers
  25854. + # can be detected and how.
  25855. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  25856. +/* end confdefs.h. */
  25857. +#include <ac_nonexistent.h>
  25858. +_ACEOF
  25859. +if ac_fn_c_try_cpp "$LINENO"; then :
  25860. + # Broken: success on invalid input.
  25861. +continue
  25862. else
  25863. - pic_mode=default
  25864. + # Passes both tests.
  25865. +ac_preproc_ok=:
  25866. +break
  25867. fi
  25868. +rm -f conftest.err conftest.$ac_ext
  25869. -test -z "$pic_mode" && pic_mode=default
  25870. +done
  25871. +# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  25872. +rm -f conftest.err conftest.$ac_ext
  25873. +if $ac_preproc_ok; then :
  25874. +
  25875. +else
  25876. + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  25877. +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  25878. +as_fn_error "C preprocessor \"$CPP\" fails sanity check
  25879. +See \`config.log' for more details." "$LINENO" 5; }
  25880. +fi
  25881. -# Use C for the default configuration in the libtool script
  25882. -tagname=
  25883. -lt_save_CC="$CC"
  25884. ac_ext=c
  25885. ac_cpp='$CPP $CPPFLAGS'
  25886. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  25887. @@ -7249,12514 +6791,3178 @@
  25888. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  25889. -# Source file extension for C test sources.
  25890. -ac_ext=c
  25891. -
  25892. -# Object file extension for compiled C test sources.
  25893. -objext=o
  25894. -objext=$objext
  25895. -
  25896. -# Code to be used in simple compile tests
  25897. -lt_simple_compile_test_code="int some_variable = 0;\n"
  25898. -
  25899. -# Code to be used in simple link tests
  25900. -lt_simple_link_test_code='int main(){return(0);}\n'
  25901. -
  25902. -
  25903. -# If no C compiler was specified, use CC.
  25904. -LTCC=${LTCC-"$CC"}
  25905. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  25906. +$as_echo_n "checking for ANSI C header files... " >&6; }
  25907. +if test "${ac_cv_header_stdc+set}" = set; then :
  25908. + $as_echo_n "(cached) " >&6
  25909. +else
  25910. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  25911. +/* end confdefs.h. */
  25912. +#include <stdlib.h>
  25913. +#include <stdarg.h>
  25914. +#include <string.h>
  25915. +#include <float.h>
  25916. -# If no C compiler flags were specified, use CFLAGS.
  25917. -LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  25918. +int
  25919. +main ()
  25920. +{
  25921. -# Allow CC to be a program name with arguments.
  25922. -compiler=$CC
  25923. + ;
  25924. + return 0;
  25925. +}
  25926. +_ACEOF
  25927. +if ac_fn_c_try_compile "$LINENO"; then :
  25928. + ac_cv_header_stdc=yes
  25929. +else
  25930. + ac_cv_header_stdc=no
  25931. +fi
  25932. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  25933. +if test $ac_cv_header_stdc = yes; then
  25934. + # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  25935. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  25936. +/* end confdefs.h. */
  25937. +#include <string.h>
  25938. -# save warnings/boilerplate of simple test code
  25939. -ac_outfile=conftest.$ac_objext
  25940. -printf "$lt_simple_compile_test_code" >conftest.$ac_ext
  25941. -eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  25942. -_lt_compiler_boilerplate=`cat conftest.err`
  25943. -$rm conftest*
  25944. +_ACEOF
  25945. +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  25946. + $EGREP "memchr" >/dev/null 2>&1; then :
  25947. -ac_outfile=conftest.$ac_objext
  25948. -printf "$lt_simple_link_test_code" >conftest.$ac_ext
  25949. -eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  25950. -_lt_linker_boilerplate=`cat conftest.err`
  25951. -$rm conftest*
  25952. +else
  25953. + ac_cv_header_stdc=no
  25954. +fi
  25955. +rm -f conftest*
  25956. +fi
  25957. +if test $ac_cv_header_stdc = yes; then
  25958. + # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  25959. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  25960. +/* end confdefs.h. */
  25961. +#include <stdlib.h>
  25962. -lt_prog_compiler_no_builtin_flag=
  25963. +_ACEOF
  25964. +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  25965. + $EGREP "free" >/dev/null 2>&1; then :
  25966. -if test "$GCC" = yes; then
  25967. - lt_prog_compiler_no_builtin_flag=' -fno-builtin'
  25968. +else
  25969. + ac_cv_header_stdc=no
  25970. +fi
  25971. +rm -f conftest*
  25972. +fi
  25973. -{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  25974. -echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
  25975. -if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
  25976. - echo $ECHO_N "(cached) $ECHO_C" >&6
  25977. +if test $ac_cv_header_stdc = yes; then
  25978. + # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  25979. + if test "$cross_compiling" = yes; then :
  25980. + :
  25981. else
  25982. - lt_cv_prog_compiler_rtti_exceptions=no
  25983. - ac_outfile=conftest.$ac_objext
  25984. - printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  25985. - lt_compiler_flag="-fno-rtti -fno-exceptions"
  25986. - # Insert the option either (1) after the last *FLAGS variable, or
  25987. - # (2) before a word containing "conftest.", or (3) at the end.
  25988. - # Note that $ac_compile itself does not contain backslashes and begins
  25989. - # with a dollar sign (not a hyphen), so the echo should work correctly.
  25990. - # The option is referenced via a variable to avoid confusing sed.
  25991. - lt_compile=`echo "$ac_compile" | $SED \
  25992. - -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  25993. - -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  25994. - -e 's:$: $lt_compiler_flag:'`
  25995. - (eval echo "\"\$as_me:7315: $lt_compile\"" >&5)
  25996. - (eval "$lt_compile" 2>conftest.err)
  25997. - ac_status=$?
  25998. - cat conftest.err >&5
  25999. - echo "$as_me:7319: \$? = $ac_status" >&5
  26000. - if (exit $ac_status) && test -s "$ac_outfile"; then
  26001. - # The compiler can only warn and ignore the option if not recognized
  26002. - # So say no if there are warnings other than the usual output.
  26003. - $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  26004. - $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  26005. - if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  26006. - lt_cv_prog_compiler_rtti_exceptions=yes
  26007. - fi
  26008. - fi
  26009. - $rm conftest*
  26010. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  26011. +/* end confdefs.h. */
  26012. +#include <ctype.h>
  26013. +#include <stdlib.h>
  26014. +#if ((' ' & 0x0FF) == 0x020)
  26015. +# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  26016. +# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  26017. +#else
  26018. +# define ISLOWER(c) \
  26019. + (('a' <= (c) && (c) <= 'i') \
  26020. + || ('j' <= (c) && (c) <= 'r') \
  26021. + || ('s' <= (c) && (c) <= 'z'))
  26022. +# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  26023. +#endif
  26024. -fi
  26025. -{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  26026. -echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  26027. +#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  26028. +int
  26029. +main ()
  26030. +{
  26031. + int i;
  26032. + for (i = 0; i < 256; i++)
  26033. + if (XOR (islower (i), ISLOWER (i))
  26034. + || toupper (i) != TOUPPER (i))
  26035. + return 2;
  26036. + return 0;
  26037. +}
  26038. +_ACEOF
  26039. +if ac_fn_c_try_run "$LINENO"; then :
  26040. -if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  26041. - lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  26042. else
  26043. - :
  26044. + ac_cv_header_stdc=no
  26045. +fi
  26046. +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  26047. + conftest.$ac_objext conftest.beam conftest.$ac_ext
  26048. fi
  26049. fi
  26050. +fi
  26051. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  26052. +$as_echo "$ac_cv_header_stdc" >&6; }
  26053. +if test $ac_cv_header_stdc = yes; then
  26054. -lt_prog_compiler_wl=
  26055. -lt_prog_compiler_pic=
  26056. -lt_prog_compiler_static=
  26057. +$as_echo "#define STDC_HEADERS 1" >>confdefs.h
  26058. -{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
  26059. -echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
  26060. +fi
  26061. - if test "$GCC" = yes; then
  26062. - lt_prog_compiler_wl='-Wl,'
  26063. - lt_prog_compiler_static='-static'
  26064. +# On IRIX 5.3, sys/types and inttypes.h are conflicting.
  26065. +for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  26066. + inttypes.h stdint.h unistd.h
  26067. +do :
  26068. + as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  26069. +ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  26070. +"
  26071. +eval as_val=\$$as_ac_Header
  26072. + if test "x$as_val" = x""yes; then :
  26073. + cat >>confdefs.h <<_ACEOF
  26074. +#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  26075. +_ACEOF
  26076. - case $host_os in
  26077. - aix*)
  26078. - # All AIX code is PIC.
  26079. - if test "$host_cpu" = ia64; then
  26080. - # AIX 5 now supports IA64 processor
  26081. - lt_prog_compiler_static='-Bstatic'
  26082. - fi
  26083. - ;;
  26084. +fi
  26085. - amigaos*)
  26086. - # FIXME: we need at least 68020 code to build shared libraries, but
  26087. - # adding the `-m68020' flag to GCC prevents building anything better,
  26088. - # like `-m68040'.
  26089. - lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  26090. - ;;
  26091. +done
  26092. - beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  26093. - # PIC is the default for these OSes.
  26094. - ;;
  26095. - mingw* | pw32* | os2*)
  26096. - # This hack is so that the source file can tell whether it is being
  26097. - # built for inclusion in a dll (and should export symbols for example).
  26098. - lt_prog_compiler_pic='-DDLL_EXPORT'
  26099. - ;;
  26100. +for ac_header in dlfcn.h
  26101. +do :
  26102. + ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
  26103. +"
  26104. +if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
  26105. + cat >>confdefs.h <<_ACEOF
  26106. +#define HAVE_DLFCN_H 1
  26107. +_ACEOF
  26108. - darwin* | rhapsody*)
  26109. - # PIC is the default on this platform
  26110. - # Common symbols not allowed in MH_DYLIB files
  26111. - lt_prog_compiler_pic='-fno-common'
  26112. - ;;
  26113. +fi
  26114. - interix3*)
  26115. - # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  26116. - # Instead, we relocate shared libraries at runtime.
  26117. - ;;
  26118. +done
  26119. - msdosdjgpp*)
  26120. - # Just because we use GCC doesn't mean we suddenly get shared libraries
  26121. - # on systems that don't support them.
  26122. - lt_prog_compiler_can_build_shared=no
  26123. - enable_shared=no
  26124. - ;;
  26125. - sysv4*MP*)
  26126. - if test -d /usr/nec; then
  26127. - lt_prog_compiler_pic=-Kconform_pic
  26128. - fi
  26129. - ;;
  26130. - hpux*)
  26131. - # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  26132. - # not for PA HP-UX.
  26133. - case $host_cpu in
  26134. - hppa*64*|ia64*)
  26135. - # +Z the default
  26136. - ;;
  26137. - *)
  26138. - lt_prog_compiler_pic='-fPIC'
  26139. - ;;
  26140. - esac
  26141. - ;;
  26142. +# Set options
  26143. - *)
  26144. - lt_prog_compiler_pic='-fPIC'
  26145. - ;;
  26146. - esac
  26147. - else
  26148. - # PORTME Check for flag to pass linker flags through the system compiler.
  26149. - case $host_os in
  26150. - aix*)
  26151. - lt_prog_compiler_wl='-Wl,'
  26152. - if test "$host_cpu" = ia64; then
  26153. - # AIX 5 now supports IA64 processor
  26154. - lt_prog_compiler_static='-Bstatic'
  26155. - else
  26156. - lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  26157. - fi
  26158. - ;;
  26159. - darwin*)
  26160. - # PIC is the default on this platform
  26161. - # Common symbols not allowed in MH_DYLIB files
  26162. - case $cc_basename in
  26163. - xlc*)
  26164. - lt_prog_compiler_pic='-qnocommon'
  26165. - lt_prog_compiler_wl='-Wl,'
  26166. - ;;
  26167. - esac
  26168. - ;;
  26169. - mingw* | pw32* | os2*)
  26170. - # This hack is so that the source file can tell whether it is being
  26171. - # built for inclusion in a dll (and should export symbols for example).
  26172. - lt_prog_compiler_pic='-DDLL_EXPORT'
  26173. - ;;
  26174. - hpux9* | hpux10* | hpux11*)
  26175. - lt_prog_compiler_wl='-Wl,'
  26176. - # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  26177. - # not for PA HP-UX.
  26178. - case $host_cpu in
  26179. - hppa*64*|ia64*)
  26180. - # +Z the default
  26181. - ;;
  26182. - *)
  26183. - lt_prog_compiler_pic='+Z'
  26184. - ;;
  26185. - esac
  26186. - # Is there a better lt_prog_compiler_static that works with the bundled CC?
  26187. - lt_prog_compiler_static='${wl}-a ${wl}archive'
  26188. - ;;
  26189. + enable_dlopen=no
  26190. - irix5* | irix6* | nonstopux*)
  26191. - lt_prog_compiler_wl='-Wl,'
  26192. - # PIC (with -KPIC) is the default.
  26193. - lt_prog_compiler_static='-non_shared'
  26194. - ;;
  26195. - newsos6)
  26196. - lt_prog_compiler_pic='-KPIC'
  26197. - lt_prog_compiler_static='-Bstatic'
  26198. - ;;
  26199. + enable_win32_dll=no
  26200. - linux*)
  26201. - case $cc_basename in
  26202. - icc* | ecc*)
  26203. - lt_prog_compiler_wl='-Wl,'
  26204. - lt_prog_compiler_pic='-KPIC'
  26205. - lt_prog_compiler_static='-static'
  26206. - ;;
  26207. - pgcc* | pgf77* | pgf90* | pgf95*)
  26208. - # Portland Group compilers (*not* the Pentium gcc compiler,
  26209. - # which looks to be a dead project)
  26210. - lt_prog_compiler_wl='-Wl,'
  26211. - lt_prog_compiler_pic='-fpic'
  26212. - lt_prog_compiler_static='-Bstatic'
  26213. - ;;
  26214. - ccc*)
  26215. - lt_prog_compiler_wl='-Wl,'
  26216. - # All Alpha code is PIC.
  26217. - lt_prog_compiler_static='-non_shared'
  26218. - ;;
  26219. - esac
  26220. - ;;
  26221. - osf3* | osf4* | osf5*)
  26222. - lt_prog_compiler_wl='-Wl,'
  26223. - # All OSF/1 code is PIC.
  26224. - lt_prog_compiler_static='-non_shared'
  26225. + # Check whether --enable-shared was given.
  26226. +if test "${enable_shared+set}" = set; then :
  26227. + enableval=$enable_shared; p=${PACKAGE-default}
  26228. + case $enableval in
  26229. + yes) enable_shared=yes ;;
  26230. + no) enable_shared=no ;;
  26231. + *)
  26232. + enable_shared=no
  26233. + # Look at the argument we got. We use all the common list separators.
  26234. + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  26235. + for pkg in $enableval; do
  26236. + IFS="$lt_save_ifs"
  26237. + if test "X$pkg" = "X$p"; then
  26238. + enable_shared=yes
  26239. + fi
  26240. + done
  26241. + IFS="$lt_save_ifs"
  26242. ;;
  26243. + esac
  26244. +else
  26245. + enable_shared=yes
  26246. +fi
  26247. +
  26248. - solaris*)
  26249. - lt_prog_compiler_pic='-KPIC'
  26250. - lt_prog_compiler_static='-Bstatic'
  26251. - case $cc_basename in
  26252. - f77* | f90* | f95*)
  26253. - lt_prog_compiler_wl='-Qoption ld ';;
  26254. - *)
  26255. - lt_prog_compiler_wl='-Wl,';;
  26256. - esac
  26257. - ;;
  26258. - sunos4*)
  26259. - lt_prog_compiler_wl='-Qoption ld '
  26260. - lt_prog_compiler_pic='-PIC'
  26261. - lt_prog_compiler_static='-Bstatic'
  26262. - ;;
  26263. - sysv4 | sysv4.2uw2* | sysv4.3*)
  26264. - lt_prog_compiler_wl='-Wl,'
  26265. - lt_prog_compiler_pic='-KPIC'
  26266. - lt_prog_compiler_static='-Bstatic'
  26267. - ;;
  26268. - sysv4*MP*)
  26269. - if test -d /usr/nec ;then
  26270. - lt_prog_compiler_pic='-Kconform_pic'
  26271. - lt_prog_compiler_static='-Bstatic'
  26272. - fi
  26273. - ;;
  26274. - sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  26275. - lt_prog_compiler_wl='-Wl,'
  26276. - lt_prog_compiler_pic='-KPIC'
  26277. - lt_prog_compiler_static='-Bstatic'
  26278. - ;;
  26279. - unicos*)
  26280. - lt_prog_compiler_wl='-Wl,'
  26281. - lt_prog_compiler_can_build_shared=no
  26282. - ;;
  26283. - uts4*)
  26284. - lt_prog_compiler_pic='-pic'
  26285. - lt_prog_compiler_static='-Bstatic'
  26286. - ;;
  26287. + # Check whether --enable-static was given.
  26288. +if test "${enable_static+set}" = set; then :
  26289. + enableval=$enable_static; p=${PACKAGE-default}
  26290. + case $enableval in
  26291. + yes) enable_static=yes ;;
  26292. + no) enable_static=no ;;
  26293. *)
  26294. - lt_prog_compiler_can_build_shared=no
  26295. + enable_static=no
  26296. + # Look at the argument we got. We use all the common list separators.
  26297. + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  26298. + for pkg in $enableval; do
  26299. + IFS="$lt_save_ifs"
  26300. + if test "X$pkg" = "X$p"; then
  26301. + enable_static=yes
  26302. + fi
  26303. + done
  26304. + IFS="$lt_save_ifs"
  26305. ;;
  26306. esac
  26307. - fi
  26308. +else
  26309. + enable_static=yes
  26310. +fi
  26311. -{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
  26312. -echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
  26313. -#
  26314. -# Check to make sure the PIC flag actually works.
  26315. -#
  26316. -if test -n "$lt_prog_compiler_pic"; then
  26317. -{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  26318. -echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
  26319. -if test "${lt_prog_compiler_pic_works+set}" = set; then
  26320. - echo $ECHO_N "(cached) $ECHO_C" >&6
  26321. -else
  26322. - lt_prog_compiler_pic_works=no
  26323. - ac_outfile=conftest.$ac_objext
  26324. - printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  26325. - lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
  26326. - # Insert the option either (1) after the last *FLAGS variable, or
  26327. - # (2) before a word containing "conftest.", or (3) at the end.
  26328. - # Note that $ac_compile itself does not contain backslashes and begins
  26329. - # with a dollar sign (not a hyphen), so the echo should work correctly.
  26330. - # The option is referenced via a variable to avoid confusing sed.
  26331. - lt_compile=`echo "$ac_compile" | $SED \
  26332. - -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  26333. - -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  26334. - -e 's:$: $lt_compiler_flag:'`
  26335. - (eval echo "\"\$as_me:7583: $lt_compile\"" >&5)
  26336. - (eval "$lt_compile" 2>conftest.err)
  26337. - ac_status=$?
  26338. - cat conftest.err >&5
  26339. - echo "$as_me:7587: \$? = $ac_status" >&5
  26340. - if (exit $ac_status) && test -s "$ac_outfile"; then
  26341. - # The compiler can only warn and ignore the option if not recognized
  26342. - # So say no if there are warnings other than the usual output.
  26343. - $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  26344. - $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  26345. - if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  26346. - lt_prog_compiler_pic_works=yes
  26347. - fi
  26348. - fi
  26349. - $rm conftest*
  26350. -fi
  26351. -{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
  26352. -echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
  26353. -if test x"$lt_prog_compiler_pic_works" = xyes; then
  26354. - case $lt_prog_compiler_pic in
  26355. - "" | " "*) ;;
  26356. - *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  26357. - esac
  26358. -else
  26359. - lt_prog_compiler_pic=
  26360. - lt_prog_compiler_can_build_shared=no
  26361. -fi
  26362. -fi
  26363. -case $host_os in
  26364. - # For platforms which do not support PIC, -DPIC is meaningless:
  26365. - *djgpp*)
  26366. - lt_prog_compiler_pic=
  26367. - ;;
  26368. - *)
  26369. - lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  26370. - ;;
  26371. -esac
  26372. -#
  26373. -# Check to make sure the static flag actually works.
  26374. -#
  26375. -wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  26376. -{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  26377. -echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
  26378. -if test "${lt_prog_compiler_static_works+set}" = set; then
  26379. - echo $ECHO_N "(cached) $ECHO_C" >&6
  26380. -else
  26381. - lt_prog_compiler_static_works=no
  26382. - save_LDFLAGS="$LDFLAGS"
  26383. - LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  26384. - printf "$lt_simple_link_test_code" > conftest.$ac_ext
  26385. - if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  26386. - # The linker can only warn and ignore the option if not recognized
  26387. - # So say no if there are warnings
  26388. - if test -s conftest.err; then
  26389. - # Append any errors to the config.log.
  26390. - cat conftest.err 1>&5
  26391. - $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
  26392. - $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  26393. - if diff conftest.exp conftest.er2 >/dev/null; then
  26394. - lt_prog_compiler_static_works=yes
  26395. - fi
  26396. - else
  26397. - lt_prog_compiler_static_works=yes
  26398. - fi
  26399. - fi
  26400. - $rm conftest*
  26401. - LDFLAGS="$save_LDFLAGS"
  26402. -fi
  26403. -{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
  26404. -echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
  26405. -if test x"$lt_prog_compiler_static_works" = xyes; then
  26406. - :
  26407. +
  26408. +# Check whether --with-pic was given.
  26409. +if test "${with_pic+set}" = set; then :
  26410. + withval=$with_pic; pic_mode="$withval"
  26411. else
  26412. - lt_prog_compiler_static=
  26413. + pic_mode=default
  26414. fi
  26415. -{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
  26416. -echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
  26417. -if test "${lt_cv_prog_compiler_c_o+set}" = set; then
  26418. - echo $ECHO_N "(cached) $ECHO_C" >&6
  26419. -else
  26420. - lt_cv_prog_compiler_c_o=no
  26421. - $rm -r conftest 2>/dev/null
  26422. - mkdir conftest
  26423. - cd conftest
  26424. - mkdir out
  26425. - printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  26426. +test -z "$pic_mode" && pic_mode=default
  26427. - lt_compiler_flag="-o out/conftest2.$ac_objext"
  26428. - # Insert the option either (1) after the last *FLAGS variable, or
  26429. - # (2) before a word containing "conftest.", or (3) at the end.
  26430. - # Note that $ac_compile itself does not contain backslashes and begins
  26431. - # with a dollar sign (not a hyphen), so the echo should work correctly.
  26432. - lt_compile=`echo "$ac_compile" | $SED \
  26433. - -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  26434. - -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  26435. - -e 's:$: $lt_compiler_flag:'`
  26436. - (eval echo "\"\$as_me:7687: $lt_compile\"" >&5)
  26437. - (eval "$lt_compile" 2>out/conftest.err)
  26438. - ac_status=$?
  26439. - cat out/conftest.err >&5
  26440. - echo "$as_me:7691: \$? = $ac_status" >&5
  26441. - if (exit $ac_status) && test -s out/conftest2.$ac_objext
  26442. - then
  26443. - # The compiler can only warn and ignore the option if not recognized
  26444. - # So say no if there are warnings
  26445. - $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  26446. - $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  26447. - if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  26448. - lt_cv_prog_compiler_c_o=yes
  26449. - fi
  26450. - fi
  26451. - chmod u+w . 2>&5
  26452. - $rm conftest*
  26453. - # SGI C++ compiler will create directory out/ii_files/ for
  26454. - # template instantiation
  26455. - test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
  26456. - $rm out/* && rmdir out
  26457. - cd ..
  26458. - rmdir conftest
  26459. - $rm conftest*
  26460. -fi
  26461. -{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
  26462. -echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
  26463. -hard_links="nottested"
  26464. -if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
  26465. - # do not overwrite the value of need_locks provided by the user
  26466. - { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
  26467. -echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
  26468. - hard_links=yes
  26469. - $rm conftest*
  26470. - ln conftest.a conftest.b 2>/dev/null && hard_links=no
  26471. - touch conftest.a
  26472. - ln conftest.a conftest.b 2>&5 || hard_links=no
  26473. - ln conftest.a conftest.b 2>/dev/null && hard_links=no
  26474. - { echo "$as_me:$LINENO: result: $hard_links" >&5
  26475. -echo "${ECHO_T}$hard_links" >&6; }
  26476. - if test "$hard_links" = no; then
  26477. - { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  26478. -echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  26479. - need_locks=warn
  26480. - fi
  26481. +
  26482. +
  26483. +
  26484. + # Check whether --enable-fast-install was given.
  26485. +if test "${enable_fast_install+set}" = set; then :
  26486. + enableval=$enable_fast_install; p=${PACKAGE-default}
  26487. + case $enableval in
  26488. + yes) enable_fast_install=yes ;;
  26489. + no) enable_fast_install=no ;;
  26490. + *)
  26491. + enable_fast_install=no
  26492. + # Look at the argument we got. We use all the common list separators.
  26493. + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  26494. + for pkg in $enableval; do
  26495. + IFS="$lt_save_ifs"
  26496. + if test "X$pkg" = "X$p"; then
  26497. + enable_fast_install=yes
  26498. + fi
  26499. + done
  26500. + IFS="$lt_save_ifs"
  26501. + ;;
  26502. + esac
  26503. else
  26504. - need_locks=no
  26505. + enable_fast_install=yes
  26506. fi
  26507. -{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  26508. -echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
  26509. - runpath_var=
  26510. - allow_undefined_flag=
  26511. - enable_shared_with_static_runtimes=no
  26512. - archive_cmds=
  26513. - archive_expsym_cmds=
  26514. - old_archive_From_new_cmds=
  26515. - old_archive_from_expsyms_cmds=
  26516. - export_dynamic_flag_spec=
  26517. - whole_archive_flag_spec=
  26518. - thread_safe_flag_spec=
  26519. - hardcode_libdir_flag_spec=
  26520. - hardcode_libdir_flag_spec_ld=
  26521. - hardcode_libdir_separator=
  26522. - hardcode_direct=no
  26523. - hardcode_minus_L=no
  26524. - hardcode_shlibpath_var=unsupported
  26525. - link_all_deplibs=unknown
  26526. - hardcode_automatic=no
  26527. - module_cmds=
  26528. - module_expsym_cmds=
  26529. - always_export_symbols=no
  26530. - export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  26531. - # include_expsyms should be a list of space-separated symbols to be *always*
  26532. - # included in the symbol list
  26533. - include_expsyms=
  26534. - # exclude_expsyms can be an extended regexp of symbols to exclude
  26535. - # it will be wrapped by ` (' and `)$', so one must not match beginning or
  26536. - # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  26537. - # as well as any symbol that contains `d'.
  26538. - exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
  26539. - # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  26540. - # platforms (ab)use it in PIC code, but their linkers get confused if
  26541. - # the symbol is explicitly referenced. Since portable code cannot
  26542. - # rely on this symbol name, it's probably fine to never include it in
  26543. - # preloaded symbol tables.
  26544. - extract_expsyms_cmds=
  26545. - # Just being paranoid about ensuring that cc_basename is set.
  26546. - for cc_temp in $compiler""; do
  26547. - case $cc_temp in
  26548. - compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  26549. - distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  26550. - \-*) ;;
  26551. - *) break;;
  26552. - esac
  26553. -done
  26554. -cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  26555. - case $host_os in
  26556. - cygwin* | mingw* | pw32*)
  26557. - # FIXME: the MSVC++ port hasn't been tested in a loooong time
  26558. - # When not using gcc, we currently assume that we are using
  26559. - # Microsoft Visual C++.
  26560. - if test "$GCC" != yes; then
  26561. - with_gnu_ld=no
  26562. - fi
  26563. - ;;
  26564. - interix*)
  26565. - # we just hope/assume this is gcc and not c89 (= MSVC++)
  26566. - with_gnu_ld=yes
  26567. - ;;
  26568. - openbsd*)
  26569. - with_gnu_ld=no
  26570. - ;;
  26571. - esac
  26572. - ld_shlibs=yes
  26573. - if test "$with_gnu_ld" = yes; then
  26574. - # If archive_cmds runs LD, not CC, wlarc should be empty
  26575. - wlarc='${wl}'
  26576. - # Set some defaults for GNU ld with shared library support. These
  26577. - # are reset later if shared libraries are not supported. Putting them
  26578. - # here allows them to be overridden if necessary.
  26579. - runpath_var=LD_RUN_PATH
  26580. - hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
  26581. - export_dynamic_flag_spec='${wl}--export-dynamic'
  26582. - # ancient GNU ld didn't support --whole-archive et. al.
  26583. - if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
  26584. - whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  26585. - else
  26586. - whole_archive_flag_spec=
  26587. - fi
  26588. - supports_anon_versioning=no
  26589. - case `$LD -v 2>/dev/null` in
  26590. - *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  26591. - *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  26592. - *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  26593. - *\ 2.11.*) ;; # other 2.11 versions
  26594. - *) supports_anon_versioning=yes ;;
  26595. - esac
  26596. - # See if GNU ld supports shared libraries.
  26597. - case $host_os in
  26598. - aix3* | aix4* | aix5*)
  26599. - # On AIX/PPC, the GNU linker is very broken
  26600. - if test "$host_cpu" != ia64; then
  26601. - ld_shlibs=no
  26602. - cat <<EOF 1>&2
  26603. -*** Warning: the GNU linker, at least up to release 2.9.1, is reported
  26604. -*** to be unable to reliably create shared libraries on AIX.
  26605. -*** Therefore, libtool is disabling shared libraries support. If you
  26606. -*** really care for shared libraries, you may want to modify your PATH
  26607. -*** so that a non-GNU linker is found, and then restart.
  26608. -EOF
  26609. - fi
  26610. - ;;
  26611. - amigaos*)
  26612. - 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)'
  26613. - hardcode_libdir_flag_spec='-L$libdir'
  26614. - hardcode_minus_L=yes
  26615. - # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
  26616. - # that the semantics of dynamic libraries on AmigaOS, at least up
  26617. - # to version 4, is to share data among multiple programs linked
  26618. - # with the same dynamic library. Since this doesn't match the
  26619. - # behavior of shared libraries on other platforms, we can't use
  26620. - # them.
  26621. - ld_shlibs=no
  26622. - ;;
  26623. - beos*)
  26624. - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  26625. - allow_undefined_flag=unsupported
  26626. - # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  26627. - # support --undefined. This deserves some investigation. FIXME
  26628. - archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  26629. - else
  26630. - ld_shlibs=no
  26631. - fi
  26632. - ;;
  26633. +# This can be used to rebuild libtool when needed
  26634. +LIBTOOL_DEPS="$ltmain"
  26635. - cygwin* | mingw* | pw32*)
  26636. - # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  26637. - # as there is no search path for DLLs.
  26638. - hardcode_libdir_flag_spec='-L$libdir'
  26639. - allow_undefined_flag=unsupported
  26640. - always_export_symbols=no
  26641. - enable_shared_with_static_runtimes=yes
  26642. - export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
  26643. +# Always use our own libtool.
  26644. +LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  26645. - if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
  26646. - archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  26647. - # If the export-symbols file already is a .def file (1st line
  26648. - # is EXPORTS), use it as is; otherwise, prepend...
  26649. - archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  26650. - cp $export_symbols $output_objdir/$soname.def;
  26651. - else
  26652. - echo EXPORTS > $output_objdir/$soname.def;
  26653. - cat $export_symbols >> $output_objdir/$soname.def;
  26654. - fi~
  26655. - $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  26656. - else
  26657. - ld_shlibs=no
  26658. - fi
  26659. - ;;
  26660. - interix3*)
  26661. - hardcode_direct=no
  26662. - hardcode_shlibpath_var=no
  26663. - hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  26664. - export_dynamic_flag_spec='${wl}-E'
  26665. - # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  26666. - # Instead, shared libraries are loaded at an image base (0x10000000 by
  26667. - # default) and relocated if they conflict, which is a slow very memory
  26668. - # consuming and fragmenting process. To avoid this, we pick a random,
  26669. - # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  26670. - # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  26671. - archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  26672. - 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'
  26673. - ;;
  26674. - linux*)
  26675. - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  26676. - tmp_addflag=
  26677. - case $cc_basename,$host_cpu in
  26678. - pgcc*) # Portland Group C compiler
  26679. - 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'
  26680. - tmp_addflag=' $pic_flag'
  26681. - ;;
  26682. - pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
  26683. - 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'
  26684. - tmp_addflag=' $pic_flag -Mnomain' ;;
  26685. - ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  26686. - tmp_addflag=' -i_dynamic' ;;
  26687. - efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  26688. - tmp_addflag=' -i_dynamic -nofor_main' ;;
  26689. - ifc* | ifort*) # Intel Fortran compiler
  26690. - tmp_addflag=' -nofor_main' ;;
  26691. - esac
  26692. - archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  26693. - if test $supports_anon_versioning = yes; then
  26694. - archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
  26695. - cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  26696. - $echo "local: *; };" >> $output_objdir/$libname.ver~
  26697. - $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  26698. - fi
  26699. - else
  26700. - ld_shlibs=no
  26701. - fi
  26702. - ;;
  26703. - netbsd*)
  26704. - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  26705. - archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  26706. - wlarc=
  26707. - else
  26708. - archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  26709. - archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  26710. - fi
  26711. - ;;
  26712. - solaris*)
  26713. - if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
  26714. - ld_shlibs=no
  26715. - cat <<EOF 1>&2
  26716. -*** Warning: The releases 2.8.* of the GNU linker cannot reliably
  26717. -*** create shared libraries on Solaris systems. Therefore, libtool
  26718. -*** is disabling shared libraries support. We urge you to upgrade GNU
  26719. -*** binutils to release 2.9.1 or newer. Another option is to modify
  26720. -*** your PATH or compiler configuration so that the native linker is
  26721. -*** used, and then restart.
  26722. -EOF
  26723. - elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  26724. - archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  26725. - archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  26726. - else
  26727. - ld_shlibs=no
  26728. - fi
  26729. - ;;
  26730. - sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  26731. - case `$LD -v 2>&1` in
  26732. - *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  26733. - ld_shlibs=no
  26734. - cat <<_LT_EOF 1>&2
  26735. -*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  26736. -*** reliably create shared libraries on SCO systems. Therefore, libtool
  26737. -*** is disabling shared libraries support. We urge you to upgrade GNU
  26738. -*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  26739. -*** your PATH or compiler configuration so that the native linker is
  26740. -*** used, and then restart.
  26741. -_LT_EOF
  26742. - ;;
  26743. - *)
  26744. - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  26745. - hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
  26746. - archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
  26747. - archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
  26748. - else
  26749. - ld_shlibs=no
  26750. - fi
  26751. - ;;
  26752. - esac
  26753. - ;;
  26754. - sunos4*)
  26755. - archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  26756. - wlarc=
  26757. - hardcode_direct=yes
  26758. - hardcode_shlibpath_var=no
  26759. - ;;
  26760. - *)
  26761. - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  26762. - archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  26763. - archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  26764. - else
  26765. - ld_shlibs=no
  26766. - fi
  26767. - ;;
  26768. - esac
  26769. - if test "$ld_shlibs" = no; then
  26770. - runpath_var=
  26771. - hardcode_libdir_flag_spec=
  26772. - export_dynamic_flag_spec=
  26773. - whole_archive_flag_spec=
  26774. - fi
  26775. - else
  26776. - # PORTME fill in a description of your system's linker (not GNU ld)
  26777. - case $host_os in
  26778. - aix3*)
  26779. - allow_undefined_flag=unsupported
  26780. - always_export_symbols=yes
  26781. - 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'
  26782. - # Note: this linker hardcodes the directories in LIBPATH if there
  26783. - # are no directories specified by -L.
  26784. - hardcode_minus_L=yes
  26785. - if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  26786. - # Neither direct hardcoding nor static linking is supported with a
  26787. - # broken collect2.
  26788. - hardcode_direct=unsupported
  26789. - fi
  26790. - ;;
  26791. - aix4* | aix5*)
  26792. - if test "$host_cpu" = ia64; then
  26793. - # On IA64, the linker does run time linking by default, so we don't
  26794. - # have to do anything special.
  26795. - aix_use_runtimelinking=no
  26796. - exp_sym_flag='-Bexport'
  26797. - no_entry_flag=""
  26798. - else
  26799. - # If we're using GNU nm, then we don't want the "-C" option.
  26800. - # -C means demangle to AIX nm, but means don't demangle with GNU nm
  26801. - if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
  26802. - 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'
  26803. - else
  26804. - 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'
  26805. - fi
  26806. - aix_use_runtimelinking=no
  26807. - # Test if we are trying to use run time linking or normal
  26808. - # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  26809. - # need to do runtime linking.
  26810. - case $host_os in aix4.[23]|aix4.[23].*|aix5*)
  26811. - for ld_flag in $LDFLAGS; do
  26812. - if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  26813. - aix_use_runtimelinking=yes
  26814. - break
  26815. - fi
  26816. - done
  26817. - ;;
  26818. - esac
  26819. - exp_sym_flag='-bexport'
  26820. - no_entry_flag='-bnoentry'
  26821. - fi
  26822. - # When large executables or shared objects are built, AIX ld can
  26823. - # have problems creating the table of contents. If linking a library
  26824. - # or program results in "error TOC overflow" add -mminimal-toc to
  26825. - # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  26826. - # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  26827. - archive_cmds=''
  26828. - hardcode_direct=yes
  26829. - hardcode_libdir_separator=':'
  26830. - link_all_deplibs=yes
  26831. - if test "$GCC" = yes; then
  26832. - case $host_os in aix4.[012]|aix4.[012].*)
  26833. - # We only want to do this on AIX 4.2 and lower, the check
  26834. - # below for broken collect2 doesn't work under 4.3+
  26835. - collect2name=`${CC} -print-prog-name=collect2`
  26836. - if test -f "$collect2name" && \
  26837. - strings "$collect2name" | grep resolve_lib_name >/dev/null
  26838. - then
  26839. - # We have reworked collect2
  26840. - hardcode_direct=yes
  26841. - else
  26842. - # We have old collect2
  26843. - hardcode_direct=unsupported
  26844. - # It fails to find uninstalled libraries when the uninstalled
  26845. - # path is not listed in the libpath. Setting hardcode_minus_L
  26846. - # to unsupported forces relinking
  26847. - hardcode_minus_L=yes
  26848. - hardcode_libdir_flag_spec='-L$libdir'
  26849. - hardcode_libdir_separator=
  26850. - fi
  26851. - ;;
  26852. - esac
  26853. - shared_flag='-shared'
  26854. - if test "$aix_use_runtimelinking" = yes; then
  26855. - shared_flag="$shared_flag "'${wl}-G'
  26856. - fi
  26857. - else
  26858. - # not using gcc
  26859. - if test "$host_cpu" = ia64; then
  26860. - # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  26861. - # chokes on -Wl,-G. The following line is correct:
  26862. - shared_flag='-G'
  26863. - else
  26864. - if test "$aix_use_runtimelinking" = yes; then
  26865. - shared_flag='${wl}-G'
  26866. - else
  26867. - shared_flag='${wl}-bM:SRE'
  26868. - fi
  26869. - fi
  26870. - fi
  26871. - # It seems that -bexpall does not export symbols beginning with
  26872. - # underscore (_), so it is better to generate a list of symbols to export.
  26873. - always_export_symbols=yes
  26874. - if test "$aix_use_runtimelinking" = yes; then
  26875. - # Warning - without using the other runtime loading flags (-brtl),
  26876. - # -berok will link without error, but may produce a broken library.
  26877. - allow_undefined_flag='-berok'
  26878. - # Determine the default libpath from the value encoded in an empty executable.
  26879. - cat >conftest.$ac_ext <<_ACEOF
  26880. -/* confdefs.h. */
  26881. -_ACEOF
  26882. -cat confdefs.h >>conftest.$ac_ext
  26883. -cat >>conftest.$ac_ext <<_ACEOF
  26884. -/* end confdefs.h. */
  26885. -int
  26886. -main ()
  26887. -{
  26888. - ;
  26889. - return 0;
  26890. -}
  26891. -_ACEOF
  26892. -rm -f conftest.$ac_objext conftest$ac_exeext
  26893. -if { (ac_try="$ac_link"
  26894. -case "(($ac_try" in
  26895. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  26896. - *) ac_try_echo=$ac_try;;
  26897. -esac
  26898. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  26899. - (eval "$ac_link") 2>conftest.er1
  26900. - ac_status=$?
  26901. - grep -v '^ *+' conftest.er1 >conftest.err
  26902. - rm -f conftest.er1
  26903. - cat conftest.err >&5
  26904. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26905. - (exit $ac_status); } &&
  26906. - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  26907. - { (case "(($ac_try" in
  26908. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  26909. - *) ac_try_echo=$ac_try;;
  26910. -esac
  26911. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  26912. - (eval "$ac_try") 2>&5
  26913. - ac_status=$?
  26914. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26915. - (exit $ac_status); }; } &&
  26916. - { ac_try='test -s conftest$ac_exeext'
  26917. - { (case "(($ac_try" in
  26918. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  26919. - *) ac_try_echo=$ac_try;;
  26920. -esac
  26921. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  26922. - (eval "$ac_try") 2>&5
  26923. - ac_status=$?
  26924. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26925. - (exit $ac_status); }; }; then
  26926. -aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  26927. -}'`
  26928. -# Check for a 64-bit object if we didn't find anything.
  26929. -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; }
  26930. -}'`; fi
  26931. -else
  26932. - echo "$as_me: failed program was:" >&5
  26933. -sed 's/^/| /' conftest.$ac_ext >&5
  26934. +test -z "$LN_S" && LN_S="ln -s"
  26935. -fi
  26936. -rm -f core conftest.err conftest.$ac_objext \
  26937. - conftest$ac_exeext conftest.$ac_ext
  26938. -if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  26939. - hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  26940. - 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"
  26941. - else
  26942. - if test "$host_cpu" = ia64; then
  26943. - hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
  26944. - allow_undefined_flag="-z nodefs"
  26945. - 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"
  26946. - else
  26947. - # Determine the default libpath from the value encoded in an empty executable.
  26948. - cat >conftest.$ac_ext <<_ACEOF
  26949. -/* confdefs.h. */
  26950. -_ACEOF
  26951. -cat confdefs.h >>conftest.$ac_ext
  26952. -cat >>conftest.$ac_ext <<_ACEOF
  26953. -/* end confdefs.h. */
  26954. -int
  26955. -main ()
  26956. -{
  26957. - ;
  26958. - return 0;
  26959. -}
  26960. -_ACEOF
  26961. -rm -f conftest.$ac_objext conftest$ac_exeext
  26962. -if { (ac_try="$ac_link"
  26963. -case "(($ac_try" in
  26964. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  26965. - *) ac_try_echo=$ac_try;;
  26966. -esac
  26967. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  26968. - (eval "$ac_link") 2>conftest.er1
  26969. - ac_status=$?
  26970. - grep -v '^ *+' conftest.er1 >conftest.err
  26971. - rm -f conftest.er1
  26972. - cat conftest.err >&5
  26973. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26974. - (exit $ac_status); } &&
  26975. - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  26976. - { (case "(($ac_try" in
  26977. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  26978. - *) ac_try_echo=$ac_try;;
  26979. -esac
  26980. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  26981. - (eval "$ac_try") 2>&5
  26982. - ac_status=$?
  26983. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26984. - (exit $ac_status); }; } &&
  26985. - { ac_try='test -s conftest$ac_exeext'
  26986. - { (case "(($ac_try" in
  26987. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  26988. - *) ac_try_echo=$ac_try;;
  26989. -esac
  26990. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  26991. - (eval "$ac_try") 2>&5
  26992. - ac_status=$?
  26993. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26994. - (exit $ac_status); }; }; then
  26995. -aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  26996. -}'`
  26997. -# Check for a 64-bit object if we didn't find anything.
  26998. -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; }
  26999. -}'`; fi
  27000. -else
  27001. - echo "$as_me: failed program was:" >&5
  27002. -sed 's/^/| /' conftest.$ac_ext >&5
  27003. -fi
  27004. -rm -f core conftest.err conftest.$ac_objext \
  27005. - conftest$ac_exeext conftest.$ac_ext
  27006. -if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  27007. - hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  27008. - # Warning - without using the other run time loading flags,
  27009. - # -berok will link without error, but may produce a broken library.
  27010. - no_undefined_flag=' ${wl}-bernotok'
  27011. - allow_undefined_flag=' ${wl}-berok'
  27012. - # Exported symbols can be pulled into shared objects from archives
  27013. - whole_archive_flag_spec='$convenience'
  27014. - archive_cmds_need_lc=yes
  27015. - # This is similar to how AIX traditionally builds its shared libraries.
  27016. - 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'
  27017. - fi
  27018. - fi
  27019. - ;;
  27020. - amigaos*)
  27021. - 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)'
  27022. - hardcode_libdir_flag_spec='-L$libdir'
  27023. - hardcode_minus_L=yes
  27024. - # see comment about different semantics on the GNU ld section
  27025. - ld_shlibs=no
  27026. - ;;
  27027. - bsdi[45]*)
  27028. - export_dynamic_flag_spec=-rdynamic
  27029. - ;;
  27030. - cygwin* | mingw* | pw32*)
  27031. - # When not using gcc, we currently assume that we are using
  27032. - # Microsoft Visual C++.
  27033. - # hardcode_libdir_flag_spec is actually meaningless, as there is
  27034. - # no search path for DLLs.
  27035. - hardcode_libdir_flag_spec=' '
  27036. - allow_undefined_flag=unsupported
  27037. - # Tell ltmain to make .lib files, not .a files.
  27038. - libext=lib
  27039. - # Tell ltmain to make .dll files, not .so files.
  27040. - shrext_cmds=".dll"
  27041. - # FIXME: Setting linknames here is a bad hack.
  27042. - archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
  27043. - # The linker will automatically build a .lib file if we build a DLL.
  27044. - old_archive_From_new_cmds='true'
  27045. - # FIXME: Should let the user specify the lib program.
  27046. - old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
  27047. - fix_srcfile_path='`cygpath -w "$srcfile"`'
  27048. - enable_shared_with_static_runtimes=yes
  27049. - ;;
  27050. - darwin* | rhapsody*)
  27051. - case $host_os in
  27052. - rhapsody* | darwin1.[012])
  27053. - allow_undefined_flag='${wl}-undefined ${wl}suppress'
  27054. - ;;
  27055. - *) # Darwin 1.3 on
  27056. - if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
  27057. - allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  27058. - else
  27059. - case ${MACOSX_DEPLOYMENT_TARGET} in
  27060. - 10.[012])
  27061. - allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  27062. - ;;
  27063. - 10.*)
  27064. - allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
  27065. - ;;
  27066. - esac
  27067. - fi
  27068. - ;;
  27069. - esac
  27070. - archive_cmds_need_lc=no
  27071. - hardcode_direct=no
  27072. - hardcode_automatic=yes
  27073. - hardcode_shlibpath_var=unsupported
  27074. - whole_archive_flag_spec=''
  27075. - link_all_deplibs=yes
  27076. - if test "$GCC" = yes ; then
  27077. - output_verbose_link_cmd='echo'
  27078. - archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
  27079. - module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  27080. - # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  27081. - 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}'
  27082. - 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}'
  27083. - else
  27084. - case $cc_basename in
  27085. - xlc*)
  27086. - output_verbose_link_cmd='echo'
  27087. - archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
  27088. - module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  27089. - # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  27090. - 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}'
  27091. - 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}'
  27092. - ;;
  27093. - *)
  27094. - ld_shlibs=no
  27095. - ;;
  27096. - esac
  27097. - fi
  27098. - ;;
  27099. +if test -n "${ZSH_VERSION+set}" ; then
  27100. + setopt NO_GLOB_SUBST
  27101. +fi
  27102. - dgux*)
  27103. - archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  27104. - hardcode_libdir_flag_spec='-L$libdir'
  27105. - hardcode_shlibpath_var=no
  27106. - ;;
  27107. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
  27108. +$as_echo_n "checking for objdir... " >&6; }
  27109. +if test "${lt_cv_objdir+set}" = set; then :
  27110. + $as_echo_n "(cached) " >&6
  27111. +else
  27112. + rm -f .libs 2>/dev/null
  27113. +mkdir .libs 2>/dev/null
  27114. +if test -d .libs; then
  27115. + lt_cv_objdir=.libs
  27116. +else
  27117. + # MS-DOS does not allow filenames that begin with a dot.
  27118. + lt_cv_objdir=_libs
  27119. +fi
  27120. +rmdir .libs 2>/dev/null
  27121. +fi
  27122. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
  27123. +$as_echo "$lt_cv_objdir" >&6; }
  27124. +objdir=$lt_cv_objdir
  27125. - freebsd1*)
  27126. - ld_shlibs=no
  27127. - ;;
  27128. - # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  27129. - # support. Future versions do this automatically, but an explicit c++rt0.o
  27130. - # does not break anything, and helps significantly (at the cost of a little
  27131. - # extra space).
  27132. - freebsd2.2*)
  27133. - archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  27134. - hardcode_libdir_flag_spec='-R$libdir'
  27135. - hardcode_direct=yes
  27136. - hardcode_shlibpath_var=no
  27137. - ;;
  27138. - # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  27139. - freebsd2*)
  27140. - archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  27141. - hardcode_direct=yes
  27142. - hardcode_minus_L=yes
  27143. - hardcode_shlibpath_var=no
  27144. - ;;
  27145. - # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  27146. - freebsd* | kfreebsd*-gnu | dragonfly*)
  27147. - archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  27148. - hardcode_libdir_flag_spec='-R$libdir'
  27149. - hardcode_direct=yes
  27150. - hardcode_shlibpath_var=no
  27151. - ;;
  27152. - hpux9*)
  27153. - if test "$GCC" = yes; then
  27154. - 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'
  27155. - else
  27156. - 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'
  27157. - fi
  27158. - hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  27159. - hardcode_libdir_separator=:
  27160. - hardcode_direct=yes
  27161. +cat >>confdefs.h <<_ACEOF
  27162. +#define LT_OBJDIR "$lt_cv_objdir/"
  27163. +_ACEOF
  27164. - # hardcode_minus_L: Not really in the search PATH,
  27165. - # but as the default location of the library.
  27166. - hardcode_minus_L=yes
  27167. - export_dynamic_flag_spec='${wl}-E'
  27168. - ;;
  27169. - hpux10*)
  27170. - if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  27171. - archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  27172. - else
  27173. - archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  27174. - fi
  27175. - if test "$with_gnu_ld" = no; then
  27176. - hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  27177. - hardcode_libdir_separator=:
  27178. - hardcode_direct=yes
  27179. - export_dynamic_flag_spec='${wl}-E'
  27180. - # hardcode_minus_L: Not really in the search PATH,
  27181. - # but as the default location of the library.
  27182. - hardcode_minus_L=yes
  27183. - fi
  27184. - ;;
  27185. - hpux11*)
  27186. - if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  27187. - case $host_cpu in
  27188. - hppa*64*)
  27189. - archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  27190. - ;;
  27191. - ia64*)
  27192. - archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  27193. - ;;
  27194. - *)
  27195. - archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  27196. - ;;
  27197. - esac
  27198. - else
  27199. - case $host_cpu in
  27200. - hppa*64*)
  27201. - archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  27202. - ;;
  27203. - ia64*)
  27204. - archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  27205. - ;;
  27206. - *)
  27207. - archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  27208. - ;;
  27209. - esac
  27210. - fi
  27211. - if test "$with_gnu_ld" = no; then
  27212. - hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  27213. - hardcode_libdir_separator=:
  27214. - case $host_cpu in
  27215. - hppa*64*|ia64*)
  27216. - hardcode_libdir_flag_spec_ld='+b $libdir'
  27217. - hardcode_direct=no
  27218. - hardcode_shlibpath_var=no
  27219. - ;;
  27220. - *)
  27221. - hardcode_direct=yes
  27222. - export_dynamic_flag_spec='${wl}-E'
  27223. - # hardcode_minus_L: Not really in the search PATH,
  27224. - # but as the default location of the library.
  27225. - hardcode_minus_L=yes
  27226. - ;;
  27227. - esac
  27228. - fi
  27229. - ;;
  27230. - irix5* | irix6* | nonstopux*)
  27231. - if test "$GCC" = yes; then
  27232. - 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'
  27233. - else
  27234. - 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'
  27235. - hardcode_libdir_flag_spec_ld='-rpath $libdir'
  27236. - fi
  27237. - hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  27238. - hardcode_libdir_separator=:
  27239. - link_all_deplibs=yes
  27240. - ;;
  27241. - netbsd*)
  27242. - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  27243. - archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  27244. - else
  27245. - archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  27246. - fi
  27247. - hardcode_libdir_flag_spec='-R$libdir'
  27248. - hardcode_direct=yes
  27249. - hardcode_shlibpath_var=no
  27250. - ;;
  27251. - newsos6)
  27252. - archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  27253. - hardcode_direct=yes
  27254. - hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  27255. - hardcode_libdir_separator=:
  27256. - hardcode_shlibpath_var=no
  27257. - ;;
  27258. - openbsd*)
  27259. - hardcode_direct=yes
  27260. - hardcode_shlibpath_var=no
  27261. - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  27262. - archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  27263. - archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  27264. - hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  27265. - export_dynamic_flag_spec='${wl}-E'
  27266. - else
  27267. - case $host_os in
  27268. - openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  27269. - archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  27270. - hardcode_libdir_flag_spec='-R$libdir'
  27271. - ;;
  27272. - *)
  27273. - archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  27274. - hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  27275. - ;;
  27276. - esac
  27277. - fi
  27278. - ;;
  27279. - os2*)
  27280. - hardcode_libdir_flag_spec='-L$libdir'
  27281. - hardcode_minus_L=yes
  27282. - allow_undefined_flag=unsupported
  27283. - 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'
  27284. - old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  27285. - ;;
  27286. - osf3*)
  27287. - if test "$GCC" = yes; then
  27288. - allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  27289. - 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'
  27290. - else
  27291. - allow_undefined_flag=' -expect_unresolved \*'
  27292. - 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'
  27293. - fi
  27294. - hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  27295. - hardcode_libdir_separator=:
  27296. - ;;
  27297. - osf4* | osf5*) # as osf3* with the addition of -msym flag
  27298. - if test "$GCC" = yes; then
  27299. - allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  27300. - 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'
  27301. - hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  27302. - else
  27303. - allow_undefined_flag=' -expect_unresolved \*'
  27304. - 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'
  27305. - archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
  27306. - $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'
  27307. - # Both c and cxx compiler support -rpath directly
  27308. - hardcode_libdir_flag_spec='-rpath $libdir'
  27309. - fi
  27310. - hardcode_libdir_separator=:
  27311. - ;;
  27312. - solaris*)
  27313. - no_undefined_flag=' -z text'
  27314. - if test "$GCC" = yes; then
  27315. - wlarc='${wl}'
  27316. - archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  27317. - archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  27318. - $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
  27319. - else
  27320. - wlarc=''
  27321. - archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  27322. - archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  27323. - $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
  27324. - fi
  27325. - hardcode_libdir_flag_spec='-R$libdir'
  27326. - hardcode_shlibpath_var=no
  27327. - case $host_os in
  27328. - solaris2.[0-5] | solaris2.[0-5].*) ;;
  27329. - *)
  27330. - # The compiler driver will combine linker options so we
  27331. - # cannot just pass the convience library names through
  27332. - # without $wl, iff we do not link with $LD.
  27333. - # Luckily, gcc supports the same syntax we need for Sun Studio.
  27334. - # Supported since Solaris 2.6 (maybe 2.5.1?)
  27335. - case $wlarc in
  27336. - '')
  27337. - whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
  27338. - *)
  27339. - 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' ;;
  27340. - esac ;;
  27341. - esac
  27342. - link_all_deplibs=yes
  27343. - ;;
  27344. - sunos4*)
  27345. - if test "x$host_vendor" = xsequent; then
  27346. - # Use $CC to link under sequent, because it throws in some extra .o
  27347. - # files that make .init and .fini sections work.
  27348. - archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  27349. - else
  27350. - archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  27351. - fi
  27352. - hardcode_libdir_flag_spec='-L$libdir'
  27353. - hardcode_direct=yes
  27354. - hardcode_minus_L=yes
  27355. - hardcode_shlibpath_var=no
  27356. - ;;
  27357. +case $host_os in
  27358. +aix3*)
  27359. + # AIX sometimes has problems with the GCC collect2 program. For some
  27360. + # reason, if we set the COLLECT_NAMES environment variable, the problems
  27361. + # vanish in a puff of smoke.
  27362. + if test "X${COLLECT_NAMES+set}" != Xset; then
  27363. + COLLECT_NAMES=
  27364. + export COLLECT_NAMES
  27365. + fi
  27366. + ;;
  27367. +esac
  27368. - sysv4)
  27369. - case $host_vendor in
  27370. - sni)
  27371. - archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  27372. - hardcode_direct=yes # is this really true???
  27373. - ;;
  27374. - siemens)
  27375. - ## LD is ld it makes a PLAMLIB
  27376. - ## CC just makes a GrossModule.
  27377. - archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  27378. - reload_cmds='$CC -r -o $output$reload_objs'
  27379. - hardcode_direct=no
  27380. - ;;
  27381. - motorola)
  27382. - archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  27383. - hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  27384. - ;;
  27385. - esac
  27386. - runpath_var='LD_RUN_PATH'
  27387. - hardcode_shlibpath_var=no
  27388. - ;;
  27389. +# Sed substitution that helps us do robust quoting. It backslashifies
  27390. +# metacharacters that are still active within double-quoted strings.
  27391. +sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
  27392. - sysv4.3*)
  27393. - archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  27394. - hardcode_shlibpath_var=no
  27395. - export_dynamic_flag_spec='-Bexport'
  27396. - ;;
  27397. +# Same as above, but do not quote variable references.
  27398. +double_quote_subst='s/\(["`\\]\)/\\\1/g'
  27399. - sysv4*MP*)
  27400. - if test -d /usr/nec; then
  27401. - archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  27402. - hardcode_shlibpath_var=no
  27403. - runpath_var=LD_RUN_PATH
  27404. - hardcode_runpath_var=yes
  27405. - ld_shlibs=yes
  27406. - fi
  27407. - ;;
  27408. +# Sed substitution to delay expansion of an escaped shell variable in a
  27409. +# double_quote_subst'ed string.
  27410. +delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  27411. - sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
  27412. - no_undefined_flag='${wl}-z,text'
  27413. - archive_cmds_need_lc=no
  27414. - hardcode_shlibpath_var=no
  27415. - runpath_var='LD_RUN_PATH'
  27416. +# Sed substitution to delay expansion of an escaped single quote.
  27417. +delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  27418. - if test "$GCC" = yes; then
  27419. - archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  27420. - archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  27421. - else
  27422. - archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  27423. - archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  27424. - fi
  27425. - ;;
  27426. +# Sed substitution to avoid accidental globbing in evaled expressions
  27427. +no_glob_subst='s/\*/\\\*/g'
  27428. - sysv5* | sco3.2v5* | sco5v6*)
  27429. - # Note: We can NOT use -z defs as we might desire, because we do not
  27430. - # link with -lc, and that would cause any symbols used from libc to
  27431. - # always be unresolved, which means just about no library would
  27432. - # ever link correctly. If we're not using GNU ld we use -z text
  27433. - # though, which does catch some bad symbols but isn't as heavy-handed
  27434. - # as -z defs.
  27435. - no_undefined_flag='${wl}-z,text'
  27436. - allow_undefined_flag='${wl}-z,nodefs'
  27437. - archive_cmds_need_lc=no
  27438. - hardcode_shlibpath_var=no
  27439. - hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
  27440. - hardcode_libdir_separator=':'
  27441. - link_all_deplibs=yes
  27442. - export_dynamic_flag_spec='${wl}-Bexport'
  27443. - runpath_var='LD_RUN_PATH'
  27444. +# Global variables:
  27445. +ofile=libtool
  27446. +can_build_shared=yes
  27447. - if test "$GCC" = yes; then
  27448. - archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  27449. - archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  27450. - else
  27451. - archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  27452. - archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  27453. - fi
  27454. - ;;
  27455. +# All known linkers require a `.a' archive for static linking (except MSVC,
  27456. +# which needs '.lib').
  27457. +libext=a
  27458. - uts4*)
  27459. - archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  27460. - hardcode_libdir_flag_spec='-L$libdir'
  27461. - hardcode_shlibpath_var=no
  27462. - ;;
  27463. +with_gnu_ld="$lt_cv_prog_gnu_ld"
  27464. - *)
  27465. - ld_shlibs=no
  27466. - ;;
  27467. - esac
  27468. - fi
  27469. +old_CC="$CC"
  27470. +old_CFLAGS="$CFLAGS"
  27471. -{ echo "$as_me:$LINENO: result: $ld_shlibs" >&5
  27472. -echo "${ECHO_T}$ld_shlibs" >&6; }
  27473. -test "$ld_shlibs" = no && can_build_shared=no
  27474. +# Set sane defaults for various variables
  27475. +test -z "$CC" && CC=cc
  27476. +test -z "$LTCC" && LTCC=$CC
  27477. +test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  27478. +test -z "$LD" && LD=ld
  27479. +test -z "$ac_objext" && ac_objext=o
  27480. -#
  27481. -# Do we need to explicitly link libc?
  27482. -#
  27483. -case "x$archive_cmds_need_lc" in
  27484. -x|xyes)
  27485. - # Assume -lc should be added
  27486. - archive_cmds_need_lc=yes
  27487. +for cc_temp in $compiler""; do
  27488. + case $cc_temp in
  27489. + compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  27490. + distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  27491. + \-*) ;;
  27492. + *) break;;
  27493. + esac
  27494. +done
  27495. +cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  27496. - if test "$enable_shared" = yes && test "$GCC" = yes; then
  27497. - case $archive_cmds in
  27498. - *'~'*)
  27499. - # FIXME: we may have to deal with multi-command sequences.
  27500. - ;;
  27501. - '$CC '*)
  27502. - # Test whether the compiler implicitly links with -lc since on some
  27503. - # systems, -lgcc has to come before -lc. If gcc already passes -lc
  27504. - # to ld, don't add -lc before -lgcc.
  27505. - { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
  27506. -echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
  27507. - $rm conftest*
  27508. - printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  27509. - if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  27510. - (eval $ac_compile) 2>&5
  27511. - ac_status=$?
  27512. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27513. - (exit $ac_status); } 2>conftest.err; then
  27514. - soname=conftest
  27515. - lib=conftest
  27516. - libobjs=conftest.$ac_objext
  27517. - deplibs=
  27518. - wl=$lt_prog_compiler_wl
  27519. - pic_flag=$lt_prog_compiler_pic
  27520. - compiler_flags=-v
  27521. - linker_flags=-v
  27522. - verstring=
  27523. - output_objdir=.
  27524. - libname=conftest
  27525. - lt_save_allow_undefined_flag=$allow_undefined_flag
  27526. - allow_undefined_flag=
  27527. - if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
  27528. - (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
  27529. - ac_status=$?
  27530. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27531. - (exit $ac_status); }
  27532. - then
  27533. - archive_cmds_need_lc=no
  27534. - else
  27535. - archive_cmds_need_lc=yes
  27536. - fi
  27537. - allow_undefined_flag=$lt_save_allow_undefined_flag
  27538. - else
  27539. - cat conftest.err 1>&5
  27540. +# Only perform the check for file, if the check method requires it
  27541. +test -z "$MAGIC_CMD" && MAGIC_CMD=file
  27542. +case $deplibs_check_method in
  27543. +file_magic*)
  27544. + if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  27545. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
  27546. +$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
  27547. +if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
  27548. + $as_echo_n "(cached) " >&6
  27549. +else
  27550. + case $MAGIC_CMD in
  27551. +[\\/*] | ?:[\\/]*)
  27552. + lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  27553. + ;;
  27554. +*)
  27555. + lt_save_MAGIC_CMD="$MAGIC_CMD"
  27556. + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  27557. + ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  27558. + for ac_dir in $ac_dummy; do
  27559. + IFS="$lt_save_ifs"
  27560. + test -z "$ac_dir" && ac_dir=.
  27561. + if test -f $ac_dir/${ac_tool_prefix}file; then
  27562. + lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
  27563. + if test -n "$file_magic_test_file"; then
  27564. + case $deplibs_check_method in
  27565. + "file_magic "*)
  27566. + file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  27567. + MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  27568. + if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  27569. + $EGREP "$file_magic_regex" > /dev/null; then
  27570. + :
  27571. + else
  27572. + cat <<_LT_EOF 1>&2
  27573. +
  27574. +*** Warning: the command libtool uses to detect shared libraries,
  27575. +*** $file_magic_cmd, produces output that libtool cannot recognize.
  27576. +*** The result is that libtool may fail to recognize shared libraries
  27577. +*** as such. This will affect the creation of libtool libraries that
  27578. +*** depend on shared libraries, but programs linked with such libtool
  27579. +*** libraries will work regardless of this problem. Nevertheless, you
  27580. +*** may want to report the problem to your system manager and/or to
  27581. +*** bug-libtool@gnu.org
  27582. +
  27583. +_LT_EOF
  27584. + fi ;;
  27585. + esac
  27586. fi
  27587. - $rm conftest*
  27588. - { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
  27589. -echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
  27590. - ;;
  27591. - esac
  27592. - fi
  27593. + break
  27594. + fi
  27595. + done
  27596. + IFS="$lt_save_ifs"
  27597. + MAGIC_CMD="$lt_save_MAGIC_CMD"
  27598. ;;
  27599. esac
  27600. +fi
  27601. -{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
  27602. -echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
  27603. -library_names_spec=
  27604. -libname_spec='lib$name'
  27605. -soname_spec=
  27606. -shrext_cmds=".so"
  27607. -postinstall_cmds=
  27608. -postuninstall_cmds=
  27609. -finish_cmds=
  27610. -finish_eval=
  27611. -shlibpath_var=
  27612. -shlibpath_overrides_runpath=unknown
  27613. -version_type=none
  27614. -dynamic_linker="$host_os ld.so"
  27615. -sys_lib_dlsearch_path_spec="/lib /usr/lib"
  27616. -if test "$GCC" = yes; then
  27617. - sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  27618. - if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
  27619. - # if the path contains ";" then we assume it to be the separator
  27620. - # otherwise default to the standard path separator (i.e. ":") - it is
  27621. - # assumed that no part of a normal pathname contains ";" but that should
  27622. - # okay in the real world where ";" in dirpaths is itself problematic.
  27623. - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  27624. - else
  27625. - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  27626. - fi
  27627. +MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  27628. +if test -n "$MAGIC_CMD"; then
  27629. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  27630. +$as_echo "$MAGIC_CMD" >&6; }
  27631. else
  27632. - sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  27633. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  27634. +$as_echo "no" >&6; }
  27635. fi
  27636. -need_lib_prefix=unknown
  27637. -hardcode_into_libs=no
  27638. -# when you set need_version to no, make sure it does not cause -set_version
  27639. -# flags to be left without arguments
  27640. -need_version=unknown
  27641. -case $host_os in
  27642. -aix3*)
  27643. - version_type=linux
  27644. - library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  27645. - shlibpath_var=LIBPATH
  27646. - # AIX 3 has no versioning support, so we append a major version to the name.
  27647. - soname_spec='${libname}${release}${shared_ext}$major'
  27648. +
  27649. +
  27650. +if test -z "$lt_cv_path_MAGIC_CMD"; then
  27651. + if test -n "$ac_tool_prefix"; then
  27652. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
  27653. +$as_echo_n "checking for file... " >&6; }
  27654. +if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
  27655. + $as_echo_n "(cached) " >&6
  27656. +else
  27657. + case $MAGIC_CMD in
  27658. +[\\/*] | ?:[\\/]*)
  27659. + lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  27660. ;;
  27661. +*)
  27662. + lt_save_MAGIC_CMD="$MAGIC_CMD"
  27663. + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  27664. + ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  27665. + for ac_dir in $ac_dummy; do
  27666. + IFS="$lt_save_ifs"
  27667. + test -z "$ac_dir" && ac_dir=.
  27668. + if test -f $ac_dir/file; then
  27669. + lt_cv_path_MAGIC_CMD="$ac_dir/file"
  27670. + if test -n "$file_magic_test_file"; then
  27671. + case $deplibs_check_method in
  27672. + "file_magic "*)
  27673. + file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  27674. + MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  27675. + if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  27676. + $EGREP "$file_magic_regex" > /dev/null; then
  27677. + :
  27678. + else
  27679. + cat <<_LT_EOF 1>&2
  27680. -aix4* | aix5*)
  27681. - version_type=linux
  27682. - need_lib_prefix=no
  27683. - need_version=no
  27684. - hardcode_into_libs=yes
  27685. - if test "$host_cpu" = ia64; then
  27686. - # AIX 5 supports IA64
  27687. - library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  27688. - shlibpath_var=LD_LIBRARY_PATH
  27689. - else
  27690. - # With GCC up to 2.95.x, collect2 would create an import file
  27691. - # for dependence libraries. The import file would start with
  27692. - # the line `#! .'. This would cause the generated library to
  27693. - # depend on `.', always an invalid library. This was fixed in
  27694. - # development snapshots of GCC prior to 3.0.
  27695. - case $host_os in
  27696. - aix4 | aix4.[01] | aix4.[01].*)
  27697. - if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  27698. - echo ' yes '
  27699. - echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
  27700. - :
  27701. - else
  27702. - can_build_shared=no
  27703. +*** Warning: the command libtool uses to detect shared libraries,
  27704. +*** $file_magic_cmd, produces output that libtool cannot recognize.
  27705. +*** The result is that libtool may fail to recognize shared libraries
  27706. +*** as such. This will affect the creation of libtool libraries that
  27707. +*** depend on shared libraries, but programs linked with such libtool
  27708. +*** libraries will work regardless of this problem. Nevertheless, you
  27709. +*** may want to report the problem to your system manager and/or to
  27710. +*** bug-libtool@gnu.org
  27711. +
  27712. +_LT_EOF
  27713. + fi ;;
  27714. + esac
  27715. fi
  27716. - ;;
  27717. - esac
  27718. - # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  27719. - # soname into executable. Probably we can add versioning support to
  27720. - # collect2, so additional links can be useful in future.
  27721. - if test "$aix_use_runtimelinking" = yes; then
  27722. - # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  27723. - # instead of lib<name>.a to let people know that these are not
  27724. - # typical AIX shared libraries.
  27725. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  27726. - else
  27727. - # We preserve .a as extension for shared libraries through AIX4.2
  27728. - # and later when we are not doing run time linking.
  27729. - library_names_spec='${libname}${release}.a $libname.a'
  27730. - soname_spec='${libname}${release}${shared_ext}$major'
  27731. + break
  27732. fi
  27733. - shlibpath_var=LIBPATH
  27734. - fi
  27735. + done
  27736. + IFS="$lt_save_ifs"
  27737. + MAGIC_CMD="$lt_save_MAGIC_CMD"
  27738. ;;
  27739. +esac
  27740. +fi
  27741. -amigaos*)
  27742. - library_names_spec='$libname.ixlibrary $libname.a'
  27743. - # Create ${libname}_ixlibrary.a entries in /sys/libs.
  27744. - 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'
  27745. - ;;
  27746. +MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  27747. +if test -n "$MAGIC_CMD"; then
  27748. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  27749. +$as_echo "$MAGIC_CMD" >&6; }
  27750. +else
  27751. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  27752. +$as_echo "no" >&6; }
  27753. +fi
  27754. -beos*)
  27755. - library_names_spec='${libname}${shared_ext}'
  27756. - dynamic_linker="$host_os ld.so"
  27757. - shlibpath_var=LIBRARY_PATH
  27758. - ;;
  27759. -bsdi[45]*)
  27760. - version_type=linux
  27761. - need_version=no
  27762. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  27763. - soname_spec='${libname}${release}${shared_ext}$major'
  27764. - finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  27765. - shlibpath_var=LD_LIBRARY_PATH
  27766. - sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  27767. - sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  27768. - # the default ld.so.conf also contains /usr/contrib/lib and
  27769. - # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  27770. - # libtool to hard-code these into programs
  27771. + else
  27772. + MAGIC_CMD=:
  27773. + fi
  27774. +fi
  27775. +
  27776. + fi
  27777. ;;
  27778. +esac
  27779. -cygwin* | mingw* | pw32*)
  27780. - version_type=windows
  27781. - shrext_cmds=".dll"
  27782. - need_version=no
  27783. - need_lib_prefix=no
  27784. +# Use C for the default configuration in the libtool script
  27785. - case $GCC,$host_os in
  27786. - yes,cygwin* | yes,mingw* | yes,pw32*)
  27787. - library_names_spec='$libname.dll.a'
  27788. - # DLL is installed to $(libdir)/../bin by postinstall_cmds
  27789. - postinstall_cmds='base_file=`basename \${file}`~
  27790. - dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
  27791. - dldir=$destdir/`dirname \$dlpath`~
  27792. - test -d \$dldir || mkdir -p \$dldir~
  27793. - $install_prog $dir/$dlname \$dldir/$dlname~
  27794. - chmod a+x \$dldir/$dlname'
  27795. - postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  27796. - dlpath=$dir/\$dldll~
  27797. - $rm \$dlpath'
  27798. - shlibpath_overrides_runpath=yes
  27799. +lt_save_CC="$CC"
  27800. +ac_ext=c
  27801. +ac_cpp='$CPP $CPPFLAGS'
  27802. +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  27803. +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  27804. +ac_compiler_gnu=$ac_cv_c_compiler_gnu
  27805. - case $host_os in
  27806. - cygwin*)
  27807. - # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  27808. - soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  27809. - sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  27810. - ;;
  27811. - mingw*)
  27812. - # MinGW DLLs use traditional 'lib' prefix
  27813. - soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  27814. - sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  27815. - if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
  27816. - # It is most probably a Windows format PATH printed by
  27817. - # mingw gcc, but we are running on Cygwin. Gcc prints its search
  27818. - # path with ; separators, and with drive letters. We can handle the
  27819. - # drive letters (cygwin fileutils understands them), so leave them,
  27820. - # especially as we might pass files found there to a mingw objdump,
  27821. - # which wouldn't understand a cygwinified path. Ahh.
  27822. - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  27823. - else
  27824. - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  27825. - fi
  27826. - ;;
  27827. - pw32*)
  27828. - # pw32 DLLs use 'pw' prefix rather than 'lib'
  27829. - library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  27830. - ;;
  27831. - esac
  27832. - ;;
  27833. - *)
  27834. - library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  27835. - ;;
  27836. - esac
  27837. - dynamic_linker='Win32 ld.exe'
  27838. - # FIXME: first we should search . and the directory the executable is in
  27839. - shlibpath_var=PATH
  27840. - ;;
  27841. +# Source file extension for C test sources.
  27842. +ac_ext=c
  27843. -darwin* | rhapsody*)
  27844. - dynamic_linker="$host_os dyld"
  27845. - version_type=darwin
  27846. - need_lib_prefix=no
  27847. - need_version=no
  27848. - library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  27849. - soname_spec='${libname}${release}${major}$shared_ext'
  27850. - shlibpath_overrides_runpath=yes
  27851. - shlibpath_var=DYLD_LIBRARY_PATH
  27852. - shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  27853. - # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
  27854. - if test "$GCC" = yes; then
  27855. - 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"`
  27856. - else
  27857. - sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
  27858. - fi
  27859. - sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  27860. - ;;
  27861. +# Object file extension for compiled C test sources.
  27862. +objext=o
  27863. +objext=$objext
  27864. -dgux*)
  27865. - version_type=linux
  27866. - need_lib_prefix=no
  27867. - need_version=no
  27868. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  27869. - soname_spec='${libname}${release}${shared_ext}$major'
  27870. - shlibpath_var=LD_LIBRARY_PATH
  27871. - ;;
  27872. +# Code to be used in simple compile tests
  27873. +lt_simple_compile_test_code="int some_variable = 0;"
  27874. -freebsd1*)
  27875. - dynamic_linker=no
  27876. - ;;
  27877. +# Code to be used in simple link tests
  27878. +lt_simple_link_test_code='int main(){return(0);}'
  27879. -kfreebsd*-gnu)
  27880. - version_type=linux
  27881. - need_lib_prefix=no
  27882. - need_version=no
  27883. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  27884. - soname_spec='${libname}${release}${shared_ext}$major'
  27885. - shlibpath_var=LD_LIBRARY_PATH
  27886. - shlibpath_overrides_runpath=no
  27887. - hardcode_into_libs=yes
  27888. - dynamic_linker='GNU ld.so'
  27889. - ;;
  27890. -freebsd* | dragonfly*)
  27891. - # DragonFly does not have aout. When/if they implement a new
  27892. - # versioning mechanism, adjust this.
  27893. - if test -x /usr/bin/objformat; then
  27894. - objformat=`/usr/bin/objformat`
  27895. - else
  27896. - case $host_os in
  27897. - freebsd[123]*) objformat=aout ;;
  27898. - *) objformat=elf ;;
  27899. - esac
  27900. - fi
  27901. - version_type=freebsd-$objformat
  27902. - case $version_type in
  27903. - freebsd-elf*)
  27904. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  27905. - need_version=no
  27906. - need_lib_prefix=no
  27907. - ;;
  27908. - freebsd-*)
  27909. - library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  27910. - need_version=yes
  27911. - ;;
  27912. - esac
  27913. - shlibpath_var=LD_LIBRARY_PATH
  27914. - case $host_os in
  27915. - freebsd2*)
  27916. - shlibpath_overrides_runpath=yes
  27917. - ;;
  27918. - freebsd3.[01]* | freebsdelf3.[01]*)
  27919. - shlibpath_overrides_runpath=yes
  27920. - hardcode_into_libs=yes
  27921. - ;;
  27922. - freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  27923. - freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  27924. - shlibpath_overrides_runpath=no
  27925. - hardcode_into_libs=yes
  27926. - ;;
  27927. - freebsd*) # from 4.6 on
  27928. - shlibpath_overrides_runpath=yes
  27929. - hardcode_into_libs=yes
  27930. - ;;
  27931. - esac
  27932. - ;;
  27933. -gnu*)
  27934. - version_type=linux
  27935. - need_lib_prefix=no
  27936. - need_version=no
  27937. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  27938. - soname_spec='${libname}${release}${shared_ext}$major'
  27939. - shlibpath_var=LD_LIBRARY_PATH
  27940. - hardcode_into_libs=yes
  27941. - ;;
  27942. -hpux9* | hpux10* | hpux11*)
  27943. - # Give a soname corresponding to the major version so that dld.sl refuses to
  27944. - # link against other versions.
  27945. - version_type=sunos
  27946. - need_lib_prefix=no
  27947. - need_version=no
  27948. - case $host_cpu in
  27949. - ia64*)
  27950. - shrext_cmds='.so'
  27951. - hardcode_into_libs=yes
  27952. - dynamic_linker="$host_os dld.so"
  27953. - shlibpath_var=LD_LIBRARY_PATH
  27954. - shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  27955. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  27956. - soname_spec='${libname}${release}${shared_ext}$major'
  27957. - if test "X$HPUX_IA64_MODE" = X32; then
  27958. - sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  27959. - else
  27960. - sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  27961. - fi
  27962. - sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  27963. - ;;
  27964. - hppa*64*)
  27965. - shrext_cmds='.sl'
  27966. - hardcode_into_libs=yes
  27967. - dynamic_linker="$host_os dld.sl"
  27968. - shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  27969. - shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  27970. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  27971. - soname_spec='${libname}${release}${shared_ext}$major'
  27972. - sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  27973. - sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  27974. - ;;
  27975. - *)
  27976. - shrext_cmds='.sl'
  27977. - dynamic_linker="$host_os dld.sl"
  27978. - shlibpath_var=SHLIB_PATH
  27979. - shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  27980. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  27981. - soname_spec='${libname}${release}${shared_ext}$major'
  27982. - ;;
  27983. - esac
  27984. - # HP-UX runs *really* slowly unless shared libraries are mode 555.
  27985. - postinstall_cmds='chmod 555 $lib'
  27986. - ;;
  27987. -interix3*)
  27988. - version_type=linux
  27989. - need_lib_prefix=no
  27990. - need_version=no
  27991. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  27992. - soname_spec='${libname}${release}${shared_ext}$major'
  27993. - dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  27994. - shlibpath_var=LD_LIBRARY_PATH
  27995. - shlibpath_overrides_runpath=no
  27996. - hardcode_into_libs=yes
  27997. - ;;
  27998. -irix5* | irix6* | nonstopux*)
  27999. - case $host_os in
  28000. - nonstopux*) version_type=nonstopux ;;
  28001. - *)
  28002. - if test "$lt_cv_prog_gnu_ld" = yes; then
  28003. - version_type=linux
  28004. - else
  28005. - version_type=irix
  28006. - fi ;;
  28007. - esac
  28008. - need_lib_prefix=no
  28009. - need_version=no
  28010. - soname_spec='${libname}${release}${shared_ext}$major'
  28011. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  28012. - case $host_os in
  28013. - irix5* | nonstopux*)
  28014. - libsuff= shlibsuff=
  28015. - ;;
  28016. - *)
  28017. - case $LD in # libtool.m4 will add one of these switches to LD
  28018. - *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  28019. - libsuff= shlibsuff= libmagic=32-bit;;
  28020. - *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  28021. - libsuff=32 shlibsuff=N32 libmagic=N32;;
  28022. - *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  28023. - libsuff=64 shlibsuff=64 libmagic=64-bit;;
  28024. - *) libsuff= shlibsuff= libmagic=never-match;;
  28025. - esac
  28026. - ;;
  28027. - esac
  28028. - shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  28029. - shlibpath_overrides_runpath=no
  28030. - sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  28031. - sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  28032. - hardcode_into_libs=yes
  28033. - ;;
  28034. -# No shared lib support for Linux oldld, aout, or coff.
  28035. -linux*oldld* | linux*aout* | linux*coff*)
  28036. - dynamic_linker=no
  28037. - ;;
  28038. +# If no C compiler was specified, use CC.
  28039. +LTCC=${LTCC-"$CC"}
  28040. -# This must be Linux ELF.
  28041. -linux*)
  28042. - version_type=linux
  28043. - need_lib_prefix=no
  28044. - need_version=no
  28045. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  28046. - soname_spec='${libname}${release}${shared_ext}$major'
  28047. - finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  28048. - shlibpath_var=LD_LIBRARY_PATH
  28049. - shlibpath_overrides_runpath=no
  28050. - # This implies no fast_install, which is unacceptable.
  28051. - # Some rework will be needed to allow for fast_install
  28052. - # before this can be enabled.
  28053. - hardcode_into_libs=yes
  28054. +# If no C compiler flags were specified, use CFLAGS.
  28055. +LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  28056. - # find out which ABI we are using
  28057. - libsuff=
  28058. - case "$host_cpu" in
  28059. - x86_64*|s390x*|powerpc64*)
  28060. - echo '#line 9184 "configure"' > conftest.$ac_ext
  28061. - if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  28062. - (eval $ac_compile) 2>&5
  28063. - ac_status=$?
  28064. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28065. - (exit $ac_status); }; then
  28066. - case `/usr/bin/file conftest.$ac_objext` in
  28067. - *64-bit*)
  28068. - libsuff=64
  28069. - sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
  28070. - ;;
  28071. - esac
  28072. - fi
  28073. - rm -rf conftest*
  28074. - ;;
  28075. - esac
  28076. +# Allow CC to be a program name with arguments.
  28077. +compiler=$CC
  28078. - # Append ld.so.conf contents to the search path
  28079. - if test -f /etc/ld.so.conf; then
  28080. - 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/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
  28081. - sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
  28082. - fi
  28083. +# Save the default compiler, since it gets overwritten when the other
  28084. +# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  28085. +compiler_DEFAULT=$CC
  28086. - # We used to test for /lib/ld.so.1 and disable shared libraries on
  28087. - # powerpc, because MkLinux only supported shared libraries with the
  28088. - # GNU dynamic linker. Since this was broken with cross compilers,
  28089. - # most powerpc-linux boxes support dynamic linking these days and
  28090. - # people can always --disable-shared, the test was removed, and we
  28091. - # assume the GNU/Linux dynamic linker is in use.
  28092. - dynamic_linker='GNU/Linux ld.so'
  28093. - ;;
  28094. +# save warnings/boilerplate of simple test code
  28095. +ac_outfile=conftest.$ac_objext
  28096. +echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  28097. +eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  28098. +_lt_compiler_boilerplate=`cat conftest.err`
  28099. +$RM conftest*
  28100. -knetbsd*-gnu)
  28101. - version_type=linux
  28102. - need_lib_prefix=no
  28103. - need_version=no
  28104. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  28105. - soname_spec='${libname}${release}${shared_ext}$major'
  28106. - shlibpath_var=LD_LIBRARY_PATH
  28107. - shlibpath_overrides_runpath=no
  28108. - hardcode_into_libs=yes
  28109. - dynamic_linker='GNU ld.so'
  28110. - ;;
  28111. +ac_outfile=conftest.$ac_objext
  28112. +echo "$lt_simple_link_test_code" >conftest.$ac_ext
  28113. +eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  28114. +_lt_linker_boilerplate=`cat conftest.err`
  28115. +$RM -r conftest*
  28116. -netbsd*)
  28117. - version_type=sunos
  28118. - need_lib_prefix=no
  28119. - need_version=no
  28120. - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  28121. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  28122. - finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  28123. - dynamic_linker='NetBSD (a.out) ld.so'
  28124. - else
  28125. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  28126. - soname_spec='${libname}${release}${shared_ext}$major'
  28127. - dynamic_linker='NetBSD ld.elf_so'
  28128. - fi
  28129. - shlibpath_var=LD_LIBRARY_PATH
  28130. - shlibpath_overrides_runpath=yes
  28131. - hardcode_into_libs=yes
  28132. - ;;
  28133. -newsos6)
  28134. - version_type=linux
  28135. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  28136. - shlibpath_var=LD_LIBRARY_PATH
  28137. - shlibpath_overrides_runpath=yes
  28138. - ;;
  28139. +if test -n "$compiler"; then
  28140. -nto-qnx*)
  28141. - version_type=linux
  28142. - need_lib_prefix=no
  28143. - need_version=no
  28144. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  28145. - soname_spec='${libname}${release}${shared_ext}$major'
  28146. - shlibpath_var=LD_LIBRARY_PATH
  28147. - shlibpath_overrides_runpath=yes
  28148. - ;;
  28149. +lt_prog_compiler_no_builtin_flag=
  28150. +
  28151. +if test "$GCC" = yes; then
  28152. + lt_prog_compiler_no_builtin_flag=' -fno-builtin'
  28153. +
  28154. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  28155. +$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  28156. +if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
  28157. + $as_echo_n "(cached) " >&6
  28158. +else
  28159. + lt_cv_prog_compiler_rtti_exceptions=no
  28160. + ac_outfile=conftest.$ac_objext
  28161. + echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  28162. + lt_compiler_flag="-fno-rtti -fno-exceptions"
  28163. + # Insert the option either (1) after the last *FLAGS variable, or
  28164. + # (2) before a word containing "conftest.", or (3) at the end.
  28165. + # Note that $ac_compile itself does not contain backslashes and begins
  28166. + # with a dollar sign (not a hyphen), so the echo should work correctly.
  28167. + # The option is referenced via a variable to avoid confusing sed.
  28168. + lt_compile=`echo "$ac_compile" | $SED \
  28169. + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  28170. + -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  28171. + -e 's:$: $lt_compiler_flag:'`
  28172. + (eval echo "\"\$as_me:7435: $lt_compile\"" >&5)
  28173. + (eval "$lt_compile" 2>conftest.err)
  28174. + ac_status=$?
  28175. + cat conftest.err >&5
  28176. + echo "$as_me:7439: \$? = $ac_status" >&5
  28177. + if (exit $ac_status) && test -s "$ac_outfile"; then
  28178. + # The compiler can only warn and ignore the option if not recognized
  28179. + # So say no if there are warnings other than the usual output.
  28180. + $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  28181. + $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  28182. + if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  28183. + lt_cv_prog_compiler_rtti_exceptions=yes
  28184. + fi
  28185. + fi
  28186. + $RM conftest*
  28187. +
  28188. +fi
  28189. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  28190. +$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  28191. +
  28192. +if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  28193. + lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  28194. +else
  28195. + :
  28196. +fi
  28197. +
  28198. +fi
  28199. +
  28200. +
  28201. +
  28202. +
  28203. +
  28204. +
  28205. + lt_prog_compiler_wl=
  28206. +lt_prog_compiler_pic=
  28207. +lt_prog_compiler_static=
  28208. +
  28209. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  28210. +$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  28211. +
  28212. + if test "$GCC" = yes; then
  28213. + lt_prog_compiler_wl='-Wl,'
  28214. + lt_prog_compiler_static='-static'
  28215. -openbsd*)
  28216. - version_type=sunos
  28217. - sys_lib_dlsearch_path_spec="/usr/lib"
  28218. - need_lib_prefix=no
  28219. - # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  28220. - case $host_os in
  28221. - openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  28222. - *) need_version=no ;;
  28223. - esac
  28224. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  28225. - finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  28226. - shlibpath_var=LD_LIBRARY_PATH
  28227. - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  28228. case $host_os in
  28229. - openbsd2.[89] | openbsd2.[89].*)
  28230. - shlibpath_overrides_runpath=no
  28231. + aix*)
  28232. + # All AIX code is PIC.
  28233. + if test "$host_cpu" = ia64; then
  28234. + # AIX 5 now supports IA64 processor
  28235. + lt_prog_compiler_static='-Bstatic'
  28236. + fi
  28237. + ;;
  28238. +
  28239. + amigaos*)
  28240. + case $host_cpu in
  28241. + powerpc)
  28242. + # see comment about AmigaOS4 .so support
  28243. + lt_prog_compiler_pic='-fPIC'
  28244. + ;;
  28245. + m68k)
  28246. + # FIXME: we need at least 68020 code to build shared libraries, but
  28247. + # adding the `-m68020' flag to GCC prevents building anything better,
  28248. + # like `-m68040'.
  28249. + lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  28250. + ;;
  28251. + esac
  28252. + ;;
  28253. +
  28254. + beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  28255. + # PIC is the default for these OSes.
  28256. + ;;
  28257. +
  28258. + mingw* | cygwin* | pw32* | os2* | cegcc*)
  28259. + # This hack is so that the source file can tell whether it is being
  28260. + # built for inclusion in a dll (and should export symbols for example).
  28261. + # Although the cygwin gcc ignores -fPIC, still need this for old-style
  28262. + # (--disable-auto-import) libraries
  28263. + lt_prog_compiler_pic='-DDLL_EXPORT'
  28264. + ;;
  28265. +
  28266. + darwin* | rhapsody*)
  28267. + # PIC is the default on this platform
  28268. + # Common symbols not allowed in MH_DYLIB files
  28269. + lt_prog_compiler_pic='-fno-common'
  28270. + ;;
  28271. +
  28272. + hpux*)
  28273. + # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  28274. + # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  28275. + # sets the default TLS model and affects inlining.
  28276. + case $host_cpu in
  28277. + hppa*64*)
  28278. + # +Z the default
  28279. ;;
  28280. *)
  28281. - shlibpath_overrides_runpath=yes
  28282. + lt_prog_compiler_pic='-fPIC'
  28283. ;;
  28284. esac
  28285. - else
  28286. - shlibpath_overrides_runpath=yes
  28287. - fi
  28288. - ;;
  28289. + ;;
  28290. -os2*)
  28291. - libname_spec='$name'
  28292. - shrext_cmds=".dll"
  28293. - need_lib_prefix=no
  28294. - library_names_spec='$libname${shared_ext} $libname.a'
  28295. - dynamic_linker='OS/2 ld.exe'
  28296. - shlibpath_var=LIBPATH
  28297. - ;;
  28298. + interix[3-9]*)
  28299. + # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  28300. + # Instead, we relocate shared libraries at runtime.
  28301. + ;;
  28302. -osf3* | osf4* | osf5*)
  28303. - version_type=osf
  28304. - need_lib_prefix=no
  28305. - need_version=no
  28306. - soname_spec='${libname}${release}${shared_ext}$major'
  28307. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  28308. - shlibpath_var=LD_LIBRARY_PATH
  28309. - sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  28310. - sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  28311. - ;;
  28312. -
  28313. -solaris*)
  28314. - version_type=linux
  28315. - need_lib_prefix=no
  28316. - need_version=no
  28317. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  28318. - soname_spec='${libname}${release}${shared_ext}$major'
  28319. - shlibpath_var=LD_LIBRARY_PATH
  28320. - shlibpath_overrides_runpath=yes
  28321. - hardcode_into_libs=yes
  28322. - # ldd complains unless libraries are executable
  28323. - postinstall_cmds='chmod +x $lib'
  28324. - ;;
  28325. + msdosdjgpp*)
  28326. + # Just because we use GCC doesn't mean we suddenly get shared libraries
  28327. + # on systems that don't support them.
  28328. + lt_prog_compiler_can_build_shared=no
  28329. + enable_shared=no
  28330. + ;;
  28331. -sunos4*)
  28332. - version_type=sunos
  28333. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  28334. - finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  28335. - shlibpath_var=LD_LIBRARY_PATH
  28336. - shlibpath_overrides_runpath=yes
  28337. - if test "$with_gnu_ld" = yes; then
  28338. - need_lib_prefix=no
  28339. - fi
  28340. - need_version=yes
  28341. - ;;
  28342. + *nto* | *qnx*)
  28343. + # QNX uses GNU C++, but need to define -shared option too, otherwise
  28344. + # it will coredump.
  28345. + lt_prog_compiler_pic='-fPIC -shared'
  28346. + ;;
  28347. -sysv4 | sysv4.3*)
  28348. - version_type=linux
  28349. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  28350. - soname_spec='${libname}${release}${shared_ext}$major'
  28351. - shlibpath_var=LD_LIBRARY_PATH
  28352. - case $host_vendor in
  28353. - sni)
  28354. - shlibpath_overrides_runpath=no
  28355. - need_lib_prefix=no
  28356. - export_dynamic_flag_spec='${wl}-Blargedynsym'
  28357. - runpath_var=LD_RUN_PATH
  28358. + sysv4*MP*)
  28359. + if test -d /usr/nec; then
  28360. + lt_prog_compiler_pic=-Kconform_pic
  28361. + fi
  28362. ;;
  28363. - siemens)
  28364. - need_lib_prefix=no
  28365. +
  28366. + *)
  28367. + lt_prog_compiler_pic='-fPIC'
  28368. ;;
  28369. - motorola)
  28370. - need_lib_prefix=no
  28371. - need_version=no
  28372. - shlibpath_overrides_runpath=no
  28373. - sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  28374. + esac
  28375. + else
  28376. + # PORTME Check for flag to pass linker flags through the system compiler.
  28377. + case $host_os in
  28378. + aix*)
  28379. + lt_prog_compiler_wl='-Wl,'
  28380. + if test "$host_cpu" = ia64; then
  28381. + # AIX 5 now supports IA64 processor
  28382. + lt_prog_compiler_static='-Bstatic'
  28383. + else
  28384. + lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  28385. + fi
  28386. ;;
  28387. - esac
  28388. - ;;
  28389. -sysv4*MP*)
  28390. - if test -d /usr/nec ;then
  28391. - version_type=linux
  28392. - library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  28393. - soname_spec='$libname${shared_ext}.$major'
  28394. - shlibpath_var=LD_LIBRARY_PATH
  28395. - fi
  28396. - ;;
  28397. + mingw* | cygwin* | pw32* | os2* | cegcc*)
  28398. + # This hack is so that the source file can tell whether it is being
  28399. + # built for inclusion in a dll (and should export symbols for example).
  28400. + lt_prog_compiler_pic='-DDLL_EXPORT'
  28401. + ;;
  28402. -sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  28403. - version_type=freebsd-elf
  28404. - need_lib_prefix=no
  28405. - need_version=no
  28406. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  28407. - soname_spec='${libname}${release}${shared_ext}$major'
  28408. - shlibpath_var=LD_LIBRARY_PATH
  28409. - hardcode_into_libs=yes
  28410. - if test "$with_gnu_ld" = yes; then
  28411. - sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  28412. - shlibpath_overrides_runpath=no
  28413. - else
  28414. - sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  28415. - shlibpath_overrides_runpath=yes
  28416. - case $host_os in
  28417. - sco3.2v5*)
  28418. - sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  28419. + hpux9* | hpux10* | hpux11*)
  28420. + lt_prog_compiler_wl='-Wl,'
  28421. + # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  28422. + # not for PA HP-UX.
  28423. + case $host_cpu in
  28424. + hppa*64*|ia64*)
  28425. + # +Z the default
  28426. ;;
  28427. - esac
  28428. - fi
  28429. - sys_lib_dlsearch_path_spec='/usr/lib'
  28430. - ;;
  28431. -
  28432. -uts4*)
  28433. - version_type=linux
  28434. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  28435. - soname_spec='${libname}${release}${shared_ext}$major'
  28436. - shlibpath_var=LD_LIBRARY_PATH
  28437. - ;;
  28438. + *)
  28439. + lt_prog_compiler_pic='+Z'
  28440. + ;;
  28441. + esac
  28442. + # Is there a better lt_prog_compiler_static that works with the bundled CC?
  28443. + lt_prog_compiler_static='${wl}-a ${wl}archive'
  28444. + ;;
  28445. -*)
  28446. - dynamic_linker=no
  28447. - ;;
  28448. -esac
  28449. -{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
  28450. -echo "${ECHO_T}$dynamic_linker" >&6; }
  28451. -test "$dynamic_linker" = no && can_build_shared=no
  28452. + irix5* | irix6* | nonstopux*)
  28453. + lt_prog_compiler_wl='-Wl,'
  28454. + # PIC (with -KPIC) is the default.
  28455. + lt_prog_compiler_static='-non_shared'
  28456. + ;;
  28457. -variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  28458. -if test "$GCC" = yes; then
  28459. - variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  28460. -fi
  28461. + linux* | k*bsd*-gnu | kopensolaris*-gnu)
  28462. + case $cc_basename in
  28463. + # old Intel for x86_64 which still supported -KPIC.
  28464. + ecc*)
  28465. + lt_prog_compiler_wl='-Wl,'
  28466. + lt_prog_compiler_pic='-KPIC'
  28467. + lt_prog_compiler_static='-static'
  28468. + ;;
  28469. + # icc used to be incompatible with GCC.
  28470. + # ICC 10 doesn't accept -KPIC any more.
  28471. + icc* | ifort*)
  28472. + lt_prog_compiler_wl='-Wl,'
  28473. + lt_prog_compiler_pic='-fPIC'
  28474. + lt_prog_compiler_static='-static'
  28475. + ;;
  28476. + # Lahey Fortran 8.1.
  28477. + lf95*)
  28478. + lt_prog_compiler_wl='-Wl,'
  28479. + lt_prog_compiler_pic='--shared'
  28480. + lt_prog_compiler_static='--static'
  28481. + ;;
  28482. + pgcc* | pgf77* | pgf90* | pgf95*)
  28483. + # Portland Group compilers (*not* the Pentium gcc compiler,
  28484. + # which looks to be a dead project)
  28485. + lt_prog_compiler_wl='-Wl,'
  28486. + lt_prog_compiler_pic='-fpic'
  28487. + lt_prog_compiler_static='-Bstatic'
  28488. + ;;
  28489. + ccc*)
  28490. + lt_prog_compiler_wl='-Wl,'
  28491. + # All Alpha code is PIC.
  28492. + lt_prog_compiler_static='-non_shared'
  28493. + ;;
  28494. + xl*)
  28495. + # IBM XL C 8.0/Fortran 10.1 on PPC
  28496. + lt_prog_compiler_wl='-Wl,'
  28497. + lt_prog_compiler_pic='-qpic'
  28498. + lt_prog_compiler_static='-qstaticlink'
  28499. + ;;
  28500. + *)
  28501. + case `$CC -V 2>&1 | sed 5q` in
  28502. + *Sun\ C*)
  28503. + # Sun C 5.9
  28504. + lt_prog_compiler_pic='-KPIC'
  28505. + lt_prog_compiler_static='-Bstatic'
  28506. + lt_prog_compiler_wl='-Wl,'
  28507. + ;;
  28508. + *Sun\ F*)
  28509. + # Sun Fortran 8.3 passes all unrecognized flags to the linker
  28510. + lt_prog_compiler_pic='-KPIC'
  28511. + lt_prog_compiler_static='-Bstatic'
  28512. + lt_prog_compiler_wl=''
  28513. + ;;
  28514. + esac
  28515. + ;;
  28516. + esac
  28517. + ;;
  28518. -{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
  28519. -echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
  28520. -hardcode_action=
  28521. -if test -n "$hardcode_libdir_flag_spec" || \
  28522. - test -n "$runpath_var" || \
  28523. - test "X$hardcode_automatic" = "Xyes" ; then
  28524. + newsos6)
  28525. + lt_prog_compiler_pic='-KPIC'
  28526. + lt_prog_compiler_static='-Bstatic'
  28527. + ;;
  28528. - # We can hardcode non-existant directories.
  28529. - if test "$hardcode_direct" != no &&
  28530. - # If the only mechanism to avoid hardcoding is shlibpath_var, we
  28531. - # have to relink, otherwise we might link with an installed library
  28532. - # when we should be linking with a yet-to-be-installed one
  28533. - ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
  28534. - test "$hardcode_minus_L" != no; then
  28535. - # Linking always hardcodes the temporary library directory.
  28536. - hardcode_action=relink
  28537. - else
  28538. - # We can link without hardcoding, and we can hardcode nonexisting dirs.
  28539. - hardcode_action=immediate
  28540. - fi
  28541. -else
  28542. - # We cannot hardcode anything, or else we can only hardcode existing
  28543. - # directories.
  28544. - hardcode_action=unsupported
  28545. -fi
  28546. -{ echo "$as_me:$LINENO: result: $hardcode_action" >&5
  28547. -echo "${ECHO_T}$hardcode_action" >&6; }
  28548. + *nto* | *qnx*)
  28549. + # QNX uses GNU C++, but need to define -shared option too, otherwise
  28550. + # it will coredump.
  28551. + lt_prog_compiler_pic='-fPIC -shared'
  28552. + ;;
  28553. -if test "$hardcode_action" = relink; then
  28554. - # Fast installation is not supported
  28555. - enable_fast_install=no
  28556. -elif test "$shlibpath_overrides_runpath" = yes ||
  28557. - test "$enable_shared" = no; then
  28558. - # Fast installation is not necessary
  28559. - enable_fast_install=needless
  28560. -fi
  28561. + osf3* | osf4* | osf5*)
  28562. + lt_prog_compiler_wl='-Wl,'
  28563. + # All OSF/1 code is PIC.
  28564. + lt_prog_compiler_static='-non_shared'
  28565. + ;;
  28566. -striplib=
  28567. -old_striplib=
  28568. -{ echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
  28569. -echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
  28570. -if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
  28571. - test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  28572. - test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  28573. - { echo "$as_me:$LINENO: result: yes" >&5
  28574. -echo "${ECHO_T}yes" >&6; }
  28575. -else
  28576. -# FIXME - insert some real tests, host_os isn't really good enough
  28577. - case $host_os in
  28578. - darwin*)
  28579. - if test -n "$STRIP" ; then
  28580. - striplib="$STRIP -x"
  28581. - { echo "$as_me:$LINENO: result: yes" >&5
  28582. -echo "${ECHO_T}yes" >&6; }
  28583. - else
  28584. - { echo "$as_me:$LINENO: result: no" >&5
  28585. -echo "${ECHO_T}no" >&6; }
  28586. -fi
  28587. - ;;
  28588. - *)
  28589. - { echo "$as_me:$LINENO: result: no" >&5
  28590. -echo "${ECHO_T}no" >&6; }
  28591. - ;;
  28592. - esac
  28593. -fi
  28594. + rdos*)
  28595. + lt_prog_compiler_static='-non_shared'
  28596. + ;;
  28597. -if test "x$enable_dlopen" != xyes; then
  28598. - enable_dlopen=unknown
  28599. - enable_dlopen_self=unknown
  28600. - enable_dlopen_self_static=unknown
  28601. -else
  28602. - lt_cv_dlopen=no
  28603. - lt_cv_dlopen_libs=
  28604. + solaris*)
  28605. + lt_prog_compiler_pic='-KPIC'
  28606. + lt_prog_compiler_static='-Bstatic'
  28607. + case $cc_basename in
  28608. + f77* | f90* | f95*)
  28609. + lt_prog_compiler_wl='-Qoption ld ';;
  28610. + *)
  28611. + lt_prog_compiler_wl='-Wl,';;
  28612. + esac
  28613. + ;;
  28614. - case $host_os in
  28615. - beos*)
  28616. - lt_cv_dlopen="load_add_on"
  28617. - lt_cv_dlopen_libs=
  28618. - lt_cv_dlopen_self=yes
  28619. - ;;
  28620. + sunos4*)
  28621. + lt_prog_compiler_wl='-Qoption ld '
  28622. + lt_prog_compiler_pic='-PIC'
  28623. + lt_prog_compiler_static='-Bstatic'
  28624. + ;;
  28625. - mingw* | pw32*)
  28626. - lt_cv_dlopen="LoadLibrary"
  28627. - lt_cv_dlopen_libs=
  28628. - ;;
  28629. + sysv4 | sysv4.2uw2* | sysv4.3*)
  28630. + lt_prog_compiler_wl='-Wl,'
  28631. + lt_prog_compiler_pic='-KPIC'
  28632. + lt_prog_compiler_static='-Bstatic'
  28633. + ;;
  28634. - cygwin*)
  28635. - lt_cv_dlopen="dlopen"
  28636. - lt_cv_dlopen_libs=
  28637. - ;;
  28638. + sysv4*MP*)
  28639. + if test -d /usr/nec ;then
  28640. + lt_prog_compiler_pic='-Kconform_pic'
  28641. + lt_prog_compiler_static='-Bstatic'
  28642. + fi
  28643. + ;;
  28644. - darwin*)
  28645. - # if libdl is installed we need to link against it
  28646. - { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
  28647. -echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
  28648. -if test "${ac_cv_lib_dl_dlopen+set}" = set; then
  28649. - echo $ECHO_N "(cached) $ECHO_C" >&6
  28650. -else
  28651. - ac_check_lib_save_LIBS=$LIBS
  28652. -LIBS="-ldl $LIBS"
  28653. -cat >conftest.$ac_ext <<_ACEOF
  28654. -/* confdefs.h. */
  28655. -_ACEOF
  28656. -cat confdefs.h >>conftest.$ac_ext
  28657. -cat >>conftest.$ac_ext <<_ACEOF
  28658. -/* end confdefs.h. */
  28659. + sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  28660. + lt_prog_compiler_wl='-Wl,'
  28661. + lt_prog_compiler_pic='-KPIC'
  28662. + lt_prog_compiler_static='-Bstatic'
  28663. + ;;
  28664. -/* Override any GCC internal prototype to avoid an error.
  28665. - Use char because int might match the return type of a GCC
  28666. - builtin and then its argument prototype would still apply. */
  28667. -#ifdef __cplusplus
  28668. -extern "C"
  28669. -#endif
  28670. -char dlopen ();
  28671. -int
  28672. -main ()
  28673. -{
  28674. -return dlopen ();
  28675. - ;
  28676. - return 0;
  28677. -}
  28678. -_ACEOF
  28679. -rm -f conftest.$ac_objext conftest$ac_exeext
  28680. -if { (ac_try="$ac_link"
  28681. -case "(($ac_try" in
  28682. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  28683. - *) ac_try_echo=$ac_try;;
  28684. -esac
  28685. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  28686. - (eval "$ac_link") 2>conftest.er1
  28687. - ac_status=$?
  28688. - grep -v '^ *+' conftest.er1 >conftest.err
  28689. - rm -f conftest.er1
  28690. - cat conftest.err >&5
  28691. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28692. - (exit $ac_status); } &&
  28693. - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  28694. - { (case "(($ac_try" in
  28695. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  28696. - *) ac_try_echo=$ac_try;;
  28697. -esac
  28698. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  28699. - (eval "$ac_try") 2>&5
  28700. - ac_status=$?
  28701. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28702. - (exit $ac_status); }; } &&
  28703. - { ac_try='test -s conftest$ac_exeext'
  28704. - { (case "(($ac_try" in
  28705. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  28706. - *) ac_try_echo=$ac_try;;
  28707. -esac
  28708. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  28709. - (eval "$ac_try") 2>&5
  28710. - ac_status=$?
  28711. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28712. - (exit $ac_status); }; }; then
  28713. - ac_cv_lib_dl_dlopen=yes
  28714. -else
  28715. - echo "$as_me: failed program was:" >&5
  28716. -sed 's/^/| /' conftest.$ac_ext >&5
  28717. + unicos*)
  28718. + lt_prog_compiler_wl='-Wl,'
  28719. + lt_prog_compiler_can_build_shared=no
  28720. + ;;
  28721. - ac_cv_lib_dl_dlopen=no
  28722. -fi
  28723. + uts4*)
  28724. + lt_prog_compiler_pic='-pic'
  28725. + lt_prog_compiler_static='-Bstatic'
  28726. + ;;
  28727. -rm -f core conftest.err conftest.$ac_objext \
  28728. - conftest$ac_exeext conftest.$ac_ext
  28729. -LIBS=$ac_check_lib_save_LIBS
  28730. -fi
  28731. -{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
  28732. -echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
  28733. -if test $ac_cv_lib_dl_dlopen = yes; then
  28734. - lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  28735. -else
  28736. + *)
  28737. + lt_prog_compiler_can_build_shared=no
  28738. + ;;
  28739. + esac
  28740. + fi
  28741. - lt_cv_dlopen="dyld"
  28742. - lt_cv_dlopen_libs=
  28743. - lt_cv_dlopen_self=yes
  28744. +case $host_os in
  28745. + # For platforms which do not support PIC, -DPIC is meaningless:
  28746. + *djgpp*)
  28747. + lt_prog_compiler_pic=
  28748. + ;;
  28749. + *)
  28750. + lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  28751. + ;;
  28752. +esac
  28753. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
  28754. +$as_echo "$lt_prog_compiler_pic" >&6; }
  28755. -fi
  28756. - ;;
  28757. - *)
  28758. - { echo "$as_me:$LINENO: checking for shl_load" >&5
  28759. -echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
  28760. -if test "${ac_cv_func_shl_load+set}" = set; then
  28761. - echo $ECHO_N "(cached) $ECHO_C" >&6
  28762. -else
  28763. - cat >conftest.$ac_ext <<_ACEOF
  28764. -/* confdefs.h. */
  28765. -_ACEOF
  28766. -cat confdefs.h >>conftest.$ac_ext
  28767. -cat >>conftest.$ac_ext <<_ACEOF
  28768. -/* end confdefs.h. */
  28769. -/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
  28770. - For example, HP-UX 11i <limits.h> declares gettimeofday. */
  28771. -#define shl_load innocuous_shl_load
  28772. -/* System header to define __stub macros and hopefully few prototypes,
  28773. - which can conflict with char shl_load (); below.
  28774. - Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  28775. - <limits.h> exists even on freestanding compilers. */
  28776. -#ifdef __STDC__
  28777. -# include <limits.h>
  28778. -#else
  28779. -# include <assert.h>
  28780. -#endif
  28781. -#undef shl_load
  28782. +#
  28783. +# Check to make sure the PIC flag actually works.
  28784. +#
  28785. +if test -n "$lt_prog_compiler_pic"; then
  28786. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  28787. +$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  28788. +if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
  28789. + $as_echo_n "(cached) " >&6
  28790. +else
  28791. + lt_cv_prog_compiler_pic_works=no
  28792. + ac_outfile=conftest.$ac_objext
  28793. + echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  28794. + lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
  28795. + # Insert the option either (1) after the last *FLAGS variable, or
  28796. + # (2) before a word containing "conftest.", or (3) at the end.
  28797. + # Note that $ac_compile itself does not contain backslashes and begins
  28798. + # with a dollar sign (not a hyphen), so the echo should work correctly.
  28799. + # The option is referenced via a variable to avoid confusing sed.
  28800. + lt_compile=`echo "$ac_compile" | $SED \
  28801. + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  28802. + -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  28803. + -e 's:$: $lt_compiler_flag:'`
  28804. + (eval echo "\"\$as_me:7774: $lt_compile\"" >&5)
  28805. + (eval "$lt_compile" 2>conftest.err)
  28806. + ac_status=$?
  28807. + cat conftest.err >&5
  28808. + echo "$as_me:7778: \$? = $ac_status" >&5
  28809. + if (exit $ac_status) && test -s "$ac_outfile"; then
  28810. + # The compiler can only warn and ignore the option if not recognized
  28811. + # So say no if there are warnings other than the usual output.
  28812. + $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  28813. + $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  28814. + if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  28815. + lt_cv_prog_compiler_pic_works=yes
  28816. + fi
  28817. + fi
  28818. + $RM conftest*
  28819. -/* Override any GCC internal prototype to avoid an error.
  28820. - Use char because int might match the return type of a GCC
  28821. - builtin and then its argument prototype would still apply. */
  28822. -#ifdef __cplusplus
  28823. -extern "C"
  28824. -#endif
  28825. -char shl_load ();
  28826. -/* The GNU C library defines this for functions which it implements
  28827. - to always fail with ENOSYS. Some functions are actually named
  28828. - something starting with __ and the normal name is an alias. */
  28829. -#if defined __stub_shl_load || defined __stub___shl_load
  28830. -choke me
  28831. -#endif
  28832. +fi
  28833. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
  28834. +$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
  28835. -int
  28836. -main ()
  28837. -{
  28838. -return shl_load ();
  28839. - ;
  28840. - return 0;
  28841. -}
  28842. -_ACEOF
  28843. -rm -f conftest.$ac_objext conftest$ac_exeext
  28844. -if { (ac_try="$ac_link"
  28845. -case "(($ac_try" in
  28846. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  28847. - *) ac_try_echo=$ac_try;;
  28848. -esac
  28849. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  28850. - (eval "$ac_link") 2>conftest.er1
  28851. - ac_status=$?
  28852. - grep -v '^ *+' conftest.er1 >conftest.err
  28853. - rm -f conftest.er1
  28854. - cat conftest.err >&5
  28855. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28856. - (exit $ac_status); } &&
  28857. - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  28858. - { (case "(($ac_try" in
  28859. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  28860. - *) ac_try_echo=$ac_try;;
  28861. -esac
  28862. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  28863. - (eval "$ac_try") 2>&5
  28864. - ac_status=$?
  28865. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28866. - (exit $ac_status); }; } &&
  28867. - { ac_try='test -s conftest$ac_exeext'
  28868. - { (case "(($ac_try" in
  28869. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  28870. - *) ac_try_echo=$ac_try;;
  28871. -esac
  28872. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  28873. - (eval "$ac_try") 2>&5
  28874. - ac_status=$?
  28875. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28876. - (exit $ac_status); }; }; then
  28877. - ac_cv_func_shl_load=yes
  28878. +if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
  28879. + case $lt_prog_compiler_pic in
  28880. + "" | " "*) ;;
  28881. + *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  28882. + esac
  28883. else
  28884. - echo "$as_me: failed program was:" >&5
  28885. -sed 's/^/| /' conftest.$ac_ext >&5
  28886. -
  28887. - ac_cv_func_shl_load=no
  28888. + lt_prog_compiler_pic=
  28889. + lt_prog_compiler_can_build_shared=no
  28890. fi
  28891. -rm -f core conftest.err conftest.$ac_objext \
  28892. - conftest$ac_exeext conftest.$ac_ext
  28893. fi
  28894. -{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
  28895. -echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
  28896. -if test $ac_cv_func_shl_load = yes; then
  28897. - lt_cv_dlopen="shl_load"
  28898. -else
  28899. - { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
  28900. -echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
  28901. -if test "${ac_cv_lib_dld_shl_load+set}" = set; then
  28902. - echo $ECHO_N "(cached) $ECHO_C" >&6
  28903. -else
  28904. - ac_check_lib_save_LIBS=$LIBS
  28905. -LIBS="-ldld $LIBS"
  28906. -cat >conftest.$ac_ext <<_ACEOF
  28907. -/* confdefs.h. */
  28908. -_ACEOF
  28909. -cat confdefs.h >>conftest.$ac_ext
  28910. -cat >>conftest.$ac_ext <<_ACEOF
  28911. -/* end confdefs.h. */
  28912. -/* Override any GCC internal prototype to avoid an error.
  28913. - Use char because int might match the return type of a GCC
  28914. - builtin and then its argument prototype would still apply. */
  28915. -#ifdef __cplusplus
  28916. -extern "C"
  28917. -#endif
  28918. -char shl_load ();
  28919. -int
  28920. -main ()
  28921. -{
  28922. -return shl_load ();
  28923. - ;
  28924. - return 0;
  28925. -}
  28926. -_ACEOF
  28927. -rm -f conftest.$ac_objext conftest$ac_exeext
  28928. -if { (ac_try="$ac_link"
  28929. -case "(($ac_try" in
  28930. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  28931. - *) ac_try_echo=$ac_try;;
  28932. -esac
  28933. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  28934. - (eval "$ac_link") 2>conftest.er1
  28935. - ac_status=$?
  28936. - grep -v '^ *+' conftest.er1 >conftest.err
  28937. - rm -f conftest.er1
  28938. - cat conftest.err >&5
  28939. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28940. - (exit $ac_status); } &&
  28941. - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  28942. - { (case "(($ac_try" in
  28943. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  28944. - *) ac_try_echo=$ac_try;;
  28945. -esac
  28946. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  28947. - (eval "$ac_try") 2>&5
  28948. - ac_status=$?
  28949. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28950. - (exit $ac_status); }; } &&
  28951. - { ac_try='test -s conftest$ac_exeext'
  28952. - { (case "(($ac_try" in
  28953. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  28954. - *) ac_try_echo=$ac_try;;
  28955. -esac
  28956. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  28957. - (eval "$ac_try") 2>&5
  28958. - ac_status=$?
  28959. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28960. - (exit $ac_status); }; }; then
  28961. - ac_cv_lib_dld_shl_load=yes
  28962. +
  28963. +
  28964. +
  28965. +
  28966. +
  28967. +#
  28968. +# Check to make sure the static flag actually works.
  28969. +#
  28970. +wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  28971. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  28972. +$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  28973. +if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
  28974. + $as_echo_n "(cached) " >&6
  28975. else
  28976. - echo "$as_me: failed program was:" >&5
  28977. -sed 's/^/| /' conftest.$ac_ext >&5
  28978. + lt_cv_prog_compiler_static_works=no
  28979. + save_LDFLAGS="$LDFLAGS"
  28980. + LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  28981. + echo "$lt_simple_link_test_code" > conftest.$ac_ext
  28982. + if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  28983. + # The linker can only warn and ignore the option if not recognized
  28984. + # So say no if there are warnings
  28985. + if test -s conftest.err; then
  28986. + # Append any errors to the config.log.
  28987. + cat conftest.err 1>&5
  28988. + $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
  28989. + $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  28990. + if diff conftest.exp conftest.er2 >/dev/null; then
  28991. + lt_cv_prog_compiler_static_works=yes
  28992. + fi
  28993. + else
  28994. + lt_cv_prog_compiler_static_works=yes
  28995. + fi
  28996. + fi
  28997. + $RM -r conftest*
  28998. + LDFLAGS="$save_LDFLAGS"
  28999. - ac_cv_lib_dld_shl_load=no
  29000. fi
  29001. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
  29002. +$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
  29003. -rm -f core conftest.err conftest.$ac_objext \
  29004. - conftest$ac_exeext conftest.$ac_ext
  29005. -LIBS=$ac_check_lib_save_LIBS
  29006. -fi
  29007. -{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
  29008. -echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
  29009. -if test $ac_cv_lib_dld_shl_load = yes; then
  29010. - lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
  29011. -else
  29012. - { echo "$as_me:$LINENO: checking for dlopen" >&5
  29013. -echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
  29014. -if test "${ac_cv_func_dlopen+set}" = set; then
  29015. - echo $ECHO_N "(cached) $ECHO_C" >&6
  29016. +if test x"$lt_cv_prog_compiler_static_works" = xyes; then
  29017. + :
  29018. else
  29019. - cat >conftest.$ac_ext <<_ACEOF
  29020. -/* confdefs.h. */
  29021. -_ACEOF
  29022. -cat confdefs.h >>conftest.$ac_ext
  29023. -cat >>conftest.$ac_ext <<_ACEOF
  29024. -/* end confdefs.h. */
  29025. -/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
  29026. - For example, HP-UX 11i <limits.h> declares gettimeofday. */
  29027. -#define dlopen innocuous_dlopen
  29028. + lt_prog_compiler_static=
  29029. +fi
  29030. -/* System header to define __stub macros and hopefully few prototypes,
  29031. - which can conflict with char dlopen (); below.
  29032. - Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  29033. - <limits.h> exists even on freestanding compilers. */
  29034. -#ifdef __STDC__
  29035. -# include <limits.h>
  29036. -#else
  29037. -# include <assert.h>
  29038. -#endif
  29039. -#undef dlopen
  29040. -/* Override any GCC internal prototype to avoid an error.
  29041. - Use char because int might match the return type of a GCC
  29042. - builtin and then its argument prototype would still apply. */
  29043. -#ifdef __cplusplus
  29044. -extern "C"
  29045. -#endif
  29046. -char dlopen ();
  29047. -/* The GNU C library defines this for functions which it implements
  29048. - to always fail with ENOSYS. Some functions are actually named
  29049. - something starting with __ and the normal name is an alias. */
  29050. -#if defined __stub_dlopen || defined __stub___dlopen
  29051. -choke me
  29052. -#endif
  29053. -
  29054. -int
  29055. -main ()
  29056. -{
  29057. -return dlopen ();
  29058. - ;
  29059. - return 0;
  29060. -}
  29061. -_ACEOF
  29062. -rm -f conftest.$ac_objext conftest$ac_exeext
  29063. -if { (ac_try="$ac_link"
  29064. -case "(($ac_try" in
  29065. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  29066. - *) ac_try_echo=$ac_try;;
  29067. -esac
  29068. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  29069. - (eval "$ac_link") 2>conftest.er1
  29070. - ac_status=$?
  29071. - grep -v '^ *+' conftest.er1 >conftest.err
  29072. - rm -f conftest.er1
  29073. - cat conftest.err >&5
  29074. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29075. - (exit $ac_status); } &&
  29076. - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  29077. - { (case "(($ac_try" in
  29078. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  29079. - *) ac_try_echo=$ac_try;;
  29080. -esac
  29081. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  29082. - (eval "$ac_try") 2>&5
  29083. - ac_status=$?
  29084. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29085. - (exit $ac_status); }; } &&
  29086. - { ac_try='test -s conftest$ac_exeext'
  29087. - { (case "(($ac_try" in
  29088. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  29089. - *) ac_try_echo=$ac_try;;
  29090. -esac
  29091. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  29092. - (eval "$ac_try") 2>&5
  29093. - ac_status=$?
  29094. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29095. - (exit $ac_status); }; }; then
  29096. - ac_cv_func_dlopen=yes
  29097. -else
  29098. - echo "$as_me: failed program was:" >&5
  29099. -sed 's/^/| /' conftest.$ac_ext >&5
  29100. - ac_cv_func_dlopen=no
  29101. -fi
  29102. -rm -f core conftest.err conftest.$ac_objext \
  29103. - conftest$ac_exeext conftest.$ac_ext
  29104. -fi
  29105. -{ echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
  29106. -echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
  29107. -if test $ac_cv_func_dlopen = yes; then
  29108. - lt_cv_dlopen="dlopen"
  29109. -else
  29110. - { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
  29111. -echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
  29112. -if test "${ac_cv_lib_dl_dlopen+set}" = set; then
  29113. - echo $ECHO_N "(cached) $ECHO_C" >&6
  29114. -else
  29115. - ac_check_lib_save_LIBS=$LIBS
  29116. -LIBS="-ldl $LIBS"
  29117. -cat >conftest.$ac_ext <<_ACEOF
  29118. -/* confdefs.h. */
  29119. -_ACEOF
  29120. -cat confdefs.h >>conftest.$ac_ext
  29121. -cat >>conftest.$ac_ext <<_ACEOF
  29122. -/* end confdefs.h. */
  29123. -/* Override any GCC internal prototype to avoid an error.
  29124. - Use char because int might match the return type of a GCC
  29125. - builtin and then its argument prototype would still apply. */
  29126. -#ifdef __cplusplus
  29127. -extern "C"
  29128. -#endif
  29129. -char dlopen ();
  29130. -int
  29131. -main ()
  29132. -{
  29133. -return dlopen ();
  29134. - ;
  29135. - return 0;
  29136. -}
  29137. -_ACEOF
  29138. -rm -f conftest.$ac_objext conftest$ac_exeext
  29139. -if { (ac_try="$ac_link"
  29140. -case "(($ac_try" in
  29141. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  29142. - *) ac_try_echo=$ac_try;;
  29143. -esac
  29144. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  29145. - (eval "$ac_link") 2>conftest.er1
  29146. - ac_status=$?
  29147. - grep -v '^ *+' conftest.er1 >conftest.err
  29148. - rm -f conftest.er1
  29149. - cat conftest.err >&5
  29150. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29151. - (exit $ac_status); } &&
  29152. - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  29153. - { (case "(($ac_try" in
  29154. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  29155. - *) ac_try_echo=$ac_try;;
  29156. -esac
  29157. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  29158. - (eval "$ac_try") 2>&5
  29159. - ac_status=$?
  29160. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29161. - (exit $ac_status); }; } &&
  29162. - { ac_try='test -s conftest$ac_exeext'
  29163. - { (case "(($ac_try" in
  29164. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  29165. - *) ac_try_echo=$ac_try;;
  29166. -esac
  29167. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  29168. - (eval "$ac_try") 2>&5
  29169. - ac_status=$?
  29170. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29171. - (exit $ac_status); }; }; then
  29172. - ac_cv_lib_dl_dlopen=yes
  29173. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  29174. +$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  29175. +if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
  29176. + $as_echo_n "(cached) " >&6
  29177. else
  29178. - echo "$as_me: failed program was:" >&5
  29179. -sed 's/^/| /' conftest.$ac_ext >&5
  29180. + lt_cv_prog_compiler_c_o=no
  29181. + $RM -r conftest 2>/dev/null
  29182. + mkdir conftest
  29183. + cd conftest
  29184. + mkdir out
  29185. + echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  29186. - ac_cv_lib_dl_dlopen=no
  29187. -fi
  29188. + lt_compiler_flag="-o out/conftest2.$ac_objext"
  29189. + # Insert the option either (1) after the last *FLAGS variable, or
  29190. + # (2) before a word containing "conftest.", or (3) at the end.
  29191. + # Note that $ac_compile itself does not contain backslashes and begins
  29192. + # with a dollar sign (not a hyphen), so the echo should work correctly.
  29193. + lt_compile=`echo "$ac_compile" | $SED \
  29194. + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  29195. + -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  29196. + -e 's:$: $lt_compiler_flag:'`
  29197. + (eval echo "\"\$as_me:7879: $lt_compile\"" >&5)
  29198. + (eval "$lt_compile" 2>out/conftest.err)
  29199. + ac_status=$?
  29200. + cat out/conftest.err >&5
  29201. + echo "$as_me:7883: \$? = $ac_status" >&5
  29202. + if (exit $ac_status) && test -s out/conftest2.$ac_objext
  29203. + then
  29204. + # The compiler can only warn and ignore the option if not recognized
  29205. + # So say no if there are warnings
  29206. + $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  29207. + $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  29208. + if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  29209. + lt_cv_prog_compiler_c_o=yes
  29210. + fi
  29211. + fi
  29212. + chmod u+w . 2>&5
  29213. + $RM conftest*
  29214. + # SGI C++ compiler will create directory out/ii_files/ for
  29215. + # template instantiation
  29216. + test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  29217. + $RM out/* && rmdir out
  29218. + cd ..
  29219. + $RM -r conftest
  29220. + $RM conftest*
  29221. -rm -f core conftest.err conftest.$ac_objext \
  29222. - conftest$ac_exeext conftest.$ac_ext
  29223. -LIBS=$ac_check_lib_save_LIBS
  29224. fi
  29225. -{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
  29226. -echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
  29227. -if test $ac_cv_lib_dl_dlopen = yes; then
  29228. - lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  29229. -else
  29230. - { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
  29231. -echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
  29232. -if test "${ac_cv_lib_svld_dlopen+set}" = set; then
  29233. - echo $ECHO_N "(cached) $ECHO_C" >&6
  29234. -else
  29235. - ac_check_lib_save_LIBS=$LIBS
  29236. -LIBS="-lsvld $LIBS"
  29237. -cat >conftest.$ac_ext <<_ACEOF
  29238. -/* confdefs.h. */
  29239. -_ACEOF
  29240. -cat confdefs.h >>conftest.$ac_ext
  29241. -cat >>conftest.$ac_ext <<_ACEOF
  29242. -/* end confdefs.h. */
  29243. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  29244. +$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  29245. -/* Override any GCC internal prototype to avoid an error.
  29246. - Use char because int might match the return type of a GCC
  29247. - builtin and then its argument prototype would still apply. */
  29248. -#ifdef __cplusplus
  29249. -extern "C"
  29250. -#endif
  29251. -char dlopen ();
  29252. -int
  29253. -main ()
  29254. -{
  29255. -return dlopen ();
  29256. - ;
  29257. - return 0;
  29258. -}
  29259. -_ACEOF
  29260. -rm -f conftest.$ac_objext conftest$ac_exeext
  29261. -if { (ac_try="$ac_link"
  29262. -case "(($ac_try" in
  29263. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  29264. - *) ac_try_echo=$ac_try;;
  29265. -esac
  29266. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  29267. - (eval "$ac_link") 2>conftest.er1
  29268. - ac_status=$?
  29269. - grep -v '^ *+' conftest.er1 >conftest.err
  29270. - rm -f conftest.er1
  29271. - cat conftest.err >&5
  29272. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29273. - (exit $ac_status); } &&
  29274. - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  29275. - { (case "(($ac_try" in
  29276. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  29277. - *) ac_try_echo=$ac_try;;
  29278. -esac
  29279. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  29280. - (eval "$ac_try") 2>&5
  29281. - ac_status=$?
  29282. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29283. - (exit $ac_status); }; } &&
  29284. - { ac_try='test -s conftest$ac_exeext'
  29285. - { (case "(($ac_try" in
  29286. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  29287. - *) ac_try_echo=$ac_try;;
  29288. -esac
  29289. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  29290. - (eval "$ac_try") 2>&5
  29291. - ac_status=$?
  29292. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29293. - (exit $ac_status); }; }; then
  29294. - ac_cv_lib_svld_dlopen=yes
  29295. -else
  29296. - echo "$as_me: failed program was:" >&5
  29297. -sed 's/^/| /' conftest.$ac_ext >&5
  29298. - ac_cv_lib_svld_dlopen=no
  29299. -fi
  29300. -rm -f core conftest.err conftest.$ac_objext \
  29301. - conftest$ac_exeext conftest.$ac_ext
  29302. -LIBS=$ac_check_lib_save_LIBS
  29303. -fi
  29304. -{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
  29305. -echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
  29306. -if test $ac_cv_lib_svld_dlopen = yes; then
  29307. - lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  29308. -else
  29309. - { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
  29310. -echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
  29311. -if test "${ac_cv_lib_dld_dld_link+set}" = set; then
  29312. - echo $ECHO_N "(cached) $ECHO_C" >&6
  29313. -else
  29314. - ac_check_lib_save_LIBS=$LIBS
  29315. -LIBS="-ldld $LIBS"
  29316. -cat >conftest.$ac_ext <<_ACEOF
  29317. -/* confdefs.h. */
  29318. -_ACEOF
  29319. -cat confdefs.h >>conftest.$ac_ext
  29320. -cat >>conftest.$ac_ext <<_ACEOF
  29321. -/* end confdefs.h. */
  29322. -/* Override any GCC internal prototype to avoid an error.
  29323. - Use char because int might match the return type of a GCC
  29324. - builtin and then its argument prototype would still apply. */
  29325. -#ifdef __cplusplus
  29326. -extern "C"
  29327. -#endif
  29328. -char dld_link ();
  29329. -int
  29330. -main ()
  29331. -{
  29332. -return dld_link ();
  29333. - ;
  29334. - return 0;
  29335. -}
  29336. -_ACEOF
  29337. -rm -f conftest.$ac_objext conftest$ac_exeext
  29338. -if { (ac_try="$ac_link"
  29339. -case "(($ac_try" in
  29340. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  29341. - *) ac_try_echo=$ac_try;;
  29342. -esac
  29343. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  29344. - (eval "$ac_link") 2>conftest.er1
  29345. - ac_status=$?
  29346. - grep -v '^ *+' conftest.er1 >conftest.err
  29347. - rm -f conftest.er1
  29348. - cat conftest.err >&5
  29349. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29350. - (exit $ac_status); } &&
  29351. - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  29352. - { (case "(($ac_try" in
  29353. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  29354. - *) ac_try_echo=$ac_try;;
  29355. -esac
  29356. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  29357. - (eval "$ac_try") 2>&5
  29358. - ac_status=$?
  29359. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29360. - (exit $ac_status); }; } &&
  29361. - { ac_try='test -s conftest$ac_exeext'
  29362. - { (case "(($ac_try" in
  29363. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  29364. - *) ac_try_echo=$ac_try;;
  29365. -esac
  29366. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  29367. - (eval "$ac_try") 2>&5
  29368. - ac_status=$?
  29369. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29370. - (exit $ac_status); }; }; then
  29371. - ac_cv_lib_dld_dld_link=yes
  29372. -else
  29373. - echo "$as_me: failed program was:" >&5
  29374. -sed 's/^/| /' conftest.$ac_ext >&5
  29375. - ac_cv_lib_dld_dld_link=no
  29376. -fi
  29377. -rm -f core conftest.err conftest.$ac_objext \
  29378. - conftest$ac_exeext conftest.$ac_ext
  29379. -LIBS=$ac_check_lib_save_LIBS
  29380. -fi
  29381. -{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
  29382. -echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
  29383. -if test $ac_cv_lib_dld_dld_link = yes; then
  29384. - lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
  29385. -fi
  29386. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  29387. +$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  29388. +if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
  29389. + $as_echo_n "(cached) " >&6
  29390. +else
  29391. + lt_cv_prog_compiler_c_o=no
  29392. + $RM -r conftest 2>/dev/null
  29393. + mkdir conftest
  29394. + cd conftest
  29395. + mkdir out
  29396. + echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  29397. + lt_compiler_flag="-o out/conftest2.$ac_objext"
  29398. + # Insert the option either (1) after the last *FLAGS variable, or
  29399. + # (2) before a word containing "conftest.", or (3) at the end.
  29400. + # Note that $ac_compile itself does not contain backslashes and begins
  29401. + # with a dollar sign (not a hyphen), so the echo should work correctly.
  29402. + lt_compile=`echo "$ac_compile" | $SED \
  29403. + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  29404. + -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  29405. + -e 's:$: $lt_compiler_flag:'`
  29406. + (eval echo "\"\$as_me:7934: $lt_compile\"" >&5)
  29407. + (eval "$lt_compile" 2>out/conftest.err)
  29408. + ac_status=$?
  29409. + cat out/conftest.err >&5
  29410. + echo "$as_me:7938: \$? = $ac_status" >&5
  29411. + if (exit $ac_status) && test -s out/conftest2.$ac_objext
  29412. + then
  29413. + # The compiler can only warn and ignore the option if not recognized
  29414. + # So say no if there are warnings
  29415. + $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  29416. + $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  29417. + if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  29418. + lt_cv_prog_compiler_c_o=yes
  29419. + fi
  29420. + fi
  29421. + chmod u+w . 2>&5
  29422. + $RM conftest*
  29423. + # SGI C++ compiler will create directory out/ii_files/ for
  29424. + # template instantiation
  29425. + test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  29426. + $RM out/* && rmdir out
  29427. + cd ..
  29428. + $RM -r conftest
  29429. + $RM conftest*
  29430. fi
  29431. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  29432. +$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  29433. -fi
  29434. +hard_links="nottested"
  29435. +if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
  29436. + # do not overwrite the value of need_locks provided by the user
  29437. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  29438. +$as_echo_n "checking if we can lock with hard links... " >&6; }
  29439. + hard_links=yes
  29440. + $RM conftest*
  29441. + ln conftest.a conftest.b 2>/dev/null && hard_links=no
  29442. + touch conftest.a
  29443. + ln conftest.a conftest.b 2>&5 || hard_links=no
  29444. + ln conftest.a conftest.b 2>/dev/null && hard_links=no
  29445. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  29446. +$as_echo "$hard_links" >&6; }
  29447. + if test "$hard_links" = no; then
  29448. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  29449. +$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  29450. + need_locks=warn
  29451. + fi
  29452. +else
  29453. + need_locks=no
  29454. fi
  29455. -fi
  29456. -
  29457. -fi
  29458. - ;;
  29459. - esac
  29460. - if test "x$lt_cv_dlopen" != xno; then
  29461. - enable_dlopen=yes
  29462. - else
  29463. - enable_dlopen=no
  29464. - fi
  29465. - case $lt_cv_dlopen in
  29466. - dlopen)
  29467. - save_CPPFLAGS="$CPPFLAGS"
  29468. - test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  29469. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  29470. +$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  29471. - save_LDFLAGS="$LDFLAGS"
  29472. - wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  29473. + runpath_var=
  29474. + allow_undefined_flag=
  29475. + always_export_symbols=no
  29476. + archive_cmds=
  29477. + archive_expsym_cmds=
  29478. + compiler_needs_object=no
  29479. + enable_shared_with_static_runtimes=no
  29480. + export_dynamic_flag_spec=
  29481. + export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  29482. + hardcode_automatic=no
  29483. + hardcode_direct=no
  29484. + hardcode_direct_absolute=no
  29485. + hardcode_libdir_flag_spec=
  29486. + hardcode_libdir_flag_spec_ld=
  29487. + hardcode_libdir_separator=
  29488. + hardcode_minus_L=no
  29489. + hardcode_shlibpath_var=unsupported
  29490. + inherit_rpath=no
  29491. + link_all_deplibs=unknown
  29492. + module_cmds=
  29493. + module_expsym_cmds=
  29494. + old_archive_from_new_cmds=
  29495. + old_archive_from_expsyms_cmds=
  29496. + thread_safe_flag_spec=
  29497. + whole_archive_flag_spec=
  29498. + # include_expsyms should be a list of space-separated symbols to be *always*
  29499. + # included in the symbol list
  29500. + include_expsyms=
  29501. + # exclude_expsyms can be an extended regexp of symbols to exclude
  29502. + # it will be wrapped by ` (' and `)$', so one must not match beginning or
  29503. + # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  29504. + # as well as any symbol that contains `d'.
  29505. + exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  29506. + # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  29507. + # platforms (ab)use it in PIC code, but their linkers get confused if
  29508. + # the symbol is explicitly referenced. Since portable code cannot
  29509. + # rely on this symbol name, it's probably fine to never include it in
  29510. + # preloaded symbol tables.
  29511. + # Exclude shared library initialization/finalization symbols.
  29512. + extract_expsyms_cmds=
  29513. - save_LIBS="$LIBS"
  29514. - LIBS="$lt_cv_dlopen_libs $LIBS"
  29515. + case $host_os in
  29516. + cygwin* | mingw* | pw32* | cegcc*)
  29517. + # FIXME: the MSVC++ port hasn't been tested in a loooong time
  29518. + # When not using gcc, we currently assume that we are using
  29519. + # Microsoft Visual C++.
  29520. + if test "$GCC" != yes; then
  29521. + with_gnu_ld=no
  29522. + fi
  29523. + ;;
  29524. + interix*)
  29525. + # we just hope/assume this is gcc and not c89 (= MSVC++)
  29526. + with_gnu_ld=yes
  29527. + ;;
  29528. + openbsd*)
  29529. + with_gnu_ld=no
  29530. + ;;
  29531. + linux* | k*bsd*-gnu)
  29532. + link_all_deplibs=no
  29533. + ;;
  29534. + esac
  29535. - { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
  29536. -echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
  29537. -if test "${lt_cv_dlopen_self+set}" = set; then
  29538. - echo $ECHO_N "(cached) $ECHO_C" >&6
  29539. -else
  29540. - if test "$cross_compiling" = yes; then :
  29541. - lt_cv_dlopen_self=cross
  29542. -else
  29543. - lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  29544. - lt_status=$lt_dlunknown
  29545. - cat > conftest.$ac_ext <<EOF
  29546. -#line 10160 "configure"
  29547. -#include "confdefs.h"
  29548. + ld_shlibs=yes
  29549. + if test "$with_gnu_ld" = yes; then
  29550. + # If archive_cmds runs LD, not CC, wlarc should be empty
  29551. + wlarc='${wl}'
  29552. -#if HAVE_DLFCN_H
  29553. -#include <dlfcn.h>
  29554. -#endif
  29555. + # Set some defaults for GNU ld with shared library support. These
  29556. + # are reset later if shared libraries are not supported. Putting them
  29557. + # here allows them to be overridden if necessary.
  29558. + runpath_var=LD_RUN_PATH
  29559. + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  29560. + export_dynamic_flag_spec='${wl}--export-dynamic'
  29561. + # ancient GNU ld didn't support --whole-archive et. al.
  29562. + if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  29563. + whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  29564. + else
  29565. + whole_archive_flag_spec=
  29566. + fi
  29567. + supports_anon_versioning=no
  29568. + case `$LD -v 2>&1` in
  29569. + *GNU\ gold*) supports_anon_versioning=yes ;;
  29570. + *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  29571. + *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  29572. + *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  29573. + *\ 2.11.*) ;; # other 2.11 versions
  29574. + *) supports_anon_versioning=yes ;;
  29575. + esac
  29576. -#include <stdio.h>
  29577. + # See if GNU ld supports shared libraries.
  29578. + case $host_os in
  29579. + aix[3-9]*)
  29580. + # On AIX/PPC, the GNU linker is very broken
  29581. + if test "$host_cpu" != ia64; then
  29582. + ld_shlibs=no
  29583. + cat <<_LT_EOF 1>&2
  29584. -#ifdef RTLD_GLOBAL
  29585. -# define LT_DLGLOBAL RTLD_GLOBAL
  29586. -#else
  29587. -# ifdef DL_GLOBAL
  29588. -# define LT_DLGLOBAL DL_GLOBAL
  29589. -# else
  29590. -# define LT_DLGLOBAL 0
  29591. -# endif
  29592. -#endif
  29593. +*** Warning: the GNU linker, at least up to release 2.9.1, is reported
  29594. +*** to be unable to reliably create shared libraries on AIX.
  29595. +*** Therefore, libtool is disabling shared libraries support. If you
  29596. +*** really care for shared libraries, you may want to modify your PATH
  29597. +*** so that a non-GNU linker is found, and then restart.
  29598. -/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  29599. - find out it does not work in some platform. */
  29600. -#ifndef LT_DLLAZY_OR_NOW
  29601. -# ifdef RTLD_LAZY
  29602. -# define LT_DLLAZY_OR_NOW RTLD_LAZY
  29603. -# else
  29604. -# ifdef DL_LAZY
  29605. -# define LT_DLLAZY_OR_NOW DL_LAZY
  29606. -# else
  29607. -# ifdef RTLD_NOW
  29608. -# define LT_DLLAZY_OR_NOW RTLD_NOW
  29609. -# else
  29610. -# ifdef DL_NOW
  29611. -# define LT_DLLAZY_OR_NOW DL_NOW
  29612. -# else
  29613. -# define LT_DLLAZY_OR_NOW 0
  29614. -# endif
  29615. -# endif
  29616. -# endif
  29617. -# endif
  29618. -#endif
  29619. +_LT_EOF
  29620. + fi
  29621. + ;;
  29622. -#ifdef __cplusplus
  29623. -extern "C" void exit (int);
  29624. -#endif
  29625. + amigaos*)
  29626. + case $host_cpu in
  29627. + powerpc)
  29628. + # see comment about AmigaOS4 .so support
  29629. + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  29630. + archive_expsym_cmds=''
  29631. + ;;
  29632. + m68k)
  29633. + 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)'
  29634. + hardcode_libdir_flag_spec='-L$libdir'
  29635. + hardcode_minus_L=yes
  29636. + ;;
  29637. + esac
  29638. + ;;
  29639. -void fnord() { int i=42;}
  29640. -int main ()
  29641. -{
  29642. - void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  29643. - int status = $lt_dlunknown;
  29644. + beos*)
  29645. + if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  29646. + allow_undefined_flag=unsupported
  29647. + # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  29648. + # support --undefined. This deserves some investigation. FIXME
  29649. + archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  29650. + else
  29651. + ld_shlibs=no
  29652. + fi
  29653. + ;;
  29654. - if (self)
  29655. - {
  29656. - if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  29657. - else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  29658. - /* dlclose (self); */
  29659. - }
  29660. - else
  29661. - puts (dlerror ());
  29662. + cygwin* | mingw* | pw32* | cegcc*)
  29663. + # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  29664. + # as there is no search path for DLLs.
  29665. + hardcode_libdir_flag_spec='-L$libdir'
  29666. + allow_undefined_flag=unsupported
  29667. + always_export_symbols=no
  29668. + enable_shared_with_static_runtimes=yes
  29669. + export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  29670. - exit (status);
  29671. -}
  29672. -EOF
  29673. - if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  29674. - (eval $ac_link) 2>&5
  29675. - ac_status=$?
  29676. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29677. - (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
  29678. - (./conftest; exit; ) >&5 2>/dev/null
  29679. - lt_status=$?
  29680. - case x$lt_status in
  29681. - x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  29682. - x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  29683. - x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  29684. - esac
  29685. - else :
  29686. - # compilation failed
  29687. - lt_cv_dlopen_self=no
  29688. - fi
  29689. -fi
  29690. -rm -fr conftest*
  29691. + if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  29692. + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  29693. + # If the export-symbols file already is a .def file (1st line
  29694. + # is EXPORTS), use it as is; otherwise, prepend...
  29695. + archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  29696. + cp $export_symbols $output_objdir/$soname.def;
  29697. + else
  29698. + echo EXPORTS > $output_objdir/$soname.def;
  29699. + cat $export_symbols >> $output_objdir/$soname.def;
  29700. + fi~
  29701. + $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  29702. + else
  29703. + ld_shlibs=no
  29704. + fi
  29705. + ;;
  29706. + interix[3-9]*)
  29707. + hardcode_direct=no
  29708. + hardcode_shlibpath_var=no
  29709. + hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  29710. + export_dynamic_flag_spec='${wl}-E'
  29711. + # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  29712. + # Instead, shared libraries are loaded at an image base (0x10000000 by
  29713. + # default) and relocated if they conflict, which is a slow very memory
  29714. + # consuming and fragmenting process. To avoid this, we pick a random,
  29715. + # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  29716. + # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  29717. + archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  29718. + 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'
  29719. + ;;
  29720. -fi
  29721. -{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
  29722. -echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
  29723. + gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
  29724. + tmp_diet=no
  29725. + if test "$host_os" = linux-dietlibc; then
  29726. + case $cc_basename in
  29727. + diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  29728. + esac
  29729. + fi
  29730. + if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  29731. + && test "$tmp_diet" = no
  29732. + then
  29733. + tmp_addflag=
  29734. + tmp_sharedflag='-shared'
  29735. + case $cc_basename,$host_cpu in
  29736. + pgcc*) # Portland Group C compiler
  29737. + 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'
  29738. + tmp_addflag=' $pic_flag'
  29739. + ;;
  29740. + pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
  29741. + 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'
  29742. + tmp_addflag=' $pic_flag -Mnomain' ;;
  29743. + ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  29744. + tmp_addflag=' -i_dynamic' ;;
  29745. + efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  29746. + tmp_addflag=' -i_dynamic -nofor_main' ;;
  29747. + ifc* | ifort*) # Intel Fortran compiler
  29748. + tmp_addflag=' -nofor_main' ;;
  29749. + lf95*) # Lahey Fortran 8.1
  29750. + whole_archive_flag_spec=
  29751. + tmp_sharedflag='--shared' ;;
  29752. + xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  29753. + tmp_sharedflag='-qmkshrobj'
  29754. + tmp_addflag= ;;
  29755. + esac
  29756. + case `$CC -V 2>&1 | sed 5q` in
  29757. + *Sun\ C*) # Sun C 5.9
  29758. + 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'
  29759. + compiler_needs_object=yes
  29760. + tmp_sharedflag='-G' ;;
  29761. + *Sun\ F*) # Sun Fortran 8.3
  29762. + tmp_sharedflag='-G' ;;
  29763. + esac
  29764. + archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  29765. - if test "x$lt_cv_dlopen_self" = xyes; then
  29766. - wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  29767. - { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
  29768. -echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
  29769. -if test "${lt_cv_dlopen_self_static+set}" = set; then
  29770. - echo $ECHO_N "(cached) $ECHO_C" >&6
  29771. -else
  29772. - if test "$cross_compiling" = yes; then :
  29773. - lt_cv_dlopen_self_static=cross
  29774. -else
  29775. - lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  29776. - lt_status=$lt_dlunknown
  29777. - cat > conftest.$ac_ext <<EOF
  29778. -#line 10260 "configure"
  29779. -#include "confdefs.h"
  29780. + if test "x$supports_anon_versioning" = xyes; then
  29781. + archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  29782. + cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  29783. + echo "local: *; };" >> $output_objdir/$libname.ver~
  29784. + $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  29785. + fi
  29786. -#if HAVE_DLFCN_H
  29787. -#include <dlfcn.h>
  29788. -#endif
  29789. + case $cc_basename in
  29790. + xlf*)
  29791. + # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  29792. + whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
  29793. + hardcode_libdir_flag_spec=
  29794. + hardcode_libdir_flag_spec_ld='-rpath $libdir'
  29795. + archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
  29796. + if test "x$supports_anon_versioning" = xyes; then
  29797. + archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  29798. + cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  29799. + echo "local: *; };" >> $output_objdir/$libname.ver~
  29800. + $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  29801. + fi
  29802. + ;;
  29803. + esac
  29804. + else
  29805. + ld_shlibs=no
  29806. + fi
  29807. + ;;
  29808. -#include <stdio.h>
  29809. + netbsd* | netbsdelf*-gnu)
  29810. + if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  29811. + archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  29812. + wlarc=
  29813. + else
  29814. + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  29815. + archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  29816. + fi
  29817. + ;;
  29818. -#ifdef RTLD_GLOBAL
  29819. -# define LT_DLGLOBAL RTLD_GLOBAL
  29820. -#else
  29821. -# ifdef DL_GLOBAL
  29822. -# define LT_DLGLOBAL DL_GLOBAL
  29823. -# else
  29824. -# define LT_DLGLOBAL 0
  29825. -# endif
  29826. -#endif
  29827. + solaris*)
  29828. + if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  29829. + ld_shlibs=no
  29830. + cat <<_LT_EOF 1>&2
  29831. -/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  29832. - find out it does not work in some platform. */
  29833. -#ifndef LT_DLLAZY_OR_NOW
  29834. -# ifdef RTLD_LAZY
  29835. -# define LT_DLLAZY_OR_NOW RTLD_LAZY
  29836. -# else
  29837. -# ifdef DL_LAZY
  29838. -# define LT_DLLAZY_OR_NOW DL_LAZY
  29839. -# else
  29840. -# ifdef RTLD_NOW
  29841. -# define LT_DLLAZY_OR_NOW RTLD_NOW
  29842. -# else
  29843. -# ifdef DL_NOW
  29844. -# define LT_DLLAZY_OR_NOW DL_NOW
  29845. -# else
  29846. -# define LT_DLLAZY_OR_NOW 0
  29847. -# endif
  29848. -# endif
  29849. -# endif
  29850. -# endif
  29851. -#endif
  29852. +*** Warning: The releases 2.8.* of the GNU linker cannot reliably
  29853. +*** create shared libraries on Solaris systems. Therefore, libtool
  29854. +*** is disabling shared libraries support. We urge you to upgrade GNU
  29855. +*** binutils to release 2.9.1 or newer. Another option is to modify
  29856. +*** your PATH or compiler configuration so that the native linker is
  29857. +*** used, and then restart.
  29858. -#ifdef __cplusplus
  29859. -extern "C" void exit (int);
  29860. -#endif
  29861. +_LT_EOF
  29862. + elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  29863. + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  29864. + archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  29865. + else
  29866. + ld_shlibs=no
  29867. + fi
  29868. + ;;
  29869. -void fnord() { int i=42;}
  29870. -int main ()
  29871. -{
  29872. - void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  29873. - int status = $lt_dlunknown;
  29874. + sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  29875. + case `$LD -v 2>&1` in
  29876. + *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  29877. + ld_shlibs=no
  29878. + cat <<_LT_EOF 1>&2
  29879. - if (self)
  29880. - {
  29881. - if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  29882. - else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  29883. - /* dlclose (self); */
  29884. - }
  29885. - else
  29886. - puts (dlerror ());
  29887. +*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  29888. +*** reliably create shared libraries on SCO systems. Therefore, libtool
  29889. +*** is disabling shared libraries support. We urge you to upgrade GNU
  29890. +*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  29891. +*** your PATH or compiler configuration so that the native linker is
  29892. +*** used, and then restart.
  29893. - exit (status);
  29894. -}
  29895. -EOF
  29896. - if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  29897. - (eval $ac_link) 2>&5
  29898. - ac_status=$?
  29899. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29900. - (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
  29901. - (./conftest; exit; ) >&5 2>/dev/null
  29902. - lt_status=$?
  29903. - case x$lt_status in
  29904. - x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  29905. - x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  29906. - x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  29907. - esac
  29908. - else :
  29909. - # compilation failed
  29910. - lt_cv_dlopen_self_static=no
  29911. - fi
  29912. -fi
  29913. -rm -fr conftest*
  29914. +_LT_EOF
  29915. + ;;
  29916. + *)
  29917. + # For security reasons, it is highly recommended that you always
  29918. + # use absolute paths for naming shared libraries, and exclude the
  29919. + # DT_RUNPATH tag from executables and libraries. But doing so
  29920. + # requires that you compile everything twice, which is a pain.
  29921. + if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  29922. + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  29923. + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  29924. + archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  29925. + else
  29926. + ld_shlibs=no
  29927. + fi
  29928. + ;;
  29929. + esac
  29930. + ;;
  29931. +
  29932. + sunos4*)
  29933. + archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  29934. + wlarc=
  29935. + hardcode_direct=yes
  29936. + hardcode_shlibpath_var=no
  29937. + ;;
  29938. + *)
  29939. + if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  29940. + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  29941. + archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  29942. + else
  29943. + ld_shlibs=no
  29944. + fi
  29945. + ;;
  29946. + esac
  29947. -fi
  29948. -{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
  29949. -echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
  29950. + if test "$ld_shlibs" = no; then
  29951. + runpath_var=
  29952. + hardcode_libdir_flag_spec=
  29953. + export_dynamic_flag_spec=
  29954. + whole_archive_flag_spec=
  29955. fi
  29956. + else
  29957. + # PORTME fill in a description of your system's linker (not GNU ld)
  29958. + case $host_os in
  29959. + aix3*)
  29960. + allow_undefined_flag=unsupported
  29961. + always_export_symbols=yes
  29962. + 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'
  29963. + # Note: this linker hardcodes the directories in LIBPATH if there
  29964. + # are no directories specified by -L.
  29965. + hardcode_minus_L=yes
  29966. + if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  29967. + # Neither direct hardcoding nor static linking is supported with a
  29968. + # broken collect2.
  29969. + hardcode_direct=unsupported
  29970. + fi
  29971. + ;;
  29972. - CPPFLAGS="$save_CPPFLAGS"
  29973. - LDFLAGS="$save_LDFLAGS"
  29974. - LIBS="$save_LIBS"
  29975. - ;;
  29976. - esac
  29977. -
  29978. - case $lt_cv_dlopen_self in
  29979. - yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  29980. - *) enable_dlopen_self=unknown ;;
  29981. - esac
  29982. + aix[4-9]*)
  29983. + if test "$host_cpu" = ia64; then
  29984. + # On IA64, the linker does run time linking by default, so we don't
  29985. + # have to do anything special.
  29986. + aix_use_runtimelinking=no
  29987. + exp_sym_flag='-Bexport'
  29988. + no_entry_flag=""
  29989. + else
  29990. + # If we're using GNU nm, then we don't want the "-C" option.
  29991. + # -C means demangle to AIX nm, but means don't demangle with GNU nm
  29992. + if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  29993. + 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'
  29994. + else
  29995. + 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'
  29996. + fi
  29997. + aix_use_runtimelinking=no
  29998. - case $lt_cv_dlopen_self_static in
  29999. - yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  30000. - *) enable_dlopen_self_static=unknown ;;
  30001. - esac
  30002. -fi
  30003. + # Test if we are trying to use run time linking or normal
  30004. + # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  30005. + # need to do runtime linking.
  30006. + case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  30007. + for ld_flag in $LDFLAGS; do
  30008. + if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  30009. + aix_use_runtimelinking=yes
  30010. + break
  30011. + fi
  30012. + done
  30013. + ;;
  30014. + esac
  30015. + exp_sym_flag='-bexport'
  30016. + no_entry_flag='-bnoentry'
  30017. + fi
  30018. -# Report which library types will actually be built
  30019. -{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
  30020. -echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
  30021. -{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
  30022. -echo "${ECHO_T}$can_build_shared" >&6; }
  30023. -
  30024. -{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
  30025. -echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
  30026. -test "$can_build_shared" = "no" && enable_shared=no
  30027. + # When large executables or shared objects are built, AIX ld can
  30028. + # have problems creating the table of contents. If linking a library
  30029. + # or program results in "error TOC overflow" add -mminimal-toc to
  30030. + # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  30031. + # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  30032. -# On AIX, shared libraries and static libraries use the same namespace, and
  30033. -# are all built from PIC.
  30034. -case $host_os in
  30035. -aix3*)
  30036. - test "$enable_shared" = yes && enable_static=no
  30037. - if test -n "$RANLIB"; then
  30038. - archive_cmds="$archive_cmds~\$RANLIB \$lib"
  30039. - postinstall_cmds='$RANLIB $lib'
  30040. - fi
  30041. - ;;
  30042. + archive_cmds=''
  30043. + hardcode_direct=yes
  30044. + hardcode_direct_absolute=yes
  30045. + hardcode_libdir_separator=':'
  30046. + link_all_deplibs=yes
  30047. + file_list_spec='${wl}-f,'
  30048. -aix4* | aix5*)
  30049. - if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  30050. - test "$enable_shared" = yes && enable_static=no
  30051. - fi
  30052. - ;;
  30053. -esac
  30054. -{ echo "$as_me:$LINENO: result: $enable_shared" >&5
  30055. -echo "${ECHO_T}$enable_shared" >&6; }
  30056. + if test "$GCC" = yes; then
  30057. + case $host_os in aix4.[012]|aix4.[012].*)
  30058. + # We only want to do this on AIX 4.2 and lower, the check
  30059. + # below for broken collect2 doesn't work under 4.3+
  30060. + collect2name=`${CC} -print-prog-name=collect2`
  30061. + if test -f "$collect2name" &&
  30062. + strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  30063. + then
  30064. + # We have reworked collect2
  30065. + :
  30066. + else
  30067. + # We have old collect2
  30068. + hardcode_direct=unsupported
  30069. + # It fails to find uninstalled libraries when the uninstalled
  30070. + # path is not listed in the libpath. Setting hardcode_minus_L
  30071. + # to unsupported forces relinking
  30072. + hardcode_minus_L=yes
  30073. + hardcode_libdir_flag_spec='-L$libdir'
  30074. + hardcode_libdir_separator=
  30075. + fi
  30076. + ;;
  30077. + esac
  30078. + shared_flag='-shared'
  30079. + if test "$aix_use_runtimelinking" = yes; then
  30080. + shared_flag="$shared_flag "'${wl}-G'
  30081. + fi
  30082. + link_all_deplibs=no
  30083. + else
  30084. + # not using gcc
  30085. + if test "$host_cpu" = ia64; then
  30086. + # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  30087. + # chokes on -Wl,-G. The following line is correct:
  30088. + shared_flag='-G'
  30089. + else
  30090. + if test "$aix_use_runtimelinking" = yes; then
  30091. + shared_flag='${wl}-G'
  30092. + else
  30093. + shared_flag='${wl}-bM:SRE'
  30094. + fi
  30095. + fi
  30096. + fi
  30097. -{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
  30098. -echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
  30099. -# Make sure either enable_shared or enable_static is yes.
  30100. -test "$enable_shared" = yes || enable_static=yes
  30101. -{ echo "$as_me:$LINENO: result: $enable_static" >&5
  30102. -echo "${ECHO_T}$enable_static" >&6; }
  30103. -
  30104. -# The else clause should only fire when bootstrapping the
  30105. -# libtool distribution, otherwise you forgot to ship ltmain.sh
  30106. -# with your package, and you will get complaints that there are
  30107. -# no rules to generate ltmain.sh.
  30108. -if test -f "$ltmain"; then
  30109. - # See if we are running on zsh, and set the options which allow our commands through
  30110. - # without removal of \ escapes.
  30111. - if test -n "${ZSH_VERSION+set}" ; then
  30112. - setopt NO_GLOB_SUBST
  30113. - fi
  30114. - # Now quote all the things that may contain metacharacters while being
  30115. - # careful not to overquote the AC_SUBSTed values. We take copies of the
  30116. - # variables and quote the copies for generation of the libtool script.
  30117. - for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
  30118. - SED SHELL STRIP \
  30119. - libname_spec library_names_spec soname_spec extract_expsyms_cmds \
  30120. - old_striplib striplib file_magic_cmd finish_cmds finish_eval \
  30121. - deplibs_check_method reload_flag reload_cmds need_locks \
  30122. - lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
  30123. - lt_cv_sys_global_symbol_to_c_name_address \
  30124. - sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  30125. - old_postinstall_cmds old_postuninstall_cmds \
  30126. - compiler \
  30127. - CC \
  30128. - LD \
  30129. - lt_prog_compiler_wl \
  30130. - lt_prog_compiler_pic \
  30131. - lt_prog_compiler_static \
  30132. - lt_prog_compiler_no_builtin_flag \
  30133. - export_dynamic_flag_spec \
  30134. - thread_safe_flag_spec \
  30135. - whole_archive_flag_spec \
  30136. - enable_shared_with_static_runtimes \
  30137. - old_archive_cmds \
  30138. - old_archive_from_new_cmds \
  30139. - predep_objects \
  30140. - postdep_objects \
  30141. - predeps \
  30142. - postdeps \
  30143. - compiler_lib_search_path \
  30144. - archive_cmds \
  30145. - archive_expsym_cmds \
  30146. - postinstall_cmds \
  30147. - postuninstall_cmds \
  30148. - old_archive_from_expsyms_cmds \
  30149. - allow_undefined_flag \
  30150. - no_undefined_flag \
  30151. - export_symbols_cmds \
  30152. - hardcode_libdir_flag_spec \
  30153. - hardcode_libdir_flag_spec_ld \
  30154. - hardcode_libdir_separator \
  30155. - hardcode_automatic \
  30156. - module_cmds \
  30157. - module_expsym_cmds \
  30158. - lt_cv_prog_compiler_c_o \
  30159. - exclude_expsyms \
  30160. - include_expsyms; do
  30161. -
  30162. - case $var in
  30163. - old_archive_cmds | \
  30164. - old_archive_from_new_cmds | \
  30165. - archive_cmds | \
  30166. - archive_expsym_cmds | \
  30167. - module_cmds | \
  30168. - module_expsym_cmds | \
  30169. - old_archive_from_expsyms_cmds | \
  30170. - export_symbols_cmds | \
  30171. - extract_expsyms_cmds | reload_cmds | finish_cmds | \
  30172. - postinstall_cmds | postuninstall_cmds | \
  30173. - old_postinstall_cmds | old_postuninstall_cmds | \
  30174. - sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  30175. - # Double-quote double-evaled strings.
  30176. - eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
  30177. - ;;
  30178. - *)
  30179. - eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
  30180. - ;;
  30181. - esac
  30182. - done
  30183. + export_dynamic_flag_spec='${wl}-bexpall'
  30184. + # It seems that -bexpall does not export symbols beginning with
  30185. + # underscore (_), so it is better to generate a list of symbols to export.
  30186. + always_export_symbols=yes
  30187. + if test "$aix_use_runtimelinking" = yes; then
  30188. + # Warning - without using the other runtime loading flags (-brtl),
  30189. + # -berok will link without error, but may produce a broken library.
  30190. + allow_undefined_flag='-berok'
  30191. + # Determine the default libpath from the value encoded in an
  30192. + # empty executable.
  30193. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  30194. +/* end confdefs.h. */
  30195. - case $lt_echo in
  30196. - *'\$0 --fallback-echo"')
  30197. - lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
  30198. - ;;
  30199. - esac
  30200. +int
  30201. +main ()
  30202. +{
  30203. -cfgfile="${ofile}T"
  30204. - trap "$rm \"$cfgfile\"; exit 1" 1 2 15
  30205. - $rm -f "$cfgfile"
  30206. - { echo "$as_me:$LINENO: creating $ofile" >&5
  30207. -echo "$as_me: creating $ofile" >&6;}
  30208. + ;
  30209. + return 0;
  30210. +}
  30211. +_ACEOF
  30212. +if ac_fn_c_try_link "$LINENO"; then :
  30213. - cat <<__EOF__ >> "$cfgfile"
  30214. -#! $SHELL
  30215. +lt_aix_libpath_sed='
  30216. + /Import File Strings/,/^$/ {
  30217. + /^0/ {
  30218. + s/^0 *\(.*\)$/\1/
  30219. + p
  30220. + }
  30221. + }'
  30222. +aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  30223. +# Check for a 64-bit object if we didn't find anything.
  30224. +if test -z "$aix_libpath"; then
  30225. + aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  30226. +fi
  30227. +fi
  30228. +rm -f core conftest.err conftest.$ac_objext \
  30229. + conftest$ac_exeext conftest.$ac_ext
  30230. +if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  30231. -# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  30232. -# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
  30233. -# NOTE: Changes made to this file will be lost: look at ltmain.sh.
  30234. -#
  30235. -# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
  30236. -# Free Software Foundation, Inc.
  30237. -#
  30238. -# This file is part of GNU Libtool:
  30239. -# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
  30240. -#
  30241. -# This program is free software; you can redistribute it and/or modify
  30242. -# it under the terms of the GNU General Public License as published by
  30243. -# the Free Software Foundation; either version 2 of the License, or
  30244. -# (at your option) any later version.
  30245. -#
  30246. -# This program is distributed in the hope that it will be useful, but
  30247. -# WITHOUT ANY WARRANTY; without even the implied warranty of
  30248. -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  30249. -# General Public License for more details.
  30250. -#
  30251. -# You should have received a copy of the GNU General Public License
  30252. -# along with this program; if not, write to the Free Software
  30253. -# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  30254. -#
  30255. -# As a special exception to the GNU General Public License, if you
  30256. -# distribute this file as part of a program that contains a
  30257. -# configuration script generated by Autoconf, you may include it under
  30258. -# the same distribution terms that you use for the rest of that program.
  30259. -
  30260. -# A sed program that does not truncate output.
  30261. -SED=$lt_SED
  30262. + hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  30263. + 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"
  30264. + else
  30265. + if test "$host_cpu" = ia64; then
  30266. + hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
  30267. + allow_undefined_flag="-z nodefs"
  30268. + 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"
  30269. + else
  30270. + # Determine the default libpath from the value encoded in an
  30271. + # empty executable.
  30272. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  30273. +/* end confdefs.h. */
  30274. -# Sed that helps us avoid accidentally triggering echo(1) options like -n.
  30275. -Xsed="$SED -e 1s/^X//"
  30276. +int
  30277. +main ()
  30278. +{
  30279. -# The HP-UX ksh and POSIX shell print the target directory to stdout
  30280. -# if CDPATH is set.
  30281. -(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  30282. + ;
  30283. + return 0;
  30284. +}
  30285. +_ACEOF
  30286. +if ac_fn_c_try_link "$LINENO"; then :
  30287. -# The names of the tagged configurations supported by this script.
  30288. -available_tags=
  30289. +lt_aix_libpath_sed='
  30290. + /Import File Strings/,/^$/ {
  30291. + /^0/ {
  30292. + s/^0 *\(.*\)$/\1/
  30293. + p
  30294. + }
  30295. + }'
  30296. +aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  30297. +# Check for a 64-bit object if we didn't find anything.
  30298. +if test -z "$aix_libpath"; then
  30299. + aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  30300. +fi
  30301. +fi
  30302. +rm -f core conftest.err conftest.$ac_objext \
  30303. + conftest$ac_exeext conftest.$ac_ext
  30304. +if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  30305. -# ### BEGIN LIBTOOL CONFIG
  30306. + hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  30307. + # Warning - without using the other run time loading flags,
  30308. + # -berok will link without error, but may produce a broken library.
  30309. + no_undefined_flag=' ${wl}-bernotok'
  30310. + allow_undefined_flag=' ${wl}-berok'
  30311. + # Exported symbols can be pulled into shared objects from archives
  30312. + whole_archive_flag_spec='$convenience'
  30313. + archive_cmds_need_lc=yes
  30314. + # This is similar to how AIX traditionally builds its shared libraries.
  30315. + 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'
  30316. + fi
  30317. + fi
  30318. + ;;
  30319. -# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  30320. + amigaos*)
  30321. + case $host_cpu in
  30322. + powerpc)
  30323. + # see comment about AmigaOS4 .so support
  30324. + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  30325. + archive_expsym_cmds=''
  30326. + ;;
  30327. + m68k)
  30328. + 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)'
  30329. + hardcode_libdir_flag_spec='-L$libdir'
  30330. + hardcode_minus_L=yes
  30331. + ;;
  30332. + esac
  30333. + ;;
  30334. -# Shell to use when invoking shell scripts.
  30335. -SHELL=$lt_SHELL
  30336. + bsdi[45]*)
  30337. + export_dynamic_flag_spec=-rdynamic
  30338. + ;;
  30339. -# Whether or not to build shared libraries.
  30340. -build_libtool_libs=$enable_shared
  30341. + cygwin* | mingw* | pw32* | cegcc*)
  30342. + # When not using gcc, we currently assume that we are using
  30343. + # Microsoft Visual C++.
  30344. + # hardcode_libdir_flag_spec is actually meaningless, as there is
  30345. + # no search path for DLLs.
  30346. + hardcode_libdir_flag_spec=' '
  30347. + allow_undefined_flag=unsupported
  30348. + # Tell ltmain to make .lib files, not .a files.
  30349. + libext=lib
  30350. + # Tell ltmain to make .dll files, not .so files.
  30351. + shrext_cmds=".dll"
  30352. + # FIXME: Setting linknames here is a bad hack.
  30353. + archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
  30354. + # The linker will automatically build a .lib file if we build a DLL.
  30355. + old_archive_from_new_cmds='true'
  30356. + # FIXME: Should let the user specify the lib program.
  30357. + old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  30358. + fix_srcfile_path='`cygpath -w "$srcfile"`'
  30359. + enable_shared_with_static_runtimes=yes
  30360. + ;;
  30361. -# Whether or not to build static libraries.
  30362. -build_old_libs=$enable_static
  30363. + darwin* | rhapsody*)
  30364. -# Whether or not to add -lc for building shared libraries.
  30365. -build_libtool_need_lc=$archive_cmds_need_lc
  30366. -# Whether or not to disallow shared libs when runtime libs are static
  30367. -allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  30368. + archive_cmds_need_lc=no
  30369. + hardcode_direct=no
  30370. + hardcode_automatic=yes
  30371. + hardcode_shlibpath_var=unsupported
  30372. + whole_archive_flag_spec=''
  30373. + link_all_deplibs=yes
  30374. + allow_undefined_flag="$_lt_dar_allow_undefined"
  30375. + case $cc_basename in
  30376. + ifort*) _lt_dar_can_shared=yes ;;
  30377. + *) _lt_dar_can_shared=$GCC ;;
  30378. + esac
  30379. + if test "$_lt_dar_can_shared" = "yes"; then
  30380. + output_verbose_link_cmd=echo
  30381. + archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
  30382. + module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  30383. + 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}"
  30384. + 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}"
  30385. -# Whether or not to optimize for fast installation.
  30386. -fast_install=$enable_fast_install
  30387. + else
  30388. + ld_shlibs=no
  30389. + fi
  30390. -# The host system.
  30391. -host_alias=$host_alias
  30392. -host=$host
  30393. -host_os=$host_os
  30394. + ;;
  30395. -# The build system.
  30396. -build_alias=$build_alias
  30397. -build=$build
  30398. -build_os=$build_os
  30399. + dgux*)
  30400. + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  30401. + hardcode_libdir_flag_spec='-L$libdir'
  30402. + hardcode_shlibpath_var=no
  30403. + ;;
  30404. -# An echo program that does not interpret backslashes.
  30405. -echo=$lt_echo
  30406. + freebsd1*)
  30407. + ld_shlibs=no
  30408. + ;;
  30409. -# The archiver.
  30410. -AR=$lt_AR
  30411. -AR_FLAGS=$lt_AR_FLAGS
  30412. + # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  30413. + # support. Future versions do this automatically, but an explicit c++rt0.o
  30414. + # does not break anything, and helps significantly (at the cost of a little
  30415. + # extra space).
  30416. + freebsd2.2*)
  30417. + archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  30418. + hardcode_libdir_flag_spec='-R$libdir'
  30419. + hardcode_direct=yes
  30420. + hardcode_shlibpath_var=no
  30421. + ;;
  30422. -# A C compiler.
  30423. -LTCC=$lt_LTCC
  30424. + # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  30425. + freebsd2*)
  30426. + archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  30427. + hardcode_direct=yes
  30428. + hardcode_minus_L=yes
  30429. + hardcode_shlibpath_var=no
  30430. + ;;
  30431. -# LTCC compiler flags.
  30432. -LTCFLAGS=$lt_LTCFLAGS
  30433. + # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  30434. + freebsd* | dragonfly*)
  30435. + archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  30436. + hardcode_libdir_flag_spec='-R$libdir'
  30437. + hardcode_direct=yes
  30438. + hardcode_shlibpath_var=no
  30439. + ;;
  30440. -# A language-specific compiler.
  30441. -CC=$lt_compiler
  30442. + hpux9*)
  30443. + if test "$GCC" = yes; then
  30444. + 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'
  30445. + else
  30446. + 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'
  30447. + fi
  30448. + hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  30449. + hardcode_libdir_separator=:
  30450. + hardcode_direct=yes
  30451. -# Is the compiler the GNU C compiler?
  30452. -with_gcc=$GCC
  30453. + # hardcode_minus_L: Not really in the search PATH,
  30454. + # but as the default location of the library.
  30455. + hardcode_minus_L=yes
  30456. + export_dynamic_flag_spec='${wl}-E'
  30457. + ;;
  30458. -gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\`
  30459. -gcc_ver=\`gcc -dumpversion\`
  30460. + hpux10*)
  30461. + if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  30462. + archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  30463. + else
  30464. + archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  30465. + fi
  30466. + if test "$with_gnu_ld" = no; then
  30467. + hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  30468. + hardcode_libdir_flag_spec_ld='+b $libdir'
  30469. + hardcode_libdir_separator=:
  30470. + hardcode_direct=yes
  30471. + hardcode_direct_absolute=yes
  30472. + export_dynamic_flag_spec='${wl}-E'
  30473. + # hardcode_minus_L: Not really in the search PATH,
  30474. + # but as the default location of the library.
  30475. + hardcode_minus_L=yes
  30476. + fi
  30477. + ;;
  30478. -# An ERE matcher.
  30479. -EGREP=$lt_EGREP
  30480. + hpux11*)
  30481. + if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  30482. + case $host_cpu in
  30483. + hppa*64*)
  30484. + archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  30485. + ;;
  30486. + ia64*)
  30487. + archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  30488. + ;;
  30489. + *)
  30490. + archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  30491. + ;;
  30492. + esac
  30493. + else
  30494. + case $host_cpu in
  30495. + hppa*64*)
  30496. + archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  30497. + ;;
  30498. + ia64*)
  30499. + archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  30500. + ;;
  30501. + *)
  30502. + archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  30503. + ;;
  30504. + esac
  30505. + fi
  30506. + if test "$with_gnu_ld" = no; then
  30507. + hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  30508. + hardcode_libdir_separator=:
  30509. -# The linker used to build libraries.
  30510. -LD=$lt_LD
  30511. + case $host_cpu in
  30512. + hppa*64*|ia64*)
  30513. + hardcode_direct=no
  30514. + hardcode_shlibpath_var=no
  30515. + ;;
  30516. + *)
  30517. + hardcode_direct=yes
  30518. + hardcode_direct_absolute=yes
  30519. + export_dynamic_flag_spec='${wl}-E'
  30520. -# Whether we need hard or soft links.
  30521. -LN_S=$lt_LN_S
  30522. + # hardcode_minus_L: Not really in the search PATH,
  30523. + # but as the default location of the library.
  30524. + hardcode_minus_L=yes
  30525. + ;;
  30526. + esac
  30527. + fi
  30528. + ;;
  30529. -# A BSD-compatible nm program.
  30530. -NM=$lt_NM
  30531. + irix5* | irix6* | nonstopux*)
  30532. + if test "$GCC" = yes; then
  30533. + 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'
  30534. + # Try to use the -exported_symbol ld option, if it does not
  30535. + # work, assume that -exports_file does not work either and
  30536. + # implicitly export all symbols.
  30537. + save_LDFLAGS="$LDFLAGS"
  30538. + LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
  30539. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  30540. +/* end confdefs.h. */
  30541. +int foo(void) {}
  30542. +_ACEOF
  30543. +if ac_fn_c_try_link "$LINENO"; then :
  30544. + 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'
  30545. -# A symbol stripping program
  30546. -STRIP=$lt_STRIP
  30547. +fi
  30548. +rm -f core conftest.err conftest.$ac_objext \
  30549. + conftest$ac_exeext conftest.$ac_ext
  30550. + LDFLAGS="$save_LDFLAGS"
  30551. + else
  30552. + 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'
  30553. + 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'
  30554. + fi
  30555. + archive_cmds_need_lc='no'
  30556. + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  30557. + hardcode_libdir_separator=:
  30558. + inherit_rpath=yes
  30559. + link_all_deplibs=yes
  30560. + ;;
  30561. -# Used to examine libraries when file_magic_cmd begins "file"
  30562. -MAGIC_CMD=$MAGIC_CMD
  30563. + netbsd* | netbsdelf*-gnu)
  30564. + if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  30565. + archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  30566. + else
  30567. + archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  30568. + fi
  30569. + hardcode_libdir_flag_spec='-R$libdir'
  30570. + hardcode_direct=yes
  30571. + hardcode_shlibpath_var=no
  30572. + ;;
  30573. -# Used on cygwin: DLL creation program.
  30574. -DLLTOOL="$DLLTOOL"
  30575. + newsos6)
  30576. + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  30577. + hardcode_direct=yes
  30578. + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  30579. + hardcode_libdir_separator=:
  30580. + hardcode_shlibpath_var=no
  30581. + ;;
  30582. -# Used on cygwin: object dumper.
  30583. -OBJDUMP="$OBJDUMP"
  30584. + *nto* | *qnx*)
  30585. + ;;
  30586. -# Used on cygwin: assembler.
  30587. -AS="$AS"
  30588. + openbsd*)
  30589. + if test -f /usr/libexec/ld.so; then
  30590. + hardcode_direct=yes
  30591. + hardcode_shlibpath_var=no
  30592. + hardcode_direct_absolute=yes
  30593. + if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  30594. + archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  30595. + archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  30596. + hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  30597. + export_dynamic_flag_spec='${wl}-E'
  30598. + else
  30599. + case $host_os in
  30600. + openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  30601. + archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  30602. + hardcode_libdir_flag_spec='-R$libdir'
  30603. + ;;
  30604. + *)
  30605. + archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  30606. + hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  30607. + ;;
  30608. + esac
  30609. + fi
  30610. + else
  30611. + ld_shlibs=no
  30612. + fi
  30613. + ;;
  30614. -# The name of the directory that contains temporary libtool files.
  30615. -objdir=$objdir
  30616. -
  30617. -# How to create reloadable object files.
  30618. -reload_flag=$lt_reload_flag
  30619. -reload_cmds=$lt_reload_cmds
  30620. -
  30621. -# How to pass a linker flag through the compiler.
  30622. -wl=$lt_lt_prog_compiler_wl
  30623. -
  30624. -# Object file suffix (normally "o").
  30625. -objext="$ac_objext"
  30626. -
  30627. -# Old archive suffix (normally "a").
  30628. -libext="$libext"
  30629. -
  30630. -# Shared library suffix (normally ".so").
  30631. -shrext_cmds='$shrext_cmds'
  30632. -
  30633. -# Executable file suffix (normally "").
  30634. -exeext="$exeext"
  30635. -
  30636. -# Additional compiler flags for building library objects.
  30637. -pic_flag=$lt_lt_prog_compiler_pic
  30638. -pic_mode=$pic_mode
  30639. -
  30640. -# What is the maximum length of a command?
  30641. -max_cmd_len=$lt_cv_sys_max_cmd_len
  30642. -
  30643. -# Does compiler simultaneously support -c and -o options?
  30644. -compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  30645. -
  30646. -# Must we lock files when doing compilation?
  30647. -need_locks=$lt_need_locks
  30648. -
  30649. -# Do we need the lib prefix for modules?
  30650. -need_lib_prefix=$need_lib_prefix
  30651. -
  30652. -# Do we need a version for libraries?
  30653. -need_version=$need_version
  30654. -
  30655. -# Whether dlopen is supported.
  30656. -dlopen_support=$enable_dlopen
  30657. -
  30658. -# Whether dlopen of programs is supported.
  30659. -dlopen_self=$enable_dlopen_self
  30660. -
  30661. -# Whether dlopen of statically linked programs is supported.
  30662. -dlopen_self_static=$enable_dlopen_self_static
  30663. -
  30664. -# Compiler flag to prevent dynamic linking.
  30665. -link_static_flag=$lt_lt_prog_compiler_static
  30666. -
  30667. -# Compiler flag to turn off builtin functions.
  30668. -no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  30669. -
  30670. -# Compiler flag to allow reflexive dlopens.
  30671. -export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  30672. -
  30673. -# Compiler flag to generate shared objects directly from archives.
  30674. -whole_archive_flag_spec=$lt_whole_archive_flag_spec
  30675. -
  30676. -# Compiler flag to generate thread-safe objects.
  30677. -thread_safe_flag_spec=$lt_thread_safe_flag_spec
  30678. -
  30679. -# Library versioning type.
  30680. -version_type=$version_type
  30681. -
  30682. -# Format of library name prefix.
  30683. -libname_spec=$lt_libname_spec
  30684. -
  30685. -# List of archive names. First name is the real one, the rest are links.
  30686. -# The last name is the one that the linker finds with -lNAME.
  30687. -library_names_spec=$lt_library_names_spec
  30688. -
  30689. -# The coded name of the library, if different from the real name.
  30690. -soname_spec=$lt_soname_spec
  30691. -
  30692. -# Commands used to build and install an old-style archive.
  30693. -RANLIB=$lt_RANLIB
  30694. -old_archive_cmds=$lt_old_archive_cmds
  30695. -old_postinstall_cmds=$lt_old_postinstall_cmds
  30696. -old_postuninstall_cmds=$lt_old_postuninstall_cmds
  30697. -
  30698. -# Create an old-style archive from a shared archive.
  30699. -old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  30700. -
  30701. -# Create a temporary old-style archive to link instead of a shared archive.
  30702. -old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  30703. -
  30704. -# Commands used to build and install a shared archive.
  30705. -archive_cmds=$lt_archive_cmds
  30706. -archive_expsym_cmds=$lt_archive_expsym_cmds
  30707. -postinstall_cmds=$lt_postinstall_cmds
  30708. -postuninstall_cmds=$lt_postuninstall_cmds
  30709. -
  30710. -# Commands used to build a loadable module (assumed same as above if empty)
  30711. -module_cmds=$lt_module_cmds
  30712. -module_expsym_cmds=$lt_module_expsym_cmds
  30713. -
  30714. -# Commands to strip libraries.
  30715. -old_striplib=$lt_old_striplib
  30716. -striplib=$lt_striplib
  30717. -
  30718. -# Dependencies to place before the objects being linked to create a
  30719. -# shared library.
  30720. -predep_objects=\`echo $lt_predep_objects | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
  30721. -
  30722. -# Dependencies to place after the objects being linked to create a
  30723. -# shared library.
  30724. -postdep_objects=\`echo $lt_postdep_objects | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
  30725. -
  30726. -# Dependencies to place before the objects being linked to create a
  30727. -# shared library.
  30728. -predeps=$lt_predeps
  30729. -
  30730. -# Dependencies to place after the objects being linked to create a
  30731. -# shared library.
  30732. -postdeps=$lt_postdeps
  30733. -
  30734. -# The library search path used internally by the compiler when linking
  30735. -# a shared library.
  30736. -compiler_lib_search_path=\`echo $lt_compiler_lib_search_path | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
  30737. -
  30738. -# Method to check whether dependent libraries are shared objects.
  30739. -deplibs_check_method=$lt_deplibs_check_method
  30740. -
  30741. -# Command to use when deplibs_check_method == file_magic.
  30742. -file_magic_cmd=$lt_file_magic_cmd
  30743. -
  30744. -# Flag that allows shared libraries with undefined symbols to be built.
  30745. -allow_undefined_flag=$lt_allow_undefined_flag
  30746. -
  30747. -# Flag that forces no undefined symbols.
  30748. -no_undefined_flag=$lt_no_undefined_flag
  30749. -
  30750. -# Commands used to finish a libtool library installation in a directory.
  30751. -finish_cmds=$lt_finish_cmds
  30752. -
  30753. -# Same as above, but a single script fragment to be evaled but not shown.
  30754. -finish_eval=$lt_finish_eval
  30755. -
  30756. -# Take the output of nm and produce a listing of raw symbols and C names.
  30757. -global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  30758. + os2*)
  30759. + hardcode_libdir_flag_spec='-L$libdir'
  30760. + hardcode_minus_L=yes
  30761. + allow_undefined_flag=unsupported
  30762. + 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'
  30763. + old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  30764. + ;;
  30765. -# Transform the output of nm in a proper C declaration
  30766. -global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  30767. + osf3*)
  30768. + if test "$GCC" = yes; then
  30769. + allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  30770. + 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'
  30771. + else
  30772. + allow_undefined_flag=' -expect_unresolved \*'
  30773. + 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'
  30774. + fi
  30775. + archive_cmds_need_lc='no'
  30776. + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  30777. + hardcode_libdir_separator=:
  30778. + ;;
  30779. -# Transform the output of nm in a C name address pair
  30780. -global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  30781. + osf4* | osf5*) # as osf3* with the addition of -msym flag
  30782. + if test "$GCC" = yes; then
  30783. + allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  30784. + 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'
  30785. + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  30786. + else
  30787. + allow_undefined_flag=' -expect_unresolved \*'
  30788. + 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'
  30789. + 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~
  30790. + $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'
  30791. -# This is the shared library runtime path variable.
  30792. -runpath_var=$runpath_var
  30793. + # Both c and cxx compiler support -rpath directly
  30794. + hardcode_libdir_flag_spec='-rpath $libdir'
  30795. + fi
  30796. + archive_cmds_need_lc='no'
  30797. + hardcode_libdir_separator=:
  30798. + ;;
  30799. -# This is the shared library path variable.
  30800. -shlibpath_var=$shlibpath_var
  30801. + solaris*)
  30802. + no_undefined_flag=' -z defs'
  30803. + if test "$GCC" = yes; then
  30804. + wlarc='${wl}'
  30805. + archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  30806. + archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  30807. + $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  30808. + else
  30809. + case `$CC -V 2>&1` in
  30810. + *"Compilers 5.0"*)
  30811. + wlarc=''
  30812. + archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  30813. + archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  30814. + $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  30815. + ;;
  30816. + *)
  30817. + wlarc='${wl}'
  30818. + archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  30819. + archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  30820. + $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  30821. + ;;
  30822. + esac
  30823. + fi
  30824. + hardcode_libdir_flag_spec='-R$libdir'
  30825. + hardcode_shlibpath_var=no
  30826. + case $host_os in
  30827. + solaris2.[0-5] | solaris2.[0-5].*) ;;
  30828. + *)
  30829. + # The compiler driver will combine and reorder linker options,
  30830. + # but understands `-z linker_flag'. GCC discards it without `$wl',
  30831. + # but is careful enough not to reorder.
  30832. + # Supported since Solaris 2.6 (maybe 2.5.1?)
  30833. + if test "$GCC" = yes; then
  30834. + whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  30835. + else
  30836. + whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  30837. + fi
  30838. + ;;
  30839. + esac
  30840. + link_all_deplibs=yes
  30841. + ;;
  30842. -# Is shlibpath searched before the hard-coded library search path?
  30843. -shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  30844. + sunos4*)
  30845. + if test "x$host_vendor" = xsequent; then
  30846. + # Use $CC to link under sequent, because it throws in some extra .o
  30847. + # files that make .init and .fini sections work.
  30848. + archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  30849. + else
  30850. + archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  30851. + fi
  30852. + hardcode_libdir_flag_spec='-L$libdir'
  30853. + hardcode_direct=yes
  30854. + hardcode_minus_L=yes
  30855. + hardcode_shlibpath_var=no
  30856. + ;;
  30857. -# How to hardcode a shared library path into an executable.
  30858. -hardcode_action=$hardcode_action
  30859. + sysv4)
  30860. + case $host_vendor in
  30861. + sni)
  30862. + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  30863. + hardcode_direct=yes # is this really true???
  30864. + ;;
  30865. + siemens)
  30866. + ## LD is ld it makes a PLAMLIB
  30867. + ## CC just makes a GrossModule.
  30868. + archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  30869. + reload_cmds='$CC -r -o $output$reload_objs'
  30870. + hardcode_direct=no
  30871. + ;;
  30872. + motorola)
  30873. + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  30874. + hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  30875. + ;;
  30876. + esac
  30877. + runpath_var='LD_RUN_PATH'
  30878. + hardcode_shlibpath_var=no
  30879. + ;;
  30880. -# Whether we should hardcode library paths into libraries.
  30881. -hardcode_into_libs=$hardcode_into_libs
  30882. + sysv4.3*)
  30883. + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  30884. + hardcode_shlibpath_var=no
  30885. + export_dynamic_flag_spec='-Bexport'
  30886. + ;;
  30887. -# Flag to hardcode \$libdir into a binary during linking.
  30888. -# This must work even if \$libdir does not exist.
  30889. -hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  30890. + sysv4*MP*)
  30891. + if test -d /usr/nec; then
  30892. + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  30893. + hardcode_shlibpath_var=no
  30894. + runpath_var=LD_RUN_PATH
  30895. + hardcode_runpath_var=yes
  30896. + ld_shlibs=yes
  30897. + fi
  30898. + ;;
  30899. -# If ld is used when linking, flag to hardcode \$libdir into
  30900. -# a binary during linking. This must work even if \$libdir does
  30901. -# not exist.
  30902. -hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
  30903. + sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  30904. + no_undefined_flag='${wl}-z,text'
  30905. + archive_cmds_need_lc=no
  30906. + hardcode_shlibpath_var=no
  30907. + runpath_var='LD_RUN_PATH'
  30908. -# Whether we need a single -rpath flag with a separated argument.
  30909. -hardcode_libdir_separator=$lt_hardcode_libdir_separator
  30910. + if test "$GCC" = yes; then
  30911. + archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  30912. + archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  30913. + else
  30914. + archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  30915. + archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  30916. + fi
  30917. + ;;
  30918. -# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
  30919. -# resulting binary.
  30920. -hardcode_direct=$hardcode_direct
  30921. + sysv5* | sco3.2v5* | sco5v6*)
  30922. + # Note: We can NOT use -z defs as we might desire, because we do not
  30923. + # link with -lc, and that would cause any symbols used from libc to
  30924. + # always be unresolved, which means just about no library would
  30925. + # ever link correctly. If we're not using GNU ld we use -z text
  30926. + # though, which does catch some bad symbols but isn't as heavy-handed
  30927. + # as -z defs.
  30928. + no_undefined_flag='${wl}-z,text'
  30929. + allow_undefined_flag='${wl}-z,nodefs'
  30930. + archive_cmds_need_lc=no
  30931. + hardcode_shlibpath_var=no
  30932. + hardcode_libdir_flag_spec='${wl}-R,$libdir'
  30933. + hardcode_libdir_separator=':'
  30934. + link_all_deplibs=yes
  30935. + export_dynamic_flag_spec='${wl}-Bexport'
  30936. + runpath_var='LD_RUN_PATH'
  30937. -# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  30938. -# resulting binary.
  30939. -hardcode_minus_L=$hardcode_minus_L
  30940. + if test "$GCC" = yes; then
  30941. + archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  30942. + archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  30943. + else
  30944. + archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  30945. + archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  30946. + fi
  30947. + ;;
  30948. -# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
  30949. -# the resulting binary.
  30950. -hardcode_shlibpath_var=$hardcode_shlibpath_var
  30951. -
  30952. -# Set to yes if building a shared library automatically hardcodes DIR into the library
  30953. -# and all subsequent libraries and executables linked against it.
  30954. -hardcode_automatic=$hardcode_automatic
  30955. -
  30956. -# Variables whose values should be saved in libtool wrapper scripts and
  30957. -# restored at relink time.
  30958. -variables_saved_for_relink="$variables_saved_for_relink"
  30959. -
  30960. -# Whether libtool must link a program against all its dependency libraries.
  30961. -link_all_deplibs=$link_all_deplibs
  30962. -
  30963. -# Compile-time system search path for libraries
  30964. -sys_lib_search_path_spec=\`echo $lt_sys_lib_search_path_spec | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
  30965. -
  30966. -# Run-time system search path for libraries
  30967. -sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  30968. -
  30969. -# Fix the shell variable \$srcfile for the compiler.
  30970. -fix_srcfile_path="$fix_srcfile_path"
  30971. -
  30972. -# Set to yes if exported symbols are required.
  30973. -always_export_symbols=$always_export_symbols
  30974. -
  30975. -# The commands to list exported symbols.
  30976. -export_symbols_cmds=$lt_export_symbols_cmds
  30977. -
  30978. -# The commands to extract the exported symbol list from a shared archive.
  30979. -extract_expsyms_cmds=$lt_extract_expsyms_cmds
  30980. -
  30981. -# Symbols that should not be listed in the preloaded symbols.
  30982. -exclude_expsyms=$lt_exclude_expsyms
  30983. -
  30984. -# Symbols that must always be exported.
  30985. -include_expsyms=$lt_include_expsyms
  30986. -
  30987. -# ### END LIBTOOL CONFIG
  30988. -
  30989. -__EOF__
  30990. -
  30991. -
  30992. - case $host_os in
  30993. - aix3*)
  30994. - cat <<\EOF >> "$cfgfile"
  30995. -
  30996. -# AIX sometimes has problems with the GCC collect2 program. For some
  30997. -# reason, if we set the COLLECT_NAMES environment variable, the problems
  30998. -# vanish in a puff of smoke.
  30999. -if test "X${COLLECT_NAMES+set}" != Xset; then
  31000. - COLLECT_NAMES=
  31001. - export COLLECT_NAMES
  31002. -fi
  31003. -EOF
  31004. - ;;
  31005. - esac
  31006. -
  31007. - # We use sed instead of cat because bash on DJGPP gets confused if
  31008. - # if finds mixed CR/LF and LF-only lines. Since sed operates in
  31009. - # text mode, it properly converts lines to CR/LF. This bash problem
  31010. - # is reportedly fixed, but why not run on old versions too?
  31011. - sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
  31012. -
  31013. - mv -f "$cfgfile" "$ofile" || \
  31014. - (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  31015. - chmod +x "$ofile"
  31016. -
  31017. -else
  31018. - # If there is no Makefile yet, we rely on a make rule to execute
  31019. - # `config.status --recheck' to rerun these tests and create the
  31020. - # libtool script then.
  31021. - ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  31022. - if test -f "$ltmain_in"; then
  31023. - test -f Makefile && make "$ltmain"
  31024. - fi
  31025. -fi
  31026. -
  31027. -
  31028. -ac_ext=c
  31029. -ac_cpp='$CPP $CPPFLAGS'
  31030. -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  31031. -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  31032. -ac_compiler_gnu=$ac_cv_c_compiler_gnu
  31033. -
  31034. -CC="$lt_save_CC"
  31035. -
  31036. -
  31037. -# Check whether --with-tags was given.
  31038. -if test "${with_tags+set}" = set; then
  31039. - withval=$with_tags; tagnames="$withval"
  31040. -fi
  31041. -
  31042. -
  31043. -if test -f "$ltmain" && test -n "$tagnames"; then
  31044. - if test ! -f "${ofile}"; then
  31045. - { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
  31046. -echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
  31047. - fi
  31048. -
  31049. - if test -z "$LTCC"; then
  31050. - eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
  31051. - if test -z "$LTCC"; then
  31052. - { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
  31053. -echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
  31054. - else
  31055. - { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
  31056. -echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
  31057. - fi
  31058. - fi
  31059. - if test -z "$LTCFLAGS"; then
  31060. - eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
  31061. - fi
  31062. -
  31063. - # Extract list of available tagged configurations in $ofile.
  31064. - # Note that this assumes the entire list is on one line.
  31065. - available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
  31066. -
  31067. - lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  31068. - for tagname in $tagnames; do
  31069. - IFS="$lt_save_ifs"
  31070. - # Check whether tagname contains only valid characters
  31071. - case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
  31072. - "") ;;
  31073. - *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
  31074. -echo "$as_me: error: invalid tag name: $tagname" >&2;}
  31075. - { (exit 1); exit 1; }; }
  31076. - ;;
  31077. - esac
  31078. -
  31079. - if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
  31080. - then
  31081. - { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
  31082. -echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
  31083. - { (exit 1); exit 1; }; }
  31084. - fi
  31085. -
  31086. - # Update the list of available tags.
  31087. - if test -n "$tagname"; then
  31088. - echo appending configuration tag \"$tagname\" to $ofile
  31089. -
  31090. - case $tagname in
  31091. - CXX)
  31092. - if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
  31093. - ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
  31094. - (test "X$CXX" != "Xg++"))) ; then
  31095. - ac_ext=cpp
  31096. -ac_cpp='$CXXCPP $CPPFLAGS'
  31097. -ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  31098. -ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  31099. -ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  31100. -
  31101. -
  31102. -
  31103. -
  31104. -archive_cmds_need_lc_CXX=no
  31105. -allow_undefined_flag_CXX=
  31106. -always_export_symbols_CXX=no
  31107. -archive_expsym_cmds_CXX=
  31108. -export_dynamic_flag_spec_CXX=
  31109. -hardcode_direct_CXX=no
  31110. -hardcode_libdir_flag_spec_CXX=
  31111. -hardcode_libdir_flag_spec_ld_CXX=
  31112. -hardcode_libdir_separator_CXX=
  31113. -hardcode_minus_L_CXX=no
  31114. -hardcode_shlibpath_var_CXX=unsupported
  31115. -hardcode_automatic_CXX=no
  31116. -module_cmds_CXX=
  31117. -module_expsym_cmds_CXX=
  31118. -link_all_deplibs_CXX=unknown
  31119. -old_archive_cmds_CXX=$old_archive_cmds
  31120. -no_undefined_flag_CXX=
  31121. -whole_archive_flag_spec_CXX=
  31122. -enable_shared_with_static_runtimes_CXX=no
  31123. -
  31124. -# Dependencies to place before and after the object being linked:
  31125. -predep_objects_CXX=
  31126. -postdep_objects_CXX=
  31127. -predeps_CXX=
  31128. -postdeps_CXX=
  31129. -compiler_lib_search_path_CXX=
  31130. -
  31131. -# Source file extension for C++ test sources.
  31132. -ac_ext=cpp
  31133. -
  31134. -# Object file extension for compiled C++ test sources.
  31135. -objext=o
  31136. -objext_CXX=$objext
  31137. -
  31138. -# Code to be used in simple compile tests
  31139. -lt_simple_compile_test_code="int some_variable = 0;\n"
  31140. -
  31141. -# Code to be used in simple link tests
  31142. -lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
  31143. -
  31144. -# ltmain only uses $CC for tagged configurations so make sure $CC is set.
  31145. -
  31146. -# If no C compiler was specified, use CC.
  31147. -LTCC=${LTCC-"$CC"}
  31148. -
  31149. -# If no C compiler flags were specified, use CFLAGS.
  31150. -LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  31151. -
  31152. -# Allow CC to be a program name with arguments.
  31153. -compiler=$CC
  31154. -
  31155. -
  31156. -# save warnings/boilerplate of simple test code
  31157. -ac_outfile=conftest.$ac_objext
  31158. -printf "$lt_simple_compile_test_code" >conftest.$ac_ext
  31159. -eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  31160. -_lt_compiler_boilerplate=`cat conftest.err`
  31161. -$rm conftest*
  31162. -
  31163. -ac_outfile=conftest.$ac_objext
  31164. -printf "$lt_simple_link_test_code" >conftest.$ac_ext
  31165. -eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  31166. -_lt_linker_boilerplate=`cat conftest.err`
  31167. -$rm conftest*
  31168. -
  31169. -
  31170. -# Allow CC to be a program name with arguments.
  31171. -lt_save_CC=$CC
  31172. -lt_save_LD=$LD
  31173. -lt_save_GCC=$GCC
  31174. -GCC=$GXX
  31175. -lt_save_with_gnu_ld=$with_gnu_ld
  31176. -lt_save_path_LD=$lt_cv_path_LD
  31177. -if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
  31178. - lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  31179. -else
  31180. - $as_unset lt_cv_prog_gnu_ld
  31181. -fi
  31182. -if test -n "${lt_cv_path_LDCXX+set}"; then
  31183. - lt_cv_path_LD=$lt_cv_path_LDCXX
  31184. -else
  31185. - $as_unset lt_cv_path_LD
  31186. -fi
  31187. -test -z "${LDCXX+set}" || LD=$LDCXX
  31188. -CC=${CXX-"c++"}
  31189. -compiler=$CC
  31190. -compiler_CXX=$CC
  31191. -for cc_temp in $compiler""; do
  31192. - case $cc_temp in
  31193. - compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  31194. - distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  31195. - \-*) ;;
  31196. - *) break;;
  31197. - esac
  31198. -done
  31199. -cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  31200. -
  31201. -
  31202. -# We don't want -fno-exception wen compiling C++ code, so set the
  31203. -# no_builtin_flag separately
  31204. -if test "$GXX" = yes; then
  31205. - lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
  31206. -else
  31207. - lt_prog_compiler_no_builtin_flag_CXX=
  31208. -fi
  31209. -
  31210. -if test "$GXX" = yes; then
  31211. - # Set up default GNU C++ configuration
  31212. -
  31213. -
  31214. -# Check whether --with-gnu-ld was given.
  31215. -if test "${with_gnu_ld+set}" = set; then
  31216. - withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  31217. -else
  31218. - with_gnu_ld=no
  31219. -fi
  31220. -
  31221. -ac_prog=ld
  31222. -if test "$GCC" = yes; then
  31223. - # Check if gcc -print-prog-name=ld gives a path.
  31224. - { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
  31225. -echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
  31226. - case $host in
  31227. - *-*-mingw*)
  31228. - # gcc leaves a trailing carriage return which upsets mingw
  31229. - ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  31230. - *)
  31231. - ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  31232. - esac
  31233. - case $ac_prog in
  31234. - # Accept absolute paths.
  31235. - [\\/]* | ?:[\\/]*)
  31236. - re_direlt='/[^/][^/]*/\.\./'
  31237. - # Canonicalize the pathname of ld
  31238. - ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
  31239. - while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
  31240. - ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
  31241. - done
  31242. - test -z "$LD" && LD="$ac_prog"
  31243. - ;;
  31244. - "")
  31245. - # If it fails, then pretend we aren't using GCC.
  31246. - ac_prog=ld
  31247. - ;;
  31248. - *)
  31249. - # If it is relative, then search for the first ld in PATH.
  31250. - with_gnu_ld=unknown
  31251. - ;;
  31252. - esac
  31253. -elif test "$with_gnu_ld" = yes; then
  31254. - { echo "$as_me:$LINENO: checking for GNU ld" >&5
  31255. -echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
  31256. -else
  31257. - { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
  31258. -echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
  31259. -fi
  31260. -if test "${lt_cv_path_LD+set}" = set; then
  31261. - echo $ECHO_N "(cached) $ECHO_C" >&6
  31262. -else
  31263. - if test -z "$LD"; then
  31264. - lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  31265. - for ac_dir in $PATH; do
  31266. - IFS="$lt_save_ifs"
  31267. - test -z "$ac_dir" && ac_dir=.
  31268. - if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  31269. - lt_cv_path_LD="$ac_dir/$ac_prog"
  31270. - # Check to see if the program is GNU ld. I'd rather use --version,
  31271. - # but apparently some variants of GNU ld only accept -v.
  31272. - # Break only if it was the GNU/non-GNU ld that we prefer.
  31273. - case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  31274. - *GNU* | *'with BFD'*)
  31275. - test "$with_gnu_ld" != no && break
  31276. - ;;
  31277. - *)
  31278. - test "$with_gnu_ld" != yes && break
  31279. - ;;
  31280. - esac
  31281. - fi
  31282. - done
  31283. - IFS="$lt_save_ifs"
  31284. -else
  31285. - lt_cv_path_LD="$LD" # Let the user override the test with a path.
  31286. -fi
  31287. -fi
  31288. -
  31289. -LD="$lt_cv_path_LD"
  31290. -if test -n "$LD"; then
  31291. - { echo "$as_me:$LINENO: result: $LD" >&5
  31292. -echo "${ECHO_T}$LD" >&6; }
  31293. -else
  31294. - { echo "$as_me:$LINENO: result: no" >&5
  31295. -echo "${ECHO_T}no" >&6; }
  31296. -fi
  31297. -test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
  31298. -echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
  31299. - { (exit 1); exit 1; }; }
  31300. -{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
  31301. -echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
  31302. -if test "${lt_cv_prog_gnu_ld+set}" = set; then
  31303. - echo $ECHO_N "(cached) $ECHO_C" >&6
  31304. -else
  31305. - # I'd rather use --version here, but apparently some GNU lds only accept -v.
  31306. -case `$LD -v 2>&1 </dev/null` in
  31307. -*GNU* | *'with BFD'*)
  31308. - lt_cv_prog_gnu_ld=yes
  31309. - ;;
  31310. -*)
  31311. - lt_cv_prog_gnu_ld=no
  31312. - ;;
  31313. -esac
  31314. -fi
  31315. -{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
  31316. -echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
  31317. -with_gnu_ld=$lt_cv_prog_gnu_ld
  31318. -
  31319. -
  31320. -
  31321. - # Check if GNU C++ uses GNU ld as the underlying linker, since the
  31322. - # archiving commands below assume that GNU ld is being used.
  31323. - if test "$with_gnu_ld" = yes; then
  31324. - archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  31325. - 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'
  31326. -
  31327. - hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
  31328. - export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  31329. -
  31330. - # If archive_cmds runs LD, not CC, wlarc should be empty
  31331. - # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
  31332. - # investigate it a little bit more. (MM)
  31333. - wlarc='${wl}'
  31334. -
  31335. - # ancient GNU ld didn't support --whole-archive et. al.
  31336. - if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
  31337. - grep 'no-whole-archive' > /dev/null; then
  31338. - whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  31339. - else
  31340. - whole_archive_flag_spec_CXX=
  31341. - fi
  31342. - else
  31343. - with_gnu_ld=no
  31344. - wlarc=
  31345. -
  31346. - # A generic and very simple default shared library creation
  31347. - # command for GNU C++ for the case where it uses the native
  31348. - # linker, instead of GNU ld. If possible, this setting should
  31349. - # overridden to take advantage of the native linker features on
  31350. - # the platform it is being used on.
  31351. - archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  31352. - fi
  31353. -
  31354. - # Commands to make compiler produce verbose output that lists
  31355. - # what "hidden" libraries, object files and flags are used when
  31356. - # linking a shared library.
  31357. - output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
  31358. -
  31359. -else
  31360. - GXX=no
  31361. - with_gnu_ld=no
  31362. - wlarc=
  31363. -fi
  31364. -
  31365. -# PORTME: fill in a description of your system's C++ link characteristics
  31366. -{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  31367. -echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
  31368. -ld_shlibs_CXX=yes
  31369. -case $host_os in
  31370. - aix3*)
  31371. - # FIXME: insert proper C++ library support
  31372. - ld_shlibs_CXX=no
  31373. - ;;
  31374. - aix4* | aix5*)
  31375. - if test "$host_cpu" = ia64; then
  31376. - # On IA64, the linker does run time linking by default, so we don't
  31377. - # have to do anything special.
  31378. - aix_use_runtimelinking=no
  31379. - exp_sym_flag='-Bexport'
  31380. - no_entry_flag=""
  31381. - else
  31382. - aix_use_runtimelinking=no
  31383. -
  31384. - # Test if we are trying to use run time linking or normal
  31385. - # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  31386. - # need to do runtime linking.
  31387. - case $host_os in aix4.[23]|aix4.[23].*|aix5*)
  31388. - for ld_flag in $LDFLAGS; do
  31389. - case $ld_flag in
  31390. - *-brtl*)
  31391. - aix_use_runtimelinking=yes
  31392. - break
  31393. - ;;
  31394. - esac
  31395. - done
  31396. - ;;
  31397. - esac
  31398. -
  31399. - exp_sym_flag='-bexport'
  31400. - no_entry_flag='-bnoentry'
  31401. - fi
  31402. -
  31403. - # When large executables or shared objects are built, AIX ld can
  31404. - # have problems creating the table of contents. If linking a library
  31405. - # or program results in "error TOC overflow" add -mminimal-toc to
  31406. - # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  31407. - # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  31408. -
  31409. - archive_cmds_CXX=''
  31410. - hardcode_direct_CXX=yes
  31411. - hardcode_libdir_separator_CXX=':'
  31412. - link_all_deplibs_CXX=yes
  31413. -
  31414. - if test "$GXX" = yes; then
  31415. - case $host_os in aix4.[012]|aix4.[012].*)
  31416. - # We only want to do this on AIX 4.2 and lower, the check
  31417. - # below for broken collect2 doesn't work under 4.3+
  31418. - collect2name=`${CC} -print-prog-name=collect2`
  31419. - if test -f "$collect2name" && \
  31420. - strings "$collect2name" | grep resolve_lib_name >/dev/null
  31421. - then
  31422. - # We have reworked collect2
  31423. - hardcode_direct_CXX=yes
  31424. - else
  31425. - # We have old collect2
  31426. - hardcode_direct_CXX=unsupported
  31427. - # It fails to find uninstalled libraries when the uninstalled
  31428. - # path is not listed in the libpath. Setting hardcode_minus_L
  31429. - # to unsupported forces relinking
  31430. - hardcode_minus_L_CXX=yes
  31431. - hardcode_libdir_flag_spec_CXX='-L$libdir'
  31432. - hardcode_libdir_separator_CXX=
  31433. - fi
  31434. - ;;
  31435. - esac
  31436. - shared_flag='-shared'
  31437. - if test "$aix_use_runtimelinking" = yes; then
  31438. - shared_flag="$shared_flag "'${wl}-G'
  31439. - fi
  31440. - else
  31441. - # not using gcc
  31442. - if test "$host_cpu" = ia64; then
  31443. - # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  31444. - # chokes on -Wl,-G. The following line is correct:
  31445. - shared_flag='-G'
  31446. - else
  31447. - if test "$aix_use_runtimelinking" = yes; then
  31448. - shared_flag='${wl}-G'
  31449. - else
  31450. - shared_flag='${wl}-bM:SRE'
  31451. - fi
  31452. - fi
  31453. - fi
  31454. -
  31455. - # It seems that -bexpall does not export symbols beginning with
  31456. - # underscore (_), so it is better to generate a list of symbols to export.
  31457. - always_export_symbols_CXX=yes
  31458. - if test "$aix_use_runtimelinking" = yes; then
  31459. - # Warning - without using the other runtime loading flags (-brtl),
  31460. - # -berok will link without error, but may produce a broken library.
  31461. - allow_undefined_flag_CXX='-berok'
  31462. - # Determine the default libpath from the value encoded in an empty executable.
  31463. - cat >conftest.$ac_ext <<_ACEOF
  31464. -/* confdefs.h. */
  31465. -_ACEOF
  31466. -cat confdefs.h >>conftest.$ac_ext
  31467. -cat >>conftest.$ac_ext <<_ACEOF
  31468. -/* end confdefs.h. */
  31469. -
  31470. -int
  31471. -main ()
  31472. -{
  31473. -
  31474. - ;
  31475. - return 0;
  31476. -}
  31477. -_ACEOF
  31478. -rm -f conftest.$ac_objext conftest$ac_exeext
  31479. -if { (ac_try="$ac_link"
  31480. -case "(($ac_try" in
  31481. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  31482. - *) ac_try_echo=$ac_try;;
  31483. -esac
  31484. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  31485. - (eval "$ac_link") 2>conftest.er1
  31486. - ac_status=$?
  31487. - grep -v '^ *+' conftest.er1 >conftest.err
  31488. - rm -f conftest.er1
  31489. - cat conftest.err >&5
  31490. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  31491. - (exit $ac_status); } &&
  31492. - { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  31493. - { (case "(($ac_try" in
  31494. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  31495. - *) ac_try_echo=$ac_try;;
  31496. -esac
  31497. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  31498. - (eval "$ac_try") 2>&5
  31499. - ac_status=$?
  31500. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  31501. - (exit $ac_status); }; } &&
  31502. - { ac_try='test -s conftest$ac_exeext'
  31503. - { (case "(($ac_try" in
  31504. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  31505. - *) ac_try_echo=$ac_try;;
  31506. -esac
  31507. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  31508. - (eval "$ac_try") 2>&5
  31509. - ac_status=$?
  31510. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  31511. - (exit $ac_status); }; }; then
  31512. -
  31513. -aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  31514. -}'`
  31515. -# Check for a 64-bit object if we didn't find anything.
  31516. -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; }
  31517. -}'`; fi
  31518. -else
  31519. - echo "$as_me: failed program was:" >&5
  31520. -sed 's/^/| /' conftest.$ac_ext >&5
  31521. -
  31522. -
  31523. -fi
  31524. -
  31525. -rm -f core conftest.err conftest.$ac_objext \
  31526. - conftest$ac_exeext conftest.$ac_ext
  31527. -if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  31528. -
  31529. - hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  31530. -
  31531. - 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"
  31532. - else
  31533. - if test "$host_cpu" = ia64; then
  31534. - hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
  31535. - allow_undefined_flag_CXX="-z nodefs"
  31536. - 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"
  31537. - else
  31538. - # Determine the default libpath from the value encoded in an empty executable.
  31539. - cat >conftest.$ac_ext <<_ACEOF
  31540. -/* confdefs.h. */
  31541. -_ACEOF
  31542. -cat confdefs.h >>conftest.$ac_ext
  31543. -cat >>conftest.$ac_ext <<_ACEOF
  31544. -/* end confdefs.h. */
  31545. -
  31546. -int
  31547. -main ()
  31548. -{
  31549. -
  31550. - ;
  31551. - return 0;
  31552. -}
  31553. -_ACEOF
  31554. -rm -f conftest.$ac_objext conftest$ac_exeext
  31555. -if { (ac_try="$ac_link"
  31556. -case "(($ac_try" in
  31557. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  31558. - *) ac_try_echo=$ac_try;;
  31559. -esac
  31560. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  31561. - (eval "$ac_link") 2>conftest.er1
  31562. - ac_status=$?
  31563. - grep -v '^ *+' conftest.er1 >conftest.err
  31564. - rm -f conftest.er1
  31565. - cat conftest.err >&5
  31566. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  31567. - (exit $ac_status); } &&
  31568. - { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  31569. - { (case "(($ac_try" in
  31570. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  31571. - *) ac_try_echo=$ac_try;;
  31572. -esac
  31573. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  31574. - (eval "$ac_try") 2>&5
  31575. - ac_status=$?
  31576. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  31577. - (exit $ac_status); }; } &&
  31578. - { ac_try='test -s conftest$ac_exeext'
  31579. - { (case "(($ac_try" in
  31580. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  31581. - *) ac_try_echo=$ac_try;;
  31582. -esac
  31583. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  31584. - (eval "$ac_try") 2>&5
  31585. - ac_status=$?
  31586. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  31587. - (exit $ac_status); }; }; then
  31588. -
  31589. -aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  31590. -}'`
  31591. -# Check for a 64-bit object if we didn't find anything.
  31592. -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; }
  31593. -}'`; fi
  31594. -else
  31595. - echo "$as_me: failed program was:" >&5
  31596. -sed 's/^/| /' conftest.$ac_ext >&5
  31597. -
  31598. -
  31599. -fi
  31600. -
  31601. -rm -f core conftest.err conftest.$ac_objext \
  31602. - conftest$ac_exeext conftest.$ac_ext
  31603. -if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  31604. -
  31605. - hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  31606. - # Warning - without using the other run time loading flags,
  31607. - # -berok will link without error, but may produce a broken library.
  31608. - no_undefined_flag_CXX=' ${wl}-bernotok'
  31609. - allow_undefined_flag_CXX=' ${wl}-berok'
  31610. - # Exported symbols can be pulled into shared objects from archives
  31611. - whole_archive_flag_spec_CXX='$convenience'
  31612. - archive_cmds_need_lc_CXX=yes
  31613. - # This is similar to how AIX traditionally builds its shared libraries.
  31614. - 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'
  31615. - fi
  31616. - fi
  31617. - ;;
  31618. -
  31619. - beos*)
  31620. - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  31621. - allow_undefined_flag_CXX=unsupported
  31622. - # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  31623. - # support --undefined. This deserves some investigation. FIXME
  31624. - archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  31625. - else
  31626. - ld_shlibs_CXX=no
  31627. - fi
  31628. - ;;
  31629. -
  31630. - chorus*)
  31631. - case $cc_basename in
  31632. - *)
  31633. - # FIXME: insert proper C++ library support
  31634. - ld_shlibs_CXX=no
  31635. - ;;
  31636. - esac
  31637. - ;;
  31638. -
  31639. - cygwin* | mingw* | pw32*)
  31640. - # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
  31641. - # as there is no search path for DLLs.
  31642. - hardcode_libdir_flag_spec_CXX='-L$libdir'
  31643. - allow_undefined_flag_CXX=unsupported
  31644. - always_export_symbols_CXX=no
  31645. - enable_shared_with_static_runtimes_CXX=yes
  31646. -
  31647. - if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
  31648. - 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'
  31649. - # If the export-symbols file already is a .def file (1st line
  31650. - # is EXPORTS), use it as is; otherwise, prepend...
  31651. - archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  31652. - cp $export_symbols $output_objdir/$soname.def;
  31653. - else
  31654. - echo EXPORTS > $output_objdir/$soname.def;
  31655. - cat $export_symbols >> $output_objdir/$soname.def;
  31656. - fi~
  31657. - $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'
  31658. - else
  31659. - ld_shlibs_CXX=no
  31660. - fi
  31661. - ;;
  31662. - darwin* | rhapsody*)
  31663. - case $host_os in
  31664. - rhapsody* | darwin1.[012])
  31665. - allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
  31666. - ;;
  31667. - *) # Darwin 1.3 on
  31668. - if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
  31669. - allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  31670. - else
  31671. - case ${MACOSX_DEPLOYMENT_TARGET} in
  31672. - 10.[012])
  31673. - allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  31674. - ;;
  31675. - 10.*)
  31676. - allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
  31677. - ;;
  31678. - esac
  31679. - fi
  31680. - ;;
  31681. - esac
  31682. - archive_cmds_need_lc_CXX=no
  31683. - hardcode_direct_CXX=no
  31684. - hardcode_automatic_CXX=yes
  31685. - hardcode_shlibpath_var_CXX=unsupported
  31686. - whole_archive_flag_spec_CXX=''
  31687. - link_all_deplibs_CXX=yes
  31688. -
  31689. - if test "$GXX" = yes ; then
  31690. - lt_int_apple_cc_single_mod=no
  31691. - output_verbose_link_cmd='echo'
  31692. - if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
  31693. - lt_int_apple_cc_single_mod=yes
  31694. - fi
  31695. - if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
  31696. - archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
  31697. - else
  31698. - 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'
  31699. - fi
  31700. - module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  31701. - # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  31702. - if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
  31703. - 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}'
  31704. - else
  31705. - 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}'
  31706. - fi
  31707. - 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}'
  31708. - else
  31709. - case $cc_basename in
  31710. - xlc*)
  31711. - output_verbose_link_cmd='echo'
  31712. - 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'
  31713. - module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  31714. - # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  31715. - 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}'
  31716. - 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}'
  31717. - ;;
  31718. - *)
  31719. - ld_shlibs_CXX=no
  31720. - ;;
  31721. - esac
  31722. - fi
  31723. - ;;
  31724. -
  31725. - dgux*)
  31726. - case $cc_basename in
  31727. - ec++*)
  31728. - # FIXME: insert proper C++ library support
  31729. - ld_shlibs_CXX=no
  31730. - ;;
  31731. - ghcx*)
  31732. - # Green Hills C++ Compiler
  31733. - # FIXME: insert proper C++ library support
  31734. - ld_shlibs_CXX=no
  31735. - ;;
  31736. - *)
  31737. - # FIXME: insert proper C++ library support
  31738. - ld_shlibs_CXX=no
  31739. - ;;
  31740. - esac
  31741. - ;;
  31742. - freebsd[12]*)
  31743. - # C++ shared libraries reported to be fairly broken before switch to ELF
  31744. - ld_shlibs_CXX=no
  31745. - ;;
  31746. - freebsd-elf*)
  31747. - archive_cmds_need_lc_CXX=no
  31748. - ;;
  31749. - freebsd* | kfreebsd*-gnu | dragonfly*)
  31750. - # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
  31751. - # conventions
  31752. - ld_shlibs_CXX=yes
  31753. - ;;
  31754. - gnu*)
  31755. - ;;
  31756. - hpux9*)
  31757. - hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  31758. - hardcode_libdir_separator_CXX=:
  31759. - export_dynamic_flag_spec_CXX='${wl}-E'
  31760. - hardcode_direct_CXX=yes
  31761. - hardcode_minus_L_CXX=yes # Not in the search PATH,
  31762. - # but as the default
  31763. - # location of the library.
  31764. -
  31765. - case $cc_basename in
  31766. - CC*)
  31767. - # FIXME: insert proper C++ library support
  31768. - ld_shlibs_CXX=no
  31769. - ;;
  31770. - aCC*)
  31771. - 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'
  31772. - # Commands to make compiler produce verbose output that lists
  31773. - # what "hidden" libraries, object files and flags are used when
  31774. - # linking a shared library.
  31775. - #
  31776. - # There doesn't appear to be a way to prevent this compiler from
  31777. - # explicitly linking system object files so we need to strip them
  31778. - # from the output so that they don't get included in the library
  31779. - # dependencies.
  31780. - 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'
  31781. - ;;
  31782. - *)
  31783. - if test "$GXX" = yes; then
  31784. - 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'
  31785. - else
  31786. - # FIXME: insert proper C++ library support
  31787. - ld_shlibs_CXX=no
  31788. - fi
  31789. - ;;
  31790. - esac
  31791. - ;;
  31792. - hpux10*|hpux11*)
  31793. - if test $with_gnu_ld = no; then
  31794. - hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  31795. - hardcode_libdir_separator_CXX=:
  31796. -
  31797. - case $host_cpu in
  31798. - hppa*64*|ia64*)
  31799. - hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
  31800. - ;;
  31801. - *)
  31802. - export_dynamic_flag_spec_CXX='${wl}-E'
  31803. - ;;
  31804. - esac
  31805. - fi
  31806. - case $host_cpu in
  31807. - hppa*64*|ia64*)
  31808. - hardcode_direct_CXX=no
  31809. - hardcode_shlibpath_var_CXX=no
  31810. - ;;
  31811. - *)
  31812. - hardcode_direct_CXX=yes
  31813. - hardcode_minus_L_CXX=yes # Not in the search PATH,
  31814. - # but as the default
  31815. - # location of the library.
  31816. - ;;
  31817. - esac
  31818. -
  31819. - case $cc_basename in
  31820. - CC*)
  31821. - # FIXME: insert proper C++ library support
  31822. - ld_shlibs_CXX=no
  31823. - ;;
  31824. - aCC*)
  31825. - case $host_cpu in
  31826. - hppa*64*)
  31827. - archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  31828. - ;;
  31829. - ia64*)
  31830. - archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  31831. - ;;
  31832. - *)
  31833. - archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  31834. - ;;
  31835. - esac
  31836. - # Commands to make compiler produce verbose output that lists
  31837. - # what "hidden" libraries, object files and flags are used when
  31838. - # linking a shared library.
  31839. - #
  31840. - # There doesn't appear to be a way to prevent this compiler from
  31841. - # explicitly linking system object files so we need to strip them
  31842. - # from the output so that they don't get included in the library
  31843. - # dependencies.
  31844. - 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'
  31845. - ;;
  31846. - *)
  31847. - if test "$GXX" = yes; then
  31848. - if test $with_gnu_ld = no; then
  31849. - case $host_cpu in
  31850. - hppa*64*)
  31851. - archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  31852. - ;;
  31853. - ia64*)
  31854. - archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  31855. - ;;
  31856. - *)
  31857. - 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'
  31858. - ;;
  31859. - esac
  31860. - fi
  31861. - else
  31862. - # FIXME: insert proper C++ library support
  31863. - ld_shlibs_CXX=no
  31864. - fi
  31865. - ;;
  31866. - esac
  31867. - ;;
  31868. - interix3*)
  31869. - hardcode_direct_CXX=no
  31870. - hardcode_shlibpath_var_CXX=no
  31871. - hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  31872. - export_dynamic_flag_spec_CXX='${wl}-E'
  31873. - # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  31874. - # Instead, shared libraries are loaded at an image base (0x10000000 by
  31875. - # default) and relocated if they conflict, which is a slow very memory
  31876. - # consuming and fragmenting process. To avoid this, we pick a random,
  31877. - # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  31878. - # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  31879. - 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'
  31880. - 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'
  31881. - ;;
  31882. - irix5* | irix6*)
  31883. - case $cc_basename in
  31884. - CC*)
  31885. - # SGI C++
  31886. - 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'
  31887. -
  31888. - # Archives containing C++ object files must be created using
  31889. - # "CC -ar", where "CC" is the IRIX C++ compiler. This is
  31890. - # necessary to make sure instantiated templates are included
  31891. - # in the archive.
  31892. - old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
  31893. - ;;
  31894. - *)
  31895. - if test "$GXX" = yes; then
  31896. - if test "$with_gnu_ld" = no; then
  31897. - 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'
  31898. - else
  31899. - 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'
  31900. - fi
  31901. - fi
  31902. - link_all_deplibs_CXX=yes
  31903. - ;;
  31904. - esac
  31905. - hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  31906. - hardcode_libdir_separator_CXX=:
  31907. - ;;
  31908. - linux*)
  31909. - case $cc_basename in
  31910. - KCC*)
  31911. - # Kuck and Associates, Inc. (KAI) C++ Compiler
  31912. -
  31913. - # KCC will only create a shared library if the output file
  31914. - # ends with ".so" (or ".sl" for HP-UX), so rename the library
  31915. - # to its proper name (with version) after linking.
  31916. - 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'
  31917. - 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'
  31918. - # Commands to make compiler produce verbose output that lists
  31919. - # what "hidden" libraries, object files and flags are used when
  31920. - # linking a shared library.
  31921. - #
  31922. - # There doesn't appear to be a way to prevent this compiler from
  31923. - # explicitly linking system object files so we need to strip them
  31924. - # from the output so that they don't get included in the library
  31925. - # dependencies.
  31926. - 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'
  31927. -
  31928. - hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
  31929. - export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  31930. -
  31931. - # Archives containing C++ object files must be created using
  31932. - # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  31933. - old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
  31934. - ;;
  31935. - icpc*)
  31936. - # Intel C++
  31937. - with_gnu_ld=yes
  31938. - # version 8.0 and above of icpc choke on multiply defined symbols
  31939. - # if we add $predep_objects and $postdep_objects, however 7.1 and
  31940. - # earlier do not add the objects themselves.
  31941. - case `$CC -V 2>&1` in
  31942. - *"Version 7."*)
  31943. - archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  31944. - 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'
  31945. - ;;
  31946. - *) # Version 8.0 or newer
  31947. - tmp_idyn=
  31948. - case $host_cpu in
  31949. - ia64*) tmp_idyn=' -i_dynamic';;
  31950. - esac
  31951. - archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  31952. - 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'
  31953. - ;;
  31954. - esac
  31955. - archive_cmds_need_lc_CXX=no
  31956. - hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  31957. - export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  31958. - whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  31959. - ;;
  31960. - pgCC*)
  31961. - # Portland Group C++ compiler
  31962. - archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  31963. - 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'
  31964. -
  31965. - hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
  31966. - export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  31967. - 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'
  31968. - ;;
  31969. - cxx*)
  31970. - # Compaq C++
  31971. - archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  31972. - 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'
  31973. -
  31974. - runpath_var=LD_RUN_PATH
  31975. - hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  31976. - hardcode_libdir_separator_CXX=:
  31977. -
  31978. - # Commands to make compiler produce verbose output that lists
  31979. - # what "hidden" libraries, object files and flags are used when
  31980. - # linking a shared library.
  31981. - #
  31982. - # There doesn't appear to be a way to prevent this compiler from
  31983. - # explicitly linking system object files so we need to strip them
  31984. - # from the output so that they don't get included in the library
  31985. - # dependencies.
  31986. - 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'
  31987. - ;;
  31988. - esac
  31989. - ;;
  31990. - lynxos*)
  31991. - # FIXME: insert proper C++ library support
  31992. - ld_shlibs_CXX=no
  31993. - ;;
  31994. - m88k*)
  31995. - # FIXME: insert proper C++ library support
  31996. - ld_shlibs_CXX=no
  31997. - ;;
  31998. - mvs*)
  31999. - case $cc_basename in
  32000. - cxx*)
  32001. - # FIXME: insert proper C++ library support
  32002. - ld_shlibs_CXX=no
  32003. - ;;
  32004. - *)
  32005. - # FIXME: insert proper C++ library support
  32006. - ld_shlibs_CXX=no
  32007. - ;;
  32008. - esac
  32009. - ;;
  32010. - netbsd*)
  32011. - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  32012. - archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
  32013. - wlarc=
  32014. - hardcode_libdir_flag_spec_CXX='-R$libdir'
  32015. - hardcode_direct_CXX=yes
  32016. - hardcode_shlibpath_var_CXX=no
  32017. - fi
  32018. - # Workaround some broken pre-1.5 toolchains
  32019. - output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
  32020. - ;;
  32021. - openbsd2*)
  32022. - # C++ shared libraries are fairly broken
  32023. - ld_shlibs_CXX=no
  32024. - ;;
  32025. - openbsd*)
  32026. - hardcode_direct_CXX=yes
  32027. - hardcode_shlibpath_var_CXX=no
  32028. - archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  32029. - hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  32030. - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  32031. - archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
  32032. - export_dynamic_flag_spec_CXX='${wl}-E'
  32033. - whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  32034. - fi
  32035. - output_verbose_link_cmd='echo'
  32036. - ;;
  32037. - osf3*)
  32038. - case $cc_basename in
  32039. - KCC*)
  32040. - # Kuck and Associates, Inc. (KAI) C++ Compiler
  32041. -
  32042. - # KCC will only create a shared library if the output file
  32043. - # ends with ".so" (or ".sl" for HP-UX), so rename the library
  32044. - # to its proper name (with version) after linking.
  32045. - 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'
  32046. -
  32047. - hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  32048. - hardcode_libdir_separator_CXX=:
  32049. -
  32050. - # Archives containing C++ object files must be created using
  32051. - # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  32052. - old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
  32053. -
  32054. - ;;
  32055. - RCC*)
  32056. - # Rational C++ 2.4.1
  32057. - # FIXME: insert proper C++ library support
  32058. - ld_shlibs_CXX=no
  32059. - ;;
  32060. - cxx*)
  32061. - allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  32062. - 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'
  32063. -
  32064. - hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  32065. - hardcode_libdir_separator_CXX=:
  32066. -
  32067. - # Commands to make compiler produce verbose output that lists
  32068. - # what "hidden" libraries, object files and flags are used when
  32069. - # linking a shared library.
  32070. - #
  32071. - # There doesn't appear to be a way to prevent this compiler from
  32072. - # explicitly linking system object files so we need to strip them
  32073. - # from the output so that they don't get included in the library
  32074. - # dependencies.
  32075. - 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'
  32076. - ;;
  32077. - *)
  32078. - if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  32079. - allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  32080. - 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'
  32081. -
  32082. - hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  32083. - hardcode_libdir_separator_CXX=:
  32084. -
  32085. - # Commands to make compiler produce verbose output that lists
  32086. - # what "hidden" libraries, object files and flags are used when
  32087. - # linking a shared library.
  32088. - output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
  32089. -
  32090. - else
  32091. - # FIXME: insert proper C++ library support
  32092. - ld_shlibs_CXX=no
  32093. - fi
  32094. - ;;
  32095. - esac
  32096. - ;;
  32097. - osf4* | osf5*)
  32098. - case $cc_basename in
  32099. - KCC*)
  32100. - # Kuck and Associates, Inc. (KAI) C++ Compiler
  32101. -
  32102. - # KCC will only create a shared library if the output file
  32103. - # ends with ".so" (or ".sl" for HP-UX), so rename the library
  32104. - # to its proper name (with version) after linking.
  32105. - 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'
  32106. -
  32107. - hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  32108. - hardcode_libdir_separator_CXX=:
  32109. -
  32110. - # Archives containing C++ object files must be created using
  32111. - # the KAI C++ compiler.
  32112. - old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
  32113. - ;;
  32114. - RCC*)
  32115. - # Rational C++ 2.4.1
  32116. - # FIXME: insert proper C++ library support
  32117. - ld_shlibs_CXX=no
  32118. - ;;
  32119. - cxx*)
  32120. - allow_undefined_flag_CXX=' -expect_unresolved \*'
  32121. - 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'
  32122. - archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
  32123. - echo "-hidden">> $lib.exp~
  32124. - $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~
  32125. - $rm $lib.exp'
  32126. -
  32127. - hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  32128. - hardcode_libdir_separator_CXX=:
  32129. -
  32130. - # Commands to make compiler produce verbose output that lists
  32131. - # what "hidden" libraries, object files and flags are used when
  32132. - # linking a shared library.
  32133. - #
  32134. - # There doesn't appear to be a way to prevent this compiler from
  32135. - # explicitly linking system object files so we need to strip them
  32136. - # from the output so that they don't get included in the library
  32137. - # dependencies.
  32138. - 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'
  32139. - ;;
  32140. - *)
  32141. - if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  32142. - allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  32143. - 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'
  32144. -
  32145. - hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  32146. - hardcode_libdir_separator_CXX=:
  32147. -
  32148. - # Commands to make compiler produce verbose output that lists
  32149. - # what "hidden" libraries, object files and flags are used when
  32150. - # linking a shared library.
  32151. - output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
  32152. -
  32153. - else
  32154. - # FIXME: insert proper C++ library support
  32155. - ld_shlibs_CXX=no
  32156. - fi
  32157. - ;;
  32158. - esac
  32159. - ;;
  32160. - psos*)
  32161. - # FIXME: insert proper C++ library support
  32162. - ld_shlibs_CXX=no
  32163. - ;;
  32164. - sunos4*)
  32165. - case $cc_basename in
  32166. - CC*)
  32167. - # Sun C++ 4.x
  32168. - # FIXME: insert proper C++ library support
  32169. - ld_shlibs_CXX=no
  32170. - ;;
  32171. - lcc*)
  32172. - # Lucid
  32173. - # FIXME: insert proper C++ library support
  32174. - ld_shlibs_CXX=no
  32175. - ;;
  32176. - *)
  32177. - # FIXME: insert proper C++ library support
  32178. - ld_shlibs_CXX=no
  32179. - ;;
  32180. - esac
  32181. - ;;
  32182. - solaris*)
  32183. - case $cc_basename in
  32184. - CC*)
  32185. - # Sun C++ 4.2, 5.x and Centerline C++
  32186. - archive_cmds_need_lc_CXX=yes
  32187. - no_undefined_flag_CXX=' -zdefs'
  32188. - archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  32189. - archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  32190. - $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'
  32191. -
  32192. - hardcode_libdir_flag_spec_CXX='-R$libdir'
  32193. - hardcode_shlibpath_var_CXX=no
  32194. - case $host_os in
  32195. - solaris2.[0-5] | solaris2.[0-5].*) ;;
  32196. - *)
  32197. - # The C++ compiler is used as linker so we must use $wl
  32198. - # flag to pass the commands to the underlying system
  32199. - # linker. We must also pass each convience library through
  32200. - # to the system linker between allextract/defaultextract.
  32201. - # The C++ compiler will combine linker options so we
  32202. - # cannot just pass the convience library names through
  32203. - # without $wl.
  32204. - # Supported since Solaris 2.6 (maybe 2.5.1?)
  32205. - 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'
  32206. - ;;
  32207. - esac
  32208. - link_all_deplibs_CXX=yes
  32209. -
  32210. - output_verbose_link_cmd='echo'
  32211. -
  32212. - # Archives containing C++ object files must be created using
  32213. - # "CC -xar", where "CC" is the Sun C++ compiler. This is
  32214. - # necessary to make sure instantiated templates are included
  32215. - # in the archive.
  32216. - old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  32217. - ;;
  32218. - gcx*)
  32219. - # Green Hills C++ Compiler
  32220. - archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  32221. -
  32222. - # The C++ compiler must be used to create the archive.
  32223. - old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
  32224. - ;;
  32225. - *)
  32226. - # GNU C++ compiler with Solaris linker
  32227. - if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  32228. - no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
  32229. - if $CC --version | grep -v '^2\.7' > /dev/null; then
  32230. - archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  32231. - archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  32232. - $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
  32233. -
  32234. - # Commands to make compiler produce verbose output that lists
  32235. - # what "hidden" libraries, object files and flags are used when
  32236. - # linking a shared library.
  32237. - output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
  32238. - else
  32239. - # g++ 2.7 appears to require `-G' NOT `-shared' on this
  32240. - # platform.
  32241. - archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  32242. - archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  32243. - $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
  32244. -
  32245. - # Commands to make compiler produce verbose output that lists
  32246. - # what "hidden" libraries, object files and flags are used when
  32247. - # linking a shared library.
  32248. - output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
  32249. - fi
  32250. -
  32251. - hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
  32252. - fi
  32253. - ;;
  32254. - esac
  32255. - ;;
  32256. - sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  32257. - no_undefined_flag_CXX='${wl}-z,text'
  32258. - archive_cmds_need_lc_CXX=no
  32259. - hardcode_shlibpath_var_CXX=no
  32260. - runpath_var='LD_RUN_PATH'
  32261. -
  32262. - case $cc_basename in
  32263. - CC*)
  32264. - archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  32265. - archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  32266. - ;;
  32267. - *)
  32268. - archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  32269. - archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  32270. - ;;
  32271. - esac
  32272. - ;;
  32273. - sysv5* | sco3.2v5* | sco5v6*)
  32274. - # Note: We can NOT use -z defs as we might desire, because we do not
  32275. - # link with -lc, and that would cause any symbols used from libc to
  32276. - # always be unresolved, which means just about no library would
  32277. - # ever link correctly. If we're not using GNU ld we use -z text
  32278. - # though, which does catch some bad symbols but isn't as heavy-handed
  32279. - # as -z defs.
  32280. - # For security reasons, it is highly recommended that you always
  32281. - # use absolute paths for naming shared libraries, and exclude the
  32282. - # DT_RUNPATH tag from executables and libraries. But doing so
  32283. - # requires that you compile everything twice, which is a pain.
  32284. - # So that behaviour is only enabled if SCOABSPATH is set to a
  32285. - # non-empty value in the environment. Most likely only useful for
  32286. - # creating official distributions of packages.
  32287. - # This is a hack until libtool officially supports absolute path
  32288. - # names for shared libraries.
  32289. - no_undefined_flag_CXX='${wl}-z,text'
  32290. - allow_undefined_flag_CXX='${wl}-z,nodefs'
  32291. - archive_cmds_need_lc_CXX=no
  32292. - hardcode_shlibpath_var_CXX=no
  32293. - hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
  32294. - hardcode_libdir_separator_CXX=':'
  32295. - link_all_deplibs_CXX=yes
  32296. - export_dynamic_flag_spec_CXX='${wl}-Bexport'
  32297. - runpath_var='LD_RUN_PATH'
  32298. -
  32299. - case $cc_basename in
  32300. - CC*)
  32301. - archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  32302. - archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  32303. - ;;
  32304. - *)
  32305. - archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  32306. - archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  32307. - ;;
  32308. - esac
  32309. - ;;
  32310. - tandem*)
  32311. - case $cc_basename in
  32312. - NCC*)
  32313. - # NonStop-UX NCC 3.20
  32314. - # FIXME: insert proper C++ library support
  32315. - ld_shlibs_CXX=no
  32316. - ;;
  32317. - *)
  32318. - # FIXME: insert proper C++ library support
  32319. - ld_shlibs_CXX=no
  32320. - ;;
  32321. - esac
  32322. - ;;
  32323. - vxworks*)
  32324. - # FIXME: insert proper C++ library support
  32325. - ld_shlibs_CXX=no
  32326. - ;;
  32327. - *)
  32328. - # FIXME: insert proper C++ library support
  32329. - ld_shlibs_CXX=no
  32330. - ;;
  32331. -esac
  32332. -{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
  32333. -echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
  32334. -test "$ld_shlibs_CXX" = no && can_build_shared=no
  32335. -
  32336. -GCC_CXX="$GXX"
  32337. -LD_CXX="$LD"
  32338. -
  32339. -
  32340. -cat > conftest.$ac_ext <<EOF
  32341. -class Foo
  32342. -{
  32343. -public:
  32344. - Foo (void) { a = 0; }
  32345. -private:
  32346. - int a;
  32347. -};
  32348. -EOF
  32349. -
  32350. -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  32351. - (eval $ac_compile) 2>&5
  32352. - ac_status=$?
  32353. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  32354. - (exit $ac_status); }; then
  32355. - # Parse the compiler output and extract the necessary
  32356. - # objects, libraries and library flags.
  32357. -
  32358. - # Sentinel used to keep track of whether or not we are before
  32359. - # the conftest object file.
  32360. - pre_test_object_deps_done=no
  32361. -
  32362. - # The `*' in the case matches for architectures that use `case' in
  32363. - # $output_verbose_cmd can trigger glob expansion during the loop
  32364. - # eval without this substitution.
  32365. - output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
  32366. -
  32367. - for p in `eval $output_verbose_link_cmd`; do
  32368. - case $p in
  32369. -
  32370. - -L* | -R* | -l*)
  32371. - # Some compilers place space between "-{L,R}" and the path.
  32372. - # Remove the space.
  32373. - if test $p = "-L" \
  32374. - || test $p = "-R"; then
  32375. - prev=$p
  32376. - continue
  32377. - else
  32378. - prev=
  32379. - fi
  32380. -
  32381. - if test "$pre_test_object_deps_done" = no; then
  32382. - case $p in
  32383. - -L* | -R*)
  32384. - # Internal compiler library paths should come after those
  32385. - # provided the user. The postdeps already come after the
  32386. - # user supplied libs so there is no need to process them.
  32387. - if test -z "$compiler_lib_search_path_CXX"; then
  32388. - compiler_lib_search_path_CXX="${prev}${p}"
  32389. - else
  32390. - compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
  32391. - fi
  32392. - ;;
  32393. - # The "-l" case would never come before the object being
  32394. - # linked, so don't bother handling this case.
  32395. - esac
  32396. - else
  32397. - if test -z "$postdeps_CXX"; then
  32398. - postdeps_CXX="${prev}${p}"
  32399. - else
  32400. - postdeps_CXX="${postdeps_CXX} ${prev}${p}"
  32401. - fi
  32402. - fi
  32403. - ;;
  32404. -
  32405. - *.$objext)
  32406. - # This assumes that the test object file only shows up
  32407. - # once in the compiler output.
  32408. - if test "$p" = "conftest.$objext"; then
  32409. - pre_test_object_deps_done=yes
  32410. - continue
  32411. - fi
  32412. -
  32413. - if test "$pre_test_object_deps_done" = no; then
  32414. - if test -z "$predep_objects_CXX"; then
  32415. - predep_objects_CXX="$p"
  32416. - else
  32417. - predep_objects_CXX="$predep_objects_CXX $p"
  32418. - fi
  32419. - else
  32420. - if test -z "$postdep_objects_CXX"; then
  32421. - postdep_objects_CXX="$p"
  32422. - else
  32423. - postdep_objects_CXX="$postdep_objects_CXX $p"
  32424. - fi
  32425. - fi
  32426. - ;;
  32427. -
  32428. - *) ;; # Ignore the rest.
  32429. -
  32430. - esac
  32431. - done
  32432. -
  32433. - # Clean up.
  32434. - rm -f a.out a.exe
  32435. -else
  32436. - echo "libtool.m4: error: problem compiling CXX test program"
  32437. -fi
  32438. -
  32439. -$rm -f confest.$objext
  32440. -
  32441. -# PORTME: override above test on systems where it is broken
  32442. -case $host_os in
  32443. -interix3*)
  32444. - # Interix 3.5 installs completely hosed .la files for C++, so rather than
  32445. - # hack all around it, let's just trust "g++" to DTRT.
  32446. - predep_objects_CXX=
  32447. - postdep_objects_CXX=
  32448. - postdeps_CXX=
  32449. - ;;
  32450. -
  32451. -solaris*)
  32452. - case $cc_basename in
  32453. - CC*)
  32454. - # Adding this requires a known-good setup of shared libraries for
  32455. - # Sun compiler versions before 5.6, else PIC objects from an old
  32456. - # archive will be linked into the output, leading to subtle bugs.
  32457. - postdeps_CXX='-lCstd -lCrun'
  32458. - ;;
  32459. - esac
  32460. - ;;
  32461. -esac
  32462. -
  32463. -
  32464. -case " $postdeps_CXX " in
  32465. -*" -lc "*) archive_cmds_need_lc_CXX=no ;;
  32466. -esac
  32467. -
  32468. -lt_prog_compiler_wl_CXX=
  32469. -lt_prog_compiler_pic_CXX=
  32470. -lt_prog_compiler_static_CXX=
  32471. -
  32472. -{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
  32473. -echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
  32474. -
  32475. - # C++ specific cases for pic, static, wl, etc.
  32476. - if test "$GXX" = yes; then
  32477. - lt_prog_compiler_wl_CXX='-Wl,'
  32478. - lt_prog_compiler_static_CXX='-static'
  32479. -
  32480. - case $host_os in
  32481. - aix*)
  32482. - # All AIX code is PIC.
  32483. - if test "$host_cpu" = ia64; then
  32484. - # AIX 5 now supports IA64 processor
  32485. - lt_prog_compiler_static_CXX='-Bstatic'
  32486. - fi
  32487. - ;;
  32488. - amigaos*)
  32489. - # FIXME: we need at least 68020 code to build shared libraries, but
  32490. - # adding the `-m68020' flag to GCC prevents building anything better,
  32491. - # like `-m68040'.
  32492. - lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
  32493. - ;;
  32494. - beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  32495. - # PIC is the default for these OSes.
  32496. - ;;
  32497. - mingw* | os2* | pw32*)
  32498. - # This hack is so that the source file can tell whether it is being
  32499. - # built for inclusion in a dll (and should export symbols for example).
  32500. - lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  32501. - ;;
  32502. - darwin* | rhapsody*)
  32503. - # PIC is the default on this platform
  32504. - # Common symbols not allowed in MH_DYLIB files
  32505. - lt_prog_compiler_pic_CXX='-fno-common'
  32506. - ;;
  32507. - *djgpp*)
  32508. - # DJGPP does not support shared libraries at all
  32509. - lt_prog_compiler_pic_CXX=
  32510. - ;;
  32511. - interix3*)
  32512. - # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  32513. - # Instead, we relocate shared libraries at runtime.
  32514. - ;;
  32515. - sysv4*MP*)
  32516. - if test -d /usr/nec; then
  32517. - lt_prog_compiler_pic_CXX=-Kconform_pic
  32518. - fi
  32519. - ;;
  32520. - hpux*)
  32521. - # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  32522. - # not for PA HP-UX.
  32523. - case $host_cpu in
  32524. - hppa*64*|ia64*)
  32525. - ;;
  32526. - *)
  32527. - lt_prog_compiler_pic_CXX='-fPIC'
  32528. - ;;
  32529. - esac
  32530. - ;;
  32531. - *)
  32532. - lt_prog_compiler_pic_CXX='-fPIC'
  32533. - ;;
  32534. - esac
  32535. - else
  32536. - case $host_os in
  32537. - aix4* | aix5*)
  32538. - # All AIX code is PIC.
  32539. - if test "$host_cpu" = ia64; then
  32540. - # AIX 5 now supports IA64 processor
  32541. - lt_prog_compiler_static_CXX='-Bstatic'
  32542. - else
  32543. - lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
  32544. - fi
  32545. - ;;
  32546. - chorus*)
  32547. - case $cc_basename in
  32548. - cxch68*)
  32549. - # Green Hills C++ Compiler
  32550. - # _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"
  32551. - ;;
  32552. - esac
  32553. - ;;
  32554. - darwin*)
  32555. - # PIC is the default on this platform
  32556. - # Common symbols not allowed in MH_DYLIB files
  32557. - case $cc_basename in
  32558. - xlc*)
  32559. - lt_prog_compiler_pic_CXX='-qnocommon'
  32560. - lt_prog_compiler_wl_CXX='-Wl,'
  32561. - ;;
  32562. - esac
  32563. - ;;
  32564. - dgux*)
  32565. - case $cc_basename in
  32566. - ec++*)
  32567. - lt_prog_compiler_pic_CXX='-KPIC'
  32568. - ;;
  32569. - ghcx*)
  32570. - # Green Hills C++ Compiler
  32571. - lt_prog_compiler_pic_CXX='-pic'
  32572. - ;;
  32573. - *)
  32574. - ;;
  32575. - esac
  32576. - ;;
  32577. - freebsd* | kfreebsd*-gnu | dragonfly*)
  32578. - # FreeBSD uses GNU C++
  32579. - ;;
  32580. - hpux9* | hpux10* | hpux11*)
  32581. - case $cc_basename in
  32582. - CC*)
  32583. - lt_prog_compiler_wl_CXX='-Wl,'
  32584. - lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  32585. - if test "$host_cpu" != ia64; then
  32586. - lt_prog_compiler_pic_CXX='+Z'
  32587. - fi
  32588. - ;;
  32589. - aCC*)
  32590. - lt_prog_compiler_wl_CXX='-Wl,'
  32591. - lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  32592. - case $host_cpu in
  32593. - hppa*64*|ia64*)
  32594. - # +Z the default
  32595. - ;;
  32596. - *)
  32597. - lt_prog_compiler_pic_CXX='+Z'
  32598. - ;;
  32599. - esac
  32600. - ;;
  32601. - *)
  32602. - ;;
  32603. - esac
  32604. - ;;
  32605. - interix*)
  32606. - # This is c89, which is MS Visual C++ (no shared libs)
  32607. - # Anyone wants to do a port?
  32608. - ;;
  32609. - irix5* | irix6* | nonstopux*)
  32610. - case $cc_basename in
  32611. - CC*)
  32612. - lt_prog_compiler_wl_CXX='-Wl,'
  32613. - lt_prog_compiler_static_CXX='-non_shared'
  32614. - # CC pic flag -KPIC is the default.
  32615. - ;;
  32616. - *)
  32617. - ;;
  32618. - esac
  32619. - ;;
  32620. - linux*)
  32621. - case $cc_basename in
  32622. - KCC*)
  32623. - # KAI C++ Compiler
  32624. - lt_prog_compiler_wl_CXX='--backend -Wl,'
  32625. - lt_prog_compiler_pic_CXX='-fPIC'
  32626. - ;;
  32627. - icpc* | ecpc*)
  32628. - # Intel C++
  32629. - lt_prog_compiler_wl_CXX='-Wl,'
  32630. - lt_prog_compiler_pic_CXX='-KPIC'
  32631. - lt_prog_compiler_static_CXX='-static'
  32632. - ;;
  32633. - pgCC*)
  32634. - # Portland Group C++ compiler.
  32635. - lt_prog_compiler_wl_CXX='-Wl,'
  32636. - lt_prog_compiler_pic_CXX='-fpic'
  32637. - lt_prog_compiler_static_CXX='-Bstatic'
  32638. - ;;
  32639. - cxx*)
  32640. - # Compaq C++
  32641. - # Make sure the PIC flag is empty. It appears that all Alpha
  32642. - # Linux and Compaq Tru64 Unix objects are PIC.
  32643. - lt_prog_compiler_pic_CXX=
  32644. - lt_prog_compiler_static_CXX='-non_shared'
  32645. - ;;
  32646. - *)
  32647. - ;;
  32648. - esac
  32649. - ;;
  32650. - lynxos*)
  32651. - ;;
  32652. - m88k*)
  32653. - ;;
  32654. - mvs*)
  32655. - case $cc_basename in
  32656. - cxx*)
  32657. - lt_prog_compiler_pic_CXX='-W c,exportall'
  32658. - ;;
  32659. - *)
  32660. - ;;
  32661. - esac
  32662. - ;;
  32663. - netbsd*)
  32664. - ;;
  32665. - osf3* | osf4* | osf5*)
  32666. - case $cc_basename in
  32667. - KCC*)
  32668. - lt_prog_compiler_wl_CXX='--backend -Wl,'
  32669. - ;;
  32670. - RCC*)
  32671. - # Rational C++ 2.4.1
  32672. - lt_prog_compiler_pic_CXX='-pic'
  32673. - ;;
  32674. - cxx*)
  32675. - # Digital/Compaq C++
  32676. - lt_prog_compiler_wl_CXX='-Wl,'
  32677. - # Make sure the PIC flag is empty. It appears that all Alpha
  32678. - # Linux and Compaq Tru64 Unix objects are PIC.
  32679. - lt_prog_compiler_pic_CXX=
  32680. - lt_prog_compiler_static_CXX='-non_shared'
  32681. - ;;
  32682. - *)
  32683. - ;;
  32684. - esac
  32685. - ;;
  32686. - psos*)
  32687. - ;;
  32688. - solaris*)
  32689. - case $cc_basename in
  32690. - CC*)
  32691. - # Sun C++ 4.2, 5.x and Centerline C++
  32692. - lt_prog_compiler_pic_CXX='-KPIC'
  32693. - lt_prog_compiler_static_CXX='-Bstatic'
  32694. - lt_prog_compiler_wl_CXX='-Qoption ld '
  32695. - ;;
  32696. - gcx*)
  32697. - # Green Hills C++ Compiler
  32698. - lt_prog_compiler_pic_CXX='-PIC'
  32699. - ;;
  32700. - *)
  32701. - ;;
  32702. - esac
  32703. - ;;
  32704. - sunos4*)
  32705. - case $cc_basename in
  32706. - CC*)
  32707. - # Sun C++ 4.x
  32708. - lt_prog_compiler_pic_CXX='-pic'
  32709. - lt_prog_compiler_static_CXX='-Bstatic'
  32710. - ;;
  32711. - lcc*)
  32712. - # Lucid
  32713. - lt_prog_compiler_pic_CXX='-pic'
  32714. - ;;
  32715. - *)
  32716. - ;;
  32717. - esac
  32718. - ;;
  32719. - tandem*)
  32720. - case $cc_basename in
  32721. - NCC*)
  32722. - # NonStop-UX NCC 3.20
  32723. - lt_prog_compiler_pic_CXX='-KPIC'
  32724. - ;;
  32725. - *)
  32726. - ;;
  32727. - esac
  32728. - ;;
  32729. - sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  32730. - case $cc_basename in
  32731. - CC*)
  32732. - lt_prog_compiler_wl_CXX='-Wl,'
  32733. - lt_prog_compiler_pic_CXX='-KPIC'
  32734. - lt_prog_compiler_static_CXX='-Bstatic'
  32735. - ;;
  32736. - esac
  32737. - ;;
  32738. - vxworks*)
  32739. - ;;
  32740. - *)
  32741. - lt_prog_compiler_can_build_shared_CXX=no
  32742. - ;;
  32743. - esac
  32744. - fi
  32745. -
  32746. -{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
  32747. -echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
  32748. -
  32749. -#
  32750. -# Check to make sure the PIC flag actually works.
  32751. -#
  32752. -if test -n "$lt_prog_compiler_pic_CXX"; then
  32753. -
  32754. -{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
  32755. -echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
  32756. -if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
  32757. - echo $ECHO_N "(cached) $ECHO_C" >&6
  32758. -else
  32759. - lt_prog_compiler_pic_works_CXX=no
  32760. - ac_outfile=conftest.$ac_objext
  32761. - printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  32762. - lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
  32763. - # Insert the option either (1) after the last *FLAGS variable, or
  32764. - # (2) before a word containing "conftest.", or (3) at the end.
  32765. - # Note that $ac_compile itself does not contain backslashes and begins
  32766. - # with a dollar sign (not a hyphen), so the echo should work correctly.
  32767. - # The option is referenced via a variable to avoid confusing sed.
  32768. - lt_compile=`echo "$ac_compile" | $SED \
  32769. - -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  32770. - -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  32771. - -e 's:$: $lt_compiler_flag:'`
  32772. - (eval echo "\"\$as_me:12631: $lt_compile\"" >&5)
  32773. - (eval "$lt_compile" 2>conftest.err)
  32774. - ac_status=$?
  32775. - cat conftest.err >&5
  32776. - echo "$as_me:12635: \$? = $ac_status" >&5
  32777. - if (exit $ac_status) && test -s "$ac_outfile"; then
  32778. - # The compiler can only warn and ignore the option if not recognized
  32779. - # So say no if there are warnings other than the usual output.
  32780. - $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  32781. - $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  32782. - if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  32783. - lt_prog_compiler_pic_works_CXX=yes
  32784. - fi
  32785. - fi
  32786. - $rm conftest*
  32787. -
  32788. -fi
  32789. -{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
  32790. -echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
  32791. -
  32792. -if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
  32793. - case $lt_prog_compiler_pic_CXX in
  32794. - "" | " "*) ;;
  32795. - *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
  32796. - esac
  32797. -else
  32798. - lt_prog_compiler_pic_CXX=
  32799. - lt_prog_compiler_can_build_shared_CXX=no
  32800. -fi
  32801. -
  32802. -fi
  32803. -case $host_os in
  32804. - # For platforms which do not support PIC, -DPIC is meaningless:
  32805. - *djgpp*)
  32806. - lt_prog_compiler_pic_CXX=
  32807. - ;;
  32808. - *)
  32809. - lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
  32810. - ;;
  32811. -esac
  32812. -
  32813. -#
  32814. -# Check to make sure the static flag actually works.
  32815. -#
  32816. -wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
  32817. -{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  32818. -echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
  32819. -if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
  32820. - echo $ECHO_N "(cached) $ECHO_C" >&6
  32821. -else
  32822. - lt_prog_compiler_static_works_CXX=no
  32823. - save_LDFLAGS="$LDFLAGS"
  32824. - LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  32825. - printf "$lt_simple_link_test_code" > conftest.$ac_ext
  32826. - if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  32827. - # The linker can only warn and ignore the option if not recognized
  32828. - # So say no if there are warnings
  32829. - if test -s conftest.err; then
  32830. - # Append any errors to the config.log.
  32831. - cat conftest.err 1>&5
  32832. - $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
  32833. - $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  32834. - if diff conftest.exp conftest.er2 >/dev/null; then
  32835. - lt_prog_compiler_static_works_CXX=yes
  32836. - fi
  32837. - else
  32838. - lt_prog_compiler_static_works_CXX=yes
  32839. - fi
  32840. - fi
  32841. - $rm conftest*
  32842. - LDFLAGS="$save_LDFLAGS"
  32843. -
  32844. -fi
  32845. -{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
  32846. -echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
  32847. -
  32848. -if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
  32849. - :
  32850. -else
  32851. - lt_prog_compiler_static_CXX=
  32852. -fi
  32853. -
  32854. -
  32855. -{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
  32856. -echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
  32857. -if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
  32858. - echo $ECHO_N "(cached) $ECHO_C" >&6
  32859. -else
  32860. - lt_cv_prog_compiler_c_o_CXX=no
  32861. - $rm -r conftest 2>/dev/null
  32862. - mkdir conftest
  32863. - cd conftest
  32864. - mkdir out
  32865. - printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  32866. -
  32867. - lt_compiler_flag="-o out/conftest2.$ac_objext"
  32868. - # Insert the option either (1) after the last *FLAGS variable, or
  32869. - # (2) before a word containing "conftest.", or (3) at the end.
  32870. - # Note that $ac_compile itself does not contain backslashes and begins
  32871. - # with a dollar sign (not a hyphen), so the echo should work correctly.
  32872. - lt_compile=`echo "$ac_compile" | $SED \
  32873. - -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  32874. - -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  32875. - -e 's:$: $lt_compiler_flag:'`
  32876. - (eval echo "\"\$as_me:12735: $lt_compile\"" >&5)
  32877. - (eval "$lt_compile" 2>out/conftest.err)
  32878. - ac_status=$?
  32879. - cat out/conftest.err >&5
  32880. - echo "$as_me:12739: \$? = $ac_status" >&5
  32881. - if (exit $ac_status) && test -s out/conftest2.$ac_objext
  32882. - then
  32883. - # The compiler can only warn and ignore the option if not recognized
  32884. - # So say no if there are warnings
  32885. - $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  32886. - $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  32887. - if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  32888. - lt_cv_prog_compiler_c_o_CXX=yes
  32889. - fi
  32890. - fi
  32891. - chmod u+w . 2>&5
  32892. - $rm conftest*
  32893. - # SGI C++ compiler will create directory out/ii_files/ for
  32894. - # template instantiation
  32895. - test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
  32896. - $rm out/* && rmdir out
  32897. - cd ..
  32898. - rmdir conftest
  32899. - $rm conftest*
  32900. -
  32901. -fi
  32902. -{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  32903. -echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
  32904. -
  32905. -
  32906. -hard_links="nottested"
  32907. -if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
  32908. - # do not overwrite the value of need_locks provided by the user
  32909. - { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
  32910. -echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
  32911. - hard_links=yes
  32912. - $rm conftest*
  32913. - ln conftest.a conftest.b 2>/dev/null && hard_links=no
  32914. - touch conftest.a
  32915. - ln conftest.a conftest.b 2>&5 || hard_links=no
  32916. - ln conftest.a conftest.b 2>/dev/null && hard_links=no
  32917. - { echo "$as_me:$LINENO: result: $hard_links" >&5
  32918. -echo "${ECHO_T}$hard_links" >&6; }
  32919. - if test "$hard_links" = no; then
  32920. - { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  32921. -echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  32922. - need_locks=warn
  32923. - fi
  32924. -else
  32925. - need_locks=no
  32926. -fi
  32927. -
  32928. -{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  32929. -echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
  32930. -
  32931. - export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  32932. - case $host_os in
  32933. - aix4* | aix5*)
  32934. - # If we're using GNU nm, then we don't want the "-C" option.
  32935. - # -C means demangle to AIX nm, but means don't demangle with GNU nm
  32936. - if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
  32937. - 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'
  32938. - else
  32939. - 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'
  32940. - fi
  32941. - ;;
  32942. - pw32*)
  32943. - export_symbols_cmds_CXX="$ltdll_cmds"
  32944. - ;;
  32945. - cygwin* | mingw*)
  32946. - 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'
  32947. - ;;
  32948. - *)
  32949. - export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  32950. - ;;
  32951. - esac
  32952. -
  32953. -{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
  32954. -echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
  32955. -test "$ld_shlibs_CXX" = no && can_build_shared=no
  32956. -
  32957. -#
  32958. -# Do we need to explicitly link libc?
  32959. -#
  32960. -case "x$archive_cmds_need_lc_CXX" in
  32961. -x|xyes)
  32962. - # Assume -lc should be added
  32963. - archive_cmds_need_lc_CXX=yes
  32964. -
  32965. - if test "$enable_shared" = yes && test "$GCC" = yes; then
  32966. - case $archive_cmds_CXX in
  32967. - *'~'*)
  32968. - # FIXME: we may have to deal with multi-command sequences.
  32969. - ;;
  32970. - '$CC '*)
  32971. - # Test whether the compiler implicitly links with -lc since on some
  32972. - # systems, -lgcc has to come before -lc. If gcc already passes -lc
  32973. - # to ld, don't add -lc before -lgcc.
  32974. - { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
  32975. -echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
  32976. - $rm conftest*
  32977. - printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  32978. -
  32979. - if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  32980. - (eval $ac_compile) 2>&5
  32981. - ac_status=$?
  32982. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  32983. - (exit $ac_status); } 2>conftest.err; then
  32984. - soname=conftest
  32985. - lib=conftest
  32986. - libobjs=conftest.$ac_objext
  32987. - deplibs=
  32988. - wl=$lt_prog_compiler_wl_CXX
  32989. - pic_flag=$lt_prog_compiler_pic_CXX
  32990. - compiler_flags=-v
  32991. - linker_flags=-v
  32992. - verstring=
  32993. - output_objdir=.
  32994. - libname=conftest
  32995. - lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
  32996. - allow_undefined_flag_CXX=
  32997. - if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
  32998. - (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
  32999. - ac_status=$?
  33000. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  33001. - (exit $ac_status); }
  33002. - then
  33003. - archive_cmds_need_lc_CXX=no
  33004. - else
  33005. - archive_cmds_need_lc_CXX=yes
  33006. - fi
  33007. - allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
  33008. - else
  33009. - cat conftest.err 1>&5
  33010. - fi
  33011. - $rm conftest*
  33012. - { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
  33013. -echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
  33014. - ;;
  33015. - esac
  33016. - fi
  33017. - ;;
  33018. -esac
  33019. -
  33020. -{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
  33021. -echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
  33022. -library_names_spec=
  33023. -libname_spec='lib$name'
  33024. -soname_spec=
  33025. -shrext_cmds=".so"
  33026. -postinstall_cmds=
  33027. -postuninstall_cmds=
  33028. -finish_cmds=
  33029. -finish_eval=
  33030. -shlibpath_var=
  33031. -shlibpath_overrides_runpath=unknown
  33032. -version_type=none
  33033. -dynamic_linker="$host_os ld.so"
  33034. -sys_lib_dlsearch_path_spec="/lib /usr/lib"
  33035. -if test "$GCC" = yes; then
  33036. - sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  33037. - if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
  33038. - # if the path contains ";" then we assume it to be the separator
  33039. - # otherwise default to the standard path separator (i.e. ":") - it is
  33040. - # assumed that no part of a normal pathname contains ";" but that should
  33041. - # okay in the real world where ";" in dirpaths is itself problematic.
  33042. - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  33043. - else
  33044. - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  33045. - fi
  33046. -else
  33047. - sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  33048. -fi
  33049. -need_lib_prefix=unknown
  33050. -hardcode_into_libs=no
  33051. -
  33052. -# when you set need_version to no, make sure it does not cause -set_version
  33053. -# flags to be left without arguments
  33054. -need_version=unknown
  33055. -
  33056. -case $host_os in
  33057. -aix3*)
  33058. - version_type=linux
  33059. - library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  33060. - shlibpath_var=LIBPATH
  33061. -
  33062. - # AIX 3 has no versioning support, so we append a major version to the name.
  33063. - soname_spec='${libname}${release}${shared_ext}$major'
  33064. - ;;
  33065. -
  33066. -aix4* | aix5*)
  33067. - version_type=linux
  33068. - need_lib_prefix=no
  33069. - need_version=no
  33070. - hardcode_into_libs=yes
  33071. - if test "$host_cpu" = ia64; then
  33072. - # AIX 5 supports IA64
  33073. - library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  33074. - shlibpath_var=LD_LIBRARY_PATH
  33075. - else
  33076. - # With GCC up to 2.95.x, collect2 would create an import file
  33077. - # for dependence libraries. The import file would start with
  33078. - # the line `#! .'. This would cause the generated library to
  33079. - # depend on `.', always an invalid library. This was fixed in
  33080. - # development snapshots of GCC prior to 3.0.
  33081. - case $host_os in
  33082. - aix4 | aix4.[01] | aix4.[01].*)
  33083. - if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  33084. - echo ' yes '
  33085. - echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
  33086. - :
  33087. - else
  33088. - can_build_shared=no
  33089. - fi
  33090. - ;;
  33091. - esac
  33092. - # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  33093. - # soname into executable. Probably we can add versioning support to
  33094. - # collect2, so additional links can be useful in future.
  33095. - if test "$aix_use_runtimelinking" = yes; then
  33096. - # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  33097. - # instead of lib<name>.a to let people know that these are not
  33098. - # typical AIX shared libraries.
  33099. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  33100. - else
  33101. - # We preserve .a as extension for shared libraries through AIX4.2
  33102. - # and later when we are not doing run time linking.
  33103. - library_names_spec='${libname}${release}.a $libname.a'
  33104. - soname_spec='${libname}${release}${shared_ext}$major'
  33105. - fi
  33106. - shlibpath_var=LIBPATH
  33107. - fi
  33108. - ;;
  33109. -
  33110. -amigaos*)
  33111. - library_names_spec='$libname.ixlibrary $libname.a'
  33112. - # Create ${libname}_ixlibrary.a entries in /sys/libs.
  33113. - 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'
  33114. - ;;
  33115. -
  33116. -beos*)
  33117. - library_names_spec='${libname}${shared_ext}'
  33118. - dynamic_linker="$host_os ld.so"
  33119. - shlibpath_var=LIBRARY_PATH
  33120. - ;;
  33121. -
  33122. -bsdi[45]*)
  33123. - version_type=linux
  33124. - need_version=no
  33125. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  33126. - soname_spec='${libname}${release}${shared_ext}$major'
  33127. - finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  33128. - shlibpath_var=LD_LIBRARY_PATH
  33129. - sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  33130. - sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  33131. - # the default ld.so.conf also contains /usr/contrib/lib and
  33132. - # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  33133. - # libtool to hard-code these into programs
  33134. - ;;
  33135. -
  33136. -cygwin* | mingw* | pw32*)
  33137. - version_type=windows
  33138. - shrext_cmds=".dll"
  33139. - need_version=no
  33140. - need_lib_prefix=no
  33141. -
  33142. - case $GCC,$host_os in
  33143. - yes,cygwin* | yes,mingw* | yes,pw32*)
  33144. - library_names_spec='$libname.dll.a'
  33145. - # DLL is installed to $(libdir)/../bin by postinstall_cmds
  33146. - postinstall_cmds='base_file=`basename \${file}`~
  33147. - dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
  33148. - dldir=$destdir/`dirname \$dlpath`~
  33149. - test -d \$dldir || mkdir -p \$dldir~
  33150. - $install_prog $dir/$dlname \$dldir/$dlname~
  33151. - chmod a+x \$dldir/$dlname'
  33152. - postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  33153. - dlpath=$dir/\$dldll~
  33154. - $rm \$dlpath'
  33155. - shlibpath_overrides_runpath=yes
  33156. -
  33157. - case $host_os in
  33158. - cygwin*)
  33159. - # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  33160. - soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  33161. - sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  33162. - ;;
  33163. - mingw*)
  33164. - # MinGW DLLs use traditional 'lib' prefix
  33165. - soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  33166. - sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  33167. - if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
  33168. - # It is most probably a Windows format PATH printed by
  33169. - # mingw gcc, but we are running on Cygwin. Gcc prints its search
  33170. - # path with ; separators, and with drive letters. We can handle the
  33171. - # drive letters (cygwin fileutils understands them), so leave them,
  33172. - # especially as we might pass files found there to a mingw objdump,
  33173. - # which wouldn't understand a cygwinified path. Ahh.
  33174. - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  33175. - else
  33176. - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  33177. - fi
  33178. - ;;
  33179. - pw32*)
  33180. - # pw32 DLLs use 'pw' prefix rather than 'lib'
  33181. - library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  33182. - ;;
  33183. - esac
  33184. - ;;
  33185. -
  33186. - *)
  33187. - library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  33188. - ;;
  33189. - esac
  33190. - dynamic_linker='Win32 ld.exe'
  33191. - # FIXME: first we should search . and the directory the executable is in
  33192. - shlibpath_var=PATH
  33193. - ;;
  33194. -
  33195. -darwin* | rhapsody*)
  33196. - dynamic_linker="$host_os dyld"
  33197. - version_type=darwin
  33198. - need_lib_prefix=no
  33199. - need_version=no
  33200. - library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  33201. - soname_spec='${libname}${release}${major}$shared_ext'
  33202. - shlibpath_overrides_runpath=yes
  33203. - shlibpath_var=DYLD_LIBRARY_PATH
  33204. - shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  33205. - # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
  33206. - if test "$GCC" = yes; then
  33207. - 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"`
  33208. - else
  33209. - sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
  33210. - fi
  33211. - sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  33212. - ;;
  33213. -
  33214. -dgux*)
  33215. - version_type=linux
  33216. - need_lib_prefix=no
  33217. - need_version=no
  33218. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  33219. - soname_spec='${libname}${release}${shared_ext}$major'
  33220. - shlibpath_var=LD_LIBRARY_PATH
  33221. - ;;
  33222. -
  33223. -freebsd1*)
  33224. - dynamic_linker=no
  33225. - ;;
  33226. -
  33227. -kfreebsd*-gnu)
  33228. - version_type=linux
  33229. - need_lib_prefix=no
  33230. - need_version=no
  33231. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  33232. - soname_spec='${libname}${release}${shared_ext}$major'
  33233. - shlibpath_var=LD_LIBRARY_PATH
  33234. - shlibpath_overrides_runpath=no
  33235. - hardcode_into_libs=yes
  33236. - dynamic_linker='GNU ld.so'
  33237. - ;;
  33238. -
  33239. -freebsd* | dragonfly*)
  33240. - # DragonFly does not have aout. When/if they implement a new
  33241. - # versioning mechanism, adjust this.
  33242. - if test -x /usr/bin/objformat; then
  33243. - objformat=`/usr/bin/objformat`
  33244. - else
  33245. - case $host_os in
  33246. - freebsd[123]*) objformat=aout ;;
  33247. - *) objformat=elf ;;
  33248. - esac
  33249. - fi
  33250. - version_type=freebsd-$objformat
  33251. - case $version_type in
  33252. - freebsd-elf*)
  33253. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  33254. - need_version=no
  33255. - need_lib_prefix=no
  33256. - ;;
  33257. - freebsd-*)
  33258. - library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  33259. - need_version=yes
  33260. - ;;
  33261. - esac
  33262. - shlibpath_var=LD_LIBRARY_PATH
  33263. - case $host_os in
  33264. - freebsd2*)
  33265. - shlibpath_overrides_runpath=yes
  33266. - ;;
  33267. - freebsd3.[01]* | freebsdelf3.[01]*)
  33268. - shlibpath_overrides_runpath=yes
  33269. - hardcode_into_libs=yes
  33270. - ;;
  33271. - freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  33272. - freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  33273. - shlibpath_overrides_runpath=no
  33274. - hardcode_into_libs=yes
  33275. - ;;
  33276. - freebsd*) # from 4.6 on
  33277. - shlibpath_overrides_runpath=yes
  33278. - hardcode_into_libs=yes
  33279. - ;;
  33280. - esac
  33281. - ;;
  33282. -
  33283. -gnu*)
  33284. - version_type=linux
  33285. - need_lib_prefix=no
  33286. - need_version=no
  33287. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  33288. - soname_spec='${libname}${release}${shared_ext}$major'
  33289. - shlibpath_var=LD_LIBRARY_PATH
  33290. - hardcode_into_libs=yes
  33291. - ;;
  33292. -
  33293. -hpux9* | hpux10* | hpux11*)
  33294. - # Give a soname corresponding to the major version so that dld.sl refuses to
  33295. - # link against other versions.
  33296. - version_type=sunos
  33297. - need_lib_prefix=no
  33298. - need_version=no
  33299. - case $host_cpu in
  33300. - ia64*)
  33301. - shrext_cmds='.so'
  33302. - hardcode_into_libs=yes
  33303. - dynamic_linker="$host_os dld.so"
  33304. - shlibpath_var=LD_LIBRARY_PATH
  33305. - shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  33306. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  33307. - soname_spec='${libname}${release}${shared_ext}$major'
  33308. - if test "X$HPUX_IA64_MODE" = X32; then
  33309. - sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  33310. - else
  33311. - sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  33312. - fi
  33313. - sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  33314. - ;;
  33315. - hppa*64*)
  33316. - shrext_cmds='.sl'
  33317. - hardcode_into_libs=yes
  33318. - dynamic_linker="$host_os dld.sl"
  33319. - shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  33320. - shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  33321. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  33322. - soname_spec='${libname}${release}${shared_ext}$major'
  33323. - sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  33324. - sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  33325. - ;;
  33326. - *)
  33327. - shrext_cmds='.sl'
  33328. - dynamic_linker="$host_os dld.sl"
  33329. - shlibpath_var=SHLIB_PATH
  33330. - shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  33331. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  33332. - soname_spec='${libname}${release}${shared_ext}$major'
  33333. - ;;
  33334. - esac
  33335. - # HP-UX runs *really* slowly unless shared libraries are mode 555.
  33336. - postinstall_cmds='chmod 555 $lib'
  33337. - ;;
  33338. -
  33339. -interix3*)
  33340. - version_type=linux
  33341. - need_lib_prefix=no
  33342. - need_version=no
  33343. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  33344. - soname_spec='${libname}${release}${shared_ext}$major'
  33345. - dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  33346. - shlibpath_var=LD_LIBRARY_PATH
  33347. - shlibpath_overrides_runpath=no
  33348. - hardcode_into_libs=yes
  33349. - ;;
  33350. -
  33351. -irix5* | irix6* | nonstopux*)
  33352. - case $host_os in
  33353. - nonstopux*) version_type=nonstopux ;;
  33354. - *)
  33355. - if test "$lt_cv_prog_gnu_ld" = yes; then
  33356. - version_type=linux
  33357. - else
  33358. - version_type=irix
  33359. - fi ;;
  33360. - esac
  33361. - need_lib_prefix=no
  33362. - need_version=no
  33363. - soname_spec='${libname}${release}${shared_ext}$major'
  33364. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  33365. - case $host_os in
  33366. - irix5* | nonstopux*)
  33367. - libsuff= shlibsuff=
  33368. - ;;
  33369. - *)
  33370. - case $LD in # libtool.m4 will add one of these switches to LD
  33371. - *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  33372. - libsuff= shlibsuff= libmagic=32-bit;;
  33373. - *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  33374. - libsuff=32 shlibsuff=N32 libmagic=N32;;
  33375. - *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  33376. - libsuff=64 shlibsuff=64 libmagic=64-bit;;
  33377. - *) libsuff= shlibsuff= libmagic=never-match;;
  33378. - esac
  33379. - ;;
  33380. - esac
  33381. - shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  33382. - shlibpath_overrides_runpath=no
  33383. - sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  33384. - sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  33385. - hardcode_into_libs=yes
  33386. - ;;
  33387. -
  33388. -# No shared lib support for Linux oldld, aout, or coff.
  33389. -linux*oldld* | linux*aout* | linux*coff*)
  33390. - dynamic_linker=no
  33391. - ;;
  33392. -
  33393. -# This must be Linux ELF.
  33394. -linux*)
  33395. - version_type=linux
  33396. - need_lib_prefix=no
  33397. - need_version=no
  33398. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  33399. - soname_spec='${libname}${release}${shared_ext}$major'
  33400. - finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  33401. - shlibpath_var=LD_LIBRARY_PATH
  33402. - shlibpath_overrides_runpath=no
  33403. - # This implies no fast_install, which is unacceptable.
  33404. - # Some rework will be needed to allow for fast_install
  33405. - # before this can be enabled.
  33406. - hardcode_into_libs=yes
  33407. -
  33408. - # find out which ABI we are using
  33409. - libsuff=
  33410. - case "$host_cpu" in
  33411. - x86_64*|s390x*|powerpc64*)
  33412. - echo '#line 13271 "configure"' > conftest.$ac_ext
  33413. - if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  33414. - (eval $ac_compile) 2>&5
  33415. - ac_status=$?
  33416. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  33417. - (exit $ac_status); }; then
  33418. - case `/usr/bin/file conftest.$ac_objext` in
  33419. - *64-bit*)
  33420. - libsuff=64
  33421. - sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
  33422. - ;;
  33423. - esac
  33424. - fi
  33425. - rm -rf conftest*
  33426. - ;;
  33427. - esac
  33428. -
  33429. - # Append ld.so.conf contents to the search path
  33430. - if test -f /etc/ld.so.conf; then
  33431. - 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/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
  33432. - sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
  33433. - fi
  33434. -
  33435. - # We used to test for /lib/ld.so.1 and disable shared libraries on
  33436. - # powerpc, because MkLinux only supported shared libraries with the
  33437. - # GNU dynamic linker. Since this was broken with cross compilers,
  33438. - # most powerpc-linux boxes support dynamic linking these days and
  33439. - # people can always --disable-shared, the test was removed, and we
  33440. - # assume the GNU/Linux dynamic linker is in use.
  33441. - dynamic_linker='GNU/Linux ld.so'
  33442. - ;;
  33443. -
  33444. -knetbsd*-gnu)
  33445. - version_type=linux
  33446. - need_lib_prefix=no
  33447. - need_version=no
  33448. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  33449. - soname_spec='${libname}${release}${shared_ext}$major'
  33450. - shlibpath_var=LD_LIBRARY_PATH
  33451. - shlibpath_overrides_runpath=no
  33452. - hardcode_into_libs=yes
  33453. - dynamic_linker='GNU ld.so'
  33454. - ;;
  33455. -
  33456. -netbsd*)
  33457. - version_type=sunos
  33458. - need_lib_prefix=no
  33459. - need_version=no
  33460. - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  33461. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  33462. - finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  33463. - dynamic_linker='NetBSD (a.out) ld.so'
  33464. - else
  33465. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  33466. - soname_spec='${libname}${release}${shared_ext}$major'
  33467. - dynamic_linker='NetBSD ld.elf_so'
  33468. - fi
  33469. - shlibpath_var=LD_LIBRARY_PATH
  33470. - shlibpath_overrides_runpath=yes
  33471. - hardcode_into_libs=yes
  33472. - ;;
  33473. -
  33474. -newsos6)
  33475. - version_type=linux
  33476. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  33477. - shlibpath_var=LD_LIBRARY_PATH
  33478. - shlibpath_overrides_runpath=yes
  33479. - ;;
  33480. -
  33481. -nto-qnx*)
  33482. - version_type=linux
  33483. - need_lib_prefix=no
  33484. - need_version=no
  33485. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  33486. - soname_spec='${libname}${release}${shared_ext}$major'
  33487. - shlibpath_var=LD_LIBRARY_PATH
  33488. - shlibpath_overrides_runpath=yes
  33489. - ;;
  33490. -
  33491. -openbsd*)
  33492. - version_type=sunos
  33493. - sys_lib_dlsearch_path_spec="/usr/lib"
  33494. - need_lib_prefix=no
  33495. - # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  33496. - case $host_os in
  33497. - openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  33498. - *) need_version=no ;;
  33499. - esac
  33500. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  33501. - finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  33502. - shlibpath_var=LD_LIBRARY_PATH
  33503. - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  33504. - case $host_os in
  33505. - openbsd2.[89] | openbsd2.[89].*)
  33506. - shlibpath_overrides_runpath=no
  33507. - ;;
  33508. - *)
  33509. - shlibpath_overrides_runpath=yes
  33510. - ;;
  33511. - esac
  33512. - else
  33513. - shlibpath_overrides_runpath=yes
  33514. - fi
  33515. - ;;
  33516. -
  33517. -os2*)
  33518. - libname_spec='$name'
  33519. - shrext_cmds=".dll"
  33520. - need_lib_prefix=no
  33521. - library_names_spec='$libname${shared_ext} $libname.a'
  33522. - dynamic_linker='OS/2 ld.exe'
  33523. - shlibpath_var=LIBPATH
  33524. - ;;
  33525. -
  33526. -osf3* | osf4* | osf5*)
  33527. - version_type=osf
  33528. - need_lib_prefix=no
  33529. - need_version=no
  33530. - soname_spec='${libname}${release}${shared_ext}$major'
  33531. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  33532. - shlibpath_var=LD_LIBRARY_PATH
  33533. - sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  33534. - sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  33535. - ;;
  33536. -
  33537. -solaris*)
  33538. - version_type=linux
  33539. - need_lib_prefix=no
  33540. - need_version=no
  33541. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  33542. - soname_spec='${libname}${release}${shared_ext}$major'
  33543. - shlibpath_var=LD_LIBRARY_PATH
  33544. - shlibpath_overrides_runpath=yes
  33545. - hardcode_into_libs=yes
  33546. - # ldd complains unless libraries are executable
  33547. - postinstall_cmds='chmod +x $lib'
  33548. - ;;
  33549. -
  33550. -sunos4*)
  33551. - version_type=sunos
  33552. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  33553. - finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  33554. - shlibpath_var=LD_LIBRARY_PATH
  33555. - shlibpath_overrides_runpath=yes
  33556. - if test "$with_gnu_ld" = yes; then
  33557. - need_lib_prefix=no
  33558. - fi
  33559. - need_version=yes
  33560. - ;;
  33561. -
  33562. -sysv4 | sysv4.3*)
  33563. - version_type=linux
  33564. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  33565. - soname_spec='${libname}${release}${shared_ext}$major'
  33566. - shlibpath_var=LD_LIBRARY_PATH
  33567. - case $host_vendor in
  33568. - sni)
  33569. - shlibpath_overrides_runpath=no
  33570. - need_lib_prefix=no
  33571. - export_dynamic_flag_spec='${wl}-Blargedynsym'
  33572. - runpath_var=LD_RUN_PATH
  33573. - ;;
  33574. - siemens)
  33575. - need_lib_prefix=no
  33576. - ;;
  33577. - motorola)
  33578. - need_lib_prefix=no
  33579. - need_version=no
  33580. - shlibpath_overrides_runpath=no
  33581. - sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  33582. - ;;
  33583. - esac
  33584. - ;;
  33585. -
  33586. -sysv4*MP*)
  33587. - if test -d /usr/nec ;then
  33588. - version_type=linux
  33589. - library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  33590. - soname_spec='$libname${shared_ext}.$major'
  33591. - shlibpath_var=LD_LIBRARY_PATH
  33592. - fi
  33593. - ;;
  33594. -
  33595. -sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  33596. - version_type=freebsd-elf
  33597. - need_lib_prefix=no
  33598. - need_version=no
  33599. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  33600. - soname_spec='${libname}${release}${shared_ext}$major'
  33601. - shlibpath_var=LD_LIBRARY_PATH
  33602. - hardcode_into_libs=yes
  33603. - if test "$with_gnu_ld" = yes; then
  33604. - sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  33605. - shlibpath_overrides_runpath=no
  33606. - else
  33607. - sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  33608. - shlibpath_overrides_runpath=yes
  33609. - case $host_os in
  33610. - sco3.2v5*)
  33611. - sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  33612. - ;;
  33613. - esac
  33614. - fi
  33615. - sys_lib_dlsearch_path_spec='/usr/lib'
  33616. - ;;
  33617. -
  33618. -uts4*)
  33619. - version_type=linux
  33620. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  33621. - soname_spec='${libname}${release}${shared_ext}$major'
  33622. - shlibpath_var=LD_LIBRARY_PATH
  33623. - ;;
  33624. -
  33625. -*)
  33626. - dynamic_linker=no
  33627. - ;;
  33628. -esac
  33629. -{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
  33630. -echo "${ECHO_T}$dynamic_linker" >&6; }
  33631. -test "$dynamic_linker" = no && can_build_shared=no
  33632. -
  33633. -variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  33634. -if test "$GCC" = yes; then
  33635. - variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  33636. -fi
  33637. -
  33638. -{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
  33639. -echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
  33640. -hardcode_action_CXX=
  33641. -if test -n "$hardcode_libdir_flag_spec_CXX" || \
  33642. - test -n "$runpath_var_CXX" || \
  33643. - test "X$hardcode_automatic_CXX" = "Xyes" ; then
  33644. -
  33645. - # We can hardcode non-existant directories.
  33646. - if test "$hardcode_direct_CXX" != no &&
  33647. - # If the only mechanism to avoid hardcoding is shlibpath_var, we
  33648. - # have to relink, otherwise we might link with an installed library
  33649. - # when we should be linking with a yet-to-be-installed one
  33650. - ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
  33651. - test "$hardcode_minus_L_CXX" != no; then
  33652. - # Linking always hardcodes the temporary library directory.
  33653. - hardcode_action_CXX=relink
  33654. - else
  33655. - # We can link without hardcoding, and we can hardcode nonexisting dirs.
  33656. - hardcode_action_CXX=immediate
  33657. - fi
  33658. -else
  33659. - # We cannot hardcode anything, or else we can only hardcode existing
  33660. - # directories.
  33661. - hardcode_action_CXX=unsupported
  33662. -fi
  33663. -{ echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
  33664. -echo "${ECHO_T}$hardcode_action_CXX" >&6; }
  33665. -
  33666. -if test "$hardcode_action_CXX" = relink; then
  33667. - # Fast installation is not supported
  33668. - enable_fast_install=no
  33669. -elif test "$shlibpath_overrides_runpath" = yes ||
  33670. - test "$enable_shared" = no; then
  33671. - # Fast installation is not necessary
  33672. - enable_fast_install=needless
  33673. -fi
  33674. -
  33675. -
  33676. -# The else clause should only fire when bootstrapping the
  33677. -# libtool distribution, otherwise you forgot to ship ltmain.sh
  33678. -# with your package, and you will get complaints that there are
  33679. -# no rules to generate ltmain.sh.
  33680. -if test -f "$ltmain"; then
  33681. - # See if we are running on zsh, and set the options which allow our commands through
  33682. - # without removal of \ escapes.
  33683. - if test -n "${ZSH_VERSION+set}" ; then
  33684. - setopt NO_GLOB_SUBST
  33685. - fi
  33686. - # Now quote all the things that may contain metacharacters while being
  33687. - # careful not to overquote the AC_SUBSTed values. We take copies of the
  33688. - # variables and quote the copies for generation of the libtool script.
  33689. - for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
  33690. - SED SHELL STRIP \
  33691. - libname_spec library_names_spec soname_spec extract_expsyms_cmds \
  33692. - old_striplib striplib file_magic_cmd finish_cmds finish_eval \
  33693. - deplibs_check_method reload_flag reload_cmds need_locks \
  33694. - lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
  33695. - lt_cv_sys_global_symbol_to_c_name_address \
  33696. - sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  33697. - old_postinstall_cmds old_postuninstall_cmds \
  33698. - compiler_CXX \
  33699. - CC_CXX \
  33700. - LD_CXX \
  33701. - lt_prog_compiler_wl_CXX \
  33702. - lt_prog_compiler_pic_CXX \
  33703. - lt_prog_compiler_static_CXX \
  33704. - lt_prog_compiler_no_builtin_flag_CXX \
  33705. - export_dynamic_flag_spec_CXX \
  33706. - thread_safe_flag_spec_CXX \
  33707. - whole_archive_flag_spec_CXX \
  33708. - enable_shared_with_static_runtimes_CXX \
  33709. - old_archive_cmds_CXX \
  33710. - old_archive_from_new_cmds_CXX \
  33711. - predep_objects_CXX \
  33712. - postdep_objects_CXX \
  33713. - predeps_CXX \
  33714. - postdeps_CXX \
  33715. - compiler_lib_search_path_CXX \
  33716. - archive_cmds_CXX \
  33717. - archive_expsym_cmds_CXX \
  33718. - postinstall_cmds_CXX \
  33719. - postuninstall_cmds_CXX \
  33720. - old_archive_from_expsyms_cmds_CXX \
  33721. - allow_undefined_flag_CXX \
  33722. - no_undefined_flag_CXX \
  33723. - export_symbols_cmds_CXX \
  33724. - hardcode_libdir_flag_spec_CXX \
  33725. - hardcode_libdir_flag_spec_ld_CXX \
  33726. - hardcode_libdir_separator_CXX \
  33727. - hardcode_automatic_CXX \
  33728. - module_cmds_CXX \
  33729. - module_expsym_cmds_CXX \
  33730. - lt_cv_prog_compiler_c_o_CXX \
  33731. - exclude_expsyms_CXX \
  33732. - include_expsyms_CXX; do
  33733. -
  33734. - case $var in
  33735. - old_archive_cmds_CXX | \
  33736. - old_archive_from_new_cmds_CXX | \
  33737. - archive_cmds_CXX | \
  33738. - archive_expsym_cmds_CXX | \
  33739. - module_cmds_CXX | \
  33740. - module_expsym_cmds_CXX | \
  33741. - old_archive_from_expsyms_cmds_CXX | \
  33742. - export_symbols_cmds_CXX | \
  33743. - extract_expsyms_cmds | reload_cmds | finish_cmds | \
  33744. - postinstall_cmds | postuninstall_cmds | \
  33745. - old_postinstall_cmds | old_postuninstall_cmds | \
  33746. - sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  33747. - # Double-quote double-evaled strings.
  33748. - eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
  33749. - ;;
  33750. - *)
  33751. - eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
  33752. - ;;
  33753. - esac
  33754. - done
  33755. -
  33756. - case $lt_echo in
  33757. - *'\$0 --fallback-echo"')
  33758. - lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
  33759. - ;;
  33760. - esac
  33761. -
  33762. -cfgfile="$ofile"
  33763. -
  33764. - cat <<__EOF__ >> "$cfgfile"
  33765. -# ### BEGIN LIBTOOL TAG CONFIG: $tagname
  33766. -
  33767. -# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  33768. -
  33769. -# Shell to use when invoking shell scripts.
  33770. -SHELL=$lt_SHELL
  33771. -
  33772. -# Whether or not to build shared libraries.
  33773. -build_libtool_libs=$enable_shared
  33774. -
  33775. -# Whether or not to build static libraries.
  33776. -build_old_libs=$enable_static
  33777. -
  33778. -# Whether or not to add -lc for building shared libraries.
  33779. -build_libtool_need_lc=$archive_cmds_need_lc_CXX
  33780. -
  33781. -# Whether or not to disallow shared libs when runtime libs are static
  33782. -allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
  33783. -
  33784. -# Whether or not to optimize for fast installation.
  33785. -fast_install=$enable_fast_install
  33786. -
  33787. -# The host system.
  33788. -host_alias=$host_alias
  33789. -host=$host
  33790. -host_os=$host_os
  33791. -
  33792. -# The build system.
  33793. -build_alias=$build_alias
  33794. -build=$build
  33795. -build_os=$build_os
  33796. -
  33797. -# An echo program that does not interpret backslashes.
  33798. -echo=$lt_echo
  33799. -
  33800. -# The archiver.
  33801. -AR=$lt_AR
  33802. -AR_FLAGS=$lt_AR_FLAGS
  33803. -
  33804. -# A C compiler.
  33805. -LTCC=$lt_LTCC
  33806. -
  33807. -# LTCC compiler flags.
  33808. -LTCFLAGS=$lt_LTCFLAGS
  33809. -
  33810. -# A language-specific compiler.
  33811. -CC=$lt_compiler_CXX
  33812. -
  33813. -# Is the compiler the GNU C compiler?
  33814. -with_gcc=$GCC_CXX
  33815. -
  33816. -gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\`
  33817. -gcc_ver=\`gcc -dumpversion\`
  33818. -
  33819. -# An ERE matcher.
  33820. -EGREP=$lt_EGREP
  33821. -
  33822. -# The linker used to build libraries.
  33823. -LD=$lt_LD_CXX
  33824. -
  33825. -# Whether we need hard or soft links.
  33826. -LN_S=$lt_LN_S
  33827. -
  33828. -# A BSD-compatible nm program.
  33829. -NM=$lt_NM
  33830. -
  33831. -# A symbol stripping program
  33832. -STRIP=$lt_STRIP
  33833. -
  33834. -# Used to examine libraries when file_magic_cmd begins "file"
  33835. -MAGIC_CMD=$MAGIC_CMD
  33836. -
  33837. -# Used on cygwin: DLL creation program.
  33838. -DLLTOOL="$DLLTOOL"
  33839. -
  33840. -# Used on cygwin: object dumper.
  33841. -OBJDUMP="$OBJDUMP"
  33842. -
  33843. -# Used on cygwin: assembler.
  33844. -AS="$AS"
  33845. -
  33846. -# The name of the directory that contains temporary libtool files.
  33847. -objdir=$objdir
  33848. -
  33849. -# How to create reloadable object files.
  33850. -reload_flag=$lt_reload_flag
  33851. -reload_cmds=$lt_reload_cmds
  33852. -
  33853. -# How to pass a linker flag through the compiler.
  33854. -wl=$lt_lt_prog_compiler_wl_CXX
  33855. -
  33856. -# Object file suffix (normally "o").
  33857. -objext="$ac_objext"
  33858. -
  33859. -# Old archive suffix (normally "a").
  33860. -libext="$libext"
  33861. -
  33862. -# Shared library suffix (normally ".so").
  33863. -shrext_cmds='$shrext_cmds'
  33864. -
  33865. -# Executable file suffix (normally "").
  33866. -exeext="$exeext"
  33867. -
  33868. -# Additional compiler flags for building library objects.
  33869. -pic_flag=$lt_lt_prog_compiler_pic_CXX
  33870. -pic_mode=$pic_mode
  33871. -
  33872. -# What is the maximum length of a command?
  33873. -max_cmd_len=$lt_cv_sys_max_cmd_len
  33874. -
  33875. -# Does compiler simultaneously support -c and -o options?
  33876. -compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
  33877. -
  33878. -# Must we lock files when doing compilation?
  33879. -need_locks=$lt_need_locks
  33880. -
  33881. -# Do we need the lib prefix for modules?
  33882. -need_lib_prefix=$need_lib_prefix
  33883. -
  33884. -# Do we need a version for libraries?
  33885. -need_version=$need_version
  33886. -
  33887. -# Whether dlopen is supported.
  33888. -dlopen_support=$enable_dlopen
  33889. -
  33890. -# Whether dlopen of programs is supported.
  33891. -dlopen_self=$enable_dlopen_self
  33892. -
  33893. -# Whether dlopen of statically linked programs is supported.
  33894. -dlopen_self_static=$enable_dlopen_self_static
  33895. -
  33896. -# Compiler flag to prevent dynamic linking.
  33897. -link_static_flag=$lt_lt_prog_compiler_static_CXX
  33898. -
  33899. -# Compiler flag to turn off builtin functions.
  33900. -no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
  33901. -
  33902. -# Compiler flag to allow reflexive dlopens.
  33903. -export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
  33904. -
  33905. -# Compiler flag to generate shared objects directly from archives.
  33906. -whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
  33907. -
  33908. -# Compiler flag to generate thread-safe objects.
  33909. -thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
  33910. -
  33911. -# Library versioning type.
  33912. -version_type=$version_type
  33913. -
  33914. -# Format of library name prefix.
  33915. -libname_spec=$lt_libname_spec
  33916. -
  33917. -# List of archive names. First name is the real one, the rest are links.
  33918. -# The last name is the one that the linker finds with -lNAME.
  33919. -library_names_spec=$lt_library_names_spec
  33920. -
  33921. -# The coded name of the library, if different from the real name.
  33922. -soname_spec=$lt_soname_spec
  33923. -
  33924. -# Commands used to build and install an old-style archive.
  33925. -RANLIB=$lt_RANLIB
  33926. -old_archive_cmds=$lt_old_archive_cmds_CXX
  33927. -old_postinstall_cmds=$lt_old_postinstall_cmds
  33928. -old_postuninstall_cmds=$lt_old_postuninstall_cmds
  33929. -
  33930. -# Create an old-style archive from a shared archive.
  33931. -old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
  33932. -
  33933. -# Create a temporary old-style archive to link instead of a shared archive.
  33934. -old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
  33935. -
  33936. -# Commands used to build and install a shared archive.
  33937. -archive_cmds=$lt_archive_cmds_CXX
  33938. -archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
  33939. -postinstall_cmds=$lt_postinstall_cmds
  33940. -postuninstall_cmds=$lt_postuninstall_cmds
  33941. -
  33942. -# Commands used to build a loadable module (assumed same as above if empty)
  33943. -module_cmds=$lt_module_cmds_CXX
  33944. -module_expsym_cmds=$lt_module_expsym_cmds_CXX
  33945. -
  33946. -# Commands to strip libraries.
  33947. -old_striplib=$lt_old_striplib
  33948. -striplib=$lt_striplib
  33949. -
  33950. -# Dependencies to place before the objects being linked to create a
  33951. -# shared library.
  33952. -predep_objects=\`echo $lt_predep_objects_CXX | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
  33953. -
  33954. -# Dependencies to place after the objects being linked to create a
  33955. -# shared library.
  33956. -postdep_objects=\`echo $lt_postdep_objects_CXX | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
  33957. -
  33958. -# Dependencies to place before the objects being linked to create a
  33959. -# shared library.
  33960. -predeps=$lt_predeps_CXX
  33961. -
  33962. -# Dependencies to place after the objects being linked to create a
  33963. -# shared library.
  33964. -postdeps=$lt_postdeps_CXX
  33965. -
  33966. -# The library search path used internally by the compiler when linking
  33967. -# a shared library.
  33968. -compiler_lib_search_path=\`echo $lt_compiler_lib_search_path_CXX | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
  33969. -
  33970. -# Method to check whether dependent libraries are shared objects.
  33971. -deplibs_check_method=$lt_deplibs_check_method
  33972. -
  33973. -# Command to use when deplibs_check_method == file_magic.
  33974. -file_magic_cmd=$lt_file_magic_cmd
  33975. -
  33976. -# Flag that allows shared libraries with undefined symbols to be built.
  33977. -allow_undefined_flag=$lt_allow_undefined_flag_CXX
  33978. -
  33979. -# Flag that forces no undefined symbols.
  33980. -no_undefined_flag=$lt_no_undefined_flag_CXX
  33981. -
  33982. -# Commands used to finish a libtool library installation in a directory.
  33983. -finish_cmds=$lt_finish_cmds
  33984. -
  33985. -# Same as above, but a single script fragment to be evaled but not shown.
  33986. -finish_eval=$lt_finish_eval
  33987. -
  33988. -# Take the output of nm and produce a listing of raw symbols and C names.
  33989. -global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  33990. -
  33991. -# Transform the output of nm in a proper C declaration
  33992. -global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  33993. -
  33994. -# Transform the output of nm in a C name address pair
  33995. -global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  33996. -
  33997. -# This is the shared library runtime path variable.
  33998. -runpath_var=$runpath_var
  33999. -
  34000. -# This is the shared library path variable.
  34001. -shlibpath_var=$shlibpath_var
  34002. -
  34003. -# Is shlibpath searched before the hard-coded library search path?
  34004. -shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  34005. -
  34006. -# How to hardcode a shared library path into an executable.
  34007. -hardcode_action=$hardcode_action_CXX
  34008. -
  34009. -# Whether we should hardcode library paths into libraries.
  34010. -hardcode_into_libs=$hardcode_into_libs
  34011. -
  34012. -# Flag to hardcode \$libdir into a binary during linking.
  34013. -# This must work even if \$libdir does not exist.
  34014. -hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
  34015. -
  34016. -# If ld is used when linking, flag to hardcode \$libdir into
  34017. -# a binary during linking. This must work even if \$libdir does
  34018. -# not exist.
  34019. -hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
  34020. -
  34021. -# Whether we need a single -rpath flag with a separated argument.
  34022. -hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
  34023. -
  34024. -# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
  34025. -# resulting binary.
  34026. -hardcode_direct=$hardcode_direct_CXX
  34027. -
  34028. -# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  34029. -# resulting binary.
  34030. -hardcode_minus_L=$hardcode_minus_L_CXX
  34031. -
  34032. -# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
  34033. -# the resulting binary.
  34034. -hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
  34035. -
  34036. -# Set to yes if building a shared library automatically hardcodes DIR into the library
  34037. -# and all subsequent libraries and executables linked against it.
  34038. -hardcode_automatic=$hardcode_automatic_CXX
  34039. -
  34040. -# Variables whose values should be saved in libtool wrapper scripts and
  34041. -# restored at relink time.
  34042. -variables_saved_for_relink="$variables_saved_for_relink"
  34043. -
  34044. -# Whether libtool must link a program against all its dependency libraries.
  34045. -link_all_deplibs=$link_all_deplibs_CXX
  34046. -
  34047. -# Compile-time system search path for libraries
  34048. -sys_lib_search_path_spec=\`echo $lt_sys_lib_search_path_spec | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
  34049. -
  34050. -# Run-time system search path for libraries
  34051. -sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  34052. -
  34053. -# Fix the shell variable \$srcfile for the compiler.
  34054. -fix_srcfile_path="$fix_srcfile_path_CXX"
  34055. -
  34056. -# Set to yes if exported symbols are required.
  34057. -always_export_symbols=$always_export_symbols_CXX
  34058. -
  34059. -# The commands to list exported symbols.
  34060. -export_symbols_cmds=$lt_export_symbols_cmds_CXX
  34061. -
  34062. -# The commands to extract the exported symbol list from a shared archive.
  34063. -extract_expsyms_cmds=$lt_extract_expsyms_cmds
  34064. -
  34065. -# Symbols that should not be listed in the preloaded symbols.
  34066. -exclude_expsyms=$lt_exclude_expsyms_CXX
  34067. -
  34068. -# Symbols that must always be exported.
  34069. -include_expsyms=$lt_include_expsyms_CXX
  34070. -
  34071. -# ### END LIBTOOL TAG CONFIG: $tagname
  34072. -
  34073. -__EOF__
  34074. -
  34075. -
  34076. -else
  34077. - # If there is no Makefile yet, we rely on a make rule to execute
  34078. - # `config.status --recheck' to rerun these tests and create the
  34079. - # libtool script then.
  34080. - ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  34081. - if test -f "$ltmain_in"; then
  34082. - test -f Makefile && make "$ltmain"
  34083. - fi
  34084. -fi
  34085. -
  34086. -
  34087. -ac_ext=c
  34088. -ac_cpp='$CPP $CPPFLAGS'
  34089. -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  34090. -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  34091. -ac_compiler_gnu=$ac_cv_c_compiler_gnu
  34092. -
  34093. -CC=$lt_save_CC
  34094. -LDCXX=$LD
  34095. -LD=$lt_save_LD
  34096. -GCC=$lt_save_GCC
  34097. -with_gnu_ldcxx=$with_gnu_ld
  34098. -with_gnu_ld=$lt_save_with_gnu_ld
  34099. -lt_cv_path_LDCXX=$lt_cv_path_LD
  34100. -lt_cv_path_LD=$lt_save_path_LD
  34101. -lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  34102. -lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
  34103. -
  34104. - else
  34105. - tagname=""
  34106. - fi
  34107. - ;;
  34108. -
  34109. - F77)
  34110. - if test -n "$F77" && test "X$F77" != "Xno"; then
  34111. -
  34112. -ac_ext=f
  34113. -ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
  34114. -ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  34115. -ac_compiler_gnu=$ac_cv_f77_compiler_gnu
  34116. -
  34117. -
  34118. -archive_cmds_need_lc_F77=no
  34119. -allow_undefined_flag_F77=
  34120. -always_export_symbols_F77=no
  34121. -archive_expsym_cmds_F77=
  34122. -export_dynamic_flag_spec_F77=
  34123. -hardcode_direct_F77=no
  34124. -hardcode_libdir_flag_spec_F77=
  34125. -hardcode_libdir_flag_spec_ld_F77=
  34126. -hardcode_libdir_separator_F77=
  34127. -hardcode_minus_L_F77=no
  34128. -hardcode_automatic_F77=no
  34129. -module_cmds_F77=
  34130. -module_expsym_cmds_F77=
  34131. -link_all_deplibs_F77=unknown
  34132. -old_archive_cmds_F77=$old_archive_cmds
  34133. -no_undefined_flag_F77=
  34134. -whole_archive_flag_spec_F77=
  34135. -enable_shared_with_static_runtimes_F77=no
  34136. -
  34137. -# Source file extension for f77 test sources.
  34138. -ac_ext=f
  34139. -
  34140. -# Object file extension for compiled f77 test sources.
  34141. -objext=o
  34142. -objext_F77=$objext
  34143. -
  34144. -# Code to be used in simple compile tests
  34145. -lt_simple_compile_test_code=" subroutine t\n return\n end\n"
  34146. -
  34147. -# Code to be used in simple link tests
  34148. -lt_simple_link_test_code=" program t\n end\n"
  34149. -
  34150. -# ltmain only uses $CC for tagged configurations so make sure $CC is set.
  34151. -
  34152. -# If no C compiler was specified, use CC.
  34153. -LTCC=${LTCC-"$CC"}
  34154. -
  34155. -# If no C compiler flags were specified, use CFLAGS.
  34156. -LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  34157. -
  34158. -# Allow CC to be a program name with arguments.
  34159. -compiler=$CC
  34160. -
  34161. -
  34162. -# save warnings/boilerplate of simple test code
  34163. -ac_outfile=conftest.$ac_objext
  34164. -printf "$lt_simple_compile_test_code" >conftest.$ac_ext
  34165. -eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  34166. -_lt_compiler_boilerplate=`cat conftest.err`
  34167. -$rm conftest*
  34168. -
  34169. -ac_outfile=conftest.$ac_objext
  34170. -printf "$lt_simple_link_test_code" >conftest.$ac_ext
  34171. -eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  34172. -_lt_linker_boilerplate=`cat conftest.err`
  34173. -$rm conftest*
  34174. -
  34175. -
  34176. -# Allow CC to be a program name with arguments.
  34177. -lt_save_CC="$CC"
  34178. -CC=${F77-"f77"}
  34179. -compiler=$CC
  34180. -compiler_F77=$CC
  34181. -for cc_temp in $compiler""; do
  34182. - case $cc_temp in
  34183. - compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  34184. - distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  34185. - \-*) ;;
  34186. - *) break;;
  34187. - esac
  34188. -done
  34189. -cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  34190. -
  34191. -
  34192. -{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
  34193. -echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
  34194. -{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
  34195. -echo "${ECHO_T}$can_build_shared" >&6; }
  34196. -
  34197. -{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
  34198. -echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
  34199. -test "$can_build_shared" = "no" && enable_shared=no
  34200. -
  34201. -# On AIX, shared libraries and static libraries use the same namespace, and
  34202. -# are all built from PIC.
  34203. -case $host_os in
  34204. -aix3*)
  34205. - test "$enable_shared" = yes && enable_static=no
  34206. - if test -n "$RANLIB"; then
  34207. - archive_cmds="$archive_cmds~\$RANLIB \$lib"
  34208. - postinstall_cmds='$RANLIB $lib'
  34209. - fi
  34210. - ;;
  34211. -aix4* | aix5*)
  34212. - if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  34213. - test "$enable_shared" = yes && enable_static=no
  34214. - fi
  34215. - ;;
  34216. -esac
  34217. -{ echo "$as_me:$LINENO: result: $enable_shared" >&5
  34218. -echo "${ECHO_T}$enable_shared" >&6; }
  34219. -
  34220. -{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
  34221. -echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
  34222. -# Make sure either enable_shared or enable_static is yes.
  34223. -test "$enable_shared" = yes || enable_static=yes
  34224. -{ echo "$as_me:$LINENO: result: $enable_static" >&5
  34225. -echo "${ECHO_T}$enable_static" >&6; }
  34226. -
  34227. -GCC_F77="$G77"
  34228. -LD_F77="$LD"
  34229. -
  34230. -lt_prog_compiler_wl_F77=
  34231. -lt_prog_compiler_pic_F77=
  34232. -lt_prog_compiler_static_F77=
  34233. -
  34234. -{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
  34235. -echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
  34236. -
  34237. - if test "$GCC" = yes; then
  34238. - lt_prog_compiler_wl_F77='-Wl,'
  34239. - lt_prog_compiler_static_F77='-static'
  34240. -
  34241. - case $host_os in
  34242. - aix*)
  34243. - # All AIX code is PIC.
  34244. - if test "$host_cpu" = ia64; then
  34245. - # AIX 5 now supports IA64 processor
  34246. - lt_prog_compiler_static_F77='-Bstatic'
  34247. - fi
  34248. - ;;
  34249. -
  34250. - amigaos*)
  34251. - # FIXME: we need at least 68020 code to build shared libraries, but
  34252. - # adding the `-m68020' flag to GCC prevents building anything better,
  34253. - # like `-m68040'.
  34254. - lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
  34255. - ;;
  34256. -
  34257. - beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  34258. - # PIC is the default for these OSes.
  34259. - ;;
  34260. -
  34261. - mingw* | pw32* | os2*)
  34262. - # This hack is so that the source file can tell whether it is being
  34263. - # built for inclusion in a dll (and should export symbols for example).
  34264. - lt_prog_compiler_pic_F77='-DDLL_EXPORT'
  34265. - ;;
  34266. -
  34267. - darwin* | rhapsody*)
  34268. - # PIC is the default on this platform
  34269. - # Common symbols not allowed in MH_DYLIB files
  34270. - lt_prog_compiler_pic_F77='-fno-common'
  34271. - ;;
  34272. -
  34273. - interix3*)
  34274. - # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  34275. - # Instead, we relocate shared libraries at runtime.
  34276. - ;;
  34277. -
  34278. - msdosdjgpp*)
  34279. - # Just because we use GCC doesn't mean we suddenly get shared libraries
  34280. - # on systems that don't support them.
  34281. - lt_prog_compiler_can_build_shared_F77=no
  34282. - enable_shared=no
  34283. - ;;
  34284. -
  34285. - sysv4*MP*)
  34286. - if test -d /usr/nec; then
  34287. - lt_prog_compiler_pic_F77=-Kconform_pic
  34288. - fi
  34289. - ;;
  34290. -
  34291. - hpux*)
  34292. - # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  34293. - # not for PA HP-UX.
  34294. - case $host_cpu in
  34295. - hppa*64*|ia64*)
  34296. - # +Z the default
  34297. - ;;
  34298. - *)
  34299. - lt_prog_compiler_pic_F77='-fPIC'
  34300. - ;;
  34301. - esac
  34302. - ;;
  34303. -
  34304. - *)
  34305. - lt_prog_compiler_pic_F77='-fPIC'
  34306. - ;;
  34307. - esac
  34308. - else
  34309. - # PORTME Check for flag to pass linker flags through the system compiler.
  34310. - case $host_os in
  34311. - aix*)
  34312. - lt_prog_compiler_wl_F77='-Wl,'
  34313. - if test "$host_cpu" = ia64; then
  34314. - # AIX 5 now supports IA64 processor
  34315. - lt_prog_compiler_static_F77='-Bstatic'
  34316. - else
  34317. - lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
  34318. - fi
  34319. - ;;
  34320. - darwin*)
  34321. - # PIC is the default on this platform
  34322. - # Common symbols not allowed in MH_DYLIB files
  34323. - case $cc_basename in
  34324. - xlc*)
  34325. - lt_prog_compiler_pic_F77='-qnocommon'
  34326. - lt_prog_compiler_wl_F77='-Wl,'
  34327. - ;;
  34328. - esac
  34329. - ;;
  34330. -
  34331. - mingw* | pw32* | os2*)
  34332. - # This hack is so that the source file can tell whether it is being
  34333. - # built for inclusion in a dll (and should export symbols for example).
  34334. - lt_prog_compiler_pic_F77='-DDLL_EXPORT'
  34335. - ;;
  34336. -
  34337. - hpux9* | hpux10* | hpux11*)
  34338. - lt_prog_compiler_wl_F77='-Wl,'
  34339. - # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  34340. - # not for PA HP-UX.
  34341. - case $host_cpu in
  34342. - hppa*64*|ia64*)
  34343. - # +Z the default
  34344. - ;;
  34345. - *)
  34346. - lt_prog_compiler_pic_F77='+Z'
  34347. - ;;
  34348. - esac
  34349. - # Is there a better lt_prog_compiler_static that works with the bundled CC?
  34350. - lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
  34351. - ;;
  34352. -
  34353. - irix5* | irix6* | nonstopux*)
  34354. - lt_prog_compiler_wl_F77='-Wl,'
  34355. - # PIC (with -KPIC) is the default.
  34356. - lt_prog_compiler_static_F77='-non_shared'
  34357. - ;;
  34358. -
  34359. - newsos6)
  34360. - lt_prog_compiler_pic_F77='-KPIC'
  34361. - lt_prog_compiler_static_F77='-Bstatic'
  34362. - ;;
  34363. -
  34364. - linux*)
  34365. - case $cc_basename in
  34366. - icc* | ecc*)
  34367. - lt_prog_compiler_wl_F77='-Wl,'
  34368. - lt_prog_compiler_pic_F77='-KPIC'
  34369. - lt_prog_compiler_static_F77='-static'
  34370. - ;;
  34371. - pgcc* | pgf77* | pgf90* | pgf95*)
  34372. - # Portland Group compilers (*not* the Pentium gcc compiler,
  34373. - # which looks to be a dead project)
  34374. - lt_prog_compiler_wl_F77='-Wl,'
  34375. - lt_prog_compiler_pic_F77='-fpic'
  34376. - lt_prog_compiler_static_F77='-Bstatic'
  34377. - ;;
  34378. - ccc*)
  34379. - lt_prog_compiler_wl_F77='-Wl,'
  34380. - # All Alpha code is PIC.
  34381. - lt_prog_compiler_static_F77='-non_shared'
  34382. - ;;
  34383. - esac
  34384. - ;;
  34385. -
  34386. - osf3* | osf4* | osf5*)
  34387. - lt_prog_compiler_wl_F77='-Wl,'
  34388. - # All OSF/1 code is PIC.
  34389. - lt_prog_compiler_static_F77='-non_shared'
  34390. - ;;
  34391. -
  34392. - solaris*)
  34393. - lt_prog_compiler_pic_F77='-KPIC'
  34394. - lt_prog_compiler_static_F77='-Bstatic'
  34395. - case $cc_basename in
  34396. - f77* | f90* | f95*)
  34397. - lt_prog_compiler_wl_F77='-Qoption ld ';;
  34398. - *)
  34399. - lt_prog_compiler_wl_F77='-Wl,';;
  34400. - esac
  34401. - ;;
  34402. -
  34403. - sunos4*)
  34404. - lt_prog_compiler_wl_F77='-Qoption ld '
  34405. - lt_prog_compiler_pic_F77='-PIC'
  34406. - lt_prog_compiler_static_F77='-Bstatic'
  34407. - ;;
  34408. -
  34409. - sysv4 | sysv4.2uw2* | sysv4.3*)
  34410. - lt_prog_compiler_wl_F77='-Wl,'
  34411. - lt_prog_compiler_pic_F77='-KPIC'
  34412. - lt_prog_compiler_static_F77='-Bstatic'
  34413. - ;;
  34414. -
  34415. - sysv4*MP*)
  34416. - if test -d /usr/nec ;then
  34417. - lt_prog_compiler_pic_F77='-Kconform_pic'
  34418. - lt_prog_compiler_static_F77='-Bstatic'
  34419. - fi
  34420. - ;;
  34421. -
  34422. - sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  34423. - lt_prog_compiler_wl_F77='-Wl,'
  34424. - lt_prog_compiler_pic_F77='-KPIC'
  34425. - lt_prog_compiler_static_F77='-Bstatic'
  34426. - ;;
  34427. -
  34428. - unicos*)
  34429. - lt_prog_compiler_wl_F77='-Wl,'
  34430. - lt_prog_compiler_can_build_shared_F77=no
  34431. - ;;
  34432. -
  34433. - uts4*)
  34434. - lt_prog_compiler_pic_F77='-pic'
  34435. - lt_prog_compiler_static_F77='-Bstatic'
  34436. - ;;
  34437. -
  34438. - *)
  34439. - lt_prog_compiler_can_build_shared_F77=no
  34440. - ;;
  34441. - esac
  34442. - fi
  34443. -
  34444. -{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
  34445. -echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
  34446. -
  34447. -#
  34448. -# Check to make sure the PIC flag actually works.
  34449. -#
  34450. -if test -n "$lt_prog_compiler_pic_F77"; then
  34451. -
  34452. -{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
  34453. -echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
  34454. -if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
  34455. - echo $ECHO_N "(cached) $ECHO_C" >&6
  34456. -else
  34457. - lt_prog_compiler_pic_works_F77=no
  34458. - ac_outfile=conftest.$ac_objext
  34459. - printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  34460. - lt_compiler_flag="$lt_prog_compiler_pic_F77"
  34461. - # Insert the option either (1) after the last *FLAGS variable, or
  34462. - # (2) before a word containing "conftest.", or (3) at the end.
  34463. - # Note that $ac_compile itself does not contain backslashes and begins
  34464. - # with a dollar sign (not a hyphen), so the echo should work correctly.
  34465. - # The option is referenced via a variable to avoid confusing sed.
  34466. - lt_compile=`echo "$ac_compile" | $SED \
  34467. - -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  34468. - -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  34469. - -e 's:$: $lt_compiler_flag:'`
  34470. - (eval echo "\"\$as_me:14329: $lt_compile\"" >&5)
  34471. - (eval "$lt_compile" 2>conftest.err)
  34472. - ac_status=$?
  34473. - cat conftest.err >&5
  34474. - echo "$as_me:14333: \$? = $ac_status" >&5
  34475. - if (exit $ac_status) && test -s "$ac_outfile"; then
  34476. - # The compiler can only warn and ignore the option if not recognized
  34477. - # So say no if there are warnings other than the usual output.
  34478. - $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  34479. - $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  34480. - if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  34481. - lt_prog_compiler_pic_works_F77=yes
  34482. - fi
  34483. - fi
  34484. - $rm conftest*
  34485. -
  34486. -fi
  34487. -{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
  34488. -echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
  34489. -
  34490. -if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
  34491. - case $lt_prog_compiler_pic_F77 in
  34492. - "" | " "*) ;;
  34493. - *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
  34494. - esac
  34495. -else
  34496. - lt_prog_compiler_pic_F77=
  34497. - lt_prog_compiler_can_build_shared_F77=no
  34498. -fi
  34499. -
  34500. -fi
  34501. -case $host_os in
  34502. - # For platforms which do not support PIC, -DPIC is meaningless:
  34503. - *djgpp*)
  34504. - lt_prog_compiler_pic_F77=
  34505. - ;;
  34506. - *)
  34507. - lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
  34508. - ;;
  34509. -esac
  34510. -
  34511. -#
  34512. -# Check to make sure the static flag actually works.
  34513. -#
  34514. -wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
  34515. -{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  34516. -echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
  34517. -if test "${lt_prog_compiler_static_works_F77+set}" = set; then
  34518. - echo $ECHO_N "(cached) $ECHO_C" >&6
  34519. -else
  34520. - lt_prog_compiler_static_works_F77=no
  34521. - save_LDFLAGS="$LDFLAGS"
  34522. - LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  34523. - printf "$lt_simple_link_test_code" > conftest.$ac_ext
  34524. - if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  34525. - # The linker can only warn and ignore the option if not recognized
  34526. - # So say no if there are warnings
  34527. - if test -s conftest.err; then
  34528. - # Append any errors to the config.log.
  34529. - cat conftest.err 1>&5
  34530. - $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
  34531. - $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  34532. - if diff conftest.exp conftest.er2 >/dev/null; then
  34533. - lt_prog_compiler_static_works_F77=yes
  34534. - fi
  34535. - else
  34536. - lt_prog_compiler_static_works_F77=yes
  34537. - fi
  34538. - fi
  34539. - $rm conftest*
  34540. - LDFLAGS="$save_LDFLAGS"
  34541. -
  34542. -fi
  34543. -{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
  34544. -echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
  34545. -
  34546. -if test x"$lt_prog_compiler_static_works_F77" = xyes; then
  34547. - :
  34548. -else
  34549. - lt_prog_compiler_static_F77=
  34550. -fi
  34551. -
  34552. -
  34553. -{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
  34554. -echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
  34555. -if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
  34556. - echo $ECHO_N "(cached) $ECHO_C" >&6
  34557. -else
  34558. - lt_cv_prog_compiler_c_o_F77=no
  34559. - $rm -r conftest 2>/dev/null
  34560. - mkdir conftest
  34561. - cd conftest
  34562. - mkdir out
  34563. - printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  34564. -
  34565. - lt_compiler_flag="-o out/conftest2.$ac_objext"
  34566. - # Insert the option either (1) after the last *FLAGS variable, or
  34567. - # (2) before a word containing "conftest.", or (3) at the end.
  34568. - # Note that $ac_compile itself does not contain backslashes and begins
  34569. - # with a dollar sign (not a hyphen), so the echo should work correctly.
  34570. - lt_compile=`echo "$ac_compile" | $SED \
  34571. - -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  34572. - -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  34573. - -e 's:$: $lt_compiler_flag:'`
  34574. - (eval echo "\"\$as_me:14433: $lt_compile\"" >&5)
  34575. - (eval "$lt_compile" 2>out/conftest.err)
  34576. - ac_status=$?
  34577. - cat out/conftest.err >&5
  34578. - echo "$as_me:14437: \$? = $ac_status" >&5
  34579. - if (exit $ac_status) && test -s out/conftest2.$ac_objext
  34580. - then
  34581. - # The compiler can only warn and ignore the option if not recognized
  34582. - # So say no if there are warnings
  34583. - $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  34584. - $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  34585. - if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  34586. - lt_cv_prog_compiler_c_o_F77=yes
  34587. - fi
  34588. - fi
  34589. - chmod u+w . 2>&5
  34590. - $rm conftest*
  34591. - # SGI C++ compiler will create directory out/ii_files/ for
  34592. - # template instantiation
  34593. - test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
  34594. - $rm out/* && rmdir out
  34595. - cd ..
  34596. - rmdir conftest
  34597. - $rm conftest*
  34598. -
  34599. -fi
  34600. -{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
  34601. -echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
  34602. -
  34603. -
  34604. -hard_links="nottested"
  34605. -if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
  34606. - # do not overwrite the value of need_locks provided by the user
  34607. - { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
  34608. -echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
  34609. - hard_links=yes
  34610. - $rm conftest*
  34611. - ln conftest.a conftest.b 2>/dev/null && hard_links=no
  34612. - touch conftest.a
  34613. - ln conftest.a conftest.b 2>&5 || hard_links=no
  34614. - ln conftest.a conftest.b 2>/dev/null && hard_links=no
  34615. - { echo "$as_me:$LINENO: result: $hard_links" >&5
  34616. -echo "${ECHO_T}$hard_links" >&6; }
  34617. - if test "$hard_links" = no; then
  34618. - { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  34619. -echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  34620. - need_locks=warn
  34621. - fi
  34622. -else
  34623. - need_locks=no
  34624. -fi
  34625. -
  34626. -{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  34627. -echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
  34628. -
  34629. - runpath_var=
  34630. - allow_undefined_flag_F77=
  34631. - enable_shared_with_static_runtimes_F77=no
  34632. - archive_cmds_F77=
  34633. - archive_expsym_cmds_F77=
  34634. - old_archive_From_new_cmds_F77=
  34635. - old_archive_from_expsyms_cmds_F77=
  34636. - export_dynamic_flag_spec_F77=
  34637. - whole_archive_flag_spec_F77=
  34638. - thread_safe_flag_spec_F77=
  34639. - hardcode_libdir_flag_spec_F77=
  34640. - hardcode_libdir_flag_spec_ld_F77=
  34641. - hardcode_libdir_separator_F77=
  34642. - hardcode_direct_F77=no
  34643. - hardcode_minus_L_F77=no
  34644. - hardcode_shlibpath_var_F77=unsupported
  34645. - link_all_deplibs_F77=unknown
  34646. - hardcode_automatic_F77=no
  34647. - module_cmds_F77=
  34648. - module_expsym_cmds_F77=
  34649. - always_export_symbols_F77=no
  34650. - export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  34651. - # include_expsyms should be a list of space-separated symbols to be *always*
  34652. - # included in the symbol list
  34653. - include_expsyms_F77=
  34654. - # exclude_expsyms can be an extended regexp of symbols to exclude
  34655. - # it will be wrapped by ` (' and `)$', so one must not match beginning or
  34656. - # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  34657. - # as well as any symbol that contains `d'.
  34658. - exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
  34659. - # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  34660. - # platforms (ab)use it in PIC code, but their linkers get confused if
  34661. - # the symbol is explicitly referenced. Since portable code cannot
  34662. - # rely on this symbol name, it's probably fine to never include it in
  34663. - # preloaded symbol tables.
  34664. - extract_expsyms_cmds=
  34665. - # Just being paranoid about ensuring that cc_basename is set.
  34666. - for cc_temp in $compiler""; do
  34667. - case $cc_temp in
  34668. - compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  34669. - distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  34670. - \-*) ;;
  34671. - *) break;;
  34672. - esac
  34673. -done
  34674. -cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  34675. -
  34676. - case $host_os in
  34677. - cygwin* | mingw* | pw32*)
  34678. - # FIXME: the MSVC++ port hasn't been tested in a loooong time
  34679. - # When not using gcc, we currently assume that we are using
  34680. - # Microsoft Visual C++.
  34681. - if test "$GCC" != yes; then
  34682. - with_gnu_ld=no
  34683. - fi
  34684. - ;;
  34685. - interix*)
  34686. - # we just hope/assume this is gcc and not c89 (= MSVC++)
  34687. - with_gnu_ld=yes
  34688. - ;;
  34689. - openbsd*)
  34690. - with_gnu_ld=no
  34691. - ;;
  34692. - esac
  34693. -
  34694. - ld_shlibs_F77=yes
  34695. - if test "$with_gnu_ld" = yes; then
  34696. - # If archive_cmds runs LD, not CC, wlarc should be empty
  34697. - wlarc='${wl}'
  34698. -
  34699. - # Set some defaults for GNU ld with shared library support. These
  34700. - # are reset later if shared libraries are not supported. Putting them
  34701. - # here allows them to be overridden if necessary.
  34702. - runpath_var=LD_RUN_PATH
  34703. - hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
  34704. - export_dynamic_flag_spec_F77='${wl}--export-dynamic'
  34705. - # ancient GNU ld didn't support --whole-archive et. al.
  34706. - if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
  34707. - whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  34708. - else
  34709. - whole_archive_flag_spec_F77=
  34710. - fi
  34711. - supports_anon_versioning=no
  34712. - case `$LD -v 2>/dev/null` in
  34713. - *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  34714. - *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  34715. - *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  34716. - *\ 2.11.*) ;; # other 2.11 versions
  34717. - *) supports_anon_versioning=yes ;;
  34718. - esac
  34719. -
  34720. - # See if GNU ld supports shared libraries.
  34721. - case $host_os in
  34722. - aix3* | aix4* | aix5*)
  34723. - # On AIX/PPC, the GNU linker is very broken
  34724. - if test "$host_cpu" != ia64; then
  34725. - ld_shlibs_F77=no
  34726. - cat <<EOF 1>&2
  34727. -
  34728. -*** Warning: the GNU linker, at least up to release 2.9.1, is reported
  34729. -*** to be unable to reliably create shared libraries on AIX.
  34730. -*** Therefore, libtool is disabling shared libraries support. If you
  34731. -*** really care for shared libraries, you may want to modify your PATH
  34732. -*** so that a non-GNU linker is found, and then restart.
  34733. -
  34734. -EOF
  34735. - fi
  34736. - ;;
  34737. -
  34738. - amigaos*)
  34739. - 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)'
  34740. - hardcode_libdir_flag_spec_F77='-L$libdir'
  34741. - hardcode_minus_L_F77=yes
  34742. -
  34743. - # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
  34744. - # that the semantics of dynamic libraries on AmigaOS, at least up
  34745. - # to version 4, is to share data among multiple programs linked
  34746. - # with the same dynamic library. Since this doesn't match the
  34747. - # behavior of shared libraries on other platforms, we can't use
  34748. - # them.
  34749. - ld_shlibs_F77=no
  34750. - ;;
  34751. -
  34752. - beos*)
  34753. - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  34754. - allow_undefined_flag_F77=unsupported
  34755. - # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  34756. - # support --undefined. This deserves some investigation. FIXME
  34757. - archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  34758. - else
  34759. - ld_shlibs_F77=no
  34760. - fi
  34761. - ;;
  34762. -
  34763. - cygwin* | mingw* | pw32*)
  34764. - # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
  34765. - # as there is no search path for DLLs.
  34766. - hardcode_libdir_flag_spec_F77='-L$libdir'
  34767. - allow_undefined_flag_F77=unsupported
  34768. - always_export_symbols_F77=no
  34769. - enable_shared_with_static_runtimes_F77=yes
  34770. - export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
  34771. -
  34772. - if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
  34773. - archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  34774. - # If the export-symbols file already is a .def file (1st line
  34775. - # is EXPORTS), use it as is; otherwise, prepend...
  34776. - archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  34777. - cp $export_symbols $output_objdir/$soname.def;
  34778. - else
  34779. - echo EXPORTS > $output_objdir/$soname.def;
  34780. - cat $export_symbols >> $output_objdir/$soname.def;
  34781. - fi~
  34782. - $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  34783. - else
  34784. - ld_shlibs_F77=no
  34785. - fi
  34786. - ;;
  34787. -
  34788. - interix3*)
  34789. - hardcode_direct_F77=no
  34790. - hardcode_shlibpath_var_F77=no
  34791. - hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
  34792. - export_dynamic_flag_spec_F77='${wl}-E'
  34793. - # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  34794. - # Instead, shared libraries are loaded at an image base (0x10000000 by
  34795. - # default) and relocated if they conflict, which is a slow very memory
  34796. - # consuming and fragmenting process. To avoid this, we pick a random,
  34797. - # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  34798. - # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  34799. - 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'
  34800. - 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'
  34801. - ;;
  34802. -
  34803. - linux*)
  34804. - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  34805. - tmp_addflag=
  34806. - case $cc_basename,$host_cpu in
  34807. - pgcc*) # Portland Group C compiler
  34808. - 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'
  34809. - tmp_addflag=' $pic_flag'
  34810. - ;;
  34811. - pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
  34812. - 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'
  34813. - tmp_addflag=' $pic_flag -Mnomain' ;;
  34814. - ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  34815. - tmp_addflag=' -i_dynamic' ;;
  34816. - efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  34817. - tmp_addflag=' -i_dynamic -nofor_main' ;;
  34818. - ifc* | ifort*) # Intel Fortran compiler
  34819. - tmp_addflag=' -nofor_main' ;;
  34820. - esac
  34821. - archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  34822. -
  34823. - if test $supports_anon_versioning = yes; then
  34824. - archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
  34825. - cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  34826. - $echo "local: *; };" >> $output_objdir/$libname.ver~
  34827. - $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  34828. - fi
  34829. - else
  34830. - ld_shlibs_F77=no
  34831. - fi
  34832. - ;;
  34833. -
  34834. - netbsd*)
  34835. - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  34836. - archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  34837. - wlarc=
  34838. - else
  34839. - archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  34840. - archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  34841. - fi
  34842. - ;;
  34843. -
  34844. - solaris*)
  34845. - if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
  34846. - ld_shlibs_F77=no
  34847. - cat <<EOF 1>&2
  34848. -
  34849. -*** Warning: The releases 2.8.* of the GNU linker cannot reliably
  34850. -*** create shared libraries on Solaris systems. Therefore, libtool
  34851. -*** is disabling shared libraries support. We urge you to upgrade GNU
  34852. -*** binutils to release 2.9.1 or newer. Another option is to modify
  34853. -*** your PATH or compiler configuration so that the native linker is
  34854. -*** used, and then restart.
  34855. -
  34856. -EOF
  34857. - elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  34858. - archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  34859. - archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  34860. - else
  34861. - ld_shlibs_F77=no
  34862. - fi
  34863. - ;;
  34864. -
  34865. - sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  34866. - case `$LD -v 2>&1` in
  34867. - *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  34868. - ld_shlibs_F77=no
  34869. - cat <<_LT_EOF 1>&2
  34870. -
  34871. -*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  34872. -*** reliably create shared libraries on SCO systems. Therefore, libtool
  34873. -*** is disabling shared libraries support. We urge you to upgrade GNU
  34874. -*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  34875. -*** your PATH or compiler configuration so that the native linker is
  34876. -*** used, and then restart.
  34877. -
  34878. -_LT_EOF
  34879. - ;;
  34880. - *)
  34881. - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  34882. - hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
  34883. - archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
  34884. - archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
  34885. - else
  34886. - ld_shlibs_F77=no
  34887. - fi
  34888. - ;;
  34889. - esac
  34890. - ;;
  34891. -
  34892. - sunos4*)
  34893. - archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  34894. - wlarc=
  34895. - hardcode_direct_F77=yes
  34896. - hardcode_shlibpath_var_F77=no
  34897. - ;;
  34898. -
  34899. - *)
  34900. - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  34901. - archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  34902. - archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  34903. - else
  34904. - ld_shlibs_F77=no
  34905. - fi
  34906. - ;;
  34907. - esac
  34908. -
  34909. - if test "$ld_shlibs_F77" = no; then
  34910. - runpath_var=
  34911. - hardcode_libdir_flag_spec_F77=
  34912. - export_dynamic_flag_spec_F77=
  34913. - whole_archive_flag_spec_F77=
  34914. - fi
  34915. - else
  34916. - # PORTME fill in a description of your system's linker (not GNU ld)
  34917. - case $host_os in
  34918. - aix3*)
  34919. - allow_undefined_flag_F77=unsupported
  34920. - always_export_symbols_F77=yes
  34921. - 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'
  34922. - # Note: this linker hardcodes the directories in LIBPATH if there
  34923. - # are no directories specified by -L.
  34924. - hardcode_minus_L_F77=yes
  34925. - if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  34926. - # Neither direct hardcoding nor static linking is supported with a
  34927. - # broken collect2.
  34928. - hardcode_direct_F77=unsupported
  34929. - fi
  34930. - ;;
  34931. -
  34932. - aix4* | aix5*)
  34933. - if test "$host_cpu" = ia64; then
  34934. - # On IA64, the linker does run time linking by default, so we don't
  34935. - # have to do anything special.
  34936. - aix_use_runtimelinking=no
  34937. - exp_sym_flag='-Bexport'
  34938. - no_entry_flag=""
  34939. - else
  34940. - # If we're using GNU nm, then we don't want the "-C" option.
  34941. - # -C means demangle to AIX nm, but means don't demangle with GNU nm
  34942. - if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
  34943. - 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'
  34944. - else
  34945. - 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'
  34946. - fi
  34947. - aix_use_runtimelinking=no
  34948. -
  34949. - # Test if we are trying to use run time linking or normal
  34950. - # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  34951. - # need to do runtime linking.
  34952. - case $host_os in aix4.[23]|aix4.[23].*|aix5*)
  34953. - for ld_flag in $LDFLAGS; do
  34954. - if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  34955. - aix_use_runtimelinking=yes
  34956. - break
  34957. - fi
  34958. - done
  34959. - ;;
  34960. - esac
  34961. -
  34962. - exp_sym_flag='-bexport'
  34963. - no_entry_flag='-bnoentry'
  34964. - fi
  34965. -
  34966. - # When large executables or shared objects are built, AIX ld can
  34967. - # have problems creating the table of contents. If linking a library
  34968. - # or program results in "error TOC overflow" add -mminimal-toc to
  34969. - # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  34970. - # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  34971. -
  34972. - archive_cmds_F77=''
  34973. - hardcode_direct_F77=yes
  34974. - hardcode_libdir_separator_F77=':'
  34975. - link_all_deplibs_F77=yes
  34976. -
  34977. - if test "$GCC" = yes; then
  34978. - case $host_os in aix4.[012]|aix4.[012].*)
  34979. - # We only want to do this on AIX 4.2 and lower, the check
  34980. - # below for broken collect2 doesn't work under 4.3+
  34981. - collect2name=`${CC} -print-prog-name=collect2`
  34982. - if test -f "$collect2name" && \
  34983. - strings "$collect2name" | grep resolve_lib_name >/dev/null
  34984. - then
  34985. - # We have reworked collect2
  34986. - hardcode_direct_F77=yes
  34987. - else
  34988. - # We have old collect2
  34989. - hardcode_direct_F77=unsupported
  34990. - # It fails to find uninstalled libraries when the uninstalled
  34991. - # path is not listed in the libpath. Setting hardcode_minus_L
  34992. - # to unsupported forces relinking
  34993. - hardcode_minus_L_F77=yes
  34994. - hardcode_libdir_flag_spec_F77='-L$libdir'
  34995. - hardcode_libdir_separator_F77=
  34996. - fi
  34997. - ;;
  34998. - esac
  34999. - shared_flag='-shared'
  35000. - if test "$aix_use_runtimelinking" = yes; then
  35001. - shared_flag="$shared_flag "'${wl}-G'
  35002. - fi
  35003. - else
  35004. - # not using gcc
  35005. - if test "$host_cpu" = ia64; then
  35006. - # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  35007. - # chokes on -Wl,-G. The following line is correct:
  35008. - shared_flag='-G'
  35009. - else
  35010. - if test "$aix_use_runtimelinking" = yes; then
  35011. - shared_flag='${wl}-G'
  35012. - else
  35013. - shared_flag='${wl}-bM:SRE'
  35014. - fi
  35015. - fi
  35016. - fi
  35017. -
  35018. - # It seems that -bexpall does not export symbols beginning with
  35019. - # underscore (_), so it is better to generate a list of symbols to export.
  35020. - always_export_symbols_F77=yes
  35021. - if test "$aix_use_runtimelinking" = yes; then
  35022. - # Warning - without using the other runtime loading flags (-brtl),
  35023. - # -berok will link without error, but may produce a broken library.
  35024. - allow_undefined_flag_F77='-berok'
  35025. - # Determine the default libpath from the value encoded in an empty executable.
  35026. - cat >conftest.$ac_ext <<_ACEOF
  35027. - program main
  35028. -
  35029. - end
  35030. -_ACEOF
  35031. -rm -f conftest.$ac_objext conftest$ac_exeext
  35032. -if { (ac_try="$ac_link"
  35033. -case "(($ac_try" in
  35034. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  35035. - *) ac_try_echo=$ac_try;;
  35036. -esac
  35037. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  35038. - (eval "$ac_link") 2>conftest.er1
  35039. - ac_status=$?
  35040. - grep -v '^ *+' conftest.er1 >conftest.err
  35041. - rm -f conftest.er1
  35042. - cat conftest.err >&5
  35043. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  35044. - (exit $ac_status); } &&
  35045. - { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
  35046. - { (case "(($ac_try" in
  35047. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  35048. - *) ac_try_echo=$ac_try;;
  35049. -esac
  35050. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  35051. - (eval "$ac_try") 2>&5
  35052. - ac_status=$?
  35053. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  35054. - (exit $ac_status); }; } &&
  35055. - { ac_try='test -s conftest$ac_exeext'
  35056. - { (case "(($ac_try" in
  35057. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  35058. - *) ac_try_echo=$ac_try;;
  35059. -esac
  35060. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  35061. - (eval "$ac_try") 2>&5
  35062. - ac_status=$?
  35063. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  35064. - (exit $ac_status); }; }; then
  35065. -
  35066. -aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  35067. -}'`
  35068. -# Check for a 64-bit object if we didn't find anything.
  35069. -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; }
  35070. -}'`; fi
  35071. -else
  35072. - echo "$as_me: failed program was:" >&5
  35073. -sed 's/^/| /' conftest.$ac_ext >&5
  35074. -
  35075. -
  35076. -fi
  35077. -
  35078. -rm -f core conftest.err conftest.$ac_objext \
  35079. - conftest$ac_exeext conftest.$ac_ext
  35080. -if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  35081. -
  35082. - hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
  35083. - 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"
  35084. - else
  35085. - if test "$host_cpu" = ia64; then
  35086. - hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
  35087. - allow_undefined_flag_F77="-z nodefs"
  35088. - 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"
  35089. - else
  35090. - # Determine the default libpath from the value encoded in an empty executable.
  35091. - cat >conftest.$ac_ext <<_ACEOF
  35092. - program main
  35093. -
  35094. - end
  35095. -_ACEOF
  35096. -rm -f conftest.$ac_objext conftest$ac_exeext
  35097. -if { (ac_try="$ac_link"
  35098. -case "(($ac_try" in
  35099. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  35100. - *) ac_try_echo=$ac_try;;
  35101. -esac
  35102. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  35103. - (eval "$ac_link") 2>conftest.er1
  35104. - ac_status=$?
  35105. - grep -v '^ *+' conftest.er1 >conftest.err
  35106. - rm -f conftest.er1
  35107. - cat conftest.err >&5
  35108. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  35109. - (exit $ac_status); } &&
  35110. - { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
  35111. - { (case "(($ac_try" in
  35112. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  35113. - *) ac_try_echo=$ac_try;;
  35114. -esac
  35115. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  35116. - (eval "$ac_try") 2>&5
  35117. - ac_status=$?
  35118. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  35119. - (exit $ac_status); }; } &&
  35120. - { ac_try='test -s conftest$ac_exeext'
  35121. - { (case "(($ac_try" in
  35122. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  35123. - *) ac_try_echo=$ac_try;;
  35124. -esac
  35125. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  35126. - (eval "$ac_try") 2>&5
  35127. - ac_status=$?
  35128. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  35129. - (exit $ac_status); }; }; then
  35130. -
  35131. -aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  35132. -}'`
  35133. -# Check for a 64-bit object if we didn't find anything.
  35134. -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; }
  35135. -}'`; fi
  35136. -else
  35137. - echo "$as_me: failed program was:" >&5
  35138. -sed 's/^/| /' conftest.$ac_ext >&5
  35139. -
  35140. -
  35141. -fi
  35142. -
  35143. -rm -f core conftest.err conftest.$ac_objext \
  35144. - conftest$ac_exeext conftest.$ac_ext
  35145. -if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  35146. -
  35147. - hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
  35148. - # Warning - without using the other run time loading flags,
  35149. - # -berok will link without error, but may produce a broken library.
  35150. - no_undefined_flag_F77=' ${wl}-bernotok'
  35151. - allow_undefined_flag_F77=' ${wl}-berok'
  35152. - # Exported symbols can be pulled into shared objects from archives
  35153. - whole_archive_flag_spec_F77='$convenience'
  35154. - archive_cmds_need_lc_F77=yes
  35155. - # This is similar to how AIX traditionally builds its shared libraries.
  35156. - 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'
  35157. - fi
  35158. - fi
  35159. - ;;
  35160. -
  35161. - amigaos*)
  35162. - 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)'
  35163. - hardcode_libdir_flag_spec_F77='-L$libdir'
  35164. - hardcode_minus_L_F77=yes
  35165. - # see comment about different semantics on the GNU ld section
  35166. - ld_shlibs_F77=no
  35167. - ;;
  35168. -
  35169. - bsdi[45]*)
  35170. - export_dynamic_flag_spec_F77=-rdynamic
  35171. - ;;
  35172. -
  35173. - cygwin* | mingw* | pw32*)
  35174. - # When not using gcc, we currently assume that we are using
  35175. - # Microsoft Visual C++.
  35176. - # hardcode_libdir_flag_spec is actually meaningless, as there is
  35177. - # no search path for DLLs.
  35178. - hardcode_libdir_flag_spec_F77=' '
  35179. - allow_undefined_flag_F77=unsupported
  35180. - # Tell ltmain to make .lib files, not .a files.
  35181. - libext=lib
  35182. - # Tell ltmain to make .dll files, not .so files.
  35183. - shrext_cmds=".dll"
  35184. - # FIXME: Setting linknames here is a bad hack.
  35185. - archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
  35186. - # The linker will automatically build a .lib file if we build a DLL.
  35187. - old_archive_From_new_cmds_F77='true'
  35188. - # FIXME: Should let the user specify the lib program.
  35189. - old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
  35190. - fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
  35191. - enable_shared_with_static_runtimes_F77=yes
  35192. - ;;
  35193. -
  35194. - darwin* | rhapsody*)
  35195. - case $host_os in
  35196. - rhapsody* | darwin1.[012])
  35197. - allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
  35198. - ;;
  35199. - *) # Darwin 1.3 on
  35200. - if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
  35201. - allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  35202. - else
  35203. - case ${MACOSX_DEPLOYMENT_TARGET} in
  35204. - 10.[012])
  35205. - allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  35206. - ;;
  35207. - 10.*)
  35208. - allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
  35209. - ;;
  35210. - esac
  35211. - fi
  35212. - ;;
  35213. - esac
  35214. - archive_cmds_need_lc_F77=no
  35215. - hardcode_direct_F77=no
  35216. - hardcode_automatic_F77=yes
  35217. - hardcode_shlibpath_var_F77=unsupported
  35218. - whole_archive_flag_spec_F77=''
  35219. - link_all_deplibs_F77=yes
  35220. - if test "$GCC" = yes ; then
  35221. - output_verbose_link_cmd='echo'
  35222. - archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
  35223. - module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  35224. - # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  35225. - 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}'
  35226. - 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}'
  35227. - else
  35228. - case $cc_basename in
  35229. - xlc*)
  35230. - output_verbose_link_cmd='echo'
  35231. - archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
  35232. - module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  35233. - # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  35234. - 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}'
  35235. - 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}'
  35236. - ;;
  35237. - *)
  35238. - ld_shlibs_F77=no
  35239. - ;;
  35240. - esac
  35241. - fi
  35242. - ;;
  35243. -
  35244. - dgux*)
  35245. - archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  35246. - hardcode_libdir_flag_spec_F77='-L$libdir'
  35247. - hardcode_shlibpath_var_F77=no
  35248. - ;;
  35249. -
  35250. - freebsd1*)
  35251. - ld_shlibs_F77=no
  35252. - ;;
  35253. -
  35254. - # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  35255. - # support. Future versions do this automatically, but an explicit c++rt0.o
  35256. - # does not break anything, and helps significantly (at the cost of a little
  35257. - # extra space).
  35258. - freebsd2.2*)
  35259. - archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  35260. - hardcode_libdir_flag_spec_F77='-R$libdir'
  35261. - hardcode_direct_F77=yes
  35262. - hardcode_shlibpath_var_F77=no
  35263. - ;;
  35264. -
  35265. - # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  35266. - freebsd2*)
  35267. - archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  35268. - hardcode_direct_F77=yes
  35269. - hardcode_minus_L_F77=yes
  35270. - hardcode_shlibpath_var_F77=no
  35271. - ;;
  35272. -
  35273. - # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  35274. - freebsd* | kfreebsd*-gnu | dragonfly*)
  35275. - archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  35276. - hardcode_libdir_flag_spec_F77='-R$libdir'
  35277. - hardcode_direct_F77=yes
  35278. - hardcode_shlibpath_var_F77=no
  35279. - ;;
  35280. -
  35281. - hpux9*)
  35282. - if test "$GCC" = yes; then
  35283. - 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'
  35284. - else
  35285. - 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'
  35286. - fi
  35287. - hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
  35288. - hardcode_libdir_separator_F77=:
  35289. - hardcode_direct_F77=yes
  35290. -
  35291. - # hardcode_minus_L: Not really in the search PATH,
  35292. - # but as the default location of the library.
  35293. - hardcode_minus_L_F77=yes
  35294. - export_dynamic_flag_spec_F77='${wl}-E'
  35295. - ;;
  35296. -
  35297. - hpux10*)
  35298. - if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  35299. - archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  35300. - else
  35301. - archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  35302. - fi
  35303. - if test "$with_gnu_ld" = no; then
  35304. - hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
  35305. - hardcode_libdir_separator_F77=:
  35306. -
  35307. - hardcode_direct_F77=yes
  35308. - export_dynamic_flag_spec_F77='${wl}-E'
  35309. -
  35310. - # hardcode_minus_L: Not really in the search PATH,
  35311. - # but as the default location of the library.
  35312. - hardcode_minus_L_F77=yes
  35313. - fi
  35314. - ;;
  35315. -
  35316. - hpux11*)
  35317. - if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  35318. - case $host_cpu in
  35319. - hppa*64*)
  35320. - archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  35321. - ;;
  35322. - ia64*)
  35323. - archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  35324. - ;;
  35325. - *)
  35326. - archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  35327. - ;;
  35328. - esac
  35329. - else
  35330. - case $host_cpu in
  35331. - hppa*64*)
  35332. - archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  35333. - ;;
  35334. - ia64*)
  35335. - archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  35336. - ;;
  35337. - *)
  35338. - archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  35339. - ;;
  35340. - esac
  35341. - fi
  35342. - if test "$with_gnu_ld" = no; then
  35343. - hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
  35344. - hardcode_libdir_separator_F77=:
  35345. -
  35346. - case $host_cpu in
  35347. - hppa*64*|ia64*)
  35348. - hardcode_libdir_flag_spec_ld_F77='+b $libdir'
  35349. - hardcode_direct_F77=no
  35350. - hardcode_shlibpath_var_F77=no
  35351. - ;;
  35352. - *)
  35353. - hardcode_direct_F77=yes
  35354. - export_dynamic_flag_spec_F77='${wl}-E'
  35355. -
  35356. - # hardcode_minus_L: Not really in the search PATH,
  35357. - # but as the default location of the library.
  35358. - hardcode_minus_L_F77=yes
  35359. - ;;
  35360. - esac
  35361. - fi
  35362. - ;;
  35363. -
  35364. - irix5* | irix6* | nonstopux*)
  35365. - if test "$GCC" = yes; then
  35366. - 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'
  35367. - else
  35368. - 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'
  35369. - hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
  35370. - fi
  35371. - hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
  35372. - hardcode_libdir_separator_F77=:
  35373. - link_all_deplibs_F77=yes
  35374. - ;;
  35375. -
  35376. - netbsd*)
  35377. - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  35378. - archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  35379. - else
  35380. - archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  35381. - fi
  35382. - hardcode_libdir_flag_spec_F77='-R$libdir'
  35383. - hardcode_direct_F77=yes
  35384. - hardcode_shlibpath_var_F77=no
  35385. - ;;
  35386. -
  35387. - newsos6)
  35388. - archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  35389. - hardcode_direct_F77=yes
  35390. - hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
  35391. - hardcode_libdir_separator_F77=:
  35392. - hardcode_shlibpath_var_F77=no
  35393. - ;;
  35394. -
  35395. - openbsd*)
  35396. - hardcode_direct_F77=yes
  35397. - hardcode_shlibpath_var_F77=no
  35398. - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  35399. - archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  35400. - archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  35401. - hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
  35402. - export_dynamic_flag_spec_F77='${wl}-E'
  35403. - else
  35404. - case $host_os in
  35405. - openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  35406. - archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  35407. - hardcode_libdir_flag_spec_F77='-R$libdir'
  35408. - ;;
  35409. - *)
  35410. - archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  35411. - hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
  35412. - ;;
  35413. - esac
  35414. - fi
  35415. - ;;
  35416. -
  35417. - os2*)
  35418. - hardcode_libdir_flag_spec_F77='-L$libdir'
  35419. - hardcode_minus_L_F77=yes
  35420. - allow_undefined_flag_F77=unsupported
  35421. - 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'
  35422. - old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  35423. - ;;
  35424. -
  35425. - osf3*)
  35426. - if test "$GCC" = yes; then
  35427. - allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
  35428. - 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'
  35429. - else
  35430. - allow_undefined_flag_F77=' -expect_unresolved \*'
  35431. - 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'
  35432. - fi
  35433. - hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
  35434. - hardcode_libdir_separator_F77=:
  35435. - ;;
  35436. -
  35437. - osf4* | osf5*) # as osf3* with the addition of -msym flag
  35438. - if test "$GCC" = yes; then
  35439. - allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
  35440. - 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'
  35441. - hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
  35442. - else
  35443. - allow_undefined_flag_F77=' -expect_unresolved \*'
  35444. - 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'
  35445. - 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~
  35446. - $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'
  35447. -
  35448. - # Both c and cxx compiler support -rpath directly
  35449. - hardcode_libdir_flag_spec_F77='-rpath $libdir'
  35450. - fi
  35451. - hardcode_libdir_separator_F77=:
  35452. - ;;
  35453. -
  35454. - solaris*)
  35455. - no_undefined_flag_F77=' -z text'
  35456. - if test "$GCC" = yes; then
  35457. - wlarc='${wl}'
  35458. - archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  35459. - archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  35460. - $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
  35461. - else
  35462. - wlarc=''
  35463. - archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  35464. - archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  35465. - $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
  35466. - fi
  35467. - hardcode_libdir_flag_spec_F77='-R$libdir'
  35468. - hardcode_shlibpath_var_F77=no
  35469. - case $host_os in
  35470. - solaris2.[0-5] | solaris2.[0-5].*) ;;
  35471. - *)
  35472. - # The compiler driver will combine linker options so we
  35473. - # cannot just pass the convience library names through
  35474. - # without $wl, iff we do not link with $LD.
  35475. - # Luckily, gcc supports the same syntax we need for Sun Studio.
  35476. - # Supported since Solaris 2.6 (maybe 2.5.1?)
  35477. - case $wlarc in
  35478. - '')
  35479. - whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
  35480. - *)
  35481. - 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' ;;
  35482. - esac ;;
  35483. - esac
  35484. - link_all_deplibs_F77=yes
  35485. - ;;
  35486. -
  35487. - sunos4*)
  35488. - if test "x$host_vendor" = xsequent; then
  35489. - # Use $CC to link under sequent, because it throws in some extra .o
  35490. - # files that make .init and .fini sections work.
  35491. - archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  35492. - else
  35493. - archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  35494. - fi
  35495. - hardcode_libdir_flag_spec_F77='-L$libdir'
  35496. - hardcode_direct_F77=yes
  35497. - hardcode_minus_L_F77=yes
  35498. - hardcode_shlibpath_var_F77=no
  35499. - ;;
  35500. -
  35501. - sysv4)
  35502. - case $host_vendor in
  35503. - sni)
  35504. - archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  35505. - hardcode_direct_F77=yes # is this really true???
  35506. - ;;
  35507. - siemens)
  35508. - ## LD is ld it makes a PLAMLIB
  35509. - ## CC just makes a GrossModule.
  35510. - archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  35511. - reload_cmds_F77='$CC -r -o $output$reload_objs'
  35512. - hardcode_direct_F77=no
  35513. - ;;
  35514. - motorola)
  35515. - archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  35516. - hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
  35517. - ;;
  35518. - esac
  35519. - runpath_var='LD_RUN_PATH'
  35520. - hardcode_shlibpath_var_F77=no
  35521. - ;;
  35522. -
  35523. - sysv4.3*)
  35524. - archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  35525. - hardcode_shlibpath_var_F77=no
  35526. - export_dynamic_flag_spec_F77='-Bexport'
  35527. - ;;
  35528. -
  35529. - sysv4*MP*)
  35530. - if test -d /usr/nec; then
  35531. - archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  35532. - hardcode_shlibpath_var_F77=no
  35533. - runpath_var=LD_RUN_PATH
  35534. - hardcode_runpath_var=yes
  35535. - ld_shlibs_F77=yes
  35536. - fi
  35537. - ;;
  35538. -
  35539. - sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
  35540. - no_undefined_flag_F77='${wl}-z,text'
  35541. - archive_cmds_need_lc_F77=no
  35542. - hardcode_shlibpath_var_F77=no
  35543. - runpath_var='LD_RUN_PATH'
  35544. -
  35545. - if test "$GCC" = yes; then
  35546. - archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  35547. - archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  35548. - else
  35549. - archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  35550. - archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  35551. - fi
  35552. - ;;
  35553. -
  35554. - sysv5* | sco3.2v5* | sco5v6*)
  35555. - # Note: We can NOT use -z defs as we might desire, because we do not
  35556. - # link with -lc, and that would cause any symbols used from libc to
  35557. - # always be unresolved, which means just about no library would
  35558. - # ever link correctly. If we're not using GNU ld we use -z text
  35559. - # though, which does catch some bad symbols but isn't as heavy-handed
  35560. - # as -z defs.
  35561. - no_undefined_flag_F77='${wl}-z,text'
  35562. - allow_undefined_flag_F77='${wl}-z,nodefs'
  35563. - archive_cmds_need_lc_F77=no
  35564. - hardcode_shlibpath_var_F77=no
  35565. - hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
  35566. - hardcode_libdir_separator_F77=':'
  35567. - link_all_deplibs_F77=yes
  35568. - export_dynamic_flag_spec_F77='${wl}-Bexport'
  35569. - runpath_var='LD_RUN_PATH'
  35570. -
  35571. - if test "$GCC" = yes; then
  35572. - archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  35573. - archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  35574. - else
  35575. - archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  35576. - archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  35577. - fi
  35578. - ;;
  35579. -
  35580. - uts4*)
  35581. - archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  35582. - hardcode_libdir_flag_spec_F77='-L$libdir'
  35583. - hardcode_shlibpath_var_F77=no
  35584. - ;;
  35585. -
  35586. - *)
  35587. - ld_shlibs_F77=no
  35588. - ;;
  35589. - esac
  35590. - fi
  35591. -
  35592. -{ echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
  35593. -echo "${ECHO_T}$ld_shlibs_F77" >&6; }
  35594. -test "$ld_shlibs_F77" = no && can_build_shared=no
  35595. -
  35596. -#
  35597. -# Do we need to explicitly link libc?
  35598. -#
  35599. -case "x$archive_cmds_need_lc_F77" in
  35600. -x|xyes)
  35601. - # Assume -lc should be added
  35602. - archive_cmds_need_lc_F77=yes
  35603. -
  35604. - if test "$enable_shared" = yes && test "$GCC" = yes; then
  35605. - case $archive_cmds_F77 in
  35606. - *'~'*)
  35607. - # FIXME: we may have to deal with multi-command sequences.
  35608. - ;;
  35609. - '$CC '*)
  35610. - # Test whether the compiler implicitly links with -lc since on some
  35611. - # systems, -lgcc has to come before -lc. If gcc already passes -lc
  35612. - # to ld, don't add -lc before -lgcc.
  35613. - { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
  35614. -echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
  35615. - $rm conftest*
  35616. - printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  35617. -
  35618. - if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  35619. - (eval $ac_compile) 2>&5
  35620. - ac_status=$?
  35621. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  35622. - (exit $ac_status); } 2>conftest.err; then
  35623. - soname=conftest
  35624. - lib=conftest
  35625. - libobjs=conftest.$ac_objext
  35626. - deplibs=
  35627. - wl=$lt_prog_compiler_wl_F77
  35628. - pic_flag=$lt_prog_compiler_pic_F77
  35629. - compiler_flags=-v
  35630. - linker_flags=-v
  35631. - verstring=
  35632. - output_objdir=.
  35633. - libname=conftest
  35634. - lt_save_allow_undefined_flag=$allow_undefined_flag_F77
  35635. - allow_undefined_flag_F77=
  35636. - if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
  35637. - (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
  35638. - ac_status=$?
  35639. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  35640. - (exit $ac_status); }
  35641. - then
  35642. - archive_cmds_need_lc_F77=no
  35643. - else
  35644. - archive_cmds_need_lc_F77=yes
  35645. - fi
  35646. - allow_undefined_flag_F77=$lt_save_allow_undefined_flag
  35647. - else
  35648. - cat conftest.err 1>&5
  35649. - fi
  35650. - $rm conftest*
  35651. - { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
  35652. -echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
  35653. - ;;
  35654. - esac
  35655. - fi
  35656. - ;;
  35657. -esac
  35658. -
  35659. -{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
  35660. -echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
  35661. -library_names_spec=
  35662. -libname_spec='lib$name'
  35663. -soname_spec=
  35664. -shrext_cmds=".so"
  35665. -postinstall_cmds=
  35666. -postuninstall_cmds=
  35667. -finish_cmds=
  35668. -finish_eval=
  35669. -shlibpath_var=
  35670. -shlibpath_overrides_runpath=unknown
  35671. -version_type=none
  35672. -dynamic_linker="$host_os ld.so"
  35673. -sys_lib_dlsearch_path_spec="/lib /usr/lib"
  35674. -if test "$GCC" = yes; then
  35675. - sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  35676. - if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
  35677. - # if the path contains ";" then we assume it to be the separator
  35678. - # otherwise default to the standard path separator (i.e. ":") - it is
  35679. - # assumed that no part of a normal pathname contains ";" but that should
  35680. - # okay in the real world where ";" in dirpaths is itself problematic.
  35681. - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  35682. - else
  35683. - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  35684. - fi
  35685. -else
  35686. - sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  35687. -fi
  35688. -need_lib_prefix=unknown
  35689. -hardcode_into_libs=no
  35690. -
  35691. -# when you set need_version to no, make sure it does not cause -set_version
  35692. -# flags to be left without arguments
  35693. -need_version=unknown
  35694. -
  35695. -case $host_os in
  35696. -aix3*)
  35697. - version_type=linux
  35698. - library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  35699. - shlibpath_var=LIBPATH
  35700. -
  35701. - # AIX 3 has no versioning support, so we append a major version to the name.
  35702. - soname_spec='${libname}${release}${shared_ext}$major'
  35703. - ;;
  35704. -
  35705. -aix4* | aix5*)
  35706. - version_type=linux
  35707. - need_lib_prefix=no
  35708. - need_version=no
  35709. - hardcode_into_libs=yes
  35710. - if test "$host_cpu" = ia64; then
  35711. - # AIX 5 supports IA64
  35712. - library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  35713. - shlibpath_var=LD_LIBRARY_PATH
  35714. - else
  35715. - # With GCC up to 2.95.x, collect2 would create an import file
  35716. - # for dependence libraries. The import file would start with
  35717. - # the line `#! .'. This would cause the generated library to
  35718. - # depend on `.', always an invalid library. This was fixed in
  35719. - # development snapshots of GCC prior to 3.0.
  35720. - case $host_os in
  35721. - aix4 | aix4.[01] | aix4.[01].*)
  35722. - if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  35723. - echo ' yes '
  35724. - echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
  35725. - :
  35726. - else
  35727. - can_build_shared=no
  35728. - fi
  35729. - ;;
  35730. - esac
  35731. - # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  35732. - # soname into executable. Probably we can add versioning support to
  35733. - # collect2, so additional links can be useful in future.
  35734. - if test "$aix_use_runtimelinking" = yes; then
  35735. - # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  35736. - # instead of lib<name>.a to let people know that these are not
  35737. - # typical AIX shared libraries.
  35738. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  35739. - else
  35740. - # We preserve .a as extension for shared libraries through AIX4.2
  35741. - # and later when we are not doing run time linking.
  35742. - library_names_spec='${libname}${release}.a $libname.a'
  35743. - soname_spec='${libname}${release}${shared_ext}$major'
  35744. - fi
  35745. - shlibpath_var=LIBPATH
  35746. - fi
  35747. - ;;
  35748. -
  35749. -amigaos*)
  35750. - library_names_spec='$libname.ixlibrary $libname.a'
  35751. - # Create ${libname}_ixlibrary.a entries in /sys/libs.
  35752. - 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'
  35753. - ;;
  35754. -
  35755. -beos*)
  35756. - library_names_spec='${libname}${shared_ext}'
  35757. - dynamic_linker="$host_os ld.so"
  35758. - shlibpath_var=LIBRARY_PATH
  35759. - ;;
  35760. -
  35761. -bsdi[45]*)
  35762. - version_type=linux
  35763. - need_version=no
  35764. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  35765. - soname_spec='${libname}${release}${shared_ext}$major'
  35766. - finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  35767. - shlibpath_var=LD_LIBRARY_PATH
  35768. - sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  35769. - sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  35770. - # the default ld.so.conf also contains /usr/contrib/lib and
  35771. - # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  35772. - # libtool to hard-code these into programs
  35773. - ;;
  35774. -
  35775. -cygwin* | mingw* | pw32*)
  35776. - version_type=windows
  35777. - shrext_cmds=".dll"
  35778. - need_version=no
  35779. - need_lib_prefix=no
  35780. -
  35781. - case $GCC,$host_os in
  35782. - yes,cygwin* | yes,mingw* | yes,pw32*)
  35783. - library_names_spec='$libname.dll.a'
  35784. - # DLL is installed to $(libdir)/../bin by postinstall_cmds
  35785. - postinstall_cmds='base_file=`basename \${file}`~
  35786. - dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
  35787. - dldir=$destdir/`dirname \$dlpath`~
  35788. - test -d \$dldir || mkdir -p \$dldir~
  35789. - $install_prog $dir/$dlname \$dldir/$dlname~
  35790. - chmod a+x \$dldir/$dlname'
  35791. - postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  35792. - dlpath=$dir/\$dldll~
  35793. - $rm \$dlpath'
  35794. - shlibpath_overrides_runpath=yes
  35795. -
  35796. - case $host_os in
  35797. - cygwin*)
  35798. - # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  35799. - soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  35800. - sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  35801. - ;;
  35802. - mingw*)
  35803. - # MinGW DLLs use traditional 'lib' prefix
  35804. - soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  35805. - sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  35806. - if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
  35807. - # It is most probably a Windows format PATH printed by
  35808. - # mingw gcc, but we are running on Cygwin. Gcc prints its search
  35809. - # path with ; separators, and with drive letters. We can handle the
  35810. - # drive letters (cygwin fileutils understands them), so leave them,
  35811. - # especially as we might pass files found there to a mingw objdump,
  35812. - # which wouldn't understand a cygwinified path. Ahh.
  35813. - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  35814. - else
  35815. - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  35816. - fi
  35817. - ;;
  35818. - pw32*)
  35819. - # pw32 DLLs use 'pw' prefix rather than 'lib'
  35820. - library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  35821. - ;;
  35822. - esac
  35823. - ;;
  35824. -
  35825. - *)
  35826. - library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  35827. - ;;
  35828. - esac
  35829. - dynamic_linker='Win32 ld.exe'
  35830. - # FIXME: first we should search . and the directory the executable is in
  35831. - shlibpath_var=PATH
  35832. - ;;
  35833. -
  35834. -darwin* | rhapsody*)
  35835. - dynamic_linker="$host_os dyld"
  35836. - version_type=darwin
  35837. - need_lib_prefix=no
  35838. - need_version=no
  35839. - library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  35840. - soname_spec='${libname}${release}${major}$shared_ext'
  35841. - shlibpath_overrides_runpath=yes
  35842. - shlibpath_var=DYLD_LIBRARY_PATH
  35843. - shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  35844. - # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
  35845. - if test "$GCC" = yes; then
  35846. - 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"`
  35847. - else
  35848. - sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
  35849. - fi
  35850. - sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  35851. - ;;
  35852. -
  35853. -dgux*)
  35854. - version_type=linux
  35855. - need_lib_prefix=no
  35856. - need_version=no
  35857. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  35858. - soname_spec='${libname}${release}${shared_ext}$major'
  35859. - shlibpath_var=LD_LIBRARY_PATH
  35860. - ;;
  35861. -
  35862. -freebsd1*)
  35863. - dynamic_linker=no
  35864. - ;;
  35865. -
  35866. -kfreebsd*-gnu)
  35867. - version_type=linux
  35868. - need_lib_prefix=no
  35869. - need_version=no
  35870. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  35871. - soname_spec='${libname}${release}${shared_ext}$major'
  35872. - shlibpath_var=LD_LIBRARY_PATH
  35873. - shlibpath_overrides_runpath=no
  35874. - hardcode_into_libs=yes
  35875. - dynamic_linker='GNU ld.so'
  35876. - ;;
  35877. -
  35878. -freebsd* | dragonfly*)
  35879. - # DragonFly does not have aout. When/if they implement a new
  35880. - # versioning mechanism, adjust this.
  35881. - if test -x /usr/bin/objformat; then
  35882. - objformat=`/usr/bin/objformat`
  35883. - else
  35884. - case $host_os in
  35885. - freebsd[123]*) objformat=aout ;;
  35886. - *) objformat=elf ;;
  35887. - esac
  35888. - fi
  35889. - version_type=freebsd-$objformat
  35890. - case $version_type in
  35891. - freebsd-elf*)
  35892. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  35893. - need_version=no
  35894. - need_lib_prefix=no
  35895. - ;;
  35896. - freebsd-*)
  35897. - library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  35898. - need_version=yes
  35899. - ;;
  35900. - esac
  35901. - shlibpath_var=LD_LIBRARY_PATH
  35902. - case $host_os in
  35903. - freebsd2*)
  35904. - shlibpath_overrides_runpath=yes
  35905. - ;;
  35906. - freebsd3.[01]* | freebsdelf3.[01]*)
  35907. - shlibpath_overrides_runpath=yes
  35908. - hardcode_into_libs=yes
  35909. - ;;
  35910. - freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  35911. - freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  35912. - shlibpath_overrides_runpath=no
  35913. - hardcode_into_libs=yes
  35914. - ;;
  35915. - freebsd*) # from 4.6 on
  35916. - shlibpath_overrides_runpath=yes
  35917. - hardcode_into_libs=yes
  35918. - ;;
  35919. - esac
  35920. - ;;
  35921. -
  35922. -gnu*)
  35923. - version_type=linux
  35924. - need_lib_prefix=no
  35925. - need_version=no
  35926. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  35927. - soname_spec='${libname}${release}${shared_ext}$major'
  35928. - shlibpath_var=LD_LIBRARY_PATH
  35929. - hardcode_into_libs=yes
  35930. - ;;
  35931. -
  35932. -hpux9* | hpux10* | hpux11*)
  35933. - # Give a soname corresponding to the major version so that dld.sl refuses to
  35934. - # link against other versions.
  35935. - version_type=sunos
  35936. - need_lib_prefix=no
  35937. - need_version=no
  35938. - case $host_cpu in
  35939. - ia64*)
  35940. - shrext_cmds='.so'
  35941. - hardcode_into_libs=yes
  35942. - dynamic_linker="$host_os dld.so"
  35943. - shlibpath_var=LD_LIBRARY_PATH
  35944. - shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  35945. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  35946. - soname_spec='${libname}${release}${shared_ext}$major'
  35947. - if test "X$HPUX_IA64_MODE" = X32; then
  35948. - sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  35949. - else
  35950. - sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  35951. - fi
  35952. - sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  35953. - ;;
  35954. - hppa*64*)
  35955. - shrext_cmds='.sl'
  35956. - hardcode_into_libs=yes
  35957. - dynamic_linker="$host_os dld.sl"
  35958. - shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  35959. - shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  35960. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  35961. - soname_spec='${libname}${release}${shared_ext}$major'
  35962. - sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  35963. - sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  35964. - ;;
  35965. - *)
  35966. - shrext_cmds='.sl'
  35967. - dynamic_linker="$host_os dld.sl"
  35968. - shlibpath_var=SHLIB_PATH
  35969. - shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  35970. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  35971. - soname_spec='${libname}${release}${shared_ext}$major'
  35972. - ;;
  35973. - esac
  35974. - # HP-UX runs *really* slowly unless shared libraries are mode 555.
  35975. - postinstall_cmds='chmod 555 $lib'
  35976. - ;;
  35977. -
  35978. -interix3*)
  35979. - version_type=linux
  35980. - need_lib_prefix=no
  35981. - need_version=no
  35982. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  35983. - soname_spec='${libname}${release}${shared_ext}$major'
  35984. - dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  35985. - shlibpath_var=LD_LIBRARY_PATH
  35986. - shlibpath_overrides_runpath=no
  35987. - hardcode_into_libs=yes
  35988. - ;;
  35989. -
  35990. -irix5* | irix6* | nonstopux*)
  35991. - case $host_os in
  35992. - nonstopux*) version_type=nonstopux ;;
  35993. - *)
  35994. - if test "$lt_cv_prog_gnu_ld" = yes; then
  35995. - version_type=linux
  35996. - else
  35997. - version_type=irix
  35998. - fi ;;
  35999. - esac
  36000. - need_lib_prefix=no
  36001. - need_version=no
  36002. - soname_spec='${libname}${release}${shared_ext}$major'
  36003. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  36004. - case $host_os in
  36005. - irix5* | nonstopux*)
  36006. - libsuff= shlibsuff=
  36007. - ;;
  36008. - *)
  36009. - case $LD in # libtool.m4 will add one of these switches to LD
  36010. - *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  36011. - libsuff= shlibsuff= libmagic=32-bit;;
  36012. - *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  36013. - libsuff=32 shlibsuff=N32 libmagic=N32;;
  36014. - *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  36015. - libsuff=64 shlibsuff=64 libmagic=64-bit;;
  36016. - *) libsuff= shlibsuff= libmagic=never-match;;
  36017. - esac
  36018. - ;;
  36019. - esac
  36020. - shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  36021. - shlibpath_overrides_runpath=no
  36022. - sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  36023. - sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  36024. - hardcode_into_libs=yes
  36025. - ;;
  36026. -
  36027. -# No shared lib support for Linux oldld, aout, or coff.
  36028. -linux*oldld* | linux*aout* | linux*coff*)
  36029. - dynamic_linker=no
  36030. - ;;
  36031. -
  36032. -# This must be Linux ELF.
  36033. -linux*)
  36034. - version_type=linux
  36035. - need_lib_prefix=no
  36036. - need_version=no
  36037. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  36038. - soname_spec='${libname}${release}${shared_ext}$major'
  36039. - finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  36040. - shlibpath_var=LD_LIBRARY_PATH
  36041. - shlibpath_overrides_runpath=no
  36042. - # This implies no fast_install, which is unacceptable.
  36043. - # Some rework will be needed to allow for fast_install
  36044. - # before this can be enabled.
  36045. - hardcode_into_libs=yes
  36046. -
  36047. - # find out which ABI we are using
  36048. - libsuff=
  36049. - case "$host_cpu" in
  36050. - x86_64*|s390x*|powerpc64*)
  36051. - echo '#line 15910 "configure"' > conftest.$ac_ext
  36052. - if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  36053. - (eval $ac_compile) 2>&5
  36054. - ac_status=$?
  36055. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  36056. - (exit $ac_status); }; then
  36057. - case `/usr/bin/file conftest.$ac_objext` in
  36058. - *64-bit*)
  36059. - libsuff=64
  36060. - sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
  36061. - ;;
  36062. - esac
  36063. - fi
  36064. - rm -rf conftest*
  36065. - ;;
  36066. - esac
  36067. -
  36068. - # Append ld.so.conf contents to the search path
  36069. - if test -f /etc/ld.so.conf; then
  36070. - 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/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
  36071. - sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
  36072. - fi
  36073. -
  36074. - # We used to test for /lib/ld.so.1 and disable shared libraries on
  36075. - # powerpc, because MkLinux only supported shared libraries with the
  36076. - # GNU dynamic linker. Since this was broken with cross compilers,
  36077. - # most powerpc-linux boxes support dynamic linking these days and
  36078. - # people can always --disable-shared, the test was removed, and we
  36079. - # assume the GNU/Linux dynamic linker is in use.
  36080. - dynamic_linker='GNU/Linux ld.so'
  36081. - ;;
  36082. -
  36083. -knetbsd*-gnu)
  36084. - version_type=linux
  36085. - need_lib_prefix=no
  36086. - need_version=no
  36087. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  36088. - soname_spec='${libname}${release}${shared_ext}$major'
  36089. - shlibpath_var=LD_LIBRARY_PATH
  36090. - shlibpath_overrides_runpath=no
  36091. - hardcode_into_libs=yes
  36092. - dynamic_linker='GNU ld.so'
  36093. - ;;
  36094. -
  36095. -netbsd*)
  36096. - version_type=sunos
  36097. - need_lib_prefix=no
  36098. - need_version=no
  36099. - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  36100. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  36101. - finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  36102. - dynamic_linker='NetBSD (a.out) ld.so'
  36103. - else
  36104. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  36105. - soname_spec='${libname}${release}${shared_ext}$major'
  36106. - dynamic_linker='NetBSD ld.elf_so'
  36107. - fi
  36108. - shlibpath_var=LD_LIBRARY_PATH
  36109. - shlibpath_overrides_runpath=yes
  36110. - hardcode_into_libs=yes
  36111. - ;;
  36112. -
  36113. -newsos6)
  36114. - version_type=linux
  36115. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  36116. - shlibpath_var=LD_LIBRARY_PATH
  36117. - shlibpath_overrides_runpath=yes
  36118. - ;;
  36119. -
  36120. -nto-qnx*)
  36121. - version_type=linux
  36122. - need_lib_prefix=no
  36123. - need_version=no
  36124. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  36125. - soname_spec='${libname}${release}${shared_ext}$major'
  36126. - shlibpath_var=LD_LIBRARY_PATH
  36127. - shlibpath_overrides_runpath=yes
  36128. - ;;
  36129. -
  36130. -openbsd*)
  36131. - version_type=sunos
  36132. - sys_lib_dlsearch_path_spec="/usr/lib"
  36133. - need_lib_prefix=no
  36134. - # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  36135. - case $host_os in
  36136. - openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  36137. - *) need_version=no ;;
  36138. - esac
  36139. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  36140. - finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  36141. - shlibpath_var=LD_LIBRARY_PATH
  36142. - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  36143. - case $host_os in
  36144. - openbsd2.[89] | openbsd2.[89].*)
  36145. - shlibpath_overrides_runpath=no
  36146. - ;;
  36147. - *)
  36148. - shlibpath_overrides_runpath=yes
  36149. - ;;
  36150. - esac
  36151. - else
  36152. - shlibpath_overrides_runpath=yes
  36153. - fi
  36154. - ;;
  36155. -
  36156. -os2*)
  36157. - libname_spec='$name'
  36158. - shrext_cmds=".dll"
  36159. - need_lib_prefix=no
  36160. - library_names_spec='$libname${shared_ext} $libname.a'
  36161. - dynamic_linker='OS/2 ld.exe'
  36162. - shlibpath_var=LIBPATH
  36163. - ;;
  36164. -
  36165. -osf3* | osf4* | osf5*)
  36166. - version_type=osf
  36167. - need_lib_prefix=no
  36168. - need_version=no
  36169. - soname_spec='${libname}${release}${shared_ext}$major'
  36170. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  36171. - shlibpath_var=LD_LIBRARY_PATH
  36172. - sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  36173. - sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  36174. - ;;
  36175. -
  36176. -solaris*)
  36177. - version_type=linux
  36178. - need_lib_prefix=no
  36179. - need_version=no
  36180. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  36181. - soname_spec='${libname}${release}${shared_ext}$major'
  36182. - shlibpath_var=LD_LIBRARY_PATH
  36183. - shlibpath_overrides_runpath=yes
  36184. - hardcode_into_libs=yes
  36185. - # ldd complains unless libraries are executable
  36186. - postinstall_cmds='chmod +x $lib'
  36187. - ;;
  36188. -
  36189. -sunos4*)
  36190. - version_type=sunos
  36191. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  36192. - finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  36193. - shlibpath_var=LD_LIBRARY_PATH
  36194. - shlibpath_overrides_runpath=yes
  36195. - if test "$with_gnu_ld" = yes; then
  36196. - need_lib_prefix=no
  36197. - fi
  36198. - need_version=yes
  36199. - ;;
  36200. -
  36201. -sysv4 | sysv4.3*)
  36202. - version_type=linux
  36203. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  36204. - soname_spec='${libname}${release}${shared_ext}$major'
  36205. - shlibpath_var=LD_LIBRARY_PATH
  36206. - case $host_vendor in
  36207. - sni)
  36208. - shlibpath_overrides_runpath=no
  36209. - need_lib_prefix=no
  36210. - export_dynamic_flag_spec='${wl}-Blargedynsym'
  36211. - runpath_var=LD_RUN_PATH
  36212. - ;;
  36213. - siemens)
  36214. - need_lib_prefix=no
  36215. - ;;
  36216. - motorola)
  36217. - need_lib_prefix=no
  36218. - need_version=no
  36219. - shlibpath_overrides_runpath=no
  36220. - sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  36221. - ;;
  36222. - esac
  36223. - ;;
  36224. -
  36225. -sysv4*MP*)
  36226. - if test -d /usr/nec ;then
  36227. - version_type=linux
  36228. - library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  36229. - soname_spec='$libname${shared_ext}.$major'
  36230. - shlibpath_var=LD_LIBRARY_PATH
  36231. - fi
  36232. - ;;
  36233. -
  36234. -sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  36235. - version_type=freebsd-elf
  36236. - need_lib_prefix=no
  36237. - need_version=no
  36238. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  36239. - soname_spec='${libname}${release}${shared_ext}$major'
  36240. - shlibpath_var=LD_LIBRARY_PATH
  36241. - hardcode_into_libs=yes
  36242. - if test "$with_gnu_ld" = yes; then
  36243. - sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  36244. - shlibpath_overrides_runpath=no
  36245. - else
  36246. - sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  36247. - shlibpath_overrides_runpath=yes
  36248. - case $host_os in
  36249. - sco3.2v5*)
  36250. - sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  36251. - ;;
  36252. - esac
  36253. - fi
  36254. - sys_lib_dlsearch_path_spec='/usr/lib'
  36255. - ;;
  36256. -
  36257. -uts4*)
  36258. - version_type=linux
  36259. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  36260. - soname_spec='${libname}${release}${shared_ext}$major'
  36261. - shlibpath_var=LD_LIBRARY_PATH
  36262. - ;;
  36263. -
  36264. -*)
  36265. - dynamic_linker=no
  36266. - ;;
  36267. -esac
  36268. -{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
  36269. -echo "${ECHO_T}$dynamic_linker" >&6; }
  36270. -test "$dynamic_linker" = no && can_build_shared=no
  36271. -
  36272. -variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  36273. -if test "$GCC" = yes; then
  36274. - variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  36275. -fi
  36276. -
  36277. -{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
  36278. -echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
  36279. -hardcode_action_F77=
  36280. -if test -n "$hardcode_libdir_flag_spec_F77" || \
  36281. - test -n "$runpath_var_F77" || \
  36282. - test "X$hardcode_automatic_F77" = "Xyes" ; then
  36283. -
  36284. - # We can hardcode non-existant directories.
  36285. - if test "$hardcode_direct_F77" != no &&
  36286. - # If the only mechanism to avoid hardcoding is shlibpath_var, we
  36287. - # have to relink, otherwise we might link with an installed library
  36288. - # when we should be linking with a yet-to-be-installed one
  36289. - ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
  36290. - test "$hardcode_minus_L_F77" != no; then
  36291. - # Linking always hardcodes the temporary library directory.
  36292. - hardcode_action_F77=relink
  36293. - else
  36294. - # We can link without hardcoding, and we can hardcode nonexisting dirs.
  36295. - hardcode_action_F77=immediate
  36296. - fi
  36297. -else
  36298. - # We cannot hardcode anything, or else we can only hardcode existing
  36299. - # directories.
  36300. - hardcode_action_F77=unsupported
  36301. -fi
  36302. -{ echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
  36303. -echo "${ECHO_T}$hardcode_action_F77" >&6; }
  36304. -
  36305. -if test "$hardcode_action_F77" = relink; then
  36306. - # Fast installation is not supported
  36307. - enable_fast_install=no
  36308. -elif test "$shlibpath_overrides_runpath" = yes ||
  36309. - test "$enable_shared" = no; then
  36310. - # Fast installation is not necessary
  36311. - enable_fast_install=needless
  36312. -fi
  36313. -
  36314. -
  36315. -# The else clause should only fire when bootstrapping the
  36316. -# libtool distribution, otherwise you forgot to ship ltmain.sh
  36317. -# with your package, and you will get complaints that there are
  36318. -# no rules to generate ltmain.sh.
  36319. -if test -f "$ltmain"; then
  36320. - # See if we are running on zsh, and set the options which allow our commands through
  36321. - # without removal of \ escapes.
  36322. - if test -n "${ZSH_VERSION+set}" ; then
  36323. - setopt NO_GLOB_SUBST
  36324. - fi
  36325. - # Now quote all the things that may contain metacharacters while being
  36326. - # careful not to overquote the AC_SUBSTed values. We take copies of the
  36327. - # variables and quote the copies for generation of the libtool script.
  36328. - for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
  36329. - SED SHELL STRIP \
  36330. - libname_spec library_names_spec soname_spec extract_expsyms_cmds \
  36331. - old_striplib striplib file_magic_cmd finish_cmds finish_eval \
  36332. - deplibs_check_method reload_flag reload_cmds need_locks \
  36333. - lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
  36334. - lt_cv_sys_global_symbol_to_c_name_address \
  36335. - sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  36336. - old_postinstall_cmds old_postuninstall_cmds \
  36337. - compiler_F77 \
  36338. - CC_F77 \
  36339. - LD_F77 \
  36340. - lt_prog_compiler_wl_F77 \
  36341. - lt_prog_compiler_pic_F77 \
  36342. - lt_prog_compiler_static_F77 \
  36343. - lt_prog_compiler_no_builtin_flag_F77 \
  36344. - export_dynamic_flag_spec_F77 \
  36345. - thread_safe_flag_spec_F77 \
  36346. - whole_archive_flag_spec_F77 \
  36347. - enable_shared_with_static_runtimes_F77 \
  36348. - old_archive_cmds_F77 \
  36349. - old_archive_from_new_cmds_F77 \
  36350. - predep_objects_F77 \
  36351. - postdep_objects_F77 \
  36352. - predeps_F77 \
  36353. - postdeps_F77 \
  36354. - compiler_lib_search_path_F77 \
  36355. - archive_cmds_F77 \
  36356. - archive_expsym_cmds_F77 \
  36357. - postinstall_cmds_F77 \
  36358. - postuninstall_cmds_F77 \
  36359. - old_archive_from_expsyms_cmds_F77 \
  36360. - allow_undefined_flag_F77 \
  36361. - no_undefined_flag_F77 \
  36362. - export_symbols_cmds_F77 \
  36363. - hardcode_libdir_flag_spec_F77 \
  36364. - hardcode_libdir_flag_spec_ld_F77 \
  36365. - hardcode_libdir_separator_F77 \
  36366. - hardcode_automatic_F77 \
  36367. - module_cmds_F77 \
  36368. - module_expsym_cmds_F77 \
  36369. - lt_cv_prog_compiler_c_o_F77 \
  36370. - exclude_expsyms_F77 \
  36371. - include_expsyms_F77; do
  36372. -
  36373. - case $var in
  36374. - old_archive_cmds_F77 | \
  36375. - old_archive_from_new_cmds_F77 | \
  36376. - archive_cmds_F77 | \
  36377. - archive_expsym_cmds_F77 | \
  36378. - module_cmds_F77 | \
  36379. - module_expsym_cmds_F77 | \
  36380. - old_archive_from_expsyms_cmds_F77 | \
  36381. - export_symbols_cmds_F77 | \
  36382. - extract_expsyms_cmds | reload_cmds | finish_cmds | \
  36383. - postinstall_cmds | postuninstall_cmds | \
  36384. - old_postinstall_cmds | old_postuninstall_cmds | \
  36385. - sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  36386. - # Double-quote double-evaled strings.
  36387. - eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
  36388. - ;;
  36389. - *)
  36390. - eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
  36391. - ;;
  36392. - esac
  36393. - done
  36394. -
  36395. - case $lt_echo in
  36396. - *'\$0 --fallback-echo"')
  36397. - lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
  36398. - ;;
  36399. - esac
  36400. -
  36401. -cfgfile="$ofile"
  36402. -
  36403. - cat <<__EOF__ >> "$cfgfile"
  36404. -# ### BEGIN LIBTOOL TAG CONFIG: $tagname
  36405. -
  36406. -# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  36407. -
  36408. -# Shell to use when invoking shell scripts.
  36409. -SHELL=$lt_SHELL
  36410. -
  36411. -# Whether or not to build shared libraries.
  36412. -build_libtool_libs=$enable_shared
  36413. -
  36414. -# Whether or not to build static libraries.
  36415. -build_old_libs=$enable_static
  36416. -
  36417. -# Whether or not to add -lc for building shared libraries.
  36418. -build_libtool_need_lc=$archive_cmds_need_lc_F77
  36419. -
  36420. -# Whether or not to disallow shared libs when runtime libs are static
  36421. -allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
  36422. -
  36423. -# Whether or not to optimize for fast installation.
  36424. -fast_install=$enable_fast_install
  36425. -
  36426. -# The host system.
  36427. -host_alias=$host_alias
  36428. -host=$host
  36429. -host_os=$host_os
  36430. -
  36431. -# The build system.
  36432. -build_alias=$build_alias
  36433. -build=$build
  36434. -build_os=$build_os
  36435. -
  36436. -# An echo program that does not interpret backslashes.
  36437. -echo=$lt_echo
  36438. -
  36439. -# The archiver.
  36440. -AR=$lt_AR
  36441. -AR_FLAGS=$lt_AR_FLAGS
  36442. -
  36443. -# A C compiler.
  36444. -LTCC=$lt_LTCC
  36445. -
  36446. -# LTCC compiler flags.
  36447. -LTCFLAGS=$lt_LTCFLAGS
  36448. -
  36449. -# A language-specific compiler.
  36450. -CC=$lt_compiler_F77
  36451. -
  36452. -# Is the compiler the GNU C compiler?
  36453. -with_gcc=$GCC_F77
  36454. -
  36455. -gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\`
  36456. -gcc_ver=\`gcc -dumpversion\`
  36457. -
  36458. -# An ERE matcher.
  36459. -EGREP=$lt_EGREP
  36460. -
  36461. -# The linker used to build libraries.
  36462. -LD=$lt_LD_F77
  36463. -
  36464. -# Whether we need hard or soft links.
  36465. -LN_S=$lt_LN_S
  36466. -
  36467. -# A BSD-compatible nm program.
  36468. -NM=$lt_NM
  36469. -
  36470. -# A symbol stripping program
  36471. -STRIP=$lt_STRIP
  36472. -
  36473. -# Used to examine libraries when file_magic_cmd begins "file"
  36474. -MAGIC_CMD=$MAGIC_CMD
  36475. -
  36476. -# Used on cygwin: DLL creation program.
  36477. -DLLTOOL="$DLLTOOL"
  36478. -
  36479. -# Used on cygwin: object dumper.
  36480. -OBJDUMP="$OBJDUMP"
  36481. -
  36482. -# Used on cygwin: assembler.
  36483. -AS="$AS"
  36484. -
  36485. -# The name of the directory that contains temporary libtool files.
  36486. -objdir=$objdir
  36487. -
  36488. -# How to create reloadable object files.
  36489. -reload_flag=$lt_reload_flag
  36490. -reload_cmds=$lt_reload_cmds
  36491. -
  36492. -# How to pass a linker flag through the compiler.
  36493. -wl=$lt_lt_prog_compiler_wl_F77
  36494. -
  36495. -# Object file suffix (normally "o").
  36496. -objext="$ac_objext"
  36497. -
  36498. -# Old archive suffix (normally "a").
  36499. -libext="$libext"
  36500. -
  36501. -# Shared library suffix (normally ".so").
  36502. -shrext_cmds='$shrext_cmds'
  36503. -
  36504. -# Executable file suffix (normally "").
  36505. -exeext="$exeext"
  36506. -
  36507. -# Additional compiler flags for building library objects.
  36508. -pic_flag=$lt_lt_prog_compiler_pic_F77
  36509. -pic_mode=$pic_mode
  36510. -
  36511. -# What is the maximum length of a command?
  36512. -max_cmd_len=$lt_cv_sys_max_cmd_len
  36513. -
  36514. -# Does compiler simultaneously support -c and -o options?
  36515. -compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
  36516. -
  36517. -# Must we lock files when doing compilation?
  36518. -need_locks=$lt_need_locks
  36519. -
  36520. -# Do we need the lib prefix for modules?
  36521. -need_lib_prefix=$need_lib_prefix
  36522. -
  36523. -# Do we need a version for libraries?
  36524. -need_version=$need_version
  36525. -
  36526. -# Whether dlopen is supported.
  36527. -dlopen_support=$enable_dlopen
  36528. -
  36529. -# Whether dlopen of programs is supported.
  36530. -dlopen_self=$enable_dlopen_self
  36531. -
  36532. -# Whether dlopen of statically linked programs is supported.
  36533. -dlopen_self_static=$enable_dlopen_self_static
  36534. -
  36535. -# Compiler flag to prevent dynamic linking.
  36536. -link_static_flag=$lt_lt_prog_compiler_static_F77
  36537. -
  36538. -# Compiler flag to turn off builtin functions.
  36539. -no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
  36540. -
  36541. -# Compiler flag to allow reflexive dlopens.
  36542. -export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
  36543. -
  36544. -# Compiler flag to generate shared objects directly from archives.
  36545. -whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
  36546. -
  36547. -# Compiler flag to generate thread-safe objects.
  36548. -thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
  36549. -
  36550. -# Library versioning type.
  36551. -version_type=$version_type
  36552. -
  36553. -# Format of library name prefix.
  36554. -libname_spec=$lt_libname_spec
  36555. -
  36556. -# List of archive names. First name is the real one, the rest are links.
  36557. -# The last name is the one that the linker finds with -lNAME.
  36558. -library_names_spec=$lt_library_names_spec
  36559. -
  36560. -# The coded name of the library, if different from the real name.
  36561. -soname_spec=$lt_soname_spec
  36562. -
  36563. -# Commands used to build and install an old-style archive.
  36564. -RANLIB=$lt_RANLIB
  36565. -old_archive_cmds=$lt_old_archive_cmds_F77
  36566. -old_postinstall_cmds=$lt_old_postinstall_cmds
  36567. -old_postuninstall_cmds=$lt_old_postuninstall_cmds
  36568. -
  36569. -# Create an old-style archive from a shared archive.
  36570. -old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
  36571. -
  36572. -# Create a temporary old-style archive to link instead of a shared archive.
  36573. -old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
  36574. -
  36575. -# Commands used to build and install a shared archive.
  36576. -archive_cmds=$lt_archive_cmds_F77
  36577. -archive_expsym_cmds=$lt_archive_expsym_cmds_F77
  36578. -postinstall_cmds=$lt_postinstall_cmds
  36579. -postuninstall_cmds=$lt_postuninstall_cmds
  36580. -
  36581. -# Commands used to build a loadable module (assumed same as above if empty)
  36582. -module_cmds=$lt_module_cmds_F77
  36583. -module_expsym_cmds=$lt_module_expsym_cmds_F77
  36584. -
  36585. -# Commands to strip libraries.
  36586. -old_striplib=$lt_old_striplib
  36587. -striplib=$lt_striplib
  36588. -
  36589. -# Dependencies to place before the objects being linked to create a
  36590. -# shared library.
  36591. -predep_objects=\`echo $lt_predep_objects_F77 | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
  36592. -
  36593. -# Dependencies to place after the objects being linked to create a
  36594. -# shared library.
  36595. -postdep_objects=\`echo $lt_postdep_objects_F77 | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
  36596. -
  36597. -# Dependencies to place before the objects being linked to create a
  36598. -# shared library.
  36599. -predeps=$lt_predeps_F77
  36600. -
  36601. -# Dependencies to place after the objects being linked to create a
  36602. -# shared library.
  36603. -postdeps=$lt_postdeps_F77
  36604. -
  36605. -# The library search path used internally by the compiler when linking
  36606. -# a shared library.
  36607. -compiler_lib_search_path=\`echo $lt_compiler_lib_search_path_F77 | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
  36608. -
  36609. -# Method to check whether dependent libraries are shared objects.
  36610. -deplibs_check_method=$lt_deplibs_check_method
  36611. -
  36612. -# Command to use when deplibs_check_method == file_magic.
  36613. -file_magic_cmd=$lt_file_magic_cmd
  36614. -
  36615. -# Flag that allows shared libraries with undefined symbols to be built.
  36616. -allow_undefined_flag=$lt_allow_undefined_flag_F77
  36617. -
  36618. -# Flag that forces no undefined symbols.
  36619. -no_undefined_flag=$lt_no_undefined_flag_F77
  36620. -
  36621. -# Commands used to finish a libtool library installation in a directory.
  36622. -finish_cmds=$lt_finish_cmds
  36623. -
  36624. -# Same as above, but a single script fragment to be evaled but not shown.
  36625. -finish_eval=$lt_finish_eval
  36626. -
  36627. -# Take the output of nm and produce a listing of raw symbols and C names.
  36628. -global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  36629. -
  36630. -# Transform the output of nm in a proper C declaration
  36631. -global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  36632. -
  36633. -# Transform the output of nm in a C name address pair
  36634. -global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  36635. -
  36636. -# This is the shared library runtime path variable.
  36637. -runpath_var=$runpath_var
  36638. -
  36639. -# This is the shared library path variable.
  36640. -shlibpath_var=$shlibpath_var
  36641. -
  36642. -# Is shlibpath searched before the hard-coded library search path?
  36643. -shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  36644. -
  36645. -# How to hardcode a shared library path into an executable.
  36646. -hardcode_action=$hardcode_action_F77
  36647. -
  36648. -# Whether we should hardcode library paths into libraries.
  36649. -hardcode_into_libs=$hardcode_into_libs
  36650. -
  36651. -# Flag to hardcode \$libdir into a binary during linking.
  36652. -# This must work even if \$libdir does not exist.
  36653. -hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
  36654. -
  36655. -# If ld is used when linking, flag to hardcode \$libdir into
  36656. -# a binary during linking. This must work even if \$libdir does
  36657. -# not exist.
  36658. -hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
  36659. -
  36660. -# Whether we need a single -rpath flag with a separated argument.
  36661. -hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
  36662. -
  36663. -# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
  36664. -# resulting binary.
  36665. -hardcode_direct=$hardcode_direct_F77
  36666. -
  36667. -# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  36668. -# resulting binary.
  36669. -hardcode_minus_L=$hardcode_minus_L_F77
  36670. -
  36671. -# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
  36672. -# the resulting binary.
  36673. -hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
  36674. -
  36675. -# Set to yes if building a shared library automatically hardcodes DIR into the library
  36676. -# and all subsequent libraries and executables linked against it.
  36677. -hardcode_automatic=$hardcode_automatic_F77
  36678. -
  36679. -# Variables whose values should be saved in libtool wrapper scripts and
  36680. -# restored at relink time.
  36681. -variables_saved_for_relink="$variables_saved_for_relink"
  36682. -
  36683. -# Whether libtool must link a program against all its dependency libraries.
  36684. -link_all_deplibs=$link_all_deplibs_F77
  36685. -
  36686. -# Compile-time system search path for libraries
  36687. -sys_lib_search_path_spec=\`echo $lt_sys_lib_search_path_spec | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
  36688. -
  36689. -# Run-time system search path for libraries
  36690. -sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  36691. -
  36692. -# Fix the shell variable \$srcfile for the compiler.
  36693. -fix_srcfile_path="$fix_srcfile_path_F77"
  36694. -
  36695. -# Set to yes if exported symbols are required.
  36696. -always_export_symbols=$always_export_symbols_F77
  36697. -
  36698. -# The commands to list exported symbols.
  36699. -export_symbols_cmds=$lt_export_symbols_cmds_F77
  36700. -
  36701. -# The commands to extract the exported symbol list from a shared archive.
  36702. -extract_expsyms_cmds=$lt_extract_expsyms_cmds
  36703. -
  36704. -# Symbols that should not be listed in the preloaded symbols.
  36705. -exclude_expsyms=$lt_exclude_expsyms_F77
  36706. -
  36707. -# Symbols that must always be exported.
  36708. -include_expsyms=$lt_include_expsyms_F77
  36709. -
  36710. -# ### END LIBTOOL TAG CONFIG: $tagname
  36711. -
  36712. -__EOF__
  36713. -
  36714. -
  36715. -else
  36716. - # If there is no Makefile yet, we rely on a make rule to execute
  36717. - # `config.status --recheck' to rerun these tests and create the
  36718. - # libtool script then.
  36719. - ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  36720. - if test -f "$ltmain_in"; then
  36721. - test -f Makefile && make "$ltmain"
  36722. - fi
  36723. -fi
  36724. -
  36725. -
  36726. -ac_ext=c
  36727. -ac_cpp='$CPP $CPPFLAGS'
  36728. -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  36729. -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  36730. -ac_compiler_gnu=$ac_cv_c_compiler_gnu
  36731. -
  36732. -CC="$lt_save_CC"
  36733. -
  36734. - else
  36735. - tagname=""
  36736. - fi
  36737. - ;;
  36738. -
  36739. - GCJ)
  36740. - if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
  36741. -
  36742. -
  36743. -# Source file extension for Java test sources.
  36744. -ac_ext=java
  36745. -
  36746. -# Object file extension for compiled Java test sources.
  36747. -objext=o
  36748. -objext_GCJ=$objext
  36749. -
  36750. -# Code to be used in simple compile tests
  36751. -lt_simple_compile_test_code="class foo {}\n"
  36752. -
  36753. -# Code to be used in simple link tests
  36754. -lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
  36755. -
  36756. -# ltmain only uses $CC for tagged configurations so make sure $CC is set.
  36757. -
  36758. -# If no C compiler was specified, use CC.
  36759. -LTCC=${LTCC-"$CC"}
  36760. -
  36761. -# If no C compiler flags were specified, use CFLAGS.
  36762. -LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  36763. -
  36764. -# Allow CC to be a program name with arguments.
  36765. -compiler=$CC
  36766. -
  36767. -
  36768. -# save warnings/boilerplate of simple test code
  36769. -ac_outfile=conftest.$ac_objext
  36770. -printf "$lt_simple_compile_test_code" >conftest.$ac_ext
  36771. -eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  36772. -_lt_compiler_boilerplate=`cat conftest.err`
  36773. -$rm conftest*
  36774. -
  36775. -ac_outfile=conftest.$ac_objext
  36776. -printf "$lt_simple_link_test_code" >conftest.$ac_ext
  36777. -eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  36778. -_lt_linker_boilerplate=`cat conftest.err`
  36779. -$rm conftest*
  36780. -
  36781. -
  36782. -# Allow CC to be a program name with arguments.
  36783. -lt_save_CC="$CC"
  36784. -CC=${GCJ-"gcj"}
  36785. -compiler=$CC
  36786. -compiler_GCJ=$CC
  36787. -for cc_temp in $compiler""; do
  36788. - case $cc_temp in
  36789. - compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  36790. - distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  36791. - \-*) ;;
  36792. - *) break;;
  36793. - esac
  36794. -done
  36795. -cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  36796. -
  36797. -
  36798. -# GCJ did not exist at the time GCC didn't implicitly link libc in.
  36799. -archive_cmds_need_lc_GCJ=no
  36800. -
  36801. -old_archive_cmds_GCJ=$old_archive_cmds
  36802. -
  36803. -
  36804. -lt_prog_compiler_no_builtin_flag_GCJ=
  36805. -
  36806. -if test "$GCC" = yes; then
  36807. - lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
  36808. -
  36809. -
  36810. -{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  36811. -echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
  36812. -if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
  36813. - echo $ECHO_N "(cached) $ECHO_C" >&6
  36814. -else
  36815. - lt_cv_prog_compiler_rtti_exceptions=no
  36816. - ac_outfile=conftest.$ac_objext
  36817. - printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  36818. - lt_compiler_flag="-fno-rtti -fno-exceptions"
  36819. - # Insert the option either (1) after the last *FLAGS variable, or
  36820. - # (2) before a word containing "conftest.", or (3) at the end.
  36821. - # Note that $ac_compile itself does not contain backslashes and begins
  36822. - # with a dollar sign (not a hyphen), so the echo should work correctly.
  36823. - # The option is referenced via a variable to avoid confusing sed.
  36824. - lt_compile=`echo "$ac_compile" | $SED \
  36825. - -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  36826. - -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  36827. - -e 's:$: $lt_compiler_flag:'`
  36828. - (eval echo "\"\$as_me:16687: $lt_compile\"" >&5)
  36829. - (eval "$lt_compile" 2>conftest.err)
  36830. - ac_status=$?
  36831. - cat conftest.err >&5
  36832. - echo "$as_me:16691: \$? = $ac_status" >&5
  36833. - if (exit $ac_status) && test -s "$ac_outfile"; then
  36834. - # The compiler can only warn and ignore the option if not recognized
  36835. - # So say no if there are warnings other than the usual output.
  36836. - $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  36837. - $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  36838. - if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  36839. - lt_cv_prog_compiler_rtti_exceptions=yes
  36840. - fi
  36841. - fi
  36842. - $rm conftest*
  36843. -
  36844. -fi
  36845. -{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  36846. -echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  36847. -
  36848. -if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  36849. - lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
  36850. -else
  36851. - :
  36852. -fi
  36853. -
  36854. -fi
  36855. -
  36856. -lt_prog_compiler_wl_GCJ=
  36857. -lt_prog_compiler_pic_GCJ=
  36858. -lt_prog_compiler_static_GCJ=
  36859. -
  36860. -{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
  36861. -echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
  36862. -
  36863. - if test "$GCC" = yes; then
  36864. - lt_prog_compiler_wl_GCJ='-Wl,'
  36865. - lt_prog_compiler_static_GCJ='-static'
  36866. -
  36867. - case $host_os in
  36868. - aix*)
  36869. - # All AIX code is PIC.
  36870. - if test "$host_cpu" = ia64; then
  36871. - # AIX 5 now supports IA64 processor
  36872. - lt_prog_compiler_static_GCJ='-Bstatic'
  36873. - fi
  36874. - ;;
  36875. -
  36876. - amigaos*)
  36877. - # FIXME: we need at least 68020 code to build shared libraries, but
  36878. - # adding the `-m68020' flag to GCC prevents building anything better,
  36879. - # like `-m68040'.
  36880. - lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
  36881. - ;;
  36882. -
  36883. - beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  36884. - # PIC is the default for these OSes.
  36885. - ;;
  36886. -
  36887. - mingw* | pw32* | os2*)
  36888. - # This hack is so that the source file can tell whether it is being
  36889. - # built for inclusion in a dll (and should export symbols for example).
  36890. - lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
  36891. - ;;
  36892. -
  36893. - darwin* | rhapsody*)
  36894. - # PIC is the default on this platform
  36895. - # Common symbols not allowed in MH_DYLIB files
  36896. - lt_prog_compiler_pic_GCJ='-fno-common'
  36897. - ;;
  36898. -
  36899. - interix3*)
  36900. - # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  36901. - # Instead, we relocate shared libraries at runtime.
  36902. - ;;
  36903. -
  36904. - msdosdjgpp*)
  36905. - # Just because we use GCC doesn't mean we suddenly get shared libraries
  36906. - # on systems that don't support them.
  36907. - lt_prog_compiler_can_build_shared_GCJ=no
  36908. - enable_shared=no
  36909. - ;;
  36910. -
  36911. - sysv4*MP*)
  36912. - if test -d /usr/nec; then
  36913. - lt_prog_compiler_pic_GCJ=-Kconform_pic
  36914. - fi
  36915. - ;;
  36916. -
  36917. - hpux*)
  36918. - # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  36919. - # not for PA HP-UX.
  36920. - case $host_cpu in
  36921. - hppa*64*|ia64*)
  36922. - # +Z the default
  36923. - ;;
  36924. - *)
  36925. - lt_prog_compiler_pic_GCJ='-fPIC'
  36926. - ;;
  36927. - esac
  36928. - ;;
  36929. -
  36930. - *)
  36931. - lt_prog_compiler_pic_GCJ='-fPIC'
  36932. - ;;
  36933. - esac
  36934. - else
  36935. - # PORTME Check for flag to pass linker flags through the system compiler.
  36936. - case $host_os in
  36937. - aix*)
  36938. - lt_prog_compiler_wl_GCJ='-Wl,'
  36939. - if test "$host_cpu" = ia64; then
  36940. - # AIX 5 now supports IA64 processor
  36941. - lt_prog_compiler_static_GCJ='-Bstatic'
  36942. - else
  36943. - lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
  36944. - fi
  36945. - ;;
  36946. - darwin*)
  36947. - # PIC is the default on this platform
  36948. - # Common symbols not allowed in MH_DYLIB files
  36949. - case $cc_basename in
  36950. - xlc*)
  36951. - lt_prog_compiler_pic_GCJ='-qnocommon'
  36952. - lt_prog_compiler_wl_GCJ='-Wl,'
  36953. - ;;
  36954. - esac
  36955. - ;;
  36956. -
  36957. - mingw* | pw32* | os2*)
  36958. - # This hack is so that the source file can tell whether it is being
  36959. - # built for inclusion in a dll (and should export symbols for example).
  36960. - lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
  36961. - ;;
  36962. -
  36963. - hpux9* | hpux10* | hpux11*)
  36964. - lt_prog_compiler_wl_GCJ='-Wl,'
  36965. - # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  36966. - # not for PA HP-UX.
  36967. - case $host_cpu in
  36968. - hppa*64*|ia64*)
  36969. - # +Z the default
  36970. - ;;
  36971. - *)
  36972. - lt_prog_compiler_pic_GCJ='+Z'
  36973. - ;;
  36974. - esac
  36975. - # Is there a better lt_prog_compiler_static that works with the bundled CC?
  36976. - lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
  36977. - ;;
  36978. -
  36979. - irix5* | irix6* | nonstopux*)
  36980. - lt_prog_compiler_wl_GCJ='-Wl,'
  36981. - # PIC (with -KPIC) is the default.
  36982. - lt_prog_compiler_static_GCJ='-non_shared'
  36983. - ;;
  36984. -
  36985. - newsos6)
  36986. - lt_prog_compiler_pic_GCJ='-KPIC'
  36987. - lt_prog_compiler_static_GCJ='-Bstatic'
  36988. - ;;
  36989. -
  36990. - linux*)
  36991. - case $cc_basename in
  36992. - icc* | ecc*)
  36993. - lt_prog_compiler_wl_GCJ='-Wl,'
  36994. - lt_prog_compiler_pic_GCJ='-KPIC'
  36995. - lt_prog_compiler_static_GCJ='-static'
  36996. - ;;
  36997. - pgcc* | pgf77* | pgf90* | pgf95*)
  36998. - # Portland Group compilers (*not* the Pentium gcc compiler,
  36999. - # which looks to be a dead project)
  37000. - lt_prog_compiler_wl_GCJ='-Wl,'
  37001. - lt_prog_compiler_pic_GCJ='-fpic'
  37002. - lt_prog_compiler_static_GCJ='-Bstatic'
  37003. - ;;
  37004. - ccc*)
  37005. - lt_prog_compiler_wl_GCJ='-Wl,'
  37006. - # All Alpha code is PIC.
  37007. - lt_prog_compiler_static_GCJ='-non_shared'
  37008. - ;;
  37009. - esac
  37010. - ;;
  37011. -
  37012. - osf3* | osf4* | osf5*)
  37013. - lt_prog_compiler_wl_GCJ='-Wl,'
  37014. - # All OSF/1 code is PIC.
  37015. - lt_prog_compiler_static_GCJ='-non_shared'
  37016. - ;;
  37017. -
  37018. - solaris*)
  37019. - lt_prog_compiler_pic_GCJ='-KPIC'
  37020. - lt_prog_compiler_static_GCJ='-Bstatic'
  37021. - case $cc_basename in
  37022. - f77* | f90* | f95*)
  37023. - lt_prog_compiler_wl_GCJ='-Qoption ld ';;
  37024. - *)
  37025. - lt_prog_compiler_wl_GCJ='-Wl,';;
  37026. - esac
  37027. - ;;
  37028. -
  37029. - sunos4*)
  37030. - lt_prog_compiler_wl_GCJ='-Qoption ld '
  37031. - lt_prog_compiler_pic_GCJ='-PIC'
  37032. - lt_prog_compiler_static_GCJ='-Bstatic'
  37033. - ;;
  37034. -
  37035. - sysv4 | sysv4.2uw2* | sysv4.3*)
  37036. - lt_prog_compiler_wl_GCJ='-Wl,'
  37037. - lt_prog_compiler_pic_GCJ='-KPIC'
  37038. - lt_prog_compiler_static_GCJ='-Bstatic'
  37039. - ;;
  37040. -
  37041. - sysv4*MP*)
  37042. - if test -d /usr/nec ;then
  37043. - lt_prog_compiler_pic_GCJ='-Kconform_pic'
  37044. - lt_prog_compiler_static_GCJ='-Bstatic'
  37045. - fi
  37046. - ;;
  37047. -
  37048. - sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  37049. - lt_prog_compiler_wl_GCJ='-Wl,'
  37050. - lt_prog_compiler_pic_GCJ='-KPIC'
  37051. - lt_prog_compiler_static_GCJ='-Bstatic'
  37052. - ;;
  37053. -
  37054. - unicos*)
  37055. - lt_prog_compiler_wl_GCJ='-Wl,'
  37056. - lt_prog_compiler_can_build_shared_GCJ=no
  37057. - ;;
  37058. -
  37059. - uts4*)
  37060. - lt_prog_compiler_pic_GCJ='-pic'
  37061. - lt_prog_compiler_static_GCJ='-Bstatic'
  37062. - ;;
  37063. -
  37064. - *)
  37065. - lt_prog_compiler_can_build_shared_GCJ=no
  37066. - ;;
  37067. - esac
  37068. - fi
  37069. -
  37070. -{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
  37071. -echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
  37072. -
  37073. -#
  37074. -# Check to make sure the PIC flag actually works.
  37075. -#
  37076. -if test -n "$lt_prog_compiler_pic_GCJ"; then
  37077. -
  37078. -{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
  37079. -echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
  37080. -if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
  37081. - echo $ECHO_N "(cached) $ECHO_C" >&6
  37082. -else
  37083. - lt_prog_compiler_pic_works_GCJ=no
  37084. - ac_outfile=conftest.$ac_objext
  37085. - printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  37086. - lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
  37087. - # Insert the option either (1) after the last *FLAGS variable, or
  37088. - # (2) before a word containing "conftest.", or (3) at the end.
  37089. - # Note that $ac_compile itself does not contain backslashes and begins
  37090. - # with a dollar sign (not a hyphen), so the echo should work correctly.
  37091. - # The option is referenced via a variable to avoid confusing sed.
  37092. - lt_compile=`echo "$ac_compile" | $SED \
  37093. - -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  37094. - -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  37095. - -e 's:$: $lt_compiler_flag:'`
  37096. - (eval echo "\"\$as_me:16955: $lt_compile\"" >&5)
  37097. - (eval "$lt_compile" 2>conftest.err)
  37098. - ac_status=$?
  37099. - cat conftest.err >&5
  37100. - echo "$as_me:16959: \$? = $ac_status" >&5
  37101. - if (exit $ac_status) && test -s "$ac_outfile"; then
  37102. - # The compiler can only warn and ignore the option if not recognized
  37103. - # So say no if there are warnings other than the usual output.
  37104. - $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  37105. - $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  37106. - if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  37107. - lt_prog_compiler_pic_works_GCJ=yes
  37108. - fi
  37109. - fi
  37110. - $rm conftest*
  37111. -
  37112. -fi
  37113. -{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
  37114. -echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
  37115. -
  37116. -if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
  37117. - case $lt_prog_compiler_pic_GCJ in
  37118. - "" | " "*) ;;
  37119. - *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
  37120. - esac
  37121. -else
  37122. - lt_prog_compiler_pic_GCJ=
  37123. - lt_prog_compiler_can_build_shared_GCJ=no
  37124. -fi
  37125. -
  37126. -fi
  37127. -case $host_os in
  37128. - # For platforms which do not support PIC, -DPIC is meaningless:
  37129. - *djgpp*)
  37130. - lt_prog_compiler_pic_GCJ=
  37131. - ;;
  37132. - *)
  37133. - lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
  37134. - ;;
  37135. -esac
  37136. -
  37137. -#
  37138. -# Check to make sure the static flag actually works.
  37139. -#
  37140. -wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
  37141. -{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  37142. -echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
  37143. -if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
  37144. - echo $ECHO_N "(cached) $ECHO_C" >&6
  37145. -else
  37146. - lt_prog_compiler_static_works_GCJ=no
  37147. - save_LDFLAGS="$LDFLAGS"
  37148. - LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  37149. - printf "$lt_simple_link_test_code" > conftest.$ac_ext
  37150. - if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  37151. - # The linker can only warn and ignore the option if not recognized
  37152. - # So say no if there are warnings
  37153. - if test -s conftest.err; then
  37154. - # Append any errors to the config.log.
  37155. - cat conftest.err 1>&5
  37156. - $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
  37157. - $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  37158. - if diff conftest.exp conftest.er2 >/dev/null; then
  37159. - lt_prog_compiler_static_works_GCJ=yes
  37160. - fi
  37161. - else
  37162. - lt_prog_compiler_static_works_GCJ=yes
  37163. - fi
  37164. - fi
  37165. - $rm conftest*
  37166. - LDFLAGS="$save_LDFLAGS"
  37167. -
  37168. -fi
  37169. -{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
  37170. -echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
  37171. -
  37172. -if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
  37173. - :
  37174. -else
  37175. - lt_prog_compiler_static_GCJ=
  37176. -fi
  37177. -
  37178. -
  37179. -{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
  37180. -echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
  37181. -if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
  37182. - echo $ECHO_N "(cached) $ECHO_C" >&6
  37183. -else
  37184. - lt_cv_prog_compiler_c_o_GCJ=no
  37185. - $rm -r conftest 2>/dev/null
  37186. - mkdir conftest
  37187. - cd conftest
  37188. - mkdir out
  37189. - printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  37190. -
  37191. - lt_compiler_flag="-o out/conftest2.$ac_objext"
  37192. - # Insert the option either (1) after the last *FLAGS variable, or
  37193. - # (2) before a word containing "conftest.", or (3) at the end.
  37194. - # Note that $ac_compile itself does not contain backslashes and begins
  37195. - # with a dollar sign (not a hyphen), so the echo should work correctly.
  37196. - lt_compile=`echo "$ac_compile" | $SED \
  37197. - -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  37198. - -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  37199. - -e 's:$: $lt_compiler_flag:'`
  37200. - (eval echo "\"\$as_me:17059: $lt_compile\"" >&5)
  37201. - (eval "$lt_compile" 2>out/conftest.err)
  37202. - ac_status=$?
  37203. - cat out/conftest.err >&5
  37204. - echo "$as_me:17063: \$? = $ac_status" >&5
  37205. - if (exit $ac_status) && test -s out/conftest2.$ac_objext
  37206. - then
  37207. - # The compiler can only warn and ignore the option if not recognized
  37208. - # So say no if there are warnings
  37209. - $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  37210. - $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  37211. - if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  37212. - lt_cv_prog_compiler_c_o_GCJ=yes
  37213. - fi
  37214. - fi
  37215. - chmod u+w . 2>&5
  37216. - $rm conftest*
  37217. - # SGI C++ compiler will create directory out/ii_files/ for
  37218. - # template instantiation
  37219. - test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
  37220. - $rm out/* && rmdir out
  37221. - cd ..
  37222. - rmdir conftest
  37223. - $rm conftest*
  37224. -
  37225. -fi
  37226. -{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
  37227. -echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
  37228. -
  37229. -
  37230. -hard_links="nottested"
  37231. -if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
  37232. - # do not overwrite the value of need_locks provided by the user
  37233. - { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
  37234. -echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
  37235. - hard_links=yes
  37236. - $rm conftest*
  37237. - ln conftest.a conftest.b 2>/dev/null && hard_links=no
  37238. - touch conftest.a
  37239. - ln conftest.a conftest.b 2>&5 || hard_links=no
  37240. - ln conftest.a conftest.b 2>/dev/null && hard_links=no
  37241. - { echo "$as_me:$LINENO: result: $hard_links" >&5
  37242. -echo "${ECHO_T}$hard_links" >&6; }
  37243. - if test "$hard_links" = no; then
  37244. - { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  37245. -echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  37246. - need_locks=warn
  37247. - fi
  37248. -else
  37249. - need_locks=no
  37250. -fi
  37251. -
  37252. -{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  37253. -echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
  37254. -
  37255. - runpath_var=
  37256. - allow_undefined_flag_GCJ=
  37257. - enable_shared_with_static_runtimes_GCJ=no
  37258. - archive_cmds_GCJ=
  37259. - archive_expsym_cmds_GCJ=
  37260. - old_archive_From_new_cmds_GCJ=
  37261. - old_archive_from_expsyms_cmds_GCJ=
  37262. - export_dynamic_flag_spec_GCJ=
  37263. - whole_archive_flag_spec_GCJ=
  37264. - thread_safe_flag_spec_GCJ=
  37265. - hardcode_libdir_flag_spec_GCJ=
  37266. - hardcode_libdir_flag_spec_ld_GCJ=
  37267. - hardcode_libdir_separator_GCJ=
  37268. - hardcode_direct_GCJ=no
  37269. - hardcode_minus_L_GCJ=no
  37270. - hardcode_shlibpath_var_GCJ=unsupported
  37271. - link_all_deplibs_GCJ=unknown
  37272. - hardcode_automatic_GCJ=no
  37273. - module_cmds_GCJ=
  37274. - module_expsym_cmds_GCJ=
  37275. - always_export_symbols_GCJ=no
  37276. - export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  37277. - # include_expsyms should be a list of space-separated symbols to be *always*
  37278. - # included in the symbol list
  37279. - include_expsyms_GCJ=
  37280. - # exclude_expsyms can be an extended regexp of symbols to exclude
  37281. - # it will be wrapped by ` (' and `)$', so one must not match beginning or
  37282. - # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  37283. - # as well as any symbol that contains `d'.
  37284. - exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
  37285. - # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  37286. - # platforms (ab)use it in PIC code, but their linkers get confused if
  37287. - # the symbol is explicitly referenced. Since portable code cannot
  37288. - # rely on this symbol name, it's probably fine to never include it in
  37289. - # preloaded symbol tables.
  37290. - extract_expsyms_cmds=
  37291. - # Just being paranoid about ensuring that cc_basename is set.
  37292. - for cc_temp in $compiler""; do
  37293. - case $cc_temp in
  37294. - compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  37295. - distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  37296. - \-*) ;;
  37297. - *) break;;
  37298. - esac
  37299. -done
  37300. -cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  37301. -
  37302. - case $host_os in
  37303. - cygwin* | mingw* | pw32*)
  37304. - # FIXME: the MSVC++ port hasn't been tested in a loooong time
  37305. - # When not using gcc, we currently assume that we are using
  37306. - # Microsoft Visual C++.
  37307. - if test "$GCC" != yes; then
  37308. - with_gnu_ld=no
  37309. - fi
  37310. - ;;
  37311. - interix*)
  37312. - # we just hope/assume this is gcc and not c89 (= MSVC++)
  37313. - with_gnu_ld=yes
  37314. - ;;
  37315. - openbsd*)
  37316. - with_gnu_ld=no
  37317. - ;;
  37318. - esac
  37319. -
  37320. - ld_shlibs_GCJ=yes
  37321. - if test "$with_gnu_ld" = yes; then
  37322. - # If archive_cmds runs LD, not CC, wlarc should be empty
  37323. - wlarc='${wl}'
  37324. -
  37325. - # Set some defaults for GNU ld with shared library support. These
  37326. - # are reset later if shared libraries are not supported. Putting them
  37327. - # here allows them to be overridden if necessary.
  37328. - runpath_var=LD_RUN_PATH
  37329. - hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
  37330. - export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
  37331. - # ancient GNU ld didn't support --whole-archive et. al.
  37332. - if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
  37333. - whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  37334. - else
  37335. - whole_archive_flag_spec_GCJ=
  37336. - fi
  37337. - supports_anon_versioning=no
  37338. - case `$LD -v 2>/dev/null` in
  37339. - *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  37340. - *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  37341. - *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  37342. - *\ 2.11.*) ;; # other 2.11 versions
  37343. - *) supports_anon_versioning=yes ;;
  37344. - esac
  37345. -
  37346. - # See if GNU ld supports shared libraries.
  37347. - case $host_os in
  37348. - aix3* | aix4* | aix5*)
  37349. - # On AIX/PPC, the GNU linker is very broken
  37350. - if test "$host_cpu" != ia64; then
  37351. - ld_shlibs_GCJ=no
  37352. - cat <<EOF 1>&2
  37353. -
  37354. -*** Warning: the GNU linker, at least up to release 2.9.1, is reported
  37355. -*** to be unable to reliably create shared libraries on AIX.
  37356. -*** Therefore, libtool is disabling shared libraries support. If you
  37357. -*** really care for shared libraries, you may want to modify your PATH
  37358. -*** so that a non-GNU linker is found, and then restart.
  37359. -
  37360. -EOF
  37361. - fi
  37362. - ;;
  37363. -
  37364. - amigaos*)
  37365. - 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)'
  37366. - hardcode_libdir_flag_spec_GCJ='-L$libdir'
  37367. - hardcode_minus_L_GCJ=yes
  37368. -
  37369. - # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
  37370. - # that the semantics of dynamic libraries on AmigaOS, at least up
  37371. - # to version 4, is to share data among multiple programs linked
  37372. - # with the same dynamic library. Since this doesn't match the
  37373. - # behavior of shared libraries on other platforms, we can't use
  37374. - # them.
  37375. - ld_shlibs_GCJ=no
  37376. - ;;
  37377. -
  37378. - beos*)
  37379. - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  37380. - allow_undefined_flag_GCJ=unsupported
  37381. - # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  37382. - # support --undefined. This deserves some investigation. FIXME
  37383. - archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  37384. - else
  37385. - ld_shlibs_GCJ=no
  37386. - fi
  37387. - ;;
  37388. -
  37389. - cygwin* | mingw* | pw32*)
  37390. - # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
  37391. - # as there is no search path for DLLs.
  37392. - hardcode_libdir_flag_spec_GCJ='-L$libdir'
  37393. - allow_undefined_flag_GCJ=unsupported
  37394. - always_export_symbols_GCJ=no
  37395. - enable_shared_with_static_runtimes_GCJ=yes
  37396. - export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
  37397. -
  37398. - if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
  37399. - archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  37400. - # If the export-symbols file already is a .def file (1st line
  37401. - # is EXPORTS), use it as is; otherwise, prepend...
  37402. - archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  37403. - cp $export_symbols $output_objdir/$soname.def;
  37404. - else
  37405. - echo EXPORTS > $output_objdir/$soname.def;
  37406. - cat $export_symbols >> $output_objdir/$soname.def;
  37407. - fi~
  37408. - $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  37409. - else
  37410. - ld_shlibs_GCJ=no
  37411. - fi
  37412. - ;;
  37413. -
  37414. - interix3*)
  37415. - hardcode_direct_GCJ=no
  37416. - hardcode_shlibpath_var_GCJ=no
  37417. - hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
  37418. - export_dynamic_flag_spec_GCJ='${wl}-E'
  37419. - # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  37420. - # Instead, shared libraries are loaded at an image base (0x10000000 by
  37421. - # default) and relocated if they conflict, which is a slow very memory
  37422. - # consuming and fragmenting process. To avoid this, we pick a random,
  37423. - # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  37424. - # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  37425. - 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'
  37426. - 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'
  37427. - ;;
  37428. -
  37429. - linux*)
  37430. - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  37431. - tmp_addflag=
  37432. - case $cc_basename,$host_cpu in
  37433. - pgcc*) # Portland Group C compiler
  37434. - 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'
  37435. - tmp_addflag=' $pic_flag'
  37436. - ;;
  37437. - pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
  37438. - 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'
  37439. - tmp_addflag=' $pic_flag -Mnomain' ;;
  37440. - ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  37441. - tmp_addflag=' -i_dynamic' ;;
  37442. - efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  37443. - tmp_addflag=' -i_dynamic -nofor_main' ;;
  37444. - ifc* | ifort*) # Intel Fortran compiler
  37445. - tmp_addflag=' -nofor_main' ;;
  37446. - esac
  37447. - archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  37448. -
  37449. - if test $supports_anon_versioning = yes; then
  37450. - archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
  37451. - cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  37452. - $echo "local: *; };" >> $output_objdir/$libname.ver~
  37453. - $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  37454. - fi
  37455. - else
  37456. - ld_shlibs_GCJ=no
  37457. - fi
  37458. - ;;
  37459. -
  37460. - netbsd*)
  37461. - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  37462. - archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  37463. - wlarc=
  37464. - else
  37465. - archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  37466. - archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  37467. - fi
  37468. - ;;
  37469. -
  37470. - solaris*)
  37471. - if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
  37472. - ld_shlibs_GCJ=no
  37473. - cat <<EOF 1>&2
  37474. -
  37475. -*** Warning: The releases 2.8.* of the GNU linker cannot reliably
  37476. -*** create shared libraries on Solaris systems. Therefore, libtool
  37477. -*** is disabling shared libraries support. We urge you to upgrade GNU
  37478. -*** binutils to release 2.9.1 or newer. Another option is to modify
  37479. -*** your PATH or compiler configuration so that the native linker is
  37480. -*** used, and then restart.
  37481. -
  37482. -EOF
  37483. - elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  37484. - archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  37485. - archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  37486. - else
  37487. - ld_shlibs_GCJ=no
  37488. - fi
  37489. - ;;
  37490. -
  37491. - sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  37492. - case `$LD -v 2>&1` in
  37493. - *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  37494. - ld_shlibs_GCJ=no
  37495. - cat <<_LT_EOF 1>&2
  37496. -
  37497. -*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  37498. -*** reliably create shared libraries on SCO systems. Therefore, libtool
  37499. -*** is disabling shared libraries support. We urge you to upgrade GNU
  37500. -*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  37501. -*** your PATH or compiler configuration so that the native linker is
  37502. -*** used, and then restart.
  37503. -
  37504. -_LT_EOF
  37505. - ;;
  37506. - *)
  37507. - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  37508. - hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
  37509. - archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
  37510. - archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
  37511. - else
  37512. - ld_shlibs_GCJ=no
  37513. - fi
  37514. - ;;
  37515. - esac
  37516. - ;;
  37517. -
  37518. - sunos4*)
  37519. - archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  37520. - wlarc=
  37521. - hardcode_direct_GCJ=yes
  37522. - hardcode_shlibpath_var_GCJ=no
  37523. - ;;
  37524. -
  37525. - *)
  37526. - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  37527. - archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  37528. - archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  37529. - else
  37530. - ld_shlibs_GCJ=no
  37531. - fi
  37532. - ;;
  37533. - esac
  37534. -
  37535. - if test "$ld_shlibs_GCJ" = no; then
  37536. - runpath_var=
  37537. - hardcode_libdir_flag_spec_GCJ=
  37538. - export_dynamic_flag_spec_GCJ=
  37539. - whole_archive_flag_spec_GCJ=
  37540. - fi
  37541. - else
  37542. - # PORTME fill in a description of your system's linker (not GNU ld)
  37543. - case $host_os in
  37544. - aix3*)
  37545. - allow_undefined_flag_GCJ=unsupported
  37546. - always_export_symbols_GCJ=yes
  37547. - 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'
  37548. - # Note: this linker hardcodes the directories in LIBPATH if there
  37549. - # are no directories specified by -L.
  37550. - hardcode_minus_L_GCJ=yes
  37551. - if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  37552. - # Neither direct hardcoding nor static linking is supported with a
  37553. - # broken collect2.
  37554. - hardcode_direct_GCJ=unsupported
  37555. - fi
  37556. - ;;
  37557. -
  37558. - aix4* | aix5*)
  37559. - if test "$host_cpu" = ia64; then
  37560. - # On IA64, the linker does run time linking by default, so we don't
  37561. - # have to do anything special.
  37562. - aix_use_runtimelinking=no
  37563. - exp_sym_flag='-Bexport'
  37564. - no_entry_flag=""
  37565. - else
  37566. - # If we're using GNU nm, then we don't want the "-C" option.
  37567. - # -C means demangle to AIX nm, but means don't demangle with GNU nm
  37568. - if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
  37569. - 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'
  37570. - else
  37571. - 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'
  37572. - fi
  37573. - aix_use_runtimelinking=no
  37574. -
  37575. - # Test if we are trying to use run time linking or normal
  37576. - # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  37577. - # need to do runtime linking.
  37578. - case $host_os in aix4.[23]|aix4.[23].*|aix5*)
  37579. - for ld_flag in $LDFLAGS; do
  37580. - if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  37581. - aix_use_runtimelinking=yes
  37582. - break
  37583. - fi
  37584. - done
  37585. - ;;
  37586. - esac
  37587. -
  37588. - exp_sym_flag='-bexport'
  37589. - no_entry_flag='-bnoentry'
  37590. - fi
  37591. -
  37592. - # When large executables or shared objects are built, AIX ld can
  37593. - # have problems creating the table of contents. If linking a library
  37594. - # or program results in "error TOC overflow" add -mminimal-toc to
  37595. - # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  37596. - # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  37597. -
  37598. - archive_cmds_GCJ=''
  37599. - hardcode_direct_GCJ=yes
  37600. - hardcode_libdir_separator_GCJ=':'
  37601. - link_all_deplibs_GCJ=yes
  37602. -
  37603. - if test "$GCC" = yes; then
  37604. - case $host_os in aix4.[012]|aix4.[012].*)
  37605. - # We only want to do this on AIX 4.2 and lower, the check
  37606. - # below for broken collect2 doesn't work under 4.3+
  37607. - collect2name=`${CC} -print-prog-name=collect2`
  37608. - if test -f "$collect2name" && \
  37609. - strings "$collect2name" | grep resolve_lib_name >/dev/null
  37610. - then
  37611. - # We have reworked collect2
  37612. - hardcode_direct_GCJ=yes
  37613. - else
  37614. - # We have old collect2
  37615. - hardcode_direct_GCJ=unsupported
  37616. - # It fails to find uninstalled libraries when the uninstalled
  37617. - # path is not listed in the libpath. Setting hardcode_minus_L
  37618. - # to unsupported forces relinking
  37619. - hardcode_minus_L_GCJ=yes
  37620. - hardcode_libdir_flag_spec_GCJ='-L$libdir'
  37621. - hardcode_libdir_separator_GCJ=
  37622. - fi
  37623. - ;;
  37624. - esac
  37625. - shared_flag='-shared'
  37626. - if test "$aix_use_runtimelinking" = yes; then
  37627. - shared_flag="$shared_flag "'${wl}-G'
  37628. - fi
  37629. - else
  37630. - # not using gcc
  37631. - if test "$host_cpu" = ia64; then
  37632. - # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  37633. - # chokes on -Wl,-G. The following line is correct:
  37634. - shared_flag='-G'
  37635. - else
  37636. - if test "$aix_use_runtimelinking" = yes; then
  37637. - shared_flag='${wl}-G'
  37638. - else
  37639. - shared_flag='${wl}-bM:SRE'
  37640. - fi
  37641. - fi
  37642. - fi
  37643. -
  37644. - # It seems that -bexpall does not export symbols beginning with
  37645. - # underscore (_), so it is better to generate a list of symbols to export.
  37646. - always_export_symbols_GCJ=yes
  37647. - if test "$aix_use_runtimelinking" = yes; then
  37648. - # Warning - without using the other runtime loading flags (-brtl),
  37649. - # -berok will link without error, but may produce a broken library.
  37650. - allow_undefined_flag_GCJ='-berok'
  37651. - # Determine the default libpath from the value encoded in an empty executable.
  37652. - cat >conftest.$ac_ext <<_ACEOF
  37653. -/* confdefs.h. */
  37654. -_ACEOF
  37655. -cat confdefs.h >>conftest.$ac_ext
  37656. -cat >>conftest.$ac_ext <<_ACEOF
  37657. -/* end confdefs.h. */
  37658. -
  37659. -int
  37660. -main ()
  37661. -{
  37662. -
  37663. - ;
  37664. - return 0;
  37665. -}
  37666. -_ACEOF
  37667. -rm -f conftest.$ac_objext conftest$ac_exeext
  37668. -if { (ac_try="$ac_link"
  37669. -case "(($ac_try" in
  37670. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  37671. - *) ac_try_echo=$ac_try;;
  37672. -esac
  37673. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  37674. - (eval "$ac_link") 2>conftest.er1
  37675. - ac_status=$?
  37676. - grep -v '^ *+' conftest.er1 >conftest.err
  37677. - rm -f conftest.er1
  37678. - cat conftest.err >&5
  37679. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  37680. - (exit $ac_status); } &&
  37681. - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  37682. - { (case "(($ac_try" in
  37683. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  37684. - *) ac_try_echo=$ac_try;;
  37685. -esac
  37686. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  37687. - (eval "$ac_try") 2>&5
  37688. - ac_status=$?
  37689. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  37690. - (exit $ac_status); }; } &&
  37691. - { ac_try='test -s conftest$ac_exeext'
  37692. - { (case "(($ac_try" in
  37693. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  37694. - *) ac_try_echo=$ac_try;;
  37695. -esac
  37696. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  37697. - (eval "$ac_try") 2>&5
  37698. - ac_status=$?
  37699. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  37700. - (exit $ac_status); }; }; then
  37701. -
  37702. -aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  37703. -}'`
  37704. -# Check for a 64-bit object if we didn't find anything.
  37705. -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; }
  37706. -}'`; fi
  37707. -else
  37708. - echo "$as_me: failed program was:" >&5
  37709. -sed 's/^/| /' conftest.$ac_ext >&5
  37710. -
  37711. -
  37712. -fi
  37713. -
  37714. -rm -f core conftest.err conftest.$ac_objext \
  37715. - conftest$ac_exeext conftest.$ac_ext
  37716. -if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  37717. -
  37718. - hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
  37719. - 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"
  37720. - else
  37721. - if test "$host_cpu" = ia64; then
  37722. - hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
  37723. - allow_undefined_flag_GCJ="-z nodefs"
  37724. - 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"
  37725. - else
  37726. - # Determine the default libpath from the value encoded in an empty executable.
  37727. - cat >conftest.$ac_ext <<_ACEOF
  37728. -/* confdefs.h. */
  37729. -_ACEOF
  37730. -cat confdefs.h >>conftest.$ac_ext
  37731. -cat >>conftest.$ac_ext <<_ACEOF
  37732. -/* end confdefs.h. */
  37733. -
  37734. -int
  37735. -main ()
  37736. -{
  37737. -
  37738. - ;
  37739. - return 0;
  37740. -}
  37741. -_ACEOF
  37742. -rm -f conftest.$ac_objext conftest$ac_exeext
  37743. -if { (ac_try="$ac_link"
  37744. -case "(($ac_try" in
  37745. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  37746. - *) ac_try_echo=$ac_try;;
  37747. -esac
  37748. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  37749. - (eval "$ac_link") 2>conftest.er1
  37750. - ac_status=$?
  37751. - grep -v '^ *+' conftest.er1 >conftest.err
  37752. - rm -f conftest.er1
  37753. - cat conftest.err >&5
  37754. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  37755. - (exit $ac_status); } &&
  37756. - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  37757. - { (case "(($ac_try" in
  37758. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  37759. - *) ac_try_echo=$ac_try;;
  37760. -esac
  37761. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  37762. - (eval "$ac_try") 2>&5
  37763. - ac_status=$?
  37764. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  37765. - (exit $ac_status); }; } &&
  37766. - { ac_try='test -s conftest$ac_exeext'
  37767. - { (case "(($ac_try" in
  37768. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  37769. - *) ac_try_echo=$ac_try;;
  37770. -esac
  37771. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  37772. - (eval "$ac_try") 2>&5
  37773. - ac_status=$?
  37774. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  37775. - (exit $ac_status); }; }; then
  37776. -
  37777. -aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  37778. -}'`
  37779. -# Check for a 64-bit object if we didn't find anything.
  37780. -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; }
  37781. -}'`; fi
  37782. -else
  37783. - echo "$as_me: failed program was:" >&5
  37784. -sed 's/^/| /' conftest.$ac_ext >&5
  37785. -
  37786. -
  37787. -fi
  37788. -
  37789. -rm -f core conftest.err conftest.$ac_objext \
  37790. - conftest$ac_exeext conftest.$ac_ext
  37791. -if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  37792. -
  37793. - hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
  37794. - # Warning - without using the other run time loading flags,
  37795. - # -berok will link without error, but may produce a broken library.
  37796. - no_undefined_flag_GCJ=' ${wl}-bernotok'
  37797. - allow_undefined_flag_GCJ=' ${wl}-berok'
  37798. - # Exported symbols can be pulled into shared objects from archives
  37799. - whole_archive_flag_spec_GCJ='$convenience'
  37800. - archive_cmds_need_lc_GCJ=yes
  37801. - # This is similar to how AIX traditionally builds its shared libraries.
  37802. - 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'
  37803. - fi
  37804. - fi
  37805. - ;;
  37806. -
  37807. - amigaos*)
  37808. - 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)'
  37809. - hardcode_libdir_flag_spec_GCJ='-L$libdir'
  37810. - hardcode_minus_L_GCJ=yes
  37811. - # see comment about different semantics on the GNU ld section
  37812. - ld_shlibs_GCJ=no
  37813. - ;;
  37814. -
  37815. - bsdi[45]*)
  37816. - export_dynamic_flag_spec_GCJ=-rdynamic
  37817. - ;;
  37818. -
  37819. - cygwin* | mingw* | pw32*)
  37820. - # When not using gcc, we currently assume that we are using
  37821. - # Microsoft Visual C++.
  37822. - # hardcode_libdir_flag_spec is actually meaningless, as there is
  37823. - # no search path for DLLs.
  37824. - hardcode_libdir_flag_spec_GCJ=' '
  37825. - allow_undefined_flag_GCJ=unsupported
  37826. - # Tell ltmain to make .lib files, not .a files.
  37827. - libext=lib
  37828. - # Tell ltmain to make .dll files, not .so files.
  37829. - shrext_cmds=".dll"
  37830. - # FIXME: Setting linknames here is a bad hack.
  37831. - archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
  37832. - # The linker will automatically build a .lib file if we build a DLL.
  37833. - old_archive_From_new_cmds_GCJ='true'
  37834. - # FIXME: Should let the user specify the lib program.
  37835. - old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
  37836. - fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
  37837. - enable_shared_with_static_runtimes_GCJ=yes
  37838. - ;;
  37839. -
  37840. - darwin* | rhapsody*)
  37841. - case $host_os in
  37842. - rhapsody* | darwin1.[012])
  37843. - allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
  37844. - ;;
  37845. - *) # Darwin 1.3 on
  37846. - if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
  37847. - allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  37848. - else
  37849. - case ${MACOSX_DEPLOYMENT_TARGET} in
  37850. - 10.[012])
  37851. - allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  37852. - ;;
  37853. - 10.*)
  37854. - allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
  37855. - ;;
  37856. - esac
  37857. - fi
  37858. - ;;
  37859. - esac
  37860. - archive_cmds_need_lc_GCJ=no
  37861. - hardcode_direct_GCJ=no
  37862. - hardcode_automatic_GCJ=yes
  37863. - hardcode_shlibpath_var_GCJ=unsupported
  37864. - whole_archive_flag_spec_GCJ=''
  37865. - link_all_deplibs_GCJ=yes
  37866. - if test "$GCC" = yes ; then
  37867. - output_verbose_link_cmd='echo'
  37868. - archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
  37869. - module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  37870. - # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  37871. - 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}'
  37872. - 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}'
  37873. - else
  37874. - case $cc_basename in
  37875. - xlc*)
  37876. - output_verbose_link_cmd='echo'
  37877. - archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
  37878. - module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  37879. - # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  37880. - 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}'
  37881. - 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}'
  37882. - ;;
  37883. - *)
  37884. - ld_shlibs_GCJ=no
  37885. - ;;
  37886. - esac
  37887. - fi
  37888. - ;;
  37889. -
  37890. - dgux*)
  37891. - archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  37892. - hardcode_libdir_flag_spec_GCJ='-L$libdir'
  37893. - hardcode_shlibpath_var_GCJ=no
  37894. - ;;
  37895. -
  37896. - freebsd1*)
  37897. - ld_shlibs_GCJ=no
  37898. - ;;
  37899. -
  37900. - # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  37901. - # support. Future versions do this automatically, but an explicit c++rt0.o
  37902. - # does not break anything, and helps significantly (at the cost of a little
  37903. - # extra space).
  37904. - freebsd2.2*)
  37905. - archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  37906. - hardcode_libdir_flag_spec_GCJ='-R$libdir'
  37907. - hardcode_direct_GCJ=yes
  37908. - hardcode_shlibpath_var_GCJ=no
  37909. - ;;
  37910. -
  37911. - # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  37912. - freebsd2*)
  37913. - archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  37914. - hardcode_direct_GCJ=yes
  37915. - hardcode_minus_L_GCJ=yes
  37916. - hardcode_shlibpath_var_GCJ=no
  37917. - ;;
  37918. -
  37919. - # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  37920. - freebsd* | kfreebsd*-gnu | dragonfly*)
  37921. - archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  37922. - hardcode_libdir_flag_spec_GCJ='-R$libdir'
  37923. - hardcode_direct_GCJ=yes
  37924. - hardcode_shlibpath_var_GCJ=no
  37925. - ;;
  37926. -
  37927. - hpux9*)
  37928. - if test "$GCC" = yes; then
  37929. - 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'
  37930. - else
  37931. - 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'
  37932. - fi
  37933. - hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
  37934. - hardcode_libdir_separator_GCJ=:
  37935. - hardcode_direct_GCJ=yes
  37936. -
  37937. - # hardcode_minus_L: Not really in the search PATH,
  37938. - # but as the default location of the library.
  37939. - hardcode_minus_L_GCJ=yes
  37940. - export_dynamic_flag_spec_GCJ='${wl}-E'
  37941. - ;;
  37942. -
  37943. - hpux10*)
  37944. - if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  37945. - archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  37946. - else
  37947. - archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  37948. - fi
  37949. - if test "$with_gnu_ld" = no; then
  37950. - hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
  37951. - hardcode_libdir_separator_GCJ=:
  37952. -
  37953. - hardcode_direct_GCJ=yes
  37954. - export_dynamic_flag_spec_GCJ='${wl}-E'
  37955. -
  37956. - # hardcode_minus_L: Not really in the search PATH,
  37957. - # but as the default location of the library.
  37958. - hardcode_minus_L_GCJ=yes
  37959. - fi
  37960. - ;;
  37961. -
  37962. - hpux11*)
  37963. - if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  37964. - case $host_cpu in
  37965. - hppa*64*)
  37966. - archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  37967. - ;;
  37968. - ia64*)
  37969. - archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  37970. - ;;
  37971. - *)
  37972. - archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  37973. - ;;
  37974. - esac
  37975. - else
  37976. - case $host_cpu in
  37977. - hppa*64*)
  37978. - archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  37979. - ;;
  37980. - ia64*)
  37981. - archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  37982. - ;;
  37983. - *)
  37984. - archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  37985. - ;;
  37986. - esac
  37987. - fi
  37988. - if test "$with_gnu_ld" = no; then
  37989. - hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
  37990. - hardcode_libdir_separator_GCJ=:
  37991. -
  37992. - case $host_cpu in
  37993. - hppa*64*|ia64*)
  37994. - hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
  37995. - hardcode_direct_GCJ=no
  37996. - hardcode_shlibpath_var_GCJ=no
  37997. - ;;
  37998. - *)
  37999. - hardcode_direct_GCJ=yes
  38000. - export_dynamic_flag_spec_GCJ='${wl}-E'
  38001. -
  38002. - # hardcode_minus_L: Not really in the search PATH,
  38003. - # but as the default location of the library.
  38004. - hardcode_minus_L_GCJ=yes
  38005. - ;;
  38006. - esac
  38007. - fi
  38008. - ;;
  38009. -
  38010. - irix5* | irix6* | nonstopux*)
  38011. - if test "$GCC" = yes; then
  38012. - 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'
  38013. - else
  38014. - 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'
  38015. - hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
  38016. - fi
  38017. - hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
  38018. - hardcode_libdir_separator_GCJ=:
  38019. - link_all_deplibs_GCJ=yes
  38020. - ;;
  38021. -
  38022. - netbsd*)
  38023. - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  38024. - archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  38025. - else
  38026. - archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  38027. - fi
  38028. - hardcode_libdir_flag_spec_GCJ='-R$libdir'
  38029. - hardcode_direct_GCJ=yes
  38030. - hardcode_shlibpath_var_GCJ=no
  38031. - ;;
  38032. -
  38033. - newsos6)
  38034. - archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  38035. - hardcode_direct_GCJ=yes
  38036. - hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
  38037. - hardcode_libdir_separator_GCJ=:
  38038. - hardcode_shlibpath_var_GCJ=no
  38039. - ;;
  38040. -
  38041. - openbsd*)
  38042. - hardcode_direct_GCJ=yes
  38043. - hardcode_shlibpath_var_GCJ=no
  38044. - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  38045. - archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  38046. - archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  38047. - hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
  38048. - export_dynamic_flag_spec_GCJ='${wl}-E'
  38049. - else
  38050. - case $host_os in
  38051. - openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  38052. - archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  38053. - hardcode_libdir_flag_spec_GCJ='-R$libdir'
  38054. - ;;
  38055. - *)
  38056. - archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  38057. - hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
  38058. - ;;
  38059. - esac
  38060. - fi
  38061. - ;;
  38062. -
  38063. - os2*)
  38064. - hardcode_libdir_flag_spec_GCJ='-L$libdir'
  38065. - hardcode_minus_L_GCJ=yes
  38066. - allow_undefined_flag_GCJ=unsupported
  38067. - 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'
  38068. - old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  38069. - ;;
  38070. -
  38071. - osf3*)
  38072. - if test "$GCC" = yes; then
  38073. - allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
  38074. - 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'
  38075. - else
  38076. - allow_undefined_flag_GCJ=' -expect_unresolved \*'
  38077. - 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'
  38078. - fi
  38079. - hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
  38080. - hardcode_libdir_separator_GCJ=:
  38081. - ;;
  38082. -
  38083. - osf4* | osf5*) # as osf3* with the addition of -msym flag
  38084. - if test "$GCC" = yes; then
  38085. - allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
  38086. - 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'
  38087. - hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
  38088. - else
  38089. - allow_undefined_flag_GCJ=' -expect_unresolved \*'
  38090. - 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'
  38091. - 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~
  38092. - $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'
  38093. -
  38094. - # Both c and cxx compiler support -rpath directly
  38095. - hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
  38096. - fi
  38097. - hardcode_libdir_separator_GCJ=:
  38098. - ;;
  38099. -
  38100. - solaris*)
  38101. - no_undefined_flag_GCJ=' -z text'
  38102. - if test "$GCC" = yes; then
  38103. - wlarc='${wl}'
  38104. - archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  38105. - archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  38106. - $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
  38107. - else
  38108. - wlarc=''
  38109. - archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  38110. - archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  38111. - $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
  38112. - fi
  38113. - hardcode_libdir_flag_spec_GCJ='-R$libdir'
  38114. - hardcode_shlibpath_var_GCJ=no
  38115. - case $host_os in
  38116. - solaris2.[0-5] | solaris2.[0-5].*) ;;
  38117. - *)
  38118. - # The compiler driver will combine linker options so we
  38119. - # cannot just pass the convience library names through
  38120. - # without $wl, iff we do not link with $LD.
  38121. - # Luckily, gcc supports the same syntax we need for Sun Studio.
  38122. - # Supported since Solaris 2.6 (maybe 2.5.1?)
  38123. - case $wlarc in
  38124. - '')
  38125. - whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
  38126. - *)
  38127. - 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' ;;
  38128. - esac ;;
  38129. - esac
  38130. - link_all_deplibs_GCJ=yes
  38131. - ;;
  38132. -
  38133. - sunos4*)
  38134. - if test "x$host_vendor" = xsequent; then
  38135. - # Use $CC to link under sequent, because it throws in some extra .o
  38136. - # files that make .init and .fini sections work.
  38137. - archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  38138. - else
  38139. - archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  38140. - fi
  38141. - hardcode_libdir_flag_spec_GCJ='-L$libdir'
  38142. - hardcode_direct_GCJ=yes
  38143. - hardcode_minus_L_GCJ=yes
  38144. - hardcode_shlibpath_var_GCJ=no
  38145. - ;;
  38146. -
  38147. - sysv4)
  38148. - case $host_vendor in
  38149. - sni)
  38150. - archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  38151. - hardcode_direct_GCJ=yes # is this really true???
  38152. - ;;
  38153. - siemens)
  38154. - ## LD is ld it makes a PLAMLIB
  38155. - ## CC just makes a GrossModule.
  38156. - archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  38157. - reload_cmds_GCJ='$CC -r -o $output$reload_objs'
  38158. - hardcode_direct_GCJ=no
  38159. - ;;
  38160. - motorola)
  38161. - archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  38162. - hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
  38163. - ;;
  38164. - esac
  38165. - runpath_var='LD_RUN_PATH'
  38166. - hardcode_shlibpath_var_GCJ=no
  38167. - ;;
  38168. -
  38169. - sysv4.3*)
  38170. - archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  38171. - hardcode_shlibpath_var_GCJ=no
  38172. - export_dynamic_flag_spec_GCJ='-Bexport'
  38173. - ;;
  38174. -
  38175. - sysv4*MP*)
  38176. - if test -d /usr/nec; then
  38177. - archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  38178. - hardcode_shlibpath_var_GCJ=no
  38179. - runpath_var=LD_RUN_PATH
  38180. - hardcode_runpath_var=yes
  38181. - ld_shlibs_GCJ=yes
  38182. - fi
  38183. - ;;
  38184. -
  38185. - sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
  38186. - no_undefined_flag_GCJ='${wl}-z,text'
  38187. - archive_cmds_need_lc_GCJ=no
  38188. - hardcode_shlibpath_var_GCJ=no
  38189. - runpath_var='LD_RUN_PATH'
  38190. -
  38191. - if test "$GCC" = yes; then
  38192. - archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  38193. - archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  38194. - else
  38195. - archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  38196. - archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  38197. - fi
  38198. - ;;
  38199. -
  38200. - sysv5* | sco3.2v5* | sco5v6*)
  38201. - # Note: We can NOT use -z defs as we might desire, because we do not
  38202. - # link with -lc, and that would cause any symbols used from libc to
  38203. - # always be unresolved, which means just about no library would
  38204. - # ever link correctly. If we're not using GNU ld we use -z text
  38205. - # though, which does catch some bad symbols but isn't as heavy-handed
  38206. - # as -z defs.
  38207. - no_undefined_flag_GCJ='${wl}-z,text'
  38208. - allow_undefined_flag_GCJ='${wl}-z,nodefs'
  38209. - archive_cmds_need_lc_GCJ=no
  38210. - hardcode_shlibpath_var_GCJ=no
  38211. - hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
  38212. - hardcode_libdir_separator_GCJ=':'
  38213. - link_all_deplibs_GCJ=yes
  38214. - export_dynamic_flag_spec_GCJ='${wl}-Bexport'
  38215. - runpath_var='LD_RUN_PATH'
  38216. -
  38217. - if test "$GCC" = yes; then
  38218. - archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  38219. - archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  38220. - else
  38221. - archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  38222. - archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  38223. - fi
  38224. - ;;
  38225. -
  38226. - uts4*)
  38227. - archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  38228. - hardcode_libdir_flag_spec_GCJ='-L$libdir'
  38229. - hardcode_shlibpath_var_GCJ=no
  38230. - ;;
  38231. -
  38232. - *)
  38233. - ld_shlibs_GCJ=no
  38234. - ;;
  38235. - esac
  38236. - fi
  38237. -
  38238. -{ echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
  38239. -echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
  38240. -test "$ld_shlibs_GCJ" = no && can_build_shared=no
  38241. -
  38242. -#
  38243. -# Do we need to explicitly link libc?
  38244. -#
  38245. -case "x$archive_cmds_need_lc_GCJ" in
  38246. -x|xyes)
  38247. - # Assume -lc should be added
  38248. - archive_cmds_need_lc_GCJ=yes
  38249. -
  38250. - if test "$enable_shared" = yes && test "$GCC" = yes; then
  38251. - case $archive_cmds_GCJ in
  38252. - *'~'*)
  38253. - # FIXME: we may have to deal with multi-command sequences.
  38254. - ;;
  38255. - '$CC '*)
  38256. - # Test whether the compiler implicitly links with -lc since on some
  38257. - # systems, -lgcc has to come before -lc. If gcc already passes -lc
  38258. - # to ld, don't add -lc before -lgcc.
  38259. - { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
  38260. -echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
  38261. - $rm conftest*
  38262. - printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  38263. -
  38264. - if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  38265. - (eval $ac_compile) 2>&5
  38266. - ac_status=$?
  38267. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  38268. - (exit $ac_status); } 2>conftest.err; then
  38269. - soname=conftest
  38270. - lib=conftest
  38271. - libobjs=conftest.$ac_objext
  38272. - deplibs=
  38273. - wl=$lt_prog_compiler_wl_GCJ
  38274. - pic_flag=$lt_prog_compiler_pic_GCJ
  38275. - compiler_flags=-v
  38276. - linker_flags=-v
  38277. - verstring=
  38278. - output_objdir=.
  38279. - libname=conftest
  38280. - lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
  38281. - allow_undefined_flag_GCJ=
  38282. - if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
  38283. - (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
  38284. - ac_status=$?
  38285. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  38286. - (exit $ac_status); }
  38287. - then
  38288. - archive_cmds_need_lc_GCJ=no
  38289. - else
  38290. - archive_cmds_need_lc_GCJ=yes
  38291. - fi
  38292. - allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
  38293. - else
  38294. - cat conftest.err 1>&5
  38295. - fi
  38296. - $rm conftest*
  38297. - { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
  38298. -echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
  38299. - ;;
  38300. - esac
  38301. - fi
  38302. - ;;
  38303. -esac
  38304. -
  38305. -{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
  38306. -echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
  38307. -library_names_spec=
  38308. -libname_spec='lib$name'
  38309. -soname_spec=
  38310. -shrext_cmds=".so"
  38311. -postinstall_cmds=
  38312. -postuninstall_cmds=
  38313. -finish_cmds=
  38314. -finish_eval=
  38315. -shlibpath_var=
  38316. -shlibpath_overrides_runpath=unknown
  38317. -version_type=none
  38318. -dynamic_linker="$host_os ld.so"
  38319. -sys_lib_dlsearch_path_spec="/lib /usr/lib"
  38320. -if test "$GCC" = yes; then
  38321. - sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  38322. - if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
  38323. - # if the path contains ";" then we assume it to be the separator
  38324. - # otherwise default to the standard path separator (i.e. ":") - it is
  38325. - # assumed that no part of a normal pathname contains ";" but that should
  38326. - # okay in the real world where ";" in dirpaths is itself problematic.
  38327. - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  38328. - else
  38329. - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  38330. - fi
  38331. -else
  38332. - sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  38333. -fi
  38334. -need_lib_prefix=unknown
  38335. -hardcode_into_libs=no
  38336. -
  38337. -# when you set need_version to no, make sure it does not cause -set_version
  38338. -# flags to be left without arguments
  38339. -need_version=unknown
  38340. -
  38341. -case $host_os in
  38342. -aix3*)
  38343. - version_type=linux
  38344. - library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  38345. - shlibpath_var=LIBPATH
  38346. -
  38347. - # AIX 3 has no versioning support, so we append a major version to the name.
  38348. - soname_spec='${libname}${release}${shared_ext}$major'
  38349. - ;;
  38350. -
  38351. -aix4* | aix5*)
  38352. - version_type=linux
  38353. - need_lib_prefix=no
  38354. - need_version=no
  38355. - hardcode_into_libs=yes
  38356. - if test "$host_cpu" = ia64; then
  38357. - # AIX 5 supports IA64
  38358. - library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  38359. - shlibpath_var=LD_LIBRARY_PATH
  38360. - else
  38361. - # With GCC up to 2.95.x, collect2 would create an import file
  38362. - # for dependence libraries. The import file would start with
  38363. - # the line `#! .'. This would cause the generated library to
  38364. - # depend on `.', always an invalid library. This was fixed in
  38365. - # development snapshots of GCC prior to 3.0.
  38366. - case $host_os in
  38367. - aix4 | aix4.[01] | aix4.[01].*)
  38368. - if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  38369. - echo ' yes '
  38370. - echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
  38371. - :
  38372. - else
  38373. - can_build_shared=no
  38374. - fi
  38375. - ;;
  38376. - esac
  38377. - # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  38378. - # soname into executable. Probably we can add versioning support to
  38379. - # collect2, so additional links can be useful in future.
  38380. - if test "$aix_use_runtimelinking" = yes; then
  38381. - # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  38382. - # instead of lib<name>.a to let people know that these are not
  38383. - # typical AIX shared libraries.
  38384. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  38385. - else
  38386. - # We preserve .a as extension for shared libraries through AIX4.2
  38387. - # and later when we are not doing run time linking.
  38388. - library_names_spec='${libname}${release}.a $libname.a'
  38389. - soname_spec='${libname}${release}${shared_ext}$major'
  38390. - fi
  38391. - shlibpath_var=LIBPATH
  38392. - fi
  38393. - ;;
  38394. -
  38395. -amigaos*)
  38396. - library_names_spec='$libname.ixlibrary $libname.a'
  38397. - # Create ${libname}_ixlibrary.a entries in /sys/libs.
  38398. - 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'
  38399. - ;;
  38400. -
  38401. -beos*)
  38402. - library_names_spec='${libname}${shared_ext}'
  38403. - dynamic_linker="$host_os ld.so"
  38404. - shlibpath_var=LIBRARY_PATH
  38405. - ;;
  38406. -
  38407. -bsdi[45]*)
  38408. - version_type=linux
  38409. - need_version=no
  38410. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  38411. - soname_spec='${libname}${release}${shared_ext}$major'
  38412. - finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  38413. - shlibpath_var=LD_LIBRARY_PATH
  38414. - sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  38415. - sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  38416. - # the default ld.so.conf also contains /usr/contrib/lib and
  38417. - # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  38418. - # libtool to hard-code these into programs
  38419. - ;;
  38420. -
  38421. -cygwin* | mingw* | pw32*)
  38422. - version_type=windows
  38423. - shrext_cmds=".dll"
  38424. - need_version=no
  38425. - need_lib_prefix=no
  38426. -
  38427. - case $GCC,$host_os in
  38428. - yes,cygwin* | yes,mingw* | yes,pw32*)
  38429. - library_names_spec='$libname.dll.a'
  38430. - # DLL is installed to $(libdir)/../bin by postinstall_cmds
  38431. - postinstall_cmds='base_file=`basename \${file}`~
  38432. - dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
  38433. - dldir=$destdir/`dirname \$dlpath`~
  38434. - test -d \$dldir || mkdir -p \$dldir~
  38435. - $install_prog $dir/$dlname \$dldir/$dlname~
  38436. - chmod a+x \$dldir/$dlname'
  38437. - postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  38438. - dlpath=$dir/\$dldll~
  38439. - $rm \$dlpath'
  38440. - shlibpath_overrides_runpath=yes
  38441. -
  38442. - case $host_os in
  38443. - cygwin*)
  38444. - # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  38445. - soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  38446. - sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  38447. - ;;
  38448. - mingw*)
  38449. - # MinGW DLLs use traditional 'lib' prefix
  38450. - soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  38451. - sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  38452. - if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
  38453. - # It is most probably a Windows format PATH printed by
  38454. - # mingw gcc, but we are running on Cygwin. Gcc prints its search
  38455. - # path with ; separators, and with drive letters. We can handle the
  38456. - # drive letters (cygwin fileutils understands them), so leave them,
  38457. - # especially as we might pass files found there to a mingw objdump,
  38458. - # which wouldn't understand a cygwinified path. Ahh.
  38459. - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  38460. - else
  38461. - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  38462. - fi
  38463. - ;;
  38464. - pw32*)
  38465. - # pw32 DLLs use 'pw' prefix rather than 'lib'
  38466. - library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  38467. - ;;
  38468. - esac
  38469. - ;;
  38470. -
  38471. - *)
  38472. - library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  38473. - ;;
  38474. - esac
  38475. - dynamic_linker='Win32 ld.exe'
  38476. - # FIXME: first we should search . and the directory the executable is in
  38477. - shlibpath_var=PATH
  38478. - ;;
  38479. -
  38480. -darwin* | rhapsody*)
  38481. - dynamic_linker="$host_os dyld"
  38482. - version_type=darwin
  38483. - need_lib_prefix=no
  38484. - need_version=no
  38485. - library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  38486. - soname_spec='${libname}${release}${major}$shared_ext'
  38487. - shlibpath_overrides_runpath=yes
  38488. - shlibpath_var=DYLD_LIBRARY_PATH
  38489. - shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  38490. - # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
  38491. - if test "$GCC" = yes; then
  38492. - 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"`
  38493. - else
  38494. - sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
  38495. - fi
  38496. - sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  38497. - ;;
  38498. -
  38499. -dgux*)
  38500. - version_type=linux
  38501. - need_lib_prefix=no
  38502. - need_version=no
  38503. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  38504. - soname_spec='${libname}${release}${shared_ext}$major'
  38505. - shlibpath_var=LD_LIBRARY_PATH
  38506. - ;;
  38507. -
  38508. -freebsd1*)
  38509. - dynamic_linker=no
  38510. - ;;
  38511. -
  38512. -kfreebsd*-gnu)
  38513. - version_type=linux
  38514. - need_lib_prefix=no
  38515. - need_version=no
  38516. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  38517. - soname_spec='${libname}${release}${shared_ext}$major'
  38518. - shlibpath_var=LD_LIBRARY_PATH
  38519. - shlibpath_overrides_runpath=no
  38520. - hardcode_into_libs=yes
  38521. - dynamic_linker='GNU ld.so'
  38522. - ;;
  38523. -
  38524. -freebsd* | dragonfly*)
  38525. - # DragonFly does not have aout. When/if they implement a new
  38526. - # versioning mechanism, adjust this.
  38527. - if test -x /usr/bin/objformat; then
  38528. - objformat=`/usr/bin/objformat`
  38529. - else
  38530. - case $host_os in
  38531. - freebsd[123]*) objformat=aout ;;
  38532. - *) objformat=elf ;;
  38533. - esac
  38534. - fi
  38535. - version_type=freebsd-$objformat
  38536. - case $version_type in
  38537. - freebsd-elf*)
  38538. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  38539. - need_version=no
  38540. - need_lib_prefix=no
  38541. - ;;
  38542. - freebsd-*)
  38543. - library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  38544. - need_version=yes
  38545. - ;;
  38546. - esac
  38547. - shlibpath_var=LD_LIBRARY_PATH
  38548. - case $host_os in
  38549. - freebsd2*)
  38550. - shlibpath_overrides_runpath=yes
  38551. - ;;
  38552. - freebsd3.[01]* | freebsdelf3.[01]*)
  38553. - shlibpath_overrides_runpath=yes
  38554. - hardcode_into_libs=yes
  38555. - ;;
  38556. - freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  38557. - freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  38558. - shlibpath_overrides_runpath=no
  38559. - hardcode_into_libs=yes
  38560. - ;;
  38561. - freebsd*) # from 4.6 on
  38562. - shlibpath_overrides_runpath=yes
  38563. - hardcode_into_libs=yes
  38564. - ;;
  38565. - esac
  38566. - ;;
  38567. -
  38568. -gnu*)
  38569. - version_type=linux
  38570. - need_lib_prefix=no
  38571. - need_version=no
  38572. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  38573. - soname_spec='${libname}${release}${shared_ext}$major'
  38574. - shlibpath_var=LD_LIBRARY_PATH
  38575. - hardcode_into_libs=yes
  38576. - ;;
  38577. -
  38578. -hpux9* | hpux10* | hpux11*)
  38579. - # Give a soname corresponding to the major version so that dld.sl refuses to
  38580. - # link against other versions.
  38581. - version_type=sunos
  38582. - need_lib_prefix=no
  38583. - need_version=no
  38584. - case $host_cpu in
  38585. - ia64*)
  38586. - shrext_cmds='.so'
  38587. - hardcode_into_libs=yes
  38588. - dynamic_linker="$host_os dld.so"
  38589. - shlibpath_var=LD_LIBRARY_PATH
  38590. - shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  38591. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  38592. - soname_spec='${libname}${release}${shared_ext}$major'
  38593. - if test "X$HPUX_IA64_MODE" = X32; then
  38594. - sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  38595. - else
  38596. - sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  38597. - fi
  38598. - sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  38599. - ;;
  38600. - hppa*64*)
  38601. - shrext_cmds='.sl'
  38602. - hardcode_into_libs=yes
  38603. - dynamic_linker="$host_os dld.sl"
  38604. - shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  38605. - shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  38606. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  38607. - soname_spec='${libname}${release}${shared_ext}$major'
  38608. - sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  38609. - sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  38610. - ;;
  38611. - *)
  38612. - shrext_cmds='.sl'
  38613. - dynamic_linker="$host_os dld.sl"
  38614. - shlibpath_var=SHLIB_PATH
  38615. - shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  38616. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  38617. - soname_spec='${libname}${release}${shared_ext}$major'
  38618. - ;;
  38619. - esac
  38620. - # HP-UX runs *really* slowly unless shared libraries are mode 555.
  38621. - postinstall_cmds='chmod 555 $lib'
  38622. - ;;
  38623. -
  38624. -interix3*)
  38625. - version_type=linux
  38626. - need_lib_prefix=no
  38627. - need_version=no
  38628. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  38629. - soname_spec='${libname}${release}${shared_ext}$major'
  38630. - dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  38631. - shlibpath_var=LD_LIBRARY_PATH
  38632. - shlibpath_overrides_runpath=no
  38633. - hardcode_into_libs=yes
  38634. - ;;
  38635. -
  38636. -irix5* | irix6* | nonstopux*)
  38637. - case $host_os in
  38638. - nonstopux*) version_type=nonstopux ;;
  38639. - *)
  38640. - if test "$lt_cv_prog_gnu_ld" = yes; then
  38641. - version_type=linux
  38642. - else
  38643. - version_type=irix
  38644. - fi ;;
  38645. - esac
  38646. - need_lib_prefix=no
  38647. - need_version=no
  38648. - soname_spec='${libname}${release}${shared_ext}$major'
  38649. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  38650. - case $host_os in
  38651. - irix5* | nonstopux*)
  38652. - libsuff= shlibsuff=
  38653. - ;;
  38654. - *)
  38655. - case $LD in # libtool.m4 will add one of these switches to LD
  38656. - *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  38657. - libsuff= shlibsuff= libmagic=32-bit;;
  38658. - *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  38659. - libsuff=32 shlibsuff=N32 libmagic=N32;;
  38660. - *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  38661. - libsuff=64 shlibsuff=64 libmagic=64-bit;;
  38662. - *) libsuff= shlibsuff= libmagic=never-match;;
  38663. - esac
  38664. - ;;
  38665. - esac
  38666. - shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  38667. - shlibpath_overrides_runpath=no
  38668. - sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  38669. - sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  38670. - hardcode_into_libs=yes
  38671. - ;;
  38672. -
  38673. -# No shared lib support for Linux oldld, aout, or coff.
  38674. -linux*oldld* | linux*aout* | linux*coff*)
  38675. - dynamic_linker=no
  38676. - ;;
  38677. + uts4*)
  38678. + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  38679. + hardcode_libdir_flag_spec='-L$libdir'
  38680. + hardcode_shlibpath_var=no
  38681. + ;;
  38682. -# This must be Linux ELF.
  38683. -linux*)
  38684. - version_type=linux
  38685. - need_lib_prefix=no
  38686. - need_version=no
  38687. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  38688. - soname_spec='${libname}${release}${shared_ext}$major'
  38689. - finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  38690. - shlibpath_var=LD_LIBRARY_PATH
  38691. - shlibpath_overrides_runpath=no
  38692. - # This implies no fast_install, which is unacceptable.
  38693. - # Some rework will be needed to allow for fast_install
  38694. - # before this can be enabled.
  38695. - hardcode_into_libs=yes
  38696. + *)
  38697. + ld_shlibs=no
  38698. + ;;
  38699. + esac
  38700. - # find out which ABI we are using
  38701. - libsuff=
  38702. - case "$host_cpu" in
  38703. - x86_64*|s390x*|powerpc64*)
  38704. - echo '#line 18556 "configure"' > conftest.$ac_ext
  38705. - if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  38706. - (eval $ac_compile) 2>&5
  38707. - ac_status=$?
  38708. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  38709. - (exit $ac_status); }; then
  38710. - case `/usr/bin/file conftest.$ac_objext` in
  38711. - *64-bit*)
  38712. - libsuff=64
  38713. - sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
  38714. - ;;
  38715. + if test x$host_vendor = xsni; then
  38716. + case $host in
  38717. + sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  38718. + export_dynamic_flag_spec='${wl}-Blargedynsym'
  38719. + ;;
  38720. esac
  38721. fi
  38722. - rm -rf conftest*
  38723. - ;;
  38724. - esac
  38725. -
  38726. - # Append ld.so.conf contents to the search path
  38727. - if test -f /etc/ld.so.conf; then
  38728. - 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/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
  38729. - sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
  38730. fi
  38731. - # We used to test for /lib/ld.so.1 and disable shared libraries on
  38732. - # powerpc, because MkLinux only supported shared libraries with the
  38733. - # GNU dynamic linker. Since this was broken with cross compilers,
  38734. - # most powerpc-linux boxes support dynamic linking these days and
  38735. - # people can always --disable-shared, the test was removed, and we
  38736. - # assume the GNU/Linux dynamic linker is in use.
  38737. - dynamic_linker='GNU/Linux ld.so'
  38738. - ;;
  38739. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
  38740. +$as_echo "$ld_shlibs" >&6; }
  38741. +test "$ld_shlibs" = no && can_build_shared=no
  38742. -knetbsd*-gnu)
  38743. - version_type=linux
  38744. - need_lib_prefix=no
  38745. - need_version=no
  38746. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  38747. - soname_spec='${libname}${release}${shared_ext}$major'
  38748. - shlibpath_var=LD_LIBRARY_PATH
  38749. - shlibpath_overrides_runpath=no
  38750. - hardcode_into_libs=yes
  38751. - dynamic_linker='GNU ld.so'
  38752. - ;;
  38753. +with_gnu_ld=$with_gnu_ld
  38754. -netbsd*)
  38755. - version_type=sunos
  38756. - need_lib_prefix=no
  38757. - need_version=no
  38758. - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  38759. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  38760. - finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  38761. - dynamic_linker='NetBSD (a.out) ld.so'
  38762. - else
  38763. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  38764. - soname_spec='${libname}${release}${shared_ext}$major'
  38765. - dynamic_linker='NetBSD ld.elf_so'
  38766. - fi
  38767. - shlibpath_var=LD_LIBRARY_PATH
  38768. - shlibpath_overrides_runpath=yes
  38769. - hardcode_into_libs=yes
  38770. - ;;
  38771. -newsos6)
  38772. - version_type=linux
  38773. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  38774. - shlibpath_var=LD_LIBRARY_PATH
  38775. - shlibpath_overrides_runpath=yes
  38776. - ;;
  38777. -nto-qnx*)
  38778. - version_type=linux
  38779. - need_lib_prefix=no
  38780. - need_version=no
  38781. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  38782. - soname_spec='${libname}${release}${shared_ext}$major'
  38783. - shlibpath_var=LD_LIBRARY_PATH
  38784. - shlibpath_overrides_runpath=yes
  38785. - ;;
  38786. -openbsd*)
  38787. - version_type=sunos
  38788. - sys_lib_dlsearch_path_spec="/usr/lib"
  38789. - need_lib_prefix=no
  38790. - # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  38791. - case $host_os in
  38792. - openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  38793. - *) need_version=no ;;
  38794. - esac
  38795. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  38796. - finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  38797. - shlibpath_var=LD_LIBRARY_PATH
  38798. - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  38799. - case $host_os in
  38800. - openbsd2.[89] | openbsd2.[89].*)
  38801. - shlibpath_overrides_runpath=no
  38802. - ;;
  38803. - *)
  38804. - shlibpath_overrides_runpath=yes
  38805. - ;;
  38806. - esac
  38807. - else
  38808. - shlibpath_overrides_runpath=yes
  38809. - fi
  38810. - ;;
  38811. -os2*)
  38812. - libname_spec='$name'
  38813. - shrext_cmds=".dll"
  38814. - need_lib_prefix=no
  38815. - library_names_spec='$libname${shared_ext} $libname.a'
  38816. - dynamic_linker='OS/2 ld.exe'
  38817. - shlibpath_var=LIBPATH
  38818. - ;;
  38819. -osf3* | osf4* | osf5*)
  38820. - version_type=osf
  38821. - need_lib_prefix=no
  38822. - need_version=no
  38823. - soname_spec='${libname}${release}${shared_ext}$major'
  38824. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  38825. - shlibpath_var=LD_LIBRARY_PATH
  38826. - sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  38827. - sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  38828. - ;;
  38829. -solaris*)
  38830. - version_type=linux
  38831. - need_lib_prefix=no
  38832. - need_version=no
  38833. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  38834. - soname_spec='${libname}${release}${shared_ext}$major'
  38835. - shlibpath_var=LD_LIBRARY_PATH
  38836. - shlibpath_overrides_runpath=yes
  38837. - hardcode_into_libs=yes
  38838. - # ldd complains unless libraries are executable
  38839. - postinstall_cmds='chmod +x $lib'
  38840. - ;;
  38841. -sunos4*)
  38842. - version_type=sunos
  38843. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  38844. - finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  38845. - shlibpath_var=LD_LIBRARY_PATH
  38846. - shlibpath_overrides_runpath=yes
  38847. - if test "$with_gnu_ld" = yes; then
  38848. - need_lib_prefix=no
  38849. - fi
  38850. - need_version=yes
  38851. - ;;
  38852. -sysv4 | sysv4.3*)
  38853. - version_type=linux
  38854. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  38855. - soname_spec='${libname}${release}${shared_ext}$major'
  38856. - shlibpath_var=LD_LIBRARY_PATH
  38857. - case $host_vendor in
  38858. - sni)
  38859. - shlibpath_overrides_runpath=no
  38860. - need_lib_prefix=no
  38861. - export_dynamic_flag_spec='${wl}-Blargedynsym'
  38862. - runpath_var=LD_RUN_PATH
  38863. - ;;
  38864. - siemens)
  38865. - need_lib_prefix=no
  38866. +
  38867. +
  38868. +
  38869. +
  38870. +
  38871. +
  38872. +#
  38873. +# Do we need to explicitly link libc?
  38874. +#
  38875. +case "x$archive_cmds_need_lc" in
  38876. +x|xyes)
  38877. + # Assume -lc should be added
  38878. + archive_cmds_need_lc=yes
  38879. +
  38880. + if test "$enable_shared" = yes && test "$GCC" = yes; then
  38881. + case $archive_cmds in
  38882. + *'~'*)
  38883. + # FIXME: we may have to deal with multi-command sequences.
  38884. ;;
  38885. - motorola)
  38886. - need_lib_prefix=no
  38887. - need_version=no
  38888. - shlibpath_overrides_runpath=no
  38889. - sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  38890. + '$CC '*)
  38891. + # Test whether the compiler implicitly links with -lc since on some
  38892. + # systems, -lgcc has to come before -lc. If gcc already passes -lc
  38893. + # to ld, don't add -lc before -lgcc.
  38894. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  38895. +$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  38896. + $RM conftest*
  38897. + echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  38898. +
  38899. + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  38900. + (eval $ac_compile) 2>&5
  38901. + ac_status=$?
  38902. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  38903. + test $ac_status = 0; } 2>conftest.err; then
  38904. + soname=conftest
  38905. + lib=conftest
  38906. + libobjs=conftest.$ac_objext
  38907. + deplibs=
  38908. + wl=$lt_prog_compiler_wl
  38909. + pic_flag=$lt_prog_compiler_pic
  38910. + compiler_flags=-v
  38911. + linker_flags=-v
  38912. + verstring=
  38913. + output_objdir=.
  38914. + libname=conftest
  38915. + lt_save_allow_undefined_flag=$allow_undefined_flag
  38916. + allow_undefined_flag=
  38917. + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  38918. + (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  38919. + ac_status=$?
  38920. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  38921. + test $ac_status = 0; }
  38922. + then
  38923. + archive_cmds_need_lc=no
  38924. + else
  38925. + archive_cmds_need_lc=yes
  38926. + fi
  38927. + allow_undefined_flag=$lt_save_allow_undefined_flag
  38928. + else
  38929. + cat conftest.err 1>&5
  38930. + fi
  38931. + $RM conftest*
  38932. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
  38933. +$as_echo "$archive_cmds_need_lc" >&6; }
  38934. ;;
  38935. - esac
  38936. + esac
  38937. + fi
  38938. ;;
  38939. +esac
  38940. +
  38941. +
  38942. +
  38943. +
  38944. +
  38945. +
  38946. +
  38947. +
  38948. +
  38949. +
  38950. +
  38951. +
  38952. +
  38953. +
  38954. +
  38955. +
  38956. +
  38957. +
  38958. +
  38959. +
  38960. +
  38961. +
  38962. +
  38963. +
  38964. +
  38965. +
  38966. +
  38967. +
  38968. +
  38969. +
  38970. +
  38971. +
  38972. +
  38973. +
  38974. +
  38975. +
  38976. +
  38977. +
  38978. +
  38979. +
  38980. +
  38981. +
  38982. +
  38983. +
  38984. +
  38985. +
  38986. +
  38987. +
  38988. +
  38989. +
  38990. +
  38991. +
  38992. -sysv4*MP*)
  38993. - if test -d /usr/nec ;then
  38994. - version_type=linux
  38995. - library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  38996. - soname_spec='$libname${shared_ext}.$major'
  38997. - shlibpath_var=LD_LIBRARY_PATH
  38998. - fi
  38999. - ;;
  39000. -sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  39001. - version_type=freebsd-elf
  39002. - need_lib_prefix=no
  39003. - need_version=no
  39004. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  39005. - soname_spec='${libname}${release}${shared_ext}$major'
  39006. - shlibpath_var=LD_LIBRARY_PATH
  39007. - hardcode_into_libs=yes
  39008. - if test "$with_gnu_ld" = yes; then
  39009. - sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  39010. - shlibpath_overrides_runpath=no
  39011. - else
  39012. - sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  39013. - shlibpath_overrides_runpath=yes
  39014. - case $host_os in
  39015. - sco3.2v5*)
  39016. - sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  39017. - ;;
  39018. - esac
  39019. - fi
  39020. - sys_lib_dlsearch_path_spec='/usr/lib'
  39021. - ;;
  39022. -uts4*)
  39023. - version_type=linux
  39024. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  39025. - soname_spec='${libname}${release}${shared_ext}$major'
  39026. - shlibpath_var=LD_LIBRARY_PATH
  39027. - ;;
  39028. -*)
  39029. - dynamic_linker=no
  39030. - ;;
  39031. -esac
  39032. -{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
  39033. -echo "${ECHO_T}$dynamic_linker" >&6; }
  39034. -test "$dynamic_linker" = no && can_build_shared=no
  39035. -variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  39036. -if test "$GCC" = yes; then
  39037. - variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  39038. -fi
  39039. -{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
  39040. -echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
  39041. -hardcode_action_GCJ=
  39042. -if test -n "$hardcode_libdir_flag_spec_GCJ" || \
  39043. - test -n "$runpath_var_GCJ" || \
  39044. - test "X$hardcode_automatic_GCJ" = "Xyes" ; then
  39045. - # We can hardcode non-existant directories.
  39046. - if test "$hardcode_direct_GCJ" != no &&
  39047. - # If the only mechanism to avoid hardcoding is shlibpath_var, we
  39048. - # have to relink, otherwise we might link with an installed library
  39049. - # when we should be linking with a yet-to-be-installed one
  39050. - ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
  39051. - test "$hardcode_minus_L_GCJ" != no; then
  39052. - # Linking always hardcodes the temporary library directory.
  39053. - hardcode_action_GCJ=relink
  39054. - else
  39055. - # We can link without hardcoding, and we can hardcode nonexisting dirs.
  39056. - hardcode_action_GCJ=immediate
  39057. - fi
  39058. -else
  39059. - # We cannot hardcode anything, or else we can only hardcode existing
  39060. - # directories.
  39061. - hardcode_action_GCJ=unsupported
  39062. -fi
  39063. -{ echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
  39064. -echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
  39065. -if test "$hardcode_action_GCJ" = relink; then
  39066. - # Fast installation is not supported
  39067. - enable_fast_install=no
  39068. -elif test "$shlibpath_overrides_runpath" = yes ||
  39069. - test "$enable_shared" = no; then
  39070. - # Fast installation is not necessary
  39071. - enable_fast_install=needless
  39072. -fi
  39073. -# The else clause should only fire when bootstrapping the
  39074. -# libtool distribution, otherwise you forgot to ship ltmain.sh
  39075. -# with your package, and you will get complaints that there are
  39076. -# no rules to generate ltmain.sh.
  39077. -if test -f "$ltmain"; then
  39078. - # See if we are running on zsh, and set the options which allow our commands through
  39079. - # without removal of \ escapes.
  39080. - if test -n "${ZSH_VERSION+set}" ; then
  39081. - setopt NO_GLOB_SUBST
  39082. - fi
  39083. - # Now quote all the things that may contain metacharacters while being
  39084. - # careful not to overquote the AC_SUBSTed values. We take copies of the
  39085. - # variables and quote the copies for generation of the libtool script.
  39086. - for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
  39087. - SED SHELL STRIP \
  39088. - libname_spec library_names_spec soname_spec extract_expsyms_cmds \
  39089. - old_striplib striplib file_magic_cmd finish_cmds finish_eval \
  39090. - deplibs_check_method reload_flag reload_cmds need_locks \
  39091. - lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
  39092. - lt_cv_sys_global_symbol_to_c_name_address \
  39093. - sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  39094. - old_postinstall_cmds old_postuninstall_cmds \
  39095. - compiler_GCJ \
  39096. - CC_GCJ \
  39097. - LD_GCJ \
  39098. - lt_prog_compiler_wl_GCJ \
  39099. - lt_prog_compiler_pic_GCJ \
  39100. - lt_prog_compiler_static_GCJ \
  39101. - lt_prog_compiler_no_builtin_flag_GCJ \
  39102. - export_dynamic_flag_spec_GCJ \
  39103. - thread_safe_flag_spec_GCJ \
  39104. - whole_archive_flag_spec_GCJ \
  39105. - enable_shared_with_static_runtimes_GCJ \
  39106. - old_archive_cmds_GCJ \
  39107. - old_archive_from_new_cmds_GCJ \
  39108. - predep_objects_GCJ \
  39109. - postdep_objects_GCJ \
  39110. - predeps_GCJ \
  39111. - postdeps_GCJ \
  39112. - compiler_lib_search_path_GCJ \
  39113. - archive_cmds_GCJ \
  39114. - archive_expsym_cmds_GCJ \
  39115. - postinstall_cmds_GCJ \
  39116. - postuninstall_cmds_GCJ \
  39117. - old_archive_from_expsyms_cmds_GCJ \
  39118. - allow_undefined_flag_GCJ \
  39119. - no_undefined_flag_GCJ \
  39120. - export_symbols_cmds_GCJ \
  39121. - hardcode_libdir_flag_spec_GCJ \
  39122. - hardcode_libdir_flag_spec_ld_GCJ \
  39123. - hardcode_libdir_separator_GCJ \
  39124. - hardcode_automatic_GCJ \
  39125. - module_cmds_GCJ \
  39126. - module_expsym_cmds_GCJ \
  39127. - lt_cv_prog_compiler_c_o_GCJ \
  39128. - exclude_expsyms_GCJ \
  39129. - include_expsyms_GCJ; do
  39130. -
  39131. - case $var in
  39132. - old_archive_cmds_GCJ | \
  39133. - old_archive_from_new_cmds_GCJ | \
  39134. - archive_cmds_GCJ | \
  39135. - archive_expsym_cmds_GCJ | \
  39136. - module_cmds_GCJ | \
  39137. - module_expsym_cmds_GCJ | \
  39138. - old_archive_from_expsyms_cmds_GCJ | \
  39139. - export_symbols_cmds_GCJ | \
  39140. - extract_expsyms_cmds | reload_cmds | finish_cmds | \
  39141. - postinstall_cmds | postuninstall_cmds | \
  39142. - old_postinstall_cmds | old_postuninstall_cmds | \
  39143. - sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  39144. - # Double-quote double-evaled strings.
  39145. - eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
  39146. - ;;
  39147. - *)
  39148. - eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
  39149. - ;;
  39150. - esac
  39151. - done
  39152. - case $lt_echo in
  39153. - *'\$0 --fallback-echo"')
  39154. - lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
  39155. - ;;
  39156. - esac
  39157. -cfgfile="$ofile"
  39158. - cat <<__EOF__ >> "$cfgfile"
  39159. -# ### BEGIN LIBTOOL TAG CONFIG: $tagname
  39160. -# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  39161. -# Shell to use when invoking shell scripts.
  39162. -SHELL=$lt_SHELL
  39163. -# Whether or not to build shared libraries.
  39164. -build_libtool_libs=$enable_shared
  39165. -# Whether or not to build static libraries.
  39166. -build_old_libs=$enable_static
  39167. -# Whether or not to add -lc for building shared libraries.
  39168. -build_libtool_need_lc=$archive_cmds_need_lc_GCJ
  39169. -# Whether or not to disallow shared libs when runtime libs are static
  39170. -allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
  39171. -# Whether or not to optimize for fast installation.
  39172. -fast_install=$enable_fast_install
  39173. -# The host system.
  39174. -host_alias=$host_alias
  39175. -host=$host
  39176. -host_os=$host_os
  39177. -# The build system.
  39178. -build_alias=$build_alias
  39179. -build=$build
  39180. -build_os=$build_os
  39181. -# An echo program that does not interpret backslashes.
  39182. -echo=$lt_echo
  39183. -# The archiver.
  39184. -AR=$lt_AR
  39185. -AR_FLAGS=$lt_AR_FLAGS
  39186. -# A C compiler.
  39187. -LTCC=$lt_LTCC
  39188. -# LTCC compiler flags.
  39189. -LTCFLAGS=$lt_LTCFLAGS
  39190. -# A language-specific compiler.
  39191. -CC=$lt_compiler_GCJ
  39192. -# Is the compiler the GNU C compiler?
  39193. -with_gcc=$GCC_GCJ
  39194. -gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\`
  39195. -gcc_ver=\`gcc -dumpversion\`
  39196. -# An ERE matcher.
  39197. -EGREP=$lt_EGREP
  39198. -# The linker used to build libraries.
  39199. -LD=$lt_LD_GCJ
  39200. -# Whether we need hard or soft links.
  39201. -LN_S=$lt_LN_S
  39202. -# A BSD-compatible nm program.
  39203. -NM=$lt_NM
  39204. -# A symbol stripping program
  39205. -STRIP=$lt_STRIP
  39206. -# Used to examine libraries when file_magic_cmd begins "file"
  39207. -MAGIC_CMD=$MAGIC_CMD
  39208. -# Used on cygwin: DLL creation program.
  39209. -DLLTOOL="$DLLTOOL"
  39210. -# Used on cygwin: object dumper.
  39211. -OBJDUMP="$OBJDUMP"
  39212. -# Used on cygwin: assembler.
  39213. -AS="$AS"
  39214. -# The name of the directory that contains temporary libtool files.
  39215. -objdir=$objdir
  39216. -# How to create reloadable object files.
  39217. -reload_flag=$lt_reload_flag
  39218. -reload_cmds=$lt_reload_cmds
  39219. -# How to pass a linker flag through the compiler.
  39220. -wl=$lt_lt_prog_compiler_wl_GCJ
  39221. -# Object file suffix (normally "o").
  39222. -objext="$ac_objext"
  39223. -# Old archive suffix (normally "a").
  39224. -libext="$libext"
  39225. -# Shared library suffix (normally ".so").
  39226. -shrext_cmds='$shrext_cmds'
  39227. -# Executable file suffix (normally "").
  39228. -exeext="$exeext"
  39229. -# Additional compiler flags for building library objects.
  39230. -pic_flag=$lt_lt_prog_compiler_pic_GCJ
  39231. -pic_mode=$pic_mode
  39232. -# What is the maximum length of a command?
  39233. -max_cmd_len=$lt_cv_sys_max_cmd_len
  39234. -# Does compiler simultaneously support -c and -o options?
  39235. -compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
  39236. -# Must we lock files when doing compilation?
  39237. -need_locks=$lt_need_locks
  39238. -# Do we need the lib prefix for modules?
  39239. -need_lib_prefix=$need_lib_prefix
  39240. -# Do we need a version for libraries?
  39241. -need_version=$need_version
  39242. -# Whether dlopen is supported.
  39243. -dlopen_support=$enable_dlopen
  39244. -# Whether dlopen of programs is supported.
  39245. -dlopen_self=$enable_dlopen_self
  39246. -# Whether dlopen of statically linked programs is supported.
  39247. -dlopen_self_static=$enable_dlopen_self_static
  39248. -# Compiler flag to prevent dynamic linking.
  39249. -link_static_flag=$lt_lt_prog_compiler_static_GCJ
  39250. -# Compiler flag to turn off builtin functions.
  39251. -no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
  39252. -# Compiler flag to allow reflexive dlopens.
  39253. -export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
  39254. -# Compiler flag to generate shared objects directly from archives.
  39255. -whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
  39256. -# Compiler flag to generate thread-safe objects.
  39257. -thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
  39258. -# Library versioning type.
  39259. -version_type=$version_type
  39260. -# Format of library name prefix.
  39261. -libname_spec=$lt_libname_spec
  39262. -# List of archive names. First name is the real one, the rest are links.
  39263. -# The last name is the one that the linker finds with -lNAME.
  39264. -library_names_spec=$lt_library_names_spec
  39265. -# The coded name of the library, if different from the real name.
  39266. -soname_spec=$lt_soname_spec
  39267. -# Commands used to build and install an old-style archive.
  39268. -RANLIB=$lt_RANLIB
  39269. -old_archive_cmds=$lt_old_archive_cmds_GCJ
  39270. -old_postinstall_cmds=$lt_old_postinstall_cmds
  39271. -old_postuninstall_cmds=$lt_old_postuninstall_cmds
  39272. -# Create an old-style archive from a shared archive.
  39273. -old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
  39274. -# Create a temporary old-style archive to link instead of a shared archive.
  39275. -old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
  39276. -# Commands used to build and install a shared archive.
  39277. -archive_cmds=$lt_archive_cmds_GCJ
  39278. -archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
  39279. -postinstall_cmds=$lt_postinstall_cmds
  39280. -postuninstall_cmds=$lt_postuninstall_cmds
  39281. -# Commands used to build a loadable module (assumed same as above if empty)
  39282. -module_cmds=$lt_module_cmds_GCJ
  39283. -module_expsym_cmds=$lt_module_expsym_cmds_GCJ
  39284. -# Commands to strip libraries.
  39285. -old_striplib=$lt_old_striplib
  39286. -striplib=$lt_striplib
  39287. -# Dependencies to place before the objects being linked to create a
  39288. -# shared library.
  39289. -predep_objects=\`echo $lt_predep_objects_GCJ | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
  39290. -
  39291. -# Dependencies to place after the objects being linked to create a
  39292. -# shared library.
  39293. -postdep_objects=\`echo $lt_postdep_objects_GCJ | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
  39294. -
  39295. -# Dependencies to place before the objects being linked to create a
  39296. -# shared library.
  39297. -predeps=$lt_predeps_GCJ
  39298. -
  39299. -# Dependencies to place after the objects being linked to create a
  39300. -# shared library.
  39301. -postdeps=$lt_postdeps_GCJ
  39302. -
  39303. -# The library search path used internally by the compiler when linking
  39304. -# a shared library.
  39305. -compiler_lib_search_path=\`echo $lt_compiler_lib_search_path_GCJ | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
  39306. -# Method to check whether dependent libraries are shared objects.
  39307. -deplibs_check_method=$lt_deplibs_check_method
  39308. -# Command to use when deplibs_check_method == file_magic.
  39309. -file_magic_cmd=$lt_file_magic_cmd
  39310. -# Flag that allows shared libraries with undefined symbols to be built.
  39311. -allow_undefined_flag=$lt_allow_undefined_flag_GCJ
  39312. -# Flag that forces no undefined symbols.
  39313. -no_undefined_flag=$lt_no_undefined_flag_GCJ
  39314. -# Commands used to finish a libtool library installation in a directory.
  39315. -finish_cmds=$lt_finish_cmds
  39316. -# Same as above, but a single script fragment to be evaled but not shown.
  39317. -finish_eval=$lt_finish_eval
  39318. -# Take the output of nm and produce a listing of raw symbols and C names.
  39319. -global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  39320. -# Transform the output of nm in a proper C declaration
  39321. -global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  39322. -# Transform the output of nm in a C name address pair
  39323. -global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  39324. -# This is the shared library runtime path variable.
  39325. -runpath_var=$runpath_var
  39326. -# This is the shared library path variable.
  39327. -shlibpath_var=$shlibpath_var
  39328. -# Is shlibpath searched before the hard-coded library search path?
  39329. -shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  39330. -# How to hardcode a shared library path into an executable.
  39331. -hardcode_action=$hardcode_action_GCJ
  39332. -# Whether we should hardcode library paths into libraries.
  39333. -hardcode_into_libs=$hardcode_into_libs
  39334. -# Flag to hardcode \$libdir into a binary during linking.
  39335. -# This must work even if \$libdir does not exist.
  39336. -hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
  39337. -# If ld is used when linking, flag to hardcode \$libdir into
  39338. -# a binary during linking. This must work even if \$libdir does
  39339. -# not exist.
  39340. -hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
  39341. -
  39342. -# Whether we need a single -rpath flag with a separated argument.
  39343. -hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
  39344. -
  39345. -# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
  39346. -# resulting binary.
  39347. -hardcode_direct=$hardcode_direct_GCJ
  39348. -
  39349. -# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  39350. -# resulting binary.
  39351. -hardcode_minus_L=$hardcode_minus_L_GCJ
  39352. -
  39353. -# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
  39354. -# the resulting binary.
  39355. -hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
  39356. -
  39357. -# Set to yes if building a shared library automatically hardcodes DIR into the library
  39358. -# and all subsequent libraries and executables linked against it.
  39359. -hardcode_automatic=$hardcode_automatic_GCJ
  39360. -# Variables whose values should be saved in libtool wrapper scripts and
  39361. -# restored at relink time.
  39362. -variables_saved_for_relink="$variables_saved_for_relink"
  39363. -# Whether libtool must link a program against all its dependency libraries.
  39364. -link_all_deplibs=$link_all_deplibs_GCJ
  39365. -# Compile-time system search path for libraries
  39366. -sys_lib_search_path_spec=\`echo $lt_sys_lib_search_path_spec | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
  39367. -# Run-time system search path for libraries
  39368. -sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  39369. -# Fix the shell variable \$srcfile for the compiler.
  39370. -fix_srcfile_path="$fix_srcfile_path_GCJ"
  39371. -# Set to yes if exported symbols are required.
  39372. -always_export_symbols=$always_export_symbols_GCJ
  39373. -# The commands to list exported symbols.
  39374. -export_symbols_cmds=$lt_export_symbols_cmds_GCJ
  39375. -# The commands to extract the exported symbol list from a shared archive.
  39376. -extract_expsyms_cmds=$lt_extract_expsyms_cmds
  39377. -# Symbols that should not be listed in the preloaded symbols.
  39378. -exclude_expsyms=$lt_exclude_expsyms_GCJ
  39379. -# Symbols that must always be exported.
  39380. -include_expsyms=$lt_include_expsyms_GCJ
  39381. -# ### END LIBTOOL TAG CONFIG: $tagname
  39382. -__EOF__
  39383. +
  39384. +
  39385. +
  39386. +
  39387. +
  39388. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  39389. +$as_echo_n "checking dynamic linker characteristics... " >&6; }
  39390. +
  39391. +if test "$GCC" = yes; then
  39392. + case $host_os in
  39393. + darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
  39394. + *) lt_awk_arg="/^libraries:/" ;;
  39395. + esac
  39396. + lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  39397. + if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
  39398. + # if the path contains ";" then we assume it to be the separator
  39399. + # otherwise default to the standard path separator (i.e. ":") - it is
  39400. + # assumed that no part of a normal pathname contains ";" but that should
  39401. + # okay in the real world where ";" in dirpaths is itself problematic.
  39402. + lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
  39403. + else
  39404. + lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  39405. + fi
  39406. + # Ok, now we have the path, separated by spaces, we can step through it
  39407. + # and add multilib dir if necessary.
  39408. + lt_tmp_lt_search_path_spec=
  39409. + lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  39410. + for lt_sys_path in $lt_search_path_spec; do
  39411. + if test -d "$lt_sys_path/$lt_multi_os_dir"; then
  39412. + lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
  39413. + else
  39414. + test -d "$lt_sys_path" && \
  39415. + lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  39416. + fi
  39417. + done
  39418. + lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
  39419. +BEGIN {RS=" "; FS="/|\n";} {
  39420. + lt_foo="";
  39421. + lt_count=0;
  39422. + for (lt_i = NF; lt_i > 0; lt_i--) {
  39423. + if ($lt_i != "" && $lt_i != ".") {
  39424. + if ($lt_i == "..") {
  39425. + lt_count++;
  39426. + } else {
  39427. + if (lt_count == 0) {
  39428. + lt_foo="/" $lt_i lt_foo;
  39429. + } else {
  39430. + lt_count--;
  39431. + }
  39432. + }
  39433. + }
  39434. + }
  39435. + if (lt_foo != "") { lt_freq[lt_foo]++; }
  39436. + if (lt_freq[lt_foo] == 1) { print lt_foo; }
  39437. +}'`
  39438. + sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
  39439. else
  39440. - # If there is no Makefile yet, we rely on a make rule to execute
  39441. - # `config.status --recheck' to rerun these tests and create the
  39442. - # libtool script then.
  39443. - ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  39444. - if test -f "$ltmain_in"; then
  39445. - test -f Makefile && make "$ltmain"
  39446. + sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  39447. +fi
  39448. +library_names_spec=
  39449. +libname_spec='lib$name'
  39450. +soname_spec=
  39451. +shrext_cmds=".so"
  39452. +postinstall_cmds=
  39453. +postuninstall_cmds=
  39454. +finish_cmds=
  39455. +finish_eval=
  39456. +shlibpath_var=
  39457. +shlibpath_overrides_runpath=unknown
  39458. +version_type=none
  39459. +dynamic_linker="$host_os ld.so"
  39460. +sys_lib_dlsearch_path_spec="/lib /usr/lib"
  39461. +need_lib_prefix=unknown
  39462. +hardcode_into_libs=no
  39463. +
  39464. +# when you set need_version to no, make sure it does not cause -set_version
  39465. +# flags to be left without arguments
  39466. +need_version=unknown
  39467. +
  39468. +case $host_os in
  39469. +aix3*)
  39470. + version_type=linux
  39471. + library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  39472. + shlibpath_var=LIBPATH
  39473. +
  39474. + # AIX 3 has no versioning support, so we append a major version to the name.
  39475. + soname_spec='${libname}${release}${shared_ext}$major'
  39476. + ;;
  39477. +
  39478. +aix[4-9]*)
  39479. + version_type=linux
  39480. + need_lib_prefix=no
  39481. + need_version=no
  39482. + hardcode_into_libs=yes
  39483. + if test "$host_cpu" = ia64; then
  39484. + # AIX 5 supports IA64
  39485. + library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  39486. + shlibpath_var=LD_LIBRARY_PATH
  39487. + else
  39488. + # With GCC up to 2.95.x, collect2 would create an import file
  39489. + # for dependence libraries. The import file would start with
  39490. + # the line `#! .'. This would cause the generated library to
  39491. + # depend on `.', always an invalid library. This was fixed in
  39492. + # development snapshots of GCC prior to 3.0.
  39493. + case $host_os in
  39494. + aix4 | aix4.[01] | aix4.[01].*)
  39495. + if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  39496. + echo ' yes '
  39497. + echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  39498. + :
  39499. + else
  39500. + can_build_shared=no
  39501. + fi
  39502. + ;;
  39503. + esac
  39504. + # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  39505. + # soname into executable. Probably we can add versioning support to
  39506. + # collect2, so additional links can be useful in future.
  39507. + if test "$aix_use_runtimelinking" = yes; then
  39508. + # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  39509. + # instead of lib<name>.a to let people know that these are not
  39510. + # typical AIX shared libraries.
  39511. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  39512. + else
  39513. + # We preserve .a as extension for shared libraries through AIX4.2
  39514. + # and later when we are not doing run time linking.
  39515. + library_names_spec='${libname}${release}.a $libname.a'
  39516. + soname_spec='${libname}${release}${shared_ext}$major'
  39517. + fi
  39518. + shlibpath_var=LIBPATH
  39519. fi
  39520. -fi
  39521. -
  39522. -
  39523. -ac_ext=c
  39524. -ac_cpp='$CPP $CPPFLAGS'
  39525. -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  39526. -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  39527. -ac_compiler_gnu=$ac_cv_c_compiler_gnu
  39528. -
  39529. -CC="$lt_save_CC"
  39530. -
  39531. - else
  39532. - tagname=""
  39533. - fi
  39534. - ;;
  39535. -
  39536. - RC)
  39537. + ;;
  39538. +amigaos*)
  39539. + case $host_cpu in
  39540. + powerpc)
  39541. + # Since July 2007 AmigaOS4 officially supports .so libraries.
  39542. + # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  39543. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  39544. + ;;
  39545. + m68k)
  39546. + library_names_spec='$libname.ixlibrary $libname.a'
  39547. + # Create ${libname}_ixlibrary.a entries in /sys/libs.
  39548. + 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'
  39549. + ;;
  39550. + esac
  39551. + ;;
  39552. -# Source file extension for RC test sources.
  39553. -ac_ext=rc
  39554. +beos*)
  39555. + library_names_spec='${libname}${shared_ext}'
  39556. + dynamic_linker="$host_os ld.so"
  39557. + shlibpath_var=LIBRARY_PATH
  39558. + ;;
  39559. -# Object file extension for compiled RC test sources.
  39560. -objext=o
  39561. -objext_RC=$objext
  39562. +bsdi[45]*)
  39563. + version_type=linux
  39564. + need_version=no
  39565. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  39566. + soname_spec='${libname}${release}${shared_ext}$major'
  39567. + finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  39568. + shlibpath_var=LD_LIBRARY_PATH
  39569. + sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  39570. + sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  39571. + # the default ld.so.conf also contains /usr/contrib/lib and
  39572. + # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  39573. + # libtool to hard-code these into programs
  39574. + ;;
  39575. -# Code to be used in simple compile tests
  39576. -lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
  39577. +cygwin* | mingw* | pw32* | cegcc*)
  39578. + version_type=windows
  39579. + shrext_cmds=".dll"
  39580. + need_version=no
  39581. + need_lib_prefix=no
  39582. -# Code to be used in simple link tests
  39583. -lt_simple_link_test_code="$lt_simple_compile_test_code"
  39584. + case $GCC,$host_os in
  39585. + yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
  39586. + library_names_spec='$libname.dll.a'
  39587. + # DLL is installed to $(libdir)/../bin by postinstall_cmds
  39588. + postinstall_cmds='base_file=`basename \${file}`~
  39589. + dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  39590. + dldir=$destdir/`dirname \$dlpath`~
  39591. + test -d \$dldir || mkdir -p \$dldir~
  39592. + $install_prog $dir/$dlname \$dldir/$dlname~
  39593. + chmod a+x \$dldir/$dlname~
  39594. + if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  39595. + eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  39596. + fi'
  39597. + postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  39598. + dlpath=$dir/\$dldll~
  39599. + $RM \$dlpath'
  39600. + shlibpath_overrides_runpath=yes
  39601. -# ltmain only uses $CC for tagged configurations so make sure $CC is set.
  39602. + case $host_os in
  39603. + cygwin*)
  39604. + # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  39605. + soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  39606. + sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  39607. + ;;
  39608. + mingw* | cegcc*)
  39609. + # MinGW DLLs use traditional 'lib' prefix
  39610. + soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  39611. + sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  39612. + if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  39613. + # It is most probably a Windows format PATH printed by
  39614. + # mingw gcc, but we are running on Cygwin. Gcc prints its search
  39615. + # path with ; separators, and with drive letters. We can handle the
  39616. + # drive letters (cygwin fileutils understands them), so leave them,
  39617. + # especially as we might pass files found there to a mingw objdump,
  39618. + # which wouldn't understand a cygwinified path. Ahh.
  39619. + sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  39620. + else
  39621. + sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  39622. + fi
  39623. + ;;
  39624. + pw32*)
  39625. + # pw32 DLLs use 'pw' prefix rather than 'lib'
  39626. + library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  39627. + ;;
  39628. + esac
  39629. + ;;
  39630. -# If no C compiler was specified, use CC.
  39631. -LTCC=${LTCC-"$CC"}
  39632. + *)
  39633. + library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  39634. + ;;
  39635. + esac
  39636. + dynamic_linker='Win32 ld.exe'
  39637. + # FIXME: first we should search . and the directory the executable is in
  39638. + shlibpath_var=PATH
  39639. + ;;
  39640. -# If no C compiler flags were specified, use CFLAGS.
  39641. -LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  39642. +darwin* | rhapsody*)
  39643. + dynamic_linker="$host_os dyld"
  39644. + version_type=darwin
  39645. + need_lib_prefix=no
  39646. + need_version=no
  39647. + library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  39648. + soname_spec='${libname}${release}${major}$shared_ext'
  39649. + shlibpath_overrides_runpath=yes
  39650. + shlibpath_var=DYLD_LIBRARY_PATH
  39651. + shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  39652. -# Allow CC to be a program name with arguments.
  39653. -compiler=$CC
  39654. + sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  39655. + sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  39656. + ;;
  39657. +dgux*)
  39658. + version_type=linux
  39659. + need_lib_prefix=no
  39660. + need_version=no
  39661. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  39662. + soname_spec='${libname}${release}${shared_ext}$major'
  39663. + shlibpath_var=LD_LIBRARY_PATH
  39664. + ;;
  39665. -# save warnings/boilerplate of simple test code
  39666. -ac_outfile=conftest.$ac_objext
  39667. -printf "$lt_simple_compile_test_code" >conftest.$ac_ext
  39668. -eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  39669. -_lt_compiler_boilerplate=`cat conftest.err`
  39670. -$rm conftest*
  39671. +freebsd1*)
  39672. + dynamic_linker=no
  39673. + ;;
  39674. -ac_outfile=conftest.$ac_objext
  39675. -printf "$lt_simple_link_test_code" >conftest.$ac_ext
  39676. -eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  39677. -_lt_linker_boilerplate=`cat conftest.err`
  39678. -$rm conftest*
  39679. +freebsd* | dragonfly*)
  39680. + # DragonFly does not have aout. When/if they implement a new
  39681. + # versioning mechanism, adjust this.
  39682. + if test -x /usr/bin/objformat; then
  39683. + objformat=`/usr/bin/objformat`
  39684. + else
  39685. + case $host_os in
  39686. + freebsd[123]*) objformat=aout ;;
  39687. + *) objformat=elf ;;
  39688. + esac
  39689. + fi
  39690. + version_type=freebsd-$objformat
  39691. + case $version_type in
  39692. + freebsd-elf*)
  39693. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  39694. + need_version=no
  39695. + need_lib_prefix=no
  39696. + ;;
  39697. + freebsd-*)
  39698. + library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  39699. + need_version=yes
  39700. + ;;
  39701. + esac
  39702. + shlibpath_var=LD_LIBRARY_PATH
  39703. + case $host_os in
  39704. + freebsd2*)
  39705. + shlibpath_overrides_runpath=yes
  39706. + ;;
  39707. + freebsd3.[01]* | freebsdelf3.[01]*)
  39708. + shlibpath_overrides_runpath=yes
  39709. + hardcode_into_libs=yes
  39710. + ;;
  39711. + freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  39712. + freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  39713. + shlibpath_overrides_runpath=no
  39714. + hardcode_into_libs=yes
  39715. + ;;
  39716. + *) # from 4.6 on, and DragonFly
  39717. + shlibpath_overrides_runpath=yes
  39718. + hardcode_into_libs=yes
  39719. + ;;
  39720. + esac
  39721. + ;;
  39722. +gnu*)
  39723. + version_type=linux
  39724. + need_lib_prefix=no
  39725. + need_version=no
  39726. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  39727. + soname_spec='${libname}${release}${shared_ext}$major'
  39728. + shlibpath_var=LD_LIBRARY_PATH
  39729. + hardcode_into_libs=yes
  39730. + ;;
  39731. -# Allow CC to be a program name with arguments.
  39732. -lt_save_CC="$CC"
  39733. -CC=${RC-"windres"}
  39734. -compiler=$CC
  39735. -compiler_RC=$CC
  39736. -for cc_temp in $compiler""; do
  39737. - case $cc_temp in
  39738. - compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  39739. - distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  39740. - \-*) ;;
  39741. - *) break;;
  39742. +hpux9* | hpux10* | hpux11*)
  39743. + # Give a soname corresponding to the major version so that dld.sl refuses to
  39744. + # link against other versions.
  39745. + version_type=sunos
  39746. + need_lib_prefix=no
  39747. + need_version=no
  39748. + case $host_cpu in
  39749. + ia64*)
  39750. + shrext_cmds='.so'
  39751. + hardcode_into_libs=yes
  39752. + dynamic_linker="$host_os dld.so"
  39753. + shlibpath_var=LD_LIBRARY_PATH
  39754. + shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  39755. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  39756. + soname_spec='${libname}${release}${shared_ext}$major'
  39757. + if test "X$HPUX_IA64_MODE" = X32; then
  39758. + sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  39759. + else
  39760. + sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  39761. + fi
  39762. + sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  39763. + ;;
  39764. + hppa*64*)
  39765. + shrext_cmds='.sl'
  39766. + hardcode_into_libs=yes
  39767. + dynamic_linker="$host_os dld.sl"
  39768. + shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  39769. + shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  39770. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  39771. + soname_spec='${libname}${release}${shared_ext}$major'
  39772. + sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  39773. + sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  39774. + ;;
  39775. + *)
  39776. + shrext_cmds='.sl'
  39777. + dynamic_linker="$host_os dld.sl"
  39778. + shlibpath_var=SHLIB_PATH
  39779. + shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  39780. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  39781. + soname_spec='${libname}${release}${shared_ext}$major'
  39782. + ;;
  39783. esac
  39784. -done
  39785. -cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  39786. + # HP-UX runs *really* slowly unless shared libraries are mode 555.
  39787. + postinstall_cmds='chmod 555 $lib'
  39788. + ;;
  39789. -lt_cv_prog_compiler_c_o_RC=yes
  39790. +interix[3-9]*)
  39791. + version_type=linux
  39792. + need_lib_prefix=no
  39793. + need_version=no
  39794. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  39795. + soname_spec='${libname}${release}${shared_ext}$major'
  39796. + dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  39797. + shlibpath_var=LD_LIBRARY_PATH
  39798. + shlibpath_overrides_runpath=no
  39799. + hardcode_into_libs=yes
  39800. + ;;
  39801. -# The else clause should only fire when bootstrapping the
  39802. -# libtool distribution, otherwise you forgot to ship ltmain.sh
  39803. -# with your package, and you will get complaints that there are
  39804. -# no rules to generate ltmain.sh.
  39805. -if test -f "$ltmain"; then
  39806. - # See if we are running on zsh, and set the options which allow our commands through
  39807. - # without removal of \ escapes.
  39808. - if test -n "${ZSH_VERSION+set}" ; then
  39809. - setopt NO_GLOB_SUBST
  39810. - fi
  39811. - # Now quote all the things that may contain metacharacters while being
  39812. - # careful not to overquote the AC_SUBSTed values. We take copies of the
  39813. - # variables and quote the copies for generation of the libtool script.
  39814. - for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
  39815. - SED SHELL STRIP \
  39816. - libname_spec library_names_spec soname_spec extract_expsyms_cmds \
  39817. - old_striplib striplib file_magic_cmd finish_cmds finish_eval \
  39818. - deplibs_check_method reload_flag reload_cmds need_locks \
  39819. - lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
  39820. - lt_cv_sys_global_symbol_to_c_name_address \
  39821. - sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  39822. - old_postinstall_cmds old_postuninstall_cmds \
  39823. - compiler_RC \
  39824. - CC_RC \
  39825. - LD_RC \
  39826. - lt_prog_compiler_wl_RC \
  39827. - lt_prog_compiler_pic_RC \
  39828. - lt_prog_compiler_static_RC \
  39829. - lt_prog_compiler_no_builtin_flag_RC \
  39830. - export_dynamic_flag_spec_RC \
  39831. - thread_safe_flag_spec_RC \
  39832. - whole_archive_flag_spec_RC \
  39833. - enable_shared_with_static_runtimes_RC \
  39834. - old_archive_cmds_RC \
  39835. - old_archive_from_new_cmds_RC \
  39836. - predep_objects_RC \
  39837. - postdep_objects_RC \
  39838. - predeps_RC \
  39839. - postdeps_RC \
  39840. - compiler_lib_search_path_RC \
  39841. - archive_cmds_RC \
  39842. - archive_expsym_cmds_RC \
  39843. - postinstall_cmds_RC \
  39844. - postuninstall_cmds_RC \
  39845. - old_archive_from_expsyms_cmds_RC \
  39846. - allow_undefined_flag_RC \
  39847. - no_undefined_flag_RC \
  39848. - export_symbols_cmds_RC \
  39849. - hardcode_libdir_flag_spec_RC \
  39850. - hardcode_libdir_flag_spec_ld_RC \
  39851. - hardcode_libdir_separator_RC \
  39852. - hardcode_automatic_RC \
  39853. - module_cmds_RC \
  39854. - module_expsym_cmds_RC \
  39855. - lt_cv_prog_compiler_c_o_RC \
  39856. - exclude_expsyms_RC \
  39857. - include_expsyms_RC; do
  39858. -
  39859. - case $var in
  39860. - old_archive_cmds_RC | \
  39861. - old_archive_from_new_cmds_RC | \
  39862. - archive_cmds_RC | \
  39863. - archive_expsym_cmds_RC | \
  39864. - module_cmds_RC | \
  39865. - module_expsym_cmds_RC | \
  39866. - old_archive_from_expsyms_cmds_RC | \
  39867. - export_symbols_cmds_RC | \
  39868. - extract_expsyms_cmds | reload_cmds | finish_cmds | \
  39869. - postinstall_cmds | postuninstall_cmds | \
  39870. - old_postinstall_cmds | old_postuninstall_cmds | \
  39871. - sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  39872. - # Double-quote double-evaled strings.
  39873. - eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
  39874. - ;;
  39875. +irix5* | irix6* | nonstopux*)
  39876. + case $host_os in
  39877. + nonstopux*) version_type=nonstopux ;;
  39878. *)
  39879. - eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
  39880. - ;;
  39881. + if test "$lt_cv_prog_gnu_ld" = yes; then
  39882. + version_type=linux
  39883. + else
  39884. + version_type=irix
  39885. + fi ;;
  39886. + esac
  39887. + need_lib_prefix=no
  39888. + need_version=no
  39889. + soname_spec='${libname}${release}${shared_ext}$major'
  39890. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  39891. + case $host_os in
  39892. + irix5* | nonstopux*)
  39893. + libsuff= shlibsuff=
  39894. + ;;
  39895. + *)
  39896. + case $LD in # libtool.m4 will add one of these switches to LD
  39897. + *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  39898. + libsuff= shlibsuff= libmagic=32-bit;;
  39899. + *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  39900. + libsuff=32 shlibsuff=N32 libmagic=N32;;
  39901. + *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  39902. + libsuff=64 shlibsuff=64 libmagic=64-bit;;
  39903. + *) libsuff= shlibsuff= libmagic=never-match;;
  39904. esac
  39905. - done
  39906. -
  39907. - case $lt_echo in
  39908. - *'\$0 --fallback-echo"')
  39909. - lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
  39910. ;;
  39911. esac
  39912. + shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  39913. + shlibpath_overrides_runpath=no
  39914. + sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  39915. + sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  39916. + hardcode_into_libs=yes
  39917. + ;;
  39918. -cfgfile="$ofile"
  39919. -
  39920. - cat <<__EOF__ >> "$cfgfile"
  39921. -# ### BEGIN LIBTOOL TAG CONFIG: $tagname
  39922. -
  39923. -# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  39924. -
  39925. -# Shell to use when invoking shell scripts.
  39926. -SHELL=$lt_SHELL
  39927. -
  39928. -# Whether or not to build shared libraries.
  39929. -build_libtool_libs=$enable_shared
  39930. -
  39931. -# Whether or not to build static libraries.
  39932. -build_old_libs=$enable_static
  39933. -
  39934. -# Whether or not to add -lc for building shared libraries.
  39935. -build_libtool_need_lc=$archive_cmds_need_lc_RC
  39936. -
  39937. -# Whether or not to disallow shared libs when runtime libs are static
  39938. -allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
  39939. -
  39940. -# Whether or not to optimize for fast installation.
  39941. -fast_install=$enable_fast_install
  39942. -
  39943. -# The host system.
  39944. -host_alias=$host_alias
  39945. -host=$host
  39946. -host_os=$host_os
  39947. -
  39948. -# The build system.
  39949. -build_alias=$build_alias
  39950. -build=$build
  39951. -build_os=$build_os
  39952. -
  39953. -# An echo program that does not interpret backslashes.
  39954. -echo=$lt_echo
  39955. +# No shared lib support for Linux oldld, aout, or coff.
  39956. +linux*oldld* | linux*aout* | linux*coff*)
  39957. + dynamic_linker=no
  39958. + ;;
  39959. -# The archiver.
  39960. -AR=$lt_AR
  39961. -AR_FLAGS=$lt_AR_FLAGS
  39962. +# This must be Linux ELF.
  39963. +linux* | k*bsd*-gnu | kopensolaris*-gnu)
  39964. + version_type=linux
  39965. + need_lib_prefix=no
  39966. + need_version=no
  39967. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  39968. + soname_spec='${libname}${release}${shared_ext}$major'
  39969. + finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  39970. + shlibpath_var=LD_LIBRARY_PATH
  39971. + shlibpath_overrides_runpath=no
  39972. + # Some binutils ld are patched to set DT_RUNPATH
  39973. + save_LDFLAGS=$LDFLAGS
  39974. + save_libdir=$libdir
  39975. + eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
  39976. + LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
  39977. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  39978. +/* end confdefs.h. */
  39979. -# A C compiler.
  39980. -LTCC=$lt_LTCC
  39981. +int
  39982. +main ()
  39983. +{
  39984. -# LTCC compiler flags.
  39985. -LTCFLAGS=$lt_LTCFLAGS
  39986. + ;
  39987. + return 0;
  39988. +}
  39989. +_ACEOF
  39990. +if ac_fn_c_try_link "$LINENO"; then :
  39991. + if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  39992. + shlibpath_overrides_runpath=yes
  39993. +fi
  39994. +fi
  39995. +rm -f core conftest.err conftest.$ac_objext \
  39996. + conftest$ac_exeext conftest.$ac_ext
  39997. + LDFLAGS=$save_LDFLAGS
  39998. + libdir=$save_libdir
  39999. -# A language-specific compiler.
  40000. -CC=$lt_compiler_RC
  40001. + # This implies no fast_install, which is unacceptable.
  40002. + # Some rework will be needed to allow for fast_install
  40003. + # before this can be enabled.
  40004. + hardcode_into_libs=yes
  40005. -# Is the compiler the GNU C compiler?
  40006. -with_gcc=$GCC_RC
  40007. + # Append ld.so.conf contents to the search path
  40008. + if test -f /etc/ld.so.conf; then
  40009. + 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' ' '`
  40010. + sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  40011. + fi
  40012. -gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\`
  40013. -gcc_ver=\`gcc -dumpversion\`
  40014. + # We used to test for /lib/ld.so.1 and disable shared libraries on
  40015. + # powerpc, because MkLinux only supported shared libraries with the
  40016. + # GNU dynamic linker. Since this was broken with cross compilers,
  40017. + # most powerpc-linux boxes support dynamic linking these days and
  40018. + # people can always --disable-shared, the test was removed, and we
  40019. + # assume the GNU/Linux dynamic linker is in use.
  40020. + dynamic_linker='GNU/Linux ld.so'
  40021. + ;;
  40022. -# An ERE matcher.
  40023. -EGREP=$lt_EGREP
  40024. +netbsdelf*-gnu)
  40025. + version_type=linux
  40026. + need_lib_prefix=no
  40027. + need_version=no
  40028. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  40029. + soname_spec='${libname}${release}${shared_ext}$major'
  40030. + shlibpath_var=LD_LIBRARY_PATH
  40031. + shlibpath_overrides_runpath=no
  40032. + hardcode_into_libs=yes
  40033. + dynamic_linker='NetBSD ld.elf_so'
  40034. + ;;
  40035. -# The linker used to build libraries.
  40036. -LD=$lt_LD_RC
  40037. +netbsd*)
  40038. + version_type=sunos
  40039. + need_lib_prefix=no
  40040. + need_version=no
  40041. + if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  40042. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  40043. + finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  40044. + dynamic_linker='NetBSD (a.out) ld.so'
  40045. + else
  40046. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  40047. + soname_spec='${libname}${release}${shared_ext}$major'
  40048. + dynamic_linker='NetBSD ld.elf_so'
  40049. + fi
  40050. + shlibpath_var=LD_LIBRARY_PATH
  40051. + shlibpath_overrides_runpath=yes
  40052. + hardcode_into_libs=yes
  40053. + ;;
  40054. -# Whether we need hard or soft links.
  40055. -LN_S=$lt_LN_S
  40056. +newsos6)
  40057. + version_type=linux
  40058. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  40059. + shlibpath_var=LD_LIBRARY_PATH
  40060. + shlibpath_overrides_runpath=yes
  40061. + ;;
  40062. -# A BSD-compatible nm program.
  40063. -NM=$lt_NM
  40064. +*nto* | *qnx*)
  40065. + version_type=qnx
  40066. + need_lib_prefix=no
  40067. + need_version=no
  40068. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  40069. + soname_spec='${libname}${release}${shared_ext}$major'
  40070. + shlibpath_var=LD_LIBRARY_PATH
  40071. + shlibpath_overrides_runpath=no
  40072. + hardcode_into_libs=yes
  40073. + dynamic_linker='ldqnx.so'
  40074. + ;;
  40075. -# A symbol stripping program
  40076. -STRIP=$lt_STRIP
  40077. +openbsd*)
  40078. + version_type=sunos
  40079. + sys_lib_dlsearch_path_spec="/usr/lib"
  40080. + need_lib_prefix=no
  40081. + # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  40082. + case $host_os in
  40083. + openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  40084. + *) need_version=no ;;
  40085. + esac
  40086. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  40087. + finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  40088. + shlibpath_var=LD_LIBRARY_PATH
  40089. + if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  40090. + case $host_os in
  40091. + openbsd2.[89] | openbsd2.[89].*)
  40092. + shlibpath_overrides_runpath=no
  40093. + ;;
  40094. + *)
  40095. + shlibpath_overrides_runpath=yes
  40096. + ;;
  40097. + esac
  40098. + else
  40099. + shlibpath_overrides_runpath=yes
  40100. + fi
  40101. + ;;
  40102. -# Used to examine libraries when file_magic_cmd begins "file"
  40103. -MAGIC_CMD=$MAGIC_CMD
  40104. +os2*)
  40105. + libname_spec='$name'
  40106. + shrext_cmds=".dll"
  40107. + need_lib_prefix=no
  40108. + library_names_spec='$libname${shared_ext} $libname.a'
  40109. + dynamic_linker='OS/2 ld.exe'
  40110. + shlibpath_var=LIBPATH
  40111. + ;;
  40112. -# Used on cygwin: DLL creation program.
  40113. -DLLTOOL="$DLLTOOL"
  40114. +osf3* | osf4* | osf5*)
  40115. + version_type=osf
  40116. + need_lib_prefix=no
  40117. + need_version=no
  40118. + soname_spec='${libname}${release}${shared_ext}$major'
  40119. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  40120. + shlibpath_var=LD_LIBRARY_PATH
  40121. + sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  40122. + sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  40123. + ;;
  40124. -# Used on cygwin: object dumper.
  40125. -OBJDUMP="$OBJDUMP"
  40126. +rdos*)
  40127. + dynamic_linker=no
  40128. + ;;
  40129. -# Used on cygwin: assembler.
  40130. -AS="$AS"
  40131. +solaris*)
  40132. + version_type=linux
  40133. + need_lib_prefix=no
  40134. + need_version=no
  40135. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  40136. + soname_spec='${libname}${release}${shared_ext}$major'
  40137. + shlibpath_var=LD_LIBRARY_PATH
  40138. + shlibpath_overrides_runpath=yes
  40139. + hardcode_into_libs=yes
  40140. + # ldd complains unless libraries are executable
  40141. + postinstall_cmds='chmod +x $lib'
  40142. + ;;
  40143. -# The name of the directory that contains temporary libtool files.
  40144. -objdir=$objdir
  40145. +sunos4*)
  40146. + version_type=sunos
  40147. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  40148. + finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  40149. + shlibpath_var=LD_LIBRARY_PATH
  40150. + shlibpath_overrides_runpath=yes
  40151. + if test "$with_gnu_ld" = yes; then
  40152. + need_lib_prefix=no
  40153. + fi
  40154. + need_version=yes
  40155. + ;;
  40156. -# How to create reloadable object files.
  40157. -reload_flag=$lt_reload_flag
  40158. -reload_cmds=$lt_reload_cmds
  40159. +sysv4 | sysv4.3*)
  40160. + version_type=linux
  40161. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  40162. + soname_spec='${libname}${release}${shared_ext}$major'
  40163. + shlibpath_var=LD_LIBRARY_PATH
  40164. + case $host_vendor in
  40165. + sni)
  40166. + shlibpath_overrides_runpath=no
  40167. + need_lib_prefix=no
  40168. + runpath_var=LD_RUN_PATH
  40169. + ;;
  40170. + siemens)
  40171. + need_lib_prefix=no
  40172. + ;;
  40173. + motorola)
  40174. + need_lib_prefix=no
  40175. + need_version=no
  40176. + shlibpath_overrides_runpath=no
  40177. + sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  40178. + ;;
  40179. + esac
  40180. + ;;
  40181. -# How to pass a linker flag through the compiler.
  40182. -wl=$lt_lt_prog_compiler_wl_RC
  40183. +sysv4*MP*)
  40184. + if test -d /usr/nec ;then
  40185. + version_type=linux
  40186. + library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  40187. + soname_spec='$libname${shared_ext}.$major'
  40188. + shlibpath_var=LD_LIBRARY_PATH
  40189. + fi
  40190. + ;;
  40191. -# Object file suffix (normally "o").
  40192. -objext="$ac_objext"
  40193. +sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  40194. + version_type=freebsd-elf
  40195. + need_lib_prefix=no
  40196. + need_version=no
  40197. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  40198. + soname_spec='${libname}${release}${shared_ext}$major'
  40199. + shlibpath_var=LD_LIBRARY_PATH
  40200. + shlibpath_overrides_runpath=yes
  40201. + hardcode_into_libs=yes
  40202. + if test "$with_gnu_ld" = yes; then
  40203. + sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  40204. + else
  40205. + sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  40206. + case $host_os in
  40207. + sco3.2v5*)
  40208. + sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  40209. + ;;
  40210. + esac
  40211. + fi
  40212. + sys_lib_dlsearch_path_spec='/usr/lib'
  40213. + ;;
  40214. -# Old archive suffix (normally "a").
  40215. -libext="$libext"
  40216. +tpf*)
  40217. + # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  40218. + version_type=linux
  40219. + need_lib_prefix=no
  40220. + need_version=no
  40221. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  40222. + shlibpath_var=LD_LIBRARY_PATH
  40223. + shlibpath_overrides_runpath=no
  40224. + hardcode_into_libs=yes
  40225. + ;;
  40226. -# Shared library suffix (normally ".so").
  40227. -shrext_cmds='$shrext_cmds'
  40228. +uts4*)
  40229. + version_type=linux
  40230. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  40231. + soname_spec='${libname}${release}${shared_ext}$major'
  40232. + shlibpath_var=LD_LIBRARY_PATH
  40233. + ;;
  40234. -# Executable file suffix (normally "").
  40235. -exeext="$exeext"
  40236. +*)
  40237. + dynamic_linker=no
  40238. + ;;
  40239. +esac
  40240. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  40241. +$as_echo "$dynamic_linker" >&6; }
  40242. +test "$dynamic_linker" = no && can_build_shared=no
  40243. -# Additional compiler flags for building library objects.
  40244. -pic_flag=$lt_lt_prog_compiler_pic_RC
  40245. -pic_mode=$pic_mode
  40246. +variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  40247. +if test "$GCC" = yes; then
  40248. + variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  40249. +fi
  40250. -# What is the maximum length of a command?
  40251. -max_cmd_len=$lt_cv_sys_max_cmd_len
  40252. +if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  40253. + sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  40254. +fi
  40255. +if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  40256. + sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  40257. +fi
  40258. -# Does compiler simultaneously support -c and -o options?
  40259. -compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
  40260. -# Must we lock files when doing compilation?
  40261. -need_locks=$lt_need_locks
  40262. -# Do we need the lib prefix for modules?
  40263. -need_lib_prefix=$need_lib_prefix
  40264. -# Do we need a version for libraries?
  40265. -need_version=$need_version
  40266. -# Whether dlopen is supported.
  40267. -dlopen_support=$enable_dlopen
  40268. -# Whether dlopen of programs is supported.
  40269. -dlopen_self=$enable_dlopen_self
  40270. -# Whether dlopen of statically linked programs is supported.
  40271. -dlopen_self_static=$enable_dlopen_self_static
  40272. -# Compiler flag to prevent dynamic linking.
  40273. -link_static_flag=$lt_lt_prog_compiler_static_RC
  40274. -# Compiler flag to turn off builtin functions.
  40275. -no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
  40276. -# Compiler flag to allow reflexive dlopens.
  40277. -export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
  40278. -# Compiler flag to generate shared objects directly from archives.
  40279. -whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
  40280. -# Compiler flag to generate thread-safe objects.
  40281. -thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
  40282. -# Library versioning type.
  40283. -version_type=$version_type
  40284. -# Format of library name prefix.
  40285. -libname_spec=$lt_libname_spec
  40286. -# List of archive names. First name is the real one, the rest are links.
  40287. -# The last name is the one that the linker finds with -lNAME.
  40288. -library_names_spec=$lt_library_names_spec
  40289. -# The coded name of the library, if different from the real name.
  40290. -soname_spec=$lt_soname_spec
  40291. -# Commands used to build and install an old-style archive.
  40292. -RANLIB=$lt_RANLIB
  40293. -old_archive_cmds=$lt_old_archive_cmds_RC
  40294. -old_postinstall_cmds=$lt_old_postinstall_cmds
  40295. -old_postuninstall_cmds=$lt_old_postuninstall_cmds
  40296. -# Create an old-style archive from a shared archive.
  40297. -old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
  40298. -# Create a temporary old-style archive to link instead of a shared archive.
  40299. -old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
  40300. -# Commands used to build and install a shared archive.
  40301. -archive_cmds=$lt_archive_cmds_RC
  40302. -archive_expsym_cmds=$lt_archive_expsym_cmds_RC
  40303. -postinstall_cmds=$lt_postinstall_cmds
  40304. -postuninstall_cmds=$lt_postuninstall_cmds
  40305. -# Commands used to build a loadable module (assumed same as above if empty)
  40306. -module_cmds=$lt_module_cmds_RC
  40307. -module_expsym_cmds=$lt_module_expsym_cmds_RC
  40308. -# Commands to strip libraries.
  40309. -old_striplib=$lt_old_striplib
  40310. -striplib=$lt_striplib
  40311. -# Dependencies to place before the objects being linked to create a
  40312. -# shared library.
  40313. -predep_objects=\`echo $lt_predep_objects_RC | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
  40314. -
  40315. -# Dependencies to place after the objects being linked to create a
  40316. -# shared library.
  40317. -postdep_objects=\`echo $lt_postdep_objects_RC | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
  40318. -
  40319. -# Dependencies to place before the objects being linked to create a
  40320. -# shared library.
  40321. -predeps=$lt_predeps_RC
  40322. -
  40323. -# Dependencies to place after the objects being linked to create a
  40324. -# shared library.
  40325. -postdeps=$lt_postdeps_RC
  40326. -
  40327. -# The library search path used internally by the compiler when linking
  40328. -# a shared library.
  40329. -compiler_lib_search_path=\`echo $lt_compiler_lib_search_path_RC | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
  40330. -# Method to check whether dependent libraries are shared objects.
  40331. -deplibs_check_method=$lt_deplibs_check_method
  40332. -# Command to use when deplibs_check_method == file_magic.
  40333. -file_magic_cmd=$lt_file_magic_cmd
  40334. -# Flag that allows shared libraries with undefined symbols to be built.
  40335. -allow_undefined_flag=$lt_allow_undefined_flag_RC
  40336. -# Flag that forces no undefined symbols.
  40337. -no_undefined_flag=$lt_no_undefined_flag_RC
  40338. -# Commands used to finish a libtool library installation in a directory.
  40339. -finish_cmds=$lt_finish_cmds
  40340. -# Same as above, but a single script fragment to be evaled but not shown.
  40341. -finish_eval=$lt_finish_eval
  40342. -# Take the output of nm and produce a listing of raw symbols and C names.
  40343. -global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  40344. -# Transform the output of nm in a proper C declaration
  40345. -global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  40346. -# Transform the output of nm in a C name address pair
  40347. -global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  40348. -# This is the shared library runtime path variable.
  40349. -runpath_var=$runpath_var
  40350. -# This is the shared library path variable.
  40351. -shlibpath_var=$shlibpath_var
  40352. -# Is shlibpath searched before the hard-coded library search path?
  40353. -shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  40354. -# How to hardcode a shared library path into an executable.
  40355. -hardcode_action=$hardcode_action_RC
  40356. -# Whether we should hardcode library paths into libraries.
  40357. -hardcode_into_libs=$hardcode_into_libs
  40358. -# Flag to hardcode \$libdir into a binary during linking.
  40359. -# This must work even if \$libdir does not exist.
  40360. -hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
  40361. -# If ld is used when linking, flag to hardcode \$libdir into
  40362. -# a binary during linking. This must work even if \$libdir does
  40363. -# not exist.
  40364. -hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
  40365. -
  40366. -# Whether we need a single -rpath flag with a separated argument.
  40367. -hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
  40368. -
  40369. -# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
  40370. -# resulting binary.
  40371. -hardcode_direct=$hardcode_direct_RC
  40372. -
  40373. -# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  40374. -# resulting binary.
  40375. -hardcode_minus_L=$hardcode_minus_L_RC
  40376. -
  40377. -# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
  40378. -# the resulting binary.
  40379. -hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
  40380. -
  40381. -# Set to yes if building a shared library automatically hardcodes DIR into the library
  40382. -# and all subsequent libraries and executables linked against it.
  40383. -hardcode_automatic=$hardcode_automatic_RC
  40384. -# Variables whose values should be saved in libtool wrapper scripts and
  40385. -# restored at relink time.
  40386. -variables_saved_for_relink="$variables_saved_for_relink"
  40387. -# Whether libtool must link a program against all its dependency libraries.
  40388. -link_all_deplibs=$link_all_deplibs_RC
  40389. -# Compile-time system search path for libraries
  40390. -sys_lib_search_path_spec=\`echo $lt_sys_lib_search_path_spec | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
  40391. -# Run-time system search path for libraries
  40392. -sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  40393. -# Fix the shell variable \$srcfile for the compiler.
  40394. -fix_srcfile_path="$fix_srcfile_path_RC"
  40395. -# Set to yes if exported symbols are required.
  40396. -always_export_symbols=$always_export_symbols_RC
  40397. -# The commands to list exported symbols.
  40398. -export_symbols_cmds=$lt_export_symbols_cmds_RC
  40399. -# The commands to extract the exported symbol list from a shared archive.
  40400. -extract_expsyms_cmds=$lt_extract_expsyms_cmds
  40401. -# Symbols that should not be listed in the preloaded symbols.
  40402. -exclude_expsyms=$lt_exclude_expsyms_RC
  40403. -# Symbols that must always be exported.
  40404. -include_expsyms=$lt_include_expsyms_RC
  40405. -# ### END LIBTOOL TAG CONFIG: $tagname
  40406. -__EOF__
  40407. -else
  40408. - # If there is no Makefile yet, we rely on a make rule to execute
  40409. - # `config.status --recheck' to rerun these tests and create the
  40410. - # libtool script then.
  40411. - ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  40412. - if test -f "$ltmain_in"; then
  40413. - test -f Makefile && make "$ltmain"
  40414. - fi
  40415. -fi
  40416. -ac_ext=c
  40417. -ac_cpp='$CPP $CPPFLAGS'
  40418. -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  40419. -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  40420. -ac_compiler_gnu=$ac_cv_c_compiler_gnu
  40421. -CC="$lt_save_CC"
  40422. - ;;
  40423. - *)
  40424. - { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
  40425. -echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
  40426. - { (exit 1); exit 1; }; }
  40427. - ;;
  40428. - esac
  40429. - # Append the new tag name to the list of available tags.
  40430. - if test -n "$tagname" ; then
  40431. - available_tags="$available_tags $tagname"
  40432. - fi
  40433. - fi
  40434. - done
  40435. - IFS="$lt_save_ifs"
  40436. - # Now substitute the updated list of available tags.
  40437. - if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
  40438. - mv "${ofile}T" "$ofile"
  40439. - chmod +x "$ofile"
  40440. - else
  40441. - rm -f "${ofile}T"
  40442. - { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
  40443. -echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
  40444. - { (exit 1); exit 1; }; }
  40445. - fi
  40446. -fi
  40447. -# This can be used to rebuild libtool when needed
  40448. -LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
  40449. -# Always use our own libtool.
  40450. -LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  40451. -# Prevent multiple expansion
  40452. @@ -19778,5672 +9984,4331 @@
  40453. -ac_config_headers="$ac_config_headers src/gssglue/config.h"
  40454. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  40455. +$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  40456. +hardcode_action=
  40457. +if test -n "$hardcode_libdir_flag_spec" ||
  40458. + test -n "$runpath_var" ||
  40459. + test "X$hardcode_automatic" = "Xyes" ; then
  40460. -# Checks for programs.
  40461. -ac_ext=c
  40462. -ac_cpp='$CPP $CPPFLAGS'
  40463. -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  40464. -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  40465. -ac_compiler_gnu=$ac_cv_c_compiler_gnu
  40466. -if test -n "$ac_tool_prefix"; then
  40467. - # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  40468. -set dummy ${ac_tool_prefix}gcc; ac_word=$2
  40469. -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
  40470. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  40471. -if test "${ac_cv_prog_CC+set}" = set; then
  40472. - echo $ECHO_N "(cached) $ECHO_C" >&6
  40473. -else
  40474. - if test -n "$CC"; then
  40475. - ac_cv_prog_CC="$CC" # Let the user override the test.
  40476. -else
  40477. -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  40478. -for as_dir in $PATH
  40479. -do
  40480. - IFS=$as_save_IFS
  40481. - test -z "$as_dir" && as_dir=.
  40482. - for ac_exec_ext in '' $ac_executable_extensions; do
  40483. - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
  40484. - ac_cv_prog_CC="${ac_tool_prefix}gcc"
  40485. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  40486. - break 2
  40487. + # We can hardcode non-existent directories.
  40488. + if test "$hardcode_direct" != no &&
  40489. + # If the only mechanism to avoid hardcoding is shlibpath_var, we
  40490. + # have to relink, otherwise we might link with an installed library
  40491. + # when we should be linking with a yet-to-be-installed one
  40492. + ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
  40493. + test "$hardcode_minus_L" != no; then
  40494. + # Linking always hardcodes the temporary library directory.
  40495. + hardcode_action=relink
  40496. + else
  40497. + # We can link without hardcoding, and we can hardcode nonexisting dirs.
  40498. + hardcode_action=immediate
  40499. fi
  40500. -done
  40501. -done
  40502. -IFS=$as_save_IFS
  40503. -
  40504. -fi
  40505. -fi
  40506. -CC=$ac_cv_prog_CC
  40507. -if test -n "$CC"; then
  40508. - { echo "$as_me:$LINENO: result: $CC" >&5
  40509. -echo "${ECHO_T}$CC" >&6; }
  40510. else
  40511. - { echo "$as_me:$LINENO: result: no" >&5
  40512. -echo "${ECHO_T}no" >&6; }
  40513. + # We cannot hardcode anything, or else we can only hardcode existing
  40514. + # directories.
  40515. + hardcode_action=unsupported
  40516. fi
  40517. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
  40518. +$as_echo "$hardcode_action" >&6; }
  40519. -
  40520. +if test "$hardcode_action" = relink ||
  40521. + test "$inherit_rpath" = yes; then
  40522. + # Fast installation is not supported
  40523. + enable_fast_install=no
  40524. +elif test "$shlibpath_overrides_runpath" = yes ||
  40525. + test "$enable_shared" = no; then
  40526. + # Fast installation is not necessary
  40527. + enable_fast_install=needless
  40528. fi
  40529. -if test -z "$ac_cv_prog_CC"; then
  40530. - ac_ct_CC=$CC
  40531. - # Extract the first word of "gcc", so it can be a program name with args.
  40532. -set dummy gcc; ac_word=$2
  40533. -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
  40534. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  40535. -if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  40536. - echo $ECHO_N "(cached) $ECHO_C" >&6
  40537. -else
  40538. - if test -n "$ac_ct_CC"; then
  40539. - ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  40540. -else
  40541. -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  40542. -for as_dir in $PATH
  40543. -do
  40544. - IFS=$as_save_IFS
  40545. - test -z "$as_dir" && as_dir=.
  40546. - for ac_exec_ext in '' $ac_executable_extensions; do
  40547. - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
  40548. - ac_cv_prog_ac_ct_CC="gcc"
  40549. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  40550. - break 2
  40551. - fi
  40552. -done
  40553. -done
  40554. -IFS=$as_save_IFS
  40555. -fi
  40556. -fi
  40557. -ac_ct_CC=$ac_cv_prog_ac_ct_CC
  40558. -if test -n "$ac_ct_CC"; then
  40559. - { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  40560. -echo "${ECHO_T}$ac_ct_CC" >&6; }
  40561. -else
  40562. - { echo "$as_me:$LINENO: result: no" >&5
  40563. -echo "${ECHO_T}no" >&6; }
  40564. -fi
  40565. - if test "x$ac_ct_CC" = x; then
  40566. - CC=""
  40567. - else
  40568. - case $cross_compiling:$ac_tool_warned in
  40569. -yes:)
  40570. -{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  40571. -whose name does not start with the host triplet. If you think this
  40572. -configuration is useful to you, please write to autoconf@gnu.org." >&5
  40573. -echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  40574. -whose name does not start with the host triplet. If you think this
  40575. -configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  40576. -ac_tool_warned=yes ;;
  40577. -esac
  40578. - CC=$ac_ct_CC
  40579. - fi
  40580. -else
  40581. - CC="$ac_cv_prog_CC"
  40582. -fi
  40583. -if test -z "$CC"; then
  40584. - if test -n "$ac_tool_prefix"; then
  40585. - # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  40586. -set dummy ${ac_tool_prefix}cc; ac_word=$2
  40587. -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
  40588. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  40589. -if test "${ac_cv_prog_CC+set}" = set; then
  40590. - echo $ECHO_N "(cached) $ECHO_C" >&6
  40591. -else
  40592. - if test -n "$CC"; then
  40593. - ac_cv_prog_CC="$CC" # Let the user override the test.
  40594. -else
  40595. -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  40596. -for as_dir in $PATH
  40597. -do
  40598. - IFS=$as_save_IFS
  40599. - test -z "$as_dir" && as_dir=.
  40600. - for ac_exec_ext in '' $ac_executable_extensions; do
  40601. - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
  40602. - ac_cv_prog_CC="${ac_tool_prefix}cc"
  40603. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  40604. - break 2
  40605. - fi
  40606. -done
  40607. -done
  40608. -IFS=$as_save_IFS
  40609. -fi
  40610. -fi
  40611. -CC=$ac_cv_prog_CC
  40612. -if test -n "$CC"; then
  40613. - { echo "$as_me:$LINENO: result: $CC" >&5
  40614. -echo "${ECHO_T}$CC" >&6; }
  40615. -else
  40616. - { echo "$as_me:$LINENO: result: no" >&5
  40617. -echo "${ECHO_T}no" >&6; }
  40618. -fi
  40619. - fi
  40620. -fi
  40621. -if test -z "$CC"; then
  40622. - # Extract the first word of "cc", so it can be a program name with args.
  40623. -set dummy cc; ac_word=$2
  40624. -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
  40625. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  40626. -if test "${ac_cv_prog_CC+set}" = set; then
  40627. - echo $ECHO_N "(cached) $ECHO_C" >&6
  40628. + if test "x$enable_dlopen" != xyes; then
  40629. + enable_dlopen=unknown
  40630. + enable_dlopen_self=unknown
  40631. + enable_dlopen_self_static=unknown
  40632. else
  40633. - if test -n "$CC"; then
  40634. - ac_cv_prog_CC="$CC" # Let the user override the test.
  40635. + lt_cv_dlopen=no
  40636. + lt_cv_dlopen_libs=
  40637. +
  40638. + case $host_os in
  40639. + beos*)
  40640. + lt_cv_dlopen="load_add_on"
  40641. + lt_cv_dlopen_libs=
  40642. + lt_cv_dlopen_self=yes
  40643. + ;;
  40644. +
  40645. + mingw* | pw32* | cegcc*)
  40646. + lt_cv_dlopen="LoadLibrary"
  40647. + lt_cv_dlopen_libs=
  40648. + ;;
  40649. +
  40650. + cygwin*)
  40651. + lt_cv_dlopen="dlopen"
  40652. + lt_cv_dlopen_libs=
  40653. + ;;
  40654. +
  40655. + darwin*)
  40656. + # if libdl is installed we need to link against it
  40657. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  40658. +$as_echo_n "checking for dlopen in -ldl... " >&6; }
  40659. +if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
  40660. + $as_echo_n "(cached) " >&6
  40661. else
  40662. - ac_prog_rejected=no
  40663. -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  40664. -for as_dir in $PATH
  40665. -do
  40666. - IFS=$as_save_IFS
  40667. - test -z "$as_dir" && as_dir=.
  40668. - for ac_exec_ext in '' $ac_executable_extensions; do
  40669. - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
  40670. - if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  40671. - ac_prog_rejected=yes
  40672. - continue
  40673. - fi
  40674. - ac_cv_prog_CC="cc"
  40675. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  40676. - break 2
  40677. - fi
  40678. -done
  40679. -done
  40680. -IFS=$as_save_IFS
  40681. + ac_check_lib_save_LIBS=$LIBS
  40682. +LIBS="-ldl $LIBS"
  40683. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  40684. +/* end confdefs.h. */
  40685. -if test $ac_prog_rejected = yes; then
  40686. - # We found a bogon in the path, so make sure we never use it.
  40687. - set dummy $ac_cv_prog_CC
  40688. - shift
  40689. - if test $# != 0; then
  40690. - # We chose a different compiler from the bogus one.
  40691. - # However, it has the same basename, so the bogon will be chosen
  40692. - # first if we set CC to just the basename; use the full file name.
  40693. - shift
  40694. - ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  40695. - fi
  40696. -fi
  40697. +/* Override any GCC internal prototype to avoid an error.
  40698. + Use char because int might match the return type of a GCC
  40699. + builtin and then its argument prototype would still apply. */
  40700. +#ifdef __cplusplus
  40701. +extern "C"
  40702. +#endif
  40703. +char dlopen ();
  40704. +int
  40705. +main ()
  40706. +{
  40707. +return dlopen ();
  40708. + ;
  40709. + return 0;
  40710. +}
  40711. +_ACEOF
  40712. +if ac_fn_c_try_link "$LINENO"; then :
  40713. + ac_cv_lib_dl_dlopen=yes
  40714. +else
  40715. + ac_cv_lib_dl_dlopen=no
  40716. fi
  40717. +rm -f core conftest.err conftest.$ac_objext \
  40718. + conftest$ac_exeext conftest.$ac_ext
  40719. +LIBS=$ac_check_lib_save_LIBS
  40720. fi
  40721. -CC=$ac_cv_prog_CC
  40722. -if test -n "$CC"; then
  40723. - { echo "$as_me:$LINENO: result: $CC" >&5
  40724. -echo "${ECHO_T}$CC" >&6; }
  40725. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  40726. +$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  40727. +if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
  40728. + lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  40729. else
  40730. - { echo "$as_me:$LINENO: result: no" >&5
  40731. -echo "${ECHO_T}no" >&6; }
  40732. -fi
  40733. + lt_cv_dlopen="dyld"
  40734. + lt_cv_dlopen_libs=
  40735. + lt_cv_dlopen_self=yes
  40736. fi
  40737. -if test -z "$CC"; then
  40738. - if test -n "$ac_tool_prefix"; then
  40739. - for ac_prog in cl.exe
  40740. - do
  40741. - # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  40742. -set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  40743. -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
  40744. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  40745. -if test "${ac_cv_prog_CC+set}" = set; then
  40746. - echo $ECHO_N "(cached) $ECHO_C" >&6
  40747. +
  40748. + ;;
  40749. +
  40750. + *)
  40751. + ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
  40752. +if test "x$ac_cv_func_shl_load" = x""yes; then :
  40753. + lt_cv_dlopen="shl_load"
  40754. else
  40755. - if test -n "$CC"; then
  40756. - ac_cv_prog_CC="$CC" # Let the user override the test.
  40757. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
  40758. +$as_echo_n "checking for shl_load in -ldld... " >&6; }
  40759. +if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
  40760. + $as_echo_n "(cached) " >&6
  40761. else
  40762. -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  40763. -for as_dir in $PATH
  40764. -do
  40765. - IFS=$as_save_IFS
  40766. - test -z "$as_dir" && as_dir=.
  40767. - for ac_exec_ext in '' $ac_executable_extensions; do
  40768. - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
  40769. - ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  40770. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  40771. - break 2
  40772. - fi
  40773. -done
  40774. -done
  40775. -IFS=$as_save_IFS
  40776. + ac_check_lib_save_LIBS=$LIBS
  40777. +LIBS="-ldld $LIBS"
  40778. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  40779. +/* end confdefs.h. */
  40780. -fi
  40781. -fi
  40782. -CC=$ac_cv_prog_CC
  40783. -if test -n "$CC"; then
  40784. - { echo "$as_me:$LINENO: result: $CC" >&5
  40785. -echo "${ECHO_T}$CC" >&6; }
  40786. +/* Override any GCC internal prototype to avoid an error.
  40787. + Use char because int might match the return type of a GCC
  40788. + builtin and then its argument prototype would still apply. */
  40789. +#ifdef __cplusplus
  40790. +extern "C"
  40791. +#endif
  40792. +char shl_load ();
  40793. +int
  40794. +main ()
  40795. +{
  40796. +return shl_load ();
  40797. + ;
  40798. + return 0;
  40799. +}
  40800. +_ACEOF
  40801. +if ac_fn_c_try_link "$LINENO"; then :
  40802. + ac_cv_lib_dld_shl_load=yes
  40803. else
  40804. - { echo "$as_me:$LINENO: result: no" >&5
  40805. -echo "${ECHO_T}no" >&6; }
  40806. + ac_cv_lib_dld_shl_load=no
  40807. fi
  40808. -
  40809. -
  40810. - test -n "$CC" && break
  40811. - done
  40812. +rm -f core conftest.err conftest.$ac_objext \
  40813. + conftest$ac_exeext conftest.$ac_ext
  40814. +LIBS=$ac_check_lib_save_LIBS
  40815. fi
  40816. -if test -z "$CC"; then
  40817. - ac_ct_CC=$CC
  40818. - for ac_prog in cl.exe
  40819. -do
  40820. - # Extract the first word of "$ac_prog", so it can be a program name with args.
  40821. -set dummy $ac_prog; ac_word=$2
  40822. -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
  40823. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  40824. -if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  40825. - echo $ECHO_N "(cached) $ECHO_C" >&6
  40826. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
  40827. +$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
  40828. +if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
  40829. + lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
  40830. else
  40831. - if test -n "$ac_ct_CC"; then
  40832. - ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  40833. + ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
  40834. +if test "x$ac_cv_func_dlopen" = x""yes; then :
  40835. + lt_cv_dlopen="dlopen"
  40836. else
  40837. -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  40838. -for as_dir in $PATH
  40839. -do
  40840. - IFS=$as_save_IFS
  40841. - test -z "$as_dir" && as_dir=.
  40842. - for ac_exec_ext in '' $ac_executable_extensions; do
  40843. - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
  40844. - ac_cv_prog_ac_ct_CC="$ac_prog"
  40845. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  40846. - break 2
  40847. - fi
  40848. -done
  40849. -done
  40850. -IFS=$as_save_IFS
  40851. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  40852. +$as_echo_n "checking for dlopen in -ldl... " >&6; }
  40853. +if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
  40854. + $as_echo_n "(cached) " >&6
  40855. +else
  40856. + ac_check_lib_save_LIBS=$LIBS
  40857. +LIBS="-ldl $LIBS"
  40858. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  40859. +/* end confdefs.h. */
  40860. +/* Override any GCC internal prototype to avoid an error.
  40861. + Use char because int might match the return type of a GCC
  40862. + builtin and then its argument prototype would still apply. */
  40863. +#ifdef __cplusplus
  40864. +extern "C"
  40865. +#endif
  40866. +char dlopen ();
  40867. +int
  40868. +main ()
  40869. +{
  40870. +return dlopen ();
  40871. + ;
  40872. + return 0;
  40873. +}
  40874. +_ACEOF
  40875. +if ac_fn_c_try_link "$LINENO"; then :
  40876. + ac_cv_lib_dl_dlopen=yes
  40877. +else
  40878. + ac_cv_lib_dl_dlopen=no
  40879. fi
  40880. +rm -f core conftest.err conftest.$ac_objext \
  40881. + conftest$ac_exeext conftest.$ac_ext
  40882. +LIBS=$ac_check_lib_save_LIBS
  40883. fi
  40884. -ac_ct_CC=$ac_cv_prog_ac_ct_CC
  40885. -if test -n "$ac_ct_CC"; then
  40886. - { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  40887. -echo "${ECHO_T}$ac_ct_CC" >&6; }
  40888. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  40889. +$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  40890. +if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
  40891. + lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  40892. else
  40893. - { echo "$as_me:$LINENO: result: no" >&5
  40894. -echo "${ECHO_T}no" >&6; }
  40895. -fi
  40896. -
  40897. -
  40898. - test -n "$ac_ct_CC" && break
  40899. -done
  40900. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
  40901. +$as_echo_n "checking for dlopen in -lsvld... " >&6; }
  40902. +if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
  40903. + $as_echo_n "(cached) " >&6
  40904. +else
  40905. + ac_check_lib_save_LIBS=$LIBS
  40906. +LIBS="-lsvld $LIBS"
  40907. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  40908. +/* end confdefs.h. */
  40909. - if test "x$ac_ct_CC" = x; then
  40910. - CC=""
  40911. - else
  40912. - case $cross_compiling:$ac_tool_warned in
  40913. -yes:)
  40914. -{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  40915. -whose name does not start with the host triplet. If you think this
  40916. -configuration is useful to you, please write to autoconf@gnu.org." >&5
  40917. -echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  40918. -whose name does not start with the host triplet. If you think this
  40919. -configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  40920. -ac_tool_warned=yes ;;
  40921. -esac
  40922. - CC=$ac_ct_CC
  40923. - fi
  40924. +/* Override any GCC internal prototype to avoid an error.
  40925. + Use char because int might match the return type of a GCC
  40926. + builtin and then its argument prototype would still apply. */
  40927. +#ifdef __cplusplus
  40928. +extern "C"
  40929. +#endif
  40930. +char dlopen ();
  40931. +int
  40932. +main ()
  40933. +{
  40934. +return dlopen ();
  40935. + ;
  40936. + return 0;
  40937. +}
  40938. +_ACEOF
  40939. +if ac_fn_c_try_link "$LINENO"; then :
  40940. + ac_cv_lib_svld_dlopen=yes
  40941. +else
  40942. + ac_cv_lib_svld_dlopen=no
  40943. fi
  40944. -
  40945. +rm -f core conftest.err conftest.$ac_objext \
  40946. + conftest$ac_exeext conftest.$ac_ext
  40947. +LIBS=$ac_check_lib_save_LIBS
  40948. fi
  40949. -
  40950. -
  40951. -test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
  40952. -See \`config.log' for more details." >&5
  40953. -echo "$as_me: error: no acceptable C compiler found in \$PATH
  40954. -See \`config.log' for more details." >&2;}
  40955. - { (exit 1); exit 1; }; }
  40956. -
  40957. -# Provide some information about the compiler.
  40958. -echo "$as_me:$LINENO: checking for C compiler version" >&5
  40959. -ac_compiler=`set X $ac_compile; echo $2`
  40960. -{ (ac_try="$ac_compiler --version >&5"
  40961. -case "(($ac_try" in
  40962. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  40963. - *) ac_try_echo=$ac_try;;
  40964. -esac
  40965. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  40966. - (eval "$ac_compiler --version >&5") 2>&5
  40967. - ac_status=$?
  40968. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  40969. - (exit $ac_status); }
  40970. -{ (ac_try="$ac_compiler -v >&5"
  40971. -case "(($ac_try" in
  40972. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  40973. - *) ac_try_echo=$ac_try;;
  40974. -esac
  40975. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  40976. - (eval "$ac_compiler -v >&5") 2>&5
  40977. - ac_status=$?
  40978. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  40979. - (exit $ac_status); }
  40980. -{ (ac_try="$ac_compiler -V >&5"
  40981. -case "(($ac_try" in
  40982. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  40983. - *) ac_try_echo=$ac_try;;
  40984. -esac
  40985. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  40986. - (eval "$ac_compiler -V >&5") 2>&5
  40987. - ac_status=$?
  40988. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  40989. - (exit $ac_status); }
  40990. -
  40991. -{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
  40992. -echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
  40993. -if test "${ac_cv_c_compiler_gnu+set}" = set; then
  40994. - echo $ECHO_N "(cached) $ECHO_C" >&6
  40995. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
  40996. +$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
  40997. +if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
  40998. + lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  40999. else
  41000. - cat >conftest.$ac_ext <<_ACEOF
  41001. -/* confdefs.h. */
  41002. -_ACEOF
  41003. -cat confdefs.h >>conftest.$ac_ext
  41004. -cat >>conftest.$ac_ext <<_ACEOF
  41005. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
  41006. +$as_echo_n "checking for dld_link in -ldld... " >&6; }
  41007. +if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
  41008. + $as_echo_n "(cached) " >&6
  41009. +else
  41010. + ac_check_lib_save_LIBS=$LIBS
  41011. +LIBS="-ldld $LIBS"
  41012. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  41013. /* end confdefs.h. */
  41014. +/* Override any GCC internal prototype to avoid an error.
  41015. + Use char because int might match the return type of a GCC
  41016. + builtin and then its argument prototype would still apply. */
  41017. +#ifdef __cplusplus
  41018. +extern "C"
  41019. +#endif
  41020. +char dld_link ();
  41021. int
  41022. main ()
  41023. {
  41024. -#ifndef __GNUC__
  41025. - choke me
  41026. -#endif
  41027. -
  41028. +return dld_link ();
  41029. ;
  41030. return 0;
  41031. }
  41032. _ACEOF
  41033. -rm -f conftest.$ac_objext
  41034. -if { (ac_try="$ac_compile"
  41035. -case "(($ac_try" in
  41036. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  41037. - *) ac_try_echo=$ac_try;;
  41038. -esac
  41039. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  41040. - (eval "$ac_compile") 2>conftest.er1
  41041. - ac_status=$?
  41042. - grep -v '^ *+' conftest.er1 >conftest.err
  41043. - rm -f conftest.er1
  41044. - cat conftest.err >&5
  41045. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  41046. - (exit $ac_status); } &&
  41047. - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  41048. - { (case "(($ac_try" in
  41049. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  41050. - *) ac_try_echo=$ac_try;;
  41051. -esac
  41052. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  41053. - (eval "$ac_try") 2>&5
  41054. - ac_status=$?
  41055. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  41056. - (exit $ac_status); }; } &&
  41057. - { ac_try='test -s conftest.$ac_objext'
  41058. - { (case "(($ac_try" in
  41059. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  41060. - *) ac_try_echo=$ac_try;;
  41061. -esac
  41062. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  41063. - (eval "$ac_try") 2>&5
  41064. - ac_status=$?
  41065. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  41066. - (exit $ac_status); }; }; then
  41067. - ac_compiler_gnu=yes
  41068. +if ac_fn_c_try_link "$LINENO"; then :
  41069. + ac_cv_lib_dld_dld_link=yes
  41070. else
  41071. - echo "$as_me: failed program was:" >&5
  41072. -sed 's/^/| /' conftest.$ac_ext >&5
  41073. + ac_cv_lib_dld_dld_link=no
  41074. +fi
  41075. +rm -f core conftest.err conftest.$ac_objext \
  41076. + conftest$ac_exeext conftest.$ac_ext
  41077. +LIBS=$ac_check_lib_save_LIBS
  41078. +fi
  41079. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
  41080. +$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
  41081. +if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
  41082. + lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
  41083. +fi
  41084. +
  41085. - ac_compiler_gnu=no
  41086. fi
  41087. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  41088. -ac_cv_c_compiler_gnu=$ac_compiler_gnu
  41089. fi
  41090. -{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
  41091. -echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
  41092. -GCC=`test $ac_compiler_gnu = yes && echo yes`
  41093. -ac_test_CFLAGS=${CFLAGS+set}
  41094. -ac_save_CFLAGS=$CFLAGS
  41095. -{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
  41096. -echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
  41097. -if test "${ac_cv_prog_cc_g+set}" = set; then
  41098. - echo $ECHO_N "(cached) $ECHO_C" >&6
  41099. -else
  41100. - ac_save_c_werror_flag=$ac_c_werror_flag
  41101. - ac_c_werror_flag=yes
  41102. - ac_cv_prog_cc_g=no
  41103. - CFLAGS="-g"
  41104. - cat >conftest.$ac_ext <<_ACEOF
  41105. -/* confdefs.h. */
  41106. -_ACEOF
  41107. -cat confdefs.h >>conftest.$ac_ext
  41108. -cat >>conftest.$ac_ext <<_ACEOF
  41109. -/* end confdefs.h. */
  41110. -int
  41111. -main ()
  41112. -{
  41113. - ;
  41114. - return 0;
  41115. -}
  41116. -_ACEOF
  41117. -rm -f conftest.$ac_objext
  41118. -if { (ac_try="$ac_compile"
  41119. -case "(($ac_try" in
  41120. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  41121. - *) ac_try_echo=$ac_try;;
  41122. -esac
  41123. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  41124. - (eval "$ac_compile") 2>conftest.er1
  41125. - ac_status=$?
  41126. - grep -v '^ *+' conftest.er1 >conftest.err
  41127. - rm -f conftest.er1
  41128. - cat conftest.err >&5
  41129. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  41130. - (exit $ac_status); } &&
  41131. - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  41132. - { (case "(($ac_try" in
  41133. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  41134. - *) ac_try_echo=$ac_try;;
  41135. -esac
  41136. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  41137. - (eval "$ac_try") 2>&5
  41138. - ac_status=$?
  41139. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  41140. - (exit $ac_status); }; } &&
  41141. - { ac_try='test -s conftest.$ac_objext'
  41142. - { (case "(($ac_try" in
  41143. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  41144. - *) ac_try_echo=$ac_try;;
  41145. -esac
  41146. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  41147. - (eval "$ac_try") 2>&5
  41148. - ac_status=$?
  41149. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  41150. - (exit $ac_status); }; }; then
  41151. - ac_cv_prog_cc_g=yes
  41152. +fi
  41153. +
  41154. +
  41155. +fi
  41156. +
  41157. +
  41158. +fi
  41159. +
  41160. + ;;
  41161. + esac
  41162. +
  41163. + if test "x$lt_cv_dlopen" != xno; then
  41164. + enable_dlopen=yes
  41165. + else
  41166. + enable_dlopen=no
  41167. + fi
  41168. +
  41169. + case $lt_cv_dlopen in
  41170. + dlopen)
  41171. + save_CPPFLAGS="$CPPFLAGS"
  41172. + test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  41173. +
  41174. + save_LDFLAGS="$LDFLAGS"
  41175. + wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  41176. +
  41177. + save_LIBS="$LIBS"
  41178. + LIBS="$lt_cv_dlopen_libs $LIBS"
  41179. +
  41180. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
  41181. +$as_echo_n "checking whether a program can dlopen itself... " >&6; }
  41182. +if test "${lt_cv_dlopen_self+set}" = set; then :
  41183. + $as_echo_n "(cached) " >&6
  41184. else
  41185. - echo "$as_me: failed program was:" >&5
  41186. -sed 's/^/| /' conftest.$ac_ext >&5
  41187. + if test "$cross_compiling" = yes; then :
  41188. + lt_cv_dlopen_self=cross
  41189. +else
  41190. + lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  41191. + lt_status=$lt_dlunknown
  41192. + cat > conftest.$ac_ext <<_LT_EOF
  41193. +#line 10318 "configure"
  41194. +#include "confdefs.h"
  41195. - CFLAGS=""
  41196. - cat >conftest.$ac_ext <<_ACEOF
  41197. -/* confdefs.h. */
  41198. -_ACEOF
  41199. -cat confdefs.h >>conftest.$ac_ext
  41200. -cat >>conftest.$ac_ext <<_ACEOF
  41201. -/* end confdefs.h. */
  41202. +#if HAVE_DLFCN_H
  41203. +#include <dlfcn.h>
  41204. +#endif
  41205. -int
  41206. -main ()
  41207. +#include <stdio.h>
  41208. +
  41209. +#ifdef RTLD_GLOBAL
  41210. +# define LT_DLGLOBAL RTLD_GLOBAL
  41211. +#else
  41212. +# ifdef DL_GLOBAL
  41213. +# define LT_DLGLOBAL DL_GLOBAL
  41214. +# else
  41215. +# define LT_DLGLOBAL 0
  41216. +# endif
  41217. +#endif
  41218. +
  41219. +/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  41220. + find out it does not work in some platform. */
  41221. +#ifndef LT_DLLAZY_OR_NOW
  41222. +# ifdef RTLD_LAZY
  41223. +# define LT_DLLAZY_OR_NOW RTLD_LAZY
  41224. +# else
  41225. +# ifdef DL_LAZY
  41226. +# define LT_DLLAZY_OR_NOW DL_LAZY
  41227. +# else
  41228. +# ifdef RTLD_NOW
  41229. +# define LT_DLLAZY_OR_NOW RTLD_NOW
  41230. +# else
  41231. +# ifdef DL_NOW
  41232. +# define LT_DLLAZY_OR_NOW DL_NOW
  41233. +# else
  41234. +# define LT_DLLAZY_OR_NOW 0
  41235. +# endif
  41236. +# endif
  41237. +# endif
  41238. +# endif
  41239. +#endif
  41240. +
  41241. +void fnord() { int i=42;}
  41242. +int main ()
  41243. {
  41244. + void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  41245. + int status = $lt_dlunknown;
  41246. - ;
  41247. - return 0;
  41248. + if (self)
  41249. + {
  41250. + if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  41251. + else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  41252. + /* dlclose (self); */
  41253. + }
  41254. + else
  41255. + puts (dlerror ());
  41256. +
  41257. + return status;
  41258. }
  41259. -_ACEOF
  41260. -rm -f conftest.$ac_objext
  41261. -if { (ac_try="$ac_compile"
  41262. -case "(($ac_try" in
  41263. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  41264. - *) ac_try_echo=$ac_try;;
  41265. -esac
  41266. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  41267. - (eval "$ac_compile") 2>conftest.er1
  41268. - ac_status=$?
  41269. - grep -v '^ *+' conftest.er1 >conftest.err
  41270. - rm -f conftest.er1
  41271. - cat conftest.err >&5
  41272. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  41273. - (exit $ac_status); } &&
  41274. - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  41275. - { (case "(($ac_try" in
  41276. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  41277. - *) ac_try_echo=$ac_try;;
  41278. -esac
  41279. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  41280. - (eval "$ac_try") 2>&5
  41281. - ac_status=$?
  41282. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  41283. - (exit $ac_status); }; } &&
  41284. - { ac_try='test -s conftest.$ac_objext'
  41285. - { (case "(($ac_try" in
  41286. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  41287. - *) ac_try_echo=$ac_try;;
  41288. -esac
  41289. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  41290. - (eval "$ac_try") 2>&5
  41291. +_LT_EOF
  41292. + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  41293. + (eval $ac_link) 2>&5
  41294. ac_status=$?
  41295. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  41296. - (exit $ac_status); }; }; then
  41297. - :
  41298. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  41299. + test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  41300. + (./conftest; exit; ) >&5 2>/dev/null
  41301. + lt_status=$?
  41302. + case x$lt_status in
  41303. + x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  41304. + x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  41305. + x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  41306. + esac
  41307. + else :
  41308. + # compilation failed
  41309. + lt_cv_dlopen_self=no
  41310. + fi
  41311. +fi
  41312. +rm -fr conftest*
  41313. +
  41314. +
  41315. +fi
  41316. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
  41317. +$as_echo "$lt_cv_dlopen_self" >&6; }
  41318. +
  41319. + if test "x$lt_cv_dlopen_self" = xyes; then
  41320. + wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  41321. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
  41322. +$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
  41323. +if test "${lt_cv_dlopen_self_static+set}" = set; then :
  41324. + $as_echo_n "(cached) " >&6
  41325. else
  41326. - echo "$as_me: failed program was:" >&5
  41327. -sed 's/^/| /' conftest.$ac_ext >&5
  41328. + if test "$cross_compiling" = yes; then :
  41329. + lt_cv_dlopen_self_static=cross
  41330. +else
  41331. + lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  41332. + lt_status=$lt_dlunknown
  41333. + cat > conftest.$ac_ext <<_LT_EOF
  41334. +#line 10414 "configure"
  41335. +#include "confdefs.h"
  41336. - ac_c_werror_flag=$ac_save_c_werror_flag
  41337. - CFLAGS="-g"
  41338. - cat >conftest.$ac_ext <<_ACEOF
  41339. -/* confdefs.h. */
  41340. -_ACEOF
  41341. -cat confdefs.h >>conftest.$ac_ext
  41342. -cat >>conftest.$ac_ext <<_ACEOF
  41343. -/* end confdefs.h. */
  41344. +#if HAVE_DLFCN_H
  41345. +#include <dlfcn.h>
  41346. +#endif
  41347. -int
  41348. -main ()
  41349. +#include <stdio.h>
  41350. +
  41351. +#ifdef RTLD_GLOBAL
  41352. +# define LT_DLGLOBAL RTLD_GLOBAL
  41353. +#else
  41354. +# ifdef DL_GLOBAL
  41355. +# define LT_DLGLOBAL DL_GLOBAL
  41356. +# else
  41357. +# define LT_DLGLOBAL 0
  41358. +# endif
  41359. +#endif
  41360. +
  41361. +/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  41362. + find out it does not work in some platform. */
  41363. +#ifndef LT_DLLAZY_OR_NOW
  41364. +# ifdef RTLD_LAZY
  41365. +# define LT_DLLAZY_OR_NOW RTLD_LAZY
  41366. +# else
  41367. +# ifdef DL_LAZY
  41368. +# define LT_DLLAZY_OR_NOW DL_LAZY
  41369. +# else
  41370. +# ifdef RTLD_NOW
  41371. +# define LT_DLLAZY_OR_NOW RTLD_NOW
  41372. +# else
  41373. +# ifdef DL_NOW
  41374. +# define LT_DLLAZY_OR_NOW DL_NOW
  41375. +# else
  41376. +# define LT_DLLAZY_OR_NOW 0
  41377. +# endif
  41378. +# endif
  41379. +# endif
  41380. +# endif
  41381. +#endif
  41382. +
  41383. +void fnord() { int i=42;}
  41384. +int main ()
  41385. {
  41386. + void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  41387. + int status = $lt_dlunknown;
  41388. +
  41389. + if (self)
  41390. + {
  41391. + if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  41392. + else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  41393. + /* dlclose (self); */
  41394. + }
  41395. + else
  41396. + puts (dlerror ());
  41397. - ;
  41398. - return 0;
  41399. + return status;
  41400. }
  41401. -_ACEOF
  41402. -rm -f conftest.$ac_objext
  41403. -if { (ac_try="$ac_compile"
  41404. -case "(($ac_try" in
  41405. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  41406. - *) ac_try_echo=$ac_try;;
  41407. -esac
  41408. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  41409. - (eval "$ac_compile") 2>conftest.er1
  41410. - ac_status=$?
  41411. - grep -v '^ *+' conftest.er1 >conftest.err
  41412. - rm -f conftest.er1
  41413. - cat conftest.err >&5
  41414. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  41415. - (exit $ac_status); } &&
  41416. - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  41417. - { (case "(($ac_try" in
  41418. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  41419. - *) ac_try_echo=$ac_try;;
  41420. -esac
  41421. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  41422. - (eval "$ac_try") 2>&5
  41423. - ac_status=$?
  41424. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  41425. - (exit $ac_status); }; } &&
  41426. - { ac_try='test -s conftest.$ac_objext'
  41427. - { (case "(($ac_try" in
  41428. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  41429. - *) ac_try_echo=$ac_try;;
  41430. -esac
  41431. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  41432. - (eval "$ac_try") 2>&5
  41433. +_LT_EOF
  41434. + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  41435. + (eval $ac_link) 2>&5
  41436. ac_status=$?
  41437. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  41438. - (exit $ac_status); }; }; then
  41439. - ac_cv_prog_cc_g=yes
  41440. -else
  41441. - echo "$as_me: failed program was:" >&5
  41442. -sed 's/^/| /' conftest.$ac_ext >&5
  41443. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  41444. + test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  41445. + (./conftest; exit; ) >&5 2>/dev/null
  41446. + lt_status=$?
  41447. + case x$lt_status in
  41448. + x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  41449. + x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  41450. + x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  41451. + esac
  41452. + else :
  41453. + # compilation failed
  41454. + lt_cv_dlopen_self_static=no
  41455. + fi
  41456. +fi
  41457. +rm -fr conftest*
  41458. fi
  41459. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
  41460. +$as_echo "$lt_cv_dlopen_self_static" >&6; }
  41461. + fi
  41462. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  41463. -fi
  41464. + CPPFLAGS="$save_CPPFLAGS"
  41465. + LDFLAGS="$save_LDFLAGS"
  41466. + LIBS="$save_LIBS"
  41467. + ;;
  41468. + esac
  41469. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  41470. -fi
  41471. + case $lt_cv_dlopen_self in
  41472. + yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  41473. + *) enable_dlopen_self=unknown ;;
  41474. + esac
  41475. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  41476. - ac_c_werror_flag=$ac_save_c_werror_flag
  41477. -fi
  41478. -{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
  41479. -echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
  41480. -if test "$ac_test_CFLAGS" = set; then
  41481. - CFLAGS=$ac_save_CFLAGS
  41482. -elif test $ac_cv_prog_cc_g = yes; then
  41483. - if test "$GCC" = yes; then
  41484. - CFLAGS="-g -O2"
  41485. - else
  41486. - CFLAGS="-g"
  41487. - fi
  41488. -else
  41489. - if test "$GCC" = yes; then
  41490. - CFLAGS="-O2"
  41491. - else
  41492. - CFLAGS=
  41493. - fi
  41494. + case $lt_cv_dlopen_self_static in
  41495. + yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  41496. + *) enable_dlopen_self_static=unknown ;;
  41497. + esac
  41498. fi
  41499. -{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
  41500. -echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
  41501. -if test "${ac_cv_prog_cc_c89+set}" = set; then
  41502. - echo $ECHO_N "(cached) $ECHO_C" >&6
  41503. -else
  41504. - ac_cv_prog_cc_c89=no
  41505. -ac_save_CC=$CC
  41506. -cat >conftest.$ac_ext <<_ACEOF
  41507. -/* confdefs.h. */
  41508. -_ACEOF
  41509. -cat confdefs.h >>conftest.$ac_ext
  41510. -cat >>conftest.$ac_ext <<_ACEOF
  41511. -/* end confdefs.h. */
  41512. -#include <stdarg.h>
  41513. -#include <stdio.h>
  41514. -#include <sys/types.h>
  41515. -#include <sys/stat.h>
  41516. -/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  41517. -struct buf { int x; };
  41518. -FILE * (*rcsopen) (struct buf *, struct stat *, int);
  41519. -static char *e (p, i)
  41520. - char **p;
  41521. - int i;
  41522. -{
  41523. - return p[i];
  41524. -}
  41525. -static char *f (char * (*g) (char **, int), char **p, ...)
  41526. -{
  41527. - char *s;
  41528. - va_list v;
  41529. - va_start (v,p);
  41530. - s = g (p, va_arg (v,int));
  41531. - va_end (v);
  41532. - return s;
  41533. -}
  41534. -/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  41535. - function prototypes and stuff, but not '\xHH' hex character constants.
  41536. - These don't provoke an error unfortunately, instead are silently treated
  41537. - as 'x'. The following induces an error, until -std is added to get
  41538. - proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  41539. - array size at least. It's necessary to write '\x00'==0 to get something
  41540. - that's true only with -std. */
  41541. -int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  41542. -/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  41543. - inside strings and character constants. */
  41544. -#define FOO(x) 'x'
  41545. -int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  41546. -int test (int i, double x);
  41547. -struct s1 {int (*f) (int a);};
  41548. -struct s2 {int (*f) (double a);};
  41549. -int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  41550. -int argc;
  41551. -char **argv;
  41552. -int
  41553. -main ()
  41554. -{
  41555. -return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  41556. - ;
  41557. - return 0;
  41558. -}
  41559. -_ACEOF
  41560. -for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  41561. - -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  41562. -do
  41563. - CC="$ac_save_CC $ac_arg"
  41564. - rm -f conftest.$ac_objext
  41565. -if { (ac_try="$ac_compile"
  41566. -case "(($ac_try" in
  41567. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  41568. - *) ac_try_echo=$ac_try;;
  41569. -esac
  41570. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  41571. - (eval "$ac_compile") 2>conftest.er1
  41572. - ac_status=$?
  41573. - grep -v '^ *+' conftest.er1 >conftest.err
  41574. - rm -f conftest.er1
  41575. - cat conftest.err >&5
  41576. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  41577. - (exit $ac_status); } &&
  41578. - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  41579. - { (case "(($ac_try" in
  41580. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  41581. - *) ac_try_echo=$ac_try;;
  41582. -esac
  41583. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  41584. - (eval "$ac_try") 2>&5
  41585. - ac_status=$?
  41586. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  41587. - (exit $ac_status); }; } &&
  41588. - { ac_try='test -s conftest.$ac_objext'
  41589. - { (case "(($ac_try" in
  41590. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  41591. - *) ac_try_echo=$ac_try;;
  41592. -esac
  41593. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  41594. - (eval "$ac_try") 2>&5
  41595. - ac_status=$?
  41596. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  41597. - (exit $ac_status); }; }; then
  41598. - ac_cv_prog_cc_c89=$ac_arg
  41599. -else
  41600. - echo "$as_me: failed program was:" >&5
  41601. -sed 's/^/| /' conftest.$ac_ext >&5
  41602. -fi
  41603. -rm -f core conftest.err conftest.$ac_objext
  41604. - test "x$ac_cv_prog_cc_c89" != "xno" && break
  41605. -done
  41606. -rm -f conftest.$ac_ext
  41607. -CC=$ac_save_CC
  41608. -fi
  41609. -# AC_CACHE_VAL
  41610. -case "x$ac_cv_prog_cc_c89" in
  41611. - x)
  41612. - { echo "$as_me:$LINENO: result: none needed" >&5
  41613. -echo "${ECHO_T}none needed" >&6; } ;;
  41614. - xno)
  41615. - { echo "$as_me:$LINENO: result: unsupported" >&5
  41616. -echo "${ECHO_T}unsupported" >&6; } ;;
  41617. - *)
  41618. - CC="$CC $ac_cv_prog_cc_c89"
  41619. - { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
  41620. -echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
  41621. -esac
  41622. -ac_ext=c
  41623. -ac_cpp='$CPP $CPPFLAGS'
  41624. -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  41625. -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  41626. -ac_compiler_gnu=$ac_cv_c_compiler_gnu
  41627. -depcc="$CC" am_compiler_list=
  41628. -{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
  41629. -echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
  41630. -if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
  41631. - echo $ECHO_N "(cached) $ECHO_C" >&6
  41632. -else
  41633. - if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  41634. - # We make a subdir and do the tests there. Otherwise we can end up
  41635. - # making bogus files that we don't know about and never remove. For
  41636. - # instance it was reported that on HP-UX the gcc test will end up
  41637. - # making a dummy file named `D' -- because `-MD' means `put the output
  41638. - # in D'.
  41639. - mkdir conftest.dir
  41640. - # Copy depcomp to subdir because otherwise we won't find it if we're
  41641. - # using a relative directory.
  41642. - cp "$am_depcomp" conftest.dir
  41643. - cd conftest.dir
  41644. - # We will build objects and dependencies in a subdirectory because
  41645. - # it helps to detect inapplicable dependency modes. For instance
  41646. - # both Tru64's cc and ICC support -MD to output dependencies as a
  41647. - # side effect of compilation, but ICC will put the dependencies in
  41648. - # the current directory while Tru64 will put them in the object
  41649. - # directory.
  41650. - mkdir sub
  41651. - am_cv_CC_dependencies_compiler_type=none
  41652. - if test "$am_compiler_list" = ""; then
  41653. - am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  41654. - fi
  41655. - for depmode in $am_compiler_list; do
  41656. - # Setup a source with many dependencies, because some compilers
  41657. - # like to wrap large dependency lists on column 80 (with \), and
  41658. - # we should not choose a depcomp mode which is confused by this.
  41659. - #
  41660. - # We need to recreate these files for each test, as the compiler may
  41661. - # overwrite some of them when testing with obscure command lines.
  41662. - # This happens at least with the AIX C compiler.
  41663. - : > sub/conftest.c
  41664. - for i in 1 2 3 4 5 6; do
  41665. - echo '#include "conftst'$i'.h"' >> sub/conftest.c
  41666. - # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  41667. - # Solaris 8's {/usr,}/bin/sh.
  41668. - touch sub/conftst$i.h
  41669. - done
  41670. - echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  41671. - case $depmode in
  41672. - nosideeffect)
  41673. - # after this tag, mechanisms are not by side-effect, so they'll
  41674. - # only be used when explicitly requested
  41675. - if test "x$enable_dependency_tracking" = xyes; then
  41676. - continue
  41677. - else
  41678. - break
  41679. - fi
  41680. - ;;
  41681. - none) break ;;
  41682. - esac
  41683. - # We check with `-c' and `-o' for the sake of the "dashmstdout"
  41684. - # mode. It turns out that the SunPro C++ compiler does not properly
  41685. - # handle `-M -o', and we need to detect this.
  41686. - if depmode=$depmode \
  41687. - source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
  41688. - depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  41689. - $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
  41690. - >/dev/null 2>conftest.err &&
  41691. - grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  41692. - grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
  41693. - ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  41694. - # icc doesn't choke on unknown options, it will just issue warnings
  41695. - # or remarks (even with -Werror). So we grep stderr for any message
  41696. - # that says an option was ignored or not supported.
  41697. - # When given -MP, icc 7.0 and 7.1 complain thusly:
  41698. - # icc: Command line warning: ignoring option '-M'; no argument required
  41699. - # The diagnosis changed in icc 8.0:
  41700. - # icc: Command line remark: option '-MP' not supported
  41701. - if (grep 'ignoring option' conftest.err ||
  41702. - grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  41703. - am_cv_CC_dependencies_compiler_type=$depmode
  41704. - break
  41705. - fi
  41706. +
  41707. +
  41708. +
  41709. +
  41710. +striplib=
  41711. +old_striplib=
  41712. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
  41713. +$as_echo_n "checking whether stripping libraries is possible... " >&6; }
  41714. +if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  41715. + test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  41716. + test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  41717. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  41718. +$as_echo "yes" >&6; }
  41719. +else
  41720. +# FIXME - insert some real tests, host_os isn't really good enough
  41721. + case $host_os in
  41722. + darwin*)
  41723. + if test -n "$STRIP" ; then
  41724. + striplib="$STRIP -x"
  41725. + old_striplib="$STRIP -S"
  41726. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  41727. +$as_echo "yes" >&6; }
  41728. + else
  41729. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  41730. +$as_echo "no" >&6; }
  41731. + fi
  41732. + ;;
  41733. + *)
  41734. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  41735. +$as_echo "no" >&6; }
  41736. + ;;
  41737. + esac
  41738. +fi
  41739. +
  41740. +
  41741. +
  41742. +
  41743. +
  41744. +
  41745. +
  41746. +
  41747. +
  41748. +
  41749. +
  41750. +
  41751. + # Report which library types will actually be built
  41752. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
  41753. +$as_echo_n "checking if libtool supports shared libraries... " >&6; }
  41754. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
  41755. +$as_echo "$can_build_shared" >&6; }
  41756. +
  41757. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
  41758. +$as_echo_n "checking whether to build shared libraries... " >&6; }
  41759. + test "$can_build_shared" = "no" && enable_shared=no
  41760. +
  41761. + # On AIX, shared libraries and static libraries use the same namespace, and
  41762. + # are all built from PIC.
  41763. + case $host_os in
  41764. + aix3*)
  41765. + test "$enable_shared" = yes && enable_static=no
  41766. + if test -n "$RANLIB"; then
  41767. + archive_cmds="$archive_cmds~\$RANLIB \$lib"
  41768. + postinstall_cmds='$RANLIB $lib'
  41769. fi
  41770. - done
  41771. + ;;
  41772. - cd ..
  41773. - rm -rf conftest.dir
  41774. -else
  41775. - am_cv_CC_dependencies_compiler_type=none
  41776. -fi
  41777. + aix[4-9]*)
  41778. + if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  41779. + test "$enable_shared" = yes && enable_static=no
  41780. + fi
  41781. + ;;
  41782. + esac
  41783. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
  41784. +$as_echo "$enable_shared" >&6; }
  41785. +
  41786. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
  41787. +$as_echo_n "checking whether to build static libraries... " >&6; }
  41788. + # Make sure either enable_shared or enable_static is yes.
  41789. + test "$enable_shared" = yes || enable_static=yes
  41790. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
  41791. +$as_echo "$enable_static" >&6; }
  41792. -fi
  41793. -{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
  41794. -echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
  41795. -CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  41796. -if
  41797. - test "x$enable_dependency_tracking" != xno \
  41798. - && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  41799. - am__fastdepCC_TRUE=
  41800. - am__fastdepCC_FALSE='#'
  41801. -else
  41802. - am__fastdepCC_TRUE='#'
  41803. - am__fastdepCC_FALSE=
  41804. fi
  41805. +ac_ext=c
  41806. +ac_cpp='$CPP $CPPFLAGS'
  41807. +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  41808. +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  41809. +ac_compiler_gnu=$ac_cv_c_compiler_gnu
  41810. +
  41811. +CC="$lt_save_CC"
  41812. +
  41813. +
  41814. +
  41815. +
  41816. +
  41817. +
  41818. +
  41819. +
  41820. +
  41821. +
  41822. +
  41823. +
  41824. +
  41825. + ac_config_commands="$ac_config_commands libtool"
  41826. +
  41827. +
  41828. +
  41829. +
  41830. +# Only expand once:
  41831. +
  41832. +ac_config_headers="$ac_config_headers src/gssglue/config.h"
  41833. +
  41834. +
  41835. +# Checks for programs.
  41836. +ac_ext=c
  41837. +ac_cpp='$CPP $CPPFLAGS'
  41838. +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  41839. +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  41840. +ac_compiler_gnu=$ac_cv_c_compiler_gnu
  41841. if test -n "$ac_tool_prefix"; then
  41842. - # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  41843. -set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  41844. -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
  41845. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  41846. -if test "${ac_cv_prog_RANLIB+set}" = set; then
  41847. - echo $ECHO_N "(cached) $ECHO_C" >&6
  41848. + # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  41849. +set dummy ${ac_tool_prefix}gcc; ac_word=$2
  41850. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  41851. +$as_echo_n "checking for $ac_word... " >&6; }
  41852. +if test "${ac_cv_prog_CC+set}" = set; then :
  41853. + $as_echo_n "(cached) " >&6
  41854. else
  41855. - if test -n "$RANLIB"; then
  41856. - ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  41857. + if test -n "$CC"; then
  41858. + ac_cv_prog_CC="$CC" # Let the user override the test.
  41859. else
  41860. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  41861. for as_dir in $PATH
  41862. do
  41863. IFS=$as_save_IFS
  41864. test -z "$as_dir" && as_dir=.
  41865. - for ac_exec_ext in '' $ac_executable_extensions; do
  41866. - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
  41867. - ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  41868. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  41869. + for ac_exec_ext in '' $ac_executable_extensions; do
  41870. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  41871. + ac_cv_prog_CC="${ac_tool_prefix}gcc"
  41872. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  41873. break 2
  41874. fi
  41875. done
  41876. -done
  41877. + done
  41878. IFS=$as_save_IFS
  41879. fi
  41880. fi
  41881. -RANLIB=$ac_cv_prog_RANLIB
  41882. -if test -n "$RANLIB"; then
  41883. - { echo "$as_me:$LINENO: result: $RANLIB" >&5
  41884. -echo "${ECHO_T}$RANLIB" >&6; }
  41885. +CC=$ac_cv_prog_CC
  41886. +if test -n "$CC"; then
  41887. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  41888. +$as_echo "$CC" >&6; }
  41889. else
  41890. - { echo "$as_me:$LINENO: result: no" >&5
  41891. -echo "${ECHO_T}no" >&6; }
  41892. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  41893. +$as_echo "no" >&6; }
  41894. fi
  41895. fi
  41896. -if test -z "$ac_cv_prog_RANLIB"; then
  41897. - ac_ct_RANLIB=$RANLIB
  41898. - # Extract the first word of "ranlib", so it can be a program name with args.
  41899. -set dummy ranlib; ac_word=$2
  41900. -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
  41901. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  41902. -if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
  41903. - echo $ECHO_N "(cached) $ECHO_C" >&6
  41904. +if test -z "$ac_cv_prog_CC"; then
  41905. + ac_ct_CC=$CC
  41906. + # Extract the first word of "gcc", so it can be a program name with args.
  41907. +set dummy gcc; ac_word=$2
  41908. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  41909. +$as_echo_n "checking for $ac_word... " >&6; }
  41910. +if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
  41911. + $as_echo_n "(cached) " >&6
  41912. else
  41913. - if test -n "$ac_ct_RANLIB"; then
  41914. - ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  41915. + if test -n "$ac_ct_CC"; then
  41916. + ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  41917. else
  41918. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  41919. for as_dir in $PATH
  41920. do
  41921. IFS=$as_save_IFS
  41922. test -z "$as_dir" && as_dir=.
  41923. - for ac_exec_ext in '' $ac_executable_extensions; do
  41924. - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
  41925. - ac_cv_prog_ac_ct_RANLIB="ranlib"
  41926. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  41927. + for ac_exec_ext in '' $ac_executable_extensions; do
  41928. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  41929. + ac_cv_prog_ac_ct_CC="gcc"
  41930. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  41931. break 2
  41932. - fi
  41933. -done
  41934. -done
  41935. -IFS=$as_save_IFS
  41936. -
  41937. -fi
  41938. -fi
  41939. -ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  41940. -if test -n "$ac_ct_RANLIB"; then
  41941. - { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
  41942. -echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
  41943. -else
  41944. - { echo "$as_me:$LINENO: result: no" >&5
  41945. -echo "${ECHO_T}no" >&6; }
  41946. -fi
  41947. -
  41948. - if test "x$ac_ct_RANLIB" = x; then
  41949. - RANLIB=":"
  41950. - else
  41951. - case $cross_compiling:$ac_tool_warned in
  41952. -yes:)
  41953. -{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  41954. -whose name does not start with the host triplet. If you think this
  41955. -configuration is useful to you, please write to autoconf@gnu.org." >&5
  41956. -echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  41957. -whose name does not start with the host triplet. If you think this
  41958. -configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  41959. -ac_tool_warned=yes ;;
  41960. -esac
  41961. - RANLIB=$ac_ct_RANLIB
  41962. - fi
  41963. -else
  41964. - RANLIB="$ac_cv_prog_RANLIB"
  41965. -fi
  41966. -
  41967. -
  41968. -# Checks for libraries.
  41969. -
  41970. -# Checks for header files.
  41971. -{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
  41972. -echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
  41973. -if test "${ac_cv_header_stdc+set}" = set; then
  41974. - echo $ECHO_N "(cached) $ECHO_C" >&6
  41975. -else
  41976. - cat >conftest.$ac_ext <<_ACEOF
  41977. -/* confdefs.h. */
  41978. -_ACEOF
  41979. -cat confdefs.h >>conftest.$ac_ext
  41980. -cat >>conftest.$ac_ext <<_ACEOF
  41981. -/* end confdefs.h. */
  41982. -#include <stdlib.h>
  41983. -#include <stdarg.h>
  41984. -#include <string.h>
  41985. -#include <float.h>
  41986. -
  41987. -int
  41988. -main ()
  41989. -{
  41990. -
  41991. - ;
  41992. - return 0;
  41993. -}
  41994. -_ACEOF
  41995. -rm -f conftest.$ac_objext
  41996. -if { (ac_try="$ac_compile"
  41997. -case "(($ac_try" in
  41998. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  41999. - *) ac_try_echo=$ac_try;;
  42000. -esac
  42001. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  42002. - (eval "$ac_compile") 2>conftest.er1
  42003. - ac_status=$?
  42004. - grep -v '^ *+' conftest.er1 >conftest.err
  42005. - rm -f conftest.er1
  42006. - cat conftest.err >&5
  42007. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  42008. - (exit $ac_status); } &&
  42009. - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  42010. - { (case "(($ac_try" in
  42011. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  42012. - *) ac_try_echo=$ac_try;;
  42013. -esac
  42014. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  42015. - (eval "$ac_try") 2>&5
  42016. - ac_status=$?
  42017. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  42018. - (exit $ac_status); }; } &&
  42019. - { ac_try='test -s conftest.$ac_objext'
  42020. - { (case "(($ac_try" in
  42021. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  42022. - *) ac_try_echo=$ac_try;;
  42023. -esac
  42024. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  42025. - (eval "$ac_try") 2>&5
  42026. - ac_status=$?
  42027. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  42028. - (exit $ac_status); }; }; then
  42029. - ac_cv_header_stdc=yes
  42030. -else
  42031. - echo "$as_me: failed program was:" >&5
  42032. -sed 's/^/| /' conftest.$ac_ext >&5
  42033. -
  42034. - ac_cv_header_stdc=no
  42035. -fi
  42036. -
  42037. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  42038. -
  42039. -if test $ac_cv_header_stdc = yes; then
  42040. - # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  42041. - cat >conftest.$ac_ext <<_ACEOF
  42042. -/* confdefs.h. */
  42043. -_ACEOF
  42044. -cat confdefs.h >>conftest.$ac_ext
  42045. -cat >>conftest.$ac_ext <<_ACEOF
  42046. -/* end confdefs.h. */
  42047. -#include <string.h>
  42048. -
  42049. -_ACEOF
  42050. -if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  42051. - $EGREP "memchr" >/dev/null 2>&1; then
  42052. - :
  42053. -else
  42054. - ac_cv_header_stdc=no
  42055. -fi
  42056. -rm -f conftest*
  42057. -
  42058. -fi
  42059. -
  42060. -if test $ac_cv_header_stdc = yes; then
  42061. - # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  42062. - cat >conftest.$ac_ext <<_ACEOF
  42063. -/* confdefs.h. */
  42064. -_ACEOF
  42065. -cat confdefs.h >>conftest.$ac_ext
  42066. -cat >>conftest.$ac_ext <<_ACEOF
  42067. -/* end confdefs.h. */
  42068. -#include <stdlib.h>
  42069. -
  42070. -_ACEOF
  42071. -if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  42072. - $EGREP "free" >/dev/null 2>&1; then
  42073. - :
  42074. -else
  42075. - ac_cv_header_stdc=no
  42076. -fi
  42077. -rm -f conftest*
  42078. -
  42079. -fi
  42080. -
  42081. -if test $ac_cv_header_stdc = yes; then
  42082. - # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  42083. - if test "$cross_compiling" = yes; then
  42084. - :
  42085. -else
  42086. - cat >conftest.$ac_ext <<_ACEOF
  42087. -/* confdefs.h. */
  42088. -_ACEOF
  42089. -cat confdefs.h >>conftest.$ac_ext
  42090. -cat >>conftest.$ac_ext <<_ACEOF
  42091. -/* end confdefs.h. */
  42092. -#include <ctype.h>
  42093. -#include <stdlib.h>
  42094. -#if ((' ' & 0x0FF) == 0x020)
  42095. -# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  42096. -# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  42097. -#else
  42098. -# define ISLOWER(c) \
  42099. - (('a' <= (c) && (c) <= 'i') \
  42100. - || ('j' <= (c) && (c) <= 'r') \
  42101. - || ('s' <= (c) && (c) <= 'z'))
  42102. -# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  42103. -#endif
  42104. -
  42105. -#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  42106. -int
  42107. -main ()
  42108. -{
  42109. - int i;
  42110. - for (i = 0; i < 256; i++)
  42111. - if (XOR (islower (i), ISLOWER (i))
  42112. - || toupper (i) != TOUPPER (i))
  42113. - return 2;
  42114. - return 0;
  42115. -}
  42116. -_ACEOF
  42117. -rm -f conftest$ac_exeext
  42118. -if { (ac_try="$ac_link"
  42119. -case "(($ac_try" in
  42120. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  42121. - *) ac_try_echo=$ac_try;;
  42122. -esac
  42123. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  42124. - (eval "$ac_link") 2>&5
  42125. - ac_status=$?
  42126. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  42127. - (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  42128. - { (case "(($ac_try" in
  42129. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  42130. - *) ac_try_echo=$ac_try;;
  42131. -esac
  42132. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  42133. - (eval "$ac_try") 2>&5
  42134. - ac_status=$?
  42135. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  42136. - (exit $ac_status); }; }; then
  42137. - :
  42138. -else
  42139. - echo "$as_me: program exited with status $ac_status" >&5
  42140. -echo "$as_me: failed program was:" >&5
  42141. -sed 's/^/| /' conftest.$ac_ext >&5
  42142. -
  42143. -( exit $ac_status )
  42144. -ac_cv_header_stdc=no
  42145. -fi
  42146. -rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  42147. -fi
  42148. -
  42149. + fi
  42150. +done
  42151. + done
  42152. +IFS=$as_save_IFS
  42153. fi
  42154. fi
  42155. -{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
  42156. -echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
  42157. -if test $ac_cv_header_stdc = yes; then
  42158. -
  42159. -cat >>confdefs.h <<\_ACEOF
  42160. -#define STDC_HEADERS 1
  42161. -_ACEOF
  42162. -
  42163. -fi
  42164. -
  42165. -
  42166. -
  42167. -
  42168. -
  42169. -for ac_header in stddef.h stdlib.h string.h unistd.h
  42170. -do
  42171. -as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  42172. -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  42173. - { echo "$as_me:$LINENO: checking for $ac_header" >&5
  42174. -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  42175. -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  42176. - echo $ECHO_N "(cached) $ECHO_C" >&6
  42177. -fi
  42178. -ac_res=`eval echo '${'$as_ac_Header'}'`
  42179. - { echo "$as_me:$LINENO: result: $ac_res" >&5
  42180. -echo "${ECHO_T}$ac_res" >&6; }
  42181. -else
  42182. - # Is the header compilable?
  42183. -{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
  42184. -echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  42185. -cat >conftest.$ac_ext <<_ACEOF
  42186. -/* confdefs.h. */
  42187. -_ACEOF
  42188. -cat confdefs.h >>conftest.$ac_ext
  42189. -cat >>conftest.$ac_ext <<_ACEOF
  42190. -/* end confdefs.h. */
  42191. -$ac_includes_default
  42192. -#include <$ac_header>
  42193. -_ACEOF
  42194. -rm -f conftest.$ac_objext
  42195. -if { (ac_try="$ac_compile"
  42196. -case "(($ac_try" in
  42197. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  42198. - *) ac_try_echo=$ac_try;;
  42199. -esac
  42200. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  42201. - (eval "$ac_compile") 2>conftest.er1
  42202. - ac_status=$?
  42203. - grep -v '^ *+' conftest.er1 >conftest.err
  42204. - rm -f conftest.er1
  42205. - cat conftest.err >&5
  42206. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  42207. - (exit $ac_status); } &&
  42208. - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  42209. - { (case "(($ac_try" in
  42210. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  42211. - *) ac_try_echo=$ac_try;;
  42212. -esac
  42213. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  42214. - (eval "$ac_try") 2>&5
  42215. - ac_status=$?
  42216. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  42217. - (exit $ac_status); }; } &&
  42218. - { ac_try='test -s conftest.$ac_objext'
  42219. - { (case "(($ac_try" in
  42220. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  42221. - *) ac_try_echo=$ac_try;;
  42222. -esac
  42223. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  42224. - (eval "$ac_try") 2>&5
  42225. - ac_status=$?
  42226. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  42227. - (exit $ac_status); }; }; then
  42228. - ac_header_compiler=yes
  42229. +ac_ct_CC=$ac_cv_prog_ac_ct_CC
  42230. +if test -n "$ac_ct_CC"; then
  42231. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  42232. +$as_echo "$ac_ct_CC" >&6; }
  42233. else
  42234. - echo "$as_me: failed program was:" >&5
  42235. -sed 's/^/| /' conftest.$ac_ext >&5
  42236. -
  42237. - ac_header_compiler=no
  42238. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  42239. +$as_echo "no" >&6; }
  42240. fi
  42241. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  42242. -{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  42243. -echo "${ECHO_T}$ac_header_compiler" >&6; }
  42244. -
  42245. -# Is the header present?
  42246. -{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
  42247. -echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  42248. -cat >conftest.$ac_ext <<_ACEOF
  42249. -/* confdefs.h. */
  42250. -_ACEOF
  42251. -cat confdefs.h >>conftest.$ac_ext
  42252. -cat >>conftest.$ac_ext <<_ACEOF
  42253. -/* end confdefs.h. */
  42254. -#include <$ac_header>
  42255. -_ACEOF
  42256. -if { (ac_try="$ac_cpp conftest.$ac_ext"
  42257. -case "(($ac_try" in
  42258. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  42259. - *) ac_try_echo=$ac_try;;
  42260. -esac
  42261. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  42262. - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  42263. - ac_status=$?
  42264. - grep -v '^ *+' conftest.er1 >conftest.err
  42265. - rm -f conftest.er1
  42266. - cat conftest.err >&5
  42267. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  42268. - (exit $ac_status); } >/dev/null; then
  42269. - if test -s conftest.err; then
  42270. - ac_cpp_err=$ac_c_preproc_warn_flag
  42271. - ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  42272. + if test "x$ac_ct_CC" = x; then
  42273. + CC=""
  42274. else
  42275. - ac_cpp_err=
  42276. + case $cross_compiling:$ac_tool_warned in
  42277. +yes:)
  42278. +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  42279. +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  42280. +ac_tool_warned=yes ;;
  42281. +esac
  42282. + CC=$ac_ct_CC
  42283. fi
  42284. else
  42285. - ac_cpp_err=yes
  42286. + CC="$ac_cv_prog_CC"
  42287. fi
  42288. -if test -z "$ac_cpp_err"; then
  42289. - ac_header_preproc=yes
  42290. +
  42291. +if test -z "$CC"; then
  42292. + if test -n "$ac_tool_prefix"; then
  42293. + # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  42294. +set dummy ${ac_tool_prefix}cc; ac_word=$2
  42295. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  42296. +$as_echo_n "checking for $ac_word... " >&6; }
  42297. +if test "${ac_cv_prog_CC+set}" = set; then :
  42298. + $as_echo_n "(cached) " >&6
  42299. else
  42300. - echo "$as_me: failed program was:" >&5
  42301. -sed 's/^/| /' conftest.$ac_ext >&5
  42302. + if test -n "$CC"; then
  42303. + ac_cv_prog_CC="$CC" # Let the user override the test.
  42304. +else
  42305. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  42306. +for as_dir in $PATH
  42307. +do
  42308. + IFS=$as_save_IFS
  42309. + test -z "$as_dir" && as_dir=.
  42310. + for ac_exec_ext in '' $ac_executable_extensions; do
  42311. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  42312. + ac_cv_prog_CC="${ac_tool_prefix}cc"
  42313. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  42314. + break 2
  42315. + fi
  42316. +done
  42317. + done
  42318. +IFS=$as_save_IFS
  42319. - ac_header_preproc=no
  42320. fi
  42321. -
  42322. -rm -f conftest.err conftest.$ac_ext
  42323. -{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  42324. -echo "${ECHO_T}$ac_header_preproc" >&6; }
  42325. -
  42326. -# So? What about this header?
  42327. -case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  42328. - yes:no: )
  42329. - { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  42330. -echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  42331. - { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  42332. -echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  42333. - ac_header_preproc=yes
  42334. - ;;
  42335. - no:yes:* )
  42336. - { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  42337. -echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  42338. - { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  42339. -echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  42340. - { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  42341. -echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  42342. - { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  42343. -echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  42344. - { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  42345. -echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  42346. - { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  42347. -echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  42348. - ( cat <<\_ASBOX
  42349. -## -------------------------------------- ##
  42350. -## Report this to nfsv4-wg@citi.umich.edu ##
  42351. -## -------------------------------------- ##
  42352. -_ASBOX
  42353. - ) | sed "s/^/$as_me: WARNING: /" >&2
  42354. - ;;
  42355. -esac
  42356. -{ echo "$as_me:$LINENO: checking for $ac_header" >&5
  42357. -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  42358. -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  42359. - echo $ECHO_N "(cached) $ECHO_C" >&6
  42360. +fi
  42361. +CC=$ac_cv_prog_CC
  42362. +if test -n "$CC"; then
  42363. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  42364. +$as_echo "$CC" >&6; }
  42365. else
  42366. - eval "$as_ac_Header=\$ac_header_preproc"
  42367. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  42368. +$as_echo "no" >&6; }
  42369. fi
  42370. -ac_res=`eval echo '${'$as_ac_Header'}'`
  42371. - { echo "$as_me:$LINENO: result: $ac_res" >&5
  42372. -echo "${ECHO_T}$ac_res" >&6; }
  42373. -fi
  42374. -if test `eval echo '${'$as_ac_Header'}'` = yes; then
  42375. - cat >>confdefs.h <<_ACEOF
  42376. -#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  42377. -_ACEOF
  42378. + fi
  42379. fi
  42380. -
  42381. -done
  42382. -
  42383. -
  42384. -# Checks for typedefs, structures, and compiler characteristics.
  42385. -{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
  42386. -echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
  42387. -if test "${ac_cv_c_const+set}" = set; then
  42388. - echo $ECHO_N "(cached) $ECHO_C" >&6
  42389. +if test -z "$CC"; then
  42390. + # Extract the first word of "cc", so it can be a program name with args.
  42391. +set dummy cc; ac_word=$2
  42392. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  42393. +$as_echo_n "checking for $ac_word... " >&6; }
  42394. +if test "${ac_cv_prog_CC+set}" = set; then :
  42395. + $as_echo_n "(cached) " >&6
  42396. else
  42397. - cat >conftest.$ac_ext <<_ACEOF
  42398. -/* confdefs.h. */
  42399. -_ACEOF
  42400. -cat confdefs.h >>conftest.$ac_ext
  42401. -cat >>conftest.$ac_ext <<_ACEOF
  42402. -/* end confdefs.h. */
  42403. -
  42404. -int
  42405. -main ()
  42406. -{
  42407. -/* FIXME: Include the comments suggested by Paul. */
  42408. -#ifndef __cplusplus
  42409. - /* Ultrix mips cc rejects this. */
  42410. - typedef int charset[2];
  42411. - const charset x;
  42412. - /* SunOS 4.1.1 cc rejects this. */
  42413. - char const *const *ccp;
  42414. - char **p;
  42415. - /* NEC SVR4.0.2 mips cc rejects this. */
  42416. - struct point {int x, y;};
  42417. - static struct point const zero = {0,0};
  42418. - /* AIX XL C 1.02.0.0 rejects this.
  42419. - It does not let you subtract one const X* pointer from another in
  42420. - an arm of an if-expression whose if-part is not a constant
  42421. - expression */
  42422. - const char *g = "string";
  42423. - ccp = &g + (g ? g-g : 0);
  42424. - /* HPUX 7.0 cc rejects these. */
  42425. - ++ccp;
  42426. - p = (char**) ccp;
  42427. - ccp = (char const *const *) p;
  42428. - { /* SCO 3.2v4 cc rejects this. */
  42429. - char *t;
  42430. - char const *s = 0 ? (char *) 0 : (char const *) 0;
  42431. -
  42432. - *t++ = 0;
  42433. - if (s) return 0;
  42434. - }
  42435. - { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  42436. - int x[] = {25, 17};
  42437. - const int *foo = &x[0];
  42438. - ++foo;
  42439. - }
  42440. - { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  42441. - typedef const int *iptr;
  42442. - iptr p = 0;
  42443. - ++p;
  42444. - }
  42445. - { /* AIX XL C 1.02.0.0 rejects this saying
  42446. - "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  42447. - struct s { int j; const int *ap[3]; };
  42448. - struct s *b; b->j = 5;
  42449. - }
  42450. - { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  42451. - const int foo = 10;
  42452. - if (!foo) return 0;
  42453. - }
  42454. - return !x[0] && !zero.x;
  42455. -#endif
  42456. -
  42457. - ;
  42458. - return 0;
  42459. -}
  42460. -_ACEOF
  42461. -rm -f conftest.$ac_objext
  42462. -if { (ac_try="$ac_compile"
  42463. -case "(($ac_try" in
  42464. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  42465. - *) ac_try_echo=$ac_try;;
  42466. -esac
  42467. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  42468. - (eval "$ac_compile") 2>conftest.er1
  42469. - ac_status=$?
  42470. - grep -v '^ *+' conftest.er1 >conftest.err
  42471. - rm -f conftest.er1
  42472. - cat conftest.err >&5
  42473. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  42474. - (exit $ac_status); } &&
  42475. - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  42476. - { (case "(($ac_try" in
  42477. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  42478. - *) ac_try_echo=$ac_try;;
  42479. -esac
  42480. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  42481. - (eval "$ac_try") 2>&5
  42482. - ac_status=$?
  42483. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  42484. - (exit $ac_status); }; } &&
  42485. - { ac_try='test -s conftest.$ac_objext'
  42486. - { (case "(($ac_try" in
  42487. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  42488. - *) ac_try_echo=$ac_try;;
  42489. -esac
  42490. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  42491. - (eval "$ac_try") 2>&5
  42492. - ac_status=$?
  42493. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  42494. - (exit $ac_status); }; }; then
  42495. - ac_cv_c_const=yes
  42496. + if test -n "$CC"; then
  42497. + ac_cv_prog_CC="$CC" # Let the user override the test.
  42498. else
  42499. - echo "$as_me: failed program was:" >&5
  42500. -sed 's/^/| /' conftest.$ac_ext >&5
  42501. + ac_prog_rejected=no
  42502. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  42503. +for as_dir in $PATH
  42504. +do
  42505. + IFS=$as_save_IFS
  42506. + test -z "$as_dir" && as_dir=.
  42507. + for ac_exec_ext in '' $ac_executable_extensions; do
  42508. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  42509. + if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  42510. + ac_prog_rejected=yes
  42511. + continue
  42512. + fi
  42513. + ac_cv_prog_CC="cc"
  42514. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  42515. + break 2
  42516. + fi
  42517. +done
  42518. + done
  42519. +IFS=$as_save_IFS
  42520. - ac_cv_c_const=no
  42521. +if test $ac_prog_rejected = yes; then
  42522. + # We found a bogon in the path, so make sure we never use it.
  42523. + set dummy $ac_cv_prog_CC
  42524. + shift
  42525. + if test $# != 0; then
  42526. + # We chose a different compiler from the bogus one.
  42527. + # However, it has the same basename, so the bogon will be chosen
  42528. + # first if we set CC to just the basename; use the full file name.
  42529. + shift
  42530. + ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  42531. + fi
  42532. fi
  42533. -
  42534. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  42535. fi
  42536. -{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
  42537. -echo "${ECHO_T}$ac_cv_c_const" >&6; }
  42538. -if test $ac_cv_c_const = no; then
  42539. +fi
  42540. +CC=$ac_cv_prog_CC
  42541. +if test -n "$CC"; then
  42542. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  42543. +$as_echo "$CC" >&6; }
  42544. +else
  42545. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  42546. +$as_echo "no" >&6; }
  42547. +fi
  42548. -cat >>confdefs.h <<\_ACEOF
  42549. -#define const
  42550. -_ACEOF
  42551. fi
  42552. -
  42553. -{ echo "$as_me:$LINENO: checking for size_t" >&5
  42554. -echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
  42555. -if test "${ac_cv_type_size_t+set}" = set; then
  42556. - echo $ECHO_N "(cached) $ECHO_C" >&6
  42557. -else
  42558. - cat >conftest.$ac_ext <<_ACEOF
  42559. -/* confdefs.h. */
  42560. -_ACEOF
  42561. -cat confdefs.h >>conftest.$ac_ext
  42562. -cat >>conftest.$ac_ext <<_ACEOF
  42563. -/* end confdefs.h. */
  42564. -$ac_includes_default
  42565. -typedef size_t ac__type_new_;
  42566. -int
  42567. -main ()
  42568. -{
  42569. -if ((ac__type_new_ *) 0)
  42570. - return 0;
  42571. -if (sizeof (ac__type_new_))
  42572. - return 0;
  42573. - ;
  42574. - return 0;
  42575. -}
  42576. -_ACEOF
  42577. -rm -f conftest.$ac_objext
  42578. -if { (ac_try="$ac_compile"
  42579. -case "(($ac_try" in
  42580. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  42581. - *) ac_try_echo=$ac_try;;
  42582. -esac
  42583. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  42584. - (eval "$ac_compile") 2>conftest.er1
  42585. - ac_status=$?
  42586. - grep -v '^ *+' conftest.er1 >conftest.err
  42587. - rm -f conftest.er1
  42588. - cat conftest.err >&5
  42589. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  42590. - (exit $ac_status); } &&
  42591. - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  42592. - { (case "(($ac_try" in
  42593. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  42594. - *) ac_try_echo=$ac_try;;
  42595. -esac
  42596. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  42597. - (eval "$ac_try") 2>&5
  42598. - ac_status=$?
  42599. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  42600. - (exit $ac_status); }; } &&
  42601. - { ac_try='test -s conftest.$ac_objext'
  42602. - { (case "(($ac_try" in
  42603. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  42604. - *) ac_try_echo=$ac_try;;
  42605. -esac
  42606. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  42607. - (eval "$ac_try") 2>&5
  42608. - ac_status=$?
  42609. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  42610. - (exit $ac_status); }; }; then
  42611. - ac_cv_type_size_t=yes
  42612. +if test -z "$CC"; then
  42613. + if test -n "$ac_tool_prefix"; then
  42614. + for ac_prog in cl.exe
  42615. + do
  42616. + # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  42617. +set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  42618. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  42619. +$as_echo_n "checking for $ac_word... " >&6; }
  42620. +if test "${ac_cv_prog_CC+set}" = set; then :
  42621. + $as_echo_n "(cached) " >&6
  42622. else
  42623. - echo "$as_me: failed program was:" >&5
  42624. -sed 's/^/| /' conftest.$ac_ext >&5
  42625. + if test -n "$CC"; then
  42626. + ac_cv_prog_CC="$CC" # Let the user override the test.
  42627. +else
  42628. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  42629. +for as_dir in $PATH
  42630. +do
  42631. + IFS=$as_save_IFS
  42632. + test -z "$as_dir" && as_dir=.
  42633. + for ac_exec_ext in '' $ac_executable_extensions; do
  42634. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  42635. + ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  42636. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  42637. + break 2
  42638. + fi
  42639. +done
  42640. + done
  42641. +IFS=$as_save_IFS
  42642. - ac_cv_type_size_t=no
  42643. fi
  42644. -
  42645. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  42646. fi
  42647. -{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
  42648. -echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
  42649. -if test $ac_cv_type_size_t = yes; then
  42650. - :
  42651. +CC=$ac_cv_prog_CC
  42652. +if test -n "$CC"; then
  42653. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  42654. +$as_echo "$CC" >&6; }
  42655. else
  42656. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  42657. +$as_echo "no" >&6; }
  42658. +fi
  42659. -cat >>confdefs.h <<_ACEOF
  42660. -#define size_t unsigned int
  42661. -_ACEOF
  42662. + test -n "$CC" && break
  42663. + done
  42664. fi
  42665. -
  42666. -{ echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
  42667. -echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
  42668. -if test "${ac_cv_type_uid_t+set}" = set; then
  42669. - echo $ECHO_N "(cached) $ECHO_C" >&6
  42670. +if test -z "$CC"; then
  42671. + ac_ct_CC=$CC
  42672. + for ac_prog in cl.exe
  42673. +do
  42674. + # Extract the first word of "$ac_prog", so it can be a program name with args.
  42675. +set dummy $ac_prog; ac_word=$2
  42676. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  42677. +$as_echo_n "checking for $ac_word... " >&6; }
  42678. +if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
  42679. + $as_echo_n "(cached) " >&6
  42680. else
  42681. - cat >conftest.$ac_ext <<_ACEOF
  42682. -/* confdefs.h. */
  42683. -_ACEOF
  42684. -cat confdefs.h >>conftest.$ac_ext
  42685. -cat >>conftest.$ac_ext <<_ACEOF
  42686. -/* end confdefs.h. */
  42687. -#include <sys/types.h>
  42688. -
  42689. -_ACEOF
  42690. -if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  42691. - $EGREP "uid_t" >/dev/null 2>&1; then
  42692. - ac_cv_type_uid_t=yes
  42693. + if test -n "$ac_ct_CC"; then
  42694. + ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  42695. else
  42696. - ac_cv_type_uid_t=no
  42697. -fi
  42698. -rm -f conftest*
  42699. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  42700. +for as_dir in $PATH
  42701. +do
  42702. + IFS=$as_save_IFS
  42703. + test -z "$as_dir" && as_dir=.
  42704. + for ac_exec_ext in '' $ac_executable_extensions; do
  42705. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  42706. + ac_cv_prog_ac_ct_CC="$ac_prog"
  42707. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  42708. + break 2
  42709. + fi
  42710. +done
  42711. + done
  42712. +IFS=$as_save_IFS
  42713. fi
  42714. -{ echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
  42715. -echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
  42716. -if test $ac_cv_type_uid_t = no; then
  42717. +fi
  42718. +ac_ct_CC=$ac_cv_prog_ac_ct_CC
  42719. +if test -n "$ac_ct_CC"; then
  42720. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  42721. +$as_echo "$ac_ct_CC" >&6; }
  42722. +else
  42723. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  42724. +$as_echo "no" >&6; }
  42725. +fi
  42726. -cat >>confdefs.h <<\_ACEOF
  42727. -#define uid_t int
  42728. -_ACEOF
  42729. + test -n "$ac_ct_CC" && break
  42730. +done
  42731. -cat >>confdefs.h <<\_ACEOF
  42732. -#define gid_t int
  42733. -_ACEOF
  42734. + if test "x$ac_ct_CC" = x; then
  42735. + CC=""
  42736. + else
  42737. + case $cross_compiling:$ac_tool_warned in
  42738. +yes:)
  42739. +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  42740. +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  42741. +ac_tool_warned=yes ;;
  42742. +esac
  42743. + CC=$ac_ct_CC
  42744. + fi
  42745. +fi
  42746. fi
  42747. -{ echo "$as_me:$LINENO: checking for short" >&5
  42748. -echo $ECHO_N "checking for short... $ECHO_C" >&6; }
  42749. -if test "${ac_cv_type_short+set}" = set; then
  42750. - echo $ECHO_N "(cached) $ECHO_C" >&6
  42751. +
  42752. +test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  42753. +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  42754. +as_fn_error "no acceptable C compiler found in \$PATH
  42755. +See \`config.log' for more details." "$LINENO" 5; }
  42756. +
  42757. +# Provide some information about the compiler.
  42758. +$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  42759. +set X $ac_compile
  42760. +ac_compiler=$2
  42761. +for ac_option in --version -v -V -qversion; do
  42762. + { { ac_try="$ac_compiler $ac_option >&5"
  42763. +case "(($ac_try" in
  42764. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  42765. + *) ac_try_echo=$ac_try;;
  42766. +esac
  42767. +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  42768. +$as_echo "$ac_try_echo"; } >&5
  42769. + (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  42770. + ac_status=$?
  42771. + if test -s conftest.err; then
  42772. + sed '10a\
  42773. +... rest of stderr output deleted ...
  42774. + 10q' conftest.err >conftest.er1
  42775. + cat conftest.er1 >&5
  42776. + fi
  42777. + rm -f conftest.er1 conftest.err
  42778. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  42779. + test $ac_status = 0; }
  42780. +done
  42781. +
  42782. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  42783. +$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  42784. +if test "${ac_cv_c_compiler_gnu+set}" = set; then :
  42785. + $as_echo_n "(cached) " >&6
  42786. else
  42787. - cat >conftest.$ac_ext <<_ACEOF
  42788. -/* confdefs.h. */
  42789. -_ACEOF
  42790. -cat confdefs.h >>conftest.$ac_ext
  42791. -cat >>conftest.$ac_ext <<_ACEOF
  42792. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  42793. /* end confdefs.h. */
  42794. -$ac_includes_default
  42795. -typedef short ac__type_new_;
  42796. +
  42797. int
  42798. main ()
  42799. {
  42800. -if ((ac__type_new_ *) 0)
  42801. - return 0;
  42802. -if (sizeof (ac__type_new_))
  42803. - return 0;
  42804. +#ifndef __GNUC__
  42805. + choke me
  42806. +#endif
  42807. +
  42808. ;
  42809. return 0;
  42810. }
  42811. _ACEOF
  42812. -rm -f conftest.$ac_objext
  42813. -if { (ac_try="$ac_compile"
  42814. -case "(($ac_try" in
  42815. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  42816. - *) ac_try_echo=$ac_try;;
  42817. -esac
  42818. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  42819. - (eval "$ac_compile") 2>conftest.er1
  42820. - ac_status=$?
  42821. - grep -v '^ *+' conftest.er1 >conftest.err
  42822. - rm -f conftest.er1
  42823. - cat conftest.err >&5
  42824. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  42825. - (exit $ac_status); } &&
  42826. - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  42827. - { (case "(($ac_try" in
  42828. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  42829. - *) ac_try_echo=$ac_try;;
  42830. -esac
  42831. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  42832. - (eval "$ac_try") 2>&5
  42833. - ac_status=$?
  42834. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  42835. - (exit $ac_status); }; } &&
  42836. - { ac_try='test -s conftest.$ac_objext'
  42837. - { (case "(($ac_try" in
  42838. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  42839. - *) ac_try_echo=$ac_try;;
  42840. -esac
  42841. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  42842. - (eval "$ac_try") 2>&5
  42843. - ac_status=$?
  42844. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  42845. - (exit $ac_status); }; }; then
  42846. - ac_cv_type_short=yes
  42847. +if ac_fn_c_try_compile "$LINENO"; then :
  42848. + ac_compiler_gnu=yes
  42849. else
  42850. - echo "$as_me: failed program was:" >&5
  42851. -sed 's/^/| /' conftest.$ac_ext >&5
  42852. -
  42853. - ac_cv_type_short=no
  42854. + ac_compiler_gnu=no
  42855. fi
  42856. -
  42857. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  42858. -fi
  42859. -{ echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
  42860. -echo "${ECHO_T}$ac_cv_type_short" >&6; }
  42861. +ac_cv_c_compiler_gnu=$ac_compiler_gnu
  42862. -{ echo "$as_me:$LINENO: checking size of short" >&5
  42863. -echo $ECHO_N "checking size of short... $ECHO_C" >&6; }
  42864. -if test "${ac_cv_sizeof_short+set}" = set; then
  42865. - echo $ECHO_N "(cached) $ECHO_C" >&6
  42866. +fi
  42867. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  42868. +$as_echo "$ac_cv_c_compiler_gnu" >&6; }
  42869. +if test $ac_compiler_gnu = yes; then
  42870. + GCC=yes
  42871. else
  42872. - if test "$ac_cv_type_short" = yes; then
  42873. - # The cast to long int works around a bug in the HP C Compiler
  42874. - # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  42875. - # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  42876. - # This bug is HP SR number 8606223364.
  42877. - if test "$cross_compiling" = yes; then
  42878. - # Depending upon the size, compute the lo and hi bounds.
  42879. -cat >conftest.$ac_ext <<_ACEOF
  42880. -/* confdefs.h. */
  42881. -_ACEOF
  42882. -cat confdefs.h >>conftest.$ac_ext
  42883. -cat >>conftest.$ac_ext <<_ACEOF
  42884. + GCC=
  42885. +fi
  42886. +ac_test_CFLAGS=${CFLAGS+set}
  42887. +ac_save_CFLAGS=$CFLAGS
  42888. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  42889. +$as_echo_n "checking whether $CC accepts -g... " >&6; }
  42890. +if test "${ac_cv_prog_cc_g+set}" = set; then :
  42891. + $as_echo_n "(cached) " >&6
  42892. +else
  42893. + ac_save_c_werror_flag=$ac_c_werror_flag
  42894. + ac_c_werror_flag=yes
  42895. + ac_cv_prog_cc_g=no
  42896. + CFLAGS="-g"
  42897. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  42898. /* end confdefs.h. */
  42899. -$ac_includes_default
  42900. - typedef short ac__type_sizeof_;
  42901. +
  42902. int
  42903. main ()
  42904. {
  42905. -static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
  42906. -test_array [0] = 0
  42907. ;
  42908. return 0;
  42909. }
  42910. _ACEOF
  42911. -rm -f conftest.$ac_objext
  42912. -if { (ac_try="$ac_compile"
  42913. -case "(($ac_try" in
  42914. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  42915. - *) ac_try_echo=$ac_try;;
  42916. -esac
  42917. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  42918. - (eval "$ac_compile") 2>conftest.er1
  42919. - ac_status=$?
  42920. - grep -v '^ *+' conftest.er1 >conftest.err
  42921. - rm -f conftest.er1
  42922. - cat conftest.err >&5
  42923. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  42924. - (exit $ac_status); } &&
  42925. - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  42926. - { (case "(($ac_try" in
  42927. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  42928. - *) ac_try_echo=$ac_try;;
  42929. -esac
  42930. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  42931. - (eval "$ac_try") 2>&5
  42932. - ac_status=$?
  42933. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  42934. - (exit $ac_status); }; } &&
  42935. - { ac_try='test -s conftest.$ac_objext'
  42936. - { (case "(($ac_try" in
  42937. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  42938. - *) ac_try_echo=$ac_try;;
  42939. -esac
  42940. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  42941. - (eval "$ac_try") 2>&5
  42942. - ac_status=$?
  42943. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  42944. - (exit $ac_status); }; }; then
  42945. - ac_lo=0 ac_mid=0
  42946. - while :; do
  42947. - cat >conftest.$ac_ext <<_ACEOF
  42948. -/* confdefs.h. */
  42949. -_ACEOF
  42950. -cat confdefs.h >>conftest.$ac_ext
  42951. -cat >>conftest.$ac_ext <<_ACEOF
  42952. +if ac_fn_c_try_compile "$LINENO"; then :
  42953. + ac_cv_prog_cc_g=yes
  42954. +else
  42955. + CFLAGS=""
  42956. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  42957. /* end confdefs.h. */
  42958. -$ac_includes_default
  42959. - typedef short ac__type_sizeof_;
  42960. +
  42961. int
  42962. main ()
  42963. {
  42964. -static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
  42965. -test_array [0] = 0
  42966. ;
  42967. return 0;
  42968. }
  42969. _ACEOF
  42970. -rm -f conftest.$ac_objext
  42971. -if { (ac_try="$ac_compile"
  42972. -case "(($ac_try" in
  42973. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  42974. - *) ac_try_echo=$ac_try;;
  42975. -esac
  42976. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  42977. - (eval "$ac_compile") 2>conftest.er1
  42978. - ac_status=$?
  42979. - grep -v '^ *+' conftest.er1 >conftest.err
  42980. - rm -f conftest.er1
  42981. - cat conftest.err >&5
  42982. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  42983. - (exit $ac_status); } &&
  42984. - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  42985. - { (case "(($ac_try" in
  42986. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  42987. - *) ac_try_echo=$ac_try;;
  42988. -esac
  42989. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  42990. - (eval "$ac_try") 2>&5
  42991. - ac_status=$?
  42992. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  42993. - (exit $ac_status); }; } &&
  42994. - { ac_try='test -s conftest.$ac_objext'
  42995. - { (case "(($ac_try" in
  42996. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  42997. - *) ac_try_echo=$ac_try;;
  42998. -esac
  42999. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  43000. - (eval "$ac_try") 2>&5
  43001. - ac_status=$?
  43002. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  43003. - (exit $ac_status); }; }; then
  43004. - ac_hi=$ac_mid; break
  43005. +if ac_fn_c_try_compile "$LINENO"; then :
  43006. +
  43007. else
  43008. - echo "$as_me: failed program was:" >&5
  43009. -sed 's/^/| /' conftest.$ac_ext >&5
  43010. + ac_c_werror_flag=$ac_save_c_werror_flag
  43011. + CFLAGS="-g"
  43012. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  43013. +/* end confdefs.h. */
  43014. - ac_lo=`expr $ac_mid + 1`
  43015. - if test $ac_lo -le $ac_mid; then
  43016. - ac_lo= ac_hi=
  43017. - break
  43018. - fi
  43019. - ac_mid=`expr 2 '*' $ac_mid + 1`
  43020. -fi
  43021. +int
  43022. +main ()
  43023. +{
  43024. + ;
  43025. + return 0;
  43026. +}
  43027. +_ACEOF
  43028. +if ac_fn_c_try_compile "$LINENO"; then :
  43029. + ac_cv_prog_cc_g=yes
  43030. +fi
  43031. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  43032. - done
  43033. +fi
  43034. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  43035. +fi
  43036. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  43037. + ac_c_werror_flag=$ac_save_c_werror_flag
  43038. +fi
  43039. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  43040. +$as_echo "$ac_cv_prog_cc_g" >&6; }
  43041. +if test "$ac_test_CFLAGS" = set; then
  43042. + CFLAGS=$ac_save_CFLAGS
  43043. +elif test $ac_cv_prog_cc_g = yes; then
  43044. + if test "$GCC" = yes; then
  43045. + CFLAGS="-g -O2"
  43046. + else
  43047. + CFLAGS="-g"
  43048. + fi
  43049. else
  43050. - echo "$as_me: failed program was:" >&5
  43051. -sed 's/^/| /' conftest.$ac_ext >&5
  43052. + if test "$GCC" = yes; then
  43053. + CFLAGS="-O2"
  43054. + else
  43055. + CFLAGS=
  43056. + fi
  43057. +fi
  43058. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  43059. +$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  43060. +if test "${ac_cv_prog_cc_c89+set}" = set; then :
  43061. + $as_echo_n "(cached) " >&6
  43062. +else
  43063. + ac_cv_prog_cc_c89=no
  43064. +ac_save_CC=$CC
  43065. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  43066. +/* end confdefs.h. */
  43067. +#include <stdarg.h>
  43068. +#include <stdio.h>
  43069. +#include <sys/types.h>
  43070. +#include <sys/stat.h>
  43071. +/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  43072. +struct buf { int x; };
  43073. +FILE * (*rcsopen) (struct buf *, struct stat *, int);
  43074. +static char *e (p, i)
  43075. + char **p;
  43076. + int i;
  43077. +{
  43078. + return p[i];
  43079. +}
  43080. +static char *f (char * (*g) (char **, int), char **p, ...)
  43081. +{
  43082. + char *s;
  43083. + va_list v;
  43084. + va_start (v,p);
  43085. + s = g (p, va_arg (v,int));
  43086. + va_end (v);
  43087. + return s;
  43088. +}
  43089. +
  43090. +/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  43091. + function prototypes and stuff, but not '\xHH' hex character constants.
  43092. + These don't provoke an error unfortunately, instead are silently treated
  43093. + as 'x'. The following induces an error, until -std is added to get
  43094. + proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  43095. + array size at least. It's necessary to write '\x00'==0 to get something
  43096. + that's true only with -std. */
  43097. +int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  43098. +
  43099. +/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  43100. + inside strings and character constants. */
  43101. +#define FOO(x) 'x'
  43102. +int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  43103. - cat >conftest.$ac_ext <<_ACEOF
  43104. -/* confdefs.h. */
  43105. -_ACEOF
  43106. -cat confdefs.h >>conftest.$ac_ext
  43107. -cat >>conftest.$ac_ext <<_ACEOF
  43108. -/* end confdefs.h. */
  43109. -$ac_includes_default
  43110. - typedef short ac__type_sizeof_;
  43111. +int test (int i, double x);
  43112. +struct s1 {int (*f) (int a);};
  43113. +struct s2 {int (*f) (double a);};
  43114. +int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  43115. +int argc;
  43116. +char **argv;
  43117. int
  43118. main ()
  43119. {
  43120. -static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
  43121. -test_array [0] = 0
  43122. -
  43123. +return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  43124. ;
  43125. return 0;
  43126. }
  43127. _ACEOF
  43128. -rm -f conftest.$ac_objext
  43129. -if { (ac_try="$ac_compile"
  43130. -case "(($ac_try" in
  43131. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  43132. - *) ac_try_echo=$ac_try;;
  43133. -esac
  43134. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  43135. - (eval "$ac_compile") 2>conftest.er1
  43136. - ac_status=$?
  43137. - grep -v '^ *+' conftest.er1 >conftest.err
  43138. - rm -f conftest.er1
  43139. - cat conftest.err >&5
  43140. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  43141. - (exit $ac_status); } &&
  43142. - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  43143. - { (case "(($ac_try" in
  43144. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  43145. - *) ac_try_echo=$ac_try;;
  43146. -esac
  43147. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  43148. - (eval "$ac_try") 2>&5
  43149. - ac_status=$?
  43150. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  43151. - (exit $ac_status); }; } &&
  43152. - { ac_try='test -s conftest.$ac_objext'
  43153. - { (case "(($ac_try" in
  43154. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  43155. - *) ac_try_echo=$ac_try;;
  43156. -esac
  43157. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  43158. - (eval "$ac_try") 2>&5
  43159. - ac_status=$?
  43160. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  43161. - (exit $ac_status); }; }; then
  43162. - ac_hi=-1 ac_mid=-1
  43163. - while :; do
  43164. - cat >conftest.$ac_ext <<_ACEOF
  43165. -/* confdefs.h. */
  43166. -_ACEOF
  43167. -cat confdefs.h >>conftest.$ac_ext
  43168. -cat >>conftest.$ac_ext <<_ACEOF
  43169. -/* end confdefs.h. */
  43170. -$ac_includes_default
  43171. - typedef short ac__type_sizeof_;
  43172. -int
  43173. -main ()
  43174. -{
  43175. -static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
  43176. -test_array [0] = 0
  43177. +for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  43178. + -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  43179. +do
  43180. + CC="$ac_save_CC $ac_arg"
  43181. + if ac_fn_c_try_compile "$LINENO"; then :
  43182. + ac_cv_prog_cc_c89=$ac_arg
  43183. +fi
  43184. +rm -f core conftest.err conftest.$ac_objext
  43185. + test "x$ac_cv_prog_cc_c89" != "xno" && break
  43186. +done
  43187. +rm -f conftest.$ac_ext
  43188. +CC=$ac_save_CC
  43189. - ;
  43190. - return 0;
  43191. -}
  43192. -_ACEOF
  43193. -rm -f conftest.$ac_objext
  43194. -if { (ac_try="$ac_compile"
  43195. -case "(($ac_try" in
  43196. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  43197. - *) ac_try_echo=$ac_try;;
  43198. -esac
  43199. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  43200. - (eval "$ac_compile") 2>conftest.er1
  43201. - ac_status=$?
  43202. - grep -v '^ *+' conftest.er1 >conftest.err
  43203. - rm -f conftest.er1
  43204. - cat conftest.err >&5
  43205. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  43206. - (exit $ac_status); } &&
  43207. - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  43208. - { (case "(($ac_try" in
  43209. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  43210. - *) ac_try_echo=$ac_try;;
  43211. -esac
  43212. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  43213. - (eval "$ac_try") 2>&5
  43214. - ac_status=$?
  43215. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  43216. - (exit $ac_status); }; } &&
  43217. - { ac_try='test -s conftest.$ac_objext'
  43218. - { (case "(($ac_try" in
  43219. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  43220. - *) ac_try_echo=$ac_try;;
  43221. +fi
  43222. +# AC_CACHE_VAL
  43223. +case "x$ac_cv_prog_cc_c89" in
  43224. + x)
  43225. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  43226. +$as_echo "none needed" >&6; } ;;
  43227. + xno)
  43228. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  43229. +$as_echo "unsupported" >&6; } ;;
  43230. + *)
  43231. + CC="$CC $ac_cv_prog_cc_c89"
  43232. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  43233. +$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  43234. esac
  43235. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  43236. - (eval "$ac_try") 2>&5
  43237. - ac_status=$?
  43238. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  43239. - (exit $ac_status); }; }; then
  43240. - ac_lo=$ac_mid; break
  43241. -else
  43242. - echo "$as_me: failed program was:" >&5
  43243. -sed 's/^/| /' conftest.$ac_ext >&5
  43244. +if test "x$ac_cv_prog_cc_c89" != xno; then :
  43245. - ac_hi=`expr '(' $ac_mid ')' - 1`
  43246. - if test $ac_mid -le $ac_hi; then
  43247. - ac_lo= ac_hi=
  43248. - break
  43249. - fi
  43250. - ac_mid=`expr 2 '*' $ac_mid`
  43251. fi
  43252. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  43253. - done
  43254. +ac_ext=c
  43255. +ac_cpp='$CPP $CPPFLAGS'
  43256. +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  43257. +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  43258. +ac_compiler_gnu=$ac_cv_c_compiler_gnu
  43259. +
  43260. +depcc="$CC" am_compiler_list=
  43261. +
  43262. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  43263. +$as_echo_n "checking dependency style of $depcc... " >&6; }
  43264. +if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
  43265. + $as_echo_n "(cached) " >&6
  43266. else
  43267. - echo "$as_me: failed program was:" >&5
  43268. -sed 's/^/| /' conftest.$ac_ext >&5
  43269. + if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  43270. + # We make a subdir and do the tests there. Otherwise we can end up
  43271. + # making bogus files that we don't know about and never remove. For
  43272. + # instance it was reported that on HP-UX the gcc test will end up
  43273. + # making a dummy file named `D' -- because `-MD' means `put the output
  43274. + # in D'.
  43275. + mkdir conftest.dir
  43276. + # Copy depcomp to subdir because otherwise we won't find it if we're
  43277. + # using a relative directory.
  43278. + cp "$am_depcomp" conftest.dir
  43279. + cd conftest.dir
  43280. + # We will build objects and dependencies in a subdirectory because
  43281. + # it helps to detect inapplicable dependency modes. For instance
  43282. + # both Tru64's cc and ICC support -MD to output dependencies as a
  43283. + # side effect of compilation, but ICC will put the dependencies in
  43284. + # the current directory while Tru64 will put them in the object
  43285. + # directory.
  43286. + mkdir sub
  43287. - ac_lo= ac_hi=
  43288. -fi
  43289. + am_cv_CC_dependencies_compiler_type=none
  43290. + if test "$am_compiler_list" = ""; then
  43291. + am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  43292. + fi
  43293. + am__universal=false
  43294. + case " $depcc " in #(
  43295. + *\ -arch\ *\ -arch\ *) am__universal=true ;;
  43296. + esac
  43297. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  43298. -fi
  43299. + for depmode in $am_compiler_list; do
  43300. + # Setup a source with many dependencies, because some compilers
  43301. + # like to wrap large dependency lists on column 80 (with \), and
  43302. + # we should not choose a depcomp mode which is confused by this.
  43303. + #
  43304. + # We need to recreate these files for each test, as the compiler may
  43305. + # overwrite some of them when testing with obscure command lines.
  43306. + # This happens at least with the AIX C compiler.
  43307. + : > sub/conftest.c
  43308. + for i in 1 2 3 4 5 6; do
  43309. + echo '#include "conftst'$i'.h"' >> sub/conftest.c
  43310. + # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  43311. + # Solaris 8's {/usr,}/bin/sh.
  43312. + touch sub/conftst$i.h
  43313. + done
  43314. + echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  43315. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  43316. -# Binary search between lo and hi bounds.
  43317. -while test "x$ac_lo" != "x$ac_hi"; do
  43318. - ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  43319. - cat >conftest.$ac_ext <<_ACEOF
  43320. -/* confdefs.h. */
  43321. -_ACEOF
  43322. -cat confdefs.h >>conftest.$ac_ext
  43323. -cat >>conftest.$ac_ext <<_ACEOF
  43324. -/* end confdefs.h. */
  43325. -$ac_includes_default
  43326. - typedef short ac__type_sizeof_;
  43327. -int
  43328. -main ()
  43329. -{
  43330. -static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
  43331. -test_array [0] = 0
  43332. + # We check with `-c' and `-o' for the sake of the "dashmstdout"
  43333. + # mode. It turns out that the SunPro C++ compiler does not properly
  43334. + # handle `-M -o', and we need to detect this. Also, some Intel
  43335. + # versions had trouble with output in subdirs
  43336. + am__obj=sub/conftest.${OBJEXT-o}
  43337. + am__minus_obj="-o $am__obj"
  43338. + case $depmode in
  43339. + gcc)
  43340. + # This depmode causes a compiler race in universal mode.
  43341. + test "$am__universal" = false || continue
  43342. + ;;
  43343. + nosideeffect)
  43344. + # after this tag, mechanisms are not by side-effect, so they'll
  43345. + # only be used when explicitly requested
  43346. + if test "x$enable_dependency_tracking" = xyes; then
  43347. + continue
  43348. + else
  43349. + break
  43350. + fi
  43351. + ;;
  43352. + msvisualcpp | msvcmsys)
  43353. + # This compiler won't grok `-c -o', but also, the minuso test has
  43354. + # not run yet. These depmodes are late enough in the game, and
  43355. + # so weak that their functioning should not be impacted.
  43356. + am__obj=conftest.${OBJEXT-o}
  43357. + am__minus_obj=
  43358. + ;;
  43359. + none) break ;;
  43360. + esac
  43361. + if depmode=$depmode \
  43362. + source=sub/conftest.c object=$am__obj \
  43363. + depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  43364. + $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  43365. + >/dev/null 2>conftest.err &&
  43366. + grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  43367. + grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  43368. + grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  43369. + ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  43370. + # icc doesn't choke on unknown options, it will just issue warnings
  43371. + # or remarks (even with -Werror). So we grep stderr for any message
  43372. + # that says an option was ignored or not supported.
  43373. + # When given -MP, icc 7.0 and 7.1 complain thusly:
  43374. + # icc: Command line warning: ignoring option '-M'; no argument required
  43375. + # The diagnosis changed in icc 8.0:
  43376. + # icc: Command line remark: option '-MP' not supported
  43377. + if (grep 'ignoring option' conftest.err ||
  43378. + grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  43379. + am_cv_CC_dependencies_compiler_type=$depmode
  43380. + break
  43381. + fi
  43382. + fi
  43383. + done
  43384. - ;
  43385. - return 0;
  43386. -}
  43387. -_ACEOF
  43388. -rm -f conftest.$ac_objext
  43389. -if { (ac_try="$ac_compile"
  43390. -case "(($ac_try" in
  43391. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  43392. - *) ac_try_echo=$ac_try;;
  43393. -esac
  43394. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  43395. - (eval "$ac_compile") 2>conftest.er1
  43396. - ac_status=$?
  43397. - grep -v '^ *+' conftest.er1 >conftest.err
  43398. - rm -f conftest.er1
  43399. - cat conftest.err >&5
  43400. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  43401. - (exit $ac_status); } &&
  43402. - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  43403. - { (case "(($ac_try" in
  43404. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  43405. - *) ac_try_echo=$ac_try;;
  43406. -esac
  43407. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  43408. - (eval "$ac_try") 2>&5
  43409. - ac_status=$?
  43410. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  43411. - (exit $ac_status); }; } &&
  43412. - { ac_try='test -s conftest.$ac_objext'
  43413. - { (case "(($ac_try" in
  43414. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  43415. - *) ac_try_echo=$ac_try;;
  43416. -esac
  43417. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  43418. - (eval "$ac_try") 2>&5
  43419. - ac_status=$?
  43420. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  43421. - (exit $ac_status); }; }; then
  43422. - ac_hi=$ac_mid
  43423. + cd ..
  43424. + rm -rf conftest.dir
  43425. else
  43426. - echo "$as_me: failed program was:" >&5
  43427. -sed 's/^/| /' conftest.$ac_ext >&5
  43428. + am_cv_CC_dependencies_compiler_type=none
  43429. +fi
  43430. - ac_lo=`expr '(' $ac_mid ')' + 1`
  43431. fi
  43432. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
  43433. +$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
  43434. +CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  43435. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  43436. -done
  43437. -case $ac_lo in
  43438. -?*) ac_cv_sizeof_short=$ac_lo;;
  43439. -'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
  43440. -See \`config.log' for more details." >&5
  43441. -echo "$as_me: error: cannot compute sizeof (short)
  43442. -See \`config.log' for more details." >&2;}
  43443. - { (exit 77); exit 77; }; } ;;
  43444. -esac
  43445. + if
  43446. + test "x$enable_dependency_tracking" != xno \
  43447. + && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  43448. + am__fastdepCC_TRUE=
  43449. + am__fastdepCC_FALSE='#'
  43450. else
  43451. - cat >conftest.$ac_ext <<_ACEOF
  43452. -/* confdefs.h. */
  43453. -_ACEOF
  43454. -cat confdefs.h >>conftest.$ac_ext
  43455. -cat >>conftest.$ac_ext <<_ACEOF
  43456. -/* end confdefs.h. */
  43457. -$ac_includes_default
  43458. - typedef short ac__type_sizeof_;
  43459. -static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
  43460. -static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
  43461. -#include <stdio.h>
  43462. -#include <stdlib.h>
  43463. -int
  43464. -main ()
  43465. -{
  43466. + am__fastdepCC_TRUE='#'
  43467. + am__fastdepCC_FALSE=
  43468. +fi
  43469. - FILE *f = fopen ("conftest.val", "w");
  43470. - if (! f)
  43471. - return 1;
  43472. - if (((long int) (sizeof (ac__type_sizeof_))) < 0)
  43473. - {
  43474. - long int i = longval ();
  43475. - if (i != ((long int) (sizeof (ac__type_sizeof_))))
  43476. - return 1;
  43477. - fprintf (f, "%ld\n", i);
  43478. - }
  43479. - else
  43480. - {
  43481. - unsigned long int i = ulongval ();
  43482. - if (i != ((long int) (sizeof (ac__type_sizeof_))))
  43483. - return 1;
  43484. - fprintf (f, "%lu\n", i);
  43485. - }
  43486. - return ferror (f) || fclose (f) != 0;
  43487. - ;
  43488. - return 0;
  43489. -}
  43490. -_ACEOF
  43491. -rm -f conftest$ac_exeext
  43492. -if { (ac_try="$ac_link"
  43493. -case "(($ac_try" in
  43494. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  43495. - *) ac_try_echo=$ac_try;;
  43496. -esac
  43497. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  43498. - (eval "$ac_link") 2>&5
  43499. - ac_status=$?
  43500. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  43501. - (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  43502. - { (case "(($ac_try" in
  43503. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  43504. - *) ac_try_echo=$ac_try;;
  43505. -esac
  43506. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  43507. - (eval "$ac_try") 2>&5
  43508. - ac_status=$?
  43509. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  43510. - (exit $ac_status); }; }; then
  43511. - ac_cv_sizeof_short=`cat conftest.val`
  43512. +if test -n "$ac_tool_prefix"; then
  43513. + # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  43514. +set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  43515. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  43516. +$as_echo_n "checking for $ac_word... " >&6; }
  43517. +if test "${ac_cv_prog_RANLIB+set}" = set; then :
  43518. + $as_echo_n "(cached) " >&6
  43519. else
  43520. - echo "$as_me: program exited with status $ac_status" >&5
  43521. -echo "$as_me: failed program was:" >&5
  43522. -sed 's/^/| /' conftest.$ac_ext >&5
  43523. + if test -n "$RANLIB"; then
  43524. + ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  43525. +else
  43526. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  43527. +for as_dir in $PATH
  43528. +do
  43529. + IFS=$as_save_IFS
  43530. + test -z "$as_dir" && as_dir=.
  43531. + for ac_exec_ext in '' $ac_executable_extensions; do
  43532. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  43533. + ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  43534. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  43535. + break 2
  43536. + fi
  43537. +done
  43538. + done
  43539. +IFS=$as_save_IFS
  43540. -( exit $ac_status )
  43541. -{ { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
  43542. -See \`config.log' for more details." >&5
  43543. -echo "$as_me: error: cannot compute sizeof (short)
  43544. -See \`config.log' for more details." >&2;}
  43545. - { (exit 77); exit 77; }; }
  43546. fi
  43547. -rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  43548. fi
  43549. -rm -f conftest.val
  43550. +RANLIB=$ac_cv_prog_RANLIB
  43551. +if test -n "$RANLIB"; then
  43552. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  43553. +$as_echo "$RANLIB" >&6; }
  43554. else
  43555. - ac_cv_sizeof_short=0
  43556. -fi
  43557. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  43558. +$as_echo "no" >&6; }
  43559. fi
  43560. -{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
  43561. -echo "${ECHO_T}$ac_cv_sizeof_short" >&6; }
  43562. -cat >>confdefs.h <<_ACEOF
  43563. -#define SIZEOF_SHORT $ac_cv_sizeof_short
  43564. -_ACEOF
  43565. -{ echo "$as_me:$LINENO: checking for int" >&5
  43566. -echo $ECHO_N "checking for int... $ECHO_C" >&6; }
  43567. -if test "${ac_cv_type_int+set}" = set; then
  43568. - echo $ECHO_N "(cached) $ECHO_C" >&6
  43569. +fi
  43570. +if test -z "$ac_cv_prog_RANLIB"; then
  43571. + ac_ct_RANLIB=$RANLIB
  43572. + # Extract the first word of "ranlib", so it can be a program name with args.
  43573. +set dummy ranlib; ac_word=$2
  43574. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  43575. +$as_echo_n "checking for $ac_word... " >&6; }
  43576. +if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
  43577. + $as_echo_n "(cached) " >&6
  43578. else
  43579. - cat >conftest.$ac_ext <<_ACEOF
  43580. -/* confdefs.h. */
  43581. -_ACEOF
  43582. -cat confdefs.h >>conftest.$ac_ext
  43583. -cat >>conftest.$ac_ext <<_ACEOF
  43584. -/* end confdefs.h. */
  43585. -$ac_includes_default
  43586. -typedef int ac__type_new_;
  43587. -int
  43588. -main ()
  43589. -{
  43590. -if ((ac__type_new_ *) 0)
  43591. - return 0;
  43592. -if (sizeof (ac__type_new_))
  43593. - return 0;
  43594. - ;
  43595. - return 0;
  43596. -}
  43597. -_ACEOF
  43598. -rm -f conftest.$ac_objext
  43599. -if { (ac_try="$ac_compile"
  43600. -case "(($ac_try" in
  43601. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  43602. - *) ac_try_echo=$ac_try;;
  43603. -esac
  43604. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  43605. - (eval "$ac_compile") 2>conftest.er1
  43606. - ac_status=$?
  43607. - grep -v '^ *+' conftest.er1 >conftest.err
  43608. - rm -f conftest.er1
  43609. - cat conftest.err >&5
  43610. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  43611. - (exit $ac_status); } &&
  43612. - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  43613. - { (case "(($ac_try" in
  43614. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  43615. - *) ac_try_echo=$ac_try;;
  43616. -esac
  43617. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  43618. - (eval "$ac_try") 2>&5
  43619. - ac_status=$?
  43620. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  43621. - (exit $ac_status); }; } &&
  43622. - { ac_try='test -s conftest.$ac_objext'
  43623. - { (case "(($ac_try" in
  43624. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  43625. - *) ac_try_echo=$ac_try;;
  43626. -esac
  43627. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  43628. - (eval "$ac_try") 2>&5
  43629. - ac_status=$?
  43630. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  43631. - (exit $ac_status); }; }; then
  43632. - ac_cv_type_int=yes
  43633. + if test -n "$ac_ct_RANLIB"; then
  43634. + ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  43635. else
  43636. - echo "$as_me: failed program was:" >&5
  43637. -sed 's/^/| /' conftest.$ac_ext >&5
  43638. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  43639. +for as_dir in $PATH
  43640. +do
  43641. + IFS=$as_save_IFS
  43642. + test -z "$as_dir" && as_dir=.
  43643. + for ac_exec_ext in '' $ac_executable_extensions; do
  43644. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  43645. + ac_cv_prog_ac_ct_RANLIB="ranlib"
  43646. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  43647. + break 2
  43648. + fi
  43649. +done
  43650. + done
  43651. +IFS=$as_save_IFS
  43652. - ac_cv_type_int=no
  43653. +fi
  43654. +fi
  43655. +ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  43656. +if test -n "$ac_ct_RANLIB"; then
  43657. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  43658. +$as_echo "$ac_ct_RANLIB" >&6; }
  43659. +else
  43660. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  43661. +$as_echo "no" >&6; }
  43662. fi
  43663. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  43664. + if test "x$ac_ct_RANLIB" = x; then
  43665. + RANLIB=":"
  43666. + else
  43667. + case $cross_compiling:$ac_tool_warned in
  43668. +yes:)
  43669. +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  43670. +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  43671. +ac_tool_warned=yes ;;
  43672. +esac
  43673. + RANLIB=$ac_ct_RANLIB
  43674. + fi
  43675. +else
  43676. + RANLIB="$ac_cv_prog_RANLIB"
  43677. fi
  43678. -{ echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
  43679. -echo "${ECHO_T}$ac_cv_type_int" >&6; }
  43680. -{ echo "$as_me:$LINENO: checking size of int" >&5
  43681. -echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
  43682. -if test "${ac_cv_sizeof_int+set}" = set; then
  43683. - echo $ECHO_N "(cached) $ECHO_C" >&6
  43684. +
  43685. +# Checks for libraries.
  43686. +
  43687. +# Checks for header files.
  43688. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  43689. +$as_echo_n "checking for ANSI C header files... " >&6; }
  43690. +if test "${ac_cv_header_stdc+set}" = set; then :
  43691. + $as_echo_n "(cached) " >&6
  43692. else
  43693. - if test "$ac_cv_type_int" = yes; then
  43694. - # The cast to long int works around a bug in the HP C Compiler
  43695. - # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  43696. - # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  43697. - # This bug is HP SR number 8606223364.
  43698. - if test "$cross_compiling" = yes; then
  43699. - # Depending upon the size, compute the lo and hi bounds.
  43700. -cat >conftest.$ac_ext <<_ACEOF
  43701. -/* confdefs.h. */
  43702. -_ACEOF
  43703. -cat confdefs.h >>conftest.$ac_ext
  43704. -cat >>conftest.$ac_ext <<_ACEOF
  43705. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  43706. /* end confdefs.h. */
  43707. -$ac_includes_default
  43708. - typedef int ac__type_sizeof_;
  43709. +#include <stdlib.h>
  43710. +#include <stdarg.h>
  43711. +#include <string.h>
  43712. +#include <float.h>
  43713. +
  43714. int
  43715. main ()
  43716. {
  43717. -static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
  43718. -test_array [0] = 0
  43719. ;
  43720. return 0;
  43721. }
  43722. _ACEOF
  43723. -rm -f conftest.$ac_objext
  43724. -if { (ac_try="$ac_compile"
  43725. -case "(($ac_try" in
  43726. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  43727. - *) ac_try_echo=$ac_try;;
  43728. -esac
  43729. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  43730. - (eval "$ac_compile") 2>conftest.er1
  43731. - ac_status=$?
  43732. - grep -v '^ *+' conftest.er1 >conftest.err
  43733. - rm -f conftest.er1
  43734. - cat conftest.err >&5
  43735. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  43736. - (exit $ac_status); } &&
  43737. - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  43738. - { (case "(($ac_try" in
  43739. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  43740. - *) ac_try_echo=$ac_try;;
  43741. -esac
  43742. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  43743. - (eval "$ac_try") 2>&5
  43744. - ac_status=$?
  43745. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  43746. - (exit $ac_status); }; } &&
  43747. - { ac_try='test -s conftest.$ac_objext'
  43748. - { (case "(($ac_try" in
  43749. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  43750. - *) ac_try_echo=$ac_try;;
  43751. -esac
  43752. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  43753. - (eval "$ac_try") 2>&5
  43754. - ac_status=$?
  43755. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  43756. - (exit $ac_status); }; }; then
  43757. - ac_lo=0 ac_mid=0
  43758. - while :; do
  43759. - cat >conftest.$ac_ext <<_ACEOF
  43760. -/* confdefs.h. */
  43761. -_ACEOF
  43762. -cat confdefs.h >>conftest.$ac_ext
  43763. -cat >>conftest.$ac_ext <<_ACEOF
  43764. +if ac_fn_c_try_compile "$LINENO"; then :
  43765. + ac_cv_header_stdc=yes
  43766. +else
  43767. + ac_cv_header_stdc=no
  43768. +fi
  43769. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  43770. +
  43771. +if test $ac_cv_header_stdc = yes; then
  43772. + # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  43773. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  43774. /* end confdefs.h. */
  43775. -$ac_includes_default
  43776. - typedef int ac__type_sizeof_;
  43777. -int
  43778. -main ()
  43779. -{
  43780. -static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
  43781. -test_array [0] = 0
  43782. +#include <string.h>
  43783. - ;
  43784. - return 0;
  43785. -}
  43786. _ACEOF
  43787. -rm -f conftest.$ac_objext
  43788. -if { (ac_try="$ac_compile"
  43789. -case "(($ac_try" in
  43790. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  43791. - *) ac_try_echo=$ac_try;;
  43792. -esac
  43793. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  43794. - (eval "$ac_compile") 2>conftest.er1
  43795. - ac_status=$?
  43796. - grep -v '^ *+' conftest.er1 >conftest.err
  43797. - rm -f conftest.er1
  43798. - cat conftest.err >&5
  43799. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  43800. - (exit $ac_status); } &&
  43801. - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  43802. - { (case "(($ac_try" in
  43803. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  43804. - *) ac_try_echo=$ac_try;;
  43805. -esac
  43806. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  43807. - (eval "$ac_try") 2>&5
  43808. - ac_status=$?
  43809. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  43810. - (exit $ac_status); }; } &&
  43811. - { ac_try='test -s conftest.$ac_objext'
  43812. - { (case "(($ac_try" in
  43813. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  43814. - *) ac_try_echo=$ac_try;;
  43815. -esac
  43816. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  43817. - (eval "$ac_try") 2>&5
  43818. - ac_status=$?
  43819. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  43820. - (exit $ac_status); }; }; then
  43821. - ac_hi=$ac_mid; break
  43822. -else
  43823. - echo "$as_me: failed program was:" >&5
  43824. -sed 's/^/| /' conftest.$ac_ext >&5
  43825. +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  43826. + $EGREP "memchr" >/dev/null 2>&1; then :
  43827. - ac_lo=`expr $ac_mid + 1`
  43828. - if test $ac_lo -le $ac_mid; then
  43829. - ac_lo= ac_hi=
  43830. - break
  43831. - fi
  43832. - ac_mid=`expr 2 '*' $ac_mid + 1`
  43833. +else
  43834. + ac_cv_header_stdc=no
  43835. fi
  43836. +rm -f conftest*
  43837. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  43838. - done
  43839. -else
  43840. - echo "$as_me: failed program was:" >&5
  43841. -sed 's/^/| /' conftest.$ac_ext >&5
  43842. +fi
  43843. - cat >conftest.$ac_ext <<_ACEOF
  43844. -/* confdefs.h. */
  43845. -_ACEOF
  43846. -cat confdefs.h >>conftest.$ac_ext
  43847. -cat >>conftest.$ac_ext <<_ACEOF
  43848. +if test $ac_cv_header_stdc = yes; then
  43849. + # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  43850. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  43851. /* end confdefs.h. */
  43852. -$ac_includes_default
  43853. - typedef int ac__type_sizeof_;
  43854. -int
  43855. -main ()
  43856. -{
  43857. -static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
  43858. -test_array [0] = 0
  43859. +#include <stdlib.h>
  43860. - ;
  43861. - return 0;
  43862. -}
  43863. -_ACEOF
  43864. -rm -f conftest.$ac_objext
  43865. -if { (ac_try="$ac_compile"
  43866. -case "(($ac_try" in
  43867. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  43868. - *) ac_try_echo=$ac_try;;
  43869. -esac
  43870. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  43871. - (eval "$ac_compile") 2>conftest.er1
  43872. - ac_status=$?
  43873. - grep -v '^ *+' conftest.er1 >conftest.err
  43874. - rm -f conftest.er1
  43875. - cat conftest.err >&5
  43876. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  43877. - (exit $ac_status); } &&
  43878. - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  43879. - { (case "(($ac_try" in
  43880. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  43881. - *) ac_try_echo=$ac_try;;
  43882. -esac
  43883. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  43884. - (eval "$ac_try") 2>&5
  43885. - ac_status=$?
  43886. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  43887. - (exit $ac_status); }; } &&
  43888. - { ac_try='test -s conftest.$ac_objext'
  43889. - { (case "(($ac_try" in
  43890. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  43891. - *) ac_try_echo=$ac_try;;
  43892. -esac
  43893. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  43894. - (eval "$ac_try") 2>&5
  43895. - ac_status=$?
  43896. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  43897. - (exit $ac_status); }; }; then
  43898. - ac_hi=-1 ac_mid=-1
  43899. - while :; do
  43900. - cat >conftest.$ac_ext <<_ACEOF
  43901. -/* confdefs.h. */
  43902. _ACEOF
  43903. -cat confdefs.h >>conftest.$ac_ext
  43904. -cat >>conftest.$ac_ext <<_ACEOF
  43905. +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  43906. + $EGREP "free" >/dev/null 2>&1; then :
  43907. +
  43908. +else
  43909. + ac_cv_header_stdc=no
  43910. +fi
  43911. +rm -f conftest*
  43912. +
  43913. +fi
  43914. +
  43915. +if test $ac_cv_header_stdc = yes; then
  43916. + # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  43917. + if test "$cross_compiling" = yes; then :
  43918. + :
  43919. +else
  43920. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  43921. /* end confdefs.h. */
  43922. -$ac_includes_default
  43923. - typedef int ac__type_sizeof_;
  43924. +#include <ctype.h>
  43925. +#include <stdlib.h>
  43926. +#if ((' ' & 0x0FF) == 0x020)
  43927. +# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  43928. +# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  43929. +#else
  43930. +# define ISLOWER(c) \
  43931. + (('a' <= (c) && (c) <= 'i') \
  43932. + || ('j' <= (c) && (c) <= 'r') \
  43933. + || ('s' <= (c) && (c) <= 'z'))
  43934. +# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  43935. +#endif
  43936. +
  43937. +#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  43938. int
  43939. main ()
  43940. {
  43941. -static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
  43942. -test_array [0] = 0
  43943. -
  43944. - ;
  43945. + int i;
  43946. + for (i = 0; i < 256; i++)
  43947. + if (XOR (islower (i), ISLOWER (i))
  43948. + || toupper (i) != TOUPPER (i))
  43949. + return 2;
  43950. return 0;
  43951. }
  43952. _ACEOF
  43953. -rm -f conftest.$ac_objext
  43954. -if { (ac_try="$ac_compile"
  43955. -case "(($ac_try" in
  43956. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  43957. - *) ac_try_echo=$ac_try;;
  43958. -esac
  43959. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  43960. - (eval "$ac_compile") 2>conftest.er1
  43961. - ac_status=$?
  43962. - grep -v '^ *+' conftest.er1 >conftest.err
  43963. - rm -f conftest.er1
  43964. - cat conftest.err >&5
  43965. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  43966. - (exit $ac_status); } &&
  43967. - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  43968. - { (case "(($ac_try" in
  43969. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  43970. - *) ac_try_echo=$ac_try;;
  43971. -esac
  43972. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  43973. - (eval "$ac_try") 2>&5
  43974. - ac_status=$?
  43975. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  43976. - (exit $ac_status); }; } &&
  43977. - { ac_try='test -s conftest.$ac_objext'
  43978. - { (case "(($ac_try" in
  43979. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  43980. - *) ac_try_echo=$ac_try;;
  43981. -esac
  43982. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  43983. - (eval "$ac_try") 2>&5
  43984. - ac_status=$?
  43985. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  43986. - (exit $ac_status); }; }; then
  43987. - ac_lo=$ac_mid; break
  43988. +if ac_fn_c_try_run "$LINENO"; then :
  43989. +
  43990. else
  43991. - echo "$as_me: failed program was:" >&5
  43992. -sed 's/^/| /' conftest.$ac_ext >&5
  43993. + ac_cv_header_stdc=no
  43994. +fi
  43995. +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  43996. + conftest.$ac_objext conftest.beam conftest.$ac_ext
  43997. +fi
  43998. - ac_hi=`expr '(' $ac_mid ')' - 1`
  43999. - if test $ac_mid -le $ac_hi; then
  44000. - ac_lo= ac_hi=
  44001. - break
  44002. - fi
  44003. - ac_mid=`expr 2 '*' $ac_mid`
  44004. fi
  44005. +fi
  44006. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  44007. +$as_echo "$ac_cv_header_stdc" >&6; }
  44008. +if test $ac_cv_header_stdc = yes; then
  44009. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  44010. - done
  44011. -else
  44012. - echo "$as_me: failed program was:" >&5
  44013. -sed 's/^/| /' conftest.$ac_ext >&5
  44014. +$as_echo "#define STDC_HEADERS 1" >>confdefs.h
  44015. - ac_lo= ac_hi=
  44016. fi
  44017. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  44018. +for ac_header in stddef.h stdlib.h string.h unistd.h
  44019. +do :
  44020. + as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  44021. +ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  44022. +eval as_val=\$$as_ac_Header
  44023. + if test "x$as_val" = x""yes; then :
  44024. + cat >>confdefs.h <<_ACEOF
  44025. +#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  44026. +_ACEOF
  44027. +
  44028. fi
  44029. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  44030. -# Binary search between lo and hi bounds.
  44031. -while test "x$ac_lo" != "x$ac_hi"; do
  44032. - ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  44033. - cat >conftest.$ac_ext <<_ACEOF
  44034. -/* confdefs.h. */
  44035. -_ACEOF
  44036. -cat confdefs.h >>conftest.$ac_ext
  44037. -cat >>conftest.$ac_ext <<_ACEOF
  44038. +done
  44039. +
  44040. +
  44041. +# Checks for typedefs, structures, and compiler characteristics.
  44042. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
  44043. +$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
  44044. +if test "${ac_cv_c_const+set}" = set; then :
  44045. + $as_echo_n "(cached) " >&6
  44046. +else
  44047. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  44048. /* end confdefs.h. */
  44049. -$ac_includes_default
  44050. - typedef int ac__type_sizeof_;
  44051. +
  44052. int
  44053. main ()
  44054. {
  44055. -static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
  44056. -test_array [0] = 0
  44057. +/* FIXME: Include the comments suggested by Paul. */
  44058. +#ifndef __cplusplus
  44059. + /* Ultrix mips cc rejects this. */
  44060. + typedef int charset[2];
  44061. + const charset cs;
  44062. + /* SunOS 4.1.1 cc rejects this. */
  44063. + char const *const *pcpcc;
  44064. + char **ppc;
  44065. + /* NEC SVR4.0.2 mips cc rejects this. */
  44066. + struct point {int x, y;};
  44067. + static struct point const zero = {0,0};
  44068. + /* AIX XL C 1.02.0.0 rejects this.
  44069. + It does not let you subtract one const X* pointer from another in
  44070. + an arm of an if-expression whose if-part is not a constant
  44071. + expression */
  44072. + const char *g = "string";
  44073. + pcpcc = &g + (g ? g-g : 0);
  44074. + /* HPUX 7.0 cc rejects these. */
  44075. + ++pcpcc;
  44076. + ppc = (char**) pcpcc;
  44077. + pcpcc = (char const *const *) ppc;
  44078. + { /* SCO 3.2v4 cc rejects this. */
  44079. + char *t;
  44080. + char const *s = 0 ? (char *) 0 : (char const *) 0;
  44081. +
  44082. + *t++ = 0;
  44083. + if (s) return 0;
  44084. + }
  44085. + { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  44086. + int x[] = {25, 17};
  44087. + const int *foo = &x[0];
  44088. + ++foo;
  44089. + }
  44090. + { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  44091. + typedef const int *iptr;
  44092. + iptr p = 0;
  44093. + ++p;
  44094. + }
  44095. + { /* AIX XL C 1.02.0.0 rejects this saying
  44096. + "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  44097. + struct s { int j; const int *ap[3]; };
  44098. + struct s *b; b->j = 5;
  44099. + }
  44100. + { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  44101. + const int foo = 10;
  44102. + if (!foo) return 0;
  44103. + }
  44104. + return !cs[0] && !zero.x;
  44105. +#endif
  44106. ;
  44107. return 0;
  44108. }
  44109. _ACEOF
  44110. -rm -f conftest.$ac_objext
  44111. -if { (ac_try="$ac_compile"
  44112. -case "(($ac_try" in
  44113. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  44114. - *) ac_try_echo=$ac_try;;
  44115. -esac
  44116. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  44117. - (eval "$ac_compile") 2>conftest.er1
  44118. - ac_status=$?
  44119. - grep -v '^ *+' conftest.er1 >conftest.err
  44120. - rm -f conftest.er1
  44121. - cat conftest.err >&5
  44122. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  44123. - (exit $ac_status); } &&
  44124. - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  44125. - { (case "(($ac_try" in
  44126. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  44127. - *) ac_try_echo=$ac_try;;
  44128. -esac
  44129. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  44130. - (eval "$ac_try") 2>&5
  44131. - ac_status=$?
  44132. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  44133. - (exit $ac_status); }; } &&
  44134. - { ac_try='test -s conftest.$ac_objext'
  44135. - { (case "(($ac_try" in
  44136. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  44137. - *) ac_try_echo=$ac_try;;
  44138. -esac
  44139. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  44140. - (eval "$ac_try") 2>&5
  44141. - ac_status=$?
  44142. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  44143. - (exit $ac_status); }; }; then
  44144. - ac_hi=$ac_mid
  44145. +if ac_fn_c_try_compile "$LINENO"; then :
  44146. + ac_cv_c_const=yes
  44147. else
  44148. - echo "$as_me: failed program was:" >&5
  44149. -sed 's/^/| /' conftest.$ac_ext >&5
  44150. + ac_cv_c_const=no
  44151. +fi
  44152. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  44153. +fi
  44154. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
  44155. +$as_echo "$ac_cv_c_const" >&6; }
  44156. +if test $ac_cv_c_const = no; then
  44157. +
  44158. +$as_echo "#define const /**/" >>confdefs.h
  44159. - ac_lo=`expr '(' $ac_mid ')' + 1`
  44160. fi
  44161. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  44162. -done
  44163. -case $ac_lo in
  44164. -?*) ac_cv_sizeof_int=$ac_lo;;
  44165. -'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
  44166. -See \`config.log' for more details." >&5
  44167. -echo "$as_me: error: cannot compute sizeof (int)
  44168. -See \`config.log' for more details." >&2;}
  44169. - { (exit 77); exit 77; }; } ;;
  44170. -esac
  44171. +ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
  44172. +if test "x$ac_cv_type_size_t" = x""yes; then :
  44173. +
  44174. else
  44175. - cat >conftest.$ac_ext <<_ACEOF
  44176. -/* confdefs.h. */
  44177. +
  44178. +cat >>confdefs.h <<_ACEOF
  44179. +#define size_t unsigned int
  44180. _ACEOF
  44181. -cat confdefs.h >>conftest.$ac_ext
  44182. -cat >>conftest.$ac_ext <<_ACEOF
  44183. -/* end confdefs.h. */
  44184. -$ac_includes_default
  44185. - typedef int ac__type_sizeof_;
  44186. -static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
  44187. -static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
  44188. -#include <stdio.h>
  44189. -#include <stdlib.h>
  44190. -int
  44191. -main ()
  44192. -{
  44193. - FILE *f = fopen ("conftest.val", "w");
  44194. - if (! f)
  44195. - return 1;
  44196. - if (((long int) (sizeof (ac__type_sizeof_))) < 0)
  44197. - {
  44198. - long int i = longval ();
  44199. - if (i != ((long int) (sizeof (ac__type_sizeof_))))
  44200. - return 1;
  44201. - fprintf (f, "%ld\n", i);
  44202. - }
  44203. - else
  44204. - {
  44205. - unsigned long int i = ulongval ();
  44206. - if (i != ((long int) (sizeof (ac__type_sizeof_))))
  44207. - return 1;
  44208. - fprintf (f, "%lu\n", i);
  44209. - }
  44210. - return ferror (f) || fclose (f) != 0;
  44211. +fi
  44212. +
  44213. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
  44214. +$as_echo_n "checking for uid_t in sys/types.h... " >&6; }
  44215. +if test "${ac_cv_type_uid_t+set}" = set; then :
  44216. + $as_echo_n "(cached) " >&6
  44217. +else
  44218. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  44219. +/* end confdefs.h. */
  44220. +#include <sys/types.h>
  44221. - ;
  44222. - return 0;
  44223. -}
  44224. _ACEOF
  44225. -rm -f conftest$ac_exeext
  44226. -if { (ac_try="$ac_link"
  44227. -case "(($ac_try" in
  44228. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  44229. - *) ac_try_echo=$ac_try;;
  44230. -esac
  44231. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  44232. - (eval "$ac_link") 2>&5
  44233. - ac_status=$?
  44234. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  44235. - (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  44236. - { (case "(($ac_try" in
  44237. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  44238. - *) ac_try_echo=$ac_try;;
  44239. -esac
  44240. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  44241. - (eval "$ac_try") 2>&5
  44242. - ac_status=$?
  44243. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  44244. - (exit $ac_status); }; }; then
  44245. - ac_cv_sizeof_int=`cat conftest.val`
  44246. +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  44247. + $EGREP "uid_t" >/dev/null 2>&1; then :
  44248. + ac_cv_type_uid_t=yes
  44249. else
  44250. - echo "$as_me: program exited with status $ac_status" >&5
  44251. -echo "$as_me: failed program was:" >&5
  44252. -sed 's/^/| /' conftest.$ac_ext >&5
  44253. + ac_cv_type_uid_t=no
  44254. +fi
  44255. +rm -f conftest*
  44256. -( exit $ac_status )
  44257. -{ { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
  44258. -See \`config.log' for more details." >&5
  44259. -echo "$as_me: error: cannot compute sizeof (int)
  44260. -See \`config.log' for more details." >&2;}
  44261. - { (exit 77); exit 77; }; }
  44262. fi
  44263. -rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  44264. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
  44265. +$as_echo "$ac_cv_type_uid_t" >&6; }
  44266. +if test $ac_cv_type_uid_t = no; then
  44267. +
  44268. +$as_echo "#define uid_t int" >>confdefs.h
  44269. +
  44270. +
  44271. +$as_echo "#define gid_t int" >>confdefs.h
  44272. +
  44273. fi
  44274. -rm -f conftest.val
  44275. +
  44276. +# The cast to long int works around a bug in the HP C Compiler
  44277. +# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  44278. +# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  44279. +# This bug is HP SR number 8606223364.
  44280. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
  44281. +$as_echo_n "checking size of short... " >&6; }
  44282. +if test "${ac_cv_sizeof_short+set}" = set; then :
  44283. + $as_echo_n "(cached) " >&6
  44284. else
  44285. - ac_cv_sizeof_int=0
  44286. + if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
  44287. +
  44288. +else
  44289. + if test "$ac_cv_type_short" = yes; then
  44290. + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  44291. +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  44292. +{ as_fn_set_status 77
  44293. +as_fn_error "cannot compute sizeof (short)
  44294. +See \`config.log' for more details." "$LINENO" 5; }; }
  44295. + else
  44296. + ac_cv_sizeof_short=0
  44297. + fi
  44298. fi
  44299. +
  44300. fi
  44301. -{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
  44302. -echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
  44303. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
  44304. +$as_echo "$ac_cv_sizeof_short" >&6; }
  44305. +
  44306. +
  44307. +
  44308. cat >>confdefs.h <<_ACEOF
  44309. -#define SIZEOF_INT $ac_cv_sizeof_int
  44310. +#define SIZEOF_SHORT $ac_cv_sizeof_short
  44311. _ACEOF
  44312. -{ echo "$as_me:$LINENO: checking for long" >&5
  44313. -echo $ECHO_N "checking for long... $ECHO_C" >&6; }
  44314. -if test "${ac_cv_type_long+set}" = set; then
  44315. - echo $ECHO_N "(cached) $ECHO_C" >&6
  44316. -else
  44317. - cat >conftest.$ac_ext <<_ACEOF
  44318. -/* confdefs.h. */
  44319. -_ACEOF
  44320. -cat confdefs.h >>conftest.$ac_ext
  44321. -cat >>conftest.$ac_ext <<_ACEOF
  44322. -/* end confdefs.h. */
  44323. -$ac_includes_default
  44324. -typedef long ac__type_new_;
  44325. -int
  44326. -main ()
  44327. -{
  44328. -if ((ac__type_new_ *) 0)
  44329. - return 0;
  44330. -if (sizeof (ac__type_new_))
  44331. - return 0;
  44332. - ;
  44333. - return 0;
  44334. -}
  44335. -_ACEOF
  44336. -rm -f conftest.$ac_objext
  44337. -if { (ac_try="$ac_compile"
  44338. -case "(($ac_try" in
  44339. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  44340. - *) ac_try_echo=$ac_try;;
  44341. -esac
  44342. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  44343. - (eval "$ac_compile") 2>conftest.er1
  44344. - ac_status=$?
  44345. - grep -v '^ *+' conftest.er1 >conftest.err
  44346. - rm -f conftest.er1
  44347. - cat conftest.err >&5
  44348. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  44349. - (exit $ac_status); } &&
  44350. - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  44351. - { (case "(($ac_try" in
  44352. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  44353. - *) ac_try_echo=$ac_try;;
  44354. -esac
  44355. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  44356. - (eval "$ac_try") 2>&5
  44357. - ac_status=$?
  44358. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  44359. - (exit $ac_status); }; } &&
  44360. - { ac_try='test -s conftest.$ac_objext'
  44361. - { (case "(($ac_try" in
  44362. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  44363. - *) ac_try_echo=$ac_try;;
  44364. -esac
  44365. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  44366. - (eval "$ac_try") 2>&5
  44367. - ac_status=$?
  44368. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  44369. - (exit $ac_status); }; }; then
  44370. - ac_cv_type_long=yes
  44371. +# The cast to long int works around a bug in the HP C Compiler
  44372. +# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  44373. +# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  44374. +# This bug is HP SR number 8606223364.
  44375. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
  44376. +$as_echo_n "checking size of int... " >&6; }
  44377. +if test "${ac_cv_sizeof_int+set}" = set; then :
  44378. + $as_echo_n "(cached) " >&6
  44379. else
  44380. - echo "$as_me: failed program was:" >&5
  44381. -sed 's/^/| /' conftest.$ac_ext >&5
  44382. + if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
  44383. - ac_cv_type_long=no
  44384. +else
  44385. + if test "$ac_cv_type_int" = yes; then
  44386. + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  44387. +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  44388. +{ as_fn_set_status 77
  44389. +as_fn_error "cannot compute sizeof (int)
  44390. +See \`config.log' for more details." "$LINENO" 5; }; }
  44391. + else
  44392. + ac_cv_sizeof_int=0
  44393. + fi
  44394. fi
  44395. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  44396. fi
  44397. -{ echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
  44398. -echo "${ECHO_T}$ac_cv_type_long" >&6; }
  44399. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
  44400. +$as_echo "$ac_cv_sizeof_int" >&6; }
  44401. +
  44402. +
  44403. +
  44404. +cat >>confdefs.h <<_ACEOF
  44405. +#define SIZEOF_INT $ac_cv_sizeof_int
  44406. +_ACEOF
  44407. +
  44408. +
  44409. +# The cast to long int works around a bug in the HP C Compiler
  44410. +# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  44411. +# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  44412. +# This bug is HP SR number 8606223364.
  44413. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
  44414. +$as_echo_n "checking size of long... " >&6; }
  44415. +if test "${ac_cv_sizeof_long+set}" = set; then :
  44416. + $as_echo_n "(cached) " >&6
  44417. +else
  44418. + if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
  44419. -{ echo "$as_me:$LINENO: checking size of long" >&5
  44420. -echo $ECHO_N "checking size of long... $ECHO_C" >&6; }
  44421. -if test "${ac_cv_sizeof_long+set}" = set; then
  44422. - echo $ECHO_N "(cached) $ECHO_C" >&6
  44423. else
  44424. if test "$ac_cv_type_long" = yes; then
  44425. - # The cast to long int works around a bug in the HP C Compiler
  44426. - # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  44427. - # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  44428. - # This bug is HP SR number 8606223364.
  44429. - if test "$cross_compiling" = yes; then
  44430. - # Depending upon the size, compute the lo and hi bounds.
  44431. -cat >conftest.$ac_ext <<_ACEOF
  44432. -/* confdefs.h. */
  44433. -_ACEOF
  44434. -cat confdefs.h >>conftest.$ac_ext
  44435. -cat >>conftest.$ac_ext <<_ACEOF
  44436. -/* end confdefs.h. */
  44437. -$ac_includes_default
  44438. - typedef long ac__type_sizeof_;
  44439. -int
  44440. -main ()
  44441. -{
  44442. -static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
  44443. -test_array [0] = 0
  44444. + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  44445. +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  44446. +{ as_fn_set_status 77
  44447. +as_fn_error "cannot compute sizeof (long)
  44448. +See \`config.log' for more details." "$LINENO" 5; }; }
  44449. + else
  44450. + ac_cv_sizeof_long=0
  44451. + fi
  44452. +fi
  44453. - ;
  44454. - return 0;
  44455. -}
  44456. +fi
  44457. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
  44458. +$as_echo "$ac_cv_sizeof_long" >&6; }
  44459. +
  44460. +
  44461. +
  44462. +cat >>confdefs.h <<_ACEOF
  44463. +#define SIZEOF_LONG $ac_cv_sizeof_long
  44464. _ACEOF
  44465. -rm -f conftest.$ac_objext
  44466. -if { (ac_try="$ac_compile"
  44467. -case "(($ac_try" in
  44468. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  44469. - *) ac_try_echo=$ac_try;;
  44470. -esac
  44471. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  44472. - (eval "$ac_compile") 2>conftest.er1
  44473. - ac_status=$?
  44474. - grep -v '^ *+' conftest.er1 >conftest.err
  44475. - rm -f conftest.er1
  44476. - cat conftest.err >&5
  44477. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  44478. - (exit $ac_status); } &&
  44479. - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  44480. - { (case "(($ac_try" in
  44481. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  44482. - *) ac_try_echo=$ac_try;;
  44483. -esac
  44484. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  44485. - (eval "$ac_try") 2>&5
  44486. - ac_status=$?
  44487. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  44488. - (exit $ac_status); }; } &&
  44489. - { ac_try='test -s conftest.$ac_objext'
  44490. - { (case "(($ac_try" in
  44491. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  44492. - *) ac_try_echo=$ac_try;;
  44493. -esac
  44494. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  44495. - (eval "$ac_try") 2>&5
  44496. - ac_status=$?
  44497. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  44498. - (exit $ac_status); }; }; then
  44499. - ac_lo=0 ac_mid=0
  44500. - while :; do
  44501. - cat >conftest.$ac_ext <<_ACEOF
  44502. -/* confdefs.h. */
  44503. +
  44504. +
  44505. +# The cast to long int works around a bug in the HP C Compiler
  44506. +# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  44507. +# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  44508. +# This bug is HP SR number 8606223364.
  44509. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
  44510. +$as_echo_n "checking size of size_t... " >&6; }
  44511. +if test "${ac_cv_sizeof_size_t+set}" = set; then :
  44512. + $as_echo_n "(cached) " >&6
  44513. +else
  44514. + if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t" "$ac_includes_default"; then :
  44515. +
  44516. +else
  44517. + if test "$ac_cv_type_size_t" = yes; then
  44518. + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  44519. +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  44520. +{ as_fn_set_status 77
  44521. +as_fn_error "cannot compute sizeof (size_t)
  44522. +See \`config.log' for more details." "$LINENO" 5; }; }
  44523. + else
  44524. + ac_cv_sizeof_size_t=0
  44525. + fi
  44526. +fi
  44527. +
  44528. +fi
  44529. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
  44530. +$as_echo "$ac_cv_sizeof_size_t" >&6; }
  44531. +
  44532. +
  44533. +
  44534. +cat >>confdefs.h <<_ACEOF
  44535. +#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
  44536. +_ACEOF
  44537. +
  44538. +
  44539. +
  44540. +# Checks for library functions.
  44541. +for ac_header in stdlib.h
  44542. +do :
  44543. + ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
  44544. +if test "x$ac_cv_header_stdlib_h" = x""yes; then :
  44545. + cat >>confdefs.h <<_ACEOF
  44546. +#define HAVE_STDLIB_H 1
  44547. _ACEOF
  44548. -cat confdefs.h >>conftest.$ac_ext
  44549. -cat >>conftest.$ac_ext <<_ACEOF
  44550. +
  44551. +fi
  44552. +
  44553. +done
  44554. +
  44555. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
  44556. +$as_echo_n "checking for GNU libc compatible malloc... " >&6; }
  44557. +if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then :
  44558. + $as_echo_n "(cached) " >&6
  44559. +else
  44560. + if test "$cross_compiling" = yes; then :
  44561. + ac_cv_func_malloc_0_nonnull=no
  44562. +else
  44563. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  44564. /* end confdefs.h. */
  44565. -$ac_includes_default
  44566. - typedef long ac__type_sizeof_;
  44567. +#if defined STDC_HEADERS || defined HAVE_STDLIB_H
  44568. +# include <stdlib.h>
  44569. +#else
  44570. +char *malloc ();
  44571. +#endif
  44572. +
  44573. int
  44574. main ()
  44575. {
  44576. -static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
  44577. -test_array [0] = 0
  44578. -
  44579. +return ! malloc (0);
  44580. ;
  44581. return 0;
  44582. }
  44583. _ACEOF
  44584. -rm -f conftest.$ac_objext
  44585. -if { (ac_try="$ac_compile"
  44586. -case "(($ac_try" in
  44587. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  44588. - *) ac_try_echo=$ac_try;;
  44589. -esac
  44590. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  44591. - (eval "$ac_compile") 2>conftest.er1
  44592. - ac_status=$?
  44593. - grep -v '^ *+' conftest.er1 >conftest.err
  44594. - rm -f conftest.er1
  44595. - cat conftest.err >&5
  44596. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  44597. - (exit $ac_status); } &&
  44598. - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  44599. - { (case "(($ac_try" in
  44600. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  44601. - *) ac_try_echo=$ac_try;;
  44602. -esac
  44603. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  44604. - (eval "$ac_try") 2>&5
  44605. - ac_status=$?
  44606. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  44607. - (exit $ac_status); }; } &&
  44608. - { ac_try='test -s conftest.$ac_objext'
  44609. - { (case "(($ac_try" in
  44610. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  44611. - *) ac_try_echo=$ac_try;;
  44612. -esac
  44613. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  44614. - (eval "$ac_try") 2>&5
  44615. - ac_status=$?
  44616. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  44617. - (exit $ac_status); }; }; then
  44618. - ac_hi=$ac_mid; break
  44619. +if ac_fn_c_try_run "$LINENO"; then :
  44620. + ac_cv_func_malloc_0_nonnull=yes
  44621. else
  44622. - echo "$as_me: failed program was:" >&5
  44623. -sed 's/^/| /' conftest.$ac_ext >&5
  44624. + ac_cv_func_malloc_0_nonnull=no
  44625. +fi
  44626. +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  44627. + conftest.$ac_objext conftest.beam conftest.$ac_ext
  44628. +fi
  44629. - ac_lo=`expr $ac_mid + 1`
  44630. - if test $ac_lo -le $ac_mid; then
  44631. - ac_lo= ac_hi=
  44632. - break
  44633. - fi
  44634. - ac_mid=`expr 2 '*' $ac_mid + 1`
  44635. fi
  44636. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
  44637. +$as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
  44638. +if test $ac_cv_func_malloc_0_nonnull = yes; then :
  44639. +
  44640. +$as_echo "#define HAVE_MALLOC 1" >>confdefs.h
  44641. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  44642. - done
  44643. else
  44644. - echo "$as_me: failed program was:" >&5
  44645. -sed 's/^/| /' conftest.$ac_ext >&5
  44646. + $as_echo "#define HAVE_MALLOC 0" >>confdefs.h
  44647. - cat >conftest.$ac_ext <<_ACEOF
  44648. -/* confdefs.h. */
  44649. -_ACEOF
  44650. -cat confdefs.h >>conftest.$ac_ext
  44651. -cat >>conftest.$ac_ext <<_ACEOF
  44652. + case " $LIBOBJS " in
  44653. + *" malloc.$ac_objext "* ) ;;
  44654. + *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
  44655. + ;;
  44656. +esac
  44657. +
  44658. +
  44659. +$as_echo "#define malloc rpl_malloc" >>confdefs.h
  44660. +
  44661. +fi
  44662. +
  44663. +
  44664. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
  44665. +$as_echo_n "checking for working memcmp... " >&6; }
  44666. +if test "${ac_cv_func_memcmp_working+set}" = set; then :
  44667. + $as_echo_n "(cached) " >&6
  44668. +else
  44669. + if test "$cross_compiling" = yes; then :
  44670. + ac_cv_func_memcmp_working=no
  44671. +else
  44672. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  44673. /* end confdefs.h. */
  44674. $ac_includes_default
  44675. - typedef long ac__type_sizeof_;
  44676. int
  44677. main ()
  44678. {
  44679. -static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
  44680. -test_array [0] = 0
  44681. +
  44682. + /* Some versions of memcmp are not 8-bit clean. */
  44683. + char c0 = '\100', c1 = '\200', c2 = '\201';
  44684. + if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
  44685. + return 1;
  44686. +
  44687. + /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
  44688. + or more and with at least one buffer not starting on a 4-byte boundary.
  44689. + William Lewis provided this test program. */
  44690. + {
  44691. + char foo[21];
  44692. + char bar[21];
  44693. + int i;
  44694. + for (i = 0; i < 4; i++)
  44695. + {
  44696. + char *a = foo + i;
  44697. + char *b = bar + i;
  44698. + strcpy (a, "--------01111111");
  44699. + strcpy (b, "--------10000000");
  44700. + if (memcmp (a, b, 16) >= 0)
  44701. + return 1;
  44702. + }
  44703. + return 0;
  44704. + }
  44705. ;
  44706. return 0;
  44707. }
  44708. _ACEOF
  44709. -rm -f conftest.$ac_objext
  44710. -if { (ac_try="$ac_compile"
  44711. -case "(($ac_try" in
  44712. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  44713. - *) ac_try_echo=$ac_try;;
  44714. -esac
  44715. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  44716. - (eval "$ac_compile") 2>conftest.er1
  44717. - ac_status=$?
  44718. - grep -v '^ *+' conftest.er1 >conftest.err
  44719. - rm -f conftest.er1
  44720. - cat conftest.err >&5
  44721. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  44722. - (exit $ac_status); } &&
  44723. - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  44724. - { (case "(($ac_try" in
  44725. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  44726. - *) ac_try_echo=$ac_try;;
  44727. -esac
  44728. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  44729. - (eval "$ac_try") 2>&5
  44730. - ac_status=$?
  44731. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  44732. - (exit $ac_status); }; } &&
  44733. - { ac_try='test -s conftest.$ac_objext'
  44734. - { (case "(($ac_try" in
  44735. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  44736. - *) ac_try_echo=$ac_try;;
  44737. +if ac_fn_c_try_run "$LINENO"; then :
  44738. + ac_cv_func_memcmp_working=yes
  44739. +else
  44740. + ac_cv_func_memcmp_working=no
  44741. +fi
  44742. +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  44743. + conftest.$ac_objext conftest.beam conftest.$ac_ext
  44744. +fi
  44745. +
  44746. +fi
  44747. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
  44748. +$as_echo "$ac_cv_func_memcmp_working" >&6; }
  44749. +test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
  44750. + *" memcmp.$ac_objext "* ) ;;
  44751. + *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
  44752. + ;;
  44753. esac
  44754. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  44755. - (eval "$ac_try") 2>&5
  44756. - ac_status=$?
  44757. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  44758. - (exit $ac_status); }; }; then
  44759. - ac_hi=-1 ac_mid=-1
  44760. - while :; do
  44761. - cat >conftest.$ac_ext <<_ACEOF
  44762. -/* confdefs.h. */
  44763. +
  44764. +
  44765. +for ac_header in stdlib.h
  44766. +do :
  44767. + ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
  44768. +if test "x$ac_cv_header_stdlib_h" = x""yes; then :
  44769. + cat >>confdefs.h <<_ACEOF
  44770. +#define HAVE_STDLIB_H 1
  44771. _ACEOF
  44772. -cat confdefs.h >>conftest.$ac_ext
  44773. -cat >>conftest.$ac_ext <<_ACEOF
  44774. +
  44775. +fi
  44776. +
  44777. +done
  44778. +
  44779. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible realloc" >&5
  44780. +$as_echo_n "checking for GNU libc compatible realloc... " >&6; }
  44781. +if test "${ac_cv_func_realloc_0_nonnull+set}" = set; then :
  44782. + $as_echo_n "(cached) " >&6
  44783. +else
  44784. + if test "$cross_compiling" = yes; then :
  44785. + ac_cv_func_realloc_0_nonnull=no
  44786. +else
  44787. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  44788. /* end confdefs.h. */
  44789. -$ac_includes_default
  44790. - typedef long ac__type_sizeof_;
  44791. +#if defined STDC_HEADERS || defined HAVE_STDLIB_H
  44792. +# include <stdlib.h>
  44793. +#else
  44794. +char *realloc ();
  44795. +#endif
  44796. +
  44797. int
  44798. main ()
  44799. {
  44800. -static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
  44801. -test_array [0] = 0
  44802. -
  44803. +return ! realloc (0, 0);
  44804. ;
  44805. return 0;
  44806. }
  44807. _ACEOF
  44808. -rm -f conftest.$ac_objext
  44809. -if { (ac_try="$ac_compile"
  44810. -case "(($ac_try" in
  44811. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  44812. - *) ac_try_echo=$ac_try;;
  44813. -esac
  44814. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  44815. - (eval "$ac_compile") 2>conftest.er1
  44816. - ac_status=$?
  44817. - grep -v '^ *+' conftest.er1 >conftest.err
  44818. - rm -f conftest.er1
  44819. - cat conftest.err >&5
  44820. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  44821. - (exit $ac_status); } &&
  44822. - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  44823. - { (case "(($ac_try" in
  44824. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  44825. - *) ac_try_echo=$ac_try;;
  44826. -esac
  44827. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  44828. - (eval "$ac_try") 2>&5
  44829. - ac_status=$?
  44830. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  44831. - (exit $ac_status); }; } &&
  44832. - { ac_try='test -s conftest.$ac_objext'
  44833. - { (case "(($ac_try" in
  44834. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  44835. - *) ac_try_echo=$ac_try;;
  44836. -esac
  44837. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  44838. - (eval "$ac_try") 2>&5
  44839. - ac_status=$?
  44840. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  44841. - (exit $ac_status); }; }; then
  44842. - ac_lo=$ac_mid; break
  44843. +if ac_fn_c_try_run "$LINENO"; then :
  44844. + ac_cv_func_realloc_0_nonnull=yes
  44845. else
  44846. - echo "$as_me: failed program was:" >&5
  44847. -sed 's/^/| /' conftest.$ac_ext >&5
  44848. + ac_cv_func_realloc_0_nonnull=no
  44849. +fi
  44850. +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  44851. + conftest.$ac_objext conftest.beam conftest.$ac_ext
  44852. +fi
  44853. - ac_hi=`expr '(' $ac_mid ')' - 1`
  44854. - if test $ac_mid -le $ac_hi; then
  44855. - ac_lo= ac_hi=
  44856. - break
  44857. - fi
  44858. - ac_mid=`expr 2 '*' $ac_mid`
  44859. fi
  44860. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_realloc_0_nonnull" >&5
  44861. +$as_echo "$ac_cv_func_realloc_0_nonnull" >&6; }
  44862. +if test $ac_cv_func_realloc_0_nonnull = yes; then :
  44863. +
  44864. +$as_echo "#define HAVE_REALLOC 1" >>confdefs.h
  44865. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  44866. - done
  44867. else
  44868. - echo "$as_me: failed program was:" >&5
  44869. -sed 's/^/| /' conftest.$ac_ext >&5
  44870. + $as_echo "#define HAVE_REALLOC 0" >>confdefs.h
  44871. +
  44872. + case " $LIBOBJS " in
  44873. + *" realloc.$ac_objext "* ) ;;
  44874. + *) LIBOBJS="$LIBOBJS realloc.$ac_objext"
  44875. + ;;
  44876. +esac
  44877. +
  44878. +
  44879. +$as_echo "#define realloc rpl_realloc" >>confdefs.h
  44880. - ac_lo= ac_hi=
  44881. fi
  44882. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  44883. +
  44884. +for ac_func in memset strerror
  44885. +do :
  44886. + as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  44887. +ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  44888. +eval as_val=\$$as_ac_var
  44889. + if test "x$as_val" = x""yes; then :
  44890. + cat >>confdefs.h <<_ACEOF
  44891. +#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  44892. +_ACEOF
  44893. +
  44894. +fi
  44895. +done
  44896. +
  44897. +
  44898. +ac_config_files="$ac_config_files Makefile src/Makefile"
  44899. +
  44900. +
  44901. +ac_config_files="$ac_config_files libgssglue.pc"
  44902. +
  44903. +cat >confcache <<\_ACEOF
  44904. +# This file is a shell script that caches the results of configure
  44905. +# tests run on this system so they can be shared between configure
  44906. +# scripts and configure runs, see configure's option --config-cache.
  44907. +# It is not useful on other systems. If it contains results you don't
  44908. +# want to keep, you may remove or edit it.
  44909. +#
  44910. +# config.status only pays attention to the cache file if you give it
  44911. +# the --recheck option to rerun configure.
  44912. +#
  44913. +# `ac_cv_env_foo' variables (set or unset) will be overridden when
  44914. +# loading this file, other *unset* `ac_cv_foo' will be assigned the
  44915. +# following values.
  44916. +
  44917. +_ACEOF
  44918. +
  44919. +# The following way of writing the cache mishandles newlines in values,
  44920. +# but we know of no workaround that is simple, portable, and efficient.
  44921. +# So, we kill variables containing newlines.
  44922. +# Ultrix sh set writes to stderr and can't be redirected directly,
  44923. +# and sets the high bit in the cache file unless we assign to the vars.
  44924. +(
  44925. + for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  44926. + eval ac_val=\$$ac_var
  44927. + case $ac_val in #(
  44928. + *${as_nl}*)
  44929. + case $ac_var in #(
  44930. + *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  44931. +$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  44932. + esac
  44933. + case $ac_var in #(
  44934. + _ | IFS | as_nl) ;; #(
  44935. + BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  44936. + *) { eval $ac_var=; unset $ac_var;} ;;
  44937. + esac ;;
  44938. + esac
  44939. + done
  44940. +
  44941. + (set) 2>&1 |
  44942. + case $as_nl`(ac_space=' '; set) 2>&1` in #(
  44943. + *${as_nl}ac_space=\ *)
  44944. + # `set' does not quote correctly, so add quotes: double-quote
  44945. + # substitution turns \\\\ into \\, and sed turns \\ into \.
  44946. + sed -n \
  44947. + "s/'/'\\\\''/g;
  44948. + s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  44949. + ;; #(
  44950. + *)
  44951. + # `set' quotes correctly as required by POSIX, so do not add quotes.
  44952. + sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  44953. + ;;
  44954. + esac |
  44955. + sort
  44956. +) |
  44957. + sed '
  44958. + /^ac_cv_env_/b end
  44959. + t clear
  44960. + :clear
  44961. + s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  44962. + t end
  44963. + s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  44964. + :end' >>confcache
  44965. +if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  44966. + if test -w "$cache_file"; then
  44967. + test "x$cache_file" != "x/dev/null" &&
  44968. + { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  44969. +$as_echo "$as_me: updating cache $cache_file" >&6;}
  44970. + cat confcache >$cache_file
  44971. + else
  44972. + { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  44973. +$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  44974. + fi
  44975. fi
  44976. +rm -f confcache
  44977. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  44978. -# Binary search between lo and hi bounds.
  44979. -while test "x$ac_lo" != "x$ac_hi"; do
  44980. - ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  44981. - cat >conftest.$ac_ext <<_ACEOF
  44982. -/* confdefs.h. */
  44983. -_ACEOF
  44984. -cat confdefs.h >>conftest.$ac_ext
  44985. -cat >>conftest.$ac_ext <<_ACEOF
  44986. -/* end confdefs.h. */
  44987. -$ac_includes_default
  44988. - typedef long ac__type_sizeof_;
  44989. -int
  44990. -main ()
  44991. -{
  44992. -static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
  44993. -test_array [0] = 0
  44994. -
  44995. - ;
  44996. - return 0;
  44997. -}
  44998. -_ACEOF
  44999. -rm -f conftest.$ac_objext
  45000. -if { (ac_try="$ac_compile"
  45001. -case "(($ac_try" in
  45002. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  45003. - *) ac_try_echo=$ac_try;;
  45004. -esac
  45005. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  45006. - (eval "$ac_compile") 2>conftest.er1
  45007. - ac_status=$?
  45008. - grep -v '^ *+' conftest.er1 >conftest.err
  45009. - rm -f conftest.er1
  45010. - cat conftest.err >&5
  45011. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  45012. - (exit $ac_status); } &&
  45013. - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  45014. - { (case "(($ac_try" in
  45015. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  45016. - *) ac_try_echo=$ac_try;;
  45017. -esac
  45018. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  45019. - (eval "$ac_try") 2>&5
  45020. - ac_status=$?
  45021. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  45022. - (exit $ac_status); }; } &&
  45023. - { ac_try='test -s conftest.$ac_objext'
  45024. - { (case "(($ac_try" in
  45025. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  45026. - *) ac_try_echo=$ac_try;;
  45027. -esac
  45028. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  45029. - (eval "$ac_try") 2>&5
  45030. - ac_status=$?
  45031. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  45032. - (exit $ac_status); }; }; then
  45033. - ac_hi=$ac_mid
  45034. -else
  45035. - echo "$as_me: failed program was:" >&5
  45036. -sed 's/^/| /' conftest.$ac_ext >&5
  45037. +test "x$prefix" = xNONE && prefix=$ac_default_prefix
  45038. +# Let make expand exec_prefix.
  45039. +test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  45040. - ac_lo=`expr '(' $ac_mid ')' + 1`
  45041. -fi
  45042. +DEFS=-DHAVE_CONFIG_H
  45043. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  45044. +ac_libobjs=
  45045. +ac_ltlibobjs=
  45046. +for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  45047. + # 1. Remove the extension, and $U if already installed.
  45048. + ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  45049. + ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  45050. + # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  45051. + # will be set to the directory where LIBOBJS objects are built.
  45052. + as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  45053. + as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  45054. done
  45055. -case $ac_lo in
  45056. -?*) ac_cv_sizeof_long=$ac_lo;;
  45057. -'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
  45058. -See \`config.log' for more details." >&5
  45059. -echo "$as_me: error: cannot compute sizeof (long)
  45060. -See \`config.log' for more details." >&2;}
  45061. - { (exit 77); exit 77; }; } ;;
  45062. -esac
  45063. -else
  45064. - cat >conftest.$ac_ext <<_ACEOF
  45065. -/* confdefs.h. */
  45066. -_ACEOF
  45067. -cat confdefs.h >>conftest.$ac_ext
  45068. -cat >>conftest.$ac_ext <<_ACEOF
  45069. -/* end confdefs.h. */
  45070. -$ac_includes_default
  45071. - typedef long ac__type_sizeof_;
  45072. -static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
  45073. -static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
  45074. -#include <stdio.h>
  45075. -#include <stdlib.h>
  45076. -int
  45077. -main ()
  45078. -{
  45079. +LIBOBJS=$ac_libobjs
  45080. - FILE *f = fopen ("conftest.val", "w");
  45081. - if (! f)
  45082. - return 1;
  45083. - if (((long int) (sizeof (ac__type_sizeof_))) < 0)
  45084. - {
  45085. - long int i = longval ();
  45086. - if (i != ((long int) (sizeof (ac__type_sizeof_))))
  45087. - return 1;
  45088. - fprintf (f, "%ld\n", i);
  45089. - }
  45090. - else
  45091. - {
  45092. - unsigned long int i = ulongval ();
  45093. - if (i != ((long int) (sizeof (ac__type_sizeof_))))
  45094. - return 1;
  45095. - fprintf (f, "%lu\n", i);
  45096. - }
  45097. - return ferror (f) || fclose (f) != 0;
  45098. +LTLIBOBJS=$ac_ltlibobjs
  45099. - ;
  45100. - return 0;
  45101. -}
  45102. -_ACEOF
  45103. -rm -f conftest$ac_exeext
  45104. -if { (ac_try="$ac_link"
  45105. -case "(($ac_try" in
  45106. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  45107. - *) ac_try_echo=$ac_try;;
  45108. -esac
  45109. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  45110. - (eval "$ac_link") 2>&5
  45111. - ac_status=$?
  45112. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  45113. - (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  45114. - { (case "(($ac_try" in
  45115. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  45116. - *) ac_try_echo=$ac_try;;
  45117. -esac
  45118. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  45119. - (eval "$ac_try") 2>&5
  45120. - ac_status=$?
  45121. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  45122. - (exit $ac_status); }; }; then
  45123. - ac_cv_sizeof_long=`cat conftest.val`
  45124. -else
  45125. - echo "$as_me: program exited with status $ac_status" >&5
  45126. -echo "$as_me: failed program was:" >&5
  45127. -sed 's/^/| /' conftest.$ac_ext >&5
  45128. -( exit $ac_status )
  45129. -{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
  45130. -See \`config.log' for more details." >&5
  45131. -echo "$as_me: error: cannot compute sizeof (long)
  45132. -See \`config.log' for more details." >&2;}
  45133. - { (exit 77); exit 77; }; }
  45134. + if test -n "$EXEEXT"; then
  45135. + am__EXEEXT_TRUE=
  45136. + am__EXEEXT_FALSE='#'
  45137. +else
  45138. + am__EXEEXT_TRUE='#'
  45139. + am__EXEEXT_FALSE=
  45140. fi
  45141. -rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  45142. +
  45143. +if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  45144. + as_fn_error "conditional \"AMDEP\" was never defined.
  45145. +Usually this means the macro was only invoked conditionally." "$LINENO" 5
  45146. fi
  45147. -rm -f conftest.val
  45148. -else
  45149. - ac_cv_sizeof_long=0
  45150. +if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  45151. + as_fn_error "conditional \"am__fastdepCC\" was never defined.
  45152. +Usually this means the macro was only invoked conditionally." "$LINENO" 5
  45153. fi
  45154. +if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  45155. + as_fn_error "conditional \"am__fastdepCC\" was never defined.
  45156. +Usually this means the macro was only invoked conditionally." "$LINENO" 5
  45157. fi
  45158. -{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
  45159. -echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
  45160. -cat >>confdefs.h <<_ACEOF
  45161. -#define SIZEOF_LONG $ac_cv_sizeof_long
  45162. -_ACEOF
  45163. +: ${CONFIG_STATUS=./config.status}
  45164. +ac_write_fail=0
  45165. +ac_clean_files_save=$ac_clean_files
  45166. +ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  45167. +{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  45168. +$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  45169. +as_write_fail=0
  45170. +cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  45171. +#! $SHELL
  45172. +# Generated by $as_me.
  45173. +# Run this file to recreate the current configuration.
  45174. +# Compiler output produced by configure, useful for debugging
  45175. +# configure, is in config.log if it exists.
  45176. +
  45177. +debug=false
  45178. +ac_cs_recheck=false
  45179. +ac_cs_silent=false
  45180. +
  45181. +SHELL=\${CONFIG_SHELL-$SHELL}
  45182. +export SHELL
  45183. +_ASEOF
  45184. +cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  45185. +## -------------------- ##
  45186. +## M4sh Initialization. ##
  45187. +## -------------------- ##
  45188. -{ echo "$as_me:$LINENO: checking for size_t" >&5
  45189. -echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
  45190. -if test "${ac_cv_type_size_t+set}" = set; then
  45191. - echo $ECHO_N "(cached) $ECHO_C" >&6
  45192. +# Be more Bourne compatible
  45193. +DUALCASE=1; export DUALCASE # for MKS sh
  45194. +if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  45195. + emulate sh
  45196. + NULLCMD=:
  45197. + # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  45198. + # is contrary to our usage. Disable this feature.
  45199. + alias -g '${1+"$@"}'='"$@"'
  45200. + setopt NO_GLOB_SUBST
  45201. else
  45202. - cat >conftest.$ac_ext <<_ACEOF
  45203. -/* confdefs.h. */
  45204. -_ACEOF
  45205. -cat confdefs.h >>conftest.$ac_ext
  45206. -cat >>conftest.$ac_ext <<_ACEOF
  45207. -/* end confdefs.h. */
  45208. -$ac_includes_default
  45209. -typedef size_t ac__type_new_;
  45210. -int
  45211. -main ()
  45212. -{
  45213. -if ((ac__type_new_ *) 0)
  45214. - return 0;
  45215. -if (sizeof (ac__type_new_))
  45216. - return 0;
  45217. - ;
  45218. - return 0;
  45219. -}
  45220. -_ACEOF
  45221. -rm -f conftest.$ac_objext
  45222. -if { (ac_try="$ac_compile"
  45223. -case "(($ac_try" in
  45224. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  45225. - *) ac_try_echo=$ac_try;;
  45226. -esac
  45227. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  45228. - (eval "$ac_compile") 2>conftest.er1
  45229. - ac_status=$?
  45230. - grep -v '^ *+' conftest.er1 >conftest.err
  45231. - rm -f conftest.er1
  45232. - cat conftest.err >&5
  45233. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  45234. - (exit $ac_status); } &&
  45235. - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  45236. - { (case "(($ac_try" in
  45237. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  45238. - *) ac_try_echo=$ac_try;;
  45239. -esac
  45240. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  45241. - (eval "$ac_try") 2>&5
  45242. - ac_status=$?
  45243. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  45244. - (exit $ac_status); }; } &&
  45245. - { ac_try='test -s conftest.$ac_objext'
  45246. - { (case "(($ac_try" in
  45247. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  45248. - *) ac_try_echo=$ac_try;;
  45249. + case `(set -o) 2>/dev/null` in #(
  45250. + *posix*) :
  45251. + set -o posix ;; #(
  45252. + *) :
  45253. + ;;
  45254. esac
  45255. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  45256. - (eval "$ac_try") 2>&5
  45257. - ac_status=$?
  45258. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  45259. - (exit $ac_status); }; }; then
  45260. - ac_cv_type_size_t=yes
  45261. -else
  45262. - echo "$as_me: failed program was:" >&5
  45263. -sed 's/^/| /' conftest.$ac_ext >&5
  45264. +fi
  45265. +
  45266. - ac_cv_type_size_t=no
  45267. +as_nl='
  45268. +'
  45269. +export as_nl
  45270. +# Printing a long string crashes Solaris 7 /usr/bin/printf.
  45271. +as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  45272. +as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  45273. +as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  45274. +# Prefer a ksh shell builtin over an external printf program on Solaris,
  45275. +# but without wasting forks for bash or zsh.
  45276. +if test -z "$BASH_VERSION$ZSH_VERSION" \
  45277. + && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  45278. + as_echo='print -r --'
  45279. + as_echo_n='print -rn --'
  45280. +elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  45281. + as_echo='printf %s\n'
  45282. + as_echo_n='printf %s'
  45283. +else
  45284. + if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  45285. + as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  45286. + as_echo_n='/usr/ucb/echo -n'
  45287. + else
  45288. + as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  45289. + as_echo_n_body='eval
  45290. + arg=$1;
  45291. + case $arg in #(
  45292. + *"$as_nl"*)
  45293. + expr "X$arg" : "X\\(.*\\)$as_nl";
  45294. + arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  45295. + esac;
  45296. + expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  45297. + '
  45298. + export as_echo_n_body
  45299. + as_echo_n='sh -c $as_echo_n_body as_echo'
  45300. + fi
  45301. + export as_echo_body
  45302. + as_echo='sh -c $as_echo_body as_echo'
  45303. fi
  45304. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  45305. +# The user is always right.
  45306. +if test "${PATH_SEPARATOR+set}" != set; then
  45307. + PATH_SEPARATOR=:
  45308. + (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  45309. + (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  45310. + PATH_SEPARATOR=';'
  45311. + }
  45312. fi
  45313. -{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
  45314. -echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
  45315. -{ echo "$as_me:$LINENO: checking size of size_t" >&5
  45316. -echo $ECHO_N "checking size of size_t... $ECHO_C" >&6; }
  45317. -if test "${ac_cv_sizeof_size_t+set}" = set; then
  45318. - echo $ECHO_N "(cached) $ECHO_C" >&6
  45319. -else
  45320. - if test "$ac_cv_type_size_t" = yes; then
  45321. - # The cast to long int works around a bug in the HP C Compiler
  45322. - # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  45323. - # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  45324. - # This bug is HP SR number 8606223364.
  45325. - if test "$cross_compiling" = yes; then
  45326. - # Depending upon the size, compute the lo and hi bounds.
  45327. -cat >conftest.$ac_ext <<_ACEOF
  45328. -/* confdefs.h. */
  45329. -_ACEOF
  45330. -cat confdefs.h >>conftest.$ac_ext
  45331. -cat >>conftest.$ac_ext <<_ACEOF
  45332. -/* end confdefs.h. */
  45333. -$ac_includes_default
  45334. - typedef size_t ac__type_sizeof_;
  45335. -int
  45336. -main ()
  45337. -{
  45338. -static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
  45339. -test_array [0] = 0
  45340. - ;
  45341. - return 0;
  45342. -}
  45343. -_ACEOF
  45344. -rm -f conftest.$ac_objext
  45345. -if { (ac_try="$ac_compile"
  45346. -case "(($ac_try" in
  45347. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  45348. - *) ac_try_echo=$ac_try;;
  45349. -esac
  45350. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  45351. - (eval "$ac_compile") 2>conftest.er1
  45352. - ac_status=$?
  45353. - grep -v '^ *+' conftest.er1 >conftest.err
  45354. - rm -f conftest.er1
  45355. - cat conftest.err >&5
  45356. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  45357. - (exit $ac_status); } &&
  45358. - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  45359. - { (case "(($ac_try" in
  45360. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  45361. - *) ac_try_echo=$ac_try;;
  45362. -esac
  45363. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  45364. - (eval "$ac_try") 2>&5
  45365. - ac_status=$?
  45366. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  45367. - (exit $ac_status); }; } &&
  45368. - { ac_try='test -s conftest.$ac_objext'
  45369. - { (case "(($ac_try" in
  45370. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  45371. - *) ac_try_echo=$ac_try;;
  45372. -esac
  45373. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  45374. - (eval "$ac_try") 2>&5
  45375. - ac_status=$?
  45376. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  45377. - (exit $ac_status); }; }; then
  45378. - ac_lo=0 ac_mid=0
  45379. - while :; do
  45380. - cat >conftest.$ac_ext <<_ACEOF
  45381. -/* confdefs.h. */
  45382. -_ACEOF
  45383. -cat confdefs.h >>conftest.$ac_ext
  45384. -cat >>conftest.$ac_ext <<_ACEOF
  45385. -/* end confdefs.h. */
  45386. -$ac_includes_default
  45387. - typedef size_t ac__type_sizeof_;
  45388. -int
  45389. -main ()
  45390. -{
  45391. -static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
  45392. -test_array [0] = 0
  45393. +# IFS
  45394. +# We need space, tab and new line, in precisely that order. Quoting is
  45395. +# there to prevent editors from complaining about space-tab.
  45396. +# (If _AS_PATH_WALK were called with IFS unset, it would disable word
  45397. +# splitting by setting IFS to empty value.)
  45398. +IFS=" "" $as_nl"
  45399. - ;
  45400. - return 0;
  45401. -}
  45402. -_ACEOF
  45403. -rm -f conftest.$ac_objext
  45404. -if { (ac_try="$ac_compile"
  45405. -case "(($ac_try" in
  45406. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  45407. - *) ac_try_echo=$ac_try;;
  45408. -esac
  45409. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  45410. - (eval "$ac_compile") 2>conftest.er1
  45411. - ac_status=$?
  45412. - grep -v '^ *+' conftest.er1 >conftest.err
  45413. - rm -f conftest.er1
  45414. - cat conftest.err >&5
  45415. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  45416. - (exit $ac_status); } &&
  45417. - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  45418. - { (case "(($ac_try" in
  45419. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  45420. - *) ac_try_echo=$ac_try;;
  45421. -esac
  45422. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  45423. - (eval "$ac_try") 2>&5
  45424. - ac_status=$?
  45425. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  45426. - (exit $ac_status); }; } &&
  45427. - { ac_try='test -s conftest.$ac_objext'
  45428. - { (case "(($ac_try" in
  45429. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  45430. - *) ac_try_echo=$ac_try;;
  45431. -esac
  45432. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  45433. - (eval "$ac_try") 2>&5
  45434. - ac_status=$?
  45435. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  45436. - (exit $ac_status); }; }; then
  45437. - ac_hi=$ac_mid; break
  45438. -else
  45439. - echo "$as_me: failed program was:" >&5
  45440. -sed 's/^/| /' conftest.$ac_ext >&5
  45441. +# Find who we are. Look in the path if we contain no directory separator.
  45442. +case $0 in #((
  45443. + *[\\/]* ) as_myself=$0 ;;
  45444. + *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  45445. +for as_dir in $PATH
  45446. +do
  45447. + IFS=$as_save_IFS
  45448. + test -z "$as_dir" && as_dir=.
  45449. + test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  45450. + done
  45451. +IFS=$as_save_IFS
  45452. - ac_lo=`expr $ac_mid + 1`
  45453. - if test $ac_lo -le $ac_mid; then
  45454. - ac_lo= ac_hi=
  45455. - break
  45456. - fi
  45457. - ac_mid=`expr 2 '*' $ac_mid + 1`
  45458. + ;;
  45459. +esac
  45460. +# We did not find ourselves, most probably we were run as `sh COMMAND'
  45461. +# in which case we are not to be found in the path.
  45462. +if test "x$as_myself" = x; then
  45463. + as_myself=$0
  45464. +fi
  45465. +if test ! -f "$as_myself"; then
  45466. + $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  45467. + exit 1
  45468. fi
  45469. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  45470. - done
  45471. -else
  45472. - echo "$as_me: failed program was:" >&5
  45473. -sed 's/^/| /' conftest.$ac_ext >&5
  45474. +# Unset variables that we do not need and which cause bugs (e.g. in
  45475. +# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  45476. +# suppresses any "Segmentation fault" message there. '((' could
  45477. +# trigger a bug in pdksh 5.2.14.
  45478. +for as_var in BASH_ENV ENV MAIL MAILPATH
  45479. +do eval test x\${$as_var+set} = xset \
  45480. + && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  45481. +done
  45482. +PS1='$ '
  45483. +PS2='> '
  45484. +PS4='+ '
  45485. - cat >conftest.$ac_ext <<_ACEOF
  45486. -/* confdefs.h. */
  45487. -_ACEOF
  45488. -cat confdefs.h >>conftest.$ac_ext
  45489. -cat >>conftest.$ac_ext <<_ACEOF
  45490. -/* end confdefs.h. */
  45491. -$ac_includes_default
  45492. - typedef size_t ac__type_sizeof_;
  45493. -int
  45494. -main ()
  45495. -{
  45496. -static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
  45497. -test_array [0] = 0
  45498. +# NLS nuisances.
  45499. +LC_ALL=C
  45500. +export LC_ALL
  45501. +LANGUAGE=C
  45502. +export LANGUAGE
  45503. - ;
  45504. - return 0;
  45505. -}
  45506. -_ACEOF
  45507. -rm -f conftest.$ac_objext
  45508. -if { (ac_try="$ac_compile"
  45509. -case "(($ac_try" in
  45510. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  45511. - *) ac_try_echo=$ac_try;;
  45512. -esac
  45513. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  45514. - (eval "$ac_compile") 2>conftest.er1
  45515. - ac_status=$?
  45516. - grep -v '^ *+' conftest.er1 >conftest.err
  45517. - rm -f conftest.er1
  45518. - cat conftest.err >&5
  45519. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  45520. - (exit $ac_status); } &&
  45521. - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  45522. - { (case "(($ac_try" in
  45523. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  45524. - *) ac_try_echo=$ac_try;;
  45525. -esac
  45526. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  45527. - (eval "$ac_try") 2>&5
  45528. - ac_status=$?
  45529. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  45530. - (exit $ac_status); }; } &&
  45531. - { ac_try='test -s conftest.$ac_objext'
  45532. - { (case "(($ac_try" in
  45533. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  45534. - *) ac_try_echo=$ac_try;;
  45535. -esac
  45536. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  45537. - (eval "$ac_try") 2>&5
  45538. - ac_status=$?
  45539. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  45540. - (exit $ac_status); }; }; then
  45541. - ac_hi=-1 ac_mid=-1
  45542. - while :; do
  45543. - cat >conftest.$ac_ext <<_ACEOF
  45544. -/* confdefs.h. */
  45545. -_ACEOF
  45546. -cat confdefs.h >>conftest.$ac_ext
  45547. -cat >>conftest.$ac_ext <<_ACEOF
  45548. -/* end confdefs.h. */
  45549. -$ac_includes_default
  45550. - typedef size_t ac__type_sizeof_;
  45551. -int
  45552. -main ()
  45553. -{
  45554. -static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
  45555. -test_array [0] = 0
  45556. +# CDPATH.
  45557. +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  45558. - ;
  45559. - return 0;
  45560. -}
  45561. -_ACEOF
  45562. -rm -f conftest.$ac_objext
  45563. -if { (ac_try="$ac_compile"
  45564. -case "(($ac_try" in
  45565. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  45566. - *) ac_try_echo=$ac_try;;
  45567. -esac
  45568. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  45569. - (eval "$ac_compile") 2>conftest.er1
  45570. - ac_status=$?
  45571. - grep -v '^ *+' conftest.er1 >conftest.err
  45572. - rm -f conftest.er1
  45573. - cat conftest.err >&5
  45574. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  45575. - (exit $ac_status); } &&
  45576. - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  45577. - { (case "(($ac_try" in
  45578. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  45579. - *) ac_try_echo=$ac_try;;
  45580. -esac
  45581. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  45582. - (eval "$ac_try") 2>&5
  45583. - ac_status=$?
  45584. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  45585. - (exit $ac_status); }; } &&
  45586. - { ac_try='test -s conftest.$ac_objext'
  45587. - { (case "(($ac_try" in
  45588. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  45589. - *) ac_try_echo=$ac_try;;
  45590. -esac
  45591. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  45592. - (eval "$ac_try") 2>&5
  45593. - ac_status=$?
  45594. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  45595. - (exit $ac_status); }; }; then
  45596. - ac_lo=$ac_mid; break
  45597. +
  45598. +# as_fn_error ERROR [LINENO LOG_FD]
  45599. +# ---------------------------------
  45600. +# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  45601. +# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  45602. +# script with status $?, using 1 if that was 0.
  45603. +as_fn_error ()
  45604. +{
  45605. + as_status=$?; test $as_status -eq 0 && as_status=1
  45606. + if test "$3"; then
  45607. + as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  45608. + $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
  45609. + fi
  45610. + $as_echo "$as_me: error: $1" >&2
  45611. + as_fn_exit $as_status
  45612. +} # as_fn_error
  45613. +
  45614. +
  45615. +# as_fn_set_status STATUS
  45616. +# -----------------------
  45617. +# Set $? to STATUS, without forking.
  45618. +as_fn_set_status ()
  45619. +{
  45620. + return $1
  45621. +} # as_fn_set_status
  45622. +
  45623. +# as_fn_exit STATUS
  45624. +# -----------------
  45625. +# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  45626. +as_fn_exit ()
  45627. +{
  45628. + set +e
  45629. + as_fn_set_status $1
  45630. + exit $1
  45631. +} # as_fn_exit
  45632. +
  45633. +# as_fn_unset VAR
  45634. +# ---------------
  45635. +# Portably unset VAR.
  45636. +as_fn_unset ()
  45637. +{
  45638. + { eval $1=; unset $1;}
  45639. +}
  45640. +as_unset=as_fn_unset
  45641. +# as_fn_append VAR VALUE
  45642. +# ----------------------
  45643. +# Append the text in VALUE to the end of the definition contained in VAR. Take
  45644. +# advantage of any shell optimizations that allow amortized linear growth over
  45645. +# repeated appends, instead of the typical quadratic growth present in naive
  45646. +# implementations.
  45647. +if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  45648. + eval 'as_fn_append ()
  45649. + {
  45650. + eval $1+=\$2
  45651. + }'
  45652. else
  45653. - echo "$as_me: failed program was:" >&5
  45654. -sed 's/^/| /' conftest.$ac_ext >&5
  45655. + as_fn_append ()
  45656. + {
  45657. + eval $1=\$$1\$2
  45658. + }
  45659. +fi # as_fn_append
  45660. - ac_hi=`expr '(' $ac_mid ')' - 1`
  45661. - if test $ac_mid -le $ac_hi; then
  45662. - ac_lo= ac_hi=
  45663. - break
  45664. - fi
  45665. - ac_mid=`expr 2 '*' $ac_mid`
  45666. -fi
  45667. +# as_fn_arith ARG...
  45668. +# ------------------
  45669. +# Perform arithmetic evaluation on the ARGs, and store the result in the
  45670. +# global $as_val. Take advantage of shells that can avoid forks. The arguments
  45671. +# must be portable across $(()) and expr.
  45672. +if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  45673. + eval 'as_fn_arith ()
  45674. + {
  45675. + as_val=$(( $* ))
  45676. + }'
  45677. +else
  45678. + as_fn_arith ()
  45679. + {
  45680. + as_val=`expr "$@" || test $? -eq 1`
  45681. + }
  45682. +fi # as_fn_arith
  45683. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  45684. - done
  45685. +
  45686. +if expr a : '\(a\)' >/dev/null 2>&1 &&
  45687. + test "X`expr 00001 : '.*\(...\)'`" = X001; then
  45688. + as_expr=expr
  45689. else
  45690. - echo "$as_me: failed program was:" >&5
  45691. -sed 's/^/| /' conftest.$ac_ext >&5
  45692. + as_expr=false
  45693. +fi
  45694. - ac_lo= ac_hi=
  45695. +if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  45696. + as_basename=basename
  45697. +else
  45698. + as_basename=false
  45699. fi
  45700. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  45701. +if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  45702. + as_dirname=dirname
  45703. +else
  45704. + as_dirname=false
  45705. fi
  45706. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  45707. -# Binary search between lo and hi bounds.
  45708. -while test "x$ac_lo" != "x$ac_hi"; do
  45709. - ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  45710. - cat >conftest.$ac_ext <<_ACEOF
  45711. -/* confdefs.h. */
  45712. -_ACEOF
  45713. -cat confdefs.h >>conftest.$ac_ext
  45714. -cat >>conftest.$ac_ext <<_ACEOF
  45715. -/* end confdefs.h. */
  45716. -$ac_includes_default
  45717. - typedef size_t ac__type_sizeof_;
  45718. -int
  45719. -main ()
  45720. -{
  45721. -static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
  45722. -test_array [0] = 0
  45723. +as_me=`$as_basename -- "$0" ||
  45724. +$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  45725. + X"$0" : 'X\(//\)$' \| \
  45726. + X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  45727. +$as_echo X/"$0" |
  45728. + sed '/^.*\/\([^/][^/]*\)\/*$/{
  45729. + s//\1/
  45730. + q
  45731. + }
  45732. + /^X\/\(\/\/\)$/{
  45733. + s//\1/
  45734. + q
  45735. + }
  45736. + /^X\/\(\/\).*/{
  45737. + s//\1/
  45738. + q
  45739. + }
  45740. + s/.*/./; q'`
  45741. - ;
  45742. - return 0;
  45743. -}
  45744. -_ACEOF
  45745. -rm -f conftest.$ac_objext
  45746. -if { (ac_try="$ac_compile"
  45747. -case "(($ac_try" in
  45748. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  45749. - *) ac_try_echo=$ac_try;;
  45750. -esac
  45751. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  45752. - (eval "$ac_compile") 2>conftest.er1
  45753. - ac_status=$?
  45754. - grep -v '^ *+' conftest.er1 >conftest.err
  45755. - rm -f conftest.er1
  45756. - cat conftest.err >&5
  45757. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  45758. - (exit $ac_status); } &&
  45759. - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  45760. - { (case "(($ac_try" in
  45761. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  45762. - *) ac_try_echo=$ac_try;;
  45763. -esac
  45764. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  45765. - (eval "$ac_try") 2>&5
  45766. - ac_status=$?
  45767. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  45768. - (exit $ac_status); }; } &&
  45769. - { ac_try='test -s conftest.$ac_objext'
  45770. - { (case "(($ac_try" in
  45771. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  45772. - *) ac_try_echo=$ac_try;;
  45773. +# Avoid depending upon Character Ranges.
  45774. +as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  45775. +as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  45776. +as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  45777. +as_cr_digits='0123456789'
  45778. +as_cr_alnum=$as_cr_Letters$as_cr_digits
  45779. +
  45780. +ECHO_C= ECHO_N= ECHO_T=
  45781. +case `echo -n x` in #(((((
  45782. +-n*)
  45783. + case `echo 'xy\c'` in
  45784. + *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  45785. + xy) ECHO_C='\c';;
  45786. + *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  45787. + ECHO_T=' ';;
  45788. + esac;;
  45789. +*)
  45790. + ECHO_N='-n';;
  45791. esac
  45792. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  45793. - (eval "$ac_try") 2>&5
  45794. - ac_status=$?
  45795. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  45796. - (exit $ac_status); }; }; then
  45797. - ac_hi=$ac_mid
  45798. -else
  45799. - echo "$as_me: failed program was:" >&5
  45800. -sed 's/^/| /' conftest.$ac_ext >&5
  45801. - ac_lo=`expr '(' $ac_mid ')' + 1`
  45802. +rm -f conf$$ conf$$.exe conf$$.file
  45803. +if test -d conf$$.dir; then
  45804. + rm -f conf$$.dir/conf$$.file
  45805. +else
  45806. + rm -f conf$$.dir
  45807. + mkdir conf$$.dir 2>/dev/null
  45808. fi
  45809. -
  45810. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  45811. -done
  45812. -case $ac_lo in
  45813. -?*) ac_cv_sizeof_size_t=$ac_lo;;
  45814. -'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
  45815. -See \`config.log' for more details." >&5
  45816. -echo "$as_me: error: cannot compute sizeof (size_t)
  45817. -See \`config.log' for more details." >&2;}
  45818. - { (exit 77); exit 77; }; } ;;
  45819. -esac
  45820. +if (echo >conf$$.file) 2>/dev/null; then
  45821. + if ln -s conf$$.file conf$$ 2>/dev/null; then
  45822. + as_ln_s='ln -s'
  45823. + # ... but there are two gotchas:
  45824. + # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  45825. + # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  45826. + # In both cases, we have to default to `cp -p'.
  45827. + ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  45828. + as_ln_s='cp -p'
  45829. + elif ln conf$$.file conf$$ 2>/dev/null; then
  45830. + as_ln_s=ln
  45831. + else
  45832. + as_ln_s='cp -p'
  45833. + fi
  45834. else
  45835. - cat >conftest.$ac_ext <<_ACEOF
  45836. -/* confdefs.h. */
  45837. -_ACEOF
  45838. -cat confdefs.h >>conftest.$ac_ext
  45839. -cat >>conftest.$ac_ext <<_ACEOF
  45840. -/* end confdefs.h. */
  45841. -$ac_includes_default
  45842. - typedef size_t ac__type_sizeof_;
  45843. -static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
  45844. -static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
  45845. -#include <stdio.h>
  45846. -#include <stdlib.h>
  45847. -int
  45848. -main ()
  45849. -{
  45850. + as_ln_s='cp -p'
  45851. +fi
  45852. +rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  45853. +rmdir conf$$.dir 2>/dev/null
  45854. - FILE *f = fopen ("conftest.val", "w");
  45855. - if (! f)
  45856. - return 1;
  45857. - if (((long int) (sizeof (ac__type_sizeof_))) < 0)
  45858. - {
  45859. - long int i = longval ();
  45860. - if (i != ((long int) (sizeof (ac__type_sizeof_))))
  45861. - return 1;
  45862. - fprintf (f, "%ld\n", i);
  45863. - }
  45864. - else
  45865. - {
  45866. - unsigned long int i = ulongval ();
  45867. - if (i != ((long int) (sizeof (ac__type_sizeof_))))
  45868. - return 1;
  45869. - fprintf (f, "%lu\n", i);
  45870. - }
  45871. - return ferror (f) || fclose (f) != 0;
  45872. - ;
  45873. - return 0;
  45874. -}
  45875. -_ACEOF
  45876. -rm -f conftest$ac_exeext
  45877. -if { (ac_try="$ac_link"
  45878. -case "(($ac_try" in
  45879. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  45880. - *) ac_try_echo=$ac_try;;
  45881. -esac
  45882. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  45883. - (eval "$ac_link") 2>&5
  45884. - ac_status=$?
  45885. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  45886. - (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  45887. - { (case "(($ac_try" in
  45888. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  45889. - *) ac_try_echo=$ac_try;;
  45890. -esac
  45891. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  45892. - (eval "$ac_try") 2>&5
  45893. - ac_status=$?
  45894. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  45895. - (exit $ac_status); }; }; then
  45896. - ac_cv_sizeof_size_t=`cat conftest.val`
  45897. -else
  45898. - echo "$as_me: program exited with status $ac_status" >&5
  45899. -echo "$as_me: failed program was:" >&5
  45900. -sed 's/^/| /' conftest.$ac_ext >&5
  45901. +# as_fn_mkdir_p
  45902. +# -------------
  45903. +# Create "$as_dir" as a directory, including parents if necessary.
  45904. +as_fn_mkdir_p ()
  45905. +{
  45906. +
  45907. + case $as_dir in #(
  45908. + -*) as_dir=./$as_dir;;
  45909. + esac
  45910. + test -d "$as_dir" || eval $as_mkdir_p || {
  45911. + as_dirs=
  45912. + while :; do
  45913. + case $as_dir in #(
  45914. + *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  45915. + *) as_qdir=$as_dir;;
  45916. + esac
  45917. + as_dirs="'$as_qdir' $as_dirs"
  45918. + as_dir=`$as_dirname -- "$as_dir" ||
  45919. +$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  45920. + X"$as_dir" : 'X\(//\)[^/]' \| \
  45921. + X"$as_dir" : 'X\(//\)$' \| \
  45922. + X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  45923. +$as_echo X"$as_dir" |
  45924. + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  45925. + s//\1/
  45926. + q
  45927. + }
  45928. + /^X\(\/\/\)[^/].*/{
  45929. + s//\1/
  45930. + q
  45931. + }
  45932. + /^X\(\/\/\)$/{
  45933. + s//\1/
  45934. + q
  45935. + }
  45936. + /^X\(\/\).*/{
  45937. + s//\1/
  45938. + q
  45939. + }
  45940. + s/.*/./; q'`
  45941. + test -d "$as_dir" && break
  45942. + done
  45943. + test -z "$as_dirs" || eval "mkdir $as_dirs"
  45944. + } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
  45945. -( exit $ac_status )
  45946. -{ { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
  45947. -See \`config.log' for more details." >&5
  45948. -echo "$as_me: error: cannot compute sizeof (size_t)
  45949. -See \`config.log' for more details." >&2;}
  45950. - { (exit 77); exit 77; }; }
  45951. -fi
  45952. -rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  45953. -fi
  45954. -rm -f conftest.val
  45955. +
  45956. +} # as_fn_mkdir_p
  45957. +if mkdir -p . 2>/dev/null; then
  45958. + as_mkdir_p='mkdir -p "$as_dir"'
  45959. else
  45960. - ac_cv_sizeof_size_t=0
  45961. + test -d ./-p && rmdir ./-p
  45962. + as_mkdir_p=false
  45963. fi
  45964. +
  45965. +if test -x / >/dev/null 2>&1; then
  45966. + as_test_x='test -x'
  45967. +else
  45968. + if ls -dL / >/dev/null 2>&1; then
  45969. + as_ls_L_option=L
  45970. + else
  45971. + as_ls_L_option=
  45972. + fi
  45973. + as_test_x='
  45974. + eval sh -c '\''
  45975. + if test -d "$1"; then
  45976. + test -d "$1/.";
  45977. + else
  45978. + case $1 in #(
  45979. + -*)set "./$1";;
  45980. + esac;
  45981. + case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
  45982. + ???[sx]*):;;*)false;;esac;fi
  45983. + '\'' sh
  45984. + '
  45985. fi
  45986. -{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
  45987. -echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6; }
  45988. -cat >>confdefs.h <<_ACEOF
  45989. -#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
  45990. -_ACEOF
  45991. +as_executable_p=$as_test_x
  45992. +
  45993. +# Sed expression to map a string onto a valid CPP name.
  45994. +as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  45995. +# Sed expression to map a string onto a valid variable name.
  45996. +as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  45997. -# Checks for library functions.
  45998. +exec 6>&1
  45999. +## ----------------------------------- ##
  46000. +## Main body of $CONFIG_STATUS script. ##
  46001. +## ----------------------------------- ##
  46002. +_ASEOF
  46003. +test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  46004. +
  46005. +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  46006. +# Save the log message, to keep $0 and so on meaningful, and to
  46007. +# report actual input values of CONFIG_FILES etc. instead of their
  46008. +# values after options handling.
  46009. +ac_log="
  46010. +This file was extended by libgssglue $as_me 0.1, which was
  46011. +generated by GNU Autoconf 2.65. Invocation command line was
  46012. +
  46013. + CONFIG_FILES = $CONFIG_FILES
  46014. + CONFIG_HEADERS = $CONFIG_HEADERS
  46015. + CONFIG_LINKS = $CONFIG_LINKS
  46016. + CONFIG_COMMANDS = $CONFIG_COMMANDS
  46017. + $ $0 $@
  46018. +
  46019. +on `(hostname || uname -n) 2>/dev/null | sed 1q`
  46020. +"
  46021. -for ac_header in stdlib.h
  46022. -do
  46023. -as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  46024. -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  46025. - { echo "$as_me:$LINENO: checking for $ac_header" >&5
  46026. -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  46027. -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  46028. - echo $ECHO_N "(cached) $ECHO_C" >&6
  46029. -fi
  46030. -ac_res=`eval echo '${'$as_ac_Header'}'`
  46031. - { echo "$as_me:$LINENO: result: $ac_res" >&5
  46032. -echo "${ECHO_T}$ac_res" >&6; }
  46033. -else
  46034. - # Is the header compilable?
  46035. -{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
  46036. -echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  46037. -cat >conftest.$ac_ext <<_ACEOF
  46038. -/* confdefs.h. */
  46039. -_ACEOF
  46040. -cat confdefs.h >>conftest.$ac_ext
  46041. -cat >>conftest.$ac_ext <<_ACEOF
  46042. -/* end confdefs.h. */
  46043. -$ac_includes_default
  46044. -#include <$ac_header>
  46045. _ACEOF
  46046. -rm -f conftest.$ac_objext
  46047. -if { (ac_try="$ac_compile"
  46048. -case "(($ac_try" in
  46049. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  46050. - *) ac_try_echo=$ac_try;;
  46051. -esac
  46052. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  46053. - (eval "$ac_compile") 2>conftest.er1
  46054. - ac_status=$?
  46055. - grep -v '^ *+' conftest.er1 >conftest.err
  46056. - rm -f conftest.er1
  46057. - cat conftest.err >&5
  46058. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  46059. - (exit $ac_status); } &&
  46060. - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  46061. - { (case "(($ac_try" in
  46062. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  46063. - *) ac_try_echo=$ac_try;;
  46064. +
  46065. +case $ac_config_files in *"
  46066. +"*) set x $ac_config_files; shift; ac_config_files=$*;;
  46067. esac
  46068. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  46069. - (eval "$ac_try") 2>&5
  46070. - ac_status=$?
  46071. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  46072. - (exit $ac_status); }; } &&
  46073. - { ac_try='test -s conftest.$ac_objext'
  46074. - { (case "(($ac_try" in
  46075. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  46076. - *) ac_try_echo=$ac_try;;
  46077. +
  46078. +case $ac_config_headers in *"
  46079. +"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  46080. esac
  46081. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  46082. - (eval "$ac_try") 2>&5
  46083. - ac_status=$?
  46084. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  46085. - (exit $ac_status); }; }; then
  46086. - ac_header_compiler=yes
  46087. -else
  46088. - echo "$as_me: failed program was:" >&5
  46089. -sed 's/^/| /' conftest.$ac_ext >&5
  46090. - ac_header_compiler=no
  46091. -fi
  46092. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  46093. -{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  46094. -echo "${ECHO_T}$ac_header_compiler" >&6; }
  46095. +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  46096. +# Files that config.status was made for.
  46097. +config_files="$ac_config_files"
  46098. +config_headers="$ac_config_headers"
  46099. +config_commands="$ac_config_commands"
  46100. -# Is the header present?
  46101. -{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
  46102. -echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  46103. -cat >conftest.$ac_ext <<_ACEOF
  46104. -/* confdefs.h. */
  46105. _ACEOF
  46106. -cat confdefs.h >>conftest.$ac_ext
  46107. -cat >>conftest.$ac_ext <<_ACEOF
  46108. -/* end confdefs.h. */
  46109. -#include <$ac_header>
  46110. +
  46111. +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  46112. +ac_cs_usage="\
  46113. +\`$as_me' instantiates files and other configuration actions
  46114. +from templates according to the current configuration. Unless the files
  46115. +and actions are specified as TAGs, all are instantiated by default.
  46116. +
  46117. +Usage: $0 [OPTION]... [TAG]...
  46118. +
  46119. + -h, --help print this help, then exit
  46120. + -V, --version print version number and configuration settings, then exit
  46121. + --config print configuration, then exit
  46122. + -q, --quiet, --silent
  46123. + do not print progress messages
  46124. + -d, --debug don't remove temporary files
  46125. + --recheck update $as_me by reconfiguring in the same conditions
  46126. + --file=FILE[:TEMPLATE]
  46127. + instantiate the configuration file FILE
  46128. + --header=FILE[:TEMPLATE]
  46129. + instantiate the configuration header FILE
  46130. +
  46131. +Configuration files:
  46132. +$config_files
  46133. +
  46134. +Configuration headers:
  46135. +$config_headers
  46136. +
  46137. +Configuration commands:
  46138. +$config_commands
  46139. +
  46140. +Report bugs to <nfsv4-wg@citi.umich.edu>."
  46141. +
  46142. _ACEOF
  46143. -if { (ac_try="$ac_cpp conftest.$ac_ext"
  46144. -case "(($ac_try" in
  46145. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  46146. - *) ac_try_echo=$ac_try;;
  46147. -esac
  46148. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  46149. - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  46150. - ac_status=$?
  46151. - grep -v '^ *+' conftest.er1 >conftest.err
  46152. - rm -f conftest.er1
  46153. - cat conftest.err >&5
  46154. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  46155. - (exit $ac_status); } >/dev/null; then
  46156. - if test -s conftest.err; then
  46157. - ac_cpp_err=$ac_c_preproc_warn_flag
  46158. - ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  46159. - else
  46160. - ac_cpp_err=
  46161. - fi
  46162. -else
  46163. - ac_cpp_err=yes
  46164. -fi
  46165. -if test -z "$ac_cpp_err"; then
  46166. - ac_header_preproc=yes
  46167. -else
  46168. - echo "$as_me: failed program was:" >&5
  46169. -sed 's/^/| /' conftest.$ac_ext >&5
  46170. +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  46171. +ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
  46172. +ac_cs_version="\\
  46173. +libgssglue config.status 0.1
  46174. +configured by $0, generated by GNU Autoconf 2.65,
  46175. + with options \\"\$ac_cs_config\\"
  46176. - ac_header_preproc=no
  46177. -fi
  46178. +Copyright (C) 2009 Free Software Foundation, Inc.
  46179. +This config.status script is free software; the Free Software Foundation
  46180. +gives unlimited permission to copy, distribute and modify it."
  46181. -rm -f conftest.err conftest.$ac_ext
  46182. -{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  46183. -echo "${ECHO_T}$ac_header_preproc" >&6; }
  46184. +ac_pwd='$ac_pwd'
  46185. +srcdir='$srcdir'
  46186. +INSTALL='$INSTALL'
  46187. +MKDIR_P='$MKDIR_P'
  46188. +AWK='$AWK'
  46189. +test -n "\$AWK" || AWK=awk
  46190. +_ACEOF
  46191. -# So? What about this header?
  46192. -case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  46193. - yes:no: )
  46194. - { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  46195. -echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  46196. - { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  46197. -echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  46198. - ac_header_preproc=yes
  46199. +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  46200. +# The default lists apply if the user does not specify any file.
  46201. +ac_need_defaults=:
  46202. +while test $# != 0
  46203. +do
  46204. + case $1 in
  46205. + --*=*)
  46206. + ac_option=`expr "X$1" : 'X\([^=]*\)='`
  46207. + ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  46208. + ac_shift=:
  46209. ;;
  46210. - no:yes:* )
  46211. - { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  46212. -echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  46213. - { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  46214. -echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  46215. - { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  46216. -echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  46217. - { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  46218. -echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  46219. - { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  46220. -echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  46221. - { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  46222. -echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  46223. - ( cat <<\_ASBOX
  46224. -## -------------------------------------- ##
  46225. -## Report this to nfsv4-wg@citi.umich.edu ##
  46226. -## -------------------------------------- ##
  46227. -_ASBOX
  46228. - ) | sed "s/^/$as_me: WARNING: /" >&2
  46229. + *)
  46230. + ac_option=$1
  46231. + ac_optarg=$2
  46232. + ac_shift=shift
  46233. ;;
  46234. -esac
  46235. -{ echo "$as_me:$LINENO: checking for $ac_header" >&5
  46236. -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  46237. -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  46238. - echo $ECHO_N "(cached) $ECHO_C" >&6
  46239. -else
  46240. - eval "$as_ac_Header=\$ac_header_preproc"
  46241. -fi
  46242. -ac_res=`eval echo '${'$as_ac_Header'}'`
  46243. - { echo "$as_me:$LINENO: result: $ac_res" >&5
  46244. -echo "${ECHO_T}$ac_res" >&6; }
  46245. + esac
  46246. -fi
  46247. -if test `eval echo '${'$as_ac_Header'}'` = yes; then
  46248. - cat >>confdefs.h <<_ACEOF
  46249. -#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  46250. -_ACEOF
  46251. + case $ac_option in
  46252. + # Handling of the options.
  46253. + -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  46254. + ac_cs_recheck=: ;;
  46255. + --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  46256. + $as_echo "$ac_cs_version"; exit ;;
  46257. + --config | --confi | --conf | --con | --co | --c )
  46258. + $as_echo "$ac_cs_config"; exit ;;
  46259. + --debug | --debu | --deb | --de | --d | -d )
  46260. + debug=: ;;
  46261. + --file | --fil | --fi | --f )
  46262. + $ac_shift
  46263. + case $ac_optarg in
  46264. + *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  46265. + esac
  46266. + as_fn_append CONFIG_FILES " '$ac_optarg'"
  46267. + ac_need_defaults=false;;
  46268. + --header | --heade | --head | --hea )
  46269. + $ac_shift
  46270. + case $ac_optarg in
  46271. + *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  46272. + esac
  46273. + as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  46274. + ac_need_defaults=false;;
  46275. + --he | --h)
  46276. + # Conflict between --help and --header
  46277. + as_fn_error "ambiguous option: \`$1'
  46278. +Try \`$0 --help' for more information.";;
  46279. + --help | --hel | -h )
  46280. + $as_echo "$ac_cs_usage"; exit ;;
  46281. + -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  46282. + | -silent | --silent | --silen | --sile | --sil | --si | --s)
  46283. + ac_cs_silent=: ;;
  46284. -fi
  46285. + # This is an error.
  46286. + -*) as_fn_error "unrecognized option: \`$1'
  46287. +Try \`$0 --help' for more information." ;;
  46288. +
  46289. + *) as_fn_append ac_config_targets " $1"
  46290. + ac_need_defaults=false ;;
  46291. + esac
  46292. + shift
  46293. done
  46294. -{ echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
  46295. -echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6; }
  46296. -if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
  46297. - echo $ECHO_N "(cached) $ECHO_C" >&6
  46298. -else
  46299. - if test "$cross_compiling" = yes; then
  46300. - ac_cv_func_malloc_0_nonnull=no
  46301. -else
  46302. - cat >conftest.$ac_ext <<_ACEOF
  46303. -/* confdefs.h. */
  46304. +ac_configure_extra_args=
  46305. +
  46306. +if $ac_cs_silent; then
  46307. + exec 6>/dev/null
  46308. + ac_configure_extra_args="$ac_configure_extra_args --silent"
  46309. +fi
  46310. +
  46311. _ACEOF
  46312. -cat confdefs.h >>conftest.$ac_ext
  46313. -cat >>conftest.$ac_ext <<_ACEOF
  46314. -/* end confdefs.h. */
  46315. -#if STDC_HEADERS || HAVE_STDLIB_H
  46316. -# include <stdlib.h>
  46317. -#else
  46318. -char *malloc ();
  46319. -#endif
  46320. +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  46321. +if \$ac_cs_recheck; then
  46322. + set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  46323. + shift
  46324. + \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  46325. + CONFIG_SHELL='$SHELL'
  46326. + export CONFIG_SHELL
  46327. + exec "\$@"
  46328. +fi
  46329. -int
  46330. -main ()
  46331. +_ACEOF
  46332. +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  46333. +exec 5>>config.log
  46334. {
  46335. -return ! malloc (0);
  46336. - ;
  46337. - return 0;
  46338. -}
  46339. + echo
  46340. + sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  46341. +## Running $as_me. ##
  46342. +_ASBOX
  46343. + $as_echo "$ac_log"
  46344. +} >&5
  46345. +
  46346. _ACEOF
  46347. -rm -f conftest$ac_exeext
  46348. -if { (ac_try="$ac_link"
  46349. -case "(($ac_try" in
  46350. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  46351. - *) ac_try_echo=$ac_try;;
  46352. -esac
  46353. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  46354. - (eval "$ac_link") 2>&5
  46355. - ac_status=$?
  46356. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  46357. - (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  46358. - { (case "(($ac_try" in
  46359. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  46360. - *) ac_try_echo=$ac_try;;
  46361. +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  46362. +#
  46363. +# INIT-COMMANDS
  46364. +#
  46365. +AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
  46366. +
  46367. +
  46368. +# The HP-UX ksh and POSIX shell print the target directory to stdout
  46369. +# if CDPATH is set.
  46370. +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  46371. +
  46372. +sed_quote_subst='$sed_quote_subst'
  46373. +double_quote_subst='$double_quote_subst'
  46374. +delay_variable_subst='$delay_variable_subst'
  46375. +macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
  46376. +macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
  46377. +enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
  46378. +enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
  46379. +pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
  46380. +enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
  46381. +host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
  46382. +host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
  46383. +host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
  46384. +build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
  46385. +build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
  46386. +build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
  46387. +SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
  46388. +Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
  46389. +GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
  46390. +EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
  46391. +FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
  46392. +LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
  46393. +NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
  46394. +LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
  46395. +max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
  46396. +ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
  46397. +exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
  46398. +lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
  46399. +lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
  46400. +lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
  46401. +reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
  46402. +reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  46403. +OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
  46404. +deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
  46405. +file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
  46406. +AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
  46407. +AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
  46408. +STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
  46409. +RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
  46410. +old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  46411. +old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  46412. +old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  46413. +CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
  46414. +CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
  46415. +compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
  46416. +GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
  46417. +lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
  46418. +lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
  46419. +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"`'
  46420. +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"`'
  46421. +objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
  46422. +SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
  46423. +ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
  46424. +MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
  46425. +lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
  46426. +lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
  46427. +lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
  46428. +lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
  46429. +lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
  46430. +need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
  46431. +DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
  46432. +NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
  46433. +LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
  46434. +OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
  46435. +OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
  46436. +libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
  46437. +shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  46438. +extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  46439. +archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
  46440. +enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
  46441. +export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
  46442. +whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
  46443. +compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
  46444. +old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  46445. +old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  46446. +archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  46447. +archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  46448. +module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  46449. +module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  46450. +with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
  46451. +allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
  46452. +no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
  46453. +hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
  46454. +hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
  46455. +hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
  46456. +hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
  46457. +hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
  46458. +hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
  46459. +hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
  46460. +hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
  46461. +inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
  46462. +link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
  46463. +fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
  46464. +always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
  46465. +export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  46466. +exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
  46467. +include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
  46468. +prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  46469. +file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
  46470. +variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
  46471. +need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
  46472. +need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
  46473. +version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
  46474. +runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
  46475. +shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
  46476. +shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
  46477. +libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
  46478. +library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
  46479. +soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
  46480. +postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  46481. +postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  46482. +finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  46483. +finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
  46484. +hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
  46485. +sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
  46486. +sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
  46487. +hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
  46488. +enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
  46489. +enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
  46490. +enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
  46491. +old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
  46492. +striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
  46493. +
  46494. +LTCC='$LTCC'
  46495. +LTCFLAGS='$LTCFLAGS'
  46496. +compiler='$compiler_DEFAULT'
  46497. +
  46498. +# Quote evaled strings.
  46499. +for var in SED \
  46500. +GREP \
  46501. +EGREP \
  46502. +FGREP \
  46503. +LD \
  46504. +NM \
  46505. +LN_S \
  46506. +lt_SP2NL \
  46507. +lt_NL2SP \
  46508. +reload_flag \
  46509. +OBJDUMP \
  46510. +deplibs_check_method \
  46511. +file_magic_cmd \
  46512. +AR \
  46513. +AR_FLAGS \
  46514. +STRIP \
  46515. +RANLIB \
  46516. +CC \
  46517. +CFLAGS \
  46518. +compiler \
  46519. +lt_cv_sys_global_symbol_pipe \
  46520. +lt_cv_sys_global_symbol_to_cdecl \
  46521. +lt_cv_sys_global_symbol_to_c_name_address \
  46522. +lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
  46523. +SHELL \
  46524. +ECHO \
  46525. +lt_prog_compiler_no_builtin_flag \
  46526. +lt_prog_compiler_wl \
  46527. +lt_prog_compiler_pic \
  46528. +lt_prog_compiler_static \
  46529. +lt_cv_prog_compiler_c_o \
  46530. +need_locks \
  46531. +DSYMUTIL \
  46532. +NMEDIT \
  46533. +LIPO \
  46534. +OTOOL \
  46535. +OTOOL64 \
  46536. +shrext_cmds \
  46537. +export_dynamic_flag_spec \
  46538. +whole_archive_flag_spec \
  46539. +compiler_needs_object \
  46540. +with_gnu_ld \
  46541. +allow_undefined_flag \
  46542. +no_undefined_flag \
  46543. +hardcode_libdir_flag_spec \
  46544. +hardcode_libdir_flag_spec_ld \
  46545. +hardcode_libdir_separator \
  46546. +fix_srcfile_path \
  46547. +exclude_expsyms \
  46548. +include_expsyms \
  46549. +file_list_spec \
  46550. +variables_saved_for_relink \
  46551. +libname_spec \
  46552. +library_names_spec \
  46553. +soname_spec \
  46554. +finish_eval \
  46555. +old_striplib \
  46556. +striplib; do
  46557. + case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
  46558. + *[\\\\\\\`\\"\\\$]*)
  46559. + eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
  46560. + ;;
  46561. + *)
  46562. + eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  46563. + ;;
  46564. + esac
  46565. +done
  46566. +
  46567. +# Double-quote double-evaled strings.
  46568. +for var in reload_cmds \
  46569. +old_postinstall_cmds \
  46570. +old_postuninstall_cmds \
  46571. +old_archive_cmds \
  46572. +extract_expsyms_cmds \
  46573. +old_archive_from_new_cmds \
  46574. +old_archive_from_expsyms_cmds \
  46575. +archive_cmds \
  46576. +archive_expsym_cmds \
  46577. +module_cmds \
  46578. +module_expsym_cmds \
  46579. +export_symbols_cmds \
  46580. +prelink_cmds \
  46581. +postinstall_cmds \
  46582. +postuninstall_cmds \
  46583. +finish_cmds \
  46584. +sys_lib_search_path_spec \
  46585. +sys_lib_dlsearch_path_spec; do
  46586. + case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
  46587. + *[\\\\\\\`\\"\\\$]*)
  46588. + eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
  46589. + ;;
  46590. + *)
  46591. + eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  46592. + ;;
  46593. + esac
  46594. +done
  46595. +
  46596. +# Fix-up fallback echo if it was mangled by the above quoting rules.
  46597. +case \$lt_ECHO in
  46598. +*'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
  46599. + ;;
  46600. esac
  46601. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  46602. - (eval "$ac_try") 2>&5
  46603. - ac_status=$?
  46604. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  46605. - (exit $ac_status); }; }; then
  46606. - ac_cv_func_malloc_0_nonnull=yes
  46607. -else
  46608. - echo "$as_me: program exited with status $ac_status" >&5
  46609. -echo "$as_me: failed program was:" >&5
  46610. -sed 's/^/| /' conftest.$ac_ext >&5
  46611. -( exit $ac_status )
  46612. -ac_cv_func_malloc_0_nonnull=no
  46613. -fi
  46614. -rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  46615. -fi
  46616. +ac_aux_dir='$ac_aux_dir'
  46617. +xsi_shell='$xsi_shell'
  46618. +lt_shell_append='$lt_shell_append'
  46619. +
  46620. +# See if we are running on zsh, and set the options which allow our
  46621. +# commands through without removal of \ escapes INIT.
  46622. +if test -n "\${ZSH_VERSION+set}" ; then
  46623. + setopt NO_GLOB_SUBST
  46624. +fi
  46625. +
  46626. +
  46627. + PACKAGE='$PACKAGE'
  46628. + VERSION='$VERSION'
  46629. + TIMESTAMP='$TIMESTAMP'
  46630. + RM='$RM'
  46631. + ofile='$ofile'
  46632. +
  46633. +
  46634. +
  46635. +
  46636. +_ACEOF
  46637. +
  46638. +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  46639. +
  46640. +# Handling of arguments.
  46641. +for ac_config_target in $ac_config_targets
  46642. +do
  46643. + case $ac_config_target in
  46644. + "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  46645. + "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
  46646. + "src/gssglue/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/gssglue/config.h" ;;
  46647. + "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  46648. + "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
  46649. + "libgssglue.pc") CONFIG_FILES="$CONFIG_FILES libgssglue.pc" ;;
  46650. +
  46651. + *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  46652. + esac
  46653. +done
  46654. +# If the user did not use the arguments to specify the items to instantiate,
  46655. +# then the envvar interface is used. Set only those that are not.
  46656. +# We use the long form for the default assignment because of an extremely
  46657. +# bizarre bug on SunOS 4.1.3.
  46658. +if $ac_need_defaults; then
  46659. + test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  46660. + test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  46661. + test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  46662. fi
  46663. -{ echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
  46664. -echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6; }
  46665. -if test $ac_cv_func_malloc_0_nonnull = yes; then
  46666. -
  46667. -cat >>confdefs.h <<\_ACEOF
  46668. -#define HAVE_MALLOC 1
  46669. -_ACEOF
  46670. -else
  46671. - cat >>confdefs.h <<\_ACEOF
  46672. -#define HAVE_MALLOC 0
  46673. -_ACEOF
  46674. +# Have a temporary directory for convenience. Make it in the build tree
  46675. +# simply because there is no reason against having it here, and in addition,
  46676. +# creating and moving files from /tmp can sometimes cause problems.
  46677. +# Hook for its removal unless debugging.
  46678. +# Note that there is a small window in which the directory will not be cleaned:
  46679. +# after its creation but before its name has been assigned to `$tmp'.
  46680. +$debug ||
  46681. +{
  46682. + tmp=
  46683. + trap 'exit_status=$?
  46684. + { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
  46685. +' 0
  46686. + trap 'as_fn_exit 1' 1 2 13 15
  46687. +}
  46688. +# Create a (secure) tmp directory for tmp files.
  46689. - case " $LIBOBJS " in
  46690. - *" malloc.$ac_objext "* ) ;;
  46691. - *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
  46692. - ;;
  46693. -esac
  46694. +{
  46695. + tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  46696. + test -n "$tmp" && test -d "$tmp"
  46697. +} ||
  46698. +{
  46699. + tmp=./conf$$-$RANDOM
  46700. + (umask 077 && mkdir "$tmp")
  46701. +} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
  46702. +# Set up the scripts for CONFIG_FILES section.
  46703. +# No need to generate them if there are no CONFIG_FILES.
  46704. +# This happens for instance with `./config.status config.h'.
  46705. +if test -n "$CONFIG_FILES"; then
  46706. -cat >>confdefs.h <<\_ACEOF
  46707. -#define malloc rpl_malloc
  46708. -_ACEOF
  46709. +ac_cr=`echo X | tr X '\015'`
  46710. +# On cygwin, bash can eat \r inside `` if the user requested igncr.
  46711. +# But we know of no other shell where ac_cr would be empty at this
  46712. +# point, so we can use a bashism as a fallback.
  46713. +if test "x$ac_cr" = x; then
  46714. + eval ac_cr=\$\'\\r\'
  46715. +fi
  46716. +ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  46717. +if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  46718. + ac_cs_awk_cr='\r'
  46719. +else
  46720. + ac_cs_awk_cr=$ac_cr
  46721. fi
  46722. +echo 'BEGIN {' >"$tmp/subs1.awk" &&
  46723. +_ACEOF
  46724. -{ echo "$as_me:$LINENO: checking for working memcmp" >&5
  46725. -echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6; }
  46726. -if test "${ac_cv_func_memcmp_working+set}" = set; then
  46727. - echo $ECHO_N "(cached) $ECHO_C" >&6
  46728. -else
  46729. - if test "$cross_compiling" = yes; then
  46730. - ac_cv_func_memcmp_working=no
  46731. -else
  46732. - cat >conftest.$ac_ext <<_ACEOF
  46733. -/* confdefs.h. */
  46734. -_ACEOF
  46735. -cat confdefs.h >>conftest.$ac_ext
  46736. -cat >>conftest.$ac_ext <<_ACEOF
  46737. -/* end confdefs.h. */
  46738. -$ac_includes_default
  46739. -int
  46740. -main ()
  46741. {
  46742. + echo "cat >conf$$subs.awk <<_ACEOF" &&
  46743. + echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  46744. + echo "_ACEOF"
  46745. +} >conf$$subs.sh ||
  46746. + as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
  46747. +ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
  46748. +ac_delim='%!_!# '
  46749. +for ac_last_try in false false false false false :; do
  46750. + . ./conf$$subs.sh ||
  46751. + as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
  46752. - /* Some versions of memcmp are not 8-bit clean. */
  46753. - char c0 = '\100', c1 = '\200', c2 = '\201';
  46754. - if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
  46755. - return 1;
  46756. + ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  46757. + if test $ac_delim_n = $ac_delim_num; then
  46758. + break
  46759. + elif $ac_last_try; then
  46760. + as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
  46761. + else
  46762. + ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  46763. + fi
  46764. +done
  46765. +rm -f conf$$subs.sh
  46766. - /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
  46767. - or more and with at least one buffer not starting on a 4-byte boundary.
  46768. - William Lewis provided this test program. */
  46769. - {
  46770. - char foo[21];
  46771. - char bar[21];
  46772. - int i;
  46773. - for (i = 0; i < 4; i++)
  46774. - {
  46775. - char *a = foo + i;
  46776. - char *b = bar + i;
  46777. - strcpy (a, "--------01111111");
  46778. - strcpy (b, "--------10000000");
  46779. - if (memcmp (a, b, 16) >= 0)
  46780. - return 1;
  46781. - }
  46782. - return 0;
  46783. +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  46784. +cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
  46785. +_ACEOF
  46786. +sed -n '
  46787. +h
  46788. +s/^/S["/; s/!.*/"]=/
  46789. +p
  46790. +g
  46791. +s/^[^!]*!//
  46792. +:repl
  46793. +t repl
  46794. +s/'"$ac_delim"'$//
  46795. +t delim
  46796. +:nl
  46797. +h
  46798. +s/\(.\{148\}\)..*/\1/
  46799. +t more1
  46800. +s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  46801. +p
  46802. +n
  46803. +b repl
  46804. +:more1
  46805. +s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  46806. +p
  46807. +g
  46808. +s/.\{148\}//
  46809. +t nl
  46810. +:delim
  46811. +h
  46812. +s/\(.\{148\}\)..*/\1/
  46813. +t more2
  46814. +s/["\\]/\\&/g; s/^/"/; s/$/"/
  46815. +p
  46816. +b
  46817. +:more2
  46818. +s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  46819. +p
  46820. +g
  46821. +s/.\{148\}//
  46822. +t delim
  46823. +' <conf$$subs.awk | sed '
  46824. +/^[^""]/{
  46825. + N
  46826. + s/\n//
  46827. +}
  46828. +' >>$CONFIG_STATUS || ac_write_fail=1
  46829. +rm -f conf$$subs.awk
  46830. +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  46831. +_ACAWK
  46832. +cat >>"\$tmp/subs1.awk" <<_ACAWK &&
  46833. + for (key in S) S_is_set[key] = 1
  46834. + FS = ""
  46835. +
  46836. +}
  46837. +{
  46838. + line = $ 0
  46839. + nfields = split(line, field, "@")
  46840. + substed = 0
  46841. + len = length(field[1])
  46842. + for (i = 2; i < nfields; i++) {
  46843. + key = field[i]
  46844. + keylen = length(key)
  46845. + if (S_is_set[key]) {
  46846. + value = S[key]
  46847. + line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  46848. + len += length(value) + length(field[++i])
  46849. + substed = 1
  46850. + } else
  46851. + len += 1 + keylen
  46852. }
  46853. - ;
  46854. - return 0;
  46855. + print line
  46856. }
  46857. +
  46858. +_ACAWK
  46859. _ACEOF
  46860. -rm -f conftest$ac_exeext
  46861. -if { (ac_try="$ac_link"
  46862. -case "(($ac_try" in
  46863. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  46864. - *) ac_try_echo=$ac_try;;
  46865. -esac
  46866. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  46867. - (eval "$ac_link") 2>&5
  46868. - ac_status=$?
  46869. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  46870. - (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  46871. - { (case "(($ac_try" in
  46872. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  46873. - *) ac_try_echo=$ac_try;;
  46874. -esac
  46875. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  46876. - (eval "$ac_try") 2>&5
  46877. - ac_status=$?
  46878. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  46879. - (exit $ac_status); }; }; then
  46880. - ac_cv_func_memcmp_working=yes
  46881. +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  46882. +if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  46883. + sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  46884. else
  46885. - echo "$as_me: program exited with status $ac_status" >&5
  46886. -echo "$as_me: failed program was:" >&5
  46887. -sed 's/^/| /' conftest.$ac_ext >&5
  46888. + cat
  46889. +fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
  46890. + || as_fn_error "could not setup config files machinery" "$LINENO" 5
  46891. +_ACEOF
  46892. -( exit $ac_status )
  46893. -ac_cv_func_memcmp_working=no
  46894. -fi
  46895. -rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  46896. +# VPATH may cause trouble with some makes, so we remove $(srcdir),
  46897. +# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
  46898. +# trailing colons and then remove the whole line if VPATH becomes empty
  46899. +# (actually we leave an empty line to preserve line numbers).
  46900. +if test "x$srcdir" = x.; then
  46901. + ac_vpsub='/^[ ]*VPATH[ ]*=/{
  46902. +s/:*\$(srcdir):*/:/
  46903. +s/:*\${srcdir}:*/:/
  46904. +s/:*@srcdir@:*/:/
  46905. +s/^\([^=]*=[ ]*\):*/\1/
  46906. +s/:*$//
  46907. +s/^[^=]*=[ ]*$//
  46908. +}'
  46909. fi
  46910. +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  46911. +fi # test -n "$CONFIG_FILES"
  46912. -fi
  46913. -{ echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
  46914. -echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6; }
  46915. -test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
  46916. - *" memcmp.$ac_objext "* ) ;;
  46917. - *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
  46918. - ;;
  46919. -esac
  46920. +# Set up the scripts for CONFIG_HEADERS section.
  46921. +# No need to generate them if there are no CONFIG_HEADERS.
  46922. +# This happens for instance with `./config.status Makefile'.
  46923. +if test -n "$CONFIG_HEADERS"; then
  46924. +cat >"$tmp/defines.awk" <<\_ACAWK ||
  46925. +BEGIN {
  46926. +_ACEOF
  46927. +# Transform confdefs.h into an awk script `defines.awk', embedded as
  46928. +# here-document in config.status, that substitutes the proper values into
  46929. +# config.h.in to produce config.h.
  46930. +# Create a delimiter string that does not exist in confdefs.h, to ease
  46931. +# handling of long lines.
  46932. +ac_delim='%!_!# '
  46933. +for ac_last_try in false false :; do
  46934. + ac_t=`sed -n "/$ac_delim/p" confdefs.h`
  46935. + if test -z "$ac_t"; then
  46936. + break
  46937. + elif $ac_last_try; then
  46938. + as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
  46939. + else
  46940. + ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  46941. + fi
  46942. +done
  46943. -for ac_header in stdlib.h
  46944. -do
  46945. -as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  46946. -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  46947. - { echo "$as_me:$LINENO: checking for $ac_header" >&5
  46948. -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  46949. -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  46950. - echo $ECHO_N "(cached) $ECHO_C" >&6
  46951. -fi
  46952. -ac_res=`eval echo '${'$as_ac_Header'}'`
  46953. - { echo "$as_me:$LINENO: result: $ac_res" >&5
  46954. -echo "${ECHO_T}$ac_res" >&6; }
  46955. -else
  46956. - # Is the header compilable?
  46957. -{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
  46958. -echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  46959. -cat >conftest.$ac_ext <<_ACEOF
  46960. -/* confdefs.h. */
  46961. -_ACEOF
  46962. -cat confdefs.h >>conftest.$ac_ext
  46963. -cat >>conftest.$ac_ext <<_ACEOF
  46964. -/* end confdefs.h. */
  46965. -$ac_includes_default
  46966. -#include <$ac_header>
  46967. +# For the awk script, D is an array of macro values keyed by name,
  46968. +# likewise P contains macro parameters if any. Preserve backslash
  46969. +# newline sequences.
  46970. +
  46971. +ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  46972. +sed -n '
  46973. +s/.\{148\}/&'"$ac_delim"'/g
  46974. +t rset
  46975. +:rset
  46976. +s/^[ ]*#[ ]*define[ ][ ]*/ /
  46977. +t def
  46978. +d
  46979. +:def
  46980. +s/\\$//
  46981. +t bsnl
  46982. +s/["\\]/\\&/g
  46983. +s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  46984. +D["\1"]=" \3"/p
  46985. +s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  46986. +d
  46987. +:bsnl
  46988. +s/["\\]/\\&/g
  46989. +s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  46990. +D["\1"]=" \3\\\\\\n"\\/p
  46991. +t cont
  46992. +s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  46993. +t cont
  46994. +d
  46995. +:cont
  46996. +n
  46997. +s/.\{148\}/&'"$ac_delim"'/g
  46998. +t clear
  46999. +:clear
  47000. +s/\\$//
  47001. +t bsnlc
  47002. +s/["\\]/\\&/g; s/^/"/; s/$/"/p
  47003. +d
  47004. +:bsnlc
  47005. +s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  47006. +b cont
  47007. +' <confdefs.h | sed '
  47008. +s/'"$ac_delim"'/"\\\
  47009. +"/g' >>$CONFIG_STATUS || ac_write_fail=1
  47010. +
  47011. +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  47012. + for (key in D) D_is_set[key] = 1
  47013. + FS = ""
  47014. +}
  47015. +/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  47016. + line = \$ 0
  47017. + split(line, arg, " ")
  47018. + if (arg[1] == "#") {
  47019. + defundef = arg[2]
  47020. + mac1 = arg[3]
  47021. + } else {
  47022. + defundef = substr(arg[1], 2)
  47023. + mac1 = arg[2]
  47024. + }
  47025. + split(mac1, mac2, "(") #)
  47026. + macro = mac2[1]
  47027. + prefix = substr(line, 1, index(line, defundef) - 1)
  47028. + if (D_is_set[macro]) {
  47029. + # Preserve the white space surrounding the "#".
  47030. + print prefix "define", macro P[macro] D[macro]
  47031. + next
  47032. + } else {
  47033. + # Replace #undef with comments. This is necessary, for example,
  47034. + # in the case of _POSIX_SOURCE, which is predefined and required
  47035. + # on some systems where configure will not decide to define it.
  47036. + if (defundef == "undef") {
  47037. + print "/*", prefix defundef, macro, "*/"
  47038. + next
  47039. + }
  47040. + }
  47041. +}
  47042. +{ print }
  47043. +_ACAWK
  47044. _ACEOF
  47045. -rm -f conftest.$ac_objext
  47046. -if { (ac_try="$ac_compile"
  47047. -case "(($ac_try" in
  47048. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  47049. - *) ac_try_echo=$ac_try;;
  47050. -esac
  47051. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  47052. - (eval "$ac_compile") 2>conftest.er1
  47053. - ac_status=$?
  47054. - grep -v '^ *+' conftest.er1 >conftest.err
  47055. - rm -f conftest.er1
  47056. - cat conftest.err >&5
  47057. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  47058. - (exit $ac_status); } &&
  47059. - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  47060. - { (case "(($ac_try" in
  47061. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  47062. - *) ac_try_echo=$ac_try;;
  47063. -esac
  47064. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  47065. - (eval "$ac_try") 2>&5
  47066. - ac_status=$?
  47067. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  47068. - (exit $ac_status); }; } &&
  47069. - { ac_try='test -s conftest.$ac_objext'
  47070. - { (case "(($ac_try" in
  47071. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  47072. - *) ac_try_echo=$ac_try;;
  47073. -esac
  47074. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  47075. - (eval "$ac_try") 2>&5
  47076. - ac_status=$?
  47077. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  47078. - (exit $ac_status); }; }; then
  47079. - ac_header_compiler=yes
  47080. -else
  47081. - echo "$as_me: failed program was:" >&5
  47082. -sed 's/^/| /' conftest.$ac_ext >&5
  47083. +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  47084. + as_fn_error "could not setup config headers machinery" "$LINENO" 5
  47085. +fi # test -n "$CONFIG_HEADERS"
  47086. - ac_header_compiler=no
  47087. -fi
  47088. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  47089. -{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  47090. -echo "${ECHO_T}$ac_header_compiler" >&6; }
  47091. +eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
  47092. +shift
  47093. +for ac_tag
  47094. +do
  47095. + case $ac_tag in
  47096. + :[FHLC]) ac_mode=$ac_tag; continue;;
  47097. + esac
  47098. + case $ac_mode$ac_tag in
  47099. + :[FHL]*:*);;
  47100. + :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
  47101. + :[FH]-) ac_tag=-:-;;
  47102. + :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  47103. + esac
  47104. + ac_save_IFS=$IFS
  47105. + IFS=:
  47106. + set x $ac_tag
  47107. + IFS=$ac_save_IFS
  47108. + shift
  47109. + ac_file=$1
  47110. + shift
  47111. -# Is the header present?
  47112. -{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
  47113. -echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  47114. -cat >conftest.$ac_ext <<_ACEOF
  47115. -/* confdefs.h. */
  47116. -_ACEOF
  47117. -cat confdefs.h >>conftest.$ac_ext
  47118. -cat >>conftest.$ac_ext <<_ACEOF
  47119. -/* end confdefs.h. */
  47120. -#include <$ac_header>
  47121. -_ACEOF
  47122. -if { (ac_try="$ac_cpp conftest.$ac_ext"
  47123. -case "(($ac_try" in
  47124. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  47125. - *) ac_try_echo=$ac_try;;
  47126. -esac
  47127. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  47128. - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  47129. - ac_status=$?
  47130. - grep -v '^ *+' conftest.er1 >conftest.err
  47131. - rm -f conftest.er1
  47132. - cat conftest.err >&5
  47133. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  47134. - (exit $ac_status); } >/dev/null; then
  47135. - if test -s conftest.err; then
  47136. - ac_cpp_err=$ac_c_preproc_warn_flag
  47137. - ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  47138. - else
  47139. - ac_cpp_err=
  47140. - fi
  47141. -else
  47142. - ac_cpp_err=yes
  47143. -fi
  47144. -if test -z "$ac_cpp_err"; then
  47145. - ac_header_preproc=yes
  47146. -else
  47147. - echo "$as_me: failed program was:" >&5
  47148. -sed 's/^/| /' conftest.$ac_ext >&5
  47149. + case $ac_mode in
  47150. + :L) ac_source=$1;;
  47151. + :[FH])
  47152. + ac_file_inputs=
  47153. + for ac_f
  47154. + do
  47155. + case $ac_f in
  47156. + -) ac_f="$tmp/stdin";;
  47157. + *) # Look for the file first in the build tree, then in the source tree
  47158. + # (if the path is not absolute). The absolute path cannot be DOS-style,
  47159. + # because $ac_f cannot contain `:'.
  47160. + test -f "$ac_f" ||
  47161. + case $ac_f in
  47162. + [\\/$]*) false;;
  47163. + *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  47164. + esac ||
  47165. + as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  47166. + esac
  47167. + case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  47168. + as_fn_append ac_file_inputs " '$ac_f'"
  47169. + done
  47170. - ac_header_preproc=no
  47171. -fi
  47172. + # Let's still pretend it is `configure' which instantiates (i.e., don't
  47173. + # use $as_me), people would be surprised to read:
  47174. + # /* config.h. Generated by config.status. */
  47175. + configure_input='Generated from '`
  47176. + $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  47177. + `' by configure.'
  47178. + if test x"$ac_file" != x-; then
  47179. + configure_input="$ac_file. $configure_input"
  47180. + { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  47181. +$as_echo "$as_me: creating $ac_file" >&6;}
  47182. + fi
  47183. + # Neutralize special characters interpreted by sed in replacement strings.
  47184. + case $configure_input in #(
  47185. + *\&* | *\|* | *\\* )
  47186. + ac_sed_conf_input=`$as_echo "$configure_input" |
  47187. + sed 's/[\\\\&|]/\\\\&/g'`;; #(
  47188. + *) ac_sed_conf_input=$configure_input;;
  47189. + esac
  47190. -rm -f conftest.err conftest.$ac_ext
  47191. -{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  47192. -echo "${ECHO_T}$ac_header_preproc" >&6; }
  47193. + case $ac_tag in
  47194. + *:-:* | *:-) cat >"$tmp/stdin" \
  47195. + || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
  47196. + esac
  47197. + ;;
  47198. + esac
  47199. +
  47200. + ac_dir=`$as_dirname -- "$ac_file" ||
  47201. +$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  47202. + X"$ac_file" : 'X\(//\)[^/]' \| \
  47203. + X"$ac_file" : 'X\(//\)$' \| \
  47204. + X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  47205. +$as_echo X"$ac_file" |
  47206. + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  47207. + s//\1/
  47208. + q
  47209. + }
  47210. + /^X\(\/\/\)[^/].*/{
  47211. + s//\1/
  47212. + q
  47213. + }
  47214. + /^X\(\/\/\)$/{
  47215. + s//\1/
  47216. + q
  47217. + }
  47218. + /^X\(\/\).*/{
  47219. + s//\1/
  47220. + q
  47221. + }
  47222. + s/.*/./; q'`
  47223. + as_dir="$ac_dir"; as_fn_mkdir_p
  47224. + ac_builddir=.
  47225. -# So? What about this header?
  47226. -case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  47227. - yes:no: )
  47228. - { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  47229. -echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  47230. - { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  47231. -echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  47232. - ac_header_preproc=yes
  47233. - ;;
  47234. - no:yes:* )
  47235. - { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  47236. -echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  47237. - { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  47238. -echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  47239. - { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  47240. -echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  47241. - { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  47242. -echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  47243. - { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  47244. -echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  47245. - { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  47246. -echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  47247. - ( cat <<\_ASBOX
  47248. -## -------------------------------------- ##
  47249. -## Report this to nfsv4-wg@citi.umich.edu ##
  47250. -## -------------------------------------- ##
  47251. -_ASBOX
  47252. - ) | sed "s/^/$as_me: WARNING: /" >&2
  47253. - ;;
  47254. +case "$ac_dir" in
  47255. +.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  47256. +*)
  47257. + ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  47258. + # A ".." for each directory in $ac_dir_suffix.
  47259. + ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  47260. + case $ac_top_builddir_sub in
  47261. + "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  47262. + *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  47263. + esac ;;
  47264. esac
  47265. -{ echo "$as_me:$LINENO: checking for $ac_header" >&5
  47266. -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  47267. -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  47268. - echo $ECHO_N "(cached) $ECHO_C" >&6
  47269. -else
  47270. - eval "$as_ac_Header=\$ac_header_preproc"
  47271. -fi
  47272. -ac_res=`eval echo '${'$as_ac_Header'}'`
  47273. - { echo "$as_me:$LINENO: result: $ac_res" >&5
  47274. -echo "${ECHO_T}$ac_res" >&6; }
  47275. +ac_abs_top_builddir=$ac_pwd
  47276. +ac_abs_builddir=$ac_pwd$ac_dir_suffix
  47277. +# for backward compatibility:
  47278. +ac_top_builddir=$ac_top_build_prefix
  47279. -fi
  47280. -if test `eval echo '${'$as_ac_Header'}'` = yes; then
  47281. - cat >>confdefs.h <<_ACEOF
  47282. -#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  47283. -_ACEOF
  47284. +case $srcdir in
  47285. + .) # We are building in place.
  47286. + ac_srcdir=.
  47287. + ac_top_srcdir=$ac_top_builddir_sub
  47288. + ac_abs_top_srcdir=$ac_pwd ;;
  47289. + [\\/]* | ?:[\\/]* ) # Absolute name.
  47290. + ac_srcdir=$srcdir$ac_dir_suffix;
  47291. + ac_top_srcdir=$srcdir
  47292. + ac_abs_top_srcdir=$srcdir ;;
  47293. + *) # Relative name.
  47294. + ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  47295. + ac_top_srcdir=$ac_top_build_prefix$srcdir
  47296. + ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  47297. +esac
  47298. +ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  47299. -fi
  47300. -done
  47301. + case $ac_mode in
  47302. + :F)
  47303. + #
  47304. + # CONFIG_FILE
  47305. + #
  47306. -{ echo "$as_me:$LINENO: checking for GNU libc compatible realloc" >&5
  47307. -echo $ECHO_N "checking for GNU libc compatible realloc... $ECHO_C" >&6; }
  47308. -if test "${ac_cv_func_realloc_0_nonnull+set}" = set; then
  47309. - echo $ECHO_N "(cached) $ECHO_C" >&6
  47310. -else
  47311. - if test "$cross_compiling" = yes; then
  47312. - ac_cv_func_realloc_0_nonnull=no
  47313. -else
  47314. - cat >conftest.$ac_ext <<_ACEOF
  47315. -/* confdefs.h. */
  47316. + case $INSTALL in
  47317. + [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  47318. + *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  47319. + esac
  47320. + ac_MKDIR_P=$MKDIR_P
  47321. + case $MKDIR_P in
  47322. + [\\/$]* | ?:[\\/]* ) ;;
  47323. + */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
  47324. + esac
  47325. _ACEOF
  47326. -cat confdefs.h >>conftest.$ac_ext
  47327. -cat >>conftest.$ac_ext <<_ACEOF
  47328. -/* end confdefs.h. */
  47329. -#if STDC_HEADERS || HAVE_STDLIB_H
  47330. -# include <stdlib.h>
  47331. -#else
  47332. -char *realloc ();
  47333. -#endif
  47334. -int
  47335. -main ()
  47336. -{
  47337. -return ! realloc (0, 0);
  47338. - ;
  47339. - return 0;
  47340. +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  47341. +# If the template does not know about datarootdir, expand it.
  47342. +# FIXME: This hack should be removed a few years after 2.60.
  47343. +ac_datarootdir_hack=; ac_datarootdir_seen=
  47344. +ac_sed_dataroot='
  47345. +/datarootdir/ {
  47346. + p
  47347. + q
  47348. }
  47349. +/@datadir@/p
  47350. +/@docdir@/p
  47351. +/@infodir@/p
  47352. +/@localedir@/p
  47353. +/@mandir@/p'
  47354. +case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  47355. +*datarootdir*) ac_datarootdir_seen=yes;;
  47356. +*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  47357. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  47358. +$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  47359. _ACEOF
  47360. -rm -f conftest$ac_exeext
  47361. -if { (ac_try="$ac_link"
  47362. -case "(($ac_try" in
  47363. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  47364. - *) ac_try_echo=$ac_try;;
  47365. -esac
  47366. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  47367. - (eval "$ac_link") 2>&5
  47368. - ac_status=$?
  47369. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  47370. - (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  47371. - { (case "(($ac_try" in
  47372. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  47373. - *) ac_try_echo=$ac_try;;
  47374. +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  47375. + ac_datarootdir_hack='
  47376. + s&@datadir@&$datadir&g
  47377. + s&@docdir@&$docdir&g
  47378. + s&@infodir@&$infodir&g
  47379. + s&@localedir@&$localedir&g
  47380. + s&@mandir@&$mandir&g
  47381. + s&\\\${datarootdir}&$datarootdir&g' ;;
  47382. esac
  47383. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  47384. - (eval "$ac_try") 2>&5
  47385. - ac_status=$?
  47386. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  47387. - (exit $ac_status); }; }; then
  47388. - ac_cv_func_realloc_0_nonnull=yes
  47389. -else
  47390. - echo "$as_me: program exited with status $ac_status" >&5
  47391. -echo "$as_me: failed program was:" >&5
  47392. -sed 's/^/| /' conftest.$ac_ext >&5
  47393. -
  47394. -( exit $ac_status )
  47395. -ac_cv_func_realloc_0_nonnull=no
  47396. -fi
  47397. -rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  47398. -fi
  47399. -
  47400. -
  47401. -fi
  47402. -{ echo "$as_me:$LINENO: result: $ac_cv_func_realloc_0_nonnull" >&5
  47403. -echo "${ECHO_T}$ac_cv_func_realloc_0_nonnull" >&6; }
  47404. -if test $ac_cv_func_realloc_0_nonnull = yes; then
  47405. -
  47406. -cat >>confdefs.h <<\_ACEOF
  47407. -#define HAVE_REALLOC 1
  47408. -_ACEOF
  47409. -
  47410. -else
  47411. - cat >>confdefs.h <<\_ACEOF
  47412. -#define HAVE_REALLOC 0
  47413. _ACEOF
  47414. - case " $LIBOBJS " in
  47415. - *" realloc.$ac_objext "* ) ;;
  47416. - *) LIBOBJS="$LIBOBJS realloc.$ac_objext"
  47417. - ;;
  47418. -esac
  47419. -
  47420. -
  47421. -cat >>confdefs.h <<\_ACEOF
  47422. -#define realloc rpl_realloc
  47423. +# Neutralize VPATH when `$srcdir' = `.'.
  47424. +# Shell code in configure.ac might set extrasub.
  47425. +# FIXME: do we really want to maintain this feature?
  47426. +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  47427. +ac_sed_extra="$ac_vpsub
  47428. +$extrasub
  47429. _ACEOF
  47430. +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  47431. +:t
  47432. +/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  47433. +s|@configure_input@|$ac_sed_conf_input|;t t
  47434. +s&@top_builddir@&$ac_top_builddir_sub&;t t
  47435. +s&@top_build_prefix@&$ac_top_build_prefix&;t t
  47436. +s&@srcdir@&$ac_srcdir&;t t
  47437. +s&@abs_srcdir@&$ac_abs_srcdir&;t t
  47438. +s&@top_srcdir@&$ac_top_srcdir&;t t
  47439. +s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  47440. +s&@builddir@&$ac_builddir&;t t
  47441. +s&@abs_builddir@&$ac_abs_builddir&;t t
  47442. +s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  47443. +s&@INSTALL@&$ac_INSTALL&;t t
  47444. +s&@MKDIR_P@&$ac_MKDIR_P&;t t
  47445. +$ac_datarootdir_hack
  47446. +"
  47447. +eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
  47448. + || as_fn_error "could not create $ac_file" "$LINENO" 5
  47449. -fi
  47450. -
  47451. +test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  47452. + { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
  47453. + { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
  47454. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  47455. +which seems to be undefined. Please make sure it is defined." >&5
  47456. +$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  47457. +which seems to be undefined. Please make sure it is defined." >&2;}
  47458. + rm -f "$tmp/stdin"
  47459. + case $ac_file in
  47460. + -) cat "$tmp/out" && rm -f "$tmp/out";;
  47461. + *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
  47462. + esac \
  47463. + || as_fn_error "could not create $ac_file" "$LINENO" 5
  47464. + ;;
  47465. + :H)
  47466. + #
  47467. + # CONFIG_HEADER
  47468. + #
  47469. + if test x"$ac_file" != x-; then
  47470. + {
  47471. + $as_echo "/* $configure_input */" \
  47472. + && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
  47473. + } >"$tmp/config.h" \
  47474. + || as_fn_error "could not create $ac_file" "$LINENO" 5
  47475. + if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
  47476. + { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  47477. +$as_echo "$as_me: $ac_file is unchanged" >&6;}
  47478. + else
  47479. + rm -f "$ac_file"
  47480. + mv "$tmp/config.h" "$ac_file" \
  47481. + || as_fn_error "could not create $ac_file" "$LINENO" 5
  47482. + fi
  47483. + else
  47484. + $as_echo "/* $configure_input */" \
  47485. + && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
  47486. + || as_fn_error "could not create -" "$LINENO" 5
  47487. + fi
  47488. +# Compute "$ac_file"'s index in $config_headers.
  47489. +_am_arg="$ac_file"
  47490. +_am_stamp_count=1
  47491. +for _am_header in $config_headers :; do
  47492. + case $_am_header in
  47493. + $_am_arg | $_am_arg:* )
  47494. + break ;;
  47495. + * )
  47496. + _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  47497. + esac
  47498. +done
  47499. +echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
  47500. +$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  47501. + X"$_am_arg" : 'X\(//\)[^/]' \| \
  47502. + X"$_am_arg" : 'X\(//\)$' \| \
  47503. + X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
  47504. +$as_echo X"$_am_arg" |
  47505. + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  47506. + s//\1/
  47507. + q
  47508. + }
  47509. + /^X\(\/\/\)[^/].*/{
  47510. + s//\1/
  47511. + q
  47512. + }
  47513. + /^X\(\/\/\)$/{
  47514. + s//\1/
  47515. + q
  47516. + }
  47517. + /^X\(\/\).*/{
  47518. + s//\1/
  47519. + q
  47520. + }
  47521. + s/.*/./; q'`/stamp-h$_am_stamp_count
  47522. + ;;
  47523. + :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  47524. +$as_echo "$as_me: executing $ac_file commands" >&6;}
  47525. + ;;
  47526. + esac
  47527. -for ac_func in memset strerror
  47528. -do
  47529. -as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  47530. -{ echo "$as_me:$LINENO: checking for $ac_func" >&5
  47531. -echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  47532. -if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  47533. - echo $ECHO_N "(cached) $ECHO_C" >&6
  47534. -else
  47535. - cat >conftest.$ac_ext <<_ACEOF
  47536. -/* confdefs.h. */
  47537. -_ACEOF
  47538. -cat confdefs.h >>conftest.$ac_ext
  47539. -cat >>conftest.$ac_ext <<_ACEOF
  47540. -/* end confdefs.h. */
  47541. -/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  47542. - For example, HP-UX 11i <limits.h> declares gettimeofday. */
  47543. -#define $ac_func innocuous_$ac_func
  47544. + case $ac_file$ac_mode in
  47545. + "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
  47546. + # Autoconf 2.62 quotes --file arguments for eval, but not when files
  47547. + # are listed without --file. Let's play safe and only enable the eval
  47548. + # if we detect the quoting.
  47549. + case $CONFIG_FILES in
  47550. + *\'*) eval set x "$CONFIG_FILES" ;;
  47551. + *) set x $CONFIG_FILES ;;
  47552. + esac
  47553. + shift
  47554. + for mf
  47555. + do
  47556. + # Strip MF so we end up with the name of the file.
  47557. + mf=`echo "$mf" | sed -e 's/:.*$//'`
  47558. + # Check whether this is an Automake generated Makefile or not.
  47559. + # We used to match only the files named `Makefile.in', but
  47560. + # some people rename them; so instead we look at the file content.
  47561. + # Grep'ing the first line is not enough: some people post-process
  47562. + # each Makefile.in and add a new line on top of each file to say so.
  47563. + # Grep'ing the whole file is not good either: AIX grep has a line
  47564. + # limit of 2048, but all sed's we know have understand at least 4000.
  47565. + if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
  47566. + dirpart=`$as_dirname -- "$mf" ||
  47567. +$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  47568. + X"$mf" : 'X\(//\)[^/]' \| \
  47569. + X"$mf" : 'X\(//\)$' \| \
  47570. + X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
  47571. +$as_echo X"$mf" |
  47572. + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  47573. + s//\1/
  47574. + q
  47575. + }
  47576. + /^X\(\/\/\)[^/].*/{
  47577. + s//\1/
  47578. + q
  47579. + }
  47580. + /^X\(\/\/\)$/{
  47581. + s//\1/
  47582. + q
  47583. + }
  47584. + /^X\(\/\).*/{
  47585. + s//\1/
  47586. + q
  47587. + }
  47588. + s/.*/./; q'`
  47589. + else
  47590. + continue
  47591. + fi
  47592. + # Extract the definition of DEPDIR, am__include, and am__quote
  47593. + # from the Makefile without running `make'.
  47594. + DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  47595. + test -z "$DEPDIR" && continue
  47596. + am__include=`sed -n 's/^am__include = //p' < "$mf"`
  47597. + test -z "am__include" && continue
  47598. + am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  47599. + # When using ansi2knr, U may be empty or an underscore; expand it
  47600. + U=`sed -n 's/^U = //p' < "$mf"`
  47601. + # Find all dependency output files, they are included files with
  47602. + # $(DEPDIR) in their names. We invoke sed twice because it is the
  47603. + # simplest approach to changing $(DEPDIR) to its actual value in the
  47604. + # expansion.
  47605. + for file in `sed -n "
  47606. + s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  47607. + sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
  47608. + # Make sure the directory exists.
  47609. + test -f "$dirpart/$file" && continue
  47610. + fdir=`$as_dirname -- "$file" ||
  47611. +$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  47612. + X"$file" : 'X\(//\)[^/]' \| \
  47613. + X"$file" : 'X\(//\)$' \| \
  47614. + X"$file" : 'X\(/\)' \| . 2>/dev/null ||
  47615. +$as_echo X"$file" |
  47616. + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  47617. + s//\1/
  47618. + q
  47619. + }
  47620. + /^X\(\/\/\)[^/].*/{
  47621. + s//\1/
  47622. + q
  47623. + }
  47624. + /^X\(\/\/\)$/{
  47625. + s//\1/
  47626. + q
  47627. + }
  47628. + /^X\(\/\).*/{
  47629. + s//\1/
  47630. + q
  47631. + }
  47632. + s/.*/./; q'`
  47633. + as_dir=$dirpart/$fdir; as_fn_mkdir_p
  47634. + # echo "creating $dirpart/$file"
  47635. + echo '# dummy' > "$dirpart/$file"
  47636. + done
  47637. + done
  47638. +}
  47639. + ;;
  47640. + "libtool":C)
  47641. -/* System header to define __stub macros and hopefully few prototypes,
  47642. - which can conflict with char $ac_func (); below.
  47643. - Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  47644. - <limits.h> exists even on freestanding compilers. */
  47645. + # See if we are running on zsh, and set the options which allow our
  47646. + # commands through without removal of \ escapes.
  47647. + if test -n "${ZSH_VERSION+set}" ; then
  47648. + setopt NO_GLOB_SUBST
  47649. + fi
  47650. -#ifdef __STDC__
  47651. -# include <limits.h>
  47652. -#else
  47653. -# include <assert.h>
  47654. -#endif
  47655. + cfgfile="${ofile}T"
  47656. + trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  47657. + $RM "$cfgfile"
  47658. -#undef $ac_func
  47659. + cat <<_LT_EOF >> "$cfgfile"
  47660. +#! $SHELL
  47661. -/* Override any GCC internal prototype to avoid an error.
  47662. - Use char because int might match the return type of a GCC
  47663. - builtin and then its argument prototype would still apply. */
  47664. -#ifdef __cplusplus
  47665. -extern "C"
  47666. -#endif
  47667. -char $ac_func ();
  47668. -/* The GNU C library defines this for functions which it implements
  47669. - to always fail with ENOSYS. Some functions are actually named
  47670. - something starting with __ and the normal name is an alias. */
  47671. -#if defined __stub_$ac_func || defined __stub___$ac_func
  47672. -choke me
  47673. -#endif
  47674. +# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  47675. +# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
  47676. +# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  47677. +# NOTE: Changes made to this file will be lost: look at ltmain.sh.
  47678. +#
  47679. +# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
  47680. +# 2006, 2007, 2008 Free Software Foundation, Inc.
  47681. +# Written by Gordon Matzigkeit, 1996
  47682. +#
  47683. +# This file is part of GNU Libtool.
  47684. +#
  47685. +# GNU Libtool is free software; you can redistribute it and/or
  47686. +# modify it under the terms of the GNU General Public License as
  47687. +# published by the Free Software Foundation; either version 2 of
  47688. +# the License, or (at your option) any later version.
  47689. +#
  47690. +# As a special exception to the GNU General Public License,
  47691. +# if you distribute this file as part of a program or library that
  47692. +# is built using GNU Libtool, you may include this file under the
  47693. +# same distribution terms that you use for the rest of that program.
  47694. +#
  47695. +# GNU Libtool is distributed in the hope that it will be useful,
  47696. +# but WITHOUT ANY WARRANTY; without even the implied warranty of
  47697. +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  47698. +# GNU General Public License for more details.
  47699. +#
  47700. +# You should have received a copy of the GNU General Public License
  47701. +# along with GNU Libtool; see the file COPYING. If not, a copy
  47702. +# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
  47703. +# obtained by writing to the Free Software Foundation, Inc.,
  47704. +# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  47705. -int
  47706. -main ()
  47707. -{
  47708. -return $ac_func ();
  47709. - ;
  47710. - return 0;
  47711. -}
  47712. -_ACEOF
  47713. -rm -f conftest.$ac_objext conftest$ac_exeext
  47714. -if { (ac_try="$ac_link"
  47715. -case "(($ac_try" in
  47716. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  47717. - *) ac_try_echo=$ac_try;;
  47718. -esac
  47719. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  47720. - (eval "$ac_link") 2>conftest.er1
  47721. - ac_status=$?
  47722. - grep -v '^ *+' conftest.er1 >conftest.err
  47723. - rm -f conftest.er1
  47724. - cat conftest.err >&5
  47725. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  47726. - (exit $ac_status); } &&
  47727. - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  47728. - { (case "(($ac_try" in
  47729. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  47730. - *) ac_try_echo=$ac_try;;
  47731. -esac
  47732. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  47733. - (eval "$ac_try") 2>&5
  47734. - ac_status=$?
  47735. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  47736. - (exit $ac_status); }; } &&
  47737. - { ac_try='test -s conftest$ac_exeext'
  47738. - { (case "(($ac_try" in
  47739. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  47740. - *) ac_try_echo=$ac_try;;
  47741. -esac
  47742. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  47743. - (eval "$ac_try") 2>&5
  47744. - ac_status=$?
  47745. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  47746. - (exit $ac_status); }; }; then
  47747. - eval "$as_ac_var=yes"
  47748. -else
  47749. - echo "$as_me: failed program was:" >&5
  47750. -sed 's/^/| /' conftest.$ac_ext >&5
  47751. - eval "$as_ac_var=no"
  47752. -fi
  47753. +# The names of the tagged configurations supported by this script.
  47754. +available_tags=""
  47755. -rm -f core conftest.err conftest.$ac_objext \
  47756. - conftest$ac_exeext conftest.$ac_ext
  47757. -fi
  47758. -ac_res=`eval echo '${'$as_ac_var'}'`
  47759. - { echo "$as_me:$LINENO: result: $ac_res" >&5
  47760. -echo "${ECHO_T}$ac_res" >&6; }
  47761. -if test `eval echo '${'$as_ac_var'}'` = yes; then
  47762. - cat >>confdefs.h <<_ACEOF
  47763. -#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  47764. -_ACEOF
  47765. +# ### BEGIN LIBTOOL CONFIG
  47766. -fi
  47767. -done
  47768. +# Which release of libtool.m4 was used?
  47769. +macro_version=$macro_version
  47770. +macro_revision=$macro_revision
  47771. +# Whether or not to build shared libraries.
  47772. +build_libtool_libs=$enable_shared
  47773. -ac_config_files="$ac_config_files Makefile src/Makefile"
  47774. +# Whether or not to build static libraries.
  47775. +build_old_libs=$enable_static
  47776. +# What type of objects to build.
  47777. +pic_mode=$pic_mode
  47778. -ac_config_files="$ac_config_files libgssglue.pc"
  47779. +# Whether or not to optimize for fast installation.
  47780. +fast_install=$enable_fast_install
  47781. -cat >confcache <<\_ACEOF
  47782. -# This file is a shell script that caches the results of configure
  47783. -# tests run on this system so they can be shared between configure
  47784. -# scripts and configure runs, see configure's option --config-cache.
  47785. -# It is not useful on other systems. If it contains results you don't
  47786. -# want to keep, you may remove or edit it.
  47787. -#
  47788. -# config.status only pays attention to the cache file if you give it
  47789. -# the --recheck option to rerun configure.
  47790. -#
  47791. -# `ac_cv_env_foo' variables (set or unset) will be overridden when
  47792. -# loading this file, other *unset* `ac_cv_foo' will be assigned the
  47793. -# following values.
  47794. +# The host system.
  47795. +host_alias=$host_alias
  47796. +host=$host
  47797. +host_os=$host_os
  47798. -_ACEOF
  47799. +# The build system.
  47800. +build_alias=$build_alias
  47801. +build=$build
  47802. +build_os=$build_os
  47803. -# The following way of writing the cache mishandles newlines in values,
  47804. -# but we know of no workaround that is simple, portable, and efficient.
  47805. -# So, we kill variables containing newlines.
  47806. -# Ultrix sh set writes to stderr and can't be redirected directly,
  47807. -# and sets the high bit in the cache file unless we assign to the vars.
  47808. -(
  47809. - for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  47810. - eval ac_val=\$$ac_var
  47811. - case $ac_val in #(
  47812. - *${as_nl}*)
  47813. - case $ac_var in #(
  47814. - *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
  47815. -echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
  47816. - esac
  47817. - case $ac_var in #(
  47818. - _ | IFS | as_nl) ;; #(
  47819. - *) $as_unset $ac_var ;;
  47820. - esac ;;
  47821. - esac
  47822. - done
  47823. +# A sed program that does not truncate output.
  47824. +SED=$lt_SED
  47825. - (set) 2>&1 |
  47826. - case $as_nl`(ac_space=' '; set) 2>&1` in #(
  47827. - *${as_nl}ac_space=\ *)
  47828. - # `set' does not quote correctly, so add quotes (double-quote
  47829. - # substitution turns \\\\ into \\, and sed turns \\ into \).
  47830. - sed -n \
  47831. - "s/'/'\\\\''/g;
  47832. - s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  47833. - ;; #(
  47834. - *)
  47835. - # `set' quotes correctly as required by POSIX, so do not add quotes.
  47836. - sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  47837. - ;;
  47838. - esac |
  47839. - sort
  47840. -) |
  47841. - sed '
  47842. - /^ac_cv_env_/b end
  47843. - t clear
  47844. - :clear
  47845. - s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  47846. - t end
  47847. - s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  47848. - :end' >>confcache
  47849. -if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  47850. - if test -w "$cache_file"; then
  47851. - test "x$cache_file" != "x/dev/null" &&
  47852. - { echo "$as_me:$LINENO: updating cache $cache_file" >&5
  47853. -echo "$as_me: updating cache $cache_file" >&6;}
  47854. - cat confcache >$cache_file
  47855. - else
  47856. - { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
  47857. -echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  47858. - fi
  47859. -fi
  47860. -rm -f confcache
  47861. +# Sed that helps us avoid accidentally triggering echo(1) options like -n.
  47862. +Xsed="\$SED -e 1s/^X//"
  47863. -test "x$prefix" = xNONE && prefix=$ac_default_prefix
  47864. -# Let make expand exec_prefix.
  47865. -test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  47866. +# A grep program that handles long lines.
  47867. +GREP=$lt_GREP
  47868. -DEFS=-DHAVE_CONFIG_H
  47869. +# An ERE matcher.
  47870. +EGREP=$lt_EGREP
  47871. -ac_libobjs=
  47872. -ac_ltlibobjs=
  47873. -for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  47874. - # 1. Remove the extension, and $U if already installed.
  47875. - ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  47876. - ac_i=`echo "$ac_i" | sed "$ac_script"`
  47877. - # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  47878. - # will be set to the directory where LIBOBJS objects are built.
  47879. - ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  47880. - ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
  47881. -done
  47882. -LIBOBJS=$ac_libobjs
  47883. +# A literal string matcher.
  47884. +FGREP=$lt_FGREP
  47885. -LTLIBOBJS=$ac_ltlibobjs
  47886. +# A BSD- or MS-compatible name lister.
  47887. +NM=$lt_NM
  47888. +# Whether we need soft or hard links.
  47889. +LN_S=$lt_LN_S
  47890. -if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  47891. - { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
  47892. -Usually this means the macro was only invoked conditionally." >&5
  47893. -echo "$as_me: error: conditional \"AMDEP\" was never defined.
  47894. -Usually this means the macro was only invoked conditionally." >&2;}
  47895. - { (exit 1); exit 1; }; }
  47896. -fi
  47897. -if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  47898. - { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
  47899. -Usually this means the macro was only invoked conditionally." >&5
  47900. -echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
  47901. -Usually this means the macro was only invoked conditionally." >&2;}
  47902. - { (exit 1); exit 1; }; }
  47903. -fi
  47904. -if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
  47905. - { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
  47906. -Usually this means the macro was only invoked conditionally." >&5
  47907. -echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
  47908. -Usually this means the macro was only invoked conditionally." >&2;}
  47909. - { (exit 1); exit 1; }; }
  47910. -fi
  47911. -if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  47912. - { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
  47913. -Usually this means the macro was only invoked conditionally." >&5
  47914. -echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
  47915. -Usually this means the macro was only invoked conditionally." >&2;}
  47916. - { (exit 1); exit 1; }; }
  47917. -fi
  47918. +# What is the maximum length of a command?
  47919. +max_cmd_len=$max_cmd_len
  47920. -: ${CONFIG_STATUS=./config.status}
  47921. -ac_clean_files_save=$ac_clean_files
  47922. -ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  47923. -{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
  47924. -echo "$as_me: creating $CONFIG_STATUS" >&6;}
  47925. -cat >$CONFIG_STATUS <<_ACEOF
  47926. -#! $SHELL
  47927. -# Generated by $as_me.
  47928. -# Run this file to recreate the current configuration.
  47929. -# Compiler output produced by configure, useful for debugging
  47930. -# configure, is in config.log if it exists.
  47931. +# Object file suffix (normally "o").
  47932. +objext=$ac_objext
  47933. -debug=false
  47934. -ac_cs_recheck=false
  47935. -ac_cs_silent=false
  47936. -SHELL=\${CONFIG_SHELL-$SHELL}
  47937. -_ACEOF
  47938. +# Executable file suffix (normally "").
  47939. +exeext=$exeext
  47940. -cat >>$CONFIG_STATUS <<\_ACEOF
  47941. -## --------------------- ##
  47942. -## M4sh Initialization. ##
  47943. -## --------------------- ##
  47944. +# whether the shell understands "unset".
  47945. +lt_unset=$lt_unset
  47946. -# Be Bourne compatible
  47947. -if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  47948. - emulate sh
  47949. - NULLCMD=:
  47950. - # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  47951. - # is contrary to our usage. Disable this feature.
  47952. - alias -g '${1+"$@"}'='"$@"'
  47953. - setopt NO_GLOB_SUBST
  47954. -else
  47955. - case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
  47956. -fi
  47957. -BIN_SH=xpg4; export BIN_SH # for Tru64
  47958. -DUALCASE=1; export DUALCASE # for MKS sh
  47959. +# turn spaces into newlines.
  47960. +SP2NL=$lt_lt_SP2NL
  47961. +# turn newlines into spaces.
  47962. +NL2SP=$lt_lt_NL2SP
  47963. -# PATH needs CR
  47964. -# Avoid depending upon Character Ranges.
  47965. -as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  47966. -as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  47967. -as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  47968. -as_cr_digits='0123456789'
  47969. -as_cr_alnum=$as_cr_Letters$as_cr_digits
  47970. +# How to create reloadable object files.
  47971. +reload_flag=$lt_reload_flag
  47972. +reload_cmds=$lt_reload_cmds
  47973. -# The user is always right.
  47974. -if test "${PATH_SEPARATOR+set}" != set; then
  47975. - echo "#! /bin/sh" >conf$$.sh
  47976. - echo "exit 0" >>conf$$.sh
  47977. - chmod +x conf$$.sh
  47978. - if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  47979. - PATH_SEPARATOR=';'
  47980. - else
  47981. - PATH_SEPARATOR=:
  47982. - fi
  47983. - rm -f conf$$.sh
  47984. -fi
  47985. +# An object symbol dumper.
  47986. +OBJDUMP=$lt_OBJDUMP
  47987. -# Support unset when possible.
  47988. -if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  47989. - as_unset=unset
  47990. -else
  47991. - as_unset=false
  47992. -fi
  47993. +# Method to check whether dependent libraries are shared objects.
  47994. +deplibs_check_method=$lt_deplibs_check_method
  47995. +# Command to use when deplibs_check_method == "file_magic".
  47996. +file_magic_cmd=$lt_file_magic_cmd
  47997. -# IFS
  47998. -# We need space, tab and new line, in precisely that order. Quoting is
  47999. -# there to prevent editors from complaining about space-tab.
  48000. -# (If _AS_PATH_WALK were called with IFS unset, it would disable word
  48001. -# splitting by setting IFS to empty value.)
  48002. -as_nl='
  48003. -'
  48004. -IFS=" "" $as_nl"
  48005. +# The archiver.
  48006. +AR=$lt_AR
  48007. +AR_FLAGS=$lt_AR_FLAGS
  48008. -# Find who we are. Look in the path if we contain no directory separator.
  48009. -case $0 in
  48010. - *[\\/]* ) as_myself=$0 ;;
  48011. - *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  48012. -for as_dir in $PATH
  48013. -do
  48014. - IFS=$as_save_IFS
  48015. - test -z "$as_dir" && as_dir=.
  48016. - test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  48017. -done
  48018. -IFS=$as_save_IFS
  48019. +# A symbol stripping program.
  48020. +STRIP=$lt_STRIP
  48021. - ;;
  48022. -esac
  48023. -# We did not find ourselves, most probably we were run as `sh COMMAND'
  48024. -# in which case we are not to be found in the path.
  48025. -if test "x$as_myself" = x; then
  48026. - as_myself=$0
  48027. -fi
  48028. -if test ! -f "$as_myself"; then
  48029. - echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  48030. - { (exit 1); exit 1; }
  48031. -fi
  48032. +# Commands used to install an old-style archive.
  48033. +RANLIB=$lt_RANLIB
  48034. +old_postinstall_cmds=$lt_old_postinstall_cmds
  48035. +old_postuninstall_cmds=$lt_old_postuninstall_cmds
  48036. -# Work around bugs in pre-3.0 UWIN ksh.
  48037. -for as_var in ENV MAIL MAILPATH
  48038. -do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  48039. -done
  48040. -PS1='$ '
  48041. -PS2='> '
  48042. -PS4='+ '
  48043. +# A C compiler.
  48044. +LTCC=$lt_CC
  48045. -# NLS nuisances.
  48046. -for as_var in \
  48047. - LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
  48048. - LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
  48049. - LC_TELEPHONE LC_TIME
  48050. -do
  48051. - if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
  48052. - eval $as_var=C; export $as_var
  48053. - else
  48054. - ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  48055. - fi
  48056. -done
  48057. +# LTCC compiler flags.
  48058. +LTCFLAGS=$lt_CFLAGS
  48059. -# Required to use basename.
  48060. -if expr a : '\(a\)' >/dev/null 2>&1 &&
  48061. - test "X`expr 00001 : '.*\(...\)'`" = X001; then
  48062. - as_expr=expr
  48063. -else
  48064. - as_expr=false
  48065. -fi
  48066. +# Take the output of nm and produce a listing of raw symbols and C names.
  48067. +global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  48068. +
  48069. +# Transform the output of nm in a proper C declaration.
  48070. +global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  48071. -if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  48072. - as_basename=basename
  48073. -else
  48074. - as_basename=false
  48075. -fi
  48076. +# Transform the output of nm in a C name address pair.
  48077. +global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  48078. +# Transform the output of nm in a C name address pair when lib prefix is needed.
  48079. +global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
  48080. -# Name of the executable.
  48081. -as_me=`$as_basename -- "$0" ||
  48082. -$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  48083. - X"$0" : 'X\(//\)$' \| \
  48084. - X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  48085. -echo X/"$0" |
  48086. - sed '/^.*\/\([^/][^/]*\)\/*$/{
  48087. - s//\1/
  48088. - q
  48089. - }
  48090. - /^X\/\(\/\/\)$/{
  48091. - s//\1/
  48092. - q
  48093. - }
  48094. - /^X\/\(\/\).*/{
  48095. - s//\1/
  48096. - q
  48097. - }
  48098. - s/.*/./; q'`
  48099. +# The name of the directory that contains temporary libtool files.
  48100. +objdir=$objdir
  48101. -# CDPATH.
  48102. -$as_unset CDPATH
  48103. +# Shell to use when invoking shell scripts.
  48104. +SHELL=$lt_SHELL
  48105. +# An echo program that does not interpret backslashes.
  48106. +ECHO=$lt_ECHO
  48107. +# Used to examine libraries when file_magic_cmd begins with "file".
  48108. +MAGIC_CMD=$MAGIC_CMD
  48109. - as_lineno_1=$LINENO
  48110. - as_lineno_2=$LINENO
  48111. - test "x$as_lineno_1" != "x$as_lineno_2" &&
  48112. - test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
  48113. -
  48114. - # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  48115. - # uniformly replaced by the line number. The first 'sed' inserts a
  48116. - # line-number line after each line using $LINENO; the second 'sed'
  48117. - # does the real work. The second script uses 'N' to pair each
  48118. - # line-number line with the line containing $LINENO, and appends
  48119. - # trailing '-' during substitution so that $LINENO is not a special
  48120. - # case at line end.
  48121. - # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  48122. - # scripts with optimization help from Paolo Bonzini. Blame Lee
  48123. - # E. McMahon (1931-1989) for sed's syntax. :-)
  48124. - sed -n '
  48125. - p
  48126. - /[$]LINENO/=
  48127. - ' <$as_myself |
  48128. - sed '
  48129. - s/[$]LINENO.*/&-/
  48130. - t lineno
  48131. - b
  48132. - :lineno
  48133. - N
  48134. - :loop
  48135. - s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  48136. - t loop
  48137. - s/-\n.*//
  48138. - ' >$as_me.lineno &&
  48139. - chmod +x "$as_me.lineno" ||
  48140. - { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
  48141. - { (exit 1); exit 1; }; }
  48142. +# Must we lock files when doing compilation?
  48143. +need_locks=$lt_need_locks
  48144. - # Don't try to exec as it changes $[0], causing all sort of problems
  48145. - # (the dirname of $[0] is not the place where we might find the
  48146. - # original and so on. Autoconf is especially sensitive to this).
  48147. - . "./$as_me.lineno"
  48148. - # Exit status is that of the last command.
  48149. - exit
  48150. -}
  48151. +# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
  48152. +DSYMUTIL=$lt_DSYMUTIL
  48153. +# Tool to change global to local symbols on Mac OS X.
  48154. +NMEDIT=$lt_NMEDIT
  48155. -if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  48156. - as_dirname=dirname
  48157. -else
  48158. - as_dirname=false
  48159. -fi
  48160. +# Tool to manipulate fat objects and archives on Mac OS X.
  48161. +LIPO=$lt_LIPO
  48162. -ECHO_C= ECHO_N= ECHO_T=
  48163. -case `echo -n x` in
  48164. --n*)
  48165. - case `echo 'x\c'` in
  48166. - *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  48167. - *) ECHO_C='\c';;
  48168. - esac;;
  48169. -*)
  48170. - ECHO_N='-n';;
  48171. -esac
  48172. +# ldd/readelf like tool for Mach-O binaries on Mac OS X.
  48173. +OTOOL=$lt_OTOOL
  48174. -if expr a : '\(a\)' >/dev/null 2>&1 &&
  48175. - test "X`expr 00001 : '.*\(...\)'`" = X001; then
  48176. - as_expr=expr
  48177. -else
  48178. - as_expr=false
  48179. -fi
  48180. +# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
  48181. +OTOOL64=$lt_OTOOL64
  48182. -rm -f conf$$ conf$$.exe conf$$.file
  48183. -if test -d conf$$.dir; then
  48184. - rm -f conf$$.dir/conf$$.file
  48185. -else
  48186. - rm -f conf$$.dir
  48187. - mkdir conf$$.dir
  48188. -fi
  48189. -echo >conf$$.file
  48190. -if ln -s conf$$.file conf$$ 2>/dev/null; then
  48191. - as_ln_s='ln -s'
  48192. - # ... but there are two gotchas:
  48193. - # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  48194. - # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  48195. - # In both cases, we have to default to `cp -p'.
  48196. - ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  48197. - as_ln_s='cp -p'
  48198. -elif ln conf$$.file conf$$ 2>/dev/null; then
  48199. - as_ln_s=ln
  48200. -else
  48201. - as_ln_s='cp -p'
  48202. -fi
  48203. -rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  48204. -rmdir conf$$.dir 2>/dev/null
  48205. +# Old archive suffix (normally "a").
  48206. +libext=$libext
  48207. -if mkdir -p . 2>/dev/null; then
  48208. - as_mkdir_p=:
  48209. -else
  48210. - test -d ./-p && rmdir ./-p
  48211. - as_mkdir_p=false
  48212. -fi
  48213. +# Shared library suffix (normally ".so").
  48214. +shrext_cmds=$lt_shrext_cmds
  48215. -# Find out whether ``test -x'' works. Don't use a zero-byte file, as
  48216. -# systems may use methods other than mode bits to determine executability.
  48217. -cat >conf$$.file <<_ASEOF
  48218. -#! /bin/sh
  48219. -exit 0
  48220. -_ASEOF
  48221. -chmod +x conf$$.file
  48222. -if test -x conf$$.file >/dev/null 2>&1; then
  48223. - as_executable_p="test -x"
  48224. -else
  48225. - as_executable_p=:
  48226. -fi
  48227. -rm -f conf$$.file
  48228. +# The commands to extract the exported symbol list from a shared archive.
  48229. +extract_expsyms_cmds=$lt_extract_expsyms_cmds
  48230. -# Sed expression to map a string onto a valid CPP name.
  48231. -as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  48232. +# Variables whose values should be saved in libtool wrapper scripts and
  48233. +# restored at link time.
  48234. +variables_saved_for_relink=$lt_variables_saved_for_relink
  48235. -# Sed expression to map a string onto a valid variable name.
  48236. -as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  48237. +# Do we need the "lib" prefix for modules?
  48238. +need_lib_prefix=$need_lib_prefix
  48239. +# Do we need a version for libraries?
  48240. +need_version=$need_version
  48241. -exec 6>&1
  48242. +# Library versioning type.
  48243. +version_type=$version_type
  48244. -# Save the log message, to keep $[0] and so on meaningful, and to
  48245. -# report actual input values of CONFIG_FILES etc. instead of their
  48246. -# values after options handling.
  48247. -ac_log="
  48248. -This file was extended by libgssglue $as_me 0.1, which was
  48249. -generated by GNU Autoconf 2.60. Invocation command line was
  48250. +# Shared library runtime path variable.
  48251. +runpath_var=$runpath_var
  48252. - CONFIG_FILES = $CONFIG_FILES
  48253. - CONFIG_HEADERS = $CONFIG_HEADERS
  48254. - CONFIG_LINKS = $CONFIG_LINKS
  48255. - CONFIG_COMMANDS = $CONFIG_COMMANDS
  48256. - $ $0 $@
  48257. +# Shared library path variable.
  48258. +shlibpath_var=$shlibpath_var
  48259. -on `(hostname || uname -n) 2>/dev/null | sed 1q`
  48260. -"
  48261. +# Is shlibpath searched before the hard-coded library search path?
  48262. +shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  48263. -_ACEOF
  48264. +# Format of library name prefix.
  48265. +libname_spec=$lt_libname_spec
  48266. -cat >>$CONFIG_STATUS <<_ACEOF
  48267. -# Files that config.status was made for.
  48268. -config_files="$ac_config_files"
  48269. -config_headers="$ac_config_headers"
  48270. -config_commands="$ac_config_commands"
  48271. +# List of archive names. First name is the real one, the rest are links.
  48272. +# The last name is the one that the linker finds with -lNAME
  48273. +library_names_spec=$lt_library_names_spec
  48274. -_ACEOF
  48275. +# The coded name of the library, if different from the real name.
  48276. +soname_spec=$lt_soname_spec
  48277. -cat >>$CONFIG_STATUS <<\_ACEOF
  48278. -ac_cs_usage="\
  48279. -\`$as_me' instantiates files from templates according to the
  48280. -current configuration.
  48281. +# Command to use after installation of a shared archive.
  48282. +postinstall_cmds=$lt_postinstall_cmds
  48283. -Usage: $0 [OPTIONS] [FILE]...
  48284. +# Command to use after uninstallation of a shared archive.
  48285. +postuninstall_cmds=$lt_postuninstall_cmds
  48286. - -h, --help print this help, then exit
  48287. - -V, --version print version number, then exit
  48288. - -q, --quiet do not print progress messages
  48289. - -d, --debug don't remove temporary files
  48290. - --recheck update $as_me by reconfiguring in the same conditions
  48291. - --file=FILE[:TEMPLATE]
  48292. - instantiate the configuration file FILE
  48293. - --header=FILE[:TEMPLATE]
  48294. - instantiate the configuration header FILE
  48295. +# Commands used to finish a libtool library installation in a directory.
  48296. +finish_cmds=$lt_finish_cmds
  48297. -Configuration files:
  48298. -$config_files
  48299. +# As "finish_cmds", except a single script fragment to be evaled but
  48300. +# not shown.
  48301. +finish_eval=$lt_finish_eval
  48302. -Configuration headers:
  48303. -$config_headers
  48304. +# Whether we should hardcode library paths into libraries.
  48305. +hardcode_into_libs=$hardcode_into_libs
  48306. -Configuration commands:
  48307. -$config_commands
  48308. +# Compile-time system search path for libraries.
  48309. +sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  48310. -Report bugs to <bug-autoconf@gnu.org>."
  48311. +# Run-time system search path for libraries.
  48312. +sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  48313. -_ACEOF
  48314. -cat >>$CONFIG_STATUS <<_ACEOF
  48315. -ac_cs_version="\\
  48316. -libgssglue config.status 0.1
  48317. -configured by $0, generated by GNU Autoconf 2.60,
  48318. - with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
  48319. +# Whether dlopen is supported.
  48320. +dlopen_support=$enable_dlopen
  48321. -Copyright (C) 2006 Free Software Foundation, Inc.
  48322. -This config.status script is free software; the Free Software Foundation
  48323. -gives unlimited permission to copy, distribute and modify it."
  48324. +# Whether dlopen of programs is supported.
  48325. +dlopen_self=$enable_dlopen_self
  48326. -ac_pwd='$ac_pwd'
  48327. -srcdir='$srcdir'
  48328. -INSTALL='$INSTALL'
  48329. -_ACEOF
  48330. +# Whether dlopen of statically linked programs is supported.
  48331. +dlopen_self_static=$enable_dlopen_self_static
  48332. -cat >>$CONFIG_STATUS <<\_ACEOF
  48333. -# If no file are specified by the user, then we need to provide default
  48334. -# value. By we need to know if files were specified by the user.
  48335. -ac_need_defaults=:
  48336. -while test $# != 0
  48337. -do
  48338. - case $1 in
  48339. - --*=*)
  48340. - ac_option=`expr "X$1" : 'X\([^=]*\)='`
  48341. - ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  48342. - ac_shift=:
  48343. - ;;
  48344. - *)
  48345. - ac_option=$1
  48346. - ac_optarg=$2
  48347. - ac_shift=shift
  48348. - ;;
  48349. - esac
  48350. +# Commands to strip libraries.
  48351. +old_striplib=$lt_old_striplib
  48352. +striplib=$lt_striplib
  48353. - case $ac_option in
  48354. - # Handling of the options.
  48355. - -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  48356. - ac_cs_recheck=: ;;
  48357. - --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  48358. - echo "$ac_cs_version"; exit ;;
  48359. - --debug | --debu | --deb | --de | --d | -d )
  48360. - debug=: ;;
  48361. - --file | --fil | --fi | --f )
  48362. - $ac_shift
  48363. - CONFIG_FILES="$CONFIG_FILES $ac_optarg"
  48364. - ac_need_defaults=false;;
  48365. - --header | --heade | --head | --hea )
  48366. - $ac_shift
  48367. - CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
  48368. - ac_need_defaults=false;;
  48369. - --he | --h)
  48370. - # Conflict between --help and --header
  48371. - { echo "$as_me: error: ambiguous option: $1
  48372. -Try \`$0 --help' for more information." >&2
  48373. - { (exit 1); exit 1; }; };;
  48374. - --help | --hel | -h )
  48375. - echo "$ac_cs_usage"; exit ;;
  48376. - -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  48377. - | -silent | --silent | --silen | --sile | --sil | --si | --s)
  48378. - ac_cs_silent=: ;;
  48379. - # This is an error.
  48380. - -*) { echo "$as_me: error: unrecognized option: $1
  48381. -Try \`$0 --help' for more information." >&2
  48382. - { (exit 1); exit 1; }; } ;;
  48383. +# The linker used to build libraries.
  48384. +LD=$lt_LD
  48385. - *) ac_config_targets="$ac_config_targets $1"
  48386. - ac_need_defaults=false ;;
  48387. +# Commands used to build an old-style archive.
  48388. +old_archive_cmds=$lt_old_archive_cmds
  48389. - esac
  48390. - shift
  48391. -done
  48392. +# A language specific compiler.
  48393. +CC=$lt_compiler
  48394. -ac_configure_extra_args=
  48395. +# Is the compiler the GNU compiler?
  48396. +with_gcc=$GCC
  48397. -if $ac_cs_silent; then
  48398. - exec 6>/dev/null
  48399. - ac_configure_extra_args="$ac_configure_extra_args --silent"
  48400. -fi
  48401. +# Compiler flag to turn off builtin functions.
  48402. +no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  48403. -_ACEOF
  48404. -cat >>$CONFIG_STATUS <<_ACEOF
  48405. -if \$ac_cs_recheck; then
  48406. - echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
  48407. - CONFIG_SHELL=$SHELL
  48408. - export CONFIG_SHELL
  48409. - exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  48410. -fi
  48411. +# How to pass a linker flag through the compiler.
  48412. +wl=$lt_lt_prog_compiler_wl
  48413. -_ACEOF
  48414. -cat >>$CONFIG_STATUS <<\_ACEOF
  48415. -exec 5>>config.log
  48416. -{
  48417. - echo
  48418. - sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  48419. -## Running $as_me. ##
  48420. -_ASBOX
  48421. - echo "$ac_log"
  48422. -} >&5
  48423. +# Additional compiler flags for building library objects.
  48424. +pic_flag=$lt_lt_prog_compiler_pic
  48425. -_ACEOF
  48426. -cat >>$CONFIG_STATUS <<_ACEOF
  48427. -#
  48428. -# INIT-COMMANDS
  48429. -#
  48430. -AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
  48431. +# Compiler flag to prevent dynamic linking.
  48432. +link_static_flag=$lt_lt_prog_compiler_static
  48433. -_ACEOF
  48434. +# Does compiler simultaneously support -c and -o options?
  48435. +compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  48436. +
  48437. +# Whether or not to add -lc for building shared libraries.
  48438. +build_libtool_need_lc=$archive_cmds_need_lc
  48439. -cat >>$CONFIG_STATUS <<\_ACEOF
  48440. +# Whether or not to disallow shared libs when runtime libs are static.
  48441. +allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  48442. +
  48443. +# Compiler flag to allow reflexive dlopens.
  48444. +export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  48445. -# Handling of arguments.
  48446. -for ac_config_target in $ac_config_targets
  48447. -do
  48448. - case $ac_config_target in
  48449. - "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  48450. - "src/gssglue/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/gssglue/config.h" ;;
  48451. - "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  48452. - "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
  48453. - "libgssglue.pc") CONFIG_FILES="$CONFIG_FILES libgssglue.pc" ;;
  48454. +# Compiler flag to generate shared objects directly from archives.
  48455. +whole_archive_flag_spec=$lt_whole_archive_flag_spec
  48456. - *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
  48457. -echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
  48458. - { (exit 1); exit 1; }; };;
  48459. - esac
  48460. -done
  48461. +# Whether the compiler copes with passing no objects directly.
  48462. +compiler_needs_object=$lt_compiler_needs_object
  48463. +# Create an old-style archive from a shared archive.
  48464. +old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  48465. -# If the user did not use the arguments to specify the items to instantiate,
  48466. -# then the envvar interface is used. Set only those that are not.
  48467. -# We use the long form for the default assignment because of an extremely
  48468. -# bizarre bug on SunOS 4.1.3.
  48469. -if $ac_need_defaults; then
  48470. - test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  48471. - test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  48472. - test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  48473. -fi
  48474. +# Create a temporary old-style archive to link instead of a shared archive.
  48475. +old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  48476. -# Have a temporary directory for convenience. Make it in the build tree
  48477. -# simply because there is no reason against having it here, and in addition,
  48478. -# creating and moving files from /tmp can sometimes cause problems.
  48479. -# Hook for its removal unless debugging.
  48480. -# Note that there is a small window in which the directory will not be cleaned:
  48481. -# after its creation but before its name has been assigned to `$tmp'.
  48482. -$debug ||
  48483. -{
  48484. - tmp=
  48485. - trap 'exit_status=$?
  48486. - { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
  48487. -' 0
  48488. - trap '{ (exit 1); exit 1; }' 1 2 13 15
  48489. -}
  48490. -# Create a (secure) tmp directory for tmp files.
  48491. +# Commands used to build a shared archive.
  48492. +archive_cmds=$lt_archive_cmds
  48493. +archive_expsym_cmds=$lt_archive_expsym_cmds
  48494. -{
  48495. - tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  48496. - test -n "$tmp" && test -d "$tmp"
  48497. -} ||
  48498. -{
  48499. - tmp=./conf$$-$RANDOM
  48500. - (umask 077 && mkdir "$tmp")
  48501. -} ||
  48502. -{
  48503. - echo "$me: cannot create a temporary directory in ." >&2
  48504. - { (exit 1); exit 1; }
  48505. -}
  48506. +# Commands used to build a loadable module if different from building
  48507. +# a shared archive.
  48508. +module_cmds=$lt_module_cmds
  48509. +module_expsym_cmds=$lt_module_expsym_cmds
  48510. -#
  48511. -# Set up the sed scripts for CONFIG_FILES section.
  48512. -#
  48513. +# Whether we are building with GNU ld or not.
  48514. +with_gnu_ld=$lt_with_gnu_ld
  48515. -# No need to generate the scripts if there are no CONFIG_FILES.
  48516. -# This happens for instance when ./config.status config.h
  48517. -if test -n "$CONFIG_FILES"; then
  48518. +# Flag that allows shared libraries with undefined symbols to be built.
  48519. +allow_undefined_flag=$lt_allow_undefined_flag
  48520. -_ACEOF
  48521. +# Flag that enforces no undefined symbols.
  48522. +no_undefined_flag=$lt_no_undefined_flag
  48523. +# Flag to hardcode \$libdir into a binary during linking.
  48524. +# This must work even if \$libdir does not exist
  48525. +hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  48526. +# If ld is used when linking, flag to hardcode \$libdir into a binary
  48527. +# during linking. This must work even if \$libdir does not exist.
  48528. +hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
  48529. -ac_delim='%!_!# '
  48530. -for ac_last_try in false false false false false :; do
  48531. - cat >conf$$subs.sed <<_ACEOF
  48532. -SHELL!$SHELL$ac_delim
  48533. -PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
  48534. -PACKAGE_NAME!$PACKAGE_NAME$ac_delim
  48535. -PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
  48536. -PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
  48537. -PACKAGE_STRING!$PACKAGE_STRING$ac_delim
  48538. -PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
  48539. -exec_prefix!$exec_prefix$ac_delim
  48540. -prefix!$prefix$ac_delim
  48541. -program_transform_name!$program_transform_name$ac_delim
  48542. -bindir!$bindir$ac_delim
  48543. -sbindir!$sbindir$ac_delim
  48544. -libexecdir!$libexecdir$ac_delim
  48545. -datarootdir!$datarootdir$ac_delim
  48546. -datadir!$datadir$ac_delim
  48547. -sysconfdir!$sysconfdir$ac_delim
  48548. -sharedstatedir!$sharedstatedir$ac_delim
  48549. -localstatedir!$localstatedir$ac_delim
  48550. -includedir!$includedir$ac_delim
  48551. -oldincludedir!$oldincludedir$ac_delim
  48552. -docdir!$docdir$ac_delim
  48553. -infodir!$infodir$ac_delim
  48554. -htmldir!$htmldir$ac_delim
  48555. -dvidir!$dvidir$ac_delim
  48556. -pdfdir!$pdfdir$ac_delim
  48557. -psdir!$psdir$ac_delim
  48558. -libdir!$libdir$ac_delim
  48559. -localedir!$localedir$ac_delim
  48560. -mandir!$mandir$ac_delim
  48561. -DEFS!$DEFS$ac_delim
  48562. -ECHO_C!$ECHO_C$ac_delim
  48563. -ECHO_N!$ECHO_N$ac_delim
  48564. -ECHO_T!$ECHO_T$ac_delim
  48565. -LIBS!$LIBS$ac_delim
  48566. -build_alias!$build_alias$ac_delim
  48567. -host_alias!$host_alias$ac_delim
  48568. -target_alias!$target_alias$ac_delim
  48569. -INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
  48570. -INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
  48571. -INSTALL_DATA!$INSTALL_DATA$ac_delim
  48572. -CYGPATH_W!$CYGPATH_W$ac_delim
  48573. -PACKAGE!$PACKAGE$ac_delim
  48574. -VERSION!$VERSION$ac_delim
  48575. -ACLOCAL!$ACLOCAL$ac_delim
  48576. -AUTOCONF!$AUTOCONF$ac_delim
  48577. -AUTOMAKE!$AUTOMAKE$ac_delim
  48578. -AUTOHEADER!$AUTOHEADER$ac_delim
  48579. -MAKEINFO!$MAKEINFO$ac_delim
  48580. -install_sh!$install_sh$ac_delim
  48581. -STRIP!$STRIP$ac_delim
  48582. -INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
  48583. -mkdir_p!$mkdir_p$ac_delim
  48584. -AWK!$AWK$ac_delim
  48585. -SET_MAKE!$SET_MAKE$ac_delim
  48586. -am__leading_dot!$am__leading_dot$ac_delim
  48587. -AMTAR!$AMTAR$ac_delim
  48588. -am__tar!$am__tar$ac_delim
  48589. -am__untar!$am__untar$ac_delim
  48590. -build!$build$ac_delim
  48591. -build_cpu!$build_cpu$ac_delim
  48592. -build_vendor!$build_vendor$ac_delim
  48593. -build_os!$build_os$ac_delim
  48594. -host!$host$ac_delim
  48595. -host_cpu!$host_cpu$ac_delim
  48596. -host_vendor!$host_vendor$ac_delim
  48597. -host_os!$host_os$ac_delim
  48598. -CC!$CC$ac_delim
  48599. -CFLAGS!$CFLAGS$ac_delim
  48600. -LDFLAGS!$LDFLAGS$ac_delim
  48601. -CPPFLAGS!$CPPFLAGS$ac_delim
  48602. -ac_ct_CC!$ac_ct_CC$ac_delim
  48603. -EXEEXT!$EXEEXT$ac_delim
  48604. -OBJEXT!$OBJEXT$ac_delim
  48605. -DEPDIR!$DEPDIR$ac_delim
  48606. -am__include!$am__include$ac_delim
  48607. -am__quote!$am__quote$ac_delim
  48608. -AMDEP_TRUE!$AMDEP_TRUE$ac_delim
  48609. -AMDEP_FALSE!$AMDEP_FALSE$ac_delim
  48610. -AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
  48611. -CCDEPMODE!$CCDEPMODE$ac_delim
  48612. -am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
  48613. -am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
  48614. -SED!$SED$ac_delim
  48615. -GREP!$GREP$ac_delim
  48616. -EGREP!$EGREP$ac_delim
  48617. -LN_S!$LN_S$ac_delim
  48618. -ECHO!$ECHO$ac_delim
  48619. -AR!$AR$ac_delim
  48620. -RANLIB!$RANLIB$ac_delim
  48621. -CPP!$CPP$ac_delim
  48622. -CXX!$CXX$ac_delim
  48623. -CXXFLAGS!$CXXFLAGS$ac_delim
  48624. -ac_ct_CXX!$ac_ct_CXX$ac_delim
  48625. -CXXDEPMODE!$CXXDEPMODE$ac_delim
  48626. -am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
  48627. -am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
  48628. -CXXCPP!$CXXCPP$ac_delim
  48629. -_ACEOF
  48630. +# Whether we need a single "-rpath" flag with a separated argument.
  48631. +hardcode_libdir_separator=$lt_hardcode_libdir_separator
  48632. - if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
  48633. - break
  48634. - elif $ac_last_try; then
  48635. - { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
  48636. -echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
  48637. - { (exit 1); exit 1; }; }
  48638. - else
  48639. - ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  48640. - fi
  48641. -done
  48642. +# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  48643. +# DIR into the resulting binary.
  48644. +hardcode_direct=$hardcode_direct
  48645. -ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
  48646. -if test -n "$ac_eof"; then
  48647. - ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
  48648. - ac_eof=`expr $ac_eof + 1`
  48649. -fi
  48650. +# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  48651. +# DIR into the resulting binary and the resulting library dependency is
  48652. +# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  48653. +# library is relocated.
  48654. +hardcode_direct_absolute=$hardcode_direct_absolute
  48655. -cat >>$CONFIG_STATUS <<_ACEOF
  48656. -cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
  48657. -/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  48658. -_ACEOF
  48659. -sed '
  48660. -s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
  48661. -s/^/s,@/; s/!/@,|#_!!_#|/
  48662. -:n
  48663. -t n
  48664. -s/'"$ac_delim"'$/,g/; t
  48665. -s/$/\\/; p
  48666. -N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
  48667. -' >>$CONFIG_STATUS <conf$$subs.sed
  48668. -rm -f conf$$subs.sed
  48669. -cat >>$CONFIG_STATUS <<_ACEOF
  48670. -CEOF$ac_eof
  48671. -_ACEOF
  48672. +# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  48673. +# into the resulting binary.
  48674. +hardcode_minus_L=$hardcode_minus_L
  48675. +# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  48676. +# into the resulting binary.
  48677. +hardcode_shlibpath_var=$hardcode_shlibpath_var
  48678. -ac_delim='%!_!# '
  48679. -for ac_last_try in false false false false false :; do
  48680. - cat >conf$$subs.sed <<_ACEOF
  48681. -F77!$F77$ac_delim
  48682. -FFLAGS!$FFLAGS$ac_delim
  48683. -ac_ct_F77!$ac_ct_F77$ac_delim
  48684. -LIBTOOL!$LIBTOOL$ac_delim
  48685. -LIBOBJS!$LIBOBJS$ac_delim
  48686. -LTLIBOBJS!$LTLIBOBJS$ac_delim
  48687. -_ACEOF
  48688. +# Set to "yes" if building a shared library automatically hardcodes DIR
  48689. +# into the library and all subsequent libraries and executables linked
  48690. +# against it.
  48691. +hardcode_automatic=$hardcode_automatic
  48692. - if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 6; then
  48693. - break
  48694. - elif $ac_last_try; then
  48695. - { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
  48696. -echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
  48697. - { (exit 1); exit 1; }; }
  48698. - else
  48699. - ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  48700. - fi
  48701. -done
  48702. +# Set to yes if linker adds runtime paths of dependent libraries
  48703. +# to runtime path list.
  48704. +inherit_rpath=$inherit_rpath
  48705. -ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
  48706. -if test -n "$ac_eof"; then
  48707. - ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
  48708. - ac_eof=`expr $ac_eof + 1`
  48709. -fi
  48710. -
  48711. -cat >>$CONFIG_STATUS <<_ACEOF
  48712. -cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
  48713. -/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
  48714. -_ACEOF
  48715. -sed '
  48716. -s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
  48717. -s/^/s,@/; s/!/@,|#_!!_#|/
  48718. -:n
  48719. -t n
  48720. -s/'"$ac_delim"'$/,g/; t
  48721. -s/$/\\/; p
  48722. -N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
  48723. -' >>$CONFIG_STATUS <conf$$subs.sed
  48724. -rm -f conf$$subs.sed
  48725. -cat >>$CONFIG_STATUS <<_ACEOF
  48726. -:end
  48727. -s/|#_!!_#|//g
  48728. -CEOF$ac_eof
  48729. -_ACEOF
  48730. +# Whether libtool must link a program against all its dependency libraries.
  48731. +link_all_deplibs=$link_all_deplibs
  48732. +# Fix the shell variable \$srcfile for the compiler.
  48733. +fix_srcfile_path=$lt_fix_srcfile_path
  48734. -# VPATH may cause trouble with some makes, so we remove $(srcdir),
  48735. -# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
  48736. -# trailing colons and then remove the whole line if VPATH becomes empty
  48737. -# (actually we leave an empty line to preserve line numbers).
  48738. -if test "x$srcdir" = x.; then
  48739. - ac_vpsub='/^[ ]*VPATH[ ]*=/{
  48740. -s/:*\$(srcdir):*/:/
  48741. -s/:*\${srcdir}:*/:/
  48742. -s/:*@srcdir@:*/:/
  48743. -s/^\([^=]*=[ ]*\):*/\1/
  48744. -s/:*$//
  48745. -s/^[^=]*=[ ]*$//
  48746. -}'
  48747. -fi
  48748. +# Set to "yes" if exported symbols are required.
  48749. +always_export_symbols=$always_export_symbols
  48750. -cat >>$CONFIG_STATUS <<\_ACEOF
  48751. -fi # test -n "$CONFIG_FILES"
  48752. +# The commands to list exported symbols.
  48753. +export_symbols_cmds=$lt_export_symbols_cmds
  48754. +# Symbols that should not be listed in the preloaded symbols.
  48755. +exclude_expsyms=$lt_exclude_expsyms
  48756. -for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
  48757. -do
  48758. - case $ac_tag in
  48759. - :[FHLC]) ac_mode=$ac_tag; continue;;
  48760. - esac
  48761. - case $ac_mode$ac_tag in
  48762. - :[FHL]*:*);;
  48763. - :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
  48764. -echo "$as_me: error: Invalid tag $ac_tag." >&2;}
  48765. - { (exit 1); exit 1; }; };;
  48766. - :[FH]-) ac_tag=-:-;;
  48767. - :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  48768. - esac
  48769. - ac_save_IFS=$IFS
  48770. - IFS=:
  48771. - set x $ac_tag
  48772. - IFS=$ac_save_IFS
  48773. - shift
  48774. - ac_file=$1
  48775. - shift
  48776. +# Symbols that must always be exported.
  48777. +include_expsyms=$lt_include_expsyms
  48778. - case $ac_mode in
  48779. - :L) ac_source=$1;;
  48780. - :[FH])
  48781. - ac_file_inputs=
  48782. - for ac_f
  48783. - do
  48784. - case $ac_f in
  48785. - -) ac_f="$tmp/stdin";;
  48786. - *) # Look for the file first in the build tree, then in the source tree
  48787. - # (if the path is not absolute). The absolute path cannot be DOS-style,
  48788. - # because $ac_f cannot contain `:'.
  48789. - test -f "$ac_f" ||
  48790. - case $ac_f in
  48791. - [\\/$]*) false;;
  48792. - *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  48793. - esac ||
  48794. - { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
  48795. -echo "$as_me: error: cannot find input file: $ac_f" >&2;}
  48796. - { (exit 1); exit 1; }; };;
  48797. - esac
  48798. - ac_file_inputs="$ac_file_inputs $ac_f"
  48799. - done
  48800. +# Commands necessary for linking programs (against libraries) with templates.
  48801. +prelink_cmds=$lt_prelink_cmds
  48802. - # Let's still pretend it is `configure' which instantiates (i.e., don't
  48803. - # use $as_me), people would be surprised to read:
  48804. - # /* config.h. Generated by config.status. */
  48805. - configure_input="Generated from "`IFS=:
  48806. - echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
  48807. - if test x"$ac_file" != x-; then
  48808. - configure_input="$ac_file. $configure_input"
  48809. - { echo "$as_me:$LINENO: creating $ac_file" >&5
  48810. -echo "$as_me: creating $ac_file" >&6;}
  48811. - fi
  48812. +# Specify filename containing input files.
  48813. +file_list_spec=$lt_file_list_spec
  48814. - case $ac_tag in
  48815. - *:-:* | *:-) cat >"$tmp/stdin";;
  48816. - esac
  48817. - ;;
  48818. - esac
  48819. +# How to hardcode a shared library path into an executable.
  48820. +hardcode_action=$hardcode_action
  48821. - ac_dir=`$as_dirname -- "$ac_file" ||
  48822. -$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  48823. - X"$ac_file" : 'X\(//\)[^/]' \| \
  48824. - X"$ac_file" : 'X\(//\)$' \| \
  48825. - X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  48826. -echo X"$ac_file" |
  48827. - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  48828. - s//\1/
  48829. - q
  48830. - }
  48831. - /^X\(\/\/\)[^/].*/{
  48832. - s//\1/
  48833. - q
  48834. - }
  48835. - /^X\(\/\/\)$/{
  48836. - s//\1/
  48837. - q
  48838. - }
  48839. - /^X\(\/\).*/{
  48840. - s//\1/
  48841. - q
  48842. - }
  48843. - s/.*/./; q'`
  48844. - { as_dir="$ac_dir"
  48845. - case $as_dir in #(
  48846. - -*) as_dir=./$as_dir;;
  48847. - esac
  48848. - test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
  48849. - as_dirs=
  48850. - while :; do
  48851. - case $as_dir in #(
  48852. - *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
  48853. - *) as_qdir=$as_dir;;
  48854. - esac
  48855. - as_dirs="'$as_qdir' $as_dirs"
  48856. - as_dir=`$as_dirname -- "$as_dir" ||
  48857. -$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  48858. - X"$as_dir" : 'X\(//\)[^/]' \| \
  48859. - X"$as_dir" : 'X\(//\)$' \| \
  48860. - X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  48861. -echo X"$as_dir" |
  48862. - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  48863. - s//\1/
  48864. - q
  48865. - }
  48866. - /^X\(\/\/\)[^/].*/{
  48867. - s//\1/
  48868. - q
  48869. - }
  48870. - /^X\(\/\/\)$/{
  48871. - s//\1/
  48872. - q
  48873. - }
  48874. - /^X\(\/\).*/{
  48875. - s//\1/
  48876. - q
  48877. - }
  48878. - s/.*/./; q'`
  48879. - test -d "$as_dir" && break
  48880. - done
  48881. - test -z "$as_dirs" || eval "mkdir $as_dirs"
  48882. - } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
  48883. -echo "$as_me: error: cannot create directory $as_dir" >&2;}
  48884. - { (exit 1); exit 1; }; }; }
  48885. - ac_builddir=.
  48886. +# ### END LIBTOOL CONFIG
  48887. -case "$ac_dir" in
  48888. -.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  48889. -*)
  48890. - ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  48891. - # A ".." for each directory in $ac_dir_suffix.
  48892. - ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
  48893. - case $ac_top_builddir_sub in
  48894. - "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  48895. - *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  48896. - esac ;;
  48897. -esac
  48898. -ac_abs_top_builddir=$ac_pwd
  48899. -ac_abs_builddir=$ac_pwd$ac_dir_suffix
  48900. -# for backward compatibility:
  48901. -ac_top_builddir=$ac_top_build_prefix
  48902. +_LT_EOF
  48903. -case $srcdir in
  48904. - .) # We are building in place.
  48905. - ac_srcdir=.
  48906. - ac_top_srcdir=$ac_top_builddir_sub
  48907. - ac_abs_top_srcdir=$ac_pwd ;;
  48908. - [\\/]* | ?:[\\/]* ) # Absolute name.
  48909. - ac_srcdir=$srcdir$ac_dir_suffix;
  48910. - ac_top_srcdir=$srcdir
  48911. - ac_abs_top_srcdir=$srcdir ;;
  48912. - *) # Relative name.
  48913. - ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  48914. - ac_top_srcdir=$ac_top_build_prefix$srcdir
  48915. - ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  48916. -esac
  48917. -ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  48918. + case $host_os in
  48919. + aix3*)
  48920. + cat <<\_LT_EOF >> "$cfgfile"
  48921. +# AIX sometimes has problems with the GCC collect2 program. For some
  48922. +# reason, if we set the COLLECT_NAMES environment variable, the problems
  48923. +# vanish in a puff of smoke.
  48924. +if test "X${COLLECT_NAMES+set}" != Xset; then
  48925. + COLLECT_NAMES=
  48926. + export COLLECT_NAMES
  48927. +fi
  48928. +_LT_EOF
  48929. + ;;
  48930. + esac
  48931. - case $ac_mode in
  48932. - :F)
  48933. - #
  48934. - # CONFIG_FILE
  48935. - #
  48936. +ltmain="$ac_aux_dir/ltmain.sh"
  48937. - case $INSTALL in
  48938. - [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  48939. - *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  48940. +
  48941. + # We use sed instead of cat because bash on DJGPP gets confused if
  48942. + # if finds mixed CR/LF and LF-only lines. Since sed operates in
  48943. + # text mode, it properly converts lines to CR/LF. This bash problem
  48944. + # is reportedly fixed, but why not run on old versions too?
  48945. + sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
  48946. + || (rm -f "$cfgfile"; exit 1)
  48947. +
  48948. + case $xsi_shell in
  48949. + yes)
  48950. + cat << \_LT_EOF >> "$cfgfile"
  48951. +
  48952. +# func_dirname file append nondir_replacement
  48953. +# Compute the dirname of FILE. If nonempty, add APPEND to the result,
  48954. +# otherwise set result to NONDIR_REPLACEMENT.
  48955. +func_dirname ()
  48956. +{
  48957. + case ${1} in
  48958. + */*) func_dirname_result="${1%/*}${2}" ;;
  48959. + * ) func_dirname_result="${3}" ;;
  48960. esac
  48961. -_ACEOF
  48962. +}
  48963. -cat >>$CONFIG_STATUS <<\_ACEOF
  48964. -# If the template does not know about datarootdir, expand it.
  48965. -# FIXME: This hack should be removed a few years after 2.60.
  48966. -ac_datarootdir_hack=; ac_datarootdir_seen=
  48967. +# func_basename file
  48968. +func_basename ()
  48969. +{
  48970. + func_basename_result="${1##*/}"
  48971. +}
  48972. -case `sed -n '/datarootdir/ {
  48973. - p
  48974. - q
  48975. +# func_dirname_and_basename file append nondir_replacement
  48976. +# perform func_basename and func_dirname in a single function
  48977. +# call:
  48978. +# dirname: Compute the dirname of FILE. If nonempty,
  48979. +# add APPEND to the result, otherwise set result
  48980. +# to NONDIR_REPLACEMENT.
  48981. +# value returned in "$func_dirname_result"
  48982. +# basename: Compute filename of FILE.
  48983. +# value retuned in "$func_basename_result"
  48984. +# Implementation must be kept synchronized with func_dirname
  48985. +# and func_basename. For efficiency, we do not delegate to
  48986. +# those functions but instead duplicate the functionality here.
  48987. +func_dirname_and_basename ()
  48988. +{
  48989. + case ${1} in
  48990. + */*) func_dirname_result="${1%/*}${2}" ;;
  48991. + * ) func_dirname_result="${3}" ;;
  48992. + esac
  48993. + func_basename_result="${1##*/}"
  48994. }
  48995. -/@datadir@/p
  48996. -/@docdir@/p
  48997. -/@infodir@/p
  48998. -/@localedir@/p
  48999. -/@mandir@/p
  49000. -' $ac_file_inputs` in
  49001. -*datarootdir*) ac_datarootdir_seen=yes;;
  49002. -*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  49003. - { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  49004. -echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  49005. -_ACEOF
  49006. -cat >>$CONFIG_STATUS <<_ACEOF
  49007. - ac_datarootdir_hack='
  49008. - s&@datadir@&$datadir&g
  49009. - s&@docdir@&$docdir&g
  49010. - s&@infodir@&$infodir&g
  49011. - s&@localedir@&$localedir&g
  49012. - s&@mandir@&$mandir&g
  49013. - s&\\\${datarootdir}&$datarootdir&g' ;;
  49014. -esac
  49015. -_ACEOF
  49016. -# Neutralize VPATH when `$srcdir' = `.'.
  49017. -# Shell code in configure.ac might set extrasub.
  49018. -# FIXME: do we really want to maintain this feature?
  49019. -cat >>$CONFIG_STATUS <<_ACEOF
  49020. - sed "$ac_vpsub
  49021. -$extrasub
  49022. -_ACEOF
  49023. -cat >>$CONFIG_STATUS <<\_ACEOF
  49024. -:t
  49025. -/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  49026. -s&@configure_input@&$configure_input&;t t
  49027. -s&@top_builddir@&$ac_top_builddir_sub&;t t
  49028. -s&@srcdir@&$ac_srcdir&;t t
  49029. -s&@abs_srcdir@&$ac_abs_srcdir&;t t
  49030. -s&@top_srcdir@&$ac_top_srcdir&;t t
  49031. -s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  49032. -s&@builddir@&$ac_builddir&;t t
  49033. -s&@abs_builddir@&$ac_abs_builddir&;t t
  49034. -s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  49035. -s&@INSTALL@&$ac_INSTALL&;t t
  49036. -$ac_datarootdir_hack
  49037. -" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
  49038. +# func_stripname prefix suffix name
  49039. +# strip PREFIX and SUFFIX off of NAME.
  49040. +# PREFIX and SUFFIX must not contain globbing or regex special
  49041. +# characters, hashes, percent signs, but SUFFIX may contain a leading
  49042. +# dot (in which case that matches only a dot).
  49043. +func_stripname ()
  49044. +{
  49045. + # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
  49046. + # positional parameters, so assign one to ordinary parameter first.
  49047. + func_stripname_result=${3}
  49048. + func_stripname_result=${func_stripname_result#"${1}"}
  49049. + func_stripname_result=${func_stripname_result%"${2}"}
  49050. +}
  49051. -test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  49052. - { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
  49053. - { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
  49054. - { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  49055. -which seems to be undefined. Please make sure it is defined." >&5
  49056. -echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  49057. -which seems to be undefined. Please make sure it is defined." >&2;}
  49058. +# func_opt_split
  49059. +func_opt_split ()
  49060. +{
  49061. + func_opt_split_opt=${1%%=*}
  49062. + func_opt_split_arg=${1#*=}
  49063. +}
  49064. - rm -f "$tmp/stdin"
  49065. - case $ac_file in
  49066. - -) cat "$tmp/out"; rm -f "$tmp/out";;
  49067. - *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
  49068. +# func_lo2o object
  49069. +func_lo2o ()
  49070. +{
  49071. + case ${1} in
  49072. + *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
  49073. + *) func_lo2o_result=${1} ;;
  49074. esac
  49075. - ;;
  49076. - :H)
  49077. - #
  49078. - # CONFIG_HEADER
  49079. - #
  49080. -_ACEOF
  49081. +}
  49082. -# Transform confdefs.h into a sed script `conftest.defines', that
  49083. -# substitutes the proper values into config.h.in to produce config.h.
  49084. -rm -f conftest.defines conftest.tail
  49085. -# First, append a space to every undef/define line, to ease matching.
  49086. -echo 's/$/ /' >conftest.defines
  49087. -# Then, protect against being on the right side of a sed subst, or in
  49088. -# an unquoted here document, in config.status. If some macros were
  49089. -# called several times there might be several #defines for the same
  49090. -# symbol, which is useless. But do not sort them, since the last
  49091. -# AC_DEFINE must be honored.
  49092. -ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  49093. -# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
  49094. -# NAME is the cpp macro being defined, VALUE is the value it is being given.
  49095. -# PARAMS is the parameter list in the macro definition--in most cases, it's
  49096. -# just an empty string.
  49097. -ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
  49098. -ac_dB='\\)[ (].*,\\1define\\2'
  49099. -ac_dC=' '
  49100. -ac_dD=' ,'
  49101. +# func_xform libobj-or-source
  49102. +func_xform ()
  49103. +{
  49104. + func_xform_result=${1%.*}.lo
  49105. +}
  49106. -uniq confdefs.h |
  49107. - sed -n '
  49108. - t rset
  49109. - :rset
  49110. - s/^[ ]*#[ ]*define[ ][ ]*//
  49111. - t ok
  49112. - d
  49113. - :ok
  49114. - s/[\\&,]/\\&/g
  49115. - s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
  49116. - s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
  49117. - ' >>conftest.defines
  49118. -
  49119. -# Remove the space that was appended to ease matching.
  49120. -# Then replace #undef with comments. This is necessary, for
  49121. -# example, in the case of _POSIX_SOURCE, which is predefined and required
  49122. -# on some systems where configure will not decide to define it.
  49123. -# (The regexp can be short, since the line contains either #define or #undef.)
  49124. -echo 's/ $//
  49125. -s,^[ #]*u.*,/* & */,' >>conftest.defines
  49126. -
  49127. -# Break up conftest.defines:
  49128. -ac_max_sed_lines=50
  49129. -
  49130. -# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
  49131. -# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
  49132. -# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
  49133. -# et cetera.
  49134. -ac_in='$ac_file_inputs'
  49135. -ac_out='"$tmp/out1"'
  49136. -ac_nxt='"$tmp/out2"'
  49137. +# func_arith arithmetic-term...
  49138. +func_arith ()
  49139. +{
  49140. + func_arith_result=$(( $* ))
  49141. +}
  49142. -while :
  49143. -do
  49144. - # Write a here document:
  49145. - cat >>$CONFIG_STATUS <<_ACEOF
  49146. - # First, check the format of the line:
  49147. - cat >"\$tmp/defines.sed" <<\\CEOF
  49148. -/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
  49149. -/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
  49150. -b
  49151. -:def
  49152. -_ACEOF
  49153. - sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
  49154. - echo 'CEOF
  49155. - sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
  49156. - ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
  49157. - sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
  49158. - grep . conftest.tail >/dev/null || break
  49159. - rm -f conftest.defines
  49160. - mv conftest.tail conftest.defines
  49161. -done
  49162. -rm -f conftest.defines conftest.tail
  49163. +# func_len string
  49164. +# STRING may not start with a hyphen.
  49165. +func_len ()
  49166. +{
  49167. + func_len_result=${#1}
  49168. +}
  49169. -echo "ac_result=$ac_in" >>$CONFIG_STATUS
  49170. -cat >>$CONFIG_STATUS <<\_ACEOF
  49171. - if test x"$ac_file" != x-; then
  49172. - echo "/* $configure_input */" >"$tmp/config.h"
  49173. - cat "$ac_result" >>"$tmp/config.h"
  49174. - if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
  49175. - { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
  49176. -echo "$as_me: $ac_file is unchanged" >&6;}
  49177. - else
  49178. - rm -f $ac_file
  49179. - mv "$tmp/config.h" $ac_file
  49180. - fi
  49181. +_LT_EOF
  49182. + ;;
  49183. + *) # Bourne compatible functions.
  49184. + cat << \_LT_EOF >> "$cfgfile"
  49185. +
  49186. +# func_dirname file append nondir_replacement
  49187. +# Compute the dirname of FILE. If nonempty, add APPEND to the result,
  49188. +# otherwise set result to NONDIR_REPLACEMENT.
  49189. +func_dirname ()
  49190. +{
  49191. + # Extract subdirectory from the argument.
  49192. + func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
  49193. + if test "X$func_dirname_result" = "X${1}"; then
  49194. + func_dirname_result="${3}"
  49195. else
  49196. - echo "/* $configure_input */"
  49197. - cat "$ac_result"
  49198. + func_dirname_result="$func_dirname_result${2}"
  49199. fi
  49200. - rm -f "$tmp/out12"
  49201. -# Compute $ac_file's index in $config_headers.
  49202. -_am_stamp_count=1
  49203. -for _am_header in $config_headers :; do
  49204. - case $_am_header in
  49205. - $ac_file | $ac_file:* )
  49206. - break ;;
  49207. - * )
  49208. - _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  49209. - esac
  49210. -done
  49211. -echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
  49212. -$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  49213. - X$ac_file : 'X\(//\)[^/]' \| \
  49214. - X$ac_file : 'X\(//\)$' \| \
  49215. - X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
  49216. -echo X$ac_file |
  49217. - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  49218. - s//\1/
  49219. - q
  49220. - }
  49221. - /^X\(\/\/\)[^/].*/{
  49222. - s//\1/
  49223. - q
  49224. - }
  49225. - /^X\(\/\/\)$/{
  49226. - s//\1/
  49227. - q
  49228. - }
  49229. - /^X\(\/\).*/{
  49230. - s//\1/
  49231. - q
  49232. - }
  49233. - s/.*/./; q'`/stamp-h$_am_stamp_count
  49234. - ;;
  49235. +}
  49236. - :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
  49237. -echo "$as_me: executing $ac_file commands" >&6;}
  49238. - ;;
  49239. +# func_basename file
  49240. +func_basename ()
  49241. +{
  49242. + func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
  49243. +}
  49244. +
  49245. +
  49246. +# func_stripname prefix suffix name
  49247. +# strip PREFIX and SUFFIX off of NAME.
  49248. +# PREFIX and SUFFIX must not contain globbing or regex special
  49249. +# characters, hashes, percent signs, but SUFFIX may contain a leading
  49250. +# dot (in which case that matches only a dot).
  49251. +# func_strip_suffix prefix name
  49252. +func_stripname ()
  49253. +{
  49254. + case ${2} in
  49255. + .*) func_stripname_result=`$ECHO "X${3}" \
  49256. + | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
  49257. + *) func_stripname_result=`$ECHO "X${3}" \
  49258. + | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
  49259. esac
  49260. +}
  49261. +# sed scripts:
  49262. +my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
  49263. +my_sed_long_arg='1s/^-[^=]*=//'
  49264. - case $ac_file$ac_mode in
  49265. - "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
  49266. - # Strip MF so we end up with the name of the file.
  49267. - mf=`echo "$mf" | sed -e 's/:.*$//'`
  49268. - # Check whether this is an Automake generated Makefile or not.
  49269. - # We used to match only the files named `Makefile.in', but
  49270. - # some people rename them; so instead we look at the file content.
  49271. - # Grep'ing the first line is not enough: some people post-process
  49272. - # each Makefile.in and add a new line on top of each file to say so.
  49273. - # So let's grep whole file.
  49274. - if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
  49275. - dirpart=`$as_dirname -- "$mf" ||
  49276. -$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  49277. - X"$mf" : 'X\(//\)[^/]' \| \
  49278. - X"$mf" : 'X\(//\)$' \| \
  49279. - X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
  49280. -echo X"$mf" |
  49281. - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  49282. - s//\1/
  49283. - q
  49284. - }
  49285. - /^X\(\/\/\)[^/].*/{
  49286. - s//\1/
  49287. - q
  49288. - }
  49289. - /^X\(\/\/\)$/{
  49290. - s//\1/
  49291. - q
  49292. - }
  49293. - /^X\(\/\).*/{
  49294. - s//\1/
  49295. - q
  49296. - }
  49297. - s/.*/./; q'`
  49298. - else
  49299. - continue
  49300. - fi
  49301. - # Extract the definition of DEPDIR, am__include, and am__quote
  49302. - # from the Makefile without running `make'.
  49303. - DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  49304. - test -z "$DEPDIR" && continue
  49305. - am__include=`sed -n 's/^am__include = //p' < "$mf"`
  49306. - test -z "am__include" && continue
  49307. - am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  49308. - # When using ansi2knr, U may be empty or an underscore; expand it
  49309. - U=`sed -n 's/^U = //p' < "$mf"`
  49310. - # Find all dependency output files, they are included files with
  49311. - # $(DEPDIR) in their names. We invoke sed twice because it is the
  49312. - # simplest approach to changing $(DEPDIR) to its actual value in the
  49313. - # expansion.
  49314. - for file in `sed -n "
  49315. - s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  49316. - sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
  49317. - # Make sure the directory exists.
  49318. - test -f "$dirpart/$file" && continue
  49319. - fdir=`$as_dirname -- "$file" ||
  49320. -$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  49321. - X"$file" : 'X\(//\)[^/]' \| \
  49322. - X"$file" : 'X\(//\)$' \| \
  49323. - X"$file" : 'X\(/\)' \| . 2>/dev/null ||
  49324. -echo X"$file" |
  49325. - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  49326. - s//\1/
  49327. - q
  49328. - }
  49329. - /^X\(\/\/\)[^/].*/{
  49330. - s//\1/
  49331. - q
  49332. - }
  49333. - /^X\(\/\/\)$/{
  49334. - s//\1/
  49335. - q
  49336. - }
  49337. - /^X\(\/\).*/{
  49338. - s//\1/
  49339. - q
  49340. - }
  49341. - s/.*/./; q'`
  49342. - { as_dir=$dirpart/$fdir
  49343. - case $as_dir in #(
  49344. - -*) as_dir=./$as_dir;;
  49345. +# func_opt_split
  49346. +func_opt_split ()
  49347. +{
  49348. + func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
  49349. + func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
  49350. +}
  49351. +
  49352. +# func_lo2o object
  49353. +func_lo2o ()
  49354. +{
  49355. + func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
  49356. +}
  49357. +
  49358. +# func_xform libobj-or-source
  49359. +func_xform ()
  49360. +{
  49361. + func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
  49362. +}
  49363. +
  49364. +# func_arith arithmetic-term...
  49365. +func_arith ()
  49366. +{
  49367. + func_arith_result=`expr "$@"`
  49368. +}
  49369. +
  49370. +# func_len string
  49371. +# STRING may not start with a hyphen.
  49372. +func_len ()
  49373. +{
  49374. + func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
  49375. +}
  49376. +
  49377. +_LT_EOF
  49378. +esac
  49379. +
  49380. +case $lt_shell_append in
  49381. + yes)
  49382. + cat << \_LT_EOF >> "$cfgfile"
  49383. +
  49384. +# func_append var value
  49385. +# Append VALUE to the end of shell variable VAR.
  49386. +func_append ()
  49387. +{
  49388. + eval "$1+=\$2"
  49389. +}
  49390. +_LT_EOF
  49391. + ;;
  49392. + *)
  49393. + cat << \_LT_EOF >> "$cfgfile"
  49394. +
  49395. +# func_append var value
  49396. +# Append VALUE to the end of shell variable VAR.
  49397. +func_append ()
  49398. +{
  49399. + eval "$1=\$$1\$2"
  49400. +}
  49401. +
  49402. +_LT_EOF
  49403. + ;;
  49404. esac
  49405. - test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
  49406. - as_dirs=
  49407. - while :; do
  49408. - case $as_dir in #(
  49409. - *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
  49410. - *) as_qdir=$as_dir;;
  49411. - esac
  49412. - as_dirs="'$as_qdir' $as_dirs"
  49413. - as_dir=`$as_dirname -- "$as_dir" ||
  49414. -$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  49415. - X"$as_dir" : 'X\(//\)[^/]' \| \
  49416. - X"$as_dir" : 'X\(//\)$' \| \
  49417. - X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  49418. -echo X"$as_dir" |
  49419. - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  49420. - s//\1/
  49421. - q
  49422. - }
  49423. - /^X\(\/\/\)[^/].*/{
  49424. - s//\1/
  49425. - q
  49426. - }
  49427. - /^X\(\/\/\)$/{
  49428. - s//\1/
  49429. - q
  49430. - }
  49431. - /^X\(\/\).*/{
  49432. - s//\1/
  49433. - q
  49434. - }
  49435. - s/.*/./; q'`
  49436. - test -d "$as_dir" && break
  49437. - done
  49438. - test -z "$as_dirs" || eval "mkdir $as_dirs"
  49439. - } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
  49440. -echo "$as_me: error: cannot create directory $as_dir" >&2;}
  49441. - { (exit 1); exit 1; }; }; }
  49442. - # echo "creating $dirpart/$file"
  49443. - echo '# dummy' > "$dirpart/$file"
  49444. - done
  49445. -done
  49446. +
  49447. +
  49448. + sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
  49449. + || (rm -f "$cfgfile"; exit 1)
  49450. +
  49451. + mv -f "$cfgfile" "$ofile" ||
  49452. + (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  49453. + chmod +x "$ofile"
  49454. +
  49455. ;;
  49456. esac
  49457. done # for ac_tag
  49458. -{ (exit 0); exit 0; }
  49459. +as_fn_exit 0
  49460. _ACEOF
  49461. -chmod +x $CONFIG_STATUS
  49462. ac_clean_files=$ac_clean_files_save
  49463. +test $ac_write_fail = 0 ||
  49464. + as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
  49465. +
  49466. # configure is writing to config.log, and then calls config.status.
  49467. # config.status does its own redirection, appending to config.log.
  49468. @@ -25463,6 +14328,10 @@
  49469. exec 5>>config.log
  49470. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  49471. # would make configure fail if this is the last instruction.
  49472. - $ac_cs_success || { (exit 1); exit 1; }
  49473. + $ac_cs_success || as_fn_exit $?
  49474. +fi
  49475. +if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  49476. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  49477. +$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  49478. fi
  49479. diff -Nur libgssglue-0.1.orig/depcomp libgssglue-0.1/depcomp
  49480. --- libgssglue-0.1.orig/depcomp 2007-09-04 15:39:45.000000000 +0200
  49481. +++ libgssglue-0.1/depcomp 2011-02-17 17:14:46.047314440 +0100
  49482. @@ -1,9 +1,10 @@
  49483. #! /bin/sh
  49484. # depcomp - compile a program generating dependencies as side-effects
  49485. -scriptversion=2005-07-09.11
  49486. +scriptversion=2009-04-28.21; # UTC
  49487. -# Copyright (C) 1999, 2000, 2003, 2004, 2005 Free Software Foundation, Inc.
  49488. +# Copyright (C) 1999, 2000, 2003, 2004, 2005, 2006, 2007, 2009 Free
  49489. +# Software Foundation, Inc.
  49490. # This program is free software; you can redistribute it and/or modify
  49491. # it under the terms of the GNU General Public License as published by
  49492. @@ -16,9 +17,7 @@
  49493. # GNU General Public License for more details.
  49494. # You should have received a copy of the GNU General Public License
  49495. -# along with this program; if not, write to the Free Software
  49496. -# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
  49497. -# 02110-1301, USA.
  49498. +# along with this program. If not, see <http://www.gnu.org/licenses/>.
  49499. # As a special exception to the GNU General Public License, if you
  49500. # distribute this file as part of a program that contains a
  49501. @@ -86,12 +85,34 @@
  49502. depmode=dashmstdout
  49503. fi
  49504. +cygpath_u="cygpath -u -f -"
  49505. +if test "$depmode" = msvcmsys; then
  49506. + # This is just like msvisualcpp but w/o cygpath translation.
  49507. + # Just convert the backslash-escaped backslashes to single forward
  49508. + # slashes to satisfy depend.m4
  49509. + cygpath_u="sed s,\\\\\\\\,/,g"
  49510. + depmode=msvisualcpp
  49511. +fi
  49512. +
  49513. case "$depmode" in
  49514. gcc3)
  49515. ## gcc 3 implements dependency tracking that does exactly what
  49516. ## we want. Yay! Note: for some reason libtool 1.4 doesn't like
  49517. ## it if -MD -MP comes after the -MF stuff. Hmm.
  49518. - "$@" -MT "$object" -MD -MP -MF "$tmpdepfile"
  49519. +## Unfortunately, FreeBSD c89 acceptance of flags depends upon
  49520. +## the command line argument order; so add the flags where they
  49521. +## appear in depend2.am. Note that the slowdown incurred here
  49522. +## affects only configure: in makefiles, %FASTDEP% shortcuts this.
  49523. + for arg
  49524. + do
  49525. + case $arg in
  49526. + -c) set fnord "$@" -MT "$object" -MD -MP -MF "$tmpdepfile" "$arg" ;;
  49527. + *) set fnord "$@" "$arg" ;;
  49528. + esac
  49529. + shift # fnord
  49530. + shift # $arg
  49531. + done
  49532. + "$@"
  49533. stat=$?
  49534. if test $stat -eq 0; then :
  49535. else
  49536. @@ -178,14 +199,14 @@
  49537. ' < "$tmpdepfile" \
  49538. | sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' | \
  49539. tr '
  49540. -' ' ' >> $depfile
  49541. - echo >> $depfile
  49542. +' ' ' >> "$depfile"
  49543. + echo >> "$depfile"
  49544. # The second pass generates a dummy entry for each header file.
  49545. tr ' ' '
  49546. ' < "$tmpdepfile" \
  49547. | sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' -e 's/$/:/' \
  49548. - >> $depfile
  49549. + >> "$depfile"
  49550. else
  49551. # The sourcefile does not contain any dependencies, so just
  49552. # store a dummy comment line, to avoid errors with the Makefile
  49553. @@ -201,34 +222,39 @@
  49554. # current directory. Also, the AIX compiler puts `$object:' at the
  49555. # start of each line; $object doesn't have directory information.
  49556. # Version 6 uses the directory in both cases.
  49557. - stripped=`echo "$object" | sed 's/\(.*\)\..*$/\1/'`
  49558. - tmpdepfile="$stripped.u"
  49559. + dir=`echo "$object" | sed -e 's|/[^/]*$|/|'`
  49560. + test "x$dir" = "x$object" && dir=
  49561. + base=`echo "$object" | sed -e 's|^.*/||' -e 's/\.o$//' -e 's/\.lo$//'`
  49562. if test "$libtool" = yes; then
  49563. + tmpdepfile1=$dir$base.u
  49564. + tmpdepfile2=$base.u
  49565. + tmpdepfile3=$dir.libs/$base.u
  49566. "$@" -Wc,-M
  49567. else
  49568. + tmpdepfile1=$dir$base.u
  49569. + tmpdepfile2=$dir$base.u
  49570. + tmpdepfile3=$dir$base.u
  49571. "$@" -M
  49572. fi
  49573. stat=$?
  49574. - if test -f "$tmpdepfile"; then :
  49575. - else
  49576. - stripped=`echo "$stripped" | sed 's,^.*/,,'`
  49577. - tmpdepfile="$stripped.u"
  49578. - fi
  49579. -
  49580. if test $stat -eq 0; then :
  49581. else
  49582. - rm -f "$tmpdepfile"
  49583. + rm -f "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3"
  49584. exit $stat
  49585. fi
  49586. + for tmpdepfile in "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3"
  49587. + do
  49588. + test -f "$tmpdepfile" && break
  49589. + done
  49590. if test -f "$tmpdepfile"; then
  49591. - outname="$stripped.o"
  49592. # Each line is of the form `foo.o: dependent.h'.
  49593. # Do two passes, one to just change these to
  49594. # `$object: dependent.h' and one to simply `dependent.h:'.
  49595. - sed -e "s,^$outname:,$object :," < "$tmpdepfile" > "$depfile"
  49596. - sed -e "s,^$outname: \(.*\)$,\1:," < "$tmpdepfile" >> "$depfile"
  49597. + sed -e "s,^.*\.[a-z]*:,$object:," < "$tmpdepfile" > "$depfile"
  49598. + # That's a tab and a space in the [].
  49599. + sed -e 's,^.*\.[a-z]*:[ ]*,,' -e 's,$,:,' < "$tmpdepfile" >> "$depfile"
  49600. else
  49601. # The sourcefile does not contain any dependencies, so just
  49602. # store a dummy comment line, to avoid errors with the Makefile
  49603. @@ -276,6 +302,51 @@
  49604. rm -f "$tmpdepfile"
  49605. ;;
  49606. +hp2)
  49607. + # The "hp" stanza above does not work with aCC (C++) and HP's ia64
  49608. + # compilers, which have integrated preprocessors. The correct option
  49609. + # to use with these is +Maked; it writes dependencies to a file named
  49610. + # 'foo.d', which lands next to the object file, wherever that
  49611. + # happens to be.
  49612. + # Much of this is similar to the tru64 case; see comments there.
  49613. + dir=`echo "$object" | sed -e 's|/[^/]*$|/|'`
  49614. + test "x$dir" = "x$object" && dir=
  49615. + base=`echo "$object" | sed -e 's|^.*/||' -e 's/\.o$//' -e 's/\.lo$//'`
  49616. + if test "$libtool" = yes; then
  49617. + tmpdepfile1=$dir$base.d
  49618. + tmpdepfile2=$dir.libs/$base.d
  49619. + "$@" -Wc,+Maked
  49620. + else
  49621. + tmpdepfile1=$dir$base.d
  49622. + tmpdepfile2=$dir$base.d
  49623. + "$@" +Maked
  49624. + fi
  49625. + stat=$?
  49626. + if test $stat -eq 0; then :
  49627. + else
  49628. + rm -f "$tmpdepfile1" "$tmpdepfile2"
  49629. + exit $stat
  49630. + fi
  49631. +
  49632. + for tmpdepfile in "$tmpdepfile1" "$tmpdepfile2"
  49633. + do
  49634. + test -f "$tmpdepfile" && break
  49635. + done
  49636. + if test -f "$tmpdepfile"; then
  49637. + sed -e "s,^.*\.[a-z]*:,$object:," "$tmpdepfile" > "$depfile"
  49638. + # Add `dependent.h:' lines.
  49639. + sed -ne '2,${
  49640. + s/^ *//
  49641. + s/ \\*$//
  49642. + s/$/:/
  49643. + p
  49644. + }' "$tmpdepfile" >> "$depfile"
  49645. + else
  49646. + echo "#dummy" > "$depfile"
  49647. + fi
  49648. + rm -f "$tmpdepfile" "$tmpdepfile2"
  49649. + ;;
  49650. +
  49651. tru64)
  49652. # The Tru64 compiler uses -MD to generate dependencies as a side
  49653. # effect. `cc -MD -o foo.o ...' puts the dependencies into `foo.o.d'.
  49654. @@ -288,13 +359,13 @@
  49655. if test "$libtool" = yes; then
  49656. # With Tru64 cc, shared objects can also be used to make a
  49657. - # static library. This mecanism is used in libtool 1.4 series to
  49658. + # static library. This mechanism is used in libtool 1.4 series to
  49659. # handle both shared and static libraries in a single compilation.
  49660. # With libtool 1.4, dependencies were output in $dir.libs/$base.lo.d.
  49661. #
  49662. # With libtool 1.5 this exception was removed, and libtool now
  49663. # generates 2 separate objects for the 2 libraries. These two
  49664. - # compilations output dependencies in in $dir.libs/$base.o.d and
  49665. + # compilations output dependencies in $dir.libs/$base.o.d and
  49666. # in $dir$base.o.d. We have to check for both files, because
  49667. # one of the two compilations can be disabled. We should prefer
  49668. # $dir$base.o.d over $dir.libs/$base.o.d because the latter is
  49669. @@ -345,7 +416,7 @@
  49670. # Remove the call to Libtool.
  49671. if test "$libtool" = yes; then
  49672. - while test $1 != '--mode=compile'; do
  49673. + while test "X$1" != 'X--mode=compile'; do
  49674. shift
  49675. done
  49676. shift
  49677. @@ -396,32 +467,39 @@
  49678. "$@" || exit $?
  49679. # Remove any Libtool call
  49680. if test "$libtool" = yes; then
  49681. - while test $1 != '--mode=compile'; do
  49682. + while test "X$1" != 'X--mode=compile'; do
  49683. shift
  49684. done
  49685. shift
  49686. fi
  49687. # X makedepend
  49688. shift
  49689. - cleared=no
  49690. - for arg in "$@"; do
  49691. + cleared=no eat=no
  49692. + for arg
  49693. + do
  49694. case $cleared in
  49695. no)
  49696. set ""; shift
  49697. cleared=yes ;;
  49698. esac
  49699. + if test $eat = yes; then
  49700. + eat=no
  49701. + continue
  49702. + fi
  49703. case "$arg" in
  49704. -D*|-I*)
  49705. set fnord "$@" "$arg"; shift ;;
  49706. # Strip any option that makedepend may not understand. Remove
  49707. # the object too, otherwise makedepend will parse it as a source file.
  49708. + -arch)
  49709. + eat=yes ;;
  49710. -*|$object)
  49711. ;;
  49712. *)
  49713. set fnord "$@" "$arg"; shift ;;
  49714. esac
  49715. done
  49716. - obj_suffix="`echo $object | sed 's/^.*\././'`"
  49717. + obj_suffix=`echo "$object" | sed 's/^.*\././'`
  49718. touch "$tmpdepfile"
  49719. ${MAKEDEPEND-makedepend} -o"$obj_suffix" -f"$tmpdepfile" "$@"
  49720. rm -f "$depfile"
  49721. @@ -441,7 +519,7 @@
  49722. # Remove the call to Libtool.
  49723. if test "$libtool" = yes; then
  49724. - while test $1 != '--mode=compile'; do
  49725. + while test "X$1" != 'X--mode=compile'; do
  49726. shift
  49727. done
  49728. shift
  49729. @@ -479,13 +557,27 @@
  49730. msvisualcpp)
  49731. # Important note: in order to support this mode, a compiler *must*
  49732. - # always write the preprocessed file to stdout, regardless of -o,
  49733. - # because we must use -o when running libtool.
  49734. + # always write the preprocessed file to stdout.
  49735. "$@" || exit $?
  49736. +
  49737. + # Remove the call to Libtool.
  49738. + if test "$libtool" = yes; then
  49739. + while test "X$1" != 'X--mode=compile'; do
  49740. + shift
  49741. + done
  49742. + shift
  49743. + fi
  49744. +
  49745. IFS=" "
  49746. for arg
  49747. do
  49748. case "$arg" in
  49749. + -o)
  49750. + shift
  49751. + ;;
  49752. + $object)
  49753. + shift
  49754. + ;;
  49755. "-Gm"|"/Gm"|"-Gi"|"/Gi"|"-ZI"|"/ZI")
  49756. set fnord "$@"
  49757. shift
  49758. @@ -498,16 +590,23 @@
  49759. ;;
  49760. esac
  49761. done
  49762. - "$@" -E |
  49763. - sed -n '/^#line [0-9][0-9]* "\([^"]*\)"/ s::echo "`cygpath -u \\"\1\\"`":p' | sort | uniq > "$tmpdepfile"
  49764. + "$@" -E 2>/dev/null |
  49765. + sed -n '/^#line [0-9][0-9]* "\([^"]*\)"/ s::\1:p' | $cygpath_u | sort -u > "$tmpdepfile"
  49766. rm -f "$depfile"
  49767. echo "$object : \\" > "$depfile"
  49768. - . "$tmpdepfile" | sed 's% %\\ %g' | sed -n '/^\(.*\)$/ s:: \1 \\:p' >> "$depfile"
  49769. + sed < "$tmpdepfile" -n -e 's% %\\ %g' -e '/^\(.*\)$/ s:: \1 \\:p' >> "$depfile"
  49770. echo " " >> "$depfile"
  49771. - . "$tmpdepfile" | sed 's% %\\ %g' | sed -n '/^\(.*\)$/ s::\1\::p' >> "$depfile"
  49772. + sed < "$tmpdepfile" -n -e 's% %\\ %g' -e '/^\(.*\)$/ s::\1\::p' >> "$depfile"
  49773. rm -f "$tmpdepfile"
  49774. ;;
  49775. +msvcmsys)
  49776. + # This case exists only to let depend.m4 do its work. It works by
  49777. + # looking at the text of this script. This case will never be run,
  49778. + # since it is checked for above.
  49779. + exit 1
  49780. + ;;
  49781. +
  49782. none)
  49783. exec "$@"
  49784. ;;
  49785. @@ -526,5 +625,6 @@
  49786. # eval: (add-hook 'write-file-hooks 'time-stamp)
  49787. # time-stamp-start: "scriptversion="
  49788. # time-stamp-format: "%:y-%02m-%02d.%02H"
  49789. -# time-stamp-end: "$"
  49790. +# time-stamp-time-zone: "UTC"
  49791. +# time-stamp-end: "; # UTC"
  49792. # End:
  49793. diff -Nur libgssglue-0.1.orig/INSTALL libgssglue-0.1/INSTALL
  49794. --- libgssglue-0.1.orig/INSTALL 2004-10-22 16:58:33.000000000 +0200
  49795. +++ libgssglue-0.1/INSTALL 2011-02-17 17:14:46.097302070 +0100
  49796. @@ -1,48 +1,80 @@
  49797. +Installation Instructions
  49798. +*************************
  49799. +
  49800. +Copyright (C) 1994, 1995, 1996, 1999, 2000, 2001, 2002, 2004, 2005,
  49801. +2006, 2007, 2008, 2009 Free Software Foundation, Inc.
  49802. +
  49803. + Copying and distribution of this file, with or without modification,
  49804. +are permitted in any medium without royalty provided the copyright
  49805. +notice and this notice are preserved. This file is offered as-is,
  49806. +without warranty of any kind.
  49807. +
  49808. Basic Installation
  49809. ==================
  49810. - These are generic installation instructions.
  49811. + Briefly, the shell commands `./configure; make; make install' should
  49812. +configure, build, and install this package. The following
  49813. +more-detailed instructions are generic; see the `README' file for
  49814. +instructions specific to this package. Some packages provide this
  49815. +`INSTALL' file but do not implement all of the features documented
  49816. +below. The lack of an optional feature in a given package is not
  49817. +necessarily a bug. More recommendations for GNU packages can be found
  49818. +in *note Makefile Conventions: (standards)Makefile Conventions.
  49819. The `configure' shell script attempts to guess correct values for
  49820. various system-dependent variables used during compilation. It uses
  49821. those values to create a `Makefile' in each directory of the package.
  49822. It may also create one or more `.h' files containing system-dependent
  49823. definitions. Finally, it creates a shell script `config.status' that
  49824. -you can run in the future to recreate the current configuration, a file
  49825. -`config.cache' that saves the results of its tests to speed up
  49826. -reconfiguring, and a file `config.log' containing compiler output
  49827. -(useful mainly for debugging `configure').
  49828. +you can run in the future to recreate the current configuration, and a
  49829. +file `config.log' containing compiler output (useful mainly for
  49830. +debugging `configure').
  49831. +
  49832. + It can also use an optional file (typically called `config.cache'
  49833. +and enabled with `--cache-file=config.cache' or simply `-C') that saves
  49834. +the results of its tests to speed up reconfiguring. Caching is
  49835. +disabled by default to prevent problems with accidental use of stale
  49836. +cache files.
  49837. If you need to do unusual things to compile the package, please try
  49838. to figure out how `configure' could check whether to do them, and mail
  49839. diffs or instructions to the address given in the `README' so they can
  49840. -be considered for the next release. If at some point `config.cache'
  49841. -contains results you don't want to keep, you may remove or edit it.
  49842. -
  49843. - The file `configure.in' is used to create `configure' by a program
  49844. -called `autoconf'. You only need `configure.in' if you want to change
  49845. -it or regenerate `configure' using a newer version of `autoconf'.
  49846. +be considered for the next release. If you are using the cache, and at
  49847. +some point `config.cache' contains results you don't want to keep, you
  49848. +may remove or edit it.
  49849. +
  49850. + The file `configure.ac' (or `configure.in') is used to create
  49851. +`configure' by a program called `autoconf'. You need `configure.ac' if
  49852. +you want to change it or regenerate `configure' using a newer version
  49853. +of `autoconf'.
  49854. -The simplest way to compile this package is:
  49855. + The simplest way to compile this package is:
  49856. 1. `cd' to the directory containing the package's source code and type
  49857. - `./configure' to configure the package for your system. If you're
  49858. - using `csh' on an old version of System V, you might need to type
  49859. - `sh ./configure' instead to prevent `csh' from trying to execute
  49860. - `configure' itself.
  49861. + `./configure' to configure the package for your system.
  49862. - Running `configure' takes awhile. While running, it prints some
  49863. - messages telling which features it is checking for.
  49864. + Running `configure' might take a while. While running, it prints
  49865. + some messages telling which features it is checking for.
  49866. 2. Type `make' to compile the package.
  49867. 3. Optionally, type `make check' to run any self-tests that come with
  49868. - the package.
  49869. + the package, generally using the just-built uninstalled binaries.
  49870. 4. Type `make install' to install the programs and any data files and
  49871. - documentation.
  49872. + documentation. When installing into a prefix owned by root, it is
  49873. + recommended that the package be configured and built as a regular
  49874. + user, and only the `make install' phase executed with root
  49875. + privileges.
  49876. +
  49877. + 5. Optionally, type `make installcheck' to repeat any self-tests, but
  49878. + this time using the binaries in their final installed location.
  49879. + This target does not install anything. Running this target as a
  49880. + regular user, particularly if the prior `make install' required
  49881. + root privileges, verifies that the installation completed
  49882. + correctly.
  49883. - 5. You can remove the program binaries and object files from the
  49884. + 6. You can remove the program binaries and object files from the
  49885. source code directory by typing `make clean'. To also remove the
  49886. files that `configure' created (so you can compile the package for
  49887. a different kind of computer), type `make distclean'. There is
  49888. @@ -51,62 +83,119 @@
  49889. all sorts of other programs in order to regenerate files that came
  49890. with the distribution.
  49891. + 7. Often, you can also type `make uninstall' to remove the installed
  49892. + files again. In practice, not all packages have tested that
  49893. + uninstallation works correctly, even though it is required by the
  49894. + GNU Coding Standards.
  49895. +
  49896. + 8. Some packages, particularly those that use Automake, provide `make
  49897. + distcheck', which can by used by developers to test that all other
  49898. + targets like `make install' and `make uninstall' work correctly.
  49899. + This target is generally not run by end users.
  49900. +
  49901. Compilers and Options
  49902. =====================
  49903. Some systems require unusual options for compilation or linking that
  49904. -the `configure' script does not know about. You can give `configure'
  49905. -initial values for variables by setting them in the environment. Using
  49906. -a Bourne-compatible shell, you can do that on the command line like
  49907. -this:
  49908. - CC=c89 CFLAGS=-O2 LIBS=-lposix ./configure
  49909. +the `configure' script does not know about. Run `./configure --help'
  49910. +for details on some of the pertinent environment variables.
  49911. +
  49912. + You can give `configure' initial values for configuration parameters
  49913. +by setting variables in the command line or in the environment. Here
  49914. +is an example:
  49915. -Or on systems that have the `env' program, you can do it like this:
  49916. - env CPPFLAGS=-I/usr/local/include LDFLAGS=-s ./configure
  49917. + ./configure CC=c99 CFLAGS=-g LIBS=-lposix
  49918. +
  49919. + *Note Defining Variables::, for more details.
  49920. Compiling For Multiple Architectures
  49921. ====================================
  49922. You can compile the package for more than one kind of computer at the
  49923. same time, by placing the object files for each architecture in their
  49924. -own directory. To do this, you must use a version of `make' that
  49925. -supports the `VPATH' variable, such as GNU `make'. `cd' to the
  49926. +own directory. To do this, you can use GNU `make'. `cd' to the
  49927. directory where you want the object files and executables to go and run
  49928. the `configure' script. `configure' automatically checks for the
  49929. -source code in the directory that `configure' is in and in `..'.
  49930. +source code in the directory that `configure' is in and in `..'. This
  49931. +is known as a "VPATH" build.
  49932. +
  49933. + With a non-GNU `make', it is safer to compile the package for one
  49934. +architecture at a time in the source code directory. After you have
  49935. +installed the package for one architecture, use `make distclean' before
  49936. +reconfiguring for another architecture.
  49937. +
  49938. + On MacOS X 10.5 and later systems, you can create libraries and
  49939. +executables that work on multiple system types--known as "fat" or
  49940. +"universal" binaries--by specifying multiple `-arch' options to the
  49941. +compiler but only a single `-arch' option to the preprocessor. Like
  49942. +this:
  49943. - If you have to use a `make' that does not supports the `VPATH'
  49944. -variable, you have to compile the package for one architecture at a time
  49945. -in the source code directory. After you have installed the package for
  49946. -one architecture, use `make distclean' before reconfiguring for another
  49947. -architecture.
  49948. + ./configure CC="gcc -arch i386 -arch x86_64 -arch ppc -arch ppc64" \
  49949. + CXX="g++ -arch i386 -arch x86_64 -arch ppc -arch ppc64" \
  49950. + CPP="gcc -E" CXXCPP="g++ -E"
  49951. +
  49952. + This is not guaranteed to produce working output in all cases, you
  49953. +may have to build one architecture at a time and combine the results
  49954. +using the `lipo' tool if you have problems.
  49955. Installation Names
  49956. ==================
  49957. - By default, `make install' will install the package's files in
  49958. -`/usr/local/bin', `/usr/local/man', etc. You can specify an
  49959. -installation prefix other than `/usr/local' by giving `configure' the
  49960. -option `--prefix=PATH'.
  49961. + By default, `make install' installs the package's commands under
  49962. +`/usr/local/bin', include files under `/usr/local/include', etc. You
  49963. +can specify an installation prefix other than `/usr/local' by giving
  49964. +`configure' the option `--prefix=PREFIX', where PREFIX must be an
  49965. +absolute file name.
  49966. You can specify separate installation prefixes for
  49967. architecture-specific files and architecture-independent files. If you
  49968. -give `configure' the option `--exec-prefix=PATH', the package will use
  49969. -PATH as the prefix for installing programs and libraries.
  49970. -Documentation and other data files will still use the regular prefix.
  49971. +pass the option `--exec-prefix=PREFIX' to `configure', the package uses
  49972. +PREFIX as the prefix for installing programs and libraries.
  49973. +Documentation and other data files still use the regular prefix.
  49974. In addition, if you use an unusual directory layout you can give
  49975. -options like `--bindir=PATH' to specify different values for particular
  49976. +options like `--bindir=DIR' to specify different values for particular
  49977. kinds of files. Run `configure --help' for a list of the directories
  49978. -you can set and what kinds of files go in them.
  49979. +you can set and what kinds of files go in them. In general, the
  49980. +default for these options is expressed in terms of `${prefix}', so that
  49981. +specifying just `--prefix' will affect all of the other directory
  49982. +specifications that were not explicitly provided.
  49983. +
  49984. + The most portable way to affect installation locations is to pass the
  49985. +correct locations to `configure'; however, many packages provide one or
  49986. +both of the following shortcuts of passing variable assignments to the
  49987. +`make install' command line to change installation locations without
  49988. +having to reconfigure or recompile.
  49989. +
  49990. + The first method involves providing an override variable for each
  49991. +affected directory. For example, `make install
  49992. +prefix=/alternate/directory' will choose an alternate location for all
  49993. +directory configuration variables that were expressed in terms of
  49994. +`${prefix}'. Any directories that were specified during `configure',
  49995. +but not in terms of `${prefix}', must each be overridden at install
  49996. +time for the entire installation to be relocated. The approach of
  49997. +makefile variable overrides for each directory variable is required by
  49998. +the GNU Coding Standards, and ideally causes no recompilation.
  49999. +However, some platforms have known limitations with the semantics of
  50000. +shared libraries that end up requiring recompilation when using this
  50001. +method, particularly noticeable in packages that use GNU Libtool.
  50002. +
  50003. + The second method involves providing the `DESTDIR' variable. For
  50004. +example, `make install DESTDIR=/alternate/directory' will prepend
  50005. +`/alternate/directory' before all installation names. The approach of
  50006. +`DESTDIR' overrides is not required by the GNU Coding Standards, and
  50007. +does not work on platforms that have drive letters. On the other hand,
  50008. +it does better at avoiding recompilation issues, and works well even
  50009. +when some directory options were not specified in terms of `${prefix}'
  50010. +at `configure' time.
  50011. +
  50012. +Optional Features
  50013. +=================
  50014. If the package supports it, you can cause programs to be installed
  50015. with an extra prefix or suffix on their names by giving `configure' the
  50016. option `--program-prefix=PREFIX' or `--program-suffix=SUFFIX'.
  50017. -Optional Features
  50018. -=================
  50019. -
  50020. Some packages pay attention to `--enable-FEATURE' options to
  50021. `configure', where FEATURE indicates an optional part of the package.
  50022. They may also pay attention to `--with-PACKAGE' options, where PACKAGE
  50023. @@ -119,25 +208,75 @@
  50024. you can use the `configure' options `--x-includes=DIR' and
  50025. `--x-libraries=DIR' to specify their locations.
  50026. + Some packages offer the ability to configure how verbose the
  50027. +execution of `make' will be. For these packages, running `./configure
  50028. +--enable-silent-rules' sets the default to minimal output, which can be
  50029. +overridden with `make V=1'; while running `./configure
  50030. +--disable-silent-rules' sets the default to verbose, which can be
  50031. +overridden with `make V=0'.
  50032. +
  50033. +Particular systems
  50034. +==================
  50035. +
  50036. + On HP-UX, the default C compiler is not ANSI C compatible. If GNU
  50037. +CC is not installed, it is recommended to use the following options in
  50038. +order to use an ANSI C compiler:
  50039. +
  50040. + ./configure CC="cc -Ae -D_XOPEN_SOURCE=500"
  50041. +
  50042. +and if that doesn't work, install pre-built binaries of GCC for HP-UX.
  50043. +
  50044. + On OSF/1 a.k.a. Tru64, some versions of the default C compiler cannot
  50045. +parse its `<wchar.h>' header file. The option `-nodtk' can be used as
  50046. +a workaround. If GNU CC is not installed, it is therefore recommended
  50047. +to try
  50048. +
  50049. + ./configure CC="cc"
  50050. +
  50051. +and if that doesn't work, try
  50052. +
  50053. + ./configure CC="cc -nodtk"
  50054. +
  50055. + On Solaris, don't put `/usr/ucb' early in your `PATH'. This
  50056. +directory contains several dysfunctional programs; working variants of
  50057. +these programs are available in `/usr/bin'. So, if you need `/usr/ucb'
  50058. +in your `PATH', put it _after_ `/usr/bin'.
  50059. +
  50060. + On Haiku, software installed for all users goes in `/boot/common',
  50061. +not `/usr/local'. It is recommended to use the following options:
  50062. +
  50063. + ./configure --prefix=/boot/common
  50064. +
  50065. Specifying the System Type
  50066. ==========================
  50067. - There may be some features `configure' can not figure out
  50068. -automatically, but needs to determine by the type of host the package
  50069. -will run on. Usually `configure' can figure that out, but if it prints
  50070. -a message saying it can not guess the host type, give it the
  50071. -`--host=TYPE' option. TYPE can either be a short name for the system
  50072. -type, such as `sun4', or a canonical name with three fields:
  50073. + There may be some features `configure' cannot figure out
  50074. +automatically, but needs to determine by the type of machine the package
  50075. +will run on. Usually, assuming the package is built to be run on the
  50076. +_same_ architectures, `configure' can figure that out, but if it prints
  50077. +a message saying it cannot guess the machine type, give it the
  50078. +`--build=TYPE' option. TYPE can either be a short name for the system
  50079. +type, such as `sun4', or a canonical name which has the form:
  50080. +
  50081. CPU-COMPANY-SYSTEM
  50082. -See the file `config.sub' for the possible values of each field. If
  50083. +where SYSTEM can have one of these forms:
  50084. +
  50085. + OS
  50086. + KERNEL-OS
  50087. +
  50088. + See the file `config.sub' for the possible values of each field. If
  50089. `config.sub' isn't included in this package, then this package doesn't
  50090. -need to know the host type.
  50091. +need to know the machine type.
  50092. - If you are building compiler tools for cross-compiling, you can also
  50093. -use the `--target=TYPE' option to select the type of system they will
  50094. -produce code for and the `--build=TYPE' option to select the type of
  50095. -system on which you are compiling the package.
  50096. + If you are _building_ compiler tools for cross-compiling, you should
  50097. +use the option `--target=TYPE' to select the type of system they will
  50098. +produce code for.
  50099. +
  50100. + If you want to _use_ a cross compiler, that generates code for a
  50101. +platform different from the build platform, you should specify the
  50102. +"host" platform (i.e., that on which the generated programs will
  50103. +eventually be run) with `--host=TYPE'.
  50104. Sharing Defaults
  50105. ================
  50106. @@ -150,19 +289,55 @@
  50107. `CONFIG_SITE' environment variable to the location of the site script.
  50108. A warning: not all `configure' scripts look for a site script.
  50109. -Operation Controls
  50110. +Defining Variables
  50111. ==================
  50112. + Variables not defined in a site shell script can be set in the
  50113. +environment passed to `configure'. However, some packages may run
  50114. +configure again during the build, and the customized values of these
  50115. +variables may be lost. In order to avoid this problem, you should set
  50116. +them in the `configure' command line, using `VAR=value'. For example:
  50117. +
  50118. + ./configure CC=/usr/local2/bin/gcc
  50119. +
  50120. +causes the specified `gcc' to be used as the C compiler (unless it is
  50121. +overridden in the site shell script).
  50122. +
  50123. +Unfortunately, this technique does not work for `CONFIG_SHELL' due to
  50124. +an Autoconf bug. Until the bug is fixed you can use this workaround:
  50125. +
  50126. + CONFIG_SHELL=/bin/bash /bin/bash ./configure CONFIG_SHELL=/bin/bash
  50127. +
  50128. +`configure' Invocation
  50129. +======================
  50130. +
  50131. `configure' recognizes the following options to control how it
  50132. operates.
  50133. -`--cache-file=FILE'
  50134. - Use and save the results of the tests in FILE instead of
  50135. - `./config.cache'. Set FILE to `/dev/null' to disable caching, for
  50136. - debugging `configure'.
  50137. -
  50138. `--help'
  50139. - Print a summary of the options to `configure', and exit.
  50140. +`-h'
  50141. + Print a summary of all of the options to `configure', and exit.
  50142. +
  50143. +`--help=short'
  50144. +`--help=recursive'
  50145. + Print a summary of the options unique to this package's
  50146. + `configure', and exit. The `short' variant lists options used
  50147. + only in the top level, while the `recursive' variant lists options
  50148. + also present in any nested packages.
  50149. +
  50150. +`--version'
  50151. +`-V'
  50152. + Print the version of Autoconf used to generate the `configure'
  50153. + script, and exit.
  50154. +
  50155. +`--cache-file=FILE'
  50156. + Enable the cache: use and save the results of the tests in FILE,
  50157. + traditionally `config.cache'. FILE defaults to `/dev/null' to
  50158. + disable caching.
  50159. +
  50160. +`--config-cache'
  50161. +`-C'
  50162. + Alias for `--cache-file=config.cache'.
  50163. `--quiet'
  50164. `--silent'
  50165. @@ -175,8 +350,16 @@
  50166. Look for the package's source code in directory DIR. Usually
  50167. `configure' can determine that directory automatically.
  50168. -`--version'
  50169. - Print the version of Autoconf used to generate the `configure'
  50170. - script, and exit.
  50171. +`--prefix=DIR'
  50172. + Use DIR as the installation prefix. *note Installation Names::
  50173. + for more details, including other options available for fine-tuning
  50174. + the installation locations.
  50175. +
  50176. +`--no-create'
  50177. +`-n'
  50178. + Run the configure checks, but stop before creating any output
  50179. + files.
  50180. +
  50181. +`configure' also accepts some other, not widely useful, options. Run
  50182. +`configure --help' for more details.
  50183. -`configure' also accepts some other, not widely useful, options.
  50184. diff -Nur libgssglue-0.1.orig/install-sh libgssglue-0.1/install-sh
  50185. --- libgssglue-0.1.orig/install-sh 2005-12-02 22:12:40.000000000 +0100
  50186. +++ libgssglue-0.1/install-sh 2011-02-17 17:14:45.997310868 +0100
  50187. @@ -1,7 +1,8 @@
  50188. #!/bin/sh
  50189. -#
  50190. # install - install a program, script, or datafile
  50191. -#
  50192. +
  50193. +scriptversion=2009-04-28.21; # UTC
  50194. +
  50195. # This originates from X11R5 (mit/util/scripts/install.sh), which was
  50196. # later released in X11R6 (xc/config/util/install.sh) with the
  50197. # following copyright and license.
  50198. @@ -38,232 +39,482 @@
  50199. # when there is no Makefile.
  50200. #
  50201. # This script is compatible with the BSD install script, but was written
  50202. -# from scratch. It can only install one file at a time, a restriction
  50203. -# shared with many OS's install programs.
  50204. +# from scratch.
  50205. +nl='
  50206. +'
  50207. +IFS=" "" $nl"
  50208. # set DOITPROG to echo to test this script
  50209. # Don't use :- since 4.3BSD and earlier shells don't like it.
  50210. -doit="${DOITPROG-}"
  50211. +doit=${DOITPROG-}
  50212. +if test -z "$doit"; then
  50213. + doit_exec=exec
  50214. +else
  50215. + doit_exec=$doit
  50216. +fi
  50217. +# Put in absolute file names if you don't have them in your path;
  50218. +# or use environment vars.
  50219. -# put in absolute paths if you don't have them in your path; or use env. vars.
  50220. +chgrpprog=${CHGRPPROG-chgrp}
  50221. +chmodprog=${CHMODPROG-chmod}
  50222. +chownprog=${CHOWNPROG-chown}
  50223. +cmpprog=${CMPPROG-cmp}
  50224. +cpprog=${CPPROG-cp}
  50225. +mkdirprog=${MKDIRPROG-mkdir}
  50226. +mvprog=${MVPROG-mv}
  50227. +rmprog=${RMPROG-rm}
  50228. +stripprog=${STRIPPROG-strip}
  50229. +
  50230. +posix_glob='?'
  50231. +initialize_posix_glob='
  50232. + test "$posix_glob" != "?" || {
  50233. + if (set -f) 2>/dev/null; then
  50234. + posix_glob=
  50235. + else
  50236. + posix_glob=:
  50237. + fi
  50238. + }
  50239. +'
  50240. -mvprog="${MVPROG-mv}"
  50241. -cpprog="${CPPROG-cp}"
  50242. -chmodprog="${CHMODPROG-chmod}"
  50243. -chownprog="${CHOWNPROG-chown}"
  50244. -chgrpprog="${CHGRPPROG-chgrp}"
  50245. -stripprog="${STRIPPROG-strip}"
  50246. -rmprog="${RMPROG-rm}"
  50247. -mkdirprog="${MKDIRPROG-mkdir}"
  50248. -
  50249. -transformbasename=""
  50250. -transform_arg=""
  50251. -instcmd="$mvprog"
  50252. -chmodcmd="$chmodprog 0755"
  50253. -chowncmd=""
  50254. -chgrpcmd=""
  50255. -stripcmd=""
  50256. +posix_mkdir=
  50257. +
  50258. +# Desired mode of installed file.
  50259. +mode=0755
  50260. +
  50261. +chgrpcmd=
  50262. +chmodcmd=$chmodprog
  50263. +chowncmd=
  50264. +mvcmd=$mvprog
  50265. rmcmd="$rmprog -f"
  50266. -mvcmd="$mvprog"
  50267. -src=""
  50268. -dst=""
  50269. -dir_arg=""
  50270. -
  50271. -while [ x"$1" != x ]; do
  50272. - case $1 in
  50273. - -c) instcmd="$cpprog"
  50274. - shift
  50275. - continue;;
  50276. -
  50277. - -d) dir_arg=true
  50278. - shift
  50279. - continue;;
  50280. -
  50281. - -m) chmodcmd="$chmodprog $2"
  50282. - shift
  50283. - shift
  50284. - continue;;
  50285. -
  50286. - -o) chowncmd="$chownprog $2"
  50287. - shift
  50288. - shift
  50289. - continue;;
  50290. -
  50291. - -g) chgrpcmd="$chgrpprog $2"
  50292. - shift
  50293. - shift
  50294. - continue;;
  50295. -
  50296. - -s) stripcmd="$stripprog"
  50297. - shift
  50298. - continue;;
  50299. -
  50300. - -t=*) transformarg=`echo $1 | sed 's/-t=//'`
  50301. - shift
  50302. - continue;;
  50303. -
  50304. - -b=*) transformbasename=`echo $1 | sed 's/-b=//'`
  50305. - shift
  50306. - continue;;
  50307. +stripcmd=
  50308. - *) if [ x"$src" = x ]
  50309. - then
  50310. - src=$1
  50311. - else
  50312. - # this colon is to work around a 386BSD /bin/sh bug
  50313. - :
  50314. - dst=$1
  50315. - fi
  50316. - shift
  50317. - continue;;
  50318. - esac
  50319. -done
  50320. +src=
  50321. +dst=
  50322. +dir_arg=
  50323. +dst_arg=
  50324. -if [ x"$src" = x ]
  50325. -then
  50326. - echo "install: no input file specified"
  50327. - exit 1
  50328. -else
  50329. - true
  50330. -fi
  50331. +copy_on_change=false
  50332. +no_target_directory=
  50333. -if [ x"$dir_arg" != x ]; then
  50334. - dst=$src
  50335. - src=""
  50336. -
  50337. - if [ -d $dst ]; then
  50338. - instcmd=:
  50339. - chmodcmd=""
  50340. - else
  50341. - instcmd=mkdir
  50342. - fi
  50343. -else
  50344. +usage="\
  50345. +Usage: $0 [OPTION]... [-T] SRCFILE DSTFILE
  50346. + or: $0 [OPTION]... SRCFILES... DIRECTORY
  50347. + or: $0 [OPTION]... -t DIRECTORY SRCFILES...
  50348. + or: $0 [OPTION]... -d DIRECTORIES...
  50349. -# Waiting for this to be detected by the "$instcmd $src $dsttmp" command
  50350. -# might cause directories to be created, which would be especially bad
  50351. -# if $src (and thus $dsttmp) contains '*'.
  50352. -
  50353. - if [ -f $src -o -d $src ]
  50354. - then
  50355. - true
  50356. - else
  50357. - echo "install: $src does not exist"
  50358. - exit 1
  50359. - fi
  50360. -
  50361. - if [ x"$dst" = x ]
  50362. - then
  50363. - echo "install: no destination specified"
  50364. - exit 1
  50365. - else
  50366. - true
  50367. - fi
  50368. +In the 1st form, copy SRCFILE to DSTFILE.
  50369. +In the 2nd and 3rd, copy all SRCFILES to DIRECTORY.
  50370. +In the 4th, create DIRECTORIES.
  50371. -# If destination is a directory, append the input filename; if your system
  50372. -# does not like double slashes in filenames, you may need to add some logic
  50373. +Options:
  50374. + --help display this help and exit.
  50375. + --version display version info and exit.
  50376. - if [ -d $dst ]
  50377. - then
  50378. - dst="$dst"/`basename $src`
  50379. - else
  50380. - true
  50381. - fi
  50382. -fi
  50383. + -c (ignored)
  50384. + -C install only if different (preserve the last data modification time)
  50385. + -d create directories instead of installing files.
  50386. + -g GROUP $chgrpprog installed files to GROUP.
  50387. + -m MODE $chmodprog installed files to MODE.
  50388. + -o USER $chownprog installed files to USER.
  50389. + -s $stripprog installed files.
  50390. + -t DIRECTORY install into DIRECTORY.
  50391. + -T report an error if DSTFILE is a directory.
  50392. -## this sed command emulates the dirname command
  50393. -dstdir=`echo $dst | sed -e 's,[^/]*$,,;s,/$,,;s,^$,.,'`
  50394. +Environment variables override the default commands:
  50395. + CHGRPPROG CHMODPROG CHOWNPROG CMPPROG CPPROG MKDIRPROG MVPROG
  50396. + RMPROG STRIPPROG
  50397. +"
  50398. -# Make sure that the destination directory exists.
  50399. -# this part is taken from Noah Friedman's mkinstalldirs script
  50400. +while test $# -ne 0; do
  50401. + case $1 in
  50402. + -c) ;;
  50403. -# Skip lots of stat calls in the usual case.
  50404. -if [ ! -d "$dstdir" ]; then
  50405. -defaultIFS='
  50406. -'
  50407. -IFS="${IFS-${defaultIFS}}"
  50408. + -C) copy_on_change=true;;
  50409. -oIFS="${IFS}"
  50410. -# Some sh's can't handle IFS=/ for some reason.
  50411. -IFS='%'
  50412. -set - `echo ${dstdir} | sed -e 's@/@%@g' -e 's@^%@/@'`
  50413. -IFS="${oIFS}"
  50414. -
  50415. -pathcomp=''
  50416. -
  50417. -while [ $# -ne 0 ] ; do
  50418. - pathcomp="${pathcomp}${1}"
  50419. - shift
  50420. -
  50421. - if [ ! -d "${pathcomp}" ] ;
  50422. - then
  50423. - $mkdirprog "${pathcomp}"
  50424. - else
  50425. - true
  50426. - fi
  50427. + -d) dir_arg=true;;
  50428. - pathcomp="${pathcomp}/"
  50429. -done
  50430. -fi
  50431. + -g) chgrpcmd="$chgrpprog $2"
  50432. + shift;;
  50433. -if [ x"$dir_arg" != x ]
  50434. -then
  50435. - $doit $instcmd $dst &&
  50436. -
  50437. - if [ x"$chowncmd" != x ]; then $doit $chowncmd $dst; else true ; fi &&
  50438. - if [ x"$chgrpcmd" != x ]; then $doit $chgrpcmd $dst; else true ; fi &&
  50439. - if [ x"$stripcmd" != x ]; then $doit $stripcmd $dst; else true ; fi &&
  50440. - if [ x"$chmodcmd" != x ]; then $doit $chmodcmd $dst; else true ; fi
  50441. -else
  50442. + --help) echo "$usage"; exit $?;;
  50443. -# If we're going to rename the final executable, determine the name now.
  50444. + -m) mode=$2
  50445. + case $mode in
  50446. + *' '* | *' '* | *'
  50447. +'* | *'*'* | *'?'* | *'['*)
  50448. + echo "$0: invalid mode: $mode" >&2
  50449. + exit 1;;
  50450. + esac
  50451. + shift;;
  50452. - if [ x"$transformarg" = x ]
  50453. - then
  50454. - dstfile=`basename $dst`
  50455. - else
  50456. - dstfile=`basename $dst $transformbasename |
  50457. - sed $transformarg`$transformbasename
  50458. - fi
  50459. + -o) chowncmd="$chownprog $2"
  50460. + shift;;
  50461. -# don't allow the sed command to completely eliminate the filename
  50462. + -s) stripcmd=$stripprog;;
  50463. - if [ x"$dstfile" = x ]
  50464. - then
  50465. - dstfile=`basename $dst`
  50466. - else
  50467. - true
  50468. - fi
  50469. + -t) dst_arg=$2
  50470. + shift;;
  50471. +
  50472. + -T) no_target_directory=true;;
  50473. +
  50474. + --version) echo "$0 $scriptversion"; exit $?;;
  50475. -# Make a temp file name in the proper directory.
  50476. + --) shift
  50477. + break;;
  50478. +
  50479. + -*) echo "$0: invalid option: $1" >&2
  50480. + exit 1;;
  50481. +
  50482. + *) break;;
  50483. + esac
  50484. + shift
  50485. +done
  50486. - dsttmp=$dstdir/#inst.$$#
  50487. +if test $# -ne 0 && test -z "$dir_arg$dst_arg"; then
  50488. + # When -d is used, all remaining arguments are directories to create.
  50489. + # When -t is used, the destination is already specified.
  50490. + # Otherwise, the last argument is the destination. Remove it from $@.
  50491. + for arg
  50492. + do
  50493. + if test -n "$dst_arg"; then
  50494. + # $@ is not empty: it contains at least $arg.
  50495. + set fnord "$@" "$dst_arg"
  50496. + shift # fnord
  50497. + fi
  50498. + shift # arg
  50499. + dst_arg=$arg
  50500. + done
  50501. +fi
  50502. -# Move or copy the file name to the temp name
  50503. +if test $# -eq 0; then
  50504. + if test -z "$dir_arg"; then
  50505. + echo "$0: no input file specified." >&2
  50506. + exit 1
  50507. + fi
  50508. + # It's OK to call `install-sh -d' without argument.
  50509. + # This can happen when creating conditional directories.
  50510. + exit 0
  50511. +fi
  50512. - $doit $instcmd $src $dsttmp &&
  50513. +if test -z "$dir_arg"; then
  50514. + trap '(exit $?); exit' 1 2 13 15
  50515. - trap "rm -f ${dsttmp}" 0 &&
  50516. + # Set umask so as not to create temps with too-generous modes.
  50517. + # However, 'strip' requires both read and write access to temps.
  50518. + case $mode in
  50519. + # Optimize common cases.
  50520. + *644) cp_umask=133;;
  50521. + *755) cp_umask=22;;
  50522. +
  50523. + *[0-7])
  50524. + if test -z "$stripcmd"; then
  50525. + u_plus_rw=
  50526. + else
  50527. + u_plus_rw='% 200'
  50528. + fi
  50529. + cp_umask=`expr '(' 777 - $mode % 1000 ')' $u_plus_rw`;;
  50530. + *)
  50531. + if test -z "$stripcmd"; then
  50532. + u_plus_rw=
  50533. + else
  50534. + u_plus_rw=,u+rw
  50535. + fi
  50536. + cp_umask=$mode$u_plus_rw;;
  50537. + esac
  50538. +fi
  50539. -# and set any options; do chmod last to preserve setuid bits
  50540. +for src
  50541. +do
  50542. + # Protect names starting with `-'.
  50543. + case $src in
  50544. + -*) src=./$src;;
  50545. + esac
  50546. +
  50547. + if test -n "$dir_arg"; then
  50548. + dst=$src
  50549. + dstdir=$dst
  50550. + test -d "$dstdir"
  50551. + dstdir_status=$?
  50552. + else
  50553. +
  50554. + # Waiting for this to be detected by the "$cpprog $src $dsttmp" command
  50555. + # might cause directories to be created, which would be especially bad
  50556. + # if $src (and thus $dsttmp) contains '*'.
  50557. + if test ! -f "$src" && test ! -d "$src"; then
  50558. + echo "$0: $src does not exist." >&2
  50559. + exit 1
  50560. + fi
  50561. +
  50562. + if test -z "$dst_arg"; then
  50563. + echo "$0: no destination specified." >&2
  50564. + exit 1
  50565. + fi
  50566. +
  50567. + dst=$dst_arg
  50568. + # Protect names starting with `-'.
  50569. + case $dst in
  50570. + -*) dst=./$dst;;
  50571. + esac
  50572. -# If any of these fail, we abort the whole thing. If we want to
  50573. -# ignore errors from any of these, just make sure not to ignore
  50574. -# errors from the above "$doit $instcmd $src $dsttmp" command.
  50575. + # If destination is a directory, append the input filename; won't work
  50576. + # if double slashes aren't ignored.
  50577. + if test -d "$dst"; then
  50578. + if test -n "$no_target_directory"; then
  50579. + echo "$0: $dst_arg: Is a directory" >&2
  50580. + exit 1
  50581. + fi
  50582. + dstdir=$dst
  50583. + dst=$dstdir/`basename "$src"`
  50584. + dstdir_status=0
  50585. + else
  50586. + # Prefer dirname, but fall back on a substitute if dirname fails.
  50587. + dstdir=`
  50588. + (dirname "$dst") 2>/dev/null ||
  50589. + expr X"$dst" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  50590. + X"$dst" : 'X\(//\)[^/]' \| \
  50591. + X"$dst" : 'X\(//\)$' \| \
  50592. + X"$dst" : 'X\(/\)' \| . 2>/dev/null ||
  50593. + echo X"$dst" |
  50594. + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  50595. + s//\1/
  50596. + q
  50597. + }
  50598. + /^X\(\/\/\)[^/].*/{
  50599. + s//\1/
  50600. + q
  50601. + }
  50602. + /^X\(\/\/\)$/{
  50603. + s//\1/
  50604. + q
  50605. + }
  50606. + /^X\(\/\).*/{
  50607. + s//\1/
  50608. + q
  50609. + }
  50610. + s/.*/./; q'
  50611. + `
  50612. +
  50613. + test -d "$dstdir"
  50614. + dstdir_status=$?
  50615. + fi
  50616. + fi
  50617. +
  50618. + obsolete_mkdir_used=false
  50619. +
  50620. + if test $dstdir_status != 0; then
  50621. + case $posix_mkdir in
  50622. + '')
  50623. + # Create intermediate dirs using mode 755 as modified by the umask.
  50624. + # This is like FreeBSD 'install' as of 1997-10-28.
  50625. + umask=`umask`
  50626. + case $stripcmd.$umask in
  50627. + # Optimize common cases.
  50628. + *[2367][2367]) mkdir_umask=$umask;;
  50629. + .*0[02][02] | .[02][02] | .[02]) mkdir_umask=22;;
  50630. +
  50631. + *[0-7])
  50632. + mkdir_umask=`expr $umask + 22 \
  50633. + - $umask % 100 % 40 + $umask % 20 \
  50634. + - $umask % 10 % 4 + $umask % 2
  50635. + `;;
  50636. + *) mkdir_umask=$umask,go-w;;
  50637. + esac
  50638. +
  50639. + # With -d, create the new directory with the user-specified mode.
  50640. + # Otherwise, rely on $mkdir_umask.
  50641. + if test -n "$dir_arg"; then
  50642. + mkdir_mode=-m$mode
  50643. + else
  50644. + mkdir_mode=
  50645. + fi
  50646. - if [ x"$chowncmd" != x ]; then $doit $chowncmd $dsttmp; else true;fi &&
  50647. - if [ x"$chgrpcmd" != x ]; then $doit $chgrpcmd $dsttmp; else true;fi &&
  50648. - if [ x"$stripcmd" != x ]; then $doit $stripcmd $dsttmp; else true;fi &&
  50649. - if [ x"$chmodcmd" != x ]; then $doit $chmodcmd $dsttmp; else true;fi &&
  50650. + posix_mkdir=false
  50651. + case $umask in
  50652. + *[123567][0-7][0-7])
  50653. + # POSIX mkdir -p sets u+wx bits regardless of umask, which
  50654. + # is incompatible with FreeBSD 'install' when (umask & 300) != 0.
  50655. + ;;
  50656. + *)
  50657. + tmpdir=${TMPDIR-/tmp}/ins$RANDOM-$$
  50658. + trap 'ret=$?; rmdir "$tmpdir/d" "$tmpdir" 2>/dev/null; exit $ret' 0
  50659. -# Now rename the file to the real destination.
  50660. + if (umask $mkdir_umask &&
  50661. + exec $mkdirprog $mkdir_mode -p -- "$tmpdir/d") >/dev/null 2>&1
  50662. + then
  50663. + if test -z "$dir_arg" || {
  50664. + # Check for POSIX incompatibilities with -m.
  50665. + # HP-UX 11.23 and IRIX 6.5 mkdir -m -p sets group- or
  50666. + # other-writeable bit of parent directory when it shouldn't.
  50667. + # FreeBSD 6.1 mkdir -m -p sets mode of existing directory.
  50668. + ls_ld_tmpdir=`ls -ld "$tmpdir"`
  50669. + case $ls_ld_tmpdir in
  50670. + d????-?r-*) different_mode=700;;
  50671. + d????-?--*) different_mode=755;;
  50672. + *) false;;
  50673. + esac &&
  50674. + $mkdirprog -m$different_mode -p -- "$tmpdir" && {
  50675. + ls_ld_tmpdir_1=`ls -ld "$tmpdir"`
  50676. + test "$ls_ld_tmpdir" = "$ls_ld_tmpdir_1"
  50677. + }
  50678. + }
  50679. + then posix_mkdir=:
  50680. + fi
  50681. + rmdir "$tmpdir/d" "$tmpdir"
  50682. + else
  50683. + # Remove any dirs left behind by ancient mkdir implementations.
  50684. + rmdir ./$mkdir_mode ./-p ./-- 2>/dev/null
  50685. + fi
  50686. + trap '' 0;;
  50687. + esac;;
  50688. + esac
  50689. - $doit $rmcmd -f $dstdir/$dstfile &&
  50690. - $doit $mvcmd $dsttmp $dstdir/$dstfile
  50691. + if
  50692. + $posix_mkdir && (
  50693. + umask $mkdir_umask &&
  50694. + $doit_exec $mkdirprog $mkdir_mode -p -- "$dstdir"
  50695. + )
  50696. + then :
  50697. + else
  50698. +
  50699. + # The umask is ridiculous, or mkdir does not conform to POSIX,
  50700. + # or it failed possibly due to a race condition. Create the
  50701. + # directory the slow way, step by step, checking for races as we go.
  50702. +
  50703. + case $dstdir in
  50704. + /*) prefix='/';;
  50705. + -*) prefix='./';;
  50706. + *) prefix='';;
  50707. + esac
  50708. +
  50709. + eval "$initialize_posix_glob"
  50710. +
  50711. + oIFS=$IFS
  50712. + IFS=/
  50713. + $posix_glob set -f
  50714. + set fnord $dstdir
  50715. + shift
  50716. + $posix_glob set +f
  50717. + IFS=$oIFS
  50718. +
  50719. + prefixes=
  50720. +
  50721. + for d
  50722. + do
  50723. + test -z "$d" && continue
  50724. +
  50725. + prefix=$prefix$d
  50726. + if test -d "$prefix"; then
  50727. + prefixes=
  50728. + else
  50729. + if $posix_mkdir; then
  50730. + (umask=$mkdir_umask &&
  50731. + $doit_exec $mkdirprog $mkdir_mode -p -- "$dstdir") && break
  50732. + # Don't fail if two instances are running concurrently.
  50733. + test -d "$prefix" || exit 1
  50734. + else
  50735. + case $prefix in
  50736. + *\'*) qprefix=`echo "$prefix" | sed "s/'/'\\\\\\\\''/g"`;;
  50737. + *) qprefix=$prefix;;
  50738. + esac
  50739. + prefixes="$prefixes '$qprefix'"
  50740. + fi
  50741. + fi
  50742. + prefix=$prefix/
  50743. + done
  50744. -fi &&
  50745. + if test -n "$prefixes"; then
  50746. + # Don't fail if two instances are running concurrently.
  50747. + (umask $mkdir_umask &&
  50748. + eval "\$doit_exec \$mkdirprog $prefixes") ||
  50749. + test -d "$dstdir" || exit 1
  50750. + obsolete_mkdir_used=true
  50751. + fi
  50752. + fi
  50753. + fi
  50754. +
  50755. + if test -n "$dir_arg"; then
  50756. + { test -z "$chowncmd" || $doit $chowncmd "$dst"; } &&
  50757. + { test -z "$chgrpcmd" || $doit $chgrpcmd "$dst"; } &&
  50758. + { test "$obsolete_mkdir_used$chowncmd$chgrpcmd" = false ||
  50759. + test -z "$chmodcmd" || $doit $chmodcmd $mode "$dst"; } || exit 1
  50760. + else
  50761. +
  50762. + # Make a couple of temp file names in the proper directory.
  50763. + dsttmp=$dstdir/_inst.$$_
  50764. + rmtmp=$dstdir/_rm.$$_
  50765. +
  50766. + # Trap to clean up those temp files at exit.
  50767. + trap 'ret=$?; rm -f "$dsttmp" "$rmtmp" && exit $ret' 0
  50768. +
  50769. + # Copy the file name to the temp name.
  50770. + (umask $cp_umask && $doit_exec $cpprog "$src" "$dsttmp") &&
  50771. +
  50772. + # and set any options; do chmod last to preserve setuid bits.
  50773. + #
  50774. + # If any of these fail, we abort the whole thing. If we want to
  50775. + # ignore errors from any of these, just make sure not to ignore
  50776. + # errors from the above "$doit $cpprog $src $dsttmp" command.
  50777. + #
  50778. + { test -z "$chowncmd" || $doit $chowncmd "$dsttmp"; } &&
  50779. + { test -z "$chgrpcmd" || $doit $chgrpcmd "$dsttmp"; } &&
  50780. + { test -z "$stripcmd" || $doit $stripcmd "$dsttmp"; } &&
  50781. + { test -z "$chmodcmd" || $doit $chmodcmd $mode "$dsttmp"; } &&
  50782. +
  50783. + # If -C, don't bother to copy if it wouldn't change the file.
  50784. + if $copy_on_change &&
  50785. + old=`LC_ALL=C ls -dlL "$dst" 2>/dev/null` &&
  50786. + new=`LC_ALL=C ls -dlL "$dsttmp" 2>/dev/null` &&
  50787. +
  50788. + eval "$initialize_posix_glob" &&
  50789. + $posix_glob set -f &&
  50790. + set X $old && old=:$2:$4:$5:$6 &&
  50791. + set X $new && new=:$2:$4:$5:$6 &&
  50792. + $posix_glob set +f &&
  50793. +
  50794. + test "$old" = "$new" &&
  50795. + $cmpprog "$dst" "$dsttmp" >/dev/null 2>&1
  50796. + then
  50797. + rm -f "$dsttmp"
  50798. + else
  50799. + # Rename the file to the real destination.
  50800. + $doit $mvcmd -f "$dsttmp" "$dst" 2>/dev/null ||
  50801. +
  50802. + # The rename failed, perhaps because mv can't rename something else
  50803. + # to itself, or perhaps because mv is so ancient that it does not
  50804. + # support -f.
  50805. + {
  50806. + # Now remove or move aside any old file at destination location.
  50807. + # We try this two ways since rm can't unlink itself on some
  50808. + # systems and the destination file might be busy for other
  50809. + # reasons. In this case, the final cleanup might fail but the new
  50810. + # file should still install successfully.
  50811. + {
  50812. + test ! -f "$dst" ||
  50813. + $doit $rmcmd -f "$dst" 2>/dev/null ||
  50814. + { $doit $mvcmd -f "$dst" "$rmtmp" 2>/dev/null &&
  50815. + { $doit $rmcmd -f "$rmtmp" 2>/dev/null; :; }
  50816. + } ||
  50817. + { echo "$0: cannot unlink or rename $dst" >&2
  50818. + (exit 1); exit 1
  50819. + }
  50820. + } &&
  50821. +
  50822. + # Now rename the file to the real destination.
  50823. + $doit $mvcmd "$dsttmp" "$dst"
  50824. + }
  50825. + fi || exit 1
  50826. + trap '' 0
  50827. + fi
  50828. +done
  50829. -exit 0
  50830. +# Local variables:
  50831. +# eval: (add-hook 'write-file-hooks 'time-stamp)
  50832. +# time-stamp-start: "scriptversion="
  50833. +# time-stamp-format: "%:y-%02m-%02d.%02H"
  50834. +# time-stamp-time-zone: "UTC"
  50835. +# time-stamp-end: "; # UTC"
  50836. +# End:
  50837. diff -Nur libgssglue-0.1.orig/ltmain.sh libgssglue-0.1/ltmain.sh
  50838. --- libgssglue-0.1.orig/ltmain.sh 2005-12-02 22:14:34.000000000 +0100
  50839. +++ libgssglue-0.1/ltmain.sh 2011-02-17 17:14:42.663552654 +0100
  50840. @@ -1,4600 +1,3140 @@
  50841. -# ltmain.sh - Provide generalized library-building support services.
  50842. -# NOTE: Changing this file will not affect anything until you rerun configure.
  50843. -#
  50844. -# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004
  50845. -# Free Software Foundation, Inc.
  50846. -# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
  50847. -#
  50848. -# This program is free software; you can redistribute it and/or modify
  50849. +# Generated from ltmain.m4sh.
  50850. +
  50851. +# ltmain.sh (GNU libtool) 2.2.6b
  50852. +# Written by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
  50853. +
  50854. +# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 2006, 2007 2008 Free Software Foundation, Inc.
  50855. +# This is free software; see the source for copying conditions. There is NO
  50856. +# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  50857. +
  50858. +# GNU Libtool is free software; you can redistribute it and/or modify
  50859. # it under the terms of the GNU General Public License as published by
  50860. # the Free Software Foundation; either version 2 of the License, or
  50861. # (at your option) any later version.
  50862. #
  50863. -# This program is distributed in the hope that it will be useful, but
  50864. +# As a special exception to the GNU General Public License,
  50865. +# if you distribute this file as part of a program or library that
  50866. +# is built using GNU Libtool, you may include this file under the
  50867. +# same distribution terms that you use for the rest of that program.
  50868. +#
  50869. +# GNU Libtool is distributed in the hope that it will be useful, but
  50870. # WITHOUT ANY WARRANTY; without even the implied warranty of
  50871. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  50872. # General Public License for more details.
  50873. #
  50874. # You should have received a copy of the GNU General Public License
  50875. -# along with this program; if not, write to the Free Software
  50876. -# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
  50877. +# along with GNU Libtool; see the file COPYING. If not, a copy
  50878. +# can be downloaded from http://www.gnu.org/licenses/gpl.html,
  50879. +# or obtained by writing to the Free Software Foundation, Inc.,
  50880. +# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  50881. +
  50882. +# Usage: $progname [OPTION]... [MODE-ARG]...
  50883. +#
  50884. +# Provide generalized library-building support services.
  50885. #
  50886. -# As a special exception to the GNU General Public License, if you
  50887. -# distribute this file as part of a program that contains a
  50888. -# configuration script generated by Autoconf, you may include it under
  50889. -# the same distribution terms that you use for the rest of that program.
  50890. +# --config show all configuration variables
  50891. +# --debug enable verbose shell tracing
  50892. +# -n, --dry-run display commands without modifying any files
  50893. +# --features display basic configuration information and exit
  50894. +# --mode=MODE use operation mode MODE
  50895. +# --preserve-dup-deps don't remove duplicate dependency libraries
  50896. +# --quiet, --silent don't print informational messages
  50897. +# --tag=TAG use configuration variables from tag TAG
  50898. +# -v, --verbose print informational messages (default)
  50899. +# --version print version information
  50900. +# -h, --help print short or long help message
  50901. +#
  50902. +# MODE must be one of the following:
  50903. +#
  50904. +# clean remove files from the build directory
  50905. +# compile compile a source file into a libtool object
  50906. +# execute automatically set library path, then run a program
  50907. +# finish complete the installation of libtool libraries
  50908. +# install install libraries or executables
  50909. +# link create a library or an executable
  50910. +# uninstall remove libraries from an installed directory
  50911. +#
  50912. +# MODE-ARGS vary depending on the MODE.
  50913. +# Try `$progname --help --mode=MODE' for a more detailed description of MODE.
  50914. +#
  50915. +# When reporting a bug, please describe a test case to reproduce it and
  50916. +# include the following information:
  50917. +#
  50918. +# host-triplet: $host
  50919. +# shell: $SHELL
  50920. +# compiler: $LTCC
  50921. +# compiler flags: $LTCFLAGS
  50922. +# linker: $LD (gnu? $with_gnu_ld)
  50923. +# $progname: (GNU libtool) 2.2.6b Debian-2.2.6b-2ubuntu1
  50924. +# automake: $automake_version
  50925. +# autoconf: $autoconf_version
  50926. +#
  50927. +# Report bugs to <bug-libtool@gnu.org>.
  50928. +
  50929. +PROGRAM=ltmain.sh
  50930. +PACKAGE=libtool
  50931. +VERSION="2.2.6b Debian-2.2.6b-2ubuntu1"
  50932. +TIMESTAMP=""
  50933. +package_revision=1.3017
  50934. +
  50935. +# Be Bourne compatible
  50936. +if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  50937. + emulate sh
  50938. + NULLCMD=:
  50939. + # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  50940. + # is contrary to our usage. Disable this feature.
  50941. + alias -g '${1+"$@"}'='"$@"'
  50942. + setopt NO_GLOB_SUBST
  50943. +else
  50944. + case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
  50945. +fi
  50946. +BIN_SH=xpg4; export BIN_SH # for Tru64
  50947. +DUALCASE=1; export DUALCASE # for MKS sh
  50948. +
  50949. +# NLS nuisances: We save the old values to restore during execute mode.
  50950. +# Only set LANG and LC_ALL to C if already set.
  50951. +# These must not be set unconditionally because not all systems understand
  50952. +# e.g. LANG=C (notably SCO).
  50953. +lt_user_locale=
  50954. +lt_safe_locale=
  50955. +for lt_var in LANG LANGUAGE LC_ALL LC_CTYPE LC_COLLATE LC_MESSAGES
  50956. +do
  50957. + eval "if test \"\${$lt_var+set}\" = set; then
  50958. + save_$lt_var=\$$lt_var
  50959. + $lt_var=C
  50960. + export $lt_var
  50961. + lt_user_locale=\"$lt_var=\\\$save_\$lt_var; \$lt_user_locale\"
  50962. + lt_safe_locale=\"$lt_var=C; \$lt_safe_locale\"
  50963. + fi"
  50964. +done
  50965. -basename="s,^.*/,,g"
  50966. +$lt_unset CDPATH
  50967. -# Work around backward compatibility issue on IRIX 6.5. On IRIX 6.4+, sh
  50968. -# is ksh but when the shell is invoked as "sh" and the current value of
  50969. -# the _XPG environment variable is not equal to 1 (one), the special
  50970. -# positional parameter $0, within a function call, is the name of the
  50971. -# function.
  50972. -progpath="$0"
  50973. -# The name of this program:
  50974. -progname=`echo "$progpath" | $SED $basename`
  50975. -modename="$progname"
  50976. +
  50977. +
  50978. +
  50979. +: ${CP="cp -f"}
  50980. +: ${ECHO="echo"}
  50981. +: ${EGREP="/bin/grep -E"}
  50982. +: ${FGREP="/bin/grep -F"}
  50983. +: ${GREP="/bin/grep"}
  50984. +: ${LN_S="ln -s"}
  50985. +: ${MAKE="make"}
  50986. +: ${MKDIR="mkdir"}
  50987. +: ${MV="mv -f"}
  50988. +: ${RM="rm -f"}
  50989. +: ${SED="/bin/sed"}
  50990. +: ${SHELL="${CONFIG_SHELL-/bin/sh}"}
  50991. +: ${Xsed="$SED -e 1s/^X//"}
  50992. # Global variables:
  50993. EXIT_SUCCESS=0
  50994. EXIT_FAILURE=1
  50995. +EXIT_MISMATCH=63 # $? = 63 is used to indicate version mismatch to missing.
  50996. +EXIT_SKIP=77 # $? = 77 is used to indicate a skipped test to automake.
  50997. -PROGRAM=ltmain.sh
  50998. -PACKAGE=libtool
  50999. -VERSION=1.5.6
  51000. -TIMESTAMP=" (1.1220.2.95 2004/04/11 05:50:42) Debian$Rev: 215 $"
  51001. +exit_status=$EXIT_SUCCESS
  51002. +# Make sure IFS has a sensible default
  51003. +lt_nl='
  51004. +'
  51005. +IFS=" $lt_nl"
  51006. +
  51007. +dirname="s,/[^/]*$,,"
  51008. +basename="s,^.*/,,"
  51009. +
  51010. +# func_dirname_and_basename file append nondir_replacement
  51011. +# perform func_basename and func_dirname in a single function
  51012. +# call:
  51013. +# dirname: Compute the dirname of FILE. If nonempty,
  51014. +# add APPEND to the result, otherwise set result
  51015. +# to NONDIR_REPLACEMENT.
  51016. +# value returned in "$func_dirname_result"
  51017. +# basename: Compute filename of FILE.
  51018. +# value retuned in "$func_basename_result"
  51019. +# Implementation must be kept synchronized with func_dirname
  51020. +# and func_basename. For efficiency, we do not delegate to
  51021. +# those functions but instead duplicate the functionality here.
  51022. +func_dirname_and_basename ()
  51023. +{
  51024. + # Extract subdirectory from the argument.
  51025. + func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
  51026. + if test "X$func_dirname_result" = "X${1}"; then
  51027. + func_dirname_result="${3}"
  51028. + else
  51029. + func_dirname_result="$func_dirname_result${2}"
  51030. + fi
  51031. + func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
  51032. +}
  51033. -# Check that we have a working $echo.
  51034. -if test "X$1" = X--no-reexec; then
  51035. - # Discard the --no-reexec flag, and continue.
  51036. - shift
  51037. -elif test "X$1" = X--fallback-echo; then
  51038. - # Avoid inline document here, it may be left over
  51039. - :
  51040. -elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then
  51041. - # Yippee, $echo works!
  51042. - :
  51043. -else
  51044. - # Restart under the correct shell, and then maybe $echo will work.
  51045. - exec $SHELL "$progpath" --no-reexec ${1+"$@"}
  51046. -fi
  51047. +# Generated shell functions inserted here.
  51048. -if test "X$1" = X--fallback-echo; then
  51049. - # used as fallback echo
  51050. - shift
  51051. - cat <<EOF
  51052. -$*
  51053. -EOF
  51054. - exit $EXIT_SUCCESS
  51055. -fi
  51056. +# Work around backward compatibility issue on IRIX 6.5. On IRIX 6.4+, sh
  51057. +# is ksh but when the shell is invoked as "sh" and the current value of
  51058. +# the _XPG environment variable is not equal to 1 (one), the special
  51059. +# positional parameter $0, within a function call, is the name of the
  51060. +# function.
  51061. +progpath="$0"
  51062. -default_mode=
  51063. -help="Try \`$progname --help' for more information."
  51064. -magic="%%%MAGIC variable%%%"
  51065. -mkdir="mkdir"
  51066. -mv="mv -f"
  51067. -rm="rm -f"
  51068. +# The name of this program:
  51069. +# In the unlikely event $progname began with a '-', it would play havoc with
  51070. +# func_echo (imagine progname=-n), so we prepend ./ in that case:
  51071. +func_dirname_and_basename "$progpath"
  51072. +progname=$func_basename_result
  51073. +case $progname in
  51074. + -*) progname=./$progname ;;
  51075. +esac
  51076. +
  51077. +# Make sure we have an absolute path for reexecution:
  51078. +case $progpath in
  51079. + [\\/]*|[A-Za-z]:\\*) ;;
  51080. + *[\\/]*)
  51081. + progdir=$func_dirname_result
  51082. + progdir=`cd "$progdir" && pwd`
  51083. + progpath="$progdir/$progname"
  51084. + ;;
  51085. + *)
  51086. + save_IFS="$IFS"
  51087. + IFS=:
  51088. + for progdir in $PATH; do
  51089. + IFS="$save_IFS"
  51090. + test -x "$progdir/$progname" && break
  51091. + done
  51092. + IFS="$save_IFS"
  51093. + test -n "$progdir" || progdir=`pwd`
  51094. + progpath="$progdir/$progname"
  51095. + ;;
  51096. +esac
  51097. # Sed substitution that helps us do robust quoting. It backslashifies
  51098. # metacharacters that are still active within double-quoted strings.
  51099. Xsed="${SED}"' -e 1s/^X//'
  51100. -sed_quote_subst='s/\([\\`\\"$\\\\]\)/\\\1/g'
  51101. -# test EBCDIC or ASCII
  51102. -case `echo A|tr A '\301'` in
  51103. - A) # EBCDIC based system
  51104. - SP2NL="tr '\100' '\n'"
  51105. - NL2SP="tr '\r\n' '\100\100'"
  51106. - ;;
  51107. - *) # Assume ASCII based system
  51108. - SP2NL="tr '\040' '\012'"
  51109. - NL2SP="tr '\015\012' '\040\040'"
  51110. - ;;
  51111. -esac
  51112. +sed_quote_subst='s/\([`"$\\]\)/\\\1/g'
  51113. -# NLS nuisances.
  51114. -# Only set LANG and LC_ALL to C if already set.
  51115. -# These must not be set unconditionally because not all systems understand
  51116. -# e.g. LANG=C (notably SCO).
  51117. -# We save the old values to restore during execute mode.
  51118. -if test "${LC_ALL+set}" = set; then
  51119. - save_LC_ALL="$LC_ALL"; LC_ALL=C; export LC_ALL
  51120. -fi
  51121. -if test "${LANG+set}" = set; then
  51122. - save_LANG="$LANG"; LANG=C; export LANG
  51123. -fi
  51124. +# Same as above, but do not quote variable references.
  51125. +double_quote_subst='s/\(["`\\]\)/\\\1/g'
  51126. -# Make sure IFS has a sensible default
  51127. -: ${IFS="
  51128. -"}
  51129. +# Re-`\' parameter expansions in output of double_quote_subst that were
  51130. +# `\'-ed in input to the same. If an odd number of `\' preceded a '$'
  51131. +# in input to double_quote_subst, that '$' was protected from expansion.
  51132. +# Since each input `\' is now two `\'s, look for any number of runs of
  51133. +# four `\'s followed by two `\'s and then a '$'. `\' that '$'.
  51134. +bs='\\'
  51135. +bs2='\\\\'
  51136. +bs4='\\\\\\\\'
  51137. +dollar='\$'
  51138. +sed_double_backslash="\
  51139. + s/$bs4/&\\
  51140. +/g
  51141. + s/^$bs2$dollar/$bs&/
  51142. + s/\\([^$bs]\\)$bs2$dollar/\\1$bs2$bs$dollar/g
  51143. + s/\n//g"
  51144. +
  51145. +# Standard options:
  51146. +opt_dry_run=false
  51147. +opt_help=false
  51148. +opt_quiet=false
  51149. +opt_verbose=false
  51150. +opt_warning=:
  51151. +
  51152. +# func_echo arg...
  51153. +# Echo program name prefixed message, along with the current mode
  51154. +# name if it has been set yet.
  51155. +func_echo ()
  51156. +{
  51157. + $ECHO "$progname${mode+: }$mode: $*"
  51158. +}
  51159. -if test "$build_libtool_libs" != yes && test "$build_old_libs" != yes; then
  51160. - $echo "$modename: not configured to build any kind of library" 1>&2
  51161. - $echo "Fatal configuration error. See the $PACKAGE docs for more information." 1>&2
  51162. - exit $EXIT_FAILURE
  51163. -fi
  51164. +# func_verbose arg...
  51165. +# Echo program name prefixed message in verbose mode only.
  51166. +func_verbose ()
  51167. +{
  51168. + $opt_verbose && func_echo ${1+"$@"}
  51169. -# Global variables.
  51170. -mode=$default_mode
  51171. -nonopt=
  51172. -prev=
  51173. -prevopt=
  51174. -run=
  51175. -show="$echo"
  51176. -show_help=
  51177. -execute_dlfiles=
  51178. -lo2o="s/\\.lo\$/.${objext}/"
  51179. -o2lo="s/\\.${objext}\$/.lo/"
  51180. + # A bug in bash halts the script if the last line of a function
  51181. + # fails when set -e is in force, so we need another command to
  51182. + # work around that:
  51183. + :
  51184. +}
  51185. -#####################################
  51186. -# Shell function definitions:
  51187. -# This seems to be the best place for them
  51188. +# func_error arg...
  51189. +# Echo program name prefixed message to standard error.
  51190. +func_error ()
  51191. +{
  51192. + $ECHO "$progname${mode+: }$mode: "${1+"$@"} 1>&2
  51193. +}
  51194. -# func_win32_libid arg
  51195. -# return the library type of file 'arg'
  51196. -#
  51197. -# Need a lot of goo to handle *both* DLLs and import libs
  51198. -# Has to be a shell function in order to 'eat' the argument
  51199. -# that is supplied when $file_magic_command is called.
  51200. -func_win32_libid () {
  51201. - win32_libid_type="unknown"
  51202. - win32_fileres=`file -L $1 2>/dev/null`
  51203. - case $win32_fileres in
  51204. - *ar\ archive\ import\ library*) # definitely import
  51205. - win32_libid_type="x86 archive import"
  51206. - ;;
  51207. - *ar\ archive*) # could be an import, or static
  51208. - if eval $OBJDUMP -f $1 | $SED -e '10q' 2>/dev/null | \
  51209. - $EGREP -e 'file format pe-i386(.*architecture: i386)?' >/dev/null ; then
  51210. - win32_nmres=`eval $NM -f posix -A $1 | \
  51211. - sed -n -e '1,100{/ I /{x;/import/!{s/^/import/;h;p;};x;};}'`
  51212. - if test "X$win32_nmres" = "Ximport" ; then
  51213. - win32_libid_type="x86 archive import"
  51214. - else
  51215. - win32_libid_type="x86 archive static"
  51216. - fi
  51217. - fi
  51218. - ;;
  51219. - *DLL*)
  51220. - win32_libid_type="x86 DLL"
  51221. - ;;
  51222. - *executable*) # but shell scripts are "executable" too...
  51223. - case $win32_fileres in
  51224. - *MS\ Windows\ PE\ Intel*)
  51225. - win32_libid_type="x86 DLL"
  51226. - ;;
  51227. - esac
  51228. - ;;
  51229. - esac
  51230. - $echo $win32_libid_type
  51231. +# func_warning arg...
  51232. +# Echo program name prefixed warning message to standard error.
  51233. +func_warning ()
  51234. +{
  51235. + $opt_warning && $ECHO "$progname${mode+: }$mode: warning: "${1+"$@"} 1>&2
  51236. +
  51237. + # bash bug again:
  51238. + :
  51239. }
  51240. +# func_fatal_error arg...
  51241. +# Echo program name prefixed message to standard error, and exit.
  51242. +func_fatal_error ()
  51243. +{
  51244. + func_error ${1+"$@"}
  51245. + exit $EXIT_FAILURE
  51246. +}
  51247. -# func_infer_tag arg
  51248. -# Infer tagged configuration to use if any are available and
  51249. -# if one wasn't chosen via the "--tag" command line option.
  51250. -# Only attempt this if the compiler in the base compile
  51251. -# command doesn't match the default compiler.
  51252. -# arg is usually of the form 'gcc ...'
  51253. -func_infer_tag () {
  51254. - if test -n "$available_tags" && test -z "$tagname"; then
  51255. - CC_quoted=
  51256. - for arg in $CC; do
  51257. - case $arg in
  51258. - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
  51259. - arg="\"$arg\""
  51260. - ;;
  51261. - esac
  51262. - CC_quoted="$CC_quoted $arg"
  51263. - done
  51264. - case $@ in
  51265. - # Blanks in the command may have been stripped by the calling shell,
  51266. - # but not from the CC environment variable when configure was run.
  51267. - " $CC "* | "$CC "* | " `$echo $CC` "* | "`$echo $CC` "* | " $CC_quoted"* | "$CC_quoted "* | " `$echo $CC_quoted` "* | "`$echo $CC_quoted` "*) ;;
  51268. - # Blanks at the start of $base_compile will cause this to fail
  51269. - # if we don't check for them as well.
  51270. - *)
  51271. - for z in $available_tags; do
  51272. - if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $z$" < "$progpath" > /dev/null; then
  51273. - # Evaluate the configuration.
  51274. - eval "`${SED} -n -e '/^# ### BEGIN LIBTOOL TAG CONFIG: '$z'$/,/^# ### END LIBTOOL TAG CONFIG: '$z'$/p' < $progpath`"
  51275. - CC_quoted=
  51276. - for arg in $CC; do
  51277. - # Double-quote args containing other shell metacharacters.
  51278. - case $arg in
  51279. - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
  51280. - arg="\"$arg\""
  51281. - ;;
  51282. - esac
  51283. - CC_quoted="$CC_quoted $arg"
  51284. - done
  51285. - case "$@ " in
  51286. - " $CC "* | "$CC "* | " `$echo $CC` "* | "`$echo $CC` "* | " $CC_quoted"* | "$CC_quoted "* | " `$echo $CC_quoted` "* | "`$echo $CC_quoted` "*)
  51287. - # The compiler in the base compile command matches
  51288. - # the one in the tagged configuration.
  51289. - # Assume this is the tagged configuration we want.
  51290. - tagname=$z
  51291. - break
  51292. - ;;
  51293. - esac
  51294. - fi
  51295. - done
  51296. - # If $tagname still isn't set, then no tagged configuration
  51297. - # was found and let the user know that the "--tag" command
  51298. - # line option must be used.
  51299. - if test -z "$tagname"; then
  51300. - $echo "$modename: unable to infer tagged configuration"
  51301. - $echo "$modename: specify a tag with \`--tag'" 1>&2
  51302. - exit $EXIT_FAILURE
  51303. -# else
  51304. -# $echo "$modename: using $tagname tagged configuration"
  51305. - fi
  51306. - ;;
  51307. - esac
  51308. - fi
  51309. +# func_fatal_help arg...
  51310. +# Echo program name prefixed message to standard error, followed by
  51311. +# a help hint, and exit.
  51312. +func_fatal_help ()
  51313. +{
  51314. + func_error ${1+"$@"}
  51315. + func_fatal_error "$help"
  51316. }
  51317. -# End of Shell function definitions
  51318. -#####################################
  51319. +help="Try \`$progname --help' for more information." ## default
  51320. -# Darwin sucks
  51321. -eval std_shrext=\"$shrext_cmds\"
  51322. -# Parse our command line options once, thoroughly.
  51323. -while test "$#" -gt 0
  51324. -do
  51325. - arg="$1"
  51326. - shift
  51327. +# func_grep expression filename
  51328. +# Check whether EXPRESSION matches any line of FILENAME, without output.
  51329. +func_grep ()
  51330. +{
  51331. + $GREP "$1" "$2" >/dev/null 2>&1
  51332. +}
  51333. - case $arg in
  51334. - -*=*) optarg=`$echo "X$arg" | $Xsed -e 's/[-_a-zA-Z0-9]*=//'` ;;
  51335. - *) optarg= ;;
  51336. - esac
  51337. - # If the previous option needs an argument, assign it.
  51338. - if test -n "$prev"; then
  51339. - case $prev in
  51340. - execute_dlfiles)
  51341. - execute_dlfiles="$execute_dlfiles $arg"
  51342. - ;;
  51343. - tag)
  51344. - tagname="$arg"
  51345. - preserve_args="${preserve_args}=$arg"
  51346. -
  51347. - # Check whether tagname contains only valid characters
  51348. - case $tagname in
  51349. - *[!-_A-Za-z0-9,/]*)
  51350. - $echo "$progname: invalid tag name: $tagname" 1>&2
  51351. - exit $EXIT_FAILURE
  51352. - ;;
  51353. - esac
  51354. +# func_mkdir_p directory-path
  51355. +# Make sure the entire path to DIRECTORY-PATH is available.
  51356. +func_mkdir_p ()
  51357. +{
  51358. + my_directory_path="$1"
  51359. + my_dir_list=
  51360. - case $tagname in
  51361. - CC)
  51362. - # Don't test for the "default" C tag, as we know, it's there, but
  51363. - # not specially marked.
  51364. - ;;
  51365. - *)
  51366. - if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "$progpath" > /dev/null; then
  51367. - taglist="$taglist $tagname"
  51368. - # Evaluate the configuration.
  51369. - eval "`${SED} -n -e '/^# ### BEGIN LIBTOOL TAG CONFIG: '$tagname'$/,/^# ### END LIBTOOL TAG CONFIG: '$tagname'$/p' < $progpath`"
  51370. - else
  51371. - $echo "$progname: ignoring unknown tag $tagname" 1>&2
  51372. - fi
  51373. - ;;
  51374. + if test -n "$my_directory_path" && test "$opt_dry_run" != ":"; then
  51375. +
  51376. + # Protect directory names starting with `-'
  51377. + case $my_directory_path in
  51378. + -*) my_directory_path="./$my_directory_path" ;;
  51379. esac
  51380. - ;;
  51381. - *)
  51382. - eval "$prev=\$arg"
  51383. - ;;
  51384. - esac
  51385. - prev=
  51386. - prevopt=
  51387. - continue
  51388. - fi
  51389. + # While some portion of DIR does not yet exist...
  51390. + while test ! -d "$my_directory_path"; do
  51391. + # ...make a list in topmost first order. Use a colon delimited
  51392. + # list incase some portion of path contains whitespace.
  51393. + my_dir_list="$my_directory_path:$my_dir_list"
  51394. - # Have we seen a non-optional argument yet?
  51395. - case $arg in
  51396. - --help)
  51397. - show_help=yes
  51398. - ;;
  51399. + # If the last portion added has no slash in it, the list is done
  51400. + case $my_directory_path in */*) ;; *) break ;; esac
  51401. - --version)
  51402. - $echo "$PROGRAM (GNU $PACKAGE) $VERSION$TIMESTAMP"
  51403. - $echo
  51404. - $echo "Copyright (C) 2003 Free Software Foundation, Inc."
  51405. - $echo "This is free software; see the source for copying conditions. There is NO"
  51406. - $echo "warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
  51407. - exit $EXIT_SUCCESS
  51408. - ;;
  51409. + # ...otherwise throw away the child directory and loop
  51410. + my_directory_path=`$ECHO "X$my_directory_path" | $Xsed -e "$dirname"`
  51411. + done
  51412. + my_dir_list=`$ECHO "X$my_dir_list" | $Xsed -e 's,:*$,,'`
  51413. - --config)
  51414. - ${SED} -e '1,/^# ### BEGIN LIBTOOL CONFIG/d' -e '/^# ### END LIBTOOL CONFIG/,$d' $progpath
  51415. - # Now print the configurations for the tags.
  51416. - for tagname in $taglist; do
  51417. - ${SED} -n -e "/^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$/,/^# ### END LIBTOOL TAG CONFIG: $tagname$/p" < "$progpath"
  51418. - done
  51419. - exit $EXIT_SUCCESS
  51420. - ;;
  51421. + save_mkdir_p_IFS="$IFS"; IFS=':'
  51422. + for my_dir in $my_dir_list; do
  51423. + IFS="$save_mkdir_p_IFS"
  51424. + # mkdir can fail with a `File exist' error if two processes
  51425. + # try to create one of the directories concurrently. Don't
  51426. + # stop in that case!
  51427. + $MKDIR "$my_dir" 2>/dev/null || :
  51428. + done
  51429. + IFS="$save_mkdir_p_IFS"
  51430. - --debug)
  51431. - $echo "$progname: enabling shell trace mode"
  51432. - set -x
  51433. - preserve_args="$preserve_args $arg"
  51434. - ;;
  51435. + # Bail out if we (or some other process) failed to create a directory.
  51436. + test -d "$my_directory_path" || \
  51437. + func_fatal_error "Failed to create \`$1'"
  51438. + fi
  51439. +}
  51440. - --dry-run | -n)
  51441. - run=:
  51442. - ;;
  51443. - --features)
  51444. - $echo "host: $host"
  51445. - if test "$build_libtool_libs" = yes; then
  51446. - $echo "enable shared libraries"
  51447. - else
  51448. - $echo "disable shared libraries"
  51449. - fi
  51450. - if test "$build_old_libs" = yes; then
  51451. - $echo "enable static libraries"
  51452. +# func_mktempdir [string]
  51453. +# Make a temporary directory that won't clash with other running
  51454. +# libtool processes, and avoids race conditions if possible. If
  51455. +# given, STRING is the basename for that directory.
  51456. +func_mktempdir ()
  51457. +{
  51458. + my_template="${TMPDIR-/tmp}/${1-$progname}"
  51459. +
  51460. + if test "$opt_dry_run" = ":"; then
  51461. + # Return a directory name, but don't create it in dry-run mode
  51462. + my_tmpdir="${my_template}-$$"
  51463. else
  51464. - $echo "disable static libraries"
  51465. - fi
  51466. - exit $EXIT_SUCCESS
  51467. - ;;
  51468. - --finish) mode="finish" ;;
  51469. + # If mktemp works, use that first and foremost
  51470. + my_tmpdir=`mktemp -d "${my_template}-XXXXXXXX" 2>/dev/null`
  51471. - --mode) prevopt="--mode" prev=mode ;;
  51472. - --mode=*) mode="$optarg" ;;
  51473. + if test ! -d "$my_tmpdir"; then
  51474. + # Failing that, at least try and use $RANDOM to avoid a race
  51475. + my_tmpdir="${my_template}-${RANDOM-0}$$"
  51476. - --preserve-dup-deps) duplicate_deps="yes" ;;
  51477. + save_mktempdir_umask=`umask`
  51478. + umask 0077
  51479. + $MKDIR "$my_tmpdir"
  51480. + umask $save_mktempdir_umask
  51481. + fi
  51482. - --quiet | --silent)
  51483. - show=:
  51484. - preserve_args="$preserve_args $arg"
  51485. - ;;
  51486. + # If we're not in dry-run mode, bomb out on failure
  51487. + test -d "$my_tmpdir" || \
  51488. + func_fatal_error "cannot create temporary directory \`$my_tmpdir'"
  51489. + fi
  51490. - --tag) prevopt="--tag" prev=tag ;;
  51491. - --tag=*)
  51492. - set tag "$optarg" ${1+"$@"}
  51493. - shift
  51494. - prev=tag
  51495. - preserve_args="$preserve_args --tag"
  51496. - ;;
  51497. + $ECHO "X$my_tmpdir" | $Xsed
  51498. +}
  51499. - -dlopen)
  51500. - prevopt="-dlopen"
  51501. - prev=execute_dlfiles
  51502. - ;;
  51503. - -*)
  51504. - $echo "$modename: unrecognized option \`$arg'" 1>&2
  51505. - $echo "$help" 1>&2
  51506. - exit $EXIT_FAILURE
  51507. - ;;
  51508. +# func_quote_for_eval arg
  51509. +# Aesthetically quote ARG to be evaled later.
  51510. +# This function returns two values: FUNC_QUOTE_FOR_EVAL_RESULT
  51511. +# is double-quoted, suitable for a subsequent eval, whereas
  51512. +# FUNC_QUOTE_FOR_EVAL_UNQUOTED_RESULT has merely all characters
  51513. +# which are still active within double quotes backslashified.
  51514. +func_quote_for_eval ()
  51515. +{
  51516. + case $1 in
  51517. + *[\\\`\"\$]*)
  51518. + func_quote_for_eval_unquoted_result=`$ECHO "X$1" | $Xsed -e "$sed_quote_subst"` ;;
  51519. + *)
  51520. + func_quote_for_eval_unquoted_result="$1" ;;
  51521. + esac
  51522. - *)
  51523. - nonopt="$arg"
  51524. - break
  51525. - ;;
  51526. - esac
  51527. -done
  51528. + case $func_quote_for_eval_unquoted_result in
  51529. + # Double-quote args containing shell metacharacters to delay
  51530. + # word splitting, command substitution and and variable
  51531. + # expansion for a subsequent eval.
  51532. + # Many Bourne shells cannot handle close brackets correctly
  51533. + # in scan sets, so we specify it separately.
  51534. + *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
  51535. + func_quote_for_eval_result="\"$func_quote_for_eval_unquoted_result\""
  51536. + ;;
  51537. + *)
  51538. + func_quote_for_eval_result="$func_quote_for_eval_unquoted_result"
  51539. + esac
  51540. +}
  51541. -if test -n "$prevopt"; then
  51542. - $echo "$modename: option \`$prevopt' requires an argument" 1>&2
  51543. - $echo "$help" 1>&2
  51544. - exit $EXIT_FAILURE
  51545. -fi
  51546. -# If this variable is set in any of the actions, the command in it
  51547. -# will be execed at the end. This prevents here-documents from being
  51548. -# left over by shells.
  51549. -exec_cmd=
  51550. +# func_quote_for_expand arg
  51551. +# Aesthetically quote ARG to be evaled later; same as above,
  51552. +# but do not quote variable references.
  51553. +func_quote_for_expand ()
  51554. +{
  51555. + case $1 in
  51556. + *[\\\`\"]*)
  51557. + my_arg=`$ECHO "X$1" | $Xsed \
  51558. + -e "$double_quote_subst" -e "$sed_double_backslash"` ;;
  51559. + *)
  51560. + my_arg="$1" ;;
  51561. + esac
  51562. -if test -z "$show_help"; then
  51563. + case $my_arg in
  51564. + # Double-quote args containing shell metacharacters to delay
  51565. + # word splitting and command substitution for a subsequent eval.
  51566. + # Many Bourne shells cannot handle close brackets correctly
  51567. + # in scan sets, so we specify it separately.
  51568. + *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
  51569. + my_arg="\"$my_arg\""
  51570. + ;;
  51571. + esac
  51572. - # Infer the operation mode.
  51573. - if test -z "$mode"; then
  51574. - $echo "*** Warning: inferring the mode of operation is deprecated." 1>&2
  51575. - $echo "*** Future versions of Libtool will require -mode=MODE be specified." 1>&2
  51576. - case $nonopt in
  51577. - *cc | cc* | *++ | gcc* | *-gcc* | g++* | xlc*)
  51578. - mode=link
  51579. - for arg
  51580. - do
  51581. - case $arg in
  51582. - -c)
  51583. - mode=compile
  51584. - break
  51585. - ;;
  51586. - esac
  51587. - done
  51588. - ;;
  51589. - *db | *dbx | *strace | *truss)
  51590. - mode=execute
  51591. - ;;
  51592. - *install*|cp|mv)
  51593. - mode=install
  51594. - ;;
  51595. - *rm)
  51596. - mode=uninstall
  51597. - ;;
  51598. - *)
  51599. - # If we have no mode, but dlfiles were specified, then do execute mode.
  51600. - test -n "$execute_dlfiles" && mode=execute
  51601. + func_quote_for_expand_result="$my_arg"
  51602. +}
  51603. - # Just use the default operation mode.
  51604. - if test -z "$mode"; then
  51605. - if test -n "$nonopt"; then
  51606. - $echo "$modename: warning: cannot infer operation mode from \`$nonopt'" 1>&2
  51607. - else
  51608. - $echo "$modename: warning: cannot infer operation mode without MODE-ARGS" 1>&2
  51609. - fi
  51610. +
  51611. +# func_show_eval cmd [fail_exp]
  51612. +# Unless opt_silent is true, then output CMD. Then, if opt_dryrun is
  51613. +# not true, evaluate CMD. If the evaluation of CMD fails, and FAIL_EXP
  51614. +# is given, then evaluate it.
  51615. +func_show_eval ()
  51616. +{
  51617. + my_cmd="$1"
  51618. + my_fail_exp="${2-:}"
  51619. +
  51620. + ${opt_silent-false} || {
  51621. + func_quote_for_expand "$my_cmd"
  51622. + eval "func_echo $func_quote_for_expand_result"
  51623. + }
  51624. +
  51625. + if ${opt_dry_run-false}; then :; else
  51626. + eval "$my_cmd"
  51627. + my_status=$?
  51628. + if test "$my_status" -eq 0; then :; else
  51629. + eval "(exit $my_status); $my_fail_exp"
  51630. fi
  51631. - ;;
  51632. - esac
  51633. - fi
  51634. + fi
  51635. +}
  51636. - # Only execute mode is allowed to have -dlopen flags.
  51637. - if test -n "$execute_dlfiles" && test "$mode" != execute; then
  51638. - $echo "$modename: unrecognized option \`-dlopen'" 1>&2
  51639. - $echo "$help" 1>&2
  51640. - exit $EXIT_FAILURE
  51641. - fi
  51642. - # Change the help message to a mode-specific one.
  51643. - generic_help="$help"
  51644. - help="Try \`$modename --help --mode=$mode' for more information."
  51645. +# func_show_eval_locale cmd [fail_exp]
  51646. +# Unless opt_silent is true, then output CMD. Then, if opt_dryrun is
  51647. +# not true, evaluate CMD. If the evaluation of CMD fails, and FAIL_EXP
  51648. +# is given, then evaluate it. Use the saved locale for evaluation.
  51649. +func_show_eval_locale ()
  51650. +{
  51651. + my_cmd="$1"
  51652. + my_fail_exp="${2-:}"
  51653. - # These modes are in order of execution frequency so that they run quickly.
  51654. - case $mode in
  51655. - # libtool compile mode
  51656. - compile)
  51657. - modename="$modename: compile"
  51658. - # Get the compilation command and the source file.
  51659. - base_compile=
  51660. - srcfile="$nonopt" # always keep a non-empty value in "srcfile"
  51661. - suppress_opt=yes
  51662. - suppress_output=
  51663. - arg_mode=normal
  51664. - libobj=
  51665. - later=
  51666. + ${opt_silent-false} || {
  51667. + func_quote_for_expand "$my_cmd"
  51668. + eval "func_echo $func_quote_for_expand_result"
  51669. + }
  51670. +
  51671. + if ${opt_dry_run-false}; then :; else
  51672. + eval "$lt_user_locale
  51673. + $my_cmd"
  51674. + my_status=$?
  51675. + eval "$lt_safe_locale"
  51676. + if test "$my_status" -eq 0; then :; else
  51677. + eval "(exit $my_status); $my_fail_exp"
  51678. + fi
  51679. + fi
  51680. +}
  51681. - for arg
  51682. - do
  51683. - case "$arg_mode" in
  51684. - arg )
  51685. - # do not "continue". Instead, add this to base_compile
  51686. - lastarg="$arg"
  51687. - arg_mode=normal
  51688. - ;;
  51689. - target )
  51690. - libobj="$arg"
  51691. - arg_mode=normal
  51692. - continue
  51693. - ;;
  51694. - normal )
  51695. - # Accept any command-line options.
  51696. - case $arg in
  51697. - -o)
  51698. - if test -n "$libobj" ; then
  51699. - $echo "$modename: you cannot specify \`-o' more than once" 1>&2
  51700. - exit $EXIT_FAILURE
  51701. - fi
  51702. - arg_mode=target
  51703. - continue
  51704. - ;;
  51705. - -static | -prefer-pic | -prefer-non-pic)
  51706. - later="$later $arg"
  51707. - continue
  51708. - ;;
  51709. - -no-suppress)
  51710. - suppress_opt=no
  51711. - continue
  51712. - ;;
  51713. +# func_version
  51714. +# Echo version message to standard output and exit.
  51715. +func_version ()
  51716. +{
  51717. + $SED -n '/^# '$PROGRAM' (GNU /,/# warranty; / {
  51718. + s/^# //
  51719. + s/^# *$//
  51720. + s/\((C)\)[ 0-9,-]*\( [1-9][0-9]*\)/\1\2/
  51721. + p
  51722. + }' < "$progpath"
  51723. + exit $?
  51724. +}
  51725. - -Xcompiler)
  51726. - arg_mode=arg # the next one goes into the "base_compile" arg list
  51727. - continue # The current "srcfile" will either be retained or
  51728. - ;; # replaced later. I would guess that would be a bug.
  51729. +# func_usage
  51730. +# Echo short help message to standard output and exit.
  51731. +func_usage ()
  51732. +{
  51733. + $SED -n '/^# Usage:/,/# -h/ {
  51734. + s/^# //
  51735. + s/^# *$//
  51736. + s/\$progname/'$progname'/
  51737. + p
  51738. + }' < "$progpath"
  51739. + $ECHO
  51740. + $ECHO "run \`$progname --help | more' for full usage"
  51741. + exit $?
  51742. +}
  51743. - -Wc,*)
  51744. - args=`$echo "X$arg" | $Xsed -e "s/^-Wc,//"`
  51745. - lastarg=
  51746. - save_ifs="$IFS"; IFS=','
  51747. - for arg in $args; do
  51748. - IFS="$save_ifs"
  51749. +# func_help
  51750. +# Echo long help message to standard output and exit.
  51751. +func_help ()
  51752. +{
  51753. + $SED -n '/^# Usage:/,/# Report bugs to/ {
  51754. + s/^# //
  51755. + s/^# *$//
  51756. + s*\$progname*'$progname'*
  51757. + s*\$host*'"$host"'*
  51758. + s*\$SHELL*'"$SHELL"'*
  51759. + s*\$LTCC*'"$LTCC"'*
  51760. + s*\$LTCFLAGS*'"$LTCFLAGS"'*
  51761. + s*\$LD*'"$LD"'*
  51762. + s/\$with_gnu_ld/'"$with_gnu_ld"'/
  51763. + s/\$automake_version/'"`(automake --version) 2>/dev/null |$SED 1q`"'/
  51764. + s/\$autoconf_version/'"`(autoconf --version) 2>/dev/null |$SED 1q`"'/
  51765. + p
  51766. + }' < "$progpath"
  51767. + exit $?
  51768. +}
  51769. - # Double-quote args containing other shell metacharacters.
  51770. - # Many Bourne shells cannot handle close brackets correctly
  51771. - # in scan sets, so we specify it separately.
  51772. - case $arg in
  51773. - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
  51774. - arg="\"$arg\""
  51775. - ;;
  51776. - esac
  51777. - lastarg="$lastarg $arg"
  51778. - done
  51779. - IFS="$save_ifs"
  51780. - lastarg=`$echo "X$lastarg" | $Xsed -e "s/^ //"`
  51781. +# func_missing_arg argname
  51782. +# Echo program name prefixed message to standard error and set global
  51783. +# exit_cmd.
  51784. +func_missing_arg ()
  51785. +{
  51786. + func_error "missing argument for $1"
  51787. + exit_cmd=exit
  51788. +}
  51789. - # Add the arguments to base_compile.
  51790. - base_compile="$base_compile $lastarg"
  51791. - continue
  51792. - ;;
  51793. +exit_cmd=:
  51794. - * )
  51795. - # Accept the current argument as the source file.
  51796. - # The previous "srcfile" becomes the current argument.
  51797. - #
  51798. - lastarg="$srcfile"
  51799. - srcfile="$arg"
  51800. - ;;
  51801. - esac # case $arg
  51802. - ;;
  51803. - esac # case $arg_mode
  51804. - # Aesthetically quote the previous argument.
  51805. - lastarg=`$echo "X$lastarg" | $Xsed -e "$sed_quote_subst"`
  51806. - case $lastarg in
  51807. - # Double-quote args containing other shell metacharacters.
  51808. - # Many Bourne shells cannot handle close brackets correctly
  51809. - # in scan sets, so we specify it separately.
  51810. - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
  51811. - lastarg="\"$lastarg\""
  51812. - ;;
  51813. - esac
  51814. - base_compile="$base_compile $lastarg"
  51815. - done # for arg
  51816. - case $arg_mode in
  51817. - arg)
  51818. - $echo "$modename: you must specify an argument for -Xcompile"
  51819. - exit $EXIT_FAILURE
  51820. - ;;
  51821. - target)
  51822. - $echo "$modename: you must specify a target with \`-o'" 1>&2
  51823. - exit $EXIT_FAILURE
  51824. - ;;
  51825. - *)
  51826. - # Get the name of the library object.
  51827. - [ -z "$libobj" ] && libobj=`$echo "X$srcfile" | $Xsed -e 's%^.*/%%'`
  51828. - ;;
  51829. - esac
  51830. +# Check that we have a working $ECHO.
  51831. +if test "X$1" = X--no-reexec; then
  51832. + # Discard the --no-reexec flag, and continue.
  51833. + shift
  51834. +elif test "X$1" = X--fallback-echo; then
  51835. + # Avoid inline document here, it may be left over
  51836. + :
  51837. +elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t'; then
  51838. + # Yippee, $ECHO works!
  51839. + :
  51840. +else
  51841. + # Restart under the correct shell, and then maybe $ECHO will work.
  51842. + exec $SHELL "$progpath" --no-reexec ${1+"$@"}
  51843. +fi
  51844. - # Recognize several different file suffixes.
  51845. - # If the user specifies -o file.o, it is replaced with file.lo
  51846. - xform='[cCFSifmso]'
  51847. - case $libobj in
  51848. - *.ada) xform=ada ;;
  51849. - *.adb) xform=adb ;;
  51850. - *.ads) xform=ads ;;
  51851. - *.asm) xform=asm ;;
  51852. - *.c++) xform=c++ ;;
  51853. - *.cc) xform=cc ;;
  51854. - *.ii) xform=ii ;;
  51855. - *.class) xform=class ;;
  51856. - *.cpp) xform=cpp ;;
  51857. - *.cxx) xform=cxx ;;
  51858. - *.f90) xform=f90 ;;
  51859. - *.for) xform=for ;;
  51860. - *.java) xform=java ;;
  51861. - esac
  51862. +if test "X$1" = X--fallback-echo; then
  51863. + # used as fallback echo
  51864. + shift
  51865. + cat <<EOF
  51866. +$*
  51867. +EOF
  51868. + exit $EXIT_SUCCESS
  51869. +fi
  51870. - libobj=`$echo "X$libobj" | $Xsed -e "s/\.$xform$/.lo/"`
  51871. +magic="%%%MAGIC variable%%%"
  51872. +magic_exe="%%%MAGIC EXE variable%%%"
  51873. - case $libobj in
  51874. - *.lo) obj=`$echo "X$libobj" | $Xsed -e "$lo2o"` ;;
  51875. - *)
  51876. - $echo "$modename: cannot determine name of library object from \`$libobj'" 1>&2
  51877. - exit $EXIT_FAILURE
  51878. - ;;
  51879. - esac
  51880. +# Global variables.
  51881. +# $mode is unset
  51882. +nonopt=
  51883. +execute_dlfiles=
  51884. +preserve_args=
  51885. +lo2o="s/\\.lo\$/.${objext}/"
  51886. +o2lo="s/\\.${objext}\$/.lo/"
  51887. +extracted_archives=
  51888. +extracted_serial=0
  51889. - func_infer_tag $base_compile
  51890. +opt_dry_run=false
  51891. +opt_duplicate_deps=false
  51892. +opt_silent=false
  51893. +opt_debug=:
  51894. - for arg in $later; do
  51895. - case $arg in
  51896. - -static)
  51897. - build_old_libs=yes
  51898. - continue
  51899. - ;;
  51900. +# If this variable is set in any of the actions, the command in it
  51901. +# will be execed at the end. This prevents here-documents from being
  51902. +# left over by shells.
  51903. +exec_cmd=
  51904. - -prefer-pic)
  51905. - pic_mode=yes
  51906. - continue
  51907. - ;;
  51908. +# func_fatal_configuration arg...
  51909. +# Echo program name prefixed message to standard error, followed by
  51910. +# a configuration failure hint, and exit.
  51911. +func_fatal_configuration ()
  51912. +{
  51913. + func_error ${1+"$@"}
  51914. + func_error "See the $PACKAGE documentation for more information."
  51915. + func_fatal_error "Fatal configuration error."
  51916. +}
  51917. - -prefer-non-pic)
  51918. - pic_mode=no
  51919. - continue
  51920. - ;;
  51921. - esac
  51922. +
  51923. +# func_config
  51924. +# Display the configuration for all the tags in this script.
  51925. +func_config ()
  51926. +{
  51927. + re_begincf='^# ### BEGIN LIBTOOL'
  51928. + re_endcf='^# ### END LIBTOOL'
  51929. +
  51930. + # Default configuration.
  51931. + $SED "1,/$re_begincf CONFIG/d;/$re_endcf CONFIG/,\$d" < "$progpath"
  51932. +
  51933. + # Now print the configurations for the tags.
  51934. + for tagname in $taglist; do
  51935. + $SED -n "/$re_begincf TAG CONFIG: $tagname\$/,/$re_endcf TAG CONFIG: $tagname\$/p" < "$progpath"
  51936. done
  51937. - objname=`$echo "X$obj" | $Xsed -e 's%^.*/%%'`
  51938. - xdir=`$echo "X$obj" | $Xsed -e 's%/[^/]*$%%'`
  51939. - if test "X$xdir" = "X$obj"; then
  51940. - xdir=
  51941. - else
  51942. - xdir=$xdir/
  51943. - fi
  51944. - lobj=${xdir}$objdir/$objname
  51945. + exit $?
  51946. +}
  51947. - if test -z "$base_compile"; then
  51948. - $echo "$modename: you must specify a compilation command" 1>&2
  51949. - $echo "$help" 1>&2
  51950. - exit $EXIT_FAILURE
  51951. +# func_features
  51952. +# Display the features supported by this script.
  51953. +func_features ()
  51954. +{
  51955. + $ECHO "host: $host"
  51956. + if test "$build_libtool_libs" = yes; then
  51957. + $ECHO "enable shared libraries"
  51958. + else
  51959. + $ECHO "disable shared libraries"
  51960. fi
  51961. -
  51962. - # Delete any leftover library objects.
  51963. if test "$build_old_libs" = yes; then
  51964. - removelist="$obj $lobj $libobj ${libobj}T"
  51965. + $ECHO "enable static libraries"
  51966. else
  51967. - removelist="$lobj $libobj ${libobj}T"
  51968. + $ECHO "disable static libraries"
  51969. fi
  51970. - $run $rm $removelist
  51971. - trap "$run $rm $removelist; exit $EXIT_FAILURE" 1 2 15
  51972. -
  51973. - # On Cygwin there's no "real" PIC flag so we must build both object types
  51974. - case $host_os in
  51975. - cygwin* | mingw* | pw32* | os2*)
  51976. - pic_mode=default
  51977. - ;;
  51978. - esac
  51979. - if test "$pic_mode" = no && test "$deplibs_check_method" != pass_all; then
  51980. - # non-PIC code in shared libraries is not supported
  51981. - pic_mode=default
  51982. - fi
  51983. + exit $?
  51984. +}
  51985. - # Calculate the filename of the output object if compiler does
  51986. - # not support -o with -c
  51987. - if test "$compiler_c_o" = no; then
  51988. - output_obj=`$echo "X$srcfile" | $Xsed -e 's%^.*/%%' -e 's%\.[^.]*$%%'`.${objext}
  51989. - lockfile="$output_obj.lock"
  51990. - removelist="$removelist $output_obj $lockfile"
  51991. - trap "$run $rm $removelist; exit $EXIT_FAILURE" 1 2 15
  51992. - else
  51993. - output_obj=
  51994. - need_locks=no
  51995. - lockfile=
  51996. - fi
  51997. +# func_enable_tag tagname
  51998. +# Verify that TAGNAME is valid, and either flag an error and exit, or
  51999. +# enable the TAGNAME tag. We also add TAGNAME to the global $taglist
  52000. +# variable here.
  52001. +func_enable_tag ()
  52002. +{
  52003. + # Global variable:
  52004. + tagname="$1"
  52005. - # Lock this critical section if it is needed
  52006. - # We use this script file to make the link, it avoids creating a new file
  52007. - if test "$need_locks" = yes; then
  52008. - until $run ln "$progpath" "$lockfile" 2>/dev/null; do
  52009. - $show "Waiting for $lockfile to be removed"
  52010. - sleep 2
  52011. - done
  52012. - elif test "$need_locks" = warn; then
  52013. - if test -f "$lockfile"; then
  52014. - $echo "\
  52015. -*** ERROR, $lockfile exists and contains:
  52016. -`cat $lockfile 2>/dev/null`
  52017. + re_begincf="^# ### BEGIN LIBTOOL TAG CONFIG: $tagname\$"
  52018. + re_endcf="^# ### END LIBTOOL TAG CONFIG: $tagname\$"
  52019. + sed_extractcf="/$re_begincf/,/$re_endcf/p"
  52020. +
  52021. + # Validate tagname.
  52022. + case $tagname in
  52023. + *[!-_A-Za-z0-9,/]*)
  52024. + func_fatal_error "invalid tag name: $tagname"
  52025. + ;;
  52026. + esac
  52027. -This indicates that another process is trying to use the same
  52028. -temporary object file, and libtool could not work around it because
  52029. -your compiler does not support \`-c' and \`-o' together. If you
  52030. -repeat this compilation, it may succeed, by chance, but you had better
  52031. -avoid parallel builds (make -j) in this platform, or get a better
  52032. -compiler."
  52033. + # Don't test for the "default" C tag, as we know it's
  52034. + # there but not specially marked.
  52035. + case $tagname in
  52036. + CC) ;;
  52037. + *)
  52038. + if $GREP "$re_begincf" "$progpath" >/dev/null 2>&1; then
  52039. + taglist="$taglist $tagname"
  52040. - $run $rm $removelist
  52041. - exit $EXIT_FAILURE
  52042. + # Evaluate the configuration. Be careful to quote the path
  52043. + # and the sed script, to avoid splitting on whitespace, but
  52044. + # also don't use non-portable quotes within backquotes within
  52045. + # quotes we have to do it in 2 steps:
  52046. + extractedcf=`$SED -n -e "$sed_extractcf" < "$progpath"`
  52047. + eval "$extractedcf"
  52048. + else
  52049. + func_error "ignoring unknown tag $tagname"
  52050. fi
  52051. - $echo $srcfile > "$lockfile"
  52052. - fi
  52053. + ;;
  52054. + esac
  52055. +}
  52056. - if test -n "$fix_srcfile_path"; then
  52057. - eval srcfile=\"$fix_srcfile_path\"
  52058. - fi
  52059. +# Parse options once, thoroughly. This comes as soon as possible in
  52060. +# the script to make things like `libtool --version' happen quickly.
  52061. +{
  52062. - $run $rm "$libobj" "${libobj}T"
  52063. + # Shorthand for --mode=foo, only valid as the first argument
  52064. + case $1 in
  52065. + clean|clea|cle|cl)
  52066. + shift; set dummy --mode clean ${1+"$@"}; shift
  52067. + ;;
  52068. + compile|compil|compi|comp|com|co|c)
  52069. + shift; set dummy --mode compile ${1+"$@"}; shift
  52070. + ;;
  52071. + execute|execut|execu|exec|exe|ex|e)
  52072. + shift; set dummy --mode execute ${1+"$@"}; shift
  52073. + ;;
  52074. + finish|finis|fini|fin|fi|f)
  52075. + shift; set dummy --mode finish ${1+"$@"}; shift
  52076. + ;;
  52077. + install|instal|insta|inst|ins|in|i)
  52078. + shift; set dummy --mode install ${1+"$@"}; shift
  52079. + ;;
  52080. + link|lin|li|l)
  52081. + shift; set dummy --mode link ${1+"$@"}; shift
  52082. + ;;
  52083. + uninstall|uninstal|uninsta|uninst|unins|unin|uni|un|u)
  52084. + shift; set dummy --mode uninstall ${1+"$@"}; shift
  52085. + ;;
  52086. + esac
  52087. - # Create a libtool object file (analogous to a ".la" file),
  52088. - # but don't create it if we're doing a dry run.
  52089. - test -z "$run" && cat > ${libobj}T <<EOF
  52090. -# $libobj - a libtool object file
  52091. -# Generated by $PROGRAM - GNU $PACKAGE $VERSION$TIMESTAMP
  52092. -#
  52093. -# Please DO NOT delete this file!
  52094. -# It is necessary for linking the library.
  52095. + # Parse non-mode specific arguments:
  52096. + while test "$#" -gt 0; do
  52097. + opt="$1"
  52098. + shift
  52099. -# Name of the PIC object.
  52100. -EOF
  52101. + case $opt in
  52102. + --config) func_config ;;
  52103. - # Only build a PIC object if we are building libtool libraries.
  52104. - if test "$build_libtool_libs" = yes; then
  52105. - # Without this assignment, base_compile gets emptied.
  52106. - fbsd_hideous_sh_bug=$base_compile
  52107. + --debug) preserve_args="$preserve_args $opt"
  52108. + func_echo "enabling shell trace mode"
  52109. + opt_debug='set -x'
  52110. + $opt_debug
  52111. + ;;
  52112. - if test "$pic_mode" != no; then
  52113. - command="$base_compile $srcfile $pic_flag"
  52114. - else
  52115. - # Don't build PIC code
  52116. - command="$base_compile $srcfile"
  52117. - fi
  52118. + -dlopen) test "$#" -eq 0 && func_missing_arg "$opt" && break
  52119. + execute_dlfiles="$execute_dlfiles $1"
  52120. + shift
  52121. + ;;
  52122. - if test ! -d "${xdir}$objdir"; then
  52123. - $show "$mkdir ${xdir}$objdir"
  52124. - $run $mkdir ${xdir}$objdir
  52125. - status=$?
  52126. - if test "$status" -ne 0 && test ! -d "${xdir}$objdir"; then
  52127. - exit $status
  52128. - fi
  52129. - fi
  52130. + --dry-run | -n) opt_dry_run=: ;;
  52131. + --features) func_features ;;
  52132. + --finish) mode="finish" ;;
  52133. +
  52134. + --mode) test "$#" -eq 0 && func_missing_arg "$opt" && break
  52135. + case $1 in
  52136. + # Valid mode arguments:
  52137. + clean) ;;
  52138. + compile) ;;
  52139. + execute) ;;
  52140. + finish) ;;
  52141. + install) ;;
  52142. + link) ;;
  52143. + relink) ;;
  52144. + uninstall) ;;
  52145. +
  52146. + # Catch anything else as an error
  52147. + *) func_error "invalid argument for $opt"
  52148. + exit_cmd=exit
  52149. + break
  52150. + ;;
  52151. + esac
  52152. - if test -z "$output_obj"; then
  52153. - # Place PIC objects in $objdir
  52154. - command="$command -o $lobj"
  52155. - fi
  52156. + mode="$1"
  52157. + shift
  52158. + ;;
  52159. - $run $rm "$lobj" "$output_obj"
  52160. + --preserve-dup-deps)
  52161. + opt_duplicate_deps=: ;;
  52162. - $show "$command"
  52163. - if $run eval "$command"; then :
  52164. - else
  52165. - test -n "$output_obj" && $run $rm $removelist
  52166. - exit $EXIT_FAILURE
  52167. - fi
  52168. + --quiet|--silent) preserve_args="$preserve_args $opt"
  52169. + opt_silent=:
  52170. + ;;
  52171. - if test "$need_locks" = warn &&
  52172. - test "X`cat $lockfile 2>/dev/null`" != "X$srcfile"; then
  52173. - $echo "\
  52174. -*** ERROR, $lockfile contains:
  52175. -`cat $lockfile 2>/dev/null`
  52176. + --verbose| -v) preserve_args="$preserve_args $opt"
  52177. + opt_silent=false
  52178. + ;;
  52179. -but it should contain:
  52180. -$srcfile
  52181. + --tag) test "$#" -eq 0 && func_missing_arg "$opt" && break
  52182. + preserve_args="$preserve_args $opt $1"
  52183. + func_enable_tag "$1" # tagname is set here
  52184. + shift
  52185. + ;;
  52186. -This indicates that another process is trying to use the same
  52187. -temporary object file, and libtool could not work around it because
  52188. -your compiler does not support \`-c' and \`-o' together. If you
  52189. -repeat this compilation, it may succeed, by chance, but you had better
  52190. -avoid parallel builds (make -j) in this platform, or get a better
  52191. -compiler."
  52192. + # Separate optargs to long options:
  52193. + -dlopen=*|--mode=*|--tag=*)
  52194. + func_opt_split "$opt"
  52195. + set dummy "$func_opt_split_opt" "$func_opt_split_arg" ${1+"$@"}
  52196. + shift
  52197. + ;;
  52198. - $run $rm $removelist
  52199. - exit $EXIT_FAILURE
  52200. - fi
  52201. + -\?|-h) func_usage ;;
  52202. + --help) opt_help=: ;;
  52203. + --version) func_version ;;
  52204. - # Just move the object if needed, then go on to compile the next one
  52205. - if test -n "$output_obj" && test "X$output_obj" != "X$lobj"; then
  52206. - $show "$mv $output_obj $lobj"
  52207. - if $run $mv $output_obj $lobj; then :
  52208. - else
  52209. - error=$?
  52210. - $run $rm $removelist
  52211. - exit $error
  52212. - fi
  52213. - fi
  52214. + -*) func_fatal_help "unrecognized option \`$opt'" ;;
  52215. - # Append the name of the PIC object to the libtool object file.
  52216. - test -z "$run" && cat >> ${libobj}T <<EOF
  52217. -pic_object='$objdir/$objname'
  52218. + *) nonopt="$opt"
  52219. + break
  52220. + ;;
  52221. + esac
  52222. + done
  52223. -EOF
  52224. - # Allow error messages only from the first compilation.
  52225. - if test "$suppress_opt" = yes; then
  52226. - suppress_output=' >/dev/null 2>&1'
  52227. - fi
  52228. - else
  52229. - # No PIC object so indicate it doesn't exist in the libtool
  52230. - # object file.
  52231. - test -z "$run" && cat >> ${libobj}T <<EOF
  52232. -pic_object=none
  52233. + case $host in
  52234. + *cygwin* | *mingw* | *pw32* | *cegcc*)
  52235. + # don't eliminate duplications in $postdeps and $predeps
  52236. + opt_duplicate_compiler_generated_deps=:
  52237. + ;;
  52238. + *)
  52239. + opt_duplicate_compiler_generated_deps=$opt_duplicate_deps
  52240. + ;;
  52241. + esac
  52242. -EOF
  52243. - fi
  52244. + # Having warned about all mis-specified options, bail out if
  52245. + # anything was wrong.
  52246. + $exit_cmd $EXIT_FAILURE
  52247. +}
  52248. - # Only build a position-dependent object if we build old libraries.
  52249. - if test "$build_old_libs" = yes; then
  52250. - if test "$pic_mode" != yes; then
  52251. - # Don't build PIC code
  52252. - command="$base_compile $srcfile"
  52253. +# func_check_version_match
  52254. +# Ensure that we are using m4 macros, and libtool script from the same
  52255. +# release of libtool.
  52256. +func_check_version_match ()
  52257. +{
  52258. + if test "$package_revision" != "$macro_revision"; then
  52259. + if test "$VERSION" != "$macro_version"; then
  52260. + if test -z "$macro_version"; then
  52261. + cat >&2 <<_LT_EOF
  52262. +$progname: Version mismatch error. This is $PACKAGE $VERSION, but the
  52263. +$progname: definition of this LT_INIT comes from an older release.
  52264. +$progname: You should recreate aclocal.m4 with macros from $PACKAGE $VERSION
  52265. +$progname: and run autoconf again.
  52266. +_LT_EOF
  52267. else
  52268. - command="$base_compile $srcfile $pic_flag"
  52269. - fi
  52270. - if test "$compiler_c_o" = yes; then
  52271. - command="$command -o $obj"
  52272. + cat >&2 <<_LT_EOF
  52273. +$progname: Version mismatch error. This is $PACKAGE $VERSION, but the
  52274. +$progname: definition of this LT_INIT comes from $PACKAGE $macro_version.
  52275. +$progname: You should recreate aclocal.m4 with macros from $PACKAGE $VERSION
  52276. +$progname: and run autoconf again.
  52277. +_LT_EOF
  52278. fi
  52279. + else
  52280. + cat >&2 <<_LT_EOF
  52281. +$progname: Version mismatch error. This is $PACKAGE $VERSION, revision $package_revision,
  52282. +$progname: but the definition of this LT_INIT comes from revision $macro_revision.
  52283. +$progname: You should recreate aclocal.m4 with macros from revision $package_revision
  52284. +$progname: of $PACKAGE $VERSION and run autoconf again.
  52285. +_LT_EOF
  52286. + fi
  52287. - # Suppress compiler output if we already did a PIC compilation.
  52288. - command="$command$suppress_output"
  52289. - $run $rm "$obj" "$output_obj"
  52290. - $show "$command"
  52291. - if $run eval "$command"; then :
  52292. - else
  52293. - $run $rm $removelist
  52294. - exit $EXIT_FAILURE
  52295. - fi
  52296. + exit $EXIT_MISMATCH
  52297. + fi
  52298. +}
  52299. - if test "$need_locks" = warn &&
  52300. - test "X`cat $lockfile 2>/dev/null`" != "X$srcfile"; then
  52301. - $echo "\
  52302. -*** ERROR, $lockfile contains:
  52303. -`cat $lockfile 2>/dev/null`
  52304. -but it should contain:
  52305. -$srcfile
  52306. +## ----------- ##
  52307. +## Main. ##
  52308. +## ----------- ##
  52309. +
  52310. +$opt_help || {
  52311. + # Sanity checks first:
  52312. + func_check_version_match
  52313. -This indicates that another process is trying to use the same
  52314. -temporary object file, and libtool could not work around it because
  52315. -your compiler does not support \`-c' and \`-o' together. If you
  52316. -repeat this compilation, it may succeed, by chance, but you had better
  52317. -avoid parallel builds (make -j) in this platform, or get a better
  52318. -compiler."
  52319. + if test "$build_libtool_libs" != yes && test "$build_old_libs" != yes; then
  52320. + func_fatal_configuration "not configured to build any kind of library"
  52321. + fi
  52322. - $run $rm $removelist
  52323. - exit $EXIT_FAILURE
  52324. - fi
  52325. + test -z "$mode" && func_fatal_error "error: you must specify a MODE."
  52326. - # Just move the object if needed
  52327. - if test -n "$output_obj" && test "X$output_obj" != "X$obj"; then
  52328. - $show "$mv $output_obj $obj"
  52329. - if $run $mv $output_obj $obj; then :
  52330. - else
  52331. - error=$?
  52332. - $run $rm $removelist
  52333. - exit $error
  52334. - fi
  52335. - fi
  52336. - # Append the name of the non-PIC object the libtool object file.
  52337. - # Only append if the libtool object file exists.
  52338. - test -z "$run" && cat >> ${libobj}T <<EOF
  52339. -# Name of the non-PIC object.
  52340. -non_pic_object='$objname'
  52341. + # Darwin sucks
  52342. + eval std_shrext=\"$shrext_cmds\"
  52343. -EOF
  52344. - else
  52345. - # Append the name of the non-PIC object the libtool object file.
  52346. - # Only append if the libtool object file exists.
  52347. - test -z "$run" && cat >> ${libobj}T <<EOF
  52348. -# Name of the non-PIC object.
  52349. -non_pic_object=none
  52350. -EOF
  52351. + # Only execute mode is allowed to have -dlopen flags.
  52352. + if test -n "$execute_dlfiles" && test "$mode" != execute; then
  52353. + func_error "unrecognized option \`-dlopen'"
  52354. + $ECHO "$help" 1>&2
  52355. + exit $EXIT_FAILURE
  52356. + fi
  52357. +
  52358. + # Change the help message to a mode-specific one.
  52359. + generic_help="$help"
  52360. + help="Try \`$progname --help --mode=$mode' for more information."
  52361. +}
  52362. +
  52363. +
  52364. +# func_lalib_p file
  52365. +# True iff FILE is a libtool `.la' library or `.lo' object file.
  52366. +# This function is only a basic sanity check; it will hardly flush out
  52367. +# determined imposters.
  52368. +func_lalib_p ()
  52369. +{
  52370. + test -f "$1" &&
  52371. + $SED -e 4q "$1" 2>/dev/null \
  52372. + | $GREP "^# Generated by .*$PACKAGE" > /dev/null 2>&1
  52373. +}
  52374. +
  52375. +# func_lalib_unsafe_p file
  52376. +# True iff FILE is a libtool `.la' library or `.lo' object file.
  52377. +# This function implements the same check as func_lalib_p without
  52378. +# resorting to external programs. To this end, it redirects stdin and
  52379. +# closes it afterwards, without saving the original file descriptor.
  52380. +# As a safety measure, use it only where a negative result would be
  52381. +# fatal anyway. Works if `file' does not exist.
  52382. +func_lalib_unsafe_p ()
  52383. +{
  52384. + lalib_p=no
  52385. + if test -f "$1" && test -r "$1" && exec 5<&0 <"$1"; then
  52386. + for lalib_p_l in 1 2 3 4
  52387. + do
  52388. + read lalib_p_line
  52389. + case "$lalib_p_line" in
  52390. + \#\ Generated\ by\ *$PACKAGE* ) lalib_p=yes; break;;
  52391. + esac
  52392. + done
  52393. + exec 0<&5 5<&-
  52394. fi
  52395. + test "$lalib_p" = yes
  52396. +}
  52397. +
  52398. +# func_ltwrapper_script_p file
  52399. +# True iff FILE is a libtool wrapper script
  52400. +# This function is only a basic sanity check; it will hardly flush out
  52401. +# determined imposters.
  52402. +func_ltwrapper_script_p ()
  52403. +{
  52404. + func_lalib_p "$1"
  52405. +}
  52406. - $run $mv "${libobj}T" "${libobj}"
  52407. +# func_ltwrapper_executable_p file
  52408. +# True iff FILE is a libtool wrapper executable
  52409. +# This function is only a basic sanity check; it will hardly flush out
  52410. +# determined imposters.
  52411. +func_ltwrapper_executable_p ()
  52412. +{
  52413. + func_ltwrapper_exec_suffix=
  52414. + case $1 in
  52415. + *.exe) ;;
  52416. + *) func_ltwrapper_exec_suffix=.exe ;;
  52417. + esac
  52418. + $GREP "$magic_exe" "$1$func_ltwrapper_exec_suffix" >/dev/null 2>&1
  52419. +}
  52420. - # Unlock the critical section if it was locked
  52421. - if test "$need_locks" != no; then
  52422. - $run $rm "$lockfile"
  52423. +# func_ltwrapper_scriptname file
  52424. +# Assumes file is an ltwrapper_executable
  52425. +# uses $file to determine the appropriate filename for a
  52426. +# temporary ltwrapper_script.
  52427. +func_ltwrapper_scriptname ()
  52428. +{
  52429. + func_ltwrapper_scriptname_result=""
  52430. + if func_ltwrapper_executable_p "$1"; then
  52431. + func_dirname_and_basename "$1" "" "."
  52432. + func_stripname '' '.exe' "$func_basename_result"
  52433. + func_ltwrapper_scriptname_result="$func_dirname_result/$objdir/${func_stripname_result}_ltshwrapper"
  52434. fi
  52435. +}
  52436. - exit $EXIT_SUCCESS
  52437. - ;;
  52438. +# func_ltwrapper_p file
  52439. +# True iff FILE is a libtool wrapper script or wrapper executable
  52440. +# This function is only a basic sanity check; it will hardly flush out
  52441. +# determined imposters.
  52442. +func_ltwrapper_p ()
  52443. +{
  52444. + func_ltwrapper_script_p "$1" || func_ltwrapper_executable_p "$1"
  52445. +}
  52446. - # libtool link mode
  52447. - link | relink)
  52448. - modename="$modename: link"
  52449. - case $host in
  52450. - *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2*)
  52451. - # It is impossible to link a dll without this setting, and
  52452. - # we shouldn't force the makefile maintainer to figure out
  52453. - # which system we are compiling for in order to pass an extra
  52454. - # flag for every libtool invocation.
  52455. - # allow_undefined=no
  52456. - # FIXME: Unfortunately, there are problems with the above when trying
  52457. - # to make a dll which has undefined symbols, in which case not
  52458. - # even a static library is built. For now, we need to specify
  52459. - # -no-undefined on the libtool link line when we can be certain
  52460. - # that all symbols are satisfied, otherwise we get a static library.
  52461. - allow_undefined=yes
  52462. - ;;
  52463. - *)
  52464. - allow_undefined=yes
  52465. - ;;
  52466. - esac
  52467. - libtool_args="$nonopt"
  52468. - base_compile="$nonopt $@"
  52469. - compile_command="$nonopt"
  52470. - finalize_command="$nonopt"
  52471. +# func_execute_cmds commands fail_cmd
  52472. +# Execute tilde-delimited COMMANDS.
  52473. +# If FAIL_CMD is given, eval that upon failure.
  52474. +# FAIL_CMD may read-access the current command in variable CMD!
  52475. +func_execute_cmds ()
  52476. +{
  52477. + $opt_debug
  52478. + save_ifs=$IFS; IFS='~'
  52479. + for cmd in $1; do
  52480. + IFS=$save_ifs
  52481. + eval cmd=\"$cmd\"
  52482. + func_show_eval "$cmd" "${2-:}"
  52483. + done
  52484. + IFS=$save_ifs
  52485. +}
  52486. - compile_rpath=
  52487. - finalize_rpath=
  52488. - compile_shlibpath=
  52489. - finalize_shlibpath=
  52490. - convenience=
  52491. - old_convenience=
  52492. - deplibs=
  52493. - old_deplibs=
  52494. - compiler_flags=
  52495. - linker_flags=
  52496. - dllsearchpath=
  52497. - lib_search_path=`pwd`
  52498. - inst_prefix_dir=
  52499. - avoid_version=no
  52500. - dlfiles=
  52501. - dlprefiles=
  52502. - dlself=no
  52503. - export_dynamic=no
  52504. - export_symbols=
  52505. - export_symbols_regex=
  52506. - generated=
  52507. - libobjs=
  52508. - ltlibs=
  52509. - module=no
  52510. - no_install=no
  52511. - objs=
  52512. - non_pic_objects=
  52513. - precious_files_regex=
  52514. - prefer_static_libs=no
  52515. - preload=no
  52516. - prev=
  52517. - prevarg=
  52518. - release=
  52519. - rpath=
  52520. - xrpath=
  52521. - perm_rpath=
  52522. - temp_rpath=
  52523. - thread_safe=no
  52524. - vinfo=
  52525. - vinfo_number=no
  52526. +# func_source file
  52527. +# Source FILE, adding directory component if necessary.
  52528. +# Note that it is not necessary on cygwin/mingw to append a dot to
  52529. +# FILE even if both FILE and FILE.exe exist: automatic-append-.exe
  52530. +# behavior happens only for exec(3), not for open(2)! Also, sourcing
  52531. +# `FILE.' does not work on cygwin managed mounts.
  52532. +func_source ()
  52533. +{
  52534. + $opt_debug
  52535. + case $1 in
  52536. + */* | *\\*) . "$1" ;;
  52537. + *) . "./$1" ;;
  52538. + esac
  52539. +}
  52540. - func_infer_tag $base_compile
  52541. - # We need to know -static, to get the right output filenames.
  52542. - for arg
  52543. - do
  52544. - case $arg in
  52545. - -all-static | -static)
  52546. - if test "X$arg" = "X-all-static"; then
  52547. - if test "$build_libtool_libs" = yes && test -z "$link_static_flag"; then
  52548. - $echo "$modename: warning: complete static linking is impossible in this configuration" 1>&2
  52549. - fi
  52550. - if test -n "$link_static_flag"; then
  52551. - dlopen_self=$dlopen_self_static
  52552. - fi
  52553. - else
  52554. - if test -z "$pic_flag" && test -n "$link_static_flag"; then
  52555. - dlopen_self=$dlopen_self_static
  52556. +# func_infer_tag arg
  52557. +# Infer tagged configuration to use if any are available and
  52558. +# if one wasn't chosen via the "--tag" command line option.
  52559. +# Only attempt this if the compiler in the base compile
  52560. +# command doesn't match the default compiler.
  52561. +# arg is usually of the form 'gcc ...'
  52562. +func_infer_tag ()
  52563. +{
  52564. + $opt_debug
  52565. + if test -n "$available_tags" && test -z "$tagname"; then
  52566. + CC_quoted=
  52567. + for arg in $CC; do
  52568. + func_quote_for_eval "$arg"
  52569. + CC_quoted="$CC_quoted $func_quote_for_eval_result"
  52570. + done
  52571. + case $@ in
  52572. + # Blanks in the command may have been stripped by the calling shell,
  52573. + # but not from the CC environment variable when configure was run.
  52574. + " $CC "* | "$CC "* | " `$ECHO $CC` "* | "`$ECHO $CC` "* | " $CC_quoted"* | "$CC_quoted "* | " `$ECHO $CC_quoted` "* | "`$ECHO $CC_quoted` "*) ;;
  52575. + # Blanks at the start of $base_compile will cause this to fail
  52576. + # if we don't check for them as well.
  52577. + *)
  52578. + for z in $available_tags; do
  52579. + if $GREP "^# ### BEGIN LIBTOOL TAG CONFIG: $z$" < "$progpath" > /dev/null; then
  52580. + # Evaluate the configuration.
  52581. + eval "`${SED} -n -e '/^# ### BEGIN LIBTOOL TAG CONFIG: '$z'$/,/^# ### END LIBTOOL TAG CONFIG: '$z'$/p' < $progpath`"
  52582. + CC_quoted=
  52583. + for arg in $CC; do
  52584. + # Double-quote args containing other shell metacharacters.
  52585. + func_quote_for_eval "$arg"
  52586. + CC_quoted="$CC_quoted $func_quote_for_eval_result"
  52587. + done
  52588. + case "$@ " in
  52589. + " $CC "* | "$CC "* | " `$ECHO $CC` "* | "`$ECHO $CC` "* | " $CC_quoted"* | "$CC_quoted "* | " `$ECHO $CC_quoted` "* | "`$ECHO $CC_quoted` "*)
  52590. + # The compiler in the base compile command matches
  52591. + # the one in the tagged configuration.
  52592. + # Assume this is the tagged configuration we want.
  52593. + tagname=$z
  52594. + break
  52595. + ;;
  52596. + esac
  52597. fi
  52598. + done
  52599. + # If $tagname still isn't set, then no tagged configuration
  52600. + # was found and let the user know that the "--tag" command
  52601. + # line option must be used.
  52602. + if test -z "$tagname"; then
  52603. + func_echo "unable to infer tagged configuration"
  52604. + func_fatal_error "specify a tag with \`--tag'"
  52605. +# else
  52606. +# func_verbose "using $tagname tagged configuration"
  52607. fi
  52608. - build_libtool_libs=no
  52609. - build_old_libs=yes
  52610. - prefer_static_libs=yes
  52611. - break
  52612. ;;
  52613. esac
  52614. - done
  52615. -
  52616. - # See if our shared archives depend on static archives.
  52617. - test -n "$old_archive_from_new_cmds" && build_old_libs=yes
  52618. + fi
  52619. +}
  52620. - # Go through the arguments, transforming them on the way.
  52621. - while test "$#" -gt 0; do
  52622. - arg="$1"
  52623. - shift
  52624. - case $arg in
  52625. - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
  52626. - qarg=\"`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`\" ### testsuite: skip nested quoting test
  52627. - ;;
  52628. - *) qarg=$arg ;;
  52629. - esac
  52630. - libtool_args="$libtool_args $qarg"
  52631. - # If the previous option needs an argument, assign it.
  52632. - if test -n "$prev"; then
  52633. - case $prev in
  52634. - output)
  52635. - compile_command="$compile_command @OUTPUT@"
  52636. - finalize_command="$finalize_command @OUTPUT@"
  52637. - ;;
  52638. - esac
  52639. - case $prev in
  52640. - dlfiles|dlprefiles)
  52641. - if test "$preload" = no; then
  52642. - # Add the symbol object into the linking commands.
  52643. - compile_command="$compile_command @SYMFILE@"
  52644. - finalize_command="$finalize_command @SYMFILE@"
  52645. - preload=yes
  52646. - fi
  52647. - case $arg in
  52648. - *.la | *.lo) ;; # We handle these cases below.
  52649. - force)
  52650. - if test "$dlself" = no; then
  52651. - dlself=needless
  52652. - export_dynamic=yes
  52653. - fi
  52654. - prev=
  52655. - continue
  52656. - ;;
  52657. - self)
  52658. - if test "$prev" = dlprefiles; then
  52659. - dlself=yes
  52660. - elif test "$prev" = dlfiles && test "$dlopen_self" != yes; then
  52661. - dlself=yes
  52662. - else
  52663. - dlself=needless
  52664. - export_dynamic=yes
  52665. - fi
  52666. - prev=
  52667. - continue
  52668. - ;;
  52669. - *)
  52670. - if test "$prev" = dlfiles; then
  52671. - dlfiles="$dlfiles $arg"
  52672. - else
  52673. - dlprefiles="$dlprefiles $arg"
  52674. - fi
  52675. - prev=
  52676. - continue
  52677. - ;;
  52678. - esac
  52679. - ;;
  52680. - expsyms)
  52681. - export_symbols="$arg"
  52682. - if test ! -f "$arg"; then
  52683. - $echo "$modename: symbol file \`$arg' does not exist"
  52684. - exit $EXIT_FAILURE
  52685. - fi
  52686. - prev=
  52687. - continue
  52688. - ;;
  52689. - expsyms_regex)
  52690. - export_symbols_regex="$arg"
  52691. - prev=
  52692. - continue
  52693. - ;;
  52694. - inst_prefix)
  52695. - inst_prefix_dir="$arg"
  52696. - prev=
  52697. - continue
  52698. - ;;
  52699. - precious_regex)
  52700. - precious_files_regex="$arg"
  52701. - prev=
  52702. - continue
  52703. - ;;
  52704. - release)
  52705. - release="-$arg"
  52706. - prev=
  52707. - continue
  52708. - ;;
  52709. - objectlist)
  52710. - if test -f "$arg"; then
  52711. - save_arg=$arg
  52712. - moreargs=
  52713. - for fil in `cat $save_arg`
  52714. - do
  52715. -# moreargs="$moreargs $fil"
  52716. - arg=$fil
  52717. - # A libtool-controlled object.
  52718. -
  52719. - # Check to see that this really is a libtool object.
  52720. - if (${SED} -e '2q' $arg | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
  52721. - pic_object=
  52722. - non_pic_object=
  52723. -
  52724. - # Read the .lo file
  52725. - # If there is no directory component, then add one.
  52726. - case $arg in
  52727. - */* | *\\*) . $arg ;;
  52728. - *) . ./$arg ;;
  52729. - esac
  52730. -
  52731. - if test -z "$pic_object" || \
  52732. - test -z "$non_pic_object" ||
  52733. - test "$pic_object" = none && \
  52734. - test "$non_pic_object" = none; then
  52735. - $echo "$modename: cannot find name of object for \`$arg'" 1>&2
  52736. - exit $EXIT_FAILURE
  52737. - fi
  52738. +# func_write_libtool_object output_name pic_name nonpic_name
  52739. +# Create a libtool object file (analogous to a ".la" file),
  52740. +# but don't create it if we're doing a dry run.
  52741. +func_write_libtool_object ()
  52742. +{
  52743. + write_libobj=${1}
  52744. + if test "$build_libtool_libs" = yes; then
  52745. + write_lobj=\'${2}\'
  52746. + else
  52747. + write_lobj=none
  52748. + fi
  52749. - # Extract subdirectory from the argument.
  52750. - xdir=`$echo "X$arg" | $Xsed -e 's%/[^/]*$%%'`
  52751. - if test "X$xdir" = "X$arg"; then
  52752. - xdir=
  52753. - else
  52754. - xdir="$xdir/"
  52755. - fi
  52756. + if test "$build_old_libs" = yes; then
  52757. + write_oldobj=\'${3}\'
  52758. + else
  52759. + write_oldobj=none
  52760. + fi
  52761. - if test "$pic_object" != none; then
  52762. - # Prepend the subdirectory the object is found in.
  52763. - pic_object="$xdir$pic_object"
  52764. + $opt_dry_run || {
  52765. + cat >${write_libobj}T <<EOF
  52766. +# $write_libobj - a libtool object file
  52767. +# Generated by $PROGRAM (GNU $PACKAGE$TIMESTAMP) $VERSION
  52768. +#
  52769. +# Please DO NOT delete this file!
  52770. +# It is necessary for linking the library.
  52771. - if test "$prev" = dlfiles; then
  52772. - if test "$build_libtool_libs" = yes && test "$dlopen_support" = yes; then
  52773. - dlfiles="$dlfiles $pic_object"
  52774. - prev=
  52775. - continue
  52776. - else
  52777. - # If libtool objects are unsupported, then we need to preload.
  52778. - prev=dlprefiles
  52779. - fi
  52780. - fi
  52781. +# Name of the PIC object.
  52782. +pic_object=$write_lobj
  52783. - # CHECK ME: I think I busted this. -Ossama
  52784. - if test "$prev" = dlprefiles; then
  52785. - # Preload the old-style object.
  52786. - dlprefiles="$dlprefiles $pic_object"
  52787. - prev=
  52788. - fi
  52789. +# Name of the non-PIC object
  52790. +non_pic_object=$write_oldobj
  52791. - # A PIC object.
  52792. - libobjs="$libobjs $pic_object"
  52793. - arg="$pic_object"
  52794. - fi
  52795. +EOF
  52796. + $MV "${write_libobj}T" "${write_libobj}"
  52797. + }
  52798. +}
  52799. - # Non-PIC object.
  52800. - if test "$non_pic_object" != none; then
  52801. - # Prepend the subdirectory the object is found in.
  52802. - non_pic_object="$xdir$non_pic_object"
  52803. +# func_mode_compile arg...
  52804. +func_mode_compile ()
  52805. +{
  52806. + $opt_debug
  52807. + # Get the compilation command and the source file.
  52808. + base_compile=
  52809. + srcfile="$nonopt" # always keep a non-empty value in "srcfile"
  52810. + suppress_opt=yes
  52811. + suppress_output=
  52812. + arg_mode=normal
  52813. + libobj=
  52814. + later=
  52815. + pie_flag=
  52816. - # A standard non-PIC object
  52817. - non_pic_objects="$non_pic_objects $non_pic_object"
  52818. - if test -z "$pic_object" || test "$pic_object" = none ; then
  52819. - arg="$non_pic_object"
  52820. - fi
  52821. - fi
  52822. - else
  52823. - # Only an error if not doing a dry-run.
  52824. - if test -z "$run"; then
  52825. - $echo "$modename: \`$arg' is not a valid libtool object" 1>&2
  52826. - exit $EXIT_FAILURE
  52827. - else
  52828. - # Dry-run case.
  52829. + for arg
  52830. + do
  52831. + case $arg_mode in
  52832. + arg )
  52833. + # do not "continue". Instead, add this to base_compile
  52834. + lastarg="$arg"
  52835. + arg_mode=normal
  52836. + ;;
  52837. - # Extract subdirectory from the argument.
  52838. - xdir=`$echo "X$arg" | $Xsed -e 's%/[^/]*$%%'`
  52839. - if test "X$xdir" = "X$arg"; then
  52840. - xdir=
  52841. - else
  52842. - xdir="$xdir/"
  52843. - fi
  52844. + target )
  52845. + libobj="$arg"
  52846. + arg_mode=normal
  52847. + continue
  52848. + ;;
  52849. - pic_object=`$echo "X${xdir}${objdir}/${arg}" | $Xsed -e "$lo2o"`
  52850. - non_pic_object=`$echo "X${xdir}${arg}" | $Xsed -e "$lo2o"`
  52851. - libobjs="$libobjs $pic_object"
  52852. - non_pic_objects="$non_pic_objects $non_pic_object"
  52853. - fi
  52854. - fi
  52855. - done
  52856. - else
  52857. - $echo "$modename: link input file \`$save_arg' does not exist"
  52858. - exit $EXIT_FAILURE
  52859. - fi
  52860. - arg=$save_arg
  52861. - prev=
  52862. - continue
  52863. - ;;
  52864. - rpath | xrpath)
  52865. - # We need an absolute path.
  52866. - case $arg in
  52867. - [\\/]* | [A-Za-z]:[\\/]*) ;;
  52868. - *)
  52869. - $echo "$modename: only absolute run-paths are allowed" 1>&2
  52870. - exit $EXIT_FAILURE
  52871. - ;;
  52872. - esac
  52873. - if test "$prev" = rpath; then
  52874. - case "$rpath " in
  52875. - *" $arg "*) ;;
  52876. - *) rpath="$rpath $arg" ;;
  52877. - esac
  52878. - else
  52879. - case "$xrpath " in
  52880. - *" $arg "*) ;;
  52881. - *) xrpath="$xrpath $arg" ;;
  52882. - esac
  52883. - fi
  52884. - prev=
  52885. + normal )
  52886. + # Accept any command-line options.
  52887. + case $arg in
  52888. + -o)
  52889. + test -n "$libobj" && \
  52890. + func_fatal_error "you cannot specify \`-o' more than once"
  52891. + arg_mode=target
  52892. continue
  52893. ;;
  52894. - xcompiler)
  52895. - compiler_flags="$compiler_flags $qarg"
  52896. - prev=
  52897. - compile_command="$compile_command $qarg"
  52898. - finalize_command="$finalize_command $qarg"
  52899. +
  52900. + -pie | -fpie | -fPIE)
  52901. + pie_flag="$pie_flag $arg"
  52902. continue
  52903. ;;
  52904. - xlinker)
  52905. - linker_flags="$linker_flags $qarg"
  52906. - compiler_flags="$compiler_flags $wl$qarg"
  52907. - prev=
  52908. - compile_command="$compile_command $wl$qarg"
  52909. - finalize_command="$finalize_command $wl$qarg"
  52910. +
  52911. + -shared | -static | -prefer-pic | -prefer-non-pic)
  52912. + later="$later $arg"
  52913. continue
  52914. ;;
  52915. - xcclinker)
  52916. - linker_flags="$linker_flags $qarg"
  52917. - compiler_flags="$compiler_flags $qarg"
  52918. - prev=
  52919. - compile_command="$compile_command $qarg"
  52920. - finalize_command="$finalize_command $qarg"
  52921. +
  52922. + -no-suppress)
  52923. + suppress_opt=no
  52924. continue
  52925. ;;
  52926. - shrext)
  52927. - shrext_cmds="$arg"
  52928. - prev=
  52929. +
  52930. + -Xcompiler)
  52931. + arg_mode=arg # the next one goes into the "base_compile" arg list
  52932. + continue # The current "srcfile" will either be retained or
  52933. + ;; # replaced later. I would guess that would be a bug.
  52934. +
  52935. + -Wc,*)
  52936. + func_stripname '-Wc,' '' "$arg"
  52937. + args=$func_stripname_result
  52938. + lastarg=
  52939. + save_ifs="$IFS"; IFS=','
  52940. + for arg in $args; do
  52941. + IFS="$save_ifs"
  52942. + func_quote_for_eval "$arg"
  52943. + lastarg="$lastarg $func_quote_for_eval_result"
  52944. + done
  52945. + IFS="$save_ifs"
  52946. + func_stripname ' ' '' "$lastarg"
  52947. + lastarg=$func_stripname_result
  52948. +
  52949. + # Add the arguments to base_compile.
  52950. + base_compile="$base_compile $lastarg"
  52951. continue
  52952. ;;
  52953. +
  52954. *)
  52955. - eval "$prev=\"\$arg\""
  52956. - prev=
  52957. - continue
  52958. + # Accept the current argument as the source file.
  52959. + # The previous "srcfile" becomes the current argument.
  52960. + #
  52961. + lastarg="$srcfile"
  52962. + srcfile="$arg"
  52963. ;;
  52964. - esac
  52965. - fi # test -n "$prev"
  52966. -
  52967. - prevarg="$arg"
  52968. -
  52969. - case $arg in
  52970. - -all-static)
  52971. - if test -n "$link_static_flag"; then
  52972. - compile_command="$compile_command $link_static_flag"
  52973. - finalize_command="$finalize_command $link_static_flag"
  52974. - fi
  52975. - continue
  52976. - ;;
  52977. -
  52978. - -allow-undefined)
  52979. - # FIXME: remove this flag sometime in the future.
  52980. - $echo "$modename: \`-allow-undefined' is deprecated because it is the default" 1>&2
  52981. - continue
  52982. + esac # case $arg
  52983. ;;
  52984. + esac # case $arg_mode
  52985. - -avoid-version)
  52986. - avoid_version=yes
  52987. - continue
  52988. - ;;
  52989. + # Aesthetically quote the previous argument.
  52990. + func_quote_for_eval "$lastarg"
  52991. + base_compile="$base_compile $func_quote_for_eval_result"
  52992. + done # for arg
  52993. - -dlopen)
  52994. - prev=dlfiles
  52995. - continue
  52996. - ;;
  52997. + case $arg_mode in
  52998. + arg)
  52999. + func_fatal_error "you must specify an argument for -Xcompile"
  53000. + ;;
  53001. + target)
  53002. + func_fatal_error "you must specify a target with \`-o'"
  53003. + ;;
  53004. + *)
  53005. + # Get the name of the library object.
  53006. + test -z "$libobj" && {
  53007. + func_basename "$srcfile"
  53008. + libobj="$func_basename_result"
  53009. + }
  53010. + ;;
  53011. + esac
  53012. - -dlpreopen)
  53013. - prev=dlprefiles
  53014. - continue
  53015. - ;;
  53016. + # Recognize several different file suffixes.
  53017. + # If the user specifies -o file.o, it is replaced with file.lo
  53018. + case $libobj in
  53019. + *.[cCFSifmso] | \
  53020. + *.ada | *.adb | *.ads | *.asm | \
  53021. + *.c++ | *.cc | *.ii | *.class | *.cpp | *.cxx | \
  53022. + *.[fF][09]? | *.for | *.java | *.obj | *.sx)
  53023. + func_xform "$libobj"
  53024. + libobj=$func_xform_result
  53025. + ;;
  53026. + esac
  53027. - -export-dynamic)
  53028. - export_dynamic=yes
  53029. - continue
  53030. - ;;
  53031. + case $libobj in
  53032. + *.lo) func_lo2o "$libobj"; obj=$func_lo2o_result ;;
  53033. + *)
  53034. + func_fatal_error "cannot determine name of library object from \`$libobj'"
  53035. + ;;
  53036. + esac
  53037. - -export-symbols | -export-symbols-regex)
  53038. - if test -n "$export_symbols" || test -n "$export_symbols_regex"; then
  53039. - $echo "$modename: more than one -exported-symbols argument is not allowed"
  53040. - exit $EXIT_FAILURE
  53041. - fi
  53042. - if test "X$arg" = "X-export-symbols"; then
  53043. - prev=expsyms
  53044. - else
  53045. - prev=expsyms_regex
  53046. - fi
  53047. - continue
  53048. - ;;
  53049. + func_infer_tag $base_compile
  53050. - -inst-prefix-dir)
  53051. - prev=inst_prefix
  53052. + for arg in $later; do
  53053. + case $arg in
  53054. + -shared)
  53055. + test "$build_libtool_libs" != yes && \
  53056. + func_fatal_configuration "can not build a shared library"
  53057. + build_old_libs=no
  53058. continue
  53059. ;;
  53060. - # The native IRIX linker understands -LANG:*, -LIST:* and -LNO:*
  53061. - # so, if we see these flags be careful not to treat them like -L
  53062. - -L[A-Z][A-Z]*:*)
  53063. - case $with_gcc/$host in
  53064. - no/*-*-irix* | /*-*-irix*)
  53065. - compile_command="$compile_command $arg"
  53066. - finalize_command="$finalize_command $arg"
  53067. - ;;
  53068. - esac
  53069. + -static)
  53070. + build_libtool_libs=no
  53071. + build_old_libs=yes
  53072. continue
  53073. ;;
  53074. - -L*)
  53075. - dir=`$echo "X$arg" | $Xsed -e 's/^-L//'`
  53076. - # We need an absolute path.
  53077. - case $dir in
  53078. - [\\/]* | [A-Za-z]:[\\/]*) ;;
  53079. - *)
  53080. - absdir=`cd "$dir" && pwd`
  53081. - if test -z "$absdir"; then
  53082. - $echo "$modename: cannot determine absolute directory name of \`$dir'" 1>&2
  53083. - exit $EXIT_FAILURE
  53084. - fi
  53085. - dir="$absdir"
  53086. - ;;
  53087. - esac
  53088. - case "$deplibs " in
  53089. - *" -L$dir "*) ;;
  53090. - *)
  53091. - deplibs="$deplibs -L$dir"
  53092. - lib_search_path="$lib_search_path $dir"
  53093. - ;;
  53094. - esac
  53095. - case $host in
  53096. - *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2*)
  53097. - case :$dllsearchpath: in
  53098. - *":$dir:"*) ;;
  53099. - *) dllsearchpath="$dllsearchpath:$dir";;
  53100. - esac
  53101. - ;;
  53102. - esac
  53103. + -prefer-pic)
  53104. + pic_mode=yes
  53105. continue
  53106. ;;
  53107. - -l*)
  53108. - if test "X$arg" = "X-lc" || test "X$arg" = "X-lm"; then
  53109. - case $host in
  53110. - *-*-cygwin* | *-*-pw32* | *-*-beos*)
  53111. - # These systems don't actually have a C or math library (as such)
  53112. - continue
  53113. - ;;
  53114. - *-*-mingw* | *-*-os2*)
  53115. - # These systems don't actually have a C library (as such)
  53116. - test "X$arg" = "X-lc" && continue
  53117. - ;;
  53118. - *-*-openbsd* | *-*-freebsd*)
  53119. - # Do not include libc due to us having libc/libc_r.
  53120. - test "X$arg" = "X-lc" && continue
  53121. - ;;
  53122. - *-*-rhapsody* | *-*-darwin1.[012])
  53123. - # Rhapsody C and math libraries are in the System framework
  53124. - deplibs="$deplibs -framework System"
  53125. - continue
  53126. - esac
  53127. - elif test "X$arg" = "X-lc_r"; then
  53128. - case $host in
  53129. - *-*-openbsd* | *-*-freebsd*)
  53130. - # Do not include libc_r directly, use -pthread flag.
  53131. - continue
  53132. - ;;
  53133. - esac
  53134. - fi
  53135. - deplibs="$deplibs $arg"
  53136. + -prefer-non-pic)
  53137. + pic_mode=no
  53138. continue
  53139. ;;
  53140. + esac
  53141. + done
  53142. - -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe)
  53143. - deplibs="$deplibs $arg"
  53144. - continue
  53145. - ;;
  53146. + func_quote_for_eval "$libobj"
  53147. + test "X$libobj" != "X$func_quote_for_eval_result" \
  53148. + && $ECHO "X$libobj" | $GREP '[]~#^*{};<>?"'"'"' &()|`$[]' \
  53149. + && func_warning "libobj name \`$libobj' may not contain shell special characters."
  53150. + func_dirname_and_basename "$obj" "/" ""
  53151. + objname="$func_basename_result"
  53152. + xdir="$func_dirname_result"
  53153. + lobj=${xdir}$objdir/$objname
  53154. - -module)
  53155. - module=yes
  53156. - continue
  53157. - ;;
  53158. + test -z "$base_compile" && \
  53159. + func_fatal_help "you must specify a compilation command"
  53160. - # gcc -m* arguments should be passed to the linker via $compiler_flags
  53161. - # in order to pass architecture information to the linker
  53162. - # (e.g. 32 vs 64-bit). This may also be accomplished via -Wl,-mfoo
  53163. - # but this is not reliable with gcc because gcc may use -mfoo to
  53164. - # select a different linker, different libraries, etc, while
  53165. - # -Wl,-mfoo simply passes -mfoo to the linker.
  53166. - -m*)
  53167. - # Unknown arguments in both finalize_command and compile_command need
  53168. - # to be aesthetically quoted because they are evaled later.
  53169. - arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`
  53170. - case $arg in
  53171. - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
  53172. - arg="\"$arg\""
  53173. - ;;
  53174. - esac
  53175. - compile_command="$compile_command $arg"
  53176. - finalize_command="$finalize_command $arg"
  53177. - if test "$with_gcc" = "yes" ; then
  53178. - compiler_flags="$compiler_flags $arg"
  53179. - fi
  53180. - continue
  53181. - ;;
  53182. + # Delete any leftover library objects.
  53183. + if test "$build_old_libs" = yes; then
  53184. + removelist="$obj $lobj $libobj ${libobj}T"
  53185. + else
  53186. + removelist="$lobj $libobj ${libobj}T"
  53187. + fi
  53188. - -shrext)
  53189. - prev=shrext
  53190. - continue
  53191. - ;;
  53192. + # On Cygwin there's no "real" PIC flag so we must build both object types
  53193. + case $host_os in
  53194. + cygwin* | mingw* | pw32* | os2* | cegcc*)
  53195. + pic_mode=default
  53196. + ;;
  53197. + esac
  53198. + if test "$pic_mode" = no && test "$deplibs_check_method" != pass_all; then
  53199. + # non-PIC code in shared libraries is not supported
  53200. + pic_mode=default
  53201. + fi
  53202. - -no-fast-install)
  53203. - fast_install=no
  53204. - continue
  53205. - ;;
  53206. + # Calculate the filename of the output object if compiler does
  53207. + # not support -o with -c
  53208. + if test "$compiler_c_o" = no; then
  53209. + output_obj=`$ECHO "X$srcfile" | $Xsed -e 's%^.*/%%' -e 's%\.[^.]*$%%'`.${objext}
  53210. + lockfile="$output_obj.lock"
  53211. + else
  53212. + output_obj=
  53213. + need_locks=no
  53214. + lockfile=
  53215. + fi
  53216. - -no-install)
  53217. - case $host in
  53218. - *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2*)
  53219. - # The PATH hackery in wrapper scripts is required on Windows
  53220. - # in order for the loader to find any dlls it needs.
  53221. - $echo "$modename: warning: \`-no-install' is ignored for $host" 1>&2
  53222. - $echo "$modename: warning: assuming \`-no-fast-install' instead" 1>&2
  53223. - fast_install=no
  53224. - ;;
  53225. - *) no_install=yes ;;
  53226. - esac
  53227. - continue
  53228. - ;;
  53229. + # Lock this critical section if it is needed
  53230. + # We use this script file to make the link, it avoids creating a new file
  53231. + if test "$need_locks" = yes; then
  53232. + until $opt_dry_run || ln "$progpath" "$lockfile" 2>/dev/null; do
  53233. + func_echo "Waiting for $lockfile to be removed"
  53234. + sleep 2
  53235. + done
  53236. + elif test "$need_locks" = warn; then
  53237. + if test -f "$lockfile"; then
  53238. + $ECHO "\
  53239. +*** ERROR, $lockfile exists and contains:
  53240. +`cat $lockfile 2>/dev/null`
  53241. - -no-undefined)
  53242. - allow_undefined=no
  53243. - continue
  53244. - ;;
  53245. +This indicates that another process is trying to use the same
  53246. +temporary object file, and libtool could not work around it because
  53247. +your compiler does not support \`-c' and \`-o' together. If you
  53248. +repeat this compilation, it may succeed, by chance, but you had better
  53249. +avoid parallel builds (make -j) in this platform, or get a better
  53250. +compiler."
  53251. - -objectlist)
  53252. - prev=objectlist
  53253. - continue
  53254. - ;;
  53255. + $opt_dry_run || $RM $removelist
  53256. + exit $EXIT_FAILURE
  53257. + fi
  53258. + removelist="$removelist $output_obj"
  53259. + $ECHO "$srcfile" > "$lockfile"
  53260. + fi
  53261. - -o) prev=output ;;
  53262. + $opt_dry_run || $RM $removelist
  53263. + removelist="$removelist $lockfile"
  53264. + trap '$opt_dry_run || $RM $removelist; exit $EXIT_FAILURE' 1 2 15
  53265. - -precious-files-regex)
  53266. - prev=precious_regex
  53267. - continue
  53268. - ;;
  53269. + if test -n "$fix_srcfile_path"; then
  53270. + eval srcfile=\"$fix_srcfile_path\"
  53271. + fi
  53272. + func_quote_for_eval "$srcfile"
  53273. + qsrcfile=$func_quote_for_eval_result
  53274. - -release)
  53275. - prev=release
  53276. - continue
  53277. - ;;
  53278. + # Only build a PIC object if we are building libtool libraries.
  53279. + if test "$build_libtool_libs" = yes; then
  53280. + # Without this assignment, base_compile gets emptied.
  53281. + fbsd_hideous_sh_bug=$base_compile
  53282. - -rpath)
  53283. - prev=rpath
  53284. - continue
  53285. - ;;
  53286. + if test "$pic_mode" != no; then
  53287. + command="$base_compile $qsrcfile $pic_flag"
  53288. + else
  53289. + # Don't build PIC code
  53290. + command="$base_compile $qsrcfile"
  53291. + fi
  53292. - -R)
  53293. - prev=xrpath
  53294. - continue
  53295. - ;;
  53296. + func_mkdir_p "$xdir$objdir"
  53297. - -R*)
  53298. - dir=`$echo "X$arg" | $Xsed -e 's/^-R//'`
  53299. - # We need an absolute path.
  53300. - case $dir in
  53301. - [\\/]* | [A-Za-z]:[\\/]*) ;;
  53302. - *)
  53303. - $echo "$modename: only absolute run-paths are allowed" 1>&2
  53304. - exit $EXIT_FAILURE
  53305. - ;;
  53306. - esac
  53307. - case "$xrpath " in
  53308. - *" $dir "*) ;;
  53309. - *) xrpath="$xrpath $dir" ;;
  53310. - esac
  53311. - continue
  53312. - ;;
  53313. + if test -z "$output_obj"; then
  53314. + # Place PIC objects in $objdir
  53315. + command="$command -o $lobj"
  53316. + fi
  53317. - -static)
  53318. - # The effects of -static are defined in a previous loop.
  53319. - # We used to do the same as -all-static on platforms that
  53320. - # didn't have a PIC flag, but the assumption that the effects
  53321. - # would be equivalent was wrong. It would break on at least
  53322. - # Digital Unix and AIX.
  53323. - continue
  53324. - ;;
  53325. + func_show_eval_locale "$command" \
  53326. + 'test -n "$output_obj" && $RM $removelist; exit $EXIT_FAILURE'
  53327. - -thread-safe)
  53328. - thread_safe=yes
  53329. - continue
  53330. - ;;
  53331. + if test "$need_locks" = warn &&
  53332. + test "X`cat $lockfile 2>/dev/null`" != "X$srcfile"; then
  53333. + $ECHO "\
  53334. +*** ERROR, $lockfile contains:
  53335. +`cat $lockfile 2>/dev/null`
  53336. - -version-info)
  53337. - prev=vinfo
  53338. - continue
  53339. - ;;
  53340. - -version-number)
  53341. - prev=vinfo
  53342. - vinfo_number=yes
  53343. - continue
  53344. - ;;
  53345. +but it should contain:
  53346. +$srcfile
  53347. - -Wc,*)
  53348. - args=`$echo "X$arg" | $Xsed -e "$sed_quote_subst" -e 's/^-Wc,//'`
  53349. - arg=
  53350. - save_ifs="$IFS"; IFS=','
  53351. - for flag in $args; do
  53352. - IFS="$save_ifs"
  53353. - case $flag in
  53354. - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
  53355. - flag="\"$flag\""
  53356. - ;;
  53357. - esac
  53358. - arg="$arg $wl$flag"
  53359. - compiler_flags="$compiler_flags $flag"
  53360. - done
  53361. - IFS="$save_ifs"
  53362. - arg=`$echo "X$arg" | $Xsed -e "s/^ //"`
  53363. - ;;
  53364. +This indicates that another process is trying to use the same
  53365. +temporary object file, and libtool could not work around it because
  53366. +your compiler does not support \`-c' and \`-o' together. If you
  53367. +repeat this compilation, it may succeed, by chance, but you had better
  53368. +avoid parallel builds (make -j) in this platform, or get a better
  53369. +compiler."
  53370. - -Wl,*)
  53371. - args=`$echo "X$arg" | $Xsed -e "$sed_quote_subst" -e 's/^-Wl,//'`
  53372. - arg=
  53373. - save_ifs="$IFS"; IFS=','
  53374. - for flag in $args; do
  53375. - IFS="$save_ifs"
  53376. - case $flag in
  53377. - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
  53378. - flag="\"$flag\""
  53379. - ;;
  53380. - esac
  53381. - arg="$arg $wl$flag"
  53382. - compiler_flags="$compiler_flags $wl$flag"
  53383. - linker_flags="$linker_flags $flag"
  53384. - done
  53385. - IFS="$save_ifs"
  53386. - arg=`$echo "X$arg" | $Xsed -e "s/^ //"`
  53387. - ;;
  53388. + $opt_dry_run || $RM $removelist
  53389. + exit $EXIT_FAILURE
  53390. + fi
  53391. - -Xcompiler)
  53392. - prev=xcompiler
  53393. - continue
  53394. - ;;
  53395. + # Just move the object if needed, then go on to compile the next one
  53396. + if test -n "$output_obj" && test "X$output_obj" != "X$lobj"; then
  53397. + func_show_eval '$MV "$output_obj" "$lobj"' \
  53398. + 'error=$?; $opt_dry_run || $RM $removelist; exit $error'
  53399. + fi
  53400. - -Xlinker)
  53401. - prev=xlinker
  53402. - continue
  53403. - ;;
  53404. + # Allow error messages only from the first compilation.
  53405. + if test "$suppress_opt" = yes; then
  53406. + suppress_output=' >/dev/null 2>&1'
  53407. + fi
  53408. + fi
  53409. - -XCClinker)
  53410. - prev=xcclinker
  53411. - continue
  53412. - ;;
  53413. + # Only build a position-dependent object if we build old libraries.
  53414. + if test "$build_old_libs" = yes; then
  53415. + if test "$pic_mode" != yes; then
  53416. + # Don't build PIC code
  53417. + command="$base_compile $qsrcfile$pie_flag"
  53418. + else
  53419. + command="$base_compile $qsrcfile $pic_flag"
  53420. + fi
  53421. + if test "$compiler_c_o" = yes; then
  53422. + command="$command -o $obj"
  53423. + fi
  53424. - # Some other compiler flag.
  53425. - -* | +*)
  53426. - # Unknown arguments in both finalize_command and compile_command need
  53427. - # to be aesthetically quoted because they are evaled later.
  53428. - arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`
  53429. - case $arg in
  53430. - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
  53431. - arg="\"$arg\""
  53432. - ;;
  53433. - esac
  53434. - ;;
  53435. + # Suppress compiler output if we already did a PIC compilation.
  53436. + command="$command$suppress_output"
  53437. + func_show_eval_locale "$command" \
  53438. + '$opt_dry_run || $RM $removelist; exit $EXIT_FAILURE'
  53439. - *.$objext)
  53440. - # A standard object.
  53441. - objs="$objs $arg"
  53442. - ;;
  53443. + if test "$need_locks" = warn &&
  53444. + test "X`cat $lockfile 2>/dev/null`" != "X$srcfile"; then
  53445. + $ECHO "\
  53446. +*** ERROR, $lockfile contains:
  53447. +`cat $lockfile 2>/dev/null`
  53448. - *.lo)
  53449. - # A libtool-controlled object.
  53450. +but it should contain:
  53451. +$srcfile
  53452. - # Check to see that this really is a libtool object.
  53453. - if (${SED} -e '2q' $arg | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
  53454. - pic_object=
  53455. - non_pic_object=
  53456. +This indicates that another process is trying to use the same
  53457. +temporary object file, and libtool could not work around it because
  53458. +your compiler does not support \`-c' and \`-o' together. If you
  53459. +repeat this compilation, it may succeed, by chance, but you had better
  53460. +avoid parallel builds (make -j) in this platform, or get a better
  53461. +compiler."
  53462. - # Read the .lo file
  53463. - # If there is no directory component, then add one.
  53464. - case $arg in
  53465. - */* | *\\*) . $arg ;;
  53466. - *) . ./$arg ;;
  53467. - esac
  53468. + $opt_dry_run || $RM $removelist
  53469. + exit $EXIT_FAILURE
  53470. + fi
  53471. - if test -z "$pic_object" || \
  53472. - test -z "$non_pic_object" ||
  53473. - test "$pic_object" = none && \
  53474. - test "$non_pic_object" = none; then
  53475. - $echo "$modename: cannot find name of object for \`$arg'" 1>&2
  53476. - exit $EXIT_FAILURE
  53477. - fi
  53478. + # Just move the object if needed
  53479. + if test -n "$output_obj" && test "X$output_obj" != "X$obj"; then
  53480. + func_show_eval '$MV "$output_obj" "$obj"' \
  53481. + 'error=$?; $opt_dry_run || $RM $removelist; exit $error'
  53482. + fi
  53483. + fi
  53484. - # Extract subdirectory from the argument.
  53485. - xdir=`$echo "X$arg" | $Xsed -e 's%/[^/]*$%%'`
  53486. - if test "X$xdir" = "X$arg"; then
  53487. - xdir=
  53488. - else
  53489. - xdir="$xdir/"
  53490. - fi
  53491. + $opt_dry_run || {
  53492. + func_write_libtool_object "$libobj" "$objdir/$objname" "$objname"
  53493. - if test "$pic_object" != none; then
  53494. - # Prepend the subdirectory the object is found in.
  53495. - pic_object="$xdir$pic_object"
  53496. + # Unlock the critical section if it was locked
  53497. + if test "$need_locks" != no; then
  53498. + removelist=$lockfile
  53499. + $RM "$lockfile"
  53500. + fi
  53501. + }
  53502. - if test "$prev" = dlfiles; then
  53503. - if test "$build_libtool_libs" = yes && test "$dlopen_support" = yes; then
  53504. - dlfiles="$dlfiles $pic_object"
  53505. - prev=
  53506. - continue
  53507. - else
  53508. - # If libtool objects are unsupported, then we need to preload.
  53509. - prev=dlprefiles
  53510. - fi
  53511. - fi
  53512. + exit $EXIT_SUCCESS
  53513. +}
  53514. - # CHECK ME: I think I busted this. -Ossama
  53515. - if test "$prev" = dlprefiles; then
  53516. - # Preload the old-style object.
  53517. - dlprefiles="$dlprefiles $pic_object"
  53518. - prev=
  53519. - fi
  53520. +$opt_help || {
  53521. +test "$mode" = compile && func_mode_compile ${1+"$@"}
  53522. +}
  53523. - # A PIC object.
  53524. - libobjs="$libobjs $pic_object"
  53525. - arg="$pic_object"
  53526. - fi
  53527. +func_mode_help ()
  53528. +{
  53529. + # We need to display help for each of the modes.
  53530. + case $mode in
  53531. + "")
  53532. + # Generic help is extracted from the usage comments
  53533. + # at the start of this file.
  53534. + func_help
  53535. + ;;
  53536. - # Non-PIC object.
  53537. - if test "$non_pic_object" != none; then
  53538. - # Prepend the subdirectory the object is found in.
  53539. - non_pic_object="$xdir$non_pic_object"
  53540. + clean)
  53541. + $ECHO \
  53542. +"Usage: $progname [OPTION]... --mode=clean RM [RM-OPTION]... FILE...
  53543. - # A standard non-PIC object
  53544. - non_pic_objects="$non_pic_objects $non_pic_object"
  53545. - if test -z "$pic_object" || test "$pic_object" = none ; then
  53546. - arg="$non_pic_object"
  53547. - fi
  53548. - fi
  53549. - else
  53550. - # Only an error if not doing a dry-run.
  53551. - if test -z "$run"; then
  53552. - $echo "$modename: \`$arg' is not a valid libtool object" 1>&2
  53553. - exit $EXIT_FAILURE
  53554. - else
  53555. - # Dry-run case.
  53556. +Remove files from the build directory.
  53557. - # Extract subdirectory from the argument.
  53558. - xdir=`$echo "X$arg" | $Xsed -e 's%/[^/]*$%%'`
  53559. - if test "X$xdir" = "X$arg"; then
  53560. - xdir=
  53561. - else
  53562. - xdir="$xdir/"
  53563. - fi
  53564. +RM is the name of the program to use to delete files associated with each FILE
  53565. +(typically \`/bin/rm'). RM-OPTIONS are options (such as \`-f') to be passed
  53566. +to RM.
  53567. - pic_object=`$echo "X${xdir}${objdir}/${arg}" | $Xsed -e "$lo2o"`
  53568. - non_pic_object=`$echo "X${xdir}${arg}" | $Xsed -e "$lo2o"`
  53569. - libobjs="$libobjs $pic_object"
  53570. - non_pic_objects="$non_pic_objects $non_pic_object"
  53571. - fi
  53572. - fi
  53573. - ;;
  53574. +If FILE is a libtool library, object or program, all the files associated
  53575. +with it are deleted. Otherwise, only FILE itself is deleted using RM."
  53576. + ;;
  53577. - *.$libext)
  53578. - # An archive.
  53579. - deplibs="$deplibs $arg"
  53580. - old_deplibs="$old_deplibs $arg"
  53581. - continue
  53582. - ;;
  53583. + compile)
  53584. + $ECHO \
  53585. +"Usage: $progname [OPTION]... --mode=compile COMPILE-COMMAND... SOURCEFILE
  53586. - *.la)
  53587. - # A libtool-controlled library.
  53588. +Compile a source file into a libtool library object.
  53589. - if test "$prev" = dlfiles; then
  53590. - # This library was specified with -dlopen.
  53591. - dlfiles="$dlfiles $arg"
  53592. - prev=
  53593. - elif test "$prev" = dlprefiles; then
  53594. - # The library was specified with -dlpreopen.
  53595. - dlprefiles="$dlprefiles $arg"
  53596. - prev=
  53597. - else
  53598. - deplibs="$deplibs $arg"
  53599. - fi
  53600. - continue
  53601. - ;;
  53602. +This mode accepts the following additional options:
  53603. - # Some other compiler argument.
  53604. - *)
  53605. - # Unknown arguments in both finalize_command and compile_command need
  53606. - # to be aesthetically quoted because they are evaled later.
  53607. - arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`
  53608. - case $arg in
  53609. - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
  53610. - arg="\"$arg\""
  53611. - ;;
  53612. - esac
  53613. - ;;
  53614. - esac # arg
  53615. + -o OUTPUT-FILE set the output file name to OUTPUT-FILE
  53616. + -no-suppress do not suppress compiler output for multiple passes
  53617. + -prefer-pic try to building PIC objects only
  53618. + -prefer-non-pic try to building non-PIC objects only
  53619. + -shared do not build a \`.o' file suitable for static linking
  53620. + -static only build a \`.o' file suitable for static linking
  53621. - # Now actually substitute the argument into the commands.
  53622. - if test -n "$arg"; then
  53623. - compile_command="$compile_command $arg"
  53624. - finalize_command="$finalize_command $arg"
  53625. - fi
  53626. - done # argument parsing loop
  53627. +COMPILE-COMMAND is a command to be used in creating a \`standard' object file
  53628. +from the given SOURCEFILE.
  53629. - if test -n "$prev"; then
  53630. - $echo "$modename: the \`$prevarg' option requires an argument" 1>&2
  53631. - $echo "$help" 1>&2
  53632. - exit $EXIT_FAILURE
  53633. - fi
  53634. +The output file name is determined by removing the directory component from
  53635. +SOURCEFILE, then substituting the C source code suffix \`.c' with the
  53636. +library object suffix, \`.lo'."
  53637. + ;;
  53638. - if test "$export_dynamic" = yes && test -n "$export_dynamic_flag_spec"; then
  53639. - eval arg=\"$export_dynamic_flag_spec\"
  53640. - compile_command="$compile_command $arg"
  53641. - finalize_command="$finalize_command $arg"
  53642. - fi
  53643. + execute)
  53644. + $ECHO \
  53645. +"Usage: $progname [OPTION]... --mode=execute COMMAND [ARGS]...
  53646. - oldlibs=
  53647. - # calculate the name of the file, without its directory
  53648. - outputname=`$echo "X$output" | $Xsed -e 's%^.*/%%'`
  53649. - libobjs_save="$libobjs"
  53650. +Automatically set library path, then run a program.
  53651. - if test -n "$shlibpath_var"; then
  53652. - # get the directories listed in $shlibpath_var
  53653. - eval shlib_search_path=\`\$echo \"X\${$shlibpath_var}\" \| \$Xsed -e \'s/:/ /g\'\`
  53654. - else
  53655. - shlib_search_path=
  53656. - fi
  53657. - eval sys_lib_search_path=\"$sys_lib_search_path_spec\"
  53658. - eval sys_lib_dlsearch_path=\"$sys_lib_dlsearch_path_spec\"
  53659. +This mode accepts the following additional options:
  53660. - output_objdir=`$echo "X$output" | $Xsed -e 's%/[^/]*$%%'`
  53661. - if test "X$output_objdir" = "X$output"; then
  53662. - output_objdir="$objdir"
  53663. - else
  53664. - output_objdir="$output_objdir/$objdir"
  53665. - fi
  53666. - # Create the object directory.
  53667. - if test ! -d "$output_objdir"; then
  53668. - $show "$mkdir $output_objdir"
  53669. - $run $mkdir $output_objdir
  53670. - status=$?
  53671. - if test "$status" -ne 0 && test ! -d "$output_objdir"; then
  53672. - exit $status
  53673. - fi
  53674. - fi
  53675. + -dlopen FILE add the directory containing FILE to the library path
  53676. - # Determine the type of output
  53677. - case $output in
  53678. - "")
  53679. - $echo "$modename: you must specify an output file" 1>&2
  53680. - $echo "$help" 1>&2
  53681. - exit $EXIT_FAILURE
  53682. - ;;
  53683. - *.$libext) linkmode=oldlib ;;
  53684. - *.lo | *.$objext) linkmode=obj ;;
  53685. - *.la) linkmode=lib ;;
  53686. - *) linkmode=prog ;; # Anything else should be a program.
  53687. - esac
  53688. +This mode sets the library path environment variable according to \`-dlopen'
  53689. +flags.
  53690. - case $host in
  53691. - *cygwin* | *mingw* | *pw32*)
  53692. - # don't eliminate duplications in $postdeps and $predeps
  53693. - duplicate_compiler_generated_deps=yes
  53694. - ;;
  53695. - *)
  53696. - duplicate_compiler_generated_deps=$duplicate_deps
  53697. - ;;
  53698. - esac
  53699. - specialdeplibs=
  53700. +If any of the ARGS are libtool executable wrappers, then they are translated
  53701. +into their corresponding uninstalled binary, and any of their required library
  53702. +directories are added to the library path.
  53703. - libs=
  53704. - # Find all interdependent deplibs by searching for libraries
  53705. - # that are linked more than once (e.g. -la -lb -la)
  53706. - for deplib in $deplibs; do
  53707. - if test "X$duplicate_deps" = "Xyes" ; then
  53708. - case "$libs " in
  53709. - *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
  53710. - esac
  53711. - fi
  53712. - libs="$libs $deplib"
  53713. - done
  53714. +Then, COMMAND is executed, with ARGS as arguments."
  53715. + ;;
  53716. - if test "$linkmode" = lib; then
  53717. - libs="$predeps $libs $compiler_lib_search_path $postdeps"
  53718. + finish)
  53719. + $ECHO \
  53720. +"Usage: $progname [OPTION]... --mode=finish [LIBDIR]...
  53721. - # Compute libraries that are listed more than once in $predeps
  53722. - # $postdeps and mark them as special (i.e., whose duplicates are
  53723. - # not to be eliminated).
  53724. - pre_post_deps=
  53725. - if test "X$duplicate_compiler_generated_deps" = "Xyes" ; then
  53726. - for pre_post_dep in $predeps $postdeps; do
  53727. - case "$pre_post_deps " in
  53728. - *" $pre_post_dep "*) specialdeplibs="$specialdeplibs $pre_post_deps" ;;
  53729. - esac
  53730. - pre_post_deps="$pre_post_deps $pre_post_dep"
  53731. - done
  53732. - fi
  53733. - pre_post_deps=
  53734. - fi
  53735. +Complete the installation of libtool libraries.
  53736. - deplibs=
  53737. - newdependency_libs=
  53738. - newlib_search_path=
  53739. - need_relink=no # whether we're linking any uninstalled libtool libraries
  53740. - notinst_deplibs= # not-installed libtool libraries
  53741. - notinst_path= # paths that contain not-installed libtool libraries
  53742. - case $linkmode in
  53743. - lib)
  53744. - passes="conv link"
  53745. - for file in $dlfiles $dlprefiles; do
  53746. - case $file in
  53747. - *.la) ;;
  53748. - *)
  53749. - $echo "$modename: libraries can \`-dlopen' only libtool libraries: $file" 1>&2
  53750. - exit $EXIT_FAILURE
  53751. - ;;
  53752. - esac
  53753. - done
  53754. - ;;
  53755. - prog)
  53756. - compile_deplibs=
  53757. - finalize_deplibs=
  53758. - alldeplibs=no
  53759. - newdlfiles=
  53760. - newdlprefiles=
  53761. - passes="conv scan dlopen dlpreopen link"
  53762. - ;;
  53763. - *) passes="conv"
  53764. - ;;
  53765. - esac
  53766. - for pass in $passes; do
  53767. - if test "$linkmode,$pass" = "lib,link" ||
  53768. - test "$linkmode,$pass" = "prog,scan"; then
  53769. - libs="$deplibs"
  53770. - deplibs=
  53771. - fi
  53772. - if test "$linkmode" = prog; then
  53773. - case $pass in
  53774. - dlopen) libs="$dlfiles" ;;
  53775. - dlpreopen) libs="$dlprefiles" ;;
  53776. - link)
  53777. - libs="$deplibs %DEPLIBS%"
  53778. - test "X$link_all_deplibs" != Xno && libs="$libs $dependency_libs"
  53779. - ;;
  53780. - esac
  53781. - fi
  53782. - if test "$pass" = dlopen; then
  53783. - # Collect dlpreopened libraries
  53784. - save_deplibs="$deplibs"
  53785. - deplibs=
  53786. - fi
  53787. - for deplib in $libs; do
  53788. - lib=
  53789. - found=no
  53790. - case $deplib in
  53791. - -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe)
  53792. - if test "$linkmode,$pass" = "prog,link"; then
  53793. - compile_deplibs="$deplib $compile_deplibs"
  53794. - finalize_deplibs="$deplib $finalize_deplibs"
  53795. - else
  53796. - deplibs="$deplib $deplibs"
  53797. - fi
  53798. - continue
  53799. - ;;
  53800. - -l*)
  53801. - if test "$linkmode" != lib && test "$linkmode" != prog; then
  53802. - $echo "$modename: warning: \`-l' is ignored for archives/objects" 1>&2
  53803. - continue
  53804. - fi
  53805. - if test "$pass" = conv; then
  53806. - deplibs="$deplib $deplibs"
  53807. - continue
  53808. - fi
  53809. - name=`$echo "X$deplib" | $Xsed -e 's/^-l//'`
  53810. - for searchdir in $newlib_search_path $lib_search_path $sys_lib_search_path $shlib_search_path; do
  53811. - for search_ext in .la $std_shrext .so .a; do
  53812. - # Search the libtool library
  53813. - lib="$searchdir/lib${name}${search_ext}"
  53814. - if test -f "$lib"; then
  53815. - if test "$search_ext" = ".la"; then
  53816. - found=yes
  53817. - else
  53818. - found=no
  53819. - fi
  53820. - break 2
  53821. - fi
  53822. - done
  53823. - done
  53824. - if test "$found" != yes; then
  53825. - # deplib doesn't seem to be a libtool library
  53826. - if test "$linkmode,$pass" = "prog,link"; then
  53827. - compile_deplibs="$deplib $compile_deplibs"
  53828. - finalize_deplibs="$deplib $finalize_deplibs"
  53829. - else
  53830. - deplibs="$deplib $deplibs"
  53831. - test "$linkmode" = lib && newdependency_libs="$deplib $newdependency_libs"
  53832. - fi
  53833. - continue
  53834. - else # deplib is a libtool library
  53835. - # If $allow_libtool_libs_with_static_runtimes && $deplib is a stdlib,
  53836. - # We need to do some special things here, and not later.
  53837. - if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
  53838. - case " $predeps $postdeps " in
  53839. - *" $deplib "*)
  53840. - if (${SED} -e '2q' $lib |
  53841. - grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
  53842. - library_names=
  53843. - old_library=
  53844. - case $lib in
  53845. - */* | *\\*) . $lib ;;
  53846. - *) . ./$lib ;;
  53847. - esac
  53848. - for l in $old_library $library_names; do
  53849. - ll="$l"
  53850. - done
  53851. - if test "X$ll" = "X$old_library" ; then # only static version available
  53852. - found=no
  53853. - ladir=`$echo "X$lib" | $Xsed -e 's%/[^/]*$%%'`
  53854. - test "X$ladir" = "X$lib" && ladir="."
  53855. - lib=$ladir/$old_library
  53856. - if test "$linkmode,$pass" = "prog,link"; then
  53857. - compile_deplibs="$deplib $compile_deplibs"
  53858. - finalize_deplibs="$deplib $finalize_deplibs"
  53859. - else
  53860. - deplibs="$deplib $deplibs"
  53861. - test "$linkmode" = lib && newdependency_libs="$deplib $newdependency_libs"
  53862. - fi
  53863. - continue
  53864. - fi
  53865. - fi
  53866. - ;;
  53867. - *) ;;
  53868. - esac
  53869. - fi
  53870. - fi
  53871. - ;; # -l
  53872. - -L*)
  53873. - case $linkmode in
  53874. - lib)
  53875. - deplibs="$deplib $deplibs"
  53876. - test "$pass" = conv && continue
  53877. - newdependency_libs="$deplib $newdependency_libs"
  53878. - newlib_search_path="$newlib_search_path "`$echo "X$deplib" | $Xsed -e 's/^-L//'`
  53879. - ;;
  53880. - prog)
  53881. - if test "$pass" = conv; then
  53882. - deplibs="$deplib $deplibs"
  53883. - continue
  53884. - fi
  53885. - if test "$pass" = scan; then
  53886. - deplibs="$deplib $deplibs"
  53887. - else
  53888. - compile_deplibs="$deplib $compile_deplibs"
  53889. - finalize_deplibs="$deplib $finalize_deplibs"
  53890. - fi
  53891. - newlib_search_path="$newlib_search_path "`$echo "X$deplib" | $Xsed -e 's/^-L//'`
  53892. - ;;
  53893. - *)
  53894. - $echo "$modename: warning: \`-L' is ignored for archives/objects" 1>&2
  53895. - ;;
  53896. - esac # linkmode
  53897. - continue
  53898. - ;; # -L
  53899. - -R*)
  53900. - if test "$pass" = link; then
  53901. - dir=`$echo "X$deplib" | $Xsed -e 's/^-R//'`
  53902. - # Make sure the xrpath contains only unique directories.
  53903. - case "$xrpath " in
  53904. - *" $dir "*) ;;
  53905. - *) xrpath="$xrpath $dir" ;;
  53906. - esac
  53907. - fi
  53908. - deplibs="$deplib $deplibs"
  53909. - continue
  53910. - ;;
  53911. - *.la) lib="$deplib" ;;
  53912. - *.$libext)
  53913. - if test "$pass" = conv; then
  53914. - deplibs="$deplib $deplibs"
  53915. - continue
  53916. - fi
  53917. - case $linkmode in
  53918. - lib)
  53919. - if test "$deplibs_check_method" != pass_all; then
  53920. - $echo
  53921. - $echo "*** Warning: Trying to link with static lib archive $deplib."
  53922. - $echo "*** I have the capability to make that library automatically link in when"
  53923. - $echo "*** you link to this library. But I can only do this if you have a"
  53924. - $echo "*** shared version of the library, which you do not appear to have"
  53925. - $echo "*** because the file extensions .$libext of this argument makes me believe"
  53926. - $echo "*** that it is just a static archive that I should not used here."
  53927. - else
  53928. - $echo
  53929. - $echo "*** Warning: Linking the shared library $output against the"
  53930. - $echo "*** static library $deplib is not portable!"
  53931. - deplibs="$deplib $deplibs"
  53932. - fi
  53933. - continue
  53934. - ;;
  53935. - prog)
  53936. - if test "$pass" != link; then
  53937. - deplibs="$deplib $deplibs"
  53938. - else
  53939. - compile_deplibs="$deplib $compile_deplibs"
  53940. - finalize_deplibs="$deplib $finalize_deplibs"
  53941. - fi
  53942. - continue
  53943. - ;;
  53944. - esac # linkmode
  53945. - ;; # *.$libext
  53946. - *.lo | *.$objext)
  53947. - if test "$pass" = conv; then
  53948. - deplibs="$deplib $deplibs"
  53949. - elif test "$linkmode" = prog; then
  53950. - if test "$pass" = dlpreopen || test "$dlopen_support" != yes || test "$build_libtool_libs" = no; then
  53951. - # If there is no dlopen support or we're linking statically,
  53952. - # we need to preload.
  53953. - newdlprefiles="$newdlprefiles $deplib"
  53954. - compile_deplibs="$deplib $compile_deplibs"
  53955. - finalize_deplibs="$deplib $finalize_deplibs"
  53956. - else
  53957. - newdlfiles="$newdlfiles $deplib"
  53958. - fi
  53959. - fi
  53960. - continue
  53961. - ;;
  53962. - %DEPLIBS%)
  53963. - alldeplibs=yes
  53964. - continue
  53965. - ;;
  53966. - esac # case $deplib
  53967. - if test "$found" = yes || test -f "$lib"; then :
  53968. - else
  53969. - $echo "$modename: cannot find the library \`$lib'" 1>&2
  53970. - exit $EXIT_FAILURE
  53971. - fi
  53972. +Each LIBDIR is a directory that contains libtool libraries.
  53973. - # Check to see that this really is a libtool archive.
  53974. - if (${SED} -e '2q' $lib | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then :
  53975. - else
  53976. - $echo "$modename: \`$lib' is not a valid libtool archive" 1>&2
  53977. - exit $EXIT_FAILURE
  53978. - fi
  53979. +The commands that this mode executes may require superuser privileges. Use
  53980. +the \`--dry-run' option if you just want to see what would be executed."
  53981. + ;;
  53982. - ladir=`$echo "X$lib" | $Xsed -e 's%/[^/]*$%%'`
  53983. - test "X$ladir" = "X$lib" && ladir="."
  53984. + install)
  53985. + $ECHO \
  53986. +"Usage: $progname [OPTION]... --mode=install INSTALL-COMMAND...
  53987. - dlname=
  53988. - dlopen=
  53989. - dlpreopen=
  53990. - libdir=
  53991. - library_names=
  53992. - old_library=
  53993. - # If the library was installed with an old release of libtool,
  53994. - # it will not redefine variables installed, or shouldnotlink
  53995. - installed=yes
  53996. - shouldnotlink=no
  53997. +Install executables or libraries.
  53998. - # Read the .la file
  53999. - case $lib in
  54000. - */* | *\\*) . $lib ;;
  54001. - *) . ./$lib ;;
  54002. - esac
  54003. +INSTALL-COMMAND is the installation command. The first component should be
  54004. +either the \`install' or \`cp' program.
  54005. - if test "$linkmode,$pass" = "lib,link" ||
  54006. - test "$linkmode,$pass" = "prog,scan" ||
  54007. - { test "$linkmode" != prog && test "$linkmode" != lib; }; then
  54008. - test -n "$dlopen" && dlfiles="$dlfiles $dlopen"
  54009. - test -n "$dlpreopen" && dlprefiles="$dlprefiles $dlpreopen"
  54010. - fi
  54011. +The following components of INSTALL-COMMAND are treated specially:
  54012. - if test "$pass" = conv; then
  54013. - # Only check for convenience libraries
  54014. - deplibs="$lib $deplibs"
  54015. - if test -z "$libdir"; then
  54016. - if test -z "$old_library"; then
  54017. - $echo "$modename: cannot find name of link library for \`$lib'" 1>&2
  54018. - exit $EXIT_FAILURE
  54019. - fi
  54020. - # It is a libtool convenience library, so add in its objects.
  54021. - convenience="$convenience $ladir/$objdir/$old_library"
  54022. - old_convenience="$old_convenience $ladir/$objdir/$old_library"
  54023. - tmp_libs=
  54024. - for deplib in $dependency_libs; do
  54025. - deplibs="$deplib $deplibs"
  54026. - if test "X$duplicate_deps" = "Xyes" ; then
  54027. - case "$tmp_libs " in
  54028. - *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
  54029. - esac
  54030. - fi
  54031. - tmp_libs="$tmp_libs $deplib"
  54032. - done
  54033. - elif test "$linkmode" != prog && test "$linkmode" != lib; then
  54034. - $echo "$modename: \`$lib' is not a convenience library" 1>&2
  54035. - exit $EXIT_FAILURE
  54036. - fi
  54037. - continue
  54038. - fi # $pass = conv
  54039. + -inst-prefix PREFIX-DIR Use PREFIX-DIR as a staging area for installation
  54040. +The rest of the components are interpreted as arguments to that command (only
  54041. +BSD-compatible install options are recognized)."
  54042. + ;;
  54043. - # Get the name of the library we link against.
  54044. - linklib=
  54045. - for l in $old_library $library_names; do
  54046. - linklib="$l"
  54047. - done
  54048. - if test -z "$linklib"; then
  54049. - $echo "$modename: cannot find name of link library for \`$lib'" 1>&2
  54050. - exit $EXIT_FAILURE
  54051. - fi
  54052. + link)
  54053. + $ECHO \
  54054. +"Usage: $progname [OPTION]... --mode=link LINK-COMMAND...
  54055. - # This library was specified with -dlopen.
  54056. - if test "$pass" = dlopen; then
  54057. - if test -z "$libdir"; then
  54058. - $echo "$modename: cannot -dlopen a convenience library: \`$lib'" 1>&2
  54059. - exit $EXIT_FAILURE
  54060. - fi
  54061. - if test -z "$dlname" ||
  54062. - test "$dlopen_support" != yes ||
  54063. - test "$build_libtool_libs" = no; then
  54064. - # If there is no dlname, no dlopen support or we're linking
  54065. - # statically, we need to preload. We also need to preload any
  54066. - # dependent libraries so libltdl's deplib preloader doesn't
  54067. - # bomb out in the load deplibs phase.
  54068. - dlprefiles="$dlprefiles $lib $dependency_libs"
  54069. - else
  54070. - newdlfiles="$newdlfiles $lib"
  54071. - fi
  54072. - continue
  54073. - fi # $pass = dlopen
  54074. +Link object files or libraries together to form another library, or to
  54075. +create an executable program.
  54076. - # We need an absolute path.
  54077. - case $ladir in
  54078. - [\\/]* | [A-Za-z]:[\\/]*) abs_ladir="$ladir" ;;
  54079. - *)
  54080. - abs_ladir=`cd "$ladir" && pwd`
  54081. - if test -z "$abs_ladir"; then
  54082. - $echo "$modename: warning: cannot determine absolute directory name of \`$ladir'" 1>&2
  54083. - $echo "$modename: passing it literally to the linker, although it might fail" 1>&2
  54084. - abs_ladir="$ladir"
  54085. - fi
  54086. - ;;
  54087. - esac
  54088. - laname=`$echo "X$lib" | $Xsed -e 's%^.*/%%'`
  54089. +LINK-COMMAND is a command using the C compiler that you would use to create
  54090. +a program from several object files.
  54091. - # Find the relevant object directory and library name.
  54092. - if test "X$installed" = Xyes; then
  54093. - if test ! -f "$libdir/$linklib" && test -f "$abs_ladir/$linklib"; then
  54094. - $echo "$modename: warning: library \`$lib' was moved." 1>&2
  54095. - dir="$ladir"
  54096. - absdir="$abs_ladir"
  54097. - libdir="$abs_ladir"
  54098. - else
  54099. - dir="$libdir"
  54100. - absdir="$libdir"
  54101. - fi
  54102. - else
  54103. - dir="$ladir/$objdir"
  54104. - absdir="$abs_ladir/$objdir"
  54105. - # Remove this search path later
  54106. - notinst_path="$notinst_path $abs_ladir"
  54107. - fi # $installed = yes
  54108. - name=`$echo "X$laname" | $Xsed -e 's/\.la$//' -e 's/^lib//'`
  54109. +The following components of LINK-COMMAND are treated specially:
  54110. - # This library was specified with -dlpreopen.
  54111. - if test "$pass" = dlpreopen; then
  54112. - if test -z "$libdir"; then
  54113. - $echo "$modename: cannot -dlpreopen a convenience library: \`$lib'" 1>&2
  54114. - exit $EXIT_FAILURE
  54115. - fi
  54116. - # Prefer using a static library (so that no silly _DYNAMIC symbols
  54117. - # are required to link).
  54118. - if test -n "$old_library"; then
  54119. - newdlprefiles="$newdlprefiles $dir/$old_library"
  54120. - # Otherwise, use the dlname, so that lt_dlopen finds it.
  54121. - elif test -n "$dlname"; then
  54122. - newdlprefiles="$newdlprefiles $dir/$dlname"
  54123. - else
  54124. - newdlprefiles="$newdlprefiles $dir/$linklib"
  54125. - fi
  54126. - fi # $pass = dlpreopen
  54127. + -all-static do not do any dynamic linking at all
  54128. + -avoid-version do not add a version suffix if possible
  54129. + -dlopen FILE \`-dlpreopen' FILE if it cannot be dlopened at runtime
  54130. + -dlpreopen FILE link in FILE and add its symbols to lt_preloaded_symbols
  54131. + -export-dynamic allow symbols from OUTPUT-FILE to be resolved with dlsym(3)
  54132. + -export-symbols SYMFILE
  54133. + try to export only the symbols listed in SYMFILE
  54134. + -export-symbols-regex REGEX
  54135. + try to export only the symbols matching REGEX
  54136. + -LLIBDIR search LIBDIR for required installed libraries
  54137. + -lNAME OUTPUT-FILE requires the installed library libNAME
  54138. + -module build a library that can dlopened
  54139. + -no-fast-install disable the fast-install mode
  54140. + -no-install link a not-installable executable
  54141. + -no-undefined declare that a library does not refer to external symbols
  54142. + -o OUTPUT-FILE create OUTPUT-FILE from the specified objects
  54143. + -objectlist FILE Use a list of object files found in FILE to specify objects
  54144. + -precious-files-regex REGEX
  54145. + don't remove output files matching REGEX
  54146. + -release RELEASE specify package release information
  54147. + -rpath LIBDIR the created library will eventually be installed in LIBDIR
  54148. + -R[ ]LIBDIR add LIBDIR to the runtime path of programs and libraries
  54149. + -shared only do dynamic linking of libtool libraries
  54150. + -shrext SUFFIX override the standard shared library file extension
  54151. + -static do not do any dynamic linking of uninstalled libtool libraries
  54152. + -static-libtool-libs
  54153. + do not do any dynamic linking of libtool libraries
  54154. + -version-info CURRENT[:REVISION[:AGE]]
  54155. + specify library version info [each variable defaults to 0]
  54156. + -weak LIBNAME declare that the target provides the LIBNAME interface
  54157. - if test -z "$libdir"; then
  54158. - # Link the convenience library
  54159. - if test "$linkmode" = lib; then
  54160. - deplibs="$dir/$old_library $deplibs"
  54161. - elif test "$linkmode,$pass" = "prog,link"; then
  54162. - compile_deplibs="$dir/$old_library $compile_deplibs"
  54163. - finalize_deplibs="$dir/$old_library $finalize_deplibs"
  54164. - else
  54165. - deplibs="$lib $deplibs" # used for prog,scan pass
  54166. - fi
  54167. - continue
  54168. - fi
  54169. +All other options (arguments beginning with \`-') are ignored.
  54170. +Every other argument is treated as a filename. Files ending in \`.la' are
  54171. +treated as uninstalled libtool libraries, other files are standard or library
  54172. +object files.
  54173. - if test "$linkmode" = prog && test "$pass" != link; then
  54174. - newlib_search_path="$newlib_search_path $ladir"
  54175. - deplibs="$lib $deplibs"
  54176. +If the OUTPUT-FILE ends in \`.la', then a libtool library is created,
  54177. +only library objects (\`.lo' files) may be specified, and \`-rpath' is
  54178. +required, except when creating a convenience library.
  54179. - linkalldeplibs=no
  54180. - if test "$link_all_deplibs" != no || test -z "$library_names" ||
  54181. - test "$build_libtool_libs" = no; then
  54182. - linkalldeplibs=yes
  54183. - fi
  54184. +If OUTPUT-FILE ends in \`.a' or \`.lib', then a standard library is created
  54185. +using \`ar' and \`ranlib', or on Windows using \`lib'.
  54186. - tmp_libs=
  54187. - for deplib in $dependency_libs; do
  54188. - case $deplib in
  54189. - -L*) newlib_search_path="$newlib_search_path "`$echo "X$deplib" | $Xsed -e 's/^-L//'`;; ### testsuite: skip nested quoting test
  54190. - esac
  54191. - # Need to link against all dependency_libs?
  54192. - if test "$linkalldeplibs" = yes; then
  54193. - deplibs="$deplib $deplibs"
  54194. - else
  54195. - # Need to hardcode shared library paths
  54196. - # or/and link against static libraries
  54197. - newdependency_libs="$deplib $newdependency_libs"
  54198. - fi
  54199. - if test "X$duplicate_deps" = "Xyes" ; then
  54200. - case "$tmp_libs " in
  54201. - *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
  54202. - esac
  54203. - fi
  54204. - tmp_libs="$tmp_libs $deplib"
  54205. - done # for deplib
  54206. - continue
  54207. - fi # $linkmode = prog...
  54208. +If OUTPUT-FILE ends in \`.lo' or \`.${objext}', then a reloadable object file
  54209. +is created, otherwise an executable program is created."
  54210. + ;;
  54211. - if test "$linkmode,$pass" = "prog,link"; then
  54212. - if test -n "$library_names" &&
  54213. - { test "$prefer_static_libs" = no || test -z "$old_library"; }; then
  54214. - # We need to hardcode the library path
  54215. - if test -n "$shlibpath_var"; then
  54216. - # Make sure the rpath contains only unique directories.
  54217. - case "$temp_rpath " in
  54218. - *" $dir "*) ;;
  54219. - *" $absdir "*) ;;
  54220. - *) temp_rpath="$temp_rpath $dir" ;;
  54221. - esac
  54222. - fi
  54223. + uninstall)
  54224. + $ECHO \
  54225. +"Usage: $progname [OPTION]... --mode=uninstall RM [RM-OPTION]... FILE...
  54226. - # Hardcode the library path.
  54227. - # Skip directories that are in the system default run-time
  54228. - # search path.
  54229. - case " $sys_lib_dlsearch_path " in
  54230. - *" $absdir "*) ;;
  54231. - *)
  54232. - case "$compile_rpath " in
  54233. - *" $absdir "*) ;;
  54234. - *) compile_rpath="$compile_rpath $absdir"
  54235. - esac
  54236. - ;;
  54237. - esac
  54238. - case " $sys_lib_dlsearch_path " in
  54239. - *" $libdir "*) ;;
  54240. - *)
  54241. - case "$finalize_rpath " in
  54242. - *" $libdir "*) ;;
  54243. - *) finalize_rpath="$finalize_rpath $libdir"
  54244. - esac
  54245. - ;;
  54246. - esac
  54247. - fi # $linkmode,$pass = prog,link...
  54248. +Remove libraries from an installation directory.
  54249. - if test "$alldeplibs" = yes &&
  54250. - { test "$deplibs_check_method" = pass_all ||
  54251. - { test "$build_libtool_libs" = yes &&
  54252. - test -n "$library_names"; }; }; then
  54253. - # We only need to search for static libraries
  54254. - continue
  54255. - fi
  54256. - fi
  54257. +RM is the name of the program to use to delete files associated with each FILE
  54258. +(typically \`/bin/rm'). RM-OPTIONS are options (such as \`-f') to be passed
  54259. +to RM.
  54260. - link_static=no # Whether the deplib will be linked statically
  54261. - if test -n "$library_names" &&
  54262. - { test "$prefer_static_libs" = no || test -z "$old_library"; }; then
  54263. - if test "$installed" = no; then
  54264. - notinst_deplibs="$notinst_deplibs $lib"
  54265. - need_relink=yes
  54266. - fi
  54267. - # This is a shared library
  54268. +If FILE is a libtool library, all the files associated with it are deleted.
  54269. +Otherwise, only FILE itself is deleted using RM."
  54270. + ;;
  54271. - # Warn about portability, can't link against -module's on
  54272. - # some systems (darwin)
  54273. - if test "$shouldnotlink" = yes && test "$pass" = link ; then
  54274. - $echo
  54275. - if test "$linkmode" = prog; then
  54276. - $echo "*** Warning: Linking the executable $output against the loadable module"
  54277. - else
  54278. - $echo "*** Warning: Linking the shared library $output against the loadable module"
  54279. - fi
  54280. - $echo "*** $linklib is not portable!"
  54281. - fi
  54282. - if test "$linkmode" = lib &&
  54283. - test "$hardcode_into_libs" = yes; then
  54284. - # Hardcode the library path.
  54285. - # Skip directories that are in the system default run-time
  54286. - # search path.
  54287. - case " $sys_lib_dlsearch_path " in
  54288. - *" $absdir "*) ;;
  54289. - *)
  54290. - case "$compile_rpath " in
  54291. - *" $absdir "*) ;;
  54292. - *) compile_rpath="$compile_rpath $absdir"
  54293. - esac
  54294. - ;;
  54295. - esac
  54296. - case " $sys_lib_dlsearch_path " in
  54297. - *" $libdir "*) ;;
  54298. - *)
  54299. - case "$finalize_rpath " in
  54300. - *" $libdir "*) ;;
  54301. - *) finalize_rpath="$finalize_rpath $libdir"
  54302. - esac
  54303. - ;;
  54304. - esac
  54305. - fi
  54306. + *)
  54307. + func_fatal_help "invalid operation mode \`$mode'"
  54308. + ;;
  54309. + esac
  54310. - if test -n "$old_archive_from_expsyms_cmds"; then
  54311. - # figure out the soname
  54312. - set dummy $library_names
  54313. - realname="$2"
  54314. - shift; shift
  54315. - libname=`eval \\$echo \"$libname_spec\"`
  54316. - # use dlname if we got it. it's perfectly good, no?
  54317. - if test -n "$dlname"; then
  54318. - soname="$dlname"
  54319. - elif test -n "$soname_spec"; then
  54320. - # bleh windows
  54321. - case $host in
  54322. - *cygwin* | mingw*)
  54323. - major=`expr $current - $age`
  54324. - versuffix="-$major"
  54325. - ;;
  54326. - esac
  54327. - eval soname=\"$soname_spec\"
  54328. - else
  54329. - soname="$realname"
  54330. - fi
  54331. + $ECHO
  54332. + $ECHO "Try \`$progname --help' for more information about other modes."
  54333. - # Make a new name for the extract_expsyms_cmds to use
  54334. - soroot="$soname"
  54335. - soname=`$echo $soroot | ${SED} -e 's/^.*\///'`
  54336. - newlib="libimp-`$echo $soname | ${SED} 's/^lib//;s/\.dll$//'`.a"
  54337. + exit $?
  54338. +}
  54339. - # If the library has no export list, then create one now
  54340. - if test -f "$output_objdir/$soname-def"; then :
  54341. - else
  54342. - $show "extracting exported symbol list from \`$soname'"
  54343. - save_ifs="$IFS"; IFS='~'
  54344. - cmds=$extract_expsyms_cmds
  54345. - for cmd in $cmds; do
  54346. - IFS="$save_ifs"
  54347. - eval cmd=\"$cmd\"
  54348. - $show "$cmd"
  54349. - $run eval "$cmd" || exit $?
  54350. - done
  54351. - IFS="$save_ifs"
  54352. - fi
  54353. + # Now that we've collected a possible --mode arg, show help if necessary
  54354. + $opt_help && func_mode_help
  54355. - # Create $newlib
  54356. - if test -f "$output_objdir/$newlib"; then :; else
  54357. - $show "generating import library for \`$soname'"
  54358. - save_ifs="$IFS"; IFS='~'
  54359. - cmds=$old_archive_from_expsyms_cmds
  54360. - for cmd in $cmds; do
  54361. - IFS="$save_ifs"
  54362. - eval cmd=\"$cmd\"
  54363. - $show "$cmd"
  54364. - $run eval "$cmd" || exit $?
  54365. - done
  54366. - IFS="$save_ifs"
  54367. - fi
  54368. - # make sure the library variables are pointing to the new library
  54369. - dir=$output_objdir
  54370. - linklib=$newlib
  54371. - fi # test -n "$old_archive_from_expsyms_cmds"
  54372. - if test "$linkmode" = prog || test "$mode" != relink; then
  54373. - add_shlibpath=
  54374. - add_dir=
  54375. - add=
  54376. - lib_linked=yes
  54377. - case $hardcode_action in
  54378. - immediate | unsupported)
  54379. - if test "$hardcode_direct" = no; then
  54380. - add="$dir/$linklib"
  54381. - case $host in
  54382. - *-*-sco3.2v5* ) add_dir="-L$dir" ;;
  54383. - *-*-darwin* )
  54384. - # if the lib is a module then we can not link against
  54385. - # it, someone is ignoring the new warnings I added
  54386. - if /usr/bin/file -L $add 2> /dev/null | $EGREP "bundle" >/dev/null ; then
  54387. - $echo "** Warning, lib $linklib is a module, not a shared library"
  54388. - if test -z "$old_library" ; then
  54389. - $echo
  54390. - $echo "** And there doesn't seem to be a static archive available"
  54391. - $echo "** The link will probably fail, sorry"
  54392. - else
  54393. - add="$dir/$old_library"
  54394. - fi
  54395. - fi
  54396. - esac
  54397. - elif test "$hardcode_minus_L" = no; then
  54398. - case $host in
  54399. - *-*-sunos*) add_shlibpath="$dir" ;;
  54400. - esac
  54401. - add_dir="-L$dir"
  54402. - add="-l$name"
  54403. - elif test "$hardcode_shlibpath_var" = no; then
  54404. - add_shlibpath="$dir"
  54405. - add="-l$name"
  54406. - else
  54407. - lib_linked=no
  54408. - fi
  54409. - ;;
  54410. - relink)
  54411. - if test "$hardcode_direct" = yes; then
  54412. - add="$dir/$linklib"
  54413. - elif test "$hardcode_minus_L" = yes; then
  54414. - add_dir="-L$dir"
  54415. - # Try looking first in the location we're being installed to.
  54416. - if test -n "$inst_prefix_dir"; then
  54417. - case "$libdir" in
  54418. - [\\/]*)
  54419. - add_dir="$add_dir -L$inst_prefix_dir$libdir"
  54420. - ;;
  54421. - esac
  54422. - fi
  54423. - add="-l$name"
  54424. - elif test "$hardcode_shlibpath_var" = yes; then
  54425. - add_shlibpath="$dir"
  54426. - add="-l$name"
  54427. - else
  54428. - lib_linked=no
  54429. - fi
  54430. - ;;
  54431. - *) lib_linked=no ;;
  54432. - esac
  54433. +# func_mode_execute arg...
  54434. +func_mode_execute ()
  54435. +{
  54436. + $opt_debug
  54437. + # The first argument is the command name.
  54438. + cmd="$nonopt"
  54439. + test -z "$cmd" && \
  54440. + func_fatal_help "you must specify a COMMAND"
  54441. - if test "$lib_linked" != yes; then
  54442. - $echo "$modename: configuration error: unsupported hardcode properties"
  54443. - exit $EXIT_FAILURE
  54444. - fi
  54445. + # Handle -dlopen flags immediately.
  54446. + for file in $execute_dlfiles; do
  54447. + test -f "$file" \
  54448. + || func_fatal_help "\`$file' is not a file"
  54449. - if test -n "$add_shlibpath"; then
  54450. - case :$compile_shlibpath: in
  54451. - *":$add_shlibpath:"*) ;;
  54452. - *) compile_shlibpath="$compile_shlibpath$add_shlibpath:" ;;
  54453. - esac
  54454. - fi
  54455. - if test "$linkmode" = prog; then
  54456. - test -n "$add_dir" && compile_deplibs="$add_dir $compile_deplibs"
  54457. - test -n "$add" && compile_deplibs="$add $compile_deplibs"
  54458. - else
  54459. - test -n "$add_dir" && deplibs="$add_dir $deplibs"
  54460. - test -n "$add" && deplibs="$add $deplibs"
  54461. - if test "$hardcode_direct" != yes && \
  54462. - test "$hardcode_minus_L" != yes && \
  54463. - test "$hardcode_shlibpath_var" = yes; then
  54464. - case :$finalize_shlibpath: in
  54465. - *":$libdir:"*) ;;
  54466. - *) finalize_shlibpath="$finalize_shlibpath$libdir:" ;;
  54467. - esac
  54468. - fi
  54469. - fi
  54470. - fi
  54471. + dir=
  54472. + case $file in
  54473. + *.la)
  54474. + # Check to see that this really is a libtool archive.
  54475. + func_lalib_unsafe_p "$file" \
  54476. + || func_fatal_help "\`$lib' is not a valid libtool archive"
  54477. - if test "$linkmode" = prog || test "$mode" = relink; then
  54478. - add_shlibpath=
  54479. - add_dir=
  54480. - add=
  54481. - # Finalize command for both is simple: just hardcode it.
  54482. - if test "$hardcode_direct" = yes; then
  54483. - add="$libdir/$linklib"
  54484. - elif test "$hardcode_minus_L" = yes; then
  54485. - add_dir="-L$libdir"
  54486. - add="-l$name"
  54487. - elif test "$hardcode_shlibpath_var" = yes; then
  54488. - case :$finalize_shlibpath: in
  54489. - *":$libdir:"*) ;;
  54490. - *) finalize_shlibpath="$finalize_shlibpath$libdir:" ;;
  54491. - esac
  54492. - add="-l$name"
  54493. - elif test "$hardcode_automatic" = yes; then
  54494. - if test -n "$inst_prefix_dir" &&
  54495. - test -f "$inst_prefix_dir$libdir/$linklib" ; then
  54496. - add="$inst_prefix_dir$libdir/$linklib"
  54497. - else
  54498. - add="$libdir/$linklib"
  54499. - fi
  54500. - else
  54501. - # We cannot seem to hardcode it, guess we'll fake it.
  54502. - add_dir="-L$libdir"
  54503. - # Try looking first in the location we're being installed to.
  54504. - if test -n "$inst_prefix_dir"; then
  54505. - case "$libdir" in
  54506. - [\\/]*)
  54507. - add_dir="$add_dir -L$inst_prefix_dir$libdir"
  54508. - ;;
  54509. - esac
  54510. - fi
  54511. - add="-l$name"
  54512. - fi
  54513. + # Read the libtool library.
  54514. + dlname=
  54515. + library_names=
  54516. + func_source "$file"
  54517. - if test "$linkmode" = prog; then
  54518. - test -n "$add_dir" && finalize_deplibs="$add_dir $finalize_deplibs"
  54519. - test -n "$add" && finalize_deplibs="$add $finalize_deplibs"
  54520. - else
  54521. - test -n "$add_dir" && deplibs="$add_dir $deplibs"
  54522. - test -n "$add" && deplibs="$add $deplibs"
  54523. - fi
  54524. - fi
  54525. - elif test "$linkmode" = prog; then
  54526. - # Here we assume that one of hardcode_direct or hardcode_minus_L
  54527. - # is not unsupported. This is valid on all known static and
  54528. - # shared platforms.
  54529. - if test "$hardcode_direct" != unsupported; then
  54530. - test -n "$old_library" && linklib="$old_library"
  54531. - compile_deplibs="$dir/$linklib $compile_deplibs"
  54532. - finalize_deplibs="$dir/$linklib $finalize_deplibs"
  54533. - else
  54534. - compile_deplibs="-l$name -L$dir $compile_deplibs"
  54535. - finalize_deplibs="-l$name -L$dir $finalize_deplibs"
  54536. - fi
  54537. - elif test "$build_libtool_libs" = yes; then
  54538. - # Not a shared library
  54539. - if test "$deplibs_check_method" != pass_all; then
  54540. - # We're trying link a shared library against a static one
  54541. - # but the system doesn't support it.
  54542. + # Skip this library if it cannot be dlopened.
  54543. + if test -z "$dlname"; then
  54544. + # Warn if it was a shared library.
  54545. + test -n "$library_names" && \
  54546. + func_warning "\`$file' was not linked with \`-export-dynamic'"
  54547. + continue
  54548. + fi
  54549. - # Just print a warning and add the library to dependency_libs so
  54550. - # that the program can be linked against the static library.
  54551. - $echo
  54552. - $echo "*** Warning: This system can not link to static lib archive $lib."
  54553. - $echo "*** I have the capability to make that library automatically link in when"
  54554. - $echo "*** you link to this library. But I can only do this if you have a"
  54555. - $echo "*** shared version of the library, which you do not appear to have."
  54556. - if test "$module" = yes; then
  54557. - $echo "*** But as you try to build a module library, libtool will still create "
  54558. - $echo "*** a static module, that should work as long as the dlopening application"
  54559. - $echo "*** is linked with the -dlopen flag to resolve symbols at runtime."
  54560. - if test -z "$global_symbol_pipe"; then
  54561. - $echo
  54562. - $echo "*** However, this would only work if libtool was able to extract symbol"
  54563. - $echo "*** lists from a program, using \`nm' or equivalent, but libtool could"
  54564. - $echo "*** not find such a program. So, this module is probably useless."
  54565. - $echo "*** \`nm' from GNU binutils and a full rebuild may help."
  54566. - fi
  54567. - if test "$build_old_libs" = no; then
  54568. - build_libtool_libs=module
  54569. - build_old_libs=yes
  54570. - else
  54571. - build_libtool_libs=no
  54572. - fi
  54573. - fi
  54574. - else
  54575. - convenience="$convenience $dir/$old_library"
  54576. - old_convenience="$old_convenience $dir/$old_library"
  54577. - deplibs="$dir/$old_library $deplibs"
  54578. - link_static=yes
  54579. - fi
  54580. - fi # link shared/static library?
  54581. + func_dirname "$file" "" "."
  54582. + dir="$func_dirname_result"
  54583. - if test "$linkmode" = lib; then
  54584. - if test -n "$dependency_libs" &&
  54585. - { test "$hardcode_into_libs" != yes ||
  54586. - test "$build_old_libs" = yes ||
  54587. - test "$link_static" = yes; }; then
  54588. - # Extract -R from dependency_libs
  54589. - temp_deplibs=
  54590. - for libdir in $dependency_libs; do
  54591. - case $libdir in
  54592. - -R*) temp_xrpath=`$echo "X$libdir" | $Xsed -e 's/^-R//'`
  54593. - case " $xrpath " in
  54594. - *" $temp_xrpath "*) ;;
  54595. - *) xrpath="$xrpath $temp_xrpath";;
  54596. - esac;;
  54597. - *) temp_deplibs="$temp_deplibs $libdir";;
  54598. - esac
  54599. - done
  54600. - dependency_libs="$temp_deplibs"
  54601. + if test -f "$dir/$objdir/$dlname"; then
  54602. + dir="$dir/$objdir"
  54603. + else
  54604. + if test ! -f "$dir/$dlname"; then
  54605. + func_fatal_error "cannot find \`$dlname' in \`$dir' or \`$dir/$objdir'"
  54606. fi
  54607. + fi
  54608. + ;;
  54609. - newlib_search_path="$newlib_search_path $absdir"
  54610. - # Link against this library
  54611. - test "$link_static" = no && newdependency_libs="$abs_ladir/$laname $newdependency_libs"
  54612. - # ... and its dependency_libs
  54613. - tmp_libs=
  54614. - for deplib in $dependency_libs; do
  54615. - newdependency_libs="$deplib $newdependency_libs"
  54616. - if test "X$duplicate_deps" = "Xyes" ; then
  54617. - case "$tmp_libs " in
  54618. - *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
  54619. - esac
  54620. - fi
  54621. - tmp_libs="$tmp_libs $deplib"
  54622. - done
  54623. + *.lo)
  54624. + # Just add the directory containing the .lo file.
  54625. + func_dirname "$file" "" "."
  54626. + dir="$func_dirname_result"
  54627. + ;;
  54628. - if test "$link_all_deplibs" != no; then
  54629. - # Add the search paths of all dependency libraries
  54630. - for deplib in $dependency_libs; do
  54631. - case $deplib in
  54632. - -L*) path="$deplib" ;;
  54633. - *.la)
  54634. - dir=`$echo "X$deplib" | $Xsed -e 's%/[^/]*$%%'`
  54635. - test "X$dir" = "X$deplib" && dir="."
  54636. - # We need an absolute path.
  54637. - case $dir in
  54638. - [\\/]* | [A-Za-z]:[\\/]*) absdir="$dir" ;;
  54639. - *)
  54640. - absdir=`cd "$dir" && pwd`
  54641. - if test -z "$absdir"; then
  54642. - $echo "$modename: warning: cannot determine absolute directory name of \`$dir'" 1>&2
  54643. - absdir="$dir"
  54644. - fi
  54645. - ;;
  54646. - esac
  54647. - if grep "^installed=no" $deplib > /dev/null; then
  54648. - path="$absdir/$objdir"
  54649. - else
  54650. - eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib`
  54651. - if test -z "$libdir"; then
  54652. - $echo "$modename: \`$deplib' is not a valid libtool archive" 1>&2
  54653. - exit $EXIT_FAILURE
  54654. - fi
  54655. - if test "$absdir" != "$libdir"; then
  54656. - $echo "$modename: warning: \`$deplib' seems to be moved" 1>&2
  54657. - fi
  54658. - path="$absdir"
  54659. - fi
  54660. - depdepl=
  54661. - case $host in
  54662. - *-*-darwin*)
  54663. - # we do not want to link against static libs,
  54664. - # but need to link against shared
  54665. - eval deplibrary_names=`${SED} -n -e 's/^library_names=\(.*\)$/\1/p' $deplib`
  54666. - if test -n "$deplibrary_names" ; then
  54667. - for tmp in $deplibrary_names ; do
  54668. - depdepl=$tmp
  54669. - done
  54670. - if test -f "$path/$depdepl" ; then
  54671. - depdepl="$path/$depdepl"
  54672. - fi
  54673. - # do not add paths which are already there
  54674. - case " $newlib_search_path " in
  54675. - *" $path "*) ;;
  54676. - *) newlib_search_path="$newlib_search_path $path";;
  54677. - esac
  54678. - fi
  54679. - path=""
  54680. - ;;
  54681. - *)
  54682. - path="-L$path"
  54683. - ;;
  54684. - esac
  54685. - ;;
  54686. - -l*)
  54687. - case $host in
  54688. - *-*-darwin*)
  54689. - # Again, we only want to link against shared libraries
  54690. - eval tmp_libs=`$echo "X$deplib" | $Xsed -e "s,^\-l,,"`
  54691. - for tmp in $newlib_search_path ; do
  54692. - if test -f "$tmp/lib$tmp_libs.dylib" ; then
  54693. - eval depdepl="$tmp/lib$tmp_libs.dylib"
  54694. - break
  54695. - fi
  54696. - done
  54697. - path=""
  54698. - ;;
  54699. - *) continue ;;
  54700. - esac
  54701. - ;;
  54702. - *) continue ;;
  54703. - esac
  54704. - case " $deplibs " in
  54705. - *" $depdepl "*) ;;
  54706. - *) deplibs="$depdepl $deplibs" ;;
  54707. - esac
  54708. - case " $deplibs " in
  54709. - *" $path "*) ;;
  54710. - *) deplibs="$deplibs $path" ;;
  54711. - esac
  54712. - done
  54713. - fi # link_all_deplibs != no
  54714. - fi # linkmode = lib
  54715. - done # for deplib in $libs
  54716. - dependency_libs="$newdependency_libs"
  54717. - if test "$pass" = dlpreopen; then
  54718. - # Link the dlpreopened libraries before other libraries
  54719. - for deplib in $save_deplibs; do
  54720. - deplibs="$deplib $deplibs"
  54721. - done
  54722. - fi
  54723. - if test "$pass" != dlopen; then
  54724. - if test "$pass" != conv; then
  54725. - # Make sure lib_search_path contains only unique directories.
  54726. - lib_search_path=
  54727. - for dir in $newlib_search_path; do
  54728. - case "$lib_search_path " in
  54729. - *" $dir "*) ;;
  54730. - *) lib_search_path="$lib_search_path $dir" ;;
  54731. - esac
  54732. - done
  54733. - newlib_search_path=
  54734. - fi
  54735. -
  54736. - if test "$linkmode,$pass" != "prog,link"; then
  54737. - vars="deplibs"
  54738. - else
  54739. - vars="compile_deplibs finalize_deplibs"
  54740. - fi
  54741. - for var in $vars dependency_libs; do
  54742. - # Add libraries to $var in reverse order
  54743. - eval tmp_libs=\"\$$var\"
  54744. - new_libs=
  54745. - for deplib in $tmp_libs; do
  54746. - # FIXME: Pedantically, this is the right thing to do, so
  54747. - # that some nasty dependency loop isn't accidentally
  54748. - # broken:
  54749. - #new_libs="$deplib $new_libs"
  54750. - # Pragmatically, this seems to cause very few problems in
  54751. - # practice:
  54752. - case $deplib in
  54753. - -L*) new_libs="$deplib $new_libs" ;;
  54754. - -R*) ;;
  54755. - *)
  54756. - # And here is the reason: when a library appears more
  54757. - # than once as an explicit dependence of a library, or
  54758. - # is implicitly linked in more than once by the
  54759. - # compiler, it is considered special, and multiple
  54760. - # occurrences thereof are not removed. Compare this
  54761. - # with having the same library being listed as a
  54762. - # dependency of multiple other libraries: in this case,
  54763. - # we know (pedantically, we assume) the library does not
  54764. - # need to be listed more than once, so we keep only the
  54765. - # last copy. This is not always right, but it is rare
  54766. - # enough that we require users that really mean to play
  54767. - # such unportable linking tricks to link the library
  54768. - # using -Wl,-lname, so that libtool does not consider it
  54769. - # for duplicate removal.
  54770. - case " $specialdeplibs " in
  54771. - *" $deplib "*) new_libs="$deplib $new_libs" ;;
  54772. - *)
  54773. - case " $new_libs " in
  54774. - *" $deplib "*) ;;
  54775. - *) new_libs="$deplib $new_libs" ;;
  54776. - esac
  54777. - ;;
  54778. - esac
  54779. - ;;
  54780. - esac
  54781. - done
  54782. - tmp_libs=
  54783. - for deplib in $new_libs; do
  54784. - case $deplib in
  54785. - -L*)
  54786. - case " $tmp_libs " in
  54787. - *" $deplib "*) ;;
  54788. - *) tmp_libs="$tmp_libs $deplib" ;;
  54789. - esac
  54790. - ;;
  54791. - *) tmp_libs="$tmp_libs $deplib" ;;
  54792. - esac
  54793. - done
  54794. - eval $var=\"$tmp_libs\"
  54795. - done # for var
  54796. - fi
  54797. - # Last step: remove runtime libs from dependency_libs
  54798. - # (they stay in deplibs)
  54799. - tmp_libs=
  54800. - for i in $dependency_libs ; do
  54801. - case " $predeps $postdeps $compiler_lib_search_path " in
  54802. - *" $i "*)
  54803. - i=""
  54804. - ;;
  54805. - esac
  54806. - if test -n "$i" ; then
  54807. - tmp_libs="$tmp_libs $i"
  54808. - fi
  54809. - done
  54810. - dependency_libs=$tmp_libs
  54811. - done # for pass
  54812. - if test "$linkmode" = prog; then
  54813. - dlfiles="$newdlfiles"
  54814. - dlprefiles="$newdlprefiles"
  54815. - fi
  54816. -
  54817. - case $linkmode in
  54818. - oldlib)
  54819. - if test -n "$deplibs"; then
  54820. - $echo "$modename: warning: \`-l' and \`-L' are ignored for archives" 1>&2
  54821. - fi
  54822. -
  54823. - if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then
  54824. - $echo "$modename: warning: \`-dlopen' is ignored for archives" 1>&2
  54825. - fi
  54826. -
  54827. - if test -n "$rpath"; then
  54828. - $echo "$modename: warning: \`-rpath' is ignored for archives" 1>&2
  54829. - fi
  54830. -
  54831. - if test -n "$xrpath"; then
  54832. - $echo "$modename: warning: \`-R' is ignored for archives" 1>&2
  54833. - fi
  54834. -
  54835. - if test -n "$vinfo"; then
  54836. - $echo "$modename: warning: \`-version-info/-version-number' is ignored for archives" 1>&2
  54837. - fi
  54838. + *)
  54839. + func_warning "\`-dlopen' is ignored for non-libtool libraries and objects"
  54840. + continue
  54841. + ;;
  54842. + esac
  54843. - if test -n "$release"; then
  54844. - $echo "$modename: warning: \`-release' is ignored for archives" 1>&2
  54845. - fi
  54846. + # Get the absolute pathname.
  54847. + absdir=`cd "$dir" && pwd`
  54848. + test -n "$absdir" && dir="$absdir"
  54849. - if test -n "$export_symbols" || test -n "$export_symbols_regex"; then
  54850. - $echo "$modename: warning: \`-export-symbols' is ignored for archives" 1>&2
  54851. + # Now add the directory to shlibpath_var.
  54852. + if eval "test -z \"\$$shlibpath_var\""; then
  54853. + eval "$shlibpath_var=\"\$dir\""
  54854. + else
  54855. + eval "$shlibpath_var=\"\$dir:\$$shlibpath_var\""
  54856. fi
  54857. + done
  54858. - # Now set the variables for building old libraries.
  54859. - build_libtool_libs=no
  54860. - oldlibs="$output"
  54861. - objs="$objs$old_deplibs"
  54862. - ;;
  54863. + # This variable tells wrapper scripts just to set shlibpath_var
  54864. + # rather than running their programs.
  54865. + libtool_execute_magic="$magic"
  54866. - lib)
  54867. - # Make sure we only generate libraries of the form `libNAME.la'.
  54868. - case $outputname in
  54869. - lib*)
  54870. - name=`$echo "X$outputname" | $Xsed -e 's/\.la$//' -e 's/^lib//'`
  54871. - eval shared_ext=\"$shrext_cmds\"
  54872. - eval libname=\"$libname_spec\"
  54873. - ;;
  54874. + # Check if any of the arguments is a wrapper script.
  54875. + args=
  54876. + for file
  54877. + do
  54878. + case $file in
  54879. + -*) ;;
  54880. *)
  54881. - if test "$module" = no; then
  54882. - $echo "$modename: libtool library \`$output' must begin with \`lib'" 1>&2
  54883. - $echo "$help" 1>&2
  54884. - exit $EXIT_FAILURE
  54885. - fi
  54886. - if test "$need_lib_prefix" != no; then
  54887. - # Add the "lib" prefix for modules if required
  54888. - name=`$echo "X$outputname" | $Xsed -e 's/\.la$//'`
  54889. - eval shared_ext=\"$shrext_cmds\"
  54890. - eval libname=\"$libname_spec\"
  54891. - else
  54892. - libname=`$echo "X$outputname" | $Xsed -e 's/\.la$//'`
  54893. + # Do a test to see if this is really a libtool program.
  54894. + if func_ltwrapper_script_p "$file"; then
  54895. + func_source "$file"
  54896. + # Transform arg to wrapped name.
  54897. + file="$progdir/$program"
  54898. + elif func_ltwrapper_executable_p "$file"; then
  54899. + func_ltwrapper_scriptname "$file"
  54900. + func_source "$func_ltwrapper_scriptname_result"
  54901. + # Transform arg to wrapped name.
  54902. + file="$progdir/$program"
  54903. fi
  54904. ;;
  54905. esac
  54906. + # Quote arguments (to preserve shell metacharacters).
  54907. + func_quote_for_eval "$file"
  54908. + args="$args $func_quote_for_eval_result"
  54909. + done
  54910. - if test -n "$objs"; then
  54911. - if test "$deplibs_check_method" != pass_all; then
  54912. - $echo "$modename: cannot build libtool library \`$output' from non-libtool objects on this host:$objs" 2>&1
  54913. - exit $EXIT_FAILURE
  54914. - else
  54915. - $echo
  54916. - $echo "*** Warning: Linking the shared library $output against the non-libtool"
  54917. - $echo "*** objects $objs is not portable!"
  54918. - libobjs="$libobjs $objs"
  54919. - fi
  54920. + if test "X$opt_dry_run" = Xfalse; then
  54921. + if test -n "$shlibpath_var"; then
  54922. + # Export the shlibpath_var.
  54923. + eval "export $shlibpath_var"
  54924. fi
  54925. - if test "$dlself" != no; then
  54926. - $echo "$modename: warning: \`-dlopen self' is ignored for libtool libraries" 1>&2
  54927. - fi
  54928. + # Restore saved environment variables
  54929. + for lt_var in LANG LANGUAGE LC_ALL LC_CTYPE LC_COLLATE LC_MESSAGES
  54930. + do
  54931. + eval "if test \"\${save_$lt_var+set}\" = set; then
  54932. + $lt_var=\$save_$lt_var; export $lt_var
  54933. + else
  54934. + $lt_unset $lt_var
  54935. + fi"
  54936. + done
  54937. - set dummy $rpath
  54938. - if test "$#" -gt 2; then
  54939. - $echo "$modename: warning: ignoring multiple \`-rpath's for a libtool library" 1>&2
  54940. + # Now prepare to actually exec the command.
  54941. + exec_cmd="\$cmd$args"
  54942. + else
  54943. + # Display what would be done.
  54944. + if test -n "$shlibpath_var"; then
  54945. + eval "\$ECHO \"\$shlibpath_var=\$$shlibpath_var\""
  54946. + $ECHO "export $shlibpath_var"
  54947. fi
  54948. - install_libdir="$2"
  54949. + $ECHO "$cmd$args"
  54950. + exit $EXIT_SUCCESS
  54951. + fi
  54952. +}
  54953. - oldlibs=
  54954. - if test -z "$rpath"; then
  54955. - if test "$build_libtool_libs" = yes; then
  54956. - # Building a libtool convenience library.
  54957. - # Some compilers have problems with a `.al' extension so
  54958. - # convenience libraries should have the same extension an
  54959. - # archive normally would.
  54960. - oldlibs="$output_objdir/$libname.$libext $oldlibs"
  54961. - build_libtool_libs=convenience
  54962. - build_old_libs=yes
  54963. - fi
  54964. +test "$mode" = execute && func_mode_execute ${1+"$@"}
  54965. - if test -n "$vinfo"; then
  54966. - $echo "$modename: warning: \`-version-info/-version-number' is ignored for convenience libraries" 1>&2
  54967. - fi
  54968. - if test -n "$release"; then
  54969. - $echo "$modename: warning: \`-release' is ignored for convenience libraries" 1>&2
  54970. - fi
  54971. - else
  54972. +# func_mode_finish arg...
  54973. +func_mode_finish ()
  54974. +{
  54975. + $opt_debug
  54976. + libdirs="$nonopt"
  54977. + admincmds=
  54978. - # Parse the version information argument.
  54979. - save_ifs="$IFS"; IFS=':'
  54980. - set dummy $vinfo 0 0 0
  54981. - IFS="$save_ifs"
  54982. + if test -n "$finish_cmds$finish_eval" && test -n "$libdirs"; then
  54983. + for dir
  54984. + do
  54985. + libdirs="$libdirs $dir"
  54986. + done
  54987. - if test -n "$8"; then
  54988. - $echo "$modename: too many parameters to \`-version-info'" 1>&2
  54989. - $echo "$help" 1>&2
  54990. - exit $EXIT_FAILURE
  54991. + for libdir in $libdirs; do
  54992. + if test -n "$finish_cmds"; then
  54993. + # Do each command in the finish commands.
  54994. + func_execute_cmds "$finish_cmds" 'admincmds="$admincmds
  54995. +'"$cmd"'"'
  54996. + fi
  54997. + if test -n "$finish_eval"; then
  54998. + # Do the single finish_eval.
  54999. + eval cmds=\"$finish_eval\"
  55000. + $opt_dry_run || eval "$cmds" || admincmds="$admincmds
  55001. + $cmds"
  55002. fi
  55003. + done
  55004. + fi
  55005. - # convert absolute version numbers to libtool ages
  55006. - # this retains compatibility with .la files and attempts
  55007. - # to make the code below a bit more comprehensible
  55008. + # Exit here if they wanted silent mode.
  55009. + $opt_silent && exit $EXIT_SUCCESS
  55010. - case $vinfo_number in
  55011. - yes)
  55012. - number_major="$2"
  55013. - number_minor="$3"
  55014. - number_revision="$4"
  55015. - #
  55016. - # There are really only two kinds -- those that
  55017. - # use the current revision as the major version
  55018. - # and those that subtract age and use age as
  55019. - # a minor version. But, then there is irix
  55020. - # which has an extra 1 added just for fun
  55021. - #
  55022. - case $version_type in
  55023. - darwin|linux|osf|windows)
  55024. - current=`expr $number_major + $number_minor`
  55025. - age="$number_minor"
  55026. - revision="$number_revision"
  55027. - ;;
  55028. - freebsd-aout|freebsd-elf|sunos)
  55029. - current="$number_major"
  55030. - revision="$number_minor"
  55031. - age="0"
  55032. - ;;
  55033. - irix|nonstopux)
  55034. - current=`expr $number_major + $number_minor - 1`
  55035. - age="$number_minor"
  55036. - revision="$number_minor"
  55037. - ;;
  55038. - *)
  55039. - $echo "$modename: unknown library version type \`$version_type'" 1>&2
  55040. - $echo "Fatal configuration error. See the $PACKAGE docs for more information." 1>&2
  55041. - exit $EXIT_FAILURE
  55042. - ;;
  55043. - esac
  55044. - ;;
  55045. - no)
  55046. - current="$2"
  55047. - revision="$3"
  55048. - age="$4"
  55049. - ;;
  55050. - esac
  55051. -
  55052. - # Check that each of the things are valid numbers.
  55053. - case $current in
  55054. - 0 | [1-9] | [1-9][0-9] | [1-9][0-9][0-9]) ;;
  55055. - *)
  55056. - $echo "$modename: CURRENT \`$current' is not a nonnegative integer" 1>&2
  55057. - $echo "$modename: \`$vinfo' is not valid version information" 1>&2
  55058. - exit $EXIT_FAILURE
  55059. - ;;
  55060. - esac
  55061. + $ECHO "X----------------------------------------------------------------------" | $Xsed
  55062. + $ECHO "Libraries have been installed in:"
  55063. + for libdir in $libdirs; do
  55064. + $ECHO " $libdir"
  55065. + done
  55066. + $ECHO
  55067. + $ECHO "If you ever happen to want to link against installed libraries"
  55068. + $ECHO "in a given directory, LIBDIR, you must either use libtool, and"
  55069. + $ECHO "specify the full pathname of the library, or use the \`-LLIBDIR'"
  55070. + $ECHO "flag during linking and do at least one of the following:"
  55071. + if test -n "$shlibpath_var"; then
  55072. + $ECHO " - add LIBDIR to the \`$shlibpath_var' environment variable"
  55073. + $ECHO " during execution"
  55074. + fi
  55075. + if test -n "$runpath_var"; then
  55076. + $ECHO " - add LIBDIR to the \`$runpath_var' environment variable"
  55077. + $ECHO " during linking"
  55078. + fi
  55079. + if test -n "$hardcode_libdir_flag_spec"; then
  55080. + libdir=LIBDIR
  55081. + eval flag=\"$hardcode_libdir_flag_spec\"
  55082. - case $revision in
  55083. - 0 | [1-9] | [1-9][0-9] | [1-9][0-9][0-9]) ;;
  55084. - *)
  55085. - $echo "$modename: REVISION \`$revision' is not a nonnegative integer" 1>&2
  55086. - $echo "$modename: \`$vinfo' is not valid version information" 1>&2
  55087. - exit $EXIT_FAILURE
  55088. - ;;
  55089. - esac
  55090. + $ECHO " - use the \`$flag' linker flag"
  55091. + fi
  55092. + if test -n "$admincmds"; then
  55093. + $ECHO " - have your system administrator run these commands:$admincmds"
  55094. + fi
  55095. + if test -f /etc/ld.so.conf; then
  55096. + $ECHO " - have your system administrator add LIBDIR to \`/etc/ld.so.conf'"
  55097. + fi
  55098. + $ECHO
  55099. - case $age in
  55100. - 0 | [1-9] | [1-9][0-9] | [1-9][0-9][0-9]) ;;
  55101. - *)
  55102. - $echo "$modename: AGE \`$age' is not a nonnegative integer" 1>&2
  55103. - $echo "$modename: \`$vinfo' is not valid version information" 1>&2
  55104. - exit $EXIT_FAILURE
  55105. - ;;
  55106. - esac
  55107. + $ECHO "See any operating system documentation about shared libraries for"
  55108. + case $host in
  55109. + solaris2.[6789]|solaris2.1[0-9])
  55110. + $ECHO "more information, such as the ld(1), crle(1) and ld.so(8) manual"
  55111. + $ECHO "pages."
  55112. + ;;
  55113. + *)
  55114. + $ECHO "more information, such as the ld(1) and ld.so(8) manual pages."
  55115. + ;;
  55116. + esac
  55117. + $ECHO "X----------------------------------------------------------------------" | $Xsed
  55118. + exit $EXIT_SUCCESS
  55119. +}
  55120. - if test "$age" -gt "$current"; then
  55121. - $echo "$modename: AGE \`$age' is greater than the current interface number \`$current'" 1>&2
  55122. - $echo "$modename: \`$vinfo' is not valid version information" 1>&2
  55123. - exit $EXIT_FAILURE
  55124. - fi
  55125. +test "$mode" = finish && func_mode_finish ${1+"$@"}
  55126. - # Calculate the version variables.
  55127. - major=
  55128. - versuffix=
  55129. - verstring=
  55130. - case $version_type in
  55131. - none) ;;
  55132. - darwin)
  55133. - # Like Linux, but with the current version available in
  55134. - # verstring for coding it into the library header
  55135. - major=.`expr $current - $age`
  55136. - versuffix="$major.$age.$revision"
  55137. - # Darwin ld doesn't like 0 for these options...
  55138. - minor_current=`expr $current + 1`
  55139. - verstring="-compatibility_version $minor_current -current_version $minor_current.$revision"
  55140. - ;;
  55141. +# func_mode_install arg...
  55142. +func_mode_install ()
  55143. +{
  55144. + $opt_debug
  55145. + # There may be an optional sh(1) argument at the beginning of
  55146. + # install_prog (especially on Windows NT).
  55147. + if test "$nonopt" = "$SHELL" || test "$nonopt" = /bin/sh ||
  55148. + # Allow the use of GNU shtool's install command.
  55149. + $ECHO "X$nonopt" | $GREP shtool >/dev/null; then
  55150. + # Aesthetically quote it.
  55151. + func_quote_for_eval "$nonopt"
  55152. + install_prog="$func_quote_for_eval_result "
  55153. + arg=$1
  55154. + shift
  55155. + else
  55156. + install_prog=
  55157. + arg=$nonopt
  55158. + fi
  55159. - freebsd-aout)
  55160. - major=".$current"
  55161. - versuffix=".$current.$revision";
  55162. - ;;
  55163. + # The real first argument should be the name of the installation program.
  55164. + # Aesthetically quote it.
  55165. + func_quote_for_eval "$arg"
  55166. + install_prog="$install_prog$func_quote_for_eval_result"
  55167. - freebsd-elf)
  55168. - major=".$current"
  55169. - versuffix=".$current";
  55170. - ;;
  55171. + # We need to accept at least all the BSD install flags.
  55172. + dest=
  55173. + files=
  55174. + opts=
  55175. + prev=
  55176. + install_type=
  55177. + isdir=no
  55178. + stripme=
  55179. + for arg
  55180. + do
  55181. + if test -n "$dest"; then
  55182. + files="$files $dest"
  55183. + dest=$arg
  55184. + continue
  55185. + fi
  55186. - irix | nonstopux)
  55187. - major=`expr $current - $age + 1`
  55188. + case $arg in
  55189. + -d) isdir=yes ;;
  55190. + -f)
  55191. + case " $install_prog " in
  55192. + *[\\\ /]cp\ *) ;;
  55193. + *) prev=$arg ;;
  55194. + esac
  55195. + ;;
  55196. + -g | -m | -o)
  55197. + prev=$arg
  55198. + ;;
  55199. + -s)
  55200. + stripme=" -s"
  55201. + continue
  55202. + ;;
  55203. + -*)
  55204. + ;;
  55205. + *)
  55206. + # If the previous option needed an argument, then skip it.
  55207. + if test -n "$prev"; then
  55208. + prev=
  55209. + else
  55210. + dest=$arg
  55211. + continue
  55212. + fi
  55213. + ;;
  55214. + esac
  55215. - case $version_type in
  55216. - nonstopux) verstring_prefix=nonstopux ;;
  55217. - *) verstring_prefix=sgi ;;
  55218. - esac
  55219. - verstring="$verstring_prefix$major.$revision"
  55220. + # Aesthetically quote the argument.
  55221. + func_quote_for_eval "$arg"
  55222. + install_prog="$install_prog $func_quote_for_eval_result"
  55223. + done
  55224. - # Add in all the interfaces that we are compatible with.
  55225. - loop=$revision
  55226. - while test "$loop" -ne 0; do
  55227. - iface=`expr $revision - $loop`
  55228. - loop=`expr $loop - 1`
  55229. - verstring="$verstring_prefix$major.$iface:$verstring"
  55230. - done
  55231. + test -z "$install_prog" && \
  55232. + func_fatal_help "you must specify an install program"
  55233. - # Before this point, $major must not contain `.'.
  55234. - major=.$major
  55235. - versuffix="$major.$revision"
  55236. - ;;
  55237. + test -n "$prev" && \
  55238. + func_fatal_help "the \`$prev' option requires an argument"
  55239. - linux)
  55240. - major=.`expr $current - $age`
  55241. - versuffix="$major.$age.$revision"
  55242. - ;;
  55243. + if test -z "$files"; then
  55244. + if test -z "$dest"; then
  55245. + func_fatal_help "no file or destination specified"
  55246. + else
  55247. + func_fatal_help "you must specify a destination"
  55248. + fi
  55249. + fi
  55250. - osf)
  55251. - major=.`expr $current - $age`
  55252. - versuffix=".$current.$age.$revision"
  55253. - verstring="$current.$age.$revision"
  55254. + # Strip any trailing slash from the destination.
  55255. + func_stripname '' '/' "$dest"
  55256. + dest=$func_stripname_result
  55257. - # Add in all the interfaces that we are compatible with.
  55258. - loop=$age
  55259. - while test "$loop" -ne 0; do
  55260. - iface=`expr $current - $loop`
  55261. - loop=`expr $loop - 1`
  55262. - verstring="$verstring:${iface}.0"
  55263. - done
  55264. + # Check to see that the destination is a directory.
  55265. + test -d "$dest" && isdir=yes
  55266. + if test "$isdir" = yes; then
  55267. + destdir="$dest"
  55268. + destname=
  55269. + else
  55270. + func_dirname_and_basename "$dest" "" "."
  55271. + destdir="$func_dirname_result"
  55272. + destname="$func_basename_result"
  55273. - # Make executables depend on our current version.
  55274. - verstring="$verstring:${current}.0"
  55275. + # Not a directory, so check to see that there is only one file specified.
  55276. + set dummy $files; shift
  55277. + test "$#" -gt 1 && \
  55278. + func_fatal_help "\`$dest' is not a directory"
  55279. + fi
  55280. + case $destdir in
  55281. + [\\/]* | [A-Za-z]:[\\/]*) ;;
  55282. + *)
  55283. + for file in $files; do
  55284. + case $file in
  55285. + *.lo) ;;
  55286. + *)
  55287. + func_fatal_help "\`$destdir' must be an absolute directory name"
  55288. ;;
  55289. + esac
  55290. + done
  55291. + ;;
  55292. + esac
  55293. - sunos)
  55294. - major=".$current"
  55295. - versuffix=".$current.$revision"
  55296. - ;;
  55297. + # This variable tells wrapper scripts just to set variables rather
  55298. + # than running their programs.
  55299. + libtool_install_magic="$magic"
  55300. - windows)
  55301. - # Use '-' rather than '.', since we only want one
  55302. - # extension on DOS 8.3 filesystems.
  55303. - major=`expr $current - $age`
  55304. - versuffix="-$major"
  55305. - ;;
  55306. + staticlibs=
  55307. + future_libdirs=
  55308. + current_libdirs=
  55309. + for file in $files; do
  55310. - *)
  55311. - $echo "$modename: unknown library version type \`$version_type'" 1>&2
  55312. - $echo "Fatal configuration error. See the $PACKAGE docs for more information." 1>&2
  55313. - exit $EXIT_FAILURE
  55314. - ;;
  55315. - esac
  55316. + # Do each installation.
  55317. + case $file in
  55318. + *.$libext)
  55319. + # Do the static libraries later.
  55320. + staticlibs="$staticlibs $file"
  55321. + ;;
  55322. - # Clear the version info if we defaulted, and they specified a release.
  55323. - if test -z "$vinfo" && test -n "$release"; then
  55324. - major=
  55325. - case $version_type in
  55326. - darwin)
  55327. - # we can't check for "0.0" in archive_cmds due to quoting
  55328. - # problems, so we reset it completely
  55329. - verstring=
  55330. - ;;
  55331. - *)
  55332. - verstring="0.0"
  55333. - ;;
  55334. + *.la)
  55335. + # Check to see that this really is a libtool archive.
  55336. + func_lalib_unsafe_p "$file" \
  55337. + || func_fatal_help "\`$file' is not a valid libtool archive"
  55338. +
  55339. + library_names=
  55340. + old_library=
  55341. + relink_command=
  55342. + func_source "$file"
  55343. +
  55344. + # Add the libdir to current_libdirs if it is the destination.
  55345. + if test "X$destdir" = "X$libdir"; then
  55346. + case "$current_libdirs " in
  55347. + *" $libdir "*) ;;
  55348. + *) current_libdirs="$current_libdirs $libdir" ;;
  55349. esac
  55350. - if test "$need_version" = no; then
  55351. - versuffix=
  55352. + else
  55353. + # Note the libdir as a future libdir.
  55354. + case "$future_libdirs " in
  55355. + *" $libdir "*) ;;
  55356. + *) future_libdirs="$future_libdirs $libdir" ;;
  55357. + esac
  55358. + fi
  55359. +
  55360. + func_dirname "$file" "/" ""
  55361. + dir="$func_dirname_result"
  55362. + dir="$dir$objdir"
  55363. +
  55364. + if test -n "$relink_command"; then
  55365. + # Determine the prefix the user has applied to our future dir.
  55366. + inst_prefix_dir=`$ECHO "X$destdir" | $Xsed -e "s%$libdir\$%%"`
  55367. +
  55368. + # Don't allow the user to place us outside of our expected
  55369. + # location b/c this prevents finding dependent libraries that
  55370. + # are installed to the same prefix.
  55371. + # At present, this check doesn't affect windows .dll's that
  55372. + # are installed into $libdir/../bin (currently, that works fine)
  55373. + # but it's something to keep an eye on.
  55374. + test "$inst_prefix_dir" = "$destdir" && \
  55375. + func_fatal_error "error: cannot install \`$file' to a directory not ending in $libdir"
  55376. +
  55377. + if test -n "$inst_prefix_dir"; then
  55378. + # Stick the inst_prefix_dir data into the link command.
  55379. + relink_command=`$ECHO "X$relink_command" | $Xsed -e "s%@inst_prefix_dir@%-inst-prefix-dir $inst_prefix_dir%"`
  55380. else
  55381. - versuffix=".0.0"
  55382. + relink_command=`$ECHO "X$relink_command" | $Xsed -e "s%@inst_prefix_dir@%%"`
  55383. fi
  55384. - fi
  55385. - # Remove version info from name if versioning should be avoided
  55386. - if test "$avoid_version" = yes && test "$need_version" = no; then
  55387. - major=
  55388. - versuffix=
  55389. - verstring=""
  55390. + func_warning "relinking \`$file'"
  55391. + func_show_eval "$relink_command" \
  55392. + 'func_fatal_error "error: relink \`$file'\'' with the above command before installing it"'
  55393. fi
  55394. - # Check to see if the archive will have undefined symbols.
  55395. - if test "$allow_undefined" = yes; then
  55396. - if test "$allow_undefined_flag" = unsupported; then
  55397. - $echo "$modename: warning: undefined symbols not allowed in $host shared libraries" 1>&2
  55398. - build_libtool_libs=no
  55399. - build_old_libs=yes
  55400. - fi
  55401. - else
  55402. - # Don't allow undefined symbols.
  55403. - allow_undefined_flag="$no_undefined_flag"
  55404. - fi
  55405. - fi
  55406. + # See the names of the shared library.
  55407. + set dummy $library_names; shift
  55408. + if test -n "$1"; then
  55409. + realname="$1"
  55410. + shift
  55411. - if test "$mode" != relink; then
  55412. - # Remove our outputs, but don't remove object files since they
  55413. - # may have been created when compiling PIC objects.
  55414. - removelist=
  55415. - tempremovelist=`$echo "$output_objdir/*"`
  55416. - for p in $tempremovelist; do
  55417. - case $p in
  55418. - *.$objext)
  55419. - ;;
  55420. - $output_objdir/$outputname | $output_objdir/$libname.* | $output_objdir/${libname}${release}.*)
  55421. - if test "X$precious_files_regex" != "X"; then
  55422. - if echo $p | $EGREP -e "$precious_files_regex" >/dev/null 2>&1
  55423. - then
  55424. - continue
  55425. - fi
  55426. - fi
  55427. - removelist="$removelist $p"
  55428. - ;;
  55429. - *) ;;
  55430. + srcname="$realname"
  55431. + test -n "$relink_command" && srcname="$realname"T
  55432. +
  55433. + # Install the shared library and build the symlinks.
  55434. + func_show_eval "$install_prog $dir/$srcname $destdir/$realname" \
  55435. + 'exit $?'
  55436. + tstripme="$stripme"
  55437. + case $host_os in
  55438. + cygwin* | mingw* | pw32* | cegcc*)
  55439. + case $realname in
  55440. + *.dll.a)
  55441. + tstripme=""
  55442. + ;;
  55443. + esac
  55444. + ;;
  55445. esac
  55446. - done
  55447. - if test -n "$removelist"; then
  55448. - $show "${rm}r $removelist"
  55449. - $run ${rm}r $removelist
  55450. + if test -n "$tstripme" && test -n "$striplib"; then
  55451. + func_show_eval "$striplib $destdir/$realname" 'exit $?'
  55452. + fi
  55453. +
  55454. + if test "$#" -gt 0; then
  55455. + # Delete the old symlinks, and create new ones.
  55456. + # Try `ln -sf' first, because the `ln' binary might depend on
  55457. + # the symlink we replace! Solaris /bin/ln does not understand -f,
  55458. + # so we also need to try rm && ln -s.
  55459. + for linkname
  55460. + do
  55461. + test "$linkname" != "$realname" \
  55462. + && func_show_eval "(cd $destdir && { $LN_S -f $realname $linkname || { $RM $linkname && $LN_S $realname $linkname; }; })"
  55463. + done
  55464. + fi
  55465. +
  55466. + # Do each command in the postinstall commands.
  55467. + lib="$destdir/$realname"
  55468. + func_execute_cmds "$postinstall_cmds" 'exit $?'
  55469. fi
  55470. - fi
  55471. - # Now set the variables for building old libraries.
  55472. - if test "$build_old_libs" = yes && test "$build_libtool_libs" != convenience ; then
  55473. - oldlibs="$oldlibs $output_objdir/$libname.$libext"
  55474. + # Install the pseudo-library for information purposes.
  55475. + func_basename "$file"
  55476. + name="$func_basename_result"
  55477. + instname="$dir/$name"i
  55478. + func_show_eval "$install_prog $instname $destdir/$name" 'exit $?'
  55479. - # Transform .lo files to .o files.
  55480. - oldobjs="$objs "`$echo "X$libobjs" | $SP2NL | $Xsed -e '/\.'${libext}'$/d' -e "$lo2o" | $NL2SP`
  55481. - fi
  55482. + # Maybe install the static library, too.
  55483. + test -n "$old_library" && staticlibs="$staticlibs $dir/$old_library"
  55484. + ;;
  55485. - # Eliminate all temporary directories.
  55486. - for path in $notinst_path; do
  55487. - lib_search_path=`$echo "$lib_search_path " | ${SED} -e 's% $path % %g'`
  55488. - deplibs=`$echo "$deplibs " | ${SED} -e 's% -L$path % %g'`
  55489. - dependency_libs=`$echo "$dependency_libs " | ${SED} -e 's% -L$path % %g'`
  55490. - done
  55491. + *.lo)
  55492. + # Install (i.e. copy) a libtool object.
  55493. - if test -n "$xrpath"; then
  55494. - # If the user specified any rpath flags, then add them.
  55495. - temp_xrpath=
  55496. - for libdir in $xrpath; do
  55497. - temp_xrpath="$temp_xrpath -R$libdir"
  55498. - case "$finalize_rpath " in
  55499. - *" $libdir "*) ;;
  55500. - *) finalize_rpath="$finalize_rpath $libdir" ;;
  55501. - esac
  55502. - done
  55503. - if test "$hardcode_into_libs" != yes || test "$build_old_libs" = yes; then
  55504. - dependency_libs="$temp_xrpath $dependency_libs"
  55505. + # Figure out destination file name, if it wasn't already specified.
  55506. + if test -n "$destname"; then
  55507. + destfile="$destdir/$destname"
  55508. + else
  55509. + func_basename "$file"
  55510. + destfile="$func_basename_result"
  55511. + destfile="$destdir/$destfile"
  55512. fi
  55513. - fi
  55514. - # Make sure dlfiles contains only unique files that won't be dlpreopened
  55515. - old_dlfiles="$dlfiles"
  55516. - dlfiles=
  55517. - for lib in $old_dlfiles; do
  55518. - case " $dlprefiles $dlfiles " in
  55519. - *" $lib "*) ;;
  55520. - *) dlfiles="$dlfiles $lib" ;;
  55521. + # Deduce the name of the destination old-style object file.
  55522. + case $destfile in
  55523. + *.lo)
  55524. + func_lo2o "$destfile"
  55525. + staticdest=$func_lo2o_result
  55526. + ;;
  55527. + *.$objext)
  55528. + staticdest="$destfile"
  55529. + destfile=
  55530. + ;;
  55531. + *)
  55532. + func_fatal_help "cannot copy a libtool object to \`$destfile'"
  55533. + ;;
  55534. esac
  55535. - done
  55536. - # Make sure dlprefiles contains only unique files
  55537. - old_dlprefiles="$dlprefiles"
  55538. - dlprefiles=
  55539. - for lib in $old_dlprefiles; do
  55540. - case "$dlprefiles " in
  55541. - *" $lib "*) ;;
  55542. - *) dlprefiles="$dlprefiles $lib" ;;
  55543. - esac
  55544. - done
  55545. + # Install the libtool object if requested.
  55546. + test -n "$destfile" && \
  55547. + func_show_eval "$install_prog $file $destfile" 'exit $?'
  55548. - if test "$build_libtool_libs" = yes; then
  55549. - if test -n "$rpath"; then
  55550. - case $host in
  55551. - *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-*-beos*)
  55552. - # these systems don't actually have a c library (as such)!
  55553. - ;;
  55554. - *-*-rhapsody* | *-*-darwin1.[012])
  55555. - # Rhapsody C library is in the System framework
  55556. - deplibs="$deplibs -framework System"
  55557. + # Install the old object if enabled.
  55558. + if test "$build_old_libs" = yes; then
  55559. + # Deduce the name of the old-style object file.
  55560. + func_lo2o "$file"
  55561. + staticobj=$func_lo2o_result
  55562. + func_show_eval "$install_prog \$staticobj \$staticdest" 'exit $?'
  55563. + fi
  55564. + exit $EXIT_SUCCESS
  55565. + ;;
  55566. +
  55567. + *)
  55568. + # Figure out destination file name, if it wasn't already specified.
  55569. + if test -n "$destname"; then
  55570. + destfile="$destdir/$destname"
  55571. + else
  55572. + func_basename "$file"
  55573. + destfile="$func_basename_result"
  55574. + destfile="$destdir/$destfile"
  55575. + fi
  55576. +
  55577. + # If the file is missing, and there is a .exe on the end, strip it
  55578. + # because it is most likely a libtool script we actually want to
  55579. + # install
  55580. + stripped_ext=""
  55581. + case $file in
  55582. + *.exe)
  55583. + if test ! -f "$file"; then
  55584. + func_stripname '' '.exe' "$file"
  55585. + file=$func_stripname_result
  55586. + stripped_ext=".exe"
  55587. + fi
  55588. ;;
  55589. - *-*-netbsd*)
  55590. - # Don't link with libc until the a.out ld.so is fixed.
  55591. + esac
  55592. +
  55593. + # Do a test to see if this is really a libtool program.
  55594. + case $host in
  55595. + *cygwin* | *mingw*)
  55596. + if func_ltwrapper_executable_p "$file"; then
  55597. + func_ltwrapper_scriptname "$file"
  55598. + wrapper=$func_ltwrapper_scriptname_result
  55599. + else
  55600. + func_stripname '' '.exe' "$file"
  55601. + wrapper=$func_stripname_result
  55602. + fi
  55603. ;;
  55604. - *-*-openbsd* | *-*-freebsd*)
  55605. - # Do not include libc due to us having libc/libc_r.
  55606. - test "X$arg" = "X-lc" && continue
  55607. + *)
  55608. + wrapper=$file
  55609. ;;
  55610. - *)
  55611. - # Add libc to deplibs on all other systems if necessary.
  55612. - if test "$build_libtool_need_lc" = "yes"; then
  55613. - deplibs="$deplibs -lc"
  55614. + esac
  55615. + if func_ltwrapper_script_p "$wrapper"; then
  55616. + notinst_deplibs=
  55617. + relink_command=
  55618. +
  55619. + func_source "$wrapper"
  55620. +
  55621. + # Check the variables that should have been set.
  55622. + test -z "$generated_by_libtool_version" && \
  55623. + func_fatal_error "invalid libtool wrapper script \`$wrapper'"
  55624. +
  55625. + finalize=yes
  55626. + for lib in $notinst_deplibs; do
  55627. + # Check to see that each library is installed.
  55628. + libdir=
  55629. + if test -f "$lib"; then
  55630. + func_source "$lib"
  55631. fi
  55632. - ;;
  55633. - esac
  55634. - fi
  55635. + libfile="$libdir/"`$ECHO "X$lib" | $Xsed -e 's%^.*/%%g'` ### testsuite: skip nested quoting test
  55636. + if test -n "$libdir" && test ! -f "$libfile"; then
  55637. + func_warning "\`$lib' has not been installed in \`$libdir'"
  55638. + finalize=no
  55639. + fi
  55640. + done
  55641. - # Transform deplibs into only deplibs that can be linked in shared.
  55642. - name_save=$name
  55643. - libname_save=$libname
  55644. - release_save=$release
  55645. - versuffix_save=$versuffix
  55646. - major_save=$major
  55647. - # I'm not sure if I'm treating the release correctly. I think
  55648. - # release should show up in the -l (ie -lgmp5) so we don't want to
  55649. - # add it in twice. Is that correct?
  55650. - release=""
  55651. - versuffix=""
  55652. - major=""
  55653. - newdeplibs=
  55654. - droppeddeps=no
  55655. - case $deplibs_check_method in
  55656. - pass_all)
  55657. - # Don't check for shared/static. Everything works.
  55658. - # This might be a little naive. We might want to check
  55659. - # whether the library exists or not. But this is on
  55660. - # osf3 & osf4 and I'm not really sure... Just
  55661. - # implementing what was already the behavior.
  55662. - newdeplibs=$deplibs
  55663. - ;;
  55664. - test_compile)
  55665. - # This code stresses the "libraries are programs" paradigm to its
  55666. - # limits. Maybe even breaks it. We compile a program, linking it
  55667. - # against the deplibs as a proxy for the library. Then we can check
  55668. - # whether they linked in statically or dynamically with ldd.
  55669. - $rm conftest.c
  55670. - cat > conftest.c <<EOF
  55671. - int main() { return 0; }
  55672. -EOF
  55673. - $rm conftest
  55674. - $LTCC -o conftest conftest.c $deplibs
  55675. - if test "$?" -eq 0 ; then
  55676. - ldd_output=`ldd conftest`
  55677. - for i in $deplibs; do
  55678. - name="`expr $i : '-l\(.*\)'`"
  55679. - # If $name is empty we are operating on a -L argument.
  55680. - if test "$name" != "" && test "$name" -ne "0"; then
  55681. - if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
  55682. - case " $predeps $postdeps " in
  55683. - *" $i "*)
  55684. - newdeplibs="$newdeplibs $i"
  55685. - i=""
  55686. - ;;
  55687. - esac
  55688. + relink_command=
  55689. + func_source "$wrapper"
  55690. +
  55691. + outputname=
  55692. + if test "$fast_install" = no && test -n "$relink_command"; then
  55693. + $opt_dry_run || {
  55694. + if test "$finalize" = yes; then
  55695. + tmpdir=`func_mktempdir`
  55696. + func_basename "$file$stripped_ext"
  55697. + file="$func_basename_result"
  55698. + outputname="$tmpdir/$file"
  55699. + # Replace the output file specification.
  55700. + relink_command=`$ECHO "X$relink_command" | $Xsed -e 's%@OUTPUT@%'"$outputname"'%g'`
  55701. +
  55702. + $opt_silent || {
  55703. + func_quote_for_expand "$relink_command"
  55704. + eval "func_echo $func_quote_for_expand_result"
  55705. + }
  55706. + if eval "$relink_command"; then :
  55707. + else
  55708. + func_error "error: relink \`$file' with the above command before installing it"
  55709. + $opt_dry_run || ${RM}r "$tmpdir"
  55710. + continue
  55711. fi
  55712. - if test -n "$i" ; then
  55713. - libname=`eval \\$echo \"$libname_spec\"`
  55714. - deplib_matches=`eval \\$echo \"$library_names_spec\"`
  55715. - set dummy $deplib_matches
  55716. - deplib_match=$2
  55717. - if test `expr "$ldd_output" : ".*$deplib_match"` -ne 0 ; then
  55718. - newdeplibs="$newdeplibs $i"
  55719. - else
  55720. - droppeddeps=yes
  55721. - $echo
  55722. - $echo "*** Warning: dynamic linker does not accept needed library $i."
  55723. - $echo "*** I have the capability to make that library automatically link in when"
  55724. - $echo "*** you link to this library. But I can only do this if you have a"
  55725. - $echo "*** shared version of the library, which I believe you do not have"
  55726. - $echo "*** because a test_compile did reveal that the linker did not use it for"
  55727. - $echo "*** its dynamic dependency list that programs get resolved with at runtime."
  55728. - fi
  55729. - fi
  55730. + file="$outputname"
  55731. else
  55732. - newdeplibs="$newdeplibs $i"
  55733. + func_warning "cannot relink \`$file'"
  55734. fi
  55735. - done
  55736. + }
  55737. else
  55738. - # Error occurred in the first compile. Let's try to salvage
  55739. - # the situation: Compile a separate program for each library.
  55740. - for i in $deplibs; do
  55741. - name="`expr $i : '-l\(.*\)'`"
  55742. - # If $name is empty we are operating on a -L argument.
  55743. - if test "$name" != "" && test "$name" != "0"; then
  55744. - $rm conftest
  55745. - $LTCC -o conftest conftest.c $i
  55746. - # Did it work?
  55747. - if test "$?" -eq 0 ; then
  55748. - ldd_output=`ldd conftest`
  55749. - if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
  55750. - case " $predeps $postdeps " in
  55751. - *" $i "*)
  55752. - newdeplibs="$newdeplibs $i"
  55753. - i=""
  55754. - ;;
  55755. - esac
  55756. - fi
  55757. - if test -n "$i" ; then
  55758. - libname=`eval \\$echo \"$libname_spec\"`
  55759. - deplib_matches=`eval \\$echo \"$library_names_spec\"`
  55760. - set dummy $deplib_matches
  55761. - deplib_match=$2
  55762. - if test `expr "$ldd_output" : ".*$deplib_match"` -ne 0 ; then
  55763. - newdeplibs="$newdeplibs $i"
  55764. - else
  55765. - droppeddeps=yes
  55766. - $echo
  55767. - $echo "*** Warning: dynamic linker does not accept needed library $i."
  55768. - $echo "*** I have the capability to make that library automatically link in when"
  55769. - $echo "*** you link to this library. But I can only do this if you have a"
  55770. - $echo "*** shared version of the library, which you do not appear to have"
  55771. - $echo "*** because a test_compile did reveal that the linker did not use this one"
  55772. - $echo "*** as a dynamic dependency that programs can get resolved with at runtime."
  55773. - fi
  55774. - fi
  55775. - else
  55776. - droppeddeps=yes
  55777. - $echo
  55778. - $echo "*** Warning! Library $i is needed by this library but I was not able to"
  55779. - $echo "*** make it link in! You will probably need to install it or some"
  55780. - $echo "*** library that it depends on before this library will be fully"
  55781. - $echo "*** functional. Installing it before continuing would be even better."
  55782. - fi
  55783. - else
  55784. - newdeplibs="$newdeplibs $i"
  55785. - fi
  55786. - done
  55787. + # Install the binary that we compiled earlier.
  55788. + file=`$ECHO "X$file$stripped_ext" | $Xsed -e "s%\([^/]*\)$%$objdir/\1%"`
  55789. fi
  55790. - ;;
  55791. - file_magic*)
  55792. - set dummy $deplibs_check_method
  55793. - file_magic_regex=`expr "$deplibs_check_method" : "$2 \(.*\)"`
  55794. - for a_deplib in $deplibs; do
  55795. - name="`expr $a_deplib : '-l\(.*\)'`"
  55796. - # If $name is empty we are operating on a -L argument.
  55797. - if test "$name" != "" && test "$name" != "0"; then
  55798. - if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
  55799. - case " $predeps $postdeps " in
  55800. - *" $a_deplib "*)
  55801. - newdeplibs="$newdeplibs $a_deplib"
  55802. - a_deplib=""
  55803. - ;;
  55804. - esac
  55805. - fi
  55806. - if test -n "$a_deplib" ; then
  55807. - libname=`eval \\$echo \"$libname_spec\"`
  55808. - for i in $lib_search_path $sys_lib_search_path $shlib_search_path; do
  55809. - potential_libs=`ls $i/$libname[.-]* 2>/dev/null`
  55810. - for potent_lib in $potential_libs; do
  55811. - # Follow soft links.
  55812. - if ls -lLd "$potent_lib" 2>/dev/null \
  55813. - | grep " -> " >/dev/null; then
  55814. - continue
  55815. - fi
  55816. - # The statement above tries to avoid entering an
  55817. - # endless loop below, in case of cyclic links.
  55818. - # We might still enter an endless loop, since a link
  55819. - # loop can be closed while we follow links,
  55820. - # but so what?
  55821. - potlib="$potent_lib"
  55822. - while test -h "$potlib" 2>/dev/null; do
  55823. - potliblink=`ls -ld $potlib | ${SED} 's/.* -> //'`
  55824. - case $potliblink in
  55825. - [\\/]* | [A-Za-z]:[\\/]*) potlib="$potliblink";;
  55826. - *) potlib=`$echo "X$potlib" | $Xsed -e 's,[^/]*$,,'`"$potliblink";;
  55827. - esac
  55828. - done
  55829. - if eval $file_magic_cmd \"\$potlib\" 2>/dev/null \
  55830. - | ${SED} 10q \
  55831. - | $EGREP "$file_magic_regex" > /dev/null; then
  55832. - newdeplibs="$newdeplibs $a_deplib"
  55833. - a_deplib=""
  55834. - break 2
  55835. - fi
  55836. - done
  55837. - done
  55838. - fi
  55839. - if test -n "$a_deplib" ; then
  55840. - droppeddeps=yes
  55841. - $echo
  55842. - $echo "*** Warning: linker path does not have real file for library $a_deplib."
  55843. - $echo "*** I have the capability to make that library automatically link in when"
  55844. - $echo "*** you link to this library. But I can only do this if you have a"
  55845. - $echo "*** shared version of the library, which you do not appear to have"
  55846. - $echo "*** because I did check the linker path looking for a file starting"
  55847. - if test -z "$potlib" ; then
  55848. - $echo "*** with $libname but no candidates were found. (...for file magic test)"
  55849. - else
  55850. - $echo "*** with $libname and none of the candidates passed a file format test"
  55851. - $echo "*** using a file magic. Last file checked: $potlib"
  55852. - fi
  55853. - fi
  55854. - else
  55855. - # Add a -L argument.
  55856. - newdeplibs="$newdeplibs $a_deplib"
  55857. - fi
  55858. - done # Gone through all deplibs.
  55859. - ;;
  55860. - match_pattern*)
  55861. - set dummy $deplibs_check_method
  55862. - match_pattern_regex=`expr "$deplibs_check_method" : "$2 \(.*\)"`
  55863. - for a_deplib in $deplibs; do
  55864. - name="`expr $a_deplib : '-l\(.*\)'`"
  55865. - # If $name is empty we are operating on a -L argument.
  55866. - if test -n "$name" && test "$name" != "0"; then
  55867. - if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
  55868. - case " $predeps $postdeps " in
  55869. - *" $a_deplib "*)
  55870. - newdeplibs="$newdeplibs $a_deplib"
  55871. - a_deplib=""
  55872. - ;;
  55873. - esac
  55874. - fi
  55875. - if test -n "$a_deplib" ; then
  55876. - libname=`eval \\$echo \"$libname_spec\"`
  55877. - for i in $lib_search_path $sys_lib_search_path $shlib_search_path; do
  55878. - potential_libs=`ls $i/$libname[.-]* 2>/dev/null`
  55879. - for potent_lib in $potential_libs; do
  55880. - potlib="$potent_lib" # see symlink-check above in file_magic test
  55881. - if eval $echo \"$potent_lib\" 2>/dev/null \
  55882. - | ${SED} 10q \
  55883. - | $EGREP "$match_pattern_regex" > /dev/null; then
  55884. - newdeplibs="$newdeplibs $a_deplib"
  55885. - a_deplib=""
  55886. - break 2
  55887. - fi
  55888. - done
  55889. - done
  55890. - fi
  55891. - if test -n "$a_deplib" ; then
  55892. - droppeddeps=yes
  55893. - $echo
  55894. - $echo "*** Warning: linker path does not have real file for library $a_deplib."
  55895. - $echo "*** I have the capability to make that library automatically link in when"
  55896. - $echo "*** you link to this library. But I can only do this if you have a"
  55897. - $echo "*** shared version of the library, which you do not appear to have"
  55898. - $echo "*** because I did check the linker path looking for a file starting"
  55899. - if test -z "$potlib" ; then
  55900. - $echo "*** with $libname but no candidates were found. (...for regex pattern test)"
  55901. - else
  55902. - $echo "*** with $libname and none of the candidates passed a file format test"
  55903. - $echo "*** using a regex pattern. Last file checked: $potlib"
  55904. - fi
  55905. - fi
  55906. - else
  55907. - # Add a -L argument.
  55908. - newdeplibs="$newdeplibs $a_deplib"
  55909. - fi
  55910. - done # Gone through all deplibs.
  55911. - ;;
  55912. - none | unknown | *)
  55913. - newdeplibs=""
  55914. - tmp_deplibs=`$echo "X $deplibs" | $Xsed -e 's/ -lc$//' \
  55915. - -e 's/ -[LR][^ ]*//g'`
  55916. - if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
  55917. - for i in $predeps $postdeps ; do
  55918. - # can't use Xsed below, because $i might contain '/'
  55919. - tmp_deplibs=`$echo "X $tmp_deplibs" | ${SED} -e "1s,^X,," -e "s,$i,,"`
  55920. - done
  55921. - fi
  55922. - if $echo "X $tmp_deplibs" | $Xsed -e 's/[ ]//g' \
  55923. - | grep . >/dev/null; then
  55924. - $echo
  55925. - if test "X$deplibs_check_method" = "Xnone"; then
  55926. - $echo "*** Warning: inter-library dependencies are not supported in this platform."
  55927. - else
  55928. - $echo "*** Warning: inter-library dependencies are not known to be supported."
  55929. - fi
  55930. - $echo "*** All declared inter-library dependencies are being dropped."
  55931. - droppeddeps=yes
  55932. - fi
  55933. - ;;
  55934. - esac
  55935. - versuffix=$versuffix_save
  55936. - major=$major_save
  55937. - release=$release_save
  55938. - libname=$libname_save
  55939. - name=$name_save
  55940. + fi
  55941. - case $host in
  55942. - *-*-rhapsody* | *-*-darwin1.[012])
  55943. - # On Rhapsody replace the C library is the System framework
  55944. - newdeplibs=`$echo "X $newdeplibs" | $Xsed -e 's/ -lc / -framework System /'`
  55945. + # remove .exe since cygwin /usr/bin/install will append another
  55946. + # one anyway
  55947. + case $install_prog,$host in
  55948. + */usr/bin/install*,*cygwin*)
  55949. + case $file:$destfile in
  55950. + *.exe:*.exe)
  55951. + # this is ok
  55952. + ;;
  55953. + *.exe:*)
  55954. + destfile=$destfile.exe
  55955. + ;;
  55956. + *:*.exe)
  55957. + func_stripname '' '.exe' "$destfile"
  55958. + destfile=$func_stripname_result
  55959. + ;;
  55960. + esac
  55961. ;;
  55962. esac
  55963. + func_show_eval "$install_prog\$stripme \$file \$destfile" 'exit $?'
  55964. + $opt_dry_run || if test -n "$outputname"; then
  55965. + ${RM}r "$tmpdir"
  55966. + fi
  55967. + ;;
  55968. + esac
  55969. + done
  55970. - if test "$droppeddeps" = yes; then
  55971. - if test "$module" = yes; then
  55972. - $echo
  55973. - $echo "*** Warning: libtool could not satisfy all declared inter-library"
  55974. - $echo "*** dependencies of module $libname. Therefore, libtool will create"
  55975. - $echo "*** a static module, that should work as long as the dlopening"
  55976. - $echo "*** application is linked with the -dlopen flag."
  55977. - if test -z "$global_symbol_pipe"; then
  55978. - $echo
  55979. - $echo "*** However, this would only work if libtool was able to extract symbol"
  55980. - $echo "*** lists from a program, using \`nm' or equivalent, but libtool could"
  55981. - $echo "*** not find such a program. So, this module is probably useless."
  55982. - $echo "*** \`nm' from GNU binutils and a full rebuild may help."
  55983. - fi
  55984. - if test "$build_old_libs" = no; then
  55985. - oldlibs="$output_objdir/$libname.$libext"
  55986. - build_libtool_libs=module
  55987. - build_old_libs=yes
  55988. - else
  55989. - build_libtool_libs=no
  55990. - fi
  55991. - else
  55992. - $echo "*** The inter-library dependencies that have been dropped here will be"
  55993. - $echo "*** automatically added whenever a program is linked with this library"
  55994. - $echo "*** or is declared to -dlopen it."
  55995. + for file in $staticlibs; do
  55996. + func_basename "$file"
  55997. + name="$func_basename_result"
  55998. - if test "$allow_undefined" = no; then
  55999. - $echo
  56000. - $echo "*** Since this library must not contain undefined symbols,"
  56001. - $echo "*** because either the platform does not support them or"
  56002. - $echo "*** it was explicitly requested with -no-undefined,"
  56003. - $echo "*** libtool will only create a static version of it."
  56004. - if test "$build_old_libs" = no; then
  56005. - oldlibs="$output_objdir/$libname.$libext"
  56006. - build_libtool_libs=module
  56007. - build_old_libs=yes
  56008. - else
  56009. - build_libtool_libs=no
  56010. - fi
  56011. - fi
  56012. - fi
  56013. - fi
  56014. - # Done checking deplibs!
  56015. - deplibs=$newdeplibs
  56016. + # Set up the ranlib parameters.
  56017. + oldlib="$destdir/$name"
  56018. +
  56019. + func_show_eval "$install_prog \$file \$oldlib" 'exit $?'
  56020. +
  56021. + if test -n "$stripme" && test -n "$old_striplib"; then
  56022. + func_show_eval "$old_striplib $oldlib" 'exit $?'
  56023. fi
  56024. - # All the library-specific variables (install_libdir is set above).
  56025. - library_names=
  56026. - old_library=
  56027. - dlname=
  56028. + # Do each command in the postinstall commands.
  56029. + func_execute_cmds "$old_postinstall_cmds" 'exit $?'
  56030. + done
  56031. - # Test again, we may have decided not to build it any more
  56032. - if test "$build_libtool_libs" = yes; then
  56033. - if test "$hardcode_into_libs" = yes; then
  56034. - # Hardcode the library paths
  56035. - hardcode_libdirs=
  56036. - dep_rpath=
  56037. - rpath="$finalize_rpath"
  56038. - test "$mode" != relink && rpath="$compile_rpath$rpath"
  56039. - for libdir in $rpath; do
  56040. - if test -n "$hardcode_libdir_flag_spec"; then
  56041. - if test -n "$hardcode_libdir_separator"; then
  56042. - if test -z "$hardcode_libdirs"; then
  56043. - hardcode_libdirs="$libdir"
  56044. - else
  56045. - # Just accumulate the unique libdirs.
  56046. - case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in
  56047. - *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*)
  56048. - ;;
  56049. - *)
  56050. - hardcode_libdirs="$hardcode_libdirs$hardcode_libdir_separator$libdir"
  56051. - ;;
  56052. - esac
  56053. - fi
  56054. - else
  56055. - eval flag=\"$hardcode_libdir_flag_spec\"
  56056. - dep_rpath="$dep_rpath $flag"
  56057. - fi
  56058. - elif test -n "$runpath_var"; then
  56059. - case "$perm_rpath " in
  56060. - *" $libdir "*) ;;
  56061. - *) perm_rpath="$perm_rpath $libdir" ;;
  56062. - esac
  56063. - fi
  56064. - done
  56065. - # Substitute the hardcoded libdirs into the rpath.
  56066. - if test -n "$hardcode_libdir_separator" &&
  56067. - test -n "$hardcode_libdirs"; then
  56068. - libdir="$hardcode_libdirs"
  56069. - if test -n "$hardcode_libdir_flag_spec_ld"; then
  56070. - eval dep_rpath=\"$hardcode_libdir_flag_spec_ld\"
  56071. - else
  56072. - eval dep_rpath=\"$hardcode_libdir_flag_spec\"
  56073. - fi
  56074. - fi
  56075. - if test -n "$runpath_var" && test -n "$perm_rpath"; then
  56076. - # We should set the runpath_var.
  56077. - rpath=
  56078. - for dir in $perm_rpath; do
  56079. - rpath="$rpath$dir:"
  56080. - done
  56081. - eval "$runpath_var='$rpath\$$runpath_var'; export $runpath_var"
  56082. - fi
  56083. - test -n "$dep_rpath" && deplibs="$dep_rpath $deplibs"
  56084. - fi
  56085. + test -n "$future_libdirs" && \
  56086. + func_warning "remember to run \`$progname --finish$future_libdirs'"
  56087. - shlibpath="$finalize_shlibpath"
  56088. - test "$mode" != relink && shlibpath="$compile_shlibpath$shlibpath"
  56089. - if test -n "$shlibpath"; then
  56090. - eval "$shlibpath_var='$shlibpath\$$shlibpath_var'; export $shlibpath_var"
  56091. - fi
  56092. + if test -n "$current_libdirs"; then
  56093. + # Maybe just do a dry run.
  56094. + $opt_dry_run && current_libdirs=" -n$current_libdirs"
  56095. + exec_cmd='$SHELL $progpath $preserve_args --finish$current_libdirs'
  56096. + else
  56097. + exit $EXIT_SUCCESS
  56098. + fi
  56099. +}
  56100. - # Get the real and link names of the library.
  56101. - eval shared_ext=\"$shrext_cmds\"
  56102. - eval library_names=\"$library_names_spec\"
  56103. - set dummy $library_names
  56104. - realname="$2"
  56105. - shift; shift
  56106. +test "$mode" = install && func_mode_install ${1+"$@"}
  56107. - if test -n "$soname_spec"; then
  56108. - eval soname=\"$soname_spec\"
  56109. - else
  56110. - soname="$realname"
  56111. - fi
  56112. - if test -z "$dlname"; then
  56113. - dlname=$soname
  56114. - fi
  56115. - lib="$output_objdir/$realname"
  56116. - for link
  56117. - do
  56118. - linknames="$linknames $link"
  56119. - done
  56120. +# func_generate_dlsyms outputname originator pic_p
  56121. +# Extract symbols from dlprefiles and create ${outputname}S.o with
  56122. +# a dlpreopen symbol table.
  56123. +func_generate_dlsyms ()
  56124. +{
  56125. + $opt_debug
  56126. + my_outputname="$1"
  56127. + my_originator="$2"
  56128. + my_pic_p="${3-no}"
  56129. + my_prefix=`$ECHO "$my_originator" | sed 's%[^a-zA-Z0-9]%_%g'`
  56130. + my_dlsyms=
  56131. +
  56132. + if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then
  56133. + if test -n "$NM" && test -n "$global_symbol_pipe"; then
  56134. + my_dlsyms="${my_outputname}S.c"
  56135. + else
  56136. + func_error "not configured to extract global symbols from dlpreopened files"
  56137. + fi
  56138. + fi
  56139. - # Use standard objects if they are pic
  56140. - test -z "$pic_flag" && libobjs=`$echo "X$libobjs" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP`
  56141. + if test -n "$my_dlsyms"; then
  56142. + case $my_dlsyms in
  56143. + "") ;;
  56144. + *.c)
  56145. + # Discover the nlist of each of the dlfiles.
  56146. + nlist="$output_objdir/${my_outputname}.nm"
  56147. - # Prepare the list of exported symbols
  56148. - if test -z "$export_symbols"; then
  56149. - if test "$always_export_symbols" = yes || test -n "$export_symbols_regex"; then
  56150. - $show "generating symbol list for \`$libname.la'"
  56151. - export_symbols="$output_objdir/$libname.exp"
  56152. - $run $rm $export_symbols
  56153. - cmds=$export_symbols_cmds
  56154. - save_ifs="$IFS"; IFS='~'
  56155. - for cmd in $cmds; do
  56156. - IFS="$save_ifs"
  56157. - eval cmd=\"$cmd\"
  56158. - if len=`expr "X$cmd" : ".*"` &&
  56159. - test "$len" -le "$max_cmd_len" || test "$max_cmd_len" -le -1; then
  56160. - $show "$cmd"
  56161. - $run eval "$cmd" || exit $?
  56162. - skipped_export=false
  56163. - else
  56164. - # The command line is too long to execute in one step.
  56165. - $show "using reloadable object file for export list..."
  56166. - skipped_export=:
  56167. - fi
  56168. - done
  56169. - IFS="$save_ifs"
  56170. - if test -n "$export_symbols_regex"; then
  56171. - $show "$EGREP -e \"$export_symbols_regex\" \"$export_symbols\" > \"${export_symbols}T\""
  56172. - $run eval '$EGREP -e "$export_symbols_regex" "$export_symbols" > "${export_symbols}T"'
  56173. - $show "$mv \"${export_symbols}T\" \"$export_symbols\""
  56174. - $run eval '$mv "${export_symbols}T" "$export_symbols"'
  56175. - fi
  56176. - fi
  56177. - fi
  56178. + func_show_eval "$RM $nlist ${nlist}S ${nlist}T"
  56179. - if test -n "$export_symbols" && test -n "$include_expsyms"; then
  56180. - $run eval '$echo "X$include_expsyms" | $SP2NL >> "$export_symbols"'
  56181. - fi
  56182. + # Parse the name list into a source file.
  56183. + func_verbose "creating $output_objdir/$my_dlsyms"
  56184. - tmp_deplibs=
  56185. - for test_deplib in $deplibs; do
  56186. - case " $convenience " in
  56187. - *" $test_deplib "*) ;;
  56188. - *)
  56189. - tmp_deplibs="$tmp_deplibs $test_deplib"
  56190. - ;;
  56191. - esac
  56192. - done
  56193. - deplibs="$tmp_deplibs"
  56194. -
  56195. - if test -n "$convenience"; then
  56196. - if test -n "$whole_archive_flag_spec"; then
  56197. - save_libobjs=$libobjs
  56198. - eval libobjs=\"\$libobjs $whole_archive_flag_spec\"
  56199. - else
  56200. - gentop="$output_objdir/${outputname}x"
  56201. - $show "${rm}r $gentop"
  56202. - $run ${rm}r "$gentop"
  56203. - $show "$mkdir $gentop"
  56204. - $run $mkdir "$gentop"
  56205. - status=$?
  56206. - if test "$status" -ne 0 && test ! -d "$gentop"; then
  56207. - exit $status
  56208. - fi
  56209. - generated="$generated $gentop"
  56210. + $opt_dry_run || $ECHO > "$output_objdir/$my_dlsyms" "\
  56211. +/* $my_dlsyms - symbol resolution table for \`$my_outputname' dlsym emulation. */
  56212. +/* Generated by $PROGRAM (GNU $PACKAGE$TIMESTAMP) $VERSION */
  56213. - for xlib in $convenience; do
  56214. - # Extract the objects.
  56215. - case $xlib in
  56216. - [\\/]* | [A-Za-z]:[\\/]*) xabs="$xlib" ;;
  56217. - *) xabs=`pwd`"/$xlib" ;;
  56218. - esac
  56219. - xlib=`$echo "X$xlib" | $Xsed -e 's%^.*/%%'`
  56220. - xdir="$gentop/$xlib"
  56221. +#ifdef __cplusplus
  56222. +extern \"C\" {
  56223. +#endif
  56224. - $show "${rm}r $xdir"
  56225. - $run ${rm}r "$xdir"
  56226. - $show "$mkdir $xdir"
  56227. - $run $mkdir "$xdir"
  56228. - status=$?
  56229. - if test "$status" -ne 0 && test ! -d "$xdir"; then
  56230. - exit $status
  56231. - fi
  56232. - # We will extract separately just the conflicting names and we will no
  56233. - # longer touch any unique names. It is faster to leave these extract
  56234. - # automatically by $AR in one run.
  56235. - $show "(cd $xdir && $AR x $xabs)"
  56236. - $run eval "(cd \$xdir && $AR x \$xabs)" || exit $?
  56237. - if ($AR t "$xabs" | sort | sort -uc >/dev/null 2>&1); then
  56238. - :
  56239. - else
  56240. - $echo "$modename: warning: object name conflicts; renaming object files" 1>&2
  56241. - $echo "$modename: warning: to ensure that they will not overwrite" 1>&2
  56242. - $AR t "$xabs" | sort | uniq -cd | while read -r count name
  56243. - do
  56244. - i=1
  56245. - while test "$i" -le "$count"
  56246. - do
  56247. - # Put our $i before any first dot (extension)
  56248. - # Never overwrite any file
  56249. - name_to="$name"
  56250. - while test "X$name_to" = "X$name" || test -f "$xdir/$name_to"
  56251. - do
  56252. - name_to=`$echo "X$name_to" | $Xsed -e "s/\([^.]*\)/\1-$i/"`
  56253. - done
  56254. - $show "(cd $xdir && $AR xN $i $xabs '$name' && $mv '$name' '$name_to')"
  56255. - $run eval "(cd \$xdir && $AR xN $i \$xabs '$name' && $mv '$name' '$name_to')" || exit $?
  56256. - i=`expr $i + 1`
  56257. - done
  56258. - done
  56259. - fi
  56260. +/* External symbol declarations for the compiler. */\
  56261. +"
  56262. - libobjs="$libobjs "`find $xdir -name \*.$objext -print -o -name \*.lo -print | $NL2SP`
  56263. - done
  56264. - fi
  56265. - fi
  56266. + if test "$dlself" = yes; then
  56267. + func_verbose "generating symbol list for \`$output'"
  56268. - if test "$thread_safe" = yes && test -n "$thread_safe_flag_spec"; then
  56269. - eval flag=\"$thread_safe_flag_spec\"
  56270. - linker_flags="$linker_flags $flag"
  56271. - fi
  56272. + $opt_dry_run || echo ': @PROGRAM@ ' > "$nlist"
  56273. - # Make a backup of the uninstalled library when relinking
  56274. - if test "$mode" = relink; then
  56275. - $run eval '(cd $output_objdir && $rm ${realname}U && $mv $realname ${realname}U)' || exit $?
  56276. - fi
  56277. + # Add our own program objects to the symbol list.
  56278. + progfiles=`$ECHO "X$objs$old_deplibs" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP`
  56279. + for progfile in $progfiles; do
  56280. + func_verbose "extracting global C symbols from \`$progfile'"
  56281. + $opt_dry_run || eval "$NM $progfile | $global_symbol_pipe >> '$nlist'"
  56282. + done
  56283. - # Do each of the archive commands.
  56284. - if test "$module" = yes && test -n "$module_cmds" ; then
  56285. - if test -n "$export_symbols" && test -n "$module_expsym_cmds"; then
  56286. - eval test_cmds=\"$module_expsym_cmds\"
  56287. - cmds=$module_expsym_cmds
  56288. + if test -n "$exclude_expsyms"; then
  56289. + $opt_dry_run || {
  56290. + eval '$EGREP -v " ($exclude_expsyms)$" "$nlist" > "$nlist"T'
  56291. + eval '$MV "$nlist"T "$nlist"'
  56292. + }
  56293. + fi
  56294. +
  56295. + if test -n "$export_symbols_regex"; then
  56296. + $opt_dry_run || {
  56297. + eval '$EGREP -e "$export_symbols_regex" "$nlist" > "$nlist"T'
  56298. + eval '$MV "$nlist"T "$nlist"'
  56299. + }
  56300. + fi
  56301. +
  56302. + # Prepare the list of exported symbols
  56303. + if test -z "$export_symbols"; then
  56304. + export_symbols="$output_objdir/$outputname.exp"
  56305. + $opt_dry_run || {
  56306. + $RM $export_symbols
  56307. + eval "${SED} -n -e '/^: @PROGRAM@ $/d' -e 's/^.* \(.*\)$/\1/p' "'< "$nlist" > "$export_symbols"'
  56308. + case $host in
  56309. + *cygwin* | *mingw* | *cegcc* )
  56310. + eval "echo EXPORTS "'> "$output_objdir/$outputname.def"'
  56311. + eval 'cat "$export_symbols" >> "$output_objdir/$outputname.def"'
  56312. + ;;
  56313. + esac
  56314. + }
  56315. else
  56316. - eval test_cmds=\"$module_cmds\"
  56317. - cmds=$module_cmds
  56318. - fi
  56319. - else
  56320. - if test -n "$export_symbols" && test -n "$archive_expsym_cmds"; then
  56321. - eval test_cmds=\"$archive_expsym_cmds\"
  56322. - cmds=$archive_expsym_cmds
  56323. - else
  56324. - eval test_cmds=\"$archive_cmds\"
  56325. - cmds=$archive_cmds
  56326. + $opt_dry_run || {
  56327. + eval "${SED} -e 's/\([].[*^$]\)/\\\\\1/g' -e 's/^/ /' -e 's/$/$/'"' < "$export_symbols" > "$output_objdir/$outputname.exp"'
  56328. + eval '$GREP -f "$output_objdir/$outputname.exp" < "$nlist" > "$nlist"T'
  56329. + eval '$MV "$nlist"T "$nlist"'
  56330. + case $host in
  56331. + *cygwin | *mingw* | *cegcc* )
  56332. + eval "echo EXPORTS "'> "$output_objdir/$outputname.def"'
  56333. + eval 'cat "$nlist" >> "$output_objdir/$outputname.def"'
  56334. + ;;
  56335. + esac
  56336. + }
  56337. fi
  56338. fi
  56339. - if test "X$skipped_export" != "X:" && len=`expr "X$test_cmds" : ".*"` &&
  56340. - test "$len" -le "$max_cmd_len" || test "$max_cmd_len" -le -1; then
  56341. - :
  56342. - else
  56343. - # The command line is too long to link in one step, link piecewise.
  56344. - $echo "creating reloadable object files..."
  56345. + for dlprefile in $dlprefiles; do
  56346. + func_verbose "extracting global C symbols from \`$dlprefile'"
  56347. + func_basename "$dlprefile"
  56348. + name="$func_basename_result"
  56349. + $opt_dry_run || {
  56350. + eval '$ECHO ": $name " >> "$nlist"'
  56351. + eval "$NM $dlprefile 2>/dev/null | $global_symbol_pipe >> '$nlist'"
  56352. + }
  56353. + done
  56354. - # Save the value of $output and $libobjs because we want to
  56355. - # use them later. If we have whole_archive_flag_spec, we
  56356. - # want to use save_libobjs as it was before
  56357. - # whole_archive_flag_spec was expanded, because we can't
  56358. - # assume the linker understands whole_archive_flag_spec.
  56359. - # This may have to be revisited, in case too many
  56360. - # convenience libraries get linked in and end up exceeding
  56361. - # the spec.
  56362. - if test -z "$convenience" || test -z "$whole_archive_flag_spec"; then
  56363. - save_libobjs=$libobjs
  56364. + $opt_dry_run || {
  56365. + # Make sure we have at least an empty file.
  56366. + test -f "$nlist" || : > "$nlist"
  56367. +
  56368. + if test -n "$exclude_expsyms"; then
  56369. + $EGREP -v " ($exclude_expsyms)$" "$nlist" > "$nlist"T
  56370. + $MV "$nlist"T "$nlist"
  56371. fi
  56372. - save_output=$output
  56373. - # Clear the reloadable object creation command queue and
  56374. - # initialize k to one.
  56375. - test_cmds=
  56376. - concat_cmds=
  56377. - objlist=
  56378. - delfiles=
  56379. - last_robj=
  56380. - k=1
  56381. - output=$output_objdir/$save_output-${k}.$objext
  56382. - # Loop over the list of objects to be linked.
  56383. - for obj in $save_libobjs
  56384. - do
  56385. - eval test_cmds=\"$reload_cmds $objlist $last_robj\"
  56386. - if test "X$objlist" = X ||
  56387. - { len=`expr "X$test_cmds" : ".*"` &&
  56388. - test "$len" -le "$max_cmd_len"; }; then
  56389. - objlist="$objlist $obj"
  56390. - else
  56391. - # The command $test_cmds is almost too long, add a
  56392. - # command to the queue.
  56393. - if test "$k" -eq 1 ; then
  56394. - # The first file doesn't have a previous command to add.
  56395. - eval concat_cmds=\"$reload_cmds $objlist $last_robj\"
  56396. + # Try sorting and uniquifying the output.
  56397. + if $GREP -v "^: " < "$nlist" |
  56398. + if sort -k 3 </dev/null >/dev/null 2>&1; then
  56399. + sort -k 3
  56400. else
  56401. - # All subsequent reloadable object files will link in
  56402. - # the last one created.
  56403. - eval concat_cmds=\"\$concat_cmds~$reload_cmds $objlist $last_robj\"
  56404. - fi
  56405. - last_robj=$output_objdir/$save_output-${k}.$objext
  56406. - k=`expr $k + 1`
  56407. - output=$output_objdir/$save_output-${k}.$objext
  56408. - objlist=$obj
  56409. - len=1
  56410. - fi
  56411. - done
  56412. - # Handle the remaining objects by creating one last
  56413. - # reloadable object file. All subsequent reloadable object
  56414. - # files will link in the last one created.
  56415. - test -z "$concat_cmds" || concat_cmds=$concat_cmds~
  56416. - eval concat_cmds=\"\${concat_cmds}$reload_cmds $objlist $last_robj\"
  56417. + sort +2
  56418. + fi |
  56419. + uniq > "$nlist"S; then
  56420. + :
  56421. + else
  56422. + $GREP -v "^: " < "$nlist" > "$nlist"S
  56423. + fi
  56424. - if ${skipped_export-false}; then
  56425. - $show "generating symbol list for \`$libname.la'"
  56426. - export_symbols="$output_objdir/$libname.exp"
  56427. - $run $rm $export_symbols
  56428. - libobjs=$output
  56429. - # Append the command to create the export file.
  56430. - eval concat_cmds=\"\$concat_cmds~$export_symbols_cmds\"
  56431. - fi
  56432. -
  56433. - # Set up a command to remove the reloadale object files
  56434. - # after they are used.
  56435. - i=0
  56436. - while test "$i" -lt "$k"
  56437. - do
  56438. - i=`expr $i + 1`
  56439. - delfiles="$delfiles $output_objdir/$save_output-${i}.$objext"
  56440. - done
  56441. + if test -f "$nlist"S; then
  56442. + eval "$global_symbol_to_cdecl"' < "$nlist"S >> "$output_objdir/$my_dlsyms"'
  56443. + else
  56444. + $ECHO '/* NONE */' >> "$output_objdir/$my_dlsyms"
  56445. + fi
  56446. - $echo "creating a temporary reloadable object file: $output"
  56447. + $ECHO >> "$output_objdir/$my_dlsyms" "\
  56448. - # Loop through the commands generated above and execute them.
  56449. - save_ifs="$IFS"; IFS='~'
  56450. - for cmd in $concat_cmds; do
  56451. - IFS="$save_ifs"
  56452. - $show "$cmd"
  56453. - $run eval "$cmd" || exit $?
  56454. - done
  56455. - IFS="$save_ifs"
  56456. +/* The mapping between symbol names and symbols. */
  56457. +typedef struct {
  56458. + const char *name;
  56459. + void *address;
  56460. +} lt_dlsymlist;
  56461. +"
  56462. + case $host in
  56463. + *cygwin* | *mingw* | *cegcc* )
  56464. + $ECHO >> "$output_objdir/$my_dlsyms" "\
  56465. +/* DATA imports from DLLs on WIN32 con't be const, because
  56466. + runtime relocations are performed -- see ld's documentation
  56467. + on pseudo-relocs. */"
  56468. + lt_dlsym_const= ;;
  56469. + *osf5*)
  56470. + echo >> "$output_objdir/$my_dlsyms" "\
  56471. +/* This system does not cope well with relocations in const data */"
  56472. + lt_dlsym_const= ;;
  56473. + *)
  56474. + lt_dlsym_const=const ;;
  56475. + esac
  56476. - libobjs=$output
  56477. - # Restore the value of output.
  56478. - output=$save_output
  56479. + $ECHO >> "$output_objdir/$my_dlsyms" "\
  56480. +extern $lt_dlsym_const lt_dlsymlist
  56481. +lt_${my_prefix}_LTX_preloaded_symbols[];
  56482. +$lt_dlsym_const lt_dlsymlist
  56483. +lt_${my_prefix}_LTX_preloaded_symbols[] =
  56484. +{\
  56485. + { \"$my_originator\", (void *) 0 },"
  56486. - if test -n "$convenience" && test -n "$whole_archive_flag_spec"; then
  56487. - eval libobjs=\"\$libobjs $whole_archive_flag_spec\"
  56488. - fi
  56489. - # Expand the library linking commands again to reset the
  56490. - # value of $libobjs for piecewise linking.
  56491. + case $need_lib_prefix in
  56492. + no)
  56493. + eval "$global_symbol_to_c_name_address" < "$nlist" >> "$output_objdir/$my_dlsyms"
  56494. + ;;
  56495. + *)
  56496. + eval "$global_symbol_to_c_name_address_lib_prefix" < "$nlist" >> "$output_objdir/$my_dlsyms"
  56497. + ;;
  56498. + esac
  56499. + $ECHO >> "$output_objdir/$my_dlsyms" "\
  56500. + {0, (void *) 0}
  56501. +};
  56502. - # Do each of the archive commands.
  56503. - if test "$module" = yes && test -n "$module_cmds" ; then
  56504. - if test -n "$export_symbols" && test -n "$module_expsym_cmds"; then
  56505. - cmds=$module_expsym_cmds
  56506. - else
  56507. - cmds=$module_cmds
  56508. - fi
  56509. - else
  56510. - if test -n "$export_symbols" && test -n "$archive_expsym_cmds"; then
  56511. - cmds=$archive_expsym_cmds
  56512. - else
  56513. - cmds=$archive_cmds
  56514. - fi
  56515. - fi
  56516. +/* This works around a problem in FreeBSD linker */
  56517. +#ifdef FREEBSD_WORKAROUND
  56518. +static const void *lt_preloaded_setup() {
  56519. + return lt_${my_prefix}_LTX_preloaded_symbols;
  56520. +}
  56521. +#endif
  56522. - # Append the command to remove the reloadable object files
  56523. - # to the just-reset $cmds.
  56524. - eval cmds=\"\$cmds~\$rm $delfiles\"
  56525. - fi
  56526. - save_ifs="$IFS"; IFS='~'
  56527. - for cmd in $cmds; do
  56528. - IFS="$save_ifs"
  56529. - eval cmd=\"$cmd\"
  56530. - $show "$cmd"
  56531. - $run eval "$cmd" || exit $?
  56532. +#ifdef __cplusplus
  56533. +}
  56534. +#endif\
  56535. +"
  56536. + } # !$opt_dry_run
  56537. +
  56538. + pic_flag_for_symtable=
  56539. + case "$compile_command " in
  56540. + *" -static "*) ;;
  56541. + *)
  56542. + case $host in
  56543. + # compiling the symbol table file with pic_flag works around
  56544. + # a FreeBSD bug that causes programs to crash when -lm is
  56545. + # linked before any other PIC object. But we must not use
  56546. + # pic_flag when linking with -static. The problem exists in
  56547. + # FreeBSD 2.2.6 and is fixed in FreeBSD 3.1.
  56548. + *-*-freebsd2*|*-*-freebsd3.0*|*-*-freebsdelf3.0*)
  56549. + pic_flag_for_symtable=" $pic_flag -DFREEBSD_WORKAROUND" ;;
  56550. + *-*-hpux*)
  56551. + pic_flag_for_symtable=" $pic_flag" ;;
  56552. + *)
  56553. + if test "X$my_pic_p" != Xno; then
  56554. + pic_flag_for_symtable=" $pic_flag"
  56555. + fi
  56556. + ;;
  56557. + esac
  56558. + ;;
  56559. + esac
  56560. + symtab_cflags=
  56561. + for arg in $LTCFLAGS; do
  56562. + case $arg in
  56563. + -pie | -fpie | -fPIE) ;;
  56564. + *) symtab_cflags="$symtab_cflags $arg" ;;
  56565. + esac
  56566. done
  56567. - IFS="$save_ifs"
  56568. - # Restore the uninstalled library and exit
  56569. - if test "$mode" = relink; then
  56570. - $run eval '(cd $output_objdir && $rm ${realname}T && $mv $realname ${realname}T && $mv "$realname"U $realname)' || exit $?
  56571. - exit $EXIT_SUCCESS
  56572. - fi
  56573. + # Now compile the dynamic symbol file.
  56574. + func_show_eval '(cd $output_objdir && $LTCC$symtab_cflags -c$no_builtin_flag$pic_flag_for_symtable "$my_dlsyms")' 'exit $?'
  56575. - # Create links to the real library.
  56576. - for linkname in $linknames; do
  56577. - if test "$realname" != "$linkname"; then
  56578. - $show "(cd $output_objdir && $rm $linkname && $LN_S $realname $linkname)"
  56579. - $run eval '(cd $output_objdir && $rm $linkname && $LN_S $realname $linkname)' || exit $?
  56580. + # Clean up the generated files.
  56581. + func_show_eval '$RM "$output_objdir/$my_dlsyms" "$nlist" "${nlist}S" "${nlist}T"'
  56582. +
  56583. + # Transform the symbol file into the correct name.
  56584. + symfileobj="$output_objdir/${my_outputname}S.$objext"
  56585. + case $host in
  56586. + *cygwin* | *mingw* | *cegcc* )
  56587. + if test -f "$output_objdir/$my_outputname.def"; then
  56588. + compile_command=`$ECHO "X$compile_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/$my_outputname.def $symfileobj%"`
  56589. + finalize_command=`$ECHO "X$finalize_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/$my_outputname.def $symfileobj%"`
  56590. + else
  56591. + compile_command=`$ECHO "X$compile_command" | $Xsed -e "s%@SYMFILE@%$symfileobj%"`
  56592. + finalize_command=`$ECHO "X$finalize_command" | $Xsed -e "s%@SYMFILE@%$symfileobj%"`
  56593. fi
  56594. - done
  56595. + ;;
  56596. + *)
  56597. + compile_command=`$ECHO "X$compile_command" | $Xsed -e "s%@SYMFILE@%$symfileobj%"`
  56598. + finalize_command=`$ECHO "X$finalize_command" | $Xsed -e "s%@SYMFILE@%$symfileobj%"`
  56599. + ;;
  56600. + esac
  56601. + ;;
  56602. + *)
  56603. + func_fatal_error "unknown suffix for \`$my_dlsyms'"
  56604. + ;;
  56605. + esac
  56606. + else
  56607. + # We keep going just in case the user didn't refer to
  56608. + # lt_preloaded_symbols. The linker will fail if global_symbol_pipe
  56609. + # really was required.
  56610. +
  56611. + # Nullify the symbol file.
  56612. + compile_command=`$ECHO "X$compile_command" | $Xsed -e "s% @SYMFILE@%%"`
  56613. + finalize_command=`$ECHO "X$finalize_command" | $Xsed -e "s% @SYMFILE@%%"`
  56614. + fi
  56615. +}
  56616. - # If -module or -export-dynamic was specified, set the dlname.
  56617. - if test "$module" = yes || test "$export_dynamic" = yes; then
  56618. - # On all known operating systems, these are identical.
  56619. - dlname="$soname"
  56620. - fi
  56621. - fi
  56622. +# func_win32_libid arg
  56623. +# return the library type of file 'arg'
  56624. +#
  56625. +# Need a lot of goo to handle *both* DLLs and import libs
  56626. +# Has to be a shell function in order to 'eat' the argument
  56627. +# that is supplied when $file_magic_command is called.
  56628. +func_win32_libid ()
  56629. +{
  56630. + $opt_debug
  56631. + win32_libid_type="unknown"
  56632. + win32_fileres=`file -L $1 2>/dev/null`
  56633. + case $win32_fileres in
  56634. + *ar\ archive\ import\ library*) # definitely import
  56635. + win32_libid_type="x86 archive import"
  56636. + ;;
  56637. + *ar\ archive*) # could be an import, or static
  56638. + if eval $OBJDUMP -f $1 | $SED -e '10q' 2>/dev/null |
  56639. + $EGREP 'file format pe-i386(.*architecture: i386)?' >/dev/null ; then
  56640. + win32_nmres=`eval $NM -f posix -A $1 |
  56641. + $SED -n -e '
  56642. + 1,100{
  56643. + / I /{
  56644. + s,.*,import,
  56645. + p
  56646. + q
  56647. + }
  56648. + }'`
  56649. + case $win32_nmres in
  56650. + import*) win32_libid_type="x86 archive import";;
  56651. + *) win32_libid_type="x86 archive static";;
  56652. + esac
  56653. + fi
  56654. + ;;
  56655. + *DLL*)
  56656. + win32_libid_type="x86 DLL"
  56657. + ;;
  56658. + *executable*) # but shell scripts are "executable" too...
  56659. + case $win32_fileres in
  56660. + *MS\ Windows\ PE\ Intel*)
  56661. + win32_libid_type="x86 DLL"
  56662. ;;
  56663. + esac
  56664. + ;;
  56665. + esac
  56666. + $ECHO "$win32_libid_type"
  56667. +}
  56668. - obj)
  56669. - if test -n "$deplibs"; then
  56670. - $echo "$modename: warning: \`-l' and \`-L' are ignored for objects" 1>&2
  56671. - fi
  56672. - if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then
  56673. - $echo "$modename: warning: \`-dlopen' is ignored for objects" 1>&2
  56674. - fi
  56675. - if test -n "$rpath"; then
  56676. - $echo "$modename: warning: \`-rpath' is ignored for objects" 1>&2
  56677. - fi
  56678. +# func_extract_an_archive dir oldlib
  56679. +func_extract_an_archive ()
  56680. +{
  56681. + $opt_debug
  56682. + f_ex_an_ar_dir="$1"; shift
  56683. + f_ex_an_ar_oldlib="$1"
  56684. + func_show_eval "(cd \$f_ex_an_ar_dir && $AR x \"\$f_ex_an_ar_oldlib\")" 'exit $?'
  56685. + if ($AR t "$f_ex_an_ar_oldlib" | sort | sort -uc >/dev/null 2>&1); then
  56686. + :
  56687. + else
  56688. + func_fatal_error "object name conflicts in archive: $f_ex_an_ar_dir/$f_ex_an_ar_oldlib"
  56689. + fi
  56690. +}
  56691. - if test -n "$xrpath"; then
  56692. - $echo "$modename: warning: \`-R' is ignored for objects" 1>&2
  56693. - fi
  56694. - if test -n "$vinfo"; then
  56695. - $echo "$modename: warning: \`-version-info' is ignored for objects" 1>&2
  56696. - fi
  56697. +# func_extract_archives gentop oldlib ...
  56698. +func_extract_archives ()
  56699. +{
  56700. + $opt_debug
  56701. + my_gentop="$1"; shift
  56702. + my_oldlibs=${1+"$@"}
  56703. + my_oldobjs=""
  56704. + my_xlib=""
  56705. + my_xabs=""
  56706. + my_xdir=""
  56707. +
  56708. + for my_xlib in $my_oldlibs; do
  56709. + # Extract the objects.
  56710. + case $my_xlib in
  56711. + [\\/]* | [A-Za-z]:[\\/]*) my_xabs="$my_xlib" ;;
  56712. + *) my_xabs=`pwd`"/$my_xlib" ;;
  56713. + esac
  56714. + func_basename "$my_xlib"
  56715. + my_xlib="$func_basename_result"
  56716. + my_xlib_u=$my_xlib
  56717. + while :; do
  56718. + case " $extracted_archives " in
  56719. + *" $my_xlib_u "*)
  56720. + func_arith $extracted_serial + 1
  56721. + extracted_serial=$func_arith_result
  56722. + my_xlib_u=lt$extracted_serial-$my_xlib ;;
  56723. + *) break ;;
  56724. + esac
  56725. + done
  56726. + extracted_archives="$extracted_archives $my_xlib_u"
  56727. + my_xdir="$my_gentop/$my_xlib_u"
  56728. - if test -n "$release"; then
  56729. - $echo "$modename: warning: \`-release' is ignored for objects" 1>&2
  56730. - fi
  56731. + func_mkdir_p "$my_xdir"
  56732. - case $output in
  56733. - *.lo)
  56734. - if test -n "$objs$old_deplibs"; then
  56735. - $echo "$modename: cannot build library object \`$output' from non-libtool objects" 1>&2
  56736. - exit $EXIT_FAILURE
  56737. - fi
  56738. - libobj="$output"
  56739. - obj=`$echo "X$output" | $Xsed -e "$lo2o"`
  56740. + case $host in
  56741. + *-darwin*)
  56742. + func_verbose "Extracting $my_xabs"
  56743. + # Do not bother doing anything if just a dry run
  56744. + $opt_dry_run || {
  56745. + darwin_orig_dir=`pwd`
  56746. + cd $my_xdir || exit $?
  56747. + darwin_archive=$my_xabs
  56748. + darwin_curdir=`pwd`
  56749. + darwin_base_archive=`basename "$darwin_archive"`
  56750. + darwin_arches=`$LIPO -info "$darwin_archive" 2>/dev/null | $GREP Architectures 2>/dev/null || true`
  56751. + if test -n "$darwin_arches"; then
  56752. + darwin_arches=`$ECHO "$darwin_arches" | $SED -e 's/.*are://'`
  56753. + darwin_arch=
  56754. + func_verbose "$darwin_base_archive has multiple architectures $darwin_arches"
  56755. + for darwin_arch in $darwin_arches ; do
  56756. + func_mkdir_p "unfat-$$/${darwin_base_archive}-${darwin_arch}"
  56757. + $LIPO -thin $darwin_arch -output "unfat-$$/${darwin_base_archive}-${darwin_arch}/${darwin_base_archive}" "${darwin_archive}"
  56758. + cd "unfat-$$/${darwin_base_archive}-${darwin_arch}"
  56759. + func_extract_an_archive "`pwd`" "${darwin_base_archive}"
  56760. + cd "$darwin_curdir"
  56761. + $RM "unfat-$$/${darwin_base_archive}-${darwin_arch}/${darwin_base_archive}"
  56762. + done # $darwin_arches
  56763. + ## Okay now we've a bunch of thin objects, gotta fatten them up :)
  56764. + darwin_filelist=`find unfat-$$ -type f -name \*.o -print -o -name \*.lo -print | $SED -e "$basename" | sort -u`
  56765. + darwin_file=
  56766. + darwin_files=
  56767. + for darwin_file in $darwin_filelist; do
  56768. + darwin_files=`find unfat-$$ -name $darwin_file -print | $NL2SP`
  56769. + $LIPO -create -output "$darwin_file" $darwin_files
  56770. + done # $darwin_filelist
  56771. + $RM -rf unfat-$$
  56772. + cd "$darwin_orig_dir"
  56773. + else
  56774. + cd $darwin_orig_dir
  56775. + func_extract_an_archive "$my_xdir" "$my_xabs"
  56776. + fi # $darwin_arches
  56777. + } # !$opt_dry_run
  56778. ;;
  56779. *)
  56780. - libobj=
  56781. - obj="$output"
  56782. + func_extract_an_archive "$my_xdir" "$my_xabs"
  56783. ;;
  56784. esac
  56785. + my_oldobjs="$my_oldobjs "`find $my_xdir -name \*.$objext -print -o -name \*.lo -print | $NL2SP`
  56786. + done
  56787. - # Delete the old objects.
  56788. - $run $rm $obj $libobj
  56789. -
  56790. - # Objects from convenience libraries. This assumes
  56791. - # single-version convenience libraries. Whenever we create
  56792. - # different ones for PIC/non-PIC, this we'll have to duplicate
  56793. - # the extraction.
  56794. - reload_conv_objs=
  56795. - gentop=
  56796. - # reload_cmds runs $LD directly, so let us get rid of
  56797. - # -Wl from whole_archive_flag_spec
  56798. - wl=
  56799. + func_extract_archives_result="$my_oldobjs"
  56800. +}
  56801. - if test -n "$convenience"; then
  56802. - if test -n "$whole_archive_flag_spec"; then
  56803. - eval reload_conv_objs=\"\$reload_objs $whole_archive_flag_spec\"
  56804. - else
  56805. - gentop="$output_objdir/${obj}x"
  56806. - $show "${rm}r $gentop"
  56807. - $run ${rm}r "$gentop"
  56808. - $show "$mkdir $gentop"
  56809. - $run $mkdir "$gentop"
  56810. - status=$?
  56811. - if test "$status" -ne 0 && test ! -d "$gentop"; then
  56812. - exit $status
  56813. - fi
  56814. - generated="$generated $gentop"
  56815. - for xlib in $convenience; do
  56816. - # Extract the objects.
  56817. - case $xlib in
  56818. - [\\/]* | [A-Za-z]:[\\/]*) xabs="$xlib" ;;
  56819. - *) xabs=`pwd`"/$xlib" ;;
  56820. - esac
  56821. - xlib=`$echo "X$xlib" | $Xsed -e 's%^.*/%%'`
  56822. - xdir="$gentop/$xlib"
  56823. - $show "${rm}r $xdir"
  56824. - $run ${rm}r "$xdir"
  56825. - $show "$mkdir $xdir"
  56826. - $run $mkdir "$xdir"
  56827. - status=$?
  56828. - if test "$status" -ne 0 && test ! -d "$xdir"; then
  56829. - exit $status
  56830. - fi
  56831. - # We will extract separately just the conflicting names and we will no
  56832. - # longer touch any unique names. It is faster to leave these extract
  56833. - # automatically by $AR in one run.
  56834. - $show "(cd $xdir && $AR x $xabs)"
  56835. - $run eval "(cd \$xdir && $AR x \$xabs)" || exit $?
  56836. - if ($AR t "$xabs" | sort | sort -uc >/dev/null 2>&1); then
  56837. - :
  56838. - else
  56839. - $echo "$modename: warning: object name conflicts; renaming object files" 1>&2
  56840. - $echo "$modename: warning: to ensure that they will not overwrite" 1>&2
  56841. - $AR t "$xabs" | sort | uniq -cd | while read -r count name
  56842. - do
  56843. - i=1
  56844. - while test "$i" -le "$count"
  56845. - do
  56846. - # Put our $i before any first dot (extension)
  56847. - # Never overwrite any file
  56848. - name_to="$name"
  56849. - while test "X$name_to" = "X$name" || test -f "$xdir/$name_to"
  56850. - do
  56851. - name_to=`$echo "X$name_to" | $Xsed -e "s/\([^.]*\)/\1-$i/"`
  56852. - done
  56853. - $show "(cd $xdir && $AR xN $i $xabs '$name' && $mv '$name' '$name_to')"
  56854. - $run eval "(cd \$xdir && $AR xN $i \$xabs '$name' && $mv '$name' '$name_to')" || exit $?
  56855. - i=`expr $i + 1`
  56856. - done
  56857. - done
  56858. - fi
  56859. -
  56860. - reload_conv_objs="$reload_objs "`find $xdir -name \*.$objext -print -o -name \*.lo -print | $NL2SP`
  56861. - done
  56862. +# func_emit_wrapper_part1 [arg=no]
  56863. +#
  56864. +# Emit the first part of a libtool wrapper script on stdout.
  56865. +# For more information, see the description associated with
  56866. +# func_emit_wrapper(), below.
  56867. +func_emit_wrapper_part1 ()
  56868. +{
  56869. + func_emit_wrapper_part1_arg1=no
  56870. + if test -n "$1" ; then
  56871. + func_emit_wrapper_part1_arg1=$1
  56872. fi
  56873. - fi
  56874. - # Create the old-style object.
  56875. - 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
  56876. + $ECHO "\
  56877. +#! $SHELL
  56878. - output="$obj"
  56879. - cmds=$reload_cmds
  56880. - save_ifs="$IFS"; IFS='~'
  56881. - for cmd in $cmds; do
  56882. - IFS="$save_ifs"
  56883. - eval cmd=\"$cmd\"
  56884. - $show "$cmd"
  56885. - $run eval "$cmd" || exit $?
  56886. - done
  56887. - IFS="$save_ifs"
  56888. +# $output - temporary wrapper script for $objdir/$outputname
  56889. +# Generated by $PROGRAM (GNU $PACKAGE$TIMESTAMP) $VERSION
  56890. +#
  56891. +# The $output program cannot be directly executed until all the libtool
  56892. +# libraries that it depends on are installed.
  56893. +#
  56894. +# This wrapper script should never be moved out of the build directory.
  56895. +# If it is, it will not operate correctly.
  56896. - # Exit if we aren't doing a library object file.
  56897. - if test -z "$libobj"; then
  56898. - if test -n "$gentop"; then
  56899. - $show "${rm}r $gentop"
  56900. - $run ${rm}r $gentop
  56901. - fi
  56902. +# Sed substitution that helps us do robust quoting. It backslashifies
  56903. +# metacharacters that are still active within double-quoted strings.
  56904. +Xsed='${SED} -e 1s/^X//'
  56905. +sed_quote_subst='$sed_quote_subst'
  56906. - exit $EXIT_SUCCESS
  56907. - fi
  56908. +# Be Bourne compatible
  56909. +if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then
  56910. + emulate sh
  56911. + NULLCMD=:
  56912. + # Zsh 3.x and 4.x performs word splitting on \${1+\"\$@\"}, which
  56913. + # is contrary to our usage. Disable this feature.
  56914. + alias -g '\${1+\"\$@\"}'='\"\$@\"'
  56915. + setopt NO_GLOB_SUBST
  56916. +else
  56917. + case \`(set -o) 2>/dev/null\` in *posix*) set -o posix;; esac
  56918. +fi
  56919. +BIN_SH=xpg4; export BIN_SH # for Tru64
  56920. +DUALCASE=1; export DUALCASE # for MKS sh
  56921. - if test "$build_libtool_libs" != yes; then
  56922. - if test -n "$gentop"; then
  56923. - $show "${rm}r $gentop"
  56924. - $run ${rm}r $gentop
  56925. - fi
  56926. +# The HP-UX ksh and POSIX shell print the target directory to stdout
  56927. +# if CDPATH is set.
  56928. +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  56929. - # Create an invalid libtool object if no PIC, so that we don't
  56930. - # accidentally link it into a program.
  56931. - # $show "echo timestamp > $libobj"
  56932. - # $run eval "echo timestamp > $libobj" || exit $?
  56933. - exit $EXIT_SUCCESS
  56934. - fi
  56935. +relink_command=\"$relink_command\"
  56936. - if test -n "$pic_flag" || test "$pic_mode" != default; then
  56937. - # Only do commands if we really have different PIC objects.
  56938. - reload_objs="$libobjs $reload_conv_objs"
  56939. - output="$libobj"
  56940. - cmds=$reload_cmds
  56941. - save_ifs="$IFS"; IFS='~'
  56942. - for cmd in $cmds; do
  56943. - IFS="$save_ifs"
  56944. - eval cmd=\"$cmd\"
  56945. - $show "$cmd"
  56946. - $run eval "$cmd" || exit $?
  56947. - done
  56948. - IFS="$save_ifs"
  56949. - fi
  56950. +# This environment variable determines our operation mode.
  56951. +if test \"\$libtool_install_magic\" = \"$magic\"; then
  56952. + # install mode needs the following variables:
  56953. + generated_by_libtool_version='$macro_version'
  56954. + notinst_deplibs='$notinst_deplibs'
  56955. +else
  56956. + # When we are sourced in execute mode, \$file and \$ECHO are already set.
  56957. + if test \"\$libtool_execute_magic\" != \"$magic\"; then
  56958. + ECHO=\"$qecho\"
  56959. + file=\"\$0\"
  56960. + # Make sure echo works.
  56961. + if test \"X\$1\" = X--no-reexec; then
  56962. + # Discard the --no-reexec flag, and continue.
  56963. + shift
  56964. + elif test \"X\`{ \$ECHO '\t'; } 2>/dev/null\`\" = 'X\t'; then
  56965. + # Yippee, \$ECHO works!
  56966. + :
  56967. + else
  56968. + # Restart under the correct shell, and then maybe \$ECHO will work.
  56969. + exec $SHELL \"\$0\" --no-reexec \${1+\"\$@\"}
  56970. + fi
  56971. + fi\
  56972. +"
  56973. + $ECHO "\
  56974. - if test -n "$gentop"; then
  56975. - $show "${rm}r $gentop"
  56976. - $run ${rm}r $gentop
  56977. - fi
  56978. + # Find the directory that this script lives in.
  56979. + thisdir=\`\$ECHO \"X\$file\" | \$Xsed -e 's%/[^/]*$%%'\`
  56980. + test \"x\$thisdir\" = \"x\$file\" && thisdir=.
  56981. - exit $EXIT_SUCCESS
  56982. - ;;
  56983. + # Follow symbolic links until we get to the real thisdir.
  56984. + file=\`ls -ld \"\$file\" | ${SED} -n 's/.*-> //p'\`
  56985. + while test -n \"\$file\"; do
  56986. + destdir=\`\$ECHO \"X\$file\" | \$Xsed -e 's%/[^/]*\$%%'\`
  56987. - prog)
  56988. - case $host in
  56989. - *cygwin*) output=`$echo $output | ${SED} -e 's,.exe$,,;s,$,.exe,'` ;;
  56990. + # If there was a directory component, then change thisdir.
  56991. + if test \"x\$destdir\" != \"x\$file\"; then
  56992. + case \"\$destdir\" in
  56993. + [\\\\/]* | [A-Za-z]:[\\\\/]*) thisdir=\"\$destdir\" ;;
  56994. + *) thisdir=\"\$thisdir/\$destdir\" ;;
  56995. esac
  56996. - if test -n "$vinfo"; then
  56997. - $echo "$modename: warning: \`-version-info' is ignored for programs" 1>&2
  56998. - fi
  56999. + fi
  57000. - if test -n "$release"; then
  57001. - $echo "$modename: warning: \`-release' is ignored for programs" 1>&2
  57002. - fi
  57003. + file=\`\$ECHO \"X\$file\" | \$Xsed -e 's%^.*/%%'\`
  57004. + file=\`ls -ld \"\$thisdir/\$file\" | ${SED} -n 's/.*-> //p'\`
  57005. + done
  57006. +"
  57007. +}
  57008. +# end: func_emit_wrapper_part1
  57009. - if test "$preload" = yes; then
  57010. - if test "$dlopen_support" = unknown && test "$dlopen_self" = unknown &&
  57011. - test "$dlopen_self_static" = unknown; then
  57012. - $echo "$modename: warning: \`AC_LIBTOOL_DLOPEN' not used. Assuming no dlopen support."
  57013. - fi
  57014. - fi
  57015. +# func_emit_wrapper_part2 [arg=no]
  57016. +#
  57017. +# Emit the second part of a libtool wrapper script on stdout.
  57018. +# For more information, see the description associated with
  57019. +# func_emit_wrapper(), below.
  57020. +func_emit_wrapper_part2 ()
  57021. +{
  57022. + func_emit_wrapper_part2_arg1=no
  57023. + if test -n "$1" ; then
  57024. + func_emit_wrapper_part2_arg1=$1
  57025. + fi
  57026. +
  57027. + $ECHO "\
  57028. +
  57029. + # Usually 'no', except on cygwin/mingw when embedded into
  57030. + # the cwrapper.
  57031. + WRAPPER_SCRIPT_BELONGS_IN_OBJDIR=$func_emit_wrapper_part2_arg1
  57032. + if test \"\$WRAPPER_SCRIPT_BELONGS_IN_OBJDIR\" = \"yes\"; then
  57033. + # special case for '.'
  57034. + if test \"\$thisdir\" = \".\"; then
  57035. + thisdir=\`pwd\`
  57036. + fi
  57037. + # remove .libs from thisdir
  57038. + case \"\$thisdir\" in
  57039. + *[\\\\/]$objdir ) thisdir=\`\$ECHO \"X\$thisdir\" | \$Xsed -e 's%[\\\\/][^\\\\/]*$%%'\` ;;
  57040. + $objdir ) thisdir=. ;;
  57041. + esac
  57042. + fi
  57043. - case $host in
  57044. - *-*-rhapsody* | *-*-darwin1.[012])
  57045. - # On Rhapsody replace the C library is the System framework
  57046. - compile_deplibs=`$echo "X $compile_deplibs" | $Xsed -e 's/ -lc / -framework System /'`
  57047. - finalize_deplibs=`$echo "X $finalize_deplibs" | $Xsed -e 's/ -lc / -framework System /'`
  57048. - ;;
  57049. - esac
  57050. + # Try to get the absolute directory name.
  57051. + absdir=\`cd \"\$thisdir\" && pwd\`
  57052. + test -n \"\$absdir\" && thisdir=\"\$absdir\"
  57053. +"
  57054. - case $host in
  57055. - *darwin*)
  57056. - # Don't allow lazy linking, it breaks C++ global constructors
  57057. - if test "$tagname" = CXX ; then
  57058. - compile_command="$compile_command ${wl}-bind_at_load"
  57059. - finalize_command="$finalize_command ${wl}-bind_at_load"
  57060. - fi
  57061. - ;;
  57062. - esac
  57063. + if test "$fast_install" = yes; then
  57064. + $ECHO "\
  57065. + program=lt-'$outputname'$exeext
  57066. + progdir=\"\$thisdir/$objdir\"
  57067. - compile_command="$compile_command $compile_deplibs"
  57068. - finalize_command="$finalize_command $finalize_deplibs"
  57069. + if test ! -f \"\$progdir/\$program\" ||
  57070. + { file=\`ls -1dt \"\$progdir/\$program\" \"\$progdir/../\$program\" 2>/dev/null | ${SED} 1q\`; \\
  57071. + test \"X\$file\" != \"X\$progdir/\$program\"; }; then
  57072. - if test -n "$rpath$xrpath"; then
  57073. - # If the user specified any rpath flags, then add them.
  57074. - for libdir in $rpath $xrpath; do
  57075. - # This is the magic to use -rpath.
  57076. - case "$finalize_rpath " in
  57077. - *" $libdir "*) ;;
  57078. - *) finalize_rpath="$finalize_rpath $libdir" ;;
  57079. - esac
  57080. - done
  57081. - fi
  57082. + file=\"\$\$-\$program\"
  57083. - # Now hardcode the library paths
  57084. - rpath=
  57085. - hardcode_libdirs=
  57086. - for libdir in $compile_rpath $finalize_rpath; do
  57087. - if test -n "$hardcode_libdir_flag_spec"; then
  57088. - if test -n "$hardcode_libdir_separator"; then
  57089. - if test -z "$hardcode_libdirs"; then
  57090. - hardcode_libdirs="$libdir"
  57091. - else
  57092. - # Just accumulate the unique libdirs.
  57093. - case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in
  57094. - *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*)
  57095. - ;;
  57096. - *)
  57097. - hardcode_libdirs="$hardcode_libdirs$hardcode_libdir_separator$libdir"
  57098. - ;;
  57099. - esac
  57100. - fi
  57101. - else
  57102. - eval flag=\"$hardcode_libdir_flag_spec\"
  57103. - rpath="$rpath $flag"
  57104. - fi
  57105. - elif test -n "$runpath_var"; then
  57106. - case "$perm_rpath " in
  57107. - *" $libdir "*) ;;
  57108. - *) perm_rpath="$perm_rpath $libdir" ;;
  57109. - esac
  57110. - fi
  57111. - case $host in
  57112. - *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2*)
  57113. - case :$dllsearchpath: in
  57114. - *":$libdir:"*) ;;
  57115. - *) dllsearchpath="$dllsearchpath:$libdir";;
  57116. - esac
  57117. - ;;
  57118. - esac
  57119. - done
  57120. - # Substitute the hardcoded libdirs into the rpath.
  57121. - if test -n "$hardcode_libdir_separator" &&
  57122. - test -n "$hardcode_libdirs"; then
  57123. - libdir="$hardcode_libdirs"
  57124. - eval rpath=\" $hardcode_libdir_flag_spec\"
  57125. - fi
  57126. - compile_rpath="$rpath"
  57127. + if test ! -d \"\$progdir\"; then
  57128. + $MKDIR \"\$progdir\"
  57129. + else
  57130. + $RM \"\$progdir/\$file\"
  57131. + fi"
  57132. - rpath=
  57133. - hardcode_libdirs=
  57134. - for libdir in $finalize_rpath; do
  57135. - if test -n "$hardcode_libdir_flag_spec"; then
  57136. - if test -n "$hardcode_libdir_separator"; then
  57137. - if test -z "$hardcode_libdirs"; then
  57138. - hardcode_libdirs="$libdir"
  57139. - else
  57140. - # Just accumulate the unique libdirs.
  57141. - case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in
  57142. - *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*)
  57143. - ;;
  57144. - *)
  57145. - hardcode_libdirs="$hardcode_libdirs$hardcode_libdir_separator$libdir"
  57146. - ;;
  57147. - esac
  57148. - fi
  57149. - else
  57150. - eval flag=\"$hardcode_libdir_flag_spec\"
  57151. - rpath="$rpath $flag"
  57152. - fi
  57153. - elif test -n "$runpath_var"; then
  57154. - case "$finalize_perm_rpath " in
  57155. - *" $libdir "*) ;;
  57156. - *) finalize_perm_rpath="$finalize_perm_rpath $libdir" ;;
  57157. - esac
  57158. - fi
  57159. - done
  57160. - # Substitute the hardcoded libdirs into the rpath.
  57161. - if test -n "$hardcode_libdir_separator" &&
  57162. - test -n "$hardcode_libdirs"; then
  57163. - libdir="$hardcode_libdirs"
  57164. - eval rpath=\" $hardcode_libdir_flag_spec\"
  57165. - fi
  57166. - finalize_rpath="$rpath"
  57167. + $ECHO "\
  57168. - if test -n "$libobjs" && test "$build_old_libs" = yes; then
  57169. - # Transform all the library objects into standard objects.
  57170. - compile_command=`$echo "X$compile_command" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP`
  57171. - finalize_command=`$echo "X$finalize_command" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP`
  57172. + # relink executable if necessary
  57173. + if test -n \"\$relink_command\"; then
  57174. + if relink_command_output=\`eval \$relink_command 2>&1\`; then :
  57175. + else
  57176. + $ECHO \"\$relink_command_output\" >&2
  57177. + $RM \"\$progdir/\$file\"
  57178. + exit 1
  57179. fi
  57180. + fi
  57181. - dlsyms=
  57182. - if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then
  57183. - if test -n "$NM" && test -n "$global_symbol_pipe"; then
  57184. - dlsyms="${outputname}S.c"
  57185. + $MV \"\$progdir/\$file\" \"\$progdir/\$program\" 2>/dev/null ||
  57186. + { $RM \"\$progdir/\$program\";
  57187. + $MV \"\$progdir/\$file\" \"\$progdir/\$program\"; }
  57188. + $RM \"\$progdir/\$file\"
  57189. + fi"
  57190. else
  57191. - $echo "$modename: not configured to extract global symbols from dlpreopened files" 1>&2
  57192. + $ECHO "\
  57193. + program='$outputname'
  57194. + progdir=\"\$thisdir/$objdir\"
  57195. +"
  57196. fi
  57197. - fi
  57198. -
  57199. - if test -n "$dlsyms"; then
  57200. - case $dlsyms in
  57201. - "") ;;
  57202. - *.c)
  57203. - # Discover the nlist of each of the dlfiles.
  57204. - nlist="$output_objdir/${outputname}.nm"
  57205. -
  57206. - $show "$rm $nlist ${nlist}S ${nlist}T"
  57207. - $run $rm "$nlist" "${nlist}S" "${nlist}T"
  57208. - # Parse the name list into a source file.
  57209. - $show "creating $output_objdir/$dlsyms"
  57210. + $ECHO "\
  57211. - test -z "$run" && $echo > "$output_objdir/$dlsyms" "\
  57212. -/* $dlsyms - symbol resolution table for \`$outputname' dlsym emulation. */
  57213. -/* Generated by $PROGRAM - GNU $PACKAGE $VERSION$TIMESTAMP */
  57214. + if test -f \"\$progdir/\$program\"; then"
  57215. -#ifdef __cplusplus
  57216. -extern \"C\" {
  57217. -#endif
  57218. + # Export our shlibpath_var if we have one.
  57219. + if test "$shlibpath_overrides_runpath" = yes && test -n "$shlibpath_var" && test -n "$temp_rpath"; then
  57220. + $ECHO "\
  57221. + # Add our own library path to $shlibpath_var
  57222. + $shlibpath_var=\"$temp_rpath\$$shlibpath_var\"
  57223. -/* Prevent the only kind of declaration conflicts we can make. */
  57224. -#define lt_preloaded_symbols some_other_symbol
  57225. + # Some systems cannot cope with colon-terminated $shlibpath_var
  57226. + # The second colon is a workaround for a bug in BeOS R4 sed
  57227. + $shlibpath_var=\`\$ECHO \"X\$$shlibpath_var\" | \$Xsed -e 's/::*\$//'\`
  57228. -/* External symbol declarations for the compiler. */\
  57229. + export $shlibpath_var
  57230. "
  57231. + fi
  57232. - if test "$dlself" = yes; then
  57233. - $show "generating symbol list for \`$output'"
  57234. -
  57235. - test -z "$run" && $echo ': @PROGRAM@ ' > "$nlist"
  57236. + # fixup the dll searchpath if we need to.
  57237. + if test -n "$dllsearchpath"; then
  57238. + $ECHO "\
  57239. + # Add the dll search path components to the executable PATH
  57240. + PATH=$dllsearchpath:\$PATH
  57241. +"
  57242. + fi
  57243. - # Add our own program objects to the symbol list.
  57244. - progfiles=`$echo "X$objs$old_deplibs" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP`
  57245. - for arg in $progfiles; do
  57246. - $show "extracting global C symbols from \`$arg'"
  57247. - $run eval "$NM $arg | $global_symbol_pipe >> '$nlist'"
  57248. - done
  57249. + $ECHO "\
  57250. + if test \"\$libtool_execute_magic\" != \"$magic\"; then
  57251. + # Run the actual program with our arguments.
  57252. +"
  57253. + case $host in
  57254. + # Backslashes separate directories on plain windows
  57255. + *-*-mingw | *-*-os2* | *-cegcc*)
  57256. + $ECHO "\
  57257. + exec \"\$progdir\\\\\$program\" \${1+\"\$@\"}
  57258. +"
  57259. + ;;
  57260. - if test -n "$exclude_expsyms"; then
  57261. - $run eval '$EGREP -v " ($exclude_expsyms)$" "$nlist" > "$nlist"T'
  57262. - $run eval '$mv "$nlist"T "$nlist"'
  57263. - fi
  57264. -
  57265. - if test -n "$export_symbols_regex"; then
  57266. - $run eval '$EGREP -e "$export_symbols_regex" "$nlist" > "$nlist"T'
  57267. - $run eval '$mv "$nlist"T "$nlist"'
  57268. - fi
  57269. -
  57270. - # Prepare the list of exported symbols
  57271. - if test -z "$export_symbols"; then
  57272. - export_symbols="$output_objdir/$output.exp"
  57273. - $run $rm $export_symbols
  57274. - $run eval "${SED} -n -e '/^: @PROGRAM@$/d' -e 's/^.* \(.*\)$/\1/p' "'< "$nlist" > "$export_symbols"'
  57275. - else
  57276. - $run eval "${SED} -e 's/\([][.*^$]\)/\\\1/g' -e 's/^/ /' -e 's/$/$/'"' < "$export_symbols" > "$output_objdir/$output.exp"'
  57277. - $run eval 'grep -f "$output_objdir/$output.exp" < "$nlist" > "$nlist"T'
  57278. - $run eval 'mv "$nlist"T "$nlist"'
  57279. - fi
  57280. - fi
  57281. -
  57282. - for arg in $dlprefiles; do
  57283. - $show "extracting global C symbols from \`$arg'"
  57284. - name=`$echo "$arg" | ${SED} -e 's%^.*/%%'`
  57285. - $run eval '$echo ": $name " >> "$nlist"'
  57286. - $run eval "$NM $arg | $global_symbol_pipe >> '$nlist'"
  57287. - done
  57288. -
  57289. - if test -z "$run"; then
  57290. - # Make sure we have at least an empty file.
  57291. - test -f "$nlist" || : > "$nlist"
  57292. -
  57293. - if test -n "$exclude_expsyms"; then
  57294. - $EGREP -v " ($exclude_expsyms)$" "$nlist" > "$nlist"T
  57295. - $mv "$nlist"T "$nlist"
  57296. - fi
  57297. -
  57298. - # Try sorting and uniquifying the output.
  57299. - if grep -v "^: " < "$nlist" |
  57300. - if sort -k 3 </dev/null >/dev/null 2>&1; then
  57301. - sort -k 3
  57302. - else
  57303. - sort +2
  57304. - fi |
  57305. - uniq > "$nlist"S; then
  57306. - :
  57307. - else
  57308. - grep -v "^: " < "$nlist" > "$nlist"S
  57309. - fi
  57310. -
  57311. - if test -f "$nlist"S; then
  57312. - eval "$global_symbol_to_cdecl"' < "$nlist"S >> "$output_objdir/$dlsyms"'
  57313. - else
  57314. - $echo '/* NONE */' >> "$output_objdir/$dlsyms"
  57315. - fi
  57316. -
  57317. - $echo >> "$output_objdir/$dlsyms" "\
  57318. -
  57319. -#undef lt_preloaded_symbols
  57320. -
  57321. -#if defined (__STDC__) && __STDC__
  57322. -# define lt_ptr void *
  57323. -#else
  57324. -# define lt_ptr char *
  57325. -# define const
  57326. -#endif
  57327. -
  57328. -/* The mapping between symbol names and symbols. */
  57329. -const struct {
  57330. - const char *name;
  57331. - lt_ptr address;
  57332. -}
  57333. -lt_preloaded_symbols[] =
  57334. -{\
  57335. -"
  57336. -
  57337. - eval "$global_symbol_to_c_name_address" < "$nlist" >> "$output_objdir/$dlsyms"
  57338. -
  57339. - $echo >> "$output_objdir/$dlsyms" "\
  57340. - {0, (lt_ptr) 0}
  57341. -};
  57342. -
  57343. -/* This works around a problem in FreeBSD linker */
  57344. -#ifdef FREEBSD_WORKAROUND
  57345. -static const void *lt_preloaded_setup() {
  57346. - return lt_preloaded_symbols;
  57347. -}
  57348. -#endif
  57349. -
  57350. -#ifdef __cplusplus
  57351. -}
  57352. -#endif\
  57353. -"
  57354. - fi
  57355. -
  57356. - pic_flag_for_symtable=
  57357. - case $host in
  57358. - # compiling the symbol table file with pic_flag works around
  57359. - # a FreeBSD bug that causes programs to crash when -lm is
  57360. - # linked before any other PIC object. But we must not use
  57361. - # pic_flag when linking with -static. The problem exists in
  57362. - # FreeBSD 2.2.6 and is fixed in FreeBSD 3.1.
  57363. - *-*-freebsd2*|*-*-freebsd3.0*|*-*-freebsdelf3.0*)
  57364. - case "$compile_command " in
  57365. - *" -static "*) ;;
  57366. - *) pic_flag_for_symtable=" $pic_flag -DFREEBSD_WORKAROUND";;
  57367. - esac;;
  57368. - *-*-hpux*)
  57369. - case "$compile_command " in
  57370. - *" -static "*) ;;
  57371. - *) pic_flag_for_symtable=" $pic_flag";;
  57372. - esac
  57373. - esac
  57374. -
  57375. - # Now compile the dynamic symbol file.
  57376. - $show "(cd $output_objdir && $LTCC -c$no_builtin_flag$pic_flag_for_symtable \"$dlsyms\")"
  57377. - $run eval '(cd $output_objdir && $LTCC -c$no_builtin_flag$pic_flag_for_symtable "$dlsyms")' || exit $?
  57378. -
  57379. - # Clean up the generated files.
  57380. - $show "$rm $output_objdir/$dlsyms $nlist ${nlist}S ${nlist}T"
  57381. - $run $rm "$output_objdir/$dlsyms" "$nlist" "${nlist}S" "${nlist}T"
  57382. -
  57383. - # Transform the symbol file into the correct name.
  57384. - compile_command=`$echo "X$compile_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%"`
  57385. - finalize_command=`$echo "X$finalize_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%"`
  57386. - ;;
  57387. *)
  57388. - $echo "$modename: unknown suffix for \`$dlsyms'" 1>&2
  57389. - exit $EXIT_FAILURE
  57390. + $ECHO "\
  57391. + exec \"\$progdir/\$program\" \${1+\"\$@\"}
  57392. +"
  57393. ;;
  57394. esac
  57395. - else
  57396. - # We keep going just in case the user didn't refer to
  57397. - # lt_preloaded_symbols. The linker will fail if global_symbol_pipe
  57398. - # really was required.
  57399. -
  57400. - # Nullify the symbol file.
  57401. - compile_command=`$echo "X$compile_command" | $Xsed -e "s% @SYMFILE@%%"`
  57402. - finalize_command=`$echo "X$finalize_command" | $Xsed -e "s% @SYMFILE@%%"`
  57403. - fi
  57404. -
  57405. - if test "$need_relink" = no || test "$build_libtool_libs" != yes; then
  57406. - # Replace the output file specification.
  57407. - compile_command=`$echo "X$compile_command" | $Xsed -e 's%@OUTPUT@%'"$output"'%g'`
  57408. - link_command="$compile_command$compile_rpath"
  57409. -
  57410. - # We have no uninstalled library dependencies, so finalize right now.
  57411. - $show "$link_command"
  57412. - $run eval "$link_command"
  57413. - status=$?
  57414. -
  57415. - # Delete the generated files.
  57416. - if test -n "$dlsyms"; then
  57417. - $show "$rm $output_objdir/${outputname}S.${objext}"
  57418. - $run $rm "$output_objdir/${outputname}S.${objext}"
  57419. - fi
  57420. -
  57421. - exit $status
  57422. - fi
  57423. -
  57424. - if test -n "$shlibpath_var"; then
  57425. - # We should set the shlibpath_var
  57426. - rpath=
  57427. - for dir in $temp_rpath; do
  57428. - case $dir in
  57429. - [\\/]* | [A-Za-z]:[\\/]*)
  57430. - # Absolute path.
  57431. - rpath="$rpath$dir:"
  57432. - ;;
  57433. - *)
  57434. - # Relative path: add a thisdir entry.
  57435. - rpath="$rpath\$thisdir/$dir:"
  57436. - ;;
  57437. - esac
  57438. - done
  57439. - temp_rpath="$rpath"
  57440. - fi
  57441. -
  57442. - if test -n "$compile_shlibpath$finalize_shlibpath"; then
  57443. - compile_command="$shlibpath_var=\"$compile_shlibpath$finalize_shlibpath\$$shlibpath_var\" $compile_command"
  57444. - fi
  57445. - if test -n "$finalize_shlibpath"; then
  57446. - finalize_command="$shlibpath_var=\"$finalize_shlibpath\$$shlibpath_var\" $finalize_command"
  57447. - fi
  57448. -
  57449. - compile_var=
  57450. - finalize_var=
  57451. - if test -n "$runpath_var"; then
  57452. - if test -n "$perm_rpath"; then
  57453. - # We should set the runpath_var.
  57454. - rpath=
  57455. - for dir in $perm_rpath; do
  57456. - rpath="$rpath$dir:"
  57457. - done
  57458. - compile_var="$runpath_var=\"$rpath\$$runpath_var\" "
  57459. - fi
  57460. - if test -n "$finalize_perm_rpath"; then
  57461. - # We should set the runpath_var.
  57462. - rpath=
  57463. - for dir in $finalize_perm_rpath; do
  57464. - rpath="$rpath$dir:"
  57465. - done
  57466. - finalize_var="$runpath_var=\"$rpath\$$runpath_var\" "
  57467. - fi
  57468. - fi
  57469. -
  57470. - if test "$no_install" = yes; then
  57471. - # We don't need to create a wrapper script.
  57472. - link_command="$compile_var$compile_command$compile_rpath"
  57473. - # Replace the output file specification.
  57474. - link_command=`$echo "X$link_command" | $Xsed -e 's%@OUTPUT@%'"$output"'%g'`
  57475. - # Delete the old output file.
  57476. - $run $rm $output
  57477. - # Link the executable and exit
  57478. - $show "$link_command"
  57479. - $run eval "$link_command" || exit $?
  57480. - exit $EXIT_SUCCESS
  57481. - fi
  57482. + $ECHO "\
  57483. + \$ECHO \"\$0: cannot exec \$program \$*\" 1>&2
  57484. + exit 1
  57485. + fi
  57486. + else
  57487. + # The program doesn't exist.
  57488. + \$ECHO \"\$0: error: \\\`\$progdir/\$program' does not exist\" 1>&2
  57489. + \$ECHO \"This script is just a wrapper for \$program.\" 1>&2
  57490. + $ECHO \"See the $PACKAGE documentation for more information.\" 1>&2
  57491. + exit 1
  57492. + fi
  57493. +fi\
  57494. +"
  57495. +}
  57496. +# end: func_emit_wrapper_part2
  57497. - if test "$hardcode_action" = relink; then
  57498. - # Fast installation is not supported
  57499. - link_command="$compile_var$compile_command$compile_rpath"
  57500. - relink_command="$finalize_var$finalize_command$finalize_rpath"
  57501. - $echo "$modename: warning: this platform does not like uninstalled shared libraries" 1>&2
  57502. - $echo "$modename: \`$output' will be relinked during installation" 1>&2
  57503. - else
  57504. - if test "$fast_install" != no; then
  57505. - link_command="$finalize_var$compile_command$finalize_rpath"
  57506. - if test "$fast_install" = yes; then
  57507. - relink_command=`$echo "X$compile_var$compile_command$compile_rpath" | $Xsed -e 's%@OUTPUT@%\$progdir/\$file%g'`
  57508. - else
  57509. - # fast_install is set to needless
  57510. - relink_command=
  57511. - fi
  57512. - else
  57513. - link_command="$compile_var$compile_command$compile_rpath"
  57514. - relink_command="$finalize_var$finalize_command$finalize_rpath"
  57515. +# func_emit_wrapper [arg=no]
  57516. +#
  57517. +# Emit a libtool wrapper script on stdout.
  57518. +# Don't directly open a file because we may want to
  57519. +# incorporate the script contents within a cygwin/mingw
  57520. +# wrapper executable. Must ONLY be called from within
  57521. +# func_mode_link because it depends on a number of variables
  57522. +# set therein.
  57523. +#
  57524. +# ARG is the value that the WRAPPER_SCRIPT_BELONGS_IN_OBJDIR
  57525. +# variable will take. If 'yes', then the emitted script
  57526. +# will assume that the directory in which it is stored is
  57527. +# the $objdir directory. This is a cygwin/mingw-specific
  57528. +# behavior.
  57529. +func_emit_wrapper ()
  57530. +{
  57531. + func_emit_wrapper_arg1=no
  57532. + if test -n "$1" ; then
  57533. + func_emit_wrapper_arg1=$1
  57534. fi
  57535. - fi
  57536. -
  57537. - # Replace the output file specification.
  57538. - link_command=`$echo "X$link_command" | $Xsed -e 's%@OUTPUT@%'"$output_objdir/$outputname"'%g'`
  57539. -
  57540. - # Delete the old output files.
  57541. - $run $rm $output $output_objdir/$outputname $output_objdir/lt-$outputname
  57542. -
  57543. - $show "$link_command"
  57544. - $run eval "$link_command" || exit $?
  57545. - # Now create the wrapper script.
  57546. - $show "creating $output"
  57547. + # split this up so that func_emit_cwrapperexe_src
  57548. + # can call each part independently.
  57549. + func_emit_wrapper_part1 "${func_emit_wrapper_arg1}"
  57550. + func_emit_wrapper_part2 "${func_emit_wrapper_arg1}"
  57551. +}
  57552. - # Quote the relink command for shipping.
  57553. - if test -n "$relink_command"; then
  57554. - # Preserve any variables that may affect compiler behavior
  57555. - for var in $variables_saved_for_relink; do
  57556. - if eval test -z \"\${$var+set}\"; then
  57557. - relink_command="{ test -z \"\${$var+set}\" || unset $var || { $var=; export $var; }; }; $relink_command"
  57558. - elif eval var_value=\$$var; test -z "$var_value"; then
  57559. - relink_command="$var=; export $var; $relink_command"
  57560. - else
  57561. - var_value=`$echo "X$var_value" | $Xsed -e "$sed_quote_subst"`
  57562. - relink_command="$var=\"$var_value\"; export $var; $relink_command"
  57563. - fi
  57564. - done
  57565. - relink_command="(cd `pwd`; $relink_command)"
  57566. - relink_command=`$echo "X$relink_command" | $Xsed -e "$sed_quote_subst"`
  57567. - fi
  57568. - # Quote $echo for shipping.
  57569. - if test "X$echo" = "X$SHELL $progpath --fallback-echo"; then
  57570. - case $progpath in
  57571. - [\\/]* | [A-Za-z]:[\\/]*) qecho="$SHELL $progpath --fallback-echo";;
  57572. - *) qecho="$SHELL `pwd`/$progpath --fallback-echo";;
  57573. - esac
  57574. - qecho=`$echo "X$qecho" | $Xsed -e "$sed_quote_subst"`
  57575. - else
  57576. - qecho=`$echo "X$echo" | $Xsed -e "$sed_quote_subst"`
  57577. - fi
  57578. +# func_to_host_path arg
  57579. +#
  57580. +# Convert paths to host format when used with build tools.
  57581. +# Intended for use with "native" mingw (where libtool itself
  57582. +# is running under the msys shell), or in the following cross-
  57583. +# build environments:
  57584. +# $build $host
  57585. +# mingw (msys) mingw [e.g. native]
  57586. +# cygwin mingw
  57587. +# *nix + wine mingw
  57588. +# where wine is equipped with the `winepath' executable.
  57589. +# In the native mingw case, the (msys) shell automatically
  57590. +# converts paths for any non-msys applications it launches,
  57591. +# but that facility isn't available from inside the cwrapper.
  57592. +# Similar accommodations are necessary for $host mingw and
  57593. +# $build cygwin. Calling this function does no harm for other
  57594. +# $host/$build combinations not listed above.
  57595. +#
  57596. +# ARG is the path (on $build) that should be converted to
  57597. +# the proper representation for $host. The result is stored
  57598. +# in $func_to_host_path_result.
  57599. +func_to_host_path ()
  57600. +{
  57601. + func_to_host_path_result="$1"
  57602. + if test -n "$1" ; then
  57603. + case $host in
  57604. + *mingw* )
  57605. + lt_sed_naive_backslashify='s|\\\\*|\\|g;s|/|\\|g;s|\\|\\\\|g'
  57606. + case $build in
  57607. + *mingw* ) # actually, msys
  57608. + # awkward: cmd appends spaces to result
  57609. + lt_sed_strip_trailing_spaces="s/[ ]*\$//"
  57610. + func_to_host_path_tmp1=`( cmd //c echo "$1" |\
  57611. + $SED -e "$lt_sed_strip_trailing_spaces" ) 2>/dev/null || echo ""`
  57612. + func_to_host_path_result=`echo "$func_to_host_path_tmp1" |\
  57613. + $SED -e "$lt_sed_naive_backslashify"`
  57614. + ;;
  57615. + *cygwin* )
  57616. + func_to_host_path_tmp1=`cygpath -w "$1"`
  57617. + func_to_host_path_result=`echo "$func_to_host_path_tmp1" |\
  57618. + $SED -e "$lt_sed_naive_backslashify"`
  57619. + ;;
  57620. + * )
  57621. + # Unfortunately, winepath does not exit with a non-zero
  57622. + # error code, so we are forced to check the contents of
  57623. + # stdout. On the other hand, if the command is not
  57624. + # found, the shell will set an exit code of 127 and print
  57625. + # *an error message* to stdout. So we must check for both
  57626. + # error code of zero AND non-empty stdout, which explains
  57627. + # the odd construction:
  57628. + func_to_host_path_tmp1=`winepath -w "$1" 2>/dev/null`
  57629. + if test "$?" -eq 0 && test -n "${func_to_host_path_tmp1}"; then
  57630. + func_to_host_path_result=`echo "$func_to_host_path_tmp1" |\
  57631. + $SED -e "$lt_sed_naive_backslashify"`
  57632. + else
  57633. + # Allow warning below.
  57634. + func_to_host_path_result=""
  57635. + fi
  57636. + ;;
  57637. + esac
  57638. + if test -z "$func_to_host_path_result" ; then
  57639. + func_error "Could not determine host path corresponding to"
  57640. + func_error " '$1'"
  57641. + func_error "Continuing, but uninstalled executables may not work."
  57642. + # Fallback:
  57643. + func_to_host_path_result="$1"
  57644. + fi
  57645. + ;;
  57646. + esac
  57647. + fi
  57648. +}
  57649. +# end: func_to_host_path
  57650. - # Only actually do things if our run command is non-null.
  57651. - if test -z "$run"; then
  57652. - # win32 will think the script is a binary if it has
  57653. - # a .exe suffix, so we strip it off here.
  57654. - case $output in
  57655. - *.exe) output=`$echo $output|${SED} 's,.exe$,,'` ;;
  57656. - esac
  57657. - # test for cygwin because mv fails w/o .exe extensions
  57658. - case $host in
  57659. - *cygwin*)
  57660. - exeext=.exe
  57661. - outputname=`$echo $outputname|${SED} 's,.exe$,,'` ;;
  57662. - *) exeext= ;;
  57663. - esac
  57664. - case $host in
  57665. - *cygwin* | *mingw* )
  57666. - cwrappersource=`$echo ${objdir}/lt-${output}.c`
  57667. - cwrapper=`$echo ${output}.exe`
  57668. - $rm $cwrappersource $cwrapper
  57669. - trap "$rm $cwrappersource $cwrapper; exit $EXIT_FAILURE" 1 2 15
  57670. +# func_to_host_pathlist arg
  57671. +#
  57672. +# Convert pathlists to host format when used with build tools.
  57673. +# See func_to_host_path(), above. This function supports the
  57674. +# following $build/$host combinations (but does no harm for
  57675. +# combinations not listed here):
  57676. +# $build $host
  57677. +# mingw (msys) mingw [e.g. native]
  57678. +# cygwin mingw
  57679. +# *nix + wine mingw
  57680. +#
  57681. +# Path separators are also converted from $build format to
  57682. +# $host format. If ARG begins or ends with a path separator
  57683. +# character, it is preserved (but converted to $host format)
  57684. +# on output.
  57685. +#
  57686. +# ARG is a pathlist (on $build) that should be converted to
  57687. +# the proper representation on $host. The result is stored
  57688. +# in $func_to_host_pathlist_result.
  57689. +func_to_host_pathlist ()
  57690. +{
  57691. + func_to_host_pathlist_result="$1"
  57692. + if test -n "$1" ; then
  57693. + case $host in
  57694. + *mingw* )
  57695. + lt_sed_naive_backslashify='s|\\\\*|\\|g;s|/|\\|g;s|\\|\\\\|g'
  57696. + # Remove leading and trailing path separator characters from
  57697. + # ARG. msys behavior is inconsistent here, cygpath turns them
  57698. + # into '.;' and ';.', and winepath ignores them completely.
  57699. + func_to_host_pathlist_tmp2="$1"
  57700. + # Once set for this call, this variable should not be
  57701. + # reassigned. It is used in tha fallback case.
  57702. + func_to_host_pathlist_tmp1=`echo "$func_to_host_pathlist_tmp2" |\
  57703. + $SED -e 's|^:*||' -e 's|:*$||'`
  57704. + case $build in
  57705. + *mingw* ) # Actually, msys.
  57706. + # Awkward: cmd appends spaces to result.
  57707. + lt_sed_strip_trailing_spaces="s/[ ]*\$//"
  57708. + func_to_host_pathlist_tmp2=`( cmd //c echo "$func_to_host_pathlist_tmp1" |\
  57709. + $SED -e "$lt_sed_strip_trailing_spaces" ) 2>/dev/null || echo ""`
  57710. + func_to_host_pathlist_result=`echo "$func_to_host_pathlist_tmp2" |\
  57711. + $SED -e "$lt_sed_naive_backslashify"`
  57712. + ;;
  57713. + *cygwin* )
  57714. + func_to_host_pathlist_tmp2=`cygpath -w -p "$func_to_host_pathlist_tmp1"`
  57715. + func_to_host_pathlist_result=`echo "$func_to_host_pathlist_tmp2" |\
  57716. + $SED -e "$lt_sed_naive_backslashify"`
  57717. + ;;
  57718. + * )
  57719. + # unfortunately, winepath doesn't convert pathlists
  57720. + func_to_host_pathlist_result=""
  57721. + func_to_host_pathlist_oldIFS=$IFS
  57722. + IFS=:
  57723. + for func_to_host_pathlist_f in $func_to_host_pathlist_tmp1 ; do
  57724. + IFS=$func_to_host_pathlist_oldIFS
  57725. + if test -n "$func_to_host_pathlist_f" ; then
  57726. + func_to_host_path "$func_to_host_pathlist_f"
  57727. + if test -n "$func_to_host_path_result" ; then
  57728. + if test -z "$func_to_host_pathlist_result" ; then
  57729. + func_to_host_pathlist_result="$func_to_host_path_result"
  57730. + else
  57731. + func_to_host_pathlist_result="$func_to_host_pathlist_result;$func_to_host_path_result"
  57732. + fi
  57733. + fi
  57734. + fi
  57735. + IFS=:
  57736. + done
  57737. + IFS=$func_to_host_pathlist_oldIFS
  57738. + ;;
  57739. + esac
  57740. + if test -z "$func_to_host_pathlist_result" ; then
  57741. + func_error "Could not determine the host path(s) corresponding to"
  57742. + func_error " '$1'"
  57743. + func_error "Continuing, but uninstalled executables may not work."
  57744. + # Fallback. This may break if $1 contains DOS-style drive
  57745. + # specifications. The fix is not to complicate the expression
  57746. + # below, but for the user to provide a working wine installation
  57747. + # with winepath so that path translation in the cross-to-mingw
  57748. + # case works properly.
  57749. + lt_replace_pathsep_nix_to_dos="s|:|;|g"
  57750. + func_to_host_pathlist_result=`echo "$func_to_host_pathlist_tmp1" |\
  57751. + $SED -e "$lt_replace_pathsep_nix_to_dos"`
  57752. + fi
  57753. + # Now, add the leading and trailing path separators back
  57754. + case "$1" in
  57755. + :* ) func_to_host_pathlist_result=";$func_to_host_pathlist_result"
  57756. + ;;
  57757. + esac
  57758. + case "$1" in
  57759. + *: ) func_to_host_pathlist_result="$func_to_host_pathlist_result;"
  57760. + ;;
  57761. + esac
  57762. + ;;
  57763. + esac
  57764. + fi
  57765. +}
  57766. +# end: func_to_host_pathlist
  57767. - cat > $cwrappersource <<EOF
  57768. +# func_emit_cwrapperexe_src
  57769. +# emit the source code for a wrapper executable on stdout
  57770. +# Must ONLY be called from within func_mode_link because
  57771. +# it depends on a number of variable set therein.
  57772. +func_emit_cwrapperexe_src ()
  57773. +{
  57774. + cat <<EOF
  57775. /* $cwrappersource - temporary wrapper executable for $objdir/$outputname
  57776. - Generated by $PROGRAM - GNU $PACKAGE $VERSION$TIMESTAMP
  57777. + Generated by $PROGRAM (GNU $PACKAGE$TIMESTAMP) $VERSION
  57778. The $output program cannot be directly executed until all the libtool
  57779. libraries that it depends on are installed.
  57780. @@ -4602,18 +3142,40 @@
  57781. This wrapper executable should never be moved out of the build directory.
  57782. If it is, it will not operate correctly.
  57783. - Currently, it simply execs the wrapper *script* "/bin/sh $output",
  57784. + Currently, it simply execs the wrapper *script* "$SHELL $output",
  57785. but could eventually absorb all of the scripts functionality and
  57786. exec $objdir/$outputname directly.
  57787. */
  57788. EOF
  57789. - cat >> $cwrappersource<<"EOF"
  57790. + cat <<"EOF"
  57791. #include <stdio.h>
  57792. #include <stdlib.h>
  57793. -#include <unistd.h>
  57794. +#ifdef _MSC_VER
  57795. +# include <direct.h>
  57796. +# include <process.h>
  57797. +# include <io.h>
  57798. +# define setmode _setmode
  57799. +#else
  57800. +# include <unistd.h>
  57801. +# include <stdint.h>
  57802. +# ifdef __CYGWIN__
  57803. +# include <io.h>
  57804. +# define HAVE_SETENV
  57805. +# ifdef __STRICT_ANSI__
  57806. +char *realpath (const char *, char *);
  57807. +int putenv (char *);
  57808. +int setenv (const char *, const char *, int);
  57809. +# endif
  57810. +# endif
  57811. +#endif
  57812. #include <malloc.h>
  57813. #include <stdarg.h>
  57814. #include <assert.h>
  57815. +#include <string.h>
  57816. +#include <ctype.h>
  57817. +#include <errno.h>
  57818. +#include <fcntl.h>
  57819. +#include <sys/stat.h>
  57820. #if defined(PATH_MAX)
  57821. # define LT_PATHMAX PATH_MAX
  57822. @@ -4623,154 +3185,657 @@
  57823. # define LT_PATHMAX 1024
  57824. #endif
  57825. +#ifndef S_IXOTH
  57826. +# define S_IXOTH 0
  57827. +#endif
  57828. +#ifndef S_IXGRP
  57829. +# define S_IXGRP 0
  57830. +#endif
  57831. +
  57832. +#ifdef _MSC_VER
  57833. +# define S_IXUSR _S_IEXEC
  57834. +# define stat _stat
  57835. +# ifndef _INTPTR_T_DEFINED
  57836. +# define intptr_t int
  57837. +# endif
  57838. +#endif
  57839. +
  57840. #ifndef DIR_SEPARATOR
  57841. -#define DIR_SEPARATOR '/'
  57842. +# define DIR_SEPARATOR '/'
  57843. +# define PATH_SEPARATOR ':'
  57844. #endif
  57845. #if defined (_WIN32) || defined (__MSDOS__) || defined (__DJGPP__) || \
  57846. defined (__OS2__)
  57847. -#define HAVE_DOS_BASED_FILE_SYSTEM
  57848. -#ifndef DIR_SEPARATOR_2
  57849. -#define DIR_SEPARATOR_2 '\\'
  57850. -#endif
  57851. +# define HAVE_DOS_BASED_FILE_SYSTEM
  57852. +# define FOPEN_WB "wb"
  57853. +# ifndef DIR_SEPARATOR_2
  57854. +# define DIR_SEPARATOR_2 '\\'
  57855. +# endif
  57856. +# ifndef PATH_SEPARATOR_2
  57857. +# define PATH_SEPARATOR_2 ';'
  57858. +# endif
  57859. #endif
  57860. #ifndef DIR_SEPARATOR_2
  57861. # define IS_DIR_SEPARATOR(ch) ((ch) == DIR_SEPARATOR)
  57862. #else /* DIR_SEPARATOR_2 */
  57863. # define IS_DIR_SEPARATOR(ch) \
  57864. - (((ch) == DIR_SEPARATOR) || ((ch) == DIR_SEPARATOR_2))
  57865. + (((ch) == DIR_SEPARATOR) || ((ch) == DIR_SEPARATOR_2))
  57866. #endif /* DIR_SEPARATOR_2 */
  57867. +#ifndef PATH_SEPARATOR_2
  57868. +# define IS_PATH_SEPARATOR(ch) ((ch) == PATH_SEPARATOR)
  57869. +#else /* PATH_SEPARATOR_2 */
  57870. +# define IS_PATH_SEPARATOR(ch) ((ch) == PATH_SEPARATOR_2)
  57871. +#endif /* PATH_SEPARATOR_2 */
  57872. +
  57873. +#ifdef __CYGWIN__
  57874. +# define FOPEN_WB "wb"
  57875. +#endif
  57876. +
  57877. +#ifndef FOPEN_WB
  57878. +# define FOPEN_WB "w"
  57879. +#endif
  57880. +#ifndef _O_BINARY
  57881. +# define _O_BINARY 0
  57882. +#endif
  57883. +
  57884. #define XMALLOC(type, num) ((type *) xmalloc ((num) * sizeof(type)))
  57885. #define XFREE(stale) do { \
  57886. if (stale) { free ((void *) stale); stale = 0; } \
  57887. } while (0)
  57888. +#undef LTWRAPPER_DEBUGPRINTF
  57889. +#if defined DEBUGWRAPPER
  57890. +# define LTWRAPPER_DEBUGPRINTF(args) ltwrapper_debugprintf args
  57891. +static void
  57892. +ltwrapper_debugprintf (const char *fmt, ...)
  57893. +{
  57894. + va_list args;
  57895. + va_start (args, fmt);
  57896. + (void) vfprintf (stderr, fmt, args);
  57897. + va_end (args);
  57898. +}
  57899. +#else
  57900. +# define LTWRAPPER_DEBUGPRINTF(args)
  57901. +#endif
  57902. +
  57903. const char *program_name = NULL;
  57904. -void * xmalloc (size_t num);
  57905. -char * xstrdup (const char *string);
  57906. -char * basename (const char *name);
  57907. -char * fnqualify(const char *path);
  57908. -char * strendzap(char *str, const char *pat);
  57909. +void *xmalloc (size_t num);
  57910. +char *xstrdup (const char *string);
  57911. +const char *base_name (const char *name);
  57912. +char *find_executable (const char *wrapper);
  57913. +char *chase_symlinks (const char *pathspec);
  57914. +int make_executable (const char *path);
  57915. +int check_executable (const char *path);
  57916. +char *strendzap (char *str, const char *pat);
  57917. void lt_fatal (const char *message, ...);
  57918. +void lt_setenv (const char *name, const char *value);
  57919. +char *lt_extend_str (const char *orig_value, const char *add, int to_end);
  57920. +void lt_opt_process_env_set (const char *arg);
  57921. +void lt_opt_process_env_prepend (const char *arg);
  57922. +void lt_opt_process_env_append (const char *arg);
  57923. +int lt_split_name_value (const char *arg, char** name, char** value);
  57924. +void lt_update_exe_path (const char *name, const char *value);
  57925. +void lt_update_lib_path (const char *name, const char *value);
  57926. -int
  57927. -main (int argc, char *argv[])
  57928. -{
  57929. - char **newargz;
  57930. - int i;
  57931. +static const char *script_text_part1 =
  57932. +EOF
  57933. - program_name = (char *) xstrdup ((char *) basename (argv[0]));
  57934. - newargz = XMALLOC(char *, argc+2);
  57935. + func_emit_wrapper_part1 yes |
  57936. + $SED -e 's/\([\\"]\)/\\\1/g' \
  57937. + -e 's/^/ "/' -e 's/$/\\n"/'
  57938. + echo ";"
  57939. + cat <<EOF
  57940. +
  57941. +static const char *script_text_part2 =
  57942. +EOF
  57943. + func_emit_wrapper_part2 yes |
  57944. + $SED -e 's/\([\\"]\)/\\\1/g' \
  57945. + -e 's/^/ "/' -e 's/$/\\n"/'
  57946. + echo ";"
  57947. +
  57948. + cat <<EOF
  57949. +const char * MAGIC_EXE = "$magic_exe";
  57950. +const char * LIB_PATH_VARNAME = "$shlibpath_var";
  57951. EOF
  57952. - cat >> $cwrappersource <<EOF
  57953. - newargz[0] = "$SHELL";
  57954. + if test "$shlibpath_overrides_runpath" = yes && test -n "$shlibpath_var" && test -n "$temp_rpath"; then
  57955. + func_to_host_pathlist "$temp_rpath"
  57956. + cat <<EOF
  57957. +const char * LIB_PATH_VALUE = "$func_to_host_pathlist_result";
  57958. +EOF
  57959. + else
  57960. + cat <<"EOF"
  57961. +const char * LIB_PATH_VALUE = "";
  57962. EOF
  57963. + fi
  57964. - cat >> $cwrappersource <<"EOF"
  57965. - newargz[1] = fnqualify(argv[0]);
  57966. - /* we know the script has the same name, without the .exe */
  57967. - /* so make sure newargz[1] doesn't end in .exe */
  57968. - strendzap(newargz[1],".exe");
  57969. - for (i = 1; i < argc; i++)
  57970. - newargz[i+1] = xstrdup(argv[i]);
  57971. - newargz[argc+1] = NULL;
  57972. + if test -n "$dllsearchpath"; then
  57973. + func_to_host_pathlist "$dllsearchpath:"
  57974. + cat <<EOF
  57975. +const char * EXE_PATH_VARNAME = "PATH";
  57976. +const char * EXE_PATH_VALUE = "$func_to_host_pathlist_result";
  57977. +EOF
  57978. + else
  57979. + cat <<"EOF"
  57980. +const char * EXE_PATH_VARNAME = "";
  57981. +const char * EXE_PATH_VALUE = "";
  57982. EOF
  57983. + fi
  57984. - cat >> $cwrappersource <<EOF
  57985. - execv("$SHELL",newargz);
  57986. + if test "$fast_install" = yes; then
  57987. + cat <<EOF
  57988. +const char * TARGET_PROGRAM_NAME = "lt-$outputname"; /* hopefully, no .exe */
  57989. +EOF
  57990. + else
  57991. + cat <<EOF
  57992. +const char * TARGET_PROGRAM_NAME = "$outputname"; /* hopefully, no .exe */
  57993. EOF
  57994. + fi
  57995. - cat >> $cwrappersource <<"EOF"
  57996. -}
  57997. -void *
  57998. -xmalloc (size_t num)
  57999. -{
  58000. - void * p = (void *) malloc (num);
  58001. - if (!p)
  58002. - lt_fatal ("Memory exhausted");
  58003. + cat <<"EOF"
  58004. - return p;
  58005. -}
  58006. +#define LTWRAPPER_OPTION_PREFIX "--lt-"
  58007. +#define LTWRAPPER_OPTION_PREFIX_LENGTH 5
  58008. -char *
  58009. -xstrdup (const char *string)
  58010. -{
  58011. - return string ? strcpy ((char *) xmalloc (strlen (string) + 1), string) : NULL
  58012. -;
  58013. -}
  58014. +static const size_t opt_prefix_len = LTWRAPPER_OPTION_PREFIX_LENGTH;
  58015. +static const char *ltwrapper_option_prefix = LTWRAPPER_OPTION_PREFIX;
  58016. -char *
  58017. -basename (const char *name)
  58018. -{
  58019. - const char *base;
  58020. +static const char *dumpscript_opt = LTWRAPPER_OPTION_PREFIX "dump-script";
  58021. -#if defined (HAVE_DOS_BASED_FILE_SYSTEM)
  58022. +static const size_t env_set_opt_len = LTWRAPPER_OPTION_PREFIX_LENGTH + 7;
  58023. +static const char *env_set_opt = LTWRAPPER_OPTION_PREFIX "env-set";
  58024. + /* argument is putenv-style "foo=bar", value of foo is set to bar */
  58025. +
  58026. +static const size_t env_prepend_opt_len = LTWRAPPER_OPTION_PREFIX_LENGTH + 11;
  58027. +static const char *env_prepend_opt = LTWRAPPER_OPTION_PREFIX "env-prepend";
  58028. + /* argument is putenv-style "foo=bar", new value of foo is bar${foo} */
  58029. +
  58030. +static const size_t env_append_opt_len = LTWRAPPER_OPTION_PREFIX_LENGTH + 10;
  58031. +static const char *env_append_opt = LTWRAPPER_OPTION_PREFIX "env-append";
  58032. + /* argument is putenv-style "foo=bar", new value of foo is ${foo}bar */
  58033. +
  58034. +int
  58035. +main (int argc, char *argv[])
  58036. +{
  58037. + char **newargz;
  58038. + int newargc;
  58039. + char *tmp_pathspec;
  58040. + char *actual_cwrapper_path;
  58041. + char *actual_cwrapper_name;
  58042. + char *target_name;
  58043. + char *lt_argv_zero;
  58044. + intptr_t rval = 127;
  58045. +
  58046. + int i;
  58047. +
  58048. + program_name = (char *) xstrdup (base_name (argv[0]));
  58049. + LTWRAPPER_DEBUGPRINTF (("(main) argv[0] : %s\n", argv[0]));
  58050. + LTWRAPPER_DEBUGPRINTF (("(main) program_name : %s\n", program_name));
  58051. +
  58052. + /* very simple arg parsing; don't want to rely on getopt */
  58053. + for (i = 1; i < argc; i++)
  58054. + {
  58055. + if (strcmp (argv[i], dumpscript_opt) == 0)
  58056. + {
  58057. +EOF
  58058. + case "$host" in
  58059. + *mingw* | *cygwin* )
  58060. + # make stdout use "unix" line endings
  58061. + echo " setmode(1,_O_BINARY);"
  58062. + ;;
  58063. + esac
  58064. +
  58065. + cat <<"EOF"
  58066. + printf ("%s", script_text_part1);
  58067. + printf ("%s", script_text_part2);
  58068. + return 0;
  58069. + }
  58070. + }
  58071. +
  58072. + newargz = XMALLOC (char *, argc + 1);
  58073. + tmp_pathspec = find_executable (argv[0]);
  58074. + if (tmp_pathspec == NULL)
  58075. + lt_fatal ("Couldn't find %s", argv[0]);
  58076. + LTWRAPPER_DEBUGPRINTF (("(main) found exe (before symlink chase) at : %s\n",
  58077. + tmp_pathspec));
  58078. +
  58079. + actual_cwrapper_path = chase_symlinks (tmp_pathspec);
  58080. + LTWRAPPER_DEBUGPRINTF (("(main) found exe (after symlink chase) at : %s\n",
  58081. + actual_cwrapper_path));
  58082. + XFREE (tmp_pathspec);
  58083. +
  58084. + actual_cwrapper_name = xstrdup( base_name (actual_cwrapper_path));
  58085. + strendzap (actual_cwrapper_path, actual_cwrapper_name);
  58086. +
  58087. + /* wrapper name transforms */
  58088. + strendzap (actual_cwrapper_name, ".exe");
  58089. + tmp_pathspec = lt_extend_str (actual_cwrapper_name, ".exe", 1);
  58090. + XFREE (actual_cwrapper_name);
  58091. + actual_cwrapper_name = tmp_pathspec;
  58092. + tmp_pathspec = 0;
  58093. +
  58094. + /* target_name transforms -- use actual target program name; might have lt- prefix */
  58095. + target_name = xstrdup (base_name (TARGET_PROGRAM_NAME));
  58096. + strendzap (target_name, ".exe");
  58097. + tmp_pathspec = lt_extend_str (target_name, ".exe", 1);
  58098. + XFREE (target_name);
  58099. + target_name = tmp_pathspec;
  58100. + tmp_pathspec = 0;
  58101. +
  58102. + LTWRAPPER_DEBUGPRINTF (("(main) libtool target name: %s\n",
  58103. + target_name));
  58104. +EOF
  58105. +
  58106. + cat <<EOF
  58107. + newargz[0] =
  58108. + XMALLOC (char, (strlen (actual_cwrapper_path) +
  58109. + strlen ("$objdir") + 1 + strlen (actual_cwrapper_name) + 1));
  58110. + strcpy (newargz[0], actual_cwrapper_path);
  58111. + strcat (newargz[0], "$objdir");
  58112. + strcat (newargz[0], "/");
  58113. +EOF
  58114. +
  58115. + cat <<"EOF"
  58116. + /* stop here, and copy so we don't have to do this twice */
  58117. + tmp_pathspec = xstrdup (newargz[0]);
  58118. +
  58119. + /* do NOT want the lt- prefix here, so use actual_cwrapper_name */
  58120. + strcat (newargz[0], actual_cwrapper_name);
  58121. +
  58122. + /* DO want the lt- prefix here if it exists, so use target_name */
  58123. + lt_argv_zero = lt_extend_str (tmp_pathspec, target_name, 1);
  58124. + XFREE (tmp_pathspec);
  58125. + tmp_pathspec = NULL;
  58126. +EOF
  58127. +
  58128. + case $host_os in
  58129. + mingw*)
  58130. + cat <<"EOF"
  58131. + {
  58132. + char* p;
  58133. + while ((p = strchr (newargz[0], '\\')) != NULL)
  58134. + {
  58135. + *p = '/';
  58136. + }
  58137. + while ((p = strchr (lt_argv_zero, '\\')) != NULL)
  58138. + {
  58139. + *p = '/';
  58140. + }
  58141. + }
  58142. +EOF
  58143. + ;;
  58144. + esac
  58145. +
  58146. + cat <<"EOF"
  58147. + XFREE (target_name);
  58148. + XFREE (actual_cwrapper_path);
  58149. + XFREE (actual_cwrapper_name);
  58150. +
  58151. + lt_setenv ("BIN_SH", "xpg4"); /* for Tru64 */
  58152. + lt_setenv ("DUALCASE", "1"); /* for MSK sh */
  58153. + lt_update_lib_path (LIB_PATH_VARNAME, LIB_PATH_VALUE);
  58154. + lt_update_exe_path (EXE_PATH_VARNAME, EXE_PATH_VALUE);
  58155. +
  58156. + newargc=0;
  58157. + for (i = 1; i < argc; i++)
  58158. + {
  58159. + if (strncmp (argv[i], env_set_opt, env_set_opt_len) == 0)
  58160. + {
  58161. + if (argv[i][env_set_opt_len] == '=')
  58162. + {
  58163. + const char *p = argv[i] + env_set_opt_len + 1;
  58164. + lt_opt_process_env_set (p);
  58165. + }
  58166. + else if (argv[i][env_set_opt_len] == '\0' && i + 1 < argc)
  58167. + {
  58168. + lt_opt_process_env_set (argv[++i]); /* don't copy */
  58169. + }
  58170. + else
  58171. + lt_fatal ("%s missing required argument", env_set_opt);
  58172. + continue;
  58173. + }
  58174. + if (strncmp (argv[i], env_prepend_opt, env_prepend_opt_len) == 0)
  58175. + {
  58176. + if (argv[i][env_prepend_opt_len] == '=')
  58177. + {
  58178. + const char *p = argv[i] + env_prepend_opt_len + 1;
  58179. + lt_opt_process_env_prepend (p);
  58180. + }
  58181. + else if (argv[i][env_prepend_opt_len] == '\0' && i + 1 < argc)
  58182. + {
  58183. + lt_opt_process_env_prepend (argv[++i]); /* don't copy */
  58184. + }
  58185. + else
  58186. + lt_fatal ("%s missing required argument", env_prepend_opt);
  58187. + continue;
  58188. + }
  58189. + if (strncmp (argv[i], env_append_opt, env_append_opt_len) == 0)
  58190. + {
  58191. + if (argv[i][env_append_opt_len] == '=')
  58192. + {
  58193. + const char *p = argv[i] + env_append_opt_len + 1;
  58194. + lt_opt_process_env_append (p);
  58195. + }
  58196. + else if (argv[i][env_append_opt_len] == '\0' && i + 1 < argc)
  58197. + {
  58198. + lt_opt_process_env_append (argv[++i]); /* don't copy */
  58199. + }
  58200. + else
  58201. + lt_fatal ("%s missing required argument", env_append_opt);
  58202. + continue;
  58203. + }
  58204. + if (strncmp (argv[i], ltwrapper_option_prefix, opt_prefix_len) == 0)
  58205. + {
  58206. + /* however, if there is an option in the LTWRAPPER_OPTION_PREFIX
  58207. + namespace, but it is not one of the ones we know about and
  58208. + have already dealt with, above (inluding dump-script), then
  58209. + report an error. Otherwise, targets might begin to believe
  58210. + they are allowed to use options in the LTWRAPPER_OPTION_PREFIX
  58211. + namespace. The first time any user complains about this, we'll
  58212. + need to make LTWRAPPER_OPTION_PREFIX a configure-time option
  58213. + or a configure.ac-settable value.
  58214. + */
  58215. + lt_fatal ("Unrecognized option in %s namespace: '%s'",
  58216. + ltwrapper_option_prefix, argv[i]);
  58217. + }
  58218. + /* otherwise ... */
  58219. + newargz[++newargc] = xstrdup (argv[i]);
  58220. + }
  58221. + newargz[++newargc] = NULL;
  58222. +
  58223. + LTWRAPPER_DEBUGPRINTF (("(main) lt_argv_zero : %s\n", (lt_argv_zero ? lt_argv_zero : "<NULL>")));
  58224. + for (i = 0; i < newargc; i++)
  58225. + {
  58226. + LTWRAPPER_DEBUGPRINTF (("(main) newargz[%d] : %s\n", i, (newargz[i] ? newargz[i] : "<NULL>")));
  58227. + }
  58228. +
  58229. +EOF
  58230. +
  58231. + case $host_os in
  58232. + mingw*)
  58233. + cat <<"EOF"
  58234. + /* execv doesn't actually work on mingw as expected on unix */
  58235. + rval = _spawnv (_P_WAIT, lt_argv_zero, (const char * const *) newargz);
  58236. + if (rval == -1)
  58237. + {
  58238. + /* failed to start process */
  58239. + LTWRAPPER_DEBUGPRINTF (("(main) failed to launch target \"%s\": errno = %d\n", lt_argv_zero, errno));
  58240. + return 127;
  58241. + }
  58242. + return rval;
  58243. +EOF
  58244. + ;;
  58245. + *)
  58246. + cat <<"EOF"
  58247. + execv (lt_argv_zero, newargz);
  58248. + return rval; /* =127, but avoids unused variable warning */
  58249. +EOF
  58250. + ;;
  58251. + esac
  58252. +
  58253. + cat <<"EOF"
  58254. +}
  58255. +
  58256. +void *
  58257. +xmalloc (size_t num)
  58258. +{
  58259. + void *p = (void *) malloc (num);
  58260. + if (!p)
  58261. + lt_fatal ("Memory exhausted");
  58262. +
  58263. + return p;
  58264. +}
  58265. +
  58266. +char *
  58267. +xstrdup (const char *string)
  58268. +{
  58269. + return string ? strcpy ((char *) xmalloc (strlen (string) + 1),
  58270. + string) : NULL;
  58271. +}
  58272. +
  58273. +const char *
  58274. +base_name (const char *name)
  58275. +{
  58276. + const char *base;
  58277. +
  58278. +#if defined (HAVE_DOS_BASED_FILE_SYSTEM)
  58279. /* Skip over the disk name in MSDOS pathnames. */
  58280. - if (isalpha (name[0]) && name[1] == ':')
  58281. + if (isalpha ((unsigned char) name[0]) && name[1] == ':')
  58282. name += 2;
  58283. #endif
  58284. for (base = name; *name; name++)
  58285. if (IS_DIR_SEPARATOR (*name))
  58286. base = name + 1;
  58287. - return (char *) base;
  58288. + return base;
  58289. +}
  58290. +
  58291. +int
  58292. +check_executable (const char *path)
  58293. +{
  58294. + struct stat st;
  58295. +
  58296. + LTWRAPPER_DEBUGPRINTF (("(check_executable) : %s\n",
  58297. + path ? (*path ? path : "EMPTY!") : "NULL!"));
  58298. + if ((!path) || (!*path))
  58299. + return 0;
  58300. +
  58301. + if ((stat (path, &st) >= 0)
  58302. + && (st.st_mode & (S_IXUSR | S_IXGRP | S_IXOTH)))
  58303. + return 1;
  58304. + else
  58305. + return 0;
  58306. +}
  58307. +
  58308. +int
  58309. +make_executable (const char *path)
  58310. +{
  58311. + int rval = 0;
  58312. + struct stat st;
  58313. +
  58314. + LTWRAPPER_DEBUGPRINTF (("(make_executable) : %s\n",
  58315. + path ? (*path ? path : "EMPTY!") : "NULL!"));
  58316. + if ((!path) || (!*path))
  58317. + return 0;
  58318. +
  58319. + if (stat (path, &st) >= 0)
  58320. + {
  58321. + rval = chmod (path, st.st_mode | S_IXOTH | S_IXGRP | S_IXUSR);
  58322. + }
  58323. + return rval;
  58324. }
  58325. +/* Searches for the full path of the wrapper. Returns
  58326. + newly allocated full path name if found, NULL otherwise
  58327. + Does not chase symlinks, even on platforms that support them.
  58328. +*/
  58329. char *
  58330. -fnqualify(const char *path)
  58331. +find_executable (const char *wrapper)
  58332. {
  58333. - size_t size;
  58334. - char *p;
  58335. + int has_slash = 0;
  58336. + const char *p;
  58337. + const char *p_next;
  58338. + /* static buffer for getcwd */
  58339. char tmp[LT_PATHMAX + 1];
  58340. + int tmp_len;
  58341. + char *concat_name;
  58342. - assert(path != NULL);
  58343. + LTWRAPPER_DEBUGPRINTF (("(find_executable) : %s\n",
  58344. + wrapper ? (*wrapper ? wrapper : "EMPTY!") : "NULL!"));
  58345. - /* Is it qualified already? */
  58346. + if ((wrapper == NULL) || (*wrapper == '\0'))
  58347. + return NULL;
  58348. +
  58349. + /* Absolute path? */
  58350. +#if defined (HAVE_DOS_BASED_FILE_SYSTEM)
  58351. + if (isalpha ((unsigned char) wrapper[0]) && wrapper[1] == ':')
  58352. + {
  58353. + concat_name = xstrdup (wrapper);
  58354. + if (check_executable (concat_name))
  58355. + return concat_name;
  58356. + XFREE (concat_name);
  58357. + }
  58358. + else
  58359. + {
  58360. +#endif
  58361. + if (IS_DIR_SEPARATOR (wrapper[0]))
  58362. + {
  58363. + concat_name = xstrdup (wrapper);
  58364. + if (check_executable (concat_name))
  58365. + return concat_name;
  58366. + XFREE (concat_name);
  58367. + }
  58368. #if defined (HAVE_DOS_BASED_FILE_SYSTEM)
  58369. - if (isalpha (path[0]) && path[1] == ':')
  58370. - return xstrdup (path);
  58371. + }
  58372. #endif
  58373. - if (IS_DIR_SEPARATOR (path[0]))
  58374. - return xstrdup (path);
  58375. - /* prepend the current directory */
  58376. - /* doesn't handle '~' */
  58377. + for (p = wrapper; *p; p++)
  58378. + if (*p == '/')
  58379. + {
  58380. + has_slash = 1;
  58381. + break;
  58382. + }
  58383. + if (!has_slash)
  58384. + {
  58385. + /* no slashes; search PATH */
  58386. + const char *path = getenv ("PATH");
  58387. + if (path != NULL)
  58388. + {
  58389. + for (p = path; *p; p = p_next)
  58390. + {
  58391. + const char *q;
  58392. + size_t p_len;
  58393. + for (q = p; *q; q++)
  58394. + if (IS_PATH_SEPARATOR (*q))
  58395. + break;
  58396. + p_len = q - p;
  58397. + p_next = (*q == '\0' ? q : q + 1);
  58398. + if (p_len == 0)
  58399. + {
  58400. + /* empty path: current directory */
  58401. + if (getcwd (tmp, LT_PATHMAX) == NULL)
  58402. + lt_fatal ("getcwd failed");
  58403. + tmp_len = strlen (tmp);
  58404. + concat_name =
  58405. + XMALLOC (char, tmp_len + 1 + strlen (wrapper) + 1);
  58406. + memcpy (concat_name, tmp, tmp_len);
  58407. + concat_name[tmp_len] = '/';
  58408. + strcpy (concat_name + tmp_len + 1, wrapper);
  58409. + }
  58410. + else
  58411. + {
  58412. + concat_name =
  58413. + XMALLOC (char, p_len + 1 + strlen (wrapper) + 1);
  58414. + memcpy (concat_name, p, p_len);
  58415. + concat_name[p_len] = '/';
  58416. + strcpy (concat_name + p_len + 1, wrapper);
  58417. + }
  58418. + if (check_executable (concat_name))
  58419. + return concat_name;
  58420. + XFREE (concat_name);
  58421. + }
  58422. + }
  58423. + /* not found in PATH; assume curdir */
  58424. + }
  58425. + /* Relative path | not found in path: prepend cwd */
  58426. if (getcwd (tmp, LT_PATHMAX) == NULL)
  58427. lt_fatal ("getcwd failed");
  58428. - size = strlen(tmp) + 1 + strlen(path) + 1; /* +2 for '/' and '\0' */
  58429. - p = XMALLOC(char, size);
  58430. - sprintf(p, "%s%c%s", tmp, DIR_SEPARATOR, path);
  58431. - return p;
  58432. + tmp_len = strlen (tmp);
  58433. + concat_name = XMALLOC (char, tmp_len + 1 + strlen (wrapper) + 1);
  58434. + memcpy (concat_name, tmp, tmp_len);
  58435. + concat_name[tmp_len] = '/';
  58436. + strcpy (concat_name + tmp_len + 1, wrapper);
  58437. +
  58438. + if (check_executable (concat_name))
  58439. + return concat_name;
  58440. + XFREE (concat_name);
  58441. + return NULL;
  58442. }
  58443. char *
  58444. -strendzap(char *str, const char *pat)
  58445. +chase_symlinks (const char *pathspec)
  58446. +{
  58447. +#ifndef S_ISLNK
  58448. + return xstrdup (pathspec);
  58449. +#else
  58450. + char buf[LT_PATHMAX];
  58451. + struct stat s;
  58452. + char *tmp_pathspec = xstrdup (pathspec);
  58453. + char *p;
  58454. + int has_symlinks = 0;
  58455. + while (strlen (tmp_pathspec) && !has_symlinks)
  58456. + {
  58457. + LTWRAPPER_DEBUGPRINTF (("checking path component for symlinks: %s\n",
  58458. + tmp_pathspec));
  58459. + if (lstat (tmp_pathspec, &s) == 0)
  58460. + {
  58461. + if (S_ISLNK (s.st_mode) != 0)
  58462. + {
  58463. + has_symlinks = 1;
  58464. + break;
  58465. + }
  58466. +
  58467. + /* search backwards for last DIR_SEPARATOR */
  58468. + p = tmp_pathspec + strlen (tmp_pathspec) - 1;
  58469. + while ((p > tmp_pathspec) && (!IS_DIR_SEPARATOR (*p)))
  58470. + p--;
  58471. + if ((p == tmp_pathspec) && (!IS_DIR_SEPARATOR (*p)))
  58472. + {
  58473. + /* no more DIR_SEPARATORS left */
  58474. + break;
  58475. + }
  58476. + *p = '\0';
  58477. + }
  58478. + else
  58479. + {
  58480. + char *errstr = strerror (errno);
  58481. + lt_fatal ("Error accessing file %s (%s)", tmp_pathspec, errstr);
  58482. + }
  58483. + }
  58484. + XFREE (tmp_pathspec);
  58485. +
  58486. + if (!has_symlinks)
  58487. + {
  58488. + return xstrdup (pathspec);
  58489. + }
  58490. +
  58491. + tmp_pathspec = realpath (pathspec, buf);
  58492. + if (tmp_pathspec == 0)
  58493. + {
  58494. + lt_fatal ("Could not follow symlinks for %s", pathspec);
  58495. + }
  58496. + return xstrdup (tmp_pathspec);
  58497. +#endif
  58498. +}
  58499. +
  58500. +char *
  58501. +strendzap (char *str, const char *pat)
  58502. {
  58503. size_t len, patlen;
  58504. - assert(str != NULL);
  58505. - assert(pat != NULL);
  58506. + assert (str != NULL);
  58507. + assert (pat != NULL);
  58508. - len = strlen(str);
  58509. - patlen = strlen(pat);
  58510. + len = strlen (str);
  58511. + patlen = strlen (pat);
  58512. if (patlen <= len)
  58513. - {
  58514. - str += len - patlen;
  58515. - if (strcmp(str, pat) == 0)
  58516. - *str = '\0';
  58517. - }
  58518. + {
  58519. + str += len - patlen;
  58520. + if (strcmp (str, pat) == 0)
  58521. + *str = '\0';
  58522. + }
  58523. return str;
  58524. }
  58525. static void
  58526. -lt_error_core (int exit_status, const char * mode,
  58527. - const char * message, va_list ap)
  58528. +lt_error_core (int exit_status, const char *mode,
  58529. + const char *message, va_list ap)
  58530. {
  58531. fprintf (stderr, "%s: %s: ", program_name, mode);
  58532. vfprintf (stderr, message, ap);
  58533. @@ -4788,1230 +3853,4351 @@
  58534. lt_error_core (EXIT_FAILURE, "FATAL", message, ap);
  58535. va_end (ap);
  58536. }
  58537. +
  58538. +void
  58539. +lt_setenv (const char *name, const char *value)
  58540. +{
  58541. + LTWRAPPER_DEBUGPRINTF (("(lt_setenv) setting '%s' to '%s'\n",
  58542. + (name ? name : "<NULL>"),
  58543. + (value ? value : "<NULL>")));
  58544. + {
  58545. +#ifdef HAVE_SETENV
  58546. + /* always make a copy, for consistency with !HAVE_SETENV */
  58547. + char *str = xstrdup (value);
  58548. + setenv (name, str, 1);
  58549. +#else
  58550. + int len = strlen (name) + 1 + strlen (value) + 1;
  58551. + char *str = XMALLOC (char, len);
  58552. + sprintf (str, "%s=%s", name, value);
  58553. + if (putenv (str) != EXIT_SUCCESS)
  58554. + {
  58555. + XFREE (str);
  58556. + }
  58557. +#endif
  58558. + }
  58559. +}
  58560. +
  58561. +char *
  58562. +lt_extend_str (const char *orig_value, const char *add, int to_end)
  58563. +{
  58564. + char *new_value;
  58565. + if (orig_value && *orig_value)
  58566. + {
  58567. + int orig_value_len = strlen (orig_value);
  58568. + int add_len = strlen (add);
  58569. + new_value = XMALLOC (char, add_len + orig_value_len + 1);
  58570. + if (to_end)
  58571. + {
  58572. + strcpy (new_value, orig_value);
  58573. + strcpy (new_value + orig_value_len, add);
  58574. + }
  58575. + else
  58576. + {
  58577. + strcpy (new_value, add);
  58578. + strcpy (new_value + add_len, orig_value);
  58579. + }
  58580. + }
  58581. + else
  58582. + {
  58583. + new_value = xstrdup (add);
  58584. + }
  58585. + return new_value;
  58586. +}
  58587. +
  58588. +int
  58589. +lt_split_name_value (const char *arg, char** name, char** value)
  58590. +{
  58591. + const char *p;
  58592. + int len;
  58593. + if (!arg || !*arg)
  58594. + return 1;
  58595. +
  58596. + p = strchr (arg, (int)'=');
  58597. +
  58598. + if (!p)
  58599. + return 1;
  58600. +
  58601. + *value = xstrdup (++p);
  58602. +
  58603. + len = strlen (arg) - strlen (*value);
  58604. + *name = XMALLOC (char, len);
  58605. + strncpy (*name, arg, len-1);
  58606. + (*name)[len - 1] = '\0';
  58607. +
  58608. + return 0;
  58609. +}
  58610. +
  58611. +void
  58612. +lt_opt_process_env_set (const char *arg)
  58613. +{
  58614. + char *name = NULL;
  58615. + char *value = NULL;
  58616. +
  58617. + if (lt_split_name_value (arg, &name, &value) != 0)
  58618. + {
  58619. + XFREE (name);
  58620. + XFREE (value);
  58621. + lt_fatal ("bad argument for %s: '%s'", env_set_opt, arg);
  58622. + }
  58623. +
  58624. + lt_setenv (name, value);
  58625. + XFREE (name);
  58626. + XFREE (value);
  58627. +}
  58628. +
  58629. +void
  58630. +lt_opt_process_env_prepend (const char *arg)
  58631. +{
  58632. + char *name = NULL;
  58633. + char *value = NULL;
  58634. + char *new_value = NULL;
  58635. +
  58636. + if (lt_split_name_value (arg, &name, &value) != 0)
  58637. + {
  58638. + XFREE (name);
  58639. + XFREE (value);
  58640. + lt_fatal ("bad argument for %s: '%s'", env_prepend_opt, arg);
  58641. + }
  58642. +
  58643. + new_value = lt_extend_str (getenv (name), value, 0);
  58644. + lt_setenv (name, new_value);
  58645. + XFREE (new_value);
  58646. + XFREE (name);
  58647. + XFREE (value);
  58648. +}
  58649. +
  58650. +void
  58651. +lt_opt_process_env_append (const char *arg)
  58652. +{
  58653. + char *name = NULL;
  58654. + char *value = NULL;
  58655. + char *new_value = NULL;
  58656. +
  58657. + if (lt_split_name_value (arg, &name, &value) != 0)
  58658. + {
  58659. + XFREE (name);
  58660. + XFREE (value);
  58661. + lt_fatal ("bad argument for %s: '%s'", env_append_opt, arg);
  58662. + }
  58663. +
  58664. + new_value = lt_extend_str (getenv (name), value, 1);
  58665. + lt_setenv (name, new_value);
  58666. + XFREE (new_value);
  58667. + XFREE (name);
  58668. + XFREE (value);
  58669. +}
  58670. +
  58671. +void
  58672. +lt_update_exe_path (const char *name, const char *value)
  58673. +{
  58674. + LTWRAPPER_DEBUGPRINTF (("(lt_update_exe_path) modifying '%s' by prepending '%s'\n",
  58675. + (name ? name : "<NULL>"),
  58676. + (value ? value : "<NULL>")));
  58677. +
  58678. + if (name && *name && value && *value)
  58679. + {
  58680. + char *new_value = lt_extend_str (getenv (name), value, 0);
  58681. + /* some systems can't cope with a ':'-terminated path #' */
  58682. + int len = strlen (new_value);
  58683. + while (((len = strlen (new_value)) > 0) && IS_PATH_SEPARATOR (new_value[len-1]))
  58684. + {
  58685. + new_value[len-1] = '\0';
  58686. + }
  58687. + lt_setenv (name, new_value);
  58688. + XFREE (new_value);
  58689. + }
  58690. +}
  58691. +
  58692. +void
  58693. +lt_update_lib_path (const char *name, const char *value)
  58694. +{
  58695. + LTWRAPPER_DEBUGPRINTF (("(lt_update_lib_path) modifying '%s' by prepending '%s'\n",
  58696. + (name ? name : "<NULL>"),
  58697. + (value ? value : "<NULL>")));
  58698. +
  58699. + if (name && *name && value && *value)
  58700. + {
  58701. + char *new_value = lt_extend_str (getenv (name), value, 0);
  58702. + lt_setenv (name, new_value);
  58703. + XFREE (new_value);
  58704. + }
  58705. +}
  58706. +
  58707. +
  58708. EOF
  58709. - # we should really use a build-platform specific compiler
  58710. - # here, but OTOH, the wrappers (shell script and this C one)
  58711. - # are only useful if you want to execute the "real" binary.
  58712. - # Since the "real" binary is built for $host, then this
  58713. - # wrapper might as well be built for $host, too.
  58714. - $run $LTCC -s -o $cwrapper $cwrappersource
  58715. +}
  58716. +# end: func_emit_cwrapperexe_src
  58717. +
  58718. +# func_mode_link arg...
  58719. +func_mode_link ()
  58720. +{
  58721. + $opt_debug
  58722. + case $host in
  58723. + *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-cegcc*)
  58724. + # It is impossible to link a dll without this setting, and
  58725. + # we shouldn't force the makefile maintainer to figure out
  58726. + # which system we are compiling for in order to pass an extra
  58727. + # flag for every libtool invocation.
  58728. + # allow_undefined=no
  58729. +
  58730. + # FIXME: Unfortunately, there are problems with the above when trying
  58731. + # to make a dll which has undefined symbols, in which case not
  58732. + # even a static library is built. For now, we need to specify
  58733. + # -no-undefined on the libtool link line when we can be certain
  58734. + # that all symbols are satisfied, otherwise we get a static library.
  58735. + allow_undefined=yes
  58736. + ;;
  58737. + *)
  58738. + allow_undefined=yes
  58739. + ;;
  58740. + esac
  58741. + libtool_args=$nonopt
  58742. + base_compile="$nonopt $@"
  58743. + compile_command=$nonopt
  58744. + finalize_command=$nonopt
  58745. +
  58746. + compile_rpath=
  58747. + finalize_rpath=
  58748. + compile_shlibpath=
  58749. + finalize_shlibpath=
  58750. + convenience=
  58751. + old_convenience=
  58752. + deplibs=
  58753. + old_deplibs=
  58754. + compiler_flags=
  58755. + linker_flags=
  58756. + dllsearchpath=
  58757. + lib_search_path=`pwd`
  58758. + inst_prefix_dir=
  58759. + new_inherited_linker_flags=
  58760. +
  58761. + avoid_version=no
  58762. + dlfiles=
  58763. + dlprefiles=
  58764. + dlself=no
  58765. + export_dynamic=no
  58766. + export_symbols=
  58767. + export_symbols_regex=
  58768. + generated=
  58769. + libobjs=
  58770. + ltlibs=
  58771. + module=no
  58772. + no_install=no
  58773. + objs=
  58774. + non_pic_objects=
  58775. + precious_files_regex=
  58776. + prefer_static_libs=no
  58777. + preload=no
  58778. + prev=
  58779. + prevarg=
  58780. + release=
  58781. + rpath=
  58782. + xrpath=
  58783. + perm_rpath=
  58784. + temp_rpath=
  58785. + thread_safe=no
  58786. + vinfo=
  58787. + vinfo_number=no
  58788. + weak_libs=
  58789. + single_module="${wl}-single_module"
  58790. + func_infer_tag $base_compile
  58791. +
  58792. + # We need to know -static, to get the right output filenames.
  58793. + for arg
  58794. + do
  58795. + case $arg in
  58796. + -shared)
  58797. + test "$build_libtool_libs" != yes && \
  58798. + func_fatal_configuration "can not build a shared library"
  58799. + build_old_libs=no
  58800. + break
  58801. + ;;
  58802. + -all-static | -static | -static-libtool-libs)
  58803. + case $arg in
  58804. + -all-static)
  58805. + if test "$build_libtool_libs" = yes && test -z "$link_static_flag"; then
  58806. + func_warning "complete static linking is impossible in this configuration"
  58807. + fi
  58808. + if test -n "$link_static_flag"; then
  58809. + dlopen_self=$dlopen_self_static
  58810. + fi
  58811. + prefer_static_libs=yes
  58812. + ;;
  58813. + -static)
  58814. + if test -z "$pic_flag" && test -n "$link_static_flag"; then
  58815. + dlopen_self=$dlopen_self_static
  58816. + fi
  58817. + prefer_static_libs=built
  58818. + ;;
  58819. + -static-libtool-libs)
  58820. + if test -z "$pic_flag" && test -n "$link_static_flag"; then
  58821. + dlopen_self=$dlopen_self_static
  58822. + fi
  58823. + prefer_static_libs=yes
  58824. + ;;
  58825. + esac
  58826. + build_libtool_libs=no
  58827. + build_old_libs=yes
  58828. + break
  58829. + ;;
  58830. + esac
  58831. + done
  58832. +
  58833. + # See if our shared archives depend on static archives.
  58834. + test -n "$old_archive_from_new_cmds" && build_old_libs=yes
  58835. +
  58836. + # Go through the arguments, transforming them on the way.
  58837. + while test "$#" -gt 0; do
  58838. + arg="$1"
  58839. + shift
  58840. + func_quote_for_eval "$arg"
  58841. + qarg=$func_quote_for_eval_unquoted_result
  58842. + func_append libtool_args " $func_quote_for_eval_result"
  58843. +
  58844. + # If the previous option needs an argument, assign it.
  58845. + if test -n "$prev"; then
  58846. + case $prev in
  58847. + output)
  58848. + func_append compile_command " @OUTPUT@"
  58849. + func_append finalize_command " @OUTPUT@"
  58850. + ;;
  58851. + esac
  58852. +
  58853. + case $prev in
  58854. + dlfiles|dlprefiles)
  58855. + if test "$preload" = no; then
  58856. + # Add the symbol object into the linking commands.
  58857. + func_append compile_command " @SYMFILE@"
  58858. + func_append finalize_command " @SYMFILE@"
  58859. + preload=yes
  58860. + fi
  58861. + case $arg in
  58862. + *.la | *.lo) ;; # We handle these cases below.
  58863. + force)
  58864. + if test "$dlself" = no; then
  58865. + dlself=needless
  58866. + export_dynamic=yes
  58867. + fi
  58868. + prev=
  58869. + continue
  58870. + ;;
  58871. + self)
  58872. + if test "$prev" = dlprefiles; then
  58873. + dlself=yes
  58874. + elif test "$prev" = dlfiles && test "$dlopen_self" != yes; then
  58875. + dlself=yes
  58876. + else
  58877. + dlself=needless
  58878. + export_dynamic=yes
  58879. + fi
  58880. + prev=
  58881. + continue
  58882. + ;;
  58883. + *)
  58884. + if test "$prev" = dlfiles; then
  58885. + dlfiles="$dlfiles $arg"
  58886. + else
  58887. + dlprefiles="$dlprefiles $arg"
  58888. + fi
  58889. + prev=
  58890. + continue
  58891. + ;;
  58892. + esac
  58893. + ;;
  58894. + expsyms)
  58895. + export_symbols="$arg"
  58896. + test -f "$arg" \
  58897. + || func_fatal_error "symbol file \`$arg' does not exist"
  58898. + prev=
  58899. + continue
  58900. + ;;
  58901. + expsyms_regex)
  58902. + export_symbols_regex="$arg"
  58903. + prev=
  58904. + continue
  58905. + ;;
  58906. + framework)
  58907. + case $host in
  58908. + *-*-darwin*)
  58909. + case "$deplibs " in
  58910. + *" $qarg.ltframework "*) ;;
  58911. + *) deplibs="$deplibs $qarg.ltframework" # this is fixed later
  58912. + ;;
  58913. + esac
  58914. + ;;
  58915. + esac
  58916. + prev=
  58917. + continue
  58918. + ;;
  58919. + inst_prefix)
  58920. + inst_prefix_dir="$arg"
  58921. + prev=
  58922. + continue
  58923. + ;;
  58924. + objectlist)
  58925. + if test -f "$arg"; then
  58926. + save_arg=$arg
  58927. + moreargs=
  58928. + for fil in `cat "$save_arg"`
  58929. + do
  58930. +# moreargs="$moreargs $fil"
  58931. + arg=$fil
  58932. + # A libtool-controlled object.
  58933. +
  58934. + # Check to see that this really is a libtool object.
  58935. + if func_lalib_unsafe_p "$arg"; then
  58936. + pic_object=
  58937. + non_pic_object=
  58938. +
  58939. + # Read the .lo file
  58940. + func_source "$arg"
  58941. +
  58942. + if test -z "$pic_object" ||
  58943. + test -z "$non_pic_object" ||
  58944. + test "$pic_object" = none &&
  58945. + test "$non_pic_object" = none; then
  58946. + func_fatal_error "cannot find name of object for \`$arg'"
  58947. + fi
  58948. +
  58949. + # Extract subdirectory from the argument.
  58950. + func_dirname "$arg" "/" ""
  58951. + xdir="$func_dirname_result"
  58952. +
  58953. + if test "$pic_object" != none; then
  58954. + # Prepend the subdirectory the object is found in.
  58955. + pic_object="$xdir$pic_object"
  58956. +
  58957. + if test "$prev" = dlfiles; then
  58958. + if test "$build_libtool_libs" = yes && test "$dlopen_support" = yes; then
  58959. + dlfiles="$dlfiles $pic_object"
  58960. + prev=
  58961. + continue
  58962. + else
  58963. + # If libtool objects are unsupported, then we need to preload.
  58964. + prev=dlprefiles
  58965. + fi
  58966. + fi
  58967. +
  58968. + # CHECK ME: I think I busted this. -Ossama
  58969. + if test "$prev" = dlprefiles; then
  58970. + # Preload the old-style object.
  58971. + dlprefiles="$dlprefiles $pic_object"
  58972. + prev=
  58973. + fi
  58974. +
  58975. + # A PIC object.
  58976. + func_append libobjs " $pic_object"
  58977. + arg="$pic_object"
  58978. + fi
  58979. +
  58980. + # Non-PIC object.
  58981. + if test "$non_pic_object" != none; then
  58982. + # Prepend the subdirectory the object is found in.
  58983. + non_pic_object="$xdir$non_pic_object"
  58984. +
  58985. + # A standard non-PIC object
  58986. + func_append non_pic_objects " $non_pic_object"
  58987. + if test -z "$pic_object" || test "$pic_object" = none ; then
  58988. + arg="$non_pic_object"
  58989. + fi
  58990. + else
  58991. + # If the PIC object exists, use it instead.
  58992. + # $xdir was prepended to $pic_object above.
  58993. + non_pic_object="$pic_object"
  58994. + func_append non_pic_objects " $non_pic_object"
  58995. + fi
  58996. + else
  58997. + # Only an error if not doing a dry-run.
  58998. + if $opt_dry_run; then
  58999. + # Extract subdirectory from the argument.
  59000. + func_dirname "$arg" "/" ""
  59001. + xdir="$func_dirname_result"
  59002. +
  59003. + func_lo2o "$arg"
  59004. + pic_object=$xdir$objdir/$func_lo2o_result
  59005. + non_pic_object=$xdir$func_lo2o_result
  59006. + func_append libobjs " $pic_object"
  59007. + func_append non_pic_objects " $non_pic_object"
  59008. + else
  59009. + func_fatal_error "\`$arg' is not a valid libtool object"
  59010. + fi
  59011. + fi
  59012. + done
  59013. + else
  59014. + func_fatal_error "link input file \`$arg' does not exist"
  59015. + fi
  59016. + arg=$save_arg
  59017. + prev=
  59018. + continue
  59019. + ;;
  59020. + precious_regex)
  59021. + precious_files_regex="$arg"
  59022. + prev=
  59023. + continue
  59024. + ;;
  59025. + release)
  59026. + release="-$arg"
  59027. + prev=
  59028. + continue
  59029. + ;;
  59030. + rpath | xrpath)
  59031. + # We need an absolute path.
  59032. + case $arg in
  59033. + [\\/]* | [A-Za-z]:[\\/]*) ;;
  59034. + *)
  59035. + func_fatal_error "only absolute run-paths are allowed"
  59036. + ;;
  59037. + esac
  59038. + if test "$prev" = rpath; then
  59039. + case "$rpath " in
  59040. + *" $arg "*) ;;
  59041. + *) rpath="$rpath $arg" ;;
  59042. + esac
  59043. + else
  59044. + case "$xrpath " in
  59045. + *" $arg "*) ;;
  59046. + *) xrpath="$xrpath $arg" ;;
  59047. + esac
  59048. + fi
  59049. + prev=
  59050. + continue
  59051. + ;;
  59052. + shrext)
  59053. + shrext_cmds="$arg"
  59054. + prev=
  59055. + continue
  59056. + ;;
  59057. + weak)
  59058. + weak_libs="$weak_libs $arg"
  59059. + prev=
  59060. + continue
  59061. + ;;
  59062. + xcclinker)
  59063. + linker_flags="$linker_flags $qarg"
  59064. + compiler_flags="$compiler_flags $qarg"
  59065. + prev=
  59066. + func_append compile_command " $qarg"
  59067. + func_append finalize_command " $qarg"
  59068. + continue
  59069. + ;;
  59070. + xcompiler)
  59071. + compiler_flags="$compiler_flags $qarg"
  59072. + prev=
  59073. + func_append compile_command " $qarg"
  59074. + func_append finalize_command " $qarg"
  59075. + continue
  59076. + ;;
  59077. + xlinker)
  59078. + linker_flags="$linker_flags $qarg"
  59079. + compiler_flags="$compiler_flags $wl$qarg"
  59080. + prev=
  59081. + func_append compile_command " $wl$qarg"
  59082. + func_append finalize_command " $wl$qarg"
  59083. + continue
  59084. + ;;
  59085. + *)
  59086. + eval "$prev=\"\$arg\""
  59087. + prev=
  59088. + continue
  59089. + ;;
  59090. + esac
  59091. + fi # test -n "$prev"
  59092. +
  59093. + prevarg="$arg"
  59094. +
  59095. + case $arg in
  59096. + -all-static)
  59097. + if test -n "$link_static_flag"; then
  59098. + # See comment for -static flag below, for more details.
  59099. + func_append compile_command " $link_static_flag"
  59100. + func_append finalize_command " $link_static_flag"
  59101. + fi
  59102. + continue
  59103. + ;;
  59104. +
  59105. + -allow-undefined)
  59106. + # FIXME: remove this flag sometime in the future.
  59107. + func_fatal_error "\`-allow-undefined' must not be used because it is the default"
  59108. + ;;
  59109. +
  59110. + -avoid-version)
  59111. + avoid_version=yes
  59112. + continue
  59113. + ;;
  59114. +
  59115. + -dlopen)
  59116. + prev=dlfiles
  59117. + continue
  59118. + ;;
  59119. +
  59120. + -dlpreopen)
  59121. + prev=dlprefiles
  59122. + continue
  59123. + ;;
  59124. +
  59125. + -export-dynamic)
  59126. + export_dynamic=yes
  59127. + continue
  59128. + ;;
  59129. +
  59130. + -export-symbols | -export-symbols-regex)
  59131. + if test -n "$export_symbols" || test -n "$export_symbols_regex"; then
  59132. + func_fatal_error "more than one -exported-symbols argument is not allowed"
  59133. + fi
  59134. + if test "X$arg" = "X-export-symbols"; then
  59135. + prev=expsyms
  59136. + else
  59137. + prev=expsyms_regex
  59138. + fi
  59139. + continue
  59140. + ;;
  59141. +
  59142. + -framework)
  59143. + prev=framework
  59144. + continue
  59145. + ;;
  59146. +
  59147. + -inst-prefix-dir)
  59148. + prev=inst_prefix
  59149. + continue
  59150. + ;;
  59151. +
  59152. + # The native IRIX linker understands -LANG:*, -LIST:* and -LNO:*
  59153. + # so, if we see these flags be careful not to treat them like -L
  59154. + -L[A-Z][A-Z]*:*)
  59155. + case $with_gcc/$host in
  59156. + no/*-*-irix* | /*-*-irix*)
  59157. + func_append compile_command " $arg"
  59158. + func_append finalize_command " $arg"
  59159. + ;;
  59160. + esac
  59161. + continue
  59162. + ;;
  59163. +
  59164. + -L*)
  59165. + func_stripname '-L' '' "$arg"
  59166. + dir=$func_stripname_result
  59167. + if test -z "$dir"; then
  59168. + if test "$#" -gt 0; then
  59169. + func_fatal_error "require no space between \`-L' and \`$1'"
  59170. + else
  59171. + func_fatal_error "need path for \`-L' option"
  59172. + fi
  59173. + fi
  59174. + # We need an absolute path.
  59175. + case $dir in
  59176. + [\\/]* | [A-Za-z]:[\\/]*) ;;
  59177. + *)
  59178. + absdir=`cd "$dir" && pwd`
  59179. + test -z "$absdir" && \
  59180. + func_fatal_error "cannot determine absolute directory name of \`$dir'"
  59181. + dir="$absdir"
  59182. + ;;
  59183. + esac
  59184. + case "$deplibs " in
  59185. + *" -L$dir "*) ;;
  59186. + *)
  59187. + deplibs="$deplibs -L$dir"
  59188. + lib_search_path="$lib_search_path $dir"
  59189. + ;;
  59190. + esac
  59191. + case $host in
  59192. + *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-cegcc*)
  59193. + testbindir=`$ECHO "X$dir" | $Xsed -e 's*/lib$*/bin*'`
  59194. + case :$dllsearchpath: in
  59195. + *":$dir:"*) ;;
  59196. + ::) dllsearchpath=$dir;;
  59197. + *) dllsearchpath="$dllsearchpath:$dir";;
  59198. + esac
  59199. + case :$dllsearchpath: in
  59200. + *":$testbindir:"*) ;;
  59201. + ::) dllsearchpath=$testbindir;;
  59202. + *) dllsearchpath="$dllsearchpath:$testbindir";;
  59203. + esac
  59204. + ;;
  59205. + esac
  59206. + continue
  59207. + ;;
  59208. +
  59209. + -l*)
  59210. + if test "X$arg" = "X-lc" || test "X$arg" = "X-lm"; then
  59211. + case $host in
  59212. + *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-beos* | *-cegcc*)
  59213. + # These systems don't actually have a C or math library (as such)
  59214. + continue
  59215. + ;;
  59216. + *-*-os2*)
  59217. + # These systems don't actually have a C library (as such)
  59218. + test "X$arg" = "X-lc" && continue
  59219. + ;;
  59220. + *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*)
  59221. + # Do not include libc due to us having libc/libc_r.
  59222. + test "X$arg" = "X-lc" && continue
  59223. + ;;
  59224. + *-*-rhapsody* | *-*-darwin1.[012])
  59225. + # Rhapsody C and math libraries are in the System framework
  59226. + deplibs="$deplibs System.ltframework"
  59227. + continue
  59228. + ;;
  59229. + *-*-sco3.2v5* | *-*-sco5v6*)
  59230. + # Causes problems with __ctype
  59231. + test "X$arg" = "X-lc" && continue
  59232. + ;;
  59233. + *-*-sysv4.2uw2* | *-*-sysv5* | *-*-unixware* | *-*-OpenUNIX*)
  59234. + # Compiler inserts libc in the correct place for threads to work
  59235. + test "X$arg" = "X-lc" && continue
  59236. + ;;
  59237. + esac
  59238. + elif test "X$arg" = "X-lc_r"; then
  59239. + case $host in
  59240. + *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*)
  59241. + # Do not include libc_r directly, use -pthread flag.
  59242. + continue
  59243. + ;;
  59244. + esac
  59245. + fi
  59246. + deplibs="$deplibs $arg"
  59247. + continue
  59248. + ;;
  59249. +
  59250. + -module)
  59251. + module=yes
  59252. + continue
  59253. + ;;
  59254. +
  59255. + # Tru64 UNIX uses -model [arg] to determine the layout of C++
  59256. + # classes, name mangling, and exception handling.
  59257. + # Darwin uses the -arch flag to determine output architecture.
  59258. + -model|-arch|-isysroot)
  59259. + compiler_flags="$compiler_flags $arg"
  59260. + func_append compile_command " $arg"
  59261. + func_append finalize_command " $arg"
  59262. + prev=xcompiler
  59263. + continue
  59264. + ;;
  59265. +
  59266. + -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe|-threads)
  59267. + compiler_flags="$compiler_flags $arg"
  59268. + func_append compile_command " $arg"
  59269. + func_append finalize_command " $arg"
  59270. + case "$new_inherited_linker_flags " in
  59271. + *" $arg "*) ;;
  59272. + * ) new_inherited_linker_flags="$new_inherited_linker_flags $arg" ;;
  59273. + esac
  59274. + continue
  59275. + ;;
  59276. +
  59277. + -multi_module)
  59278. + single_module="${wl}-multi_module"
  59279. + continue
  59280. + ;;
  59281. +
  59282. + -no-fast-install)
  59283. + fast_install=no
  59284. + continue
  59285. + ;;
  59286. +
  59287. + -no-install)
  59288. + case $host in
  59289. + *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-*-darwin* | *-cegcc*)
  59290. + # The PATH hackery in wrapper scripts is required on Windows
  59291. + # and Darwin in order for the loader to find any dlls it needs.
  59292. + func_warning "\`-no-install' is ignored for $host"
  59293. + func_warning "assuming \`-no-fast-install' instead"
  59294. + fast_install=no
  59295. + ;;
  59296. + *) no_install=yes ;;
  59297. + esac
  59298. + continue
  59299. + ;;
  59300. +
  59301. + -no-undefined)
  59302. + allow_undefined=no
  59303. + continue
  59304. + ;;
  59305. +
  59306. + -objectlist)
  59307. + prev=objectlist
  59308. + continue
  59309. + ;;
  59310. +
  59311. + -o) prev=output ;;
  59312. +
  59313. + -precious-files-regex)
  59314. + prev=precious_regex
  59315. + continue
  59316. + ;;
  59317. +
  59318. + -release)
  59319. + prev=release
  59320. + continue
  59321. + ;;
  59322. +
  59323. + -rpath)
  59324. + prev=rpath
  59325. + continue
  59326. + ;;
  59327. +
  59328. + -R)
  59329. + prev=xrpath
  59330. + continue
  59331. + ;;
  59332. +
  59333. + -R*)
  59334. + func_stripname '-R' '' "$arg"
  59335. + dir=$func_stripname_result
  59336. + # We need an absolute path.
  59337. + case $dir in
  59338. + [\\/]* | [A-Za-z]:[\\/]*) ;;
  59339. + *)
  59340. + func_fatal_error "only absolute run-paths are allowed"
  59341. + ;;
  59342. + esac
  59343. + case "$xrpath " in
  59344. + *" $dir "*) ;;
  59345. + *) xrpath="$xrpath $dir" ;;
  59346. + esac
  59347. + continue
  59348. + ;;
  59349. +
  59350. + -shared)
  59351. + # The effects of -shared are defined in a previous loop.
  59352. + continue
  59353. + ;;
  59354. +
  59355. + -shrext)
  59356. + prev=shrext
  59357. + continue
  59358. + ;;
  59359. +
  59360. + -static | -static-libtool-libs)
  59361. + # The effects of -static are defined in a previous loop.
  59362. + # We used to do the same as -all-static on platforms that
  59363. + # didn't have a PIC flag, but the assumption that the effects
  59364. + # would be equivalent was wrong. It would break on at least
  59365. + # Digital Unix and AIX.
  59366. + continue
  59367. + ;;
  59368. +
  59369. + -thread-safe)
  59370. + thread_safe=yes
  59371. + continue
  59372. + ;;
  59373. +
  59374. + -version-info)
  59375. + prev=vinfo
  59376. + continue
  59377. + ;;
  59378. +
  59379. + -version-number)
  59380. + prev=vinfo
  59381. + vinfo_number=yes
  59382. + continue
  59383. + ;;
  59384. +
  59385. + -weak)
  59386. + prev=weak
  59387. + continue
  59388. + ;;
  59389. +
  59390. + -Wc,*)
  59391. + func_stripname '-Wc,' '' "$arg"
  59392. + args=$func_stripname_result
  59393. + arg=
  59394. + save_ifs="$IFS"; IFS=','
  59395. + for flag in $args; do
  59396. + IFS="$save_ifs"
  59397. + func_quote_for_eval "$flag"
  59398. + arg="$arg $wl$func_quote_for_eval_result"
  59399. + compiler_flags="$compiler_flags $func_quote_for_eval_result"
  59400. + done
  59401. + IFS="$save_ifs"
  59402. + func_stripname ' ' '' "$arg"
  59403. + arg=$func_stripname_result
  59404. + ;;
  59405. +
  59406. + -Wl,*)
  59407. + func_stripname '-Wl,' '' "$arg"
  59408. + args=$func_stripname_result
  59409. + arg=
  59410. + save_ifs="$IFS"; IFS=','
  59411. + for flag in $args; do
  59412. + IFS="$save_ifs"
  59413. + func_quote_for_eval "$flag"
  59414. + arg="$arg $wl$func_quote_for_eval_result"
  59415. + compiler_flags="$compiler_flags $wl$func_quote_for_eval_result"
  59416. + linker_flags="$linker_flags $func_quote_for_eval_result"
  59417. + done
  59418. + IFS="$save_ifs"
  59419. + func_stripname ' ' '' "$arg"
  59420. + arg=$func_stripname_result
  59421. + ;;
  59422. +
  59423. + -Xcompiler)
  59424. + prev=xcompiler
  59425. + continue
  59426. + ;;
  59427. +
  59428. + -Xlinker)
  59429. + prev=xlinker
  59430. + continue
  59431. + ;;
  59432. +
  59433. + -XCClinker)
  59434. + prev=xcclinker
  59435. + continue
  59436. + ;;
  59437. +
  59438. + # -msg_* for osf cc
  59439. + -msg_*)
  59440. + func_quote_for_eval "$arg"
  59441. + arg="$func_quote_for_eval_result"
  59442. + ;;
  59443. +
  59444. + # -64, -mips[0-9] enable 64-bit mode on the SGI compiler
  59445. + # -r[0-9][0-9]* specifies the processor on the SGI compiler
  59446. + # -xarch=*, -xtarget=* enable 64-bit mode on the Sun compiler
  59447. + # +DA*, +DD* enable 64-bit mode on the HP compiler
  59448. + # -q* pass through compiler args for the IBM compiler
  59449. + # -m*, -t[45]*, -txscale* pass through architecture-specific
  59450. + # compiler args for GCC
  59451. + # -F/path gives path to uninstalled frameworks, gcc on darwin
  59452. + # -p, -pg, --coverage, -fprofile-* pass through profiling flag for GCC
  59453. + # @file GCC response files
  59454. + -64|-mips[0-9]|-r[0-9][0-9]*|-xarch=*|-xtarget=*|+DA*|+DD*|-q*|-m*| \
  59455. + -t[45]*|-txscale*|-p|-pg|--coverage|-fprofile-*|-F*|@*|-fstack-protector*|-flto*)
  59456. + func_quote_for_eval "$arg"
  59457. + arg="$func_quote_for_eval_result"
  59458. + func_append compile_command " $arg"
  59459. + func_append finalize_command " $arg"
  59460. + compiler_flags="$compiler_flags $arg"
  59461. + continue
  59462. + ;;
  59463. +
  59464. + # Some other compiler flag.
  59465. + -* | +*)
  59466. + func_quote_for_eval "$arg"
  59467. + arg="$func_quote_for_eval_result"
  59468. + ;;
  59469. +
  59470. + *.$objext)
  59471. + # A standard object.
  59472. + objs="$objs $arg"
  59473. + ;;
  59474. +
  59475. + *.lo)
  59476. + # A libtool-controlled object.
  59477. +
  59478. + # Check to see that this really is a libtool object.
  59479. + if func_lalib_unsafe_p "$arg"; then
  59480. + pic_object=
  59481. + non_pic_object=
  59482. +
  59483. + # Read the .lo file
  59484. + func_source "$arg"
  59485. +
  59486. + if test -z "$pic_object" ||
  59487. + test -z "$non_pic_object" ||
  59488. + test "$pic_object" = none &&
  59489. + test "$non_pic_object" = none; then
  59490. + func_fatal_error "cannot find name of object for \`$arg'"
  59491. + fi
  59492. +
  59493. + # Extract subdirectory from the argument.
  59494. + func_dirname "$arg" "/" ""
  59495. + xdir="$func_dirname_result"
  59496. +
  59497. + if test "$pic_object" != none; then
  59498. + # Prepend the subdirectory the object is found in.
  59499. + pic_object="$xdir$pic_object"
  59500. +
  59501. + if test "$prev" = dlfiles; then
  59502. + if test "$build_libtool_libs" = yes && test "$dlopen_support" = yes; then
  59503. + dlfiles="$dlfiles $pic_object"
  59504. + prev=
  59505. + continue
  59506. + else
  59507. + # If libtool objects are unsupported, then we need to preload.
  59508. + prev=dlprefiles
  59509. + fi
  59510. + fi
  59511. +
  59512. + # CHECK ME: I think I busted this. -Ossama
  59513. + if test "$prev" = dlprefiles; then
  59514. + # Preload the old-style object.
  59515. + dlprefiles="$dlprefiles $pic_object"
  59516. + prev=
  59517. + fi
  59518. +
  59519. + # A PIC object.
  59520. + func_append libobjs " $pic_object"
  59521. + arg="$pic_object"
  59522. + fi
  59523. +
  59524. + # Non-PIC object.
  59525. + if test "$non_pic_object" != none; then
  59526. + # Prepend the subdirectory the object is found in.
  59527. + non_pic_object="$xdir$non_pic_object"
  59528. +
  59529. + # A standard non-PIC object
  59530. + func_append non_pic_objects " $non_pic_object"
  59531. + if test -z "$pic_object" || test "$pic_object" = none ; then
  59532. + arg="$non_pic_object"
  59533. + fi
  59534. + else
  59535. + # If the PIC object exists, use it instead.
  59536. + # $xdir was prepended to $pic_object above.
  59537. + non_pic_object="$pic_object"
  59538. + func_append non_pic_objects " $non_pic_object"
  59539. + fi
  59540. + else
  59541. + # Only an error if not doing a dry-run.
  59542. + if $opt_dry_run; then
  59543. + # Extract subdirectory from the argument.
  59544. + func_dirname "$arg" "/" ""
  59545. + xdir="$func_dirname_result"
  59546. +
  59547. + func_lo2o "$arg"
  59548. + pic_object=$xdir$objdir/$func_lo2o_result
  59549. + non_pic_object=$xdir$func_lo2o_result
  59550. + func_append libobjs " $pic_object"
  59551. + func_append non_pic_objects " $non_pic_object"
  59552. + else
  59553. + func_fatal_error "\`$arg' is not a valid libtool object"
  59554. + fi
  59555. + fi
  59556. + ;;
  59557. +
  59558. + *.$libext)
  59559. + # An archive.
  59560. + deplibs="$deplibs $arg"
  59561. + old_deplibs="$old_deplibs $arg"
  59562. + continue
  59563. + ;;
  59564. +
  59565. + *.la)
  59566. + # A libtool-controlled library.
  59567. +
  59568. + if test "$prev" = dlfiles; then
  59569. + # This library was specified with -dlopen.
  59570. + dlfiles="$dlfiles $arg"
  59571. + prev=
  59572. + elif test "$prev" = dlprefiles; then
  59573. + # The library was specified with -dlpreopen.
  59574. + dlprefiles="$dlprefiles $arg"
  59575. + prev=
  59576. + else
  59577. + deplibs="$deplibs $arg"
  59578. + fi
  59579. + continue
  59580. + ;;
  59581. +
  59582. + # Some other compiler argument.
  59583. + *)
  59584. + # Unknown arguments in both finalize_command and compile_command need
  59585. + # to be aesthetically quoted because they are evaled later.
  59586. + func_quote_for_eval "$arg"
  59587. + arg="$func_quote_for_eval_result"
  59588. + ;;
  59589. + esac # arg
  59590. +
  59591. + # Now actually substitute the argument into the commands.
  59592. + if test -n "$arg"; then
  59593. + func_append compile_command " $arg"
  59594. + func_append finalize_command " $arg"
  59595. + fi
  59596. + done # argument parsing loop
  59597. +
  59598. + test -n "$prev" && \
  59599. + func_fatal_help "the \`$prevarg' option requires an argument"
  59600. +
  59601. + if test "$export_dynamic" = yes && test -n "$export_dynamic_flag_spec"; then
  59602. + eval arg=\"$export_dynamic_flag_spec\"
  59603. + func_append compile_command " $arg"
  59604. + func_append finalize_command " $arg"
  59605. + fi
  59606. +
  59607. + oldlibs=
  59608. + # calculate the name of the file, without its directory
  59609. + func_basename "$output"
  59610. + outputname="$func_basename_result"
  59611. + libobjs_save="$libobjs"
  59612. +
  59613. + if test -n "$shlibpath_var"; then
  59614. + # get the directories listed in $shlibpath_var
  59615. + eval shlib_search_path=\`\$ECHO \"X\${$shlibpath_var}\" \| \$Xsed -e \'s/:/ /g\'\`
  59616. + else
  59617. + shlib_search_path=
  59618. + fi
  59619. + eval sys_lib_search_path=\"$sys_lib_search_path_spec\"
  59620. + eval sys_lib_dlsearch_path=\"$sys_lib_dlsearch_path_spec\"
  59621. +
  59622. + func_dirname "$output" "/" ""
  59623. + output_objdir="$func_dirname_result$objdir"
  59624. + # Create the object directory.
  59625. + func_mkdir_p "$output_objdir"
  59626. +
  59627. + # Determine the type of output
  59628. + case $output in
  59629. + "")
  59630. + func_fatal_help "you must specify an output file"
  59631. + ;;
  59632. + *.$libext) linkmode=oldlib ;;
  59633. + *.lo | *.$objext) linkmode=obj ;;
  59634. + *.la) linkmode=lib ;;
  59635. + *) linkmode=prog ;; # Anything else should be a program.
  59636. + esac
  59637. +
  59638. + specialdeplibs=
  59639. +
  59640. + libs=
  59641. + # Find all interdependent deplibs by searching for libraries
  59642. + # that are linked more than once (e.g. -la -lb -la)
  59643. + for deplib in $deplibs; do
  59644. + if $opt_duplicate_deps ; then
  59645. + case "$libs " in
  59646. + *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
  59647. + esac
  59648. + fi
  59649. + libs="$libs $deplib"
  59650. + done
  59651. +
  59652. + if test "$linkmode" = lib; then
  59653. + libs="$predeps $libs $compiler_lib_search_path $postdeps"
  59654. +
  59655. + # Compute libraries that are listed more than once in $predeps
  59656. + # $postdeps and mark them as special (i.e., whose duplicates are
  59657. + # not to be eliminated).
  59658. + pre_post_deps=
  59659. + if $opt_duplicate_compiler_generated_deps; then
  59660. + for pre_post_dep in $predeps $postdeps; do
  59661. + case "$pre_post_deps " in
  59662. + *" $pre_post_dep "*) specialdeplibs="$specialdeplibs $pre_post_deps" ;;
  59663. + esac
  59664. + pre_post_deps="$pre_post_deps $pre_post_dep"
  59665. + done
  59666. + fi
  59667. + pre_post_deps=
  59668. + fi
  59669. +
  59670. + deplibs=
  59671. + newdependency_libs=
  59672. + newlib_search_path=
  59673. + need_relink=no # whether we're linking any uninstalled libtool libraries
  59674. + notinst_deplibs= # not-installed libtool libraries
  59675. + notinst_path= # paths that contain not-installed libtool libraries
  59676. +
  59677. + case $linkmode in
  59678. + lib)
  59679. + passes="conv dlpreopen link"
  59680. + for file in $dlfiles $dlprefiles; do
  59681. + case $file in
  59682. + *.la) ;;
  59683. + *)
  59684. + func_fatal_help "libraries can \`-dlopen' only libtool libraries: $file"
  59685. + ;;
  59686. + esac
  59687. + done
  59688. + ;;
  59689. + prog)
  59690. + compile_deplibs=
  59691. + finalize_deplibs=
  59692. + alldeplibs=no
  59693. + newdlfiles=
  59694. + newdlprefiles=
  59695. + passes="conv scan dlopen dlpreopen link"
  59696. + ;;
  59697. + *) passes="conv"
  59698. + ;;
  59699. + esac
  59700. +
  59701. + for pass in $passes; do
  59702. + # The preopen pass in lib mode reverses $deplibs; put it back here
  59703. + # so that -L comes before libs that need it for instance...
  59704. + if test "$linkmode,$pass" = "lib,link"; then
  59705. + ## FIXME: Find the place where the list is rebuilt in the wrong
  59706. + ## order, and fix it there properly
  59707. + tmp_deplibs=
  59708. + for deplib in $deplibs; do
  59709. + tmp_deplibs="$deplib $tmp_deplibs"
  59710. + done
  59711. + deplibs="$tmp_deplibs"
  59712. + fi
  59713. +
  59714. + if test "$linkmode,$pass" = "lib,link" ||
  59715. + test "$linkmode,$pass" = "prog,scan"; then
  59716. + libs="$deplibs"
  59717. + deplibs=
  59718. + fi
  59719. + if test "$linkmode" = prog; then
  59720. + case $pass in
  59721. + dlopen) libs="$dlfiles" ;;
  59722. + dlpreopen) libs="$dlprefiles" ;;
  59723. + link)
  59724. + libs="$deplibs %DEPLIBS%"
  59725. + test "X$link_all_deplibs" != Xno && libs="$libs $dependency_libs"
  59726. + ;;
  59727. + esac
  59728. + fi
  59729. + if test "$linkmode,$pass" = "lib,dlpreopen"; then
  59730. + # Collect and forward deplibs of preopened libtool libs
  59731. + for lib in $dlprefiles; do
  59732. + # Ignore non-libtool-libs
  59733. + dependency_libs=
  59734. + case $lib in
  59735. + *.la) func_source "$lib" ;;
  59736. + esac
  59737. +
  59738. + # Collect preopened libtool deplibs, except any this library
  59739. + # has declared as weak libs
  59740. + for deplib in $dependency_libs; do
  59741. + deplib_base=`$ECHO "X$deplib" | $Xsed -e "$basename"`
  59742. + case " $weak_libs " in
  59743. + *" $deplib_base "*) ;;
  59744. + *) deplibs="$deplibs $deplib" ;;
  59745. + esac
  59746. + done
  59747. + done
  59748. + libs="$dlprefiles"
  59749. + fi
  59750. + if test "$pass" = dlopen; then
  59751. + # Collect dlpreopened libraries
  59752. + save_deplibs="$deplibs"
  59753. + deplibs=
  59754. + fi
  59755. +
  59756. + for deplib in $libs; do
  59757. + lib=
  59758. + found=no
  59759. + case $deplib in
  59760. + -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe|-threads)
  59761. + if test "$linkmode,$pass" = "prog,link"; then
  59762. + compile_deplibs="$deplib $compile_deplibs"
  59763. + finalize_deplibs="$deplib $finalize_deplibs"
  59764. + else
  59765. + compiler_flags="$compiler_flags $deplib"
  59766. + if test "$linkmode" = lib ; then
  59767. + case "$new_inherited_linker_flags " in
  59768. + *" $deplib "*) ;;
  59769. + * ) new_inherited_linker_flags="$new_inherited_linker_flags $deplib" ;;
  59770. + esac
  59771. + fi
  59772. + fi
  59773. + continue
  59774. + ;;
  59775. + -l*)
  59776. + if test "$linkmode" != lib && test "$linkmode" != prog; then
  59777. + func_warning "\`-l' is ignored for archives/objects"
  59778. + continue
  59779. + fi
  59780. + func_stripname '-l' '' "$deplib"
  59781. + name=$func_stripname_result
  59782. + if test "$linkmode" = lib; then
  59783. + searchdirs="$newlib_search_path $lib_search_path $compiler_lib_search_dirs $sys_lib_search_path $shlib_search_path"
  59784. + else
  59785. + searchdirs="$newlib_search_path $lib_search_path $sys_lib_search_path $shlib_search_path"
  59786. + fi
  59787. + for searchdir in $searchdirs; do
  59788. + for search_ext in .la $std_shrext .so .a; do
  59789. + # Search the libtool library
  59790. + lib="$searchdir/lib${name}${search_ext}"
  59791. + if test -f "$lib"; then
  59792. + if test "$search_ext" = ".la"; then
  59793. + found=yes
  59794. + else
  59795. + found=no
  59796. + fi
  59797. + break 2
  59798. + fi
  59799. + done
  59800. + done
  59801. + if test "$found" != yes; then
  59802. + # deplib doesn't seem to be a libtool library
  59803. + if test "$linkmode,$pass" = "prog,link"; then
  59804. + compile_deplibs="$deplib $compile_deplibs"
  59805. + finalize_deplibs="$deplib $finalize_deplibs"
  59806. + else
  59807. + deplibs="$deplib $deplibs"
  59808. + test "$linkmode" = lib && newdependency_libs="$deplib $newdependency_libs"
  59809. + fi
  59810. + continue
  59811. + else # deplib is a libtool library
  59812. + # If $allow_libtool_libs_with_static_runtimes && $deplib is a stdlib,
  59813. + # We need to do some special things here, and not later.
  59814. + if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
  59815. + case " $predeps $postdeps " in
  59816. + *" $deplib "*)
  59817. + if func_lalib_p "$lib"; then
  59818. + library_names=
  59819. + old_library=
  59820. + func_source "$lib"
  59821. + for l in $old_library $library_names; do
  59822. + ll="$l"
  59823. + done
  59824. + if test "X$ll" = "X$old_library" ; then # only static version available
  59825. + found=no
  59826. + func_dirname "$lib" "" "."
  59827. + ladir="$func_dirname_result"
  59828. + lib=$ladir/$old_library
  59829. + if test "$linkmode,$pass" = "prog,link"; then
  59830. + compile_deplibs="$deplib $compile_deplibs"
  59831. + finalize_deplibs="$deplib $finalize_deplibs"
  59832. + else
  59833. + deplibs="$deplib $deplibs"
  59834. + test "$linkmode" = lib && newdependency_libs="$deplib $newdependency_libs"
  59835. + fi
  59836. + continue
  59837. + fi
  59838. + fi
  59839. + ;;
  59840. + *) ;;
  59841. + esac
  59842. + fi
  59843. + fi
  59844. + ;; # -l
  59845. + *.ltframework)
  59846. + if test "$linkmode,$pass" = "prog,link"; then
  59847. + compile_deplibs="$deplib $compile_deplibs"
  59848. + finalize_deplibs="$deplib $finalize_deplibs"
  59849. + else
  59850. + deplibs="$deplib $deplibs"
  59851. + if test "$linkmode" = lib ; then
  59852. + case "$new_inherited_linker_flags " in
  59853. + *" $deplib "*) ;;
  59854. + * ) new_inherited_linker_flags="$new_inherited_linker_flags $deplib" ;;
  59855. + esac
  59856. + fi
  59857. + fi
  59858. + continue
  59859. + ;;
  59860. + -L*)
  59861. + case $linkmode in
  59862. + lib)
  59863. + deplibs="$deplib $deplibs"
  59864. + test "$pass" = conv && continue
  59865. + newdependency_libs="$deplib $newdependency_libs"
  59866. + func_stripname '-L' '' "$deplib"
  59867. + newlib_search_path="$newlib_search_path $func_stripname_result"
  59868. + ;;
  59869. + prog)
  59870. + if test "$pass" = conv; then
  59871. + deplibs="$deplib $deplibs"
  59872. + continue
  59873. + fi
  59874. + if test "$pass" = scan; then
  59875. + deplibs="$deplib $deplibs"
  59876. + else
  59877. + compile_deplibs="$deplib $compile_deplibs"
  59878. + finalize_deplibs="$deplib $finalize_deplibs"
  59879. + fi
  59880. + func_stripname '-L' '' "$deplib"
  59881. + newlib_search_path="$newlib_search_path $func_stripname_result"
  59882. + ;;
  59883. + *)
  59884. + func_warning "\`-L' is ignored for archives/objects"
  59885. + ;;
  59886. + esac # linkmode
  59887. + continue
  59888. + ;; # -L
  59889. + -R*)
  59890. + if test "$pass" = link; then
  59891. + func_stripname '-R' '' "$deplib"
  59892. + dir=$func_stripname_result
  59893. + # Make sure the xrpath contains only unique directories.
  59894. + case "$xrpath " in
  59895. + *" $dir "*) ;;
  59896. + *) xrpath="$xrpath $dir" ;;
  59897. + esac
  59898. + fi
  59899. + deplibs="$deplib $deplibs"
  59900. + continue
  59901. + ;;
  59902. + *.la) lib="$deplib" ;;
  59903. + *.$libext)
  59904. + if test "$pass" = conv; then
  59905. + deplibs="$deplib $deplibs"
  59906. + continue
  59907. + fi
  59908. + case $linkmode in
  59909. + lib)
  59910. + # Linking convenience modules into shared libraries is allowed,
  59911. + # but linking other static libraries is non-portable.
  59912. + case " $dlpreconveniencelibs " in
  59913. + *" $deplib "*) ;;
  59914. + *)
  59915. + valid_a_lib=no
  59916. + case $deplibs_check_method in
  59917. + match_pattern*)
  59918. + set dummy $deplibs_check_method; shift
  59919. + match_pattern_regex=`expr "$deplibs_check_method" : "$1 \(.*\)"`
  59920. + if eval "\$ECHO \"X$deplib\"" 2>/dev/null | $Xsed -e 10q \
  59921. + | $EGREP "$match_pattern_regex" > /dev/null; then
  59922. + valid_a_lib=yes
  59923. + fi
  59924. + ;;
  59925. + pass_all)
  59926. + valid_a_lib=yes
  59927. + ;;
  59928. + esac
  59929. + if test "$valid_a_lib" != yes; then
  59930. + $ECHO
  59931. + $ECHO "*** Warning: Trying to link with static lib archive $deplib."
  59932. + $ECHO "*** I have the capability to make that library automatically link in when"
  59933. + $ECHO "*** you link to this library. But I can only do this if you have a"
  59934. + $ECHO "*** shared version of the library, which you do not appear to have"
  59935. + $ECHO "*** because the file extensions .$libext of this argument makes me believe"
  59936. + $ECHO "*** that it is just a static archive that I should not use here."
  59937. + else
  59938. + $ECHO
  59939. + $ECHO "*** Warning: Linking the shared library $output against the"
  59940. + $ECHO "*** static library $deplib is not portable!"
  59941. + deplibs="$deplib $deplibs"
  59942. + fi
  59943. + ;;
  59944. + esac
  59945. + continue
  59946. + ;;
  59947. + prog)
  59948. + if test "$pass" != link; then
  59949. + deplibs="$deplib $deplibs"
  59950. + else
  59951. + compile_deplibs="$deplib $compile_deplibs"
  59952. + finalize_deplibs="$deplib $finalize_deplibs"
  59953. + fi
  59954. + continue
  59955. + ;;
  59956. + esac # linkmode
  59957. + ;; # *.$libext
  59958. + *.lo | *.$objext)
  59959. + if test "$pass" = conv; then
  59960. + deplibs="$deplib $deplibs"
  59961. + elif test "$linkmode" = prog; then
  59962. + if test "$pass" = dlpreopen || test "$dlopen_support" != yes || test "$build_libtool_libs" = no; then
  59963. + # If there is no dlopen support or we're linking statically,
  59964. + # we need to preload.
  59965. + newdlprefiles="$newdlprefiles $deplib"
  59966. + compile_deplibs="$deplib $compile_deplibs"
  59967. + finalize_deplibs="$deplib $finalize_deplibs"
  59968. + else
  59969. + newdlfiles="$newdlfiles $deplib"
  59970. + fi
  59971. + fi
  59972. + continue
  59973. + ;;
  59974. + %DEPLIBS%)
  59975. + alldeplibs=yes
  59976. + continue
  59977. + ;;
  59978. + esac # case $deplib
  59979. +
  59980. + if test "$found" = yes || test -f "$lib"; then :
  59981. + else
  59982. + func_fatal_error "cannot find the library \`$lib' or unhandled argument \`$deplib'"
  59983. + fi
  59984. +
  59985. + # Check to see that this really is a libtool archive.
  59986. + func_lalib_unsafe_p "$lib" \
  59987. + || func_fatal_error "\`$lib' is not a valid libtool archive"
  59988. +
  59989. + func_dirname "$lib" "" "."
  59990. + ladir="$func_dirname_result"
  59991. +
  59992. + dlname=
  59993. + dlopen=
  59994. + dlpreopen=
  59995. + libdir=
  59996. + library_names=
  59997. + old_library=
  59998. + inherited_linker_flags=
  59999. + # If the library was installed with an old release of libtool,
  60000. + # it will not redefine variables installed, or shouldnotlink
  60001. + installed=yes
  60002. + shouldnotlink=no
  60003. + avoidtemprpath=
  60004. +
  60005. +
  60006. + # Read the .la file
  60007. + func_source "$lib"
  60008. +
  60009. + # Convert "-framework foo" to "foo.ltframework"
  60010. + if test -n "$inherited_linker_flags"; then
  60011. + tmp_inherited_linker_flags=`$ECHO "X$inherited_linker_flags" | $Xsed -e 's/-framework \([^ $]*\)/\1.ltframework/g'`
  60012. + for tmp_inherited_linker_flag in $tmp_inherited_linker_flags; do
  60013. + case " $new_inherited_linker_flags " in
  60014. + *" $tmp_inherited_linker_flag "*) ;;
  60015. + *) new_inherited_linker_flags="$new_inherited_linker_flags $tmp_inherited_linker_flag";;
  60016. + esac
  60017. + done
  60018. + fi
  60019. + dependency_libs=`$ECHO "X $dependency_libs" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'`
  60020. + if test "$linkmode,$pass" = "lib,link" ||
  60021. + test "$linkmode,$pass" = "prog,scan" ||
  60022. + { test "$linkmode" != prog && test "$linkmode" != lib; }; then
  60023. + test -n "$dlopen" && dlfiles="$dlfiles $dlopen"
  60024. + test -n "$dlpreopen" && dlprefiles="$dlprefiles $dlpreopen"
  60025. + fi
  60026. +
  60027. + if test "$pass" = conv; then
  60028. + # Only check for convenience libraries
  60029. + deplibs="$lib $deplibs"
  60030. + if test -z "$libdir"; then
  60031. + if test -z "$old_library"; then
  60032. + func_fatal_error "cannot find name of link library for \`$lib'"
  60033. + fi
  60034. + # It is a libtool convenience library, so add in its objects.
  60035. + convenience="$convenience $ladir/$objdir/$old_library"
  60036. + old_convenience="$old_convenience $ladir/$objdir/$old_library"
  60037. + tmp_libs=
  60038. + for deplib in $dependency_libs; do
  60039. + deplibs="$deplib $deplibs"
  60040. + if $opt_duplicate_deps ; then
  60041. + case "$tmp_libs " in
  60042. + *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
  60043. + esac
  60044. + fi
  60045. + tmp_libs="$tmp_libs $deplib"
  60046. + done
  60047. + elif test "$linkmode" != prog && test "$linkmode" != lib; then
  60048. + func_fatal_error "\`$lib' is not a convenience library"
  60049. + fi
  60050. + continue
  60051. + fi # $pass = conv
  60052. +
  60053. +
  60054. + # Get the name of the library we link against.
  60055. + linklib=
  60056. + for l in $old_library $library_names; do
  60057. + linklib="$l"
  60058. + done
  60059. + if test -z "$linklib"; then
  60060. + func_fatal_error "cannot find name of link library for \`$lib'"
  60061. + fi
  60062. +
  60063. + # This library was specified with -dlopen.
  60064. + if test "$pass" = dlopen; then
  60065. + if test -z "$libdir"; then
  60066. + func_fatal_error "cannot -dlopen a convenience library: \`$lib'"
  60067. + fi
  60068. + if test -z "$dlname" ||
  60069. + test "$dlopen_support" != yes ||
  60070. + test "$build_libtool_libs" = no; then
  60071. + # If there is no dlname, no dlopen support or we're linking
  60072. + # statically, we need to preload. We also need to preload any
  60073. + # dependent libraries so libltdl's deplib preloader doesn't
  60074. + # bomb out in the load deplibs phase.
  60075. + dlprefiles="$dlprefiles $lib $dependency_libs"
  60076. + else
  60077. + newdlfiles="$newdlfiles $lib"
  60078. + fi
  60079. + continue
  60080. + fi # $pass = dlopen
  60081. +
  60082. + # We need an absolute path.
  60083. + case $ladir in
  60084. + [\\/]* | [A-Za-z]:[\\/]*) abs_ladir="$ladir" ;;
  60085. + *)
  60086. + abs_ladir=`cd "$ladir" && pwd`
  60087. + if test -z "$abs_ladir"; then
  60088. + func_warning "cannot determine absolute directory name of \`$ladir'"
  60089. + func_warning "passing it literally to the linker, although it might fail"
  60090. + abs_ladir="$ladir"
  60091. + fi
  60092. + ;;
  60093. + esac
  60094. + func_basename "$lib"
  60095. + laname="$func_basename_result"
  60096. +
  60097. + # Find the relevant object directory and library name.
  60098. + if test "X$installed" = Xyes; then
  60099. + if test ! -f "$libdir/$linklib" && test -f "$abs_ladir/$linklib"; then
  60100. + func_warning "library \`$lib' was moved."
  60101. + dir="$ladir"
  60102. + absdir="$abs_ladir"
  60103. + libdir="$abs_ladir"
  60104. + else
  60105. + dir="$libdir"
  60106. + absdir="$libdir"
  60107. + fi
  60108. + test "X$hardcode_automatic" = Xyes && avoidtemprpath=yes
  60109. + else
  60110. + if test ! -f "$ladir/$objdir/$linklib" && test -f "$abs_ladir/$linklib"; then
  60111. + dir="$ladir"
  60112. + absdir="$abs_ladir"
  60113. + # Remove this search path later
  60114. + notinst_path="$notinst_path $abs_ladir"
  60115. + else
  60116. + dir="$ladir/$objdir"
  60117. + absdir="$abs_ladir/$objdir"
  60118. + # Remove this search path later
  60119. + notinst_path="$notinst_path $abs_ladir"
  60120. + fi
  60121. + fi # $installed = yes
  60122. + func_stripname 'lib' '.la' "$laname"
  60123. + name=$func_stripname_result
  60124. +
  60125. + # This library was specified with -dlpreopen.
  60126. + if test "$pass" = dlpreopen; then
  60127. + if test -z "$libdir" && test "$linkmode" = prog; then
  60128. + func_fatal_error "only libraries may -dlpreopen a convenience library: \`$lib'"
  60129. + fi
  60130. + # Prefer using a static library (so that no silly _DYNAMIC symbols
  60131. + # are required to link).
  60132. + if test -n "$old_library"; then
  60133. + newdlprefiles="$newdlprefiles $dir/$old_library"
  60134. + # Keep a list of preopened convenience libraries to check
  60135. + # that they are being used correctly in the link pass.
  60136. + test -z "$libdir" && \
  60137. + dlpreconveniencelibs="$dlpreconveniencelibs $dir/$old_library"
  60138. + # Otherwise, use the dlname, so that lt_dlopen finds it.
  60139. + elif test -n "$dlname"; then
  60140. + newdlprefiles="$newdlprefiles $dir/$dlname"
  60141. + else
  60142. + newdlprefiles="$newdlprefiles $dir/$linklib"
  60143. + fi
  60144. + fi # $pass = dlpreopen
  60145. +
  60146. + if test -z "$libdir"; then
  60147. + # Link the convenience library
  60148. + if test "$linkmode" = lib; then
  60149. + deplibs="$dir/$old_library $deplibs"
  60150. + elif test "$linkmode,$pass" = "prog,link"; then
  60151. + compile_deplibs="$dir/$old_library $compile_deplibs"
  60152. + finalize_deplibs="$dir/$old_library $finalize_deplibs"
  60153. + else
  60154. + deplibs="$lib $deplibs" # used for prog,scan pass
  60155. + fi
  60156. + continue
  60157. + fi
  60158. +
  60159. +
  60160. + if test "$linkmode" = prog && test "$pass" != link; then
  60161. + newlib_search_path="$newlib_search_path $ladir"
  60162. + deplibs="$lib $deplibs"
  60163. +
  60164. + linkalldeplibs=no
  60165. + if test "$link_all_deplibs" != no || test -z "$library_names" ||
  60166. + test "$build_libtool_libs" = no; then
  60167. + linkalldeplibs=yes
  60168. + fi
  60169. +
  60170. + tmp_libs=
  60171. + for deplib in $dependency_libs; do
  60172. + case $deplib in
  60173. + -L*) func_stripname '-L' '' "$deplib"
  60174. + newlib_search_path="$newlib_search_path $func_stripname_result"
  60175. + ;;
  60176. + esac
  60177. + # Need to link against all dependency_libs?
  60178. + if test "$linkalldeplibs" = yes; then
  60179. + deplibs="$deplib $deplibs"
  60180. + else
  60181. + # Need to hardcode shared library paths
  60182. + # or/and link against static libraries
  60183. + newdependency_libs="$deplib $newdependency_libs"
  60184. + fi
  60185. + if $opt_duplicate_deps ; then
  60186. + case "$tmp_libs " in
  60187. + *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
  60188. + esac
  60189. + fi
  60190. + tmp_libs="$tmp_libs $deplib"
  60191. + done # for deplib
  60192. + continue
  60193. + fi # $linkmode = prog...
  60194. +
  60195. + if test "$linkmode,$pass" = "prog,link"; then
  60196. + if test -n "$library_names" &&
  60197. + { { test "$prefer_static_libs" = no ||
  60198. + test "$prefer_static_libs,$installed" = "built,yes"; } ||
  60199. + test -z "$old_library"; }; then
  60200. + # We need to hardcode the library path
  60201. + if test -n "$shlibpath_var" && test -z "$avoidtemprpath" ; then
  60202. + # Make sure the rpath contains only unique directories.
  60203. + case "$temp_rpath:" in
  60204. + *"$absdir:"*) ;;
  60205. + *) temp_rpath="$temp_rpath$absdir:" ;;
  60206. + esac
  60207. + fi
  60208. +
  60209. + # Hardcode the library path.
  60210. + # Skip directories that are in the system default run-time
  60211. + # search path.
  60212. + case " $sys_lib_dlsearch_path " in
  60213. + *" $absdir "*) ;;
  60214. + *)
  60215. + case "$compile_rpath " in
  60216. + *" $absdir "*) ;;
  60217. + *) compile_rpath="$compile_rpath $absdir"
  60218. + esac
  60219. + ;;
  60220. + esac
  60221. + case " $sys_lib_dlsearch_path " in
  60222. + *" $libdir "*) ;;
  60223. + *)
  60224. + case "$finalize_rpath " in
  60225. + *" $libdir "*) ;;
  60226. + *) finalize_rpath="$finalize_rpath $libdir"
  60227. + esac
  60228. + ;;
  60229. + esac
  60230. + fi # $linkmode,$pass = prog,link...
  60231. +
  60232. + if test "$alldeplibs" = yes &&
  60233. + { test "$deplibs_check_method" = pass_all ||
  60234. + { test "$build_libtool_libs" = yes &&
  60235. + test -n "$library_names"; }; }; then
  60236. + # We only need to search for static libraries
  60237. + continue
  60238. + fi
  60239. + fi
  60240. +
  60241. + link_static=no # Whether the deplib will be linked statically
  60242. + use_static_libs=$prefer_static_libs
  60243. + if test "$use_static_libs" = built && test "$installed" = yes; then
  60244. + use_static_libs=no
  60245. + fi
  60246. + if test -n "$library_names" &&
  60247. + { test "$use_static_libs" = no || test -z "$old_library"; }; then
  60248. + case $host in
  60249. + *cygwin* | *mingw* | *cegcc*)
  60250. + # No point in relinking DLLs because paths are not encoded
  60251. + notinst_deplibs="$notinst_deplibs $lib"
  60252. + need_relink=no
  60253. + ;;
  60254. + *)
  60255. + if test "$installed" = no; then
  60256. + notinst_deplibs="$notinst_deplibs $lib"
  60257. + need_relink=yes
  60258. + fi
  60259. + ;;
  60260. + esac
  60261. + # This is a shared library
  60262. +
  60263. + # Warn about portability, can't link against -module's on some
  60264. + # systems (darwin). Don't bleat about dlopened modules though!
  60265. + dlopenmodule=""
  60266. + for dlpremoduletest in $dlprefiles; do
  60267. + if test "X$dlpremoduletest" = "X$lib"; then
  60268. + dlopenmodule="$dlpremoduletest"
  60269. + break
  60270. + fi
  60271. + done
  60272. + if test -z "$dlopenmodule" && test "$shouldnotlink" = yes && test "$pass" = link; then
  60273. + $ECHO
  60274. + if test "$linkmode" = prog; then
  60275. + $ECHO "*** Warning: Linking the executable $output against the loadable module"
  60276. + else
  60277. + $ECHO "*** Warning: Linking the shared library $output against the loadable module"
  60278. + fi
  60279. + $ECHO "*** $linklib is not portable!"
  60280. + fi
  60281. + if test "$linkmode" = lib &&
  60282. + test "$hardcode_into_libs" = yes; then
  60283. + # Hardcode the library path.
  60284. + # Skip directories that are in the system default run-time
  60285. + # search path.
  60286. + case " $sys_lib_dlsearch_path " in
  60287. + *" $absdir "*) ;;
  60288. + *)
  60289. + case "$compile_rpath " in
  60290. + *" $absdir "*) ;;
  60291. + *) compile_rpath="$compile_rpath $absdir"
  60292. + esac
  60293. + ;;
  60294. + esac
  60295. + case " $sys_lib_dlsearch_path " in
  60296. + *" $libdir "*) ;;
  60297. + *)
  60298. + case "$finalize_rpath " in
  60299. + *" $libdir "*) ;;
  60300. + *) finalize_rpath="$finalize_rpath $libdir"
  60301. + esac
  60302. + ;;
  60303. + esac
  60304. + fi
  60305. +
  60306. + if test -n "$old_archive_from_expsyms_cmds"; then
  60307. + # figure out the soname
  60308. + set dummy $library_names
  60309. + shift
  60310. + realname="$1"
  60311. + shift
  60312. + libname=`eval "\\$ECHO \"$libname_spec\""`
  60313. + # use dlname if we got it. it's perfectly good, no?
  60314. + if test -n "$dlname"; then
  60315. + soname="$dlname"
  60316. + elif test -n "$soname_spec"; then
  60317. + # bleh windows
  60318. + case $host in
  60319. + *cygwin* | mingw* | *cegcc*)
  60320. + func_arith $current - $age
  60321. + major=$func_arith_result
  60322. + versuffix="-$major"
  60323. + ;;
  60324. + esac
  60325. + eval soname=\"$soname_spec\"
  60326. + else
  60327. + soname="$realname"
  60328. + fi
  60329. +
  60330. + # Make a new name for the extract_expsyms_cmds to use
  60331. + soroot="$soname"
  60332. + func_basename "$soroot"
  60333. + soname="$func_basename_result"
  60334. + func_stripname 'lib' '.dll' "$soname"
  60335. + newlib=libimp-$func_stripname_result.a
  60336. +
  60337. + # If the library has no export list, then create one now
  60338. + if test -f "$output_objdir/$soname-def"; then :
  60339. + else
  60340. + func_verbose "extracting exported symbol list from \`$soname'"
  60341. + func_execute_cmds "$extract_expsyms_cmds" 'exit $?'
  60342. + fi
  60343. +
  60344. + # Create $newlib
  60345. + if test -f "$output_objdir/$newlib"; then :; else
  60346. + func_verbose "generating import library for \`$soname'"
  60347. + func_execute_cmds "$old_archive_from_expsyms_cmds" 'exit $?'
  60348. + fi
  60349. + # make sure the library variables are pointing to the new library
  60350. + dir=$output_objdir
  60351. + linklib=$newlib
  60352. + fi # test -n "$old_archive_from_expsyms_cmds"
  60353. +
  60354. + if test "$linkmode" = prog || test "$mode" != relink; then
  60355. + add_shlibpath=
  60356. + add_dir=
  60357. + add=
  60358. + lib_linked=yes
  60359. + case $hardcode_action in
  60360. + immediate | unsupported)
  60361. + if test "$hardcode_direct" = no; then
  60362. + add="$dir/$linklib"
  60363. + case $host in
  60364. + *-*-sco3.2v5.0.[024]*) add_dir="-L$dir" ;;
  60365. + *-*-sysv4*uw2*) add_dir="-L$dir" ;;
  60366. + *-*-sysv5OpenUNIX* | *-*-sysv5UnixWare7.[01].[10]* | \
  60367. + *-*-unixware7*) add_dir="-L$dir" ;;
  60368. + *-*-darwin* )
  60369. + # if the lib is a (non-dlopened) module then we can not
  60370. + # link against it, someone is ignoring the earlier warnings
  60371. + if /usr/bin/file -L $add 2> /dev/null |
  60372. + $GREP ": [^:]* bundle" >/dev/null ; then
  60373. + if test "X$dlopenmodule" != "X$lib"; then
  60374. + $ECHO "*** Warning: lib $linklib is a module, not a shared library"
  60375. + if test -z "$old_library" ; then
  60376. + $ECHO
  60377. + $ECHO "*** And there doesn't seem to be a static archive available"
  60378. + $ECHO "*** The link will probably fail, sorry"
  60379. + else
  60380. + add="$dir/$old_library"
  60381. + fi
  60382. + elif test -n "$old_library"; then
  60383. + add="$dir/$old_library"
  60384. + fi
  60385. + fi
  60386. + esac
  60387. + elif test "$hardcode_minus_L" = no; then
  60388. + case $host in
  60389. + *-*-sunos*) add_shlibpath="$dir" ;;
  60390. + esac
  60391. + add_dir="-L$dir"
  60392. + add="-l$name"
  60393. + elif test "$hardcode_shlibpath_var" = no; then
  60394. + add_shlibpath="$dir"
  60395. + add="-l$name"
  60396. + else
  60397. + lib_linked=no
  60398. + fi
  60399. + ;;
  60400. + relink)
  60401. + if test "$hardcode_direct" = yes &&
  60402. + test "$hardcode_direct_absolute" = no; then
  60403. + add="$dir/$linklib"
  60404. + elif test "$hardcode_minus_L" = yes; then
  60405. + add_dir="-L$dir"
  60406. + # Try looking first in the location we're being installed to.
  60407. + if test -n "$inst_prefix_dir"; then
  60408. + case $libdir in
  60409. + [\\/]*)
  60410. + add_dir="$add_dir -L$inst_prefix_dir$libdir"
  60411. + ;;
  60412. + esac
  60413. + fi
  60414. + add="-l$name"
  60415. + elif test "$hardcode_shlibpath_var" = yes; then
  60416. + add_shlibpath="$dir"
  60417. + add="-l$name"
  60418. + else
  60419. + lib_linked=no
  60420. + fi
  60421. + ;;
  60422. + *) lib_linked=no ;;
  60423. + esac
  60424. +
  60425. + if test "$lib_linked" != yes; then
  60426. + func_fatal_configuration "unsupported hardcode properties"
  60427. + fi
  60428. +
  60429. + if test -n "$add_shlibpath"; then
  60430. + case :$compile_shlibpath: in
  60431. + *":$add_shlibpath:"*) ;;
  60432. + *) compile_shlibpath="$compile_shlibpath$add_shlibpath:" ;;
  60433. + esac
  60434. + fi
  60435. + if test "$linkmode" = prog; then
  60436. + test -n "$add_dir" && compile_deplibs="$add_dir $compile_deplibs"
  60437. + test -n "$add" && compile_deplibs="$add $compile_deplibs"
  60438. + else
  60439. + test -n "$add_dir" && deplibs="$add_dir $deplibs"
  60440. + test -n "$add" && deplibs="$add $deplibs"
  60441. + if test "$hardcode_direct" != yes &&
  60442. + test "$hardcode_minus_L" != yes &&
  60443. + test "$hardcode_shlibpath_var" = yes; then
  60444. + case :$finalize_shlibpath: in
  60445. + *":$libdir:"*) ;;
  60446. + *) finalize_shlibpath="$finalize_shlibpath$libdir:" ;;
  60447. + esac
  60448. + fi
  60449. + fi
  60450. + fi
  60451. +
  60452. + if test "$linkmode" = prog || test "$mode" = relink; then
  60453. + add_shlibpath=
  60454. + add_dir=
  60455. + add=
  60456. + # Finalize command for both is simple: just hardcode it.
  60457. + if test "$hardcode_direct" = yes &&
  60458. + test "$hardcode_direct_absolute" = no; then
  60459. + add="$libdir/$linklib"
  60460. + elif test "$hardcode_minus_L" = yes; then
  60461. + add_dir="-L$libdir"
  60462. + add="-l$name"
  60463. + elif test "$hardcode_shlibpath_var" = yes; then
  60464. + case :$finalize_shlibpath: in
  60465. + *":$libdir:"*) ;;
  60466. + *) finalize_shlibpath="$finalize_shlibpath$libdir:" ;;
  60467. + esac
  60468. + add="-l$name"
  60469. + elif test "$hardcode_automatic" = yes; then
  60470. + if test -n "$inst_prefix_dir" &&
  60471. + test -f "$inst_prefix_dir$libdir/$linklib" ; then
  60472. + add="$inst_prefix_dir$libdir/$linklib"
  60473. + else
  60474. + add="$libdir/$linklib"
  60475. + fi
  60476. + else
  60477. + # We cannot seem to hardcode it, guess we'll fake it.
  60478. + add_dir="-L$libdir"
  60479. + # Try looking first in the location we're being installed to.
  60480. + if test -n "$inst_prefix_dir"; then
  60481. + case $libdir in
  60482. + [\\/]*)
  60483. + add_dir="$add_dir -L$inst_prefix_dir$libdir"
  60484. + ;;
  60485. + esac
  60486. + fi
  60487. + add="-l$name"
  60488. + fi
  60489. +
  60490. + if test "$linkmode" = prog; then
  60491. + test -n "$add_dir" && finalize_deplibs="$add_dir $finalize_deplibs"
  60492. + test -n "$add" && finalize_deplibs="$add $finalize_deplibs"
  60493. + else
  60494. + test -n "$add_dir" && deplibs="$add_dir $deplibs"
  60495. + test -n "$add" && deplibs="$add $deplibs"
  60496. + fi
  60497. + fi
  60498. + elif test "$linkmode" = prog; then
  60499. + # Here we assume that one of hardcode_direct or hardcode_minus_L
  60500. + # is not unsupported. This is valid on all known static and
  60501. + # shared platforms.
  60502. + if test "$hardcode_direct" != unsupported; then
  60503. + test -n "$old_library" && linklib="$old_library"
  60504. + compile_deplibs="$dir/$linklib $compile_deplibs"
  60505. + finalize_deplibs="$dir/$linklib $finalize_deplibs"
  60506. + else
  60507. + compile_deplibs="-l$name -L$dir $compile_deplibs"
  60508. + finalize_deplibs="-l$name -L$dir $finalize_deplibs"
  60509. + fi
  60510. + elif test "$build_libtool_libs" = yes; then
  60511. + # Not a shared library
  60512. + if test "$deplibs_check_method" != pass_all; then
  60513. + # We're trying link a shared library against a static one
  60514. + # but the system doesn't support it.
  60515. +
  60516. + # Just print a warning and add the library to dependency_libs so
  60517. + # that the program can be linked against the static library.
  60518. + $ECHO
  60519. + $ECHO "*** Warning: This system can not link to static lib archive $lib."
  60520. + $ECHO "*** I have the capability to make that library automatically link in when"
  60521. + $ECHO "*** you link to this library. But I can only do this if you have a"
  60522. + $ECHO "*** shared version of the library, which you do not appear to have."
  60523. + if test "$module" = yes; then
  60524. + $ECHO "*** But as you try to build a module library, libtool will still create "
  60525. + $ECHO "*** a static module, that should work as long as the dlopening application"
  60526. + $ECHO "*** is linked with the -dlopen flag to resolve symbols at runtime."
  60527. + if test -z "$global_symbol_pipe"; then
  60528. + $ECHO
  60529. + $ECHO "*** However, this would only work if libtool was able to extract symbol"
  60530. + $ECHO "*** lists from a program, using \`nm' or equivalent, but libtool could"
  60531. + $ECHO "*** not find such a program. So, this module is probably useless."
  60532. + $ECHO "*** \`nm' from GNU binutils and a full rebuild may help."
  60533. + fi
  60534. + if test "$build_old_libs" = no; then
  60535. + build_libtool_libs=module
  60536. + build_old_libs=yes
  60537. + else
  60538. + build_libtool_libs=no
  60539. + fi
  60540. + fi
  60541. + else
  60542. + deplibs="$dir/$old_library $deplibs"
  60543. + link_static=yes
  60544. + fi
  60545. + fi # link shared/static library?
  60546. +
  60547. + if test "$linkmode" = lib; then
  60548. + if test -n "$dependency_libs" &&
  60549. + { test "$hardcode_into_libs" != yes ||
  60550. + test "$build_old_libs" = yes ||
  60551. + test "$link_static" = yes; }; then
  60552. + # Extract -R from dependency_libs
  60553. + temp_deplibs=
  60554. + for libdir in $dependency_libs; do
  60555. + case $libdir in
  60556. + -R*) func_stripname '-R' '' "$libdir"
  60557. + temp_xrpath=$func_stripname_result
  60558. + case " $xrpath " in
  60559. + *" $temp_xrpath "*) ;;
  60560. + *) xrpath="$xrpath $temp_xrpath";;
  60561. + esac;;
  60562. + *) temp_deplibs="$temp_deplibs $libdir";;
  60563. + esac
  60564. + done
  60565. + dependency_libs="$temp_deplibs"
  60566. + fi
  60567. +
  60568. + newlib_search_path="$newlib_search_path $absdir"
  60569. + # Link against this library
  60570. + test "$link_static" = no && newdependency_libs="$abs_ladir/$laname $newdependency_libs"
  60571. + # ... and its dependency_libs
  60572. + tmp_libs=
  60573. + for deplib in $dependency_libs; do
  60574. + newdependency_libs="$deplib $newdependency_libs"
  60575. + if $opt_duplicate_deps ; then
  60576. + case "$tmp_libs " in
  60577. + *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
  60578. + esac
  60579. + fi
  60580. + tmp_libs="$tmp_libs $deplib"
  60581. + done
  60582. +
  60583. + if test "$link_all_deplibs" != no; then
  60584. + # Add the search paths of all dependency libraries
  60585. + for deplib in $dependency_libs; do
  60586. + path=
  60587. + case $deplib in
  60588. + -L*) path="$deplib" ;;
  60589. + *.la)
  60590. + func_dirname "$deplib" "" "."
  60591. + dir="$func_dirname_result"
  60592. + # We need an absolute path.
  60593. + case $dir in
  60594. + [\\/]* | [A-Za-z]:[\\/]*) absdir="$dir" ;;
  60595. + *)
  60596. + absdir=`cd "$dir" && pwd`
  60597. + if test -z "$absdir"; then
  60598. + func_warning "cannot determine absolute directory name of \`$dir'"
  60599. + absdir="$dir"
  60600. + fi
  60601. + ;;
  60602. + esac
  60603. + if $GREP "^installed=no" $deplib > /dev/null; then
  60604. + case $host in
  60605. + *-*-darwin*)
  60606. + depdepl=
  60607. + eval deplibrary_names=`${SED} -n -e 's/^library_names=\(.*\)$/\1/p' $deplib`
  60608. + if test -n "$deplibrary_names" ; then
  60609. + for tmp in $deplibrary_names ; do
  60610. + depdepl=$tmp
  60611. + done
  60612. + if test -f "$absdir/$objdir/$depdepl" ; then
  60613. + depdepl="$absdir/$objdir/$depdepl"
  60614. + darwin_install_name=`${OTOOL} -L $depdepl | awk '{if (NR == 2) {print $1;exit}}'`
  60615. + if test -z "$darwin_install_name"; then
  60616. + darwin_install_name=`${OTOOL64} -L $depdepl | awk '{if (NR == 2) {print $1;exit}}'`
  60617. + fi
  60618. + compiler_flags="$compiler_flags ${wl}-dylib_file ${wl}${darwin_install_name}:${depdepl}"
  60619. + linker_flags="$linker_flags -dylib_file ${darwin_install_name}:${depdepl}"
  60620. + path=
  60621. + fi
  60622. + fi
  60623. + ;;
  60624. + *)
  60625. + path="-L$absdir/$objdir"
  60626. + ;;
  60627. + esac
  60628. + else
  60629. + eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib`
  60630. + test -z "$libdir" && \
  60631. + func_fatal_error "\`$deplib' is not a valid libtool archive"
  60632. + test "$absdir" != "$libdir" && \
  60633. + func_warning "\`$deplib' seems to be moved"
  60634. +
  60635. + path="-L$absdir"
  60636. + fi
  60637. + ;;
  60638. + esac
  60639. + case " $deplibs " in
  60640. + *" $path "*) ;;
  60641. + *) deplibs="$path $deplibs" ;;
  60642. + esac
  60643. + done
  60644. + fi # link_all_deplibs != no
  60645. + fi # linkmode = lib
  60646. + done # for deplib in $libs
  60647. + if test "$pass" = link; then
  60648. + if test "$linkmode" = "prog"; then
  60649. + compile_deplibs="$new_inherited_linker_flags $compile_deplibs"
  60650. + finalize_deplibs="$new_inherited_linker_flags $finalize_deplibs"
  60651. + else
  60652. + compiler_flags="$compiler_flags "`$ECHO "X $new_inherited_linker_flags" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'`
  60653. + fi
  60654. + fi
  60655. + dependency_libs="$newdependency_libs"
  60656. + if test "$pass" = dlpreopen; then
  60657. + # Link the dlpreopened libraries before other libraries
  60658. + for deplib in $save_deplibs; do
  60659. + deplibs="$deplib $deplibs"
  60660. + done
  60661. + fi
  60662. + if test "$pass" != dlopen; then
  60663. + if test "$pass" != conv; then
  60664. + # Make sure lib_search_path contains only unique directories.
  60665. + lib_search_path=
  60666. + for dir in $newlib_search_path; do
  60667. + case "$lib_search_path " in
  60668. + *" $dir "*) ;;
  60669. + *) lib_search_path="$lib_search_path $dir" ;;
  60670. + esac
  60671. + done
  60672. + newlib_search_path=
  60673. + fi
  60674. +
  60675. + if test "$linkmode,$pass" != "prog,link"; then
  60676. + vars="deplibs"
  60677. + else
  60678. + vars="compile_deplibs finalize_deplibs"
  60679. + fi
  60680. + for var in $vars dependency_libs; do
  60681. + # Add libraries to $var in reverse order
  60682. + eval tmp_libs=\"\$$var\"
  60683. + new_libs=
  60684. + for deplib in $tmp_libs; do
  60685. + # FIXME: Pedantically, this is the right thing to do, so
  60686. + # that some nasty dependency loop isn't accidentally
  60687. + # broken:
  60688. + #new_libs="$deplib $new_libs"
  60689. + # Pragmatically, this seems to cause very few problems in
  60690. + # practice:
  60691. + case $deplib in
  60692. + -L*) new_libs="$deplib $new_libs" ;;
  60693. + -R*) ;;
  60694. + *)
  60695. + # And here is the reason: when a library appears more
  60696. + # than once as an explicit dependence of a library, or
  60697. + # is implicitly linked in more than once by the
  60698. + # compiler, it is considered special, and multiple
  60699. + # occurrences thereof are not removed. Compare this
  60700. + # with having the same library being listed as a
  60701. + # dependency of multiple other libraries: in this case,
  60702. + # we know (pedantically, we assume) the library does not
  60703. + # need to be listed more than once, so we keep only the
  60704. + # last copy. This is not always right, but it is rare
  60705. + # enough that we require users that really mean to play
  60706. + # such unportable linking tricks to link the library
  60707. + # using -Wl,-lname, so that libtool does not consider it
  60708. + # for duplicate removal.
  60709. + case " $specialdeplibs " in
  60710. + *" $deplib "*) new_libs="$deplib $new_libs" ;;
  60711. + *)
  60712. + case " $new_libs " in
  60713. + *" $deplib "*) ;;
  60714. + *) new_libs="$deplib $new_libs" ;;
  60715. + esac
  60716. + ;;
  60717. + esac
  60718. + ;;
  60719. + esac
  60720. + done
  60721. + tmp_libs=
  60722. + for deplib in $new_libs; do
  60723. + case $deplib in
  60724. + -L*)
  60725. + case " $tmp_libs " in
  60726. + *" $deplib "*) ;;
  60727. + *) tmp_libs="$tmp_libs $deplib" ;;
  60728. + esac
  60729. + ;;
  60730. + *) tmp_libs="$tmp_libs $deplib" ;;
  60731. + esac
  60732. + done
  60733. + eval $var=\"$tmp_libs\"
  60734. + done # for var
  60735. + fi
  60736. + # Last step: remove runtime libs from dependency_libs
  60737. + # (they stay in deplibs)
  60738. + tmp_libs=
  60739. + for i in $dependency_libs ; do
  60740. + case " $predeps $postdeps $compiler_lib_search_path " in
  60741. + *" $i "*)
  60742. + i=""
  60743. + ;;
  60744. + esac
  60745. + if test -n "$i" ; then
  60746. + tmp_libs="$tmp_libs $i"
  60747. + fi
  60748. + done
  60749. + dependency_libs=$tmp_libs
  60750. + done # for pass
  60751. + if test "$linkmode" = prog; then
  60752. + dlfiles="$newdlfiles"
  60753. + fi
  60754. + if test "$linkmode" = prog || test "$linkmode" = lib; then
  60755. + dlprefiles="$newdlprefiles"
  60756. + fi
  60757. +
  60758. + case $linkmode in
  60759. + oldlib)
  60760. + if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then
  60761. + func_warning "\`-dlopen' is ignored for archives"
  60762. + fi
  60763. +
  60764. + case " $deplibs" in
  60765. + *\ -l* | *\ -L*)
  60766. + func_warning "\`-l' and \`-L' are ignored for archives" ;;
  60767. + esac
  60768. +
  60769. + test -n "$rpath" && \
  60770. + func_warning "\`-rpath' is ignored for archives"
  60771. +
  60772. + test -n "$xrpath" && \
  60773. + func_warning "\`-R' is ignored for archives"
  60774. +
  60775. + test -n "$vinfo" && \
  60776. + func_warning "\`-version-info/-version-number' is ignored for archives"
  60777. +
  60778. + test -n "$release" && \
  60779. + func_warning "\`-release' is ignored for archives"
  60780. +
  60781. + test -n "$export_symbols$export_symbols_regex" && \
  60782. + func_warning "\`-export-symbols' is ignored for archives"
  60783. +
  60784. + # Now set the variables for building old libraries.
  60785. + build_libtool_libs=no
  60786. + oldlibs="$output"
  60787. + objs="$objs$old_deplibs"
  60788. + ;;
  60789. +
  60790. + lib)
  60791. + # Make sure we only generate libraries of the form `libNAME.la'.
  60792. + case $outputname in
  60793. + lib*)
  60794. + func_stripname 'lib' '.la' "$outputname"
  60795. + name=$func_stripname_result
  60796. + eval shared_ext=\"$shrext_cmds\"
  60797. + eval libname=\"$libname_spec\"
  60798. + ;;
  60799. + *)
  60800. + test "$module" = no && \
  60801. + func_fatal_help "libtool library \`$output' must begin with \`lib'"
  60802. +
  60803. + if test "$need_lib_prefix" != no; then
  60804. + # Add the "lib" prefix for modules if required
  60805. + func_stripname '' '.la' "$outputname"
  60806. + name=$func_stripname_result
  60807. + eval shared_ext=\"$shrext_cmds\"
  60808. + eval libname=\"$libname_spec\"
  60809. + else
  60810. + func_stripname '' '.la' "$outputname"
  60811. + libname=$func_stripname_result
  60812. + fi
  60813. + ;;
  60814. + esac
  60815. +
  60816. + if test -n "$objs"; then
  60817. + if test "$deplibs_check_method" != pass_all; then
  60818. + func_fatal_error "cannot build libtool library \`$output' from non-libtool objects on this host:$objs"
  60819. + else
  60820. + $ECHO
  60821. + $ECHO "*** Warning: Linking the shared library $output against the non-libtool"
  60822. + $ECHO "*** objects $objs is not portable!"
  60823. + libobjs="$libobjs $objs"
  60824. + fi
  60825. + fi
  60826. +
  60827. + test "$dlself" != no && \
  60828. + func_warning "\`-dlopen self' is ignored for libtool libraries"
  60829. +
  60830. + set dummy $rpath
  60831. + shift
  60832. + test "$#" -gt 1 && \
  60833. + func_warning "ignoring multiple \`-rpath's for a libtool library"
  60834. +
  60835. + install_libdir="$1"
  60836. +
  60837. + oldlibs=
  60838. + if test -z "$rpath"; then
  60839. + if test "$build_libtool_libs" = yes; then
  60840. + # Building a libtool convenience library.
  60841. + # Some compilers have problems with a `.al' extension so
  60842. + # convenience libraries should have the same extension an
  60843. + # archive normally would.
  60844. + oldlibs="$output_objdir/$libname.$libext $oldlibs"
  60845. + build_libtool_libs=convenience
  60846. + build_old_libs=yes
  60847. + fi
  60848. +
  60849. + test -n "$vinfo" && \
  60850. + func_warning "\`-version-info/-version-number' is ignored for convenience libraries"
  60851. +
  60852. + test -n "$release" && \
  60853. + func_warning "\`-release' is ignored for convenience libraries"
  60854. + else
  60855. +
  60856. + # Parse the version information argument.
  60857. + save_ifs="$IFS"; IFS=':'
  60858. + set dummy $vinfo 0 0 0
  60859. + shift
  60860. + IFS="$save_ifs"
  60861. +
  60862. + test -n "$7" && \
  60863. + func_fatal_help "too many parameters to \`-version-info'"
  60864. +
  60865. + # convert absolute version numbers to libtool ages
  60866. + # this retains compatibility with .la files and attempts
  60867. + # to make the code below a bit more comprehensible
  60868. +
  60869. + case $vinfo_number in
  60870. + yes)
  60871. + number_major="$1"
  60872. + number_minor="$2"
  60873. + number_revision="$3"
  60874. + #
  60875. + # There are really only two kinds -- those that
  60876. + # use the current revision as the major version
  60877. + # and those that subtract age and use age as
  60878. + # a minor version. But, then there is irix
  60879. + # which has an extra 1 added just for fun
  60880. + #
  60881. + case $version_type in
  60882. + darwin|linux|osf|windows|none)
  60883. + func_arith $number_major + $number_minor
  60884. + current=$func_arith_result
  60885. + age="$number_minor"
  60886. + revision="$number_revision"
  60887. + ;;
  60888. + freebsd-aout|freebsd-elf|sunos)
  60889. + current="$number_major"
  60890. + revision="$number_minor"
  60891. + age="0"
  60892. + ;;
  60893. + irix|nonstopux)
  60894. + func_arith $number_major + $number_minor
  60895. + current=$func_arith_result
  60896. + age="$number_minor"
  60897. + revision="$number_minor"
  60898. + lt_irix_increment=no
  60899. + ;;
  60900. + *)
  60901. + func_fatal_configuration "$modename: unknown library version type \`$version_type'"
  60902. + ;;
  60903. + esac
  60904. + ;;
  60905. + no)
  60906. + current="$1"
  60907. + revision="$2"
  60908. + age="$3"
  60909. + ;;
  60910. + esac
  60911. +
  60912. + # Check that each of the things are valid numbers.
  60913. + case $current in
  60914. + 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]) ;;
  60915. + *)
  60916. + func_error "CURRENT \`$current' must be a nonnegative integer"
  60917. + func_fatal_error "\`$vinfo' is not valid version information"
  60918. + ;;
  60919. + esac
  60920. +
  60921. + case $revision in
  60922. + 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]) ;;
  60923. + *)
  60924. + func_error "REVISION \`$revision' must be a nonnegative integer"
  60925. + func_fatal_error "\`$vinfo' is not valid version information"
  60926. + ;;
  60927. + esac
  60928. +
  60929. + case $age in
  60930. + 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]) ;;
  60931. + *)
  60932. + func_error "AGE \`$age' must be a nonnegative integer"
  60933. + func_fatal_error "\`$vinfo' is not valid version information"
  60934. + ;;
  60935. + esac
  60936. +
  60937. + if test "$age" -gt "$current"; then
  60938. + func_error "AGE \`$age' is greater than the current interface number \`$current'"
  60939. + func_fatal_error "\`$vinfo' is not valid version information"
  60940. + fi
  60941. +
  60942. + # Calculate the version variables.
  60943. + major=
  60944. + versuffix=
  60945. + verstring=
  60946. + case $version_type in
  60947. + none) ;;
  60948. +
  60949. + darwin)
  60950. + # Like Linux, but with the current version available in
  60951. + # verstring for coding it into the library header
  60952. + func_arith $current - $age
  60953. + major=.$func_arith_result
  60954. + versuffix="$major.$age.$revision"
  60955. + # Darwin ld doesn't like 0 for these options...
  60956. + func_arith $current + 1
  60957. + minor_current=$func_arith_result
  60958. + xlcverstring="${wl}-compatibility_version ${wl}$minor_current ${wl}-current_version ${wl}$minor_current.$revision"
  60959. + verstring="-compatibility_version $minor_current -current_version $minor_current.$revision"
  60960. + ;;
  60961. +
  60962. + freebsd-aout)
  60963. + major=".$current"
  60964. + versuffix=".$current.$revision";
  60965. + ;;
  60966. +
  60967. + freebsd-elf)
  60968. + major=".$current"
  60969. + versuffix=".$current"
  60970. + ;;
  60971. +
  60972. + irix | nonstopux)
  60973. + if test "X$lt_irix_increment" = "Xno"; then
  60974. + func_arith $current - $age
  60975. + else
  60976. + func_arith $current - $age + 1
  60977. + fi
  60978. + major=$func_arith_result
  60979. +
  60980. + case $version_type in
  60981. + nonstopux) verstring_prefix=nonstopux ;;
  60982. + *) verstring_prefix=sgi ;;
  60983. + esac
  60984. + verstring="$verstring_prefix$major.$revision"
  60985. +
  60986. + # Add in all the interfaces that we are compatible with.
  60987. + loop=$revision
  60988. + while test "$loop" -ne 0; do
  60989. + func_arith $revision - $loop
  60990. + iface=$func_arith_result
  60991. + func_arith $loop - 1
  60992. + loop=$func_arith_result
  60993. + verstring="$verstring_prefix$major.$iface:$verstring"
  60994. + done
  60995. +
  60996. + # Before this point, $major must not contain `.'.
  60997. + major=.$major
  60998. + versuffix="$major.$revision"
  60999. + ;;
  61000. +
  61001. + linux)
  61002. + func_arith $current - $age
  61003. + major=.$func_arith_result
  61004. + versuffix="$major.$age.$revision"
  61005. + ;;
  61006. +
  61007. + osf)
  61008. + func_arith $current - $age
  61009. + major=.$func_arith_result
  61010. + versuffix=".$current.$age.$revision"
  61011. + verstring="$current.$age.$revision"
  61012. +
  61013. + # Add in all the interfaces that we are compatible with.
  61014. + loop=$age
  61015. + while test "$loop" -ne 0; do
  61016. + func_arith $current - $loop
  61017. + iface=$func_arith_result
  61018. + func_arith $loop - 1
  61019. + loop=$func_arith_result
  61020. + verstring="$verstring:${iface}.0"
  61021. + done
  61022. +
  61023. + # Make executables depend on our current version.
  61024. + verstring="$verstring:${current}.0"
  61025. + ;;
  61026. +
  61027. + qnx)
  61028. + major=".$current"
  61029. + versuffix=".$current"
  61030. + ;;
  61031. +
  61032. + sunos)
  61033. + major=".$current"
  61034. + versuffix=".$current.$revision"
  61035. + ;;
  61036. +
  61037. + windows)
  61038. + # Use '-' rather than '.', since we only want one
  61039. + # extension on DOS 8.3 filesystems.
  61040. + func_arith $current - $age
  61041. + major=$func_arith_result
  61042. + versuffix="-$major"
  61043. + ;;
  61044. +
  61045. + *)
  61046. + func_fatal_configuration "unknown library version type \`$version_type'"
  61047. + ;;
  61048. + esac
  61049. +
  61050. + # Clear the version info if we defaulted, and they specified a release.
  61051. + if test -z "$vinfo" && test -n "$release"; then
  61052. + major=
  61053. + case $version_type in
  61054. + darwin)
  61055. + # we can't check for "0.0" in archive_cmds due to quoting
  61056. + # problems, so we reset it completely
  61057. + verstring=
  61058. + ;;
  61059. + *)
  61060. + verstring="0.0"
  61061. + ;;
  61062. + esac
  61063. + if test "$need_version" = no; then
  61064. + versuffix=
  61065. + else
  61066. + versuffix=".0.0"
  61067. + fi
  61068. + fi
  61069. +
  61070. + # Remove version info from name if versioning should be avoided
  61071. + if test "$avoid_version" = yes && test "$need_version" = no; then
  61072. + major=
  61073. + versuffix=
  61074. + verstring=""
  61075. + fi
  61076. +
  61077. + # Check to see if the archive will have undefined symbols.
  61078. + if test "$allow_undefined" = yes; then
  61079. + if test "$allow_undefined_flag" = unsupported; then
  61080. + func_warning "undefined symbols not allowed in $host shared libraries"
  61081. + build_libtool_libs=no
  61082. + build_old_libs=yes
  61083. + fi
  61084. + else
  61085. + # Don't allow undefined symbols.
  61086. + allow_undefined_flag="$no_undefined_flag"
  61087. + fi
  61088. +
  61089. + fi
  61090. +
  61091. + func_generate_dlsyms "$libname" "$libname" "yes"
  61092. + libobjs="$libobjs $symfileobj"
  61093. + test "X$libobjs" = "X " && libobjs=
  61094. +
  61095. + if test "$mode" != relink; then
  61096. + # Remove our outputs, but don't remove object files since they
  61097. + # may have been created when compiling PIC objects.
  61098. + removelist=
  61099. + tempremovelist=`$ECHO "$output_objdir/*"`
  61100. + for p in $tempremovelist; do
  61101. + case $p in
  61102. + *.$objext | *.gcno)
  61103. + ;;
  61104. + $output_objdir/$outputname | $output_objdir/$libname.* | $output_objdir/${libname}${release}.*)
  61105. + if test "X$precious_files_regex" != "X"; then
  61106. + if $ECHO "$p" | $EGREP -e "$precious_files_regex" >/dev/null 2>&1
  61107. + then
  61108. + continue
  61109. + fi
  61110. + fi
  61111. + removelist="$removelist $p"
  61112. + ;;
  61113. + *) ;;
  61114. + esac
  61115. + done
  61116. + test -n "$removelist" && \
  61117. + func_show_eval "${RM}r \$removelist"
  61118. + fi
  61119. +
  61120. + # Now set the variables for building old libraries.
  61121. + if test "$build_old_libs" = yes && test "$build_libtool_libs" != convenience ; then
  61122. + oldlibs="$oldlibs $output_objdir/$libname.$libext"
  61123. +
  61124. + # Transform .lo files to .o files.
  61125. + oldobjs="$objs "`$ECHO "X$libobjs" | $SP2NL | $Xsed -e '/\.'${libext}'$/d' -e "$lo2o" | $NL2SP`
  61126. + fi
  61127. +
  61128. + # Eliminate all temporary directories.
  61129. + #for path in $notinst_path; do
  61130. + # lib_search_path=`$ECHO "X$lib_search_path " | $Xsed -e "s% $path % %g"`
  61131. + # deplibs=`$ECHO "X$deplibs " | $Xsed -e "s% -L$path % %g"`
  61132. + # dependency_libs=`$ECHO "X$dependency_libs " | $Xsed -e "s% -L$path % %g"`
  61133. + #done
  61134. +
  61135. + if test -n "$xrpath"; then
  61136. + # If the user specified any rpath flags, then add them.
  61137. + temp_xrpath=
  61138. + for libdir in $xrpath; do
  61139. + temp_xrpath="$temp_xrpath -R$libdir"
  61140. + case "$finalize_rpath " in
  61141. + *" $libdir "*) ;;
  61142. + *) finalize_rpath="$finalize_rpath $libdir" ;;
  61143. + esac
  61144. + done
  61145. + if test "$hardcode_into_libs" != yes || test "$build_old_libs" = yes; then
  61146. + dependency_libs="$temp_xrpath $dependency_libs"
  61147. + fi
  61148. + fi
  61149. +
  61150. + # Make sure dlfiles contains only unique files that won't be dlpreopened
  61151. + old_dlfiles="$dlfiles"
  61152. + dlfiles=
  61153. + for lib in $old_dlfiles; do
  61154. + case " $dlprefiles $dlfiles " in
  61155. + *" $lib "*) ;;
  61156. + *) dlfiles="$dlfiles $lib" ;;
  61157. + esac
  61158. + done
  61159. +
  61160. + # Make sure dlprefiles contains only unique files
  61161. + old_dlprefiles="$dlprefiles"
  61162. + dlprefiles=
  61163. + for lib in $old_dlprefiles; do
  61164. + case "$dlprefiles " in
  61165. + *" $lib "*) ;;
  61166. + *) dlprefiles="$dlprefiles $lib" ;;
  61167. + esac
  61168. + done
  61169. +
  61170. + if test "$build_libtool_libs" = yes; then
  61171. + if test -n "$rpath"; then
  61172. + case $host in
  61173. + *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-*-beos* | *-cegcc*)
  61174. + # these systems don't actually have a c library (as such)!
  61175. + ;;
  61176. + *-*-rhapsody* | *-*-darwin1.[012])
  61177. + # Rhapsody C library is in the System framework
  61178. + deplibs="$deplibs System.ltframework"
  61179. + ;;
  61180. + *-*-netbsd*)
  61181. + # Don't link with libc until the a.out ld.so is fixed.
  61182. + ;;
  61183. + *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*)
  61184. + # Do not include libc due to us having libc/libc_r.
  61185. + ;;
  61186. + *-*-sco3.2v5* | *-*-sco5v6*)
  61187. + # Causes problems with __ctype
  61188. + ;;
  61189. + *-*-sysv4.2uw2* | *-*-sysv5* | *-*-unixware* | *-*-OpenUNIX*)
  61190. + # Compiler inserts libc in the correct place for threads to work
  61191. + ;;
  61192. + *)
  61193. + # Add libc to deplibs on all other systems if necessary.
  61194. + if test "$build_libtool_need_lc" = "yes"; then
  61195. + deplibs="$deplibs -lc"
  61196. + fi
  61197. + ;;
  61198. + esac
  61199. + fi
  61200. +
  61201. + # Transform deplibs into only deplibs that can be linked in shared.
  61202. + name_save=$name
  61203. + libname_save=$libname
  61204. + release_save=$release
  61205. + versuffix_save=$versuffix
  61206. + major_save=$major
  61207. + # I'm not sure if I'm treating the release correctly. I think
  61208. + # release should show up in the -l (ie -lgmp5) so we don't want to
  61209. + # add it in twice. Is that correct?
  61210. + release=""
  61211. + versuffix=""
  61212. + major=""
  61213. + newdeplibs=
  61214. + droppeddeps=no
  61215. + case $deplibs_check_method in
  61216. + pass_all)
  61217. + # Don't check for shared/static. Everything works.
  61218. + # This might be a little naive. We might want to check
  61219. + # whether the library exists or not. But this is on
  61220. + # osf3 & osf4 and I'm not really sure... Just
  61221. + # implementing what was already the behavior.
  61222. + newdeplibs=$deplibs
  61223. + ;;
  61224. + test_compile)
  61225. + # This code stresses the "libraries are programs" paradigm to its
  61226. + # limits. Maybe even breaks it. We compile a program, linking it
  61227. + # against the deplibs as a proxy for the library. Then we can check
  61228. + # whether they linked in statically or dynamically with ldd.
  61229. + $opt_dry_run || $RM conftest.c
  61230. + cat > conftest.c <<EOF
  61231. + int main() { return 0; }
  61232. +EOF
  61233. + $opt_dry_run || $RM conftest
  61234. + if $LTCC $LTCFLAGS -o conftest conftest.c $deplibs; then
  61235. + ldd_output=`ldd conftest`
  61236. + for i in $deplibs; do
  61237. + case $i in
  61238. + -l*)
  61239. + func_stripname -l '' "$i"
  61240. + name=$func_stripname_result
  61241. + if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
  61242. + case " $predeps $postdeps " in
  61243. + *" $i "*)
  61244. + newdeplibs="$newdeplibs $i"
  61245. + i=""
  61246. + ;;
  61247. + esac
  61248. + fi
  61249. + if test -n "$i" ; then
  61250. + libname=`eval "\\$ECHO \"$libname_spec\""`
  61251. + deplib_matches=`eval "\\$ECHO \"$library_names_spec\""`
  61252. + set dummy $deplib_matches; shift
  61253. + deplib_match=$1
  61254. + if test `expr "$ldd_output" : ".*$deplib_match"` -ne 0 ; then
  61255. + newdeplibs="$newdeplibs $i"
  61256. + else
  61257. + droppeddeps=yes
  61258. + $ECHO
  61259. + $ECHO "*** Warning: dynamic linker does not accept needed library $i."
  61260. + $ECHO "*** I have the capability to make that library automatically link in when"
  61261. + $ECHO "*** you link to this library. But I can only do this if you have a"
  61262. + $ECHO "*** shared version of the library, which I believe you do not have"
  61263. + $ECHO "*** because a test_compile did reveal that the linker did not use it for"
  61264. + $ECHO "*** its dynamic dependency list that programs get resolved with at runtime."
  61265. + fi
  61266. + fi
  61267. + ;;
  61268. + *)
  61269. + newdeplibs="$newdeplibs $i"
  61270. + ;;
  61271. + esac
  61272. + done
  61273. + else
  61274. + # Error occurred in the first compile. Let's try to salvage
  61275. + # the situation: Compile a separate program for each library.
  61276. + for i in $deplibs; do
  61277. + case $i in
  61278. + -l*)
  61279. + func_stripname -l '' "$i"
  61280. + name=$func_stripname_result
  61281. + $opt_dry_run || $RM conftest
  61282. + if $LTCC $LTCFLAGS -o conftest conftest.c $i; then
  61283. + ldd_output=`ldd conftest`
  61284. + if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
  61285. + case " $predeps $postdeps " in
  61286. + *" $i "*)
  61287. + newdeplibs="$newdeplibs $i"
  61288. + i=""
  61289. + ;;
  61290. + esac
  61291. + fi
  61292. + if test -n "$i" ; then
  61293. + libname=`eval "\\$ECHO \"$libname_spec\""`
  61294. + deplib_matches=`eval "\\$ECHO \"$library_names_spec\""`
  61295. + set dummy $deplib_matches; shift
  61296. + deplib_match=$1
  61297. + if test `expr "$ldd_output" : ".*$deplib_match"` -ne 0 ; then
  61298. + newdeplibs="$newdeplibs $i"
  61299. + else
  61300. + droppeddeps=yes
  61301. + $ECHO
  61302. + $ECHO "*** Warning: dynamic linker does not accept needed library $i."
  61303. + $ECHO "*** I have the capability to make that library automatically link in when"
  61304. + $ECHO "*** you link to this library. But I can only do this if you have a"
  61305. + $ECHO "*** shared version of the library, which you do not appear to have"
  61306. + $ECHO "*** because a test_compile did reveal that the linker did not use this one"
  61307. + $ECHO "*** as a dynamic dependency that programs can get resolved with at runtime."
  61308. + fi
  61309. + fi
  61310. + else
  61311. + droppeddeps=yes
  61312. + $ECHO
  61313. + $ECHO "*** Warning! Library $i is needed by this library but I was not able to"
  61314. + $ECHO "*** make it link in! You will probably need to install it or some"
  61315. + $ECHO "*** library that it depends on before this library will be fully"
  61316. + $ECHO "*** functional. Installing it before continuing would be even better."
  61317. + fi
  61318. + ;;
  61319. + *)
  61320. + newdeplibs="$newdeplibs $i"
  61321. + ;;
  61322. + esac
  61323. + done
  61324. + fi
  61325. + ;;
  61326. + file_magic*)
  61327. + set dummy $deplibs_check_method; shift
  61328. + file_magic_regex=`expr "$deplibs_check_method" : "$1 \(.*\)"`
  61329. + for a_deplib in $deplibs; do
  61330. + case $a_deplib in
  61331. + -l*)
  61332. + func_stripname -l '' "$a_deplib"
  61333. + name=$func_stripname_result
  61334. + if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
  61335. + case " $predeps $postdeps " in
  61336. + *" $a_deplib "*)
  61337. + newdeplibs="$newdeplibs $a_deplib"
  61338. + a_deplib=""
  61339. + ;;
  61340. + esac
  61341. + fi
  61342. + if test -n "$a_deplib" ; then
  61343. + libname=`eval "\\$ECHO \"$libname_spec\""`
  61344. + for i in $lib_search_path $sys_lib_search_path $shlib_search_path; do
  61345. + potential_libs=`ls $i/$libname[.-]* 2>/dev/null`
  61346. + for potent_lib in $potential_libs; do
  61347. + # Follow soft links.
  61348. + if ls -lLd "$potent_lib" 2>/dev/null |
  61349. + $GREP " -> " >/dev/null; then
  61350. + continue
  61351. + fi
  61352. + # The statement above tries to avoid entering an
  61353. + # endless loop below, in case of cyclic links.
  61354. + # We might still enter an endless loop, since a link
  61355. + # loop can be closed while we follow links,
  61356. + # but so what?
  61357. + potlib="$potent_lib"
  61358. + while test -h "$potlib" 2>/dev/null; do
  61359. + potliblink=`ls -ld $potlib | ${SED} 's/.* -> //'`
  61360. + case $potliblink in
  61361. + [\\/]* | [A-Za-z]:[\\/]*) potlib="$potliblink";;
  61362. + *) potlib=`$ECHO "X$potlib" | $Xsed -e 's,[^/]*$,,'`"$potliblink";;
  61363. + esac
  61364. + done
  61365. + if eval $file_magic_cmd \"\$potlib\" 2>/dev/null |
  61366. + $SED -e 10q |
  61367. + $EGREP "$file_magic_regex" > /dev/null; then
  61368. + newdeplibs="$newdeplibs $a_deplib"
  61369. + a_deplib=""
  61370. + break 2
  61371. + fi
  61372. + done
  61373. + done
  61374. + fi
  61375. + if test -n "$a_deplib" ; then
  61376. + droppeddeps=yes
  61377. + $ECHO
  61378. + $ECHO "*** Warning: linker path does not have real file for library $a_deplib."
  61379. + $ECHO "*** I have the capability to make that library automatically link in when"
  61380. + $ECHO "*** you link to this library. But I can only do this if you have a"
  61381. + $ECHO "*** shared version of the library, which you do not appear to have"
  61382. + $ECHO "*** because I did check the linker path looking for a file starting"
  61383. + if test -z "$potlib" ; then
  61384. + $ECHO "*** with $libname but no candidates were found. (...for file magic test)"
  61385. + else
  61386. + $ECHO "*** with $libname and none of the candidates passed a file format test"
  61387. + $ECHO "*** using a file magic. Last file checked: $potlib"
  61388. + fi
  61389. + fi
  61390. + ;;
  61391. + *)
  61392. + # Add a -L argument.
  61393. + newdeplibs="$newdeplibs $a_deplib"
  61394. + ;;
  61395. + esac
  61396. + done # Gone through all deplibs.
  61397. + ;;
  61398. + match_pattern*)
  61399. + set dummy $deplibs_check_method; shift
  61400. + match_pattern_regex=`expr "$deplibs_check_method" : "$1 \(.*\)"`
  61401. + for a_deplib in $deplibs; do
  61402. + case $a_deplib in
  61403. + -l*)
  61404. + func_stripname -l '' "$a_deplib"
  61405. + name=$func_stripname_result
  61406. + if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
  61407. + case " $predeps $postdeps " in
  61408. + *" $a_deplib "*)
  61409. + newdeplibs="$newdeplibs $a_deplib"
  61410. + a_deplib=""
  61411. + ;;
  61412. + esac
  61413. + fi
  61414. + if test -n "$a_deplib" ; then
  61415. + libname=`eval "\\$ECHO \"$libname_spec\""`
  61416. + for i in $lib_search_path $sys_lib_search_path $shlib_search_path; do
  61417. + potential_libs=`ls $i/$libname[.-]* 2>/dev/null`
  61418. + for potent_lib in $potential_libs; do
  61419. + potlib="$potent_lib" # see symlink-check above in file_magic test
  61420. + if eval "\$ECHO \"X$potent_lib\"" 2>/dev/null | $Xsed -e 10q | \
  61421. + $EGREP "$match_pattern_regex" > /dev/null; then
  61422. + newdeplibs="$newdeplibs $a_deplib"
  61423. + a_deplib=""
  61424. + break 2
  61425. + fi
  61426. + done
  61427. + done
  61428. + fi
  61429. + if test -n "$a_deplib" ; then
  61430. + droppeddeps=yes
  61431. + $ECHO
  61432. + $ECHO "*** Warning: linker path does not have real file for library $a_deplib."
  61433. + $ECHO "*** I have the capability to make that library automatically link in when"
  61434. + $ECHO "*** you link to this library. But I can only do this if you have a"
  61435. + $ECHO "*** shared version of the library, which you do not appear to have"
  61436. + $ECHO "*** because I did check the linker path looking for a file starting"
  61437. + if test -z "$potlib" ; then
  61438. + $ECHO "*** with $libname but no candidates were found. (...for regex pattern test)"
  61439. + else
  61440. + $ECHO "*** with $libname and none of the candidates passed a file format test"
  61441. + $ECHO "*** using a regex pattern. Last file checked: $potlib"
  61442. + fi
  61443. + fi
  61444. + ;;
  61445. + *)
  61446. + # Add a -L argument.
  61447. + newdeplibs="$newdeplibs $a_deplib"
  61448. + ;;
  61449. + esac
  61450. + done # Gone through all deplibs.
  61451. + ;;
  61452. + none | unknown | *)
  61453. + newdeplibs=""
  61454. + tmp_deplibs=`$ECHO "X $deplibs" | $Xsed \
  61455. + -e 's/ -lc$//' -e 's/ -[LR][^ ]*//g'`
  61456. + if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
  61457. + for i in $predeps $postdeps ; do
  61458. + # can't use Xsed below, because $i might contain '/'
  61459. + tmp_deplibs=`$ECHO "X $tmp_deplibs" | $Xsed -e "s,$i,,"`
  61460. + done
  61461. + fi
  61462. + if $ECHO "X $tmp_deplibs" | $Xsed -e 's/[ ]//g' |
  61463. + $GREP . >/dev/null; then
  61464. + $ECHO
  61465. + if test "X$deplibs_check_method" = "Xnone"; then
  61466. + $ECHO "*** Warning: inter-library dependencies are not supported in this platform."
  61467. + else
  61468. + $ECHO "*** Warning: inter-library dependencies are not known to be supported."
  61469. + fi
  61470. + $ECHO "*** All declared inter-library dependencies are being dropped."
  61471. + droppeddeps=yes
  61472. + fi
  61473. + ;;
  61474. + esac
  61475. + versuffix=$versuffix_save
  61476. + major=$major_save
  61477. + release=$release_save
  61478. + libname=$libname_save
  61479. + name=$name_save
  61480. +
  61481. + case $host in
  61482. + *-*-rhapsody* | *-*-darwin1.[012])
  61483. + # On Rhapsody replace the C library with the System framework
  61484. + newdeplibs=`$ECHO "X $newdeplibs" | $Xsed -e 's/ -lc / System.ltframework /'`
  61485. ;;
  61486. esac
  61487. - $rm $output
  61488. - trap "$rm $output; exit $EXIT_FAILURE" 1 2 15
  61489. - $echo > $output "\
  61490. -#! $SHELL
  61491. -
  61492. -# $output - temporary wrapper script for $objdir/$outputname
  61493. -# Generated by $PROGRAM - GNU $PACKAGE $VERSION$TIMESTAMP
  61494. -#
  61495. -# The $output program cannot be directly executed until all the libtool
  61496. -# libraries that it depends on are installed.
  61497. -#
  61498. -# This wrapper script should never be moved out of the build directory.
  61499. -# If it is, it will not operate correctly.
  61500. -
  61501. -# Sed substitution that helps us do robust quoting. It backslashifies
  61502. -# metacharacters that are still active within double-quoted strings.
  61503. -Xsed='${SED} -e 1s/^X//'
  61504. -sed_quote_subst='$sed_quote_subst'
  61505. -
  61506. -# The HP-UX ksh and POSIX shell print the target directory to stdout
  61507. -# if CDPATH is set.
  61508. -if test \"\${CDPATH+set}\" = set; then CDPATH=:; export CDPATH; fi
  61509. -
  61510. -relink_command=\"$relink_command\"
  61511. -
  61512. -# This environment variable determines our operation mode.
  61513. -if test \"\$libtool_install_magic\" = \"$magic\"; then
  61514. - # install mode needs the following variable:
  61515. - notinst_deplibs='$notinst_deplibs'
  61516. -else
  61517. - # When we are sourced in execute mode, \$file and \$echo are already set.
  61518. - if test \"\$libtool_execute_magic\" != \"$magic\"; then
  61519. - echo=\"$qecho\"
  61520. - file=\"\$0\"
  61521. - # Make sure echo works.
  61522. - if test \"X\$1\" = X--no-reexec; then
  61523. - # Discard the --no-reexec flag, and continue.
  61524. - shift
  61525. - elif test \"X\`(\$echo '\t') 2>/dev/null\`\" = 'X\t'; then
  61526. - # Yippee, \$echo works!
  61527. - :
  61528. - else
  61529. - # Restart under the correct shell, and then maybe \$echo will work.
  61530. - exec $SHELL \"\$0\" --no-reexec \${1+\"\$@\"}
  61531. - fi
  61532. - fi\
  61533. -"
  61534. - $echo >> $output "\
  61535. -
  61536. - # Find the directory that this script lives in.
  61537. - thisdir=\`\$echo \"X\$file\" | \$Xsed -e 's%/[^/]*$%%'\`
  61538. - test \"x\$thisdir\" = \"x\$file\" && thisdir=.
  61539. -
  61540. - # Follow symbolic links until we get to the real thisdir.
  61541. - file=\`ls -ld \"\$file\" | ${SED} -n 's/.*-> //p'\`
  61542. - while test -n \"\$file\"; do
  61543. - destdir=\`\$echo \"X\$file\" | \$Xsed -e 's%/[^/]*\$%%'\`
  61544. + if test "$droppeddeps" = yes; then
  61545. + if test "$module" = yes; then
  61546. + $ECHO
  61547. + $ECHO "*** Warning: libtool could not satisfy all declared inter-library"
  61548. + $ECHO "*** dependencies of module $libname. Therefore, libtool will create"
  61549. + $ECHO "*** a static module, that should work as long as the dlopening"
  61550. + $ECHO "*** application is linked with the -dlopen flag."
  61551. + if test -z "$global_symbol_pipe"; then
  61552. + $ECHO
  61553. + $ECHO "*** However, this would only work if libtool was able to extract symbol"
  61554. + $ECHO "*** lists from a program, using \`nm' or equivalent, but libtool could"
  61555. + $ECHO "*** not find such a program. So, this module is probably useless."
  61556. + $ECHO "*** \`nm' from GNU binutils and a full rebuild may help."
  61557. + fi
  61558. + if test "$build_old_libs" = no; then
  61559. + oldlibs="$output_objdir/$libname.$libext"
  61560. + build_libtool_libs=module
  61561. + build_old_libs=yes
  61562. + else
  61563. + build_libtool_libs=no
  61564. + fi
  61565. + else
  61566. + $ECHO "*** The inter-library dependencies that have been dropped here will be"
  61567. + $ECHO "*** automatically added whenever a program is linked with this library"
  61568. + $ECHO "*** or is declared to -dlopen it."
  61569. - # If there was a directory component, then change thisdir.
  61570. - if test \"x\$destdir\" != \"x\$file\"; then
  61571. - case \"\$destdir\" in
  61572. - [\\\\/]* | [A-Za-z]:[\\\\/]*) thisdir=\"\$destdir\" ;;
  61573. - *) thisdir=\"\$thisdir/\$destdir\" ;;
  61574. + if test "$allow_undefined" = no; then
  61575. + $ECHO
  61576. + $ECHO "*** Since this library must not contain undefined symbols,"
  61577. + $ECHO "*** because either the platform does not support them or"
  61578. + $ECHO "*** it was explicitly requested with -no-undefined,"
  61579. + $ECHO "*** libtool will only create a static version of it."
  61580. + if test "$build_old_libs" = no; then
  61581. + oldlibs="$output_objdir/$libname.$libext"
  61582. + build_libtool_libs=module
  61583. + build_old_libs=yes
  61584. + else
  61585. + build_libtool_libs=no
  61586. + fi
  61587. + fi
  61588. + fi
  61589. + fi
  61590. + # Done checking deplibs!
  61591. + deplibs=$newdeplibs
  61592. + fi
  61593. + # Time to change all our "foo.ltframework" stuff back to "-framework foo"
  61594. + case $host in
  61595. + *-*-darwin*)
  61596. + newdeplibs=`$ECHO "X $newdeplibs" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'`
  61597. + new_inherited_linker_flags=`$ECHO "X $new_inherited_linker_flags" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'`
  61598. + deplibs=`$ECHO "X $deplibs" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'`
  61599. + ;;
  61600. esac
  61601. - fi
  61602. -
  61603. - file=\`\$echo \"X\$file\" | \$Xsed -e 's%^.*/%%'\`
  61604. - file=\`ls -ld \"\$thisdir/\$file\" | ${SED} -n 's/.*-> //p'\`
  61605. - done
  61606. - # Try to get the absolute directory name.
  61607. - absdir=\`cd \"\$thisdir\" && pwd\`
  61608. - test -n \"\$absdir\" && thisdir=\"\$absdir\"
  61609. -"
  61610. -
  61611. - if test "$fast_install" = yes; then
  61612. - $echo >> $output "\
  61613. - program=lt-'$outputname'$exeext
  61614. - progdir=\"\$thisdir/$objdir\"
  61615. -
  61616. - if test ! -f \"\$progdir/\$program\" || \\
  61617. - { file=\`ls -1dt \"\$progdir/\$program\" \"\$progdir/../\$program\" 2>/dev/null | ${SED} 1q\`; \\
  61618. - test \"X\$file\" != \"X\$progdir/\$program\"; }; then
  61619. + # move library search paths that coincide with paths to not yet
  61620. + # installed libraries to the beginning of the library search list
  61621. + new_libs=
  61622. + for path in $notinst_path; do
  61623. + case " $new_libs " in
  61624. + *" -L$path/$objdir "*) ;;
  61625. + *)
  61626. + case " $deplibs " in
  61627. + *" -L$path/$objdir "*)
  61628. + new_libs="$new_libs -L$path/$objdir" ;;
  61629. + esac
  61630. + ;;
  61631. + esac
  61632. + done
  61633. + for deplib in $deplibs; do
  61634. + case $deplib in
  61635. + -L*)
  61636. + case " $new_libs " in
  61637. + *" $deplib "*) ;;
  61638. + *) new_libs="$new_libs $deplib" ;;
  61639. + esac
  61640. + ;;
  61641. + *) new_libs="$new_libs $deplib" ;;
  61642. + esac
  61643. + done
  61644. + deplibs="$new_libs"
  61645. - file=\"\$\$-\$program\"
  61646. + # All the library-specific variables (install_libdir is set above).
  61647. + library_names=
  61648. + old_library=
  61649. + dlname=
  61650. - if test ! -d \"\$progdir\"; then
  61651. - $mkdir \"\$progdir\"
  61652. - else
  61653. - $rm \"\$progdir/\$file\"
  61654. - fi"
  61655. + # Test again, we may have decided not to build it any more
  61656. + if test "$build_libtool_libs" = yes; then
  61657. + if test "$hardcode_into_libs" = yes; then
  61658. + # Hardcode the library paths
  61659. + hardcode_libdirs=
  61660. + dep_rpath=
  61661. + rpath="$finalize_rpath"
  61662. + test "$mode" != relink && rpath="$compile_rpath$rpath"
  61663. + for libdir in $rpath; do
  61664. + if test -n "$hardcode_libdir_flag_spec"; then
  61665. + if test -n "$hardcode_libdir_separator"; then
  61666. + if test -z "$hardcode_libdirs"; then
  61667. + hardcode_libdirs="$libdir"
  61668. + else
  61669. + # Just accumulate the unique libdirs.
  61670. + case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in
  61671. + *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*)
  61672. + ;;
  61673. + *)
  61674. + hardcode_libdirs="$hardcode_libdirs$hardcode_libdir_separator$libdir"
  61675. + ;;
  61676. + esac
  61677. + fi
  61678. + else
  61679. + eval flag=\"$hardcode_libdir_flag_spec\"
  61680. + dep_rpath="$dep_rpath $flag"
  61681. + fi
  61682. + elif test -n "$runpath_var"; then
  61683. + case "$perm_rpath " in
  61684. + *" $libdir "*) ;;
  61685. + *) perm_rpath="$perm_rpath $libdir" ;;
  61686. + esac
  61687. + fi
  61688. + done
  61689. + # Substitute the hardcoded libdirs into the rpath.
  61690. + if test -n "$hardcode_libdir_separator" &&
  61691. + test -n "$hardcode_libdirs"; then
  61692. + libdir="$hardcode_libdirs"
  61693. + if test -n "$hardcode_libdir_flag_spec_ld"; then
  61694. + eval dep_rpath=\"$hardcode_libdir_flag_spec_ld\"
  61695. + else
  61696. + eval dep_rpath=\"$hardcode_libdir_flag_spec\"
  61697. + fi
  61698. + fi
  61699. + if test -n "$runpath_var" && test -n "$perm_rpath"; then
  61700. + # We should set the runpath_var.
  61701. + rpath=
  61702. + for dir in $perm_rpath; do
  61703. + rpath="$rpath$dir:"
  61704. + done
  61705. + eval "$runpath_var='$rpath\$$runpath_var'; export $runpath_var"
  61706. + fi
  61707. + test -n "$dep_rpath" && deplibs="$dep_rpath $deplibs"
  61708. + fi
  61709. - $echo >> $output "\
  61710. + shlibpath="$finalize_shlibpath"
  61711. + test "$mode" != relink && shlibpath="$compile_shlibpath$shlibpath"
  61712. + if test -n "$shlibpath"; then
  61713. + eval "$shlibpath_var='$shlibpath\$$shlibpath_var'; export $shlibpath_var"
  61714. + fi
  61715. - # relink executable if necessary
  61716. - if test -n \"\$relink_command\"; then
  61717. - if relink_command_output=\`eval \$relink_command 2>&1\`; then :
  61718. - else
  61719. - $echo \"\$relink_command_output\" >&2
  61720. - $rm \"\$progdir/\$file\"
  61721. - exit $EXIT_FAILURE
  61722. - fi
  61723. - fi
  61724. + # Get the real and link names of the library.
  61725. + eval shared_ext=\"$shrext_cmds\"
  61726. + eval library_names=\"$library_names_spec\"
  61727. + set dummy $library_names
  61728. + shift
  61729. + realname="$1"
  61730. + shift
  61731. - $mv \"\$progdir/\$file\" \"\$progdir/\$program\" 2>/dev/null ||
  61732. - { $rm \"\$progdir/\$program\";
  61733. - $mv \"\$progdir/\$file\" \"\$progdir/\$program\"; }
  61734. - $rm \"\$progdir/\$file\"
  61735. - fi"
  61736. + if test -n "$soname_spec"; then
  61737. + eval soname=\"$soname_spec\"
  61738. else
  61739. - $echo >> $output "\
  61740. - program='$outputname'
  61741. - progdir=\"\$thisdir/$objdir\"
  61742. -"
  61743. + soname="$realname"
  61744. fi
  61745. -
  61746. - $echo >> $output "\
  61747. -
  61748. - if test -f \"\$progdir/\$program\"; then"
  61749. -
  61750. - # Export our shlibpath_var if we have one.
  61751. - if test "$shlibpath_overrides_runpath" = yes && test -n "$shlibpath_var" && test -n "$temp_rpath"; then
  61752. - $echo >> $output "\
  61753. - # Add our own library path to $shlibpath_var
  61754. - $shlibpath_var=\"$temp_rpath\$$shlibpath_var\"
  61755. -
  61756. - # Some systems cannot cope with colon-terminated $shlibpath_var
  61757. - # The second colon is a workaround for a bug in BeOS R4 sed
  61758. - $shlibpath_var=\`\$echo \"X\$$shlibpath_var\" | \$Xsed -e 's/::*\$//'\`
  61759. -
  61760. - export $shlibpath_var
  61761. -"
  61762. + if test -z "$dlname"; then
  61763. + dlname=$soname
  61764. fi
  61765. - # fixup the dll searchpath if we need to.
  61766. - if test -n "$dllsearchpath"; then
  61767. - $echo >> $output "\
  61768. - # Add the dll search path components to the executable PATH
  61769. - PATH=$dllsearchpath:\$PATH
  61770. -"
  61771. - fi
  61772. + lib="$output_objdir/$realname"
  61773. + linknames=
  61774. + for link
  61775. + do
  61776. + linknames="$linknames $link"
  61777. + done
  61778. - $echo >> $output "\
  61779. - if test \"\$libtool_execute_magic\" != \"$magic\"; then
  61780. - # Run the actual program with our arguments.
  61781. -"
  61782. - case $host in
  61783. - # Backslashes separate directories on plain windows
  61784. - *-*-mingw | *-*-os2*)
  61785. - $echo >> $output "\
  61786. - exec \$progdir\\\\\$program \${1+\"\$@\"}
  61787. -"
  61788. - ;;
  61789. + # Use standard objects if they are pic
  61790. + test -z "$pic_flag" && libobjs=`$ECHO "X$libobjs" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP`
  61791. + test "X$libobjs" = "X " && libobjs=
  61792. - *)
  61793. - $echo >> $output "\
  61794. - exec \$progdir/\$program \${1+\"\$@\"}
  61795. -"
  61796. + delfiles=
  61797. + if test -n "$export_symbols" && test -n "$include_expsyms"; then
  61798. + $opt_dry_run || cp "$export_symbols" "$output_objdir/$libname.uexp"
  61799. + export_symbols="$output_objdir/$libname.uexp"
  61800. + delfiles="$delfiles $export_symbols"
  61801. + fi
  61802. +
  61803. + orig_export_symbols=
  61804. + case $host_os in
  61805. + cygwin* | mingw* | cegcc*)
  61806. + if test -n "$export_symbols" && test -z "$export_symbols_regex"; then
  61807. + # exporting using user supplied symfile
  61808. + if test "x`$SED 1q $export_symbols`" != xEXPORTS; then
  61809. + # and it's NOT already a .def file. Must figure out
  61810. + # which of the given symbols are data symbols and tag
  61811. + # them as such. So, trigger use of export_symbols_cmds.
  61812. + # export_symbols gets reassigned inside the "prepare
  61813. + # the list of exported symbols" if statement, so the
  61814. + # include_expsyms logic still works.
  61815. + orig_export_symbols="$export_symbols"
  61816. + export_symbols=
  61817. + always_export_symbols=yes
  61818. + fi
  61819. + fi
  61820. ;;
  61821. esac
  61822. - $echo >> $output "\
  61823. - \$echo \"\$0: cannot exec \$program \${1+\"\$@\"}\"
  61824. - exit $EXIT_FAILURE
  61825. - fi
  61826. - else
  61827. - # The program doesn't exist.
  61828. - \$echo \"\$0: error: \$progdir/\$program does not exist\" 1>&2
  61829. - \$echo \"This script is just a wrapper for \$program.\" 1>&2
  61830. - $echo \"See the $PACKAGE documentation for more information.\" 1>&2
  61831. - exit $EXIT_FAILURE
  61832. - fi
  61833. -fi\
  61834. -"
  61835. - chmod +x $output
  61836. - fi
  61837. - exit $EXIT_SUCCESS
  61838. - ;;
  61839. - esac
  61840. -
  61841. - # See if we need to build an old-fashioned archive.
  61842. - for oldlib in $oldlibs; do
  61843. - if test "$build_libtool_libs" = convenience; then
  61844. - oldobjs="$libobjs_save"
  61845. - addlibs="$convenience"
  61846. - build_libtool_libs=no
  61847. - else
  61848. - if test "$build_libtool_libs" = module; then
  61849. - oldobjs="$libobjs_save"
  61850. - build_libtool_libs=no
  61851. - else
  61852. - oldobjs="$old_deplibs $non_pic_objects"
  61853. + # Prepare the list of exported symbols
  61854. + if test -z "$export_symbols"; then
  61855. + if test "$always_export_symbols" = yes || test -n "$export_symbols_regex"; then
  61856. + func_verbose "generating symbol list for \`$libname.la'"
  61857. + export_symbols="$output_objdir/$libname.exp"
  61858. + $opt_dry_run || $RM $export_symbols
  61859. + cmds=$export_symbols_cmds
  61860. + save_ifs="$IFS"; IFS='~'
  61861. + for cmd in $cmds; do
  61862. + IFS="$save_ifs"
  61863. + eval cmd=\"$cmd\"
  61864. + func_len " $cmd"
  61865. + len=$func_len_result
  61866. + if test "$len" -lt "$max_cmd_len" || test "$max_cmd_len" -le -1; then
  61867. + func_show_eval "$cmd" 'exit $?'
  61868. + skipped_export=false
  61869. + else
  61870. + # The command line is too long to execute in one step.
  61871. + func_verbose "using reloadable object file for export list..."
  61872. + skipped_export=:
  61873. + # Break out early, otherwise skipped_export may be
  61874. + # set to false by a later but shorter cmd.
  61875. + break
  61876. + fi
  61877. + done
  61878. + IFS="$save_ifs"
  61879. + if test -n "$export_symbols_regex" && test "X$skipped_export" != "X:"; then
  61880. + func_show_eval '$EGREP -e "$export_symbols_regex" "$export_symbols" > "${export_symbols}T"'
  61881. + func_show_eval '$MV "${export_symbols}T" "$export_symbols"'
  61882. + fi
  61883. + fi
  61884. fi
  61885. - addlibs="$old_convenience"
  61886. - fi
  61887. - if test -n "$addlibs"; then
  61888. - gentop="$output_objdir/${outputname}x"
  61889. - $show "${rm}r $gentop"
  61890. - $run ${rm}r "$gentop"
  61891. - $show "$mkdir $gentop"
  61892. - $run $mkdir "$gentop"
  61893. - status=$?
  61894. - if test "$status" -ne 0 && test ! -d "$gentop"; then
  61895. - exit $status
  61896. + if test -n "$export_symbols" && test -n "$include_expsyms"; then
  61897. + tmp_export_symbols="$export_symbols"
  61898. + test -n "$orig_export_symbols" && tmp_export_symbols="$orig_export_symbols"
  61899. + $opt_dry_run || eval '$ECHO "X$include_expsyms" | $Xsed | $SP2NL >> "$tmp_export_symbols"'
  61900. + fi
  61901. +
  61902. + if test "X$skipped_export" != "X:" && test -n "$orig_export_symbols"; then
  61903. + # The given exports_symbols file has to be filtered, so filter it.
  61904. + func_verbose "filter symbol list for \`$libname.la' to tag DATA exports"
  61905. + # FIXME: $output_objdir/$libname.filter potentially contains lots of
  61906. + # 's' commands which not all seds can handle. GNU sed should be fine
  61907. + # though. Also, the filter scales superlinearly with the number of
  61908. + # global variables. join(1) would be nice here, but unfortunately
  61909. + # isn't a blessed tool.
  61910. + $opt_dry_run || $SED -e '/[ ,]DATA/!d;s,\(.*\)\([ \,].*\),s|^\1$|\1\2|,' < $export_symbols > $output_objdir/$libname.filter
  61911. + delfiles="$delfiles $export_symbols $output_objdir/$libname.filter"
  61912. + export_symbols=$output_objdir/$libname.def
  61913. + $opt_dry_run || $SED -f $output_objdir/$libname.filter < $orig_export_symbols > $export_symbols
  61914. fi
  61915. - generated="$generated $gentop"
  61916. - # Add in members from convenience archives.
  61917. - for xlib in $addlibs; do
  61918. - # Extract the objects.
  61919. - case $xlib in
  61920. - [\\/]* | [A-Za-z]:[\\/]*) xabs="$xlib" ;;
  61921. - *) xabs=`pwd`"/$xlib" ;;
  61922. + tmp_deplibs=
  61923. + for test_deplib in $deplibs; do
  61924. + case " $convenience " in
  61925. + *" $test_deplib "*) ;;
  61926. + *)
  61927. + tmp_deplibs="$tmp_deplibs $test_deplib"
  61928. + ;;
  61929. esac
  61930. - xlib=`$echo "X$xlib" | $Xsed -e 's%^.*/%%'`
  61931. - xdir="$gentop/$xlib"
  61932. + done
  61933. + deplibs="$tmp_deplibs"
  61934. - $show "${rm}r $xdir"
  61935. - $run ${rm}r "$xdir"
  61936. - $show "$mkdir $xdir"
  61937. - $run $mkdir "$xdir"
  61938. - status=$?
  61939. - if test "$status" -ne 0 && test ! -d "$xdir"; then
  61940. - exit $status
  61941. - fi
  61942. - # We will extract separately just the conflicting names and we will no
  61943. - # longer touch any unique names. It is faster to leave these extract
  61944. - # automatically by $AR in one run.
  61945. - $show "(cd $xdir && $AR x $xabs)"
  61946. - $run eval "(cd \$xdir && $AR x \$xabs)" || exit $?
  61947. - if ($AR t "$xabs" | sort | sort -uc >/dev/null 2>&1); then
  61948. - :
  61949. + if test -n "$convenience"; then
  61950. + if test -n "$whole_archive_flag_spec" &&
  61951. + test "$compiler_needs_object" = yes &&
  61952. + test -z "$libobjs"; then
  61953. + # extract the archives, so we have objects to list.
  61954. + # TODO: could optimize this to just extract one archive.
  61955. + whole_archive_flag_spec=
  61956. + fi
  61957. + if test -n "$whole_archive_flag_spec"; then
  61958. + save_libobjs=$libobjs
  61959. + eval libobjs=\"\$libobjs $whole_archive_flag_spec\"
  61960. + test "X$libobjs" = "X " && libobjs=
  61961. else
  61962. - $echo "$modename: warning: object name conflicts; renaming object files" 1>&2
  61963. - $echo "$modename: warning: to ensure that they will not overwrite" 1>&2
  61964. - $AR t "$xabs" | sort | uniq -cd | while read -r count name
  61965. - do
  61966. - i=1
  61967. - while test "$i" -le "$count"
  61968. - do
  61969. - # Put our $i before any first dot (extension)
  61970. - # Never overwrite any file
  61971. - name_to="$name"
  61972. - while test "X$name_to" = "X$name" || test -f "$xdir/$name_to"
  61973. - do
  61974. - name_to=`$echo "X$name_to" | $Xsed -e "s/\([^.]*\)/\1-$i/"`
  61975. - done
  61976. - $show "(cd $xdir && $AR xN $i $xabs '$name' && $mv '$name' '$name_to')"
  61977. - $run eval "(cd \$xdir && $AR xN $i \$xabs '$name' && $mv '$name' '$name_to')" || exit $?
  61978. - i=`expr $i + 1`
  61979. - done
  61980. - done
  61981. + gentop="$output_objdir/${outputname}x"
  61982. + generated="$generated $gentop"
  61983. +
  61984. + func_extract_archives $gentop $convenience
  61985. + libobjs="$libobjs $func_extract_archives_result"
  61986. + test "X$libobjs" = "X " && libobjs=
  61987. fi
  61988. + fi
  61989. - oldobjs="$oldobjs "`find $xdir -name \*.${objext} -print -o -name \*.lo -print | $NL2SP`
  61990. - done
  61991. - fi
  61992. + if test "$thread_safe" = yes && test -n "$thread_safe_flag_spec"; then
  61993. + eval flag=\"$thread_safe_flag_spec\"
  61994. + linker_flags="$linker_flags $flag"
  61995. + fi
  61996. - # Do each command in the archive commands.
  61997. - if test -n "$old_archive_from_new_cmds" && test "$build_libtool_libs" = yes; then
  61998. - cmds=$old_archive_from_new_cmds
  61999. - else
  62000. - eval cmds=\"$old_archive_cmds\"
  62001. + # Make a backup of the uninstalled library when relinking
  62002. + if test "$mode" = relink; then
  62003. + $opt_dry_run || eval '(cd $output_objdir && $RM ${realname}U && $MV $realname ${realname}U)' || exit $?
  62004. + fi
  62005. - if len=`expr "X$cmds" : ".*"` &&
  62006. - test "$len" -le "$max_cmd_len" || test "$max_cmd_len" -le -1; then
  62007. - cmds=$old_archive_cmds
  62008. - else
  62009. - # the command line is too long to link in one step, link in parts
  62010. - $echo "using piecewise archive linking..."
  62011. - save_RANLIB=$RANLIB
  62012. - RANLIB=:
  62013. - objlist=
  62014. - concat_cmds=
  62015. - save_oldobjs=$oldobjs
  62016. - # GNU ar 2.10+ was changed to match POSIX; thus no paths are
  62017. - # encoded into archives. This makes 'ar r' malfunction in
  62018. - # this piecewise linking case whenever conflicting object
  62019. - # names appear in distinct ar calls; check, warn and compensate.
  62020. - if (for obj in $save_oldobjs
  62021. - do
  62022. - $echo "X$obj" | $Xsed -e 's%^.*/%%'
  62023. - done | sort | sort -uc >/dev/null 2>&1); then
  62024. - :
  62025. + # Do each of the archive commands.
  62026. + if test "$module" = yes && test -n "$module_cmds" ; then
  62027. + if test -n "$export_symbols" && test -n "$module_expsym_cmds"; then
  62028. + eval test_cmds=\"$module_expsym_cmds\"
  62029. + cmds=$module_expsym_cmds
  62030. else
  62031. - $echo "$modename: warning: object name conflicts; overriding AR_FLAGS to 'cq'" 1>&2
  62032. - $echo "$modename: warning: to ensure that POSIX-compatible ar will work" 1>&2
  62033. - AR_FLAGS=cq
  62034. + eval test_cmds=\"$module_cmds\"
  62035. + cmds=$module_cmds
  62036. fi
  62037. - # Is there a better way of finding the last object in the list?
  62038. - for obj in $save_oldobjs
  62039. - do
  62040. - last_oldobj=$obj
  62041. - done
  62042. - for obj in $save_oldobjs
  62043. - do
  62044. - oldobjs="$objlist $obj"
  62045. - objlist="$objlist $obj"
  62046. - eval test_cmds=\"$old_archive_cmds\"
  62047. - if len=`expr "X$test_cmds" : ".*"` &&
  62048. - test "$len" -le "$max_cmd_len"; then
  62049. - :
  62050. - else
  62051. - # the above command should be used before it gets too long
  62052. - oldobjs=$objlist
  62053. - if test "$obj" = "$last_oldobj" ; then
  62054. - RANLIB=$save_RANLIB
  62055. - fi
  62056. - test -z "$concat_cmds" || concat_cmds=$concat_cmds~
  62057. - eval concat_cmds=\"\${concat_cmds}$old_archive_cmds\"
  62058. - objlist=
  62059. - fi
  62060. - done
  62061. - RANLIB=$save_RANLIB
  62062. - oldobjs=$objlist
  62063. - if test "X$oldobjs" = "X" ; then
  62064. - eval cmds=\"\$concat_cmds\"
  62065. + else
  62066. + if test -n "$export_symbols" && test -n "$archive_expsym_cmds"; then
  62067. + eval test_cmds=\"$archive_expsym_cmds\"
  62068. + cmds=$archive_expsym_cmds
  62069. else
  62070. - eval cmds=\"\$concat_cmds~\$old_archive_cmds\"
  62071. + eval test_cmds=\"$archive_cmds\"
  62072. + cmds=$archive_cmds
  62073. fi
  62074. fi
  62075. - fi
  62076. - save_ifs="$IFS"; IFS='~'
  62077. - for cmd in $cmds; do
  62078. - eval cmd=\"$cmd\"
  62079. - IFS="$save_ifs"
  62080. - $show "$cmd"
  62081. - $run eval "$cmd" || exit $?
  62082. - done
  62083. - IFS="$save_ifs"
  62084. - done
  62085. -
  62086. - if test -n "$generated"; then
  62087. - $show "${rm}r$generated"
  62088. - $run ${rm}r$generated
  62089. - fi
  62090. -
  62091. - # Now create the libtool archive.
  62092. - case $output in
  62093. - *.la)
  62094. - old_library=
  62095. - test "$build_old_libs" = yes && old_library="$libname.$libext"
  62096. - $show "creating $output"
  62097. - # Preserve any variables that may affect compiler behavior
  62098. - for var in $variables_saved_for_relink; do
  62099. - if eval test -z \"\${$var+set}\"; then
  62100. - relink_command="{ test -z \"\${$var+set}\" || unset $var || { $var=; export $var; }; }; $relink_command"
  62101. - elif eval var_value=\$$var; test -z "$var_value"; then
  62102. - relink_command="$var=; export $var; $relink_command"
  62103. + if test "X$skipped_export" != "X:" &&
  62104. + func_len " $test_cmds" &&
  62105. + len=$func_len_result &&
  62106. + test "$len" -lt "$max_cmd_len" || test "$max_cmd_len" -le -1; then
  62107. + :
  62108. else
  62109. - var_value=`$echo "X$var_value" | $Xsed -e "$sed_quote_subst"`
  62110. - relink_command="$var=\"$var_value\"; export $var; $relink_command"
  62111. - fi
  62112. - done
  62113. - # Quote the link command for shipping.
  62114. - relink_command="(cd `pwd`; $SHELL $progpath $preserve_args --mode=relink $libtool_args @inst_prefix_dir@)"
  62115. - relink_command=`$echo "X$relink_command" | $Xsed -e "$sed_quote_subst"`
  62116. - if test "$hardcode_automatic" = yes ; then
  62117. - relink_command=
  62118. - fi
  62119. + # The command line is too long to link in one step, link piecewise
  62120. + # or, if using GNU ld and skipped_export is not :, use a linker
  62121. + # script.
  62122. +
  62123. + # Save the value of $output and $libobjs because we want to
  62124. + # use them later. If we have whole_archive_flag_spec, we
  62125. + # want to use save_libobjs as it was before
  62126. + # whole_archive_flag_spec was expanded, because we can't
  62127. + # assume the linker understands whole_archive_flag_spec.
  62128. + # This may have to be revisited, in case too many
  62129. + # convenience libraries get linked in and end up exceeding
  62130. + # the spec.
  62131. + if test -z "$convenience" || test -z "$whole_archive_flag_spec"; then
  62132. + save_libobjs=$libobjs
  62133. + fi
  62134. + save_output=$output
  62135. + output_la=`$ECHO "X$output" | $Xsed -e "$basename"`
  62136. + # Clear the reloadable object creation command queue and
  62137. + # initialize k to one.
  62138. + test_cmds=
  62139. + concat_cmds=
  62140. + objlist=
  62141. + last_robj=
  62142. + k=1
  62143. - # Only create the output if not a dry run.
  62144. - if test -z "$run"; then
  62145. - for installed in no yes; do
  62146. - if test "$installed" = yes; then
  62147. - if test -z "$install_libdir"; then
  62148. - break
  62149. + if test -n "$save_libobjs" && test "X$skipped_export" != "X:" && test "$with_gnu_ld" = yes; then
  62150. + output=${output_objdir}/${output_la}.lnkscript
  62151. + func_verbose "creating GNU ld script: $output"
  62152. + $ECHO 'INPUT (' > $output
  62153. + for obj in $save_libobjs
  62154. + do
  62155. + $ECHO "$obj" >> $output
  62156. + done
  62157. + $ECHO ')' >> $output
  62158. + delfiles="$delfiles $output"
  62159. + elif test -n "$save_libobjs" && test "X$skipped_export" != "X:" && test "X$file_list_spec" != X; then
  62160. + output=${output_objdir}/${output_la}.lnk
  62161. + func_verbose "creating linker input file list: $output"
  62162. + : > $output
  62163. + set x $save_libobjs
  62164. + shift
  62165. + firstobj=
  62166. + if test "$compiler_needs_object" = yes; then
  62167. + firstobj="$1 "
  62168. + shift
  62169. fi
  62170. - output="$output_objdir/$outputname"i
  62171. - # Replace all uninstalled libtool libraries with the installed ones
  62172. - newdependency_libs=
  62173. - for deplib in $dependency_libs; do
  62174. - case $deplib in
  62175. - *.la)
  62176. - name=`$echo "X$deplib" | $Xsed -e 's%^.*/%%'`
  62177. - eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib`
  62178. - if test -z "$libdir"; then
  62179. - $echo "$modename: \`$deplib' is not a valid libtool archive" 1>&2
  62180. - exit $EXIT_FAILURE
  62181. - fi
  62182. - newdependency_libs="$newdependency_libs $libdir/$name"
  62183. - ;;
  62184. - *) newdependency_libs="$newdependency_libs $deplib" ;;
  62185. - esac
  62186. + for obj
  62187. + do
  62188. + $ECHO "$obj" >> $output
  62189. done
  62190. - dependency_libs="$newdependency_libs"
  62191. - newdlfiles=
  62192. - for lib in $dlfiles; do
  62193. - name=`$echo "X$lib" | $Xsed -e 's%^.*/%%'`
  62194. - eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $lib`
  62195. - if test -z "$libdir"; then
  62196. - $echo "$modename: \`$lib' is not a valid libtool archive" 1>&2
  62197. - exit $EXIT_FAILURE
  62198. + delfiles="$delfiles $output"
  62199. + output=$firstobj\"$file_list_spec$output\"
  62200. + else
  62201. + if test -n "$save_libobjs"; then
  62202. + func_verbose "creating reloadable object files..."
  62203. + output=$output_objdir/$output_la-${k}.$objext
  62204. + eval test_cmds=\"$reload_cmds\"
  62205. + func_len " $test_cmds"
  62206. + len0=$func_len_result
  62207. + len=$len0
  62208. +
  62209. + # Loop over the list of objects to be linked.
  62210. + for obj in $save_libobjs
  62211. + do
  62212. + func_len " $obj"
  62213. + func_arith $len + $func_len_result
  62214. + len=$func_arith_result
  62215. + if test "X$objlist" = X ||
  62216. + test "$len" -lt "$max_cmd_len"; then
  62217. + func_append objlist " $obj"
  62218. + else
  62219. + # The command $test_cmds is almost too long, add a
  62220. + # command to the queue.
  62221. + if test "$k" -eq 1 ; then
  62222. + # The first file doesn't have a previous command to add.
  62223. + eval concat_cmds=\"$reload_cmds $objlist $last_robj\"
  62224. + else
  62225. + # All subsequent reloadable object files will link in
  62226. + # the last one created.
  62227. + eval concat_cmds=\"\$concat_cmds~$reload_cmds $objlist $last_robj~\$RM $last_robj\"
  62228. + fi
  62229. + last_robj=$output_objdir/$output_la-${k}.$objext
  62230. + func_arith $k + 1
  62231. + k=$func_arith_result
  62232. + output=$output_objdir/$output_la-${k}.$objext
  62233. + objlist=$obj
  62234. + func_len " $last_robj"
  62235. + func_arith $len0 + $func_len_result
  62236. + len=$func_arith_result
  62237. + fi
  62238. + done
  62239. + # Handle the remaining objects by creating one last
  62240. + # reloadable object file. All subsequent reloadable object
  62241. + # files will link in the last one created.
  62242. + test -z "$concat_cmds" || concat_cmds=$concat_cmds~
  62243. + eval concat_cmds=\"\${concat_cmds}$reload_cmds $objlist $last_robj\"
  62244. + if test -n "$last_robj"; then
  62245. + eval concat_cmds=\"\${concat_cmds}~\$RM $last_robj\"
  62246. fi
  62247. - newdlfiles="$newdlfiles $libdir/$name"
  62248. - done
  62249. - dlfiles="$newdlfiles"
  62250. - newdlprefiles=
  62251. - for lib in $dlprefiles; do
  62252. - name=`$echo "X$lib" | $Xsed -e 's%^.*/%%'`
  62253. - eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $lib`
  62254. - if test -z "$libdir"; then
  62255. - $echo "$modename: \`$lib' is not a valid libtool archive" 1>&2
  62256. - exit $EXIT_FAILURE
  62257. + delfiles="$delfiles $output"
  62258. +
  62259. + else
  62260. + output=
  62261. + fi
  62262. +
  62263. + if ${skipped_export-false}; then
  62264. + func_verbose "generating symbol list for \`$libname.la'"
  62265. + export_symbols="$output_objdir/$libname.exp"
  62266. + $opt_dry_run || $RM $export_symbols
  62267. + libobjs=$output
  62268. + # Append the command to create the export file.
  62269. + test -z "$concat_cmds" || concat_cmds=$concat_cmds~
  62270. + eval concat_cmds=\"\$concat_cmds$export_symbols_cmds\"
  62271. + if test -n "$last_robj"; then
  62272. + eval concat_cmds=\"\$concat_cmds~\$RM $last_robj\"
  62273. fi
  62274. - newdlprefiles="$newdlprefiles $libdir/$name"
  62275. + fi
  62276. +
  62277. + test -n "$save_libobjs" &&
  62278. + func_verbose "creating a temporary reloadable object file: $output"
  62279. +
  62280. + # Loop through the commands generated above and execute them.
  62281. + save_ifs="$IFS"; IFS='~'
  62282. + for cmd in $concat_cmds; do
  62283. + IFS="$save_ifs"
  62284. + $opt_silent || {
  62285. + func_quote_for_expand "$cmd"
  62286. + eval "func_echo $func_quote_for_expand_result"
  62287. + }
  62288. + $opt_dry_run || eval "$cmd" || {
  62289. + lt_exit=$?
  62290. +
  62291. + # Restore the uninstalled library and exit
  62292. + if test "$mode" = relink; then
  62293. + ( cd "$output_objdir" && \
  62294. + $RM "${realname}T" && \
  62295. + $MV "${realname}U" "$realname" )
  62296. + fi
  62297. +
  62298. + exit $lt_exit
  62299. + }
  62300. done
  62301. - dlprefiles="$newdlprefiles"
  62302. + IFS="$save_ifs"
  62303. +
  62304. + if test -n "$export_symbols_regex" && ${skipped_export-false}; then
  62305. + func_show_eval '$EGREP -e "$export_symbols_regex" "$export_symbols" > "${export_symbols}T"'
  62306. + func_show_eval '$MV "${export_symbols}T" "$export_symbols"'
  62307. + fi
  62308. + fi
  62309. +
  62310. + if ${skipped_export-false}; then
  62311. + if test -n "$export_symbols" && test -n "$include_expsyms"; then
  62312. + tmp_export_symbols="$export_symbols"
  62313. + test -n "$orig_export_symbols" && tmp_export_symbols="$orig_export_symbols"
  62314. + $opt_dry_run || eval '$ECHO "X$include_expsyms" | $Xsed | $SP2NL >> "$tmp_export_symbols"'
  62315. + fi
  62316. +
  62317. + if test -n "$orig_export_symbols"; then
  62318. + # The given exports_symbols file has to be filtered, so filter it.
  62319. + func_verbose "filter symbol list for \`$libname.la' to tag DATA exports"
  62320. + # FIXME: $output_objdir/$libname.filter potentially contains lots of
  62321. + # 's' commands which not all seds can handle. GNU sed should be fine
  62322. + # though. Also, the filter scales superlinearly with the number of
  62323. + # global variables. join(1) would be nice here, but unfortunately
  62324. + # isn't a blessed tool.
  62325. + $opt_dry_run || $SED -e '/[ ,]DATA/!d;s,\(.*\)\([ \,].*\),s|^\1$|\1\2|,' < $export_symbols > $output_objdir/$libname.filter
  62326. + delfiles="$delfiles $export_symbols $output_objdir/$libname.filter"
  62327. + export_symbols=$output_objdir/$libname.def
  62328. + $opt_dry_run || $SED -f $output_objdir/$libname.filter < $orig_export_symbols > $export_symbols
  62329. + fi
  62330. + fi
  62331. +
  62332. + libobjs=$output
  62333. + # Restore the value of output.
  62334. + output=$save_output
  62335. +
  62336. + if test -n "$convenience" && test -n "$whole_archive_flag_spec"; then
  62337. + eval libobjs=\"\$libobjs $whole_archive_flag_spec\"
  62338. + test "X$libobjs" = "X " && libobjs=
  62339. + fi
  62340. + # Expand the library linking commands again to reset the
  62341. + # value of $libobjs for piecewise linking.
  62342. +
  62343. + # Do each of the archive commands.
  62344. + if test "$module" = yes && test -n "$module_cmds" ; then
  62345. + if test -n "$export_symbols" && test -n "$module_expsym_cmds"; then
  62346. + cmds=$module_expsym_cmds
  62347. + else
  62348. + cmds=$module_cmds
  62349. + fi
  62350. else
  62351. - newdlfiles=
  62352. - for lib in $dlfiles; do
  62353. - case $lib in
  62354. - [\\/]* | [A-Za-z]:[\\/]*) abs="$lib" ;;
  62355. - *) abs=`pwd`"/$lib" ;;
  62356. - esac
  62357. - newdlfiles="$newdlfiles $abs"
  62358. - done
  62359. - dlfiles="$newdlfiles"
  62360. - newdlprefiles=
  62361. - for lib in $dlprefiles; do
  62362. - case $lib in
  62363. - [\\/]* | [A-Za-z]:[\\/]*) abs="$lib" ;;
  62364. - *) abs=`pwd`"/$lib" ;;
  62365. - esac
  62366. - newdlprefiles="$newdlprefiles $abs"
  62367. - done
  62368. - dlprefiles="$newdlprefiles"
  62369. + if test -n "$export_symbols" && test -n "$archive_expsym_cmds"; then
  62370. + cmds=$archive_expsym_cmds
  62371. + else
  62372. + cmds=$archive_cmds
  62373. + fi
  62374. fi
  62375. - $rm $output
  62376. - # place dlname in correct position for cygwin
  62377. - tdlname=$dlname
  62378. - case $host,$output,$installed,$module,$dlname in
  62379. - *cygwin*,*lai,yes,no,*.dll | *mingw*,*lai,yes,no,*.dll) tdlname=../bin/$dlname ;;
  62380. - esac
  62381. - $echo > $output "\
  62382. -# $outputname - a libtool library file
  62383. -# Generated by $PROGRAM - GNU $PACKAGE $VERSION$TIMESTAMP
  62384. -#
  62385. -# Please DO NOT delete this file!
  62386. -# It is necessary for linking the library.
  62387. + fi
  62388. -# The name that we can dlopen(3).
  62389. -dlname='$tdlname'
  62390. + if test -n "$delfiles"; then
  62391. + # Append the command to remove temporary files to $cmds.
  62392. + eval cmds=\"\$cmds~\$RM $delfiles\"
  62393. + fi
  62394. -# Names of this library.
  62395. -library_names='$library_names'
  62396. + # Add any objects from preloaded convenience libraries
  62397. + if test -n "$dlprefiles"; then
  62398. + gentop="$output_objdir/${outputname}x"
  62399. + generated="$generated $gentop"
  62400. -# The name of the static archive.
  62401. -old_library='$old_library'
  62402. + func_extract_archives $gentop $dlprefiles
  62403. + libobjs="$libobjs $func_extract_archives_result"
  62404. + test "X$libobjs" = "X " && libobjs=
  62405. + fi
  62406. -# Libraries that this one depends upon.
  62407. -dependency_libs='$dependency_libs'
  62408. + save_ifs="$IFS"; IFS='~'
  62409. + for cmd in $cmds; do
  62410. + IFS="$save_ifs"
  62411. + eval cmd=\"$cmd\"
  62412. + $opt_silent || {
  62413. + func_quote_for_expand "$cmd"
  62414. + eval "func_echo $func_quote_for_expand_result"
  62415. + }
  62416. + $opt_dry_run || eval "$cmd" || {
  62417. + lt_exit=$?
  62418. +
  62419. + # Restore the uninstalled library and exit
  62420. + if test "$mode" = relink; then
  62421. + ( cd "$output_objdir" && \
  62422. + $RM "${realname}T" && \
  62423. + $MV "${realname}U" "$realname" )
  62424. + fi
  62425. -# Version information for $libname.
  62426. -current=$current
  62427. -age=$age
  62428. -revision=$revision
  62429. + exit $lt_exit
  62430. + }
  62431. + done
  62432. + IFS="$save_ifs"
  62433. -# Is this an already installed library?
  62434. -installed=$installed
  62435. + # Restore the uninstalled library and exit
  62436. + if test "$mode" = relink; then
  62437. + $opt_dry_run || eval '(cd $output_objdir && $RM ${realname}T && $MV $realname ${realname}T && $MV ${realname}U $realname)' || exit $?
  62438. -# Should we warn about portability when linking against -modules?
  62439. -shouldnotlink=$module
  62440. + if test -n "$convenience"; then
  62441. + if test -z "$whole_archive_flag_spec"; then
  62442. + func_show_eval '${RM}r "$gentop"'
  62443. + fi
  62444. + fi
  62445. -# Files to dlopen/dlpreopen
  62446. -dlopen='$dlfiles'
  62447. -dlpreopen='$dlprefiles'
  62448. + exit $EXIT_SUCCESS
  62449. + fi
  62450. -# Directory that this library needs to be installed in:
  62451. -libdir='$install_libdir'"
  62452. - if test "$installed" = no && test "$need_relink" = yes; then
  62453. - $echo >> $output "\
  62454. -relink_command=\"$relink_command\""
  62455. + # Create links to the real library.
  62456. + for linkname in $linknames; do
  62457. + if test "$realname" != "$linkname"; then
  62458. + func_show_eval '(cd "$output_objdir" && $RM "$linkname" && $LN_S "$realname" "$linkname")' 'exit $?'
  62459. fi
  62460. done
  62461. - fi
  62462. - # Do a symbolic link so that the libtool archive can be found in
  62463. - # LD_LIBRARY_PATH before the program is installed.
  62464. - $show "(cd $output_objdir && $rm $outputname && $LN_S ../$outputname $outputname)"
  62465. - $run eval '(cd $output_objdir && $rm $outputname && $LN_S ../$outputname $outputname)' || exit $?
  62466. + # If -module or -export-dynamic was specified, set the dlname.
  62467. + if test "$module" = yes || test "$export_dynamic" = yes; then
  62468. + # On all known operating systems, these are identical.
  62469. + dlname="$soname"
  62470. + fi
  62471. + fi
  62472. ;;
  62473. - esac
  62474. - exit $EXIT_SUCCESS
  62475. - ;;
  62476. - # libtool install mode
  62477. - install)
  62478. - modename="$modename: install"
  62479. + obj)
  62480. + if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then
  62481. + func_warning "\`-dlopen' is ignored for objects"
  62482. + fi
  62483. - # There may be an optional sh(1) argument at the beginning of
  62484. - # install_prog (especially on Windows NT).
  62485. - if test "$nonopt" = "$SHELL" || test "$nonopt" = /bin/sh ||
  62486. - # Allow the use of GNU shtool's install command.
  62487. - $echo "X$nonopt" | $Xsed | grep shtool > /dev/null; then
  62488. - # Aesthetically quote it.
  62489. - arg=`$echo "X$nonopt" | $Xsed -e "$sed_quote_subst"`
  62490. - case $arg in
  62491. - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*)
  62492. - arg="\"$arg\""
  62493. - ;;
  62494. + case " $deplibs" in
  62495. + *\ -l* | *\ -L*)
  62496. + func_warning "\`-l' and \`-L' are ignored for objects" ;;
  62497. esac
  62498. - install_prog="$arg "
  62499. - arg="$1"
  62500. - shift
  62501. - else
  62502. - install_prog=
  62503. - arg="$nonopt"
  62504. - fi
  62505. - # The real first argument should be the name of the installation program.
  62506. - # Aesthetically quote it.
  62507. - arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`
  62508. - case $arg in
  62509. - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*)
  62510. - arg="\"$arg\""
  62511. - ;;
  62512. - esac
  62513. - install_prog="$install_prog$arg"
  62514. + test -n "$rpath" && \
  62515. + func_warning "\`-rpath' is ignored for objects"
  62516. - # We need to accept at least all the BSD install flags.
  62517. - dest=
  62518. - files=
  62519. - opts=
  62520. - prev=
  62521. - install_type=
  62522. - isdir=no
  62523. - stripme=
  62524. - for arg
  62525. - do
  62526. - if test -n "$dest"; then
  62527. - files="$files $dest"
  62528. - dest="$arg"
  62529. - continue
  62530. - fi
  62531. + test -n "$xrpath" && \
  62532. + func_warning "\`-R' is ignored for objects"
  62533. - case $arg in
  62534. - -d) isdir=yes ;;
  62535. - -f) prev="-f" ;;
  62536. - -g) prev="-g" ;;
  62537. - -m) prev="-m" ;;
  62538. - -o) prev="-o" ;;
  62539. - -s)
  62540. - stripme=" -s"
  62541. - continue
  62542. - ;;
  62543. - -*) ;;
  62544. + test -n "$vinfo" && \
  62545. + func_warning "\`-version-info' is ignored for objects"
  62546. + test -n "$release" && \
  62547. + func_warning "\`-release' is ignored for objects"
  62548. +
  62549. + case $output in
  62550. + *.lo)
  62551. + test -n "$objs$old_deplibs" && \
  62552. + func_fatal_error "cannot build library object \`$output' from non-libtool objects"
  62553. +
  62554. + libobj=$output
  62555. + func_lo2o "$libobj"
  62556. + obj=$func_lo2o_result
  62557. + ;;
  62558. *)
  62559. - # If the previous option needed an argument, then skip it.
  62560. - if test -n "$prev"; then
  62561. - prev=
  62562. - else
  62563. - dest="$arg"
  62564. - continue
  62565. - fi
  62566. + libobj=
  62567. + obj="$output"
  62568. ;;
  62569. esac
  62570. - # Aesthetically quote the argument.
  62571. - arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`
  62572. - case $arg in
  62573. - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*)
  62574. - arg="\"$arg\""
  62575. - ;;
  62576. - esac
  62577. - install_prog="$install_prog $arg"
  62578. - done
  62579. + # Delete the old objects.
  62580. + $opt_dry_run || $RM $obj $libobj
  62581. - if test -z "$install_prog"; then
  62582. - $echo "$modename: you must specify an install program" 1>&2
  62583. - $echo "$help" 1>&2
  62584. - exit $EXIT_FAILURE
  62585. - fi
  62586. + # Objects from convenience libraries. This assumes
  62587. + # single-version convenience libraries. Whenever we create
  62588. + # different ones for PIC/non-PIC, this we'll have to duplicate
  62589. + # the extraction.
  62590. + reload_conv_objs=
  62591. + gentop=
  62592. + # reload_cmds runs $LD directly, so let us get rid of
  62593. + # -Wl from whole_archive_flag_spec and hope we can get by with
  62594. + # turning comma into space..
  62595. + wl=
  62596. - if test -n "$prev"; then
  62597. - $echo "$modename: the \`$prev' option requires an argument" 1>&2
  62598. - $echo "$help" 1>&2
  62599. - exit $EXIT_FAILURE
  62600. - fi
  62601. + if test -n "$convenience"; then
  62602. + if test -n "$whole_archive_flag_spec"; then
  62603. + eval tmp_whole_archive_flags=\"$whole_archive_flag_spec\"
  62604. + reload_conv_objs=$reload_objs\ `$ECHO "X$tmp_whole_archive_flags" | $Xsed -e 's|,| |g'`
  62605. + else
  62606. + gentop="$output_objdir/${obj}x"
  62607. + generated="$generated $gentop"
  62608. - if test -z "$files"; then
  62609. - if test -z "$dest"; then
  62610. - $echo "$modename: no file or destination specified" 1>&2
  62611. - else
  62612. - $echo "$modename: you must specify a destination" 1>&2
  62613. + func_extract_archives $gentop $convenience
  62614. + reload_conv_objs="$reload_objs $func_extract_archives_result"
  62615. + fi
  62616. fi
  62617. - $echo "$help" 1>&2
  62618. - exit $EXIT_FAILURE
  62619. - fi
  62620. - # Strip any trailing slash from the destination.
  62621. - dest=`$echo "X$dest" | $Xsed -e 's%/$%%'`
  62622. + # Create the old-style object.
  62623. + 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
  62624. - # Check to see that the destination is a directory.
  62625. - test -d "$dest" && isdir=yes
  62626. - if test "$isdir" = yes; then
  62627. - destdir="$dest"
  62628. - destname=
  62629. - else
  62630. - destdir=`$echo "X$dest" | $Xsed -e 's%/[^/]*$%%'`
  62631. - test "X$destdir" = "X$dest" && destdir=.
  62632. - destname=`$echo "X$dest" | $Xsed -e 's%^.*/%%'`
  62633. + output="$obj"
  62634. + func_execute_cmds "$reload_cmds" 'exit $?'
  62635. - # Not a directory, so check to see that there is only one file specified.
  62636. - set dummy $files
  62637. - if test "$#" -gt 2; then
  62638. - $echo "$modename: \`$dest' is not a directory" 1>&2
  62639. - $echo "$help" 1>&2
  62640. - exit $EXIT_FAILURE
  62641. + # Exit if we aren't doing a library object file.
  62642. + if test -z "$libobj"; then
  62643. + if test -n "$gentop"; then
  62644. + func_show_eval '${RM}r "$gentop"'
  62645. + fi
  62646. +
  62647. + exit $EXIT_SUCCESS
  62648. fi
  62649. - fi
  62650. - case $destdir in
  62651. - [\\/]* | [A-Za-z]:[\\/]*) ;;
  62652. - *)
  62653. - for file in $files; do
  62654. - case $file in
  62655. - *.lo) ;;
  62656. - *)
  62657. - $echo "$modename: \`$destdir' must be an absolute directory name" 1>&2
  62658. - $echo "$help" 1>&2
  62659. - exit $EXIT_FAILURE
  62660. - ;;
  62661. - esac
  62662. - done
  62663. +
  62664. + if test "$build_libtool_libs" != yes; then
  62665. + if test -n "$gentop"; then
  62666. + func_show_eval '${RM}r "$gentop"'
  62667. + fi
  62668. +
  62669. + # Create an invalid libtool object if no PIC, so that we don't
  62670. + # accidentally link it into a program.
  62671. + # $show "echo timestamp > $libobj"
  62672. + # $opt_dry_run || eval "echo timestamp > $libobj" || exit $?
  62673. + exit $EXIT_SUCCESS
  62674. + fi
  62675. +
  62676. + if test -n "$pic_flag" || test "$pic_mode" != default; then
  62677. + # Only do commands if we really have different PIC objects.
  62678. + reload_objs="$libobjs $reload_conv_objs"
  62679. + output="$libobj"
  62680. + func_execute_cmds "$reload_cmds" 'exit $?'
  62681. + fi
  62682. +
  62683. + if test -n "$gentop"; then
  62684. + func_show_eval '${RM}r "$gentop"'
  62685. + fi
  62686. +
  62687. + exit $EXIT_SUCCESS
  62688. ;;
  62689. - esac
  62690. - # This variable tells wrapper scripts just to set variables rather
  62691. - # than running their programs.
  62692. - libtool_install_magic="$magic"
  62693. + prog)
  62694. + case $host in
  62695. + *cygwin*) func_stripname '' '.exe' "$output"
  62696. + output=$func_stripname_result.exe;;
  62697. + esac
  62698. + test -n "$vinfo" && \
  62699. + func_warning "\`-version-info' is ignored for programs"
  62700. - staticlibs=
  62701. - future_libdirs=
  62702. - current_libdirs=
  62703. - for file in $files; do
  62704. + test -n "$release" && \
  62705. + func_warning "\`-release' is ignored for programs"
  62706. - # Do each installation.
  62707. - case $file in
  62708. - *.$libext)
  62709. - # Do the static libraries later.
  62710. - staticlibs="$staticlibs $file"
  62711. + test "$preload" = yes \
  62712. + && test "$dlopen_support" = unknown \
  62713. + && test "$dlopen_self" = unknown \
  62714. + && test "$dlopen_self_static" = unknown && \
  62715. + func_warning "\`LT_INIT([dlopen])' not used. Assuming no dlopen support."
  62716. +
  62717. + case $host in
  62718. + *-*-rhapsody* | *-*-darwin1.[012])
  62719. + # On Rhapsody replace the C library is the System framework
  62720. + compile_deplibs=`$ECHO "X $compile_deplibs" | $Xsed -e 's/ -lc / System.ltframework /'`
  62721. + finalize_deplibs=`$ECHO "X $finalize_deplibs" | $Xsed -e 's/ -lc / System.ltframework /'`
  62722. ;;
  62723. + esac
  62724. - *.la)
  62725. - # Check to see that this really is a libtool archive.
  62726. - if (${SED} -e '2q' $file | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then :
  62727. - else
  62728. - $echo "$modename: \`$file' is not a valid libtool archive" 1>&2
  62729. - $echo "$help" 1>&2
  62730. - exit $EXIT_FAILURE
  62731. + case $host in
  62732. + *-*-darwin*)
  62733. + # Don't allow lazy linking, it breaks C++ global constructors
  62734. + # But is supposedly fixed on 10.4 or later (yay!).
  62735. + if test "$tagname" = CXX ; then
  62736. + case ${MACOSX_DEPLOYMENT_TARGET-10.0} in
  62737. + 10.[0123])
  62738. + compile_command="$compile_command ${wl}-bind_at_load"
  62739. + finalize_command="$finalize_command ${wl}-bind_at_load"
  62740. + ;;
  62741. + esac
  62742. fi
  62743. + # Time to change all our "foo.ltframework" stuff back to "-framework foo"
  62744. + compile_deplibs=`$ECHO "X $compile_deplibs" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'`
  62745. + finalize_deplibs=`$ECHO "X $finalize_deplibs" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'`
  62746. + ;;
  62747. + esac
  62748. - library_names=
  62749. - old_library=
  62750. - relink_command=
  62751. - # If there is no directory component, then add one.
  62752. - case $file in
  62753. - */* | *\\*) . $file ;;
  62754. - *) . ./$file ;;
  62755. +
  62756. + # move library search paths that coincide with paths to not yet
  62757. + # installed libraries to the beginning of the library search list
  62758. + new_libs=
  62759. + for path in $notinst_path; do
  62760. + case " $new_libs " in
  62761. + *" -L$path/$objdir "*) ;;
  62762. + *)
  62763. + case " $compile_deplibs " in
  62764. + *" -L$path/$objdir "*)
  62765. + new_libs="$new_libs -L$path/$objdir" ;;
  62766. + esac
  62767. + ;;
  62768. + esac
  62769. + done
  62770. + for deplib in $compile_deplibs; do
  62771. + case $deplib in
  62772. + -L*)
  62773. + case " $new_libs " in
  62774. + *" $deplib "*) ;;
  62775. + *) new_libs="$new_libs $deplib" ;;
  62776. + esac
  62777. + ;;
  62778. + *) new_libs="$new_libs $deplib" ;;
  62779. esac
  62780. + done
  62781. + compile_deplibs="$new_libs"
  62782. - # Add the libdir to current_libdirs if it is the destination.
  62783. - if test "X$destdir" = "X$libdir"; then
  62784. - case "$current_libdirs " in
  62785. +
  62786. + compile_command="$compile_command $compile_deplibs"
  62787. + finalize_command="$finalize_command $finalize_deplibs"
  62788. +
  62789. + if test -n "$rpath$xrpath"; then
  62790. + # If the user specified any rpath flags, then add them.
  62791. + for libdir in $rpath $xrpath; do
  62792. + # This is the magic to use -rpath.
  62793. + case "$finalize_rpath " in
  62794. *" $libdir "*) ;;
  62795. - *) current_libdirs="$current_libdirs $libdir" ;;
  62796. + *) finalize_rpath="$finalize_rpath $libdir" ;;
  62797. esac
  62798. - else
  62799. - # Note the libdir as a future libdir.
  62800. - case "$future_libdirs " in
  62801. + done
  62802. + fi
  62803. +
  62804. + # Now hardcode the library paths
  62805. + rpath=
  62806. + hardcode_libdirs=
  62807. + for libdir in $compile_rpath $finalize_rpath; do
  62808. + if test -n "$hardcode_libdir_flag_spec"; then
  62809. + if test -n "$hardcode_libdir_separator"; then
  62810. + if test -z "$hardcode_libdirs"; then
  62811. + hardcode_libdirs="$libdir"
  62812. + else
  62813. + # Just accumulate the unique libdirs.
  62814. + case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in
  62815. + *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*)
  62816. + ;;
  62817. + *)
  62818. + hardcode_libdirs="$hardcode_libdirs$hardcode_libdir_separator$libdir"
  62819. + ;;
  62820. + esac
  62821. + fi
  62822. + else
  62823. + eval flag=\"$hardcode_libdir_flag_spec\"
  62824. + rpath="$rpath $flag"
  62825. + fi
  62826. + elif test -n "$runpath_var"; then
  62827. + case "$perm_rpath " in
  62828. *" $libdir "*) ;;
  62829. - *) future_libdirs="$future_libdirs $libdir" ;;
  62830. + *) perm_rpath="$perm_rpath $libdir" ;;
  62831. esac
  62832. fi
  62833. + case $host in
  62834. + *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-cegcc*)
  62835. + testbindir=`${ECHO} "$libdir" | ${SED} -e 's*/lib$*/bin*'`
  62836. + case :$dllsearchpath: in
  62837. + *":$libdir:"*) ;;
  62838. + ::) dllsearchpath=$libdir;;
  62839. + *) dllsearchpath="$dllsearchpath:$libdir";;
  62840. + esac
  62841. + case :$dllsearchpath: in
  62842. + *":$testbindir:"*) ;;
  62843. + ::) dllsearchpath=$testbindir;;
  62844. + *) dllsearchpath="$dllsearchpath:$testbindir";;
  62845. + esac
  62846. + ;;
  62847. + esac
  62848. + done
  62849. + # Substitute the hardcoded libdirs into the rpath.
  62850. + if test -n "$hardcode_libdir_separator" &&
  62851. + test -n "$hardcode_libdirs"; then
  62852. + libdir="$hardcode_libdirs"
  62853. + eval rpath=\" $hardcode_libdir_flag_spec\"
  62854. + fi
  62855. + compile_rpath="$rpath"
  62856. - dir=`$echo "X$file" | $Xsed -e 's%/[^/]*$%%'`/
  62857. - test "X$dir" = "X$file/" && dir=
  62858. - dir="$dir$objdir"
  62859. -
  62860. - if test -n "$relink_command"; then
  62861. - # Determine the prefix the user has applied to our future dir.
  62862. - inst_prefix_dir=`$echo "$destdir" | $SED "s%$libdir\$%%"`
  62863. -
  62864. - # Don't allow the user to place us outside of our expected
  62865. - # location b/c this prevents finding dependent libraries that
  62866. - # are installed to the same prefix.
  62867. - # At present, this check doesn't affect windows .dll's that
  62868. - # are installed into $libdir/../bin (currently, that works fine)
  62869. - # but it's something to keep an eye on.
  62870. - if test "$inst_prefix_dir" = "$destdir"; then
  62871. - $echo "$modename: error: cannot install \`$file' to a directory not ending in $libdir" 1>&2
  62872. - exit $EXIT_FAILURE
  62873. - fi
  62874. -
  62875. - if test -n "$inst_prefix_dir"; then
  62876. - # Stick the inst_prefix_dir data into the link command.
  62877. - relink_command=`$echo "$relink_command" | $SED "s%@inst_prefix_dir@%-inst-prefix-dir $inst_prefix_dir%"`
  62878. - else
  62879. - relink_command=`$echo "$relink_command" | $SED "s%@inst_prefix_dir@%%"`
  62880. - fi
  62881. -
  62882. - $echo "$modename: warning: relinking \`$file'" 1>&2
  62883. - $show "$relink_command"
  62884. - if $run eval "$relink_command"; then :
  62885. + rpath=
  62886. + hardcode_libdirs=
  62887. + for libdir in $finalize_rpath; do
  62888. + if test -n "$hardcode_libdir_flag_spec"; then
  62889. + if test -n "$hardcode_libdir_separator"; then
  62890. + if test -z "$hardcode_libdirs"; then
  62891. + hardcode_libdirs="$libdir"
  62892. + else
  62893. + # Just accumulate the unique libdirs.
  62894. + case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in
  62895. + *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*)
  62896. + ;;
  62897. + *)
  62898. + hardcode_libdirs="$hardcode_libdirs$hardcode_libdir_separator$libdir"
  62899. + ;;
  62900. + esac
  62901. + fi
  62902. else
  62903. - $echo "$modename: error: relink \`$file' with the above command before installing it" 1>&2
  62904. - exit $EXIT_FAILURE
  62905. + eval flag=\"$hardcode_libdir_flag_spec\"
  62906. + rpath="$rpath $flag"
  62907. fi
  62908. + elif test -n "$runpath_var"; then
  62909. + case "$finalize_perm_rpath " in
  62910. + *" $libdir "*) ;;
  62911. + *) finalize_perm_rpath="$finalize_perm_rpath $libdir" ;;
  62912. + esac
  62913. fi
  62914. + done
  62915. + # Substitute the hardcoded libdirs into the rpath.
  62916. + if test -n "$hardcode_libdir_separator" &&
  62917. + test -n "$hardcode_libdirs"; then
  62918. + libdir="$hardcode_libdirs"
  62919. + eval rpath=\" $hardcode_libdir_flag_spec\"
  62920. + fi
  62921. + finalize_rpath="$rpath"
  62922. - # See the names of the shared library.
  62923. - set dummy $library_names
  62924. - if test -n "$2"; then
  62925. - realname="$2"
  62926. - shift
  62927. - shift
  62928. + if test -n "$libobjs" && test "$build_old_libs" = yes; then
  62929. + # Transform all the library objects into standard objects.
  62930. + compile_command=`$ECHO "X$compile_command" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP`
  62931. + finalize_command=`$ECHO "X$finalize_command" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP`
  62932. + fi
  62933. - srcname="$realname"
  62934. - test -n "$relink_command" && srcname="$realname"T
  62935. + func_generate_dlsyms "$outputname" "@PROGRAM@" "no"
  62936. - # Install the shared library and build the symlinks.
  62937. - $show "$install_prog $dir/$srcname $destdir/$realname"
  62938. - $run eval "$install_prog $dir/$srcname $destdir/$realname" || exit $?
  62939. - if test -n "$stripme" && test -n "$striplib"; then
  62940. - $show "$striplib $destdir/$realname"
  62941. - $run eval "$striplib $destdir/$realname" || exit $?
  62942. - fi
  62943. + # template prelinking step
  62944. + if test -n "$prelink_cmds"; then
  62945. + func_execute_cmds "$prelink_cmds" 'exit $?'
  62946. + fi
  62947. - if test "$#" -gt 0; then
  62948. - # Delete the old symlinks, and create new ones.
  62949. - for linkname
  62950. - do
  62951. - if test "$linkname" != "$realname"; then
  62952. - $show "(cd $destdir && $rm $linkname && $LN_S $realname $linkname)"
  62953. - $run eval "(cd $destdir && $rm $linkname && $LN_S $realname $linkname)"
  62954. - fi
  62955. - done
  62956. - fi
  62957. + wrappers_required=yes
  62958. + case $host in
  62959. + *cygwin* | *mingw* )
  62960. + if test "$build_libtool_libs" != yes; then
  62961. + wrappers_required=no
  62962. + fi
  62963. + ;;
  62964. + *cegcc)
  62965. + # Disable wrappers for cegcc, we are cross compiling anyway.
  62966. + wrappers_required=no
  62967. + ;;
  62968. + *)
  62969. + if test "$need_relink" = no || test "$build_libtool_libs" != yes; then
  62970. + wrappers_required=no
  62971. + fi
  62972. + ;;
  62973. + esac
  62974. + if test "$wrappers_required" = no; then
  62975. + # Replace the output file specification.
  62976. + compile_command=`$ECHO "X$compile_command" | $Xsed -e 's%@OUTPUT@%'"$output"'%g'`
  62977. + link_command="$compile_command$compile_rpath"
  62978. - # Do each command in the postinstall commands.
  62979. - lib="$destdir/$realname"
  62980. - cmds=$postinstall_cmds
  62981. - save_ifs="$IFS"; IFS='~'
  62982. - for cmd in $cmds; do
  62983. - IFS="$save_ifs"
  62984. - eval cmd=\"$cmd\"
  62985. - $show "$cmd"
  62986. - $run eval "$cmd" || exit $?
  62987. - done
  62988. - IFS="$save_ifs"
  62989. - fi
  62990. + # We have no uninstalled library dependencies, so finalize right now.
  62991. + exit_status=0
  62992. + func_show_eval "$link_command" 'exit_status=$?'
  62993. - # Install the pseudo-library for information purposes.
  62994. - name=`$echo "X$file" | $Xsed -e 's%^.*/%%'`
  62995. - instname="$dir/$name"i
  62996. - $show "$install_prog $instname $destdir/$name"
  62997. - $run eval "$install_prog $instname $destdir/$name" || exit $?
  62998. + # Delete the generated files.
  62999. + if test -f "$output_objdir/${outputname}S.${objext}"; then
  63000. + func_show_eval '$RM "$output_objdir/${outputname}S.${objext}"'
  63001. + fi
  63002. - # Maybe install the static library, too.
  63003. - test -n "$old_library" && staticlibs="$staticlibs $dir/$old_library"
  63004. - ;;
  63005. + exit $exit_status
  63006. + fi
  63007. - *.lo)
  63008. - # Install (i.e. copy) a libtool object.
  63009. + if test -n "$compile_shlibpath$finalize_shlibpath"; then
  63010. + compile_command="$shlibpath_var=\"$compile_shlibpath$finalize_shlibpath\$$shlibpath_var\" $compile_command"
  63011. + fi
  63012. + if test -n "$finalize_shlibpath"; then
  63013. + finalize_command="$shlibpath_var=\"$finalize_shlibpath\$$shlibpath_var\" $finalize_command"
  63014. + fi
  63015. - # Figure out destination file name, if it wasn't already specified.
  63016. - if test -n "$destname"; then
  63017. - destfile="$destdir/$destname"
  63018. - else
  63019. - destfile=`$echo "X$file" | $Xsed -e 's%^.*/%%'`
  63020. - destfile="$destdir/$destfile"
  63021. + compile_var=
  63022. + finalize_var=
  63023. + if test -n "$runpath_var"; then
  63024. + if test -n "$perm_rpath"; then
  63025. + # We should set the runpath_var.
  63026. + rpath=
  63027. + for dir in $perm_rpath; do
  63028. + rpath="$rpath$dir:"
  63029. + done
  63030. + compile_var="$runpath_var=\"$rpath\$$runpath_var\" "
  63031. fi
  63032. -
  63033. - # Deduce the name of the destination old-style object file.
  63034. - case $destfile in
  63035. - *.lo)
  63036. - staticdest=`$echo "X$destfile" | $Xsed -e "$lo2o"`
  63037. - ;;
  63038. - *.$objext)
  63039. - staticdest="$destfile"
  63040. - destfile=
  63041. - ;;
  63042. - *)
  63043. - $echo "$modename: cannot copy a libtool object to \`$destfile'" 1>&2
  63044. - $echo "$help" 1>&2
  63045. - exit $EXIT_FAILURE
  63046. - ;;
  63047. - esac
  63048. -
  63049. - # Install the libtool object if requested.
  63050. - if test -n "$destfile"; then
  63051. - $show "$install_prog $file $destfile"
  63052. - $run eval "$install_prog $file $destfile" || exit $?
  63053. + if test -n "$finalize_perm_rpath"; then
  63054. + # We should set the runpath_var.
  63055. + rpath=
  63056. + for dir in $finalize_perm_rpath; do
  63057. + rpath="$rpath$dir:"
  63058. + done
  63059. + finalize_var="$runpath_var=\"$rpath\$$runpath_var\" "
  63060. fi
  63061. + fi
  63062. - # Install the old object if enabled.
  63063. - if test "$build_old_libs" = yes; then
  63064. - # Deduce the name of the old-style object file.
  63065. - staticobj=`$echo "X$file" | $Xsed -e "$lo2o"`
  63066. -
  63067. - $show "$install_prog $staticobj $staticdest"
  63068. - $run eval "$install_prog \$staticobj \$staticdest" || exit $?
  63069. - fi
  63070. + if test "$no_install" = yes; then
  63071. + # We don't need to create a wrapper script.
  63072. + link_command="$compile_var$compile_command$compile_rpath"
  63073. + # Replace the output file specification.
  63074. + link_command=`$ECHO "X$link_command" | $Xsed -e 's%@OUTPUT@%'"$output"'%g'`
  63075. + # Delete the old output file.
  63076. + $opt_dry_run || $RM $output
  63077. + # Link the executable and exit
  63078. + func_show_eval "$link_command" 'exit $?'
  63079. exit $EXIT_SUCCESS
  63080. - ;;
  63081. + fi
  63082. - *)
  63083. - # Figure out destination file name, if it wasn't already specified.
  63084. - if test -n "$destname"; then
  63085. - destfile="$destdir/$destname"
  63086. + if test "$hardcode_action" = relink; then
  63087. + # Fast installation is not supported
  63088. + link_command="$compile_var$compile_command$compile_rpath"
  63089. + relink_command="$finalize_var$finalize_command$finalize_rpath"
  63090. +
  63091. + func_warning "this platform does not like uninstalled shared libraries"
  63092. + func_warning "\`$output' will be relinked during installation"
  63093. + else
  63094. + if test "$fast_install" != no; then
  63095. + link_command="$finalize_var$compile_command$finalize_rpath"
  63096. + if test "$fast_install" = yes; then
  63097. + relink_command=`$ECHO "X$compile_var$compile_command$compile_rpath" | $Xsed -e 's%@OUTPUT@%\$progdir/\$file%g'`
  63098. + else
  63099. + # fast_install is set to needless
  63100. + relink_command=
  63101. + fi
  63102. else
  63103. - destfile=`$echo "X$file" | $Xsed -e 's%^.*/%%'`
  63104. - destfile="$destdir/$destfile"
  63105. + link_command="$compile_var$compile_command$compile_rpath"
  63106. + relink_command="$finalize_var$finalize_command$finalize_rpath"
  63107. fi
  63108. + fi
  63109. - # If the file is missing, and there is a .exe on the end, strip it
  63110. - # because it is most likely a libtool script we actually want to
  63111. - # install
  63112. - stripped_ext=""
  63113. - case $file in
  63114. - *.exe)
  63115. - if test ! -f "$file"; then
  63116. - file=`$echo $file|${SED} 's,.exe$,,'`
  63117. - stripped_ext=".exe"
  63118. - fi
  63119. - ;;
  63120. - esac
  63121. -
  63122. - # Do a test to see if this is really a libtool program.
  63123. - case $host in
  63124. - *cygwin*|*mingw*)
  63125. - wrapper=`$echo $file | ${SED} -e 's,.exe$,,'`
  63126. - ;;
  63127. - *)
  63128. - wrapper=$file
  63129. - ;;
  63130. - esac
  63131. - if (${SED} -e '4q' $wrapper | grep "^# Generated by .*$PACKAGE")>/dev/null 2>&1; then
  63132. - notinst_deplibs=
  63133. - relink_command=
  63134. -
  63135. - # To insure that "foo" is sourced, and not "foo.exe",
  63136. - # finese the cygwin/MSYS system by explicitly sourcing "foo."
  63137. - # which disallows the automatic-append-.exe behavior.
  63138. - case $build in
  63139. - *cygwin* | *mingw*) wrapperdot=${wrapper}. ;;
  63140. - *) wrapperdot=${wrapper} ;;
  63141. - esac
  63142. - # If there is no directory component, then add one.
  63143. - case $file in
  63144. - */* | *\\*) . ${wrapperdot} ;;
  63145. - *) . ./${wrapperdot} ;;
  63146. - esac
  63147. -
  63148. - # Check the variables that should have been set.
  63149. - if test -z "$notinst_deplibs"; then
  63150. - $echo "$modename: invalid libtool wrapper script \`$wrapper'" 1>&2
  63151. - exit $EXIT_FAILURE
  63152. - fi
  63153. + # Replace the output file specification.
  63154. + link_command=`$ECHO "X$link_command" | $Xsed -e 's%@OUTPUT@%'"$output_objdir/$outputname"'%g'`
  63155. - finalize=yes
  63156. - for lib in $notinst_deplibs; do
  63157. - # Check to see that each library is installed.
  63158. - libdir=
  63159. - if test -f "$lib"; then
  63160. - # If there is no directory component, then add one.
  63161. - case $lib in
  63162. - */* | *\\*) . $lib ;;
  63163. - *) . ./$lib ;;
  63164. - esac
  63165. - fi
  63166. - libfile="$libdir/"`$echo "X$lib" | $Xsed -e 's%^.*/%%g'` ### testsuite: skip nested quoting test
  63167. - if test -n "$libdir" && test ! -f "$libfile"; then
  63168. - $echo "$modename: warning: \`$lib' has not been installed in \`$libdir'" 1>&2
  63169. - finalize=no
  63170. - fi
  63171. - done
  63172. + # Delete the old output files.
  63173. + $opt_dry_run || $RM $output $output_objdir/$outputname $output_objdir/lt-$outputname
  63174. - relink_command=
  63175. - # To insure that "foo" is sourced, and not "foo.exe",
  63176. - # finese the cygwin/MSYS system by explicitly sourcing "foo."
  63177. - # which disallows the automatic-append-.exe behavior.
  63178. - case $build in
  63179. - *cygwin* | *mingw*) wrapperdot=${wrapper}. ;;
  63180. - *) wrapperdot=${wrapper} ;;
  63181. - esac
  63182. - # If there is no directory component, then add one.
  63183. - case $file in
  63184. - */* | *\\*) . ${wrapperdot} ;;
  63185. - *) . ./${wrapperdot} ;;
  63186. - esac
  63187. + func_show_eval "$link_command" 'exit $?'
  63188. - outputname=
  63189. - if test "$fast_install" = no && test -n "$relink_command"; then
  63190. - if test "$finalize" = yes && test -z "$run"; then
  63191. - tmpdir="/tmp"
  63192. - test -n "$TMPDIR" && tmpdir="$TMPDIR"
  63193. - tmpdir="$tmpdir/libtool-$$"
  63194. - save_umask=`umask`
  63195. - umask 0077
  63196. - if $mkdir "$tmpdir"; then
  63197. - umask $save_umask
  63198. - else
  63199. - umask $save_umask
  63200. - $echo "$modename: error: cannot create temporary directory \`$tmpdir'" 1>&2
  63201. - continue
  63202. - fi
  63203. - file=`$echo "X$file$stripped_ext" | $Xsed -e 's%^.*/%%'`
  63204. - outputname="$tmpdir/$file"
  63205. - # Replace the output file specification.
  63206. - relink_command=`$echo "X$relink_command" | $Xsed -e 's%@OUTPUT@%'"$outputname"'%g'`
  63207. + # Now create the wrapper script.
  63208. + func_verbose "creating $output"
  63209. - $show "$relink_command"
  63210. - if $run eval "$relink_command"; then :
  63211. - else
  63212. - $echo "$modename: error: relink \`$file' with the above command before installing it" 1>&2
  63213. - ${rm}r "$tmpdir"
  63214. - continue
  63215. - fi
  63216. - file="$outputname"
  63217. - else
  63218. - $echo "$modename: warning: cannot relink \`$file'" 1>&2
  63219. - fi
  63220. + # Quote the relink command for shipping.
  63221. + if test -n "$relink_command"; then
  63222. + # Preserve any variables that may affect compiler behavior
  63223. + for var in $variables_saved_for_relink; do
  63224. + if eval test -z \"\${$var+set}\"; then
  63225. + relink_command="{ test -z \"\${$var+set}\" || $lt_unset $var || { $var=; export $var; }; }; $relink_command"
  63226. + elif eval var_value=\$$var; test -z "$var_value"; then
  63227. + relink_command="$var=; export $var; $relink_command"
  63228. else
  63229. - # Install the binary that we compiled earlier.
  63230. - file=`$echo "X$file$stripped_ext" | $Xsed -e "s%\([^/]*\)$%$objdir/\1%"`
  63231. + func_quote_for_eval "$var_value"
  63232. + relink_command="$var=$func_quote_for_eval_result; export $var; $relink_command"
  63233. fi
  63234. - fi
  63235. + done
  63236. + relink_command="(cd `pwd`; $relink_command)"
  63237. + relink_command=`$ECHO "X$relink_command" | $Xsed -e "$sed_quote_subst"`
  63238. + fi
  63239. - # remove .exe since cygwin /usr/bin/install will append another
  63240. - # one anyways
  63241. - case $install_prog,$host in
  63242. - */usr/bin/install*,*cygwin*)
  63243. - case $file:$destfile in
  63244. - *.exe:*.exe)
  63245. - # this is ok
  63246. - ;;
  63247. - *.exe:*)
  63248. - destfile=$destfile.exe
  63249. - ;;
  63250. - *:*.exe)
  63251. - destfile=`$echo $destfile | ${SED} -e 's,.exe$,,'`
  63252. - ;;
  63253. - esac
  63254. - ;;
  63255. + # Quote $ECHO for shipping.
  63256. + if test "X$ECHO" = "X$SHELL $progpath --fallback-echo"; then
  63257. + case $progpath in
  63258. + [\\/]* | [A-Za-z]:[\\/]*) qecho="$SHELL $progpath --fallback-echo";;
  63259. + *) qecho="$SHELL `pwd`/$progpath --fallback-echo";;
  63260. esac
  63261. - $show "$install_prog$stripme $file $destfile"
  63262. - $run eval "$install_prog\$stripme \$file \$destfile" || exit $?
  63263. - test -n "$outputname" && ${rm}r "$tmpdir"
  63264. - ;;
  63265. - esac
  63266. - done
  63267. + qecho=`$ECHO "X$qecho" | $Xsed -e "$sed_quote_subst"`
  63268. + else
  63269. + qecho=`$ECHO "X$ECHO" | $Xsed -e "$sed_quote_subst"`
  63270. + fi
  63271. - for file in $staticlibs; do
  63272. - name=`$echo "X$file" | $Xsed -e 's%^.*/%%'`
  63273. + # Only actually do things if not in dry run mode.
  63274. + $opt_dry_run || {
  63275. + # win32 will think the script is a binary if it has
  63276. + # a .exe suffix, so we strip it off here.
  63277. + case $output in
  63278. + *.exe) func_stripname '' '.exe' "$output"
  63279. + output=$func_stripname_result ;;
  63280. + esac
  63281. + # test for cygwin because mv fails w/o .exe extensions
  63282. + case $host in
  63283. + *cygwin*)
  63284. + exeext=.exe
  63285. + func_stripname '' '.exe' "$outputname"
  63286. + outputname=$func_stripname_result ;;
  63287. + *) exeext= ;;
  63288. + esac
  63289. + case $host in
  63290. + *cygwin* | *mingw* )
  63291. + func_dirname_and_basename "$output" "" "."
  63292. + output_name=$func_basename_result
  63293. + output_path=$func_dirname_result
  63294. + cwrappersource="$output_path/$objdir/lt-$output_name.c"
  63295. + cwrapper="$output_path/$output_name.exe"
  63296. + $RM $cwrappersource $cwrapper
  63297. + trap "$RM $cwrappersource $cwrapper; exit $EXIT_FAILURE" 1 2 15
  63298. +
  63299. + func_emit_cwrapperexe_src > $cwrappersource
  63300. +
  63301. + # The wrapper executable is built using the $host compiler,
  63302. + # because it contains $host paths and files. If cross-
  63303. + # compiling, it, like the target executable, must be
  63304. + # executed on the $host or under an emulation environment.
  63305. + $opt_dry_run || {
  63306. + $LTCC $LTCFLAGS -o $cwrapper $cwrappersource
  63307. + $STRIP $cwrapper
  63308. + }
  63309. +
  63310. + # Now, create the wrapper script for func_source use:
  63311. + func_ltwrapper_scriptname $cwrapper
  63312. + $RM $func_ltwrapper_scriptname_result
  63313. + trap "$RM $func_ltwrapper_scriptname_result; exit $EXIT_FAILURE" 1 2 15
  63314. + $opt_dry_run || {
  63315. + # note: this script will not be executed, so do not chmod.
  63316. + if test "x$build" = "x$host" ; then
  63317. + $cwrapper --lt-dump-script > $func_ltwrapper_scriptname_result
  63318. + else
  63319. + func_emit_wrapper no > $func_ltwrapper_scriptname_result
  63320. + fi
  63321. + }
  63322. + ;;
  63323. + * )
  63324. + $RM $output
  63325. + trap "$RM $output; exit $EXIT_FAILURE" 1 2 15
  63326. - # Set up the ranlib parameters.
  63327. - oldlib="$destdir/$name"
  63328. + func_emit_wrapper no > $output
  63329. + chmod +x $output
  63330. + ;;
  63331. + esac
  63332. + }
  63333. + exit $EXIT_SUCCESS
  63334. + ;;
  63335. + esac
  63336. - $show "$install_prog $file $oldlib"
  63337. - $run eval "$install_prog \$file \$oldlib" || exit $?
  63338. + # See if we need to build an old-fashioned archive.
  63339. + for oldlib in $oldlibs; do
  63340. - if test -n "$stripme" && test -n "$old_striplib"; then
  63341. - $show "$old_striplib $oldlib"
  63342. - $run eval "$old_striplib $oldlib" || exit $?
  63343. + if test "$build_libtool_libs" = convenience; then
  63344. + oldobjs="$libobjs_save $symfileobj"
  63345. + addlibs="$convenience"
  63346. + build_libtool_libs=no
  63347. + else
  63348. + if test "$build_libtool_libs" = module; then
  63349. + oldobjs="$libobjs_save"
  63350. + build_libtool_libs=no
  63351. + else
  63352. + oldobjs="$old_deplibs $non_pic_objects"
  63353. + if test "$preload" = yes && test -f "$symfileobj"; then
  63354. + oldobjs="$oldobjs $symfileobj"
  63355. + fi
  63356. + fi
  63357. + addlibs="$old_convenience"
  63358. fi
  63359. - # Do each command in the postinstall commands.
  63360. - cmds=$old_postinstall_cmds
  63361. - save_ifs="$IFS"; IFS='~'
  63362. - for cmd in $cmds; do
  63363. - IFS="$save_ifs"
  63364. - eval cmd=\"$cmd\"
  63365. - $show "$cmd"
  63366. - $run eval "$cmd" || exit $?
  63367. - done
  63368. - IFS="$save_ifs"
  63369. - done
  63370. + if test -n "$addlibs"; then
  63371. + gentop="$output_objdir/${outputname}x"
  63372. + generated="$generated $gentop"
  63373. - if test -n "$future_libdirs"; then
  63374. - $echo "$modename: warning: remember to run \`$progname --finish$future_libdirs'" 1>&2
  63375. - fi
  63376. + func_extract_archives $gentop $addlibs
  63377. + oldobjs="$oldobjs $func_extract_archives_result"
  63378. + fi
  63379. - if test -n "$current_libdirs"; then
  63380. - # Maybe just do a dry run.
  63381. - test -n "$run" && current_libdirs=" -n$current_libdirs"
  63382. - exec_cmd='$SHELL $progpath $preserve_args --finish$current_libdirs'
  63383. - else
  63384. - exit $EXIT_SUCCESS
  63385. - fi
  63386. - ;;
  63387. + # Do each command in the archive commands.
  63388. + if test -n "$old_archive_from_new_cmds" && test "$build_libtool_libs" = yes; then
  63389. + cmds=$old_archive_from_new_cmds
  63390. + else
  63391. - # libtool finish mode
  63392. - finish)
  63393. - modename="$modename: finish"
  63394. - libdirs="$nonopt"
  63395. - admincmds=
  63396. + # Add any objects from preloaded convenience libraries
  63397. + if test -n "$dlprefiles"; then
  63398. + gentop="$output_objdir/${outputname}x"
  63399. + generated="$generated $gentop"
  63400. - if test -n "$finish_cmds$finish_eval" && test -n "$libdirs"; then
  63401. - for dir
  63402. - do
  63403. - libdirs="$libdirs $dir"
  63404. - done
  63405. + func_extract_archives $gentop $dlprefiles
  63406. + oldobjs="$oldobjs $func_extract_archives_result"
  63407. + fi
  63408. - for libdir in $libdirs; do
  63409. - if test -n "$finish_cmds"; then
  63410. - # Do each command in the finish commands.
  63411. - cmds=$finish_cmds
  63412. - save_ifs="$IFS"; IFS='~'
  63413. - for cmd in $cmds; do
  63414. - IFS="$save_ifs"
  63415. - eval cmd=\"$cmd\"
  63416. - $show "$cmd"
  63417. - $run eval "$cmd" || admincmds="$admincmds
  63418. - $cmd"
  63419. + # POSIX demands no paths to be encoded in archives. We have
  63420. + # to avoid creating archives with duplicate basenames if we
  63421. + # might have to extract them afterwards, e.g., when creating a
  63422. + # static archive out of a convenience library, or when linking
  63423. + # the entirety of a libtool archive into another (currently
  63424. + # not supported by libtool).
  63425. + if (for obj in $oldobjs
  63426. + do
  63427. + func_basename "$obj"
  63428. + $ECHO "$func_basename_result"
  63429. + done | sort | sort -uc >/dev/null 2>&1); then
  63430. + :
  63431. + else
  63432. + $ECHO "copying selected object files to avoid basename conflicts..."
  63433. + gentop="$output_objdir/${outputname}x"
  63434. + generated="$generated $gentop"
  63435. + func_mkdir_p "$gentop"
  63436. + save_oldobjs=$oldobjs
  63437. + oldobjs=
  63438. + counter=1
  63439. + for obj in $save_oldobjs
  63440. + do
  63441. + func_basename "$obj"
  63442. + objbase="$func_basename_result"
  63443. + case " $oldobjs " in
  63444. + " ") oldobjs=$obj ;;
  63445. + *[\ /]"$objbase "*)
  63446. + while :; do
  63447. + # Make sure we don't pick an alternate name that also
  63448. + # overlaps.
  63449. + newobj=lt$counter-$objbase
  63450. + func_arith $counter + 1
  63451. + counter=$func_arith_result
  63452. + case " $oldobjs " in
  63453. + *[\ /]"$newobj "*) ;;
  63454. + *) if test ! -f "$gentop/$newobj"; then break; fi ;;
  63455. + esac
  63456. + done
  63457. + func_show_eval "ln $obj $gentop/$newobj || cp $obj $gentop/$newobj"
  63458. + oldobjs="$oldobjs $gentop/$newobj"
  63459. + ;;
  63460. + *) oldobjs="$oldobjs $obj" ;;
  63461. + esac
  63462. done
  63463. - IFS="$save_ifs"
  63464. - fi
  63465. - if test -n "$finish_eval"; then
  63466. - # Do the single finish_eval.
  63467. - eval cmds=\"$finish_eval\"
  63468. - $run eval "$cmds" || admincmds="$admincmds
  63469. - $cmds"
  63470. fi
  63471. - done
  63472. - fi
  63473. -
  63474. - # Exit here if they wanted silent mode.
  63475. - test "$show" = : && exit $EXIT_SUCCESS
  63476. + eval cmds=\"$old_archive_cmds\"
  63477. - $echo "----------------------------------------------------------------------"
  63478. - $echo "Libraries have been installed in:"
  63479. - for libdir in $libdirs; do
  63480. - $echo " $libdir"
  63481. + func_len " $cmds"
  63482. + len=$func_len_result
  63483. + if test "$len" -lt "$max_cmd_len" || test "$max_cmd_len" -le -1; then
  63484. + cmds=$old_archive_cmds
  63485. + else
  63486. + # the command line is too long to link in one step, link in parts
  63487. + func_verbose "using piecewise archive linking..."
  63488. + save_RANLIB=$RANLIB
  63489. + RANLIB=:
  63490. + objlist=
  63491. + concat_cmds=
  63492. + save_oldobjs=$oldobjs
  63493. + oldobjs=
  63494. + # Is there a better way of finding the last object in the list?
  63495. + for obj in $save_oldobjs
  63496. + do
  63497. + last_oldobj=$obj
  63498. + done
  63499. + eval test_cmds=\"$old_archive_cmds\"
  63500. + func_len " $test_cmds"
  63501. + len0=$func_len_result
  63502. + len=$len0
  63503. + for obj in $save_oldobjs
  63504. + do
  63505. + func_len " $obj"
  63506. + func_arith $len + $func_len_result
  63507. + len=$func_arith_result
  63508. + func_append objlist " $obj"
  63509. + if test "$len" -lt "$max_cmd_len"; then
  63510. + :
  63511. + else
  63512. + # the above command should be used before it gets too long
  63513. + oldobjs=$objlist
  63514. + if test "$obj" = "$last_oldobj" ; then
  63515. + RANLIB=$save_RANLIB
  63516. + fi
  63517. + test -z "$concat_cmds" || concat_cmds=$concat_cmds~
  63518. + eval concat_cmds=\"\${concat_cmds}$old_archive_cmds\"
  63519. + objlist=
  63520. + len=$len0
  63521. + fi
  63522. + done
  63523. + RANLIB=$save_RANLIB
  63524. + oldobjs=$objlist
  63525. + if test "X$oldobjs" = "X" ; then
  63526. + eval cmds=\"\$concat_cmds\"
  63527. + else
  63528. + eval cmds=\"\$concat_cmds~\$old_archive_cmds\"
  63529. + fi
  63530. + fi
  63531. + fi
  63532. + func_execute_cmds "$cmds" 'exit $?'
  63533. done
  63534. - $echo
  63535. - $echo "If you ever happen to want to link against installed libraries"
  63536. - $echo "in a given directory, LIBDIR, you must either use libtool, and"
  63537. - $echo "specify the full pathname of the library, or use the \`-LLIBDIR'"
  63538. - $echo "flag during linking and do at least one of the following:"
  63539. - if test -n "$shlibpath_var"; then
  63540. - $echo " - add LIBDIR to the \`$shlibpath_var' environment variable"
  63541. - $echo " during execution"
  63542. - fi
  63543. - if test -n "$runpath_var"; then
  63544. - $echo " - add LIBDIR to the \`$runpath_var' environment variable"
  63545. - $echo " during linking"
  63546. - fi
  63547. - if test -n "$hardcode_libdir_flag_spec"; then
  63548. - libdir=LIBDIR
  63549. - eval flag=\"$hardcode_libdir_flag_spec\"
  63550. -
  63551. - $echo " - use the \`$flag' linker flag"
  63552. - fi
  63553. - if test -n "$admincmds"; then
  63554. - $echo " - have your system administrator run these commands:$admincmds"
  63555. - fi
  63556. - if test -f /etc/ld.so.conf; then
  63557. - $echo " - have your system administrator add LIBDIR to \`/etc/ld.so.conf'"
  63558. - fi
  63559. - $echo
  63560. - $echo "See any operating system documentation about shared libraries for"
  63561. - $echo "more information, such as the ld(1) and ld.so(8) manual pages."
  63562. - $echo "----------------------------------------------------------------------"
  63563. - exit $EXIT_SUCCESS
  63564. - ;;
  63565. - # libtool execute mode
  63566. - execute)
  63567. - modename="$modename: execute"
  63568. -
  63569. - # The first argument is the command name.
  63570. - cmd="$nonopt"
  63571. - if test -z "$cmd"; then
  63572. - $echo "$modename: you must specify a COMMAND" 1>&2
  63573. - $echo "$help"
  63574. - exit $EXIT_FAILURE
  63575. - fi
  63576. + test -n "$generated" && \
  63577. + func_show_eval "${RM}r$generated"
  63578. - # Handle -dlopen flags immediately.
  63579. - for file in $execute_dlfiles; do
  63580. - if test ! -f "$file"; then
  63581. - $echo "$modename: \`$file' is not a file" 1>&2
  63582. - $echo "$help" 1>&2
  63583. - exit $EXIT_FAILURE
  63584. - fi
  63585. + # Now create the libtool archive.
  63586. + case $output in
  63587. + *.la)
  63588. + old_library=
  63589. + test "$build_old_libs" = yes && old_library="$libname.$libext"
  63590. + func_verbose "creating $output"
  63591. - dir=
  63592. - case $file in
  63593. - *.la)
  63594. - # Check to see that this really is a libtool archive.
  63595. - if (${SED} -e '2q' $file | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then :
  63596. + # Preserve any variables that may affect compiler behavior
  63597. + for var in $variables_saved_for_relink; do
  63598. + if eval test -z \"\${$var+set}\"; then
  63599. + relink_command="{ test -z \"\${$var+set}\" || $lt_unset $var || { $var=; export $var; }; }; $relink_command"
  63600. + elif eval var_value=\$$var; test -z "$var_value"; then
  63601. + relink_command="$var=; export $var; $relink_command"
  63602. else
  63603. - $echo "$modename: \`$lib' is not a valid libtool archive" 1>&2
  63604. - $echo "$help" 1>&2
  63605. - exit $EXIT_FAILURE
  63606. + func_quote_for_eval "$var_value"
  63607. + relink_command="$var=$func_quote_for_eval_result; export $var; $relink_command"
  63608. fi
  63609. + done
  63610. + # Quote the link command for shipping.
  63611. + relink_command="(cd `pwd`; $SHELL $progpath $preserve_args --mode=relink $libtool_args @inst_prefix_dir@)"
  63612. + relink_command=`$ECHO "X$relink_command" | $Xsed -e "$sed_quote_subst"`
  63613. + if test "$hardcode_automatic" = yes ; then
  63614. + relink_command=
  63615. + fi
  63616. - # Read the libtool library.
  63617. - dlname=
  63618. - library_names=
  63619. + # Only create the output if not a dry run.
  63620. + $opt_dry_run || {
  63621. + for installed in no yes; do
  63622. + if test "$installed" = yes; then
  63623. + if test -z "$install_libdir"; then
  63624. + break
  63625. + fi
  63626. + output="$output_objdir/$outputname"i
  63627. + # Replace all uninstalled libtool libraries with the installed ones
  63628. + newdependency_libs=
  63629. + for deplib in $dependency_libs; do
  63630. + case $deplib in
  63631. + *.la)
  63632. + func_basename "$deplib"
  63633. + name="$func_basename_result"
  63634. + eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib`
  63635. + test -z "$libdir" && \
  63636. + func_fatal_error "\`$deplib' is not a valid libtool archive"
  63637. + newdependency_libs="$newdependency_libs $libdir/$name"
  63638. + ;;
  63639. + *) newdependency_libs="$newdependency_libs $deplib" ;;
  63640. + esac
  63641. + done
  63642. + dependency_libs="$newdependency_libs"
  63643. + newdlfiles=
  63644. +
  63645. + for lib in $dlfiles; do
  63646. + case $lib in
  63647. + *.la)
  63648. + func_basename "$lib"
  63649. + name="$func_basename_result"
  63650. + eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $lib`
  63651. + test -z "$libdir" && \
  63652. + func_fatal_error "\`$lib' is not a valid libtool archive"
  63653. + newdlfiles="$newdlfiles $libdir/$name"
  63654. + ;;
  63655. + *) newdlfiles="$newdlfiles $lib" ;;
  63656. + esac
  63657. + done
  63658. + dlfiles="$newdlfiles"
  63659. + newdlprefiles=
  63660. + for lib in $dlprefiles; do
  63661. + case $lib in
  63662. + *.la)
  63663. + # Only pass preopened files to the pseudo-archive (for
  63664. + # eventual linking with the app. that links it) if we
  63665. + # didn't already link the preopened objects directly into
  63666. + # the library:
  63667. + func_basename "$lib"
  63668. + name="$func_basename_result"
  63669. + eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $lib`
  63670. + test -z "$libdir" && \
  63671. + func_fatal_error "\`$lib' is not a valid libtool archive"
  63672. + newdlprefiles="$newdlprefiles $libdir/$name"
  63673. + ;;
  63674. + esac
  63675. + done
  63676. + dlprefiles="$newdlprefiles"
  63677. + else
  63678. + newdlfiles=
  63679. + for lib in $dlfiles; do
  63680. + case $lib in
  63681. + [\\/]* | [A-Za-z]:[\\/]*) abs="$lib" ;;
  63682. + *) abs=`pwd`"/$lib" ;;
  63683. + esac
  63684. + newdlfiles="$newdlfiles $abs"
  63685. + done
  63686. + dlfiles="$newdlfiles"
  63687. + newdlprefiles=
  63688. + for lib in $dlprefiles; do
  63689. + case $lib in
  63690. + [\\/]* | [A-Za-z]:[\\/]*) abs="$lib" ;;
  63691. + *) abs=`pwd`"/$lib" ;;
  63692. + esac
  63693. + newdlprefiles="$newdlprefiles $abs"
  63694. + done
  63695. + dlprefiles="$newdlprefiles"
  63696. + fi
  63697. + $RM $output
  63698. + # place dlname in correct position for cygwin
  63699. + tdlname=$dlname
  63700. + case $host,$output,$installed,$module,$dlname in
  63701. + *cygwin*,*lai,yes,no,*.dll | *mingw*,*lai,yes,no,*.dll | *cegcc*,*lai,yes,no,*.dll) tdlname=../bin/$dlname ;;
  63702. + esac
  63703. + $ECHO > $output "\
  63704. +# $outputname - a libtool library file
  63705. +# Generated by $PROGRAM (GNU $PACKAGE$TIMESTAMP) $VERSION
  63706. +#
  63707. +# Please DO NOT delete this file!
  63708. +# It is necessary for linking the library.
  63709. - # If there is no directory component, then add one.
  63710. - case $file in
  63711. - */* | *\\*) . $file ;;
  63712. - *) . ./$file ;;
  63713. - esac
  63714. +# The name that we can dlopen(3).
  63715. +dlname='$tdlname'
  63716. - # Skip this library if it cannot be dlopened.
  63717. - if test -z "$dlname"; then
  63718. - # Warn if it was a shared library.
  63719. - test -n "$library_names" && $echo "$modename: warning: \`$file' was not linked with \`-export-dynamic'"
  63720. - continue
  63721. - fi
  63722. +# Names of this library.
  63723. +library_names='$library_names'
  63724. - dir=`$echo "X$file" | $Xsed -e 's%/[^/]*$%%'`
  63725. - test "X$dir" = "X$file" && dir=.
  63726. +# The name of the static archive.
  63727. +old_library='$old_library'
  63728. - if test -f "$dir/$objdir/$dlname"; then
  63729. - dir="$dir/$objdir"
  63730. - else
  63731. - $echo "$modename: cannot find \`$dlname' in \`$dir' or \`$dir/$objdir'" 1>&2
  63732. - exit $EXIT_FAILURE
  63733. - fi
  63734. - ;;
  63735. +# Linker flags that can not go in dependency_libs.
  63736. +inherited_linker_flags='$new_inherited_linker_flags'
  63737. - *.lo)
  63738. - # Just add the directory containing the .lo file.
  63739. - dir=`$echo "X$file" | $Xsed -e 's%/[^/]*$%%'`
  63740. - test "X$dir" = "X$file" && dir=.
  63741. - ;;
  63742. +# Libraries that this one depends upon.
  63743. +dependency_libs='$dependency_libs'
  63744. - *)
  63745. - $echo "$modename: warning \`-dlopen' is ignored for non-libtool libraries and objects" 1>&2
  63746. - continue
  63747. - ;;
  63748. - esac
  63749. +# Names of additional weak libraries provided by this library
  63750. +weak_library_names='$weak_libs'
  63751. - # Get the absolute pathname.
  63752. - absdir=`cd "$dir" && pwd`
  63753. - test -n "$absdir" && dir="$absdir"
  63754. +# Version information for $libname.
  63755. +current=$current
  63756. +age=$age
  63757. +revision=$revision
  63758. - # Now add the directory to shlibpath_var.
  63759. - if eval "test -z \"\$$shlibpath_var\""; then
  63760. - eval "$shlibpath_var=\"\$dir\""
  63761. - else
  63762. - eval "$shlibpath_var=\"\$dir:\$$shlibpath_var\""
  63763. - fi
  63764. - done
  63765. +# Is this an already installed library?
  63766. +installed=$installed
  63767. - # This variable tells wrapper scripts just to set shlibpath_var
  63768. - # rather than running their programs.
  63769. - libtool_execute_magic="$magic"
  63770. +# Should we warn about portability when linking against -modules?
  63771. +shouldnotlink=$module
  63772. - # Check if any of the arguments is a wrapper script.
  63773. - args=
  63774. - for file
  63775. - do
  63776. - case $file in
  63777. - -*) ;;
  63778. - *)
  63779. - # Do a test to see if this is really a libtool program.
  63780. - if (${SED} -e '4q' $file | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
  63781. - # If there is no directory component, then add one.
  63782. - case $file in
  63783. - */* | *\\*) . $file ;;
  63784. - *) . ./$file ;;
  63785. - esac
  63786. +# Files to dlopen/dlpreopen
  63787. +dlopen='$dlfiles'
  63788. +dlpreopen='$dlprefiles'
  63789. - # Transform arg to wrapped name.
  63790. - file="$progdir/$program"
  63791. - fi
  63792. - ;;
  63793. - esac
  63794. - # Quote arguments (to preserve shell metacharacters).
  63795. - file=`$echo "X$file" | $Xsed -e "$sed_quote_subst"`
  63796. - args="$args \"$file\""
  63797. - done
  63798. +# Directory that this library needs to be installed in:
  63799. +libdir='$install_libdir'"
  63800. + if test "$installed" = no && test "$need_relink" = yes; then
  63801. + $ECHO >> $output "\
  63802. +relink_command=\"$relink_command\""
  63803. + fi
  63804. + done
  63805. + }
  63806. - if test -z "$run"; then
  63807. - if test -n "$shlibpath_var"; then
  63808. - # Export the shlibpath_var.
  63809. - eval "export $shlibpath_var"
  63810. - fi
  63811. + # Do a symbolic link so that the libtool archive can be found in
  63812. + # LD_LIBRARY_PATH before the program is installed.
  63813. + func_show_eval '( cd "$output_objdir" && $RM "$outputname" && $LN_S "../$outputname" "$outputname" )' 'exit $?'
  63814. + ;;
  63815. + esac
  63816. + exit $EXIT_SUCCESS
  63817. +}
  63818. - # Restore saved environment variables
  63819. - if test "${save_LC_ALL+set}" = set; then
  63820. - LC_ALL="$save_LC_ALL"; export LC_ALL
  63821. - fi
  63822. - if test "${save_LANG+set}" = set; then
  63823. - LANG="$save_LANG"; export LANG
  63824. - fi
  63825. +{ test "$mode" = link || test "$mode" = relink; } &&
  63826. + func_mode_link ${1+"$@"}
  63827. - # Now prepare to actually exec the command.
  63828. - exec_cmd="\$cmd$args"
  63829. - else
  63830. - # Display what would be done.
  63831. - if test -n "$shlibpath_var"; then
  63832. - eval "\$echo \"\$shlibpath_var=\$$shlibpath_var\""
  63833. - $echo "export $shlibpath_var"
  63834. - fi
  63835. - $echo "$cmd$args"
  63836. - exit $EXIT_SUCCESS
  63837. - fi
  63838. - ;;
  63839. - # libtool clean and uninstall mode
  63840. - clean | uninstall)
  63841. - modename="$modename: $mode"
  63842. - rm="$nonopt"
  63843. +# func_mode_uninstall arg...
  63844. +func_mode_uninstall ()
  63845. +{
  63846. + $opt_debug
  63847. + RM="$nonopt"
  63848. files=
  63849. rmforce=
  63850. exit_status=0
  63851. @@ -6023,30 +8209,28 @@
  63852. for arg
  63853. do
  63854. case $arg in
  63855. - -f) rm="$rm $arg"; rmforce=yes ;;
  63856. - -*) rm="$rm $arg" ;;
  63857. + -f) RM="$RM $arg"; rmforce=yes ;;
  63858. + -*) RM="$RM $arg" ;;
  63859. *) files="$files $arg" ;;
  63860. esac
  63861. done
  63862. - if test -z "$rm"; then
  63863. - $echo "$modename: you must specify an RM program" 1>&2
  63864. - $echo "$help" 1>&2
  63865. - exit $EXIT_FAILURE
  63866. - fi
  63867. + test -z "$RM" && \
  63868. + func_fatal_help "you must specify an RM program"
  63869. rmdirs=
  63870. origobjdir="$objdir"
  63871. for file in $files; do
  63872. - dir=`$echo "X$file" | $Xsed -e 's%/[^/]*$%%'`
  63873. - if test "X$dir" = "X$file"; then
  63874. - dir=.
  63875. + func_dirname "$file" "" "."
  63876. + dir="$func_dirname_result"
  63877. + if test "X$dir" = X.; then
  63878. objdir="$origobjdir"
  63879. else
  63880. objdir="$dir/$origobjdir"
  63881. fi
  63882. - name=`$echo "X$file" | $Xsed -e 's%^.*/%%'`
  63883. + func_basename "$file"
  63884. + name="$func_basename_result"
  63885. test "$mode" = uninstall && objdir="$dir"
  63886. # Remember objdir for removal later, being careful to avoid duplicates
  63887. @@ -6058,9 +8242,9 @@
  63888. fi
  63889. # Don't error if the file doesn't exist and rm -f was used.
  63890. - if (test -L "$file") >/dev/null 2>&1 \
  63891. - || (test -h "$file") >/dev/null 2>&1 \
  63892. - || test -f "$file"; then
  63893. + if { test -L "$file"; } >/dev/null 2>&1 ||
  63894. + { test -h "$file"; } >/dev/null 2>&1 ||
  63895. + test -f "$file"; then
  63896. :
  63897. elif test -d "$file"; then
  63898. exit_status=1
  63899. @@ -6074,69 +8258,56 @@
  63900. case $name in
  63901. *.la)
  63902. # Possibly a libtool archive, so verify it.
  63903. - if (${SED} -e '2q' $file | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
  63904. - . $dir/$name
  63905. + if func_lalib_p "$file"; then
  63906. + func_source $dir/$name
  63907. # Delete the libtool libraries and symlinks.
  63908. for n in $library_names; do
  63909. rmfiles="$rmfiles $objdir/$n"
  63910. done
  63911. test -n "$old_library" && rmfiles="$rmfiles $objdir/$old_library"
  63912. - test "$mode" = clean && rmfiles="$rmfiles $objdir/$name $objdir/${name}i"
  63913. - if test "$mode" = uninstall; then
  63914. + case "$mode" in
  63915. + clean)
  63916. + case " $library_names " in
  63917. + # " " in the beginning catches empty $dlname
  63918. + *" $dlname "*) ;;
  63919. + *) rmfiles="$rmfiles $objdir/$dlname" ;;
  63920. + esac
  63921. + test -n "$libdir" && rmfiles="$rmfiles $objdir/$name $objdir/${name}i"
  63922. + ;;
  63923. + uninstall)
  63924. if test -n "$library_names"; then
  63925. # Do each command in the postuninstall commands.
  63926. - cmds=$postuninstall_cmds
  63927. - save_ifs="$IFS"; IFS='~'
  63928. - for cmd in $cmds; do
  63929. - IFS="$save_ifs"
  63930. - eval cmd=\"$cmd\"
  63931. - $show "$cmd"
  63932. - $run eval "$cmd"
  63933. - if test "$?" -ne 0 && test "$rmforce" != yes; then
  63934. - exit_status=1
  63935. - fi
  63936. - done
  63937. - IFS="$save_ifs"
  63938. + func_execute_cmds "$postuninstall_cmds" 'test "$rmforce" = yes || exit_status=1'
  63939. fi
  63940. if test -n "$old_library"; then
  63941. # Do each command in the old_postuninstall commands.
  63942. - cmds=$old_postuninstall_cmds
  63943. - save_ifs="$IFS"; IFS='~'
  63944. - for cmd in $cmds; do
  63945. - IFS="$save_ifs"
  63946. - eval cmd=\"$cmd\"
  63947. - $show "$cmd"
  63948. - $run eval "$cmd"
  63949. - if test "$?" -ne 0 && test "$rmforce" != yes; then
  63950. - exit_status=1
  63951. - fi
  63952. - done
  63953. - IFS="$save_ifs"
  63954. + func_execute_cmds "$old_postuninstall_cmds" 'test "$rmforce" = yes || exit_status=1'
  63955. fi
  63956. # FIXME: should reinstall the best remaining shared library.
  63957. - fi
  63958. + ;;
  63959. + esac
  63960. fi
  63961. ;;
  63962. *.lo)
  63963. # Possibly a libtool object, so verify it.
  63964. - if (${SED} -e '2q' $file | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
  63965. + if func_lalib_p "$file"; then
  63966. # Read the .lo file
  63967. - . $dir/$name
  63968. + func_source $dir/$name
  63969. # Add PIC object to the list of files to remove.
  63970. - if test -n "$pic_object" \
  63971. - && test "$pic_object" != none; then
  63972. + if test -n "$pic_object" &&
  63973. + test "$pic_object" != none; then
  63974. rmfiles="$rmfiles $dir/$pic_object"
  63975. fi
  63976. # Add non-PIC object to the list of files to remove.
  63977. - if test -n "$non_pic_object" \
  63978. - && test "$non_pic_object" != none; then
  63979. + if test -n "$non_pic_object" &&
  63980. + test "$non_pic_object" != none; then
  63981. rmfiles="$rmfiles $dir/$non_pic_object"
  63982. fi
  63983. fi
  63984. @@ -6147,17 +8318,26 @@
  63985. noexename=$name
  63986. case $file in
  63987. *.exe)
  63988. - file=`$echo $file|${SED} 's,.exe$,,'`
  63989. - noexename=`$echo $name|${SED} 's,.exe$,,'`
  63990. + func_stripname '' '.exe' "$file"
  63991. + file=$func_stripname_result
  63992. + func_stripname '' '.exe' "$name"
  63993. + noexename=$func_stripname_result
  63994. # $file with .exe has already been added to rmfiles,
  63995. # add $file without .exe
  63996. rmfiles="$rmfiles $file"
  63997. ;;
  63998. esac
  63999. # Do a test to see if this is a libtool program.
  64000. - if (${SED} -e '4q' $file | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
  64001. - relink_command=
  64002. - . $dir/$noexename
  64003. + if func_ltwrapper_p "$file"; then
  64004. + if func_ltwrapper_executable_p "$file"; then
  64005. + func_ltwrapper_scriptname "$file"
  64006. + relink_command=
  64007. + func_source $func_ltwrapper_scriptname_result
  64008. + rmfiles="$rmfiles $func_ltwrapper_scriptname_result"
  64009. + else
  64010. + relink_command=
  64011. + func_source $dir/$noexename
  64012. + fi
  64013. # note $name still contains .exe if it was in $file originally
  64014. # as does the version of $file that was added into $rmfiles
  64015. @@ -6172,237 +8352,38 @@
  64016. fi
  64017. ;;
  64018. esac
  64019. - $show "$rm $rmfiles"
  64020. - $run $rm $rmfiles || exit_status=1
  64021. + func_show_eval "$RM $rmfiles" 'exit_status=1'
  64022. done
  64023. objdir="$origobjdir"
  64024. # Try to remove the ${objdir}s in the directories where we deleted files
  64025. for dir in $rmdirs; do
  64026. if test -d "$dir"; then
  64027. - $show "rmdir $dir"
  64028. - $run rmdir $dir >/dev/null 2>&1
  64029. + func_show_eval "rmdir $dir >/dev/null 2>&1"
  64030. fi
  64031. done
  64032. exit $exit_status
  64033. - ;;
  64034. +}
  64035. - "")
  64036. - $echo "$modename: you must specify a MODE" 1>&2
  64037. - $echo "$generic_help" 1>&2
  64038. - exit $EXIT_FAILURE
  64039. - ;;
  64040. - esac
  64041. +{ test "$mode" = uninstall || test "$mode" = clean; } &&
  64042. + func_mode_uninstall ${1+"$@"}
  64043. - if test -z "$exec_cmd"; then
  64044. - $echo "$modename: invalid operation mode \`$mode'" 1>&2
  64045. - $echo "$generic_help" 1>&2
  64046. - exit $EXIT_FAILURE
  64047. - fi
  64048. -fi # test -z "$show_help"
  64049. +test -z "$mode" && {
  64050. + help="$generic_help"
  64051. + func_fatal_help "you must specify a MODE"
  64052. +}
  64053. +
  64054. +test -z "$exec_cmd" && \
  64055. + func_fatal_help "invalid operation mode \`$mode'"
  64056. if test -n "$exec_cmd"; then
  64057. - eval exec $exec_cmd
  64058. + eval exec "$exec_cmd"
  64059. exit $EXIT_FAILURE
  64060. fi
  64061. -# We need to display help for each of the modes.
  64062. -case $mode in
  64063. -"") $echo \
  64064. -"Usage: $modename [OPTION]... [MODE-ARG]...
  64065. -
  64066. -Provide generalized library-building support services.
  64067. -
  64068. - --config show all configuration variables
  64069. - --debug enable verbose shell tracing
  64070. --n, --dry-run display commands without modifying any files
  64071. - --features display basic configuration information and exit
  64072. - --finish same as \`--mode=finish'
  64073. - --help display this help message and exit
  64074. - --mode=MODE use operation mode MODE [default=inferred from MODE-ARGS]
  64075. - --quiet same as \`--silent'
  64076. - --silent don't print informational messages
  64077. - --tag=TAG use configuration variables from tag TAG
  64078. - --version print version information
  64079. -
  64080. -MODE must be one of the following:
  64081. -
  64082. - clean remove files from the build directory
  64083. - compile compile a source file into a libtool object
  64084. - execute automatically set library path, then run a program
  64085. - finish complete the installation of libtool libraries
  64086. - install install libraries or executables
  64087. - link create a library or an executable
  64088. - uninstall remove libraries from an installed directory
  64089. -
  64090. -MODE-ARGS vary depending on the MODE. Try \`$modename --help --mode=MODE' for
  64091. -a more detailed description of MODE.
  64092. -
  64093. -Report bugs to <bug-libtool@gnu.org>."
  64094. - exit $EXIT_SUCCESS
  64095. - ;;
  64096. -
  64097. -clean)
  64098. - $echo \
  64099. -"Usage: $modename [OPTION]... --mode=clean RM [RM-OPTION]... FILE...
  64100. -
  64101. -Remove files from the build directory.
  64102. -
  64103. -RM is the name of the program to use to delete files associated with each FILE
  64104. -(typically \`/bin/rm'). RM-OPTIONS are options (such as \`-f') to be passed
  64105. -to RM.
  64106. -
  64107. -If FILE is a libtool library, object or program, all the files associated
  64108. -with it are deleted. Otherwise, only FILE itself is deleted using RM."
  64109. - ;;
  64110. -
  64111. -compile)
  64112. - $echo \
  64113. -"Usage: $modename [OPTION]... --mode=compile COMPILE-COMMAND... SOURCEFILE
  64114. -
  64115. -Compile a source file into a libtool library object.
  64116. -
  64117. -This mode accepts the following additional options:
  64118. -
  64119. - -o OUTPUT-FILE set the output file name to OUTPUT-FILE
  64120. - -prefer-pic try to building PIC objects only
  64121. - -prefer-non-pic try to building non-PIC objects only
  64122. - -static always build a \`.o' file suitable for static linking
  64123. -
  64124. -COMPILE-COMMAND is a command to be used in creating a \`standard' object file
  64125. -from the given SOURCEFILE.
  64126. -
  64127. -The output file name is determined by removing the directory component from
  64128. -SOURCEFILE, then substituting the C source code suffix \`.c' with the
  64129. -library object suffix, \`.lo'."
  64130. - ;;
  64131. -
  64132. -execute)
  64133. - $echo \
  64134. -"Usage: $modename [OPTION]... --mode=execute COMMAND [ARGS]...
  64135. -
  64136. -Automatically set library path, then run a program.
  64137. -
  64138. -This mode accepts the following additional options:
  64139. -
  64140. - -dlopen FILE add the directory containing FILE to the library path
  64141. -
  64142. -This mode sets the library path environment variable according to \`-dlopen'
  64143. -flags.
  64144. -
  64145. -If any of the ARGS are libtool executable wrappers, then they are translated
  64146. -into their corresponding uninstalled binary, and any of their required library
  64147. -directories are added to the library path.
  64148. -
  64149. -Then, COMMAND is executed, with ARGS as arguments."
  64150. - ;;
  64151. -
  64152. -finish)
  64153. - $echo \
  64154. -"Usage: $modename [OPTION]... --mode=finish [LIBDIR]...
  64155. -
  64156. -Complete the installation of libtool libraries.
  64157. -
  64158. -Each LIBDIR is a directory that contains libtool libraries.
  64159. -
  64160. -The commands that this mode executes may require superuser privileges. Use
  64161. -the \`--dry-run' option if you just want to see what would be executed."
  64162. - ;;
  64163. -
  64164. -install)
  64165. - $echo \
  64166. -"Usage: $modename [OPTION]... --mode=install INSTALL-COMMAND...
  64167. -
  64168. -Install executables or libraries.
  64169. -
  64170. -INSTALL-COMMAND is the installation command. The first component should be
  64171. -either the \`install' or \`cp' program.
  64172. -
  64173. -The rest of the components are interpreted as arguments to that command (only
  64174. -BSD-compatible install options are recognized)."
  64175. - ;;
  64176. -
  64177. -link)
  64178. - $echo \
  64179. -"Usage: $modename [OPTION]... --mode=link LINK-COMMAND...
  64180. -
  64181. -Link object files or libraries together to form another library, or to
  64182. -create an executable program.
  64183. -
  64184. -LINK-COMMAND is a command using the C compiler that you would use to create
  64185. -a program from several object files.
  64186. -
  64187. -The following components of LINK-COMMAND are treated specially:
  64188. -
  64189. - -all-static do not do any dynamic linking at all
  64190. - -avoid-version do not add a version suffix if possible
  64191. - -dlopen FILE \`-dlpreopen' FILE if it cannot be dlopened at runtime
  64192. - -dlpreopen FILE link in FILE and add its symbols to lt_preloaded_symbols
  64193. - -export-dynamic allow symbols from OUTPUT-FILE to be resolved with dlsym(3)
  64194. - -export-symbols SYMFILE
  64195. - try to export only the symbols listed in SYMFILE
  64196. - -export-symbols-regex REGEX
  64197. - try to export only the symbols matching REGEX
  64198. - -LLIBDIR search LIBDIR for required installed libraries
  64199. - -lNAME OUTPUT-FILE requires the installed library libNAME
  64200. - -module build a library that can dlopened
  64201. - -no-fast-install disable the fast-install mode
  64202. - -no-install link a not-installable executable
  64203. - -no-undefined declare that a library does not refer to external symbols
  64204. - -o OUTPUT-FILE create OUTPUT-FILE from the specified objects
  64205. - -objectlist FILE Use a list of object files found in FILE to specify objects
  64206. - -precious-files-regex REGEX
  64207. - don't remove output files matching REGEX
  64208. - -release RELEASE specify package release information
  64209. - -rpath LIBDIR the created library will eventually be installed in LIBDIR
  64210. - -R[ ]LIBDIR add LIBDIR to the runtime path of programs and libraries
  64211. - -static do not do any dynamic linking of libtool libraries
  64212. - -version-info CURRENT[:REVISION[:AGE]]
  64213. - specify library version info [each variable defaults to 0]
  64214. -
  64215. -All other options (arguments beginning with \`-') are ignored.
  64216. -
  64217. -Every other argument is treated as a filename. Files ending in \`.la' are
  64218. -treated as uninstalled libtool libraries, other files are standard or library
  64219. -object files.
  64220. -
  64221. -If the OUTPUT-FILE ends in \`.la', then a libtool library is created,
  64222. -only library objects (\`.lo' files) may be specified, and \`-rpath' is
  64223. -required, except when creating a convenience library.
  64224. -
  64225. -If OUTPUT-FILE ends in \`.a' or \`.lib', then a standard library is created
  64226. -using \`ar' and \`ranlib', or on Windows using \`lib'.
  64227. -
  64228. -If OUTPUT-FILE ends in \`.lo' or \`.${objext}', then a reloadable object file
  64229. -is created, otherwise an executable program is created."
  64230. - ;;
  64231. -
  64232. -uninstall)
  64233. - $echo \
  64234. -"Usage: $modename [OPTION]... --mode=uninstall RM [RM-OPTION]... FILE...
  64235. -
  64236. -Remove libraries from an installation directory.
  64237. -
  64238. -RM is the name of the program to use to delete files associated with each FILE
  64239. -(typically \`/bin/rm'). RM-OPTIONS are options (such as \`-f') to be passed
  64240. -to RM.
  64241. +exit $exit_status
  64242. -If FILE is a libtool library, all the files associated with it are deleted.
  64243. -Otherwise, only FILE itself is deleted using RM."
  64244. - ;;
  64245. -
  64246. -*)
  64247. - $echo "$modename: invalid operation mode \`$mode'" 1>&2
  64248. - $echo "$help" 1>&2
  64249. - exit $EXIT_FAILURE
  64250. - ;;
  64251. -esac
  64252. -
  64253. -$echo
  64254. -$echo "Try \`$modename --help' for more information about other modes."
  64255. -
  64256. -exit $EXIT_SUCCESS
  64257. # The TAGs below are defined such that we never get into a situation
  64258. # in which we disable both kinds of libraries. Given conflicting
  64259. @@ -6421,10 +8402,12 @@
  64260. # ### END LIBTOOL TAG CONFIG: disable-shared
  64261. # ### BEGIN LIBTOOL TAG CONFIG: disable-static
  64262. -build_old_libs=`case $build_libtool_libs in yes) $echo no;; *) $echo yes;; esac`
  64263. +build_old_libs=`case $build_libtool_libs in yes) echo no;; *) echo yes;; esac`
  64264. # ### END LIBTOOL TAG CONFIG: disable-static
  64265. # Local Variables:
  64266. # mode:shell-script
  64267. # sh-indentation:2
  64268. # End:
  64269. +# vi:sw=2
  64270. +
  64271. diff -Nur libgssglue-0.1.orig/Makefile.in libgssglue-0.1/Makefile.in
  64272. --- libgssglue-0.1.orig/Makefile.in 2007-09-04 15:39:45.000000000 +0200
  64273. +++ libgssglue-0.1/Makefile.in 2011-02-17 17:14:46.133563041 +0100
  64274. @@ -1,8 +1,9 @@
  64275. -# Makefile.in generated by automake 1.9.6 from Makefile.am.
  64276. +# Makefile.in generated by automake 1.11.1 from Makefile.am.
  64277. # @configure_input@
  64278. # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
  64279. -# 2003, 2004, 2005 Free Software Foundation, Inc.
  64280. +# 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
  64281. +# Inc.
  64282. # This Makefile.in is free software; the Free Software Foundation
  64283. # gives unlimited permission to copy and/or distribute it,
  64284. # with or without modifications, as long as this notice is preserved.
  64285. @@ -14,15 +15,12 @@
  64286. @SET_MAKE@
  64287. -srcdir = @srcdir@
  64288. -top_srcdir = @top_srcdir@
  64289. VPATH = @srcdir@
  64290. pkgdatadir = $(datadir)/@PACKAGE@
  64291. -pkglibdir = $(libdir)/@PACKAGE@
  64292. pkgincludedir = $(includedir)/@PACKAGE@
  64293. -top_builddir = .
  64294. +pkglibdir = $(libdir)/@PACKAGE@
  64295. +pkglibexecdir = $(libexecdir)/@PACKAGE@
  64296. am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
  64297. -INSTALL = @INSTALL@
  64298. install_sh_DATA = $(install_sh) -c -m 644
  64299. install_sh_PROGRAM = $(install_sh) -c
  64300. install_sh_SCRIPT = $(install_sh) -c
  64301. @@ -36,38 +34,59 @@
  64302. POST_UNINSTALL = :
  64303. build_triplet = @build@
  64304. host_triplet = @host@
  64305. +subdir = .
  64306. DIST_COMMON = README $(am__configure_deps) $(srcdir)/Makefile.am \
  64307. $(srcdir)/Makefile.in $(srcdir)/libgssglue.pc.in \
  64308. $(top_srcdir)/configure $(top_srcdir)/src/gssglue/config.h.in \
  64309. AUTHORS COPYING ChangeLog INSTALL NEWS config.guess config.sub \
  64310. depcomp install-sh ltmain.sh missing mkinstalldirs
  64311. -subdir = .
  64312. ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
  64313. am__aclocal_m4_deps = $(top_srcdir)/configure.in
  64314. am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
  64315. $(ACLOCAL_M4)
  64316. am__CONFIG_DISTCLEAN_FILES = config.status config.cache config.log \
  64317. - configure.lineno configure.status.lineno
  64318. + configure.lineno config.status.lineno
  64319. mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
  64320. CONFIG_HEADER = $(top_builddir)/src/gssglue/config.h
  64321. CONFIG_CLEAN_FILES = libgssglue.pc
  64322. +CONFIG_CLEAN_VPATH_FILES =
  64323. SOURCES =
  64324. DIST_SOURCES =
  64325. RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \
  64326. html-recursive info-recursive install-data-recursive \
  64327. - install-exec-recursive install-info-recursive \
  64328. - install-recursive installcheck-recursive installdirs-recursive \
  64329. - pdf-recursive ps-recursive uninstall-info-recursive \
  64330. - uninstall-recursive
  64331. + install-dvi-recursive install-exec-recursive \
  64332. + install-html-recursive install-info-recursive \
  64333. + install-pdf-recursive install-ps-recursive install-recursive \
  64334. + installcheck-recursive installdirs-recursive pdf-recursive \
  64335. + ps-recursive uninstall-recursive
  64336. am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
  64337. am__vpath_adj = case $$p in \
  64338. $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
  64339. *) f=$$p;; \
  64340. esac;
  64341. -am__strip_dir = `echo $$p | sed -e 's|^.*/||'`;
  64342. +am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`;
  64343. +am__install_max = 40
  64344. +am__nobase_strip_setup = \
  64345. + srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'`
  64346. +am__nobase_strip = \
  64347. + for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||"
  64348. +am__nobase_list = $(am__nobase_strip_setup); \
  64349. + for p in $$list; do echo "$$p $$p"; done | \
  64350. + sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \
  64351. + $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \
  64352. + if (++n[$$2] == $(am__install_max)) \
  64353. + { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \
  64354. + END { for (dir in files) print dir, files[dir] }'
  64355. +am__base_list = \
  64356. + sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \
  64357. + sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g'
  64358. am__installdirs = "$(DESTDIR)$(pkgconfigdir)"
  64359. -pkgconfigDATA_INSTALL = $(INSTALL_DATA)
  64360. DATA = $(pkgconfig_DATA)
  64361. +RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \
  64362. + distclean-recursive maintainer-clean-recursive
  64363. +AM_RECURSIVE_TARGETS = $(RECURSIVE_TARGETS:-recursive=) \
  64364. + $(RECURSIVE_CLEAN_TARGETS:-recursive=) tags TAGS ctags CTAGS \
  64365. + distdir dist dist-all distcheck
  64366. ETAGS = etags
  64367. CTAGS = ctags
  64368. DIST_SUBDIRS = $(SUBDIRS)
  64369. @@ -75,16 +94,39 @@
  64370. distdir = $(PACKAGE)-$(VERSION)
  64371. top_distdir = $(distdir)
  64372. am__remove_distdir = \
  64373. - { test ! -d $(distdir) \
  64374. - || { find $(distdir) -type d ! -perm -200 -exec chmod u+w {} ';' \
  64375. - && rm -fr $(distdir); }; }
  64376. + { test ! -d "$(distdir)" \
  64377. + || { find "$(distdir)" -type d ! -perm -200 -exec chmod u+w {} ';' \
  64378. + && rm -fr "$(distdir)"; }; }
  64379. +am__relativize = \
  64380. + dir0=`pwd`; \
  64381. + sed_first='s,^\([^/]*\)/.*$$,\1,'; \
  64382. + sed_rest='s,^[^/]*/*,,'; \
  64383. + sed_last='s,^.*/\([^/]*\)$$,\1,'; \
  64384. + sed_butlast='s,/*[^/]*$$,,'; \
  64385. + while test -n "$$dir1"; do \
  64386. + first=`echo "$$dir1" | sed -e "$$sed_first"`; \
  64387. + if test "$$first" != "."; then \
  64388. + if test "$$first" = ".."; then \
  64389. + dir2=`echo "$$dir0" | sed -e "$$sed_last"`/"$$dir2"; \
  64390. + dir0=`echo "$$dir0" | sed -e "$$sed_butlast"`; \
  64391. + else \
  64392. + first2=`echo "$$dir2" | sed -e "$$sed_first"`; \
  64393. + if test "$$first2" = "$$first"; then \
  64394. + dir2=`echo "$$dir2" | sed -e "$$sed_rest"`; \
  64395. + else \
  64396. + dir2="../$$dir2"; \
  64397. + fi; \
  64398. + dir0="$$dir0"/"$$first"; \
  64399. + fi; \
  64400. + fi; \
  64401. + dir1=`echo "$$dir1" | sed -e "$$sed_rest"`; \
  64402. + done; \
  64403. + reldir="$$dir2"
  64404. DIST_ARCHIVES = $(distdir).tar.gz
  64405. GZIP_ENV = --best
  64406. distuninstallcheck_listfiles = find . -type f -print
  64407. distcleancheck_listfiles = find . -type f -print
  64408. ACLOCAL = @ACLOCAL@
  64409. -AMDEP_FALSE = @AMDEP_FALSE@
  64410. -AMDEP_TRUE = @AMDEP_TRUE@
  64411. AMTAR = @AMTAR@
  64412. AR = @AR@
  64413. AUTOCONF = @AUTOCONF@
  64414. @@ -96,39 +138,45 @@
  64415. CFLAGS = @CFLAGS@
  64416. CPP = @CPP@
  64417. CPPFLAGS = @CPPFLAGS@
  64418. -CXX = @CXX@
  64419. -CXXCPP = @CXXCPP@
  64420. -CXXDEPMODE = @CXXDEPMODE@
  64421. -CXXFLAGS = @CXXFLAGS@
  64422. CYGPATH_W = @CYGPATH_W@
  64423. DEFS = @DEFS@
  64424. DEPDIR = @DEPDIR@
  64425. -ECHO = @ECHO@
  64426. +DSYMUTIL = @DSYMUTIL@
  64427. +DUMPBIN = @DUMPBIN@
  64428. ECHO_C = @ECHO_C@
  64429. ECHO_N = @ECHO_N@
  64430. ECHO_T = @ECHO_T@
  64431. EGREP = @EGREP@
  64432. EXEEXT = @EXEEXT@
  64433. -F77 = @F77@
  64434. -FFLAGS = @FFLAGS@
  64435. +FGREP = @FGREP@
  64436. GREP = @GREP@
  64437. +INSTALL = @INSTALL@
  64438. INSTALL_DATA = @INSTALL_DATA@
  64439. INSTALL_PROGRAM = @INSTALL_PROGRAM@
  64440. INSTALL_SCRIPT = @INSTALL_SCRIPT@
  64441. INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
  64442. +LD = @LD@
  64443. LDFLAGS = @LDFLAGS@
  64444. LIBOBJS = @LIBOBJS@
  64445. LIBS = @LIBS@
  64446. LIBTOOL = @LIBTOOL@
  64447. +LIPO = @LIPO@
  64448. LN_S = @LN_S@
  64449. LTLIBOBJS = @LTLIBOBJS@
  64450. MAKEINFO = @MAKEINFO@
  64451. +MKDIR_P = @MKDIR_P@
  64452. +NM = @NM@
  64453. +NMEDIT = @NMEDIT@
  64454. +OBJDUMP = @OBJDUMP@
  64455. OBJEXT = @OBJEXT@
  64456. +OTOOL = @OTOOL@
  64457. +OTOOL64 = @OTOOL64@
  64458. PACKAGE = @PACKAGE@
  64459. PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
  64460. PACKAGE_NAME = @PACKAGE_NAME@
  64461. PACKAGE_STRING = @PACKAGE_STRING@
  64462. PACKAGE_TARNAME = @PACKAGE_TARNAME@
  64463. +PACKAGE_URL = @PACKAGE_URL@
  64464. PACKAGE_VERSION = @PACKAGE_VERSION@
  64465. PATH_SEPARATOR = @PATH_SEPARATOR@
  64466. RANLIB = @RANLIB@
  64467. @@ -137,13 +185,12 @@
  64468. SHELL = @SHELL@
  64469. STRIP = @STRIP@
  64470. VERSION = @VERSION@
  64471. +abs_builddir = @abs_builddir@
  64472. +abs_srcdir = @abs_srcdir@
  64473. +abs_top_builddir = @abs_top_builddir@
  64474. +abs_top_srcdir = @abs_top_srcdir@
  64475. ac_ct_CC = @ac_ct_CC@
  64476. -ac_ct_CXX = @ac_ct_CXX@
  64477. -ac_ct_F77 = @ac_ct_F77@
  64478. -am__fastdepCC_FALSE = @am__fastdepCC_FALSE@
  64479. -am__fastdepCC_TRUE = @am__fastdepCC_TRUE@
  64480. -am__fastdepCXX_FALSE = @am__fastdepCXX_FALSE@
  64481. -am__fastdepCXX_TRUE = @am__fastdepCXX_TRUE@
  64482. +ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
  64483. am__include = @am__include@
  64484. am__leading_dot = @am__leading_dot@
  64485. am__quote = @am__quote@
  64486. @@ -155,6 +202,7 @@
  64487. build_cpu = @build_cpu@
  64488. build_os = @build_os@
  64489. build_vendor = @build_vendor@
  64490. +builddir = @builddir@
  64491. datadir = @datadir@
  64492. datarootdir = @datarootdir@
  64493. docdir = @docdir@
  64494. @@ -173,6 +221,7 @@
  64495. libexecdir = @libexecdir@
  64496. localedir = @localedir@
  64497. localstatedir = @localstatedir@
  64498. +lt_ECHO = @lt_ECHO@
  64499. mandir = @mandir@
  64500. mkdir_p = @mkdir_p@
  64501. oldincludedir = @oldincludedir@
  64502. @@ -182,8 +231,12 @@
  64503. psdir = @psdir@
  64504. sbindir = @sbindir@
  64505. sharedstatedir = @sharedstatedir@
  64506. +srcdir = @srcdir@
  64507. sysconfdir = @sysconfdir@
  64508. target_alias = @target_alias@
  64509. +top_build_prefix = @top_build_prefix@
  64510. +top_builddir = @top_builddir@
  64511. +top_srcdir = @top_srcdir@
  64512. SUBDIRS = src
  64513. EXTRA_DIST = doc/gssapi_mech.conf
  64514. pkgconfigdir = $(libdir)/pkgconfig
  64515. @@ -197,15 +250,15 @@
  64516. @for dep in $?; do \
  64517. case '$(am__configure_deps)' in \
  64518. *$$dep*) \
  64519. - echo ' cd $(srcdir) && $(AUTOMAKE) --gnu '; \
  64520. - cd $(srcdir) && $(AUTOMAKE) --gnu \
  64521. + echo ' cd $(srcdir) && $(AUTOMAKE) --gnu'; \
  64522. + $(am__cd) $(srcdir) && $(AUTOMAKE) --gnu \
  64523. && exit 0; \
  64524. exit 1;; \
  64525. esac; \
  64526. done; \
  64527. - echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu Makefile'; \
  64528. - cd $(top_srcdir) && \
  64529. - $(AUTOMAKE) --gnu Makefile
  64530. + echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu Makefile'; \
  64531. + $(am__cd) $(top_srcdir) && \
  64532. + $(AUTOMAKE) --gnu Makefile
  64533. .PRECIOUS: Makefile
  64534. Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
  64535. @case '$?' in \
  64536. @@ -221,21 +274,22 @@
  64537. $(SHELL) ./config.status --recheck
  64538. $(top_srcdir)/configure: $(am__configure_deps)
  64539. - cd $(srcdir) && $(AUTOCONF)
  64540. + $(am__cd) $(srcdir) && $(AUTOCONF)
  64541. $(ACLOCAL_M4): $(am__aclocal_m4_deps)
  64542. - cd $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS)
  64543. + $(am__cd) $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS)
  64544. +$(am__aclocal_m4_deps):
  64545. src/gssglue/config.h: src/gssglue/stamp-h1
  64546. @if test ! -f $@; then \
  64547. rm -f src/gssglue/stamp-h1; \
  64548. - $(MAKE) src/gssglue/stamp-h1; \
  64549. + $(MAKE) $(AM_MAKEFLAGS) src/gssglue/stamp-h1; \
  64550. else :; fi
  64551. src/gssglue/stamp-h1: $(top_srcdir)/src/gssglue/config.h.in $(top_builddir)/config.status
  64552. @rm -f src/gssglue/stamp-h1
  64553. cd $(top_builddir) && $(SHELL) ./config.status src/gssglue/config.h
  64554. $(top_srcdir)/src/gssglue/config.h.in: $(am__configure_deps)
  64555. - cd $(top_srcdir) && $(AUTOHEADER)
  64556. + ($(am__cd) $(top_srcdir) && $(AUTOHEADER))
  64557. rm -f src/gssglue/stamp-h1
  64558. touch $@
  64559. @@ -251,25 +305,27 @@
  64560. -rm -rf .libs _libs
  64561. distclean-libtool:
  64562. - -rm -f libtool
  64563. -uninstall-info-am:
  64564. + -rm -f libtool config.lt
  64565. install-pkgconfigDATA: $(pkgconfig_DATA)
  64566. @$(NORMAL_INSTALL)
  64567. - test -z "$(pkgconfigdir)" || $(mkdir_p) "$(DESTDIR)$(pkgconfigdir)"
  64568. - @list='$(pkgconfig_DATA)'; for p in $$list; do \
  64569. + test -z "$(pkgconfigdir)" || $(MKDIR_P) "$(DESTDIR)$(pkgconfigdir)"
  64570. + @list='$(pkgconfig_DATA)'; test -n "$(pkgconfigdir)" || list=; \
  64571. + for p in $$list; do \
  64572. if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
  64573. - f=$(am__strip_dir) \
  64574. - echo " $(pkgconfigDATA_INSTALL) '$$d$$p' '$(DESTDIR)$(pkgconfigdir)/$$f'"; \
  64575. - $(pkgconfigDATA_INSTALL) "$$d$$p" "$(DESTDIR)$(pkgconfigdir)/$$f"; \
  64576. + echo "$$d$$p"; \
  64577. + done | $(am__base_list) | \
  64578. + while read files; do \
  64579. + echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(pkgconfigdir)'"; \
  64580. + $(INSTALL_DATA) $$files "$(DESTDIR)$(pkgconfigdir)" || exit $$?; \
  64581. done
  64582. uninstall-pkgconfigDATA:
  64583. @$(NORMAL_UNINSTALL)
  64584. - @list='$(pkgconfig_DATA)'; for p in $$list; do \
  64585. - f=$(am__strip_dir) \
  64586. - echo " rm -f '$(DESTDIR)$(pkgconfigdir)/$$f'"; \
  64587. - rm -f "$(DESTDIR)$(pkgconfigdir)/$$f"; \
  64588. - done
  64589. + @list='$(pkgconfig_DATA)'; test -n "$(pkgconfigdir)" || list=; \
  64590. + files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \
  64591. + test -n "$$files" || exit 0; \
  64592. + echo " ( cd '$(DESTDIR)$(pkgconfigdir)' && rm -f" $$files ")"; \
  64593. + cd "$(DESTDIR)$(pkgconfigdir)" && rm -f $$files
  64594. # This directory's subdirectories are mostly independent; you can cd
  64595. # into them and run `make' without going through this Makefile.
  64596. @@ -278,7 +334,7 @@
  64597. # (which will cause the Makefiles to be regenerated when you run `make');
  64598. # (2) otherwise, pass the desired values on the `make' command line.
  64599. $(RECURSIVE_TARGETS):
  64600. - @failcom='exit 1'; \
  64601. + @fail= failcom='exit 1'; \
  64602. for f in x $$MAKEFLAGS; do \
  64603. case $$f in \
  64604. *=* | --[!k]*);; \
  64605. @@ -295,16 +351,15 @@
  64606. else \
  64607. local_target="$$target"; \
  64608. fi; \
  64609. - (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
  64610. + ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
  64611. || eval $$failcom; \
  64612. done; \
  64613. if test "$$dot_seen" = "no"; then \
  64614. $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \
  64615. fi; test -z "$$fail"
  64616. -mostlyclean-recursive clean-recursive distclean-recursive \
  64617. -maintainer-clean-recursive:
  64618. - @failcom='exit 1'; \
  64619. +$(RECURSIVE_CLEAN_TARGETS):
  64620. + @fail= failcom='exit 1'; \
  64621. for f in x $$MAKEFLAGS; do \
  64622. case $$f in \
  64623. *=* | --[!k]*);; \
  64624. @@ -330,16 +385,16 @@
  64625. else \
  64626. local_target="$$target"; \
  64627. fi; \
  64628. - (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
  64629. + ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
  64630. || eval $$failcom; \
  64631. done && test -z "$$fail"
  64632. tags-recursive:
  64633. list='$(SUBDIRS)'; for subdir in $$list; do \
  64634. - test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \
  64635. + test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \
  64636. done
  64637. ctags-recursive:
  64638. list='$(SUBDIRS)'; for subdir in $$list; do \
  64639. - test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \
  64640. + test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \
  64641. done
  64642. ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
  64643. @@ -347,14 +402,14 @@
  64644. unique=`for i in $$list; do \
  64645. if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
  64646. done | \
  64647. - $(AWK) ' { files[$$0] = 1; } \
  64648. - END { for (i in files) print i; }'`; \
  64649. + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
  64650. + END { if (nonempty) { for (i in files) print i; }; }'`; \
  64651. mkid -fID $$unique
  64652. tags: TAGS
  64653. TAGS: tags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
  64654. $(TAGS_FILES) $(LISP)
  64655. - tags=; \
  64656. + set x; \
  64657. here=`pwd`; \
  64658. if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \
  64659. include_option=--etags-include; \
  64660. @@ -366,84 +421,103 @@
  64661. list='$(SUBDIRS)'; for subdir in $$list; do \
  64662. if test "$$subdir" = .; then :; else \
  64663. test ! -f $$subdir/TAGS || \
  64664. - tags="$$tags $$include_option=$$here/$$subdir/TAGS"; \
  64665. + set "$$@" "$$include_option=$$here/$$subdir/TAGS"; \
  64666. fi; \
  64667. done; \
  64668. list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
  64669. unique=`for i in $$list; do \
  64670. if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
  64671. done | \
  64672. - $(AWK) ' { files[$$0] = 1; } \
  64673. - END { for (i in files) print i; }'`; \
  64674. - if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
  64675. + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
  64676. + END { if (nonempty) { for (i in files) print i; }; }'`; \
  64677. + shift; \
  64678. + if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
  64679. test -n "$$unique" || unique=$$empty_fix; \
  64680. - $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
  64681. - $$tags $$unique; \
  64682. + if test $$# -gt 0; then \
  64683. + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
  64684. + "$$@" $$unique; \
  64685. + else \
  64686. + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
  64687. + $$unique; \
  64688. + fi; \
  64689. fi
  64690. ctags: CTAGS
  64691. CTAGS: ctags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
  64692. $(TAGS_FILES) $(LISP)
  64693. - tags=; \
  64694. - here=`pwd`; \
  64695. list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
  64696. unique=`for i in $$list; do \
  64697. if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
  64698. done | \
  64699. - $(AWK) ' { files[$$0] = 1; } \
  64700. - END { for (i in files) print i; }'`; \
  64701. - test -z "$(CTAGS_ARGS)$$tags$$unique" \
  64702. + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
  64703. + END { if (nonempty) { for (i in files) print i; }; }'`; \
  64704. + test -z "$(CTAGS_ARGS)$$unique" \
  64705. || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
  64706. - $$tags $$unique
  64707. + $$unique
  64708. GTAGS:
  64709. here=`$(am__cd) $(top_builddir) && pwd` \
  64710. - && cd $(top_srcdir) \
  64711. - && gtags -i $(GTAGS_ARGS) $$here
  64712. + && $(am__cd) $(top_srcdir) \
  64713. + && gtags -i $(GTAGS_ARGS) "$$here"
  64714. distclean-tags:
  64715. -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
  64716. distdir: $(DISTFILES)
  64717. $(am__remove_distdir)
  64718. - mkdir $(distdir)
  64719. - $(mkdir_p) $(distdir)/. $(distdir)/doc $(distdir)/src/gssglue
  64720. - @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \
  64721. - topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \
  64722. - list='$(DISTFILES)'; for file in $$list; do \
  64723. - case $$file in \
  64724. - $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \
  64725. - $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \
  64726. - esac; \
  64727. + test -d "$(distdir)" || mkdir "$(distdir)"
  64728. + @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
  64729. + topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
  64730. + list='$(DISTFILES)'; \
  64731. + dist_files=`for file in $$list; do echo $$file; done | \
  64732. + sed -e "s|^$$srcdirstrip/||;t" \
  64733. + -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
  64734. + case $$dist_files in \
  64735. + */*) $(MKDIR_P) `echo "$$dist_files" | \
  64736. + sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
  64737. + sort -u` ;; \
  64738. + esac; \
  64739. + for file in $$dist_files; do \
  64740. if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
  64741. - dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \
  64742. - if test "$$dir" != "$$file" && test "$$dir" != "."; then \
  64743. - dir="/$$dir"; \
  64744. - $(mkdir_p) "$(distdir)$$dir"; \
  64745. - else \
  64746. - dir=''; \
  64747. - fi; \
  64748. if test -d $$d/$$file; then \
  64749. + dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
  64750. + if test -d "$(distdir)/$$file"; then \
  64751. + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
  64752. + fi; \
  64753. if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
  64754. - cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
  64755. + cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
  64756. + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
  64757. fi; \
  64758. - cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
  64759. + cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
  64760. else \
  64761. - test -f $(distdir)/$$file \
  64762. - || cp -p $$d/$$file $(distdir)/$$file \
  64763. + test -f "$(distdir)/$$file" \
  64764. + || cp -p $$d/$$file "$(distdir)/$$file" \
  64765. || exit 1; \
  64766. fi; \
  64767. done
  64768. - list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
  64769. + @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
  64770. if test "$$subdir" = .; then :; else \
  64771. test -d "$(distdir)/$$subdir" \
  64772. - || $(mkdir_p) "$(distdir)/$$subdir" \
  64773. + || $(MKDIR_P) "$(distdir)/$$subdir" \
  64774. || exit 1; \
  64775. - distdir=`$(am__cd) $(distdir) && pwd`; \
  64776. - top_distdir=`$(am__cd) $(top_distdir) && pwd`; \
  64777. - (cd $$subdir && \
  64778. + fi; \
  64779. + done
  64780. + @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
  64781. + if test "$$subdir" = .; then :; else \
  64782. + dir1=$$subdir; dir2="$(distdir)/$$subdir"; \
  64783. + $(am__relativize); \
  64784. + new_distdir=$$reldir; \
  64785. + dir1=$$subdir; dir2="$(top_distdir)"; \
  64786. + $(am__relativize); \
  64787. + new_top_distdir=$$reldir; \
  64788. + echo " (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) top_distdir="$$new_top_distdir" distdir="$$new_distdir" \\"; \
  64789. + echo " am__remove_distdir=: am__skip_length_check=: am__skip_mode_fix=: distdir)"; \
  64790. + ($(am__cd) $$subdir && \
  64791. $(MAKE) $(AM_MAKEFLAGS) \
  64792. - top_distdir="$$top_distdir" \
  64793. - distdir="$$distdir/$$subdir" \
  64794. + top_distdir="$$new_top_distdir" \
  64795. + distdir="$$new_distdir" \
  64796. + am__remove_distdir=: \
  64797. + am__skip_length_check=: \
  64798. + am__skip_mode_fix=: \
  64799. distdir) \
  64800. || exit 1; \
  64801. fi; \
  64802. @@ -451,11 +525,13 @@
  64803. $(MAKE) $(AM_MAKEFLAGS) \
  64804. top_distdir="$(top_distdir)" distdir="$(distdir)" \
  64805. dist-hook
  64806. - -find $(distdir) -type d ! -perm -777 -exec chmod a+rwx {} \; -o \
  64807. + -test -n "$(am__skip_mode_fix)" \
  64808. + || find "$(distdir)" -type d ! -perm -755 \
  64809. + -exec chmod u+rwx,go+rx {} \; -o \
  64810. ! -type d ! -perm -444 -links 1 -exec chmod a+r {} \; -o \
  64811. ! -type d ! -perm -400 -exec chmod a+r {} \; -o \
  64812. - ! -type d ! -perm -444 -exec $(SHELL) $(install_sh) -c -m a+r {} {} \; \
  64813. - || chmod -R a+r $(distdir)
  64814. + ! -type d ! -perm -444 -exec $(install_sh) -c -m a+r {} {} \; \
  64815. + || chmod -R a+r "$(distdir)"
  64816. dist-gzip: distdir
  64817. tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz
  64818. $(am__remove_distdir)
  64819. @@ -464,6 +540,14 @@
  64820. tardir=$(distdir) && $(am__tar) | bzip2 -9 -c >$(distdir).tar.bz2
  64821. $(am__remove_distdir)
  64822. +dist-lzma: distdir
  64823. + tardir=$(distdir) && $(am__tar) | lzma -9 -c >$(distdir).tar.lzma
  64824. + $(am__remove_distdir)
  64825. +
  64826. +dist-xz: distdir
  64827. + tardir=$(distdir) && $(am__tar) | xz -c >$(distdir).tar.xz
  64828. + $(am__remove_distdir)
  64829. +
  64830. dist-tarZ: distdir
  64831. tardir=$(distdir) && $(am__tar) | compress -c >$(distdir).tar.Z
  64832. $(am__remove_distdir)
  64833. @@ -487,13 +571,17 @@
  64834. distcheck: dist
  64835. case '$(DIST_ARCHIVES)' in \
  64836. *.tar.gz*) \
  64837. - GZIP=$(GZIP_ENV) gunzip -c $(distdir).tar.gz | $(am__untar) ;;\
  64838. + GZIP=$(GZIP_ENV) gzip -dc $(distdir).tar.gz | $(am__untar) ;;\
  64839. *.tar.bz2*) \
  64840. - bunzip2 -c $(distdir).tar.bz2 | $(am__untar) ;;\
  64841. + bzip2 -dc $(distdir).tar.bz2 | $(am__untar) ;;\
  64842. + *.tar.lzma*) \
  64843. + lzma -dc $(distdir).tar.lzma | $(am__untar) ;;\
  64844. + *.tar.xz*) \
  64845. + xz -dc $(distdir).tar.xz | $(am__untar) ;;\
  64846. *.tar.Z*) \
  64847. uncompress -c $(distdir).tar.Z | $(am__untar) ;;\
  64848. *.shar.gz*) \
  64849. - GZIP=$(GZIP_ENV) gunzip -c $(distdir).shar.gz | unshar ;;\
  64850. + GZIP=$(GZIP_ENV) gzip -dc $(distdir).shar.gz | unshar ;;\
  64851. *.zip*) \
  64852. unzip $(distdir).zip ;;\
  64853. esac
  64854. @@ -501,9 +589,11 @@
  64855. mkdir $(distdir)/_build
  64856. mkdir $(distdir)/_inst
  64857. chmod a-w $(distdir)
  64858. + test -d $(distdir)/_build || exit 0; \
  64859. dc_install_base=`$(am__cd) $(distdir)/_inst && pwd | sed -e 's,^[^:\\/]:[\\/],/,'` \
  64860. && dc_destdir="$${TMPDIR-/tmp}/am-dc-$$$$/" \
  64861. - && cd $(distdir)/_build \
  64862. + && am__cwd=`pwd` \
  64863. + && $(am__cd) $(distdir)/_build \
  64864. && ../configure --srcdir=.. --prefix="$$dc_install_base" \
  64865. $(DISTCHECK_CONFIGURE_FLAGS) \
  64866. && $(MAKE) $(AM_MAKEFLAGS) \
  64867. @@ -525,13 +615,15 @@
  64868. && rm -rf "$$dc_destdir" \
  64869. && $(MAKE) $(AM_MAKEFLAGS) dist \
  64870. && rm -rf $(DIST_ARCHIVES) \
  64871. - && $(MAKE) $(AM_MAKEFLAGS) distcleancheck
  64872. + && $(MAKE) $(AM_MAKEFLAGS) distcleancheck \
  64873. + && cd "$$am__cwd" \
  64874. + || exit 1
  64875. $(am__remove_distdir)
  64876. @(echo "$(distdir) archives ready for distribution: "; \
  64877. list='$(DIST_ARCHIVES)'; for i in $$list; do echo $$i; done) | \
  64878. - sed -e '1{h;s/./=/g;p;x;}' -e '$${p;x;}'
  64879. + sed -e 1h -e 1s/./=/g -e 1p -e 1x -e '$$p' -e '$$x'
  64880. distuninstallcheck:
  64881. - @cd $(distuninstallcheck_dir) \
  64882. + @$(am__cd) '$(distuninstallcheck_dir)' \
  64883. && test `$(distuninstallcheck_listfiles) | wc -l` -le 1 \
  64884. || { echo "ERROR: files left after uninstall:" ; \
  64885. if test -n "$(DESTDIR)"; then \
  64886. @@ -554,7 +646,7 @@
  64887. installdirs: installdirs-recursive
  64888. installdirs-am:
  64889. for dir in "$(DESTDIR)$(pkgconfigdir)"; do \
  64890. - test -z "$$dir" || $(mkdir_p) "$$dir"; \
  64891. + test -z "$$dir" || $(MKDIR_P) "$$dir"; \
  64892. done
  64893. install: install-recursive
  64894. install-exec: install-exec-recursive
  64895. @@ -576,6 +668,7 @@
  64896. distclean-generic:
  64897. -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
  64898. + -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
  64899. maintainer-clean-generic:
  64900. @echo "This command is intended for maintainers to use"
  64901. @@ -596,18 +689,38 @@
  64902. html: html-recursive
  64903. +html-am:
  64904. +
  64905. info: info-recursive
  64906. info-am:
  64907. install-data-am: install-pkgconfigDATA
  64908. +install-dvi: install-dvi-recursive
  64909. +
  64910. +install-dvi-am:
  64911. +
  64912. install-exec-am:
  64913. +install-html: install-html-recursive
  64914. +
  64915. +install-html-am:
  64916. +
  64917. install-info: install-info-recursive
  64918. +install-info-am:
  64919. +
  64920. install-man:
  64921. +install-pdf: install-pdf-recursive
  64922. +
  64923. +install-pdf-am:
  64924. +
  64925. +install-ps: install-ps-recursive
  64926. +
  64927. +install-ps-am:
  64928. +
  64929. installcheck-am:
  64930. maintainer-clean: maintainer-clean-recursive
  64931. @@ -628,26 +741,27 @@
  64932. ps-am:
  64933. -uninstall-am: uninstall-info-am uninstall-pkgconfigDATA
  64934. +uninstall-am: uninstall-pkgconfigDATA
  64935. -uninstall-info: uninstall-info-recursive
  64936. +.MAKE: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) ctags-recursive \
  64937. + install-am install-strip tags-recursive
  64938. -.PHONY: $(RECURSIVE_TARGETS) CTAGS GTAGS all all-am am--refresh check \
  64939. - check-am clean clean-generic clean-libtool clean-recursive \
  64940. - ctags ctags-recursive dist dist-all dist-bzip2 dist-gzip \
  64941. - dist-hook dist-shar dist-tarZ dist-zip distcheck distclean \
  64942. - distclean-generic distclean-hdr distclean-libtool \
  64943. - distclean-recursive distclean-tags distcleancheck distdir \
  64944. +.PHONY: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) CTAGS GTAGS \
  64945. + all all-am am--refresh check check-am clean clean-generic \
  64946. + clean-libtool ctags ctags-recursive dist dist-all dist-bzip2 \
  64947. + dist-gzip dist-hook dist-lzma dist-shar dist-tarZ dist-xz \
  64948. + dist-zip distcheck distclean distclean-generic distclean-hdr \
  64949. + distclean-libtool distclean-tags distcleancheck distdir \
  64950. distuninstallcheck dvi dvi-am html html-am info info-am \
  64951. - install install-am install-data install-data-am install-exec \
  64952. - install-exec-am install-info install-info-am install-man \
  64953. - install-pkgconfigDATA install-strip installcheck \
  64954. - installcheck-am installdirs installdirs-am maintainer-clean \
  64955. - maintainer-clean-generic maintainer-clean-recursive \
  64956. - mostlyclean mostlyclean-generic mostlyclean-libtool \
  64957. - mostlyclean-recursive pdf pdf-am ps ps-am tags tags-recursive \
  64958. - uninstall uninstall-am uninstall-info-am \
  64959. - uninstall-pkgconfigDATA
  64960. + install install-am install-data install-data-am install-dvi \
  64961. + install-dvi-am install-exec install-exec-am install-html \
  64962. + install-html-am install-info install-info-am install-man \
  64963. + install-pdf install-pdf-am install-pkgconfigDATA install-ps \
  64964. + install-ps-am install-strip installcheck installcheck-am \
  64965. + installdirs installdirs-am maintainer-clean \
  64966. + maintainer-clean-generic mostlyclean mostlyclean-generic \
  64967. + mostlyclean-libtool pdf pdf-am ps ps-am tags tags-recursive \
  64968. + uninstall uninstall-am uninstall-pkgconfigDATA
  64969. # XXX: also exclude debian/files and debian/files.new ? do a clean??
  64970. @@ -655,6 +769,7 @@
  64971. mkdir $(distdir)/debian/
  64972. find $(srcdir)/debian -maxdepth 1 -not -type d |xargs -i cp {} $(distdir)/debian/
  64973. rm -f $(distdir)/src/gssglue/gssapi/gssapi.h
  64974. +
  64975. # Tell versions [3.59,3.63) of GNU make to not export all variables.
  64976. # Otherwise a system limit (for SysV at least) may be exceeded.
  64977. .NOEXPORT:
  64978. diff -Nur libgssglue-0.1.orig/missing libgssglue-0.1/missing
  64979. --- libgssglue-0.1.orig/missing 2007-09-04 15:39:45.000000000 +0200
  64980. +++ libgssglue-0.1/missing 2011-02-17 17:14:46.007312974 +0100
  64981. @@ -1,10 +1,10 @@
  64982. #! /bin/sh
  64983. # Common stub for a few missing GNU programs while installing.
  64984. -scriptversion=2005-06-08.21
  64985. +scriptversion=2009-04-28.21; # UTC
  64986. -# Copyright (C) 1996, 1997, 1999, 2000, 2002, 2003, 2004, 2005
  64987. -# Free Software Foundation, Inc.
  64988. +# Copyright (C) 1996, 1997, 1999, 2000, 2002, 2003, 2004, 2005, 2006,
  64989. +# 2008, 2009 Free Software Foundation, Inc.
  64990. # Originally by Fran,cois Pinard <pinard@iro.umontreal.ca>, 1996.
  64991. # This program is free software; you can redistribute it and/or modify
  64992. @@ -18,9 +18,7 @@
  64993. # GNU General Public License for more details.
  64994. # You should have received a copy of the GNU General Public License
  64995. -# along with this program; if not, write to the Free Software
  64996. -# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
  64997. -# 02110-1301, USA.
  64998. +# along with this program. If not, see <http://www.gnu.org/licenses/>.
  64999. # As a special exception to the GNU General Public License, if you
  65000. # distribute this file as part of a program that contains a
  65001. @@ -33,6 +31,8 @@
  65002. fi
  65003. run=:
  65004. +sed_output='s/.* --output[ =]\([^ ]*\).*/\1/p'
  65005. +sed_minuso='s/.* -o \([^ ]*\).*/\1/p'
  65006. # In the cases where this matters, `missing' is being run in the
  65007. # srcdir already.
  65008. @@ -44,7 +44,7 @@
  65009. msg="missing on your system"
  65010. -case "$1" in
  65011. +case $1 in
  65012. --run)
  65013. # Try to run requested program, and just exit if it succeeds.
  65014. run=
  65015. @@ -77,6 +77,7 @@
  65016. aclocal touch file \`aclocal.m4'
  65017. autoconf touch file \`configure'
  65018. autoheader touch file \`config.h.in'
  65019. + autom4te touch the output file, or create a stub one
  65020. automake touch all \`Makefile.in' files
  65021. bison create \`y.tab.[ch]', if possible, from existing .[ch]
  65022. flex create \`lex.yy.c', if possible, from existing .c
  65023. @@ -86,6 +87,9 @@
  65024. tar try tar, gnutar, gtar, then tar without non-portable flags
  65025. yacc create \`y.tab.[ch]', if possible, from existing .[ch]
  65026. +Version suffixes to PROGRAM as well as the prefixes \`gnu-', \`gnu', and
  65027. +\`g' are ignored when checking the name.
  65028. +
  65029. Send bug reports to <bug-automake@gnu.org>."
  65030. exit $?
  65031. ;;
  65032. @@ -103,15 +107,22 @@
  65033. esac
  65034. +# normalize program name to check for.
  65035. +program=`echo "$1" | sed '
  65036. + s/^gnu-//; t
  65037. + s/^gnu//; t
  65038. + s/^g//; t'`
  65039. +
  65040. # Now exit if we have it, but it failed. Also exit now if we
  65041. # don't have it and --version was passed (most likely to detect
  65042. -# the program).
  65043. -case "$1" in
  65044. - lex|yacc)
  65045. +# the program). This is about non-GNU programs, so use $1 not
  65046. +# $program.
  65047. +case $1 in
  65048. + lex*|yacc*)
  65049. # Not GNU programs, they don't have --version.
  65050. ;;
  65051. - tar)
  65052. + tar*)
  65053. if test -n "$run"; then
  65054. echo 1>&2 "ERROR: \`tar' requires --run"
  65055. exit 1
  65056. @@ -135,7 +146,7 @@
  65057. # If it does not exist, or fails to run (possibly an outdated version),
  65058. # try to emulate it.
  65059. -case "$1" in
  65060. +case $program in
  65061. aclocal*)
  65062. echo 1>&2 "\
  65063. WARNING: \`$1' is $msg. You should only need it if
  65064. @@ -145,7 +156,7 @@
  65065. touch aclocal.m4
  65066. ;;
  65067. - autoconf)
  65068. + autoconf*)
  65069. echo 1>&2 "\
  65070. WARNING: \`$1' is $msg. You should only need it if
  65071. you modified \`${configure_ac}'. You might want to install the
  65072. @@ -154,7 +165,7 @@
  65073. touch configure
  65074. ;;
  65075. - autoheader)
  65076. + autoheader*)
  65077. echo 1>&2 "\
  65078. WARNING: \`$1' is $msg. You should only need it if
  65079. you modified \`acconfig.h' or \`${configure_ac}'. You might want
  65080. @@ -164,7 +175,7 @@
  65081. test -z "$files" && files="config.h"
  65082. touch_files=
  65083. for f in $files; do
  65084. - case "$f" in
  65085. + case $f in
  65086. *:*) touch_files="$touch_files "`echo "$f" |
  65087. sed -e 's/^[^:]*://' -e 's/:.*//'`;;
  65088. *) touch_files="$touch_files $f.in";;
  65089. @@ -184,7 +195,7 @@
  65090. while read f; do touch "$f"; done
  65091. ;;
  65092. - autom4te)
  65093. + autom4te*)
  65094. echo 1>&2 "\
  65095. WARNING: \`$1' is needed, but is $msg.
  65096. You might have modified some files without having the
  65097. @@ -192,8 +203,8 @@
  65098. You can get \`$1' as part of \`Autoconf' from any GNU
  65099. archive site."
  65100. - file=`echo "$*" | sed -n 's/.*--output[ =]*\([^ ]*\).*/\1/p'`
  65101. - test -z "$file" && file=`echo "$*" | sed -n 's/.*-o[ ]*\([^ ]*\).*/\1/p'`
  65102. + file=`echo "$*" | sed -n "$sed_output"`
  65103. + test -z "$file" && file=`echo "$*" | sed -n "$sed_minuso"`
  65104. if test -f "$file"; then
  65105. touch $file
  65106. else
  65107. @@ -207,80 +218,78 @@
  65108. fi
  65109. ;;
  65110. - bison|yacc)
  65111. + bison*|yacc*)
  65112. echo 1>&2 "\
  65113. WARNING: \`$1' $msg. You should only need it if
  65114. you modified a \`.y' file. You may need the \`Bison' package
  65115. in order for those modifications to take effect. You can get
  65116. \`Bison' from any GNU archive site."
  65117. rm -f y.tab.c y.tab.h
  65118. - if [ $# -ne 1 ]; then
  65119. + if test $# -ne 1; then
  65120. eval LASTARG="\${$#}"
  65121. - case "$LASTARG" in
  65122. + case $LASTARG in
  65123. *.y)
  65124. SRCFILE=`echo "$LASTARG" | sed 's/y$/c/'`
  65125. - if [ -f "$SRCFILE" ]; then
  65126. + if test -f "$SRCFILE"; then
  65127. cp "$SRCFILE" y.tab.c
  65128. fi
  65129. SRCFILE=`echo "$LASTARG" | sed 's/y$/h/'`
  65130. - if [ -f "$SRCFILE" ]; then
  65131. + if test -f "$SRCFILE"; then
  65132. cp "$SRCFILE" y.tab.h
  65133. fi
  65134. ;;
  65135. esac
  65136. fi
  65137. - if [ ! -f y.tab.h ]; then
  65138. + if test ! -f y.tab.h; then
  65139. echo >y.tab.h
  65140. fi
  65141. - if [ ! -f y.tab.c ]; then
  65142. + if test ! -f y.tab.c; then
  65143. echo 'main() { return 0; }' >y.tab.c
  65144. fi
  65145. ;;
  65146. - lex|flex)
  65147. + lex*|flex*)
  65148. echo 1>&2 "\
  65149. WARNING: \`$1' is $msg. You should only need it if
  65150. you modified a \`.l' file. You may need the \`Flex' package
  65151. in order for those modifications to take effect. You can get
  65152. \`Flex' from any GNU archive site."
  65153. rm -f lex.yy.c
  65154. - if [ $# -ne 1 ]; then
  65155. + if test $# -ne 1; then
  65156. eval LASTARG="\${$#}"
  65157. - case "$LASTARG" in
  65158. + case $LASTARG in
  65159. *.l)
  65160. SRCFILE=`echo "$LASTARG" | sed 's/l$/c/'`
  65161. - if [ -f "$SRCFILE" ]; then
  65162. + if test -f "$SRCFILE"; then
  65163. cp "$SRCFILE" lex.yy.c
  65164. fi
  65165. ;;
  65166. esac
  65167. fi
  65168. - if [ ! -f lex.yy.c ]; then
  65169. + if test ! -f lex.yy.c; then
  65170. echo 'main() { return 0; }' >lex.yy.c
  65171. fi
  65172. ;;
  65173. - help2man)
  65174. + help2man*)
  65175. echo 1>&2 "\
  65176. WARNING: \`$1' is $msg. You should only need it if
  65177. you modified a dependency of a manual page. You may need the
  65178. \`Help2man' package in order for those modifications to take
  65179. effect. You can get \`Help2man' from any GNU archive site."
  65180. - file=`echo "$*" | sed -n 's/.*-o \([^ ]*\).*/\1/p'`
  65181. - if test -z "$file"; then
  65182. - file=`echo "$*" | sed -n 's/.*--output=\([^ ]*\).*/\1/p'`
  65183. - fi
  65184. - if [ -f "$file" ]; then
  65185. + file=`echo "$*" | sed -n "$sed_output"`
  65186. + test -z "$file" && file=`echo "$*" | sed -n "$sed_minuso"`
  65187. + if test -f "$file"; then
  65188. touch $file
  65189. else
  65190. test -z "$file" || exec >$file
  65191. echo ".ab help2man is required to generate this page"
  65192. - exit 1
  65193. + exit $?
  65194. fi
  65195. ;;
  65196. - makeinfo)
  65197. + makeinfo*)
  65198. echo 1>&2 "\
  65199. WARNING: \`$1' is $msg. You should only need it if
  65200. you modified a \`.texi' or \`.texinfo' file, or any other file
  65201. @@ -289,11 +298,17 @@
  65202. DU, IRIX). You might want to install the \`Texinfo' package or
  65203. the \`GNU make' package. Grab either from any GNU archive site."
  65204. # The file to touch is that specified with -o ...
  65205. - file=`echo "$*" | sed -n 's/.*-o \([^ ]*\).*/\1/p'`
  65206. + file=`echo "$*" | sed -n "$sed_output"`
  65207. + test -z "$file" && file=`echo "$*" | sed -n "$sed_minuso"`
  65208. if test -z "$file"; then
  65209. # ... or it is the one specified with @setfilename ...
  65210. infile=`echo "$*" | sed 's/.* \([^ ]*\) *$/\1/'`
  65211. - file=`sed -n '/^@setfilename/ { s/.* \([^ ]*\) *$/\1/; p; q; }' $infile`
  65212. + file=`sed -n '
  65213. + /^@setfilename/{
  65214. + s/.* \([^ ]*\) *$/\1/
  65215. + p
  65216. + q
  65217. + }' $infile`
  65218. # ... or it is derived from the source name (dir/f.texi becomes f.info)
  65219. test -z "$file" && file=`echo "$infile" | sed 's,.*/,,;s,.[^.]*$,,'`.info
  65220. fi
  65221. @@ -303,7 +318,7 @@
  65222. touch $file
  65223. ;;
  65224. - tar)
  65225. + tar*)
  65226. shift
  65227. # We have already tried tar in the generic part.
  65228. @@ -317,13 +332,13 @@
  65229. fi
  65230. firstarg="$1"
  65231. if shift; then
  65232. - case "$firstarg" in
  65233. + case $firstarg in
  65234. *o*)
  65235. firstarg=`echo "$firstarg" | sed s/o//`
  65236. tar "$firstarg" "$@" && exit 0
  65237. ;;
  65238. esac
  65239. - case "$firstarg" in
  65240. + case $firstarg in
  65241. *h*)
  65242. firstarg=`echo "$firstarg" | sed s/h//`
  65243. tar "$firstarg" "$@" && exit 0
  65244. @@ -356,5 +371,6 @@
  65245. # eval: (add-hook 'write-file-hooks 'time-stamp)
  65246. # time-stamp-start: "scriptversion="
  65247. # time-stamp-format: "%:y-%02m-%02d.%02H"
  65248. -# time-stamp-end: "$"
  65249. +# time-stamp-time-zone: "UTC"
  65250. +# time-stamp-end: "; # UTC"
  65251. # End:
  65252. diff -Nur libgssglue-0.1.orig/mkinstalldirs libgssglue-0.1/mkinstalldirs
  65253. --- libgssglue-0.1.orig/mkinstalldirs 2005-12-02 22:12:40.000000000 +0100
  65254. +++ libgssglue-0.1/mkinstalldirs 2011-02-17 17:14:46.103553992 +0100
  65255. @@ -1,40 +1,162 @@
  65256. #! /bin/sh
  65257. # mkinstalldirs --- make directory hierarchy
  65258. -# Author: Noah Friedman <friedman@prep.ai.mit.edu>
  65259. -# Created: 1993-05-16
  65260. -# Public domain
  65261. -# $Id: mkinstalldirs,v 1.1 2004/10/22 14:58:34 bfields Exp $
  65262. +scriptversion=2009-04-28.21; # UTC
  65263. +# Original author: Noah Friedman <friedman@prep.ai.mit.edu>
  65264. +# Created: 1993-05-16
  65265. +# Public domain.
  65266. +#
  65267. +# This file is maintained in Automake, please report
  65268. +# bugs to <bug-automake@gnu.org> or send patches to
  65269. +# <automake-patches@gnu.org>.
  65270. +
  65271. +nl='
  65272. +'
  65273. +IFS=" "" $nl"
  65274. errstatus=0
  65275. +dirmode=
  65276. +
  65277. +usage="\
  65278. +Usage: mkinstalldirs [-h] [--help] [--version] [-m MODE] DIR ...
  65279. +
  65280. +Create each directory DIR (with mode MODE, if specified), including all
  65281. +leading file name components.
  65282. +
  65283. +Report bugs to <bug-automake@gnu.org>."
  65284. +
  65285. +# process command line arguments
  65286. +while test $# -gt 0 ; do
  65287. + case $1 in
  65288. + -h | --help | --h*) # -h for help
  65289. + echo "$usage"
  65290. + exit $?
  65291. + ;;
  65292. + -m) # -m PERM arg
  65293. + shift
  65294. + test $# -eq 0 && { echo "$usage" 1>&2; exit 1; }
  65295. + dirmode=$1
  65296. + shift
  65297. + ;;
  65298. + --version)
  65299. + echo "$0 $scriptversion"
  65300. + exit $?
  65301. + ;;
  65302. + --) # stop option processing
  65303. + shift
  65304. + break
  65305. + ;;
  65306. + -*) # unknown option
  65307. + echo "$usage" 1>&2
  65308. + exit 1
  65309. + ;;
  65310. + *) # first non-opt arg
  65311. + break
  65312. + ;;
  65313. + esac
  65314. +done
  65315. for file
  65316. do
  65317. - set fnord `echo ":$file" | sed -ne 's/^:\//#/;s/^://;s/\// /g;s/^#/\//;p'`
  65318. - shift
  65319. + if test -d "$file"; then
  65320. + shift
  65321. + else
  65322. + break
  65323. + fi
  65324. +done
  65325. +
  65326. +case $# in
  65327. + 0) exit 0 ;;
  65328. +esac
  65329. +
  65330. +# Solaris 8's mkdir -p isn't thread-safe. If you mkdir -p a/b and
  65331. +# mkdir -p a/c at the same time, both will detect that a is missing,
  65332. +# one will create a, then the other will try to create a and die with
  65333. +# a "File exists" error. This is a problem when calling mkinstalldirs
  65334. +# from a parallel make. We use --version in the probe to restrict
  65335. +# ourselves to GNU mkdir, which is thread-safe.
  65336. +case $dirmode in
  65337. + '')
  65338. + if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
  65339. + echo "mkdir -p -- $*"
  65340. + exec mkdir -p -- "$@"
  65341. + else
  65342. + # On NextStep and OpenStep, the `mkdir' command does not
  65343. + # recognize any option. It will interpret all options as
  65344. + # directories to create, and then abort because `.' already
  65345. + # exists.
  65346. + test -d ./-p && rmdir ./-p
  65347. + test -d ./--version && rmdir ./--version
  65348. + fi
  65349. + ;;
  65350. + *)
  65351. + if mkdir -m "$dirmode" -p --version . >/dev/null 2>&1 &&
  65352. + test ! -d ./--version; then
  65353. + echo "mkdir -m $dirmode -p -- $*"
  65354. + exec mkdir -m "$dirmode" -p -- "$@"
  65355. + else
  65356. + # Clean up after NextStep and OpenStep mkdir.
  65357. + for d in ./-m ./-p ./--version "./$dirmode";
  65358. + do
  65359. + test -d $d && rmdir $d
  65360. + done
  65361. + fi
  65362. + ;;
  65363. +esac
  65364. - pathcomp=
  65365. - for d
  65366. - do
  65367. - pathcomp="$pathcomp$d"
  65368. - case "$pathcomp" in
  65369. - -* ) pathcomp=./$pathcomp ;;
  65370. - esac
  65371. -
  65372. - if test ! -d "$pathcomp"; then
  65373. - echo "mkdir $pathcomp"
  65374. -
  65375. - mkdir "$pathcomp" || lasterr=$?
  65376. -
  65377. - if test ! -d "$pathcomp"; then
  65378. - errstatus=$lasterr
  65379. - fi
  65380. - fi
  65381. +for file
  65382. +do
  65383. + case $file in
  65384. + /*) pathcomp=/ ;;
  65385. + *) pathcomp= ;;
  65386. + esac
  65387. + oIFS=$IFS
  65388. + IFS=/
  65389. + set fnord $file
  65390. + shift
  65391. + IFS=$oIFS
  65392. +
  65393. + for d
  65394. + do
  65395. + test "x$d" = x && continue
  65396. +
  65397. + pathcomp=$pathcomp$d
  65398. + case $pathcomp in
  65399. + -*) pathcomp=./$pathcomp ;;
  65400. + esac
  65401. +
  65402. + if test ! -d "$pathcomp"; then
  65403. + echo "mkdir $pathcomp"
  65404. +
  65405. + mkdir "$pathcomp" || lasterr=$?
  65406. +
  65407. + if test ! -d "$pathcomp"; then
  65408. + errstatus=$lasterr
  65409. + else
  65410. + if test ! -z "$dirmode"; then
  65411. + echo "chmod $dirmode $pathcomp"
  65412. + lasterr=
  65413. + chmod "$dirmode" "$pathcomp" || lasterr=$?
  65414. +
  65415. + if test ! -z "$lasterr"; then
  65416. + errstatus=$lasterr
  65417. + fi
  65418. + fi
  65419. + fi
  65420. + fi
  65421. - pathcomp="$pathcomp/"
  65422. - done
  65423. + pathcomp=$pathcomp/
  65424. + done
  65425. done
  65426. exit $errstatus
  65427. -# mkinstalldirs ends here
  65428. +# Local Variables:
  65429. +# mode: shell-script
  65430. +# sh-indentation: 2
  65431. +# eval: (add-hook 'write-file-hooks 'time-stamp)
  65432. +# time-stamp-start: "scriptversion="
  65433. +# time-stamp-format: "%:y-%02m-%02d.%02H"
  65434. +# time-stamp-time-zone: "UTC"
  65435. +# time-stamp-end: "; # UTC"
  65436. +# End:
  65437. diff -Nur libgssglue-0.1.orig/src/gssglue/config.h.in libgssglue-0.1/src/gssglue/config.h.in
  65438. --- libgssglue-0.1.orig/src/gssglue/config.h.in 2007-09-04 15:39:42.000000000 +0200
  65439. +++ libgssglue-0.1/src/gssglue/config.h.in 2011-02-17 17:14:45.000000000 +0100
  65440. @@ -47,6 +47,10 @@
  65441. /* Define to 1 if you have the <unistd.h> header file. */
  65442. #undef HAVE_UNISTD_H
  65443. +/* Define to the sub-directory in which libtool stores uninstalled libraries.
  65444. + */
  65445. +#undef LT_OBJDIR
  65446. +
  65447. /* Name of package */
  65448. #undef PACKAGE
  65449. @@ -62,6 +66,9 @@
  65450. /* Define to the one symbol short name of this package. */
  65451. #undef PACKAGE_TARNAME
  65452. +/* Define to the home page for this package. */
  65453. +#undef PACKAGE_URL
  65454. +
  65455. /* Define to the version of this package. */
  65456. #undef PACKAGE_VERSION
  65457. diff -Nur libgssglue-0.1.orig/src/gssglue/config.h.in~ libgssglue-0.1/src/gssglue/config.h.in~
  65458. --- libgssglue-0.1.orig/src/gssglue/config.h.in~ 1970-01-01 01:00:00.000000000 +0100
  65459. +++ libgssglue-0.1/src/gssglue/config.h.in~ 2007-09-04 15:39:42.000000000 +0200
  65460. @@ -0,0 +1,102 @@
  65461. +/* src/gssglue/config.h.in. Generated from configure.in by autoheader. */
  65462. +
  65463. +/* Define to 1 if you have the <dlfcn.h> header file. */
  65464. +#undef HAVE_DLFCN_H
  65465. +
  65466. +/* Define to 1 if you have the <inttypes.h> header file. */
  65467. +#undef HAVE_INTTYPES_H
  65468. +
  65469. +/* Define to 1 if your system has a GNU libc compatible `malloc' function, and
  65470. + to 0 otherwise. */
  65471. +#undef HAVE_MALLOC
  65472. +
  65473. +/* Define to 1 if you have the <memory.h> header file. */
  65474. +#undef HAVE_MEMORY_H
  65475. +
  65476. +/* Define to 1 if you have the `memset' function. */
  65477. +#undef HAVE_MEMSET
  65478. +
  65479. +/* Define to 1 if your system has a GNU libc compatible `realloc' function,
  65480. + and to 0 otherwise. */
  65481. +#undef HAVE_REALLOC
  65482. +
  65483. +/* Define to 1 if you have the <stddef.h> header file. */
  65484. +#undef HAVE_STDDEF_H
  65485. +
  65486. +/* Define to 1 if you have the <stdint.h> header file. */
  65487. +#undef HAVE_STDINT_H
  65488. +
  65489. +/* Define to 1 if you have the <stdlib.h> header file. */
  65490. +#undef HAVE_STDLIB_H
  65491. +
  65492. +/* Define to 1 if you have the `strerror' function. */
  65493. +#undef HAVE_STRERROR
  65494. +
  65495. +/* Define to 1 if you have the <strings.h> header file. */
  65496. +#undef HAVE_STRINGS_H
  65497. +
  65498. +/* Define to 1 if you have the <string.h> header file. */
  65499. +#undef HAVE_STRING_H
  65500. +
  65501. +/* Define to 1 if you have the <sys/stat.h> header file. */
  65502. +#undef HAVE_SYS_STAT_H
  65503. +
  65504. +/* Define to 1 if you have the <sys/types.h> header file. */
  65505. +#undef HAVE_SYS_TYPES_H
  65506. +
  65507. +/* Define to 1 if you have the <unistd.h> header file. */
  65508. +#undef HAVE_UNISTD_H
  65509. +
  65510. +/* Name of package */
  65511. +#undef PACKAGE
  65512. +
  65513. +/* Define to the address where bug reports for this package should be sent. */
  65514. +#undef PACKAGE_BUGREPORT
  65515. +
  65516. +/* Define to the full name of this package. */
  65517. +#undef PACKAGE_NAME
  65518. +
  65519. +/* Define to the full name and version of this package. */
  65520. +#undef PACKAGE_STRING
  65521. +
  65522. +/* Define to the one symbol short name of this package. */
  65523. +#undef PACKAGE_TARNAME
  65524. +
  65525. +/* Define to the version of this package. */
  65526. +#undef PACKAGE_VERSION
  65527. +
  65528. +/* The size of `int', as computed by sizeof. */
  65529. +#undef SIZEOF_INT
  65530. +
  65531. +/* The size of `long', as computed by sizeof. */
  65532. +#undef SIZEOF_LONG
  65533. +
  65534. +/* The size of `short', as computed by sizeof. */
  65535. +#undef SIZEOF_SHORT
  65536. +
  65537. +/* The size of `size_t', as computed by sizeof. */
  65538. +#undef SIZEOF_SIZE_T
  65539. +
  65540. +/* Define to 1 if you have the ANSI C header files. */
  65541. +#undef STDC_HEADERS
  65542. +
  65543. +/* Version number of package */
  65544. +#undef VERSION
  65545. +
  65546. +/* Define to empty if `const' does not conform to ANSI C. */
  65547. +#undef const
  65548. +
  65549. +/* Define to `int' if <sys/types.h> doesn't define. */
  65550. +#undef gid_t
  65551. +
  65552. +/* Define to rpl_malloc if the replacement function should be used. */
  65553. +#undef malloc
  65554. +
  65555. +/* Define to rpl_realloc if the replacement function should be used. */
  65556. +#undef realloc
  65557. +
  65558. +/* Define to `unsigned int' if <sys/types.h> does not define. */
  65559. +#undef size_t
  65560. +
  65561. +/* Define to `int' if <sys/types.h> doesn't define. */
  65562. +#undef uid_t
  65563. diff -Nur libgssglue-0.1.orig/src/Makefile.in libgssglue-0.1/src/Makefile.in
  65564. --- libgssglue-0.1.orig/src/Makefile.in 2007-09-04 15:39:45.000000000 +0200
  65565. +++ libgssglue-0.1/src/Makefile.in 2011-02-17 17:14:46.077310008 +0100
  65566. @@ -1,8 +1,9 @@
  65567. -# Makefile.in generated by automake 1.9.6 from Makefile.am.
  65568. +# Makefile.in generated by automake 1.11.1 from Makefile.am.
  65569. # @configure_input@
  65570. # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
  65571. -# 2003, 2004, 2005 Free Software Foundation, Inc.
  65572. +# 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
  65573. +# Inc.
  65574. # This Makefile.in is free software; the Free Software Foundation
  65575. # gives unlimited permission to copy and/or distribute it,
  65576. # with or without modifications, as long as this notice is preserved.
  65577. @@ -15,15 +16,12 @@
  65578. @SET_MAKE@
  65579. -srcdir = @srcdir@
  65580. -top_srcdir = @top_srcdir@
  65581. VPATH = @srcdir@
  65582. pkgdatadir = $(datadir)/@PACKAGE@
  65583. -pkglibdir = $(libdir)/@PACKAGE@
  65584. pkgincludedir = $(includedir)/@PACKAGE@
  65585. -top_builddir = ..
  65586. +pkglibdir = $(libdir)/@PACKAGE@
  65587. +pkglibexecdir = $(libexecdir)/@PACKAGE@
  65588. am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
  65589. -INSTALL = @INSTALL@
  65590. install_sh_DATA = $(install_sh) -c -m 644
  65591. install_sh_PROGRAM = $(install_sh) -c
  65592. install_sh_SCRIPT = $(install_sh) -c
  65593. @@ -47,14 +45,29 @@
  65594. mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
  65595. CONFIG_HEADER = $(top_builddir)/src/gssglue/config.h
  65596. CONFIG_CLEAN_FILES =
  65597. +CONFIG_CLEAN_VPATH_FILES =
  65598. am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
  65599. am__vpath_adj = case $$p in \
  65600. $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
  65601. *) f=$$p;; \
  65602. esac;
  65603. -am__strip_dir = `echo $$p | sed -e 's|^.*/||'`;
  65604. +am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`;
  65605. +am__install_max = 40
  65606. +am__nobase_strip_setup = \
  65607. + srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'`
  65608. +am__nobase_strip = \
  65609. + for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||"
  65610. +am__nobase_list = $(am__nobase_strip_setup); \
  65611. + for p in $$list; do echo "$$p $$p"; done | \
  65612. + sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \
  65613. + $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \
  65614. + if (++n[$$2] == $(am__install_max)) \
  65615. + { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \
  65616. + END { for (dir in files) print dir, files[dir] }'
  65617. +am__base_list = \
  65618. + sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \
  65619. + sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g'
  65620. am__installdirs = "$(DESTDIR)$(libdir)" "$(DESTDIR)$(includedir)"
  65621. -libLTLIBRARIES_INSTALL = $(INSTALL)
  65622. LTLIBRARIES = $(lib_LTLIBRARIES)
  65623. libgssglue_la_DEPENDENCIES =
  65624. am_libgssglue_la_OBJECTS = g_accept_sec_context.lo g_acquire_cred.lo \
  65625. @@ -71,27 +84,29 @@
  65626. g_wrap.lo g_unwrap.lo g_get_mic.lo g_verify_mic.lo \
  65627. g_ccache_name.lo
  65628. libgssglue_la_OBJECTS = $(am_libgssglue_la_OBJECTS)
  65629. -DEFAULT_INCLUDES = -I. -I$(srcdir) -I$(top_builddir)/src/gssglue
  65630. +libgssglue_la_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) \
  65631. + $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
  65632. + $(libgssglue_la_LDFLAGS) $(LDFLAGS) -o $@
  65633. +DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)/src/gssglue
  65634. depcomp = $(SHELL) $(top_srcdir)/depcomp
  65635. am__depfiles_maybe = depfiles
  65636. +am__mv = mv -f
  65637. COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
  65638. $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
  65639. -LTCOMPILE = $(LIBTOOL) --tag=CC --mode=compile $(CC) $(DEFS) \
  65640. - $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \
  65641. - $(AM_CFLAGS) $(CFLAGS)
  65642. +LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
  65643. + --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
  65644. + $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
  65645. CCLD = $(CC)
  65646. -LINK = $(LIBTOOL) --tag=CC --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
  65647. - $(AM_LDFLAGS) $(LDFLAGS) -o $@
  65648. +LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
  65649. + --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \
  65650. + $(LDFLAGS) -o $@
  65651. SOURCES = $(libgssglue_la_SOURCES)
  65652. DIST_SOURCES = $(libgssglue_la_SOURCES)
  65653. -nobase_includeHEADERS_INSTALL = $(install_sh_DATA)
  65654. HEADERS = $(nobase_include_HEADERS)
  65655. ETAGS = etags
  65656. CTAGS = ctags
  65657. DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
  65658. ACLOCAL = @ACLOCAL@
  65659. -AMDEP_FALSE = @AMDEP_FALSE@
  65660. -AMDEP_TRUE = @AMDEP_TRUE@
  65661. AMTAR = @AMTAR@
  65662. AR = @AR@
  65663. AUTOCONF = @AUTOCONF@
  65664. @@ -103,39 +118,45 @@
  65665. CFLAGS = @CFLAGS@
  65666. CPP = @CPP@
  65667. CPPFLAGS = @CPPFLAGS@
  65668. -CXX = @CXX@
  65669. -CXXCPP = @CXXCPP@
  65670. -CXXDEPMODE = @CXXDEPMODE@
  65671. -CXXFLAGS = @CXXFLAGS@
  65672. CYGPATH_W = @CYGPATH_W@
  65673. DEFS = @DEFS@
  65674. DEPDIR = @DEPDIR@
  65675. -ECHO = @ECHO@
  65676. +DSYMUTIL = @DSYMUTIL@
  65677. +DUMPBIN = @DUMPBIN@
  65678. ECHO_C = @ECHO_C@
  65679. ECHO_N = @ECHO_N@
  65680. ECHO_T = @ECHO_T@
  65681. EGREP = @EGREP@
  65682. EXEEXT = @EXEEXT@
  65683. -F77 = @F77@
  65684. -FFLAGS = @FFLAGS@
  65685. +FGREP = @FGREP@
  65686. GREP = @GREP@
  65687. +INSTALL = @INSTALL@
  65688. INSTALL_DATA = @INSTALL_DATA@
  65689. INSTALL_PROGRAM = @INSTALL_PROGRAM@
  65690. INSTALL_SCRIPT = @INSTALL_SCRIPT@
  65691. INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
  65692. +LD = @LD@
  65693. LDFLAGS = @LDFLAGS@
  65694. LIBOBJS = @LIBOBJS@
  65695. LIBS = @LIBS@
  65696. LIBTOOL = @LIBTOOL@
  65697. +LIPO = @LIPO@
  65698. LN_S = @LN_S@
  65699. LTLIBOBJS = @LTLIBOBJS@
  65700. MAKEINFO = @MAKEINFO@
  65701. +MKDIR_P = @MKDIR_P@
  65702. +NM = @NM@
  65703. +NMEDIT = @NMEDIT@
  65704. +OBJDUMP = @OBJDUMP@
  65705. OBJEXT = @OBJEXT@
  65706. +OTOOL = @OTOOL@
  65707. +OTOOL64 = @OTOOL64@
  65708. PACKAGE = @PACKAGE@
  65709. PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
  65710. PACKAGE_NAME = @PACKAGE_NAME@
  65711. PACKAGE_STRING = @PACKAGE_STRING@
  65712. PACKAGE_TARNAME = @PACKAGE_TARNAME@
  65713. +PACKAGE_URL = @PACKAGE_URL@
  65714. PACKAGE_VERSION = @PACKAGE_VERSION@
  65715. PATH_SEPARATOR = @PATH_SEPARATOR@
  65716. RANLIB = @RANLIB@
  65717. @@ -144,13 +165,12 @@
  65718. SHELL = @SHELL@
  65719. STRIP = @STRIP@
  65720. VERSION = @VERSION@
  65721. +abs_builddir = @abs_builddir@
  65722. +abs_srcdir = @abs_srcdir@
  65723. +abs_top_builddir = @abs_top_builddir@
  65724. +abs_top_srcdir = @abs_top_srcdir@
  65725. ac_ct_CC = @ac_ct_CC@
  65726. -ac_ct_CXX = @ac_ct_CXX@
  65727. -ac_ct_F77 = @ac_ct_F77@
  65728. -am__fastdepCC_FALSE = @am__fastdepCC_FALSE@
  65729. -am__fastdepCC_TRUE = @am__fastdepCC_TRUE@
  65730. -am__fastdepCXX_FALSE = @am__fastdepCXX_FALSE@
  65731. -am__fastdepCXX_TRUE = @am__fastdepCXX_TRUE@
  65732. +ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
  65733. am__include = @am__include@
  65734. am__leading_dot = @am__leading_dot@
  65735. am__quote = @am__quote@
  65736. @@ -162,6 +182,7 @@
  65737. build_cpu = @build_cpu@
  65738. build_os = @build_os@
  65739. build_vendor = @build_vendor@
  65740. +builddir = @builddir@
  65741. datadir = @datadir@
  65742. datarootdir = @datarootdir@
  65743. docdir = @docdir@
  65744. @@ -180,6 +201,7 @@
  65745. libexecdir = @libexecdir@
  65746. localedir = @localedir@
  65747. localstatedir = @localstatedir@
  65748. +lt_ECHO = @lt_ECHO@
  65749. mandir = @mandir@
  65750. mkdir_p = @mkdir_p@
  65751. oldincludedir = @oldincludedir@
  65752. @@ -189,8 +211,12 @@
  65753. psdir = @psdir@
  65754. sbindir = @sbindir@
  65755. sharedstatedir = @sharedstatedir@
  65756. +srcdir = @srcdir@
  65757. sysconfdir = @sysconfdir@
  65758. target_alias = @target_alias@
  65759. +top_build_prefix = @top_build_prefix@
  65760. +top_builddir = @top_builddir@
  65761. +top_srcdir = @top_srcdir@
  65762. lib_LTLIBRARIES = libgssglue.la
  65763. libgssglue_la_LDFLAGS = -version-info 1:0:0 -Wl,--version-script,$(srcdir)/symbol_versions
  65764. libgssglue_la_SOURCES = \
  65765. @@ -221,14 +247,14 @@
  65766. @for dep in $?; do \
  65767. case '$(am__configure_deps)' in \
  65768. *$$dep*) \
  65769. - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
  65770. - && exit 0; \
  65771. + ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
  65772. + && { if test -f $@; then exit 0; else break; fi; }; \
  65773. exit 1;; \
  65774. esac; \
  65775. done; \
  65776. - echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu src/Makefile'; \
  65777. - cd $(top_srcdir) && \
  65778. - $(AUTOMAKE) --gnu src/Makefile
  65779. + echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu src/Makefile'; \
  65780. + $(am__cd) $(top_srcdir) && \
  65781. + $(AUTOMAKE) --gnu src/Makefile
  65782. .PRECIOUS: Makefile
  65783. Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
  65784. @case '$?' in \
  65785. @@ -246,23 +272,28 @@
  65786. cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
  65787. $(ACLOCAL_M4): $(am__aclocal_m4_deps)
  65788. cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
  65789. +$(am__aclocal_m4_deps):
  65790. install-libLTLIBRARIES: $(lib_LTLIBRARIES)
  65791. @$(NORMAL_INSTALL)
  65792. - test -z "$(libdir)" || $(mkdir_p) "$(DESTDIR)$(libdir)"
  65793. - @list='$(lib_LTLIBRARIES)'; for p in $$list; do \
  65794. + test -z "$(libdir)" || $(MKDIR_P) "$(DESTDIR)$(libdir)"
  65795. + @list='$(lib_LTLIBRARIES)'; test -n "$(libdir)" || list=; \
  65796. + list2=; for p in $$list; do \
  65797. if test -f $$p; then \
  65798. - f=$(am__strip_dir) \
  65799. - echo " $(LIBTOOL) --mode=install $(libLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) '$$p' '$(DESTDIR)$(libdir)/$$f'"; \
  65800. - $(LIBTOOL) --mode=install $(libLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) "$$p" "$(DESTDIR)$(libdir)/$$f"; \
  65801. + list2="$$list2 $$p"; \
  65802. else :; fi; \
  65803. - done
  65804. + done; \
  65805. + test -z "$$list2" || { \
  65806. + echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 '$(DESTDIR)$(libdir)'"; \
  65807. + $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 "$(DESTDIR)$(libdir)"; \
  65808. + }
  65809. uninstall-libLTLIBRARIES:
  65810. @$(NORMAL_UNINSTALL)
  65811. - @set -x; list='$(lib_LTLIBRARIES)'; for p in $$list; do \
  65812. - p=$(am__strip_dir) \
  65813. - echo " $(LIBTOOL) --mode=uninstall rm -f '$(DESTDIR)$(libdir)/$$p'"; \
  65814. - $(LIBTOOL) --mode=uninstall rm -f "$(DESTDIR)$(libdir)/$$p"; \
  65815. + @list='$(lib_LTLIBRARIES)'; test -n "$(libdir)" || list=; \
  65816. + for p in $$list; do \
  65817. + $(am__strip_dir) \
  65818. + echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(libdir)/$$f'"; \
  65819. + $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(libdir)/$$f"; \
  65820. done
  65821. clean-libLTLIBRARIES:
  65822. @@ -274,7 +305,7 @@
  65823. rm -f "$${dir}/so_locations"; \
  65824. done
  65825. libgssglue.la: $(libgssglue_la_OBJECTS) $(libgssglue_la_DEPENDENCIES)
  65826. - $(LINK) -rpath $(libdir) $(libgssglue_la_LDFLAGS) $(libgssglue_la_OBJECTS) $(libgssglue_la_LIBADD) $(LIBS)
  65827. + $(libgssglue_la_LINK) -rpath $(libdir) $(libgssglue_la_OBJECTS) $(libgssglue_la_LIBADD) $(LIBS)
  65828. mostlyclean-compile:
  65829. -rm -f *.$(OBJEXT)
  65830. @@ -326,22 +357,22 @@
  65831. @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/oid_ops.Plo@am__quote@
  65832. .c.o:
  65833. -@am__fastdepCC_TRUE@ if $(COMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ $<; \
  65834. -@am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi
  65835. +@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
  65836. +@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
  65837. @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
  65838. @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
  65839. @am__fastdepCC_FALSE@ $(COMPILE) -c $<
  65840. .c.obj:
  65841. -@am__fastdepCC_TRUE@ if $(COMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ `$(CYGPATH_W) '$<'`; \
  65842. -@am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi
  65843. +@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
  65844. +@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
  65845. @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
  65846. @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
  65847. @am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'`
  65848. .c.lo:
  65849. -@am__fastdepCC_TRUE@ if $(LTCOMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ $<; \
  65850. -@am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Plo"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi
  65851. +@am__fastdepCC_TRUE@ $(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
  65852. +@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
  65853. @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
  65854. @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
  65855. @am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ $<
  65856. @@ -351,103 +382,109 @@
  65857. clean-libtool:
  65858. -rm -rf .libs _libs
  65859. -
  65860. -distclean-libtool:
  65861. - -rm -f libtool
  65862. -uninstall-info-am:
  65863. install-nobase_includeHEADERS: $(nobase_include_HEADERS)
  65864. @$(NORMAL_INSTALL)
  65865. - test -z "$(includedir)" || $(mkdir_p) "$(DESTDIR)$(includedir)"
  65866. - @$(am__vpath_adj_setup) \
  65867. - list='$(nobase_include_HEADERS)'; for p in $$list; do \
  65868. - if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
  65869. - $(am__vpath_adj) \
  65870. - echo " $(nobase_includeHEADERS_INSTALL) '$$d$$p' '$(DESTDIR)$(includedir)/$$f'"; \
  65871. - $(nobase_includeHEADERS_INSTALL) "$$d$$p" "$(DESTDIR)$(includedir)/$$f"; \
  65872. + test -z "$(includedir)" || $(MKDIR_P) "$(DESTDIR)$(includedir)"
  65873. + @list='$(nobase_include_HEADERS)'; test -n "$(includedir)" || list=; \
  65874. + $(am__nobase_list) | while read dir files; do \
  65875. + xfiles=; for file in $$files; do \
  65876. + if test -f "$$file"; then xfiles="$$xfiles $$file"; \
  65877. + else xfiles="$$xfiles $(srcdir)/$$file"; fi; done; \
  65878. + test -z "$$xfiles" || { \
  65879. + test "x$$dir" = x. || { \
  65880. + echo "$(MKDIR_P) '$(DESTDIR)$(includedir)/$$dir'"; \
  65881. + $(MKDIR_P) "$(DESTDIR)$(includedir)/$$dir"; }; \
  65882. + echo " $(INSTALL_HEADER) $$xfiles '$(DESTDIR)$(includedir)/$$dir'"; \
  65883. + $(INSTALL_HEADER) $$xfiles "$(DESTDIR)$(includedir)/$$dir" || exit $$?; }; \
  65884. done
  65885. uninstall-nobase_includeHEADERS:
  65886. @$(NORMAL_UNINSTALL)
  65887. - @$(am__vpath_adj_setup) \
  65888. - list='$(nobase_include_HEADERS)'; for p in $$list; do \
  65889. - $(am__vpath_adj) \
  65890. - echo " rm -f '$(DESTDIR)$(includedir)/$$f'"; \
  65891. - rm -f "$(DESTDIR)$(includedir)/$$f"; \
  65892. - done
  65893. + @list='$(nobase_include_HEADERS)'; test -n "$(includedir)" || list=; \
  65894. + $(am__nobase_strip_setup); files=`$(am__nobase_strip)`; \
  65895. + test -n "$$files" || exit 0; \
  65896. + echo " ( cd '$(DESTDIR)$(includedir)' && rm -f" $$files ")"; \
  65897. + cd "$(DESTDIR)$(includedir)" && rm -f $$files
  65898. ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
  65899. list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
  65900. unique=`for i in $$list; do \
  65901. if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
  65902. done | \
  65903. - $(AWK) ' { files[$$0] = 1; } \
  65904. - END { for (i in files) print i; }'`; \
  65905. + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
  65906. + END { if (nonempty) { for (i in files) print i; }; }'`; \
  65907. mkid -fID $$unique
  65908. tags: TAGS
  65909. TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
  65910. $(TAGS_FILES) $(LISP)
  65911. - tags=; \
  65912. + set x; \
  65913. here=`pwd`; \
  65914. list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
  65915. unique=`for i in $$list; do \
  65916. if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
  65917. done | \
  65918. - $(AWK) ' { files[$$0] = 1; } \
  65919. - END { for (i in files) print i; }'`; \
  65920. - if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
  65921. + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
  65922. + END { if (nonempty) { for (i in files) print i; }; }'`; \
  65923. + shift; \
  65924. + if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
  65925. test -n "$$unique" || unique=$$empty_fix; \
  65926. - $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
  65927. - $$tags $$unique; \
  65928. + if test $$# -gt 0; then \
  65929. + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
  65930. + "$$@" $$unique; \
  65931. + else \
  65932. + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
  65933. + $$unique; \
  65934. + fi; \
  65935. fi
  65936. ctags: CTAGS
  65937. CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
  65938. $(TAGS_FILES) $(LISP)
  65939. - tags=; \
  65940. - here=`pwd`; \
  65941. list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
  65942. unique=`for i in $$list; do \
  65943. if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
  65944. done | \
  65945. - $(AWK) ' { files[$$0] = 1; } \
  65946. - END { for (i in files) print i; }'`; \
  65947. - test -z "$(CTAGS_ARGS)$$tags$$unique" \
  65948. + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
  65949. + END { if (nonempty) { for (i in files) print i; }; }'`; \
  65950. + test -z "$(CTAGS_ARGS)$$unique" \
  65951. || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
  65952. - $$tags $$unique
  65953. + $$unique
  65954. GTAGS:
  65955. here=`$(am__cd) $(top_builddir) && pwd` \
  65956. - && cd $(top_srcdir) \
  65957. - && gtags -i $(GTAGS_ARGS) $$here
  65958. + && $(am__cd) $(top_srcdir) \
  65959. + && gtags -i $(GTAGS_ARGS) "$$here"
  65960. distclean-tags:
  65961. -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
  65962. distdir: $(DISTFILES)
  65963. - $(mkdir_p) $(distdir)/$(srcdir) $(distdir)/$(srcdir)/gssglue/gssapi $(distdir)/gssglue/gssapi
  65964. - @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \
  65965. - topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \
  65966. - list='$(DISTFILES)'; for file in $$list; do \
  65967. - case $$file in \
  65968. - $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \
  65969. - $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \
  65970. - esac; \
  65971. + @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
  65972. + topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
  65973. + list='$(DISTFILES)'; \
  65974. + dist_files=`for file in $$list; do echo $$file; done | \
  65975. + sed -e "s|^$$srcdirstrip/||;t" \
  65976. + -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
  65977. + case $$dist_files in \
  65978. + */*) $(MKDIR_P) `echo "$$dist_files" | \
  65979. + sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
  65980. + sort -u` ;; \
  65981. + esac; \
  65982. + for file in $$dist_files; do \
  65983. if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
  65984. - dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \
  65985. - if test "$$dir" != "$$file" && test "$$dir" != "."; then \
  65986. - dir="/$$dir"; \
  65987. - $(mkdir_p) "$(distdir)$$dir"; \
  65988. - else \
  65989. - dir=''; \
  65990. - fi; \
  65991. if test -d $$d/$$file; then \
  65992. + dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
  65993. + if test -d "$(distdir)/$$file"; then \
  65994. + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
  65995. + fi; \
  65996. if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
  65997. - cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
  65998. + cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
  65999. + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
  66000. fi; \
  66001. - cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
  66002. + cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
  66003. else \
  66004. - test -f $(distdir)/$$file \
  66005. - || cp -p $$d/$$file $(distdir)/$$file \
  66006. + test -f "$(distdir)/$$file" \
  66007. + || cp -p $$d/$$file "$(distdir)/$$file" \
  66008. || exit 1; \
  66009. fi; \
  66010. done
  66011. @@ -457,7 +494,7 @@
  66012. all-am: Makefile $(LTLIBRARIES) $(HEADERS)
  66013. installdirs:
  66014. for dir in "$(DESTDIR)$(libdir)" "$(DESTDIR)$(includedir)"; do \
  66015. - test -z "$$dir" || $(mkdir_p) "$$dir"; \
  66016. + test -z "$$dir" || $(MKDIR_P) "$$dir"; \
  66017. done
  66018. install: $(BUILT_SOURCES)
  66019. $(MAKE) $(AM_MAKEFLAGS) install-am
  66020. @@ -480,6 +517,7 @@
  66021. distclean-generic:
  66022. -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
  66023. + -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
  66024. -test -z "$(DISTCLEANFILES)" || rm -f $(DISTCLEANFILES)
  66025. maintainer-clean-generic:
  66026. @@ -495,7 +533,7 @@
  66027. -rm -rf ./$(DEPDIR)
  66028. -rm -f Makefile
  66029. distclean-am: clean-am distclean-compile distclean-generic \
  66030. - distclean-libtool distclean-tags
  66031. + distclean-tags
  66032. dvi: dvi-am
  66033. @@ -503,18 +541,38 @@
  66034. html: html-am
  66035. +html-am:
  66036. +
  66037. info: info-am
  66038. info-am:
  66039. install-data-am: install-nobase_includeHEADERS
  66040. +install-dvi: install-dvi-am
  66041. +
  66042. +install-dvi-am:
  66043. +
  66044. install-exec-am: install-libLTLIBRARIES
  66045. +install-html: install-html-am
  66046. +
  66047. +install-html-am:
  66048. +
  66049. install-info: install-info-am
  66050. +install-info-am:
  66051. +
  66052. install-man:
  66053. +install-pdf: install-pdf-am
  66054. +
  66055. +install-pdf-am:
  66056. +
  66057. +install-ps: install-ps-am
  66058. +
  66059. +install-ps-am:
  66060. +
  66061. installcheck-am:
  66062. maintainer-clean: maintainer-clean-am
  66063. @@ -535,22 +593,25 @@
  66064. ps-am:
  66065. -uninstall-am: uninstall-info-am uninstall-libLTLIBRARIES \
  66066. - uninstall-nobase_includeHEADERS
  66067. +uninstall-am: uninstall-libLTLIBRARIES uninstall-nobase_includeHEADERS
  66068. +
  66069. +.MAKE: all check install install-am install-strip
  66070. .PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \
  66071. clean-libLTLIBRARIES clean-libtool ctags distclean \
  66072. distclean-compile distclean-generic distclean-libtool \
  66073. distclean-tags distdir dvi dvi-am html html-am info info-am \
  66074. - install install-am install-data install-data-am install-exec \
  66075. - install-exec-am install-info install-info-am \
  66076. + install install-am install-data install-data-am install-dvi \
  66077. + install-dvi-am install-exec install-exec-am install-html \
  66078. + install-html-am install-info install-info-am \
  66079. install-libLTLIBRARIES install-man \
  66080. - install-nobase_includeHEADERS install-strip installcheck \
  66081. + install-nobase_includeHEADERS install-pdf install-pdf-am \
  66082. + install-ps install-ps-am install-strip installcheck \
  66083. installcheck-am installdirs maintainer-clean \
  66084. maintainer-clean-generic mostlyclean mostlyclean-compile \
  66085. mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
  66086. - tags uninstall uninstall-am uninstall-info-am \
  66087. - uninstall-libLTLIBRARIES uninstall-nobase_includeHEADERS
  66088. + tags uninstall uninstall-am uninstall-libLTLIBRARIES \
  66089. + uninstall-nobase_includeHEADERS
  66090. # Stolen from the MIT Kerberos makefiles
  66091. @@ -569,6 +630,7 @@
  66092. echo "/* End of gssapi.h prologue. */"; \
  66093. cat $(srcdir)/gssglue/gssapi/gssapi.h.in )> $$h && \
  66094. (set -x; mv $$h $@) ; e=$$?; rm $$h; exit $$e
  66095. +
  66096. # Tell versions [3.59,3.63) of GNU make to not export all variables.
  66097. # Otherwise a system limit (for SysV at least) may be exceeded.
  66098. .NOEXPORT: