aclocal.m4 335 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656
  1. # generated automatically by aclocal 1.11.1 -*- Autoconf -*-
  2. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
  3. # 2005, 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
  4. # This file is free software; the Free Software Foundation
  5. # gives unlimited permission to copy and/or distribute it,
  6. # with or without modifications, as long as this notice is preserved.
  7. # This program is distributed in the hope that it will be useful,
  8. # but WITHOUT ANY WARRANTY, to the extent permitted by law; without
  9. # even the implied warranty of MERCHANTABILITY or FITNESS FOR A
  10. # PARTICULAR PURPOSE.
  11. m4_ifndef([AC_AUTOCONF_VERSION],
  12. [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
  13. m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.66],,
  14. [m4_warning([this file was generated for autoconf 2.66.
  15. You have another version of autoconf. It may work, but is not guaranteed to.
  16. If you have problems, you may need to regenerate the build system entirely.
  17. To do so, use the procedure documented by the package, typically `autoreconf'.])])
  18. # Copyright (C) 1995-2002 Free Software Foundation, Inc.
  19. # Copyright (C) 2001-2003,2004 Red Hat, Inc.
  20. #
  21. # This file is free software, distributed under the terms of the GNU
  22. # General Public License. As a special exception to the GNU General
  23. # Public License, this file may be distributed as part of a program
  24. # that contains a configuration script generated by Autoconf, under
  25. # the same distribution terms as the rest of that program.
  26. #
  27. # This file can be copied and used freely without restrictions. It can
  28. # be used in projects which are not available under the GNU Public License
  29. # but which still want to provide support for the GNU gettext functionality.
  30. #
  31. # Macro to add for using GNU gettext.
  32. # Ulrich Drepper <drepper@cygnus.com>, 1995, 1996
  33. #
  34. # Modified to never use included libintl.
  35. # Owen Taylor <otaylor@redhat.com>, 12/15/1998
  36. #
  37. # Major rework to remove unused code
  38. # Owen Taylor <otaylor@redhat.com>, 12/11/2002
  39. #
  40. # Added better handling of ALL_LINGUAS from GNU gettext version
  41. # written by Bruno Haible, Owen Taylor <otaylor.redhat.com> 5/30/3002
  42. #
  43. # Modified to require ngettext
  44. # Matthias Clasen <mclasen@redhat.com> 08/06/2004
  45. #
  46. # We need this here as well, since someone might use autoconf-2.5x
  47. # to configure GLib then an older version to configure a package
  48. # using AM_GLIB_GNU_GETTEXT
  49. AC_PREREQ(2.53)
  50. dnl
  51. dnl We go to great lengths to make sure that aclocal won't
  52. dnl try to pull in the installed version of these macros
  53. dnl when running aclocal in the glib directory.
  54. dnl
  55. m4_copy([AC_DEFUN],[glib_DEFUN])
  56. m4_copy([AC_REQUIRE],[glib_REQUIRE])
  57. dnl
  58. dnl At the end, if we're not within glib, we'll define the public
  59. dnl definitions in terms of our private definitions.
  60. dnl
  61. # GLIB_LC_MESSAGES
  62. #--------------------
  63. glib_DEFUN([GLIB_LC_MESSAGES],
  64. [AC_CHECK_HEADERS([locale.h])
  65. if test $ac_cv_header_locale_h = yes; then
  66. AC_CACHE_CHECK([for LC_MESSAGES], am_cv_val_LC_MESSAGES,
  67. [AC_TRY_LINK([#include <locale.h>], [return LC_MESSAGES],
  68. am_cv_val_LC_MESSAGES=yes, am_cv_val_LC_MESSAGES=no)])
  69. if test $am_cv_val_LC_MESSAGES = yes; then
  70. AC_DEFINE(HAVE_LC_MESSAGES, 1,
  71. [Define if your <locale.h> file defines LC_MESSAGES.])
  72. fi
  73. fi])
  74. # GLIB_PATH_PROG_WITH_TEST
  75. #----------------------------
  76. dnl GLIB_PATH_PROG_WITH_TEST(VARIABLE, PROG-TO-CHECK-FOR,
  77. dnl TEST-PERFORMED-ON-FOUND_PROGRAM [, VALUE-IF-NOT-FOUND [, PATH]])
  78. glib_DEFUN([GLIB_PATH_PROG_WITH_TEST],
  79. [# Extract the first word of "$2", so it can be a program name with args.
  80. set dummy $2; ac_word=[$]2
  81. AC_MSG_CHECKING([for $ac_word])
  82. AC_CACHE_VAL(ac_cv_path_$1,
  83. [case "[$]$1" in
  84. /*)
  85. ac_cv_path_$1="[$]$1" # Let the user override the test with a path.
  86. ;;
  87. *)
  88. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  89. for ac_dir in ifelse([$5], , $PATH, [$5]); do
  90. test -z "$ac_dir" && ac_dir=.
  91. if test -f $ac_dir/$ac_word; then
  92. if [$3]; then
  93. ac_cv_path_$1="$ac_dir/$ac_word"
  94. break
  95. fi
  96. fi
  97. done
  98. IFS="$ac_save_ifs"
  99. dnl If no 4th arg is given, leave the cache variable unset,
  100. dnl so AC_PATH_PROGS will keep looking.
  101. ifelse([$4], , , [ test -z "[$]ac_cv_path_$1" && ac_cv_path_$1="$4"
  102. ])dnl
  103. ;;
  104. esac])dnl
  105. $1="$ac_cv_path_$1"
  106. if test ifelse([$4], , [-n "[$]$1"], ["[$]$1" != "$4"]); then
  107. AC_MSG_RESULT([$]$1)
  108. else
  109. AC_MSG_RESULT(no)
  110. fi
  111. AC_SUBST($1)dnl
  112. ])
  113. # GLIB_WITH_NLS
  114. #-----------------
  115. glib_DEFUN([GLIB_WITH_NLS],
  116. dnl NLS is obligatory
  117. [USE_NLS=yes
  118. AC_SUBST(USE_NLS)
  119. gt_cv_have_gettext=no
  120. CATOBJEXT=NONE
  121. XGETTEXT=:
  122. INTLLIBS=
  123. AC_CHECK_HEADER(libintl.h,
  124. [gt_cv_func_dgettext_libintl="no"
  125. libintl_extra_libs=""
  126. #
  127. # First check in libc
  128. #
  129. AC_CACHE_CHECK([for ngettext in libc], gt_cv_func_ngettext_libc,
  130. [AC_TRY_LINK([
  131. #include <libintl.h>
  132. ],
  133. [return !ngettext ("","", 1)],
  134. gt_cv_func_ngettext_libc=yes,
  135. gt_cv_func_ngettext_libc=no)
  136. ])
  137. if test "$gt_cv_func_ngettext_libc" = "yes" ; then
  138. AC_CACHE_CHECK([for dgettext in libc], gt_cv_func_dgettext_libc,
  139. [AC_TRY_LINK([
  140. #include <libintl.h>
  141. ],
  142. [return !dgettext ("","")],
  143. gt_cv_func_dgettext_libc=yes,
  144. gt_cv_func_dgettext_libc=no)
  145. ])
  146. fi
  147. if test "$gt_cv_func_ngettext_libc" = "yes" ; then
  148. AC_CHECK_FUNCS(bind_textdomain_codeset)
  149. fi
  150. #
  151. # If we don't have everything we want, check in libintl
  152. #
  153. if test "$gt_cv_func_dgettext_libc" != "yes" \
  154. || test "$gt_cv_func_ngettext_libc" != "yes" \
  155. || test "$ac_cv_func_bind_textdomain_codeset" != "yes" ; then
  156. AC_CHECK_LIB(intl, bindtextdomain,
  157. [AC_CHECK_LIB(intl, ngettext,
  158. [AC_CHECK_LIB(intl, dgettext,
  159. gt_cv_func_dgettext_libintl=yes)])])
  160. if test "$gt_cv_func_dgettext_libintl" != "yes" ; then
  161. AC_MSG_CHECKING([if -liconv is needed to use gettext])
  162. AC_MSG_RESULT([])
  163. AC_CHECK_LIB(intl, ngettext,
  164. [AC_CHECK_LIB(intl, dcgettext,
  165. [gt_cv_func_dgettext_libintl=yes
  166. libintl_extra_libs=-liconv],
  167. :,-liconv)],
  168. :,-liconv)
  169. fi
  170. #
  171. # If we found libintl, then check in it for bind_textdomain_codeset();
  172. # we'll prefer libc if neither have bind_textdomain_codeset(),
  173. # and both have dgettext and ngettext
  174. #
  175. if test "$gt_cv_func_dgettext_libintl" = "yes" ; then
  176. glib_save_LIBS="$LIBS"
  177. LIBS="$LIBS -lintl $libintl_extra_libs"
  178. unset ac_cv_func_bind_textdomain_codeset
  179. AC_CHECK_FUNCS(bind_textdomain_codeset)
  180. LIBS="$glib_save_LIBS"
  181. if test "$ac_cv_func_bind_textdomain_codeset" = "yes" ; then
  182. gt_cv_func_dgettext_libc=no
  183. else
  184. if test "$gt_cv_func_dgettext_libc" = "yes" \
  185. && test "$gt_cv_func_ngettext_libc" = "yes"; then
  186. gt_cv_func_dgettext_libintl=no
  187. fi
  188. fi
  189. fi
  190. fi
  191. if test "$gt_cv_func_dgettext_libc" = "yes" \
  192. || test "$gt_cv_func_dgettext_libintl" = "yes"; then
  193. gt_cv_have_gettext=yes
  194. fi
  195. if test "$gt_cv_func_dgettext_libintl" = "yes"; then
  196. INTLLIBS="-lintl $libintl_extra_libs"
  197. fi
  198. if test "$gt_cv_have_gettext" = "yes"; then
  199. AC_DEFINE(HAVE_GETTEXT,1,
  200. [Define if the GNU gettext() function is already present or preinstalled.])
  201. GLIB_PATH_PROG_WITH_TEST(MSGFMT, msgfmt,
  202. [test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"], no)dnl
  203. if test "$MSGFMT" != "no"; then
  204. glib_save_LIBS="$LIBS"
  205. LIBS="$LIBS $INTLLIBS"
  206. AC_CHECK_FUNCS(dcgettext)
  207. MSGFMT_OPTS=
  208. AC_MSG_CHECKING([if msgfmt accepts -c])
  209. GLIB_RUN_PROG([$MSGFMT -c -o /dev/null],[
  210. msgid ""
  211. msgstr ""
  212. "Content-Type: text/plain; charset=UTF-8\n"
  213. "Project-Id-Version: test 1.0\n"
  214. "PO-Revision-Date: 2007-02-15 12:01+0100\n"
  215. "Last-Translator: test <foo@bar.xx>\n"
  216. "Language-Team: C <LL@li.org>\n"
  217. "MIME-Version: 1.0\n"
  218. "Content-Transfer-Encoding: 8bit\n"
  219. ], [MSGFMT_OPTS=-c; AC_MSG_RESULT([yes])], [AC_MSG_RESULT([no])])
  220. AC_SUBST(MSGFMT_OPTS)
  221. AC_PATH_PROG(GMSGFMT, gmsgfmt, $MSGFMT)
  222. GLIB_PATH_PROG_WITH_TEST(XGETTEXT, xgettext,
  223. [test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"], :)
  224. AC_TRY_LINK(, [extern int _nl_msg_cat_cntr;
  225. return _nl_msg_cat_cntr],
  226. [CATOBJEXT=.gmo
  227. DATADIRNAME=share],
  228. [case $host in
  229. *-*-solaris*)
  230. dnl On Solaris, if bind_textdomain_codeset is in libc,
  231. dnl GNU format message catalog is always supported,
  232. dnl since both are added to the libc all together.
  233. dnl Hence, we'd like to go with DATADIRNAME=share and
  234. dnl and CATOBJEXT=.gmo in this case.
  235. AC_CHECK_FUNC(bind_textdomain_codeset,
  236. [CATOBJEXT=.gmo
  237. DATADIRNAME=share],
  238. [CATOBJEXT=.mo
  239. DATADIRNAME=lib])
  240. ;;
  241. *)
  242. CATOBJEXT=.mo
  243. DATADIRNAME=lib
  244. ;;
  245. esac])
  246. LIBS="$glib_save_LIBS"
  247. INSTOBJEXT=.mo
  248. else
  249. gt_cv_have_gettext=no
  250. fi
  251. fi
  252. ])
  253. if test "$gt_cv_have_gettext" = "yes" ; then
  254. AC_DEFINE(ENABLE_NLS, 1,
  255. [always defined to indicate that i18n is enabled])
  256. fi
  257. dnl Test whether we really found GNU xgettext.
  258. if test "$XGETTEXT" != ":"; then
  259. dnl If it is not GNU xgettext we define it as : so that the
  260. dnl Makefiles still can work.
  261. if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
  262. : ;
  263. else
  264. AC_MSG_RESULT(
  265. [found xgettext program is not GNU xgettext; ignore it])
  266. XGETTEXT=":"
  267. fi
  268. fi
  269. # We need to process the po/ directory.
  270. POSUB=po
  271. AC_OUTPUT_COMMANDS(
  272. [case "$CONFIG_FILES" in *po/Makefile.in*)
  273. sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile
  274. esac])
  275. dnl These rules are solely for the distribution goal. While doing this
  276. dnl we only have to keep exactly one list of the available catalogs
  277. dnl in configure.ac.
  278. for lang in $ALL_LINGUAS; do
  279. GMOFILES="$GMOFILES $lang.gmo"
  280. POFILES="$POFILES $lang.po"
  281. done
  282. dnl Make all variables we use known to autoconf.
  283. AC_SUBST(CATALOGS)
  284. AC_SUBST(CATOBJEXT)
  285. AC_SUBST(DATADIRNAME)
  286. AC_SUBST(GMOFILES)
  287. AC_SUBST(INSTOBJEXT)
  288. AC_SUBST(INTLLIBS)
  289. AC_SUBST(PO_IN_DATADIR_TRUE)
  290. AC_SUBST(PO_IN_DATADIR_FALSE)
  291. AC_SUBST(POFILES)
  292. AC_SUBST(POSUB)
  293. ])
  294. # AM_GLIB_GNU_GETTEXT
  295. # -------------------
  296. # Do checks necessary for use of gettext. If a suitable implementation
  297. # of gettext is found in either in libintl or in the C library,
  298. # it will set INTLLIBS to the libraries needed for use of gettext
  299. # and AC_DEFINE() HAVE_GETTEXT and ENABLE_NLS. (The shell variable
  300. # gt_cv_have_gettext will be set to "yes".) It will also call AC_SUBST()
  301. # on various variables needed by the Makefile.in.in installed by
  302. # glib-gettextize.
  303. dnl
  304. glib_DEFUN([GLIB_GNU_GETTEXT],
  305. [AC_REQUIRE([AC_PROG_CC])dnl
  306. AC_REQUIRE([AC_HEADER_STDC])dnl
  307. GLIB_LC_MESSAGES
  308. GLIB_WITH_NLS
  309. if test "$gt_cv_have_gettext" = "yes"; then
  310. if test "x$ALL_LINGUAS" = "x"; then
  311. LINGUAS=
  312. else
  313. AC_MSG_CHECKING(for catalogs to be installed)
  314. NEW_LINGUAS=
  315. for presentlang in $ALL_LINGUAS; do
  316. useit=no
  317. if test "%UNSET%" != "${LINGUAS-%UNSET%}"; then
  318. desiredlanguages="$LINGUAS"
  319. else
  320. desiredlanguages="$ALL_LINGUAS"
  321. fi
  322. for desiredlang in $desiredlanguages; do
  323. # Use the presentlang catalog if desiredlang is
  324. # a. equal to presentlang, or
  325. # b. a variant of presentlang (because in this case,
  326. # presentlang can be used as a fallback for messages
  327. # which are not translated in the desiredlang catalog).
  328. case "$desiredlang" in
  329. "$presentlang"*) useit=yes;;
  330. esac
  331. done
  332. if test $useit = yes; then
  333. NEW_LINGUAS="$NEW_LINGUAS $presentlang"
  334. fi
  335. done
  336. LINGUAS=$NEW_LINGUAS
  337. AC_MSG_RESULT($LINGUAS)
  338. fi
  339. dnl Construct list of names of catalog files to be constructed.
  340. if test -n "$LINGUAS"; then
  341. for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
  342. fi
  343. fi
  344. dnl If the AC_CONFIG_AUX_DIR macro for autoconf is used we possibly
  345. dnl find the mkinstalldirs script in another subdir but ($top_srcdir).
  346. dnl Try to locate is.
  347. MKINSTALLDIRS=
  348. if test -n "$ac_aux_dir"; then
  349. MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
  350. fi
  351. if test -z "$MKINSTALLDIRS"; then
  352. MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
  353. fi
  354. AC_SUBST(MKINSTALLDIRS)
  355. dnl Generate list of files to be processed by xgettext which will
  356. dnl be included in po/Makefile.
  357. test -d po || mkdir po
  358. if test "x$srcdir" != "x."; then
  359. if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
  360. posrcprefix="$srcdir/"
  361. else
  362. posrcprefix="../$srcdir/"
  363. fi
  364. else
  365. posrcprefix="../"
  366. fi
  367. rm -f po/POTFILES
  368. sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
  369. < $srcdir/po/POTFILES.in > po/POTFILES
  370. ])
  371. # AM_GLIB_DEFINE_LOCALEDIR(VARIABLE)
  372. # -------------------------------
  373. # Define VARIABLE to the location where catalog files will
  374. # be installed by po/Makefile.
  375. glib_DEFUN([GLIB_DEFINE_LOCALEDIR],
  376. [glib_REQUIRE([GLIB_GNU_GETTEXT])dnl
  377. glib_save_prefix="$prefix"
  378. glib_save_exec_prefix="$exec_prefix"
  379. glib_save_datarootdir="$datarootdir"
  380. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  381. test "x$exec_prefix" = xNONE && exec_prefix=$prefix
  382. datarootdir=`eval echo "${datarootdir}"`
  383. if test "x$CATOBJEXT" = "x.mo" ; then
  384. localedir=`eval echo "${libdir}/locale"`
  385. else
  386. localedir=`eval echo "${datadir}/locale"`
  387. fi
  388. prefix="$glib_save_prefix"
  389. exec_prefix="$glib_save_exec_prefix"
  390. datarootdir="$glib_save_datarootdir"
  391. AC_DEFINE_UNQUOTED($1, "$localedir",
  392. [Define the location where the catalogs will be installed])
  393. ])
  394. dnl
  395. dnl Now the definitions that aclocal will find
  396. dnl
  397. ifdef(glib_configure_ac,[],[
  398. AC_DEFUN([AM_GLIB_GNU_GETTEXT],[GLIB_GNU_GETTEXT($@)])
  399. AC_DEFUN([AM_GLIB_DEFINE_LOCALEDIR],[GLIB_DEFINE_LOCALEDIR($@)])
  400. ])dnl
  401. # GLIB_RUN_PROG(PROGRAM, TEST-FILE, [ACTION-IF-PASS], [ACTION-IF-FAIL])
  402. #
  403. # Create a temporary file with TEST-FILE as its contents and pass the
  404. # file name to PROGRAM. Perform ACTION-IF-PASS if PROGRAM exits with
  405. # 0 and perform ACTION-IF-FAIL for any other exit status.
  406. AC_DEFUN([GLIB_RUN_PROG],
  407. [cat >conftest.foo <<_ACEOF
  408. $2
  409. _ACEOF
  410. if AC_RUN_LOG([$1 conftest.foo]); then
  411. m4_ifval([$3], [$3], [:])
  412. m4_ifvaln([$4], [else $4])dnl
  413. echo "$as_me: failed input was:" >&AS_MESSAGE_LOG_FD
  414. sed 's/^/| /' conftest.foo >&AS_MESSAGE_LOG_FD
  415. fi])
  416. # libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
  417. #
  418. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
  419. # 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
  420. # Inc.
  421. # Written by Gordon Matzigkeit, 1996
  422. #
  423. # This file is free software; the Free Software Foundation gives
  424. # unlimited permission to copy and/or distribute it, with or without
  425. # modifications, as long as this notice is preserved.
  426. m4_define([_LT_COPYING], [dnl
  427. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
  428. # 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
  429. # Inc.
  430. # Written by Gordon Matzigkeit, 1996
  431. #
  432. # This file is part of GNU Libtool.
  433. #
  434. # GNU Libtool is free software; you can redistribute it and/or
  435. # modify it under the terms of the GNU General Public License as
  436. # published by the Free Software Foundation; either version 2 of
  437. # the License, or (at your option) any later version.
  438. #
  439. # As a special exception to the GNU General Public License,
  440. # if you distribute this file as part of a program or library that
  441. # is built using GNU Libtool, you may include this file under the
  442. # same distribution terms that you use for the rest of that program.
  443. #
  444. # GNU Libtool is distributed in the hope that it will be useful,
  445. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  446. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  447. # GNU General Public License for more details.
  448. #
  449. # You should have received a copy of the GNU General Public License
  450. # along with GNU Libtool; see the file COPYING. If not, a copy
  451. # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
  452. # obtained by writing to the Free Software Foundation, Inc.,
  453. # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  454. ])
  455. # serial 57 LT_INIT
  456. # LT_PREREQ(VERSION)
  457. # ------------------
  458. # Complain and exit if this libtool version is less that VERSION.
  459. m4_defun([LT_PREREQ],
  460. [m4_if(m4_version_compare(m4_defn([LT_PACKAGE_VERSION]), [$1]), -1,
  461. [m4_default([$3],
  462. [m4_fatal([Libtool version $1 or higher is required],
  463. 63)])],
  464. [$2])])
  465. # _LT_CHECK_BUILDDIR
  466. # ------------------
  467. # Complain if the absolute build directory name contains unusual characters
  468. m4_defun([_LT_CHECK_BUILDDIR],
  469. [case `pwd` in
  470. *\ * | *\ *)
  471. AC_MSG_WARN([Libtool does not cope well with whitespace in `pwd`]) ;;
  472. esac
  473. ])
  474. # LT_INIT([OPTIONS])
  475. # ------------------
  476. AC_DEFUN([LT_INIT],
  477. [AC_PREREQ([2.58])dnl We use AC_INCLUDES_DEFAULT
  478. AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT])dnl
  479. AC_BEFORE([$0], [LT_LANG])dnl
  480. AC_BEFORE([$0], [LT_OUTPUT])dnl
  481. AC_BEFORE([$0], [LTDL_INIT])dnl
  482. m4_require([_LT_CHECK_BUILDDIR])dnl
  483. dnl Autoconf doesn't catch unexpanded LT_ macros by default:
  484. m4_pattern_forbid([^_?LT_[A-Z_]+$])dnl
  485. m4_pattern_allow([^(_LT_EOF|LT_DLGLOBAL|LT_DLLAZY_OR_NOW|LT_MULTI_MODULE)$])dnl
  486. dnl aclocal doesn't pull ltoptions.m4, ltsugar.m4, or ltversion.m4
  487. dnl unless we require an AC_DEFUNed macro:
  488. AC_REQUIRE([LTOPTIONS_VERSION])dnl
  489. AC_REQUIRE([LTSUGAR_VERSION])dnl
  490. AC_REQUIRE([LTVERSION_VERSION])dnl
  491. AC_REQUIRE([LTOBSOLETE_VERSION])dnl
  492. m4_require([_LT_PROG_LTMAIN])dnl
  493. _LT_SHELL_INIT([SHELL=${CONFIG_SHELL-/bin/sh}])
  494. dnl Parse OPTIONS
  495. _LT_SET_OPTIONS([$0], [$1])
  496. # This can be used to rebuild libtool when needed
  497. LIBTOOL_DEPS="$ltmain"
  498. # Always use our own libtool.
  499. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  500. AC_SUBST(LIBTOOL)dnl
  501. _LT_SETUP
  502. # Only expand once:
  503. m4_define([LT_INIT])
  504. ])# LT_INIT
  505. # Old names:
  506. AU_ALIAS([AC_PROG_LIBTOOL], [LT_INIT])
  507. AU_ALIAS([AM_PROG_LIBTOOL], [LT_INIT])
  508. dnl aclocal-1.4 backwards compatibility:
  509. dnl AC_DEFUN([AC_PROG_LIBTOOL], [])
  510. dnl AC_DEFUN([AM_PROG_LIBTOOL], [])
  511. # _LT_CC_BASENAME(CC)
  512. # -------------------
  513. # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
  514. m4_defun([_LT_CC_BASENAME],
  515. [for cc_temp in $1""; do
  516. case $cc_temp in
  517. compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;;
  518. distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;;
  519. \-*) ;;
  520. *) break;;
  521. esac
  522. done
  523. cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  524. ])
  525. # _LT_FILEUTILS_DEFAULTS
  526. # ----------------------
  527. # It is okay to use these file commands and assume they have been set
  528. # sensibly after `m4_require([_LT_FILEUTILS_DEFAULTS])'.
  529. m4_defun([_LT_FILEUTILS_DEFAULTS],
  530. [: ${CP="cp -f"}
  531. : ${MV="mv -f"}
  532. : ${RM="rm -f"}
  533. ])# _LT_FILEUTILS_DEFAULTS
  534. # _LT_SETUP
  535. # ---------
  536. m4_defun([_LT_SETUP],
  537. [AC_REQUIRE([AC_CANONICAL_HOST])dnl
  538. AC_REQUIRE([AC_CANONICAL_BUILD])dnl
  539. AC_REQUIRE([_LT_PREPARE_SED_QUOTE_VARS])dnl
  540. AC_REQUIRE([_LT_PROG_ECHO_BACKSLASH])dnl
  541. _LT_DECL([], [host_alias], [0], [The host system])dnl
  542. _LT_DECL([], [host], [0])dnl
  543. _LT_DECL([], [host_os], [0])dnl
  544. dnl
  545. _LT_DECL([], [build_alias], [0], [The build system])dnl
  546. _LT_DECL([], [build], [0])dnl
  547. _LT_DECL([], [build_os], [0])dnl
  548. dnl
  549. AC_REQUIRE([AC_PROG_CC])dnl
  550. AC_REQUIRE([LT_PATH_LD])dnl
  551. AC_REQUIRE([LT_PATH_NM])dnl
  552. dnl
  553. AC_REQUIRE([AC_PROG_LN_S])dnl
  554. test -z "$LN_S" && LN_S="ln -s"
  555. _LT_DECL([], [LN_S], [1], [Whether we need soft or hard links])dnl
  556. dnl
  557. AC_REQUIRE([LT_CMD_MAX_LEN])dnl
  558. _LT_DECL([objext], [ac_objext], [0], [Object file suffix (normally "o")])dnl
  559. _LT_DECL([], [exeext], [0], [Executable file suffix (normally "")])dnl
  560. dnl
  561. m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  562. m4_require([_LT_CHECK_SHELL_FEATURES])dnl
  563. m4_require([_LT_CMD_RELOAD])dnl
  564. m4_require([_LT_CHECK_MAGIC_METHOD])dnl
  565. m4_require([_LT_CMD_OLD_ARCHIVE])dnl
  566. m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
  567. _LT_CONFIG_LIBTOOL_INIT([
  568. # See if we are running on zsh, and set the options which allow our
  569. # commands through without removal of \ escapes INIT.
  570. if test -n "\${ZSH_VERSION+set}" ; then
  571. setopt NO_GLOB_SUBST
  572. fi
  573. ])
  574. if test -n "${ZSH_VERSION+set}" ; then
  575. setopt NO_GLOB_SUBST
  576. fi
  577. _LT_CHECK_OBJDIR
  578. m4_require([_LT_TAG_COMPILER])dnl
  579. case $host_os in
  580. aix3*)
  581. # AIX sometimes has problems with the GCC collect2 program. For some
  582. # reason, if we set the COLLECT_NAMES environment variable, the problems
  583. # vanish in a puff of smoke.
  584. if test "X${COLLECT_NAMES+set}" != Xset; then
  585. COLLECT_NAMES=
  586. export COLLECT_NAMES
  587. fi
  588. ;;
  589. esac
  590. # Global variables:
  591. ofile=libtool
  592. can_build_shared=yes
  593. # All known linkers require a `.a' archive for static linking (except MSVC,
  594. # which needs '.lib').
  595. libext=a
  596. with_gnu_ld="$lt_cv_prog_gnu_ld"
  597. old_CC="$CC"
  598. old_CFLAGS="$CFLAGS"
  599. # Set sane defaults for various variables
  600. test -z "$CC" && CC=cc
  601. test -z "$LTCC" && LTCC=$CC
  602. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  603. test -z "$LD" && LD=ld
  604. test -z "$ac_objext" && ac_objext=o
  605. _LT_CC_BASENAME([$compiler])
  606. # Only perform the check for file, if the check method requires it
  607. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  608. case $deplibs_check_method in
  609. file_magic*)
  610. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  611. _LT_PATH_MAGIC
  612. fi
  613. ;;
  614. esac
  615. # Use C for the default configuration in the libtool script
  616. LT_SUPPORTED_TAG([CC])
  617. _LT_LANG_C_CONFIG
  618. _LT_LANG_DEFAULT_CONFIG
  619. _LT_CONFIG_COMMANDS
  620. ])# _LT_SETUP
  621. # _LT_PREPARE_SED_QUOTE_VARS
  622. # --------------------------
  623. # Define a few sed substitution that help us do robust quoting.
  624. m4_defun([_LT_PREPARE_SED_QUOTE_VARS],
  625. [# Backslashify metacharacters that are still active within
  626. # double-quoted strings.
  627. sed_quote_subst='s/\([["`$\\]]\)/\\\1/g'
  628. # Same as above, but do not quote variable references.
  629. double_quote_subst='s/\([["`\\]]\)/\\\1/g'
  630. # Sed substitution to delay expansion of an escaped shell variable in a
  631. # double_quote_subst'ed string.
  632. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  633. # Sed substitution to delay expansion of an escaped single quote.
  634. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  635. # Sed substitution to avoid accidental globbing in evaled expressions
  636. no_glob_subst='s/\*/\\\*/g'
  637. ])
  638. # _LT_PROG_LTMAIN
  639. # ---------------
  640. # Note that this code is called both from `configure', and `config.status'
  641. # now that we use AC_CONFIG_COMMANDS to generate libtool. Notably,
  642. # `config.status' has no value for ac_aux_dir unless we are using Automake,
  643. # so we pass a copy along to make sure it has a sensible value anyway.
  644. m4_defun([_LT_PROG_LTMAIN],
  645. [m4_ifdef([AC_REQUIRE_AUX_FILE], [AC_REQUIRE_AUX_FILE([ltmain.sh])])dnl
  646. _LT_CONFIG_LIBTOOL_INIT([ac_aux_dir='$ac_aux_dir'])
  647. ltmain="$ac_aux_dir/ltmain.sh"
  648. ])# _LT_PROG_LTMAIN
  649. # So that we can recreate a full libtool script including additional
  650. # tags, we accumulate the chunks of code to send to AC_CONFIG_COMMANDS
  651. # in macros and then make a single call at the end using the `libtool'
  652. # label.
  653. # _LT_CONFIG_LIBTOOL_INIT([INIT-COMMANDS])
  654. # ----------------------------------------
  655. # Register INIT-COMMANDS to be passed to AC_CONFIG_COMMANDS later.
  656. m4_define([_LT_CONFIG_LIBTOOL_INIT],
  657. [m4_ifval([$1],
  658. [m4_append([_LT_OUTPUT_LIBTOOL_INIT],
  659. [$1
  660. ])])])
  661. # Initialize.
  662. m4_define([_LT_OUTPUT_LIBTOOL_INIT])
  663. # _LT_CONFIG_LIBTOOL([COMMANDS])
  664. # ------------------------------
  665. # Register COMMANDS to be passed to AC_CONFIG_COMMANDS later.
  666. m4_define([_LT_CONFIG_LIBTOOL],
  667. [m4_ifval([$1],
  668. [m4_append([_LT_OUTPUT_LIBTOOL_COMMANDS],
  669. [$1
  670. ])])])
  671. # Initialize.
  672. m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS])
  673. # _LT_CONFIG_SAVE_COMMANDS([COMMANDS], [INIT_COMMANDS])
  674. # -----------------------------------------------------
  675. m4_defun([_LT_CONFIG_SAVE_COMMANDS],
  676. [_LT_CONFIG_LIBTOOL([$1])
  677. _LT_CONFIG_LIBTOOL_INIT([$2])
  678. ])
  679. # _LT_FORMAT_COMMENT([COMMENT])
  680. # -----------------------------
  681. # Add leading comment marks to the start of each line, and a trailing
  682. # full-stop to the whole comment if one is not present already.
  683. m4_define([_LT_FORMAT_COMMENT],
  684. [m4_ifval([$1], [
  685. m4_bpatsubst([m4_bpatsubst([$1], [^ *], [# ])],
  686. [['`$\]], [\\\&])]m4_bmatch([$1], [[!?.]$], [], [.])
  687. )])
  688. # _LT_DECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION], [IS-TAGGED?])
  689. # -------------------------------------------------------------------
  690. # CONFIGNAME is the name given to the value in the libtool script.
  691. # VARNAME is the (base) name used in the configure script.
  692. # VALUE may be 0, 1 or 2 for a computed quote escaped value based on
  693. # VARNAME. Any other value will be used directly.
  694. m4_define([_LT_DECL],
  695. [lt_if_append_uniq([lt_decl_varnames], [$2], [, ],
  696. [lt_dict_add_subkey([lt_decl_dict], [$2], [libtool_name],
  697. [m4_ifval([$1], [$1], [$2])])
  698. lt_dict_add_subkey([lt_decl_dict], [$2], [value], [$3])
  699. m4_ifval([$4],
  700. [lt_dict_add_subkey([lt_decl_dict], [$2], [description], [$4])])
  701. lt_dict_add_subkey([lt_decl_dict], [$2],
  702. [tagged?], [m4_ifval([$5], [yes], [no])])])
  703. ])
  704. # _LT_TAGDECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION])
  705. # --------------------------------------------------------
  706. m4_define([_LT_TAGDECL], [_LT_DECL([$1], [$2], [$3], [$4], [yes])])
  707. # lt_decl_tag_varnames([SEPARATOR], [VARNAME1...])
  708. # ------------------------------------------------
  709. m4_define([lt_decl_tag_varnames],
  710. [_lt_decl_filter([tagged?], [yes], $@)])
  711. # _lt_decl_filter(SUBKEY, VALUE, [SEPARATOR], [VARNAME1..])
  712. # ---------------------------------------------------------
  713. m4_define([_lt_decl_filter],
  714. [m4_case([$#],
  715. [0], [m4_fatal([$0: too few arguments: $#])],
  716. [1], [m4_fatal([$0: too few arguments: $#: $1])],
  717. [2], [lt_dict_filter([lt_decl_dict], [$1], [$2], [], lt_decl_varnames)],
  718. [3], [lt_dict_filter([lt_decl_dict], [$1], [$2], [$3], lt_decl_varnames)],
  719. [lt_dict_filter([lt_decl_dict], $@)])[]dnl
  720. ])
  721. # lt_decl_quote_varnames([SEPARATOR], [VARNAME1...])
  722. # --------------------------------------------------
  723. m4_define([lt_decl_quote_varnames],
  724. [_lt_decl_filter([value], [1], $@)])
  725. # lt_decl_dquote_varnames([SEPARATOR], [VARNAME1...])
  726. # ---------------------------------------------------
  727. m4_define([lt_decl_dquote_varnames],
  728. [_lt_decl_filter([value], [2], $@)])
  729. # lt_decl_varnames_tagged([SEPARATOR], [VARNAME1...])
  730. # ---------------------------------------------------
  731. m4_define([lt_decl_varnames_tagged],
  732. [m4_assert([$# <= 2])dnl
  733. _$0(m4_quote(m4_default([$1], [[, ]])),
  734. m4_ifval([$2], [[$2]], [m4_dquote(lt_decl_tag_varnames)]),
  735. m4_split(m4_normalize(m4_quote(_LT_TAGS)), [ ]))])
  736. m4_define([_lt_decl_varnames_tagged],
  737. [m4_ifval([$3], [lt_combine([$1], [$2], [_], $3)])])
  738. # lt_decl_all_varnames([SEPARATOR], [VARNAME1...])
  739. # ------------------------------------------------
  740. m4_define([lt_decl_all_varnames],
  741. [_$0(m4_quote(m4_default([$1], [[, ]])),
  742. m4_if([$2], [],
  743. m4_quote(lt_decl_varnames),
  744. m4_quote(m4_shift($@))))[]dnl
  745. ])
  746. m4_define([_lt_decl_all_varnames],
  747. [lt_join($@, lt_decl_varnames_tagged([$1],
  748. lt_decl_tag_varnames([[, ]], m4_shift($@))))dnl
  749. ])
  750. # _LT_CONFIG_STATUS_DECLARE([VARNAME])
  751. # ------------------------------------
  752. # Quote a variable value, and forward it to `config.status' so that its
  753. # declaration there will have the same value as in `configure'. VARNAME
  754. # must have a single quote delimited value for this to work.
  755. m4_define([_LT_CONFIG_STATUS_DECLARE],
  756. [$1='`$ECHO "$][$1" | $SED "$delay_single_quote_subst"`'])
  757. # _LT_CONFIG_STATUS_DECLARATIONS
  758. # ------------------------------
  759. # We delimit libtool config variables with single quotes, so when
  760. # we write them to config.status, we have to be sure to quote all
  761. # embedded single quotes properly. In configure, this macro expands
  762. # each variable declared with _LT_DECL (and _LT_TAGDECL) into:
  763. #
  764. # <var>='`$ECHO "$<var>" | $SED "$delay_single_quote_subst"`'
  765. m4_defun([_LT_CONFIG_STATUS_DECLARATIONS],
  766. [m4_foreach([_lt_var], m4_quote(lt_decl_all_varnames),
  767. [m4_n([_LT_CONFIG_STATUS_DECLARE(_lt_var)])])])
  768. # _LT_LIBTOOL_TAGS
  769. # ----------------
  770. # Output comment and list of tags supported by the script
  771. m4_defun([_LT_LIBTOOL_TAGS],
  772. [_LT_FORMAT_COMMENT([The names of the tagged configurations supported by this script])dnl
  773. available_tags="_LT_TAGS"dnl
  774. ])
  775. # _LT_LIBTOOL_DECLARE(VARNAME, [TAG])
  776. # -----------------------------------
  777. # Extract the dictionary values for VARNAME (optionally with TAG) and
  778. # expand to a commented shell variable setting:
  779. #
  780. # # Some comment about what VAR is for.
  781. # visible_name=$lt_internal_name
  782. m4_define([_LT_LIBTOOL_DECLARE],
  783. [_LT_FORMAT_COMMENT(m4_quote(lt_dict_fetch([lt_decl_dict], [$1],
  784. [description])))[]dnl
  785. m4_pushdef([_libtool_name],
  786. m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [libtool_name])))[]dnl
  787. m4_case(m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [value])),
  788. [0], [_libtool_name=[$]$1],
  789. [1], [_libtool_name=$lt_[]$1],
  790. [2], [_libtool_name=$lt_[]$1],
  791. [_libtool_name=lt_dict_fetch([lt_decl_dict], [$1], [value])])[]dnl
  792. m4_ifval([$2], [_$2])[]m4_popdef([_libtool_name])[]dnl
  793. ])
  794. # _LT_LIBTOOL_CONFIG_VARS
  795. # -----------------------
  796. # Produce commented declarations of non-tagged libtool config variables
  797. # suitable for insertion in the LIBTOOL CONFIG section of the `libtool'
  798. # script. Tagged libtool config variables (even for the LIBTOOL CONFIG
  799. # section) are produced by _LT_LIBTOOL_TAG_VARS.
  800. m4_defun([_LT_LIBTOOL_CONFIG_VARS],
  801. [m4_foreach([_lt_var],
  802. m4_quote(_lt_decl_filter([tagged?], [no], [], lt_decl_varnames)),
  803. [m4_n([_LT_LIBTOOL_DECLARE(_lt_var)])])])
  804. # _LT_LIBTOOL_TAG_VARS(TAG)
  805. # -------------------------
  806. m4_define([_LT_LIBTOOL_TAG_VARS],
  807. [m4_foreach([_lt_var], m4_quote(lt_decl_tag_varnames),
  808. [m4_n([_LT_LIBTOOL_DECLARE(_lt_var, [$1])])])])
  809. # _LT_TAGVAR(VARNAME, [TAGNAME])
  810. # ------------------------------
  811. m4_define([_LT_TAGVAR], [m4_ifval([$2], [$1_$2], [$1])])
  812. # _LT_CONFIG_COMMANDS
  813. # -------------------
  814. # Send accumulated output to $CONFIG_STATUS. Thanks to the lists of
  815. # variables for single and double quote escaping we saved from calls
  816. # to _LT_DECL, we can put quote escaped variables declarations
  817. # into `config.status', and then the shell code to quote escape them in
  818. # for loops in `config.status'. Finally, any additional code accumulated
  819. # from calls to _LT_CONFIG_LIBTOOL_INIT is expanded.
  820. m4_defun([_LT_CONFIG_COMMANDS],
  821. [AC_PROVIDE_IFELSE([LT_OUTPUT],
  822. dnl If the libtool generation code has been placed in $CONFIG_LT,
  823. dnl instead of duplicating it all over again into config.status,
  824. dnl then we will have config.status run $CONFIG_LT later, so it
  825. dnl needs to know what name is stored there:
  826. [AC_CONFIG_COMMANDS([libtool],
  827. [$SHELL $CONFIG_LT || AS_EXIT(1)], [CONFIG_LT='$CONFIG_LT'])],
  828. dnl If the libtool generation code is destined for config.status,
  829. dnl expand the accumulated commands and init code now:
  830. [AC_CONFIG_COMMANDS([libtool],
  831. [_LT_OUTPUT_LIBTOOL_COMMANDS], [_LT_OUTPUT_LIBTOOL_COMMANDS_INIT])])
  832. ])#_LT_CONFIG_COMMANDS
  833. # Initialize.
  834. m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS_INIT],
  835. [
  836. # The HP-UX ksh and POSIX shell print the target directory to stdout
  837. # if CDPATH is set.
  838. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  839. sed_quote_subst='$sed_quote_subst'
  840. double_quote_subst='$double_quote_subst'
  841. delay_variable_subst='$delay_variable_subst'
  842. _LT_CONFIG_STATUS_DECLARATIONS
  843. LTCC='$LTCC'
  844. LTCFLAGS='$LTCFLAGS'
  845. compiler='$compiler_DEFAULT'
  846. # A function that is used when there is no print builtin or printf.
  847. func_fallback_echo ()
  848. {
  849. eval 'cat <<_LTECHO_EOF
  850. \$[]1
  851. _LTECHO_EOF'
  852. }
  853. # Quote evaled strings.
  854. for var in lt_decl_all_varnames([[ \
  855. ]], lt_decl_quote_varnames); do
  856. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  857. *[[\\\\\\\`\\"\\\$]]*)
  858. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
  859. ;;
  860. *)
  861. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  862. ;;
  863. esac
  864. done
  865. # Double-quote double-evaled strings.
  866. for var in lt_decl_all_varnames([[ \
  867. ]], lt_decl_dquote_varnames); do
  868. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  869. *[[\\\\\\\`\\"\\\$]]*)
  870. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
  871. ;;
  872. *)
  873. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  874. ;;
  875. esac
  876. done
  877. _LT_OUTPUT_LIBTOOL_INIT
  878. ])
  879. # _LT_GENERATED_FILE_INIT(FILE, [COMMENT])
  880. # ------------------------------------
  881. # Generate a child script FILE with all initialization necessary to
  882. # reuse the environment learned by the parent script, and make the
  883. # file executable. If COMMENT is supplied, it is inserted after the
  884. # `#!' sequence but before initialization text begins. After this
  885. # macro, additional text can be appended to FILE to form the body of
  886. # the child script. The macro ends with non-zero status if the
  887. # file could not be fully written (such as if the disk is full).
  888. m4_ifdef([AS_INIT_GENERATED],
  889. [m4_defun([_LT_GENERATED_FILE_INIT],[AS_INIT_GENERATED($@)])],
  890. [m4_defun([_LT_GENERATED_FILE_INIT],
  891. [m4_require([AS_PREPARE])]dnl
  892. [m4_pushdef([AS_MESSAGE_LOG_FD])]dnl
  893. [lt_write_fail=0
  894. cat >$1 <<_ASEOF || lt_write_fail=1
  895. #! $SHELL
  896. # Generated by $as_me.
  897. $2
  898. SHELL=\${CONFIG_SHELL-$SHELL}
  899. export SHELL
  900. _ASEOF
  901. cat >>$1 <<\_ASEOF || lt_write_fail=1
  902. AS_SHELL_SANITIZE
  903. _AS_PREPARE
  904. exec AS_MESSAGE_FD>&1
  905. _ASEOF
  906. test $lt_write_fail = 0 && chmod +x $1[]dnl
  907. m4_popdef([AS_MESSAGE_LOG_FD])])])# _LT_GENERATED_FILE_INIT
  908. # LT_OUTPUT
  909. # ---------
  910. # This macro allows early generation of the libtool script (before
  911. # AC_OUTPUT is called), incase it is used in configure for compilation
  912. # tests.
  913. AC_DEFUN([LT_OUTPUT],
  914. [: ${CONFIG_LT=./config.lt}
  915. AC_MSG_NOTICE([creating $CONFIG_LT])
  916. _LT_GENERATED_FILE_INIT(["$CONFIG_LT"],
  917. [# Run this file to recreate a libtool stub with the current configuration.])
  918. cat >>"$CONFIG_LT" <<\_LTEOF
  919. lt_cl_silent=false
  920. exec AS_MESSAGE_LOG_FD>>config.log
  921. {
  922. echo
  923. AS_BOX([Running $as_me.])
  924. } >&AS_MESSAGE_LOG_FD
  925. lt_cl_help="\
  926. \`$as_me' creates a local libtool stub from the current configuration,
  927. for use in further configure time tests before the real libtool is
  928. generated.
  929. Usage: $[0] [[OPTIONS]]
  930. -h, --help print this help, then exit
  931. -V, --version print version number, then exit
  932. -q, --quiet do not print progress messages
  933. -d, --debug don't remove temporary files
  934. Report bugs to <bug-libtool@gnu.org>."
  935. lt_cl_version="\
  936. m4_ifset([AC_PACKAGE_NAME], [AC_PACKAGE_NAME ])config.lt[]dnl
  937. m4_ifset([AC_PACKAGE_VERSION], [ AC_PACKAGE_VERSION])
  938. configured by $[0], generated by m4_PACKAGE_STRING.
  939. Copyright (C) 2010 Free Software Foundation, Inc.
  940. This config.lt script is free software; the Free Software Foundation
  941. gives unlimited permision to copy, distribute and modify it."
  942. while test $[#] != 0
  943. do
  944. case $[1] in
  945. --version | --v* | -V )
  946. echo "$lt_cl_version"; exit 0 ;;
  947. --help | --h* | -h )
  948. echo "$lt_cl_help"; exit 0 ;;
  949. --debug | --d* | -d )
  950. debug=: ;;
  951. --quiet | --q* | --silent | --s* | -q )
  952. lt_cl_silent=: ;;
  953. -*) AC_MSG_ERROR([unrecognized option: $[1]
  954. Try \`$[0] --help' for more information.]) ;;
  955. *) AC_MSG_ERROR([unrecognized argument: $[1]
  956. Try \`$[0] --help' for more information.]) ;;
  957. esac
  958. shift
  959. done
  960. if $lt_cl_silent; then
  961. exec AS_MESSAGE_FD>/dev/null
  962. fi
  963. _LTEOF
  964. cat >>"$CONFIG_LT" <<_LTEOF
  965. _LT_OUTPUT_LIBTOOL_COMMANDS_INIT
  966. _LTEOF
  967. cat >>"$CONFIG_LT" <<\_LTEOF
  968. AC_MSG_NOTICE([creating $ofile])
  969. _LT_OUTPUT_LIBTOOL_COMMANDS
  970. AS_EXIT(0)
  971. _LTEOF
  972. chmod +x "$CONFIG_LT"
  973. # configure is writing to config.log, but config.lt does its own redirection,
  974. # appending to config.log, which fails on DOS, as config.log is still kept
  975. # open by configure. Here we exec the FD to /dev/null, effectively closing
  976. # config.log, so it can be properly (re)opened and appended to by config.lt.
  977. lt_cl_success=:
  978. test "$silent" = yes &&
  979. lt_config_lt_args="$lt_config_lt_args --quiet"
  980. exec AS_MESSAGE_LOG_FD>/dev/null
  981. $SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false
  982. exec AS_MESSAGE_LOG_FD>>config.log
  983. $lt_cl_success || AS_EXIT(1)
  984. ])# LT_OUTPUT
  985. # _LT_CONFIG(TAG)
  986. # ---------------
  987. # If TAG is the built-in tag, create an initial libtool script with a
  988. # default configuration from the untagged config vars. Otherwise add code
  989. # to config.status for appending the configuration named by TAG from the
  990. # matching tagged config vars.
  991. m4_defun([_LT_CONFIG],
  992. [m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  993. _LT_CONFIG_SAVE_COMMANDS([
  994. m4_define([_LT_TAG], m4_if([$1], [], [C], [$1]))dnl
  995. m4_if(_LT_TAG, [C], [
  996. # See if we are running on zsh, and set the options which allow our
  997. # commands through without removal of \ escapes.
  998. if test -n "${ZSH_VERSION+set}" ; then
  999. setopt NO_GLOB_SUBST
  1000. fi
  1001. cfgfile="${ofile}T"
  1002. trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  1003. $RM "$cfgfile"
  1004. cat <<_LT_EOF >> "$cfgfile"
  1005. #! $SHELL
  1006. # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  1007. # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
  1008. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  1009. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  1010. #
  1011. _LT_COPYING
  1012. _LT_LIBTOOL_TAGS
  1013. # ### BEGIN LIBTOOL CONFIG
  1014. _LT_LIBTOOL_CONFIG_VARS
  1015. _LT_LIBTOOL_TAG_VARS
  1016. # ### END LIBTOOL CONFIG
  1017. _LT_EOF
  1018. case $host_os in
  1019. aix3*)
  1020. cat <<\_LT_EOF >> "$cfgfile"
  1021. # AIX sometimes has problems with the GCC collect2 program. For some
  1022. # reason, if we set the COLLECT_NAMES environment variable, the problems
  1023. # vanish in a puff of smoke.
  1024. if test "X${COLLECT_NAMES+set}" != Xset; then
  1025. COLLECT_NAMES=
  1026. export COLLECT_NAMES
  1027. fi
  1028. _LT_EOF
  1029. ;;
  1030. esac
  1031. _LT_PROG_LTMAIN
  1032. # We use sed instead of cat because bash on DJGPP gets confused if
  1033. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  1034. # text mode, it properly converts lines to CR/LF. This bash problem
  1035. # is reportedly fixed, but why not run on old versions too?
  1036. sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
  1037. || (rm -f "$cfgfile"; exit 1)
  1038. _LT_PROG_XSI_SHELLFNS
  1039. sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
  1040. || (rm -f "$cfgfile"; exit 1)
  1041. mv -f "$cfgfile" "$ofile" ||
  1042. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  1043. chmod +x "$ofile"
  1044. ],
  1045. [cat <<_LT_EOF >> "$ofile"
  1046. dnl Unfortunately we have to use $1 here, since _LT_TAG is not expanded
  1047. dnl in a comment (ie after a #).
  1048. # ### BEGIN LIBTOOL TAG CONFIG: $1
  1049. _LT_LIBTOOL_TAG_VARS(_LT_TAG)
  1050. # ### END LIBTOOL TAG CONFIG: $1
  1051. _LT_EOF
  1052. ])dnl /m4_if
  1053. ],
  1054. [m4_if([$1], [], [
  1055. PACKAGE='$PACKAGE'
  1056. VERSION='$VERSION'
  1057. TIMESTAMP='$TIMESTAMP'
  1058. RM='$RM'
  1059. ofile='$ofile'], [])
  1060. ])dnl /_LT_CONFIG_SAVE_COMMANDS
  1061. ])# _LT_CONFIG
  1062. # LT_SUPPORTED_TAG(TAG)
  1063. # ---------------------
  1064. # Trace this macro to discover what tags are supported by the libtool
  1065. # --tag option, using:
  1066. # autoconf --trace 'LT_SUPPORTED_TAG:$1'
  1067. AC_DEFUN([LT_SUPPORTED_TAG], [])
  1068. # C support is built-in for now
  1069. m4_define([_LT_LANG_C_enabled], [])
  1070. m4_define([_LT_TAGS], [])
  1071. # LT_LANG(LANG)
  1072. # -------------
  1073. # Enable libtool support for the given language if not already enabled.
  1074. AC_DEFUN([LT_LANG],
  1075. [AC_BEFORE([$0], [LT_OUTPUT])dnl
  1076. m4_case([$1],
  1077. [C], [_LT_LANG(C)],
  1078. [C++], [_LT_LANG(CXX)],
  1079. [Java], [_LT_LANG(GCJ)],
  1080. [Fortran 77], [_LT_LANG(F77)],
  1081. [Fortran], [_LT_LANG(FC)],
  1082. [Windows Resource], [_LT_LANG(RC)],
  1083. [m4_ifdef([_LT_LANG_]$1[_CONFIG],
  1084. [_LT_LANG($1)],
  1085. [m4_fatal([$0: unsupported language: "$1"])])])dnl
  1086. ])# LT_LANG
  1087. # _LT_LANG(LANGNAME)
  1088. # ------------------
  1089. m4_defun([_LT_LANG],
  1090. [m4_ifdef([_LT_LANG_]$1[_enabled], [],
  1091. [LT_SUPPORTED_TAG([$1])dnl
  1092. m4_append([_LT_TAGS], [$1 ])dnl
  1093. m4_define([_LT_LANG_]$1[_enabled], [])dnl
  1094. _LT_LANG_$1_CONFIG($1)])dnl
  1095. ])# _LT_LANG
  1096. # _LT_LANG_DEFAULT_CONFIG
  1097. # -----------------------
  1098. m4_defun([_LT_LANG_DEFAULT_CONFIG],
  1099. [AC_PROVIDE_IFELSE([AC_PROG_CXX],
  1100. [LT_LANG(CXX)],
  1101. [m4_define([AC_PROG_CXX], defn([AC_PROG_CXX])[LT_LANG(CXX)])])
  1102. AC_PROVIDE_IFELSE([AC_PROG_F77],
  1103. [LT_LANG(F77)],
  1104. [m4_define([AC_PROG_F77], defn([AC_PROG_F77])[LT_LANG(F77)])])
  1105. AC_PROVIDE_IFELSE([AC_PROG_FC],
  1106. [LT_LANG(FC)],
  1107. [m4_define([AC_PROG_FC], defn([AC_PROG_FC])[LT_LANG(FC)])])
  1108. dnl The call to [A][M_PROG_GCJ] is quoted like that to stop aclocal
  1109. dnl pulling things in needlessly.
  1110. AC_PROVIDE_IFELSE([AC_PROG_GCJ],
  1111. [LT_LANG(GCJ)],
  1112. [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],
  1113. [LT_LANG(GCJ)],
  1114. [AC_PROVIDE_IFELSE([LT_PROG_GCJ],
  1115. [LT_LANG(GCJ)],
  1116. [m4_ifdef([AC_PROG_GCJ],
  1117. [m4_define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[LT_LANG(GCJ)])])
  1118. m4_ifdef([A][M_PROG_GCJ],
  1119. [m4_define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[LT_LANG(GCJ)])])
  1120. m4_ifdef([LT_PROG_GCJ],
  1121. [m4_define([LT_PROG_GCJ], defn([LT_PROG_GCJ])[LT_LANG(GCJ)])])])])])
  1122. AC_PROVIDE_IFELSE([LT_PROG_RC],
  1123. [LT_LANG(RC)],
  1124. [m4_define([LT_PROG_RC], defn([LT_PROG_RC])[LT_LANG(RC)])])
  1125. ])# _LT_LANG_DEFAULT_CONFIG
  1126. # Obsolete macros:
  1127. AU_DEFUN([AC_LIBTOOL_CXX], [LT_LANG(C++)])
  1128. AU_DEFUN([AC_LIBTOOL_F77], [LT_LANG(Fortran 77)])
  1129. AU_DEFUN([AC_LIBTOOL_FC], [LT_LANG(Fortran)])
  1130. AU_DEFUN([AC_LIBTOOL_GCJ], [LT_LANG(Java)])
  1131. AU_DEFUN([AC_LIBTOOL_RC], [LT_LANG(Windows Resource)])
  1132. dnl aclocal-1.4 backwards compatibility:
  1133. dnl AC_DEFUN([AC_LIBTOOL_CXX], [])
  1134. dnl AC_DEFUN([AC_LIBTOOL_F77], [])
  1135. dnl AC_DEFUN([AC_LIBTOOL_FC], [])
  1136. dnl AC_DEFUN([AC_LIBTOOL_GCJ], [])
  1137. dnl AC_DEFUN([AC_LIBTOOL_RC], [])
  1138. # _LT_TAG_COMPILER
  1139. # ----------------
  1140. m4_defun([_LT_TAG_COMPILER],
  1141. [AC_REQUIRE([AC_PROG_CC])dnl
  1142. _LT_DECL([LTCC], [CC], [1], [A C compiler])dnl
  1143. _LT_DECL([LTCFLAGS], [CFLAGS], [1], [LTCC compiler flags])dnl
  1144. _LT_TAGDECL([CC], [compiler], [1], [A language specific compiler])dnl
  1145. _LT_TAGDECL([with_gcc], [GCC], [0], [Is the compiler the GNU compiler?])dnl
  1146. # If no C compiler was specified, use CC.
  1147. LTCC=${LTCC-"$CC"}
  1148. # If no C compiler flags were specified, use CFLAGS.
  1149. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  1150. # Allow CC to be a program name with arguments.
  1151. compiler=$CC
  1152. ])# _LT_TAG_COMPILER
  1153. # _LT_COMPILER_BOILERPLATE
  1154. # ------------------------
  1155. # Check for compiler boilerplate output or warnings with
  1156. # the simple compiler test code.
  1157. m4_defun([_LT_COMPILER_BOILERPLATE],
  1158. [m4_require([_LT_DECL_SED])dnl
  1159. ac_outfile=conftest.$ac_objext
  1160. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  1161. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  1162. _lt_compiler_boilerplate=`cat conftest.err`
  1163. $RM conftest*
  1164. ])# _LT_COMPILER_BOILERPLATE
  1165. # _LT_LINKER_BOILERPLATE
  1166. # ----------------------
  1167. # Check for linker boilerplate output or warnings with
  1168. # the simple link test code.
  1169. m4_defun([_LT_LINKER_BOILERPLATE],
  1170. [m4_require([_LT_DECL_SED])dnl
  1171. ac_outfile=conftest.$ac_objext
  1172. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  1173. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  1174. _lt_linker_boilerplate=`cat conftest.err`
  1175. $RM -r conftest*
  1176. ])# _LT_LINKER_BOILERPLATE
  1177. # _LT_REQUIRED_DARWIN_CHECKS
  1178. # -------------------------
  1179. m4_defun_once([_LT_REQUIRED_DARWIN_CHECKS],[
  1180. case $host_os in
  1181. rhapsody* | darwin*)
  1182. AC_CHECK_TOOL([DSYMUTIL], [dsymutil], [:])
  1183. AC_CHECK_TOOL([NMEDIT], [nmedit], [:])
  1184. AC_CHECK_TOOL([LIPO], [lipo], [:])
  1185. AC_CHECK_TOOL([OTOOL], [otool], [:])
  1186. AC_CHECK_TOOL([OTOOL64], [otool64], [:])
  1187. _LT_DECL([], [DSYMUTIL], [1],
  1188. [Tool to manipulate archived DWARF debug symbol files on Mac OS X])
  1189. _LT_DECL([], [NMEDIT], [1],
  1190. [Tool to change global to local symbols on Mac OS X])
  1191. _LT_DECL([], [LIPO], [1],
  1192. [Tool to manipulate fat objects and archives on Mac OS X])
  1193. _LT_DECL([], [OTOOL], [1],
  1194. [ldd/readelf like tool for Mach-O binaries on Mac OS X])
  1195. _LT_DECL([], [OTOOL64], [1],
  1196. [ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4])
  1197. AC_CACHE_CHECK([for -single_module linker flag],[lt_cv_apple_cc_single_mod],
  1198. [lt_cv_apple_cc_single_mod=no
  1199. if test -z "${LT_MULTI_MODULE}"; then
  1200. # By default we will add the -single_module flag. You can override
  1201. # by either setting the environment variable LT_MULTI_MODULE
  1202. # non-empty at configure time, or by adding -multi_module to the
  1203. # link flags.
  1204. rm -rf libconftest.dylib*
  1205. echo "int foo(void){return 1;}" > conftest.c
  1206. echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  1207. -dynamiclib -Wl,-single_module conftest.c" >&AS_MESSAGE_LOG_FD
  1208. $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  1209. -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  1210. _lt_result=$?
  1211. if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
  1212. lt_cv_apple_cc_single_mod=yes
  1213. else
  1214. cat conftest.err >&AS_MESSAGE_LOG_FD
  1215. fi
  1216. rm -rf libconftest.dylib*
  1217. rm -f conftest.*
  1218. fi])
  1219. AC_CACHE_CHECK([for -exported_symbols_list linker flag],
  1220. [lt_cv_ld_exported_symbols_list],
  1221. [lt_cv_ld_exported_symbols_list=no
  1222. save_LDFLAGS=$LDFLAGS
  1223. echo "_main" > conftest.sym
  1224. LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  1225. AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
  1226. [lt_cv_ld_exported_symbols_list=yes],
  1227. [lt_cv_ld_exported_symbols_list=no])
  1228. LDFLAGS="$save_LDFLAGS"
  1229. ])
  1230. AC_CACHE_CHECK([for -force_load linker flag],[lt_cv_ld_force_load],
  1231. [lt_cv_ld_force_load=no
  1232. cat > conftest.c << _LT_EOF
  1233. int forced_loaded() { return 2;}
  1234. _LT_EOF
  1235. echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&AS_MESSAGE_LOG_FD
  1236. $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&AS_MESSAGE_LOG_FD
  1237. echo "$AR cru libconftest.a conftest.o" >&AS_MESSAGE_LOG_FD
  1238. $AR cru libconftest.a conftest.o 2>&AS_MESSAGE_LOG_FD
  1239. echo "$RANLIB libconftest.a" >&AS_MESSAGE_LOG_FD
  1240. $RANLIB libconftest.a 2>&AS_MESSAGE_LOG_FD
  1241. cat > conftest.c << _LT_EOF
  1242. int main() { return 0;}
  1243. _LT_EOF
  1244. echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&AS_MESSAGE_LOG_FD
  1245. $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
  1246. _lt_result=$?
  1247. if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
  1248. lt_cv_ld_force_load=yes
  1249. else
  1250. cat conftest.err >&AS_MESSAGE_LOG_FD
  1251. fi
  1252. rm -f conftest.err libconftest.a conftest conftest.c
  1253. rm -rf conftest.dSYM
  1254. ])
  1255. case $host_os in
  1256. rhapsody* | darwin1.[[012]])
  1257. _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
  1258. darwin1.*)
  1259. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  1260. darwin*) # darwin 5.x on
  1261. # if running on 10.5 or later, the deployment target defaults
  1262. # to the OS version, if on x86, and 10.4, the deployment
  1263. # target defaults to 10.4. Don't you love it?
  1264. case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
  1265. 10.0,*86*-darwin8*|10.0,*-darwin[[91]]*)
  1266. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  1267. 10.[[012]]*)
  1268. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  1269. 10.*)
  1270. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  1271. esac
  1272. ;;
  1273. esac
  1274. if test "$lt_cv_apple_cc_single_mod" = "yes"; then
  1275. _lt_dar_single_mod='$single_module'
  1276. fi
  1277. if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
  1278. _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
  1279. else
  1280. _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
  1281. fi
  1282. if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
  1283. _lt_dsymutil='~$DSYMUTIL $lib || :'
  1284. else
  1285. _lt_dsymutil=
  1286. fi
  1287. ;;
  1288. esac
  1289. ])
  1290. # _LT_DARWIN_LINKER_FEATURES
  1291. # --------------------------
  1292. # Checks for linker and compiler features on darwin
  1293. m4_defun([_LT_DARWIN_LINKER_FEATURES],
  1294. [
  1295. m4_require([_LT_REQUIRED_DARWIN_CHECKS])
  1296. _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  1297. _LT_TAGVAR(hardcode_direct, $1)=no
  1298. _LT_TAGVAR(hardcode_automatic, $1)=yes
  1299. _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
  1300. if test "$lt_cv_ld_force_load" = "yes"; then
  1301. _LT_TAGVAR(whole_archive_flag_spec, $1)='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
  1302. else
  1303. _LT_TAGVAR(whole_archive_flag_spec, $1)=''
  1304. fi
  1305. _LT_TAGVAR(link_all_deplibs, $1)=yes
  1306. _LT_TAGVAR(allow_undefined_flag, $1)="$_lt_dar_allow_undefined"
  1307. case $cc_basename in
  1308. ifort*) _lt_dar_can_shared=yes ;;
  1309. *) _lt_dar_can_shared=$GCC ;;
  1310. esac
  1311. if test "$_lt_dar_can_shared" = "yes"; then
  1312. output_verbose_link_cmd=func_echo_all
  1313. _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}"
  1314. _LT_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  1315. _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}"
  1316. _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}"
  1317. m4_if([$1], [CXX],
  1318. [ if test "$lt_cv_apple_cc_single_mod" != "yes"; then
  1319. _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}"
  1320. _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}"
  1321. fi
  1322. ],[])
  1323. else
  1324. _LT_TAGVAR(ld_shlibs, $1)=no
  1325. fi
  1326. ])
  1327. # _LT_SYS_MODULE_PATH_AIX
  1328. # -----------------------
  1329. # Links a minimal program and checks the executable
  1330. # for the system default hardcoded library path. In most cases,
  1331. # this is /usr/lib:/lib, but when the MPI compilers are used
  1332. # the location of the communication and MPI libs are included too.
  1333. # If we don't find anything, use the default library path according
  1334. # to the aix ld manual.
  1335. m4_defun([_LT_SYS_MODULE_PATH_AIX],
  1336. [m4_require([_LT_DECL_SED])dnl
  1337. AC_LINK_IFELSE(AC_LANG_PROGRAM,[
  1338. lt_aix_libpath_sed='
  1339. /Import File Strings/,/^$/ {
  1340. /^0/ {
  1341. s/^0 *\(.*\)$/\1/
  1342. p
  1343. }
  1344. }'
  1345. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  1346. # Check for a 64-bit object if we didn't find anything.
  1347. if test -z "$aix_libpath"; then
  1348. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  1349. fi],[])
  1350. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  1351. ])# _LT_SYS_MODULE_PATH_AIX
  1352. # _LT_SHELL_INIT(ARG)
  1353. # -------------------
  1354. m4_define([_LT_SHELL_INIT],
  1355. [m4_divert_text([M4SH-INIT], [$1
  1356. ])])# _LT_SHELL_INIT
  1357. # _LT_PROG_ECHO_BACKSLASH
  1358. # -----------------------
  1359. # Find how we can fake an echo command that does not interpret backslash.
  1360. # In particular, with Autoconf 2.60 or later we add some code to the start
  1361. # of the generated configure script which will find a shell with a builtin
  1362. # printf (which we can use as an echo command).
  1363. m4_defun([_LT_PROG_ECHO_BACKSLASH],
  1364. [ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  1365. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
  1366. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
  1367. AC_MSG_CHECKING([how to print strings])
  1368. # Test print first, because it will be a builtin if present.
  1369. if test "X`print -r -- -n 2>/dev/null`" = X-n && \
  1370. test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
  1371. ECHO='print -r --'
  1372. elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
  1373. ECHO='printf %s\n'
  1374. else
  1375. # Use this function as a fallback that always works.
  1376. func_fallback_echo ()
  1377. {
  1378. eval 'cat <<_LTECHO_EOF
  1379. $[]1
  1380. _LTECHO_EOF'
  1381. }
  1382. ECHO='func_fallback_echo'
  1383. fi
  1384. # func_echo_all arg...
  1385. # Invoke $ECHO with all args, space-separated.
  1386. func_echo_all ()
  1387. {
  1388. $ECHO "$*"
  1389. }
  1390. case "$ECHO" in
  1391. printf*) AC_MSG_RESULT([printf]) ;;
  1392. print*) AC_MSG_RESULT([print -r]) ;;
  1393. *) AC_MSG_RESULT([cat]) ;;
  1394. esac
  1395. m4_ifdef([_AS_DETECT_SUGGESTED],
  1396. [_AS_DETECT_SUGGESTED([
  1397. test -n "${ZSH_VERSION+set}${BASH_VERSION+set}" || (
  1398. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  1399. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
  1400. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
  1401. PATH=/empty FPATH=/empty; export PATH FPATH
  1402. test "X`printf %s $ECHO`" = "X$ECHO" \
  1403. || test "X`print -r -- $ECHO`" = "X$ECHO" )])])
  1404. _LT_DECL([], [SHELL], [1], [Shell to use when invoking shell scripts])
  1405. _LT_DECL([], [ECHO], [1], [An echo program that protects backslashes])
  1406. ])# _LT_PROG_ECHO_BACKSLASH
  1407. # _LT_ENABLE_LOCK
  1408. # ---------------
  1409. m4_defun([_LT_ENABLE_LOCK],
  1410. [AC_ARG_ENABLE([libtool-lock],
  1411. [AS_HELP_STRING([--disable-libtool-lock],
  1412. [avoid locking (might break parallel builds)])])
  1413. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  1414. # Some flags need to be propagated to the compiler or linker for good
  1415. # libtool support.
  1416. case $host in
  1417. ia64-*-hpux*)
  1418. # Find out which ABI we are using.
  1419. echo 'int i;' > conftest.$ac_ext
  1420. if AC_TRY_EVAL(ac_compile); then
  1421. case `/usr/bin/file conftest.$ac_objext` in
  1422. *ELF-32*)
  1423. HPUX_IA64_MODE="32"
  1424. ;;
  1425. *ELF-64*)
  1426. HPUX_IA64_MODE="64"
  1427. ;;
  1428. esac
  1429. fi
  1430. rm -rf conftest*
  1431. ;;
  1432. *-*-irix6*)
  1433. # Find out which ABI we are using.
  1434. echo '[#]line '$LINENO' "configure"' > conftest.$ac_ext
  1435. if AC_TRY_EVAL(ac_compile); then
  1436. if test "$lt_cv_prog_gnu_ld" = yes; then
  1437. case `/usr/bin/file conftest.$ac_objext` in
  1438. *32-bit*)
  1439. LD="${LD-ld} -melf32bsmip"
  1440. ;;
  1441. *N32*)
  1442. LD="${LD-ld} -melf32bmipn32"
  1443. ;;
  1444. *64-bit*)
  1445. LD="${LD-ld} -melf64bmip"
  1446. ;;
  1447. esac
  1448. else
  1449. case `/usr/bin/file conftest.$ac_objext` in
  1450. *32-bit*)
  1451. LD="${LD-ld} -32"
  1452. ;;
  1453. *N32*)
  1454. LD="${LD-ld} -n32"
  1455. ;;
  1456. *64-bit*)
  1457. LD="${LD-ld} -64"
  1458. ;;
  1459. esac
  1460. fi
  1461. fi
  1462. rm -rf conftest*
  1463. ;;
  1464. x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
  1465. s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  1466. # Find out which ABI we are using.
  1467. echo 'int i;' > conftest.$ac_ext
  1468. if AC_TRY_EVAL(ac_compile); then
  1469. case `/usr/bin/file conftest.o` in
  1470. *32-bit*)
  1471. case $host in
  1472. x86_64-*kfreebsd*-gnu)
  1473. LD="${LD-ld} -m elf_i386_fbsd"
  1474. ;;
  1475. x86_64-*linux*)
  1476. LD="${LD-ld} -m elf_i386"
  1477. ;;
  1478. ppc64-*linux*|powerpc64-*linux*)
  1479. LD="${LD-ld} -m elf32ppclinux"
  1480. ;;
  1481. s390x-*linux*)
  1482. LD="${LD-ld} -m elf_s390"
  1483. ;;
  1484. sparc64-*linux*)
  1485. LD="${LD-ld} -m elf32_sparc"
  1486. ;;
  1487. esac
  1488. ;;
  1489. *64-bit*)
  1490. case $host in
  1491. x86_64-*kfreebsd*-gnu)
  1492. LD="${LD-ld} -m elf_x86_64_fbsd"
  1493. ;;
  1494. x86_64-*linux*)
  1495. LD="${LD-ld} -m elf_x86_64"
  1496. ;;
  1497. ppc*-*linux*|powerpc*-*linux*)
  1498. LD="${LD-ld} -m elf64ppc"
  1499. ;;
  1500. s390*-*linux*|s390*-*tpf*)
  1501. LD="${LD-ld} -m elf64_s390"
  1502. ;;
  1503. sparc*-*linux*)
  1504. LD="${LD-ld} -m elf64_sparc"
  1505. ;;
  1506. esac
  1507. ;;
  1508. esac
  1509. fi
  1510. rm -rf conftest*
  1511. ;;
  1512. *-*-sco3.2v5*)
  1513. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  1514. SAVE_CFLAGS="$CFLAGS"
  1515. CFLAGS="$CFLAGS -belf"
  1516. AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf,
  1517. [AC_LANG_PUSH(C)
  1518. AC_LINK_IFELSE([AC_LANG_PROGRAM([[]],[[]])],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])
  1519. AC_LANG_POP])
  1520. if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  1521. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  1522. CFLAGS="$SAVE_CFLAGS"
  1523. fi
  1524. ;;
  1525. sparc*-*solaris*)
  1526. # Find out which ABI we are using.
  1527. echo 'int i;' > conftest.$ac_ext
  1528. if AC_TRY_EVAL(ac_compile); then
  1529. case `/usr/bin/file conftest.o` in
  1530. *64-bit*)
  1531. case $lt_cv_prog_gnu_ld in
  1532. yes*) LD="${LD-ld} -m elf64_sparc" ;;
  1533. *)
  1534. if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  1535. LD="${LD-ld} -64"
  1536. fi
  1537. ;;
  1538. esac
  1539. ;;
  1540. esac
  1541. fi
  1542. rm -rf conftest*
  1543. ;;
  1544. esac
  1545. need_locks="$enable_libtool_lock"
  1546. ])# _LT_ENABLE_LOCK
  1547. # _LT_CMD_OLD_ARCHIVE
  1548. # -------------------
  1549. m4_defun([_LT_CMD_OLD_ARCHIVE],
  1550. [AC_CHECK_TOOL(AR, ar, false)
  1551. test -z "$AR" && AR=ar
  1552. test -z "$AR_FLAGS" && AR_FLAGS=cru
  1553. _LT_DECL([], [AR], [1], [The archiver])
  1554. _LT_DECL([], [AR_FLAGS], [1])
  1555. AC_CHECK_TOOL(STRIP, strip, :)
  1556. test -z "$STRIP" && STRIP=:
  1557. _LT_DECL([], [STRIP], [1], [A symbol stripping program])
  1558. AC_CHECK_TOOL(RANLIB, ranlib, :)
  1559. test -z "$RANLIB" && RANLIB=:
  1560. _LT_DECL([], [RANLIB], [1],
  1561. [Commands used to install an old-style archive])
  1562. # Determine commands to create old-style static archives.
  1563. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  1564. old_postinstall_cmds='chmod 644 $oldlib'
  1565. old_postuninstall_cmds=
  1566. if test -n "$RANLIB"; then
  1567. case $host_os in
  1568. openbsd*)
  1569. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
  1570. ;;
  1571. *)
  1572. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
  1573. ;;
  1574. esac
  1575. old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
  1576. fi
  1577. case $host_os in
  1578. darwin*)
  1579. lock_old_archive_extraction=yes ;;
  1580. *)
  1581. lock_old_archive_extraction=no ;;
  1582. esac
  1583. _LT_DECL([], [old_postinstall_cmds], [2])
  1584. _LT_DECL([], [old_postuninstall_cmds], [2])
  1585. _LT_TAGDECL([], [old_archive_cmds], [2],
  1586. [Commands used to build an old-style archive])
  1587. _LT_DECL([], [lock_old_archive_extraction], [0],
  1588. [Whether to use a lock for old archive extraction])
  1589. ])# _LT_CMD_OLD_ARCHIVE
  1590. # _LT_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
  1591. # [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE])
  1592. # ----------------------------------------------------------------
  1593. # Check whether the given compiler option works
  1594. AC_DEFUN([_LT_COMPILER_OPTION],
  1595. [m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  1596. m4_require([_LT_DECL_SED])dnl
  1597. AC_CACHE_CHECK([$1], [$2],
  1598. [$2=no
  1599. m4_if([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4])
  1600. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  1601. lt_compiler_flag="$3"
  1602. # Insert the option either (1) after the last *FLAGS variable, or
  1603. # (2) before a word containing "conftest.", or (3) at the end.
  1604. # Note that $ac_compile itself does not contain backslashes and begins
  1605. # with a dollar sign (not a hyphen), so the echo should work correctly.
  1606. # The option is referenced via a variable to avoid confusing sed.
  1607. lt_compile=`echo "$ac_compile" | $SED \
  1608. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  1609. -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
  1610. -e 's:$: $lt_compiler_flag:'`
  1611. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
  1612. (eval "$lt_compile" 2>conftest.err)
  1613. ac_status=$?
  1614. cat conftest.err >&AS_MESSAGE_LOG_FD
  1615. echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
  1616. if (exit $ac_status) && test -s "$ac_outfile"; then
  1617. # The compiler can only warn and ignore the option if not recognized
  1618. # So say no if there are warnings other than the usual output.
  1619. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  1620. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  1621. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  1622. $2=yes
  1623. fi
  1624. fi
  1625. $RM conftest*
  1626. ])
  1627. if test x"[$]$2" = xyes; then
  1628. m4_if([$5], , :, [$5])
  1629. else
  1630. m4_if([$6], , :, [$6])
  1631. fi
  1632. ])# _LT_COMPILER_OPTION
  1633. # Old name:
  1634. AU_ALIAS([AC_LIBTOOL_COMPILER_OPTION], [_LT_COMPILER_OPTION])
  1635. dnl aclocal-1.4 backwards compatibility:
  1636. dnl AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION], [])
  1637. # _LT_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
  1638. # [ACTION-SUCCESS], [ACTION-FAILURE])
  1639. # ----------------------------------------------------
  1640. # Check whether the given linker option works
  1641. AC_DEFUN([_LT_LINKER_OPTION],
  1642. [m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  1643. m4_require([_LT_DECL_SED])dnl
  1644. AC_CACHE_CHECK([$1], [$2],
  1645. [$2=no
  1646. save_LDFLAGS="$LDFLAGS"
  1647. LDFLAGS="$LDFLAGS $3"
  1648. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  1649. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  1650. # The linker can only warn and ignore the option if not recognized
  1651. # So say no if there are warnings
  1652. if test -s conftest.err; then
  1653. # Append any errors to the config.log.
  1654. cat conftest.err 1>&AS_MESSAGE_LOG_FD
  1655. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  1656. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  1657. if diff conftest.exp conftest.er2 >/dev/null; then
  1658. $2=yes
  1659. fi
  1660. else
  1661. $2=yes
  1662. fi
  1663. fi
  1664. $RM -r conftest*
  1665. LDFLAGS="$save_LDFLAGS"
  1666. ])
  1667. if test x"[$]$2" = xyes; then
  1668. m4_if([$4], , :, [$4])
  1669. else
  1670. m4_if([$5], , :, [$5])
  1671. fi
  1672. ])# _LT_LINKER_OPTION
  1673. # Old name:
  1674. AU_ALIAS([AC_LIBTOOL_LINKER_OPTION], [_LT_LINKER_OPTION])
  1675. dnl aclocal-1.4 backwards compatibility:
  1676. dnl AC_DEFUN([AC_LIBTOOL_LINKER_OPTION], [])
  1677. # LT_CMD_MAX_LEN
  1678. #---------------
  1679. AC_DEFUN([LT_CMD_MAX_LEN],
  1680. [AC_REQUIRE([AC_CANONICAL_HOST])dnl
  1681. # find the maximum length of command line arguments
  1682. AC_MSG_CHECKING([the maximum length of command line arguments])
  1683. AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl
  1684. i=0
  1685. teststring="ABCD"
  1686. case $build_os in
  1687. msdosdjgpp*)
  1688. # On DJGPP, this test can blow up pretty badly due to problems in libc
  1689. # (any single argument exceeding 2000 bytes causes a buffer overrun
  1690. # during glob expansion). Even if it were fixed, the result of this
  1691. # check would be larger than it should be.
  1692. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  1693. ;;
  1694. gnu*)
  1695. # Under GNU Hurd, this test is not required because there is
  1696. # no limit to the length of command line arguments.
  1697. # Libtool will interpret -1 as no limit whatsoever
  1698. lt_cv_sys_max_cmd_len=-1;
  1699. ;;
  1700. cygwin* | mingw* | cegcc*)
  1701. # On Win9x/ME, this test blows up -- it succeeds, but takes
  1702. # about 5 minutes as the teststring grows exponentially.
  1703. # Worse, since 9x/ME are not pre-emptively multitasking,
  1704. # you end up with a "frozen" computer, even though with patience
  1705. # the test eventually succeeds (with a max line length of 256k).
  1706. # Instead, let's just punt: use the minimum linelength reported by
  1707. # all of the supported platforms: 8192 (on NT/2K/XP).
  1708. lt_cv_sys_max_cmd_len=8192;
  1709. ;;
  1710. mint*)
  1711. # On MiNT this can take a long time and run out of memory.
  1712. lt_cv_sys_max_cmd_len=8192;
  1713. ;;
  1714. amigaos*)
  1715. # On AmigaOS with pdksh, this test takes hours, literally.
  1716. # So we just punt and use a minimum line length of 8192.
  1717. lt_cv_sys_max_cmd_len=8192;
  1718. ;;
  1719. netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  1720. # This has been around since 386BSD, at least. Likely further.
  1721. if test -x /sbin/sysctl; then
  1722. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  1723. elif test -x /usr/sbin/sysctl; then
  1724. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  1725. else
  1726. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  1727. fi
  1728. # And add a safety zone
  1729. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  1730. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  1731. ;;
  1732. interix*)
  1733. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  1734. lt_cv_sys_max_cmd_len=196608
  1735. ;;
  1736. osf*)
  1737. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  1738. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  1739. # nice to cause kernel panics so lets avoid the loop below.
  1740. # First set a reasonable default.
  1741. lt_cv_sys_max_cmd_len=16384
  1742. #
  1743. if test -x /sbin/sysconfig; then
  1744. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  1745. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  1746. esac
  1747. fi
  1748. ;;
  1749. sco3.2v5*)
  1750. lt_cv_sys_max_cmd_len=102400
  1751. ;;
  1752. sysv5* | sco5v6* | sysv4.2uw2*)
  1753. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  1754. if test -n "$kargmax"; then
  1755. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[ ]]//'`
  1756. else
  1757. lt_cv_sys_max_cmd_len=32768
  1758. fi
  1759. ;;
  1760. *)
  1761. lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  1762. if test -n "$lt_cv_sys_max_cmd_len"; then
  1763. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  1764. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  1765. else
  1766. # Make teststring a little bigger before we do anything with it.
  1767. # a 1K string should be a reasonable start.
  1768. for i in 1 2 3 4 5 6 7 8 ; do
  1769. teststring=$teststring$teststring
  1770. done
  1771. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  1772. # If test is not a shell built-in, we'll probably end up computing a
  1773. # maximum length that is only half of the actual maximum length, but
  1774. # we can't tell.
  1775. while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
  1776. = "X$teststring$teststring"; } >/dev/null 2>&1 &&
  1777. test $i != 17 # 1/2 MB should be enough
  1778. do
  1779. i=`expr $i + 1`
  1780. teststring=$teststring$teststring
  1781. done
  1782. # Only check the string length outside the loop.
  1783. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  1784. teststring=
  1785. # Add a significant safety factor because C++ compilers can tack on
  1786. # massive amounts of additional arguments before passing them to the
  1787. # linker. It appears as though 1/2 is a usable value.
  1788. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  1789. fi
  1790. ;;
  1791. esac
  1792. ])
  1793. if test -n $lt_cv_sys_max_cmd_len ; then
  1794. AC_MSG_RESULT($lt_cv_sys_max_cmd_len)
  1795. else
  1796. AC_MSG_RESULT(none)
  1797. fi
  1798. max_cmd_len=$lt_cv_sys_max_cmd_len
  1799. _LT_DECL([], [max_cmd_len], [0],
  1800. [What is the maximum length of a command?])
  1801. ])# LT_CMD_MAX_LEN
  1802. # Old name:
  1803. AU_ALIAS([AC_LIBTOOL_SYS_MAX_CMD_LEN], [LT_CMD_MAX_LEN])
  1804. dnl aclocal-1.4 backwards compatibility:
  1805. dnl AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN], [])
  1806. # _LT_HEADER_DLFCN
  1807. # ----------------
  1808. m4_defun([_LT_HEADER_DLFCN],
  1809. [AC_CHECK_HEADERS([dlfcn.h], [], [], [AC_INCLUDES_DEFAULT])dnl
  1810. ])# _LT_HEADER_DLFCN
  1811. # _LT_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
  1812. # ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
  1813. # ----------------------------------------------------------------
  1814. m4_defun([_LT_TRY_DLOPEN_SELF],
  1815. [m4_require([_LT_HEADER_DLFCN])dnl
  1816. if test "$cross_compiling" = yes; then :
  1817. [$4]
  1818. else
  1819. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  1820. lt_status=$lt_dlunknown
  1821. cat > conftest.$ac_ext <<_LT_EOF
  1822. [#line $LINENO "configure"
  1823. #include "confdefs.h"
  1824. #if HAVE_DLFCN_H
  1825. #include <dlfcn.h>
  1826. #endif
  1827. #include <stdio.h>
  1828. #ifdef RTLD_GLOBAL
  1829. # define LT_DLGLOBAL RTLD_GLOBAL
  1830. #else
  1831. # ifdef DL_GLOBAL
  1832. # define LT_DLGLOBAL DL_GLOBAL
  1833. # else
  1834. # define LT_DLGLOBAL 0
  1835. # endif
  1836. #endif
  1837. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  1838. find out it does not work in some platform. */
  1839. #ifndef LT_DLLAZY_OR_NOW
  1840. # ifdef RTLD_LAZY
  1841. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  1842. # else
  1843. # ifdef DL_LAZY
  1844. # define LT_DLLAZY_OR_NOW DL_LAZY
  1845. # else
  1846. # ifdef RTLD_NOW
  1847. # define LT_DLLAZY_OR_NOW RTLD_NOW
  1848. # else
  1849. # ifdef DL_NOW
  1850. # define LT_DLLAZY_OR_NOW DL_NOW
  1851. # else
  1852. # define LT_DLLAZY_OR_NOW 0
  1853. # endif
  1854. # endif
  1855. # endif
  1856. # endif
  1857. #endif
  1858. /* When -fvisbility=hidden is used, assume the code has been annotated
  1859. correspondingly for the symbols needed. */
  1860. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  1861. void fnord () __attribute__((visibility("default")));
  1862. #endif
  1863. void fnord () { int i=42; }
  1864. int main ()
  1865. {
  1866. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  1867. int status = $lt_dlunknown;
  1868. if (self)
  1869. {
  1870. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  1871. else
  1872. {
  1873. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  1874. else puts (dlerror ());
  1875. }
  1876. /* dlclose (self); */
  1877. }
  1878. else
  1879. puts (dlerror ());
  1880. return status;
  1881. }]
  1882. _LT_EOF
  1883. if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then
  1884. (./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null
  1885. lt_status=$?
  1886. case x$lt_status in
  1887. x$lt_dlno_uscore) $1 ;;
  1888. x$lt_dlneed_uscore) $2 ;;
  1889. x$lt_dlunknown|x*) $3 ;;
  1890. esac
  1891. else :
  1892. # compilation failed
  1893. $3
  1894. fi
  1895. fi
  1896. rm -fr conftest*
  1897. ])# _LT_TRY_DLOPEN_SELF
  1898. # LT_SYS_DLOPEN_SELF
  1899. # ------------------
  1900. AC_DEFUN([LT_SYS_DLOPEN_SELF],
  1901. [m4_require([_LT_HEADER_DLFCN])dnl
  1902. if test "x$enable_dlopen" != xyes; then
  1903. enable_dlopen=unknown
  1904. enable_dlopen_self=unknown
  1905. enable_dlopen_self_static=unknown
  1906. else
  1907. lt_cv_dlopen=no
  1908. lt_cv_dlopen_libs=
  1909. case $host_os in
  1910. beos*)
  1911. lt_cv_dlopen="load_add_on"
  1912. lt_cv_dlopen_libs=
  1913. lt_cv_dlopen_self=yes
  1914. ;;
  1915. mingw* | pw32* | cegcc*)
  1916. lt_cv_dlopen="LoadLibrary"
  1917. lt_cv_dlopen_libs=
  1918. ;;
  1919. cygwin*)
  1920. lt_cv_dlopen="dlopen"
  1921. lt_cv_dlopen_libs=
  1922. ;;
  1923. darwin*)
  1924. # if libdl is installed we need to link against it
  1925. AC_CHECK_LIB([dl], [dlopen],
  1926. [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],[
  1927. lt_cv_dlopen="dyld"
  1928. lt_cv_dlopen_libs=
  1929. lt_cv_dlopen_self=yes
  1930. ])
  1931. ;;
  1932. *)
  1933. AC_CHECK_FUNC([shl_load],
  1934. [lt_cv_dlopen="shl_load"],
  1935. [AC_CHECK_LIB([dld], [shl_load],
  1936. [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"],
  1937. [AC_CHECK_FUNC([dlopen],
  1938. [lt_cv_dlopen="dlopen"],
  1939. [AC_CHECK_LIB([dl], [dlopen],
  1940. [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],
  1941. [AC_CHECK_LIB([svld], [dlopen],
  1942. [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"],
  1943. [AC_CHECK_LIB([dld], [dld_link],
  1944. [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"])
  1945. ])
  1946. ])
  1947. ])
  1948. ])
  1949. ])
  1950. ;;
  1951. esac
  1952. if test "x$lt_cv_dlopen" != xno; then
  1953. enable_dlopen=yes
  1954. else
  1955. enable_dlopen=no
  1956. fi
  1957. case $lt_cv_dlopen in
  1958. dlopen)
  1959. save_CPPFLAGS="$CPPFLAGS"
  1960. test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  1961. save_LDFLAGS="$LDFLAGS"
  1962. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  1963. save_LIBS="$LIBS"
  1964. LIBS="$lt_cv_dlopen_libs $LIBS"
  1965. AC_CACHE_CHECK([whether a program can dlopen itself],
  1966. lt_cv_dlopen_self, [dnl
  1967. _LT_TRY_DLOPEN_SELF(
  1968. lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes,
  1969. lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross)
  1970. ])
  1971. if test "x$lt_cv_dlopen_self" = xyes; then
  1972. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  1973. AC_CACHE_CHECK([whether a statically linked program can dlopen itself],
  1974. lt_cv_dlopen_self_static, [dnl
  1975. _LT_TRY_DLOPEN_SELF(
  1976. lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes,
  1977. lt_cv_dlopen_self_static=no, lt_cv_dlopen_self_static=cross)
  1978. ])
  1979. fi
  1980. CPPFLAGS="$save_CPPFLAGS"
  1981. LDFLAGS="$save_LDFLAGS"
  1982. LIBS="$save_LIBS"
  1983. ;;
  1984. esac
  1985. case $lt_cv_dlopen_self in
  1986. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  1987. *) enable_dlopen_self=unknown ;;
  1988. esac
  1989. case $lt_cv_dlopen_self_static in
  1990. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  1991. *) enable_dlopen_self_static=unknown ;;
  1992. esac
  1993. fi
  1994. _LT_DECL([dlopen_support], [enable_dlopen], [0],
  1995. [Whether dlopen is supported])
  1996. _LT_DECL([dlopen_self], [enable_dlopen_self], [0],
  1997. [Whether dlopen of programs is supported])
  1998. _LT_DECL([dlopen_self_static], [enable_dlopen_self_static], [0],
  1999. [Whether dlopen of statically linked programs is supported])
  2000. ])# LT_SYS_DLOPEN_SELF
  2001. # Old name:
  2002. AU_ALIAS([AC_LIBTOOL_DLOPEN_SELF], [LT_SYS_DLOPEN_SELF])
  2003. dnl aclocal-1.4 backwards compatibility:
  2004. dnl AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF], [])
  2005. # _LT_COMPILER_C_O([TAGNAME])
  2006. # ---------------------------
  2007. # Check to see if options -c and -o are simultaneously supported by compiler.
  2008. # This macro does not hard code the compiler like AC_PROG_CC_C_O.
  2009. m4_defun([_LT_COMPILER_C_O],
  2010. [m4_require([_LT_DECL_SED])dnl
  2011. m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  2012. m4_require([_LT_TAG_COMPILER])dnl
  2013. AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext],
  2014. [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)],
  2015. [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no
  2016. $RM -r conftest 2>/dev/null
  2017. mkdir conftest
  2018. cd conftest
  2019. mkdir out
  2020. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  2021. lt_compiler_flag="-o out/conftest2.$ac_objext"
  2022. # Insert the option either (1) after the last *FLAGS variable, or
  2023. # (2) before a word containing "conftest.", or (3) at the end.
  2024. # Note that $ac_compile itself does not contain backslashes and begins
  2025. # with a dollar sign (not a hyphen), so the echo should work correctly.
  2026. lt_compile=`echo "$ac_compile" | $SED \
  2027. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  2028. -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
  2029. -e 's:$: $lt_compiler_flag:'`
  2030. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
  2031. (eval "$lt_compile" 2>out/conftest.err)
  2032. ac_status=$?
  2033. cat out/conftest.err >&AS_MESSAGE_LOG_FD
  2034. echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
  2035. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  2036. then
  2037. # The compiler can only warn and ignore the option if not recognized
  2038. # So say no if there are warnings
  2039. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  2040. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  2041. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  2042. _LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
  2043. fi
  2044. fi
  2045. chmod u+w . 2>&AS_MESSAGE_LOG_FD
  2046. $RM conftest*
  2047. # SGI C++ compiler will create directory out/ii_files/ for
  2048. # template instantiation
  2049. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  2050. $RM out/* && rmdir out
  2051. cd ..
  2052. $RM -r conftest
  2053. $RM conftest*
  2054. ])
  2055. _LT_TAGDECL([compiler_c_o], [lt_cv_prog_compiler_c_o], [1],
  2056. [Does compiler simultaneously support -c and -o options?])
  2057. ])# _LT_COMPILER_C_O
  2058. # _LT_COMPILER_FILE_LOCKS([TAGNAME])
  2059. # ----------------------------------
  2060. # Check to see if we can do hard links to lock some files if needed
  2061. m4_defun([_LT_COMPILER_FILE_LOCKS],
  2062. [m4_require([_LT_ENABLE_LOCK])dnl
  2063. m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  2064. _LT_COMPILER_C_O([$1])
  2065. hard_links="nottested"
  2066. if test "$_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" != no; then
  2067. # do not overwrite the value of need_locks provided by the user
  2068. AC_MSG_CHECKING([if we can lock with hard links])
  2069. hard_links=yes
  2070. $RM conftest*
  2071. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  2072. touch conftest.a
  2073. ln conftest.a conftest.b 2>&5 || hard_links=no
  2074. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  2075. AC_MSG_RESULT([$hard_links])
  2076. if test "$hard_links" = no; then
  2077. AC_MSG_WARN([`$CC' does not support `-c -o', so `make -j' may be unsafe])
  2078. need_locks=warn
  2079. fi
  2080. else
  2081. need_locks=no
  2082. fi
  2083. _LT_DECL([], [need_locks], [1], [Must we lock files when doing compilation?])
  2084. ])# _LT_COMPILER_FILE_LOCKS
  2085. # _LT_CHECK_OBJDIR
  2086. # ----------------
  2087. m4_defun([_LT_CHECK_OBJDIR],
  2088. [AC_CACHE_CHECK([for objdir], [lt_cv_objdir],
  2089. [rm -f .libs 2>/dev/null
  2090. mkdir .libs 2>/dev/null
  2091. if test -d .libs; then
  2092. lt_cv_objdir=.libs
  2093. else
  2094. # MS-DOS does not allow filenames that begin with a dot.
  2095. lt_cv_objdir=_libs
  2096. fi
  2097. rmdir .libs 2>/dev/null])
  2098. objdir=$lt_cv_objdir
  2099. _LT_DECL([], [objdir], [0],
  2100. [The name of the directory that contains temporary libtool files])dnl
  2101. m4_pattern_allow([LT_OBJDIR])dnl
  2102. AC_DEFINE_UNQUOTED(LT_OBJDIR, "$lt_cv_objdir/",
  2103. [Define to the sub-directory in which libtool stores uninstalled libraries.])
  2104. ])# _LT_CHECK_OBJDIR
  2105. # _LT_LINKER_HARDCODE_LIBPATH([TAGNAME])
  2106. # --------------------------------------
  2107. # Check hardcoding attributes.
  2108. m4_defun([_LT_LINKER_HARDCODE_LIBPATH],
  2109. [AC_MSG_CHECKING([how to hardcode library paths into programs])
  2110. _LT_TAGVAR(hardcode_action, $1)=
  2111. if test -n "$_LT_TAGVAR(hardcode_libdir_flag_spec, $1)" ||
  2112. test -n "$_LT_TAGVAR(runpath_var, $1)" ||
  2113. test "X$_LT_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then
  2114. # We can hardcode non-existent directories.
  2115. if test "$_LT_TAGVAR(hardcode_direct, $1)" != no &&
  2116. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  2117. # have to relink, otherwise we might link with an installed library
  2118. # when we should be linking with a yet-to-be-installed one
  2119. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, $1)" != no &&
  2120. test "$_LT_TAGVAR(hardcode_minus_L, $1)" != no; then
  2121. # Linking always hardcodes the temporary library directory.
  2122. _LT_TAGVAR(hardcode_action, $1)=relink
  2123. else
  2124. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  2125. _LT_TAGVAR(hardcode_action, $1)=immediate
  2126. fi
  2127. else
  2128. # We cannot hardcode anything, or else we can only hardcode existing
  2129. # directories.
  2130. _LT_TAGVAR(hardcode_action, $1)=unsupported
  2131. fi
  2132. AC_MSG_RESULT([$_LT_TAGVAR(hardcode_action, $1)])
  2133. if test "$_LT_TAGVAR(hardcode_action, $1)" = relink ||
  2134. test "$_LT_TAGVAR(inherit_rpath, $1)" = yes; then
  2135. # Fast installation is not supported
  2136. enable_fast_install=no
  2137. elif test "$shlibpath_overrides_runpath" = yes ||
  2138. test "$enable_shared" = no; then
  2139. # Fast installation is not necessary
  2140. enable_fast_install=needless
  2141. fi
  2142. _LT_TAGDECL([], [hardcode_action], [0],
  2143. [How to hardcode a shared library path into an executable])
  2144. ])# _LT_LINKER_HARDCODE_LIBPATH
  2145. # _LT_CMD_STRIPLIB
  2146. # ----------------
  2147. m4_defun([_LT_CMD_STRIPLIB],
  2148. [m4_require([_LT_DECL_EGREP])
  2149. striplib=
  2150. old_striplib=
  2151. AC_MSG_CHECKING([whether stripping libraries is possible])
  2152. if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  2153. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  2154. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  2155. AC_MSG_RESULT([yes])
  2156. else
  2157. # FIXME - insert some real tests, host_os isn't really good enough
  2158. case $host_os in
  2159. darwin*)
  2160. if test -n "$STRIP" ; then
  2161. striplib="$STRIP -x"
  2162. old_striplib="$STRIP -S"
  2163. AC_MSG_RESULT([yes])
  2164. else
  2165. AC_MSG_RESULT([no])
  2166. fi
  2167. ;;
  2168. *)
  2169. AC_MSG_RESULT([no])
  2170. ;;
  2171. esac
  2172. fi
  2173. _LT_DECL([], [old_striplib], [1], [Commands to strip libraries])
  2174. _LT_DECL([], [striplib], [1])
  2175. ])# _LT_CMD_STRIPLIB
  2176. # _LT_SYS_DYNAMIC_LINKER([TAG])
  2177. # -----------------------------
  2178. # PORTME Fill in your ld.so characteristics
  2179. m4_defun([_LT_SYS_DYNAMIC_LINKER],
  2180. [AC_REQUIRE([AC_CANONICAL_HOST])dnl
  2181. m4_require([_LT_DECL_EGREP])dnl
  2182. m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  2183. m4_require([_LT_DECL_OBJDUMP])dnl
  2184. m4_require([_LT_DECL_SED])dnl
  2185. m4_require([_LT_CHECK_SHELL_FEATURES])dnl
  2186. AC_MSG_CHECKING([dynamic linker characteristics])
  2187. m4_if([$1],
  2188. [], [
  2189. if test "$GCC" = yes; then
  2190. case $host_os in
  2191. darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
  2192. *) lt_awk_arg="/^libraries:/" ;;
  2193. esac
  2194. case $host_os in
  2195. mingw* | cegcc*) lt_sed_strip_eq="s,=\([[A-Za-z]]:\),\1,g" ;;
  2196. *) lt_sed_strip_eq="s,=/,/,g" ;;
  2197. esac
  2198. lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
  2199. case $lt_search_path_spec in
  2200. *\;*)
  2201. # if the path contains ";" then we assume it to be the separator
  2202. # otherwise default to the standard path separator (i.e. ":") - it is
  2203. # assumed that no part of a normal pathname contains ";" but that should
  2204. # okay in the real world where ";" in dirpaths is itself problematic.
  2205. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
  2206. ;;
  2207. *)
  2208. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
  2209. ;;
  2210. esac
  2211. # Ok, now we have the path, separated by spaces, we can step through it
  2212. # and add multilib dir if necessary.
  2213. lt_tmp_lt_search_path_spec=
  2214. lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  2215. for lt_sys_path in $lt_search_path_spec; do
  2216. if test -d "$lt_sys_path/$lt_multi_os_dir"; then
  2217. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
  2218. else
  2219. test -d "$lt_sys_path" && \
  2220. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  2221. fi
  2222. done
  2223. lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
  2224. BEGIN {RS=" "; FS="/|\n";} {
  2225. lt_foo="";
  2226. lt_count=0;
  2227. for (lt_i = NF; lt_i > 0; lt_i--) {
  2228. if ($lt_i != "" && $lt_i != ".") {
  2229. if ($lt_i == "..") {
  2230. lt_count++;
  2231. } else {
  2232. if (lt_count == 0) {
  2233. lt_foo="/" $lt_i lt_foo;
  2234. } else {
  2235. lt_count--;
  2236. }
  2237. }
  2238. }
  2239. }
  2240. if (lt_foo != "") { lt_freq[[lt_foo]]++; }
  2241. if (lt_freq[[lt_foo]] == 1) { print lt_foo; }
  2242. }'`
  2243. # AWK program above erroneously prepends '/' to C:/dos/paths
  2244. # for these hosts.
  2245. case $host_os in
  2246. mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
  2247. $SED 's,/\([[A-Za-z]]:\),\1,g'` ;;
  2248. esac
  2249. sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
  2250. else
  2251. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  2252. fi])
  2253. library_names_spec=
  2254. libname_spec='lib$name'
  2255. soname_spec=
  2256. shrext_cmds=".so"
  2257. postinstall_cmds=
  2258. postuninstall_cmds=
  2259. finish_cmds=
  2260. finish_eval=
  2261. shlibpath_var=
  2262. shlibpath_overrides_runpath=unknown
  2263. version_type=none
  2264. dynamic_linker="$host_os ld.so"
  2265. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  2266. need_lib_prefix=unknown
  2267. hardcode_into_libs=no
  2268. # when you set need_version to no, make sure it does not cause -set_version
  2269. # flags to be left without arguments
  2270. need_version=unknown
  2271. case $host_os in
  2272. aix3*)
  2273. version_type=linux
  2274. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  2275. shlibpath_var=LIBPATH
  2276. # AIX 3 has no versioning support, so we append a major version to the name.
  2277. soname_spec='${libname}${release}${shared_ext}$major'
  2278. ;;
  2279. aix[[4-9]]*)
  2280. version_type=linux
  2281. need_lib_prefix=no
  2282. need_version=no
  2283. hardcode_into_libs=yes
  2284. if test "$host_cpu" = ia64; then
  2285. # AIX 5 supports IA64
  2286. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  2287. shlibpath_var=LD_LIBRARY_PATH
  2288. else
  2289. # With GCC up to 2.95.x, collect2 would create an import file
  2290. # for dependence libraries. The import file would start with
  2291. # the line `#! .'. This would cause the generated library to
  2292. # depend on `.', always an invalid library. This was fixed in
  2293. # development snapshots of GCC prior to 3.0.
  2294. case $host_os in
  2295. aix4 | aix4.[[01]] | aix4.[[01]].*)
  2296. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  2297. echo ' yes '
  2298. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  2299. :
  2300. else
  2301. can_build_shared=no
  2302. fi
  2303. ;;
  2304. esac
  2305. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  2306. # soname into executable. Probably we can add versioning support to
  2307. # collect2, so additional links can be useful in future.
  2308. if test "$aix_use_runtimelinking" = yes; then
  2309. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  2310. # instead of lib<name>.a to let people know that these are not
  2311. # typical AIX shared libraries.
  2312. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  2313. else
  2314. # We preserve .a as extension for shared libraries through AIX4.2
  2315. # and later when we are not doing run time linking.
  2316. library_names_spec='${libname}${release}.a $libname.a'
  2317. soname_spec='${libname}${release}${shared_ext}$major'
  2318. fi
  2319. shlibpath_var=LIBPATH
  2320. fi
  2321. ;;
  2322. amigaos*)
  2323. case $host_cpu in
  2324. powerpc)
  2325. # Since July 2007 AmigaOS4 officially supports .so libraries.
  2326. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  2327. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  2328. ;;
  2329. m68k)
  2330. library_names_spec='$libname.ixlibrary $libname.a'
  2331. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  2332. finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''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'
  2333. ;;
  2334. esac
  2335. ;;
  2336. beos*)
  2337. library_names_spec='${libname}${shared_ext}'
  2338. dynamic_linker="$host_os ld.so"
  2339. shlibpath_var=LIBRARY_PATH
  2340. ;;
  2341. bsdi[[45]]*)
  2342. version_type=linux
  2343. need_version=no
  2344. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  2345. soname_spec='${libname}${release}${shared_ext}$major'
  2346. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  2347. shlibpath_var=LD_LIBRARY_PATH
  2348. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  2349. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  2350. # the default ld.so.conf also contains /usr/contrib/lib and
  2351. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  2352. # libtool to hard-code these into programs
  2353. ;;
  2354. cygwin* | mingw* | pw32* | cegcc*)
  2355. version_type=windows
  2356. shrext_cmds=".dll"
  2357. need_version=no
  2358. need_lib_prefix=no
  2359. case $GCC,$host_os in
  2360. yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
  2361. library_names_spec='$libname.dll.a'
  2362. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  2363. postinstall_cmds='base_file=`basename \${file}`~
  2364. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  2365. dldir=$destdir/`dirname \$dlpath`~
  2366. test -d \$dldir || mkdir -p \$dldir~
  2367. $install_prog $dir/$dlname \$dldir/$dlname~
  2368. chmod a+x \$dldir/$dlname~
  2369. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  2370. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  2371. fi'
  2372. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  2373. dlpath=$dir/\$dldll~
  2374. $RM \$dlpath'
  2375. shlibpath_overrides_runpath=yes
  2376. case $host_os in
  2377. cygwin*)
  2378. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  2379. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  2380. m4_if([$1], [],[
  2381. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"])
  2382. ;;
  2383. mingw* | cegcc*)
  2384. # MinGW DLLs use traditional 'lib' prefix
  2385. soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  2386. ;;
  2387. pw32*)
  2388. # pw32 DLLs use 'pw' prefix rather than 'lib'
  2389. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  2390. ;;
  2391. esac
  2392. ;;
  2393. *)
  2394. library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $libname.lib'
  2395. ;;
  2396. esac
  2397. dynamic_linker='Win32 ld.exe'
  2398. # FIXME: first we should search . and the directory the executable is in
  2399. shlibpath_var=PATH
  2400. ;;
  2401. darwin* | rhapsody*)
  2402. dynamic_linker="$host_os dyld"
  2403. version_type=darwin
  2404. need_lib_prefix=no
  2405. need_version=no
  2406. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  2407. soname_spec='${libname}${release}${major}$shared_ext'
  2408. shlibpath_overrides_runpath=yes
  2409. shlibpath_var=DYLD_LIBRARY_PATH
  2410. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  2411. m4_if([$1], [],[
  2412. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"])
  2413. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  2414. ;;
  2415. dgux*)
  2416. version_type=linux
  2417. need_lib_prefix=no
  2418. need_version=no
  2419. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  2420. soname_spec='${libname}${release}${shared_ext}$major'
  2421. shlibpath_var=LD_LIBRARY_PATH
  2422. ;;
  2423. freebsd1*)
  2424. dynamic_linker=no
  2425. ;;
  2426. freebsd* | dragonfly*)
  2427. # DragonFly does not have aout. When/if they implement a new
  2428. # versioning mechanism, adjust this.
  2429. if test -x /usr/bin/objformat; then
  2430. objformat=`/usr/bin/objformat`
  2431. else
  2432. case $host_os in
  2433. freebsd[[123]]*) objformat=aout ;;
  2434. *) objformat=elf ;;
  2435. esac
  2436. fi
  2437. version_type=freebsd-$objformat
  2438. case $version_type in
  2439. freebsd-elf*)
  2440. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  2441. need_version=no
  2442. need_lib_prefix=no
  2443. ;;
  2444. freebsd-*)
  2445. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  2446. need_version=yes
  2447. ;;
  2448. esac
  2449. shlibpath_var=LD_LIBRARY_PATH
  2450. case $host_os in
  2451. freebsd2*)
  2452. shlibpath_overrides_runpath=yes
  2453. ;;
  2454. freebsd3.[[01]]* | freebsdelf3.[[01]]*)
  2455. shlibpath_overrides_runpath=yes
  2456. hardcode_into_libs=yes
  2457. ;;
  2458. freebsd3.[[2-9]]* | freebsdelf3.[[2-9]]* | \
  2459. freebsd4.[[0-5]] | freebsdelf4.[[0-5]] | freebsd4.1.1 | freebsdelf4.1.1)
  2460. shlibpath_overrides_runpath=no
  2461. hardcode_into_libs=yes
  2462. ;;
  2463. *) # from 4.6 on, and DragonFly
  2464. shlibpath_overrides_runpath=yes
  2465. hardcode_into_libs=yes
  2466. ;;
  2467. esac
  2468. ;;
  2469. gnu*)
  2470. version_type=linux
  2471. need_lib_prefix=no
  2472. need_version=no
  2473. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  2474. soname_spec='${libname}${release}${shared_ext}$major'
  2475. shlibpath_var=LD_LIBRARY_PATH
  2476. hardcode_into_libs=yes
  2477. ;;
  2478. haiku*)
  2479. version_type=linux
  2480. need_lib_prefix=no
  2481. need_version=no
  2482. dynamic_linker="$host_os runtime_loader"
  2483. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  2484. soname_spec='${libname}${release}${shared_ext}$major'
  2485. shlibpath_var=LIBRARY_PATH
  2486. shlibpath_overrides_runpath=yes
  2487. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  2488. hardcode_into_libs=yes
  2489. ;;
  2490. hpux9* | hpux10* | hpux11*)
  2491. # Give a soname corresponding to the major version so that dld.sl refuses to
  2492. # link against other versions.
  2493. version_type=sunos
  2494. need_lib_prefix=no
  2495. need_version=no
  2496. case $host_cpu in
  2497. ia64*)
  2498. shrext_cmds='.so'
  2499. hardcode_into_libs=yes
  2500. dynamic_linker="$host_os dld.so"
  2501. shlibpath_var=LD_LIBRARY_PATH
  2502. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  2503. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  2504. soname_spec='${libname}${release}${shared_ext}$major'
  2505. if test "X$HPUX_IA64_MODE" = X32; then
  2506. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  2507. else
  2508. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  2509. fi
  2510. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  2511. ;;
  2512. hppa*64*)
  2513. shrext_cmds='.sl'
  2514. hardcode_into_libs=yes
  2515. dynamic_linker="$host_os dld.sl"
  2516. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  2517. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  2518. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  2519. soname_spec='${libname}${release}${shared_ext}$major'
  2520. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  2521. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  2522. ;;
  2523. *)
  2524. shrext_cmds='.sl'
  2525. dynamic_linker="$host_os dld.sl"
  2526. shlibpath_var=SHLIB_PATH
  2527. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  2528. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  2529. soname_spec='${libname}${release}${shared_ext}$major'
  2530. ;;
  2531. esac
  2532. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  2533. postinstall_cmds='chmod 555 $lib'
  2534. # or fails outright, so override atomically:
  2535. install_override_mode=555
  2536. ;;
  2537. interix[[3-9]]*)
  2538. version_type=linux
  2539. need_lib_prefix=no
  2540. need_version=no
  2541. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  2542. soname_spec='${libname}${release}${shared_ext}$major'
  2543. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  2544. shlibpath_var=LD_LIBRARY_PATH
  2545. shlibpath_overrides_runpath=no
  2546. hardcode_into_libs=yes
  2547. ;;
  2548. irix5* | irix6* | nonstopux*)
  2549. case $host_os in
  2550. nonstopux*) version_type=nonstopux ;;
  2551. *)
  2552. if test "$lt_cv_prog_gnu_ld" = yes; then
  2553. version_type=linux
  2554. else
  2555. version_type=irix
  2556. fi ;;
  2557. esac
  2558. need_lib_prefix=no
  2559. need_version=no
  2560. soname_spec='${libname}${release}${shared_ext}$major'
  2561. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  2562. case $host_os in
  2563. irix5* | nonstopux*)
  2564. libsuff= shlibsuff=
  2565. ;;
  2566. *)
  2567. case $LD in # libtool.m4 will add one of these switches to LD
  2568. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  2569. libsuff= shlibsuff= libmagic=32-bit;;
  2570. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  2571. libsuff=32 shlibsuff=N32 libmagic=N32;;
  2572. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  2573. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  2574. *) libsuff= shlibsuff= libmagic=never-match;;
  2575. esac
  2576. ;;
  2577. esac
  2578. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  2579. shlibpath_overrides_runpath=no
  2580. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  2581. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  2582. hardcode_into_libs=yes
  2583. ;;
  2584. # No shared lib support for Linux oldld, aout, or coff.
  2585. linux*oldld* | linux*aout* | linux*coff*)
  2586. dynamic_linker=no
  2587. ;;
  2588. # This must be Linux ELF.
  2589. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  2590. version_type=linux
  2591. need_lib_prefix=no
  2592. need_version=no
  2593. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  2594. soname_spec='${libname}${release}${shared_ext}$major'
  2595. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  2596. shlibpath_var=LD_LIBRARY_PATH
  2597. shlibpath_overrides_runpath=no
  2598. # Some binutils ld are patched to set DT_RUNPATH
  2599. AC_CACHE_VAL([lt_cv_shlibpath_overrides_runpath],
  2600. [lt_cv_shlibpath_overrides_runpath=no
  2601. save_LDFLAGS=$LDFLAGS
  2602. save_libdir=$libdir
  2603. eval "libdir=/foo; wl=\"$_LT_TAGVAR(lt_prog_compiler_wl, $1)\"; \
  2604. LDFLAGS=\"\$LDFLAGS $_LT_TAGVAR(hardcode_libdir_flag_spec, $1)\""
  2605. AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
  2606. [AS_IF([ ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null],
  2607. [lt_cv_shlibpath_overrides_runpath=yes])])
  2608. LDFLAGS=$save_LDFLAGS
  2609. libdir=$save_libdir
  2610. ])
  2611. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  2612. # This implies no fast_install, which is unacceptable.
  2613. # Some rework will be needed to allow for fast_install
  2614. # before this can be enabled.
  2615. hardcode_into_libs=yes
  2616. # Add ABI-specific directories to the system library path.
  2617. sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
  2618. # Append ld.so.conf contents to the search path
  2619. if test -f /etc/ld.so.conf; then
  2620. 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;s/"//g;/^$/d' | tr '\n' ' '`
  2621. sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
  2622. fi
  2623. # We used to test for /lib/ld.so.1 and disable shared libraries on
  2624. # powerpc, because MkLinux only supported shared libraries with the
  2625. # GNU dynamic linker. Since this was broken with cross compilers,
  2626. # most powerpc-linux boxes support dynamic linking these days and
  2627. # people can always --disable-shared, the test was removed, and we
  2628. # assume the GNU/Linux dynamic linker is in use.
  2629. dynamic_linker='GNU/Linux ld.so'
  2630. ;;
  2631. netbsd*)
  2632. version_type=sunos
  2633. need_lib_prefix=no
  2634. need_version=no
  2635. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  2636. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  2637. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  2638. dynamic_linker='NetBSD (a.out) ld.so'
  2639. else
  2640. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  2641. soname_spec='${libname}${release}${shared_ext}$major'
  2642. dynamic_linker='NetBSD ld.elf_so'
  2643. fi
  2644. shlibpath_var=LD_LIBRARY_PATH
  2645. shlibpath_overrides_runpath=yes
  2646. hardcode_into_libs=yes
  2647. ;;
  2648. newsos6)
  2649. version_type=linux
  2650. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  2651. shlibpath_var=LD_LIBRARY_PATH
  2652. shlibpath_overrides_runpath=yes
  2653. ;;
  2654. *nto* | *qnx*)
  2655. version_type=qnx
  2656. need_lib_prefix=no
  2657. need_version=no
  2658. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  2659. soname_spec='${libname}${release}${shared_ext}$major'
  2660. shlibpath_var=LD_LIBRARY_PATH
  2661. shlibpath_overrides_runpath=no
  2662. hardcode_into_libs=yes
  2663. dynamic_linker='ldqnx.so'
  2664. ;;
  2665. openbsd*)
  2666. version_type=sunos
  2667. sys_lib_dlsearch_path_spec="/usr/lib"
  2668. need_lib_prefix=no
  2669. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  2670. case $host_os in
  2671. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  2672. *) need_version=no ;;
  2673. esac
  2674. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  2675. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  2676. shlibpath_var=LD_LIBRARY_PATH
  2677. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  2678. case $host_os in
  2679. openbsd2.[[89]] | openbsd2.[[89]].*)
  2680. shlibpath_overrides_runpath=no
  2681. ;;
  2682. *)
  2683. shlibpath_overrides_runpath=yes
  2684. ;;
  2685. esac
  2686. else
  2687. shlibpath_overrides_runpath=yes
  2688. fi
  2689. ;;
  2690. os2*)
  2691. libname_spec='$name'
  2692. shrext_cmds=".dll"
  2693. need_lib_prefix=no
  2694. library_names_spec='$libname${shared_ext} $libname.a'
  2695. dynamic_linker='OS/2 ld.exe'
  2696. shlibpath_var=LIBPATH
  2697. ;;
  2698. osf3* | osf4* | osf5*)
  2699. version_type=osf
  2700. need_lib_prefix=no
  2701. need_version=no
  2702. soname_spec='${libname}${release}${shared_ext}$major'
  2703. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  2704. shlibpath_var=LD_LIBRARY_PATH
  2705. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  2706. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  2707. ;;
  2708. rdos*)
  2709. dynamic_linker=no
  2710. ;;
  2711. solaris*)
  2712. version_type=linux
  2713. need_lib_prefix=no
  2714. need_version=no
  2715. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  2716. soname_spec='${libname}${release}${shared_ext}$major'
  2717. shlibpath_var=LD_LIBRARY_PATH
  2718. shlibpath_overrides_runpath=yes
  2719. hardcode_into_libs=yes
  2720. # ldd complains unless libraries are executable
  2721. postinstall_cmds='chmod +x $lib'
  2722. ;;
  2723. sunos4*)
  2724. version_type=sunos
  2725. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  2726. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  2727. shlibpath_var=LD_LIBRARY_PATH
  2728. shlibpath_overrides_runpath=yes
  2729. if test "$with_gnu_ld" = yes; then
  2730. need_lib_prefix=no
  2731. fi
  2732. need_version=yes
  2733. ;;
  2734. sysv4 | sysv4.3*)
  2735. version_type=linux
  2736. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  2737. soname_spec='${libname}${release}${shared_ext}$major'
  2738. shlibpath_var=LD_LIBRARY_PATH
  2739. case $host_vendor in
  2740. sni)
  2741. shlibpath_overrides_runpath=no
  2742. need_lib_prefix=no
  2743. runpath_var=LD_RUN_PATH
  2744. ;;
  2745. siemens)
  2746. need_lib_prefix=no
  2747. ;;
  2748. motorola)
  2749. need_lib_prefix=no
  2750. need_version=no
  2751. shlibpath_overrides_runpath=no
  2752. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  2753. ;;
  2754. esac
  2755. ;;
  2756. sysv4*MP*)
  2757. if test -d /usr/nec ;then
  2758. version_type=linux
  2759. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  2760. soname_spec='$libname${shared_ext}.$major'
  2761. shlibpath_var=LD_LIBRARY_PATH
  2762. fi
  2763. ;;
  2764. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  2765. version_type=freebsd-elf
  2766. need_lib_prefix=no
  2767. need_version=no
  2768. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  2769. soname_spec='${libname}${release}${shared_ext}$major'
  2770. shlibpath_var=LD_LIBRARY_PATH
  2771. shlibpath_overrides_runpath=yes
  2772. hardcode_into_libs=yes
  2773. if test "$with_gnu_ld" = yes; then
  2774. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  2775. else
  2776. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  2777. case $host_os in
  2778. sco3.2v5*)
  2779. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  2780. ;;
  2781. esac
  2782. fi
  2783. sys_lib_dlsearch_path_spec='/usr/lib'
  2784. ;;
  2785. tpf*)
  2786. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  2787. version_type=linux
  2788. need_lib_prefix=no
  2789. need_version=no
  2790. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  2791. shlibpath_var=LD_LIBRARY_PATH
  2792. shlibpath_overrides_runpath=no
  2793. hardcode_into_libs=yes
  2794. ;;
  2795. uts4*)
  2796. version_type=linux
  2797. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  2798. soname_spec='${libname}${release}${shared_ext}$major'
  2799. shlibpath_var=LD_LIBRARY_PATH
  2800. ;;
  2801. *)
  2802. dynamic_linker=no
  2803. ;;
  2804. esac
  2805. AC_MSG_RESULT([$dynamic_linker])
  2806. test "$dynamic_linker" = no && can_build_shared=no
  2807. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  2808. if test "$GCC" = yes; then
  2809. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  2810. fi
  2811. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  2812. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  2813. fi
  2814. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  2815. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  2816. fi
  2817. _LT_DECL([], [variables_saved_for_relink], [1],
  2818. [Variables whose values should be saved in libtool wrapper scripts and
  2819. restored at link time])
  2820. _LT_DECL([], [need_lib_prefix], [0],
  2821. [Do we need the "lib" prefix for modules?])
  2822. _LT_DECL([], [need_version], [0], [Do we need a version for libraries?])
  2823. _LT_DECL([], [version_type], [0], [Library versioning type])
  2824. _LT_DECL([], [runpath_var], [0], [Shared library runtime path variable])
  2825. _LT_DECL([], [shlibpath_var], [0],[Shared library path variable])
  2826. _LT_DECL([], [shlibpath_overrides_runpath], [0],
  2827. [Is shlibpath searched before the hard-coded library search path?])
  2828. _LT_DECL([], [libname_spec], [1], [Format of library name prefix])
  2829. _LT_DECL([], [library_names_spec], [1],
  2830. [[List of archive names. First name is the real one, the rest are links.
  2831. The last name is the one that the linker finds with -lNAME]])
  2832. _LT_DECL([], [soname_spec], [1],
  2833. [[The coded name of the library, if different from the real name]])
  2834. _LT_DECL([], [install_override_mode], [1],
  2835. [Permission mode override for installation of shared libraries])
  2836. _LT_DECL([], [postinstall_cmds], [2],
  2837. [Command to use after installation of a shared archive])
  2838. _LT_DECL([], [postuninstall_cmds], [2],
  2839. [Command to use after uninstallation of a shared archive])
  2840. _LT_DECL([], [finish_cmds], [2],
  2841. [Commands used to finish a libtool library installation in a directory])
  2842. _LT_DECL([], [finish_eval], [1],
  2843. [[As "finish_cmds", except a single script fragment to be evaled but
  2844. not shown]])
  2845. _LT_DECL([], [hardcode_into_libs], [0],
  2846. [Whether we should hardcode library paths into libraries])
  2847. _LT_DECL([], [sys_lib_search_path_spec], [2],
  2848. [Compile-time system search path for libraries])
  2849. _LT_DECL([], [sys_lib_dlsearch_path_spec], [2],
  2850. [Run-time system search path for libraries])
  2851. ])# _LT_SYS_DYNAMIC_LINKER
  2852. # _LT_PATH_TOOL_PREFIX(TOOL)
  2853. # --------------------------
  2854. # find a file program which can recognize shared library
  2855. AC_DEFUN([_LT_PATH_TOOL_PREFIX],
  2856. [m4_require([_LT_DECL_EGREP])dnl
  2857. AC_MSG_CHECKING([for $1])
  2858. AC_CACHE_VAL(lt_cv_path_MAGIC_CMD,
  2859. [case $MAGIC_CMD in
  2860. [[\\/*] | ?:[\\/]*])
  2861. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  2862. ;;
  2863. *)
  2864. lt_save_MAGIC_CMD="$MAGIC_CMD"
  2865. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  2866. dnl $ac_dummy forces splitting on constant user-supplied paths.
  2867. dnl POSIX.2 word splitting is done only on the output of word expansions,
  2868. dnl not every word. This closes a longstanding sh security hole.
  2869. ac_dummy="m4_if([$2], , $PATH, [$2])"
  2870. for ac_dir in $ac_dummy; do
  2871. IFS="$lt_save_ifs"
  2872. test -z "$ac_dir" && ac_dir=.
  2873. if test -f $ac_dir/$1; then
  2874. lt_cv_path_MAGIC_CMD="$ac_dir/$1"
  2875. if test -n "$file_magic_test_file"; then
  2876. case $deplibs_check_method in
  2877. "file_magic "*)
  2878. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  2879. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  2880. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  2881. $EGREP "$file_magic_regex" > /dev/null; then
  2882. :
  2883. else
  2884. cat <<_LT_EOF 1>&2
  2885. *** Warning: the command libtool uses to detect shared libraries,
  2886. *** $file_magic_cmd, produces output that libtool cannot recognize.
  2887. *** The result is that libtool may fail to recognize shared libraries
  2888. *** as such. This will affect the creation of libtool libraries that
  2889. *** depend on shared libraries, but programs linked with such libtool
  2890. *** libraries will work regardless of this problem. Nevertheless, you
  2891. *** may want to report the problem to your system manager and/or to
  2892. *** bug-libtool@gnu.org
  2893. _LT_EOF
  2894. fi ;;
  2895. esac
  2896. fi
  2897. break
  2898. fi
  2899. done
  2900. IFS="$lt_save_ifs"
  2901. MAGIC_CMD="$lt_save_MAGIC_CMD"
  2902. ;;
  2903. esac])
  2904. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  2905. if test -n "$MAGIC_CMD"; then
  2906. AC_MSG_RESULT($MAGIC_CMD)
  2907. else
  2908. AC_MSG_RESULT(no)
  2909. fi
  2910. _LT_DECL([], [MAGIC_CMD], [0],
  2911. [Used to examine libraries when file_magic_cmd begins with "file"])dnl
  2912. ])# _LT_PATH_TOOL_PREFIX
  2913. # Old name:
  2914. AU_ALIAS([AC_PATH_TOOL_PREFIX], [_LT_PATH_TOOL_PREFIX])
  2915. dnl aclocal-1.4 backwards compatibility:
  2916. dnl AC_DEFUN([AC_PATH_TOOL_PREFIX], [])
  2917. # _LT_PATH_MAGIC
  2918. # --------------
  2919. # find a file program which can recognize a shared library
  2920. m4_defun([_LT_PATH_MAGIC],
  2921. [_LT_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH)
  2922. if test -z "$lt_cv_path_MAGIC_CMD"; then
  2923. if test -n "$ac_tool_prefix"; then
  2924. _LT_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH)
  2925. else
  2926. MAGIC_CMD=:
  2927. fi
  2928. fi
  2929. ])# _LT_PATH_MAGIC
  2930. # LT_PATH_LD
  2931. # ----------
  2932. # find the pathname to the GNU or non-GNU linker
  2933. AC_DEFUN([LT_PATH_LD],
  2934. [AC_REQUIRE([AC_PROG_CC])dnl
  2935. AC_REQUIRE([AC_CANONICAL_HOST])dnl
  2936. AC_REQUIRE([AC_CANONICAL_BUILD])dnl
  2937. m4_require([_LT_DECL_SED])dnl
  2938. m4_require([_LT_DECL_EGREP])dnl
  2939. m4_require([_LT_PROG_ECHO_BACKSLASH])dnl
  2940. AC_ARG_WITH([gnu-ld],
  2941. [AS_HELP_STRING([--with-gnu-ld],
  2942. [assume the C compiler uses GNU ld @<:@default=no@:>@])],
  2943. [test "$withval" = no || with_gnu_ld=yes],
  2944. [with_gnu_ld=no])dnl
  2945. ac_prog=ld
  2946. if test "$GCC" = yes; then
  2947. # Check if gcc -print-prog-name=ld gives a path.
  2948. AC_MSG_CHECKING([for ld used by $CC])
  2949. case $host in
  2950. *-*-mingw*)
  2951. # gcc leaves a trailing carriage return which upsets mingw
  2952. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  2953. *)
  2954. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  2955. esac
  2956. case $ac_prog in
  2957. # Accept absolute paths.
  2958. [[\\/]]* | ?:[[\\/]]*)
  2959. re_direlt='/[[^/]][[^/]]*/\.\./'
  2960. # Canonicalize the pathname of ld
  2961. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  2962. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  2963. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  2964. done
  2965. test -z "$LD" && LD="$ac_prog"
  2966. ;;
  2967. "")
  2968. # If it fails, then pretend we aren't using GCC.
  2969. ac_prog=ld
  2970. ;;
  2971. *)
  2972. # If it is relative, then search for the first ld in PATH.
  2973. with_gnu_ld=unknown
  2974. ;;
  2975. esac
  2976. elif test "$with_gnu_ld" = yes; then
  2977. AC_MSG_CHECKING([for GNU ld])
  2978. else
  2979. AC_MSG_CHECKING([for non-GNU ld])
  2980. fi
  2981. AC_CACHE_VAL(lt_cv_path_LD,
  2982. [if test -z "$LD"; then
  2983. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  2984. for ac_dir in $PATH; do
  2985. IFS="$lt_save_ifs"
  2986. test -z "$ac_dir" && ac_dir=.
  2987. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  2988. lt_cv_path_LD="$ac_dir/$ac_prog"
  2989. # Check to see if the program is GNU ld. I'd rather use --version,
  2990. # but apparently some variants of GNU ld only accept -v.
  2991. # Break only if it was the GNU/non-GNU ld that we prefer.
  2992. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  2993. *GNU* | *'with BFD'*)
  2994. test "$with_gnu_ld" != no && break
  2995. ;;
  2996. *)
  2997. test "$with_gnu_ld" != yes && break
  2998. ;;
  2999. esac
  3000. fi
  3001. done
  3002. IFS="$lt_save_ifs"
  3003. else
  3004. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  3005. fi])
  3006. LD="$lt_cv_path_LD"
  3007. if test -n "$LD"; then
  3008. AC_MSG_RESULT($LD)
  3009. else
  3010. AC_MSG_RESULT(no)
  3011. fi
  3012. test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])
  3013. _LT_PATH_LD_GNU
  3014. AC_SUBST([LD])
  3015. _LT_TAGDECL([], [LD], [1], [The linker used to build libraries])
  3016. ])# LT_PATH_LD
  3017. # Old names:
  3018. AU_ALIAS([AM_PROG_LD], [LT_PATH_LD])
  3019. AU_ALIAS([AC_PROG_LD], [LT_PATH_LD])
  3020. dnl aclocal-1.4 backwards compatibility:
  3021. dnl AC_DEFUN([AM_PROG_LD], [])
  3022. dnl AC_DEFUN([AC_PROG_LD], [])
  3023. # _LT_PATH_LD_GNU
  3024. #- --------------
  3025. m4_defun([_LT_PATH_LD_GNU],
  3026. [AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld,
  3027. [# I'd rather use --version here, but apparently some GNU lds only accept -v.
  3028. case `$LD -v 2>&1 </dev/null` in
  3029. *GNU* | *'with BFD'*)
  3030. lt_cv_prog_gnu_ld=yes
  3031. ;;
  3032. *)
  3033. lt_cv_prog_gnu_ld=no
  3034. ;;
  3035. esac])
  3036. with_gnu_ld=$lt_cv_prog_gnu_ld
  3037. ])# _LT_PATH_LD_GNU
  3038. # _LT_CMD_RELOAD
  3039. # --------------
  3040. # find reload flag for linker
  3041. # -- PORTME Some linkers may need a different reload flag.
  3042. m4_defun([_LT_CMD_RELOAD],
  3043. [AC_CACHE_CHECK([for $LD option to reload object files],
  3044. lt_cv_ld_reload_flag,
  3045. [lt_cv_ld_reload_flag='-r'])
  3046. reload_flag=$lt_cv_ld_reload_flag
  3047. case $reload_flag in
  3048. "" | " "*) ;;
  3049. *) reload_flag=" $reload_flag" ;;
  3050. esac
  3051. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  3052. case $host_os in
  3053. darwin*)
  3054. if test "$GCC" = yes; then
  3055. reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
  3056. else
  3057. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  3058. fi
  3059. ;;
  3060. esac
  3061. _LT_TAGDECL([], [reload_flag], [1], [How to create reloadable object files])dnl
  3062. _LT_TAGDECL([], [reload_cmds], [2])dnl
  3063. ])# _LT_CMD_RELOAD
  3064. # _LT_CHECK_MAGIC_METHOD
  3065. # ----------------------
  3066. # how to check for library dependencies
  3067. # -- PORTME fill in with the dynamic library characteristics
  3068. m4_defun([_LT_CHECK_MAGIC_METHOD],
  3069. [m4_require([_LT_DECL_EGREP])
  3070. m4_require([_LT_DECL_OBJDUMP])
  3071. AC_CACHE_CHECK([how to recognize dependent libraries],
  3072. lt_cv_deplibs_check_method,
  3073. [lt_cv_file_magic_cmd='$MAGIC_CMD'
  3074. lt_cv_file_magic_test_file=
  3075. lt_cv_deplibs_check_method='unknown'
  3076. # Need to set the preceding variable on all platforms that support
  3077. # interlibrary dependencies.
  3078. # 'none' -- dependencies not supported.
  3079. # `unknown' -- same as none, but documents that we really don't know.
  3080. # 'pass_all' -- all dependencies passed with no checks.
  3081. # 'test_compile' -- check by making test program.
  3082. # 'file_magic [[regex]]' -- check by looking for files in library path
  3083. # which responds to the $file_magic_cmd with a given extended regex.
  3084. # If you have `file' or equivalent on your system and you're not sure
  3085. # whether `pass_all' will *always* work, you probably want this one.
  3086. case $host_os in
  3087. aix[[4-9]]*)
  3088. lt_cv_deplibs_check_method=pass_all
  3089. ;;
  3090. beos*)
  3091. lt_cv_deplibs_check_method=pass_all
  3092. ;;
  3093. bsdi[[45]]*)
  3094. lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)'
  3095. lt_cv_file_magic_cmd='/usr/bin/file -L'
  3096. lt_cv_file_magic_test_file=/shlib/libc.so
  3097. ;;
  3098. cygwin*)
  3099. # func_win32_libid is a shell function defined in ltmain.sh
  3100. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  3101. lt_cv_file_magic_cmd='func_win32_libid'
  3102. ;;
  3103. mingw* | pw32*)
  3104. # Base MSYS/MinGW do not provide the 'file' command needed by
  3105. # func_win32_libid shell function, so use a weaker test based on 'objdump',
  3106. # unless we find 'file', for example because we are cross-compiling.
  3107. # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
  3108. if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
  3109. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  3110. lt_cv_file_magic_cmd='func_win32_libid'
  3111. else
  3112. # Keep this pattern in sync with the one in func_win32_libid.
  3113. lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
  3114. lt_cv_file_magic_cmd='$OBJDUMP -f'
  3115. fi
  3116. ;;
  3117. cegcc*)
  3118. # use the weaker test based on 'objdump'. See mingw*.
  3119. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  3120. lt_cv_file_magic_cmd='$OBJDUMP -f'
  3121. ;;
  3122. darwin* | rhapsody*)
  3123. lt_cv_deplibs_check_method=pass_all
  3124. ;;
  3125. freebsd* | dragonfly*)
  3126. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  3127. case $host_cpu in
  3128. i*86 )
  3129. # Not sure whether the presence of OpenBSD here was a mistake.
  3130. # Let's accept both of them until this is cleared up.
  3131. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[[3-9]]86 (compact )?demand paged shared library'
  3132. lt_cv_file_magic_cmd=/usr/bin/file
  3133. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  3134. ;;
  3135. esac
  3136. else
  3137. lt_cv_deplibs_check_method=pass_all
  3138. fi
  3139. ;;
  3140. gnu*)
  3141. lt_cv_deplibs_check_method=pass_all
  3142. ;;
  3143. haiku*)
  3144. lt_cv_deplibs_check_method=pass_all
  3145. ;;
  3146. hpux10.20* | hpux11*)
  3147. lt_cv_file_magic_cmd=/usr/bin/file
  3148. case $host_cpu in
  3149. ia64*)
  3150. lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64'
  3151. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  3152. ;;
  3153. hppa*64*)
  3154. [lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]']
  3155. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  3156. ;;
  3157. *)
  3158. lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]]\.[[0-9]]) shared library'
  3159. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  3160. ;;
  3161. esac
  3162. ;;
  3163. interix[[3-9]]*)
  3164. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  3165. lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|\.a)$'
  3166. ;;
  3167. irix5* | irix6* | nonstopux*)
  3168. case $LD in
  3169. *-32|*"-32 ") libmagic=32-bit;;
  3170. *-n32|*"-n32 ") libmagic=N32;;
  3171. *-64|*"-64 ") libmagic=64-bit;;
  3172. *) libmagic=never-match;;
  3173. esac
  3174. lt_cv_deplibs_check_method=pass_all
  3175. ;;
  3176. # This must be Linux ELF.
  3177. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  3178. lt_cv_deplibs_check_method=pass_all
  3179. ;;
  3180. netbsd*)
  3181. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  3182. lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
  3183. else
  3184. lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$'
  3185. fi
  3186. ;;
  3187. newos6*)
  3188. lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (executable|dynamic lib)'
  3189. lt_cv_file_magic_cmd=/usr/bin/file
  3190. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  3191. ;;
  3192. *nto* | *qnx*)
  3193. lt_cv_deplibs_check_method=pass_all
  3194. ;;
  3195. openbsd*)
  3196. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  3197. lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$'
  3198. else
  3199. lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
  3200. fi
  3201. ;;
  3202. osf3* | osf4* | osf5*)
  3203. lt_cv_deplibs_check_method=pass_all
  3204. ;;
  3205. rdos*)
  3206. lt_cv_deplibs_check_method=pass_all
  3207. ;;
  3208. solaris*)
  3209. lt_cv_deplibs_check_method=pass_all
  3210. ;;
  3211. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  3212. lt_cv_deplibs_check_method=pass_all
  3213. ;;
  3214. sysv4 | sysv4.3*)
  3215. case $host_vendor in
  3216. motorola)
  3217. 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]]'
  3218. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  3219. ;;
  3220. ncr)
  3221. lt_cv_deplibs_check_method=pass_all
  3222. ;;
  3223. sequent)
  3224. lt_cv_file_magic_cmd='/bin/file'
  3225. lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )'
  3226. ;;
  3227. sni)
  3228. lt_cv_file_magic_cmd='/bin/file'
  3229. lt_cv_deplibs_check_method="file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB dynamic lib"
  3230. lt_cv_file_magic_test_file=/lib/libc.so
  3231. ;;
  3232. siemens)
  3233. lt_cv_deplibs_check_method=pass_all
  3234. ;;
  3235. pc)
  3236. lt_cv_deplibs_check_method=pass_all
  3237. ;;
  3238. esac
  3239. ;;
  3240. tpf*)
  3241. lt_cv_deplibs_check_method=pass_all
  3242. ;;
  3243. esac
  3244. ])
  3245. file_magic_cmd=$lt_cv_file_magic_cmd
  3246. deplibs_check_method=$lt_cv_deplibs_check_method
  3247. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  3248. _LT_DECL([], [deplibs_check_method], [1],
  3249. [Method to check whether dependent libraries are shared objects])
  3250. _LT_DECL([], [file_magic_cmd], [1],
  3251. [Command to use when deplibs_check_method == "file_magic"])
  3252. ])# _LT_CHECK_MAGIC_METHOD
  3253. # LT_PATH_NM
  3254. # ----------
  3255. # find the pathname to a BSD- or MS-compatible name lister
  3256. AC_DEFUN([LT_PATH_NM],
  3257. [AC_REQUIRE([AC_PROG_CC])dnl
  3258. AC_CACHE_CHECK([for BSD- or MS-compatible name lister (nm)], lt_cv_path_NM,
  3259. [if test -n "$NM"; then
  3260. # Let the user override the test.
  3261. lt_cv_path_NM="$NM"
  3262. else
  3263. lt_nm_to_check="${ac_tool_prefix}nm"
  3264. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  3265. lt_nm_to_check="$lt_nm_to_check nm"
  3266. fi
  3267. for lt_tmp_nm in $lt_nm_to_check; do
  3268. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  3269. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  3270. IFS="$lt_save_ifs"
  3271. test -z "$ac_dir" && ac_dir=.
  3272. tmp_nm="$ac_dir/$lt_tmp_nm"
  3273. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
  3274. # Check to see if the nm accepts a BSD-compat flag.
  3275. # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  3276. # nm: unknown option "B" ignored
  3277. # Tru64's nm complains that /dev/null is an invalid object file
  3278. case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
  3279. */dev/null* | *'Invalid file or object type'*)
  3280. lt_cv_path_NM="$tmp_nm -B"
  3281. break
  3282. ;;
  3283. *)
  3284. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  3285. */dev/null*)
  3286. lt_cv_path_NM="$tmp_nm -p"
  3287. break
  3288. ;;
  3289. *)
  3290. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  3291. continue # so that we can try to find one that supports BSD flags
  3292. ;;
  3293. esac
  3294. ;;
  3295. esac
  3296. fi
  3297. done
  3298. IFS="$lt_save_ifs"
  3299. done
  3300. : ${lt_cv_path_NM=no}
  3301. fi])
  3302. if test "$lt_cv_path_NM" != "no"; then
  3303. NM="$lt_cv_path_NM"
  3304. else
  3305. # Didn't find any BSD compatible name lister, look for dumpbin.
  3306. if test -n "$DUMPBIN"; then :
  3307. # Let the user override the test.
  3308. else
  3309. AC_CHECK_TOOLS(DUMPBIN, [dumpbin "link -dump"], :)
  3310. case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
  3311. *COFF*)
  3312. DUMPBIN="$DUMPBIN -symbols"
  3313. ;;
  3314. *)
  3315. DUMPBIN=:
  3316. ;;
  3317. esac
  3318. fi
  3319. AC_SUBST([DUMPBIN])
  3320. if test "$DUMPBIN" != ":"; then
  3321. NM="$DUMPBIN"
  3322. fi
  3323. fi
  3324. test -z "$NM" && NM=nm
  3325. AC_SUBST([NM])
  3326. _LT_DECL([], [NM], [1], [A BSD- or MS-compatible name lister])dnl
  3327. AC_CACHE_CHECK([the name lister ($NM) interface], [lt_cv_nm_interface],
  3328. [lt_cv_nm_interface="BSD nm"
  3329. echo "int some_variable = 0;" > conftest.$ac_ext
  3330. (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&AS_MESSAGE_LOG_FD)
  3331. (eval "$ac_compile" 2>conftest.err)
  3332. cat conftest.err >&AS_MESSAGE_LOG_FD
  3333. (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&AS_MESSAGE_LOG_FD)
  3334. (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  3335. cat conftest.err >&AS_MESSAGE_LOG_FD
  3336. (eval echo "\"\$as_me:$LINENO: output\"" >&AS_MESSAGE_LOG_FD)
  3337. cat conftest.out >&AS_MESSAGE_LOG_FD
  3338. if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  3339. lt_cv_nm_interface="MS dumpbin"
  3340. fi
  3341. rm -f conftest*])
  3342. ])# LT_PATH_NM
  3343. # Old names:
  3344. AU_ALIAS([AM_PROG_NM], [LT_PATH_NM])
  3345. AU_ALIAS([AC_PROG_NM], [LT_PATH_NM])
  3346. dnl aclocal-1.4 backwards compatibility:
  3347. dnl AC_DEFUN([AM_PROG_NM], [])
  3348. dnl AC_DEFUN([AC_PROG_NM], [])
  3349. # LT_LIB_M
  3350. # --------
  3351. # check for math library
  3352. AC_DEFUN([LT_LIB_M],
  3353. [AC_REQUIRE([AC_CANONICAL_HOST])dnl
  3354. LIBM=
  3355. case $host in
  3356. *-*-beos* | *-*-cegcc* | *-*-cygwin* | *-*-haiku* | *-*-pw32* | *-*-darwin*)
  3357. # These system don't have libm, or don't need it
  3358. ;;
  3359. *-ncr-sysv4.3*)
  3360. AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM="-lmw")
  3361. AC_CHECK_LIB(m, cos, LIBM="$LIBM -lm")
  3362. ;;
  3363. *)
  3364. AC_CHECK_LIB(m, cos, LIBM="-lm")
  3365. ;;
  3366. esac
  3367. AC_SUBST([LIBM])
  3368. ])# LT_LIB_M
  3369. # Old name:
  3370. AU_ALIAS([AC_CHECK_LIBM], [LT_LIB_M])
  3371. dnl aclocal-1.4 backwards compatibility:
  3372. dnl AC_DEFUN([AC_CHECK_LIBM], [])
  3373. # _LT_COMPILER_NO_RTTI([TAGNAME])
  3374. # -------------------------------
  3375. m4_defun([_LT_COMPILER_NO_RTTI],
  3376. [m4_require([_LT_TAG_COMPILER])dnl
  3377. _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
  3378. if test "$GCC" = yes; then
  3379. case $cc_basename in
  3380. nvcc*)
  3381. _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -Xcompiler -fno-builtin' ;;
  3382. *)
  3383. _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin' ;;
  3384. esac
  3385. _LT_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions],
  3386. lt_cv_prog_compiler_rtti_exceptions,
  3387. [-fno-rtti -fno-exceptions], [],
  3388. [_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"])
  3389. fi
  3390. _LT_TAGDECL([no_builtin_flag], [lt_prog_compiler_no_builtin_flag], [1],
  3391. [Compiler flag to turn off builtin functions])
  3392. ])# _LT_COMPILER_NO_RTTI
  3393. # _LT_CMD_GLOBAL_SYMBOLS
  3394. # ----------------------
  3395. m4_defun([_LT_CMD_GLOBAL_SYMBOLS],
  3396. [AC_REQUIRE([AC_CANONICAL_HOST])dnl
  3397. AC_REQUIRE([AC_PROG_CC])dnl
  3398. AC_REQUIRE([AC_PROG_AWK])dnl
  3399. AC_REQUIRE([LT_PATH_NM])dnl
  3400. AC_REQUIRE([LT_PATH_LD])dnl
  3401. m4_require([_LT_DECL_SED])dnl
  3402. m4_require([_LT_DECL_EGREP])dnl
  3403. m4_require([_LT_TAG_COMPILER])dnl
  3404. # Check for command to grab the raw symbol name followed by C symbol from nm.
  3405. AC_MSG_CHECKING([command to parse $NM output from $compiler object])
  3406. AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe],
  3407. [
  3408. # These are sane defaults that work on at least a few old systems.
  3409. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  3410. # Character class describing NM global symbol codes.
  3411. symcode='[[BCDEGRST]]'
  3412. # Regexp to match symbols that can be accessed directly from C.
  3413. sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)'
  3414. # Define system-specific variables.
  3415. case $host_os in
  3416. aix*)
  3417. symcode='[[BCDT]]'
  3418. ;;
  3419. cygwin* | mingw* | pw32* | cegcc*)
  3420. symcode='[[ABCDGISTW]]'
  3421. ;;
  3422. hpux*)
  3423. if test "$host_cpu" = ia64; then
  3424. symcode='[[ABCDEGRST]]'
  3425. fi
  3426. ;;
  3427. irix* | nonstopux*)
  3428. symcode='[[BCDEGRST]]'
  3429. ;;
  3430. osf*)
  3431. symcode='[[BCDEGQRST]]'
  3432. ;;
  3433. solaris*)
  3434. symcode='[[BDRT]]'
  3435. ;;
  3436. sco3.2v5*)
  3437. symcode='[[DT]]'
  3438. ;;
  3439. sysv4.2uw2*)
  3440. symcode='[[DT]]'
  3441. ;;
  3442. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  3443. symcode='[[ABDT]]'
  3444. ;;
  3445. sysv4)
  3446. symcode='[[DFNSTU]]'
  3447. ;;
  3448. esac
  3449. # If we're using GNU nm, then use its standard symbol codes.
  3450. case `$NM -V 2>&1` in
  3451. *GNU* | *'with BFD'*)
  3452. symcode='[[ABCDGIRSTW]]' ;;
  3453. esac
  3454. # Transform an extracted symbol line into a proper C declaration.
  3455. # Some systems (esp. on ia64) link data and code symbols differently,
  3456. # so use this general approach.
  3457. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  3458. # Transform an extracted symbol line into symbol name and symbol address
  3459. lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (void *) \&\2},/p'"
  3460. 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'"
  3461. # Handle CRLF in mingw tool chain
  3462. opt_cr=
  3463. case $build_os in
  3464. mingw*)
  3465. opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  3466. ;;
  3467. esac
  3468. # Try without a prefix underscore, then with it.
  3469. for ac_symprfx in "" "_"; do
  3470. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  3471. symxfrm="\\1 $ac_symprfx\\2 \\2"
  3472. # Write the raw and C identifiers.
  3473. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  3474. # Fake it for dumpbin and say T for any non-static function
  3475. # and D for any global variable.
  3476. # Also find C++ and __fastcall symbols from MSVC++,
  3477. # which start with @ or ?.
  3478. lt_cv_sys_global_symbol_pipe="$AWK ['"\
  3479. " {last_section=section; section=\$ 3};"\
  3480. " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  3481. " \$ 0!~/External *\|/{next};"\
  3482. " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  3483. " {if(hide[section]) next};"\
  3484. " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
  3485. " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
  3486. " s[1]~/^[@?]/{print s[1], s[1]; next};"\
  3487. " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
  3488. " ' prfx=^$ac_symprfx]"
  3489. else
  3490. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  3491. fi
  3492. # Check to see that the pipe works correctly.
  3493. pipe_works=no
  3494. rm -f conftest*
  3495. cat > conftest.$ac_ext <<_LT_EOF
  3496. #ifdef __cplusplus
  3497. extern "C" {
  3498. #endif
  3499. char nm_test_var;
  3500. void nm_test_func(void);
  3501. void nm_test_func(void){}
  3502. #ifdef __cplusplus
  3503. }
  3504. #endif
  3505. int main(){nm_test_var='a';nm_test_func();return(0);}
  3506. _LT_EOF
  3507. if AC_TRY_EVAL(ac_compile); then
  3508. # Now try to grab the symbols.
  3509. nlist=conftest.nm
  3510. if AC_TRY_EVAL(NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) && test -s "$nlist"; then
  3511. # Try sorting and uniquifying the output.
  3512. if sort "$nlist" | uniq > "$nlist"T; then
  3513. mv -f "$nlist"T "$nlist"
  3514. else
  3515. rm -f "$nlist"T
  3516. fi
  3517. # Make sure that we snagged all the symbols we need.
  3518. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  3519. if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  3520. cat <<_LT_EOF > conftest.$ac_ext
  3521. #ifdef __cplusplus
  3522. extern "C" {
  3523. #endif
  3524. _LT_EOF
  3525. # Now generate the symbol file.
  3526. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  3527. cat <<_LT_EOF >> conftest.$ac_ext
  3528. /* The mapping between symbol names and symbols. */
  3529. const struct {
  3530. const char *name;
  3531. void *address;
  3532. }
  3533. lt__PROGRAM__LTX_preloaded_symbols[[]] =
  3534. {
  3535. { "@PROGRAM@", (void *) 0 },
  3536. _LT_EOF
  3537. $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  3538. cat <<\_LT_EOF >> conftest.$ac_ext
  3539. {0, (void *) 0}
  3540. };
  3541. /* This works around a problem in FreeBSD linker */
  3542. #ifdef FREEBSD_WORKAROUND
  3543. static const void *lt_preloaded_setup() {
  3544. return lt__PROGRAM__LTX_preloaded_symbols;
  3545. }
  3546. #endif
  3547. #ifdef __cplusplus
  3548. }
  3549. #endif
  3550. _LT_EOF
  3551. # Now try linking the two files.
  3552. mv conftest.$ac_objext conftstm.$ac_objext
  3553. lt_save_LIBS="$LIBS"
  3554. lt_save_CFLAGS="$CFLAGS"
  3555. LIBS="conftstm.$ac_objext"
  3556. CFLAGS="$CFLAGS$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)"
  3557. if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then
  3558. pipe_works=yes
  3559. fi
  3560. LIBS="$lt_save_LIBS"
  3561. CFLAGS="$lt_save_CFLAGS"
  3562. else
  3563. echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD
  3564. fi
  3565. else
  3566. echo "cannot find nm_test_var in $nlist" >&AS_MESSAGE_LOG_FD
  3567. fi
  3568. else
  3569. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&AS_MESSAGE_LOG_FD
  3570. fi
  3571. else
  3572. echo "$progname: failed program was:" >&AS_MESSAGE_LOG_FD
  3573. cat conftest.$ac_ext >&5
  3574. fi
  3575. rm -rf conftest* conftst*
  3576. # Do not use the global_symbol_pipe unless it works.
  3577. if test "$pipe_works" = yes; then
  3578. break
  3579. else
  3580. lt_cv_sys_global_symbol_pipe=
  3581. fi
  3582. done
  3583. ])
  3584. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  3585. lt_cv_sys_global_symbol_to_cdecl=
  3586. fi
  3587. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  3588. AC_MSG_RESULT(failed)
  3589. else
  3590. AC_MSG_RESULT(ok)
  3591. fi
  3592. _LT_DECL([global_symbol_pipe], [lt_cv_sys_global_symbol_pipe], [1],
  3593. [Take the output of nm and produce a listing of raw symbols and C names])
  3594. _LT_DECL([global_symbol_to_cdecl], [lt_cv_sys_global_symbol_to_cdecl], [1],
  3595. [Transform the output of nm in a proper C declaration])
  3596. _LT_DECL([global_symbol_to_c_name_address],
  3597. [lt_cv_sys_global_symbol_to_c_name_address], [1],
  3598. [Transform the output of nm in a C name address pair])
  3599. _LT_DECL([global_symbol_to_c_name_address_lib_prefix],
  3600. [lt_cv_sys_global_symbol_to_c_name_address_lib_prefix], [1],
  3601. [Transform the output of nm in a C name address pair when lib prefix is needed])
  3602. ]) # _LT_CMD_GLOBAL_SYMBOLS
  3603. # _LT_COMPILER_PIC([TAGNAME])
  3604. # ---------------------------
  3605. m4_defun([_LT_COMPILER_PIC],
  3606. [m4_require([_LT_TAG_COMPILER])dnl
  3607. _LT_TAGVAR(lt_prog_compiler_wl, $1)=
  3608. _LT_TAGVAR(lt_prog_compiler_pic, $1)=
  3609. _LT_TAGVAR(lt_prog_compiler_static, $1)=
  3610. AC_MSG_CHECKING([for $compiler option to produce PIC])
  3611. m4_if([$1], [CXX], [
  3612. # C++ specific cases for pic, static, wl, etc.
  3613. if test "$GXX" = yes; then
  3614. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  3615. _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
  3616. case $host_os in
  3617. aix*)
  3618. # All AIX code is PIC.
  3619. if test "$host_cpu" = ia64; then
  3620. # AIX 5 now supports IA64 processor
  3621. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  3622. fi
  3623. ;;
  3624. amigaos*)
  3625. case $host_cpu in
  3626. powerpc)
  3627. # see comment about AmigaOS4 .so support
  3628. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  3629. ;;
  3630. m68k)
  3631. # FIXME: we need at least 68020 code to build shared libraries, but
  3632. # adding the `-m68020' flag to GCC prevents building anything better,
  3633. # like `-m68040'.
  3634. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
  3635. ;;
  3636. esac
  3637. ;;
  3638. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  3639. # PIC is the default for these OSes.
  3640. ;;
  3641. mingw* | cygwin* | os2* | pw32* | cegcc*)
  3642. # This hack is so that the source file can tell whether it is being
  3643. # built for inclusion in a dll (and should export symbols for example).
  3644. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  3645. # (--disable-auto-import) libraries
  3646. m4_if([$1], [GCJ], [],
  3647. [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
  3648. ;;
  3649. darwin* | rhapsody*)
  3650. # PIC is the default on this platform
  3651. # Common symbols not allowed in MH_DYLIB files
  3652. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
  3653. ;;
  3654. *djgpp*)
  3655. # DJGPP does not support shared libraries at all
  3656. _LT_TAGVAR(lt_prog_compiler_pic, $1)=
  3657. ;;
  3658. haiku*)
  3659. # PIC is the default for Haiku.
  3660. # The "-static" flag exists, but is broken.
  3661. _LT_TAGVAR(lt_prog_compiler_static, $1)=
  3662. ;;
  3663. interix[[3-9]]*)
  3664. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  3665. # Instead, we relocate shared libraries at runtime.
  3666. ;;
  3667. sysv4*MP*)
  3668. if test -d /usr/nec; then
  3669. _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
  3670. fi
  3671. ;;
  3672. hpux*)
  3673. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  3674. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  3675. # sets the default TLS model and affects inlining.
  3676. case $host_cpu in
  3677. hppa*64*)
  3678. ;;
  3679. *)
  3680. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  3681. ;;
  3682. esac
  3683. ;;
  3684. *qnx* | *nto*)
  3685. # QNX uses GNU C++, but need to define -shared option too, otherwise
  3686. # it will coredump.
  3687. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
  3688. ;;
  3689. *)
  3690. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  3691. ;;
  3692. esac
  3693. else
  3694. case $host_os in
  3695. aix[[4-9]]*)
  3696. # All AIX code is PIC.
  3697. if test "$host_cpu" = ia64; then
  3698. # AIX 5 now supports IA64 processor
  3699. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  3700. else
  3701. _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
  3702. fi
  3703. ;;
  3704. chorus*)
  3705. case $cc_basename in
  3706. cxch68*)
  3707. # Green Hills C++ Compiler
  3708. # _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"
  3709. ;;
  3710. esac
  3711. ;;
  3712. dgux*)
  3713. case $cc_basename in
  3714. ec++*)
  3715. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  3716. ;;
  3717. ghcx*)
  3718. # Green Hills C++ Compiler
  3719. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  3720. ;;
  3721. *)
  3722. ;;
  3723. esac
  3724. ;;
  3725. freebsd* | dragonfly*)
  3726. # FreeBSD uses GNU C++
  3727. ;;
  3728. hpux9* | hpux10* | hpux11*)
  3729. case $cc_basename in
  3730. CC*)
  3731. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  3732. _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
  3733. if test "$host_cpu" != ia64; then
  3734. _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
  3735. fi
  3736. ;;
  3737. aCC*)
  3738. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  3739. _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
  3740. case $host_cpu in
  3741. hppa*64*|ia64*)
  3742. # +Z the default
  3743. ;;
  3744. *)
  3745. _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
  3746. ;;
  3747. esac
  3748. ;;
  3749. *)
  3750. ;;
  3751. esac
  3752. ;;
  3753. interix*)
  3754. # This is c89, which is MS Visual C++ (no shared libs)
  3755. # Anyone wants to do a port?
  3756. ;;
  3757. irix5* | irix6* | nonstopux*)
  3758. case $cc_basename in
  3759. CC*)
  3760. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  3761. _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  3762. # CC pic flag -KPIC is the default.
  3763. ;;
  3764. *)
  3765. ;;
  3766. esac
  3767. ;;
  3768. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  3769. case $cc_basename in
  3770. KCC*)
  3771. # KAI C++ Compiler
  3772. _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
  3773. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  3774. ;;
  3775. ecpc* )
  3776. # old Intel C++ for x86_64 which still supported -KPIC.
  3777. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  3778. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  3779. _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
  3780. ;;
  3781. icpc* )
  3782. # Intel C++, used to be incompatible with GCC.
  3783. # ICC 10 doesn't accept -KPIC any more.
  3784. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  3785. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  3786. _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
  3787. ;;
  3788. pgCC* | pgcpp*)
  3789. # Portland Group C++ compiler
  3790. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  3791. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
  3792. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  3793. ;;
  3794. cxx*)
  3795. # Compaq C++
  3796. # Make sure the PIC flag is empty. It appears that all Alpha
  3797. # Linux and Compaq Tru64 Unix objects are PIC.
  3798. _LT_TAGVAR(lt_prog_compiler_pic, $1)=
  3799. _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  3800. ;;
  3801. xlc* | xlC* | bgxl[[cC]]* | mpixl[[cC]]*)
  3802. # IBM XL 8.0, 9.0 on PPC and BlueGene
  3803. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  3804. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
  3805. _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
  3806. ;;
  3807. *)
  3808. case `$CC -V 2>&1 | sed 5q` in
  3809. *Sun\ C*)
  3810. # Sun C++ 5.9
  3811. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  3812. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  3813. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
  3814. ;;
  3815. esac
  3816. ;;
  3817. esac
  3818. ;;
  3819. lynxos*)
  3820. ;;
  3821. m88k*)
  3822. ;;
  3823. mvs*)
  3824. case $cc_basename in
  3825. cxx*)
  3826. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall'
  3827. ;;
  3828. *)
  3829. ;;
  3830. esac
  3831. ;;
  3832. netbsd*)
  3833. ;;
  3834. *qnx* | *nto*)
  3835. # QNX uses GNU C++, but need to define -shared option too, otherwise
  3836. # it will coredump.
  3837. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
  3838. ;;
  3839. osf3* | osf4* | osf5*)
  3840. case $cc_basename in
  3841. KCC*)
  3842. _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
  3843. ;;
  3844. RCC*)
  3845. # Rational C++ 2.4.1
  3846. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  3847. ;;
  3848. cxx*)
  3849. # Digital/Compaq C++
  3850. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  3851. # Make sure the PIC flag is empty. It appears that all Alpha
  3852. # Linux and Compaq Tru64 Unix objects are PIC.
  3853. _LT_TAGVAR(lt_prog_compiler_pic, $1)=
  3854. _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  3855. ;;
  3856. *)
  3857. ;;
  3858. esac
  3859. ;;
  3860. psos*)
  3861. ;;
  3862. solaris*)
  3863. case $cc_basename in
  3864. CC* | sunCC*)
  3865. # Sun C++ 4.2, 5.x and Centerline C++
  3866. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  3867. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  3868. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
  3869. ;;
  3870. gcx*)
  3871. # Green Hills C++ Compiler
  3872. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
  3873. ;;
  3874. *)
  3875. ;;
  3876. esac
  3877. ;;
  3878. sunos4*)
  3879. case $cc_basename in
  3880. CC*)
  3881. # Sun C++ 4.x
  3882. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  3883. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  3884. ;;
  3885. lcc*)
  3886. # Lucid
  3887. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  3888. ;;
  3889. *)
  3890. ;;
  3891. esac
  3892. ;;
  3893. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  3894. case $cc_basename in
  3895. CC*)
  3896. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  3897. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  3898. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  3899. ;;
  3900. esac
  3901. ;;
  3902. tandem*)
  3903. case $cc_basename in
  3904. NCC*)
  3905. # NonStop-UX NCC 3.20
  3906. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  3907. ;;
  3908. *)
  3909. ;;
  3910. esac
  3911. ;;
  3912. vxworks*)
  3913. ;;
  3914. *)
  3915. _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
  3916. ;;
  3917. esac
  3918. fi
  3919. ],
  3920. [
  3921. if test "$GCC" = yes; then
  3922. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  3923. _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
  3924. case $host_os in
  3925. aix*)
  3926. # All AIX code is PIC.
  3927. if test "$host_cpu" = ia64; then
  3928. # AIX 5 now supports IA64 processor
  3929. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  3930. fi
  3931. ;;
  3932. amigaos*)
  3933. case $host_cpu in
  3934. powerpc)
  3935. # see comment about AmigaOS4 .so support
  3936. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  3937. ;;
  3938. m68k)
  3939. # FIXME: we need at least 68020 code to build shared libraries, but
  3940. # adding the `-m68020' flag to GCC prevents building anything better,
  3941. # like `-m68040'.
  3942. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
  3943. ;;
  3944. esac
  3945. ;;
  3946. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  3947. # PIC is the default for these OSes.
  3948. ;;
  3949. mingw* | cygwin* | pw32* | os2* | cegcc*)
  3950. # This hack is so that the source file can tell whether it is being
  3951. # built for inclusion in a dll (and should export symbols for example).
  3952. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  3953. # (--disable-auto-import) libraries
  3954. m4_if([$1], [GCJ], [],
  3955. [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
  3956. ;;
  3957. darwin* | rhapsody*)
  3958. # PIC is the default on this platform
  3959. # Common symbols not allowed in MH_DYLIB files
  3960. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
  3961. ;;
  3962. haiku*)
  3963. # PIC is the default for Haiku.
  3964. # The "-static" flag exists, but is broken.
  3965. _LT_TAGVAR(lt_prog_compiler_static, $1)=
  3966. ;;
  3967. hpux*)
  3968. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  3969. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  3970. # sets the default TLS model and affects inlining.
  3971. case $host_cpu in
  3972. hppa*64*)
  3973. # +Z the default
  3974. ;;
  3975. *)
  3976. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  3977. ;;
  3978. esac
  3979. ;;
  3980. interix[[3-9]]*)
  3981. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  3982. # Instead, we relocate shared libraries at runtime.
  3983. ;;
  3984. msdosdjgpp*)
  3985. # Just because we use GCC doesn't mean we suddenly get shared libraries
  3986. # on systems that don't support them.
  3987. _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
  3988. enable_shared=no
  3989. ;;
  3990. *nto* | *qnx*)
  3991. # QNX uses GNU C++, but need to define -shared option too, otherwise
  3992. # it will coredump.
  3993. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
  3994. ;;
  3995. sysv4*MP*)
  3996. if test -d /usr/nec; then
  3997. _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
  3998. fi
  3999. ;;
  4000. *)
  4001. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  4002. ;;
  4003. esac
  4004. case $cc_basename in
  4005. nvcc*) # Cuda Compiler Driver 2.2
  4006. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Xlinker '
  4007. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-Xcompiler -fPIC'
  4008. ;;
  4009. esac
  4010. else
  4011. # PORTME Check for flag to pass linker flags through the system compiler.
  4012. case $host_os in
  4013. aix*)
  4014. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4015. if test "$host_cpu" = ia64; then
  4016. # AIX 5 now supports IA64 processor
  4017. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  4018. else
  4019. _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
  4020. fi
  4021. ;;
  4022. mingw* | cygwin* | pw32* | os2* | cegcc*)
  4023. # This hack is so that the source file can tell whether it is being
  4024. # built for inclusion in a dll (and should export symbols for example).
  4025. m4_if([$1], [GCJ], [],
  4026. [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
  4027. ;;
  4028. hpux9* | hpux10* | hpux11*)
  4029. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4030. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  4031. # not for PA HP-UX.
  4032. case $host_cpu in
  4033. hppa*64*|ia64*)
  4034. # +Z the default
  4035. ;;
  4036. *)
  4037. _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
  4038. ;;
  4039. esac
  4040. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  4041. _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
  4042. ;;
  4043. irix5* | irix6* | nonstopux*)
  4044. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4045. # PIC (with -KPIC) is the default.
  4046. _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  4047. ;;
  4048. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  4049. case $cc_basename in
  4050. # old Intel for x86_64 which still supported -KPIC.
  4051. ecc*)
  4052. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4053. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  4054. _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
  4055. ;;
  4056. # icc used to be incompatible with GCC.
  4057. # ICC 10 doesn't accept -KPIC any more.
  4058. icc* | ifort*)
  4059. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4060. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  4061. _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
  4062. ;;
  4063. # Lahey Fortran 8.1.
  4064. lf95*)
  4065. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4066. _LT_TAGVAR(lt_prog_compiler_pic, $1)='--shared'
  4067. _LT_TAGVAR(lt_prog_compiler_static, $1)='--static'
  4068. ;;
  4069. pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
  4070. # Portland Group compilers (*not* the Pentium gcc compiler,
  4071. # which looks to be a dead project)
  4072. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4073. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
  4074. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  4075. ;;
  4076. ccc*)
  4077. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4078. # All Alpha code is PIC.
  4079. _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  4080. ;;
  4081. xl* | bgxl* | bgf* | mpixl*)
  4082. # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
  4083. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4084. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
  4085. _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
  4086. ;;
  4087. *)
  4088. case `$CC -V 2>&1 | sed 5q` in
  4089. *Sun\ F* | *Sun*Fortran*)
  4090. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  4091. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  4092. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  4093. _LT_TAGVAR(lt_prog_compiler_wl, $1)=''
  4094. ;;
  4095. *Sun\ C*)
  4096. # Sun C 5.9
  4097. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  4098. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  4099. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4100. ;;
  4101. esac
  4102. ;;
  4103. esac
  4104. ;;
  4105. newsos6)
  4106. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  4107. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  4108. ;;
  4109. *nto* | *qnx*)
  4110. # QNX uses GNU C++, but need to define -shared option too, otherwise
  4111. # it will coredump.
  4112. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
  4113. ;;
  4114. osf3* | osf4* | osf5*)
  4115. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4116. # All OSF/1 code is PIC.
  4117. _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  4118. ;;
  4119. rdos*)
  4120. _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  4121. ;;
  4122. solaris*)
  4123. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  4124. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  4125. case $cc_basename in
  4126. f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
  4127. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';;
  4128. *)
  4129. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';;
  4130. esac
  4131. ;;
  4132. sunos4*)
  4133. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
  4134. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
  4135. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  4136. ;;
  4137. sysv4 | sysv4.2uw2* | sysv4.3*)
  4138. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4139. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  4140. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  4141. ;;
  4142. sysv4*MP*)
  4143. if test -d /usr/nec ;then
  4144. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic'
  4145. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  4146. fi
  4147. ;;
  4148. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  4149. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4150. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  4151. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  4152. ;;
  4153. unicos*)
  4154. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4155. _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
  4156. ;;
  4157. uts4*)
  4158. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  4159. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  4160. ;;
  4161. *)
  4162. _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
  4163. ;;
  4164. esac
  4165. fi
  4166. ])
  4167. case $host_os in
  4168. # For platforms which do not support PIC, -DPIC is meaningless:
  4169. *djgpp*)
  4170. _LT_TAGVAR(lt_prog_compiler_pic, $1)=
  4171. ;;
  4172. *)
  4173. _LT_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])"
  4174. ;;
  4175. esac
  4176. AC_MSG_RESULT([$_LT_TAGVAR(lt_prog_compiler_pic, $1)])
  4177. _LT_TAGDECL([wl], [lt_prog_compiler_wl], [1],
  4178. [How to pass a linker flag through the compiler])
  4179. #
  4180. # Check to make sure the PIC flag actually works.
  4181. #
  4182. if test -n "$_LT_TAGVAR(lt_prog_compiler_pic, $1)"; then
  4183. _LT_COMPILER_OPTION([if $compiler PIC flag $_LT_TAGVAR(lt_prog_compiler_pic, $1) works],
  4184. [_LT_TAGVAR(lt_cv_prog_compiler_pic_works, $1)],
  4185. [$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])], [],
  4186. [case $_LT_TAGVAR(lt_prog_compiler_pic, $1) in
  4187. "" | " "*) ;;
  4188. *) _LT_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_TAGVAR(lt_prog_compiler_pic, $1)" ;;
  4189. esac],
  4190. [_LT_TAGVAR(lt_prog_compiler_pic, $1)=
  4191. _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no])
  4192. fi
  4193. _LT_TAGDECL([pic_flag], [lt_prog_compiler_pic], [1],
  4194. [Additional compiler flags for building library objects])
  4195. #
  4196. # Check to make sure the static flag actually works.
  4197. #
  4198. wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_TAGVAR(lt_prog_compiler_static, $1)\"
  4199. _LT_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works],
  4200. _LT_TAGVAR(lt_cv_prog_compiler_static_works, $1),
  4201. $lt_tmp_static_flag,
  4202. [],
  4203. [_LT_TAGVAR(lt_prog_compiler_static, $1)=])
  4204. _LT_TAGDECL([link_static_flag], [lt_prog_compiler_static], [1],
  4205. [Compiler flag to prevent dynamic linking])
  4206. ])# _LT_COMPILER_PIC
  4207. # _LT_LINKER_SHLIBS([TAGNAME])
  4208. # ----------------------------
  4209. # See if the linker supports building shared libraries.
  4210. m4_defun([_LT_LINKER_SHLIBS],
  4211. [AC_REQUIRE([LT_PATH_LD])dnl
  4212. AC_REQUIRE([LT_PATH_NM])dnl
  4213. m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  4214. m4_require([_LT_DECL_EGREP])dnl
  4215. m4_require([_LT_DECL_SED])dnl
  4216. m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
  4217. m4_require([_LT_TAG_COMPILER])dnl
  4218. AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
  4219. m4_if([$1], [CXX], [
  4220. _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  4221. case $host_os in
  4222. aix[[4-9]]*)
  4223. # If we're using GNU nm, then we don't want the "-C" option.
  4224. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  4225. # Also, AIX nm treats weak defined symbols like other global defined
  4226. # symbols, whereas GNU nm marks them as "W".
  4227. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  4228. _LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
  4229. else
  4230. _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'
  4231. fi
  4232. ;;
  4233. pw32*)
  4234. _LT_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
  4235. ;;
  4236. cygwin* | mingw* | cegcc*)
  4237. _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'
  4238. ;;
  4239. *)
  4240. _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  4241. ;;
  4242. esac
  4243. _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
  4244. ], [
  4245. runpath_var=
  4246. _LT_TAGVAR(allow_undefined_flag, $1)=
  4247. _LT_TAGVAR(always_export_symbols, $1)=no
  4248. _LT_TAGVAR(archive_cmds, $1)=
  4249. _LT_TAGVAR(archive_expsym_cmds, $1)=
  4250. _LT_TAGVAR(compiler_needs_object, $1)=no
  4251. _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
  4252. _LT_TAGVAR(export_dynamic_flag_spec, $1)=
  4253. _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  4254. _LT_TAGVAR(hardcode_automatic, $1)=no
  4255. _LT_TAGVAR(hardcode_direct, $1)=no
  4256. _LT_TAGVAR(hardcode_direct_absolute, $1)=no
  4257. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
  4258. _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
  4259. _LT_TAGVAR(hardcode_libdir_separator, $1)=
  4260. _LT_TAGVAR(hardcode_minus_L, $1)=no
  4261. _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
  4262. _LT_TAGVAR(inherit_rpath, $1)=no
  4263. _LT_TAGVAR(link_all_deplibs, $1)=unknown
  4264. _LT_TAGVAR(module_cmds, $1)=
  4265. _LT_TAGVAR(module_expsym_cmds, $1)=
  4266. _LT_TAGVAR(old_archive_from_new_cmds, $1)=
  4267. _LT_TAGVAR(old_archive_from_expsyms_cmds, $1)=
  4268. _LT_TAGVAR(thread_safe_flag_spec, $1)=
  4269. _LT_TAGVAR(whole_archive_flag_spec, $1)=
  4270. # include_expsyms should be a list of space-separated symbols to be *always*
  4271. # included in the symbol list
  4272. _LT_TAGVAR(include_expsyms, $1)=
  4273. # exclude_expsyms can be an extended regexp of symbols to exclude
  4274. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  4275. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  4276. # as well as any symbol that contains `d'.
  4277. _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
  4278. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  4279. # platforms (ab)use it in PIC code, but their linkers get confused if
  4280. # the symbol is explicitly referenced. Since portable code cannot
  4281. # rely on this symbol name, it's probably fine to never include it in
  4282. # preloaded symbol tables.
  4283. # Exclude shared library initialization/finalization symbols.
  4284. dnl Note also adjust exclude_expsyms for C++ above.
  4285. extract_expsyms_cmds=
  4286. case $host_os in
  4287. cygwin* | mingw* | pw32* | cegcc*)
  4288. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  4289. # When not using gcc, we currently assume that we are using
  4290. # Microsoft Visual C++.
  4291. if test "$GCC" != yes; then
  4292. with_gnu_ld=no
  4293. fi
  4294. ;;
  4295. interix*)
  4296. # we just hope/assume this is gcc and not c89 (= MSVC++)
  4297. with_gnu_ld=yes
  4298. ;;
  4299. openbsd*)
  4300. with_gnu_ld=no
  4301. ;;
  4302. esac
  4303. _LT_TAGVAR(ld_shlibs, $1)=yes
  4304. # On some targets, GNU ld is compatible enough with the native linker
  4305. # that we're better off using the native interface for both.
  4306. lt_use_gnu_ld_interface=no
  4307. if test "$with_gnu_ld" = yes; then
  4308. case $host_os in
  4309. aix*)
  4310. # The AIX port of GNU ld has always aspired to compatibility
  4311. # with the native linker. However, as the warning in the GNU ld
  4312. # block says, versions before 2.19.5* couldn't really create working
  4313. # shared libraries, regardless of the interface used.
  4314. case `$LD -v 2>&1` in
  4315. *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
  4316. *\ \(GNU\ Binutils\)\ 2.[[2-9]]*) ;;
  4317. *\ \(GNU\ Binutils\)\ [[3-9]]*) ;;
  4318. *)
  4319. lt_use_gnu_ld_interface=yes
  4320. ;;
  4321. esac
  4322. ;;
  4323. *)
  4324. lt_use_gnu_ld_interface=yes
  4325. ;;
  4326. esac
  4327. fi
  4328. if test "$lt_use_gnu_ld_interface" = yes; then
  4329. # If archive_cmds runs LD, not CC, wlarc should be empty
  4330. wlarc='${wl}'
  4331. # Set some defaults for GNU ld with shared library support. These
  4332. # are reset later if shared libraries are not supported. Putting them
  4333. # here allows them to be overridden if necessary.
  4334. runpath_var=LD_RUN_PATH
  4335. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  4336. _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  4337. # ancient GNU ld didn't support --whole-archive et. al.
  4338. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  4339. _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  4340. else
  4341. _LT_TAGVAR(whole_archive_flag_spec, $1)=
  4342. fi
  4343. supports_anon_versioning=no
  4344. case `$LD -v 2>&1` in
  4345. *GNU\ gold*) supports_anon_versioning=yes ;;
  4346. *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11
  4347. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  4348. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  4349. *\ 2.11.*) ;; # other 2.11 versions
  4350. *) supports_anon_versioning=yes ;;
  4351. esac
  4352. # See if GNU ld supports shared libraries.
  4353. case $host_os in
  4354. aix[[3-9]]*)
  4355. # On AIX/PPC, the GNU linker is very broken
  4356. if test "$host_cpu" != ia64; then
  4357. _LT_TAGVAR(ld_shlibs, $1)=no
  4358. cat <<_LT_EOF 1>&2
  4359. *** Warning: the GNU linker, at least up to release 2.19, is reported
  4360. *** to be unable to reliably create shared libraries on AIX.
  4361. *** Therefore, libtool is disabling shared libraries support. If you
  4362. *** really care for shared libraries, you may want to install binutils
  4363. *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
  4364. *** You will then need to restart the configuration process.
  4365. _LT_EOF
  4366. fi
  4367. ;;
  4368. amigaos*)
  4369. case $host_cpu in
  4370. powerpc)
  4371. # see comment about AmigaOS4 .so support
  4372. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  4373. _LT_TAGVAR(archive_expsym_cmds, $1)=''
  4374. ;;
  4375. m68k)
  4376. _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)'
  4377. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  4378. _LT_TAGVAR(hardcode_minus_L, $1)=yes
  4379. ;;
  4380. esac
  4381. ;;
  4382. beos*)
  4383. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  4384. _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  4385. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  4386. # support --undefined. This deserves some investigation. FIXME
  4387. _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  4388. else
  4389. _LT_TAGVAR(ld_shlibs, $1)=no
  4390. fi
  4391. ;;
  4392. cygwin* | mingw* | pw32* | cegcc*)
  4393. # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
  4394. # as there is no search path for DLLs.
  4395. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  4396. _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-all-symbols'
  4397. _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  4398. _LT_TAGVAR(always_export_symbols, $1)=no
  4399. _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
  4400. _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'
  4401. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  4402. _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'
  4403. # If the export-symbols file already is a .def file (1st line
  4404. # is EXPORTS), use it as is; otherwise, prepend...
  4405. _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  4406. cp $export_symbols $output_objdir/$soname.def;
  4407. else
  4408. echo EXPORTS > $output_objdir/$soname.def;
  4409. cat $export_symbols >> $output_objdir/$soname.def;
  4410. fi~
  4411. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  4412. else
  4413. _LT_TAGVAR(ld_shlibs, $1)=no
  4414. fi
  4415. ;;
  4416. haiku*)
  4417. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  4418. _LT_TAGVAR(link_all_deplibs, $1)=yes
  4419. ;;
  4420. interix[[3-9]]*)
  4421. _LT_TAGVAR(hardcode_direct, $1)=no
  4422. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  4423. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  4424. _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  4425. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  4426. # Instead, shared libraries are loaded at an image base (0x10000000 by
  4427. # default) and relocated if they conflict, which is a slow very memory
  4428. # consuming and fragmenting process. To avoid this, we pick a random,
  4429. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  4430. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  4431. _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'
  4432. _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'
  4433. ;;
  4434. gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
  4435. tmp_diet=no
  4436. if test "$host_os" = linux-dietlibc; then
  4437. case $cc_basename in
  4438. diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  4439. esac
  4440. fi
  4441. if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  4442. && test "$tmp_diet" = no
  4443. then
  4444. tmp_addflag=
  4445. tmp_sharedflag='-shared'
  4446. case $cc_basename,$host_cpu in
  4447. pgcc*) # Portland Group C compiler
  4448. _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
  4449. tmp_addflag=' $pic_flag'
  4450. ;;
  4451. pgf77* | pgf90* | pgf95* | pgfortran*)
  4452. # Portland Group f77 and f90 compilers
  4453. _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
  4454. tmp_addflag=' $pic_flag -Mnomain' ;;
  4455. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  4456. tmp_addflag=' -i_dynamic' ;;
  4457. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  4458. tmp_addflag=' -i_dynamic -nofor_main' ;;
  4459. ifc* | ifort*) # Intel Fortran compiler
  4460. tmp_addflag=' -nofor_main' ;;
  4461. lf95*) # Lahey Fortran 8.1
  4462. _LT_TAGVAR(whole_archive_flag_spec, $1)=
  4463. tmp_sharedflag='--shared' ;;
  4464. xl[[cC]]* | bgxl[[cC]]* | mpixl[[cC]]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  4465. tmp_sharedflag='-qmkshrobj'
  4466. tmp_addflag= ;;
  4467. nvcc*) # Cuda Compiler Driver 2.2
  4468. _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
  4469. _LT_TAGVAR(compiler_needs_object, $1)=yes
  4470. ;;
  4471. esac
  4472. case `$CC -V 2>&1 | sed 5q` in
  4473. *Sun\ C*) # Sun C 5.9
  4474. _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; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
  4475. _LT_TAGVAR(compiler_needs_object, $1)=yes
  4476. tmp_sharedflag='-G' ;;
  4477. *Sun\ F*) # Sun Fortran 8.3
  4478. tmp_sharedflag='-G' ;;
  4479. esac
  4480. _LT_TAGVAR(archive_cmds, $1)='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  4481. if test "x$supports_anon_versioning" = xyes; then
  4482. _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
  4483. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  4484. echo "local: *; };" >> $output_objdir/$libname.ver~
  4485. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  4486. fi
  4487. case $cc_basename in
  4488. xlf* | bgf* | bgxlf* | mpixlf*)
  4489. # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  4490. _LT_TAGVAR(whole_archive_flag_spec, $1)='--whole-archive$convenience --no-whole-archive'
  4491. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
  4492. _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='-rpath $libdir'
  4493. _LT_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
  4494. if test "x$supports_anon_versioning" = xyes; then
  4495. _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
  4496. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  4497. echo "local: *; };" >> $output_objdir/$libname.ver~
  4498. $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  4499. fi
  4500. ;;
  4501. esac
  4502. else
  4503. _LT_TAGVAR(ld_shlibs, $1)=no
  4504. fi
  4505. ;;
  4506. netbsd*)
  4507. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  4508. _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  4509. wlarc=
  4510. else
  4511. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  4512. _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'
  4513. fi
  4514. ;;
  4515. solaris*)
  4516. if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  4517. _LT_TAGVAR(ld_shlibs, $1)=no
  4518. cat <<_LT_EOF 1>&2
  4519. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  4520. *** create shared libraries on Solaris systems. Therefore, libtool
  4521. *** is disabling shared libraries support. We urge you to upgrade GNU
  4522. *** binutils to release 2.9.1 or newer. Another option is to modify
  4523. *** your PATH or compiler configuration so that the native linker is
  4524. *** used, and then restart.
  4525. _LT_EOF
  4526. elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  4527. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  4528. _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'
  4529. else
  4530. _LT_TAGVAR(ld_shlibs, $1)=no
  4531. fi
  4532. ;;
  4533. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  4534. case `$LD -v 2>&1` in
  4535. *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*)
  4536. _LT_TAGVAR(ld_shlibs, $1)=no
  4537. cat <<_LT_EOF 1>&2
  4538. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  4539. *** reliably create shared libraries on SCO systems. Therefore, libtool
  4540. *** is disabling shared libraries support. We urge you to upgrade GNU
  4541. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  4542. *** your PATH or compiler configuration so that the native linker is
  4543. *** used, and then restart.
  4544. _LT_EOF
  4545. ;;
  4546. *)
  4547. # For security reasons, it is highly recommended that you always
  4548. # use absolute paths for naming shared libraries, and exclude the
  4549. # DT_RUNPATH tag from executables and libraries. But doing so
  4550. # requires that you compile everything twice, which is a pain.
  4551. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  4552. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  4553. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  4554. _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'
  4555. else
  4556. _LT_TAGVAR(ld_shlibs, $1)=no
  4557. fi
  4558. ;;
  4559. esac
  4560. ;;
  4561. sunos4*)
  4562. _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  4563. wlarc=
  4564. _LT_TAGVAR(hardcode_direct, $1)=yes
  4565. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  4566. ;;
  4567. *)
  4568. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  4569. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  4570. _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'
  4571. else
  4572. _LT_TAGVAR(ld_shlibs, $1)=no
  4573. fi
  4574. ;;
  4575. esac
  4576. if test "$_LT_TAGVAR(ld_shlibs, $1)" = no; then
  4577. runpath_var=
  4578. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
  4579. _LT_TAGVAR(export_dynamic_flag_spec, $1)=
  4580. _LT_TAGVAR(whole_archive_flag_spec, $1)=
  4581. fi
  4582. else
  4583. # PORTME fill in a description of your system's linker (not GNU ld)
  4584. case $host_os in
  4585. aix3*)
  4586. _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  4587. _LT_TAGVAR(always_export_symbols, $1)=yes
  4588. _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'
  4589. # Note: this linker hardcodes the directories in LIBPATH if there
  4590. # are no directories specified by -L.
  4591. _LT_TAGVAR(hardcode_minus_L, $1)=yes
  4592. if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  4593. # Neither direct hardcoding nor static linking is supported with a
  4594. # broken collect2.
  4595. _LT_TAGVAR(hardcode_direct, $1)=unsupported
  4596. fi
  4597. ;;
  4598. aix[[4-9]]*)
  4599. if test "$host_cpu" = ia64; then
  4600. # On IA64, the linker does run time linking by default, so we don't
  4601. # have to do anything special.
  4602. aix_use_runtimelinking=no
  4603. exp_sym_flag='-Bexport'
  4604. no_entry_flag=""
  4605. else
  4606. # If we're using GNU nm, then we don't want the "-C" option.
  4607. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  4608. # Also, AIX nm treats weak defined symbols like other global
  4609. # defined symbols, whereas GNU nm marks them as "W".
  4610. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  4611. _LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
  4612. else
  4613. _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'
  4614. fi
  4615. aix_use_runtimelinking=no
  4616. # Test if we are trying to use run time linking or normal
  4617. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  4618. # need to do runtime linking.
  4619. case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
  4620. for ld_flag in $LDFLAGS; do
  4621. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  4622. aix_use_runtimelinking=yes
  4623. break
  4624. fi
  4625. done
  4626. ;;
  4627. esac
  4628. exp_sym_flag='-bexport'
  4629. no_entry_flag='-bnoentry'
  4630. fi
  4631. # When large executables or shared objects are built, AIX ld can
  4632. # have problems creating the table of contents. If linking a library
  4633. # or program results in "error TOC overflow" add -mminimal-toc to
  4634. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  4635. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  4636. _LT_TAGVAR(archive_cmds, $1)=''
  4637. _LT_TAGVAR(hardcode_direct, $1)=yes
  4638. _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
  4639. _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
  4640. _LT_TAGVAR(link_all_deplibs, $1)=yes
  4641. _LT_TAGVAR(file_list_spec, $1)='${wl}-f,'
  4642. if test "$GCC" = yes; then
  4643. case $host_os in aix4.[[012]]|aix4.[[012]].*)
  4644. # We only want to do this on AIX 4.2 and lower, the check
  4645. # below for broken collect2 doesn't work under 4.3+
  4646. collect2name=`${CC} -print-prog-name=collect2`
  4647. if test -f "$collect2name" &&
  4648. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  4649. then
  4650. # We have reworked collect2
  4651. :
  4652. else
  4653. # We have old collect2
  4654. _LT_TAGVAR(hardcode_direct, $1)=unsupported
  4655. # It fails to find uninstalled libraries when the uninstalled
  4656. # path is not listed in the libpath. Setting hardcode_minus_L
  4657. # to unsupported forces relinking
  4658. _LT_TAGVAR(hardcode_minus_L, $1)=yes
  4659. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  4660. _LT_TAGVAR(hardcode_libdir_separator, $1)=
  4661. fi
  4662. ;;
  4663. esac
  4664. shared_flag='-shared'
  4665. if test "$aix_use_runtimelinking" = yes; then
  4666. shared_flag="$shared_flag "'${wl}-G'
  4667. fi
  4668. else
  4669. # not using gcc
  4670. if test "$host_cpu" = ia64; then
  4671. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  4672. # chokes on -Wl,-G. The following line is correct:
  4673. shared_flag='-G'
  4674. else
  4675. if test "$aix_use_runtimelinking" = yes; then
  4676. shared_flag='${wl}-G'
  4677. else
  4678. shared_flag='${wl}-bM:SRE'
  4679. fi
  4680. fi
  4681. fi
  4682. _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-bexpall'
  4683. # It seems that -bexpall does not export symbols beginning with
  4684. # underscore (_), so it is better to generate a list of symbols to export.
  4685. _LT_TAGVAR(always_export_symbols, $1)=yes
  4686. if test "$aix_use_runtimelinking" = yes; then
  4687. # Warning - without using the other runtime loading flags (-brtl),
  4688. # -berok will link without error, but may produce a broken library.
  4689. _LT_TAGVAR(allow_undefined_flag, $1)='-berok'
  4690. # Determine the default libpath from the value encoded in an
  4691. # empty executable.
  4692. _LT_SYS_MODULE_PATH_AIX
  4693. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
  4694. _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 func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  4695. else
  4696. if test "$host_cpu" = ia64; then
  4697. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
  4698. _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
  4699. _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"
  4700. else
  4701. # Determine the default libpath from the value encoded in an
  4702. # empty executable.
  4703. _LT_SYS_MODULE_PATH_AIX
  4704. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
  4705. # Warning - without using the other run time loading flags,
  4706. # -berok will link without error, but may produce a broken library.
  4707. _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
  4708. _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
  4709. if test "$with_gnu_ld" = yes; then
  4710. # We only use this code for GNU lds that support --whole-archive.
  4711. _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  4712. else
  4713. # Exported symbols can be pulled into shared objects from archives
  4714. _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
  4715. fi
  4716. _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
  4717. # This is similar to how AIX traditionally builds its shared libraries.
  4718. _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'
  4719. fi
  4720. fi
  4721. ;;
  4722. amigaos*)
  4723. case $host_cpu in
  4724. powerpc)
  4725. # see comment about AmigaOS4 .so support
  4726. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  4727. _LT_TAGVAR(archive_expsym_cmds, $1)=''
  4728. ;;
  4729. m68k)
  4730. _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)'
  4731. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  4732. _LT_TAGVAR(hardcode_minus_L, $1)=yes
  4733. ;;
  4734. esac
  4735. ;;
  4736. bsdi[[45]]*)
  4737. _LT_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic
  4738. ;;
  4739. cygwin* | mingw* | pw32* | cegcc*)
  4740. # When not using gcc, we currently assume that we are using
  4741. # Microsoft Visual C++.
  4742. # hardcode_libdir_flag_spec is actually meaningless, as there is
  4743. # no search path for DLLs.
  4744. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
  4745. _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  4746. # Tell ltmain to make .lib files, not .a files.
  4747. libext=lib
  4748. # Tell ltmain to make .dll files, not .so files.
  4749. shrext_cmds=".dll"
  4750. # FIXME: Setting linknames here is a bad hack.
  4751. _LT_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
  4752. # The linker will automatically build a .lib file if we build a DLL.
  4753. _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
  4754. # FIXME: Should let the user specify the lib program.
  4755. _LT_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs'
  4756. _LT_TAGVAR(fix_srcfile_path, $1)='`cygpath -w "$srcfile"`'
  4757. _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
  4758. ;;
  4759. darwin* | rhapsody*)
  4760. _LT_DARWIN_LINKER_FEATURES($1)
  4761. ;;
  4762. dgux*)
  4763. _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  4764. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  4765. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  4766. ;;
  4767. freebsd1*)
  4768. _LT_TAGVAR(ld_shlibs, $1)=no
  4769. ;;
  4770. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  4771. # support. Future versions do this automatically, but an explicit c++rt0.o
  4772. # does not break anything, and helps significantly (at the cost of a little
  4773. # extra space).
  4774. freebsd2.2*)
  4775. _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  4776. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  4777. _LT_TAGVAR(hardcode_direct, $1)=yes
  4778. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  4779. ;;
  4780. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  4781. freebsd2*)
  4782. _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  4783. _LT_TAGVAR(hardcode_direct, $1)=yes
  4784. _LT_TAGVAR(hardcode_minus_L, $1)=yes
  4785. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  4786. ;;
  4787. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  4788. freebsd* | dragonfly*)
  4789. _LT_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  4790. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  4791. _LT_TAGVAR(hardcode_direct, $1)=yes
  4792. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  4793. ;;
  4794. hpux9*)
  4795. if test "$GCC" = yes; then
  4796. _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'
  4797. else
  4798. _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'
  4799. fi
  4800. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  4801. _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  4802. _LT_TAGVAR(hardcode_direct, $1)=yes
  4803. # hardcode_minus_L: Not really in the search PATH,
  4804. # but as the default location of the library.
  4805. _LT_TAGVAR(hardcode_minus_L, $1)=yes
  4806. _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  4807. ;;
  4808. hpux10*)
  4809. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  4810. _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  4811. else
  4812. _LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  4813. fi
  4814. if test "$with_gnu_ld" = no; then
  4815. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  4816. _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
  4817. _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  4818. _LT_TAGVAR(hardcode_direct, $1)=yes
  4819. _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
  4820. _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  4821. # hardcode_minus_L: Not really in the search PATH,
  4822. # but as the default location of the library.
  4823. _LT_TAGVAR(hardcode_minus_L, $1)=yes
  4824. fi
  4825. ;;
  4826. hpux11*)
  4827. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  4828. case $host_cpu in
  4829. hppa*64*)
  4830. _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  4831. ;;
  4832. ia64*)
  4833. _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  4834. ;;
  4835. *)
  4836. _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  4837. ;;
  4838. esac
  4839. else
  4840. case $host_cpu in
  4841. hppa*64*)
  4842. _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  4843. ;;
  4844. ia64*)
  4845. _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  4846. ;;
  4847. *)
  4848. m4_if($1, [], [
  4849. # Older versions of the 11.00 compiler do not understand -b yet
  4850. # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
  4851. _LT_LINKER_OPTION([if $CC understands -b],
  4852. _LT_TAGVAR(lt_cv_prog_compiler__b, $1), [-b],
  4853. [_LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'],
  4854. [_LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'])],
  4855. [_LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'])
  4856. ;;
  4857. esac
  4858. fi
  4859. if test "$with_gnu_ld" = no; then
  4860. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  4861. _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  4862. case $host_cpu in
  4863. hppa*64*|ia64*)
  4864. _LT_TAGVAR(hardcode_direct, $1)=no
  4865. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  4866. ;;
  4867. *)
  4868. _LT_TAGVAR(hardcode_direct, $1)=yes
  4869. _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
  4870. _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  4871. # hardcode_minus_L: Not really in the search PATH,
  4872. # but as the default location of the library.
  4873. _LT_TAGVAR(hardcode_minus_L, $1)=yes
  4874. ;;
  4875. esac
  4876. fi
  4877. ;;
  4878. irix5* | irix6* | nonstopux*)
  4879. if test "$GCC" = yes; then
  4880. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  4881. # Try to use the -exported_symbol ld option, if it does not
  4882. # work, assume that -exports_file does not work either and
  4883. # implicitly export all symbols.
  4884. save_LDFLAGS="$LDFLAGS"
  4885. LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
  4886. AC_LINK_IFELSE(int foo(void) {},
  4887. _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
  4888. )
  4889. LDFLAGS="$save_LDFLAGS"
  4890. else
  4891. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
  4892. _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
  4893. fi
  4894. _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
  4895. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  4896. _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  4897. _LT_TAGVAR(inherit_rpath, $1)=yes
  4898. _LT_TAGVAR(link_all_deplibs, $1)=yes
  4899. ;;
  4900. netbsd*)
  4901. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  4902. _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  4903. else
  4904. _LT_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  4905. fi
  4906. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  4907. _LT_TAGVAR(hardcode_direct, $1)=yes
  4908. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  4909. ;;
  4910. newsos6)
  4911. _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  4912. _LT_TAGVAR(hardcode_direct, $1)=yes
  4913. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  4914. _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  4915. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  4916. ;;
  4917. *nto* | *qnx*)
  4918. ;;
  4919. openbsd*)
  4920. if test -f /usr/libexec/ld.so; then
  4921. _LT_TAGVAR(hardcode_direct, $1)=yes
  4922. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  4923. _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
  4924. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  4925. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  4926. _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  4927. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  4928. _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  4929. else
  4930. case $host_os in
  4931. openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)
  4932. _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  4933. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  4934. ;;
  4935. *)
  4936. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  4937. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  4938. ;;
  4939. esac
  4940. fi
  4941. else
  4942. _LT_TAGVAR(ld_shlibs, $1)=no
  4943. fi
  4944. ;;
  4945. os2*)
  4946. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  4947. _LT_TAGVAR(hardcode_minus_L, $1)=yes
  4948. _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  4949. _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'
  4950. _LT_TAGVAR(old_archive_from_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  4951. ;;
  4952. osf3*)
  4953. if test "$GCC" = yes; then
  4954. _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
  4955. _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  4956. else
  4957. _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
  4958. _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
  4959. fi
  4960. _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
  4961. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  4962. _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  4963. ;;
  4964. osf4* | osf5*) # as osf3* with the addition of -msym flag
  4965. if test "$GCC" = yes; then
  4966. _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
  4967. _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  4968. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  4969. else
  4970. _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
  4971. _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
  4972. _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~
  4973. $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
  4974. # Both c and cxx compiler support -rpath directly
  4975. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
  4976. fi
  4977. _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
  4978. _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  4979. ;;
  4980. solaris*)
  4981. _LT_TAGVAR(no_undefined_flag, $1)=' -z defs'
  4982. if test "$GCC" = yes; then
  4983. wlarc='${wl}'
  4984. _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  4985. _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  4986. $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  4987. else
  4988. case `$CC -V 2>&1` in
  4989. *"Compilers 5.0"*)
  4990. wlarc=''
  4991. _LT_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  4992. _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  4993. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  4994. ;;
  4995. *)
  4996. wlarc='${wl}'
  4997. _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  4998. _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  4999. $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  5000. ;;
  5001. esac
  5002. fi
  5003. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  5004. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  5005. case $host_os in
  5006. solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
  5007. *)
  5008. # The compiler driver will combine and reorder linker options,
  5009. # but understands `-z linker_flag'. GCC discards it without `$wl',
  5010. # but is careful enough not to reorder.
  5011. # Supported since Solaris 2.6 (maybe 2.5.1?)
  5012. if test "$GCC" = yes; then
  5013. _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  5014. else
  5015. _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
  5016. fi
  5017. ;;
  5018. esac
  5019. _LT_TAGVAR(link_all_deplibs, $1)=yes
  5020. ;;
  5021. sunos4*)
  5022. if test "x$host_vendor" = xsequent; then
  5023. # Use $CC to link under sequent, because it throws in some extra .o
  5024. # files that make .init and .fini sections work.
  5025. _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  5026. else
  5027. _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  5028. fi
  5029. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  5030. _LT_TAGVAR(hardcode_direct, $1)=yes
  5031. _LT_TAGVAR(hardcode_minus_L, $1)=yes
  5032. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  5033. ;;
  5034. sysv4)
  5035. case $host_vendor in
  5036. sni)
  5037. _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  5038. _LT_TAGVAR(hardcode_direct, $1)=yes # is this really true???
  5039. ;;
  5040. siemens)
  5041. ## LD is ld it makes a PLAMLIB
  5042. ## CC just makes a GrossModule.
  5043. _LT_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  5044. _LT_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs'
  5045. _LT_TAGVAR(hardcode_direct, $1)=no
  5046. ;;
  5047. motorola)
  5048. _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  5049. _LT_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie
  5050. ;;
  5051. esac
  5052. runpath_var='LD_RUN_PATH'
  5053. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  5054. ;;
  5055. sysv4.3*)
  5056. _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  5057. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  5058. _LT_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport'
  5059. ;;
  5060. sysv4*MP*)
  5061. if test -d /usr/nec; then
  5062. _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  5063. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  5064. runpath_var=LD_RUN_PATH
  5065. hardcode_runpath_var=yes
  5066. _LT_TAGVAR(ld_shlibs, $1)=yes
  5067. fi
  5068. ;;
  5069. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
  5070. _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
  5071. _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  5072. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  5073. runpath_var='LD_RUN_PATH'
  5074. if test "$GCC" = yes; then
  5075. _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  5076. _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  5077. else
  5078. _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  5079. _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  5080. fi
  5081. ;;
  5082. sysv5* | sco3.2v5* | sco5v6*)
  5083. # Note: We can NOT use -z defs as we might desire, because we do not
  5084. # link with -lc, and that would cause any symbols used from libc to
  5085. # always be unresolved, which means just about no library would
  5086. # ever link correctly. If we're not using GNU ld we use -z text
  5087. # though, which does catch some bad symbols but isn't as heavy-handed
  5088. # as -z defs.
  5089. _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
  5090. _LT_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
  5091. _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  5092. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  5093. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R,$libdir'
  5094. _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
  5095. _LT_TAGVAR(link_all_deplibs, $1)=yes
  5096. _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
  5097. runpath_var='LD_RUN_PATH'
  5098. if test "$GCC" = yes; then
  5099. _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  5100. _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  5101. else
  5102. _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  5103. _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  5104. fi
  5105. ;;
  5106. uts4*)
  5107. _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  5108. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  5109. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  5110. ;;
  5111. *)
  5112. _LT_TAGVAR(ld_shlibs, $1)=no
  5113. ;;
  5114. esac
  5115. if test x$host_vendor = xsni; then
  5116. case $host in
  5117. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  5118. _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Blargedynsym'
  5119. ;;
  5120. esac
  5121. fi
  5122. fi
  5123. ])
  5124. AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)])
  5125. test "$_LT_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
  5126. _LT_TAGVAR(with_gnu_ld, $1)=$with_gnu_ld
  5127. _LT_DECL([], [libext], [0], [Old archive suffix (normally "a")])dnl
  5128. _LT_DECL([], [shrext_cmds], [1], [Shared library suffix (normally ".so")])dnl
  5129. _LT_DECL([], [extract_expsyms_cmds], [2],
  5130. [The commands to extract the exported symbol list from a shared archive])
  5131. #
  5132. # Do we need to explicitly link libc?
  5133. #
  5134. case "x$_LT_TAGVAR(archive_cmds_need_lc, $1)" in
  5135. x|xyes)
  5136. # Assume -lc should be added
  5137. _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
  5138. if test "$enable_shared" = yes && test "$GCC" = yes; then
  5139. case $_LT_TAGVAR(archive_cmds, $1) in
  5140. *'~'*)
  5141. # FIXME: we may have to deal with multi-command sequences.
  5142. ;;
  5143. '$CC '*)
  5144. # Test whether the compiler implicitly links with -lc since on some
  5145. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  5146. # to ld, don't add -lc before -lgcc.
  5147. AC_CACHE_CHECK([whether -lc should be explicitly linked in],
  5148. [lt_cv_]_LT_TAGVAR(archive_cmds_need_lc, $1),
  5149. [$RM conftest*
  5150. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  5151. if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
  5152. soname=conftest
  5153. lib=conftest
  5154. libobjs=conftest.$ac_objext
  5155. deplibs=
  5156. wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1)
  5157. pic_flag=$_LT_TAGVAR(lt_prog_compiler_pic, $1)
  5158. compiler_flags=-v
  5159. linker_flags=-v
  5160. verstring=
  5161. output_objdir=.
  5162. libname=conftest
  5163. lt_save_allow_undefined_flag=$_LT_TAGVAR(allow_undefined_flag, $1)
  5164. _LT_TAGVAR(allow_undefined_flag, $1)=
  5165. if AC_TRY_EVAL(_LT_TAGVAR(archive_cmds, $1) 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1)
  5166. then
  5167. lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)=no
  5168. else
  5169. lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)=yes
  5170. fi
  5171. _LT_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
  5172. else
  5173. cat conftest.err 1>&5
  5174. fi
  5175. $RM conftest*
  5176. ])
  5177. _LT_TAGVAR(archive_cmds_need_lc, $1)=$lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)
  5178. ;;
  5179. esac
  5180. fi
  5181. ;;
  5182. esac
  5183. _LT_TAGDECL([build_libtool_need_lc], [archive_cmds_need_lc], [0],
  5184. [Whether or not to add -lc for building shared libraries])
  5185. _LT_TAGDECL([allow_libtool_libs_with_static_runtimes],
  5186. [enable_shared_with_static_runtimes], [0],
  5187. [Whether or not to disallow shared libs when runtime libs are static])
  5188. _LT_TAGDECL([], [export_dynamic_flag_spec], [1],
  5189. [Compiler flag to allow reflexive dlopens])
  5190. _LT_TAGDECL([], [whole_archive_flag_spec], [1],
  5191. [Compiler flag to generate shared objects directly from archives])
  5192. _LT_TAGDECL([], [compiler_needs_object], [1],
  5193. [Whether the compiler copes with passing no objects directly])
  5194. _LT_TAGDECL([], [old_archive_from_new_cmds], [2],
  5195. [Create an old-style archive from a shared archive])
  5196. _LT_TAGDECL([], [old_archive_from_expsyms_cmds], [2],
  5197. [Create a temporary old-style archive to link instead of a shared archive])
  5198. _LT_TAGDECL([], [archive_cmds], [2], [Commands used to build a shared archive])
  5199. _LT_TAGDECL([], [archive_expsym_cmds], [2])
  5200. _LT_TAGDECL([], [module_cmds], [2],
  5201. [Commands used to build a loadable module if different from building
  5202. a shared archive.])
  5203. _LT_TAGDECL([], [module_expsym_cmds], [2])
  5204. _LT_TAGDECL([], [with_gnu_ld], [1],
  5205. [Whether we are building with GNU ld or not])
  5206. _LT_TAGDECL([], [allow_undefined_flag], [1],
  5207. [Flag that allows shared libraries with undefined symbols to be built])
  5208. _LT_TAGDECL([], [no_undefined_flag], [1],
  5209. [Flag that enforces no undefined symbols])
  5210. _LT_TAGDECL([], [hardcode_libdir_flag_spec], [1],
  5211. [Flag to hardcode $libdir into a binary during linking.
  5212. This must work even if $libdir does not exist])
  5213. _LT_TAGDECL([], [hardcode_libdir_flag_spec_ld], [1],
  5214. [[If ld is used when linking, flag to hardcode $libdir into a binary
  5215. during linking. This must work even if $libdir does not exist]])
  5216. _LT_TAGDECL([], [hardcode_libdir_separator], [1],
  5217. [Whether we need a single "-rpath" flag with a separated argument])
  5218. _LT_TAGDECL([], [hardcode_direct], [0],
  5219. [Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes
  5220. DIR into the resulting binary])
  5221. _LT_TAGDECL([], [hardcode_direct_absolute], [0],
  5222. [Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes
  5223. DIR into the resulting binary and the resulting library dependency is
  5224. "absolute", i.e impossible to change by setting ${shlibpath_var} if the
  5225. library is relocated])
  5226. _LT_TAGDECL([], [hardcode_minus_L], [0],
  5227. [Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  5228. into the resulting binary])
  5229. _LT_TAGDECL([], [hardcode_shlibpath_var], [0],
  5230. [Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  5231. into the resulting binary])
  5232. _LT_TAGDECL([], [hardcode_automatic], [0],
  5233. [Set to "yes" if building a shared library automatically hardcodes DIR
  5234. into the library and all subsequent libraries and executables linked
  5235. against it])
  5236. _LT_TAGDECL([], [inherit_rpath], [0],
  5237. [Set to yes if linker adds runtime paths of dependent libraries
  5238. to runtime path list])
  5239. _LT_TAGDECL([], [link_all_deplibs], [0],
  5240. [Whether libtool must link a program against all its dependency libraries])
  5241. _LT_TAGDECL([], [fix_srcfile_path], [1],
  5242. [Fix the shell variable $srcfile for the compiler])
  5243. _LT_TAGDECL([], [always_export_symbols], [0],
  5244. [Set to "yes" if exported symbols are required])
  5245. _LT_TAGDECL([], [export_symbols_cmds], [2],
  5246. [The commands to list exported symbols])
  5247. _LT_TAGDECL([], [exclude_expsyms], [1],
  5248. [Symbols that should not be listed in the preloaded symbols])
  5249. _LT_TAGDECL([], [include_expsyms], [1],
  5250. [Symbols that must always be exported])
  5251. _LT_TAGDECL([], [prelink_cmds], [2],
  5252. [Commands necessary for linking programs (against libraries) with templates])
  5253. _LT_TAGDECL([], [file_list_spec], [1],
  5254. [Specify filename containing input files])
  5255. dnl FIXME: Not yet implemented
  5256. dnl _LT_TAGDECL([], [thread_safe_flag_spec], [1],
  5257. dnl [Compiler flag to generate thread safe objects])
  5258. ])# _LT_LINKER_SHLIBS
  5259. # _LT_LANG_C_CONFIG([TAG])
  5260. # ------------------------
  5261. # Ensure that the configuration variables for a C compiler are suitably
  5262. # defined. These variables are subsequently used by _LT_CONFIG to write
  5263. # the compiler configuration to `libtool'.
  5264. m4_defun([_LT_LANG_C_CONFIG],
  5265. [m4_require([_LT_DECL_EGREP])dnl
  5266. lt_save_CC="$CC"
  5267. AC_LANG_PUSH(C)
  5268. # Source file extension for C test sources.
  5269. ac_ext=c
  5270. # Object file extension for compiled C test sources.
  5271. objext=o
  5272. _LT_TAGVAR(objext, $1)=$objext
  5273. # Code to be used in simple compile tests
  5274. lt_simple_compile_test_code="int some_variable = 0;"
  5275. # Code to be used in simple link tests
  5276. lt_simple_link_test_code='int main(){return(0);}'
  5277. _LT_TAG_COMPILER
  5278. # Save the default compiler, since it gets overwritten when the other
  5279. # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  5280. compiler_DEFAULT=$CC
  5281. # save warnings/boilerplate of simple test code
  5282. _LT_COMPILER_BOILERPLATE
  5283. _LT_LINKER_BOILERPLATE
  5284. if test -n "$compiler"; then
  5285. _LT_COMPILER_NO_RTTI($1)
  5286. _LT_COMPILER_PIC($1)
  5287. _LT_COMPILER_C_O($1)
  5288. _LT_COMPILER_FILE_LOCKS($1)
  5289. _LT_LINKER_SHLIBS($1)
  5290. _LT_SYS_DYNAMIC_LINKER($1)
  5291. _LT_LINKER_HARDCODE_LIBPATH($1)
  5292. LT_SYS_DLOPEN_SELF
  5293. _LT_CMD_STRIPLIB
  5294. # Report which library types will actually be built
  5295. AC_MSG_CHECKING([if libtool supports shared libraries])
  5296. AC_MSG_RESULT([$can_build_shared])
  5297. AC_MSG_CHECKING([whether to build shared libraries])
  5298. test "$can_build_shared" = "no" && enable_shared=no
  5299. # On AIX, shared libraries and static libraries use the same namespace, and
  5300. # are all built from PIC.
  5301. case $host_os in
  5302. aix3*)
  5303. test "$enable_shared" = yes && enable_static=no
  5304. if test -n "$RANLIB"; then
  5305. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  5306. postinstall_cmds='$RANLIB $lib'
  5307. fi
  5308. ;;
  5309. aix[[4-9]]*)
  5310. if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  5311. test "$enable_shared" = yes && enable_static=no
  5312. fi
  5313. ;;
  5314. esac
  5315. AC_MSG_RESULT([$enable_shared])
  5316. AC_MSG_CHECKING([whether to build static libraries])
  5317. # Make sure either enable_shared or enable_static is yes.
  5318. test "$enable_shared" = yes || enable_static=yes
  5319. AC_MSG_RESULT([$enable_static])
  5320. _LT_CONFIG($1)
  5321. fi
  5322. AC_LANG_POP
  5323. CC="$lt_save_CC"
  5324. ])# _LT_LANG_C_CONFIG
  5325. # _LT_LANG_CXX_CONFIG([TAG])
  5326. # --------------------------
  5327. # Ensure that the configuration variables for a C++ compiler are suitably
  5328. # defined. These variables are subsequently used by _LT_CONFIG to write
  5329. # the compiler configuration to `libtool'.
  5330. m4_defun([_LT_LANG_CXX_CONFIG],
  5331. [m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  5332. m4_require([_LT_DECL_EGREP])dnl
  5333. if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
  5334. ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
  5335. (test "X$CXX" != "Xg++"))) ; then
  5336. AC_PROG_CXXCPP
  5337. else
  5338. _lt_caught_CXX_error=yes
  5339. fi
  5340. AC_LANG_PUSH(C++)
  5341. _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  5342. _LT_TAGVAR(allow_undefined_flag, $1)=
  5343. _LT_TAGVAR(always_export_symbols, $1)=no
  5344. _LT_TAGVAR(archive_expsym_cmds, $1)=
  5345. _LT_TAGVAR(compiler_needs_object, $1)=no
  5346. _LT_TAGVAR(export_dynamic_flag_spec, $1)=
  5347. _LT_TAGVAR(hardcode_direct, $1)=no
  5348. _LT_TAGVAR(hardcode_direct_absolute, $1)=no
  5349. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
  5350. _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
  5351. _LT_TAGVAR(hardcode_libdir_separator, $1)=
  5352. _LT_TAGVAR(hardcode_minus_L, $1)=no
  5353. _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
  5354. _LT_TAGVAR(hardcode_automatic, $1)=no
  5355. _LT_TAGVAR(inherit_rpath, $1)=no
  5356. _LT_TAGVAR(module_cmds, $1)=
  5357. _LT_TAGVAR(module_expsym_cmds, $1)=
  5358. _LT_TAGVAR(link_all_deplibs, $1)=unknown
  5359. _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
  5360. _LT_TAGVAR(reload_flag, $1)=$reload_flag
  5361. _LT_TAGVAR(reload_cmds, $1)=$reload_cmds
  5362. _LT_TAGVAR(no_undefined_flag, $1)=
  5363. _LT_TAGVAR(whole_archive_flag_spec, $1)=
  5364. _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
  5365. # Source file extension for C++ test sources.
  5366. ac_ext=cpp
  5367. # Object file extension for compiled C++ test sources.
  5368. objext=o
  5369. _LT_TAGVAR(objext, $1)=$objext
  5370. # No sense in running all these tests if we already determined that
  5371. # the CXX compiler isn't working. Some variables (like enable_shared)
  5372. # are currently assumed to apply to all compilers on this platform,
  5373. # and will be corrupted by setting them based on a non-working compiler.
  5374. if test "$_lt_caught_CXX_error" != yes; then
  5375. # Code to be used in simple compile tests
  5376. lt_simple_compile_test_code="int some_variable = 0;"
  5377. # Code to be used in simple link tests
  5378. lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }'
  5379. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  5380. _LT_TAG_COMPILER
  5381. # save warnings/boilerplate of simple test code
  5382. _LT_COMPILER_BOILERPLATE
  5383. _LT_LINKER_BOILERPLATE
  5384. # Allow CC to be a program name with arguments.
  5385. lt_save_CC=$CC
  5386. lt_save_LD=$LD
  5387. lt_save_GCC=$GCC
  5388. GCC=$GXX
  5389. lt_save_with_gnu_ld=$with_gnu_ld
  5390. lt_save_path_LD=$lt_cv_path_LD
  5391. if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
  5392. lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  5393. else
  5394. $as_unset lt_cv_prog_gnu_ld
  5395. fi
  5396. if test -n "${lt_cv_path_LDCXX+set}"; then
  5397. lt_cv_path_LD=$lt_cv_path_LDCXX
  5398. else
  5399. $as_unset lt_cv_path_LD
  5400. fi
  5401. test -z "${LDCXX+set}" || LD=$LDCXX
  5402. CC=${CXX-"c++"}
  5403. compiler=$CC
  5404. _LT_TAGVAR(compiler, $1)=$CC
  5405. _LT_CC_BASENAME([$compiler])
  5406. if test -n "$compiler"; then
  5407. # We don't want -fno-exception when compiling C++ code, so set the
  5408. # no_builtin_flag separately
  5409. if test "$GXX" = yes; then
  5410. _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
  5411. else
  5412. _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
  5413. fi
  5414. if test "$GXX" = yes; then
  5415. # Set up default GNU C++ configuration
  5416. LT_PATH_LD
  5417. # Check if GNU C++ uses GNU ld as the underlying linker, since the
  5418. # archiving commands below assume that GNU ld is being used.
  5419. if test "$with_gnu_ld" = yes; then
  5420. _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  5421. _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'
  5422. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  5423. _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  5424. # If archive_cmds runs LD, not CC, wlarc should be empty
  5425. # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
  5426. # investigate it a little bit more. (MM)
  5427. wlarc='${wl}'
  5428. # ancient GNU ld didn't support --whole-archive et. al.
  5429. if eval "`$CC -print-prog-name=ld` --help 2>&1" |
  5430. $GREP 'no-whole-archive' > /dev/null; then
  5431. _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  5432. else
  5433. _LT_TAGVAR(whole_archive_flag_spec, $1)=
  5434. fi
  5435. else
  5436. with_gnu_ld=no
  5437. wlarc=
  5438. # A generic and very simple default shared library creation
  5439. # command for GNU C++ for the case where it uses the native
  5440. # linker, instead of GNU ld. If possible, this setting should
  5441. # overridden to take advantage of the native linker features on
  5442. # the platform it is being used on.
  5443. _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  5444. fi
  5445. # Commands to make compiler produce verbose output that lists
  5446. # what "hidden" libraries, object files and flags are used when
  5447. # linking a shared library.
  5448. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  5449. else
  5450. GXX=no
  5451. with_gnu_ld=no
  5452. wlarc=
  5453. fi
  5454. # PORTME: fill in a description of your system's C++ link characteristics
  5455. AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
  5456. _LT_TAGVAR(ld_shlibs, $1)=yes
  5457. case $host_os in
  5458. aix3*)
  5459. # FIXME: insert proper C++ library support
  5460. _LT_TAGVAR(ld_shlibs, $1)=no
  5461. ;;
  5462. aix[[4-9]]*)
  5463. if test "$host_cpu" = ia64; then
  5464. # On IA64, the linker does run time linking by default, so we don't
  5465. # have to do anything special.
  5466. aix_use_runtimelinking=no
  5467. exp_sym_flag='-Bexport'
  5468. no_entry_flag=""
  5469. else
  5470. aix_use_runtimelinking=no
  5471. # Test if we are trying to use run time linking or normal
  5472. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  5473. # need to do runtime linking.
  5474. case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
  5475. for ld_flag in $LDFLAGS; do
  5476. case $ld_flag in
  5477. *-brtl*)
  5478. aix_use_runtimelinking=yes
  5479. break
  5480. ;;
  5481. esac
  5482. done
  5483. ;;
  5484. esac
  5485. exp_sym_flag='-bexport'
  5486. no_entry_flag='-bnoentry'
  5487. fi
  5488. # When large executables or shared objects are built, AIX ld can
  5489. # have problems creating the table of contents. If linking a library
  5490. # or program results in "error TOC overflow" add -mminimal-toc to
  5491. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  5492. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  5493. _LT_TAGVAR(archive_cmds, $1)=''
  5494. _LT_TAGVAR(hardcode_direct, $1)=yes
  5495. _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
  5496. _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
  5497. _LT_TAGVAR(link_all_deplibs, $1)=yes
  5498. _LT_TAGVAR(file_list_spec, $1)='${wl}-f,'
  5499. if test "$GXX" = yes; then
  5500. case $host_os in aix4.[[012]]|aix4.[[012]].*)
  5501. # We only want to do this on AIX 4.2 and lower, the check
  5502. # below for broken collect2 doesn't work under 4.3+
  5503. collect2name=`${CC} -print-prog-name=collect2`
  5504. if test -f "$collect2name" &&
  5505. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  5506. then
  5507. # We have reworked collect2
  5508. :
  5509. else
  5510. # We have old collect2
  5511. _LT_TAGVAR(hardcode_direct, $1)=unsupported
  5512. # It fails to find uninstalled libraries when the uninstalled
  5513. # path is not listed in the libpath. Setting hardcode_minus_L
  5514. # to unsupported forces relinking
  5515. _LT_TAGVAR(hardcode_minus_L, $1)=yes
  5516. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  5517. _LT_TAGVAR(hardcode_libdir_separator, $1)=
  5518. fi
  5519. esac
  5520. shared_flag='-shared'
  5521. if test "$aix_use_runtimelinking" = yes; then
  5522. shared_flag="$shared_flag "'${wl}-G'
  5523. fi
  5524. else
  5525. # not using gcc
  5526. if test "$host_cpu" = ia64; then
  5527. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  5528. # chokes on -Wl,-G. The following line is correct:
  5529. shared_flag='-G'
  5530. else
  5531. if test "$aix_use_runtimelinking" = yes; then
  5532. shared_flag='${wl}-G'
  5533. else
  5534. shared_flag='${wl}-bM:SRE'
  5535. fi
  5536. fi
  5537. fi
  5538. _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-bexpall'
  5539. # It seems that -bexpall does not export symbols beginning with
  5540. # underscore (_), so it is better to generate a list of symbols to
  5541. # export.
  5542. _LT_TAGVAR(always_export_symbols, $1)=yes
  5543. if test "$aix_use_runtimelinking" = yes; then
  5544. # Warning - without using the other runtime loading flags (-brtl),
  5545. # -berok will link without error, but may produce a broken library.
  5546. _LT_TAGVAR(allow_undefined_flag, $1)='-berok'
  5547. # Determine the default libpath from the value encoded in an empty
  5548. # executable.
  5549. _LT_SYS_MODULE_PATH_AIX
  5550. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
  5551. _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 func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  5552. else
  5553. if test "$host_cpu" = ia64; then
  5554. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
  5555. _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
  5556. _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"
  5557. else
  5558. # Determine the default libpath from the value encoded in an
  5559. # empty executable.
  5560. _LT_SYS_MODULE_PATH_AIX
  5561. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
  5562. # Warning - without using the other run time loading flags,
  5563. # -berok will link without error, but may produce a broken library.
  5564. _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
  5565. _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
  5566. if test "$with_gnu_ld" = yes; then
  5567. # We only use this code for GNU lds that support --whole-archive.
  5568. _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  5569. else
  5570. # Exported symbols can be pulled into shared objects from archives
  5571. _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
  5572. fi
  5573. _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
  5574. # This is similar to how AIX traditionally builds its shared
  5575. # libraries.
  5576. _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'
  5577. fi
  5578. fi
  5579. ;;
  5580. beos*)
  5581. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  5582. _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  5583. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  5584. # support --undefined. This deserves some investigation. FIXME
  5585. _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  5586. else
  5587. _LT_TAGVAR(ld_shlibs, $1)=no
  5588. fi
  5589. ;;
  5590. chorus*)
  5591. case $cc_basename in
  5592. *)
  5593. # FIXME: insert proper C++ library support
  5594. _LT_TAGVAR(ld_shlibs, $1)=no
  5595. ;;
  5596. esac
  5597. ;;
  5598. cygwin* | mingw* | pw32* | cegcc*)
  5599. # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
  5600. # as there is no search path for DLLs.
  5601. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  5602. _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-all-symbols'
  5603. _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  5604. _LT_TAGVAR(always_export_symbols, $1)=no
  5605. _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
  5606. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  5607. _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'
  5608. # If the export-symbols file already is a .def file (1st line
  5609. # is EXPORTS), use it as is; otherwise, prepend...
  5610. _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  5611. cp $export_symbols $output_objdir/$soname.def;
  5612. else
  5613. echo EXPORTS > $output_objdir/$soname.def;
  5614. cat $export_symbols >> $output_objdir/$soname.def;
  5615. fi~
  5616. $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'
  5617. else
  5618. _LT_TAGVAR(ld_shlibs, $1)=no
  5619. fi
  5620. ;;
  5621. darwin* | rhapsody*)
  5622. _LT_DARWIN_LINKER_FEATURES($1)
  5623. ;;
  5624. dgux*)
  5625. case $cc_basename in
  5626. ec++*)
  5627. # FIXME: insert proper C++ library support
  5628. _LT_TAGVAR(ld_shlibs, $1)=no
  5629. ;;
  5630. ghcx*)
  5631. # Green Hills C++ Compiler
  5632. # FIXME: insert proper C++ library support
  5633. _LT_TAGVAR(ld_shlibs, $1)=no
  5634. ;;
  5635. *)
  5636. # FIXME: insert proper C++ library support
  5637. _LT_TAGVAR(ld_shlibs, $1)=no
  5638. ;;
  5639. esac
  5640. ;;
  5641. freebsd[[12]]*)
  5642. # C++ shared libraries reported to be fairly broken before
  5643. # switch to ELF
  5644. _LT_TAGVAR(ld_shlibs, $1)=no
  5645. ;;
  5646. freebsd-elf*)
  5647. _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  5648. ;;
  5649. freebsd* | dragonfly*)
  5650. # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
  5651. # conventions
  5652. _LT_TAGVAR(ld_shlibs, $1)=yes
  5653. ;;
  5654. gnu*)
  5655. ;;
  5656. haiku*)
  5657. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  5658. _LT_TAGVAR(link_all_deplibs, $1)=yes
  5659. ;;
  5660. hpux9*)
  5661. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  5662. _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  5663. _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  5664. _LT_TAGVAR(hardcode_direct, $1)=yes
  5665. _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
  5666. # but as the default
  5667. # location of the library.
  5668. case $cc_basename in
  5669. CC*)
  5670. # FIXME: insert proper C++ library support
  5671. _LT_TAGVAR(ld_shlibs, $1)=no
  5672. ;;
  5673. aCC*)
  5674. _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'
  5675. # Commands to make compiler produce verbose output that lists
  5676. # what "hidden" libraries, object files and flags are used when
  5677. # linking a shared library.
  5678. #
  5679. # There doesn't appear to be a way to prevent this compiler from
  5680. # explicitly linking system object files so we need to strip them
  5681. # from the output so that they don't get included in the library
  5682. # dependencies.
  5683. 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; func_echo_all "$list"'
  5684. ;;
  5685. *)
  5686. if test "$GXX" = yes; then
  5687. _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'
  5688. else
  5689. # FIXME: insert proper C++ library support
  5690. _LT_TAGVAR(ld_shlibs, $1)=no
  5691. fi
  5692. ;;
  5693. esac
  5694. ;;
  5695. hpux10*|hpux11*)
  5696. if test $with_gnu_ld = no; then
  5697. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  5698. _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  5699. case $host_cpu in
  5700. hppa*64*|ia64*)
  5701. ;;
  5702. *)
  5703. _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  5704. ;;
  5705. esac
  5706. fi
  5707. case $host_cpu in
  5708. hppa*64*|ia64*)
  5709. _LT_TAGVAR(hardcode_direct, $1)=no
  5710. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  5711. ;;
  5712. *)
  5713. _LT_TAGVAR(hardcode_direct, $1)=yes
  5714. _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
  5715. _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
  5716. # but as the default
  5717. # location of the library.
  5718. ;;
  5719. esac
  5720. case $cc_basename in
  5721. CC*)
  5722. # FIXME: insert proper C++ library support
  5723. _LT_TAGVAR(ld_shlibs, $1)=no
  5724. ;;
  5725. aCC*)
  5726. case $host_cpu in
  5727. hppa*64*)
  5728. _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  5729. ;;
  5730. ia64*)
  5731. _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  5732. ;;
  5733. *)
  5734. _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'
  5735. ;;
  5736. esac
  5737. # Commands to make compiler produce verbose output that lists
  5738. # what "hidden" libraries, object files and flags are used when
  5739. # linking a shared library.
  5740. #
  5741. # There doesn't appear to be a way to prevent this compiler from
  5742. # explicitly linking system object files so we need to strip them
  5743. # from the output so that they don't get included in the library
  5744. # dependencies.
  5745. 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; func_echo_all "$list"'
  5746. ;;
  5747. *)
  5748. if test "$GXX" = yes; then
  5749. if test $with_gnu_ld = no; then
  5750. case $host_cpu in
  5751. hppa*64*)
  5752. _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  5753. ;;
  5754. ia64*)
  5755. _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'
  5756. ;;
  5757. *)
  5758. _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'
  5759. ;;
  5760. esac
  5761. fi
  5762. else
  5763. # FIXME: insert proper C++ library support
  5764. _LT_TAGVAR(ld_shlibs, $1)=no
  5765. fi
  5766. ;;
  5767. esac
  5768. ;;
  5769. interix[[3-9]]*)
  5770. _LT_TAGVAR(hardcode_direct, $1)=no
  5771. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  5772. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  5773. _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  5774. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  5775. # Instead, shared libraries are loaded at an image base (0x10000000 by
  5776. # default) and relocated if they conflict, which is a slow very memory
  5777. # consuming and fragmenting process. To avoid this, we pick a random,
  5778. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  5779. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  5780. _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'
  5781. _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'
  5782. ;;
  5783. irix5* | irix6*)
  5784. case $cc_basename in
  5785. CC*)
  5786. # SGI C++
  5787. _LT_TAGVAR(archive_cmds, $1)='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
  5788. # Archives containing C++ object files must be created using
  5789. # "CC -ar", where "CC" is the IRIX C++ compiler. This is
  5790. # necessary to make sure instantiated templates are included
  5791. # in the archive.
  5792. _LT_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs'
  5793. ;;
  5794. *)
  5795. if test "$GXX" = yes; then
  5796. if test "$with_gnu_ld" = no; then
  5797. _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  5798. else
  5799. _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib'
  5800. fi
  5801. fi
  5802. _LT_TAGVAR(link_all_deplibs, $1)=yes
  5803. ;;
  5804. esac
  5805. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  5806. _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  5807. _LT_TAGVAR(inherit_rpath, $1)=yes
  5808. ;;
  5809. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  5810. case $cc_basename in
  5811. KCC*)
  5812. # Kuck and Associates, Inc. (KAI) C++ Compiler
  5813. # KCC will only create a shared library if the output file
  5814. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  5815. # to its proper name (with version) after linking.
  5816. _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'
  5817. _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'
  5818. # Commands to make compiler produce verbose output that lists
  5819. # what "hidden" libraries, object files and flags are used when
  5820. # linking a shared library.
  5821. #
  5822. # There doesn't appear to be a way to prevent this compiler from
  5823. # explicitly linking system object files so we need to strip them
  5824. # from the output so that they don't get included in the library
  5825. # dependencies.
  5826. 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; func_echo_all "$list"'
  5827. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  5828. _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  5829. # Archives containing C++ object files must be created using
  5830. # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  5831. _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
  5832. ;;
  5833. icpc* | ecpc* )
  5834. # Intel C++
  5835. with_gnu_ld=yes
  5836. # version 8.0 and above of icpc choke on multiply defined symbols
  5837. # if we add $predep_objects and $postdep_objects, however 7.1 and
  5838. # earlier do not add the objects themselves.
  5839. case `$CC -V 2>&1` in
  5840. *"Version 7."*)
  5841. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  5842. _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'
  5843. ;;
  5844. *) # Version 8.0 or newer
  5845. tmp_idyn=
  5846. case $host_cpu in
  5847. ia64*) tmp_idyn=' -i_dynamic';;
  5848. esac
  5849. _LT_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  5850. _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'
  5851. ;;
  5852. esac
  5853. _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  5854. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  5855. _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  5856. _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  5857. ;;
  5858. pgCC* | pgcpp*)
  5859. # Portland Group C++ compiler
  5860. case `$CC -V` in
  5861. *pgCC\ [[1-5]].* | *pgcpp\ [[1-5]].*)
  5862. _LT_TAGVAR(prelink_cmds, $1)='tpldir=Template.dir~
  5863. rm -rf $tpldir~
  5864. $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
  5865. compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
  5866. _LT_TAGVAR(old_archive_cmds, $1)='tpldir=Template.dir~
  5867. rm -rf $tpldir~
  5868. $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
  5869. $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
  5870. $RANLIB $oldlib'
  5871. _LT_TAGVAR(archive_cmds, $1)='tpldir=Template.dir~
  5872. rm -rf $tpldir~
  5873. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  5874. $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  5875. _LT_TAGVAR(archive_expsym_cmds, $1)='tpldir=Template.dir~
  5876. rm -rf $tpldir~
  5877. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  5878. $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
  5879. ;;
  5880. *) # Version 6 and above use weak symbols
  5881. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  5882. _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'
  5883. ;;
  5884. esac
  5885. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
  5886. _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  5887. _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
  5888. ;;
  5889. cxx*)
  5890. # Compaq C++
  5891. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  5892. _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'
  5893. runpath_var=LD_RUN_PATH
  5894. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
  5895. _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  5896. # Commands to make compiler produce verbose output that lists
  5897. # what "hidden" libraries, object files and flags are used when
  5898. # linking a shared library.
  5899. #
  5900. # There doesn't appear to be a way to prevent this compiler from
  5901. # explicitly linking system object files so we need to strip them
  5902. # from the output so that they don't get included in the library
  5903. # dependencies.
  5904. output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$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; func_echo_all "X$list" | $Xsed'
  5905. ;;
  5906. xl* | mpixl* | bgxl*)
  5907. # IBM XL 8.0 on PPC, with GNU ld
  5908. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  5909. _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  5910. _LT_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  5911. if test "x$supports_anon_versioning" = xyes; then
  5912. _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
  5913. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  5914. echo "local: *; };" >> $output_objdir/$libname.ver~
  5915. $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  5916. fi
  5917. ;;
  5918. *)
  5919. case `$CC -V 2>&1 | sed 5q` in
  5920. *Sun\ C*)
  5921. # Sun C++ 5.9
  5922. _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
  5923. _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  5924. _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'
  5925. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  5926. _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; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
  5927. _LT_TAGVAR(compiler_needs_object, $1)=yes
  5928. # Not sure whether something based on
  5929. # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
  5930. # would be better.
  5931. output_verbose_link_cmd='func_echo_all'
  5932. # Archives containing C++ object files must be created using
  5933. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  5934. # necessary to make sure instantiated templates are included
  5935. # in the archive.
  5936. _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
  5937. ;;
  5938. esac
  5939. ;;
  5940. esac
  5941. ;;
  5942. lynxos*)
  5943. # FIXME: insert proper C++ library support
  5944. _LT_TAGVAR(ld_shlibs, $1)=no
  5945. ;;
  5946. m88k*)
  5947. # FIXME: insert proper C++ library support
  5948. _LT_TAGVAR(ld_shlibs, $1)=no
  5949. ;;
  5950. mvs*)
  5951. case $cc_basename in
  5952. cxx*)
  5953. # FIXME: insert proper C++ library support
  5954. _LT_TAGVAR(ld_shlibs, $1)=no
  5955. ;;
  5956. *)
  5957. # FIXME: insert proper C++ library support
  5958. _LT_TAGVAR(ld_shlibs, $1)=no
  5959. ;;
  5960. esac
  5961. ;;
  5962. netbsd*)
  5963. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  5964. _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
  5965. wlarc=
  5966. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  5967. _LT_TAGVAR(hardcode_direct, $1)=yes
  5968. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  5969. fi
  5970. # Workaround some broken pre-1.5 toolchains
  5971. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
  5972. ;;
  5973. *nto* | *qnx*)
  5974. _LT_TAGVAR(ld_shlibs, $1)=yes
  5975. ;;
  5976. openbsd2*)
  5977. # C++ shared libraries are fairly broken
  5978. _LT_TAGVAR(ld_shlibs, $1)=no
  5979. ;;
  5980. openbsd*)
  5981. if test -f /usr/libexec/ld.so; then
  5982. _LT_TAGVAR(hardcode_direct, $1)=yes
  5983. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  5984. _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
  5985. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  5986. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  5987. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  5988. _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'
  5989. _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  5990. _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  5991. fi
  5992. output_verbose_link_cmd=func_echo_all
  5993. else
  5994. _LT_TAGVAR(ld_shlibs, $1)=no
  5995. fi
  5996. ;;
  5997. osf3* | osf4* | osf5*)
  5998. case $cc_basename in
  5999. KCC*)
  6000. # Kuck and Associates, Inc. (KAI) C++ Compiler
  6001. # KCC will only create a shared library if the output file
  6002. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  6003. # to its proper name (with version) after linking.
  6004. _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'
  6005. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  6006. _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  6007. # Archives containing C++ object files must be created using
  6008. # the KAI C++ compiler.
  6009. case $host in
  6010. osf3*) _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' ;;
  6011. *) _LT_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs' ;;
  6012. esac
  6013. ;;
  6014. RCC*)
  6015. # Rational C++ 2.4.1
  6016. # FIXME: insert proper C++ library support
  6017. _LT_TAGVAR(ld_shlibs, $1)=no
  6018. ;;
  6019. cxx*)
  6020. case $host in
  6021. osf3*)
  6022. _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
  6023. _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && func_echo_all "${wl}-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
  6024. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  6025. ;;
  6026. *)
  6027. _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
  6028. _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
  6029. _LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
  6030. echo "-hidden">> $lib.exp~
  6031. $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~
  6032. $RM $lib.exp'
  6033. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
  6034. ;;
  6035. esac
  6036. _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  6037. # Commands to make compiler produce verbose output that lists
  6038. # what "hidden" libraries, object files and flags are used when
  6039. # linking a shared library.
  6040. #
  6041. # There doesn't appear to be a way to prevent this compiler from
  6042. # explicitly linking system object files so we need to strip them
  6043. # from the output so that they don't get included in the library
  6044. # dependencies.
  6045. output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$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; func_echo_all "$list"'
  6046. ;;
  6047. *)
  6048. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  6049. _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
  6050. case $host in
  6051. osf3*)
  6052. _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" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  6053. ;;
  6054. *)
  6055. _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" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  6056. ;;
  6057. esac
  6058. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  6059. _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  6060. # Commands to make compiler produce verbose output that lists
  6061. # what "hidden" libraries, object files and flags are used when
  6062. # linking a shared library.
  6063. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  6064. else
  6065. # FIXME: insert proper C++ library support
  6066. _LT_TAGVAR(ld_shlibs, $1)=no
  6067. fi
  6068. ;;
  6069. esac
  6070. ;;
  6071. psos*)
  6072. # FIXME: insert proper C++ library support
  6073. _LT_TAGVAR(ld_shlibs, $1)=no
  6074. ;;
  6075. sunos4*)
  6076. case $cc_basename in
  6077. CC*)
  6078. # Sun C++ 4.x
  6079. # FIXME: insert proper C++ library support
  6080. _LT_TAGVAR(ld_shlibs, $1)=no
  6081. ;;
  6082. lcc*)
  6083. # Lucid
  6084. # FIXME: insert proper C++ library support
  6085. _LT_TAGVAR(ld_shlibs, $1)=no
  6086. ;;
  6087. *)
  6088. # FIXME: insert proper C++ library support
  6089. _LT_TAGVAR(ld_shlibs, $1)=no
  6090. ;;
  6091. esac
  6092. ;;
  6093. solaris*)
  6094. case $cc_basename in
  6095. CC* | sunCC*)
  6096. # Sun C++ 4.2, 5.x and Centerline C++
  6097. _LT_TAGVAR(archive_cmds_need_lc,$1)=yes
  6098. _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
  6099. _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  6100. _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  6101. $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'
  6102. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  6103. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  6104. case $host_os in
  6105. solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
  6106. *)
  6107. # The compiler driver will combine and reorder linker options,
  6108. # but understands `-z linker_flag'.
  6109. # Supported since Solaris 2.6 (maybe 2.5.1?)
  6110. _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
  6111. ;;
  6112. esac
  6113. _LT_TAGVAR(link_all_deplibs, $1)=yes
  6114. output_verbose_link_cmd='func_echo_all'
  6115. # Archives containing C++ object files must be created using
  6116. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  6117. # necessary to make sure instantiated templates are included
  6118. # in the archive.
  6119. _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
  6120. ;;
  6121. gcx*)
  6122. # Green Hills C++ Compiler
  6123. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  6124. # The C++ compiler must be used to create the archive.
  6125. _LT_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
  6126. ;;
  6127. *)
  6128. # GNU C++ compiler with Solaris linker
  6129. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  6130. _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs'
  6131. if $CC --version | $GREP -v '^2\.7' > /dev/null; then
  6132. _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  6133. _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  6134. $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  6135. # Commands to make compiler produce verbose output that lists
  6136. # what "hidden" libraries, object files and flags are used when
  6137. # linking a shared library.
  6138. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  6139. else
  6140. # g++ 2.7 appears to require `-G' NOT `-shared' on this
  6141. # platform.
  6142. _LT_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  6143. _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  6144. $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  6145. # Commands to make compiler produce verbose output that lists
  6146. # what "hidden" libraries, object files and flags are used when
  6147. # linking a shared library.
  6148. output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  6149. fi
  6150. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir'
  6151. case $host_os in
  6152. solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
  6153. *)
  6154. _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  6155. ;;
  6156. esac
  6157. fi
  6158. ;;
  6159. esac
  6160. ;;
  6161. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
  6162. _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
  6163. _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  6164. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  6165. runpath_var='LD_RUN_PATH'
  6166. case $cc_basename in
  6167. CC*)
  6168. _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  6169. _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  6170. ;;
  6171. *)
  6172. _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  6173. _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  6174. ;;
  6175. esac
  6176. ;;
  6177. sysv5* | sco3.2v5* | sco5v6*)
  6178. # Note: We can NOT use -z defs as we might desire, because we do not
  6179. # link with -lc, and that would cause any symbols used from libc to
  6180. # always be unresolved, which means just about no library would
  6181. # ever link correctly. If we're not using GNU ld we use -z text
  6182. # though, which does catch some bad symbols but isn't as heavy-handed
  6183. # as -z defs.
  6184. _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
  6185. _LT_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
  6186. _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  6187. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  6188. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R,$libdir'
  6189. _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
  6190. _LT_TAGVAR(link_all_deplibs, $1)=yes
  6191. _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
  6192. runpath_var='LD_RUN_PATH'
  6193. case $cc_basename in
  6194. CC*)
  6195. _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  6196. _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  6197. _LT_TAGVAR(old_archive_cmds, $1)='$CC -Tprelink_objects $oldobjs~
  6198. '"$_LT_TAGVAR(old_archive_cmds, $1)"
  6199. _LT_TAGVAR(reload_cmds, $1)='$CC -Tprelink_objects $reload_objs~
  6200. '"$_LT_TAGVAR(reload_cmds, $1)"
  6201. ;;
  6202. *)
  6203. _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  6204. _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  6205. ;;
  6206. esac
  6207. ;;
  6208. tandem*)
  6209. case $cc_basename in
  6210. NCC*)
  6211. # NonStop-UX NCC 3.20
  6212. # FIXME: insert proper C++ library support
  6213. _LT_TAGVAR(ld_shlibs, $1)=no
  6214. ;;
  6215. *)
  6216. # FIXME: insert proper C++ library support
  6217. _LT_TAGVAR(ld_shlibs, $1)=no
  6218. ;;
  6219. esac
  6220. ;;
  6221. vxworks*)
  6222. # FIXME: insert proper C++ library support
  6223. _LT_TAGVAR(ld_shlibs, $1)=no
  6224. ;;
  6225. *)
  6226. # FIXME: insert proper C++ library support
  6227. _LT_TAGVAR(ld_shlibs, $1)=no
  6228. ;;
  6229. esac
  6230. AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)])
  6231. test "$_LT_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
  6232. _LT_TAGVAR(GCC, $1)="$GXX"
  6233. _LT_TAGVAR(LD, $1)="$LD"
  6234. ## CAVEAT EMPTOR:
  6235. ## There is no encapsulation within the following macros, do not change
  6236. ## the running order or otherwise move them around unless you know exactly
  6237. ## what you are doing...
  6238. _LT_SYS_HIDDEN_LIBDEPS($1)
  6239. _LT_COMPILER_PIC($1)
  6240. _LT_COMPILER_C_O($1)
  6241. _LT_COMPILER_FILE_LOCKS($1)
  6242. _LT_LINKER_SHLIBS($1)
  6243. _LT_SYS_DYNAMIC_LINKER($1)
  6244. _LT_LINKER_HARDCODE_LIBPATH($1)
  6245. _LT_CONFIG($1)
  6246. fi # test -n "$compiler"
  6247. CC=$lt_save_CC
  6248. LDCXX=$LD
  6249. LD=$lt_save_LD
  6250. GCC=$lt_save_GCC
  6251. with_gnu_ld=$lt_save_with_gnu_ld
  6252. lt_cv_path_LDCXX=$lt_cv_path_LD
  6253. lt_cv_path_LD=$lt_save_path_LD
  6254. lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  6255. lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
  6256. fi # test "$_lt_caught_CXX_error" != yes
  6257. AC_LANG_POP
  6258. ])# _LT_LANG_CXX_CONFIG
  6259. # _LT_SYS_HIDDEN_LIBDEPS([TAGNAME])
  6260. # ---------------------------------
  6261. # Figure out "hidden" library dependencies from verbose
  6262. # compiler output when linking a shared library.
  6263. # Parse the compiler output and extract the necessary
  6264. # objects, libraries and library flags.
  6265. m4_defun([_LT_SYS_HIDDEN_LIBDEPS],
  6266. [m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  6267. # Dependencies to place before and after the object being linked:
  6268. _LT_TAGVAR(predep_objects, $1)=
  6269. _LT_TAGVAR(postdep_objects, $1)=
  6270. _LT_TAGVAR(predeps, $1)=
  6271. _LT_TAGVAR(postdeps, $1)=
  6272. _LT_TAGVAR(compiler_lib_search_path, $1)=
  6273. dnl we can't use the lt_simple_compile_test_code here,
  6274. dnl because it contains code intended for an executable,
  6275. dnl not a library. It's possible we should let each
  6276. dnl tag define a new lt_????_link_test_code variable,
  6277. dnl but it's only used here...
  6278. m4_if([$1], [], [cat > conftest.$ac_ext <<_LT_EOF
  6279. int a;
  6280. void foo (void) { a = 0; }
  6281. _LT_EOF
  6282. ], [$1], [CXX], [cat > conftest.$ac_ext <<_LT_EOF
  6283. class Foo
  6284. {
  6285. public:
  6286. Foo (void) { a = 0; }
  6287. private:
  6288. int a;
  6289. };
  6290. _LT_EOF
  6291. ], [$1], [F77], [cat > conftest.$ac_ext <<_LT_EOF
  6292. subroutine foo
  6293. implicit none
  6294. integer*4 a
  6295. a=0
  6296. return
  6297. end
  6298. _LT_EOF
  6299. ], [$1], [FC], [cat > conftest.$ac_ext <<_LT_EOF
  6300. subroutine foo
  6301. implicit none
  6302. integer a
  6303. a=0
  6304. return
  6305. end
  6306. _LT_EOF
  6307. ], [$1], [GCJ], [cat > conftest.$ac_ext <<_LT_EOF
  6308. public class foo {
  6309. private int a;
  6310. public void bar (void) {
  6311. a = 0;
  6312. }
  6313. };
  6314. _LT_EOF
  6315. ])
  6316. dnl Parse the compiler output and extract the necessary
  6317. dnl objects, libraries and library flags.
  6318. if AC_TRY_EVAL(ac_compile); then
  6319. # Parse the compiler output and extract the necessary
  6320. # objects, libraries and library flags.
  6321. # Sentinel used to keep track of whether or not we are before
  6322. # the conftest object file.
  6323. pre_test_object_deps_done=no
  6324. for p in `eval "$output_verbose_link_cmd"`; do
  6325. case $p in
  6326. -L* | -R* | -l*)
  6327. # Some compilers place space between "-{L,R}" and the path.
  6328. # Remove the space.
  6329. if test $p = "-L" ||
  6330. test $p = "-R"; then
  6331. prev=$p
  6332. continue
  6333. else
  6334. prev=
  6335. fi
  6336. if test "$pre_test_object_deps_done" = no; then
  6337. case $p in
  6338. -L* | -R*)
  6339. # Internal compiler library paths should come after those
  6340. # provided the user. The postdeps already come after the
  6341. # user supplied libs so there is no need to process them.
  6342. if test -z "$_LT_TAGVAR(compiler_lib_search_path, $1)"; then
  6343. _LT_TAGVAR(compiler_lib_search_path, $1)="${prev}${p}"
  6344. else
  6345. _LT_TAGVAR(compiler_lib_search_path, $1)="${_LT_TAGVAR(compiler_lib_search_path, $1)} ${prev}${p}"
  6346. fi
  6347. ;;
  6348. # The "-l" case would never come before the object being
  6349. # linked, so don't bother handling this case.
  6350. esac
  6351. else
  6352. if test -z "$_LT_TAGVAR(postdeps, $1)"; then
  6353. _LT_TAGVAR(postdeps, $1)="${prev}${p}"
  6354. else
  6355. _LT_TAGVAR(postdeps, $1)="${_LT_TAGVAR(postdeps, $1)} ${prev}${p}"
  6356. fi
  6357. fi
  6358. ;;
  6359. *.$objext)
  6360. # This assumes that the test object file only shows up
  6361. # once in the compiler output.
  6362. if test "$p" = "conftest.$objext"; then
  6363. pre_test_object_deps_done=yes
  6364. continue
  6365. fi
  6366. if test "$pre_test_object_deps_done" = no; then
  6367. if test -z "$_LT_TAGVAR(predep_objects, $1)"; then
  6368. _LT_TAGVAR(predep_objects, $1)="$p"
  6369. else
  6370. _LT_TAGVAR(predep_objects, $1)="$_LT_TAGVAR(predep_objects, $1) $p"
  6371. fi
  6372. else
  6373. if test -z "$_LT_TAGVAR(postdep_objects, $1)"; then
  6374. _LT_TAGVAR(postdep_objects, $1)="$p"
  6375. else
  6376. _LT_TAGVAR(postdep_objects, $1)="$_LT_TAGVAR(postdep_objects, $1) $p"
  6377. fi
  6378. fi
  6379. ;;
  6380. *) ;; # Ignore the rest.
  6381. esac
  6382. done
  6383. # Clean up.
  6384. rm -f a.out a.exe
  6385. else
  6386. echo "libtool.m4: error: problem compiling $1 test program"
  6387. fi
  6388. $RM -f confest.$objext
  6389. # PORTME: override above test on systems where it is broken
  6390. m4_if([$1], [CXX],
  6391. [case $host_os in
  6392. interix[[3-9]]*)
  6393. # Interix 3.5 installs completely hosed .la files for C++, so rather than
  6394. # hack all around it, let's just trust "g++" to DTRT.
  6395. _LT_TAGVAR(predep_objects,$1)=
  6396. _LT_TAGVAR(postdep_objects,$1)=
  6397. _LT_TAGVAR(postdeps,$1)=
  6398. ;;
  6399. linux*)
  6400. case `$CC -V 2>&1 | sed 5q` in
  6401. *Sun\ C*)
  6402. # Sun C++ 5.9
  6403. # The more standards-conforming stlport4 library is
  6404. # incompatible with the Cstd library. Avoid specifying
  6405. # it if it's in CXXFLAGS. Ignore libCrun as
  6406. # -library=stlport4 depends on it.
  6407. case " $CXX $CXXFLAGS " in
  6408. *" -library=stlport4 "*)
  6409. solaris_use_stlport4=yes
  6410. ;;
  6411. esac
  6412. if test "$solaris_use_stlport4" != yes; then
  6413. _LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
  6414. fi
  6415. ;;
  6416. esac
  6417. ;;
  6418. solaris*)
  6419. case $cc_basename in
  6420. CC* | sunCC*)
  6421. # The more standards-conforming stlport4 library is
  6422. # incompatible with the Cstd library. Avoid specifying
  6423. # it if it's in CXXFLAGS. Ignore libCrun as
  6424. # -library=stlport4 depends on it.
  6425. case " $CXX $CXXFLAGS " in
  6426. *" -library=stlport4 "*)
  6427. solaris_use_stlport4=yes
  6428. ;;
  6429. esac
  6430. # Adding this requires a known-good setup of shared libraries for
  6431. # Sun compiler versions before 5.6, else PIC objects from an old
  6432. # archive will be linked into the output, leading to subtle bugs.
  6433. if test "$solaris_use_stlport4" != yes; then
  6434. _LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
  6435. fi
  6436. ;;
  6437. esac
  6438. ;;
  6439. esac
  6440. ])
  6441. case " $_LT_TAGVAR(postdeps, $1) " in
  6442. *" -lc "*) _LT_TAGVAR(archive_cmds_need_lc, $1)=no ;;
  6443. esac
  6444. _LT_TAGVAR(compiler_lib_search_dirs, $1)=
  6445. if test -n "${_LT_TAGVAR(compiler_lib_search_path, $1)}"; then
  6446. _LT_TAGVAR(compiler_lib_search_dirs, $1)=`echo " ${_LT_TAGVAR(compiler_lib_search_path, $1)}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
  6447. fi
  6448. _LT_TAGDECL([], [compiler_lib_search_dirs], [1],
  6449. [The directories searched by this compiler when creating a shared library])
  6450. _LT_TAGDECL([], [predep_objects], [1],
  6451. [Dependencies to place before and after the objects being linked to
  6452. create a shared library])
  6453. _LT_TAGDECL([], [postdep_objects], [1])
  6454. _LT_TAGDECL([], [predeps], [1])
  6455. _LT_TAGDECL([], [postdeps], [1])
  6456. _LT_TAGDECL([], [compiler_lib_search_path], [1],
  6457. [The library search path used internally by the compiler when linking
  6458. a shared library])
  6459. ])# _LT_SYS_HIDDEN_LIBDEPS
  6460. # _LT_LANG_F77_CONFIG([TAG])
  6461. # --------------------------
  6462. # Ensure that the configuration variables for a Fortran 77 compiler are
  6463. # suitably defined. These variables are subsequently used by _LT_CONFIG
  6464. # to write the compiler configuration to `libtool'.
  6465. m4_defun([_LT_LANG_F77_CONFIG],
  6466. [AC_LANG_PUSH(Fortran 77)
  6467. if test -z "$F77" || test "X$F77" = "Xno"; then
  6468. _lt_disable_F77=yes
  6469. fi
  6470. _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  6471. _LT_TAGVAR(allow_undefined_flag, $1)=
  6472. _LT_TAGVAR(always_export_symbols, $1)=no
  6473. _LT_TAGVAR(archive_expsym_cmds, $1)=
  6474. _LT_TAGVAR(export_dynamic_flag_spec, $1)=
  6475. _LT_TAGVAR(hardcode_direct, $1)=no
  6476. _LT_TAGVAR(hardcode_direct_absolute, $1)=no
  6477. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
  6478. _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
  6479. _LT_TAGVAR(hardcode_libdir_separator, $1)=
  6480. _LT_TAGVAR(hardcode_minus_L, $1)=no
  6481. _LT_TAGVAR(hardcode_automatic, $1)=no
  6482. _LT_TAGVAR(inherit_rpath, $1)=no
  6483. _LT_TAGVAR(module_cmds, $1)=
  6484. _LT_TAGVAR(module_expsym_cmds, $1)=
  6485. _LT_TAGVAR(link_all_deplibs, $1)=unknown
  6486. _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
  6487. _LT_TAGVAR(reload_flag, $1)=$reload_flag
  6488. _LT_TAGVAR(reload_cmds, $1)=$reload_cmds
  6489. _LT_TAGVAR(no_undefined_flag, $1)=
  6490. _LT_TAGVAR(whole_archive_flag_spec, $1)=
  6491. _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
  6492. # Source file extension for f77 test sources.
  6493. ac_ext=f
  6494. # Object file extension for compiled f77 test sources.
  6495. objext=o
  6496. _LT_TAGVAR(objext, $1)=$objext
  6497. # No sense in running all these tests if we already determined that
  6498. # the F77 compiler isn't working. Some variables (like enable_shared)
  6499. # are currently assumed to apply to all compilers on this platform,
  6500. # and will be corrupted by setting them based on a non-working compiler.
  6501. if test "$_lt_disable_F77" != yes; then
  6502. # Code to be used in simple compile tests
  6503. lt_simple_compile_test_code="\
  6504. subroutine t
  6505. return
  6506. end
  6507. "
  6508. # Code to be used in simple link tests
  6509. lt_simple_link_test_code="\
  6510. program t
  6511. end
  6512. "
  6513. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  6514. _LT_TAG_COMPILER
  6515. # save warnings/boilerplate of simple test code
  6516. _LT_COMPILER_BOILERPLATE
  6517. _LT_LINKER_BOILERPLATE
  6518. # Allow CC to be a program name with arguments.
  6519. lt_save_CC="$CC"
  6520. lt_save_GCC=$GCC
  6521. CC=${F77-"f77"}
  6522. compiler=$CC
  6523. _LT_TAGVAR(compiler, $1)=$CC
  6524. _LT_CC_BASENAME([$compiler])
  6525. GCC=$G77
  6526. if test -n "$compiler"; then
  6527. AC_MSG_CHECKING([if libtool supports shared libraries])
  6528. AC_MSG_RESULT([$can_build_shared])
  6529. AC_MSG_CHECKING([whether to build shared libraries])
  6530. test "$can_build_shared" = "no" && enable_shared=no
  6531. # On AIX, shared libraries and static libraries use the same namespace, and
  6532. # are all built from PIC.
  6533. case $host_os in
  6534. aix3*)
  6535. test "$enable_shared" = yes && enable_static=no
  6536. if test -n "$RANLIB"; then
  6537. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  6538. postinstall_cmds='$RANLIB $lib'
  6539. fi
  6540. ;;
  6541. aix[[4-9]]*)
  6542. if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  6543. test "$enable_shared" = yes && enable_static=no
  6544. fi
  6545. ;;
  6546. esac
  6547. AC_MSG_RESULT([$enable_shared])
  6548. AC_MSG_CHECKING([whether to build static libraries])
  6549. # Make sure either enable_shared or enable_static is yes.
  6550. test "$enable_shared" = yes || enable_static=yes
  6551. AC_MSG_RESULT([$enable_static])
  6552. _LT_TAGVAR(GCC, $1)="$G77"
  6553. _LT_TAGVAR(LD, $1)="$LD"
  6554. ## CAVEAT EMPTOR:
  6555. ## There is no encapsulation within the following macros, do not change
  6556. ## the running order or otherwise move them around unless you know exactly
  6557. ## what you are doing...
  6558. _LT_COMPILER_PIC($1)
  6559. _LT_COMPILER_C_O($1)
  6560. _LT_COMPILER_FILE_LOCKS($1)
  6561. _LT_LINKER_SHLIBS($1)
  6562. _LT_SYS_DYNAMIC_LINKER($1)
  6563. _LT_LINKER_HARDCODE_LIBPATH($1)
  6564. _LT_CONFIG($1)
  6565. fi # test -n "$compiler"
  6566. GCC=$lt_save_GCC
  6567. CC="$lt_save_CC"
  6568. fi # test "$_lt_disable_F77" != yes
  6569. AC_LANG_POP
  6570. ])# _LT_LANG_F77_CONFIG
  6571. # _LT_LANG_FC_CONFIG([TAG])
  6572. # -------------------------
  6573. # Ensure that the configuration variables for a Fortran compiler are
  6574. # suitably defined. These variables are subsequently used by _LT_CONFIG
  6575. # to write the compiler configuration to `libtool'.
  6576. m4_defun([_LT_LANG_FC_CONFIG],
  6577. [AC_LANG_PUSH(Fortran)
  6578. if test -z "$FC" || test "X$FC" = "Xno"; then
  6579. _lt_disable_FC=yes
  6580. fi
  6581. _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  6582. _LT_TAGVAR(allow_undefined_flag, $1)=
  6583. _LT_TAGVAR(always_export_symbols, $1)=no
  6584. _LT_TAGVAR(archive_expsym_cmds, $1)=
  6585. _LT_TAGVAR(export_dynamic_flag_spec, $1)=
  6586. _LT_TAGVAR(hardcode_direct, $1)=no
  6587. _LT_TAGVAR(hardcode_direct_absolute, $1)=no
  6588. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
  6589. _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
  6590. _LT_TAGVAR(hardcode_libdir_separator, $1)=
  6591. _LT_TAGVAR(hardcode_minus_L, $1)=no
  6592. _LT_TAGVAR(hardcode_automatic, $1)=no
  6593. _LT_TAGVAR(inherit_rpath, $1)=no
  6594. _LT_TAGVAR(module_cmds, $1)=
  6595. _LT_TAGVAR(module_expsym_cmds, $1)=
  6596. _LT_TAGVAR(link_all_deplibs, $1)=unknown
  6597. _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
  6598. _LT_TAGVAR(reload_flag, $1)=$reload_flag
  6599. _LT_TAGVAR(reload_cmds, $1)=$reload_cmds
  6600. _LT_TAGVAR(no_undefined_flag, $1)=
  6601. _LT_TAGVAR(whole_archive_flag_spec, $1)=
  6602. _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
  6603. # Source file extension for fc test sources.
  6604. ac_ext=${ac_fc_srcext-f}
  6605. # Object file extension for compiled fc test sources.
  6606. objext=o
  6607. _LT_TAGVAR(objext, $1)=$objext
  6608. # No sense in running all these tests if we already determined that
  6609. # the FC compiler isn't working. Some variables (like enable_shared)
  6610. # are currently assumed to apply to all compilers on this platform,
  6611. # and will be corrupted by setting them based on a non-working compiler.
  6612. if test "$_lt_disable_FC" != yes; then
  6613. # Code to be used in simple compile tests
  6614. lt_simple_compile_test_code="\
  6615. subroutine t
  6616. return
  6617. end
  6618. "
  6619. # Code to be used in simple link tests
  6620. lt_simple_link_test_code="\
  6621. program t
  6622. end
  6623. "
  6624. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  6625. _LT_TAG_COMPILER
  6626. # save warnings/boilerplate of simple test code
  6627. _LT_COMPILER_BOILERPLATE
  6628. _LT_LINKER_BOILERPLATE
  6629. # Allow CC to be a program name with arguments.
  6630. lt_save_CC="$CC"
  6631. lt_save_GCC=$GCC
  6632. CC=${FC-"f95"}
  6633. compiler=$CC
  6634. GCC=$ac_cv_fc_compiler_gnu
  6635. _LT_TAGVAR(compiler, $1)=$CC
  6636. _LT_CC_BASENAME([$compiler])
  6637. if test -n "$compiler"; then
  6638. AC_MSG_CHECKING([if libtool supports shared libraries])
  6639. AC_MSG_RESULT([$can_build_shared])
  6640. AC_MSG_CHECKING([whether to build shared libraries])
  6641. test "$can_build_shared" = "no" && enable_shared=no
  6642. # On AIX, shared libraries and static libraries use the same namespace, and
  6643. # are all built from PIC.
  6644. case $host_os in
  6645. aix3*)
  6646. test "$enable_shared" = yes && enable_static=no
  6647. if test -n "$RANLIB"; then
  6648. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  6649. postinstall_cmds='$RANLIB $lib'
  6650. fi
  6651. ;;
  6652. aix[[4-9]]*)
  6653. if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  6654. test "$enable_shared" = yes && enable_static=no
  6655. fi
  6656. ;;
  6657. esac
  6658. AC_MSG_RESULT([$enable_shared])
  6659. AC_MSG_CHECKING([whether to build static libraries])
  6660. # Make sure either enable_shared or enable_static is yes.
  6661. test "$enable_shared" = yes || enable_static=yes
  6662. AC_MSG_RESULT([$enable_static])
  6663. _LT_TAGVAR(GCC, $1)="$ac_cv_fc_compiler_gnu"
  6664. _LT_TAGVAR(LD, $1)="$LD"
  6665. ## CAVEAT EMPTOR:
  6666. ## There is no encapsulation within the following macros, do not change
  6667. ## the running order or otherwise move them around unless you know exactly
  6668. ## what you are doing...
  6669. _LT_SYS_HIDDEN_LIBDEPS($1)
  6670. _LT_COMPILER_PIC($1)
  6671. _LT_COMPILER_C_O($1)
  6672. _LT_COMPILER_FILE_LOCKS($1)
  6673. _LT_LINKER_SHLIBS($1)
  6674. _LT_SYS_DYNAMIC_LINKER($1)
  6675. _LT_LINKER_HARDCODE_LIBPATH($1)
  6676. _LT_CONFIG($1)
  6677. fi # test -n "$compiler"
  6678. GCC=$lt_save_GCC
  6679. CC="$lt_save_CC"
  6680. fi # test "$_lt_disable_FC" != yes
  6681. AC_LANG_POP
  6682. ])# _LT_LANG_FC_CONFIG
  6683. # _LT_LANG_GCJ_CONFIG([TAG])
  6684. # --------------------------
  6685. # Ensure that the configuration variables for the GNU Java Compiler compiler
  6686. # are suitably defined. These variables are subsequently used by _LT_CONFIG
  6687. # to write the compiler configuration to `libtool'.
  6688. m4_defun([_LT_LANG_GCJ_CONFIG],
  6689. [AC_REQUIRE([LT_PROG_GCJ])dnl
  6690. AC_LANG_SAVE
  6691. # Source file extension for Java test sources.
  6692. ac_ext=java
  6693. # Object file extension for compiled Java test sources.
  6694. objext=o
  6695. _LT_TAGVAR(objext, $1)=$objext
  6696. # Code to be used in simple compile tests
  6697. lt_simple_compile_test_code="class foo {}"
  6698. # Code to be used in simple link tests
  6699. lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }'
  6700. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  6701. _LT_TAG_COMPILER
  6702. # save warnings/boilerplate of simple test code
  6703. _LT_COMPILER_BOILERPLATE
  6704. _LT_LINKER_BOILERPLATE
  6705. # Allow CC to be a program name with arguments.
  6706. lt_save_CC="$CC"
  6707. lt_save_GCC=$GCC
  6708. GCC=yes
  6709. CC=${GCJ-"gcj"}
  6710. compiler=$CC
  6711. _LT_TAGVAR(compiler, $1)=$CC
  6712. _LT_TAGVAR(LD, $1)="$LD"
  6713. _LT_CC_BASENAME([$compiler])
  6714. # GCJ did not exist at the time GCC didn't implicitly link libc in.
  6715. _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  6716. _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
  6717. _LT_TAGVAR(reload_flag, $1)=$reload_flag
  6718. _LT_TAGVAR(reload_cmds, $1)=$reload_cmds
  6719. if test -n "$compiler"; then
  6720. _LT_COMPILER_NO_RTTI($1)
  6721. _LT_COMPILER_PIC($1)
  6722. _LT_COMPILER_C_O($1)
  6723. _LT_COMPILER_FILE_LOCKS($1)
  6724. _LT_LINKER_SHLIBS($1)
  6725. _LT_LINKER_HARDCODE_LIBPATH($1)
  6726. _LT_CONFIG($1)
  6727. fi
  6728. AC_LANG_RESTORE
  6729. GCC=$lt_save_GCC
  6730. CC="$lt_save_CC"
  6731. ])# _LT_LANG_GCJ_CONFIG
  6732. # _LT_LANG_RC_CONFIG([TAG])
  6733. # -------------------------
  6734. # Ensure that the configuration variables for the Windows resource compiler
  6735. # are suitably defined. These variables are subsequently used by _LT_CONFIG
  6736. # to write the compiler configuration to `libtool'.
  6737. m4_defun([_LT_LANG_RC_CONFIG],
  6738. [AC_REQUIRE([LT_PROG_RC])dnl
  6739. AC_LANG_SAVE
  6740. # Source file extension for RC test sources.
  6741. ac_ext=rc
  6742. # Object file extension for compiled RC test sources.
  6743. objext=o
  6744. _LT_TAGVAR(objext, $1)=$objext
  6745. # Code to be used in simple compile tests
  6746. lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
  6747. # Code to be used in simple link tests
  6748. lt_simple_link_test_code="$lt_simple_compile_test_code"
  6749. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  6750. _LT_TAG_COMPILER
  6751. # save warnings/boilerplate of simple test code
  6752. _LT_COMPILER_BOILERPLATE
  6753. _LT_LINKER_BOILERPLATE
  6754. # Allow CC to be a program name with arguments.
  6755. lt_save_CC="$CC"
  6756. lt_save_GCC=$GCC
  6757. GCC=
  6758. CC=${RC-"windres"}
  6759. compiler=$CC
  6760. _LT_TAGVAR(compiler, $1)=$CC
  6761. _LT_CC_BASENAME([$compiler])
  6762. _LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
  6763. if test -n "$compiler"; then
  6764. :
  6765. _LT_CONFIG($1)
  6766. fi
  6767. GCC=$lt_save_GCC
  6768. AC_LANG_RESTORE
  6769. CC="$lt_save_CC"
  6770. ])# _LT_LANG_RC_CONFIG
  6771. # LT_PROG_GCJ
  6772. # -----------
  6773. AC_DEFUN([LT_PROG_GCJ],
  6774. [m4_ifdef([AC_PROG_GCJ], [AC_PROG_GCJ],
  6775. [m4_ifdef([A][M_PROG_GCJ], [A][M_PROG_GCJ],
  6776. [AC_CHECK_TOOL(GCJ, gcj,)
  6777. test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
  6778. AC_SUBST(GCJFLAGS)])])[]dnl
  6779. ])
  6780. # Old name:
  6781. AU_ALIAS([LT_AC_PROG_GCJ], [LT_PROG_GCJ])
  6782. dnl aclocal-1.4 backwards compatibility:
  6783. dnl AC_DEFUN([LT_AC_PROG_GCJ], [])
  6784. # LT_PROG_RC
  6785. # ----------
  6786. AC_DEFUN([LT_PROG_RC],
  6787. [AC_CHECK_TOOL(RC, windres,)
  6788. ])
  6789. # Old name:
  6790. AU_ALIAS([LT_AC_PROG_RC], [LT_PROG_RC])
  6791. dnl aclocal-1.4 backwards compatibility:
  6792. dnl AC_DEFUN([LT_AC_PROG_RC], [])
  6793. # _LT_DECL_EGREP
  6794. # --------------
  6795. # If we don't have a new enough Autoconf to choose the best grep
  6796. # available, choose the one first in the user's PATH.
  6797. m4_defun([_LT_DECL_EGREP],
  6798. [AC_REQUIRE([AC_PROG_EGREP])dnl
  6799. AC_REQUIRE([AC_PROG_FGREP])dnl
  6800. test -z "$GREP" && GREP=grep
  6801. _LT_DECL([], [GREP], [1], [A grep program that handles long lines])
  6802. _LT_DECL([], [EGREP], [1], [An ERE matcher])
  6803. _LT_DECL([], [FGREP], [1], [A literal string matcher])
  6804. dnl Non-bleeding-edge autoconf doesn't subst GREP, so do it here too
  6805. AC_SUBST([GREP])
  6806. ])
  6807. # _LT_DECL_OBJDUMP
  6808. # --------------
  6809. # If we don't have a new enough Autoconf to choose the best objdump
  6810. # available, choose the one first in the user's PATH.
  6811. m4_defun([_LT_DECL_OBJDUMP],
  6812. [AC_CHECK_TOOL(OBJDUMP, objdump, false)
  6813. test -z "$OBJDUMP" && OBJDUMP=objdump
  6814. _LT_DECL([], [OBJDUMP], [1], [An object symbol dumper])
  6815. AC_SUBST([OBJDUMP])
  6816. ])
  6817. # _LT_DECL_SED
  6818. # ------------
  6819. # Check for a fully-functional sed program, that truncates
  6820. # as few characters as possible. Prefer GNU sed if found.
  6821. m4_defun([_LT_DECL_SED],
  6822. [AC_PROG_SED
  6823. test -z "$SED" && SED=sed
  6824. Xsed="$SED -e 1s/^X//"
  6825. _LT_DECL([], [SED], [1], [A sed program that does not truncate output])
  6826. _LT_DECL([], [Xsed], ["\$SED -e 1s/^X//"],
  6827. [Sed that helps us avoid accidentally triggering echo(1) options like -n])
  6828. ])# _LT_DECL_SED
  6829. m4_ifndef([AC_PROG_SED], [
  6830. # NOTE: This macro has been submitted for inclusion into #
  6831. # GNU Autoconf as AC_PROG_SED. When it is available in #
  6832. # a released version of Autoconf we should remove this #
  6833. # macro and use it instead. #
  6834. m4_defun([AC_PROG_SED],
  6835. [AC_MSG_CHECKING([for a sed that does not truncate output])
  6836. AC_CACHE_VAL(lt_cv_path_SED,
  6837. [# Loop through the user's path and test for sed and gsed.
  6838. # Then use that list of sed's as ones to test for truncation.
  6839. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6840. for as_dir in $PATH
  6841. do
  6842. IFS=$as_save_IFS
  6843. test -z "$as_dir" && as_dir=.
  6844. for lt_ac_prog in sed gsed; do
  6845. for ac_exec_ext in '' $ac_executable_extensions; do
  6846. if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
  6847. lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
  6848. fi
  6849. done
  6850. done
  6851. done
  6852. IFS=$as_save_IFS
  6853. lt_ac_max=0
  6854. lt_ac_count=0
  6855. # Add /usr/xpg4/bin/sed as it is typically found on Solaris
  6856. # along with /bin/sed that truncates output.
  6857. for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
  6858. test ! -f $lt_ac_sed && continue
  6859. cat /dev/null > conftest.in
  6860. lt_ac_count=0
  6861. echo $ECHO_N "0123456789$ECHO_C" >conftest.in
  6862. # Check for GNU sed and select it if it is found.
  6863. if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
  6864. lt_cv_path_SED=$lt_ac_sed
  6865. break
  6866. fi
  6867. while true; do
  6868. cat conftest.in conftest.in >conftest.tmp
  6869. mv conftest.tmp conftest.in
  6870. cp conftest.in conftest.nl
  6871. echo >>conftest.nl
  6872. $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
  6873. cmp -s conftest.out conftest.nl || break
  6874. # 10000 chars as input seems more than enough
  6875. test $lt_ac_count -gt 10 && break
  6876. lt_ac_count=`expr $lt_ac_count + 1`
  6877. if test $lt_ac_count -gt $lt_ac_max; then
  6878. lt_ac_max=$lt_ac_count
  6879. lt_cv_path_SED=$lt_ac_sed
  6880. fi
  6881. done
  6882. done
  6883. ])
  6884. SED=$lt_cv_path_SED
  6885. AC_SUBST([SED])
  6886. AC_MSG_RESULT([$SED])
  6887. ])#AC_PROG_SED
  6888. ])#m4_ifndef
  6889. # Old name:
  6890. AU_ALIAS([LT_AC_PROG_SED], [AC_PROG_SED])
  6891. dnl aclocal-1.4 backwards compatibility:
  6892. dnl AC_DEFUN([LT_AC_PROG_SED], [])
  6893. # _LT_CHECK_SHELL_FEATURES
  6894. # ------------------------
  6895. # Find out whether the shell is Bourne or XSI compatible,
  6896. # or has some other useful features.
  6897. m4_defun([_LT_CHECK_SHELL_FEATURES],
  6898. [AC_MSG_CHECKING([whether the shell understands some XSI constructs])
  6899. # Try some XSI features
  6900. xsi_shell=no
  6901. ( _lt_dummy="a/b/c"
  6902. test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
  6903. = c,a/b,, \
  6904. && eval 'test $(( 1 + 1 )) -eq 2 \
  6905. && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
  6906. && xsi_shell=yes
  6907. AC_MSG_RESULT([$xsi_shell])
  6908. _LT_CONFIG_LIBTOOL_INIT([xsi_shell='$xsi_shell'])
  6909. AC_MSG_CHECKING([whether the shell understands "+="])
  6910. lt_shell_append=no
  6911. ( foo=bar; set foo baz; eval "$[1]+=\$[2]" && test "$foo" = barbaz ) \
  6912. >/dev/null 2>&1 \
  6913. && lt_shell_append=yes
  6914. AC_MSG_RESULT([$lt_shell_append])
  6915. _LT_CONFIG_LIBTOOL_INIT([lt_shell_append='$lt_shell_append'])
  6916. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  6917. lt_unset=unset
  6918. else
  6919. lt_unset=false
  6920. fi
  6921. _LT_DECL([], [lt_unset], [0], [whether the shell understands "unset"])dnl
  6922. # test EBCDIC or ASCII
  6923. case `echo X|tr X '\101'` in
  6924. A) # ASCII based system
  6925. # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  6926. lt_SP2NL='tr \040 \012'
  6927. lt_NL2SP='tr \015\012 \040\040'
  6928. ;;
  6929. *) # EBCDIC based system
  6930. lt_SP2NL='tr \100 \n'
  6931. lt_NL2SP='tr \r\n \100\100'
  6932. ;;
  6933. esac
  6934. _LT_DECL([SP2NL], [lt_SP2NL], [1], [turn spaces into newlines])dnl
  6935. _LT_DECL([NL2SP], [lt_NL2SP], [1], [turn newlines into spaces])dnl
  6936. ])# _LT_CHECK_SHELL_FEATURES
  6937. # _LT_PROG_XSI_SHELLFNS
  6938. # ---------------------
  6939. # Bourne and XSI compatible variants of some useful shell functions.
  6940. m4_defun([_LT_PROG_XSI_SHELLFNS],
  6941. [case $xsi_shell in
  6942. yes)
  6943. cat << \_LT_EOF >> "$cfgfile"
  6944. # func_dirname file append nondir_replacement
  6945. # Compute the dirname of FILE. If nonempty, add APPEND to the result,
  6946. # otherwise set result to NONDIR_REPLACEMENT.
  6947. func_dirname ()
  6948. {
  6949. case ${1} in
  6950. */*) func_dirname_result="${1%/*}${2}" ;;
  6951. * ) func_dirname_result="${3}" ;;
  6952. esac
  6953. }
  6954. # func_basename file
  6955. func_basename ()
  6956. {
  6957. func_basename_result="${1##*/}"
  6958. }
  6959. # func_dirname_and_basename file append nondir_replacement
  6960. # perform func_basename and func_dirname in a single function
  6961. # call:
  6962. # dirname: Compute the dirname of FILE. If nonempty,
  6963. # add APPEND to the result, otherwise set result
  6964. # to NONDIR_REPLACEMENT.
  6965. # value returned in "$func_dirname_result"
  6966. # basename: Compute filename of FILE.
  6967. # value retuned in "$func_basename_result"
  6968. # Implementation must be kept synchronized with func_dirname
  6969. # and func_basename. For efficiency, we do not delegate to
  6970. # those functions but instead duplicate the functionality here.
  6971. func_dirname_and_basename ()
  6972. {
  6973. case ${1} in
  6974. */*) func_dirname_result="${1%/*}${2}" ;;
  6975. * ) func_dirname_result="${3}" ;;
  6976. esac
  6977. func_basename_result="${1##*/}"
  6978. }
  6979. # func_stripname prefix suffix name
  6980. # strip PREFIX and SUFFIX off of NAME.
  6981. # PREFIX and SUFFIX must not contain globbing or regex special
  6982. # characters, hashes, percent signs, but SUFFIX may contain a leading
  6983. # dot (in which case that matches only a dot).
  6984. func_stripname ()
  6985. {
  6986. # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
  6987. # positional parameters, so assign one to ordinary parameter first.
  6988. func_stripname_result=${3}
  6989. func_stripname_result=${func_stripname_result#"${1}"}
  6990. func_stripname_result=${func_stripname_result%"${2}"}
  6991. }
  6992. # func_opt_split
  6993. func_opt_split ()
  6994. {
  6995. func_opt_split_opt=${1%%=*}
  6996. func_opt_split_arg=${1#*=}
  6997. }
  6998. # func_lo2o object
  6999. func_lo2o ()
  7000. {
  7001. case ${1} in
  7002. *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
  7003. *) func_lo2o_result=${1} ;;
  7004. esac
  7005. }
  7006. # func_xform libobj-or-source
  7007. func_xform ()
  7008. {
  7009. func_xform_result=${1%.*}.lo
  7010. }
  7011. # func_arith arithmetic-term...
  7012. func_arith ()
  7013. {
  7014. func_arith_result=$(( $[*] ))
  7015. }
  7016. # func_len string
  7017. # STRING may not start with a hyphen.
  7018. func_len ()
  7019. {
  7020. func_len_result=${#1}
  7021. }
  7022. _LT_EOF
  7023. ;;
  7024. *) # Bourne compatible functions.
  7025. cat << \_LT_EOF >> "$cfgfile"
  7026. # func_dirname file append nondir_replacement
  7027. # Compute the dirname of FILE. If nonempty, add APPEND to the result,
  7028. # otherwise set result to NONDIR_REPLACEMENT.
  7029. func_dirname ()
  7030. {
  7031. # Extract subdirectory from the argument.
  7032. func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
  7033. if test "X$func_dirname_result" = "X${1}"; then
  7034. func_dirname_result="${3}"
  7035. else
  7036. func_dirname_result="$func_dirname_result${2}"
  7037. fi
  7038. }
  7039. # func_basename file
  7040. func_basename ()
  7041. {
  7042. func_basename_result=`$ECHO "${1}" | $SED "$basename"`
  7043. }
  7044. dnl func_dirname_and_basename
  7045. dnl A portable version of this function is already defined in general.m4sh
  7046. dnl so there is no need for it here.
  7047. # func_stripname prefix suffix name
  7048. # strip PREFIX and SUFFIX off of NAME.
  7049. # PREFIX and SUFFIX must not contain globbing or regex special
  7050. # characters, hashes, percent signs, but SUFFIX may contain a leading
  7051. # dot (in which case that matches only a dot).
  7052. # func_strip_suffix prefix name
  7053. func_stripname ()
  7054. {
  7055. case ${2} in
  7056. .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
  7057. *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
  7058. esac
  7059. }
  7060. # sed scripts:
  7061. my_sed_long_opt='1s/^\(-[[^=]]*\)=.*/\1/;q'
  7062. my_sed_long_arg='1s/^-[[^=]]*=//'
  7063. # func_opt_split
  7064. func_opt_split ()
  7065. {
  7066. func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
  7067. func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
  7068. }
  7069. # func_lo2o object
  7070. func_lo2o ()
  7071. {
  7072. func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
  7073. }
  7074. # func_xform libobj-or-source
  7075. func_xform ()
  7076. {
  7077. func_xform_result=`$ECHO "${1}" | $SED 's/\.[[^.]]*$/.lo/'`
  7078. }
  7079. # func_arith arithmetic-term...
  7080. func_arith ()
  7081. {
  7082. func_arith_result=`expr "$[@]"`
  7083. }
  7084. # func_len string
  7085. # STRING may not start with a hyphen.
  7086. func_len ()
  7087. {
  7088. func_len_result=`expr "$[1]" : ".*" 2>/dev/null || echo $max_cmd_len`
  7089. }
  7090. _LT_EOF
  7091. esac
  7092. case $lt_shell_append in
  7093. yes)
  7094. cat << \_LT_EOF >> "$cfgfile"
  7095. # func_append var value
  7096. # Append VALUE to the end of shell variable VAR.
  7097. func_append ()
  7098. {
  7099. eval "$[1]+=\$[2]"
  7100. }
  7101. _LT_EOF
  7102. ;;
  7103. *)
  7104. cat << \_LT_EOF >> "$cfgfile"
  7105. # func_append var value
  7106. # Append VALUE to the end of shell variable VAR.
  7107. func_append ()
  7108. {
  7109. eval "$[1]=\$$[1]\$[2]"
  7110. }
  7111. _LT_EOF
  7112. ;;
  7113. esac
  7114. ])
  7115. # Helper functions for option handling. -*- Autoconf -*-
  7116. #
  7117. # Copyright (C) 2004, 2005, 2007, 2008, 2009 Free Software Foundation,
  7118. # Inc.
  7119. # Written by Gary V. Vaughan, 2004
  7120. #
  7121. # This file is free software; the Free Software Foundation gives
  7122. # unlimited permission to copy and/or distribute it, with or without
  7123. # modifications, as long as this notice is preserved.
  7124. # serial 7 ltoptions.m4
  7125. # This is to help aclocal find these macros, as it can't see m4_define.
  7126. AC_DEFUN([LTOPTIONS_VERSION], [m4_if([1])])
  7127. # _LT_MANGLE_OPTION(MACRO-NAME, OPTION-NAME)
  7128. # ------------------------------------------
  7129. m4_define([_LT_MANGLE_OPTION],
  7130. [[_LT_OPTION_]m4_bpatsubst($1__$2, [[^a-zA-Z0-9_]], [_])])
  7131. # _LT_SET_OPTION(MACRO-NAME, OPTION-NAME)
  7132. # ---------------------------------------
  7133. # Set option OPTION-NAME for macro MACRO-NAME, and if there is a
  7134. # matching handler defined, dispatch to it. Other OPTION-NAMEs are
  7135. # saved as a flag.
  7136. m4_define([_LT_SET_OPTION],
  7137. [m4_define(_LT_MANGLE_OPTION([$1], [$2]))dnl
  7138. m4_ifdef(_LT_MANGLE_DEFUN([$1], [$2]),
  7139. _LT_MANGLE_DEFUN([$1], [$2]),
  7140. [m4_warning([Unknown $1 option `$2'])])[]dnl
  7141. ])
  7142. # _LT_IF_OPTION(MACRO-NAME, OPTION-NAME, IF-SET, [IF-NOT-SET])
  7143. # ------------------------------------------------------------
  7144. # Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
  7145. m4_define([_LT_IF_OPTION],
  7146. [m4_ifdef(_LT_MANGLE_OPTION([$1], [$2]), [$3], [$4])])
  7147. # _LT_UNLESS_OPTIONS(MACRO-NAME, OPTION-LIST, IF-NOT-SET)
  7148. # -------------------------------------------------------
  7149. # Execute IF-NOT-SET unless all options in OPTION-LIST for MACRO-NAME
  7150. # are set.
  7151. m4_define([_LT_UNLESS_OPTIONS],
  7152. [m4_foreach([_LT_Option], m4_split(m4_normalize([$2])),
  7153. [m4_ifdef(_LT_MANGLE_OPTION([$1], _LT_Option),
  7154. [m4_define([$0_found])])])[]dnl
  7155. m4_ifdef([$0_found], [m4_undefine([$0_found])], [$3
  7156. ])[]dnl
  7157. ])
  7158. # _LT_SET_OPTIONS(MACRO-NAME, OPTION-LIST)
  7159. # ----------------------------------------
  7160. # OPTION-LIST is a space-separated list of Libtool options associated
  7161. # with MACRO-NAME. If any OPTION has a matching handler declared with
  7162. # LT_OPTION_DEFINE, dispatch to that macro; otherwise complain about
  7163. # the unknown option and exit.
  7164. m4_defun([_LT_SET_OPTIONS],
  7165. [# Set options
  7166. m4_foreach([_LT_Option], m4_split(m4_normalize([$2])),
  7167. [_LT_SET_OPTION([$1], _LT_Option)])
  7168. m4_if([$1],[LT_INIT],[
  7169. dnl
  7170. dnl Simply set some default values (i.e off) if boolean options were not
  7171. dnl specified:
  7172. _LT_UNLESS_OPTIONS([LT_INIT], [dlopen], [enable_dlopen=no
  7173. ])
  7174. _LT_UNLESS_OPTIONS([LT_INIT], [win32-dll], [enable_win32_dll=no
  7175. ])
  7176. dnl
  7177. dnl If no reference was made to various pairs of opposing options, then
  7178. dnl we run the default mode handler for the pair. For example, if neither
  7179. dnl `shared' nor `disable-shared' was passed, we enable building of shared
  7180. dnl archives by default:
  7181. _LT_UNLESS_OPTIONS([LT_INIT], [shared disable-shared], [_LT_ENABLE_SHARED])
  7182. _LT_UNLESS_OPTIONS([LT_INIT], [static disable-static], [_LT_ENABLE_STATIC])
  7183. _LT_UNLESS_OPTIONS([LT_INIT], [pic-only no-pic], [_LT_WITH_PIC])
  7184. _LT_UNLESS_OPTIONS([LT_INIT], [fast-install disable-fast-install],
  7185. [_LT_ENABLE_FAST_INSTALL])
  7186. ])
  7187. ])# _LT_SET_OPTIONS
  7188. # _LT_MANGLE_DEFUN(MACRO-NAME, OPTION-NAME)
  7189. # -----------------------------------------
  7190. m4_define([_LT_MANGLE_DEFUN],
  7191. [[_LT_OPTION_DEFUN_]m4_bpatsubst(m4_toupper([$1__$2]), [[^A-Z0-9_]], [_])])
  7192. # LT_OPTION_DEFINE(MACRO-NAME, OPTION-NAME, CODE)
  7193. # -----------------------------------------------
  7194. m4_define([LT_OPTION_DEFINE],
  7195. [m4_define(_LT_MANGLE_DEFUN([$1], [$2]), [$3])[]dnl
  7196. ])# LT_OPTION_DEFINE
  7197. # dlopen
  7198. # ------
  7199. LT_OPTION_DEFINE([LT_INIT], [dlopen], [enable_dlopen=yes
  7200. ])
  7201. AU_DEFUN([AC_LIBTOOL_DLOPEN],
  7202. [_LT_SET_OPTION([LT_INIT], [dlopen])
  7203. AC_DIAGNOSE([obsolete],
  7204. [$0: Remove this warning and the call to _LT_SET_OPTION when you
  7205. put the `dlopen' option into LT_INIT's first parameter.])
  7206. ])
  7207. dnl aclocal-1.4 backwards compatibility:
  7208. dnl AC_DEFUN([AC_LIBTOOL_DLOPEN], [])
  7209. # win32-dll
  7210. # ---------
  7211. # Declare package support for building win32 dll's.
  7212. LT_OPTION_DEFINE([LT_INIT], [win32-dll],
  7213. [enable_win32_dll=yes
  7214. case $host in
  7215. *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
  7216. AC_CHECK_TOOL(AS, as, false)
  7217. AC_CHECK_TOOL(DLLTOOL, dlltool, false)
  7218. AC_CHECK_TOOL(OBJDUMP, objdump, false)
  7219. ;;
  7220. esac
  7221. test -z "$AS" && AS=as
  7222. _LT_DECL([], [AS], [1], [Assembler program])dnl
  7223. test -z "$DLLTOOL" && DLLTOOL=dlltool
  7224. _LT_DECL([], [DLLTOOL], [1], [DLL creation program])dnl
  7225. test -z "$OBJDUMP" && OBJDUMP=objdump
  7226. _LT_DECL([], [OBJDUMP], [1], [Object dumper program])dnl
  7227. ])# win32-dll
  7228. AU_DEFUN([AC_LIBTOOL_WIN32_DLL],
  7229. [AC_REQUIRE([AC_CANONICAL_HOST])dnl
  7230. _LT_SET_OPTION([LT_INIT], [win32-dll])
  7231. AC_DIAGNOSE([obsolete],
  7232. [$0: Remove this warning and the call to _LT_SET_OPTION when you
  7233. put the `win32-dll' option into LT_INIT's first parameter.])
  7234. ])
  7235. dnl aclocal-1.4 backwards compatibility:
  7236. dnl AC_DEFUN([AC_LIBTOOL_WIN32_DLL], [])
  7237. # _LT_ENABLE_SHARED([DEFAULT])
  7238. # ----------------------------
  7239. # implement the --enable-shared flag, and supports the `shared' and
  7240. # `disable-shared' LT_INIT options.
  7241. # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
  7242. m4_define([_LT_ENABLE_SHARED],
  7243. [m4_define([_LT_ENABLE_SHARED_DEFAULT], [m4_if($1, no, no, yes)])dnl
  7244. AC_ARG_ENABLE([shared],
  7245. [AS_HELP_STRING([--enable-shared@<:@=PKGS@:>@],
  7246. [build shared libraries @<:@default=]_LT_ENABLE_SHARED_DEFAULT[@:>@])],
  7247. [p=${PACKAGE-default}
  7248. case $enableval in
  7249. yes) enable_shared=yes ;;
  7250. no) enable_shared=no ;;
  7251. *)
  7252. enable_shared=no
  7253. # Look at the argument we got. We use all the common list separators.
  7254. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  7255. for pkg in $enableval; do
  7256. IFS="$lt_save_ifs"
  7257. if test "X$pkg" = "X$p"; then
  7258. enable_shared=yes
  7259. fi
  7260. done
  7261. IFS="$lt_save_ifs"
  7262. ;;
  7263. esac],
  7264. [enable_shared=]_LT_ENABLE_SHARED_DEFAULT)
  7265. _LT_DECL([build_libtool_libs], [enable_shared], [0],
  7266. [Whether or not to build shared libraries])
  7267. ])# _LT_ENABLE_SHARED
  7268. LT_OPTION_DEFINE([LT_INIT], [shared], [_LT_ENABLE_SHARED([yes])])
  7269. LT_OPTION_DEFINE([LT_INIT], [disable-shared], [_LT_ENABLE_SHARED([no])])
  7270. # Old names:
  7271. AC_DEFUN([AC_ENABLE_SHARED],
  7272. [_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[shared])
  7273. ])
  7274. AC_DEFUN([AC_DISABLE_SHARED],
  7275. [_LT_SET_OPTION([LT_INIT], [disable-shared])
  7276. ])
  7277. AU_DEFUN([AM_ENABLE_SHARED], [AC_ENABLE_SHARED($@)])
  7278. AU_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)])
  7279. dnl aclocal-1.4 backwards compatibility:
  7280. dnl AC_DEFUN([AM_ENABLE_SHARED], [])
  7281. dnl AC_DEFUN([AM_DISABLE_SHARED], [])
  7282. # _LT_ENABLE_STATIC([DEFAULT])
  7283. # ----------------------------
  7284. # implement the --enable-static flag, and support the `static' and
  7285. # `disable-static' LT_INIT options.
  7286. # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
  7287. m4_define([_LT_ENABLE_STATIC],
  7288. [m4_define([_LT_ENABLE_STATIC_DEFAULT], [m4_if($1, no, no, yes)])dnl
  7289. AC_ARG_ENABLE([static],
  7290. [AS_HELP_STRING([--enable-static@<:@=PKGS@:>@],
  7291. [build static libraries @<:@default=]_LT_ENABLE_STATIC_DEFAULT[@:>@])],
  7292. [p=${PACKAGE-default}
  7293. case $enableval in
  7294. yes) enable_static=yes ;;
  7295. no) enable_static=no ;;
  7296. *)
  7297. enable_static=no
  7298. # Look at the argument we got. We use all the common list separators.
  7299. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  7300. for pkg in $enableval; do
  7301. IFS="$lt_save_ifs"
  7302. if test "X$pkg" = "X$p"; then
  7303. enable_static=yes
  7304. fi
  7305. done
  7306. IFS="$lt_save_ifs"
  7307. ;;
  7308. esac],
  7309. [enable_static=]_LT_ENABLE_STATIC_DEFAULT)
  7310. _LT_DECL([build_old_libs], [enable_static], [0],
  7311. [Whether or not to build static libraries])
  7312. ])# _LT_ENABLE_STATIC
  7313. LT_OPTION_DEFINE([LT_INIT], [static], [_LT_ENABLE_STATIC([yes])])
  7314. LT_OPTION_DEFINE([LT_INIT], [disable-static], [_LT_ENABLE_STATIC([no])])
  7315. # Old names:
  7316. AC_DEFUN([AC_ENABLE_STATIC],
  7317. [_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[static])
  7318. ])
  7319. AC_DEFUN([AC_DISABLE_STATIC],
  7320. [_LT_SET_OPTION([LT_INIT], [disable-static])
  7321. ])
  7322. AU_DEFUN([AM_ENABLE_STATIC], [AC_ENABLE_STATIC($@)])
  7323. AU_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)])
  7324. dnl aclocal-1.4 backwards compatibility:
  7325. dnl AC_DEFUN([AM_ENABLE_STATIC], [])
  7326. dnl AC_DEFUN([AM_DISABLE_STATIC], [])
  7327. # _LT_ENABLE_FAST_INSTALL([DEFAULT])
  7328. # ----------------------------------
  7329. # implement the --enable-fast-install flag, and support the `fast-install'
  7330. # and `disable-fast-install' LT_INIT options.
  7331. # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
  7332. m4_define([_LT_ENABLE_FAST_INSTALL],
  7333. [m4_define([_LT_ENABLE_FAST_INSTALL_DEFAULT], [m4_if($1, no, no, yes)])dnl
  7334. AC_ARG_ENABLE([fast-install],
  7335. [AS_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@],
  7336. [optimize for fast installation @<:@default=]_LT_ENABLE_FAST_INSTALL_DEFAULT[@:>@])],
  7337. [p=${PACKAGE-default}
  7338. case $enableval in
  7339. yes) enable_fast_install=yes ;;
  7340. no) enable_fast_install=no ;;
  7341. *)
  7342. enable_fast_install=no
  7343. # Look at the argument we got. We use all the common list separators.
  7344. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  7345. for pkg in $enableval; do
  7346. IFS="$lt_save_ifs"
  7347. if test "X$pkg" = "X$p"; then
  7348. enable_fast_install=yes
  7349. fi
  7350. done
  7351. IFS="$lt_save_ifs"
  7352. ;;
  7353. esac],
  7354. [enable_fast_install=]_LT_ENABLE_FAST_INSTALL_DEFAULT)
  7355. _LT_DECL([fast_install], [enable_fast_install], [0],
  7356. [Whether or not to optimize for fast installation])dnl
  7357. ])# _LT_ENABLE_FAST_INSTALL
  7358. LT_OPTION_DEFINE([LT_INIT], [fast-install], [_LT_ENABLE_FAST_INSTALL([yes])])
  7359. LT_OPTION_DEFINE([LT_INIT], [disable-fast-install], [_LT_ENABLE_FAST_INSTALL([no])])
  7360. # Old names:
  7361. AU_DEFUN([AC_ENABLE_FAST_INSTALL],
  7362. [_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[fast-install])
  7363. AC_DIAGNOSE([obsolete],
  7364. [$0: Remove this warning and the call to _LT_SET_OPTION when you put
  7365. the `fast-install' option into LT_INIT's first parameter.])
  7366. ])
  7367. AU_DEFUN([AC_DISABLE_FAST_INSTALL],
  7368. [_LT_SET_OPTION([LT_INIT], [disable-fast-install])
  7369. AC_DIAGNOSE([obsolete],
  7370. [$0: Remove this warning and the call to _LT_SET_OPTION when you put
  7371. the `disable-fast-install' option into LT_INIT's first parameter.])
  7372. ])
  7373. dnl aclocal-1.4 backwards compatibility:
  7374. dnl AC_DEFUN([AC_ENABLE_FAST_INSTALL], [])
  7375. dnl AC_DEFUN([AM_DISABLE_FAST_INSTALL], [])
  7376. # _LT_WITH_PIC([MODE])
  7377. # --------------------
  7378. # implement the --with-pic flag, and support the `pic-only' and `no-pic'
  7379. # LT_INIT options.
  7380. # MODE is either `yes' or `no'. If omitted, it defaults to `both'.
  7381. m4_define([_LT_WITH_PIC],
  7382. [AC_ARG_WITH([pic],
  7383. [AS_HELP_STRING([--with-pic],
  7384. [try to use only PIC/non-PIC objects @<:@default=use both@:>@])],
  7385. [pic_mode="$withval"],
  7386. [pic_mode=default])
  7387. test -z "$pic_mode" && pic_mode=m4_default([$1], [default])
  7388. _LT_DECL([], [pic_mode], [0], [What type of objects to build])dnl
  7389. ])# _LT_WITH_PIC
  7390. LT_OPTION_DEFINE([LT_INIT], [pic-only], [_LT_WITH_PIC([yes])])
  7391. LT_OPTION_DEFINE([LT_INIT], [no-pic], [_LT_WITH_PIC([no])])
  7392. # Old name:
  7393. AU_DEFUN([AC_LIBTOOL_PICMODE],
  7394. [_LT_SET_OPTION([LT_INIT], [pic-only])
  7395. AC_DIAGNOSE([obsolete],
  7396. [$0: Remove this warning and the call to _LT_SET_OPTION when you
  7397. put the `pic-only' option into LT_INIT's first parameter.])
  7398. ])
  7399. dnl aclocal-1.4 backwards compatibility:
  7400. dnl AC_DEFUN([AC_LIBTOOL_PICMODE], [])
  7401. m4_define([_LTDL_MODE], [])
  7402. LT_OPTION_DEFINE([LTDL_INIT], [nonrecursive],
  7403. [m4_define([_LTDL_MODE], [nonrecursive])])
  7404. LT_OPTION_DEFINE([LTDL_INIT], [recursive],
  7405. [m4_define([_LTDL_MODE], [recursive])])
  7406. LT_OPTION_DEFINE([LTDL_INIT], [subproject],
  7407. [m4_define([_LTDL_MODE], [subproject])])
  7408. m4_define([_LTDL_TYPE], [])
  7409. LT_OPTION_DEFINE([LTDL_INIT], [installable],
  7410. [m4_define([_LTDL_TYPE], [installable])])
  7411. LT_OPTION_DEFINE([LTDL_INIT], [convenience],
  7412. [m4_define([_LTDL_TYPE], [convenience])])
  7413. # ltsugar.m4 -- libtool m4 base layer. -*-Autoconf-*-
  7414. #
  7415. # Copyright (C) 2004, 2005, 2007, 2008 Free Software Foundation, Inc.
  7416. # Written by Gary V. Vaughan, 2004
  7417. #
  7418. # This file is free software; the Free Software Foundation gives
  7419. # unlimited permission to copy and/or distribute it, with or without
  7420. # modifications, as long as this notice is preserved.
  7421. # serial 6 ltsugar.m4
  7422. # This is to help aclocal find these macros, as it can't see m4_define.
  7423. AC_DEFUN([LTSUGAR_VERSION], [m4_if([0.1])])
  7424. # lt_join(SEP, ARG1, [ARG2...])
  7425. # -----------------------------
  7426. # Produce ARG1SEPARG2...SEPARGn, omitting [] arguments and their
  7427. # associated separator.
  7428. # Needed until we can rely on m4_join from Autoconf 2.62, since all earlier
  7429. # versions in m4sugar had bugs.
  7430. m4_define([lt_join],
  7431. [m4_if([$#], [1], [],
  7432. [$#], [2], [[$2]],
  7433. [m4_if([$2], [], [], [[$2]_])$0([$1], m4_shift(m4_shift($@)))])])
  7434. m4_define([_lt_join],
  7435. [m4_if([$#$2], [2], [],
  7436. [m4_if([$2], [], [], [[$1$2]])$0([$1], m4_shift(m4_shift($@)))])])
  7437. # lt_car(LIST)
  7438. # lt_cdr(LIST)
  7439. # ------------
  7440. # Manipulate m4 lists.
  7441. # These macros are necessary as long as will still need to support
  7442. # Autoconf-2.59 which quotes differently.
  7443. m4_define([lt_car], [[$1]])
  7444. m4_define([lt_cdr],
  7445. [m4_if([$#], 0, [m4_fatal([$0: cannot be called without arguments])],
  7446. [$#], 1, [],
  7447. [m4_dquote(m4_shift($@))])])
  7448. m4_define([lt_unquote], $1)
  7449. # lt_append(MACRO-NAME, STRING, [SEPARATOR])
  7450. # ------------------------------------------
  7451. # Redefine MACRO-NAME to hold its former content plus `SEPARATOR'`STRING'.
  7452. # Note that neither SEPARATOR nor STRING are expanded; they are appended
  7453. # to MACRO-NAME as is (leaving the expansion for when MACRO-NAME is invoked).
  7454. # No SEPARATOR is output if MACRO-NAME was previously undefined (different
  7455. # than defined and empty).
  7456. #
  7457. # This macro is needed until we can rely on Autoconf 2.62, since earlier
  7458. # versions of m4sugar mistakenly expanded SEPARATOR but not STRING.
  7459. m4_define([lt_append],
  7460. [m4_define([$1],
  7461. m4_ifdef([$1], [m4_defn([$1])[$3]])[$2])])
  7462. # lt_combine(SEP, PREFIX-LIST, INFIX, SUFFIX1, [SUFFIX2...])
  7463. # ----------------------------------------------------------
  7464. # Produce a SEP delimited list of all paired combinations of elements of
  7465. # PREFIX-LIST with SUFFIX1 through SUFFIXn. Each element of the list
  7466. # has the form PREFIXmINFIXSUFFIXn.
  7467. # Needed until we can rely on m4_combine added in Autoconf 2.62.
  7468. m4_define([lt_combine],
  7469. [m4_if(m4_eval([$# > 3]), [1],
  7470. [m4_pushdef([_Lt_sep], [m4_define([_Lt_sep], m4_defn([lt_car]))])]]dnl
  7471. [[m4_foreach([_Lt_prefix], [$2],
  7472. [m4_foreach([_Lt_suffix],
  7473. ]m4_dquote(m4_dquote(m4_shift(m4_shift(m4_shift($@)))))[,
  7474. [_Lt_sep([$1])[]m4_defn([_Lt_prefix])[$3]m4_defn([_Lt_suffix])])])])])
  7475. # lt_if_append_uniq(MACRO-NAME, VARNAME, [SEPARATOR], [UNIQ], [NOT-UNIQ])
  7476. # -----------------------------------------------------------------------
  7477. # Iff MACRO-NAME does not yet contain VARNAME, then append it (delimited
  7478. # by SEPARATOR if supplied) and expand UNIQ, else NOT-UNIQ.
  7479. m4_define([lt_if_append_uniq],
  7480. [m4_ifdef([$1],
  7481. [m4_if(m4_index([$3]m4_defn([$1])[$3], [$3$2$3]), [-1],
  7482. [lt_append([$1], [$2], [$3])$4],
  7483. [$5])],
  7484. [lt_append([$1], [$2], [$3])$4])])
  7485. # lt_dict_add(DICT, KEY, VALUE)
  7486. # -----------------------------
  7487. m4_define([lt_dict_add],
  7488. [m4_define([$1($2)], [$3])])
  7489. # lt_dict_add_subkey(DICT, KEY, SUBKEY, VALUE)
  7490. # --------------------------------------------
  7491. m4_define([lt_dict_add_subkey],
  7492. [m4_define([$1($2:$3)], [$4])])
  7493. # lt_dict_fetch(DICT, KEY, [SUBKEY])
  7494. # ----------------------------------
  7495. m4_define([lt_dict_fetch],
  7496. [m4_ifval([$3],
  7497. m4_ifdef([$1($2:$3)], [m4_defn([$1($2:$3)])]),
  7498. m4_ifdef([$1($2)], [m4_defn([$1($2)])]))])
  7499. # lt_if_dict_fetch(DICT, KEY, [SUBKEY], VALUE, IF-TRUE, [IF-FALSE])
  7500. # -----------------------------------------------------------------
  7501. m4_define([lt_if_dict_fetch],
  7502. [m4_if(lt_dict_fetch([$1], [$2], [$3]), [$4],
  7503. [$5],
  7504. [$6])])
  7505. # lt_dict_filter(DICT, [SUBKEY], VALUE, [SEPARATOR], KEY, [...])
  7506. # --------------------------------------------------------------
  7507. m4_define([lt_dict_filter],
  7508. [m4_if([$5], [], [],
  7509. [lt_join(m4_quote(m4_default([$4], [[, ]])),
  7510. lt_unquote(m4_split(m4_normalize(m4_foreach(_Lt_key, lt_car([m4_shiftn(4, $@)]),
  7511. [lt_if_dict_fetch([$1], _Lt_key, [$2], [$3], [_Lt_key ])])))))])[]dnl
  7512. ])
  7513. # ltversion.m4 -- version numbers -*- Autoconf -*-
  7514. #
  7515. # Copyright (C) 2004 Free Software Foundation, Inc.
  7516. # Written by Scott James Remnant, 2004
  7517. #
  7518. # This file is free software; the Free Software Foundation gives
  7519. # unlimited permission to copy and/or distribute it, with or without
  7520. # modifications, as long as this notice is preserved.
  7521. # Generated from ltversion.in.
  7522. # serial 3175 ltversion.m4
  7523. # This file is part of GNU Libtool
  7524. m4_define([LT_PACKAGE_VERSION], [2.2.10])
  7525. m4_define([LT_PACKAGE_REVISION], [1.3175])
  7526. AC_DEFUN([LTVERSION_VERSION],
  7527. [macro_version='2.2.10'
  7528. macro_revision='1.3175'
  7529. _LT_DECL(, macro_version, 0, [Which release of libtool.m4 was used?])
  7530. _LT_DECL(, macro_revision, 0)
  7531. ])
  7532. # lt~obsolete.m4 -- aclocal satisfying obsolete definitions. -*-Autoconf-*-
  7533. #
  7534. # Copyright (C) 2004, 2005, 2007, 2009 Free Software Foundation, Inc.
  7535. # Written by Scott James Remnant, 2004.
  7536. #
  7537. # This file is free software; the Free Software Foundation gives
  7538. # unlimited permission to copy and/or distribute it, with or without
  7539. # modifications, as long as this notice is preserved.
  7540. # serial 5 lt~obsolete.m4
  7541. # These exist entirely to fool aclocal when bootstrapping libtool.
  7542. #
  7543. # In the past libtool.m4 has provided macros via AC_DEFUN (or AU_DEFUN)
  7544. # which have later been changed to m4_define as they aren't part of the
  7545. # exported API, or moved to Autoconf or Automake where they belong.
  7546. #
  7547. # The trouble is, aclocal is a bit thick. It'll see the old AC_DEFUN
  7548. # in /usr/share/aclocal/libtool.m4 and remember it, then when it sees us
  7549. # using a macro with the same name in our local m4/libtool.m4 it'll
  7550. # pull the old libtool.m4 in (it doesn't see our shiny new m4_define
  7551. # and doesn't know about Autoconf macros at all.)
  7552. #
  7553. # So we provide this file, which has a silly filename so it's always
  7554. # included after everything else. This provides aclocal with the
  7555. # AC_DEFUNs it wants, but when m4 processes it, it doesn't do anything
  7556. # because those macros already exist, or will be overwritten later.
  7557. # We use AC_DEFUN over AU_DEFUN for compatibility with aclocal-1.6.
  7558. #
  7559. # Anytime we withdraw an AC_DEFUN or AU_DEFUN, remember to add it here.
  7560. # Yes, that means every name once taken will need to remain here until
  7561. # we give up compatibility with versions before 1.7, at which point
  7562. # we need to keep only those names which we still refer to.
  7563. # This is to help aclocal find these macros, as it can't see m4_define.
  7564. AC_DEFUN([LTOBSOLETE_VERSION], [m4_if([1])])
  7565. m4_ifndef([AC_LIBTOOL_LINKER_OPTION], [AC_DEFUN([AC_LIBTOOL_LINKER_OPTION])])
  7566. m4_ifndef([AC_PROG_EGREP], [AC_DEFUN([AC_PROG_EGREP])])
  7567. m4_ifndef([_LT_AC_PROG_ECHO_BACKSLASH], [AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH])])
  7568. m4_ifndef([_LT_AC_SHELL_INIT], [AC_DEFUN([_LT_AC_SHELL_INIT])])
  7569. m4_ifndef([_LT_AC_SYS_LIBPATH_AIX], [AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX])])
  7570. m4_ifndef([_LT_PROG_LTMAIN], [AC_DEFUN([_LT_PROG_LTMAIN])])
  7571. m4_ifndef([_LT_AC_TAGVAR], [AC_DEFUN([_LT_AC_TAGVAR])])
  7572. m4_ifndef([AC_LTDL_ENABLE_INSTALL], [AC_DEFUN([AC_LTDL_ENABLE_INSTALL])])
  7573. m4_ifndef([AC_LTDL_PREOPEN], [AC_DEFUN([AC_LTDL_PREOPEN])])
  7574. m4_ifndef([_LT_AC_SYS_COMPILER], [AC_DEFUN([_LT_AC_SYS_COMPILER])])
  7575. m4_ifndef([_LT_AC_LOCK], [AC_DEFUN([_LT_AC_LOCK])])
  7576. m4_ifndef([AC_LIBTOOL_SYS_OLD_ARCHIVE], [AC_DEFUN([AC_LIBTOOL_SYS_OLD_ARCHIVE])])
  7577. m4_ifndef([_LT_AC_TRY_DLOPEN_SELF], [AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF])])
  7578. m4_ifndef([AC_LIBTOOL_PROG_CC_C_O], [AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O])])
  7579. m4_ifndef([AC_LIBTOOL_SYS_HARD_LINK_LOCKS], [AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS])])
  7580. m4_ifndef([AC_LIBTOOL_OBJDIR], [AC_DEFUN([AC_LIBTOOL_OBJDIR])])
  7581. m4_ifndef([AC_LTDL_OBJDIR], [AC_DEFUN([AC_LTDL_OBJDIR])])
  7582. m4_ifndef([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH], [AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH])])
  7583. m4_ifndef([AC_LIBTOOL_SYS_LIB_STRIP], [AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP])])
  7584. m4_ifndef([AC_PATH_MAGIC], [AC_DEFUN([AC_PATH_MAGIC])])
  7585. m4_ifndef([AC_PROG_LD_GNU], [AC_DEFUN([AC_PROG_LD_GNU])])
  7586. m4_ifndef([AC_PROG_LD_RELOAD_FLAG], [AC_DEFUN([AC_PROG_LD_RELOAD_FLAG])])
  7587. m4_ifndef([AC_DEPLIBS_CHECK_METHOD], [AC_DEFUN([AC_DEPLIBS_CHECK_METHOD])])
  7588. m4_ifndef([AC_LIBTOOL_PROG_COMPILER_NO_RTTI], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI])])
  7589. m4_ifndef([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE], [AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE])])
  7590. m4_ifndef([AC_LIBTOOL_PROG_COMPILER_PIC], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_PIC])])
  7591. m4_ifndef([AC_LIBTOOL_PROG_LD_SHLIBS], [AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS])])
  7592. m4_ifndef([AC_LIBTOOL_POSTDEP_PREDEP], [AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP])])
  7593. m4_ifndef([LT_AC_PROG_EGREP], [AC_DEFUN([LT_AC_PROG_EGREP])])
  7594. m4_ifndef([LT_AC_PROG_SED], [AC_DEFUN([LT_AC_PROG_SED])])
  7595. m4_ifndef([_LT_CC_BASENAME], [AC_DEFUN([_LT_CC_BASENAME])])
  7596. m4_ifndef([_LT_COMPILER_BOILERPLATE], [AC_DEFUN([_LT_COMPILER_BOILERPLATE])])
  7597. m4_ifndef([_LT_LINKER_BOILERPLATE], [AC_DEFUN([_LT_LINKER_BOILERPLATE])])
  7598. m4_ifndef([_AC_PROG_LIBTOOL], [AC_DEFUN([_AC_PROG_LIBTOOL])])
  7599. m4_ifndef([AC_LIBTOOL_SETUP], [AC_DEFUN([AC_LIBTOOL_SETUP])])
  7600. m4_ifndef([_LT_AC_CHECK_DLFCN], [AC_DEFUN([_LT_AC_CHECK_DLFCN])])
  7601. m4_ifndef([AC_LIBTOOL_SYS_DYNAMIC_LINKER], [AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER])])
  7602. m4_ifndef([_LT_AC_TAGCONFIG], [AC_DEFUN([_LT_AC_TAGCONFIG])])
  7603. m4_ifndef([AC_DISABLE_FAST_INSTALL], [AC_DEFUN([AC_DISABLE_FAST_INSTALL])])
  7604. m4_ifndef([_LT_AC_LANG_CXX], [AC_DEFUN([_LT_AC_LANG_CXX])])
  7605. m4_ifndef([_LT_AC_LANG_F77], [AC_DEFUN([_LT_AC_LANG_F77])])
  7606. m4_ifndef([_LT_AC_LANG_GCJ], [AC_DEFUN([_LT_AC_LANG_GCJ])])
  7607. m4_ifndef([AC_LIBTOOL_LANG_C_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG])])
  7608. m4_ifndef([_LT_AC_LANG_C_CONFIG], [AC_DEFUN([_LT_AC_LANG_C_CONFIG])])
  7609. m4_ifndef([AC_LIBTOOL_LANG_CXX_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG])])
  7610. m4_ifndef([_LT_AC_LANG_CXX_CONFIG], [AC_DEFUN([_LT_AC_LANG_CXX_CONFIG])])
  7611. m4_ifndef([AC_LIBTOOL_LANG_F77_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG])])
  7612. m4_ifndef([_LT_AC_LANG_F77_CONFIG], [AC_DEFUN([_LT_AC_LANG_F77_CONFIG])])
  7613. m4_ifndef([AC_LIBTOOL_LANG_GCJ_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG])])
  7614. m4_ifndef([_LT_AC_LANG_GCJ_CONFIG], [AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG])])
  7615. m4_ifndef([AC_LIBTOOL_LANG_RC_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG])])
  7616. m4_ifndef([_LT_AC_LANG_RC_CONFIG], [AC_DEFUN([_LT_AC_LANG_RC_CONFIG])])
  7617. m4_ifndef([AC_LIBTOOL_CONFIG], [AC_DEFUN([AC_LIBTOOL_CONFIG])])
  7618. m4_ifndef([_LT_AC_FILE_LTDLL_C], [AC_DEFUN([_LT_AC_FILE_LTDLL_C])])
  7619. m4_ifndef([_LT_REQUIRED_DARWIN_CHECKS], [AC_DEFUN([_LT_REQUIRED_DARWIN_CHECKS])])
  7620. m4_ifndef([_LT_AC_PROG_CXXCPP], [AC_DEFUN([_LT_AC_PROG_CXXCPP])])
  7621. m4_ifndef([_LT_PREPARE_SED_QUOTE_VARS], [AC_DEFUN([_LT_PREPARE_SED_QUOTE_VARS])])
  7622. m4_ifndef([_LT_PROG_ECHO_BACKSLASH], [AC_DEFUN([_LT_PROG_ECHO_BACKSLASH])])
  7623. m4_ifndef([_LT_PROG_F77], [AC_DEFUN([_LT_PROG_F77])])
  7624. m4_ifndef([_LT_PROG_FC], [AC_DEFUN([_LT_PROG_FC])])
  7625. m4_ifndef([_LT_PROG_CXX], [AC_DEFUN([_LT_PROG_CXX])])
  7626. # pkg.m4 - Macros to locate and utilise pkg-config. -*- Autoconf -*-
  7627. # serial 1 (pkg-config-0.24)
  7628. #
  7629. # Copyright © 2004 Scott James Remnant <scott@netsplit.com>.
  7630. #
  7631. # This program is free software; you can redistribute it and/or modify
  7632. # it under the terms of the GNU General Public License as published by
  7633. # the Free Software Foundation; either version 2 of the License, or
  7634. # (at your option) any later version.
  7635. #
  7636. # This program is distributed in the hope that it will be useful, but
  7637. # WITHOUT ANY WARRANTY; without even the implied warranty of
  7638. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  7639. # General Public License for more details.
  7640. #
  7641. # You should have received a copy of the GNU General Public License
  7642. # along with this program; if not, write to the Free Software
  7643. # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
  7644. #
  7645. # As a special exception to the GNU General Public License, if you
  7646. # distribute this file as part of a program that contains a
  7647. # configuration script generated by Autoconf, you may include it under
  7648. # the same distribution terms that you use for the rest of that program.
  7649. # PKG_PROG_PKG_CONFIG([MIN-VERSION])
  7650. # ----------------------------------
  7651. AC_DEFUN([PKG_PROG_PKG_CONFIG],
  7652. [m4_pattern_forbid([^_?PKG_[A-Z_]+$])
  7653. m4_pattern_allow([^PKG_CONFIG(_PATH)?$])
  7654. AC_ARG_VAR([PKG_CONFIG], [path to pkg-config utility])
  7655. AC_ARG_VAR([PKG_CONFIG_PATH], [directories to add to pkg-config's search path])
  7656. AC_ARG_VAR([PKG_CONFIG_LIBDIR], [path overriding pkg-config's built-in search path])
  7657. if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
  7658. AC_PATH_TOOL([PKG_CONFIG], [pkg-config])
  7659. fi
  7660. if test -n "$PKG_CONFIG"; then
  7661. _pkg_min_version=m4_default([$1], [0.9.0])
  7662. AC_MSG_CHECKING([pkg-config is at least version $_pkg_min_version])
  7663. if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
  7664. AC_MSG_RESULT([yes])
  7665. else
  7666. AC_MSG_RESULT([no])
  7667. PKG_CONFIG=""
  7668. fi
  7669. fi[]dnl
  7670. ])# PKG_PROG_PKG_CONFIG
  7671. # PKG_CHECK_EXISTS(MODULES, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
  7672. #
  7673. # Check to see whether a particular set of modules exists. Similar
  7674. # to PKG_CHECK_MODULES(), but does not set variables or print errors.
  7675. #
  7676. # Please remember that m4 expands AC_REQUIRE([PKG_PROG_PKG_CONFIG])
  7677. # only at the first occurence in configure.ac, so if the first place
  7678. # it's called might be skipped (such as if it is within an "if", you
  7679. # have to call PKG_CHECK_EXISTS manually
  7680. # --------------------------------------------------------------
  7681. AC_DEFUN([PKG_CHECK_EXISTS],
  7682. [AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
  7683. if test -n "$PKG_CONFIG" && \
  7684. AC_RUN_LOG([$PKG_CONFIG --exists --print-errors "$1"]); then
  7685. m4_default([$2], [:])
  7686. m4_ifvaln([$3], [else
  7687. $3])dnl
  7688. fi])
  7689. # _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES])
  7690. # ---------------------------------------------
  7691. m4_define([_PKG_CONFIG],
  7692. [if test -n "$$1"; then
  7693. pkg_cv_[]$1="$$1"
  7694. elif test -n "$PKG_CONFIG"; then
  7695. PKG_CHECK_EXISTS([$3],
  7696. [pkg_cv_[]$1=`$PKG_CONFIG --[]$2 "$3" 2>/dev/null`],
  7697. [pkg_failed=yes])
  7698. else
  7699. pkg_failed=untried
  7700. fi[]dnl
  7701. ])# _PKG_CONFIG
  7702. # _PKG_SHORT_ERRORS_SUPPORTED
  7703. # -----------------------------
  7704. AC_DEFUN([_PKG_SHORT_ERRORS_SUPPORTED],
  7705. [AC_REQUIRE([PKG_PROG_PKG_CONFIG])
  7706. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  7707. _pkg_short_errors_supported=yes
  7708. else
  7709. _pkg_short_errors_supported=no
  7710. fi[]dnl
  7711. ])# _PKG_SHORT_ERRORS_SUPPORTED
  7712. # PKG_CHECK_MODULES(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND],
  7713. # [ACTION-IF-NOT-FOUND])
  7714. #
  7715. #
  7716. # Note that if there is a possibility the first call to
  7717. # PKG_CHECK_MODULES might not happen, you should be sure to include an
  7718. # explicit call to PKG_PROG_PKG_CONFIG in your configure.ac
  7719. #
  7720. #
  7721. # --------------------------------------------------------------
  7722. AC_DEFUN([PKG_CHECK_MODULES],
  7723. [AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
  7724. AC_ARG_VAR([$1][_CFLAGS], [C compiler flags for $1, overriding pkg-config])dnl
  7725. AC_ARG_VAR([$1][_LIBS], [linker flags for $1, overriding pkg-config])dnl
  7726. pkg_failed=no
  7727. AC_MSG_CHECKING([for $1])
  7728. _PKG_CONFIG([$1][_CFLAGS], [cflags], [$2])
  7729. _PKG_CONFIG([$1][_LIBS], [libs], [$2])
  7730. m4_define([_PKG_TEXT], [Alternatively, you may set the environment variables $1[]_CFLAGS
  7731. and $1[]_LIBS to avoid the need to call pkg-config.
  7732. See the pkg-config man page for more details.])
  7733. if test $pkg_failed = yes; then
  7734. AC_MSG_RESULT([no])
  7735. _PKG_SHORT_ERRORS_SUPPORTED
  7736. if test $_pkg_short_errors_supported = yes; then
  7737. $1[]_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "$2" 2>&1`
  7738. else
  7739. $1[]_PKG_ERRORS=`$PKG_CONFIG --print-errors "$2" 2>&1`
  7740. fi
  7741. # Put the nasty error message in config.log where it belongs
  7742. echo "$$1[]_PKG_ERRORS" >&AS_MESSAGE_LOG_FD
  7743. m4_default([$4], [AC_MSG_ERROR(
  7744. [Package requirements ($2) were not met:
  7745. $$1_PKG_ERRORS
  7746. Consider adjusting the PKG_CONFIG_PATH environment variable if you
  7747. installed software in a non-standard prefix.
  7748. _PKG_TEXT])
  7749. ])
  7750. elif test $pkg_failed = untried; then
  7751. AC_MSG_RESULT([no])
  7752. m4_default([$4], [AC_MSG_FAILURE(
  7753. [The pkg-config script could not be found or is too old. Make sure it
  7754. is in your PATH or set the PKG_CONFIG environment variable to the full
  7755. path to pkg-config.
  7756. _PKG_TEXT
  7757. To get pkg-config, see <http://pkg-config.freedesktop.org/>.])
  7758. ])
  7759. else
  7760. $1[]_CFLAGS=$pkg_cv_[]$1[]_CFLAGS
  7761. $1[]_LIBS=$pkg_cv_[]$1[]_LIBS
  7762. AC_MSG_RESULT([yes])
  7763. $3
  7764. fi[]dnl
  7765. ])# PKG_CHECK_MODULES
  7766. # Copyright (C) 2002, 2003, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
  7767. #
  7768. # This file is free software; the Free Software Foundation
  7769. # gives unlimited permission to copy and/or distribute it,
  7770. # with or without modifications, as long as this notice is preserved.
  7771. # AM_AUTOMAKE_VERSION(VERSION)
  7772. # ----------------------------
  7773. # Automake X.Y traces this macro to ensure aclocal.m4 has been
  7774. # generated from the m4 files accompanying Automake X.Y.
  7775. # (This private macro should not be called outside this file.)
  7776. AC_DEFUN([AM_AUTOMAKE_VERSION],
  7777. [am__api_version='1.11'
  7778. dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
  7779. dnl require some minimum version. Point them to the right macro.
  7780. m4_if([$1], [1.11.1], [],
  7781. [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
  7782. ])
  7783. # _AM_AUTOCONF_VERSION(VERSION)
  7784. # -----------------------------
  7785. # aclocal traces this macro to find the Autoconf version.
  7786. # This is a private macro too. Using m4_define simplifies
  7787. # the logic in aclocal, which can simply ignore this definition.
  7788. m4_define([_AM_AUTOCONF_VERSION], [])
  7789. # AM_SET_CURRENT_AUTOMAKE_VERSION
  7790. # -------------------------------
  7791. # Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
  7792. # This function is AC_REQUIREd by AM_INIT_AUTOMAKE.
  7793. AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
  7794. [AM_AUTOMAKE_VERSION([1.11.1])dnl
  7795. m4_ifndef([AC_AUTOCONF_VERSION],
  7796. [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
  7797. _AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))])
  7798. # AM_AUX_DIR_EXPAND -*- Autoconf -*-
  7799. # Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
  7800. #
  7801. # This file is free software; the Free Software Foundation
  7802. # gives unlimited permission to copy and/or distribute it,
  7803. # with or without modifications, as long as this notice is preserved.
  7804. # For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
  7805. # $ac_aux_dir to `$srcdir/foo'. In other projects, it is set to
  7806. # `$srcdir', `$srcdir/..', or `$srcdir/../..'.
  7807. #
  7808. # Of course, Automake must honor this variable whenever it calls a
  7809. # tool from the auxiliary directory. The problem is that $srcdir (and
  7810. # therefore $ac_aux_dir as well) can be either absolute or relative,
  7811. # depending on how configure is run. This is pretty annoying, since
  7812. # it makes $ac_aux_dir quite unusable in subdirectories: in the top
  7813. # source directory, any form will work fine, but in subdirectories a
  7814. # relative path needs to be adjusted first.
  7815. #
  7816. # $ac_aux_dir/missing
  7817. # fails when called from a subdirectory if $ac_aux_dir is relative
  7818. # $top_srcdir/$ac_aux_dir/missing
  7819. # fails if $ac_aux_dir is absolute,
  7820. # fails when called from a subdirectory in a VPATH build with
  7821. # a relative $ac_aux_dir
  7822. #
  7823. # The reason of the latter failure is that $top_srcdir and $ac_aux_dir
  7824. # are both prefixed by $srcdir. In an in-source build this is usually
  7825. # harmless because $srcdir is `.', but things will broke when you
  7826. # start a VPATH build or use an absolute $srcdir.
  7827. #
  7828. # So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
  7829. # iff we strip the leading $srcdir from $ac_aux_dir. That would be:
  7830. # am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"`
  7831. # and then we would define $MISSING as
  7832. # MISSING="\${SHELL} $am_aux_dir/missing"
  7833. # This will work as long as MISSING is not called from configure, because
  7834. # unfortunately $(top_srcdir) has no meaning in configure.
  7835. # However there are other variables, like CC, which are often used in
  7836. # configure, and could therefore not use this "fixed" $ac_aux_dir.
  7837. #
  7838. # Another solution, used here, is to always expand $ac_aux_dir to an
  7839. # absolute PATH. The drawback is that using absolute paths prevent a
  7840. # configured tree to be moved without reconfiguration.
  7841. AC_DEFUN([AM_AUX_DIR_EXPAND],
  7842. [dnl Rely on autoconf to set up CDPATH properly.
  7843. AC_PREREQ([2.50])dnl
  7844. # expand $ac_aux_dir to an absolute path
  7845. am_aux_dir=`cd $ac_aux_dir && pwd`
  7846. ])
  7847. # Copyright (C) 1996, 1997, 1999, 2000, 2001, 2002, 2003, 2005
  7848. # Free Software Foundation, Inc.
  7849. #
  7850. # This file is free software; the Free Software Foundation
  7851. # gives unlimited permission to copy and/or distribute it,
  7852. # with or without modifications, as long as this notice is preserved.
  7853. # serial 4
  7854. # This was merged into AC_PROG_CC in Autoconf.
  7855. AU_DEFUN([AM_PROG_CC_STDC],
  7856. [AC_PROG_CC
  7857. AC_DIAGNOSE([obsolete], [$0:
  7858. your code should no longer depend upon `am_cv_prog_cc_stdc', but upon
  7859. `ac_cv_prog_cc_stdc'. Remove this warning and the assignment when
  7860. you adjust the code. You can also remove the above call to
  7861. AC_PROG_CC if you already called it elsewhere.])
  7862. am_cv_prog_cc_stdc=$ac_cv_prog_cc_stdc
  7863. ])
  7864. AU_DEFUN([fp_PROG_CC_STDC])
  7865. # AM_CONDITIONAL -*- Autoconf -*-
  7866. # Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006, 2008
  7867. # Free Software Foundation, Inc.
  7868. #
  7869. # This file is free software; the Free Software Foundation
  7870. # gives unlimited permission to copy and/or distribute it,
  7871. # with or without modifications, as long as this notice is preserved.
  7872. # serial 9
  7873. # AM_CONDITIONAL(NAME, SHELL-CONDITION)
  7874. # -------------------------------------
  7875. # Define a conditional.
  7876. AC_DEFUN([AM_CONDITIONAL],
  7877. [AC_PREREQ(2.52)dnl
  7878. ifelse([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])],
  7879. [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
  7880. AC_SUBST([$1_TRUE])dnl
  7881. AC_SUBST([$1_FALSE])dnl
  7882. _AM_SUBST_NOTMAKE([$1_TRUE])dnl
  7883. _AM_SUBST_NOTMAKE([$1_FALSE])dnl
  7884. m4_define([_AM_COND_VALUE_$1], [$2])dnl
  7885. if $2; then
  7886. $1_TRUE=
  7887. $1_FALSE='#'
  7888. else
  7889. $1_TRUE='#'
  7890. $1_FALSE=
  7891. fi
  7892. AC_CONFIG_COMMANDS_PRE(
  7893. [if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
  7894. AC_MSG_ERROR([[conditional "$1" was never defined.
  7895. Usually this means the macro was only invoked conditionally.]])
  7896. fi])])
  7897. # Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2009
  7898. # Free Software Foundation, Inc.
  7899. #
  7900. # This file is free software; the Free Software Foundation
  7901. # gives unlimited permission to copy and/or distribute it,
  7902. # with or without modifications, as long as this notice is preserved.
  7903. # serial 10
  7904. # There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
  7905. # written in clear, in which case automake, when reading aclocal.m4,
  7906. # will think it sees a *use*, and therefore will trigger all it's
  7907. # C support machinery. Also note that it means that autoscan, seeing
  7908. # CC etc. in the Makefile, will ask for an AC_PROG_CC use...
  7909. # _AM_DEPENDENCIES(NAME)
  7910. # ----------------------
  7911. # See how the compiler implements dependency checking.
  7912. # NAME is "CC", "CXX", "GCJ", or "OBJC".
  7913. # We try a few techniques and use that to set a single cache variable.
  7914. #
  7915. # We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was
  7916. # modified to invoke _AM_DEPENDENCIES(CC); we would have a circular
  7917. # dependency, and given that the user is not expected to run this macro,
  7918. # just rely on AC_PROG_CC.
  7919. AC_DEFUN([_AM_DEPENDENCIES],
  7920. [AC_REQUIRE([AM_SET_DEPDIR])dnl
  7921. AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl
  7922. AC_REQUIRE([AM_MAKE_INCLUDE])dnl
  7923. AC_REQUIRE([AM_DEP_TRACK])dnl
  7924. ifelse([$1], CC, [depcc="$CC" am_compiler_list=],
  7925. [$1], CXX, [depcc="$CXX" am_compiler_list=],
  7926. [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
  7927. [$1], UPC, [depcc="$UPC" am_compiler_list=],
  7928. [$1], GCJ, [depcc="$GCJ" am_compiler_list='gcc3 gcc'],
  7929. [depcc="$$1" am_compiler_list=])
  7930. AC_CACHE_CHECK([dependency style of $depcc],
  7931. [am_cv_$1_dependencies_compiler_type],
  7932. [if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  7933. # We make a subdir and do the tests there. Otherwise we can end up
  7934. # making bogus files that we don't know about and never remove. For
  7935. # instance it was reported that on HP-UX the gcc test will end up
  7936. # making a dummy file named `D' -- because `-MD' means `put the output
  7937. # in D'.
  7938. mkdir conftest.dir
  7939. # Copy depcomp to subdir because otherwise we won't find it if we're
  7940. # using a relative directory.
  7941. cp "$am_depcomp" conftest.dir
  7942. cd conftest.dir
  7943. # We will build objects and dependencies in a subdirectory because
  7944. # it helps to detect inapplicable dependency modes. For instance
  7945. # both Tru64's cc and ICC support -MD to output dependencies as a
  7946. # side effect of compilation, but ICC will put the dependencies in
  7947. # the current directory while Tru64 will put them in the object
  7948. # directory.
  7949. mkdir sub
  7950. am_cv_$1_dependencies_compiler_type=none
  7951. if test "$am_compiler_list" = ""; then
  7952. am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
  7953. fi
  7954. am__universal=false
  7955. m4_case([$1], [CC],
  7956. [case " $depcc " in #(
  7957. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  7958. esac],
  7959. [CXX],
  7960. [case " $depcc " in #(
  7961. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  7962. esac])
  7963. for depmode in $am_compiler_list; do
  7964. # Setup a source with many dependencies, because some compilers
  7965. # like to wrap large dependency lists on column 80 (with \), and
  7966. # we should not choose a depcomp mode which is confused by this.
  7967. #
  7968. # We need to recreate these files for each test, as the compiler may
  7969. # overwrite some of them when testing with obscure command lines.
  7970. # This happens at least with the AIX C compiler.
  7971. : > sub/conftest.c
  7972. for i in 1 2 3 4 5 6; do
  7973. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  7974. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  7975. # Solaris 8's {/usr,}/bin/sh.
  7976. touch sub/conftst$i.h
  7977. done
  7978. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  7979. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  7980. # mode. It turns out that the SunPro C++ compiler does not properly
  7981. # handle `-M -o', and we need to detect this. Also, some Intel
  7982. # versions had trouble with output in subdirs
  7983. am__obj=sub/conftest.${OBJEXT-o}
  7984. am__minus_obj="-o $am__obj"
  7985. case $depmode in
  7986. gcc)
  7987. # This depmode causes a compiler race in universal mode.
  7988. test "$am__universal" = false || continue
  7989. ;;
  7990. nosideeffect)
  7991. # after this tag, mechanisms are not by side-effect, so they'll
  7992. # only be used when explicitly requested
  7993. if test "x$enable_dependency_tracking" = xyes; then
  7994. continue
  7995. else
  7996. break
  7997. fi
  7998. ;;
  7999. msvisualcpp | msvcmsys)
  8000. # This compiler won't grok `-c -o', but also, the minuso test has
  8001. # not run yet. These depmodes are late enough in the game, and
  8002. # so weak that their functioning should not be impacted.
  8003. am__obj=conftest.${OBJEXT-o}
  8004. am__minus_obj=
  8005. ;;
  8006. none) break ;;
  8007. esac
  8008. if depmode=$depmode \
  8009. source=sub/conftest.c object=$am__obj \
  8010. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  8011. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  8012. >/dev/null 2>conftest.err &&
  8013. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  8014. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  8015. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  8016. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  8017. # icc doesn't choke on unknown options, it will just issue warnings
  8018. # or remarks (even with -Werror). So we grep stderr for any message
  8019. # that says an option was ignored or not supported.
  8020. # When given -MP, icc 7.0 and 7.1 complain thusly:
  8021. # icc: Command line warning: ignoring option '-M'; no argument required
  8022. # The diagnosis changed in icc 8.0:
  8023. # icc: Command line remark: option '-MP' not supported
  8024. if (grep 'ignoring option' conftest.err ||
  8025. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  8026. am_cv_$1_dependencies_compiler_type=$depmode
  8027. break
  8028. fi
  8029. fi
  8030. done
  8031. cd ..
  8032. rm -rf conftest.dir
  8033. else
  8034. am_cv_$1_dependencies_compiler_type=none
  8035. fi
  8036. ])
  8037. AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type])
  8038. AM_CONDITIONAL([am__fastdep$1], [
  8039. test "x$enable_dependency_tracking" != xno \
  8040. && test "$am_cv_$1_dependencies_compiler_type" = gcc3])
  8041. ])
  8042. # AM_SET_DEPDIR
  8043. # -------------
  8044. # Choose a directory name for dependency files.
  8045. # This macro is AC_REQUIREd in _AM_DEPENDENCIES
  8046. AC_DEFUN([AM_SET_DEPDIR],
  8047. [AC_REQUIRE([AM_SET_LEADING_DOT])dnl
  8048. AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl
  8049. ])
  8050. # AM_DEP_TRACK
  8051. # ------------
  8052. AC_DEFUN([AM_DEP_TRACK],
  8053. [AC_ARG_ENABLE(dependency-tracking,
  8054. [ --disable-dependency-tracking speeds up one-time build
  8055. --enable-dependency-tracking do not reject slow dependency extractors])
  8056. if test "x$enable_dependency_tracking" != xno; then
  8057. am_depcomp="$ac_aux_dir/depcomp"
  8058. AMDEPBACKSLASH='\'
  8059. fi
  8060. AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
  8061. AC_SUBST([AMDEPBACKSLASH])dnl
  8062. _AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl
  8063. ])
  8064. # Generate code to set up dependency tracking. -*- Autoconf -*-
  8065. # Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2008
  8066. # Free Software Foundation, Inc.
  8067. #
  8068. # This file is free software; the Free Software Foundation
  8069. # gives unlimited permission to copy and/or distribute it,
  8070. # with or without modifications, as long as this notice is preserved.
  8071. #serial 5
  8072. # _AM_OUTPUT_DEPENDENCY_COMMANDS
  8073. # ------------------------------
  8074. AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
  8075. [{
  8076. # Autoconf 2.62 quotes --file arguments for eval, but not when files
  8077. # are listed without --file. Let's play safe and only enable the eval
  8078. # if we detect the quoting.
  8079. case $CONFIG_FILES in
  8080. *\'*) eval set x "$CONFIG_FILES" ;;
  8081. *) set x $CONFIG_FILES ;;
  8082. esac
  8083. shift
  8084. for mf
  8085. do
  8086. # Strip MF so we end up with the name of the file.
  8087. mf=`echo "$mf" | sed -e 's/:.*$//'`
  8088. # Check whether this is an Automake generated Makefile or not.
  8089. # We used to match only the files named `Makefile.in', but
  8090. # some people rename them; so instead we look at the file content.
  8091. # Grep'ing the first line is not enough: some people post-process
  8092. # each Makefile.in and add a new line on top of each file to say so.
  8093. # Grep'ing the whole file is not good either: AIX grep has a line
  8094. # limit of 2048, but all sed's we know have understand at least 4000.
  8095. if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
  8096. dirpart=`AS_DIRNAME("$mf")`
  8097. else
  8098. continue
  8099. fi
  8100. # Extract the definition of DEPDIR, am__include, and am__quote
  8101. # from the Makefile without running `make'.
  8102. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  8103. test -z "$DEPDIR" && continue
  8104. am__include=`sed -n 's/^am__include = //p' < "$mf"`
  8105. test -z "am__include" && continue
  8106. am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  8107. # When using ansi2knr, U may be empty or an underscore; expand it
  8108. U=`sed -n 's/^U = //p' < "$mf"`
  8109. # Find all dependency output files, they are included files with
  8110. # $(DEPDIR) in their names. We invoke sed twice because it is the
  8111. # simplest approach to changing $(DEPDIR) to its actual value in the
  8112. # expansion.
  8113. for file in `sed -n "
  8114. s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  8115. sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
  8116. # Make sure the directory exists.
  8117. test -f "$dirpart/$file" && continue
  8118. fdir=`AS_DIRNAME(["$file"])`
  8119. AS_MKDIR_P([$dirpart/$fdir])
  8120. # echo "creating $dirpart/$file"
  8121. echo '# dummy' > "$dirpart/$file"
  8122. done
  8123. done
  8124. }
  8125. ])# _AM_OUTPUT_DEPENDENCY_COMMANDS
  8126. # AM_OUTPUT_DEPENDENCY_COMMANDS
  8127. # -----------------------------
  8128. # This macro should only be invoked once -- use via AC_REQUIRE.
  8129. #
  8130. # This code is only required when automatic dependency tracking
  8131. # is enabled. FIXME. This creates each `.P' file that we will
  8132. # need in order to bootstrap the dependency handling code.
  8133. AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
  8134. [AC_CONFIG_COMMANDS([depfiles],
  8135. [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS],
  8136. [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"])
  8137. ])
  8138. # Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005
  8139. # Free Software Foundation, Inc.
  8140. #
  8141. # This file is free software; the Free Software Foundation
  8142. # gives unlimited permission to copy and/or distribute it,
  8143. # with or without modifications, as long as this notice is preserved.
  8144. # serial 8
  8145. # AM_CONFIG_HEADER is obsolete. It has been replaced by AC_CONFIG_HEADERS.
  8146. AU_DEFUN([AM_CONFIG_HEADER], [AC_CONFIG_HEADERS($@)])
  8147. # Do all the work for Automake. -*- Autoconf -*-
  8148. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
  8149. # 2005, 2006, 2008, 2009 Free Software Foundation, Inc.
  8150. #
  8151. # This file is free software; the Free Software Foundation
  8152. # gives unlimited permission to copy and/or distribute it,
  8153. # with or without modifications, as long as this notice is preserved.
  8154. # serial 16
  8155. # This macro actually does too much. Some checks are only needed if
  8156. # your package does certain things. But this isn't really a big deal.
  8157. # AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
  8158. # AM_INIT_AUTOMAKE([OPTIONS])
  8159. # -----------------------------------------------
  8160. # The call with PACKAGE and VERSION arguments is the old style
  8161. # call (pre autoconf-2.50), which is being phased out. PACKAGE
  8162. # and VERSION should now be passed to AC_INIT and removed from
  8163. # the call to AM_INIT_AUTOMAKE.
  8164. # We support both call styles for the transition. After
  8165. # the next Automake release, Autoconf can make the AC_INIT
  8166. # arguments mandatory, and then we can depend on a new Autoconf
  8167. # release and drop the old call support.
  8168. AC_DEFUN([AM_INIT_AUTOMAKE],
  8169. [AC_PREREQ([2.62])dnl
  8170. dnl Autoconf wants to disallow AM_ names. We explicitly allow
  8171. dnl the ones we care about.
  8172. m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
  8173. AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
  8174. AC_REQUIRE([AC_PROG_INSTALL])dnl
  8175. if test "`cd $srcdir && pwd`" != "`pwd`"; then
  8176. # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  8177. # is not polluted with repeated "-I."
  8178. AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl
  8179. # test to see if srcdir already configured
  8180. if test -f $srcdir/config.status; then
  8181. AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
  8182. fi
  8183. fi
  8184. # test whether we have cygpath
  8185. if test -z "$CYGPATH_W"; then
  8186. if (cygpath --version) >/dev/null 2>/dev/null; then
  8187. CYGPATH_W='cygpath -w'
  8188. else
  8189. CYGPATH_W=echo
  8190. fi
  8191. fi
  8192. AC_SUBST([CYGPATH_W])
  8193. # Define the identity of the package.
  8194. dnl Distinguish between old-style and new-style calls.
  8195. m4_ifval([$2],
  8196. [m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
  8197. AC_SUBST([PACKAGE], [$1])dnl
  8198. AC_SUBST([VERSION], [$2])],
  8199. [_AM_SET_OPTIONS([$1])dnl
  8200. dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT.
  8201. m4_if(m4_ifdef([AC_PACKAGE_NAME], 1)m4_ifdef([AC_PACKAGE_VERSION], 1), 11,,
  8202. [m4_fatal([AC_INIT should be called with package and version arguments])])dnl
  8203. AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
  8204. AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
  8205. _AM_IF_OPTION([no-define],,
  8206. [AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
  8207. AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl
  8208. # Some tools Automake needs.
  8209. AC_REQUIRE([AM_SANITY_CHECK])dnl
  8210. AC_REQUIRE([AC_ARG_PROGRAM])dnl
  8211. AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version})
  8212. AM_MISSING_PROG(AUTOCONF, autoconf)
  8213. AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version})
  8214. AM_MISSING_PROG(AUTOHEADER, autoheader)
  8215. AM_MISSING_PROG(MAKEINFO, makeinfo)
  8216. AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
  8217. AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl
  8218. AC_REQUIRE([AM_PROG_MKDIR_P])dnl
  8219. # We need awk for the "check" target. The system "awk" is bad on
  8220. # some platforms.
  8221. AC_REQUIRE([AC_PROG_AWK])dnl
  8222. AC_REQUIRE([AC_PROG_MAKE_SET])dnl
  8223. AC_REQUIRE([AM_SET_LEADING_DOT])dnl
  8224. _AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])],
  8225. [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
  8226. [_AM_PROG_TAR([v7])])])
  8227. _AM_IF_OPTION([no-dependencies],,
  8228. [AC_PROVIDE_IFELSE([AC_PROG_CC],
  8229. [_AM_DEPENDENCIES(CC)],
  8230. [define([AC_PROG_CC],
  8231. defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl
  8232. AC_PROVIDE_IFELSE([AC_PROG_CXX],
  8233. [_AM_DEPENDENCIES(CXX)],
  8234. [define([AC_PROG_CXX],
  8235. defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
  8236. AC_PROVIDE_IFELSE([AC_PROG_OBJC],
  8237. [_AM_DEPENDENCIES(OBJC)],
  8238. [define([AC_PROG_OBJC],
  8239. defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl
  8240. ])
  8241. _AM_IF_OPTION([silent-rules], [AC_REQUIRE([AM_SILENT_RULES])])dnl
  8242. dnl The `parallel-tests' driver may need to know about EXEEXT, so add the
  8243. dnl `am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen. This macro
  8244. dnl is hooked onto _AC_COMPILER_EXEEXT early, see below.
  8245. AC_CONFIG_COMMANDS_PRE(dnl
  8246. [m4_provide_if([_AM_COMPILER_EXEEXT],
  8247. [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl
  8248. ])
  8249. dnl Hook into `_AC_COMPILER_EXEEXT' early to learn its expansion. Do not
  8250. dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further
  8251. dnl mangled by Autoconf and run in a shell conditional statement.
  8252. m4_define([_AC_COMPILER_EXEEXT],
  8253. m4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])])
  8254. # When config.status generates a header, we must update the stamp-h file.
  8255. # This file resides in the same directory as the config header
  8256. # that is generated. The stamp files are numbered to have different names.
  8257. # Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the
  8258. # loop where config.status creates the headers, so we can generate
  8259. # our stamp files there.
  8260. AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
  8261. [# Compute $1's index in $config_headers.
  8262. _am_arg=$1
  8263. _am_stamp_count=1
  8264. for _am_header in $config_headers :; do
  8265. case $_am_header in
  8266. $_am_arg | $_am_arg:* )
  8267. break ;;
  8268. * )
  8269. _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  8270. esac
  8271. done
  8272. echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count])
  8273. # Copyright (C) 2001, 2003, 2005, 2008 Free Software Foundation, Inc.
  8274. #
  8275. # This file is free software; the Free Software Foundation
  8276. # gives unlimited permission to copy and/or distribute it,
  8277. # with or without modifications, as long as this notice is preserved.
  8278. # AM_PROG_INSTALL_SH
  8279. # ------------------
  8280. # Define $install_sh.
  8281. AC_DEFUN([AM_PROG_INSTALL_SH],
  8282. [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
  8283. if test x"${install_sh}" != xset; then
  8284. case $am_aux_dir in
  8285. *\ * | *\ *)
  8286. install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
  8287. *)
  8288. install_sh="\${SHELL} $am_aux_dir/install-sh"
  8289. esac
  8290. fi
  8291. AC_SUBST(install_sh)])
  8292. # Copyright (C) 2003, 2005 Free Software Foundation, Inc.
  8293. #
  8294. # This file is free software; the Free Software Foundation
  8295. # gives unlimited permission to copy and/or distribute it,
  8296. # with or without modifications, as long as this notice is preserved.
  8297. # serial 2
  8298. # Check whether the underlying file-system supports filenames
  8299. # with a leading dot. For instance MS-DOS doesn't.
  8300. AC_DEFUN([AM_SET_LEADING_DOT],
  8301. [rm -rf .tst 2>/dev/null
  8302. mkdir .tst 2>/dev/null
  8303. if test -d .tst; then
  8304. am__leading_dot=.
  8305. else
  8306. am__leading_dot=_
  8307. fi
  8308. rmdir .tst 2>/dev/null
  8309. AC_SUBST([am__leading_dot])])
  8310. # Add --enable-maintainer-mode option to configure. -*- Autoconf -*-
  8311. # From Jim Meyering
  8312. # Copyright (C) 1996, 1998, 2000, 2001, 2002, 2003, 2004, 2005, 2008
  8313. # Free Software Foundation, Inc.
  8314. #
  8315. # This file is free software; the Free Software Foundation
  8316. # gives unlimited permission to copy and/or distribute it,
  8317. # with or without modifications, as long as this notice is preserved.
  8318. # serial 5
  8319. # AM_MAINTAINER_MODE([DEFAULT-MODE])
  8320. # ----------------------------------
  8321. # Control maintainer-specific portions of Makefiles.
  8322. # Default is to disable them, unless `enable' is passed literally.
  8323. # For symmetry, `disable' may be passed as well. Anyway, the user
  8324. # can override the default with the --enable/--disable switch.
  8325. AC_DEFUN([AM_MAINTAINER_MODE],
  8326. [m4_case(m4_default([$1], [disable]),
  8327. [enable], [m4_define([am_maintainer_other], [disable])],
  8328. [disable], [m4_define([am_maintainer_other], [enable])],
  8329. [m4_define([am_maintainer_other], [enable])
  8330. m4_warn([syntax], [unexpected argument to AM@&t@_MAINTAINER_MODE: $1])])
  8331. AC_MSG_CHECKING([whether to am_maintainer_other maintainer-specific portions of Makefiles])
  8332. dnl maintainer-mode's default is 'disable' unless 'enable' is passed
  8333. AC_ARG_ENABLE([maintainer-mode],
  8334. [ --][am_maintainer_other][-maintainer-mode am_maintainer_other make rules and dependencies not useful
  8335. (and sometimes confusing) to the casual installer],
  8336. [USE_MAINTAINER_MODE=$enableval],
  8337. [USE_MAINTAINER_MODE=]m4_if(am_maintainer_other, [enable], [no], [yes]))
  8338. AC_MSG_RESULT([$USE_MAINTAINER_MODE])
  8339. AM_CONDITIONAL([MAINTAINER_MODE], [test $USE_MAINTAINER_MODE = yes])
  8340. MAINT=$MAINTAINER_MODE_TRUE
  8341. AC_SUBST([MAINT])dnl
  8342. ]
  8343. )
  8344. AU_DEFUN([jm_MAINTAINER_MODE], [AM_MAINTAINER_MODE])
  8345. # Check to see how 'make' treats includes. -*- Autoconf -*-
  8346. # Copyright (C) 2001, 2002, 2003, 2005, 2009 Free Software Foundation, Inc.
  8347. #
  8348. # This file is free software; the Free Software Foundation
  8349. # gives unlimited permission to copy and/or distribute it,
  8350. # with or without modifications, as long as this notice is preserved.
  8351. # serial 4
  8352. # AM_MAKE_INCLUDE()
  8353. # -----------------
  8354. # Check to see how make treats includes.
  8355. AC_DEFUN([AM_MAKE_INCLUDE],
  8356. [am_make=${MAKE-make}
  8357. cat > confinc << 'END'
  8358. am__doit:
  8359. @echo this is the am__doit target
  8360. .PHONY: am__doit
  8361. END
  8362. # If we don't find an include directive, just comment out the code.
  8363. AC_MSG_CHECKING([for style of include used by $am_make])
  8364. am__include="#"
  8365. am__quote=
  8366. _am_result=none
  8367. # First try GNU make style include.
  8368. echo "include confinc" > confmf
  8369. # Ignore all kinds of additional output from `make'.
  8370. case `$am_make -s -f confmf 2> /dev/null` in #(
  8371. *the\ am__doit\ target*)
  8372. am__include=include
  8373. am__quote=
  8374. _am_result=GNU
  8375. ;;
  8376. esac
  8377. # Now try BSD make style include.
  8378. if test "$am__include" = "#"; then
  8379. echo '.include "confinc"' > confmf
  8380. case `$am_make -s -f confmf 2> /dev/null` in #(
  8381. *the\ am__doit\ target*)
  8382. am__include=.include
  8383. am__quote="\""
  8384. _am_result=BSD
  8385. ;;
  8386. esac
  8387. fi
  8388. AC_SUBST([am__include])
  8389. AC_SUBST([am__quote])
  8390. AC_MSG_RESULT([$_am_result])
  8391. rm -f confinc confmf
  8392. ])
  8393. # Fake the existence of programs that GNU maintainers use. -*- Autoconf -*-
  8394. # Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005, 2008
  8395. # Free Software Foundation, Inc.
  8396. #
  8397. # This file is free software; the Free Software Foundation
  8398. # gives unlimited permission to copy and/or distribute it,
  8399. # with or without modifications, as long as this notice is preserved.
  8400. # serial 6
  8401. # AM_MISSING_PROG(NAME, PROGRAM)
  8402. # ------------------------------
  8403. AC_DEFUN([AM_MISSING_PROG],
  8404. [AC_REQUIRE([AM_MISSING_HAS_RUN])
  8405. $1=${$1-"${am_missing_run}$2"}
  8406. AC_SUBST($1)])
  8407. # AM_MISSING_HAS_RUN
  8408. # ------------------
  8409. # Define MISSING if not defined so far and test if it supports --run.
  8410. # If it does, set am_missing_run to use it, otherwise, to nothing.
  8411. AC_DEFUN([AM_MISSING_HAS_RUN],
  8412. [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
  8413. AC_REQUIRE_AUX_FILE([missing])dnl
  8414. if test x"${MISSING+set}" != xset; then
  8415. case $am_aux_dir in
  8416. *\ * | *\ *)
  8417. MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
  8418. *)
  8419. MISSING="\${SHELL} $am_aux_dir/missing" ;;
  8420. esac
  8421. fi
  8422. # Use eval to expand $SHELL
  8423. if eval "$MISSING --run true"; then
  8424. am_missing_run="$MISSING --run "
  8425. else
  8426. am_missing_run=
  8427. AC_MSG_WARN([`missing' script is too old or missing])
  8428. fi
  8429. ])
  8430. # Copyright (C) 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
  8431. #
  8432. # This file is free software; the Free Software Foundation
  8433. # gives unlimited permission to copy and/or distribute it,
  8434. # with or without modifications, as long as this notice is preserved.
  8435. # AM_PROG_MKDIR_P
  8436. # ---------------
  8437. # Check for `mkdir -p'.
  8438. AC_DEFUN([AM_PROG_MKDIR_P],
  8439. [AC_PREREQ([2.60])dnl
  8440. AC_REQUIRE([AC_PROG_MKDIR_P])dnl
  8441. dnl Automake 1.8 to 1.9.6 used to define mkdir_p. We now use MKDIR_P,
  8442. dnl while keeping a definition of mkdir_p for backward compatibility.
  8443. dnl @MKDIR_P@ is magic: AC_OUTPUT adjusts its value for each Makefile.
  8444. dnl However we cannot define mkdir_p as $(MKDIR_P) for the sake of
  8445. dnl Makefile.ins that do not define MKDIR_P, so we do our own
  8446. dnl adjustment using top_builddir (which is defined more often than
  8447. dnl MKDIR_P).
  8448. AC_SUBST([mkdir_p], ["$MKDIR_P"])dnl
  8449. case $mkdir_p in
  8450. [[\\/$]]* | ?:[[\\/]]*) ;;
  8451. */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
  8452. esac
  8453. ])
  8454. # Helper functions for option handling. -*- Autoconf -*-
  8455. # Copyright (C) 2001, 2002, 2003, 2005, 2008 Free Software Foundation, Inc.
  8456. #
  8457. # This file is free software; the Free Software Foundation
  8458. # gives unlimited permission to copy and/or distribute it,
  8459. # with or without modifications, as long as this notice is preserved.
  8460. # serial 4
  8461. # _AM_MANGLE_OPTION(NAME)
  8462. # -----------------------
  8463. AC_DEFUN([_AM_MANGLE_OPTION],
  8464. [[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
  8465. # _AM_SET_OPTION(NAME)
  8466. # ------------------------------
  8467. # Set option NAME. Presently that only means defining a flag for this option.
  8468. AC_DEFUN([_AM_SET_OPTION],
  8469. [m4_define(_AM_MANGLE_OPTION([$1]), 1)])
  8470. # _AM_SET_OPTIONS(OPTIONS)
  8471. # ----------------------------------
  8472. # OPTIONS is a space-separated list of Automake options.
  8473. AC_DEFUN([_AM_SET_OPTIONS],
  8474. [m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
  8475. # _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
  8476. # -------------------------------------------
  8477. # Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
  8478. AC_DEFUN([_AM_IF_OPTION],
  8479. [m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
  8480. # Check to make sure that the build environment is sane. -*- Autoconf -*-
  8481. # Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005, 2008
  8482. # Free Software Foundation, Inc.
  8483. #
  8484. # This file is free software; the Free Software Foundation
  8485. # gives unlimited permission to copy and/or distribute it,
  8486. # with or without modifications, as long as this notice is preserved.
  8487. # serial 5
  8488. # AM_SANITY_CHECK
  8489. # ---------------
  8490. AC_DEFUN([AM_SANITY_CHECK],
  8491. [AC_MSG_CHECKING([whether build environment is sane])
  8492. # Just in case
  8493. sleep 1
  8494. echo timestamp > conftest.file
  8495. # Reject unsafe characters in $srcdir or the absolute working directory
  8496. # name. Accept space and tab only in the latter.
  8497. am_lf='
  8498. '
  8499. case `pwd` in
  8500. *[[\\\"\#\$\&\'\`$am_lf]]*)
  8501. AC_MSG_ERROR([unsafe absolute working directory name]);;
  8502. esac
  8503. case $srcdir in
  8504. *[[\\\"\#\$\&\'\`$am_lf\ \ ]]*)
  8505. AC_MSG_ERROR([unsafe srcdir value: `$srcdir']);;
  8506. esac
  8507. # Do `set' in a subshell so we don't clobber the current shell's
  8508. # arguments. Must try -L first in case configure is actually a
  8509. # symlink; some systems play weird games with the mod time of symlinks
  8510. # (eg FreeBSD returns the mod time of the symlink's containing
  8511. # directory).
  8512. if (
  8513. set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
  8514. if test "$[*]" = "X"; then
  8515. # -L didn't work.
  8516. set X `ls -t "$srcdir/configure" conftest.file`
  8517. fi
  8518. rm -f conftest.file
  8519. if test "$[*]" != "X $srcdir/configure conftest.file" \
  8520. && test "$[*]" != "X conftest.file $srcdir/configure"; then
  8521. # If neither matched, then we have a broken ls. This can happen
  8522. # if, for instance, CONFIG_SHELL is bash and it inherits a
  8523. # broken ls alias from the environment. This has actually
  8524. # happened. Such a system could not be considered "sane".
  8525. AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken
  8526. alias in your environment])
  8527. fi
  8528. test "$[2]" = conftest.file
  8529. )
  8530. then
  8531. # Ok.
  8532. :
  8533. else
  8534. AC_MSG_ERROR([newly created file is older than distributed files!
  8535. Check your system clock])
  8536. fi
  8537. AC_MSG_RESULT(yes)])
  8538. # Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
  8539. #
  8540. # This file is free software; the Free Software Foundation
  8541. # gives unlimited permission to copy and/or distribute it,
  8542. # with or without modifications, as long as this notice is preserved.
  8543. # AM_PROG_INSTALL_STRIP
  8544. # ---------------------
  8545. # One issue with vendor `install' (even GNU) is that you can't
  8546. # specify the program used to strip binaries. This is especially
  8547. # annoying in cross-compiling environments, where the build's strip
  8548. # is unlikely to handle the host's binaries.
  8549. # Fortunately install-sh will honor a STRIPPROG variable, so we
  8550. # always use install-sh in `make install-strip', and initialize
  8551. # STRIPPROG with the value of the STRIP variable (set by the user).
  8552. AC_DEFUN([AM_PROG_INSTALL_STRIP],
  8553. [AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
  8554. # Installed binaries are usually stripped using `strip' when the user
  8555. # run `make install-strip'. However `strip' might not be the right
  8556. # tool to use in cross-compilation environments, therefore Automake
  8557. # will honor the `STRIP' environment variable to overrule this program.
  8558. dnl Don't test for $cross_compiling = yes, because it might be `maybe'.
  8559. if test "$cross_compiling" != no; then
  8560. AC_CHECK_TOOL([STRIP], [strip], :)
  8561. fi
  8562. INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  8563. AC_SUBST([INSTALL_STRIP_PROGRAM])])
  8564. # Copyright (C) 2006, 2008 Free Software Foundation, Inc.
  8565. #
  8566. # This file is free software; the Free Software Foundation
  8567. # gives unlimited permission to copy and/or distribute it,
  8568. # with or without modifications, as long as this notice is preserved.
  8569. # serial 2
  8570. # _AM_SUBST_NOTMAKE(VARIABLE)
  8571. # ---------------------------
  8572. # Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in.
  8573. # This macro is traced by Automake.
  8574. AC_DEFUN([_AM_SUBST_NOTMAKE])
  8575. # AM_SUBST_NOTMAKE(VARIABLE)
  8576. # ---------------------------
  8577. # Public sister of _AM_SUBST_NOTMAKE.
  8578. AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)])
  8579. # Check how to create a tarball. -*- Autoconf -*-
  8580. # Copyright (C) 2004, 2005 Free Software Foundation, Inc.
  8581. #
  8582. # This file is free software; the Free Software Foundation
  8583. # gives unlimited permission to copy and/or distribute it,
  8584. # with or without modifications, as long as this notice is preserved.
  8585. # serial 2
  8586. # _AM_PROG_TAR(FORMAT)
  8587. # --------------------
  8588. # Check how to create a tarball in format FORMAT.
  8589. # FORMAT should be one of `v7', `ustar', or `pax'.
  8590. #
  8591. # Substitute a variable $(am__tar) that is a command
  8592. # writing to stdout a FORMAT-tarball containing the directory
  8593. # $tardir.
  8594. # tardir=directory && $(am__tar) > result.tar
  8595. #
  8596. # Substitute a variable $(am__untar) that extract such
  8597. # a tarball read from stdin.
  8598. # $(am__untar) < result.tar
  8599. AC_DEFUN([_AM_PROG_TAR],
  8600. [# Always define AMTAR for backward compatibility.
  8601. AM_MISSING_PROG([AMTAR], [tar])
  8602. m4_if([$1], [v7],
  8603. [am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'],
  8604. [m4_case([$1], [ustar],, [pax],,
  8605. [m4_fatal([Unknown tar format])])
  8606. AC_MSG_CHECKING([how to create a $1 tar archive])
  8607. # Loop over all known methods to create a tar archive until one works.
  8608. _am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
  8609. _am_tools=${am_cv_prog_tar_$1-$_am_tools}
  8610. # Do not fold the above two line into one, because Tru64 sh and
  8611. # Solaris sh will not grok spaces in the rhs of `-'.
  8612. for _am_tool in $_am_tools
  8613. do
  8614. case $_am_tool in
  8615. gnutar)
  8616. for _am_tar in tar gnutar gtar;
  8617. do
  8618. AM_RUN_LOG([$_am_tar --version]) && break
  8619. done
  8620. am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"'
  8621. am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'
  8622. am__untar="$_am_tar -xf -"
  8623. ;;
  8624. plaintar)
  8625. # Must skip GNU tar: if it does not support --format= it doesn't create
  8626. # ustar tarball either.
  8627. (tar --version) >/dev/null 2>&1 && continue
  8628. am__tar='tar chf - "$$tardir"'
  8629. am__tar_='tar chf - "$tardir"'
  8630. am__untar='tar xf -'
  8631. ;;
  8632. pax)
  8633. am__tar='pax -L -x $1 -w "$$tardir"'
  8634. am__tar_='pax -L -x $1 -w "$tardir"'
  8635. am__untar='pax -r'
  8636. ;;
  8637. cpio)
  8638. am__tar='find "$$tardir" -print | cpio -o -H $1 -L'
  8639. am__tar_='find "$tardir" -print | cpio -o -H $1 -L'
  8640. am__untar='cpio -i -H $1 -d'
  8641. ;;
  8642. none)
  8643. am__tar=false
  8644. am__tar_=false
  8645. am__untar=false
  8646. ;;
  8647. esac
  8648. # If the value was cached, stop now. We just wanted to have am__tar
  8649. # and am__untar set.
  8650. test -n "${am_cv_prog_tar_$1}" && break
  8651. # tar/untar a dummy directory, and stop if the command works
  8652. rm -rf conftest.dir
  8653. mkdir conftest.dir
  8654. echo GrepMe > conftest.dir/file
  8655. AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])
  8656. rm -rf conftest.dir
  8657. if test -s conftest.tar; then
  8658. AM_RUN_LOG([$am__untar <conftest.tar])
  8659. grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
  8660. fi
  8661. done
  8662. rm -rf conftest.dir
  8663. AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
  8664. AC_MSG_RESULT([$am_cv_prog_tar_$1])])
  8665. AC_SUBST([am__tar])
  8666. AC_SUBST([am__untar])
  8667. ]) # _AM_PROG_TAR
  8668. m4_include([acinclude.m4])