aclocal.m4 402 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206
  1. # generated automatically by aclocal 1.15 -*- Autoconf -*-
  2. # Copyright (C) 1996-2014 Free Software Foundation, Inc.
  3. # This file is free software; the Free Software Foundation
  4. # gives unlimited permission to copy and/or distribute it,
  5. # with or without modifications, as long as this notice is preserved.
  6. # This program is distributed in the hope that it will be useful,
  7. # but WITHOUT ANY WARRANTY, to the extent permitted by law; without
  8. # even the implied warranty of MERCHANTABILITY or FITNESS FOR A
  9. # PARTICULAR PURPOSE.
  10. m4_ifndef([AC_CONFIG_MACRO_DIRS], [m4_defun([_AM_CONFIG_MACRO_DIRS], [])m4_defun([AC_CONFIG_MACRO_DIRS], [_AM_CONFIG_MACRO_DIRS($@)])])
  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.69],,
  14. [m4_warning([this file was generated for autoconf 2.69.
  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. *-*-openbsd*)
  242. CATOBJEXT=.mo
  243. DATADIRNAME=share
  244. ;;
  245. *)
  246. CATOBJEXT=.mo
  247. DATADIRNAME=lib
  248. ;;
  249. esac])
  250. LIBS="$glib_save_LIBS"
  251. INSTOBJEXT=.mo
  252. else
  253. gt_cv_have_gettext=no
  254. fi
  255. fi
  256. ])
  257. if test "$gt_cv_have_gettext" = "yes" ; then
  258. AC_DEFINE(ENABLE_NLS, 1,
  259. [always defined to indicate that i18n is enabled])
  260. fi
  261. dnl Test whether we really found GNU xgettext.
  262. if test "$XGETTEXT" != ":"; then
  263. dnl If it is not GNU xgettext we define it as : so that the
  264. dnl Makefiles still can work.
  265. if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
  266. : ;
  267. else
  268. AC_MSG_RESULT(
  269. [found xgettext program is not GNU xgettext; ignore it])
  270. XGETTEXT=":"
  271. fi
  272. fi
  273. # We need to process the po/ directory.
  274. POSUB=po
  275. AC_OUTPUT_COMMANDS(
  276. [case "$CONFIG_FILES" in *po/Makefile.in*)
  277. sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile
  278. esac])
  279. dnl These rules are solely for the distribution goal. While doing this
  280. dnl we only have to keep exactly one list of the available catalogs
  281. dnl in configure.ac.
  282. for lang in $ALL_LINGUAS; do
  283. GMOFILES="$GMOFILES $lang.gmo"
  284. POFILES="$POFILES $lang.po"
  285. done
  286. dnl Make all variables we use known to autoconf.
  287. AC_SUBST(CATALOGS)
  288. AC_SUBST(CATOBJEXT)
  289. AC_SUBST(DATADIRNAME)
  290. AC_SUBST(GMOFILES)
  291. AC_SUBST(INSTOBJEXT)
  292. AC_SUBST(INTLLIBS)
  293. AC_SUBST(PO_IN_DATADIR_TRUE)
  294. AC_SUBST(PO_IN_DATADIR_FALSE)
  295. AC_SUBST(POFILES)
  296. AC_SUBST(POSUB)
  297. ])
  298. # AM_GLIB_GNU_GETTEXT
  299. # -------------------
  300. # Do checks necessary for use of gettext. If a suitable implementation
  301. # of gettext is found in either in libintl or in the C library,
  302. # it will set INTLLIBS to the libraries needed for use of gettext
  303. # and AC_DEFINE() HAVE_GETTEXT and ENABLE_NLS. (The shell variable
  304. # gt_cv_have_gettext will be set to "yes".) It will also call AC_SUBST()
  305. # on various variables needed by the Makefile.in.in installed by
  306. # glib-gettextize.
  307. dnl
  308. AU_DEFUN([GLIB_GNU_GETTEXT],
  309. [AC_REQUIRE([AC_PROG_CC])dnl
  310. GLIB_LC_MESSAGES
  311. GLIB_WITH_NLS
  312. if test "$gt_cv_have_gettext" = "yes"; then
  313. if test "x$ALL_LINGUAS" = "x"; then
  314. LINGUAS=
  315. else
  316. AC_MSG_CHECKING(for catalogs to be installed)
  317. NEW_LINGUAS=
  318. for presentlang in $ALL_LINGUAS; do
  319. useit=no
  320. if test "%UNSET%" != "${LINGUAS-%UNSET%}"; then
  321. desiredlanguages="$LINGUAS"
  322. else
  323. desiredlanguages="$ALL_LINGUAS"
  324. fi
  325. for desiredlang in $desiredlanguages; do
  326. # Use the presentlang catalog if desiredlang is
  327. # a. equal to presentlang, or
  328. # b. a variant of presentlang (because in this case,
  329. # presentlang can be used as a fallback for messages
  330. # which are not translated in the desiredlang catalog).
  331. case "$desiredlang" in
  332. "$presentlang"*) useit=yes;;
  333. esac
  334. done
  335. if test $useit = yes; then
  336. NEW_LINGUAS="$NEW_LINGUAS $presentlang"
  337. fi
  338. done
  339. LINGUAS=$NEW_LINGUAS
  340. AC_MSG_RESULT($LINGUAS)
  341. fi
  342. dnl Construct list of names of catalog files to be constructed.
  343. if test -n "$LINGUAS"; then
  344. for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
  345. fi
  346. fi
  347. dnl If the AC_CONFIG_AUX_DIR macro for autoconf is used we possibly
  348. dnl find the mkinstalldirs script in another subdir but ($top_srcdir).
  349. dnl Try to locate is.
  350. MKINSTALLDIRS=
  351. if test -n "$ac_aux_dir"; then
  352. MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
  353. fi
  354. if test -z "$MKINSTALLDIRS"; then
  355. MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
  356. fi
  357. AC_SUBST(MKINSTALLDIRS)
  358. dnl Generate list of files to be processed by xgettext which will
  359. dnl be included in po/Makefile.
  360. test -d po || mkdir po
  361. if test "x$srcdir" != "x."; then
  362. if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
  363. posrcprefix="$srcdir/"
  364. else
  365. posrcprefix="../$srcdir/"
  366. fi
  367. else
  368. posrcprefix="../"
  369. fi
  370. rm -f po/POTFILES
  371. sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
  372. < $srcdir/po/POTFILES.in > po/POTFILES
  373. ],
  374. [[$0: This macro is deprecated. You should use upstream gettext instead.]])
  375. # AM_GLIB_DEFINE_LOCALEDIR(VARIABLE)
  376. # -------------------------------
  377. # Define VARIABLE to the location where catalog files will
  378. # be installed by po/Makefile.
  379. glib_DEFUN([GLIB_DEFINE_LOCALEDIR],
  380. [glib_REQUIRE([GLIB_GNU_GETTEXT])dnl
  381. glib_save_prefix="$prefix"
  382. glib_save_exec_prefix="$exec_prefix"
  383. glib_save_datarootdir="$datarootdir"
  384. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  385. test "x$exec_prefix" = xNONE && exec_prefix=$prefix
  386. datarootdir=`eval echo "${datarootdir}"`
  387. if test "x$CATOBJEXT" = "x.mo" ; then
  388. localedir=`eval echo "${libdir}/locale"`
  389. else
  390. localedir=`eval echo "${datadir}/locale"`
  391. fi
  392. prefix="$glib_save_prefix"
  393. exec_prefix="$glib_save_exec_prefix"
  394. datarootdir="$glib_save_datarootdir"
  395. AC_DEFINE_UNQUOTED($1, "$localedir",
  396. [Define the location where the catalogs will be installed])
  397. ])
  398. dnl
  399. dnl Now the definitions that aclocal will find
  400. dnl
  401. ifdef(glib_configure_ac,[],[
  402. AC_DEFUN([AM_GLIB_GNU_GETTEXT],[GLIB_GNU_GETTEXT($@)])
  403. AC_DEFUN([AM_GLIB_DEFINE_LOCALEDIR],[GLIB_DEFINE_LOCALEDIR($@)])
  404. ])dnl
  405. # GLIB_RUN_PROG(PROGRAM, TEST-FILE, [ACTION-IF-PASS], [ACTION-IF-FAIL])
  406. #
  407. # Create a temporary file with TEST-FILE as its contents and pass the
  408. # file name to PROGRAM. Perform ACTION-IF-PASS if PROGRAM exits with
  409. # 0 and perform ACTION-IF-FAIL for any other exit status.
  410. AC_DEFUN([GLIB_RUN_PROG],
  411. [cat >conftest.foo <<_ACEOF
  412. $2
  413. _ACEOF
  414. if AC_RUN_LOG([$1 conftest.foo]); then
  415. m4_ifval([$3], [$3], [:])
  416. m4_ifvaln([$4], [else $4])dnl
  417. echo "$as_me: failed input was:" >&AS_MESSAGE_LOG_FD
  418. sed 's/^/| /' conftest.foo >&AS_MESSAGE_LOG_FD
  419. fi])
  420. dnl -*- mode: autoconf -*-
  421. # serial 2
  422. dnl Usage:
  423. dnl GTK_DOC_CHECK([minimum-gtk-doc-version])
  424. AC_DEFUN([GTK_DOC_CHECK],
  425. [
  426. AC_REQUIRE([PKG_PROG_PKG_CONFIG])
  427. AC_BEFORE([AC_PROG_LIBTOOL],[$0])dnl setup libtool first
  428. AC_BEFORE([AM_PROG_LIBTOOL],[$0])dnl setup libtool first
  429. ifelse([$1],[],[gtk_doc_requires="gtk-doc"],[gtk_doc_requires="gtk-doc >= $1"])
  430. AC_MSG_CHECKING([for gtk-doc])
  431. PKG_CHECK_EXISTS([$gtk_doc_requires],[have_gtk_doc=yes],[have_gtk_doc=no])
  432. AC_MSG_RESULT($have_gtk_doc)
  433. if test "$have_gtk_doc" = "no"; then
  434. AC_MSG_WARN([
  435. You will not be able to create source packages with 'make dist'
  436. because $gtk_doc_requires is not found.])
  437. fi
  438. dnl check for tools we added during development
  439. dnl Use AC_CHECK_PROG to avoid the check target using an absolute path that
  440. dnl may not be writable by the user. Currently, automake requires that the
  441. dnl test name must end in '.test'.
  442. dnl https://bugzilla.gnome.org/show_bug.cgi?id=701638
  443. AC_CHECK_PROG([GTKDOC_CHECK],[gtkdoc-check],[gtkdoc-check.test])
  444. AC_PATH_PROG([GTKDOC_CHECK_PATH],[gtkdoc-check])
  445. AC_PATH_PROGS([GTKDOC_REBASE],[gtkdoc-rebase],[true])
  446. AC_PATH_PROG([GTKDOC_MKPDF],[gtkdoc-mkpdf])
  447. dnl for overriding the documentation installation directory
  448. AC_ARG_WITH([html-dir],
  449. AS_HELP_STRING([--with-html-dir=PATH], [path to installed docs]),,
  450. [with_html_dir='${datadir}/gtk-doc/html'])
  451. HTML_DIR="$with_html_dir"
  452. AC_SUBST([HTML_DIR])
  453. dnl enable/disable documentation building
  454. AC_ARG_ENABLE([gtk-doc],
  455. AS_HELP_STRING([--enable-gtk-doc],
  456. [use gtk-doc to build documentation [[default=no]]]),,
  457. [enable_gtk_doc=no])
  458. AC_MSG_CHECKING([whether to build gtk-doc documentation])
  459. AC_MSG_RESULT($enable_gtk_doc)
  460. if test "x$enable_gtk_doc" = "xyes" && test "$have_gtk_doc" = "no"; then
  461. AC_MSG_ERROR([
  462. You must have $gtk_doc_requires installed to build documentation for
  463. $PACKAGE_NAME. Please install gtk-doc or disable building the
  464. documentation by adding '--disable-gtk-doc' to '[$]0'.])
  465. fi
  466. dnl don't check for glib if we build glib
  467. if test "x$PACKAGE_NAME" != "xglib"; then
  468. dnl don't fail if someone does not have glib
  469. PKG_CHECK_MODULES(GTKDOC_DEPS, glib-2.0 >= 2.10.0 gobject-2.0 >= 2.10.0,,[:])
  470. fi
  471. dnl enable/disable output formats
  472. AC_ARG_ENABLE([gtk-doc-html],
  473. AS_HELP_STRING([--enable-gtk-doc-html],
  474. [build documentation in html format [[default=yes]]]),,
  475. [enable_gtk_doc_html=yes])
  476. AC_ARG_ENABLE([gtk-doc-pdf],
  477. AS_HELP_STRING([--enable-gtk-doc-pdf],
  478. [build documentation in pdf format [[default=no]]]),,
  479. [enable_gtk_doc_pdf=no])
  480. if test -z "$GTKDOC_MKPDF"; then
  481. enable_gtk_doc_pdf=no
  482. fi
  483. if test -z "$AM_DEFAULT_VERBOSITY"; then
  484. AM_DEFAULT_VERBOSITY=1
  485. fi
  486. AC_SUBST([AM_DEFAULT_VERBOSITY])
  487. AM_CONDITIONAL([HAVE_GTK_DOC], [test x$have_gtk_doc = xyes])
  488. AM_CONDITIONAL([ENABLE_GTK_DOC], [test x$enable_gtk_doc = xyes])
  489. AM_CONDITIONAL([GTK_DOC_BUILD_HTML], [test x$enable_gtk_doc_html = xyes])
  490. AM_CONDITIONAL([GTK_DOC_BUILD_PDF], [test x$enable_gtk_doc_pdf = xyes])
  491. AM_CONDITIONAL([GTK_DOC_USE_LIBTOOL], [test -n "$LIBTOOL"])
  492. AM_CONDITIONAL([GTK_DOC_USE_REBASE], [test -n "$GTKDOC_REBASE"])
  493. ])
  494. dnl IT_PROG_INTLTOOL([MINIMUM-VERSION], [no-xml])
  495. # serial 42 IT_PROG_INTLTOOL
  496. AC_DEFUN([IT_PROG_INTLTOOL], [
  497. AC_PREREQ([2.50])dnl
  498. AC_REQUIRE([AM_NLS])dnl
  499. case "$am__api_version" in
  500. 1.[01234])
  501. AC_MSG_ERROR([Automake 1.5 or newer is required to use intltool])
  502. ;;
  503. *)
  504. ;;
  505. esac
  506. INTLTOOL_REQUIRED_VERSION_AS_INT=`echo $1 | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'`
  507. INTLTOOL_APPLIED_VERSION=`intltool-update --version | head -1 | cut -d" " -f3`
  508. INTLTOOL_APPLIED_VERSION_AS_INT=`echo $INTLTOOL_APPLIED_VERSION | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'`
  509. if test -n "$1"; then
  510. AC_MSG_CHECKING([for intltool >= $1])
  511. AC_MSG_RESULT([$INTLTOOL_APPLIED_VERSION found])
  512. test "$INTLTOOL_APPLIED_VERSION_AS_INT" -ge "$INTLTOOL_REQUIRED_VERSION_AS_INT" ||
  513. AC_MSG_ERROR([Your intltool is too old. You need intltool $1 or later.])
  514. fi
  515. AC_PATH_PROG(INTLTOOL_UPDATE, [intltool-update])
  516. AC_PATH_PROG(INTLTOOL_MERGE, [intltool-merge])
  517. AC_PATH_PROG(INTLTOOL_EXTRACT, [intltool-extract])
  518. if test -z "$INTLTOOL_UPDATE" -o -z "$INTLTOOL_MERGE" -o -z "$INTLTOOL_EXTRACT"; then
  519. AC_MSG_ERROR([The intltool scripts were not found. Please install intltool.])
  520. fi
  521. if test -z "$AM_DEFAULT_VERBOSITY"; then
  522. AM_DEFAULT_VERBOSITY=1
  523. fi
  524. AC_SUBST([AM_DEFAULT_VERBOSITY])
  525. INTLTOOL_V_MERGE='$(INTLTOOL__v_MERGE_$(V))'
  526. INTLTOOL__v_MERGE_='$(INTLTOOL__v_MERGE_$(AM_DEFAULT_VERBOSITY))'
  527. INTLTOOL__v_MERGE_0='@echo " ITMRG " [$]@;'
  528. AC_SUBST(INTLTOOL_V_MERGE)
  529. AC_SUBST(INTLTOOL__v_MERGE_)
  530. AC_SUBST(INTLTOOL__v_MERGE_0)
  531. INTLTOOL_V_MERGE_OPTIONS='$(intltool__v_merge_options_$(V))'
  532. intltool__v_merge_options_='$(intltool__v_merge_options_$(AM_DEFAULT_VERBOSITY))'
  533. intltool__v_merge_options_0='-q'
  534. AC_SUBST(INTLTOOL_V_MERGE_OPTIONS)
  535. AC_SUBST(intltool__v_merge_options_)
  536. AC_SUBST(intltool__v_merge_options_0)
  537. INTLTOOL_DESKTOP_RULE='%.desktop: %.desktop.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
  538. INTLTOOL_DIRECTORY_RULE='%.directory: %.directory.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
  539. INTLTOOL_KEYS_RULE='%.keys: %.keys.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -k -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
  540. INTLTOOL_PROP_RULE='%.prop: %.prop.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
  541. INTLTOOL_OAF_RULE='%.oaf: %.oaf.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -o -p $(top_srcdir)/po $< [$]@'
  542. INTLTOOL_PONG_RULE='%.pong: %.pong.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
  543. INTLTOOL_SERVER_RULE='%.server: %.server.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -o -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
  544. INTLTOOL_SHEET_RULE='%.sheet: %.sheet.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
  545. INTLTOOL_SOUNDLIST_RULE='%.soundlist: %.soundlist.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
  546. INTLTOOL_UI_RULE='%.ui: %.ui.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
  547. INTLTOOL_XML_RULE='%.xml: %.xml.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
  548. if test "$INTLTOOL_APPLIED_VERSION_AS_INT" -ge 5000; then
  549. INTLTOOL_XML_NOMERGE_RULE='%.xml: %.xml.in $(INTLTOOL_MERGE) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u --no-translations $< [$]@'
  550. else
  551. INTLTOOL_XML_NOMERGE_RULE='%.xml: %.xml.in $(INTLTOOL_MERGE) ; $(INTLTOOL_V_MERGE)_it_tmp_dir=tmp.intltool.[$][$]RANDOM && mkdir [$][$]_it_tmp_dir && LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u [$][$]_it_tmp_dir $< [$]@ && rmdir [$][$]_it_tmp_dir'
  552. fi
  553. INTLTOOL_XAM_RULE='%.xam: %.xml.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
  554. INTLTOOL_KBD_RULE='%.kbd: %.kbd.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -m -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
  555. INTLTOOL_CAVES_RULE='%.caves: %.caves.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
  556. INTLTOOL_SCHEMAS_RULE='%.schemas: %.schemas.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -s -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
  557. INTLTOOL_THEME_RULE='%.theme: %.theme.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
  558. INTLTOOL_SERVICE_RULE='%.service: %.service.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
  559. INTLTOOL_POLICY_RULE='%.policy: %.policy.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
  560. _IT_SUBST(INTLTOOL_DESKTOP_RULE)
  561. _IT_SUBST(INTLTOOL_DIRECTORY_RULE)
  562. _IT_SUBST(INTLTOOL_KEYS_RULE)
  563. _IT_SUBST(INTLTOOL_PROP_RULE)
  564. _IT_SUBST(INTLTOOL_OAF_RULE)
  565. _IT_SUBST(INTLTOOL_PONG_RULE)
  566. _IT_SUBST(INTLTOOL_SERVER_RULE)
  567. _IT_SUBST(INTLTOOL_SHEET_RULE)
  568. _IT_SUBST(INTLTOOL_SOUNDLIST_RULE)
  569. _IT_SUBST(INTLTOOL_UI_RULE)
  570. _IT_SUBST(INTLTOOL_XAM_RULE)
  571. _IT_SUBST(INTLTOOL_KBD_RULE)
  572. _IT_SUBST(INTLTOOL_XML_RULE)
  573. _IT_SUBST(INTLTOOL_XML_NOMERGE_RULE)
  574. _IT_SUBST(INTLTOOL_CAVES_RULE)
  575. _IT_SUBST(INTLTOOL_SCHEMAS_RULE)
  576. _IT_SUBST(INTLTOOL_THEME_RULE)
  577. _IT_SUBST(INTLTOOL_SERVICE_RULE)
  578. _IT_SUBST(INTLTOOL_POLICY_RULE)
  579. # Check the gettext tools to make sure they are GNU
  580. AC_PATH_PROG(XGETTEXT, xgettext)
  581. AC_PATH_PROG(MSGMERGE, msgmerge)
  582. AC_PATH_PROG(MSGFMT, msgfmt)
  583. AC_PATH_PROG(GMSGFMT, gmsgfmt, $MSGFMT)
  584. if test -z "$XGETTEXT" -o -z "$MSGMERGE" -o -z "$MSGFMT"; then
  585. AC_MSG_ERROR([GNU gettext tools not found; required for intltool])
  586. fi
  587. xgversion="`$XGETTEXT --version|grep '(GNU ' 2> /dev/null`"
  588. mmversion="`$MSGMERGE --version|grep '(GNU ' 2> /dev/null`"
  589. mfversion="`$MSGFMT --version|grep '(GNU ' 2> /dev/null`"
  590. if test -z "$xgversion" -o -z "$mmversion" -o -z "$mfversion"; then
  591. AC_MSG_ERROR([GNU gettext tools not found; required for intltool])
  592. fi
  593. AC_PATH_PROG(INTLTOOL_PERL, perl)
  594. if test -z "$INTLTOOL_PERL"; then
  595. AC_MSG_ERROR([perl not found])
  596. fi
  597. AC_MSG_CHECKING([for perl >= 5.8.1])
  598. $INTLTOOL_PERL -e "use 5.8.1;" > /dev/null 2>&1
  599. if test $? -ne 0; then
  600. AC_MSG_ERROR([perl 5.8.1 is required for intltool])
  601. else
  602. IT_PERL_VERSION=`$INTLTOOL_PERL -e "printf '%vd', $^V"`
  603. AC_MSG_RESULT([$IT_PERL_VERSION])
  604. fi
  605. if test "x$2" != "xno-xml"; then
  606. AC_MSG_CHECKING([for XML::Parser])
  607. if `$INTLTOOL_PERL -e "require XML::Parser" 2>/dev/null`; then
  608. AC_MSG_RESULT([ok])
  609. else
  610. AC_MSG_ERROR([XML::Parser perl module is required for intltool])
  611. fi
  612. fi
  613. # Substitute ALL_LINGUAS so we can use it in po/Makefile
  614. AC_SUBST(ALL_LINGUAS)
  615. IT_PO_SUBDIR([po])
  616. ])
  617. # IT_PO_SUBDIR(DIRNAME)
  618. # ---------------------
  619. # All po subdirs have to be declared with this macro; the subdir "po" is
  620. # declared by IT_PROG_INTLTOOL.
  621. #
  622. AC_DEFUN([IT_PO_SUBDIR],
  623. [AC_PREREQ([2.53])dnl We use ac_top_srcdir inside AC_CONFIG_COMMANDS.
  624. dnl
  625. dnl The following CONFIG_COMMANDS should be executed at the very end
  626. dnl of config.status.
  627. AC_CONFIG_COMMANDS_PRE([
  628. AC_CONFIG_COMMANDS([$1/stamp-it], [
  629. if [ ! grep "^# INTLTOOL_MAKEFILE$" "$1/Makefile.in" > /dev/null ]; then
  630. AC_MSG_ERROR([$1/Makefile.in.in was not created by intltoolize.])
  631. fi
  632. rm -f "$1/stamp-it" "$1/stamp-it.tmp" "$1/POTFILES" "$1/Makefile.tmp"
  633. >"$1/stamp-it.tmp"
  634. [sed '/^#/d
  635. s/^[[].*] *//
  636. /^[ ]*$/d
  637. '"s|^| $ac_top_srcdir/|" \
  638. "$srcdir/$1/POTFILES.in" | sed '$!s/$/ \\/' >"$1/POTFILES"
  639. ]
  640. [sed '/^POTFILES =/,/[^\\]$/ {
  641. /^POTFILES =/!d
  642. r $1/POTFILES
  643. }
  644. ' "$1/Makefile.in" >"$1/Makefile"]
  645. rm -f "$1/Makefile.tmp"
  646. mv "$1/stamp-it.tmp" "$1/stamp-it"
  647. ])
  648. ])dnl
  649. ])
  650. # _IT_SUBST(VARIABLE)
  651. # -------------------
  652. # Abstract macro to do either _AM_SUBST_NOTMAKE or AC_SUBST
  653. #
  654. AC_DEFUN([_IT_SUBST],
  655. [
  656. AC_SUBST([$1])
  657. m4_ifdef([_AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE([$1])])
  658. ]
  659. )
  660. # deprecated macros
  661. AU_ALIAS([AC_PROG_INTLTOOL], [IT_PROG_INTLTOOL])
  662. # A hint is needed for aclocal from Automake <= 1.9.4:
  663. # AC_DEFUN([AC_PROG_INTLTOOL], ...)
  664. # libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
  665. #
  666. # Copyright (C) 1996-2001, 2003-2015 Free Software Foundation, Inc.
  667. # Written by Gordon Matzigkeit, 1996
  668. #
  669. # This file is free software; the Free Software Foundation gives
  670. # unlimited permission to copy and/or distribute it, with or without
  671. # modifications, as long as this notice is preserved.
  672. m4_define([_LT_COPYING], [dnl
  673. # Copyright (C) 2014 Free Software Foundation, Inc.
  674. # This is free software; see the source for copying conditions. There is NO
  675. # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  676. # GNU Libtool is free software; you can redistribute it and/or modify
  677. # it under the terms of the GNU General Public License as published by
  678. # the Free Software Foundation; either version 2 of of the License, or
  679. # (at your option) any later version.
  680. #
  681. # As a special exception to the GNU General Public License, if you
  682. # distribute this file as part of a program or library that is built
  683. # using GNU Libtool, you may include this file under the same
  684. # distribution terms that you use for the rest of that program.
  685. #
  686. # GNU Libtool is distributed in the hope that it will be useful, but
  687. # WITHOUT ANY WARRANTY; without even the implied warranty of
  688. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  689. # GNU General Public License for more details.
  690. #
  691. # You should have received a copy of the GNU General Public License
  692. # along with this program. If not, see <http://www.gnu.org/licenses/>.
  693. ])
  694. # serial 58 LT_INIT
  695. # LT_PREREQ(VERSION)
  696. # ------------------
  697. # Complain and exit if this libtool version is less that VERSION.
  698. m4_defun([LT_PREREQ],
  699. [m4_if(m4_version_compare(m4_defn([LT_PACKAGE_VERSION]), [$1]), -1,
  700. [m4_default([$3],
  701. [m4_fatal([Libtool version $1 or higher is required],
  702. 63)])],
  703. [$2])])
  704. # _LT_CHECK_BUILDDIR
  705. # ------------------
  706. # Complain if the absolute build directory name contains unusual characters
  707. m4_defun([_LT_CHECK_BUILDDIR],
  708. [case `pwd` in
  709. *\ * | *\ *)
  710. AC_MSG_WARN([Libtool does not cope well with whitespace in `pwd`]) ;;
  711. esac
  712. ])
  713. # LT_INIT([OPTIONS])
  714. # ------------------
  715. AC_DEFUN([LT_INIT],
  716. [AC_PREREQ([2.62])dnl We use AC_PATH_PROGS_FEATURE_CHECK
  717. AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT])dnl
  718. AC_BEFORE([$0], [LT_LANG])dnl
  719. AC_BEFORE([$0], [LT_OUTPUT])dnl
  720. AC_BEFORE([$0], [LTDL_INIT])dnl
  721. m4_require([_LT_CHECK_BUILDDIR])dnl
  722. dnl Autoconf doesn't catch unexpanded LT_ macros by default:
  723. m4_pattern_forbid([^_?LT_[A-Z_]+$])dnl
  724. m4_pattern_allow([^(_LT_EOF|LT_DLGLOBAL|LT_DLLAZY_OR_NOW|LT_MULTI_MODULE)$])dnl
  725. dnl aclocal doesn't pull ltoptions.m4, ltsugar.m4, or ltversion.m4
  726. dnl unless we require an AC_DEFUNed macro:
  727. AC_REQUIRE([LTOPTIONS_VERSION])dnl
  728. AC_REQUIRE([LTSUGAR_VERSION])dnl
  729. AC_REQUIRE([LTVERSION_VERSION])dnl
  730. AC_REQUIRE([LTOBSOLETE_VERSION])dnl
  731. m4_require([_LT_PROG_LTMAIN])dnl
  732. _LT_SHELL_INIT([SHELL=${CONFIG_SHELL-/bin/sh}])
  733. dnl Parse OPTIONS
  734. _LT_SET_OPTIONS([$0], [$1])
  735. # This can be used to rebuild libtool when needed
  736. LIBTOOL_DEPS=$ltmain
  737. # Always use our own libtool.
  738. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  739. AC_SUBST(LIBTOOL)dnl
  740. _LT_SETUP
  741. # Only expand once:
  742. m4_define([LT_INIT])
  743. ])# LT_INIT
  744. # Old names:
  745. AU_ALIAS([AC_PROG_LIBTOOL], [LT_INIT])
  746. AU_ALIAS([AM_PROG_LIBTOOL], [LT_INIT])
  747. dnl aclocal-1.4 backwards compatibility:
  748. dnl AC_DEFUN([AC_PROG_LIBTOOL], [])
  749. dnl AC_DEFUN([AM_PROG_LIBTOOL], [])
  750. # _LT_PREPARE_CC_BASENAME
  751. # -----------------------
  752. m4_defun([_LT_PREPARE_CC_BASENAME], [
  753. # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
  754. func_cc_basename ()
  755. {
  756. for cc_temp in @S|@*""; do
  757. case $cc_temp in
  758. compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;;
  759. distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;;
  760. \-*) ;;
  761. *) break;;
  762. esac
  763. done
  764. func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  765. }
  766. ])# _LT_PREPARE_CC_BASENAME
  767. # _LT_CC_BASENAME(CC)
  768. # -------------------
  769. # It would be clearer to call AC_REQUIREs from _LT_PREPARE_CC_BASENAME,
  770. # but that macro is also expanded into generated libtool script, which
  771. # arranges for $SED and $ECHO to be set by different means.
  772. m4_defun([_LT_CC_BASENAME],
  773. [m4_require([_LT_PREPARE_CC_BASENAME])dnl
  774. AC_REQUIRE([_LT_DECL_SED])dnl
  775. AC_REQUIRE([_LT_PROG_ECHO_BACKSLASH])dnl
  776. func_cc_basename $1
  777. cc_basename=$func_cc_basename_result
  778. ])
  779. # _LT_FILEUTILS_DEFAULTS
  780. # ----------------------
  781. # It is okay to use these file commands and assume they have been set
  782. # sensibly after 'm4_require([_LT_FILEUTILS_DEFAULTS])'.
  783. m4_defun([_LT_FILEUTILS_DEFAULTS],
  784. [: ${CP="cp -f"}
  785. : ${MV="mv -f"}
  786. : ${RM="rm -f"}
  787. ])# _LT_FILEUTILS_DEFAULTS
  788. # _LT_SETUP
  789. # ---------
  790. m4_defun([_LT_SETUP],
  791. [AC_REQUIRE([AC_CANONICAL_HOST])dnl
  792. AC_REQUIRE([AC_CANONICAL_BUILD])dnl
  793. AC_REQUIRE([_LT_PREPARE_SED_QUOTE_VARS])dnl
  794. AC_REQUIRE([_LT_PROG_ECHO_BACKSLASH])dnl
  795. _LT_DECL([], [PATH_SEPARATOR], [1], [The PATH separator for the build system])dnl
  796. dnl
  797. _LT_DECL([], [host_alias], [0], [The host system])dnl
  798. _LT_DECL([], [host], [0])dnl
  799. _LT_DECL([], [host_os], [0])dnl
  800. dnl
  801. _LT_DECL([], [build_alias], [0], [The build system])dnl
  802. _LT_DECL([], [build], [0])dnl
  803. _LT_DECL([], [build_os], [0])dnl
  804. dnl
  805. AC_REQUIRE([AC_PROG_CC])dnl
  806. AC_REQUIRE([LT_PATH_LD])dnl
  807. AC_REQUIRE([LT_PATH_NM])dnl
  808. dnl
  809. AC_REQUIRE([AC_PROG_LN_S])dnl
  810. test -z "$LN_S" && LN_S="ln -s"
  811. _LT_DECL([], [LN_S], [1], [Whether we need soft or hard links])dnl
  812. dnl
  813. AC_REQUIRE([LT_CMD_MAX_LEN])dnl
  814. _LT_DECL([objext], [ac_objext], [0], [Object file suffix (normally "o")])dnl
  815. _LT_DECL([], [exeext], [0], [Executable file suffix (normally "")])dnl
  816. dnl
  817. m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  818. m4_require([_LT_CHECK_SHELL_FEATURES])dnl
  819. m4_require([_LT_PATH_CONVERSION_FUNCTIONS])dnl
  820. m4_require([_LT_CMD_RELOAD])dnl
  821. m4_require([_LT_CHECK_MAGIC_METHOD])dnl
  822. m4_require([_LT_CHECK_SHAREDLIB_FROM_LINKLIB])dnl
  823. m4_require([_LT_CMD_OLD_ARCHIVE])dnl
  824. m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
  825. m4_require([_LT_WITH_SYSROOT])dnl
  826. m4_require([_LT_CMD_TRUNCATE])dnl
  827. _LT_CONFIG_LIBTOOL_INIT([
  828. # See if we are running on zsh, and set the options that allow our
  829. # commands through without removal of \ escapes INIT.
  830. if test -n "\${ZSH_VERSION+set}"; then
  831. setopt NO_GLOB_SUBST
  832. fi
  833. ])
  834. if test -n "${ZSH_VERSION+set}"; then
  835. setopt NO_GLOB_SUBST
  836. fi
  837. _LT_CHECK_OBJDIR
  838. m4_require([_LT_TAG_COMPILER])dnl
  839. case $host_os in
  840. aix3*)
  841. # AIX sometimes has problems with the GCC collect2 program. For some
  842. # reason, if we set the COLLECT_NAMES environment variable, the problems
  843. # vanish in a puff of smoke.
  844. if test set != "${COLLECT_NAMES+set}"; then
  845. COLLECT_NAMES=
  846. export COLLECT_NAMES
  847. fi
  848. ;;
  849. esac
  850. # Global variables:
  851. ofile=libtool
  852. can_build_shared=yes
  853. # All known linkers require a '.a' archive for static linking (except MSVC,
  854. # which needs '.lib').
  855. libext=a
  856. with_gnu_ld=$lt_cv_prog_gnu_ld
  857. old_CC=$CC
  858. old_CFLAGS=$CFLAGS
  859. # Set sane defaults for various variables
  860. test -z "$CC" && CC=cc
  861. test -z "$LTCC" && LTCC=$CC
  862. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  863. test -z "$LD" && LD=ld
  864. test -z "$ac_objext" && ac_objext=o
  865. _LT_CC_BASENAME([$compiler])
  866. # Only perform the check for file, if the check method requires it
  867. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  868. case $deplibs_check_method in
  869. file_magic*)
  870. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  871. _LT_PATH_MAGIC
  872. fi
  873. ;;
  874. esac
  875. # Use C for the default configuration in the libtool script
  876. LT_SUPPORTED_TAG([CC])
  877. _LT_LANG_C_CONFIG
  878. _LT_LANG_DEFAULT_CONFIG
  879. _LT_CONFIG_COMMANDS
  880. ])# _LT_SETUP
  881. # _LT_PREPARE_SED_QUOTE_VARS
  882. # --------------------------
  883. # Define a few sed substitution that help us do robust quoting.
  884. m4_defun([_LT_PREPARE_SED_QUOTE_VARS],
  885. [# Backslashify metacharacters that are still active within
  886. # double-quoted strings.
  887. sed_quote_subst='s/\([["`$\\]]\)/\\\1/g'
  888. # Same as above, but do not quote variable references.
  889. double_quote_subst='s/\([["`\\]]\)/\\\1/g'
  890. # Sed substitution to delay expansion of an escaped shell variable in a
  891. # double_quote_subst'ed string.
  892. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  893. # Sed substitution to delay expansion of an escaped single quote.
  894. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  895. # Sed substitution to avoid accidental globbing in evaled expressions
  896. no_glob_subst='s/\*/\\\*/g'
  897. ])
  898. # _LT_PROG_LTMAIN
  899. # ---------------
  900. # Note that this code is called both from 'configure', and 'config.status'
  901. # now that we use AC_CONFIG_COMMANDS to generate libtool. Notably,
  902. # 'config.status' has no value for ac_aux_dir unless we are using Automake,
  903. # so we pass a copy along to make sure it has a sensible value anyway.
  904. m4_defun([_LT_PROG_LTMAIN],
  905. [m4_ifdef([AC_REQUIRE_AUX_FILE], [AC_REQUIRE_AUX_FILE([ltmain.sh])])dnl
  906. _LT_CONFIG_LIBTOOL_INIT([ac_aux_dir='$ac_aux_dir'])
  907. ltmain=$ac_aux_dir/ltmain.sh
  908. ])# _LT_PROG_LTMAIN
  909. # So that we can recreate a full libtool script including additional
  910. # tags, we accumulate the chunks of code to send to AC_CONFIG_COMMANDS
  911. # in macros and then make a single call at the end using the 'libtool'
  912. # label.
  913. # _LT_CONFIG_LIBTOOL_INIT([INIT-COMMANDS])
  914. # ----------------------------------------
  915. # Register INIT-COMMANDS to be passed to AC_CONFIG_COMMANDS later.
  916. m4_define([_LT_CONFIG_LIBTOOL_INIT],
  917. [m4_ifval([$1],
  918. [m4_append([_LT_OUTPUT_LIBTOOL_INIT],
  919. [$1
  920. ])])])
  921. # Initialize.
  922. m4_define([_LT_OUTPUT_LIBTOOL_INIT])
  923. # _LT_CONFIG_LIBTOOL([COMMANDS])
  924. # ------------------------------
  925. # Register COMMANDS to be passed to AC_CONFIG_COMMANDS later.
  926. m4_define([_LT_CONFIG_LIBTOOL],
  927. [m4_ifval([$1],
  928. [m4_append([_LT_OUTPUT_LIBTOOL_COMMANDS],
  929. [$1
  930. ])])])
  931. # Initialize.
  932. m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS])
  933. # _LT_CONFIG_SAVE_COMMANDS([COMMANDS], [INIT_COMMANDS])
  934. # -----------------------------------------------------
  935. m4_defun([_LT_CONFIG_SAVE_COMMANDS],
  936. [_LT_CONFIG_LIBTOOL([$1])
  937. _LT_CONFIG_LIBTOOL_INIT([$2])
  938. ])
  939. # _LT_FORMAT_COMMENT([COMMENT])
  940. # -----------------------------
  941. # Add leading comment marks to the start of each line, and a trailing
  942. # full-stop to the whole comment if one is not present already.
  943. m4_define([_LT_FORMAT_COMMENT],
  944. [m4_ifval([$1], [
  945. m4_bpatsubst([m4_bpatsubst([$1], [^ *], [# ])],
  946. [['`$\]], [\\\&])]m4_bmatch([$1], [[!?.]$], [], [.])
  947. )])
  948. # _LT_DECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION], [IS-TAGGED?])
  949. # -------------------------------------------------------------------
  950. # CONFIGNAME is the name given to the value in the libtool script.
  951. # VARNAME is the (base) name used in the configure script.
  952. # VALUE may be 0, 1 or 2 for a computed quote escaped value based on
  953. # VARNAME. Any other value will be used directly.
  954. m4_define([_LT_DECL],
  955. [lt_if_append_uniq([lt_decl_varnames], [$2], [, ],
  956. [lt_dict_add_subkey([lt_decl_dict], [$2], [libtool_name],
  957. [m4_ifval([$1], [$1], [$2])])
  958. lt_dict_add_subkey([lt_decl_dict], [$2], [value], [$3])
  959. m4_ifval([$4],
  960. [lt_dict_add_subkey([lt_decl_dict], [$2], [description], [$4])])
  961. lt_dict_add_subkey([lt_decl_dict], [$2],
  962. [tagged?], [m4_ifval([$5], [yes], [no])])])
  963. ])
  964. # _LT_TAGDECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION])
  965. # --------------------------------------------------------
  966. m4_define([_LT_TAGDECL], [_LT_DECL([$1], [$2], [$3], [$4], [yes])])
  967. # lt_decl_tag_varnames([SEPARATOR], [VARNAME1...])
  968. # ------------------------------------------------
  969. m4_define([lt_decl_tag_varnames],
  970. [_lt_decl_filter([tagged?], [yes], $@)])
  971. # _lt_decl_filter(SUBKEY, VALUE, [SEPARATOR], [VARNAME1..])
  972. # ---------------------------------------------------------
  973. m4_define([_lt_decl_filter],
  974. [m4_case([$#],
  975. [0], [m4_fatal([$0: too few arguments: $#])],
  976. [1], [m4_fatal([$0: too few arguments: $#: $1])],
  977. [2], [lt_dict_filter([lt_decl_dict], [$1], [$2], [], lt_decl_varnames)],
  978. [3], [lt_dict_filter([lt_decl_dict], [$1], [$2], [$3], lt_decl_varnames)],
  979. [lt_dict_filter([lt_decl_dict], $@)])[]dnl
  980. ])
  981. # lt_decl_quote_varnames([SEPARATOR], [VARNAME1...])
  982. # --------------------------------------------------
  983. m4_define([lt_decl_quote_varnames],
  984. [_lt_decl_filter([value], [1], $@)])
  985. # lt_decl_dquote_varnames([SEPARATOR], [VARNAME1...])
  986. # ---------------------------------------------------
  987. m4_define([lt_decl_dquote_varnames],
  988. [_lt_decl_filter([value], [2], $@)])
  989. # lt_decl_varnames_tagged([SEPARATOR], [VARNAME1...])
  990. # ---------------------------------------------------
  991. m4_define([lt_decl_varnames_tagged],
  992. [m4_assert([$# <= 2])dnl
  993. _$0(m4_quote(m4_default([$1], [[, ]])),
  994. m4_ifval([$2], [[$2]], [m4_dquote(lt_decl_tag_varnames)]),
  995. m4_split(m4_normalize(m4_quote(_LT_TAGS)), [ ]))])
  996. m4_define([_lt_decl_varnames_tagged],
  997. [m4_ifval([$3], [lt_combine([$1], [$2], [_], $3)])])
  998. # lt_decl_all_varnames([SEPARATOR], [VARNAME1...])
  999. # ------------------------------------------------
  1000. m4_define([lt_decl_all_varnames],
  1001. [_$0(m4_quote(m4_default([$1], [[, ]])),
  1002. m4_if([$2], [],
  1003. m4_quote(lt_decl_varnames),
  1004. m4_quote(m4_shift($@))))[]dnl
  1005. ])
  1006. m4_define([_lt_decl_all_varnames],
  1007. [lt_join($@, lt_decl_varnames_tagged([$1],
  1008. lt_decl_tag_varnames([[, ]], m4_shift($@))))dnl
  1009. ])
  1010. # _LT_CONFIG_STATUS_DECLARE([VARNAME])
  1011. # ------------------------------------
  1012. # Quote a variable value, and forward it to 'config.status' so that its
  1013. # declaration there will have the same value as in 'configure'. VARNAME
  1014. # must have a single quote delimited value for this to work.
  1015. m4_define([_LT_CONFIG_STATUS_DECLARE],
  1016. [$1='`$ECHO "$][$1" | $SED "$delay_single_quote_subst"`'])
  1017. # _LT_CONFIG_STATUS_DECLARATIONS
  1018. # ------------------------------
  1019. # We delimit libtool config variables with single quotes, so when
  1020. # we write them to config.status, we have to be sure to quote all
  1021. # embedded single quotes properly. In configure, this macro expands
  1022. # each variable declared with _LT_DECL (and _LT_TAGDECL) into:
  1023. #
  1024. # <var>='`$ECHO "$<var>" | $SED "$delay_single_quote_subst"`'
  1025. m4_defun([_LT_CONFIG_STATUS_DECLARATIONS],
  1026. [m4_foreach([_lt_var], m4_quote(lt_decl_all_varnames),
  1027. [m4_n([_LT_CONFIG_STATUS_DECLARE(_lt_var)])])])
  1028. # _LT_LIBTOOL_TAGS
  1029. # ----------------
  1030. # Output comment and list of tags supported by the script
  1031. m4_defun([_LT_LIBTOOL_TAGS],
  1032. [_LT_FORMAT_COMMENT([The names of the tagged configurations supported by this script])dnl
  1033. available_tags='_LT_TAGS'dnl
  1034. ])
  1035. # _LT_LIBTOOL_DECLARE(VARNAME, [TAG])
  1036. # -----------------------------------
  1037. # Extract the dictionary values for VARNAME (optionally with TAG) and
  1038. # expand to a commented shell variable setting:
  1039. #
  1040. # # Some comment about what VAR is for.
  1041. # visible_name=$lt_internal_name
  1042. m4_define([_LT_LIBTOOL_DECLARE],
  1043. [_LT_FORMAT_COMMENT(m4_quote(lt_dict_fetch([lt_decl_dict], [$1],
  1044. [description])))[]dnl
  1045. m4_pushdef([_libtool_name],
  1046. m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [libtool_name])))[]dnl
  1047. m4_case(m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [value])),
  1048. [0], [_libtool_name=[$]$1],
  1049. [1], [_libtool_name=$lt_[]$1],
  1050. [2], [_libtool_name=$lt_[]$1],
  1051. [_libtool_name=lt_dict_fetch([lt_decl_dict], [$1], [value])])[]dnl
  1052. m4_ifval([$2], [_$2])[]m4_popdef([_libtool_name])[]dnl
  1053. ])
  1054. # _LT_LIBTOOL_CONFIG_VARS
  1055. # -----------------------
  1056. # Produce commented declarations of non-tagged libtool config variables
  1057. # suitable for insertion in the LIBTOOL CONFIG section of the 'libtool'
  1058. # script. Tagged libtool config variables (even for the LIBTOOL CONFIG
  1059. # section) are produced by _LT_LIBTOOL_TAG_VARS.
  1060. m4_defun([_LT_LIBTOOL_CONFIG_VARS],
  1061. [m4_foreach([_lt_var],
  1062. m4_quote(_lt_decl_filter([tagged?], [no], [], lt_decl_varnames)),
  1063. [m4_n([_LT_LIBTOOL_DECLARE(_lt_var)])])])
  1064. # _LT_LIBTOOL_TAG_VARS(TAG)
  1065. # -------------------------
  1066. m4_define([_LT_LIBTOOL_TAG_VARS],
  1067. [m4_foreach([_lt_var], m4_quote(lt_decl_tag_varnames),
  1068. [m4_n([_LT_LIBTOOL_DECLARE(_lt_var, [$1])])])])
  1069. # _LT_TAGVAR(VARNAME, [TAGNAME])
  1070. # ------------------------------
  1071. m4_define([_LT_TAGVAR], [m4_ifval([$2], [$1_$2], [$1])])
  1072. # _LT_CONFIG_COMMANDS
  1073. # -------------------
  1074. # Send accumulated output to $CONFIG_STATUS. Thanks to the lists of
  1075. # variables for single and double quote escaping we saved from calls
  1076. # to _LT_DECL, we can put quote escaped variables declarations
  1077. # into 'config.status', and then the shell code to quote escape them in
  1078. # for loops in 'config.status'. Finally, any additional code accumulated
  1079. # from calls to _LT_CONFIG_LIBTOOL_INIT is expanded.
  1080. m4_defun([_LT_CONFIG_COMMANDS],
  1081. [AC_PROVIDE_IFELSE([LT_OUTPUT],
  1082. dnl If the libtool generation code has been placed in $CONFIG_LT,
  1083. dnl instead of duplicating it all over again into config.status,
  1084. dnl then we will have config.status run $CONFIG_LT later, so it
  1085. dnl needs to know what name is stored there:
  1086. [AC_CONFIG_COMMANDS([libtool],
  1087. [$SHELL $CONFIG_LT || AS_EXIT(1)], [CONFIG_LT='$CONFIG_LT'])],
  1088. dnl If the libtool generation code is destined for config.status,
  1089. dnl expand the accumulated commands and init code now:
  1090. [AC_CONFIG_COMMANDS([libtool],
  1091. [_LT_OUTPUT_LIBTOOL_COMMANDS], [_LT_OUTPUT_LIBTOOL_COMMANDS_INIT])])
  1092. ])#_LT_CONFIG_COMMANDS
  1093. # Initialize.
  1094. m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS_INIT],
  1095. [
  1096. # The HP-UX ksh and POSIX shell print the target directory to stdout
  1097. # if CDPATH is set.
  1098. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  1099. sed_quote_subst='$sed_quote_subst'
  1100. double_quote_subst='$double_quote_subst'
  1101. delay_variable_subst='$delay_variable_subst'
  1102. _LT_CONFIG_STATUS_DECLARATIONS
  1103. LTCC='$LTCC'
  1104. LTCFLAGS='$LTCFLAGS'
  1105. compiler='$compiler_DEFAULT'
  1106. # A function that is used when there is no print builtin or printf.
  1107. func_fallback_echo ()
  1108. {
  1109. eval 'cat <<_LTECHO_EOF
  1110. \$[]1
  1111. _LTECHO_EOF'
  1112. }
  1113. # Quote evaled strings.
  1114. for var in lt_decl_all_varnames([[ \
  1115. ]], lt_decl_quote_varnames); do
  1116. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  1117. *[[\\\\\\\`\\"\\\$]]*)
  1118. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
  1119. ;;
  1120. *)
  1121. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  1122. ;;
  1123. esac
  1124. done
  1125. # Double-quote double-evaled strings.
  1126. for var in lt_decl_all_varnames([[ \
  1127. ]], lt_decl_dquote_varnames); do
  1128. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  1129. *[[\\\\\\\`\\"\\\$]]*)
  1130. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
  1131. ;;
  1132. *)
  1133. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  1134. ;;
  1135. esac
  1136. done
  1137. _LT_OUTPUT_LIBTOOL_INIT
  1138. ])
  1139. # _LT_GENERATED_FILE_INIT(FILE, [COMMENT])
  1140. # ------------------------------------
  1141. # Generate a child script FILE with all initialization necessary to
  1142. # reuse the environment learned by the parent script, and make the
  1143. # file executable. If COMMENT is supplied, it is inserted after the
  1144. # '#!' sequence but before initialization text begins. After this
  1145. # macro, additional text can be appended to FILE to form the body of
  1146. # the child script. The macro ends with non-zero status if the
  1147. # file could not be fully written (such as if the disk is full).
  1148. m4_ifdef([AS_INIT_GENERATED],
  1149. [m4_defun([_LT_GENERATED_FILE_INIT],[AS_INIT_GENERATED($@)])],
  1150. [m4_defun([_LT_GENERATED_FILE_INIT],
  1151. [m4_require([AS_PREPARE])]dnl
  1152. [m4_pushdef([AS_MESSAGE_LOG_FD])]dnl
  1153. [lt_write_fail=0
  1154. cat >$1 <<_ASEOF || lt_write_fail=1
  1155. #! $SHELL
  1156. # Generated by $as_me.
  1157. $2
  1158. SHELL=\${CONFIG_SHELL-$SHELL}
  1159. export SHELL
  1160. _ASEOF
  1161. cat >>$1 <<\_ASEOF || lt_write_fail=1
  1162. AS_SHELL_SANITIZE
  1163. _AS_PREPARE
  1164. exec AS_MESSAGE_FD>&1
  1165. _ASEOF
  1166. test 0 = "$lt_write_fail" && chmod +x $1[]dnl
  1167. m4_popdef([AS_MESSAGE_LOG_FD])])])# _LT_GENERATED_FILE_INIT
  1168. # LT_OUTPUT
  1169. # ---------
  1170. # This macro allows early generation of the libtool script (before
  1171. # AC_OUTPUT is called), incase it is used in configure for compilation
  1172. # tests.
  1173. AC_DEFUN([LT_OUTPUT],
  1174. [: ${CONFIG_LT=./config.lt}
  1175. AC_MSG_NOTICE([creating $CONFIG_LT])
  1176. _LT_GENERATED_FILE_INIT(["$CONFIG_LT"],
  1177. [# Run this file to recreate a libtool stub with the current configuration.])
  1178. cat >>"$CONFIG_LT" <<\_LTEOF
  1179. lt_cl_silent=false
  1180. exec AS_MESSAGE_LOG_FD>>config.log
  1181. {
  1182. echo
  1183. AS_BOX([Running $as_me.])
  1184. } >&AS_MESSAGE_LOG_FD
  1185. lt_cl_help="\
  1186. '$as_me' creates a local libtool stub from the current configuration,
  1187. for use in further configure time tests before the real libtool is
  1188. generated.
  1189. Usage: $[0] [[OPTIONS]]
  1190. -h, --help print this help, then exit
  1191. -V, --version print version number, then exit
  1192. -q, --quiet do not print progress messages
  1193. -d, --debug don't remove temporary files
  1194. Report bugs to <bug-libtool@gnu.org>."
  1195. lt_cl_version="\
  1196. m4_ifset([AC_PACKAGE_NAME], [AC_PACKAGE_NAME ])config.lt[]dnl
  1197. m4_ifset([AC_PACKAGE_VERSION], [ AC_PACKAGE_VERSION])
  1198. configured by $[0], generated by m4_PACKAGE_STRING.
  1199. Copyright (C) 2011 Free Software Foundation, Inc.
  1200. This config.lt script is free software; the Free Software Foundation
  1201. gives unlimited permision to copy, distribute and modify it."
  1202. while test 0 != $[#]
  1203. do
  1204. case $[1] in
  1205. --version | --v* | -V )
  1206. echo "$lt_cl_version"; exit 0 ;;
  1207. --help | --h* | -h )
  1208. echo "$lt_cl_help"; exit 0 ;;
  1209. --debug | --d* | -d )
  1210. debug=: ;;
  1211. --quiet | --q* | --silent | --s* | -q )
  1212. lt_cl_silent=: ;;
  1213. -*) AC_MSG_ERROR([unrecognized option: $[1]
  1214. Try '$[0] --help' for more information.]) ;;
  1215. *) AC_MSG_ERROR([unrecognized argument: $[1]
  1216. Try '$[0] --help' for more information.]) ;;
  1217. esac
  1218. shift
  1219. done
  1220. if $lt_cl_silent; then
  1221. exec AS_MESSAGE_FD>/dev/null
  1222. fi
  1223. _LTEOF
  1224. cat >>"$CONFIG_LT" <<_LTEOF
  1225. _LT_OUTPUT_LIBTOOL_COMMANDS_INIT
  1226. _LTEOF
  1227. cat >>"$CONFIG_LT" <<\_LTEOF
  1228. AC_MSG_NOTICE([creating $ofile])
  1229. _LT_OUTPUT_LIBTOOL_COMMANDS
  1230. AS_EXIT(0)
  1231. _LTEOF
  1232. chmod +x "$CONFIG_LT"
  1233. # configure is writing to config.log, but config.lt does its own redirection,
  1234. # appending to config.log, which fails on DOS, as config.log is still kept
  1235. # open by configure. Here we exec the FD to /dev/null, effectively closing
  1236. # config.log, so it can be properly (re)opened and appended to by config.lt.
  1237. lt_cl_success=:
  1238. test yes = "$silent" &&
  1239. lt_config_lt_args="$lt_config_lt_args --quiet"
  1240. exec AS_MESSAGE_LOG_FD>/dev/null
  1241. $SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false
  1242. exec AS_MESSAGE_LOG_FD>>config.log
  1243. $lt_cl_success || AS_EXIT(1)
  1244. ])# LT_OUTPUT
  1245. # _LT_CONFIG(TAG)
  1246. # ---------------
  1247. # If TAG is the built-in tag, create an initial libtool script with a
  1248. # default configuration from the untagged config vars. Otherwise add code
  1249. # to config.status for appending the configuration named by TAG from the
  1250. # matching tagged config vars.
  1251. m4_defun([_LT_CONFIG],
  1252. [m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  1253. _LT_CONFIG_SAVE_COMMANDS([
  1254. m4_define([_LT_TAG], m4_if([$1], [], [C], [$1]))dnl
  1255. m4_if(_LT_TAG, [C], [
  1256. # See if we are running on zsh, and set the options that allow our
  1257. # commands through without removal of \ escapes.
  1258. if test -n "${ZSH_VERSION+set}"; then
  1259. setopt NO_GLOB_SUBST
  1260. fi
  1261. cfgfile=${ofile}T
  1262. trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  1263. $RM "$cfgfile"
  1264. cat <<_LT_EOF >> "$cfgfile"
  1265. #! $SHELL
  1266. # Generated automatically by $as_me ($PACKAGE) $VERSION
  1267. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  1268. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  1269. # Provide generalized library-building support services.
  1270. # Written by Gordon Matzigkeit, 1996
  1271. _LT_COPYING
  1272. _LT_LIBTOOL_TAGS
  1273. # Configured defaults for sys_lib_dlsearch_path munging.
  1274. : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
  1275. # ### BEGIN LIBTOOL CONFIG
  1276. _LT_LIBTOOL_CONFIG_VARS
  1277. _LT_LIBTOOL_TAG_VARS
  1278. # ### END LIBTOOL CONFIG
  1279. _LT_EOF
  1280. cat <<'_LT_EOF' >> "$cfgfile"
  1281. # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
  1282. _LT_PREPARE_MUNGE_PATH_LIST
  1283. _LT_PREPARE_CC_BASENAME
  1284. # ### END FUNCTIONS SHARED WITH CONFIGURE
  1285. _LT_EOF
  1286. case $host_os in
  1287. aix3*)
  1288. cat <<\_LT_EOF >> "$cfgfile"
  1289. # AIX sometimes has problems with the GCC collect2 program. For some
  1290. # reason, if we set the COLLECT_NAMES environment variable, the problems
  1291. # vanish in a puff of smoke.
  1292. if test set != "${COLLECT_NAMES+set}"; then
  1293. COLLECT_NAMES=
  1294. export COLLECT_NAMES
  1295. fi
  1296. _LT_EOF
  1297. ;;
  1298. esac
  1299. _LT_PROG_LTMAIN
  1300. # We use sed instead of cat because bash on DJGPP gets confused if
  1301. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  1302. # text mode, it properly converts lines to CR/LF. This bash problem
  1303. # is reportedly fixed, but why not run on old versions too?
  1304. sed '$q' "$ltmain" >> "$cfgfile" \
  1305. || (rm -f "$cfgfile"; exit 1)
  1306. mv -f "$cfgfile" "$ofile" ||
  1307. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  1308. chmod +x "$ofile"
  1309. ],
  1310. [cat <<_LT_EOF >> "$ofile"
  1311. dnl Unfortunately we have to use $1 here, since _LT_TAG is not expanded
  1312. dnl in a comment (ie after a #).
  1313. # ### BEGIN LIBTOOL TAG CONFIG: $1
  1314. _LT_LIBTOOL_TAG_VARS(_LT_TAG)
  1315. # ### END LIBTOOL TAG CONFIG: $1
  1316. _LT_EOF
  1317. ])dnl /m4_if
  1318. ],
  1319. [m4_if([$1], [], [
  1320. PACKAGE='$PACKAGE'
  1321. VERSION='$VERSION'
  1322. RM='$RM'
  1323. ofile='$ofile'], [])
  1324. ])dnl /_LT_CONFIG_SAVE_COMMANDS
  1325. ])# _LT_CONFIG
  1326. # LT_SUPPORTED_TAG(TAG)
  1327. # ---------------------
  1328. # Trace this macro to discover what tags are supported by the libtool
  1329. # --tag option, using:
  1330. # autoconf --trace 'LT_SUPPORTED_TAG:$1'
  1331. AC_DEFUN([LT_SUPPORTED_TAG], [])
  1332. # C support is built-in for now
  1333. m4_define([_LT_LANG_C_enabled], [])
  1334. m4_define([_LT_TAGS], [])
  1335. # LT_LANG(LANG)
  1336. # -------------
  1337. # Enable libtool support for the given language if not already enabled.
  1338. AC_DEFUN([LT_LANG],
  1339. [AC_BEFORE([$0], [LT_OUTPUT])dnl
  1340. m4_case([$1],
  1341. [C], [_LT_LANG(C)],
  1342. [C++], [_LT_LANG(CXX)],
  1343. [Go], [_LT_LANG(GO)],
  1344. [Java], [_LT_LANG(GCJ)],
  1345. [Fortran 77], [_LT_LANG(F77)],
  1346. [Fortran], [_LT_LANG(FC)],
  1347. [Windows Resource], [_LT_LANG(RC)],
  1348. [m4_ifdef([_LT_LANG_]$1[_CONFIG],
  1349. [_LT_LANG($1)],
  1350. [m4_fatal([$0: unsupported language: "$1"])])])dnl
  1351. ])# LT_LANG
  1352. # _LT_LANG(LANGNAME)
  1353. # ------------------
  1354. m4_defun([_LT_LANG],
  1355. [m4_ifdef([_LT_LANG_]$1[_enabled], [],
  1356. [LT_SUPPORTED_TAG([$1])dnl
  1357. m4_append([_LT_TAGS], [$1 ])dnl
  1358. m4_define([_LT_LANG_]$1[_enabled], [])dnl
  1359. _LT_LANG_$1_CONFIG($1)])dnl
  1360. ])# _LT_LANG
  1361. m4_ifndef([AC_PROG_GO], [
  1362. # NOTE: This macro has been submitted for inclusion into #
  1363. # GNU Autoconf as AC_PROG_GO. When it is available in #
  1364. # a released version of Autoconf we should remove this #
  1365. # macro and use it instead. #
  1366. m4_defun([AC_PROG_GO],
  1367. [AC_LANG_PUSH(Go)dnl
  1368. AC_ARG_VAR([GOC], [Go compiler command])dnl
  1369. AC_ARG_VAR([GOFLAGS], [Go compiler flags])dnl
  1370. _AC_ARG_VAR_LDFLAGS()dnl
  1371. AC_CHECK_TOOL(GOC, gccgo)
  1372. if test -z "$GOC"; then
  1373. if test -n "$ac_tool_prefix"; then
  1374. AC_CHECK_PROG(GOC, [${ac_tool_prefix}gccgo], [${ac_tool_prefix}gccgo])
  1375. fi
  1376. fi
  1377. if test -z "$GOC"; then
  1378. AC_CHECK_PROG(GOC, gccgo, gccgo, false)
  1379. fi
  1380. ])#m4_defun
  1381. ])#m4_ifndef
  1382. # _LT_LANG_DEFAULT_CONFIG
  1383. # -----------------------
  1384. m4_defun([_LT_LANG_DEFAULT_CONFIG],
  1385. [AC_PROVIDE_IFELSE([AC_PROG_CXX],
  1386. [LT_LANG(CXX)],
  1387. [m4_define([AC_PROG_CXX], defn([AC_PROG_CXX])[LT_LANG(CXX)])])
  1388. AC_PROVIDE_IFELSE([AC_PROG_F77],
  1389. [LT_LANG(F77)],
  1390. [m4_define([AC_PROG_F77], defn([AC_PROG_F77])[LT_LANG(F77)])])
  1391. AC_PROVIDE_IFELSE([AC_PROG_FC],
  1392. [LT_LANG(FC)],
  1393. [m4_define([AC_PROG_FC], defn([AC_PROG_FC])[LT_LANG(FC)])])
  1394. dnl The call to [A][M_PROG_GCJ] is quoted like that to stop aclocal
  1395. dnl pulling things in needlessly.
  1396. AC_PROVIDE_IFELSE([AC_PROG_GCJ],
  1397. [LT_LANG(GCJ)],
  1398. [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],
  1399. [LT_LANG(GCJ)],
  1400. [AC_PROVIDE_IFELSE([LT_PROG_GCJ],
  1401. [LT_LANG(GCJ)],
  1402. [m4_ifdef([AC_PROG_GCJ],
  1403. [m4_define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[LT_LANG(GCJ)])])
  1404. m4_ifdef([A][M_PROG_GCJ],
  1405. [m4_define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[LT_LANG(GCJ)])])
  1406. m4_ifdef([LT_PROG_GCJ],
  1407. [m4_define([LT_PROG_GCJ], defn([LT_PROG_GCJ])[LT_LANG(GCJ)])])])])])
  1408. AC_PROVIDE_IFELSE([AC_PROG_GO],
  1409. [LT_LANG(GO)],
  1410. [m4_define([AC_PROG_GO], defn([AC_PROG_GO])[LT_LANG(GO)])])
  1411. AC_PROVIDE_IFELSE([LT_PROG_RC],
  1412. [LT_LANG(RC)],
  1413. [m4_define([LT_PROG_RC], defn([LT_PROG_RC])[LT_LANG(RC)])])
  1414. ])# _LT_LANG_DEFAULT_CONFIG
  1415. # Obsolete macros:
  1416. AU_DEFUN([AC_LIBTOOL_CXX], [LT_LANG(C++)])
  1417. AU_DEFUN([AC_LIBTOOL_F77], [LT_LANG(Fortran 77)])
  1418. AU_DEFUN([AC_LIBTOOL_FC], [LT_LANG(Fortran)])
  1419. AU_DEFUN([AC_LIBTOOL_GCJ], [LT_LANG(Java)])
  1420. AU_DEFUN([AC_LIBTOOL_RC], [LT_LANG(Windows Resource)])
  1421. dnl aclocal-1.4 backwards compatibility:
  1422. dnl AC_DEFUN([AC_LIBTOOL_CXX], [])
  1423. dnl AC_DEFUN([AC_LIBTOOL_F77], [])
  1424. dnl AC_DEFUN([AC_LIBTOOL_FC], [])
  1425. dnl AC_DEFUN([AC_LIBTOOL_GCJ], [])
  1426. dnl AC_DEFUN([AC_LIBTOOL_RC], [])
  1427. # _LT_TAG_COMPILER
  1428. # ----------------
  1429. m4_defun([_LT_TAG_COMPILER],
  1430. [AC_REQUIRE([AC_PROG_CC])dnl
  1431. _LT_DECL([LTCC], [CC], [1], [A C compiler])dnl
  1432. _LT_DECL([LTCFLAGS], [CFLAGS], [1], [LTCC compiler flags])dnl
  1433. _LT_TAGDECL([CC], [compiler], [1], [A language specific compiler])dnl
  1434. _LT_TAGDECL([with_gcc], [GCC], [0], [Is the compiler the GNU compiler?])dnl
  1435. # If no C compiler was specified, use CC.
  1436. LTCC=${LTCC-"$CC"}
  1437. # If no C compiler flags were specified, use CFLAGS.
  1438. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  1439. # Allow CC to be a program name with arguments.
  1440. compiler=$CC
  1441. ])# _LT_TAG_COMPILER
  1442. # _LT_COMPILER_BOILERPLATE
  1443. # ------------------------
  1444. # Check for compiler boilerplate output or warnings with
  1445. # the simple compiler test code.
  1446. m4_defun([_LT_COMPILER_BOILERPLATE],
  1447. [m4_require([_LT_DECL_SED])dnl
  1448. ac_outfile=conftest.$ac_objext
  1449. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  1450. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  1451. _lt_compiler_boilerplate=`cat conftest.err`
  1452. $RM conftest*
  1453. ])# _LT_COMPILER_BOILERPLATE
  1454. # _LT_LINKER_BOILERPLATE
  1455. # ----------------------
  1456. # Check for linker boilerplate output or warnings with
  1457. # the simple link test code.
  1458. m4_defun([_LT_LINKER_BOILERPLATE],
  1459. [m4_require([_LT_DECL_SED])dnl
  1460. ac_outfile=conftest.$ac_objext
  1461. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  1462. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  1463. _lt_linker_boilerplate=`cat conftest.err`
  1464. $RM -r conftest*
  1465. ])# _LT_LINKER_BOILERPLATE
  1466. # _LT_REQUIRED_DARWIN_CHECKS
  1467. # -------------------------
  1468. m4_defun_once([_LT_REQUIRED_DARWIN_CHECKS],[
  1469. case $host_os in
  1470. rhapsody* | darwin*)
  1471. AC_CHECK_TOOL([DSYMUTIL], [dsymutil], [:])
  1472. AC_CHECK_TOOL([NMEDIT], [nmedit], [:])
  1473. AC_CHECK_TOOL([LIPO], [lipo], [:])
  1474. AC_CHECK_TOOL([OTOOL], [otool], [:])
  1475. AC_CHECK_TOOL([OTOOL64], [otool64], [:])
  1476. _LT_DECL([], [DSYMUTIL], [1],
  1477. [Tool to manipulate archived DWARF debug symbol files on Mac OS X])
  1478. _LT_DECL([], [NMEDIT], [1],
  1479. [Tool to change global to local symbols on Mac OS X])
  1480. _LT_DECL([], [LIPO], [1],
  1481. [Tool to manipulate fat objects and archives on Mac OS X])
  1482. _LT_DECL([], [OTOOL], [1],
  1483. [ldd/readelf like tool for Mach-O binaries on Mac OS X])
  1484. _LT_DECL([], [OTOOL64], [1],
  1485. [ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4])
  1486. AC_CACHE_CHECK([for -single_module linker flag],[lt_cv_apple_cc_single_mod],
  1487. [lt_cv_apple_cc_single_mod=no
  1488. if test -z "$LT_MULTI_MODULE"; then
  1489. # By default we will add the -single_module flag. You can override
  1490. # by either setting the environment variable LT_MULTI_MODULE
  1491. # non-empty at configure time, or by adding -multi_module to the
  1492. # link flags.
  1493. rm -rf libconftest.dylib*
  1494. echo "int foo(void){return 1;}" > conftest.c
  1495. echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  1496. -dynamiclib -Wl,-single_module conftest.c" >&AS_MESSAGE_LOG_FD
  1497. $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  1498. -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  1499. _lt_result=$?
  1500. # If there is a non-empty error log, and "single_module"
  1501. # appears in it, assume the flag caused a linker warning
  1502. if test -s conftest.err && $GREP single_module conftest.err; then
  1503. cat conftest.err >&AS_MESSAGE_LOG_FD
  1504. # Otherwise, if the output was created with a 0 exit code from
  1505. # the compiler, it worked.
  1506. elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
  1507. lt_cv_apple_cc_single_mod=yes
  1508. else
  1509. cat conftest.err >&AS_MESSAGE_LOG_FD
  1510. fi
  1511. rm -rf libconftest.dylib*
  1512. rm -f conftest.*
  1513. fi])
  1514. AC_CACHE_CHECK([for -exported_symbols_list linker flag],
  1515. [lt_cv_ld_exported_symbols_list],
  1516. [lt_cv_ld_exported_symbols_list=no
  1517. save_LDFLAGS=$LDFLAGS
  1518. echo "_main" > conftest.sym
  1519. LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  1520. AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
  1521. [lt_cv_ld_exported_symbols_list=yes],
  1522. [lt_cv_ld_exported_symbols_list=no])
  1523. LDFLAGS=$save_LDFLAGS
  1524. ])
  1525. AC_CACHE_CHECK([for -force_load linker flag],[lt_cv_ld_force_load],
  1526. [lt_cv_ld_force_load=no
  1527. cat > conftest.c << _LT_EOF
  1528. int forced_loaded() { return 2;}
  1529. _LT_EOF
  1530. echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&AS_MESSAGE_LOG_FD
  1531. $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&AS_MESSAGE_LOG_FD
  1532. echo "$AR cru libconftest.a conftest.o" >&AS_MESSAGE_LOG_FD
  1533. $AR cru libconftest.a conftest.o 2>&AS_MESSAGE_LOG_FD
  1534. echo "$RANLIB libconftest.a" >&AS_MESSAGE_LOG_FD
  1535. $RANLIB libconftest.a 2>&AS_MESSAGE_LOG_FD
  1536. cat > conftest.c << _LT_EOF
  1537. int main() { return 0;}
  1538. _LT_EOF
  1539. echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&AS_MESSAGE_LOG_FD
  1540. $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
  1541. _lt_result=$?
  1542. if test -s conftest.err && $GREP force_load conftest.err; then
  1543. cat conftest.err >&AS_MESSAGE_LOG_FD
  1544. elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
  1545. lt_cv_ld_force_load=yes
  1546. else
  1547. cat conftest.err >&AS_MESSAGE_LOG_FD
  1548. fi
  1549. rm -f conftest.err libconftest.a conftest conftest.c
  1550. rm -rf conftest.dSYM
  1551. ])
  1552. case $host_os in
  1553. rhapsody* | darwin1.[[012]])
  1554. _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
  1555. darwin1.*)
  1556. _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
  1557. darwin*) # darwin 5.x on
  1558. # if running on 10.5 or later, the deployment target defaults
  1559. # to the OS version, if on x86, and 10.4, the deployment
  1560. # target defaults to 10.4. Don't you love it?
  1561. case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
  1562. 10.0,*86*-darwin8*|10.0,*-darwin[[91]]*)
  1563. _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
  1564. 10.[[012]][[,.]]*)
  1565. _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
  1566. 10.*)
  1567. _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
  1568. esac
  1569. ;;
  1570. esac
  1571. if test yes = "$lt_cv_apple_cc_single_mod"; then
  1572. _lt_dar_single_mod='$single_module'
  1573. fi
  1574. if test yes = "$lt_cv_ld_exported_symbols_list"; then
  1575. _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
  1576. else
  1577. _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
  1578. fi
  1579. if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
  1580. _lt_dsymutil='~$DSYMUTIL $lib || :'
  1581. else
  1582. _lt_dsymutil=
  1583. fi
  1584. ;;
  1585. esac
  1586. ])
  1587. # _LT_DARWIN_LINKER_FEATURES([TAG])
  1588. # ---------------------------------
  1589. # Checks for linker and compiler features on darwin
  1590. m4_defun([_LT_DARWIN_LINKER_FEATURES],
  1591. [
  1592. m4_require([_LT_REQUIRED_DARWIN_CHECKS])
  1593. _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  1594. _LT_TAGVAR(hardcode_direct, $1)=no
  1595. _LT_TAGVAR(hardcode_automatic, $1)=yes
  1596. _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
  1597. if test yes = "$lt_cv_ld_force_load"; then
  1598. _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\"`'
  1599. m4_case([$1], [F77], [_LT_TAGVAR(compiler_needs_object, $1)=yes],
  1600. [FC], [_LT_TAGVAR(compiler_needs_object, $1)=yes])
  1601. else
  1602. _LT_TAGVAR(whole_archive_flag_spec, $1)=''
  1603. fi
  1604. _LT_TAGVAR(link_all_deplibs, $1)=yes
  1605. _LT_TAGVAR(allow_undefined_flag, $1)=$_lt_dar_allow_undefined
  1606. case $cc_basename in
  1607. ifort*|nagfor*) _lt_dar_can_shared=yes ;;
  1608. *) _lt_dar_can_shared=$GCC ;;
  1609. esac
  1610. if test yes = "$_lt_dar_can_shared"; then
  1611. output_verbose_link_cmd=func_echo_all
  1612. _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"
  1613. _LT_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
  1614. _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"
  1615. _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"
  1616. m4_if([$1], [CXX],
  1617. [ if test yes != "$lt_cv_apple_cc_single_mod"; then
  1618. _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"
  1619. _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"
  1620. fi
  1621. ],[])
  1622. else
  1623. _LT_TAGVAR(ld_shlibs, $1)=no
  1624. fi
  1625. ])
  1626. # _LT_SYS_MODULE_PATH_AIX([TAGNAME])
  1627. # ----------------------------------
  1628. # Links a minimal program and checks the executable
  1629. # for the system default hardcoded library path. In most cases,
  1630. # this is /usr/lib:/lib, but when the MPI compilers are used
  1631. # the location of the communication and MPI libs are included too.
  1632. # If we don't find anything, use the default library path according
  1633. # to the aix ld manual.
  1634. # Store the results from the different compilers for each TAGNAME.
  1635. # Allow to override them for all tags through lt_cv_aix_libpath.
  1636. m4_defun([_LT_SYS_MODULE_PATH_AIX],
  1637. [m4_require([_LT_DECL_SED])dnl
  1638. if test set = "${lt_cv_aix_libpath+set}"; then
  1639. aix_libpath=$lt_cv_aix_libpath
  1640. else
  1641. AC_CACHE_VAL([_LT_TAGVAR([lt_cv_aix_libpath_], [$1])],
  1642. [AC_LINK_IFELSE([AC_LANG_PROGRAM],[
  1643. lt_aix_libpath_sed='[
  1644. /Import File Strings/,/^$/ {
  1645. /^0/ {
  1646. s/^0 *\([^ ]*\) *$/\1/
  1647. p
  1648. }
  1649. }]'
  1650. _LT_TAGVAR([lt_cv_aix_libpath_], [$1])=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  1651. # Check for a 64-bit object if we didn't find anything.
  1652. if test -z "$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])"; then
  1653. _LT_TAGVAR([lt_cv_aix_libpath_], [$1])=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  1654. fi],[])
  1655. if test -z "$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])"; then
  1656. _LT_TAGVAR([lt_cv_aix_libpath_], [$1])=/usr/lib:/lib
  1657. fi
  1658. ])
  1659. aix_libpath=$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])
  1660. fi
  1661. ])# _LT_SYS_MODULE_PATH_AIX
  1662. # _LT_SHELL_INIT(ARG)
  1663. # -------------------
  1664. m4_define([_LT_SHELL_INIT],
  1665. [m4_divert_text([M4SH-INIT], [$1
  1666. ])])# _LT_SHELL_INIT
  1667. # _LT_PROG_ECHO_BACKSLASH
  1668. # -----------------------
  1669. # Find how we can fake an echo command that does not interpret backslash.
  1670. # In particular, with Autoconf 2.60 or later we add some code to the start
  1671. # of the generated configure script that will find a shell with a builtin
  1672. # printf (that we can use as an echo command).
  1673. m4_defun([_LT_PROG_ECHO_BACKSLASH],
  1674. [ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  1675. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
  1676. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
  1677. AC_MSG_CHECKING([how to print strings])
  1678. # Test print first, because it will be a builtin if present.
  1679. if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
  1680. test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
  1681. ECHO='print -r --'
  1682. elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
  1683. ECHO='printf %s\n'
  1684. else
  1685. # Use this function as a fallback that always works.
  1686. func_fallback_echo ()
  1687. {
  1688. eval 'cat <<_LTECHO_EOF
  1689. $[]1
  1690. _LTECHO_EOF'
  1691. }
  1692. ECHO='func_fallback_echo'
  1693. fi
  1694. # func_echo_all arg...
  1695. # Invoke $ECHO with all args, space-separated.
  1696. func_echo_all ()
  1697. {
  1698. $ECHO "$*"
  1699. }
  1700. case $ECHO in
  1701. printf*) AC_MSG_RESULT([printf]) ;;
  1702. print*) AC_MSG_RESULT([print -r]) ;;
  1703. *) AC_MSG_RESULT([cat]) ;;
  1704. esac
  1705. m4_ifdef([_AS_DETECT_SUGGESTED],
  1706. [_AS_DETECT_SUGGESTED([
  1707. test -n "${ZSH_VERSION+set}${BASH_VERSION+set}" || (
  1708. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  1709. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
  1710. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
  1711. PATH=/empty FPATH=/empty; export PATH FPATH
  1712. test "X`printf %s $ECHO`" = "X$ECHO" \
  1713. || test "X`print -r -- $ECHO`" = "X$ECHO" )])])
  1714. _LT_DECL([], [SHELL], [1], [Shell to use when invoking shell scripts])
  1715. _LT_DECL([], [ECHO], [1], [An echo program that protects backslashes])
  1716. ])# _LT_PROG_ECHO_BACKSLASH
  1717. # _LT_WITH_SYSROOT
  1718. # ----------------
  1719. AC_DEFUN([_LT_WITH_SYSROOT],
  1720. [AC_MSG_CHECKING([for sysroot])
  1721. AC_ARG_WITH([sysroot],
  1722. [AS_HELP_STRING([--with-sysroot@<:@=DIR@:>@],
  1723. [Search for dependent libraries within DIR (or the compiler's sysroot
  1724. if not specified).])],
  1725. [], [with_sysroot=no])
  1726. dnl lt_sysroot will always be passed unquoted. We quote it here
  1727. dnl in case the user passed a directory name.
  1728. lt_sysroot=
  1729. case $with_sysroot in #(
  1730. yes)
  1731. if test yes = "$GCC"; then
  1732. lt_sysroot=`$CC --print-sysroot 2>/dev/null`
  1733. fi
  1734. ;; #(
  1735. /*)
  1736. lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
  1737. ;; #(
  1738. no|'')
  1739. ;; #(
  1740. *)
  1741. AC_MSG_RESULT([$with_sysroot])
  1742. AC_MSG_ERROR([The sysroot must be an absolute path.])
  1743. ;;
  1744. esac
  1745. AC_MSG_RESULT([${lt_sysroot:-no}])
  1746. _LT_DECL([], [lt_sysroot], [0], [The root where to search for ]dnl
  1747. [dependent libraries, and where our libraries should be installed.])])
  1748. # _LT_ENABLE_LOCK
  1749. # ---------------
  1750. m4_defun([_LT_ENABLE_LOCK],
  1751. [AC_ARG_ENABLE([libtool-lock],
  1752. [AS_HELP_STRING([--disable-libtool-lock],
  1753. [avoid locking (might break parallel builds)])])
  1754. test no = "$enable_libtool_lock" || enable_libtool_lock=yes
  1755. # Some flags need to be propagated to the compiler or linker for good
  1756. # libtool support.
  1757. case $host in
  1758. ia64-*-hpux*)
  1759. # Find out what ABI is being produced by ac_compile, and set mode
  1760. # options accordingly.
  1761. echo 'int i;' > conftest.$ac_ext
  1762. if AC_TRY_EVAL(ac_compile); then
  1763. case `/usr/bin/file conftest.$ac_objext` in
  1764. *ELF-32*)
  1765. HPUX_IA64_MODE=32
  1766. ;;
  1767. *ELF-64*)
  1768. HPUX_IA64_MODE=64
  1769. ;;
  1770. esac
  1771. fi
  1772. rm -rf conftest*
  1773. ;;
  1774. *-*-irix6*)
  1775. # Find out what ABI is being produced by ac_compile, and set linker
  1776. # options accordingly.
  1777. echo '[#]line '$LINENO' "configure"' > conftest.$ac_ext
  1778. if AC_TRY_EVAL(ac_compile); then
  1779. if test yes = "$lt_cv_prog_gnu_ld"; then
  1780. case `/usr/bin/file conftest.$ac_objext` in
  1781. *32-bit*)
  1782. LD="${LD-ld} -melf32bsmip"
  1783. ;;
  1784. *N32*)
  1785. LD="${LD-ld} -melf32bmipn32"
  1786. ;;
  1787. *64-bit*)
  1788. LD="${LD-ld} -melf64bmip"
  1789. ;;
  1790. esac
  1791. else
  1792. case `/usr/bin/file conftest.$ac_objext` in
  1793. *32-bit*)
  1794. LD="${LD-ld} -32"
  1795. ;;
  1796. *N32*)
  1797. LD="${LD-ld} -n32"
  1798. ;;
  1799. *64-bit*)
  1800. LD="${LD-ld} -64"
  1801. ;;
  1802. esac
  1803. fi
  1804. fi
  1805. rm -rf conftest*
  1806. ;;
  1807. mips64*-*linux*)
  1808. # Find out what ABI is being produced by ac_compile, and set linker
  1809. # options accordingly.
  1810. echo '[#]line '$LINENO' "configure"' > conftest.$ac_ext
  1811. if AC_TRY_EVAL(ac_compile); then
  1812. emul=elf
  1813. case `/usr/bin/file conftest.$ac_objext` in
  1814. *32-bit*)
  1815. emul="${emul}32"
  1816. ;;
  1817. *64-bit*)
  1818. emul="${emul}64"
  1819. ;;
  1820. esac
  1821. case `/usr/bin/file conftest.$ac_objext` in
  1822. *MSB*)
  1823. emul="${emul}btsmip"
  1824. ;;
  1825. *LSB*)
  1826. emul="${emul}ltsmip"
  1827. ;;
  1828. esac
  1829. case `/usr/bin/file conftest.$ac_objext` in
  1830. *N32*)
  1831. emul="${emul}n32"
  1832. ;;
  1833. esac
  1834. LD="${LD-ld} -m $emul"
  1835. fi
  1836. rm -rf conftest*
  1837. ;;
  1838. x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
  1839. s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  1840. # Find out what ABI is being produced by ac_compile, and set linker
  1841. # options accordingly. Note that the listed cases only cover the
  1842. # situations where additional linker options are needed (such as when
  1843. # doing 32-bit compilation for a host where ld defaults to 64-bit, or
  1844. # vice versa); the common cases where no linker options are needed do
  1845. # not appear in the list.
  1846. echo 'int i;' > conftest.$ac_ext
  1847. if AC_TRY_EVAL(ac_compile); then
  1848. case `/usr/bin/file conftest.o` in
  1849. *32-bit*)
  1850. case $host in
  1851. x86_64-*kfreebsd*-gnu)
  1852. LD="${LD-ld} -m elf_i386_fbsd"
  1853. ;;
  1854. x86_64-*linux*)
  1855. case `/usr/bin/file conftest.o` in
  1856. *x86-64*)
  1857. LD="${LD-ld} -m elf32_x86_64"
  1858. ;;
  1859. *)
  1860. LD="${LD-ld} -m elf_i386"
  1861. ;;
  1862. esac
  1863. ;;
  1864. powerpc64le-*linux*)
  1865. LD="${LD-ld} -m elf32lppclinux"
  1866. ;;
  1867. powerpc64-*linux*)
  1868. LD="${LD-ld} -m elf32ppclinux"
  1869. ;;
  1870. s390x-*linux*)
  1871. LD="${LD-ld} -m elf_s390"
  1872. ;;
  1873. sparc64-*linux*)
  1874. LD="${LD-ld} -m elf32_sparc"
  1875. ;;
  1876. esac
  1877. ;;
  1878. *64-bit*)
  1879. case $host in
  1880. x86_64-*kfreebsd*-gnu)
  1881. LD="${LD-ld} -m elf_x86_64_fbsd"
  1882. ;;
  1883. x86_64-*linux*)
  1884. LD="${LD-ld} -m elf_x86_64"
  1885. ;;
  1886. powerpcle-*linux*)
  1887. LD="${LD-ld} -m elf64lppc"
  1888. ;;
  1889. powerpc-*linux*)
  1890. LD="${LD-ld} -m elf64ppc"
  1891. ;;
  1892. s390*-*linux*|s390*-*tpf*)
  1893. LD="${LD-ld} -m elf64_s390"
  1894. ;;
  1895. sparc*-*linux*)
  1896. LD="${LD-ld} -m elf64_sparc"
  1897. ;;
  1898. esac
  1899. ;;
  1900. esac
  1901. fi
  1902. rm -rf conftest*
  1903. ;;
  1904. *-*-sco3.2v5*)
  1905. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  1906. SAVE_CFLAGS=$CFLAGS
  1907. CFLAGS="$CFLAGS -belf"
  1908. AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf,
  1909. [AC_LANG_PUSH(C)
  1910. AC_LINK_IFELSE([AC_LANG_PROGRAM([[]],[[]])],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])
  1911. AC_LANG_POP])
  1912. if test yes != "$lt_cv_cc_needs_belf"; then
  1913. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  1914. CFLAGS=$SAVE_CFLAGS
  1915. fi
  1916. ;;
  1917. *-*solaris*)
  1918. # Find out what ABI is being produced by ac_compile, and set linker
  1919. # options accordingly.
  1920. echo 'int i;' > conftest.$ac_ext
  1921. if AC_TRY_EVAL(ac_compile); then
  1922. case `/usr/bin/file conftest.o` in
  1923. *64-bit*)
  1924. case $lt_cv_prog_gnu_ld in
  1925. yes*)
  1926. case $host in
  1927. i?86-*-solaris*|x86_64-*-solaris*)
  1928. LD="${LD-ld} -m elf_x86_64"
  1929. ;;
  1930. sparc*-*-solaris*)
  1931. LD="${LD-ld} -m elf64_sparc"
  1932. ;;
  1933. esac
  1934. # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
  1935. if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
  1936. LD=${LD-ld}_sol2
  1937. fi
  1938. ;;
  1939. *)
  1940. if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  1941. LD="${LD-ld} -64"
  1942. fi
  1943. ;;
  1944. esac
  1945. ;;
  1946. esac
  1947. fi
  1948. rm -rf conftest*
  1949. ;;
  1950. esac
  1951. need_locks=$enable_libtool_lock
  1952. ])# _LT_ENABLE_LOCK
  1953. # _LT_PROG_AR
  1954. # -----------
  1955. m4_defun([_LT_PROG_AR],
  1956. [AC_CHECK_TOOLS(AR, [ar], false)
  1957. : ${AR=ar}
  1958. : ${AR_FLAGS=cru}
  1959. _LT_DECL([], [AR], [1], [The archiver])
  1960. _LT_DECL([], [AR_FLAGS], [1], [Flags to create an archive])
  1961. AC_CACHE_CHECK([for archiver @FILE support], [lt_cv_ar_at_file],
  1962. [lt_cv_ar_at_file=no
  1963. AC_COMPILE_IFELSE([AC_LANG_PROGRAM],
  1964. [echo conftest.$ac_objext > conftest.lst
  1965. lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&AS_MESSAGE_LOG_FD'
  1966. AC_TRY_EVAL([lt_ar_try])
  1967. if test 0 -eq "$ac_status"; then
  1968. # Ensure the archiver fails upon bogus file names.
  1969. rm -f conftest.$ac_objext libconftest.a
  1970. AC_TRY_EVAL([lt_ar_try])
  1971. if test 0 -ne "$ac_status"; then
  1972. lt_cv_ar_at_file=@
  1973. fi
  1974. fi
  1975. rm -f conftest.* libconftest.a
  1976. ])
  1977. ])
  1978. if test no = "$lt_cv_ar_at_file"; then
  1979. archiver_list_spec=
  1980. else
  1981. archiver_list_spec=$lt_cv_ar_at_file
  1982. fi
  1983. _LT_DECL([], [archiver_list_spec], [1],
  1984. [How to feed a file listing to the archiver])
  1985. ])# _LT_PROG_AR
  1986. # _LT_CMD_OLD_ARCHIVE
  1987. # -------------------
  1988. m4_defun([_LT_CMD_OLD_ARCHIVE],
  1989. [_LT_PROG_AR
  1990. AC_CHECK_TOOL(STRIP, strip, :)
  1991. test -z "$STRIP" && STRIP=:
  1992. _LT_DECL([], [STRIP], [1], [A symbol stripping program])
  1993. AC_CHECK_TOOL(RANLIB, ranlib, :)
  1994. test -z "$RANLIB" && RANLIB=:
  1995. _LT_DECL([], [RANLIB], [1],
  1996. [Commands used to install an old-style archive])
  1997. # Determine commands to create old-style static archives.
  1998. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  1999. old_postinstall_cmds='chmod 644 $oldlib'
  2000. old_postuninstall_cmds=
  2001. if test -n "$RANLIB"; then
  2002. case $host_os in
  2003. bitrig* | openbsd*)
  2004. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
  2005. ;;
  2006. *)
  2007. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
  2008. ;;
  2009. esac
  2010. old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
  2011. fi
  2012. case $host_os in
  2013. darwin*)
  2014. lock_old_archive_extraction=yes ;;
  2015. *)
  2016. lock_old_archive_extraction=no ;;
  2017. esac
  2018. _LT_DECL([], [old_postinstall_cmds], [2])
  2019. _LT_DECL([], [old_postuninstall_cmds], [2])
  2020. _LT_TAGDECL([], [old_archive_cmds], [2],
  2021. [Commands used to build an old-style archive])
  2022. _LT_DECL([], [lock_old_archive_extraction], [0],
  2023. [Whether to use a lock for old archive extraction])
  2024. ])# _LT_CMD_OLD_ARCHIVE
  2025. # _LT_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
  2026. # [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE])
  2027. # ----------------------------------------------------------------
  2028. # Check whether the given compiler option works
  2029. AC_DEFUN([_LT_COMPILER_OPTION],
  2030. [m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  2031. m4_require([_LT_DECL_SED])dnl
  2032. AC_CACHE_CHECK([$1], [$2],
  2033. [$2=no
  2034. m4_if([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4])
  2035. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  2036. lt_compiler_flag="$3" ## exclude from sc_useless_quotes_in_assignment
  2037. # Insert the option either (1) after the last *FLAGS variable, or
  2038. # (2) before a word containing "conftest.", or (3) at the end.
  2039. # Note that $ac_compile itself does not contain backslashes and begins
  2040. # with a dollar sign (not a hyphen), so the echo should work correctly.
  2041. # The option is referenced via a variable to avoid confusing sed.
  2042. lt_compile=`echo "$ac_compile" | $SED \
  2043. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  2044. -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
  2045. -e 's:$: $lt_compiler_flag:'`
  2046. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
  2047. (eval "$lt_compile" 2>conftest.err)
  2048. ac_status=$?
  2049. cat conftest.err >&AS_MESSAGE_LOG_FD
  2050. echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
  2051. if (exit $ac_status) && test -s "$ac_outfile"; then
  2052. # The compiler can only warn and ignore the option if not recognized
  2053. # So say no if there are warnings other than the usual output.
  2054. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  2055. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  2056. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  2057. $2=yes
  2058. fi
  2059. fi
  2060. $RM conftest*
  2061. ])
  2062. if test yes = "[$]$2"; then
  2063. m4_if([$5], , :, [$5])
  2064. else
  2065. m4_if([$6], , :, [$6])
  2066. fi
  2067. ])# _LT_COMPILER_OPTION
  2068. # Old name:
  2069. AU_ALIAS([AC_LIBTOOL_COMPILER_OPTION], [_LT_COMPILER_OPTION])
  2070. dnl aclocal-1.4 backwards compatibility:
  2071. dnl AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION], [])
  2072. # _LT_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
  2073. # [ACTION-SUCCESS], [ACTION-FAILURE])
  2074. # ----------------------------------------------------
  2075. # Check whether the given linker option works
  2076. AC_DEFUN([_LT_LINKER_OPTION],
  2077. [m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  2078. m4_require([_LT_DECL_SED])dnl
  2079. AC_CACHE_CHECK([$1], [$2],
  2080. [$2=no
  2081. save_LDFLAGS=$LDFLAGS
  2082. LDFLAGS="$LDFLAGS $3"
  2083. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  2084. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  2085. # The linker can only warn and ignore the option if not recognized
  2086. # So say no if there are warnings
  2087. if test -s conftest.err; then
  2088. # Append any errors to the config.log.
  2089. cat conftest.err 1>&AS_MESSAGE_LOG_FD
  2090. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  2091. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  2092. if diff conftest.exp conftest.er2 >/dev/null; then
  2093. $2=yes
  2094. fi
  2095. else
  2096. $2=yes
  2097. fi
  2098. fi
  2099. $RM -r conftest*
  2100. LDFLAGS=$save_LDFLAGS
  2101. ])
  2102. if test yes = "[$]$2"; then
  2103. m4_if([$4], , :, [$4])
  2104. else
  2105. m4_if([$5], , :, [$5])
  2106. fi
  2107. ])# _LT_LINKER_OPTION
  2108. # Old name:
  2109. AU_ALIAS([AC_LIBTOOL_LINKER_OPTION], [_LT_LINKER_OPTION])
  2110. dnl aclocal-1.4 backwards compatibility:
  2111. dnl AC_DEFUN([AC_LIBTOOL_LINKER_OPTION], [])
  2112. # LT_CMD_MAX_LEN
  2113. #---------------
  2114. AC_DEFUN([LT_CMD_MAX_LEN],
  2115. [AC_REQUIRE([AC_CANONICAL_HOST])dnl
  2116. # find the maximum length of command line arguments
  2117. AC_MSG_CHECKING([the maximum length of command line arguments])
  2118. AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl
  2119. i=0
  2120. teststring=ABCD
  2121. case $build_os in
  2122. msdosdjgpp*)
  2123. # On DJGPP, this test can blow up pretty badly due to problems in libc
  2124. # (any single argument exceeding 2000 bytes causes a buffer overrun
  2125. # during glob expansion). Even if it were fixed, the result of this
  2126. # check would be larger than it should be.
  2127. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  2128. ;;
  2129. gnu*)
  2130. # Under GNU Hurd, this test is not required because there is
  2131. # no limit to the length of command line arguments.
  2132. # Libtool will interpret -1 as no limit whatsoever
  2133. lt_cv_sys_max_cmd_len=-1;
  2134. ;;
  2135. cygwin* | mingw* | cegcc*)
  2136. # On Win9x/ME, this test blows up -- it succeeds, but takes
  2137. # about 5 minutes as the teststring grows exponentially.
  2138. # Worse, since 9x/ME are not pre-emptively multitasking,
  2139. # you end up with a "frozen" computer, even though with patience
  2140. # the test eventually succeeds (with a max line length of 256k).
  2141. # Instead, let's just punt: use the minimum linelength reported by
  2142. # all of the supported platforms: 8192 (on NT/2K/XP).
  2143. lt_cv_sys_max_cmd_len=8192;
  2144. ;;
  2145. mint*)
  2146. # On MiNT this can take a long time and run out of memory.
  2147. lt_cv_sys_max_cmd_len=8192;
  2148. ;;
  2149. amigaos*)
  2150. # On AmigaOS with pdksh, this test takes hours, literally.
  2151. # So we just punt and use a minimum line length of 8192.
  2152. lt_cv_sys_max_cmd_len=8192;
  2153. ;;
  2154. bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
  2155. # This has been around since 386BSD, at least. Likely further.
  2156. if test -x /sbin/sysctl; then
  2157. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  2158. elif test -x /usr/sbin/sysctl; then
  2159. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  2160. else
  2161. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  2162. fi
  2163. # And add a safety zone
  2164. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  2165. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  2166. ;;
  2167. interix*)
  2168. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  2169. lt_cv_sys_max_cmd_len=196608
  2170. ;;
  2171. os2*)
  2172. # The test takes a long time on OS/2.
  2173. lt_cv_sys_max_cmd_len=8192
  2174. ;;
  2175. osf*)
  2176. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  2177. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  2178. # nice to cause kernel panics so lets avoid the loop below.
  2179. # First set a reasonable default.
  2180. lt_cv_sys_max_cmd_len=16384
  2181. #
  2182. if test -x /sbin/sysconfig; then
  2183. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  2184. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  2185. esac
  2186. fi
  2187. ;;
  2188. sco3.2v5*)
  2189. lt_cv_sys_max_cmd_len=102400
  2190. ;;
  2191. sysv5* | sco5v6* | sysv4.2uw2*)
  2192. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  2193. if test -n "$kargmax"; then
  2194. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[ ]]//'`
  2195. else
  2196. lt_cv_sys_max_cmd_len=32768
  2197. fi
  2198. ;;
  2199. *)
  2200. lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  2201. if test -n "$lt_cv_sys_max_cmd_len" && \
  2202. test undefined != "$lt_cv_sys_max_cmd_len"; then
  2203. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  2204. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  2205. else
  2206. # Make teststring a little bigger before we do anything with it.
  2207. # a 1K string should be a reasonable start.
  2208. for i in 1 2 3 4 5 6 7 8; do
  2209. teststring=$teststring$teststring
  2210. done
  2211. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  2212. # If test is not a shell built-in, we'll probably end up computing a
  2213. # maximum length that is only half of the actual maximum length, but
  2214. # we can't tell.
  2215. while { test X`env echo "$teststring$teststring" 2>/dev/null` \
  2216. = "X$teststring$teststring"; } >/dev/null 2>&1 &&
  2217. test 17 != "$i" # 1/2 MB should be enough
  2218. do
  2219. i=`expr $i + 1`
  2220. teststring=$teststring$teststring
  2221. done
  2222. # Only check the string length outside the loop.
  2223. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  2224. teststring=
  2225. # Add a significant safety factor because C++ compilers can tack on
  2226. # massive amounts of additional arguments before passing them to the
  2227. # linker. It appears as though 1/2 is a usable value.
  2228. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  2229. fi
  2230. ;;
  2231. esac
  2232. ])
  2233. if test -n "$lt_cv_sys_max_cmd_len"; then
  2234. AC_MSG_RESULT($lt_cv_sys_max_cmd_len)
  2235. else
  2236. AC_MSG_RESULT(none)
  2237. fi
  2238. max_cmd_len=$lt_cv_sys_max_cmd_len
  2239. _LT_DECL([], [max_cmd_len], [0],
  2240. [What is the maximum length of a command?])
  2241. ])# LT_CMD_MAX_LEN
  2242. # Old name:
  2243. AU_ALIAS([AC_LIBTOOL_SYS_MAX_CMD_LEN], [LT_CMD_MAX_LEN])
  2244. dnl aclocal-1.4 backwards compatibility:
  2245. dnl AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN], [])
  2246. # _LT_HEADER_DLFCN
  2247. # ----------------
  2248. m4_defun([_LT_HEADER_DLFCN],
  2249. [AC_CHECK_HEADERS([dlfcn.h], [], [], [AC_INCLUDES_DEFAULT])dnl
  2250. ])# _LT_HEADER_DLFCN
  2251. # _LT_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
  2252. # ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
  2253. # ----------------------------------------------------------------
  2254. m4_defun([_LT_TRY_DLOPEN_SELF],
  2255. [m4_require([_LT_HEADER_DLFCN])dnl
  2256. if test yes = "$cross_compiling"; then :
  2257. [$4]
  2258. else
  2259. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  2260. lt_status=$lt_dlunknown
  2261. cat > conftest.$ac_ext <<_LT_EOF
  2262. [#line $LINENO "configure"
  2263. #include "confdefs.h"
  2264. #if HAVE_DLFCN_H
  2265. #include <dlfcn.h>
  2266. #endif
  2267. #include <stdio.h>
  2268. #ifdef RTLD_GLOBAL
  2269. # define LT_DLGLOBAL RTLD_GLOBAL
  2270. #else
  2271. # ifdef DL_GLOBAL
  2272. # define LT_DLGLOBAL DL_GLOBAL
  2273. # else
  2274. # define LT_DLGLOBAL 0
  2275. # endif
  2276. #endif
  2277. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  2278. find out it does not work in some platform. */
  2279. #ifndef LT_DLLAZY_OR_NOW
  2280. # ifdef RTLD_LAZY
  2281. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  2282. # else
  2283. # ifdef DL_LAZY
  2284. # define LT_DLLAZY_OR_NOW DL_LAZY
  2285. # else
  2286. # ifdef RTLD_NOW
  2287. # define LT_DLLAZY_OR_NOW RTLD_NOW
  2288. # else
  2289. # ifdef DL_NOW
  2290. # define LT_DLLAZY_OR_NOW DL_NOW
  2291. # else
  2292. # define LT_DLLAZY_OR_NOW 0
  2293. # endif
  2294. # endif
  2295. # endif
  2296. # endif
  2297. #endif
  2298. /* When -fvisibility=hidden is used, assume the code has been annotated
  2299. correspondingly for the symbols needed. */
  2300. #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  2301. int fnord () __attribute__((visibility("default")));
  2302. #endif
  2303. int fnord () { return 42; }
  2304. int main ()
  2305. {
  2306. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  2307. int status = $lt_dlunknown;
  2308. if (self)
  2309. {
  2310. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  2311. else
  2312. {
  2313. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  2314. else puts (dlerror ());
  2315. }
  2316. /* dlclose (self); */
  2317. }
  2318. else
  2319. puts (dlerror ());
  2320. return status;
  2321. }]
  2322. _LT_EOF
  2323. if AC_TRY_EVAL(ac_link) && test -s "conftest$ac_exeext" 2>/dev/null; then
  2324. (./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null
  2325. lt_status=$?
  2326. case x$lt_status in
  2327. x$lt_dlno_uscore) $1 ;;
  2328. x$lt_dlneed_uscore) $2 ;;
  2329. x$lt_dlunknown|x*) $3 ;;
  2330. esac
  2331. else :
  2332. # compilation failed
  2333. $3
  2334. fi
  2335. fi
  2336. rm -fr conftest*
  2337. ])# _LT_TRY_DLOPEN_SELF
  2338. # LT_SYS_DLOPEN_SELF
  2339. # ------------------
  2340. AC_DEFUN([LT_SYS_DLOPEN_SELF],
  2341. [m4_require([_LT_HEADER_DLFCN])dnl
  2342. if test yes != "$enable_dlopen"; then
  2343. enable_dlopen=unknown
  2344. enable_dlopen_self=unknown
  2345. enable_dlopen_self_static=unknown
  2346. else
  2347. lt_cv_dlopen=no
  2348. lt_cv_dlopen_libs=
  2349. case $host_os in
  2350. beos*)
  2351. lt_cv_dlopen=load_add_on
  2352. lt_cv_dlopen_libs=
  2353. lt_cv_dlopen_self=yes
  2354. ;;
  2355. mingw* | pw32* | cegcc*)
  2356. lt_cv_dlopen=LoadLibrary
  2357. lt_cv_dlopen_libs=
  2358. ;;
  2359. cygwin*)
  2360. lt_cv_dlopen=dlopen
  2361. lt_cv_dlopen_libs=
  2362. ;;
  2363. darwin*)
  2364. # if libdl is installed we need to link against it
  2365. AC_CHECK_LIB([dl], [dlopen],
  2366. [lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl],[
  2367. lt_cv_dlopen=dyld
  2368. lt_cv_dlopen_libs=
  2369. lt_cv_dlopen_self=yes
  2370. ])
  2371. ;;
  2372. tpf*)
  2373. # Don't try to run any link tests for TPF. We know it's impossible
  2374. # because TPF is a cross-compiler, and we know how we open DSOs.
  2375. lt_cv_dlopen=dlopen
  2376. lt_cv_dlopen_libs=
  2377. lt_cv_dlopen_self=no
  2378. ;;
  2379. *)
  2380. AC_CHECK_FUNC([shl_load],
  2381. [lt_cv_dlopen=shl_load],
  2382. [AC_CHECK_LIB([dld], [shl_load],
  2383. [lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld],
  2384. [AC_CHECK_FUNC([dlopen],
  2385. [lt_cv_dlopen=dlopen],
  2386. [AC_CHECK_LIB([dl], [dlopen],
  2387. [lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl],
  2388. [AC_CHECK_LIB([svld], [dlopen],
  2389. [lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld],
  2390. [AC_CHECK_LIB([dld], [dld_link],
  2391. [lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld])
  2392. ])
  2393. ])
  2394. ])
  2395. ])
  2396. ])
  2397. ;;
  2398. esac
  2399. if test no = "$lt_cv_dlopen"; then
  2400. enable_dlopen=no
  2401. else
  2402. enable_dlopen=yes
  2403. fi
  2404. case $lt_cv_dlopen in
  2405. dlopen)
  2406. save_CPPFLAGS=$CPPFLAGS
  2407. test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  2408. save_LDFLAGS=$LDFLAGS
  2409. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  2410. save_LIBS=$LIBS
  2411. LIBS="$lt_cv_dlopen_libs $LIBS"
  2412. AC_CACHE_CHECK([whether a program can dlopen itself],
  2413. lt_cv_dlopen_self, [dnl
  2414. _LT_TRY_DLOPEN_SELF(
  2415. lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes,
  2416. lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross)
  2417. ])
  2418. if test yes = "$lt_cv_dlopen_self"; then
  2419. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  2420. AC_CACHE_CHECK([whether a statically linked program can dlopen itself],
  2421. lt_cv_dlopen_self_static, [dnl
  2422. _LT_TRY_DLOPEN_SELF(
  2423. lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes,
  2424. lt_cv_dlopen_self_static=no, lt_cv_dlopen_self_static=cross)
  2425. ])
  2426. fi
  2427. CPPFLAGS=$save_CPPFLAGS
  2428. LDFLAGS=$save_LDFLAGS
  2429. LIBS=$save_LIBS
  2430. ;;
  2431. esac
  2432. case $lt_cv_dlopen_self in
  2433. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  2434. *) enable_dlopen_self=unknown ;;
  2435. esac
  2436. case $lt_cv_dlopen_self_static in
  2437. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  2438. *) enable_dlopen_self_static=unknown ;;
  2439. esac
  2440. fi
  2441. _LT_DECL([dlopen_support], [enable_dlopen], [0],
  2442. [Whether dlopen is supported])
  2443. _LT_DECL([dlopen_self], [enable_dlopen_self], [0],
  2444. [Whether dlopen of programs is supported])
  2445. _LT_DECL([dlopen_self_static], [enable_dlopen_self_static], [0],
  2446. [Whether dlopen of statically linked programs is supported])
  2447. ])# LT_SYS_DLOPEN_SELF
  2448. # Old name:
  2449. AU_ALIAS([AC_LIBTOOL_DLOPEN_SELF], [LT_SYS_DLOPEN_SELF])
  2450. dnl aclocal-1.4 backwards compatibility:
  2451. dnl AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF], [])
  2452. # _LT_COMPILER_C_O([TAGNAME])
  2453. # ---------------------------
  2454. # Check to see if options -c and -o are simultaneously supported by compiler.
  2455. # This macro does not hard code the compiler like AC_PROG_CC_C_O.
  2456. m4_defun([_LT_COMPILER_C_O],
  2457. [m4_require([_LT_DECL_SED])dnl
  2458. m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  2459. m4_require([_LT_TAG_COMPILER])dnl
  2460. AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext],
  2461. [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)],
  2462. [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no
  2463. $RM -r conftest 2>/dev/null
  2464. mkdir conftest
  2465. cd conftest
  2466. mkdir out
  2467. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  2468. lt_compiler_flag="-o out/conftest2.$ac_objext"
  2469. # Insert the option either (1) after the last *FLAGS variable, or
  2470. # (2) before a word containing "conftest.", or (3) at the end.
  2471. # Note that $ac_compile itself does not contain backslashes and begins
  2472. # with a dollar sign (not a hyphen), so the echo should work correctly.
  2473. lt_compile=`echo "$ac_compile" | $SED \
  2474. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  2475. -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
  2476. -e 's:$: $lt_compiler_flag:'`
  2477. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
  2478. (eval "$lt_compile" 2>out/conftest.err)
  2479. ac_status=$?
  2480. cat out/conftest.err >&AS_MESSAGE_LOG_FD
  2481. echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
  2482. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  2483. then
  2484. # The compiler can only warn and ignore the option if not recognized
  2485. # So say no if there are warnings
  2486. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  2487. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  2488. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  2489. _LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
  2490. fi
  2491. fi
  2492. chmod u+w . 2>&AS_MESSAGE_LOG_FD
  2493. $RM conftest*
  2494. # SGI C++ compiler will create directory out/ii_files/ for
  2495. # template instantiation
  2496. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  2497. $RM out/* && rmdir out
  2498. cd ..
  2499. $RM -r conftest
  2500. $RM conftest*
  2501. ])
  2502. _LT_TAGDECL([compiler_c_o], [lt_cv_prog_compiler_c_o], [1],
  2503. [Does compiler simultaneously support -c and -o options?])
  2504. ])# _LT_COMPILER_C_O
  2505. # _LT_COMPILER_FILE_LOCKS([TAGNAME])
  2506. # ----------------------------------
  2507. # Check to see if we can do hard links to lock some files if needed
  2508. m4_defun([_LT_COMPILER_FILE_LOCKS],
  2509. [m4_require([_LT_ENABLE_LOCK])dnl
  2510. m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  2511. _LT_COMPILER_C_O([$1])
  2512. hard_links=nottested
  2513. if test no = "$_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)" && test no != "$need_locks"; then
  2514. # do not overwrite the value of need_locks provided by the user
  2515. AC_MSG_CHECKING([if we can lock with hard links])
  2516. hard_links=yes
  2517. $RM conftest*
  2518. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  2519. touch conftest.a
  2520. ln conftest.a conftest.b 2>&5 || hard_links=no
  2521. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  2522. AC_MSG_RESULT([$hard_links])
  2523. if test no = "$hard_links"; then
  2524. AC_MSG_WARN(['$CC' does not support '-c -o', so 'make -j' may be unsafe])
  2525. need_locks=warn
  2526. fi
  2527. else
  2528. need_locks=no
  2529. fi
  2530. _LT_DECL([], [need_locks], [1], [Must we lock files when doing compilation?])
  2531. ])# _LT_COMPILER_FILE_LOCKS
  2532. # _LT_CHECK_OBJDIR
  2533. # ----------------
  2534. m4_defun([_LT_CHECK_OBJDIR],
  2535. [AC_CACHE_CHECK([for objdir], [lt_cv_objdir],
  2536. [rm -f .libs 2>/dev/null
  2537. mkdir .libs 2>/dev/null
  2538. if test -d .libs; then
  2539. lt_cv_objdir=.libs
  2540. else
  2541. # MS-DOS does not allow filenames that begin with a dot.
  2542. lt_cv_objdir=_libs
  2543. fi
  2544. rmdir .libs 2>/dev/null])
  2545. objdir=$lt_cv_objdir
  2546. _LT_DECL([], [objdir], [0],
  2547. [The name of the directory that contains temporary libtool files])dnl
  2548. m4_pattern_allow([LT_OBJDIR])dnl
  2549. AC_DEFINE_UNQUOTED([LT_OBJDIR], "$lt_cv_objdir/",
  2550. [Define to the sub-directory where libtool stores uninstalled libraries.])
  2551. ])# _LT_CHECK_OBJDIR
  2552. # _LT_LINKER_HARDCODE_LIBPATH([TAGNAME])
  2553. # --------------------------------------
  2554. # Check hardcoding attributes.
  2555. m4_defun([_LT_LINKER_HARDCODE_LIBPATH],
  2556. [AC_MSG_CHECKING([how to hardcode library paths into programs])
  2557. _LT_TAGVAR(hardcode_action, $1)=
  2558. if test -n "$_LT_TAGVAR(hardcode_libdir_flag_spec, $1)" ||
  2559. test -n "$_LT_TAGVAR(runpath_var, $1)" ||
  2560. test yes = "$_LT_TAGVAR(hardcode_automatic, $1)"; then
  2561. # We can hardcode non-existent directories.
  2562. if test no != "$_LT_TAGVAR(hardcode_direct, $1)" &&
  2563. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  2564. # have to relink, otherwise we might link with an installed library
  2565. # when we should be linking with a yet-to-be-installed one
  2566. ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, $1)" &&
  2567. test no != "$_LT_TAGVAR(hardcode_minus_L, $1)"; then
  2568. # Linking always hardcodes the temporary library directory.
  2569. _LT_TAGVAR(hardcode_action, $1)=relink
  2570. else
  2571. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  2572. _LT_TAGVAR(hardcode_action, $1)=immediate
  2573. fi
  2574. else
  2575. # We cannot hardcode anything, or else we can only hardcode existing
  2576. # directories.
  2577. _LT_TAGVAR(hardcode_action, $1)=unsupported
  2578. fi
  2579. AC_MSG_RESULT([$_LT_TAGVAR(hardcode_action, $1)])
  2580. if test relink = "$_LT_TAGVAR(hardcode_action, $1)" ||
  2581. test yes = "$_LT_TAGVAR(inherit_rpath, $1)"; then
  2582. # Fast installation is not supported
  2583. enable_fast_install=no
  2584. elif test yes = "$shlibpath_overrides_runpath" ||
  2585. test no = "$enable_shared"; then
  2586. # Fast installation is not necessary
  2587. enable_fast_install=needless
  2588. fi
  2589. _LT_TAGDECL([], [hardcode_action], [0],
  2590. [How to hardcode a shared library path into an executable])
  2591. ])# _LT_LINKER_HARDCODE_LIBPATH
  2592. # _LT_CMD_STRIPLIB
  2593. # ----------------
  2594. m4_defun([_LT_CMD_STRIPLIB],
  2595. [m4_require([_LT_DECL_EGREP])
  2596. striplib=
  2597. old_striplib=
  2598. AC_MSG_CHECKING([whether stripping libraries is possible])
  2599. if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  2600. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  2601. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  2602. AC_MSG_RESULT([yes])
  2603. else
  2604. # FIXME - insert some real tests, host_os isn't really good enough
  2605. case $host_os in
  2606. darwin*)
  2607. if test -n "$STRIP"; then
  2608. striplib="$STRIP -x"
  2609. old_striplib="$STRIP -S"
  2610. AC_MSG_RESULT([yes])
  2611. else
  2612. AC_MSG_RESULT([no])
  2613. fi
  2614. ;;
  2615. *)
  2616. AC_MSG_RESULT([no])
  2617. ;;
  2618. esac
  2619. fi
  2620. _LT_DECL([], [old_striplib], [1], [Commands to strip libraries])
  2621. _LT_DECL([], [striplib], [1])
  2622. ])# _LT_CMD_STRIPLIB
  2623. # _LT_PREPARE_MUNGE_PATH_LIST
  2624. # ---------------------------
  2625. # Make sure func_munge_path_list() is defined correctly.
  2626. m4_defun([_LT_PREPARE_MUNGE_PATH_LIST],
  2627. [[# func_munge_path_list VARIABLE PATH
  2628. # -----------------------------------
  2629. # VARIABLE is name of variable containing _space_ separated list of
  2630. # directories to be munged by the contents of PATH, which is string
  2631. # having a format:
  2632. # "DIR[:DIR]:"
  2633. # string "DIR[ DIR]" will be prepended to VARIABLE
  2634. # ":DIR[:DIR]"
  2635. # string "DIR[ DIR]" will be appended to VARIABLE
  2636. # "DIRP[:DIRP]::[DIRA:]DIRA"
  2637. # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
  2638. # "DIRA[ DIRA]" will be appended to VARIABLE
  2639. # "DIR[:DIR]"
  2640. # VARIABLE will be replaced by "DIR[ DIR]"
  2641. func_munge_path_list ()
  2642. {
  2643. case x@S|@2 in
  2644. x)
  2645. ;;
  2646. *:)
  2647. eval @S|@1=\"`$ECHO @S|@2 | $SED 's/:/ /g'` \@S|@@S|@1\"
  2648. ;;
  2649. x:*)
  2650. eval @S|@1=\"\@S|@@S|@1 `$ECHO @S|@2 | $SED 's/:/ /g'`\"
  2651. ;;
  2652. *::*)
  2653. eval @S|@1=\"\@S|@@S|@1\ `$ECHO @S|@2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
  2654. eval @S|@1=\"`$ECHO @S|@2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \@S|@@S|@1\"
  2655. ;;
  2656. *)
  2657. eval @S|@1=\"`$ECHO @S|@2 | $SED 's/:/ /g'`\"
  2658. ;;
  2659. esac
  2660. }
  2661. ]])# _LT_PREPARE_PATH_LIST
  2662. # _LT_SYS_DYNAMIC_LINKER([TAG])
  2663. # -----------------------------
  2664. # PORTME Fill in your ld.so characteristics
  2665. m4_defun([_LT_SYS_DYNAMIC_LINKER],
  2666. [AC_REQUIRE([AC_CANONICAL_HOST])dnl
  2667. m4_require([_LT_DECL_EGREP])dnl
  2668. m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  2669. m4_require([_LT_DECL_OBJDUMP])dnl
  2670. m4_require([_LT_DECL_SED])dnl
  2671. m4_require([_LT_CHECK_SHELL_FEATURES])dnl
  2672. m4_require([_LT_PREPARE_MUNGE_PATH_LIST])dnl
  2673. AC_MSG_CHECKING([dynamic linker characteristics])
  2674. m4_if([$1],
  2675. [], [
  2676. if test yes = "$GCC"; then
  2677. case $host_os in
  2678. darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
  2679. *) lt_awk_arg='/^libraries:/' ;;
  2680. esac
  2681. case $host_os in
  2682. mingw* | cegcc*) lt_sed_strip_eq='s|=\([[A-Za-z]]:\)|\1|g' ;;
  2683. *) lt_sed_strip_eq='s|=/|/|g' ;;
  2684. esac
  2685. lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
  2686. case $lt_search_path_spec in
  2687. *\;*)
  2688. # if the path contains ";" then we assume it to be the separator
  2689. # otherwise default to the standard path separator (i.e. ":") - it is
  2690. # assumed that no part of a normal pathname contains ";" but that should
  2691. # okay in the real world where ";" in dirpaths is itself problematic.
  2692. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
  2693. ;;
  2694. *)
  2695. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
  2696. ;;
  2697. esac
  2698. # Ok, now we have the path, separated by spaces, we can step through it
  2699. # and add multilib dir if necessary...
  2700. lt_tmp_lt_search_path_spec=
  2701. lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  2702. # ...but if some path component already ends with the multilib dir we assume
  2703. # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
  2704. case "$lt_multi_os_dir; $lt_search_path_spec " in
  2705. "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
  2706. lt_multi_os_dir=
  2707. ;;
  2708. esac
  2709. for lt_sys_path in $lt_search_path_spec; do
  2710. if test -d "$lt_sys_path$lt_multi_os_dir"; then
  2711. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
  2712. elif test -n "$lt_multi_os_dir"; then
  2713. test -d "$lt_sys_path" && \
  2714. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  2715. fi
  2716. done
  2717. lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
  2718. BEGIN {RS = " "; FS = "/|\n";} {
  2719. lt_foo = "";
  2720. lt_count = 0;
  2721. for (lt_i = NF; lt_i > 0; lt_i--) {
  2722. if ($lt_i != "" && $lt_i != ".") {
  2723. if ($lt_i == "..") {
  2724. lt_count++;
  2725. } else {
  2726. if (lt_count == 0) {
  2727. lt_foo = "/" $lt_i lt_foo;
  2728. } else {
  2729. lt_count--;
  2730. }
  2731. }
  2732. }
  2733. }
  2734. if (lt_foo != "") { lt_freq[[lt_foo]]++; }
  2735. if (lt_freq[[lt_foo]] == 1) { print lt_foo; }
  2736. }'`
  2737. # AWK program above erroneously prepends '/' to C:/dos/paths
  2738. # for these hosts.
  2739. case $host_os in
  2740. mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
  2741. $SED 's|/\([[A-Za-z]]:\)|\1|g'` ;;
  2742. esac
  2743. sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
  2744. else
  2745. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  2746. fi])
  2747. library_names_spec=
  2748. libname_spec='lib$name'
  2749. soname_spec=
  2750. shrext_cmds=.so
  2751. postinstall_cmds=
  2752. postuninstall_cmds=
  2753. finish_cmds=
  2754. finish_eval=
  2755. shlibpath_var=
  2756. shlibpath_overrides_runpath=unknown
  2757. version_type=none
  2758. dynamic_linker="$host_os ld.so"
  2759. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  2760. need_lib_prefix=unknown
  2761. hardcode_into_libs=no
  2762. # when you set need_version to no, make sure it does not cause -set_version
  2763. # flags to be left without arguments
  2764. need_version=unknown
  2765. AC_ARG_VAR([LT_SYS_LIBRARY_PATH],
  2766. [User-defined run-time library search path.])
  2767. case $host_os in
  2768. aix3*)
  2769. version_type=linux # correct to gnu/linux during the next big refactor
  2770. library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
  2771. shlibpath_var=LIBPATH
  2772. # AIX 3 has no versioning support, so we append a major version to the name.
  2773. soname_spec='$libname$release$shared_ext$major'
  2774. ;;
  2775. aix[[4-9]]*)
  2776. version_type=linux # correct to gnu/linux during the next big refactor
  2777. need_lib_prefix=no
  2778. need_version=no
  2779. hardcode_into_libs=yes
  2780. if test ia64 = "$host_cpu"; then
  2781. # AIX 5 supports IA64
  2782. library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
  2783. shlibpath_var=LD_LIBRARY_PATH
  2784. else
  2785. # With GCC up to 2.95.x, collect2 would create an import file
  2786. # for dependence libraries. The import file would start with
  2787. # the line '#! .'. This would cause the generated library to
  2788. # depend on '.', always an invalid library. This was fixed in
  2789. # development snapshots of GCC prior to 3.0.
  2790. case $host_os in
  2791. aix4 | aix4.[[01]] | aix4.[[01]].*)
  2792. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  2793. echo ' yes '
  2794. echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
  2795. :
  2796. else
  2797. can_build_shared=no
  2798. fi
  2799. ;;
  2800. esac
  2801. # Using Import Files as archive members, it is possible to support
  2802. # filename-based versioning of shared library archives on AIX. While
  2803. # this would work for both with and without runtime linking, it will
  2804. # prevent static linking of such archives. So we do filename-based
  2805. # shared library versioning with .so extension only, which is used
  2806. # when both runtime linking and shared linking is enabled.
  2807. # Unfortunately, runtime linking may impact performance, so we do
  2808. # not want this to be the default eventually. Also, we use the
  2809. # versioned .so libs for executables only if there is the -brtl
  2810. # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
  2811. # To allow for filename-based versioning support, we need to create
  2812. # libNAME.so.V as an archive file, containing:
  2813. # *) an Import File, referring to the versioned filename of the
  2814. # archive as well as the shared archive member, telling the
  2815. # bitwidth (32 or 64) of that shared object, and providing the
  2816. # list of exported symbols of that shared object, eventually
  2817. # decorated with the 'weak' keyword
  2818. # *) the shared object with the F_LOADONLY flag set, to really avoid
  2819. # it being seen by the linker.
  2820. # At run time we better use the real file rather than another symlink,
  2821. # but for link time we create the symlink libNAME.so -> libNAME.so.V
  2822. case $with_aix_soname,$aix_use_runtimelinking in
  2823. # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
  2824. # soname into executable. Probably we can add versioning support to
  2825. # collect2, so additional links can be useful in future.
  2826. aix,yes) # traditional libtool
  2827. dynamic_linker='AIX unversionable lib.so'
  2828. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  2829. # instead of lib<name>.a to let people know that these are not
  2830. # typical AIX shared libraries.
  2831. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  2832. ;;
  2833. aix,no) # traditional AIX only
  2834. dynamic_linker='AIX lib.a[(]lib.so.V[)]'
  2835. # We preserve .a as extension for shared libraries through AIX4.2
  2836. # and later when we are not doing run time linking.
  2837. library_names_spec='$libname$release.a $libname.a'
  2838. soname_spec='$libname$release$shared_ext$major'
  2839. ;;
  2840. svr4,*) # full svr4 only
  2841. dynamic_linker="AIX lib.so.V[(]$shared_archive_member_spec.o[)]"
  2842. library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
  2843. # We do not specify a path in Import Files, so LIBPATH fires.
  2844. shlibpath_overrides_runpath=yes
  2845. ;;
  2846. *,yes) # both, prefer svr4
  2847. dynamic_linker="AIX lib.so.V[(]$shared_archive_member_spec.o[)], lib.a[(]lib.so.V[)]"
  2848. library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
  2849. # unpreferred sharedlib libNAME.a needs extra handling
  2850. postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
  2851. postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
  2852. # We do not specify a path in Import Files, so LIBPATH fires.
  2853. shlibpath_overrides_runpath=yes
  2854. ;;
  2855. *,no) # both, prefer aix
  2856. dynamic_linker="AIX lib.a[(]lib.so.V[)], lib.so.V[(]$shared_archive_member_spec.o[)]"
  2857. library_names_spec='$libname$release.a $libname.a'
  2858. soname_spec='$libname$release$shared_ext$major'
  2859. # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
  2860. postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
  2861. postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
  2862. ;;
  2863. esac
  2864. shlibpath_var=LIBPATH
  2865. fi
  2866. ;;
  2867. amigaos*)
  2868. case $host_cpu in
  2869. powerpc)
  2870. # Since July 2007 AmigaOS4 officially supports .so libraries.
  2871. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  2872. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  2873. ;;
  2874. m68k)
  2875. library_names_spec='$libname.ixlibrary $libname.a'
  2876. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  2877. finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([[^/]]*\)\.ixlibrary$%\1%'\''`; $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'
  2878. ;;
  2879. esac
  2880. ;;
  2881. beos*)
  2882. library_names_spec='$libname$shared_ext'
  2883. dynamic_linker="$host_os ld.so"
  2884. shlibpath_var=LIBRARY_PATH
  2885. ;;
  2886. bsdi[[45]]*)
  2887. version_type=linux # correct to gnu/linux during the next big refactor
  2888. need_version=no
  2889. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  2890. soname_spec='$libname$release$shared_ext$major'
  2891. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  2892. shlibpath_var=LD_LIBRARY_PATH
  2893. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  2894. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  2895. # the default ld.so.conf also contains /usr/contrib/lib and
  2896. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  2897. # libtool to hard-code these into programs
  2898. ;;
  2899. cygwin* | mingw* | pw32* | cegcc*)
  2900. version_type=windows
  2901. shrext_cmds=.dll
  2902. need_version=no
  2903. need_lib_prefix=no
  2904. case $GCC,$cc_basename in
  2905. yes,*)
  2906. # gcc
  2907. library_names_spec='$libname.dll.a'
  2908. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  2909. postinstall_cmds='base_file=`basename \$file`~
  2910. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
  2911. dldir=$destdir/`dirname \$dlpath`~
  2912. test -d \$dldir || mkdir -p \$dldir~
  2913. $install_prog $dir/$dlname \$dldir/$dlname~
  2914. chmod a+x \$dldir/$dlname~
  2915. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  2916. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  2917. fi'
  2918. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  2919. dlpath=$dir/\$dldll~
  2920. $RM \$dlpath'
  2921. shlibpath_overrides_runpath=yes
  2922. case $host_os in
  2923. cygwin*)
  2924. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  2925. soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext'
  2926. m4_if([$1], [],[
  2927. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"])
  2928. ;;
  2929. mingw* | cegcc*)
  2930. # MinGW DLLs use traditional 'lib' prefix
  2931. soname_spec='$libname`echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext'
  2932. ;;
  2933. pw32*)
  2934. # pw32 DLLs use 'pw' prefix rather than 'lib'
  2935. library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext'
  2936. ;;
  2937. esac
  2938. dynamic_linker='Win32 ld.exe'
  2939. ;;
  2940. *,cl*)
  2941. # Native MSVC
  2942. libname_spec='$name'
  2943. soname_spec='$libname`echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext'
  2944. library_names_spec='$libname.dll.lib'
  2945. case $build_os in
  2946. mingw*)
  2947. sys_lib_search_path_spec=
  2948. lt_save_ifs=$IFS
  2949. IFS=';'
  2950. for lt_path in $LIB
  2951. do
  2952. IFS=$lt_save_ifs
  2953. # Let DOS variable expansion print the short 8.3 style file name.
  2954. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  2955. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  2956. done
  2957. IFS=$lt_save_ifs
  2958. # Convert to MSYS style.
  2959. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([[a-zA-Z]]\\):| /\\1|g' -e 's|^ ||'`
  2960. ;;
  2961. cygwin*)
  2962. # Convert to unix form, then to dos form, then back to unix form
  2963. # but this time dos style (no spaces!) so that the unix form looks
  2964. # like /cygdrive/c/PROGRA~1:/cygdr...
  2965. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  2966. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  2967. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  2968. ;;
  2969. *)
  2970. sys_lib_search_path_spec=$LIB
  2971. if $ECHO "$sys_lib_search_path_spec" | [$GREP ';[c-zC-Z]:/' >/dev/null]; then
  2972. # It is most probably a Windows format PATH.
  2973. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  2974. else
  2975. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  2976. fi
  2977. # FIXME: find the short name or the path components, as spaces are
  2978. # common. (e.g. "Program Files" -> "PROGRA~1")
  2979. ;;
  2980. esac
  2981. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  2982. postinstall_cmds='base_file=`basename \$file`~
  2983. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
  2984. dldir=$destdir/`dirname \$dlpath`~
  2985. test -d \$dldir || mkdir -p \$dldir~
  2986. $install_prog $dir/$dlname \$dldir/$dlname'
  2987. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  2988. dlpath=$dir/\$dldll~
  2989. $RM \$dlpath'
  2990. shlibpath_overrides_runpath=yes
  2991. dynamic_linker='Win32 link.exe'
  2992. ;;
  2993. *)
  2994. # Assume MSVC wrapper
  2995. library_names_spec='$libname`echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext $libname.lib'
  2996. dynamic_linker='Win32 ld.exe'
  2997. ;;
  2998. esac
  2999. # FIXME: first we should search . and the directory the executable is in
  3000. shlibpath_var=PATH
  3001. ;;
  3002. darwin* | rhapsody*)
  3003. dynamic_linker="$host_os dyld"
  3004. version_type=darwin
  3005. need_lib_prefix=no
  3006. need_version=no
  3007. library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
  3008. soname_spec='$libname$release$major$shared_ext'
  3009. shlibpath_overrides_runpath=yes
  3010. shlibpath_var=DYLD_LIBRARY_PATH
  3011. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  3012. m4_if([$1], [],[
  3013. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"])
  3014. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  3015. ;;
  3016. dgux*)
  3017. version_type=linux # correct to gnu/linux during the next big refactor
  3018. need_lib_prefix=no
  3019. need_version=no
  3020. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  3021. soname_spec='$libname$release$shared_ext$major'
  3022. shlibpath_var=LD_LIBRARY_PATH
  3023. ;;
  3024. freebsd* | dragonfly*)
  3025. # DragonFly does not have aout. When/if they implement a new
  3026. # versioning mechanism, adjust this.
  3027. if test -x /usr/bin/objformat; then
  3028. objformat=`/usr/bin/objformat`
  3029. else
  3030. case $host_os in
  3031. freebsd[[23]].*) objformat=aout ;;
  3032. *) objformat=elf ;;
  3033. esac
  3034. fi
  3035. version_type=freebsd-$objformat
  3036. case $version_type in
  3037. freebsd-elf*)
  3038. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  3039. soname_spec='$libname$release$shared_ext$major'
  3040. need_version=no
  3041. need_lib_prefix=no
  3042. ;;
  3043. freebsd-*)
  3044. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  3045. need_version=yes
  3046. ;;
  3047. esac
  3048. shlibpath_var=LD_LIBRARY_PATH
  3049. case $host_os in
  3050. freebsd2.*)
  3051. shlibpath_overrides_runpath=yes
  3052. ;;
  3053. freebsd3.[[01]]* | freebsdelf3.[[01]]*)
  3054. shlibpath_overrides_runpath=yes
  3055. hardcode_into_libs=yes
  3056. ;;
  3057. freebsd3.[[2-9]]* | freebsdelf3.[[2-9]]* | \
  3058. freebsd4.[[0-5]] | freebsdelf4.[[0-5]] | freebsd4.1.1 | freebsdelf4.1.1)
  3059. shlibpath_overrides_runpath=no
  3060. hardcode_into_libs=yes
  3061. ;;
  3062. *) # from 4.6 on, and DragonFly
  3063. shlibpath_overrides_runpath=yes
  3064. hardcode_into_libs=yes
  3065. ;;
  3066. esac
  3067. ;;
  3068. haiku*)
  3069. version_type=linux # correct to gnu/linux during the next big refactor
  3070. need_lib_prefix=no
  3071. need_version=no
  3072. dynamic_linker="$host_os runtime_loader"
  3073. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  3074. soname_spec='$libname$release$shared_ext$major'
  3075. shlibpath_var=LIBRARY_PATH
  3076. shlibpath_overrides_runpath=no
  3077. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  3078. hardcode_into_libs=yes
  3079. ;;
  3080. hpux9* | hpux10* | hpux11*)
  3081. # Give a soname corresponding to the major version so that dld.sl refuses to
  3082. # link against other versions.
  3083. version_type=sunos
  3084. need_lib_prefix=no
  3085. need_version=no
  3086. case $host_cpu in
  3087. ia64*)
  3088. shrext_cmds='.so'
  3089. hardcode_into_libs=yes
  3090. dynamic_linker="$host_os dld.so"
  3091. shlibpath_var=LD_LIBRARY_PATH
  3092. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  3093. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  3094. soname_spec='$libname$release$shared_ext$major'
  3095. if test 32 = "$HPUX_IA64_MODE"; then
  3096. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  3097. sys_lib_dlsearch_path_spec=/usr/lib/hpux32
  3098. else
  3099. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  3100. sys_lib_dlsearch_path_spec=/usr/lib/hpux64
  3101. fi
  3102. ;;
  3103. hppa*64*)
  3104. shrext_cmds='.sl'
  3105. hardcode_into_libs=yes
  3106. dynamic_linker="$host_os dld.sl"
  3107. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  3108. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  3109. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  3110. soname_spec='$libname$release$shared_ext$major'
  3111. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  3112. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  3113. ;;
  3114. *)
  3115. shrext_cmds='.sl'
  3116. dynamic_linker="$host_os dld.sl"
  3117. shlibpath_var=SHLIB_PATH
  3118. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  3119. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  3120. soname_spec='$libname$release$shared_ext$major'
  3121. ;;
  3122. esac
  3123. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  3124. postinstall_cmds='chmod 555 $lib'
  3125. # or fails outright, so override atomically:
  3126. install_override_mode=555
  3127. ;;
  3128. interix[[3-9]]*)
  3129. version_type=linux # correct to gnu/linux during the next big refactor
  3130. need_lib_prefix=no
  3131. need_version=no
  3132. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  3133. soname_spec='$libname$release$shared_ext$major'
  3134. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  3135. shlibpath_var=LD_LIBRARY_PATH
  3136. shlibpath_overrides_runpath=no
  3137. hardcode_into_libs=yes
  3138. ;;
  3139. irix5* | irix6* | nonstopux*)
  3140. case $host_os in
  3141. nonstopux*) version_type=nonstopux ;;
  3142. *)
  3143. if test yes = "$lt_cv_prog_gnu_ld"; then
  3144. version_type=linux # correct to gnu/linux during the next big refactor
  3145. else
  3146. version_type=irix
  3147. fi ;;
  3148. esac
  3149. need_lib_prefix=no
  3150. need_version=no
  3151. soname_spec='$libname$release$shared_ext$major'
  3152. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
  3153. case $host_os in
  3154. irix5* | nonstopux*)
  3155. libsuff= shlibsuff=
  3156. ;;
  3157. *)
  3158. case $LD in # libtool.m4 will add one of these switches to LD
  3159. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  3160. libsuff= shlibsuff= libmagic=32-bit;;
  3161. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  3162. libsuff=32 shlibsuff=N32 libmagic=N32;;
  3163. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  3164. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  3165. *) libsuff= shlibsuff= libmagic=never-match;;
  3166. esac
  3167. ;;
  3168. esac
  3169. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  3170. shlibpath_overrides_runpath=no
  3171. sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
  3172. sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
  3173. hardcode_into_libs=yes
  3174. ;;
  3175. # No shared lib support for Linux oldld, aout, or coff.
  3176. linux*oldld* | linux*aout* | linux*coff*)
  3177. dynamic_linker=no
  3178. ;;
  3179. linux*android*)
  3180. version_type=none # Android doesn't support versioned libraries.
  3181. need_lib_prefix=no
  3182. need_version=no
  3183. library_names_spec='$libname$release$shared_ext'
  3184. soname_spec='$libname$release$shared_ext'
  3185. finish_cmds=
  3186. shlibpath_var=LD_LIBRARY_PATH
  3187. shlibpath_overrides_runpath=yes
  3188. # This implies no fast_install, which is unacceptable.
  3189. # Some rework will be needed to allow for fast_install
  3190. # before this can be enabled.
  3191. hardcode_into_libs=yes
  3192. dynamic_linker='Android linker'
  3193. # Don't embed -rpath directories since the linker doesn't support them.
  3194. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  3195. ;;
  3196. # This must be glibc/ELF.
  3197. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  3198. version_type=linux # correct to gnu/linux during the next big refactor
  3199. need_lib_prefix=no
  3200. need_version=no
  3201. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  3202. soname_spec='$libname$release$shared_ext$major'
  3203. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  3204. shlibpath_var=LD_LIBRARY_PATH
  3205. shlibpath_overrides_runpath=no
  3206. # Some binutils ld are patched to set DT_RUNPATH
  3207. AC_CACHE_VAL([lt_cv_shlibpath_overrides_runpath],
  3208. [lt_cv_shlibpath_overrides_runpath=no
  3209. save_LDFLAGS=$LDFLAGS
  3210. save_libdir=$libdir
  3211. eval "libdir=/foo; wl=\"$_LT_TAGVAR(lt_prog_compiler_wl, $1)\"; \
  3212. LDFLAGS=\"\$LDFLAGS $_LT_TAGVAR(hardcode_libdir_flag_spec, $1)\""
  3213. AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
  3214. [AS_IF([ ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null],
  3215. [lt_cv_shlibpath_overrides_runpath=yes])])
  3216. LDFLAGS=$save_LDFLAGS
  3217. libdir=$save_libdir
  3218. ])
  3219. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  3220. # This implies no fast_install, which is unacceptable.
  3221. # Some rework will be needed to allow for fast_install
  3222. # before this can be enabled.
  3223. hardcode_into_libs=yes
  3224. # Ideally, we could use ldconfig to report *all* directores which are
  3225. # searched for libraries, however this is still not possible. Aside from not
  3226. # being certain /sbin/ldconfig is available, command
  3227. # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
  3228. # even though it is searched at run-time. Try to do the best guess by
  3229. # appending ld.so.conf contents (and includes) to the search path.
  3230. if test -f /etc/ld.so.conf; then
  3231. 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' ' '`
  3232. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  3233. fi
  3234. # We used to test for /lib/ld.so.1 and disable shared libraries on
  3235. # powerpc, because MkLinux only supported shared libraries with the
  3236. # GNU dynamic linker. Since this was broken with cross compilers,
  3237. # most powerpc-linux boxes support dynamic linking these days and
  3238. # people can always --disable-shared, the test was removed, and we
  3239. # assume the GNU/Linux dynamic linker is in use.
  3240. dynamic_linker='GNU/Linux ld.so'
  3241. ;;
  3242. netbsd*)
  3243. version_type=sunos
  3244. need_lib_prefix=no
  3245. need_version=no
  3246. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  3247. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  3248. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  3249. dynamic_linker='NetBSD (a.out) ld.so'
  3250. else
  3251. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  3252. soname_spec='$libname$release$shared_ext$major'
  3253. dynamic_linker='NetBSD ld.elf_so'
  3254. fi
  3255. shlibpath_var=LD_LIBRARY_PATH
  3256. shlibpath_overrides_runpath=yes
  3257. hardcode_into_libs=yes
  3258. ;;
  3259. newsos6)
  3260. version_type=linux # correct to gnu/linux during the next big refactor
  3261. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  3262. shlibpath_var=LD_LIBRARY_PATH
  3263. shlibpath_overrides_runpath=yes
  3264. ;;
  3265. *nto* | *qnx*)
  3266. version_type=qnx
  3267. need_lib_prefix=no
  3268. need_version=no
  3269. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  3270. soname_spec='$libname$release$shared_ext$major'
  3271. shlibpath_var=LD_LIBRARY_PATH
  3272. shlibpath_overrides_runpath=no
  3273. hardcode_into_libs=yes
  3274. dynamic_linker='ldqnx.so'
  3275. ;;
  3276. openbsd* | bitrig*)
  3277. version_type=sunos
  3278. sys_lib_dlsearch_path_spec=/usr/lib
  3279. need_lib_prefix=no
  3280. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  3281. need_version=no
  3282. else
  3283. need_version=yes
  3284. fi
  3285. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  3286. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  3287. shlibpath_var=LD_LIBRARY_PATH
  3288. shlibpath_overrides_runpath=yes
  3289. ;;
  3290. os2*)
  3291. libname_spec='$name'
  3292. version_type=windows
  3293. shrext_cmds=.dll
  3294. need_version=no
  3295. need_lib_prefix=no
  3296. # OS/2 can only load a DLL with a base name of 8 characters or less.
  3297. soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
  3298. v=$($ECHO $release$versuffix | tr -d .-);
  3299. n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
  3300. $ECHO $n$v`$shared_ext'
  3301. library_names_spec='${libname}_dll.$libext'
  3302. dynamic_linker='OS/2 ld.exe'
  3303. shlibpath_var=BEGINLIBPATH
  3304. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  3305. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  3306. postinstall_cmds='base_file=`basename \$file`~
  3307. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
  3308. dldir=$destdir/`dirname \$dlpath`~
  3309. test -d \$dldir || mkdir -p \$dldir~
  3310. $install_prog $dir/$dlname \$dldir/$dlname~
  3311. chmod a+x \$dldir/$dlname~
  3312. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  3313. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  3314. fi'
  3315. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
  3316. dlpath=$dir/\$dldll~
  3317. $RM \$dlpath'
  3318. ;;
  3319. osf3* | osf4* | osf5*)
  3320. version_type=osf
  3321. need_lib_prefix=no
  3322. need_version=no
  3323. soname_spec='$libname$release$shared_ext$major'
  3324. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  3325. shlibpath_var=LD_LIBRARY_PATH
  3326. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  3327. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  3328. ;;
  3329. rdos*)
  3330. dynamic_linker=no
  3331. ;;
  3332. solaris*)
  3333. version_type=linux # correct to gnu/linux during the next big refactor
  3334. need_lib_prefix=no
  3335. need_version=no
  3336. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  3337. soname_spec='$libname$release$shared_ext$major'
  3338. shlibpath_var=LD_LIBRARY_PATH
  3339. shlibpath_overrides_runpath=yes
  3340. hardcode_into_libs=yes
  3341. # ldd complains unless libraries are executable
  3342. postinstall_cmds='chmod +x $lib'
  3343. ;;
  3344. sunos4*)
  3345. version_type=sunos
  3346. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  3347. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  3348. shlibpath_var=LD_LIBRARY_PATH
  3349. shlibpath_overrides_runpath=yes
  3350. if test yes = "$with_gnu_ld"; then
  3351. need_lib_prefix=no
  3352. fi
  3353. need_version=yes
  3354. ;;
  3355. sysv4 | sysv4.3*)
  3356. version_type=linux # correct to gnu/linux during the next big refactor
  3357. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  3358. soname_spec='$libname$release$shared_ext$major'
  3359. shlibpath_var=LD_LIBRARY_PATH
  3360. case $host_vendor in
  3361. sni)
  3362. shlibpath_overrides_runpath=no
  3363. need_lib_prefix=no
  3364. runpath_var=LD_RUN_PATH
  3365. ;;
  3366. siemens)
  3367. need_lib_prefix=no
  3368. ;;
  3369. motorola)
  3370. need_lib_prefix=no
  3371. need_version=no
  3372. shlibpath_overrides_runpath=no
  3373. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  3374. ;;
  3375. esac
  3376. ;;
  3377. sysv4*MP*)
  3378. if test -d /usr/nec; then
  3379. version_type=linux # correct to gnu/linux during the next big refactor
  3380. library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
  3381. soname_spec='$libname$shared_ext.$major'
  3382. shlibpath_var=LD_LIBRARY_PATH
  3383. fi
  3384. ;;
  3385. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  3386. version_type=sco
  3387. need_lib_prefix=no
  3388. need_version=no
  3389. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
  3390. soname_spec='$libname$release$shared_ext$major'
  3391. shlibpath_var=LD_LIBRARY_PATH
  3392. shlibpath_overrides_runpath=yes
  3393. hardcode_into_libs=yes
  3394. if test yes = "$with_gnu_ld"; then
  3395. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  3396. else
  3397. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  3398. case $host_os in
  3399. sco3.2v5*)
  3400. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  3401. ;;
  3402. esac
  3403. fi
  3404. sys_lib_dlsearch_path_spec='/usr/lib'
  3405. ;;
  3406. tpf*)
  3407. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  3408. version_type=linux # correct to gnu/linux during the next big refactor
  3409. need_lib_prefix=no
  3410. need_version=no
  3411. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  3412. shlibpath_var=LD_LIBRARY_PATH
  3413. shlibpath_overrides_runpath=no
  3414. hardcode_into_libs=yes
  3415. ;;
  3416. uts4*)
  3417. version_type=linux # correct to gnu/linux during the next big refactor
  3418. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  3419. soname_spec='$libname$release$shared_ext$major'
  3420. shlibpath_var=LD_LIBRARY_PATH
  3421. ;;
  3422. *)
  3423. dynamic_linker=no
  3424. ;;
  3425. esac
  3426. AC_MSG_RESULT([$dynamic_linker])
  3427. test no = "$dynamic_linker" && can_build_shared=no
  3428. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  3429. if test yes = "$GCC"; then
  3430. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  3431. fi
  3432. if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
  3433. sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
  3434. fi
  3435. if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
  3436. sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
  3437. fi
  3438. # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
  3439. configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
  3440. # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
  3441. func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
  3442. # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
  3443. configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
  3444. _LT_DECL([], [variables_saved_for_relink], [1],
  3445. [Variables whose values should be saved in libtool wrapper scripts and
  3446. restored at link time])
  3447. _LT_DECL([], [need_lib_prefix], [0],
  3448. [Do we need the "lib" prefix for modules?])
  3449. _LT_DECL([], [need_version], [0], [Do we need a version for libraries?])
  3450. _LT_DECL([], [version_type], [0], [Library versioning type])
  3451. _LT_DECL([], [runpath_var], [0], [Shared library runtime path variable])
  3452. _LT_DECL([], [shlibpath_var], [0],[Shared library path variable])
  3453. _LT_DECL([], [shlibpath_overrides_runpath], [0],
  3454. [Is shlibpath searched before the hard-coded library search path?])
  3455. _LT_DECL([], [libname_spec], [1], [Format of library name prefix])
  3456. _LT_DECL([], [library_names_spec], [1],
  3457. [[List of archive names. First name is the real one, the rest are links.
  3458. The last name is the one that the linker finds with -lNAME]])
  3459. _LT_DECL([], [soname_spec], [1],
  3460. [[The coded name of the library, if different from the real name]])
  3461. _LT_DECL([], [install_override_mode], [1],
  3462. [Permission mode override for installation of shared libraries])
  3463. _LT_DECL([], [postinstall_cmds], [2],
  3464. [Command to use after installation of a shared archive])
  3465. _LT_DECL([], [postuninstall_cmds], [2],
  3466. [Command to use after uninstallation of a shared archive])
  3467. _LT_DECL([], [finish_cmds], [2],
  3468. [Commands used to finish a libtool library installation in a directory])
  3469. _LT_DECL([], [finish_eval], [1],
  3470. [[As "finish_cmds", except a single script fragment to be evaled but
  3471. not shown]])
  3472. _LT_DECL([], [hardcode_into_libs], [0],
  3473. [Whether we should hardcode library paths into libraries])
  3474. _LT_DECL([], [sys_lib_search_path_spec], [2],
  3475. [Compile-time system search path for libraries])
  3476. _LT_DECL([sys_lib_dlsearch_path_spec], [configure_time_dlsearch_path], [2],
  3477. [Detected run-time system search path for libraries])
  3478. _LT_DECL([], [configure_time_lt_sys_library_path], [2],
  3479. [Explicit LT_SYS_LIBRARY_PATH set during ./configure time])
  3480. ])# _LT_SYS_DYNAMIC_LINKER
  3481. # _LT_PATH_TOOL_PREFIX(TOOL)
  3482. # --------------------------
  3483. # find a file program that can recognize shared library
  3484. AC_DEFUN([_LT_PATH_TOOL_PREFIX],
  3485. [m4_require([_LT_DECL_EGREP])dnl
  3486. AC_MSG_CHECKING([for $1])
  3487. AC_CACHE_VAL(lt_cv_path_MAGIC_CMD,
  3488. [case $MAGIC_CMD in
  3489. [[\\/*] | ?:[\\/]*])
  3490. lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
  3491. ;;
  3492. *)
  3493. lt_save_MAGIC_CMD=$MAGIC_CMD
  3494. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  3495. dnl $ac_dummy forces splitting on constant user-supplied paths.
  3496. dnl POSIX.2 word splitting is done only on the output of word expansions,
  3497. dnl not every word. This closes a longstanding sh security hole.
  3498. ac_dummy="m4_if([$2], , $PATH, [$2])"
  3499. for ac_dir in $ac_dummy; do
  3500. IFS=$lt_save_ifs
  3501. test -z "$ac_dir" && ac_dir=.
  3502. if test -f "$ac_dir/$1"; then
  3503. lt_cv_path_MAGIC_CMD=$ac_dir/"$1"
  3504. if test -n "$file_magic_test_file"; then
  3505. case $deplibs_check_method in
  3506. "file_magic "*)
  3507. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  3508. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  3509. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  3510. $EGREP "$file_magic_regex" > /dev/null; then
  3511. :
  3512. else
  3513. cat <<_LT_EOF 1>&2
  3514. *** Warning: the command libtool uses to detect shared libraries,
  3515. *** $file_magic_cmd, produces output that libtool cannot recognize.
  3516. *** The result is that libtool may fail to recognize shared libraries
  3517. *** as such. This will affect the creation of libtool libraries that
  3518. *** depend on shared libraries, but programs linked with such libtool
  3519. *** libraries will work regardless of this problem. Nevertheless, you
  3520. *** may want to report the problem to your system manager and/or to
  3521. *** bug-libtool@gnu.org
  3522. _LT_EOF
  3523. fi ;;
  3524. esac
  3525. fi
  3526. break
  3527. fi
  3528. done
  3529. IFS=$lt_save_ifs
  3530. MAGIC_CMD=$lt_save_MAGIC_CMD
  3531. ;;
  3532. esac])
  3533. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  3534. if test -n "$MAGIC_CMD"; then
  3535. AC_MSG_RESULT($MAGIC_CMD)
  3536. else
  3537. AC_MSG_RESULT(no)
  3538. fi
  3539. _LT_DECL([], [MAGIC_CMD], [0],
  3540. [Used to examine libraries when file_magic_cmd begins with "file"])dnl
  3541. ])# _LT_PATH_TOOL_PREFIX
  3542. # Old name:
  3543. AU_ALIAS([AC_PATH_TOOL_PREFIX], [_LT_PATH_TOOL_PREFIX])
  3544. dnl aclocal-1.4 backwards compatibility:
  3545. dnl AC_DEFUN([AC_PATH_TOOL_PREFIX], [])
  3546. # _LT_PATH_MAGIC
  3547. # --------------
  3548. # find a file program that can recognize a shared library
  3549. m4_defun([_LT_PATH_MAGIC],
  3550. [_LT_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH)
  3551. if test -z "$lt_cv_path_MAGIC_CMD"; then
  3552. if test -n "$ac_tool_prefix"; then
  3553. _LT_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH)
  3554. else
  3555. MAGIC_CMD=:
  3556. fi
  3557. fi
  3558. ])# _LT_PATH_MAGIC
  3559. # LT_PATH_LD
  3560. # ----------
  3561. # find the pathname to the GNU or non-GNU linker
  3562. AC_DEFUN([LT_PATH_LD],
  3563. [AC_REQUIRE([AC_PROG_CC])dnl
  3564. AC_REQUIRE([AC_CANONICAL_HOST])dnl
  3565. AC_REQUIRE([AC_CANONICAL_BUILD])dnl
  3566. m4_require([_LT_DECL_SED])dnl
  3567. m4_require([_LT_DECL_EGREP])dnl
  3568. m4_require([_LT_PROG_ECHO_BACKSLASH])dnl
  3569. AC_ARG_WITH([gnu-ld],
  3570. [AS_HELP_STRING([--with-gnu-ld],
  3571. [assume the C compiler uses GNU ld @<:@default=no@:>@])],
  3572. [test no = "$withval" || with_gnu_ld=yes],
  3573. [with_gnu_ld=no])dnl
  3574. ac_prog=ld
  3575. if test yes = "$GCC"; then
  3576. # Check if gcc -print-prog-name=ld gives a path.
  3577. AC_MSG_CHECKING([for ld used by $CC])
  3578. case $host in
  3579. *-*-mingw*)
  3580. # gcc leaves a trailing carriage return, which upsets mingw
  3581. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  3582. *)
  3583. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  3584. esac
  3585. case $ac_prog in
  3586. # Accept absolute paths.
  3587. [[\\/]]* | ?:[[\\/]]*)
  3588. re_direlt='/[[^/]][[^/]]*/\.\./'
  3589. # Canonicalize the pathname of ld
  3590. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  3591. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  3592. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  3593. done
  3594. test -z "$LD" && LD=$ac_prog
  3595. ;;
  3596. "")
  3597. # If it fails, then pretend we aren't using GCC.
  3598. ac_prog=ld
  3599. ;;
  3600. *)
  3601. # If it is relative, then search for the first ld in PATH.
  3602. with_gnu_ld=unknown
  3603. ;;
  3604. esac
  3605. elif test yes = "$with_gnu_ld"; then
  3606. AC_MSG_CHECKING([for GNU ld])
  3607. else
  3608. AC_MSG_CHECKING([for non-GNU ld])
  3609. fi
  3610. AC_CACHE_VAL(lt_cv_path_LD,
  3611. [if test -z "$LD"; then
  3612. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  3613. for ac_dir in $PATH; do
  3614. IFS=$lt_save_ifs
  3615. test -z "$ac_dir" && ac_dir=.
  3616. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  3617. lt_cv_path_LD=$ac_dir/$ac_prog
  3618. # Check to see if the program is GNU ld. I'd rather use --version,
  3619. # but apparently some variants of GNU ld only accept -v.
  3620. # Break only if it was the GNU/non-GNU ld that we prefer.
  3621. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  3622. *GNU* | *'with BFD'*)
  3623. test no != "$with_gnu_ld" && break
  3624. ;;
  3625. *)
  3626. test yes != "$with_gnu_ld" && break
  3627. ;;
  3628. esac
  3629. fi
  3630. done
  3631. IFS=$lt_save_ifs
  3632. else
  3633. lt_cv_path_LD=$LD # Let the user override the test with a path.
  3634. fi])
  3635. LD=$lt_cv_path_LD
  3636. if test -n "$LD"; then
  3637. AC_MSG_RESULT($LD)
  3638. else
  3639. AC_MSG_RESULT(no)
  3640. fi
  3641. test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])
  3642. _LT_PATH_LD_GNU
  3643. AC_SUBST([LD])
  3644. _LT_TAGDECL([], [LD], [1], [The linker used to build libraries])
  3645. ])# LT_PATH_LD
  3646. # Old names:
  3647. AU_ALIAS([AM_PROG_LD], [LT_PATH_LD])
  3648. AU_ALIAS([AC_PROG_LD], [LT_PATH_LD])
  3649. dnl aclocal-1.4 backwards compatibility:
  3650. dnl AC_DEFUN([AM_PROG_LD], [])
  3651. dnl AC_DEFUN([AC_PROG_LD], [])
  3652. # _LT_PATH_LD_GNU
  3653. #- --------------
  3654. m4_defun([_LT_PATH_LD_GNU],
  3655. [AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld,
  3656. [# I'd rather use --version here, but apparently some GNU lds only accept -v.
  3657. case `$LD -v 2>&1 </dev/null` in
  3658. *GNU* | *'with BFD'*)
  3659. lt_cv_prog_gnu_ld=yes
  3660. ;;
  3661. *)
  3662. lt_cv_prog_gnu_ld=no
  3663. ;;
  3664. esac])
  3665. with_gnu_ld=$lt_cv_prog_gnu_ld
  3666. ])# _LT_PATH_LD_GNU
  3667. # _LT_CMD_RELOAD
  3668. # --------------
  3669. # find reload flag for linker
  3670. # -- PORTME Some linkers may need a different reload flag.
  3671. m4_defun([_LT_CMD_RELOAD],
  3672. [AC_CACHE_CHECK([for $LD option to reload object files],
  3673. lt_cv_ld_reload_flag,
  3674. [lt_cv_ld_reload_flag='-r'])
  3675. reload_flag=$lt_cv_ld_reload_flag
  3676. case $reload_flag in
  3677. "" | " "*) ;;
  3678. *) reload_flag=" $reload_flag" ;;
  3679. esac
  3680. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  3681. case $host_os in
  3682. cygwin* | mingw* | pw32* | cegcc*)
  3683. if test yes != "$GCC"; then
  3684. reload_cmds=false
  3685. fi
  3686. ;;
  3687. darwin*)
  3688. if test yes = "$GCC"; then
  3689. reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
  3690. else
  3691. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  3692. fi
  3693. ;;
  3694. esac
  3695. _LT_TAGDECL([], [reload_flag], [1], [How to create reloadable object files])dnl
  3696. _LT_TAGDECL([], [reload_cmds], [2])dnl
  3697. ])# _LT_CMD_RELOAD
  3698. # _LT_PATH_DD
  3699. # -----------
  3700. # find a working dd
  3701. m4_defun([_LT_PATH_DD],
  3702. [AC_CACHE_CHECK([for a working dd], [ac_cv_path_lt_DD],
  3703. [printf 0123456789abcdef0123456789abcdef >conftest.i
  3704. cat conftest.i conftest.i >conftest2.i
  3705. : ${lt_DD:=$DD}
  3706. AC_PATH_PROGS_FEATURE_CHECK([lt_DD], [dd],
  3707. [if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
  3708. cmp -s conftest.i conftest.out \
  3709. && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
  3710. fi])
  3711. rm -f conftest.i conftest2.i conftest.out])
  3712. ])# _LT_PATH_DD
  3713. # _LT_CMD_TRUNCATE
  3714. # ----------------
  3715. # find command to truncate a binary pipe
  3716. m4_defun([_LT_CMD_TRUNCATE],
  3717. [m4_require([_LT_PATH_DD])
  3718. AC_CACHE_CHECK([how to truncate binary pipes], [lt_cv_truncate_bin],
  3719. [printf 0123456789abcdef0123456789abcdef >conftest.i
  3720. cat conftest.i conftest.i >conftest2.i
  3721. lt_cv_truncate_bin=
  3722. if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
  3723. cmp -s conftest.i conftest.out \
  3724. && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
  3725. fi
  3726. rm -f conftest.i conftest2.i conftest.out
  3727. test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"])
  3728. _LT_DECL([lt_truncate_bin], [lt_cv_truncate_bin], [1],
  3729. [Command to truncate a binary pipe])
  3730. ])# _LT_CMD_TRUNCATE
  3731. # _LT_CHECK_MAGIC_METHOD
  3732. # ----------------------
  3733. # how to check for library dependencies
  3734. # -- PORTME fill in with the dynamic library characteristics
  3735. m4_defun([_LT_CHECK_MAGIC_METHOD],
  3736. [m4_require([_LT_DECL_EGREP])
  3737. m4_require([_LT_DECL_OBJDUMP])
  3738. AC_CACHE_CHECK([how to recognize dependent libraries],
  3739. lt_cv_deplibs_check_method,
  3740. [lt_cv_file_magic_cmd='$MAGIC_CMD'
  3741. lt_cv_file_magic_test_file=
  3742. lt_cv_deplibs_check_method='unknown'
  3743. # Need to set the preceding variable on all platforms that support
  3744. # interlibrary dependencies.
  3745. # 'none' -- dependencies not supported.
  3746. # 'unknown' -- same as none, but documents that we really don't know.
  3747. # 'pass_all' -- all dependencies passed with no checks.
  3748. # 'test_compile' -- check by making test program.
  3749. # 'file_magic [[regex]]' -- check by looking for files in library path
  3750. # that responds to the $file_magic_cmd with a given extended regex.
  3751. # If you have 'file' or equivalent on your system and you're not sure
  3752. # whether 'pass_all' will *always* work, you probably want this one.
  3753. case $host_os in
  3754. aix[[4-9]]*)
  3755. lt_cv_deplibs_check_method=pass_all
  3756. ;;
  3757. beos*)
  3758. lt_cv_deplibs_check_method=pass_all
  3759. ;;
  3760. bsdi[[45]]*)
  3761. lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)'
  3762. lt_cv_file_magic_cmd='/usr/bin/file -L'
  3763. lt_cv_file_magic_test_file=/shlib/libc.so
  3764. ;;
  3765. cygwin*)
  3766. # func_win32_libid is a shell function defined in ltmain.sh
  3767. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  3768. lt_cv_file_magic_cmd='func_win32_libid'
  3769. ;;
  3770. mingw* | pw32*)
  3771. # Base MSYS/MinGW do not provide the 'file' command needed by
  3772. # func_win32_libid shell function, so use a weaker test based on 'objdump',
  3773. # unless we find 'file', for example because we are cross-compiling.
  3774. if ( file / ) >/dev/null 2>&1; then
  3775. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  3776. lt_cv_file_magic_cmd='func_win32_libid'
  3777. else
  3778. # Keep this pattern in sync with the one in func_win32_libid.
  3779. lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
  3780. lt_cv_file_magic_cmd='$OBJDUMP -f'
  3781. fi
  3782. ;;
  3783. cegcc*)
  3784. # use the weaker test based on 'objdump'. See mingw*.
  3785. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  3786. lt_cv_file_magic_cmd='$OBJDUMP -f'
  3787. ;;
  3788. darwin* | rhapsody*)
  3789. lt_cv_deplibs_check_method=pass_all
  3790. ;;
  3791. freebsd* | dragonfly*)
  3792. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  3793. case $host_cpu in
  3794. i*86 )
  3795. # Not sure whether the presence of OpenBSD here was a mistake.
  3796. # Let's accept both of them until this is cleared up.
  3797. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[[3-9]]86 (compact )?demand paged shared library'
  3798. lt_cv_file_magic_cmd=/usr/bin/file
  3799. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  3800. ;;
  3801. esac
  3802. else
  3803. lt_cv_deplibs_check_method=pass_all
  3804. fi
  3805. ;;
  3806. haiku*)
  3807. lt_cv_deplibs_check_method=pass_all
  3808. ;;
  3809. hpux10.20* | hpux11*)
  3810. lt_cv_file_magic_cmd=/usr/bin/file
  3811. case $host_cpu in
  3812. ia64*)
  3813. lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64'
  3814. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  3815. ;;
  3816. hppa*64*)
  3817. [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]']
  3818. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  3819. ;;
  3820. *)
  3821. lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]]\.[[0-9]]) shared library'
  3822. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  3823. ;;
  3824. esac
  3825. ;;
  3826. interix[[3-9]]*)
  3827. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  3828. lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|\.a)$'
  3829. ;;
  3830. irix5* | irix6* | nonstopux*)
  3831. case $LD in
  3832. *-32|*"-32 ") libmagic=32-bit;;
  3833. *-n32|*"-n32 ") libmagic=N32;;
  3834. *-64|*"-64 ") libmagic=64-bit;;
  3835. *) libmagic=never-match;;
  3836. esac
  3837. lt_cv_deplibs_check_method=pass_all
  3838. ;;
  3839. # This must be glibc/ELF.
  3840. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  3841. lt_cv_deplibs_check_method=pass_all
  3842. ;;
  3843. netbsd*)
  3844. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  3845. lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
  3846. else
  3847. lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$'
  3848. fi
  3849. ;;
  3850. newos6*)
  3851. lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (executable|dynamic lib)'
  3852. lt_cv_file_magic_cmd=/usr/bin/file
  3853. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  3854. ;;
  3855. *nto* | *qnx*)
  3856. lt_cv_deplibs_check_method=pass_all
  3857. ;;
  3858. openbsd* | bitrig*)
  3859. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  3860. lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$'
  3861. else
  3862. lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
  3863. fi
  3864. ;;
  3865. osf3* | osf4* | osf5*)
  3866. lt_cv_deplibs_check_method=pass_all
  3867. ;;
  3868. rdos*)
  3869. lt_cv_deplibs_check_method=pass_all
  3870. ;;
  3871. solaris*)
  3872. lt_cv_deplibs_check_method=pass_all
  3873. ;;
  3874. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  3875. lt_cv_deplibs_check_method=pass_all
  3876. ;;
  3877. sysv4 | sysv4.3*)
  3878. case $host_vendor in
  3879. motorola)
  3880. 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]]'
  3881. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  3882. ;;
  3883. ncr)
  3884. lt_cv_deplibs_check_method=pass_all
  3885. ;;
  3886. sequent)
  3887. lt_cv_file_magic_cmd='/bin/file'
  3888. lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )'
  3889. ;;
  3890. sni)
  3891. lt_cv_file_magic_cmd='/bin/file'
  3892. lt_cv_deplibs_check_method="file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB dynamic lib"
  3893. lt_cv_file_magic_test_file=/lib/libc.so
  3894. ;;
  3895. siemens)
  3896. lt_cv_deplibs_check_method=pass_all
  3897. ;;
  3898. pc)
  3899. lt_cv_deplibs_check_method=pass_all
  3900. ;;
  3901. esac
  3902. ;;
  3903. tpf*)
  3904. lt_cv_deplibs_check_method=pass_all
  3905. ;;
  3906. os2*)
  3907. lt_cv_deplibs_check_method=pass_all
  3908. ;;
  3909. esac
  3910. ])
  3911. file_magic_glob=
  3912. want_nocaseglob=no
  3913. if test "$build" = "$host"; then
  3914. case $host_os in
  3915. mingw* | pw32*)
  3916. if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
  3917. want_nocaseglob=yes
  3918. else
  3919. file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[[\1]]\/[[\1]]\/g;/g"`
  3920. fi
  3921. ;;
  3922. esac
  3923. fi
  3924. file_magic_cmd=$lt_cv_file_magic_cmd
  3925. deplibs_check_method=$lt_cv_deplibs_check_method
  3926. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  3927. _LT_DECL([], [deplibs_check_method], [1],
  3928. [Method to check whether dependent libraries are shared objects])
  3929. _LT_DECL([], [file_magic_cmd], [1],
  3930. [Command to use when deplibs_check_method = "file_magic"])
  3931. _LT_DECL([], [file_magic_glob], [1],
  3932. [How to find potential files when deplibs_check_method = "file_magic"])
  3933. _LT_DECL([], [want_nocaseglob], [1],
  3934. [Find potential files using nocaseglob when deplibs_check_method = "file_magic"])
  3935. ])# _LT_CHECK_MAGIC_METHOD
  3936. # LT_PATH_NM
  3937. # ----------
  3938. # find the pathname to a BSD- or MS-compatible name lister
  3939. AC_DEFUN([LT_PATH_NM],
  3940. [AC_REQUIRE([AC_PROG_CC])dnl
  3941. AC_CACHE_CHECK([for BSD- or MS-compatible name lister (nm)], lt_cv_path_NM,
  3942. [if test -n "$NM"; then
  3943. # Let the user override the test.
  3944. lt_cv_path_NM=$NM
  3945. else
  3946. lt_nm_to_check=${ac_tool_prefix}nm
  3947. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  3948. lt_nm_to_check="$lt_nm_to_check nm"
  3949. fi
  3950. for lt_tmp_nm in $lt_nm_to_check; do
  3951. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  3952. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  3953. IFS=$lt_save_ifs
  3954. test -z "$ac_dir" && ac_dir=.
  3955. tmp_nm=$ac_dir/$lt_tmp_nm
  3956. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
  3957. # Check to see if the nm accepts a BSD-compat flag.
  3958. # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
  3959. # nm: unknown option "B" ignored
  3960. # Tru64's nm complains that /dev/null is an invalid object file
  3961. # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
  3962. case $build_os in
  3963. mingw*) lt_bad_file=conftest.nm/nofile ;;
  3964. *) lt_bad_file=/dev/null ;;
  3965. esac
  3966. case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
  3967. *$lt_bad_file* | *'Invalid file or object type'*)
  3968. lt_cv_path_NM="$tmp_nm -B"
  3969. break 2
  3970. ;;
  3971. *)
  3972. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  3973. */dev/null*)
  3974. lt_cv_path_NM="$tmp_nm -p"
  3975. break 2
  3976. ;;
  3977. *)
  3978. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  3979. continue # so that we can try to find one that supports BSD flags
  3980. ;;
  3981. esac
  3982. ;;
  3983. esac
  3984. fi
  3985. done
  3986. IFS=$lt_save_ifs
  3987. done
  3988. : ${lt_cv_path_NM=no}
  3989. fi])
  3990. if test no != "$lt_cv_path_NM"; then
  3991. NM=$lt_cv_path_NM
  3992. else
  3993. # Didn't find any BSD compatible name lister, look for dumpbin.
  3994. if test -n "$DUMPBIN"; then :
  3995. # Let the user override the test.
  3996. else
  3997. AC_CHECK_TOOLS(DUMPBIN, [dumpbin "link -dump"], :)
  3998. case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
  3999. *COFF*)
  4000. DUMPBIN="$DUMPBIN -symbols -headers"
  4001. ;;
  4002. *)
  4003. DUMPBIN=:
  4004. ;;
  4005. esac
  4006. fi
  4007. AC_SUBST([DUMPBIN])
  4008. if test : != "$DUMPBIN"; then
  4009. NM=$DUMPBIN
  4010. fi
  4011. fi
  4012. test -z "$NM" && NM=nm
  4013. AC_SUBST([NM])
  4014. _LT_DECL([], [NM], [1], [A BSD- or MS-compatible name lister])dnl
  4015. AC_CACHE_CHECK([the name lister ($NM) interface], [lt_cv_nm_interface],
  4016. [lt_cv_nm_interface="BSD nm"
  4017. echo "int some_variable = 0;" > conftest.$ac_ext
  4018. (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&AS_MESSAGE_LOG_FD)
  4019. (eval "$ac_compile" 2>conftest.err)
  4020. cat conftest.err >&AS_MESSAGE_LOG_FD
  4021. (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&AS_MESSAGE_LOG_FD)
  4022. (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  4023. cat conftest.err >&AS_MESSAGE_LOG_FD
  4024. (eval echo "\"\$as_me:$LINENO: output\"" >&AS_MESSAGE_LOG_FD)
  4025. cat conftest.out >&AS_MESSAGE_LOG_FD
  4026. if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  4027. lt_cv_nm_interface="MS dumpbin"
  4028. fi
  4029. rm -f conftest*])
  4030. ])# LT_PATH_NM
  4031. # Old names:
  4032. AU_ALIAS([AM_PROG_NM], [LT_PATH_NM])
  4033. AU_ALIAS([AC_PROG_NM], [LT_PATH_NM])
  4034. dnl aclocal-1.4 backwards compatibility:
  4035. dnl AC_DEFUN([AM_PROG_NM], [])
  4036. dnl AC_DEFUN([AC_PROG_NM], [])
  4037. # _LT_CHECK_SHAREDLIB_FROM_LINKLIB
  4038. # --------------------------------
  4039. # how to determine the name of the shared library
  4040. # associated with a specific link library.
  4041. # -- PORTME fill in with the dynamic library characteristics
  4042. m4_defun([_LT_CHECK_SHAREDLIB_FROM_LINKLIB],
  4043. [m4_require([_LT_DECL_EGREP])
  4044. m4_require([_LT_DECL_OBJDUMP])
  4045. m4_require([_LT_DECL_DLLTOOL])
  4046. AC_CACHE_CHECK([how to associate runtime and link libraries],
  4047. lt_cv_sharedlib_from_linklib_cmd,
  4048. [lt_cv_sharedlib_from_linklib_cmd='unknown'
  4049. case $host_os in
  4050. cygwin* | mingw* | pw32* | cegcc*)
  4051. # two different shell functions defined in ltmain.sh;
  4052. # decide which one to use based on capabilities of $DLLTOOL
  4053. case `$DLLTOOL --help 2>&1` in
  4054. *--identify-strict*)
  4055. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
  4056. ;;
  4057. *)
  4058. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
  4059. ;;
  4060. esac
  4061. ;;
  4062. *)
  4063. # fallback: assume linklib IS sharedlib
  4064. lt_cv_sharedlib_from_linklib_cmd=$ECHO
  4065. ;;
  4066. esac
  4067. ])
  4068. sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
  4069. test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
  4070. _LT_DECL([], [sharedlib_from_linklib_cmd], [1],
  4071. [Command to associate shared and link libraries])
  4072. ])# _LT_CHECK_SHAREDLIB_FROM_LINKLIB
  4073. # _LT_PATH_MANIFEST_TOOL
  4074. # ----------------------
  4075. # locate the manifest tool
  4076. m4_defun([_LT_PATH_MANIFEST_TOOL],
  4077. [AC_CHECK_TOOL(MANIFEST_TOOL, mt, :)
  4078. test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
  4079. AC_CACHE_CHECK([if $MANIFEST_TOOL is a manifest tool], [lt_cv_path_mainfest_tool],
  4080. [lt_cv_path_mainfest_tool=no
  4081. echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&AS_MESSAGE_LOG_FD
  4082. $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
  4083. cat conftest.err >&AS_MESSAGE_LOG_FD
  4084. if $GREP 'Manifest Tool' conftest.out > /dev/null; then
  4085. lt_cv_path_mainfest_tool=yes
  4086. fi
  4087. rm -f conftest*])
  4088. if test yes != "$lt_cv_path_mainfest_tool"; then
  4089. MANIFEST_TOOL=:
  4090. fi
  4091. _LT_DECL([], [MANIFEST_TOOL], [1], [Manifest tool])dnl
  4092. ])# _LT_PATH_MANIFEST_TOOL
  4093. # _LT_DLL_DEF_P([FILE])
  4094. # ---------------------
  4095. # True iff FILE is a Windows DLL '.def' file.
  4096. # Keep in sync with func_dll_def_p in the libtool script
  4097. AC_DEFUN([_LT_DLL_DEF_P],
  4098. [dnl
  4099. test DEF = "`$SED -n dnl
  4100. -e '\''s/^[[ ]]*//'\'' dnl Strip leading whitespace
  4101. -e '\''/^\(;.*\)*$/d'\'' dnl Delete empty lines and comments
  4102. -e '\''s/^\(EXPORTS\|LIBRARY\)\([[ ]].*\)*$/DEF/p'\'' dnl
  4103. -e q dnl Only consider the first "real" line
  4104. $1`" dnl
  4105. ])# _LT_DLL_DEF_P
  4106. # LT_LIB_M
  4107. # --------
  4108. # check for math library
  4109. AC_DEFUN([LT_LIB_M],
  4110. [AC_REQUIRE([AC_CANONICAL_HOST])dnl
  4111. LIBM=
  4112. case $host in
  4113. *-*-beos* | *-*-cegcc* | *-*-cygwin* | *-*-haiku* | *-*-pw32* | *-*-darwin*)
  4114. # These system don't have libm, or don't need it
  4115. ;;
  4116. *-ncr-sysv4.3*)
  4117. AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM=-lmw)
  4118. AC_CHECK_LIB(m, cos, LIBM="$LIBM -lm")
  4119. ;;
  4120. *)
  4121. AC_CHECK_LIB(m, cos, LIBM=-lm)
  4122. ;;
  4123. esac
  4124. AC_SUBST([LIBM])
  4125. ])# LT_LIB_M
  4126. # Old name:
  4127. AU_ALIAS([AC_CHECK_LIBM], [LT_LIB_M])
  4128. dnl aclocal-1.4 backwards compatibility:
  4129. dnl AC_DEFUN([AC_CHECK_LIBM], [])
  4130. # _LT_COMPILER_NO_RTTI([TAGNAME])
  4131. # -------------------------------
  4132. m4_defun([_LT_COMPILER_NO_RTTI],
  4133. [m4_require([_LT_TAG_COMPILER])dnl
  4134. _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
  4135. if test yes = "$GCC"; then
  4136. case $cc_basename in
  4137. nvcc*)
  4138. _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -Xcompiler -fno-builtin' ;;
  4139. *)
  4140. _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin' ;;
  4141. esac
  4142. _LT_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions],
  4143. lt_cv_prog_compiler_rtti_exceptions,
  4144. [-fno-rtti -fno-exceptions], [],
  4145. [_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"])
  4146. fi
  4147. _LT_TAGDECL([no_builtin_flag], [lt_prog_compiler_no_builtin_flag], [1],
  4148. [Compiler flag to turn off builtin functions])
  4149. ])# _LT_COMPILER_NO_RTTI
  4150. # _LT_CMD_GLOBAL_SYMBOLS
  4151. # ----------------------
  4152. m4_defun([_LT_CMD_GLOBAL_SYMBOLS],
  4153. [AC_REQUIRE([AC_CANONICAL_HOST])dnl
  4154. AC_REQUIRE([AC_PROG_CC])dnl
  4155. AC_REQUIRE([AC_PROG_AWK])dnl
  4156. AC_REQUIRE([LT_PATH_NM])dnl
  4157. AC_REQUIRE([LT_PATH_LD])dnl
  4158. m4_require([_LT_DECL_SED])dnl
  4159. m4_require([_LT_DECL_EGREP])dnl
  4160. m4_require([_LT_TAG_COMPILER])dnl
  4161. # Check for command to grab the raw symbol name followed by C symbol from nm.
  4162. AC_MSG_CHECKING([command to parse $NM output from $compiler object])
  4163. AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe],
  4164. [
  4165. # These are sane defaults that work on at least a few old systems.
  4166. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  4167. # Character class describing NM global symbol codes.
  4168. symcode='[[BCDEGRST]]'
  4169. # Regexp to match symbols that can be accessed directly from C.
  4170. sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)'
  4171. # Define system-specific variables.
  4172. case $host_os in
  4173. aix*)
  4174. symcode='[[BCDT]]'
  4175. ;;
  4176. cygwin* | mingw* | pw32* | cegcc*)
  4177. symcode='[[ABCDGISTW]]'
  4178. ;;
  4179. hpux*)
  4180. if test ia64 = "$host_cpu"; then
  4181. symcode='[[ABCDEGRST]]'
  4182. fi
  4183. ;;
  4184. irix* | nonstopux*)
  4185. symcode='[[BCDEGRST]]'
  4186. ;;
  4187. osf*)
  4188. symcode='[[BCDEGQRST]]'
  4189. ;;
  4190. solaris*)
  4191. symcode='[[BDRT]]'
  4192. ;;
  4193. sco3.2v5*)
  4194. symcode='[[DT]]'
  4195. ;;
  4196. sysv4.2uw2*)
  4197. symcode='[[DT]]'
  4198. ;;
  4199. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  4200. symcode='[[ABDT]]'
  4201. ;;
  4202. sysv4)
  4203. symcode='[[DFNSTU]]'
  4204. ;;
  4205. esac
  4206. # If we're using GNU nm, then use its standard symbol codes.
  4207. case `$NM -V 2>&1` in
  4208. *GNU* | *'with BFD'*)
  4209. symcode='[[ABCDGIRSTW]]' ;;
  4210. esac
  4211. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  4212. # Gets list of data symbols to import.
  4213. lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
  4214. # Adjust the below global symbol transforms to fixup imported variables.
  4215. lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
  4216. lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
  4217. lt_c_name_lib_hook="\
  4218. -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
  4219. -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
  4220. else
  4221. # Disable hooks by default.
  4222. lt_cv_sys_global_symbol_to_import=
  4223. lt_cdecl_hook=
  4224. lt_c_name_hook=
  4225. lt_c_name_lib_hook=
  4226. fi
  4227. # Transform an extracted symbol line into a proper C declaration.
  4228. # Some systems (esp. on ia64) link data and code symbols differently,
  4229. # so use this general approach.
  4230. lt_cv_sys_global_symbol_to_cdecl="sed -n"\
  4231. $lt_cdecl_hook\
  4232. " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
  4233. " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
  4234. # Transform an extracted symbol line into symbol name and symbol address
  4235. lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
  4236. $lt_c_name_hook\
  4237. " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
  4238. " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
  4239. # Transform an extracted symbol line into symbol name with lib prefix and
  4240. # symbol address.
  4241. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
  4242. $lt_c_name_lib_hook\
  4243. " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
  4244. " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
  4245. " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
  4246. # Handle CRLF in mingw tool chain
  4247. opt_cr=
  4248. case $build_os in
  4249. mingw*)
  4250. opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  4251. ;;
  4252. esac
  4253. # Try without a prefix underscore, then with it.
  4254. for ac_symprfx in "" "_"; do
  4255. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  4256. symxfrm="\\1 $ac_symprfx\\2 \\2"
  4257. # Write the raw and C identifiers.
  4258. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  4259. # Fake it for dumpbin and say T for any non-static function,
  4260. # D for any global variable and I for any imported variable.
  4261. # Also find C++ and __fastcall symbols from MSVC++,
  4262. # which start with @ or ?.
  4263. lt_cv_sys_global_symbol_pipe="$AWK ['"\
  4264. " {last_section=section; section=\$ 3};"\
  4265. " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
  4266. " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  4267. " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
  4268. " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
  4269. " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
  4270. " \$ 0!~/External *\|/{next};"\
  4271. " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  4272. " {if(hide[section]) next};"\
  4273. " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
  4274. " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
  4275. " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
  4276. " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
  4277. " ' prfx=^$ac_symprfx]"
  4278. else
  4279. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  4280. fi
  4281. lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
  4282. # Check to see that the pipe works correctly.
  4283. pipe_works=no
  4284. rm -f conftest*
  4285. cat > conftest.$ac_ext <<_LT_EOF
  4286. #ifdef __cplusplus
  4287. extern "C" {
  4288. #endif
  4289. char nm_test_var;
  4290. void nm_test_func(void);
  4291. void nm_test_func(void){}
  4292. #ifdef __cplusplus
  4293. }
  4294. #endif
  4295. int main(){nm_test_var='a';nm_test_func();return(0);}
  4296. _LT_EOF
  4297. if AC_TRY_EVAL(ac_compile); then
  4298. # Now try to grab the symbols.
  4299. nlist=conftest.nm
  4300. if AC_TRY_EVAL(NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) && test -s "$nlist"; then
  4301. # Try sorting and uniquifying the output.
  4302. if sort "$nlist" | uniq > "$nlist"T; then
  4303. mv -f "$nlist"T "$nlist"
  4304. else
  4305. rm -f "$nlist"T
  4306. fi
  4307. # Make sure that we snagged all the symbols we need.
  4308. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  4309. if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  4310. cat <<_LT_EOF > conftest.$ac_ext
  4311. /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
  4312. #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
  4313. /* DATA imports from DLLs on WIN32 can't be const, because runtime
  4314. relocations are performed -- see ld's documentation on pseudo-relocs. */
  4315. # define LT@&t@_DLSYM_CONST
  4316. #elif defined __osf__
  4317. /* This system does not cope well with relocations in const data. */
  4318. # define LT@&t@_DLSYM_CONST
  4319. #else
  4320. # define LT@&t@_DLSYM_CONST const
  4321. #endif
  4322. #ifdef __cplusplus
  4323. extern "C" {
  4324. #endif
  4325. _LT_EOF
  4326. # Now generate the symbol file.
  4327. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  4328. cat <<_LT_EOF >> conftest.$ac_ext
  4329. /* The mapping between symbol names and symbols. */
  4330. LT@&t@_DLSYM_CONST struct {
  4331. const char *name;
  4332. void *address;
  4333. }
  4334. lt__PROGRAM__LTX_preloaded_symbols[[]] =
  4335. {
  4336. { "@PROGRAM@", (void *) 0 },
  4337. _LT_EOF
  4338. $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  4339. cat <<\_LT_EOF >> conftest.$ac_ext
  4340. {0, (void *) 0}
  4341. };
  4342. /* This works around a problem in FreeBSD linker */
  4343. #ifdef FREEBSD_WORKAROUND
  4344. static const void *lt_preloaded_setup() {
  4345. return lt__PROGRAM__LTX_preloaded_symbols;
  4346. }
  4347. #endif
  4348. #ifdef __cplusplus
  4349. }
  4350. #endif
  4351. _LT_EOF
  4352. # Now try linking the two files.
  4353. mv conftest.$ac_objext conftstm.$ac_objext
  4354. lt_globsym_save_LIBS=$LIBS
  4355. lt_globsym_save_CFLAGS=$CFLAGS
  4356. LIBS=conftstm.$ac_objext
  4357. CFLAGS="$CFLAGS$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)"
  4358. if AC_TRY_EVAL(ac_link) && test -s conftest$ac_exeext; then
  4359. pipe_works=yes
  4360. fi
  4361. LIBS=$lt_globsym_save_LIBS
  4362. CFLAGS=$lt_globsym_save_CFLAGS
  4363. else
  4364. echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD
  4365. fi
  4366. else
  4367. echo "cannot find nm_test_var in $nlist" >&AS_MESSAGE_LOG_FD
  4368. fi
  4369. else
  4370. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&AS_MESSAGE_LOG_FD
  4371. fi
  4372. else
  4373. echo "$progname: failed program was:" >&AS_MESSAGE_LOG_FD
  4374. cat conftest.$ac_ext >&5
  4375. fi
  4376. rm -rf conftest* conftst*
  4377. # Do not use the global_symbol_pipe unless it works.
  4378. if test yes = "$pipe_works"; then
  4379. break
  4380. else
  4381. lt_cv_sys_global_symbol_pipe=
  4382. fi
  4383. done
  4384. ])
  4385. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  4386. lt_cv_sys_global_symbol_to_cdecl=
  4387. fi
  4388. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  4389. AC_MSG_RESULT(failed)
  4390. else
  4391. AC_MSG_RESULT(ok)
  4392. fi
  4393. # Response file support.
  4394. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  4395. nm_file_list_spec='@'
  4396. elif $NM --help 2>/dev/null | grep '[[@]]FILE' >/dev/null; then
  4397. nm_file_list_spec='@'
  4398. fi
  4399. _LT_DECL([global_symbol_pipe], [lt_cv_sys_global_symbol_pipe], [1],
  4400. [Take the output of nm and produce a listing of raw symbols and C names])
  4401. _LT_DECL([global_symbol_to_cdecl], [lt_cv_sys_global_symbol_to_cdecl], [1],
  4402. [Transform the output of nm in a proper C declaration])
  4403. _LT_DECL([global_symbol_to_import], [lt_cv_sys_global_symbol_to_import], [1],
  4404. [Transform the output of nm into a list of symbols to manually relocate])
  4405. _LT_DECL([global_symbol_to_c_name_address],
  4406. [lt_cv_sys_global_symbol_to_c_name_address], [1],
  4407. [Transform the output of nm in a C name address pair])
  4408. _LT_DECL([global_symbol_to_c_name_address_lib_prefix],
  4409. [lt_cv_sys_global_symbol_to_c_name_address_lib_prefix], [1],
  4410. [Transform the output of nm in a C name address pair when lib prefix is needed])
  4411. _LT_DECL([nm_interface], [lt_cv_nm_interface], [1],
  4412. [The name lister interface])
  4413. _LT_DECL([], [nm_file_list_spec], [1],
  4414. [Specify filename containing input files for $NM])
  4415. ]) # _LT_CMD_GLOBAL_SYMBOLS
  4416. # _LT_COMPILER_PIC([TAGNAME])
  4417. # ---------------------------
  4418. m4_defun([_LT_COMPILER_PIC],
  4419. [m4_require([_LT_TAG_COMPILER])dnl
  4420. _LT_TAGVAR(lt_prog_compiler_wl, $1)=
  4421. _LT_TAGVAR(lt_prog_compiler_pic, $1)=
  4422. _LT_TAGVAR(lt_prog_compiler_static, $1)=
  4423. m4_if([$1], [CXX], [
  4424. # C++ specific cases for pic, static, wl, etc.
  4425. if test yes = "$GXX"; then
  4426. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4427. _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
  4428. case $host_os in
  4429. aix*)
  4430. # All AIX code is PIC.
  4431. if test ia64 = "$host_cpu"; then
  4432. # AIX 5 now supports IA64 processor
  4433. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  4434. fi
  4435. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  4436. ;;
  4437. amigaos*)
  4438. case $host_cpu in
  4439. powerpc)
  4440. # see comment about AmigaOS4 .so support
  4441. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  4442. ;;
  4443. m68k)
  4444. # FIXME: we need at least 68020 code to build shared libraries, but
  4445. # adding the '-m68020' flag to GCC prevents building anything better,
  4446. # like '-m68040'.
  4447. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
  4448. ;;
  4449. esac
  4450. ;;
  4451. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  4452. # PIC is the default for these OSes.
  4453. ;;
  4454. mingw* | cygwin* | os2* | pw32* | cegcc*)
  4455. # This hack is so that the source file can tell whether it is being
  4456. # built for inclusion in a dll (and should export symbols for example).
  4457. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  4458. # (--disable-auto-import) libraries
  4459. m4_if([$1], [GCJ], [],
  4460. [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
  4461. case $host_os in
  4462. os2*)
  4463. _LT_TAGVAR(lt_prog_compiler_static, $1)='$wl-static'
  4464. ;;
  4465. esac
  4466. ;;
  4467. darwin* | rhapsody*)
  4468. # PIC is the default on this platform
  4469. # Common symbols not allowed in MH_DYLIB files
  4470. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
  4471. ;;
  4472. *djgpp*)
  4473. # DJGPP does not support shared libraries at all
  4474. _LT_TAGVAR(lt_prog_compiler_pic, $1)=
  4475. ;;
  4476. haiku*)
  4477. # PIC is the default for Haiku.
  4478. # The "-static" flag exists, but is broken.
  4479. _LT_TAGVAR(lt_prog_compiler_static, $1)=
  4480. ;;
  4481. interix[[3-9]]*)
  4482. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  4483. # Instead, we relocate shared libraries at runtime.
  4484. ;;
  4485. sysv4*MP*)
  4486. if test -d /usr/nec; then
  4487. _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
  4488. fi
  4489. ;;
  4490. hpux*)
  4491. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  4492. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  4493. # sets the default TLS model and affects inlining.
  4494. case $host_cpu in
  4495. hppa*64*)
  4496. ;;
  4497. *)
  4498. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  4499. ;;
  4500. esac
  4501. ;;
  4502. *qnx* | *nto*)
  4503. # QNX uses GNU C++, but need to define -shared option too, otherwise
  4504. # it will coredump.
  4505. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
  4506. ;;
  4507. *)
  4508. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  4509. ;;
  4510. esac
  4511. else
  4512. case $host_os in
  4513. aix[[4-9]]*)
  4514. # All AIX code is PIC.
  4515. if test ia64 = "$host_cpu"; then
  4516. # AIX 5 now supports IA64 processor
  4517. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  4518. else
  4519. _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
  4520. fi
  4521. ;;
  4522. chorus*)
  4523. case $cc_basename in
  4524. cxch68*)
  4525. # Green Hills C++ Compiler
  4526. # _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"
  4527. ;;
  4528. esac
  4529. ;;
  4530. mingw* | cygwin* | os2* | pw32* | cegcc*)
  4531. # This hack is so that the source file can tell whether it is being
  4532. # built for inclusion in a dll (and should export symbols for example).
  4533. m4_if([$1], [GCJ], [],
  4534. [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
  4535. ;;
  4536. dgux*)
  4537. case $cc_basename in
  4538. ec++*)
  4539. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  4540. ;;
  4541. ghcx*)
  4542. # Green Hills C++ Compiler
  4543. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  4544. ;;
  4545. *)
  4546. ;;
  4547. esac
  4548. ;;
  4549. freebsd* | dragonfly*)
  4550. # FreeBSD uses GNU C++
  4551. ;;
  4552. hpux9* | hpux10* | hpux11*)
  4553. case $cc_basename in
  4554. CC*)
  4555. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4556. _LT_TAGVAR(lt_prog_compiler_static, $1)='$wl-a ${wl}archive'
  4557. if test ia64 != "$host_cpu"; then
  4558. _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
  4559. fi
  4560. ;;
  4561. aCC*)
  4562. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4563. _LT_TAGVAR(lt_prog_compiler_static, $1)='$wl-a ${wl}archive'
  4564. case $host_cpu in
  4565. hppa*64*|ia64*)
  4566. # +Z the default
  4567. ;;
  4568. *)
  4569. _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
  4570. ;;
  4571. esac
  4572. ;;
  4573. *)
  4574. ;;
  4575. esac
  4576. ;;
  4577. interix*)
  4578. # This is c89, which is MS Visual C++ (no shared libs)
  4579. # Anyone wants to do a port?
  4580. ;;
  4581. irix5* | irix6* | nonstopux*)
  4582. case $cc_basename in
  4583. CC*)
  4584. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4585. _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  4586. # CC pic flag -KPIC is the default.
  4587. ;;
  4588. *)
  4589. ;;
  4590. esac
  4591. ;;
  4592. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  4593. case $cc_basename in
  4594. KCC*)
  4595. # KAI C++ Compiler
  4596. _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
  4597. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  4598. ;;
  4599. ecpc* )
  4600. # old Intel C++ for x86_64, which still supported -KPIC.
  4601. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4602. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  4603. _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
  4604. ;;
  4605. icpc* )
  4606. # Intel C++, used to be incompatible with GCC.
  4607. # ICC 10 doesn't accept -KPIC any more.
  4608. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4609. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  4610. _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
  4611. ;;
  4612. pgCC* | pgcpp*)
  4613. # Portland Group C++ compiler
  4614. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4615. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
  4616. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  4617. ;;
  4618. cxx*)
  4619. # Compaq C++
  4620. # Make sure the PIC flag is empty. It appears that all Alpha
  4621. # Linux and Compaq Tru64 Unix objects are PIC.
  4622. _LT_TAGVAR(lt_prog_compiler_pic, $1)=
  4623. _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  4624. ;;
  4625. xlc* | xlC* | bgxl[[cC]]* | mpixl[[cC]]*)
  4626. # IBM XL 8.0, 9.0 on PPC and BlueGene
  4627. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4628. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
  4629. _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
  4630. ;;
  4631. *)
  4632. case `$CC -V 2>&1 | sed 5q` in
  4633. *Sun\ C*)
  4634. # Sun C++ 5.9
  4635. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  4636. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  4637. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
  4638. ;;
  4639. esac
  4640. ;;
  4641. esac
  4642. ;;
  4643. lynxos*)
  4644. ;;
  4645. m88k*)
  4646. ;;
  4647. mvs*)
  4648. case $cc_basename in
  4649. cxx*)
  4650. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall'
  4651. ;;
  4652. *)
  4653. ;;
  4654. esac
  4655. ;;
  4656. netbsd*)
  4657. ;;
  4658. *qnx* | *nto*)
  4659. # QNX uses GNU C++, but need to define -shared option too, otherwise
  4660. # it will coredump.
  4661. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
  4662. ;;
  4663. osf3* | osf4* | osf5*)
  4664. case $cc_basename in
  4665. KCC*)
  4666. _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
  4667. ;;
  4668. RCC*)
  4669. # Rational C++ 2.4.1
  4670. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  4671. ;;
  4672. cxx*)
  4673. # Digital/Compaq C++
  4674. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4675. # Make sure the PIC flag is empty. It appears that all Alpha
  4676. # Linux and Compaq Tru64 Unix objects are PIC.
  4677. _LT_TAGVAR(lt_prog_compiler_pic, $1)=
  4678. _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  4679. ;;
  4680. *)
  4681. ;;
  4682. esac
  4683. ;;
  4684. psos*)
  4685. ;;
  4686. solaris*)
  4687. case $cc_basename in
  4688. CC* | sunCC*)
  4689. # Sun C++ 4.2, 5.x and Centerline C++
  4690. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  4691. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  4692. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
  4693. ;;
  4694. gcx*)
  4695. # Green Hills C++ Compiler
  4696. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
  4697. ;;
  4698. *)
  4699. ;;
  4700. esac
  4701. ;;
  4702. sunos4*)
  4703. case $cc_basename in
  4704. CC*)
  4705. # Sun C++ 4.x
  4706. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  4707. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  4708. ;;
  4709. lcc*)
  4710. # Lucid
  4711. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  4712. ;;
  4713. *)
  4714. ;;
  4715. esac
  4716. ;;
  4717. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  4718. case $cc_basename in
  4719. CC*)
  4720. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4721. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  4722. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  4723. ;;
  4724. esac
  4725. ;;
  4726. tandem*)
  4727. case $cc_basename in
  4728. NCC*)
  4729. # NonStop-UX NCC 3.20
  4730. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  4731. ;;
  4732. *)
  4733. ;;
  4734. esac
  4735. ;;
  4736. vxworks*)
  4737. ;;
  4738. *)
  4739. _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
  4740. ;;
  4741. esac
  4742. fi
  4743. ],
  4744. [
  4745. if test yes = "$GCC"; then
  4746. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4747. _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
  4748. case $host_os in
  4749. aix*)
  4750. # All AIX code is PIC.
  4751. if test ia64 = "$host_cpu"; then
  4752. # AIX 5 now supports IA64 processor
  4753. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  4754. fi
  4755. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  4756. ;;
  4757. amigaos*)
  4758. case $host_cpu in
  4759. powerpc)
  4760. # see comment about AmigaOS4 .so support
  4761. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  4762. ;;
  4763. m68k)
  4764. # FIXME: we need at least 68020 code to build shared libraries, but
  4765. # adding the '-m68020' flag to GCC prevents building anything better,
  4766. # like '-m68040'.
  4767. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
  4768. ;;
  4769. esac
  4770. ;;
  4771. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  4772. # PIC is the default for these OSes.
  4773. ;;
  4774. mingw* | cygwin* | pw32* | os2* | cegcc*)
  4775. # This hack is so that the source file can tell whether it is being
  4776. # built for inclusion in a dll (and should export symbols for example).
  4777. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  4778. # (--disable-auto-import) libraries
  4779. m4_if([$1], [GCJ], [],
  4780. [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
  4781. case $host_os in
  4782. os2*)
  4783. _LT_TAGVAR(lt_prog_compiler_static, $1)='$wl-static'
  4784. ;;
  4785. esac
  4786. ;;
  4787. darwin* | rhapsody*)
  4788. # PIC is the default on this platform
  4789. # Common symbols not allowed in MH_DYLIB files
  4790. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
  4791. ;;
  4792. haiku*)
  4793. # PIC is the default for Haiku.
  4794. # The "-static" flag exists, but is broken.
  4795. _LT_TAGVAR(lt_prog_compiler_static, $1)=
  4796. ;;
  4797. hpux*)
  4798. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  4799. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  4800. # sets the default TLS model and affects inlining.
  4801. case $host_cpu in
  4802. hppa*64*)
  4803. # +Z the default
  4804. ;;
  4805. *)
  4806. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  4807. ;;
  4808. esac
  4809. ;;
  4810. interix[[3-9]]*)
  4811. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  4812. # Instead, we relocate shared libraries at runtime.
  4813. ;;
  4814. msdosdjgpp*)
  4815. # Just because we use GCC doesn't mean we suddenly get shared libraries
  4816. # on systems that don't support them.
  4817. _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
  4818. enable_shared=no
  4819. ;;
  4820. *nto* | *qnx*)
  4821. # QNX uses GNU C++, but need to define -shared option too, otherwise
  4822. # it will coredump.
  4823. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
  4824. ;;
  4825. sysv4*MP*)
  4826. if test -d /usr/nec; then
  4827. _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
  4828. fi
  4829. ;;
  4830. *)
  4831. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  4832. ;;
  4833. esac
  4834. case $cc_basename in
  4835. nvcc*) # Cuda Compiler Driver 2.2
  4836. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Xlinker '
  4837. if test -n "$_LT_TAGVAR(lt_prog_compiler_pic, $1)"; then
  4838. _LT_TAGVAR(lt_prog_compiler_pic, $1)="-Xcompiler $_LT_TAGVAR(lt_prog_compiler_pic, $1)"
  4839. fi
  4840. ;;
  4841. esac
  4842. else
  4843. # PORTME Check for flag to pass linker flags through the system compiler.
  4844. case $host_os in
  4845. aix*)
  4846. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4847. if test ia64 = "$host_cpu"; then
  4848. # AIX 5 now supports IA64 processor
  4849. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  4850. else
  4851. _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
  4852. fi
  4853. ;;
  4854. darwin* | rhapsody*)
  4855. # PIC is the default on this platform
  4856. # Common symbols not allowed in MH_DYLIB files
  4857. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
  4858. case $cc_basename in
  4859. nagfor*)
  4860. # NAG Fortran compiler
  4861. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,-Wl,,'
  4862. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
  4863. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  4864. ;;
  4865. esac
  4866. ;;
  4867. mingw* | cygwin* | pw32* | os2* | cegcc*)
  4868. # This hack is so that the source file can tell whether it is being
  4869. # built for inclusion in a dll (and should export symbols for example).
  4870. m4_if([$1], [GCJ], [],
  4871. [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
  4872. case $host_os in
  4873. os2*)
  4874. _LT_TAGVAR(lt_prog_compiler_static, $1)='$wl-static'
  4875. ;;
  4876. esac
  4877. ;;
  4878. hpux9* | hpux10* | hpux11*)
  4879. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4880. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  4881. # not for PA HP-UX.
  4882. case $host_cpu in
  4883. hppa*64*|ia64*)
  4884. # +Z the default
  4885. ;;
  4886. *)
  4887. _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
  4888. ;;
  4889. esac
  4890. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  4891. _LT_TAGVAR(lt_prog_compiler_static, $1)='$wl-a ${wl}archive'
  4892. ;;
  4893. irix5* | irix6* | nonstopux*)
  4894. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4895. # PIC (with -KPIC) is the default.
  4896. _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  4897. ;;
  4898. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  4899. case $cc_basename in
  4900. # old Intel for x86_64, which still supported -KPIC.
  4901. ecc*)
  4902. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4903. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  4904. _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
  4905. ;;
  4906. # icc used to be incompatible with GCC.
  4907. # ICC 10 doesn't accept -KPIC any more.
  4908. icc* | ifort*)
  4909. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4910. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  4911. _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
  4912. ;;
  4913. # Lahey Fortran 8.1.
  4914. lf95*)
  4915. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4916. _LT_TAGVAR(lt_prog_compiler_pic, $1)='--shared'
  4917. _LT_TAGVAR(lt_prog_compiler_static, $1)='--static'
  4918. ;;
  4919. nagfor*)
  4920. # NAG Fortran compiler
  4921. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,-Wl,,'
  4922. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
  4923. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  4924. ;;
  4925. tcc*)
  4926. # Fabrice Bellard et al's Tiny C Compiler
  4927. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4928. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  4929. _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
  4930. ;;
  4931. pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
  4932. # Portland Group compilers (*not* the Pentium gcc compiler,
  4933. # which looks to be a dead project)
  4934. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4935. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
  4936. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  4937. ;;
  4938. ccc*)
  4939. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4940. # All Alpha code is PIC.
  4941. _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  4942. ;;
  4943. xl* | bgxl* | bgf* | mpixl*)
  4944. # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
  4945. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4946. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
  4947. _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
  4948. ;;
  4949. *)
  4950. case `$CC -V 2>&1 | sed 5q` in
  4951. *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [[1-7]].* | *Sun*Fortran*\ 8.[[0-3]]*)
  4952. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  4953. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  4954. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  4955. _LT_TAGVAR(lt_prog_compiler_wl, $1)=''
  4956. ;;
  4957. *Sun\ F* | *Sun*Fortran*)
  4958. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  4959. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  4960. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
  4961. ;;
  4962. *Sun\ C*)
  4963. # Sun C 5.9
  4964. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  4965. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  4966. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4967. ;;
  4968. *Intel*\ [[CF]]*Compiler*)
  4969. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4970. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  4971. _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
  4972. ;;
  4973. *Portland\ Group*)
  4974. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4975. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
  4976. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  4977. ;;
  4978. esac
  4979. ;;
  4980. esac
  4981. ;;
  4982. newsos6)
  4983. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  4984. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  4985. ;;
  4986. *nto* | *qnx*)
  4987. # QNX uses GNU C++, but need to define -shared option too, otherwise
  4988. # it will coredump.
  4989. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
  4990. ;;
  4991. osf3* | osf4* | osf5*)
  4992. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4993. # All OSF/1 code is PIC.
  4994. _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  4995. ;;
  4996. rdos*)
  4997. _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  4998. ;;
  4999. solaris*)
  5000. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  5001. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  5002. case $cc_basename in
  5003. f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
  5004. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';;
  5005. *)
  5006. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';;
  5007. esac
  5008. ;;
  5009. sunos4*)
  5010. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
  5011. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
  5012. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  5013. ;;
  5014. sysv4 | sysv4.2uw2* | sysv4.3*)
  5015. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  5016. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  5017. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  5018. ;;
  5019. sysv4*MP*)
  5020. if test -d /usr/nec; then
  5021. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic'
  5022. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  5023. fi
  5024. ;;
  5025. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  5026. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  5027. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  5028. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  5029. ;;
  5030. unicos*)
  5031. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  5032. _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
  5033. ;;
  5034. uts4*)
  5035. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  5036. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  5037. ;;
  5038. *)
  5039. _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
  5040. ;;
  5041. esac
  5042. fi
  5043. ])
  5044. case $host_os in
  5045. # For platforms that do not support PIC, -DPIC is meaningless:
  5046. *djgpp*)
  5047. _LT_TAGVAR(lt_prog_compiler_pic, $1)=
  5048. ;;
  5049. *)
  5050. _LT_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])"
  5051. ;;
  5052. esac
  5053. AC_CACHE_CHECK([for $compiler option to produce PIC],
  5054. [_LT_TAGVAR(lt_cv_prog_compiler_pic, $1)],
  5055. [_LT_TAGVAR(lt_cv_prog_compiler_pic, $1)=$_LT_TAGVAR(lt_prog_compiler_pic, $1)])
  5056. _LT_TAGVAR(lt_prog_compiler_pic, $1)=$_LT_TAGVAR(lt_cv_prog_compiler_pic, $1)
  5057. #
  5058. # Check to make sure the PIC flag actually works.
  5059. #
  5060. if test -n "$_LT_TAGVAR(lt_prog_compiler_pic, $1)"; then
  5061. _LT_COMPILER_OPTION([if $compiler PIC flag $_LT_TAGVAR(lt_prog_compiler_pic, $1) works],
  5062. [_LT_TAGVAR(lt_cv_prog_compiler_pic_works, $1)],
  5063. [$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])], [],
  5064. [case $_LT_TAGVAR(lt_prog_compiler_pic, $1) in
  5065. "" | " "*) ;;
  5066. *) _LT_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_TAGVAR(lt_prog_compiler_pic, $1)" ;;
  5067. esac],
  5068. [_LT_TAGVAR(lt_prog_compiler_pic, $1)=
  5069. _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no])
  5070. fi
  5071. _LT_TAGDECL([pic_flag], [lt_prog_compiler_pic], [1],
  5072. [Additional compiler flags for building library objects])
  5073. _LT_TAGDECL([wl], [lt_prog_compiler_wl], [1],
  5074. [How to pass a linker flag through the compiler])
  5075. #
  5076. # Check to make sure the static flag actually works.
  5077. #
  5078. wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_TAGVAR(lt_prog_compiler_static, $1)\"
  5079. _LT_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works],
  5080. _LT_TAGVAR(lt_cv_prog_compiler_static_works, $1),
  5081. $lt_tmp_static_flag,
  5082. [],
  5083. [_LT_TAGVAR(lt_prog_compiler_static, $1)=])
  5084. _LT_TAGDECL([link_static_flag], [lt_prog_compiler_static], [1],
  5085. [Compiler flag to prevent dynamic linking])
  5086. ])# _LT_COMPILER_PIC
  5087. # _LT_LINKER_SHLIBS([TAGNAME])
  5088. # ----------------------------
  5089. # See if the linker supports building shared libraries.
  5090. m4_defun([_LT_LINKER_SHLIBS],
  5091. [AC_REQUIRE([LT_PATH_LD])dnl
  5092. AC_REQUIRE([LT_PATH_NM])dnl
  5093. m4_require([_LT_PATH_MANIFEST_TOOL])dnl
  5094. m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  5095. m4_require([_LT_DECL_EGREP])dnl
  5096. m4_require([_LT_DECL_SED])dnl
  5097. m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
  5098. m4_require([_LT_TAG_COMPILER])dnl
  5099. AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
  5100. m4_if([$1], [CXX], [
  5101. _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  5102. _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
  5103. case $host_os in
  5104. aix[[4-9]]*)
  5105. # If we're using GNU nm, then we don't want the "-C" option.
  5106. # -C means demangle to GNU nm, but means don't demangle to AIX nm.
  5107. # Without the "-l" option, or with the "-B" option, AIX nm treats
  5108. # weak defined symbols like other global defined symbols, whereas
  5109. # GNU nm marks them as "W".
  5110. # While the 'weak' keyword is ignored in the Export File, we need
  5111. # it in the Import File for the 'aix-soname' feature, so we have
  5112. # to replace the "-B" option with "-P" for AIX nm.
  5113. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  5114. _LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && ([substr](\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
  5115. else
  5116. _LT_TAGVAR(export_symbols_cmds, $1)='`func_echo_all $NM | $SED -e '\''s/B\([[^B]]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && ([substr](\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
  5117. fi
  5118. ;;
  5119. pw32*)
  5120. _LT_TAGVAR(export_symbols_cmds, $1)=$ltdll_cmds
  5121. ;;
  5122. cygwin* | mingw* | cegcc*)
  5123. case $cc_basename in
  5124. cl*)
  5125. _LT_TAGVAR(exclude_expsyms, $1)='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  5126. ;;
  5127. *)
  5128. _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/;s/^.*[[ ]]__nm__\([[^ ]]*\)[[ ]][[^ ]]*/\1 DATA/;/^I[[ ]]/d;/^[[AITW]][[ ]]/s/.* //'\'' | sort | uniq > $export_symbols'
  5129. _LT_TAGVAR(exclude_expsyms, $1)=['[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname']
  5130. ;;
  5131. esac
  5132. ;;
  5133. *)
  5134. _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  5135. ;;
  5136. esac
  5137. ], [
  5138. runpath_var=
  5139. _LT_TAGVAR(allow_undefined_flag, $1)=
  5140. _LT_TAGVAR(always_export_symbols, $1)=no
  5141. _LT_TAGVAR(archive_cmds, $1)=
  5142. _LT_TAGVAR(archive_expsym_cmds, $1)=
  5143. _LT_TAGVAR(compiler_needs_object, $1)=no
  5144. _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
  5145. _LT_TAGVAR(export_dynamic_flag_spec, $1)=
  5146. _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  5147. _LT_TAGVAR(hardcode_automatic, $1)=no
  5148. _LT_TAGVAR(hardcode_direct, $1)=no
  5149. _LT_TAGVAR(hardcode_direct_absolute, $1)=no
  5150. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
  5151. _LT_TAGVAR(hardcode_libdir_separator, $1)=
  5152. _LT_TAGVAR(hardcode_minus_L, $1)=no
  5153. _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
  5154. _LT_TAGVAR(inherit_rpath, $1)=no
  5155. _LT_TAGVAR(link_all_deplibs, $1)=unknown
  5156. _LT_TAGVAR(module_cmds, $1)=
  5157. _LT_TAGVAR(module_expsym_cmds, $1)=
  5158. _LT_TAGVAR(old_archive_from_new_cmds, $1)=
  5159. _LT_TAGVAR(old_archive_from_expsyms_cmds, $1)=
  5160. _LT_TAGVAR(thread_safe_flag_spec, $1)=
  5161. _LT_TAGVAR(whole_archive_flag_spec, $1)=
  5162. # include_expsyms should be a list of space-separated symbols to be *always*
  5163. # included in the symbol list
  5164. _LT_TAGVAR(include_expsyms, $1)=
  5165. # exclude_expsyms can be an extended regexp of symbols to exclude
  5166. # it will be wrapped by ' (' and ')$', so one must not match beginning or
  5167. # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
  5168. # as well as any symbol that contains 'd'.
  5169. _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
  5170. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  5171. # platforms (ab)use it in PIC code, but their linkers get confused if
  5172. # the symbol is explicitly referenced. Since portable code cannot
  5173. # rely on this symbol name, it's probably fine to never include it in
  5174. # preloaded symbol tables.
  5175. # Exclude shared library initialization/finalization symbols.
  5176. dnl Note also adjust exclude_expsyms for C++ above.
  5177. extract_expsyms_cmds=
  5178. case $host_os in
  5179. cygwin* | mingw* | pw32* | cegcc*)
  5180. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  5181. # When not using gcc, we currently assume that we are using
  5182. # Microsoft Visual C++.
  5183. if test yes != "$GCC"; then
  5184. with_gnu_ld=no
  5185. fi
  5186. ;;
  5187. interix*)
  5188. # we just hope/assume this is gcc and not c89 (= MSVC++)
  5189. with_gnu_ld=yes
  5190. ;;
  5191. openbsd* | bitrig*)
  5192. with_gnu_ld=no
  5193. ;;
  5194. esac
  5195. _LT_TAGVAR(ld_shlibs, $1)=yes
  5196. # On some targets, GNU ld is compatible enough with the native linker
  5197. # that we're better off using the native interface for both.
  5198. lt_use_gnu_ld_interface=no
  5199. if test yes = "$with_gnu_ld"; then
  5200. case $host_os in
  5201. aix*)
  5202. # The AIX port of GNU ld has always aspired to compatibility
  5203. # with the native linker. However, as the warning in the GNU ld
  5204. # block says, versions before 2.19.5* couldn't really create working
  5205. # shared libraries, regardless of the interface used.
  5206. case `$LD -v 2>&1` in
  5207. *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
  5208. *\ \(GNU\ Binutils\)\ 2.[[2-9]]*) ;;
  5209. *\ \(GNU\ Binutils\)\ [[3-9]]*) ;;
  5210. *)
  5211. lt_use_gnu_ld_interface=yes
  5212. ;;
  5213. esac
  5214. ;;
  5215. *)
  5216. lt_use_gnu_ld_interface=yes
  5217. ;;
  5218. esac
  5219. fi
  5220. if test yes = "$lt_use_gnu_ld_interface"; then
  5221. # If archive_cmds runs LD, not CC, wlarc should be empty
  5222. wlarc='$wl'
  5223. # Set some defaults for GNU ld with shared library support. These
  5224. # are reset later if shared libraries are not supported. Putting them
  5225. # here allows them to be overridden if necessary.
  5226. runpath_var=LD_RUN_PATH
  5227. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
  5228. _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-dynamic'
  5229. # ancient GNU ld didn't support --whole-archive et. al.
  5230. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  5231. _LT_TAGVAR(whole_archive_flag_spec, $1)=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
  5232. else
  5233. _LT_TAGVAR(whole_archive_flag_spec, $1)=
  5234. fi
  5235. supports_anon_versioning=no
  5236. case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in
  5237. *GNU\ gold*) supports_anon_versioning=yes ;;
  5238. *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11
  5239. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  5240. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  5241. *\ 2.11.*) ;; # other 2.11 versions
  5242. *) supports_anon_versioning=yes ;;
  5243. esac
  5244. # See if GNU ld supports shared libraries.
  5245. case $host_os in
  5246. aix[[3-9]]*)
  5247. # On AIX/PPC, the GNU linker is very broken
  5248. if test ia64 != "$host_cpu"; then
  5249. _LT_TAGVAR(ld_shlibs, $1)=no
  5250. cat <<_LT_EOF 1>&2
  5251. *** Warning: the GNU linker, at least up to release 2.19, is reported
  5252. *** to be unable to reliably create shared libraries on AIX.
  5253. *** Therefore, libtool is disabling shared libraries support. If you
  5254. *** really care for shared libraries, you may want to install binutils
  5255. *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
  5256. *** You will then need to restart the configuration process.
  5257. _LT_EOF
  5258. fi
  5259. ;;
  5260. amigaos*)
  5261. case $host_cpu in
  5262. powerpc)
  5263. # see comment about AmigaOS4 .so support
  5264. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  5265. _LT_TAGVAR(archive_expsym_cmds, $1)=''
  5266. ;;
  5267. m68k)
  5268. _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)'
  5269. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  5270. _LT_TAGVAR(hardcode_minus_L, $1)=yes
  5271. ;;
  5272. esac
  5273. ;;
  5274. beos*)
  5275. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  5276. _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  5277. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  5278. # support --undefined. This deserves some investigation. FIXME
  5279. _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  5280. else
  5281. _LT_TAGVAR(ld_shlibs, $1)=no
  5282. fi
  5283. ;;
  5284. cygwin* | mingw* | pw32* | cegcc*)
  5285. # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
  5286. # as there is no search path for DLLs.
  5287. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  5288. _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-all-symbols'
  5289. _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  5290. _LT_TAGVAR(always_export_symbols, $1)=no
  5291. _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
  5292. _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/;s/^.*[[ ]]__nm__\([[^ ]]*\)[[ ]][[^ ]]*/\1 DATA/;/^I[[ ]]/d;/^[[AITW]][[ ]]/s/.* //'\'' | sort | uniq > $export_symbols'
  5293. _LT_TAGVAR(exclude_expsyms, $1)=['[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname']
  5294. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  5295. _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'
  5296. # If the export-symbols file already is a .def file, use it as
  5297. # is; otherwise, prepend EXPORTS...
  5298. _LT_TAGVAR(archive_expsym_cmds, $1)='if _LT_DLL_DEF_P([$export_symbols]); then
  5299. cp $export_symbols $output_objdir/$soname.def;
  5300. else
  5301. echo EXPORTS > $output_objdir/$soname.def;
  5302. cat $export_symbols >> $output_objdir/$soname.def;
  5303. fi~
  5304. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  5305. else
  5306. _LT_TAGVAR(ld_shlibs, $1)=no
  5307. fi
  5308. ;;
  5309. haiku*)
  5310. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  5311. _LT_TAGVAR(link_all_deplibs, $1)=yes
  5312. ;;
  5313. os2*)
  5314. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  5315. _LT_TAGVAR(hardcode_minus_L, $1)=yes
  5316. _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  5317. shrext_cmds=.dll
  5318. _LT_TAGVAR(archive_cmds, $1)='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  5319. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  5320. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  5321. $ECHO EXPORTS >> $output_objdir/$libname.def~
  5322. emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
  5323. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  5324. emximp -o $lib $output_objdir/$libname.def'
  5325. _LT_TAGVAR(archive_expsym_cmds, $1)='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  5326. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  5327. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  5328. $ECHO EXPORTS >> $output_objdir/$libname.def~
  5329. prefix_cmds="$SED"~
  5330. if test EXPORTS = "`$SED 1q $export_symbols`"; then
  5331. prefix_cmds="$prefix_cmds -e 1d";
  5332. fi~
  5333. prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
  5334. cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
  5335. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  5336. emximp -o $lib $output_objdir/$libname.def'
  5337. _LT_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
  5338. _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
  5339. ;;
  5340. interix[[3-9]]*)
  5341. _LT_TAGVAR(hardcode_direct, $1)=no
  5342. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  5343. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir'
  5344. _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E'
  5345. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  5346. # Instead, shared libraries are loaded at an image base (0x10000000 by
  5347. # default) and relocated if they conflict, which is a slow very memory
  5348. # consuming and fragmenting process. To avoid this, we pick a random,
  5349. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  5350. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  5351. _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'
  5352. _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'
  5353. ;;
  5354. gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
  5355. tmp_diet=no
  5356. if test linux-dietlibc = "$host_os"; then
  5357. case $cc_basename in
  5358. diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  5359. esac
  5360. fi
  5361. if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  5362. && test no = "$tmp_diet"
  5363. then
  5364. tmp_addflag=' $pic_flag'
  5365. tmp_sharedflag='-shared'
  5366. case $cc_basename,$host_cpu in
  5367. pgcc*) # Portland Group C compiler
  5368. _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'
  5369. tmp_addflag=' $pic_flag'
  5370. ;;
  5371. pgf77* | pgf90* | pgf95* | pgfortran*)
  5372. # Portland Group f77 and f90 compilers
  5373. _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'
  5374. tmp_addflag=' $pic_flag -Mnomain' ;;
  5375. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  5376. tmp_addflag=' -i_dynamic' ;;
  5377. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  5378. tmp_addflag=' -i_dynamic -nofor_main' ;;
  5379. ifc* | ifort*) # Intel Fortran compiler
  5380. tmp_addflag=' -nofor_main' ;;
  5381. lf95*) # Lahey Fortran 8.1
  5382. _LT_TAGVAR(whole_archive_flag_spec, $1)=
  5383. tmp_sharedflag='--shared' ;;
  5384. nagfor*) # NAGFOR 5.3
  5385. tmp_sharedflag='-Wl,-shared' ;;
  5386. xl[[cC]]* | bgxl[[cC]]* | mpixl[[cC]]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  5387. tmp_sharedflag='-qmkshrobj'
  5388. tmp_addflag= ;;
  5389. nvcc*) # Cuda Compiler Driver 2.2
  5390. _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'
  5391. _LT_TAGVAR(compiler_needs_object, $1)=yes
  5392. ;;
  5393. esac
  5394. case `$CC -V 2>&1 | sed 5q` in
  5395. *Sun\ C*) # Sun C 5.9
  5396. _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'
  5397. _LT_TAGVAR(compiler_needs_object, $1)=yes
  5398. tmp_sharedflag='-G' ;;
  5399. *Sun\ F*) # Sun Fortran 8.3
  5400. tmp_sharedflag='-G' ;;
  5401. esac
  5402. _LT_TAGVAR(archive_cmds, $1)='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  5403. if test yes = "$supports_anon_versioning"; then
  5404. _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
  5405. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  5406. echo "local: *; };" >> $output_objdir/$libname.ver~
  5407. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
  5408. fi
  5409. case $cc_basename in
  5410. tcc*)
  5411. _LT_TAGVAR(export_dynamic_flag_spec, $1)='-rdynamic'
  5412. ;;
  5413. xlf* | bgf* | bgxlf* | mpixlf*)
  5414. # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  5415. _LT_TAGVAR(whole_archive_flag_spec, $1)='--whole-archive$convenience --no-whole-archive'
  5416. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
  5417. _LT_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
  5418. if test yes = "$supports_anon_versioning"; then
  5419. _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
  5420. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  5421. echo "local: *; };" >> $output_objdir/$libname.ver~
  5422. $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  5423. fi
  5424. ;;
  5425. esac
  5426. else
  5427. _LT_TAGVAR(ld_shlibs, $1)=no
  5428. fi
  5429. ;;
  5430. netbsd*)
  5431. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  5432. _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  5433. wlarc=
  5434. else
  5435. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  5436. _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  5437. fi
  5438. ;;
  5439. solaris*)
  5440. if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  5441. _LT_TAGVAR(ld_shlibs, $1)=no
  5442. cat <<_LT_EOF 1>&2
  5443. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  5444. *** create shared libraries on Solaris systems. Therefore, libtool
  5445. *** is disabling shared libraries support. We urge you to upgrade GNU
  5446. *** binutils to release 2.9.1 or newer. Another option is to modify
  5447. *** your PATH or compiler configuration so that the native linker is
  5448. *** used, and then restart.
  5449. _LT_EOF
  5450. elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  5451. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  5452. _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  5453. else
  5454. _LT_TAGVAR(ld_shlibs, $1)=no
  5455. fi
  5456. ;;
  5457. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  5458. case `$LD -v 2>&1` in
  5459. *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*)
  5460. _LT_TAGVAR(ld_shlibs, $1)=no
  5461. cat <<_LT_EOF 1>&2
  5462. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
  5463. *** reliably create shared libraries on SCO systems. Therefore, libtool
  5464. *** is disabling shared libraries support. We urge you to upgrade GNU
  5465. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  5466. *** your PATH or compiler configuration so that the native linker is
  5467. *** used, and then restart.
  5468. _LT_EOF
  5469. ;;
  5470. *)
  5471. # For security reasons, it is highly recommended that you always
  5472. # use absolute paths for naming shared libraries, and exclude the
  5473. # DT_RUNPATH tag from executables and libraries. But doing so
  5474. # requires that you compile everything twice, which is a pain.
  5475. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  5476. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
  5477. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  5478. _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'
  5479. else
  5480. _LT_TAGVAR(ld_shlibs, $1)=no
  5481. fi
  5482. ;;
  5483. esac
  5484. ;;
  5485. sunos4*)
  5486. _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  5487. wlarc=
  5488. _LT_TAGVAR(hardcode_direct, $1)=yes
  5489. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  5490. ;;
  5491. *)
  5492. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  5493. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  5494. _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  5495. else
  5496. _LT_TAGVAR(ld_shlibs, $1)=no
  5497. fi
  5498. ;;
  5499. esac
  5500. if test no = "$_LT_TAGVAR(ld_shlibs, $1)"; then
  5501. runpath_var=
  5502. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
  5503. _LT_TAGVAR(export_dynamic_flag_spec, $1)=
  5504. _LT_TAGVAR(whole_archive_flag_spec, $1)=
  5505. fi
  5506. else
  5507. # PORTME fill in a description of your system's linker (not GNU ld)
  5508. case $host_os in
  5509. aix3*)
  5510. _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  5511. _LT_TAGVAR(always_export_symbols, $1)=yes
  5512. _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'
  5513. # Note: this linker hardcodes the directories in LIBPATH if there
  5514. # are no directories specified by -L.
  5515. _LT_TAGVAR(hardcode_minus_L, $1)=yes
  5516. if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
  5517. # Neither direct hardcoding nor static linking is supported with a
  5518. # broken collect2.
  5519. _LT_TAGVAR(hardcode_direct, $1)=unsupported
  5520. fi
  5521. ;;
  5522. aix[[4-9]]*)
  5523. if test ia64 = "$host_cpu"; then
  5524. # On IA64, the linker does run time linking by default, so we don't
  5525. # have to do anything special.
  5526. aix_use_runtimelinking=no
  5527. exp_sym_flag='-Bexport'
  5528. no_entry_flag=
  5529. else
  5530. # If we're using GNU nm, then we don't want the "-C" option.
  5531. # -C means demangle to GNU nm, but means don't demangle to AIX nm.
  5532. # Without the "-l" option, or with the "-B" option, AIX nm treats
  5533. # weak defined symbols like other global defined symbols, whereas
  5534. # GNU nm marks them as "W".
  5535. # While the 'weak' keyword is ignored in the Export File, we need
  5536. # it in the Import File for the 'aix-soname' feature, so we have
  5537. # to replace the "-B" option with "-P" for AIX nm.
  5538. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  5539. _LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && ([substr](\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
  5540. else
  5541. _LT_TAGVAR(export_symbols_cmds, $1)='`func_echo_all $NM | $SED -e '\''s/B\([[^B]]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && ([substr](\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
  5542. fi
  5543. aix_use_runtimelinking=no
  5544. # Test if we are trying to use run time linking or normal
  5545. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  5546. # have runtime linking enabled, and use it for executables.
  5547. # For shared libraries, we enable/disable runtime linking
  5548. # depending on the kind of the shared library created -
  5549. # when "with_aix_soname,aix_use_runtimelinking" is:
  5550. # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
  5551. # "aix,yes" lib.so shared, rtl:yes, for executables
  5552. # lib.a static archive
  5553. # "both,no" lib.so.V(shr.o) shared, rtl:yes
  5554. # lib.a(lib.so.V) shared, rtl:no, for executables
  5555. # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
  5556. # lib.a(lib.so.V) shared, rtl:no
  5557. # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
  5558. # lib.a static archive
  5559. case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
  5560. for ld_flag in $LDFLAGS; do
  5561. if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
  5562. aix_use_runtimelinking=yes
  5563. break
  5564. fi
  5565. done
  5566. if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
  5567. # With aix-soname=svr4, we create the lib.so.V shared archives only,
  5568. # so we don't have lib.a shared libs to link our executables.
  5569. # We have to force runtime linking in this case.
  5570. aix_use_runtimelinking=yes
  5571. LDFLAGS="$LDFLAGS -Wl,-brtl"
  5572. fi
  5573. ;;
  5574. esac
  5575. exp_sym_flag='-bexport'
  5576. no_entry_flag='-bnoentry'
  5577. fi
  5578. # When large executables or shared objects are built, AIX ld can
  5579. # have problems creating the table of contents. If linking a library
  5580. # or program results in "error TOC overflow" add -mminimal-toc to
  5581. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  5582. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  5583. _LT_TAGVAR(archive_cmds, $1)=''
  5584. _LT_TAGVAR(hardcode_direct, $1)=yes
  5585. _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
  5586. _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
  5587. _LT_TAGVAR(link_all_deplibs, $1)=yes
  5588. _LT_TAGVAR(file_list_spec, $1)='$wl-f,'
  5589. case $with_aix_soname,$aix_use_runtimelinking in
  5590. aix,*) ;; # traditional, no import file
  5591. svr4,* | *,yes) # use import file
  5592. # The Import File defines what to hardcode.
  5593. _LT_TAGVAR(hardcode_direct, $1)=no
  5594. _LT_TAGVAR(hardcode_direct_absolute, $1)=no
  5595. ;;
  5596. esac
  5597. if test yes = "$GCC"; then
  5598. case $host_os in aix4.[[012]]|aix4.[[012]].*)
  5599. # We only want to do this on AIX 4.2 and lower, the check
  5600. # below for broken collect2 doesn't work under 4.3+
  5601. collect2name=`$CC -print-prog-name=collect2`
  5602. if test -f "$collect2name" &&
  5603. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  5604. then
  5605. # We have reworked collect2
  5606. :
  5607. else
  5608. # We have old collect2
  5609. _LT_TAGVAR(hardcode_direct, $1)=unsupported
  5610. # It fails to find uninstalled libraries when the uninstalled
  5611. # path is not listed in the libpath. Setting hardcode_minus_L
  5612. # to unsupported forces relinking
  5613. _LT_TAGVAR(hardcode_minus_L, $1)=yes
  5614. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  5615. _LT_TAGVAR(hardcode_libdir_separator, $1)=
  5616. fi
  5617. ;;
  5618. esac
  5619. shared_flag='-shared'
  5620. if test yes = "$aix_use_runtimelinking"; then
  5621. shared_flag="$shared_flag "'$wl-G'
  5622. fi
  5623. # Need to ensure runtime linking is disabled for the traditional
  5624. # shared library, or the linker may eventually find shared libraries
  5625. # /with/ Import File - we do not want to mix them.
  5626. shared_flag_aix='-shared'
  5627. shared_flag_svr4='-shared $wl-G'
  5628. else
  5629. # not using gcc
  5630. if test ia64 = "$host_cpu"; then
  5631. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  5632. # chokes on -Wl,-G. The following line is correct:
  5633. shared_flag='-G'
  5634. else
  5635. if test yes = "$aix_use_runtimelinking"; then
  5636. shared_flag='$wl-G'
  5637. else
  5638. shared_flag='$wl-bM:SRE'
  5639. fi
  5640. shared_flag_aix='$wl-bM:SRE'
  5641. shared_flag_svr4='$wl-G'
  5642. fi
  5643. fi
  5644. _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-bexpall'
  5645. # It seems that -bexpall does not export symbols beginning with
  5646. # underscore (_), so it is better to generate a list of symbols to export.
  5647. _LT_TAGVAR(always_export_symbols, $1)=yes
  5648. if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
  5649. # Warning - without using the other runtime loading flags (-brtl),
  5650. # -berok will link without error, but may produce a broken library.
  5651. _LT_TAGVAR(allow_undefined_flag, $1)='-berok'
  5652. # Determine the default libpath from the value encoded in an
  5653. # empty executable.
  5654. _LT_SYS_MODULE_PATH_AIX([$1])
  5655. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-blibpath:$libdir:'"$aix_libpath"
  5656. _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
  5657. else
  5658. if test ia64 = "$host_cpu"; then
  5659. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-R $libdir:/usr/lib:/lib'
  5660. _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
  5661. _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"
  5662. else
  5663. # Determine the default libpath from the value encoded in an
  5664. # empty executable.
  5665. _LT_SYS_MODULE_PATH_AIX([$1])
  5666. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-blibpath:$libdir:'"$aix_libpath"
  5667. # Warning - without using the other run time loading flags,
  5668. # -berok will link without error, but may produce a broken library.
  5669. _LT_TAGVAR(no_undefined_flag, $1)=' $wl-bernotok'
  5670. _LT_TAGVAR(allow_undefined_flag, $1)=' $wl-berok'
  5671. if test yes = "$with_gnu_ld"; then
  5672. # We only use this code for GNU lds that support --whole-archive.
  5673. _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl--whole-archive$convenience $wl--no-whole-archive'
  5674. else
  5675. # Exported symbols can be pulled into shared objects from archives
  5676. _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
  5677. fi
  5678. _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
  5679. _LT_TAGVAR(archive_expsym_cmds, $1)='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
  5680. # -brtl affects multiple linker settings, -berok does not and is overridden later
  5681. compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([[, ]]\\)%-berok\\1%g"`'
  5682. if test svr4 != "$with_aix_soname"; then
  5683. # This is similar to how AIX traditionally builds its shared libraries.
  5684. _LT_TAGVAR(archive_expsym_cmds, $1)="$_LT_TAGVAR(archive_expsym_cmds, $1)"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
  5685. fi
  5686. if test aix != "$with_aix_soname"; then
  5687. _LT_TAGVAR(archive_expsym_cmds, $1)="$_LT_TAGVAR(archive_expsym_cmds, $1)"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
  5688. else
  5689. # used by -dlpreopen to get the symbols
  5690. _LT_TAGVAR(archive_expsym_cmds, $1)="$_LT_TAGVAR(archive_expsym_cmds, $1)"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
  5691. fi
  5692. _LT_TAGVAR(archive_expsym_cmds, $1)="$_LT_TAGVAR(archive_expsym_cmds, $1)"'~$RM -r $output_objdir/$realname.d'
  5693. fi
  5694. fi
  5695. ;;
  5696. amigaos*)
  5697. case $host_cpu in
  5698. powerpc)
  5699. # see comment about AmigaOS4 .so support
  5700. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  5701. _LT_TAGVAR(archive_expsym_cmds, $1)=''
  5702. ;;
  5703. m68k)
  5704. _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)'
  5705. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  5706. _LT_TAGVAR(hardcode_minus_L, $1)=yes
  5707. ;;
  5708. esac
  5709. ;;
  5710. bsdi[[45]]*)
  5711. _LT_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic
  5712. ;;
  5713. cygwin* | mingw* | pw32* | cegcc*)
  5714. # When not using gcc, we currently assume that we are using
  5715. # Microsoft Visual C++.
  5716. # hardcode_libdir_flag_spec is actually meaningless, as there is
  5717. # no search path for DLLs.
  5718. case $cc_basename in
  5719. cl*)
  5720. # Native MSVC
  5721. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
  5722. _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  5723. _LT_TAGVAR(always_export_symbols, $1)=yes
  5724. _LT_TAGVAR(file_list_spec, $1)='@'
  5725. # Tell ltmain to make .lib files, not .a files.
  5726. libext=lib
  5727. # Tell ltmain to make .dll files, not .so files.
  5728. shrext_cmds=.dll
  5729. # FIXME: Setting linknames here is a bad hack.
  5730. _LT_TAGVAR(archive_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
  5731. _LT_TAGVAR(archive_expsym_cmds, $1)='if _LT_DLL_DEF_P([$export_symbols]); then
  5732. cp "$export_symbols" "$output_objdir/$soname.def";
  5733. echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
  5734. else
  5735. $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
  5736. fi~
  5737. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  5738. linknames='
  5739. # The linker will not automatically build a static lib if we build a DLL.
  5740. # _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
  5741. _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
  5742. _LT_TAGVAR(exclude_expsyms, $1)='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  5743. _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'
  5744. # Don't use ranlib
  5745. _LT_TAGVAR(old_postinstall_cmds, $1)='chmod 644 $oldlib'
  5746. _LT_TAGVAR(postlink_cmds, $1)='lt_outputfile="@OUTPUT@"~
  5747. lt_tool_outputfile="@TOOL_OUTPUT@"~
  5748. case $lt_outputfile in
  5749. *.exe|*.EXE) ;;
  5750. *)
  5751. lt_outputfile=$lt_outputfile.exe
  5752. lt_tool_outputfile=$lt_tool_outputfile.exe
  5753. ;;
  5754. esac~
  5755. if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
  5756. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  5757. $RM "$lt_outputfile.manifest";
  5758. fi'
  5759. ;;
  5760. *)
  5761. # Assume MSVC wrapper
  5762. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
  5763. _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  5764. # Tell ltmain to make .lib files, not .a files.
  5765. libext=lib
  5766. # Tell ltmain to make .dll files, not .so files.
  5767. shrext_cmds=.dll
  5768. # FIXME: Setting linknames here is a bad hack.
  5769. _LT_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
  5770. # The linker will automatically build a .lib file if we build a DLL.
  5771. _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
  5772. # FIXME: Should let the user specify the lib program.
  5773. _LT_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs'
  5774. _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
  5775. ;;
  5776. esac
  5777. ;;
  5778. darwin* | rhapsody*)
  5779. _LT_DARWIN_LINKER_FEATURES($1)
  5780. ;;
  5781. dgux*)
  5782. _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  5783. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  5784. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  5785. ;;
  5786. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  5787. # support. Future versions do this automatically, but an explicit c++rt0.o
  5788. # does not break anything, and helps significantly (at the cost of a little
  5789. # extra space).
  5790. freebsd2.2*)
  5791. _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  5792. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  5793. _LT_TAGVAR(hardcode_direct, $1)=yes
  5794. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  5795. ;;
  5796. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  5797. freebsd2.*)
  5798. _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  5799. _LT_TAGVAR(hardcode_direct, $1)=yes
  5800. _LT_TAGVAR(hardcode_minus_L, $1)=yes
  5801. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  5802. ;;
  5803. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  5804. freebsd* | dragonfly*)
  5805. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  5806. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  5807. _LT_TAGVAR(hardcode_direct, $1)=yes
  5808. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  5809. ;;
  5810. hpux9*)
  5811. if test yes = "$GCC"; then
  5812. _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
  5813. else
  5814. _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
  5815. fi
  5816. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl+b $wl$libdir'
  5817. _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  5818. _LT_TAGVAR(hardcode_direct, $1)=yes
  5819. # hardcode_minus_L: Not really in the search PATH,
  5820. # but as the default location of the library.
  5821. _LT_TAGVAR(hardcode_minus_L, $1)=yes
  5822. _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E'
  5823. ;;
  5824. hpux10*)
  5825. if test yes,no = "$GCC,$with_gnu_ld"; then
  5826. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  5827. else
  5828. _LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  5829. fi
  5830. if test no = "$with_gnu_ld"; then
  5831. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl+b $wl$libdir'
  5832. _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  5833. _LT_TAGVAR(hardcode_direct, $1)=yes
  5834. _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
  5835. _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E'
  5836. # hardcode_minus_L: Not really in the search PATH,
  5837. # but as the default location of the library.
  5838. _LT_TAGVAR(hardcode_minus_L, $1)=yes
  5839. fi
  5840. ;;
  5841. hpux11*)
  5842. if test yes,no = "$GCC,$with_gnu_ld"; then
  5843. case $host_cpu in
  5844. hppa*64*)
  5845. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
  5846. ;;
  5847. ia64*)
  5848. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  5849. ;;
  5850. *)
  5851. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  5852. ;;
  5853. esac
  5854. else
  5855. case $host_cpu in
  5856. hppa*64*)
  5857. _LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
  5858. ;;
  5859. ia64*)
  5860. _LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  5861. ;;
  5862. *)
  5863. m4_if($1, [], [
  5864. # Older versions of the 11.00 compiler do not understand -b yet
  5865. # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
  5866. _LT_LINKER_OPTION([if $CC understands -b],
  5867. _LT_TAGVAR(lt_cv_prog_compiler__b, $1), [-b],
  5868. [_LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'],
  5869. [_LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'])],
  5870. [_LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'])
  5871. ;;
  5872. esac
  5873. fi
  5874. if test no = "$with_gnu_ld"; then
  5875. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl+b $wl$libdir'
  5876. _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  5877. case $host_cpu in
  5878. hppa*64*|ia64*)
  5879. _LT_TAGVAR(hardcode_direct, $1)=no
  5880. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  5881. ;;
  5882. *)
  5883. _LT_TAGVAR(hardcode_direct, $1)=yes
  5884. _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
  5885. _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E'
  5886. # hardcode_minus_L: Not really in the search PATH,
  5887. # but as the default location of the library.
  5888. _LT_TAGVAR(hardcode_minus_L, $1)=yes
  5889. ;;
  5890. esac
  5891. fi
  5892. ;;
  5893. irix5* | irix6* | nonstopux*)
  5894. if test yes = "$GCC"; then
  5895. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_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'
  5896. # Try to use the -exported_symbol ld option, if it does not
  5897. # work, assume that -exports_file does not work either and
  5898. # implicitly export all symbols.
  5899. # This should be the same for all languages, so no per-tag cache variable.
  5900. AC_CACHE_CHECK([whether the $host_os linker accepts -exported_symbol],
  5901. [lt_cv_irix_exported_symbol],
  5902. [save_LDFLAGS=$LDFLAGS
  5903. LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
  5904. AC_LINK_IFELSE(
  5905. [AC_LANG_SOURCE(
  5906. [AC_LANG_CASE([C], [[int foo (void) { return 0; }]],
  5907. [C++], [[int foo (void) { return 0; }]],
  5908. [Fortran 77], [[
  5909. subroutine foo
  5910. end]],
  5911. [Fortran], [[
  5912. subroutine foo
  5913. end]])])],
  5914. [lt_cv_irix_exported_symbol=yes],
  5915. [lt_cv_irix_exported_symbol=no])
  5916. LDFLAGS=$save_LDFLAGS])
  5917. if test yes = "$lt_cv_irix_exported_symbol"; then
  5918. _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_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 $wl-exports_file $wl$export_symbols -o $lib'
  5919. fi
  5920. else
  5921. _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'
  5922. _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'
  5923. fi
  5924. _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
  5925. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
  5926. _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  5927. _LT_TAGVAR(inherit_rpath, $1)=yes
  5928. _LT_TAGVAR(link_all_deplibs, $1)=yes
  5929. ;;
  5930. linux*)
  5931. case $cc_basename in
  5932. tcc*)
  5933. # Fabrice Bellard et al's Tiny C Compiler
  5934. _LT_TAGVAR(ld_shlibs, $1)=yes
  5935. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  5936. ;;
  5937. esac
  5938. ;;
  5939. netbsd*)
  5940. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  5941. _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  5942. else
  5943. _LT_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  5944. fi
  5945. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  5946. _LT_TAGVAR(hardcode_direct, $1)=yes
  5947. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  5948. ;;
  5949. newsos6)
  5950. _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  5951. _LT_TAGVAR(hardcode_direct, $1)=yes
  5952. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
  5953. _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  5954. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  5955. ;;
  5956. *nto* | *qnx*)
  5957. ;;
  5958. openbsd* | bitrig*)
  5959. if test -f /usr/libexec/ld.so; then
  5960. _LT_TAGVAR(hardcode_direct, $1)=yes
  5961. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  5962. _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
  5963. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  5964. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  5965. _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
  5966. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir'
  5967. _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E'
  5968. else
  5969. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  5970. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir'
  5971. fi
  5972. else
  5973. _LT_TAGVAR(ld_shlibs, $1)=no
  5974. fi
  5975. ;;
  5976. os2*)
  5977. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  5978. _LT_TAGVAR(hardcode_minus_L, $1)=yes
  5979. _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  5980. shrext_cmds=.dll
  5981. _LT_TAGVAR(archive_cmds, $1)='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  5982. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  5983. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  5984. $ECHO EXPORTS >> $output_objdir/$libname.def~
  5985. emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
  5986. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  5987. emximp -o $lib $output_objdir/$libname.def'
  5988. _LT_TAGVAR(archive_expsym_cmds, $1)='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  5989. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  5990. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  5991. $ECHO EXPORTS >> $output_objdir/$libname.def~
  5992. prefix_cmds="$SED"~
  5993. if test EXPORTS = "`$SED 1q $export_symbols`"; then
  5994. prefix_cmds="$prefix_cmds -e 1d";
  5995. fi~
  5996. prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
  5997. cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
  5998. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  5999. emximp -o $lib $output_objdir/$libname.def'
  6000. _LT_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
  6001. _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
  6002. ;;
  6003. osf3*)
  6004. if test yes = "$GCC"; then
  6005. _LT_TAGVAR(allow_undefined_flag, $1)=' $wl-expect_unresolved $wl\*'
  6006. _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'
  6007. else
  6008. _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
  6009. _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'
  6010. fi
  6011. _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
  6012. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
  6013. _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  6014. ;;
  6015. osf4* | osf5*) # as osf3* with the addition of -msym flag
  6016. if test yes = "$GCC"; then
  6017. _LT_TAGVAR(allow_undefined_flag, $1)=' $wl-expect_unresolved $wl\*'
  6018. _LT_TAGVAR(archive_cmds, $1)='$CC -shared$allow_undefined_flag $pic_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'
  6019. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
  6020. else
  6021. _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
  6022. _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'
  6023. _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~
  6024. $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'
  6025. # Both c and cxx compiler support -rpath directly
  6026. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
  6027. fi
  6028. _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
  6029. _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  6030. ;;
  6031. solaris*)
  6032. _LT_TAGVAR(no_undefined_flag, $1)=' -z defs'
  6033. if test yes = "$GCC"; then
  6034. wlarc='$wl'
  6035. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
  6036. _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  6037. $CC -shared $pic_flag $wl-z ${wl}text $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  6038. else
  6039. case `$CC -V 2>&1` in
  6040. *"Compilers 5.0"*)
  6041. wlarc=''
  6042. _LT_TAGVAR(archive_cmds, $1)='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
  6043. _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  6044. $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  6045. ;;
  6046. *)
  6047. wlarc='$wl'
  6048. _LT_TAGVAR(archive_cmds, $1)='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  6049. _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  6050. $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  6051. ;;
  6052. esac
  6053. fi
  6054. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  6055. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  6056. case $host_os in
  6057. solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
  6058. *)
  6059. # The compiler driver will combine and reorder linker options,
  6060. # but understands '-z linker_flag'. GCC discards it without '$wl',
  6061. # but is careful enough not to reorder.
  6062. # Supported since Solaris 2.6 (maybe 2.5.1?)
  6063. if test yes = "$GCC"; then
  6064. _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
  6065. else
  6066. _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
  6067. fi
  6068. ;;
  6069. esac
  6070. _LT_TAGVAR(link_all_deplibs, $1)=yes
  6071. ;;
  6072. sunos4*)
  6073. if test sequent = "$host_vendor"; then
  6074. # Use $CC to link under sequent, because it throws in some extra .o
  6075. # files that make .init and .fini sections work.
  6076. _LT_TAGVAR(archive_cmds, $1)='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  6077. else
  6078. _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  6079. fi
  6080. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  6081. _LT_TAGVAR(hardcode_direct, $1)=yes
  6082. _LT_TAGVAR(hardcode_minus_L, $1)=yes
  6083. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  6084. ;;
  6085. sysv4)
  6086. case $host_vendor in
  6087. sni)
  6088. _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  6089. _LT_TAGVAR(hardcode_direct, $1)=yes # is this really true???
  6090. ;;
  6091. siemens)
  6092. ## LD is ld it makes a PLAMLIB
  6093. ## CC just makes a GrossModule.
  6094. _LT_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  6095. _LT_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs'
  6096. _LT_TAGVAR(hardcode_direct, $1)=no
  6097. ;;
  6098. motorola)
  6099. _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  6100. _LT_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie
  6101. ;;
  6102. esac
  6103. runpath_var='LD_RUN_PATH'
  6104. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  6105. ;;
  6106. sysv4.3*)
  6107. _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  6108. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  6109. _LT_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport'
  6110. ;;
  6111. sysv4*MP*)
  6112. if test -d /usr/nec; then
  6113. _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  6114. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  6115. runpath_var=LD_RUN_PATH
  6116. hardcode_runpath_var=yes
  6117. _LT_TAGVAR(ld_shlibs, $1)=yes
  6118. fi
  6119. ;;
  6120. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
  6121. _LT_TAGVAR(no_undefined_flag, $1)='$wl-z,text'
  6122. _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  6123. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  6124. runpath_var='LD_RUN_PATH'
  6125. if test yes = "$GCC"; then
  6126. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  6127. _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  6128. else
  6129. _LT_TAGVAR(archive_cmds, $1)='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  6130. _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  6131. fi
  6132. ;;
  6133. sysv5* | sco3.2v5* | sco5v6*)
  6134. # Note: We CANNOT use -z defs as we might desire, because we do not
  6135. # link with -lc, and that would cause any symbols used from libc to
  6136. # always be unresolved, which means just about no library would
  6137. # ever link correctly. If we're not using GNU ld we use -z text
  6138. # though, which does catch some bad symbols but isn't as heavy-handed
  6139. # as -z defs.
  6140. _LT_TAGVAR(no_undefined_flag, $1)='$wl-z,text'
  6141. _LT_TAGVAR(allow_undefined_flag, $1)='$wl-z,nodefs'
  6142. _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  6143. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  6144. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-R,$libdir'
  6145. _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
  6146. _LT_TAGVAR(link_all_deplibs, $1)=yes
  6147. _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-Bexport'
  6148. runpath_var='LD_RUN_PATH'
  6149. if test yes = "$GCC"; then
  6150. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  6151. _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  6152. else
  6153. _LT_TAGVAR(archive_cmds, $1)='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  6154. _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  6155. fi
  6156. ;;
  6157. uts4*)
  6158. _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  6159. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  6160. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  6161. ;;
  6162. *)
  6163. _LT_TAGVAR(ld_shlibs, $1)=no
  6164. ;;
  6165. esac
  6166. if test sni = "$host_vendor"; then
  6167. case $host in
  6168. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  6169. _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-Blargedynsym'
  6170. ;;
  6171. esac
  6172. fi
  6173. fi
  6174. ])
  6175. AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)])
  6176. test no = "$_LT_TAGVAR(ld_shlibs, $1)" && can_build_shared=no
  6177. _LT_TAGVAR(with_gnu_ld, $1)=$with_gnu_ld
  6178. _LT_DECL([], [libext], [0], [Old archive suffix (normally "a")])dnl
  6179. _LT_DECL([], [shrext_cmds], [1], [Shared library suffix (normally ".so")])dnl
  6180. _LT_DECL([], [extract_expsyms_cmds], [2],
  6181. [The commands to extract the exported symbol list from a shared archive])
  6182. #
  6183. # Do we need to explicitly link libc?
  6184. #
  6185. case "x$_LT_TAGVAR(archive_cmds_need_lc, $1)" in
  6186. x|xyes)
  6187. # Assume -lc should be added
  6188. _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
  6189. if test yes,yes = "$GCC,$enable_shared"; then
  6190. case $_LT_TAGVAR(archive_cmds, $1) in
  6191. *'~'*)
  6192. # FIXME: we may have to deal with multi-command sequences.
  6193. ;;
  6194. '$CC '*)
  6195. # Test whether the compiler implicitly links with -lc since on some
  6196. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  6197. # to ld, don't add -lc before -lgcc.
  6198. AC_CACHE_CHECK([whether -lc should be explicitly linked in],
  6199. [lt_cv_]_LT_TAGVAR(archive_cmds_need_lc, $1),
  6200. [$RM conftest*
  6201. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  6202. if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
  6203. soname=conftest
  6204. lib=conftest
  6205. libobjs=conftest.$ac_objext
  6206. deplibs=
  6207. wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1)
  6208. pic_flag=$_LT_TAGVAR(lt_prog_compiler_pic, $1)
  6209. compiler_flags=-v
  6210. linker_flags=-v
  6211. verstring=
  6212. output_objdir=.
  6213. libname=conftest
  6214. lt_save_allow_undefined_flag=$_LT_TAGVAR(allow_undefined_flag, $1)
  6215. _LT_TAGVAR(allow_undefined_flag, $1)=
  6216. if AC_TRY_EVAL(_LT_TAGVAR(archive_cmds, $1) 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1)
  6217. then
  6218. lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)=no
  6219. else
  6220. lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)=yes
  6221. fi
  6222. _LT_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
  6223. else
  6224. cat conftest.err 1>&5
  6225. fi
  6226. $RM conftest*
  6227. ])
  6228. _LT_TAGVAR(archive_cmds_need_lc, $1)=$lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)
  6229. ;;
  6230. esac
  6231. fi
  6232. ;;
  6233. esac
  6234. _LT_TAGDECL([build_libtool_need_lc], [archive_cmds_need_lc], [0],
  6235. [Whether or not to add -lc for building shared libraries])
  6236. _LT_TAGDECL([allow_libtool_libs_with_static_runtimes],
  6237. [enable_shared_with_static_runtimes], [0],
  6238. [Whether or not to disallow shared libs when runtime libs are static])
  6239. _LT_TAGDECL([], [export_dynamic_flag_spec], [1],
  6240. [Compiler flag to allow reflexive dlopens])
  6241. _LT_TAGDECL([], [whole_archive_flag_spec], [1],
  6242. [Compiler flag to generate shared objects directly from archives])
  6243. _LT_TAGDECL([], [compiler_needs_object], [1],
  6244. [Whether the compiler copes with passing no objects directly])
  6245. _LT_TAGDECL([], [old_archive_from_new_cmds], [2],
  6246. [Create an old-style archive from a shared archive])
  6247. _LT_TAGDECL([], [old_archive_from_expsyms_cmds], [2],
  6248. [Create a temporary old-style archive to link instead of a shared archive])
  6249. _LT_TAGDECL([], [archive_cmds], [2], [Commands used to build a shared archive])
  6250. _LT_TAGDECL([], [archive_expsym_cmds], [2])
  6251. _LT_TAGDECL([], [module_cmds], [2],
  6252. [Commands used to build a loadable module if different from building
  6253. a shared archive.])
  6254. _LT_TAGDECL([], [module_expsym_cmds], [2])
  6255. _LT_TAGDECL([], [with_gnu_ld], [1],
  6256. [Whether we are building with GNU ld or not])
  6257. _LT_TAGDECL([], [allow_undefined_flag], [1],
  6258. [Flag that allows shared libraries with undefined symbols to be built])
  6259. _LT_TAGDECL([], [no_undefined_flag], [1],
  6260. [Flag that enforces no undefined symbols])
  6261. _LT_TAGDECL([], [hardcode_libdir_flag_spec], [1],
  6262. [Flag to hardcode $libdir into a binary during linking.
  6263. This must work even if $libdir does not exist])
  6264. _LT_TAGDECL([], [hardcode_libdir_separator], [1],
  6265. [Whether we need a single "-rpath" flag with a separated argument])
  6266. _LT_TAGDECL([], [hardcode_direct], [0],
  6267. [Set to "yes" if using DIR/libNAME$shared_ext during linking hardcodes
  6268. DIR into the resulting binary])
  6269. _LT_TAGDECL([], [hardcode_direct_absolute], [0],
  6270. [Set to "yes" if using DIR/libNAME$shared_ext during linking hardcodes
  6271. DIR into the resulting binary and the resulting library dependency is
  6272. "absolute", i.e impossible to change by setting $shlibpath_var if the
  6273. library is relocated])
  6274. _LT_TAGDECL([], [hardcode_minus_L], [0],
  6275. [Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  6276. into the resulting binary])
  6277. _LT_TAGDECL([], [hardcode_shlibpath_var], [0],
  6278. [Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  6279. into the resulting binary])
  6280. _LT_TAGDECL([], [hardcode_automatic], [0],
  6281. [Set to "yes" if building a shared library automatically hardcodes DIR
  6282. into the library and all subsequent libraries and executables linked
  6283. against it])
  6284. _LT_TAGDECL([], [inherit_rpath], [0],
  6285. [Set to yes if linker adds runtime paths of dependent libraries
  6286. to runtime path list])
  6287. _LT_TAGDECL([], [link_all_deplibs], [0],
  6288. [Whether libtool must link a program against all its dependency libraries])
  6289. _LT_TAGDECL([], [always_export_symbols], [0],
  6290. [Set to "yes" if exported symbols are required])
  6291. _LT_TAGDECL([], [export_symbols_cmds], [2],
  6292. [The commands to list exported symbols])
  6293. _LT_TAGDECL([], [exclude_expsyms], [1],
  6294. [Symbols that should not be listed in the preloaded symbols])
  6295. _LT_TAGDECL([], [include_expsyms], [1],
  6296. [Symbols that must always be exported])
  6297. _LT_TAGDECL([], [prelink_cmds], [2],
  6298. [Commands necessary for linking programs (against libraries) with templates])
  6299. _LT_TAGDECL([], [postlink_cmds], [2],
  6300. [Commands necessary for finishing linking programs])
  6301. _LT_TAGDECL([], [file_list_spec], [1],
  6302. [Specify filename containing input files])
  6303. dnl FIXME: Not yet implemented
  6304. dnl _LT_TAGDECL([], [thread_safe_flag_spec], [1],
  6305. dnl [Compiler flag to generate thread safe objects])
  6306. ])# _LT_LINKER_SHLIBS
  6307. # _LT_LANG_C_CONFIG([TAG])
  6308. # ------------------------
  6309. # Ensure that the configuration variables for a C compiler are suitably
  6310. # defined. These variables are subsequently used by _LT_CONFIG to write
  6311. # the compiler configuration to 'libtool'.
  6312. m4_defun([_LT_LANG_C_CONFIG],
  6313. [m4_require([_LT_DECL_EGREP])dnl
  6314. lt_save_CC=$CC
  6315. AC_LANG_PUSH(C)
  6316. # Source file extension for C test sources.
  6317. ac_ext=c
  6318. # Object file extension for compiled C test sources.
  6319. objext=o
  6320. _LT_TAGVAR(objext, $1)=$objext
  6321. # Code to be used in simple compile tests
  6322. lt_simple_compile_test_code="int some_variable = 0;"
  6323. # Code to be used in simple link tests
  6324. lt_simple_link_test_code='int main(){return(0);}'
  6325. _LT_TAG_COMPILER
  6326. # Save the default compiler, since it gets overwritten when the other
  6327. # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  6328. compiler_DEFAULT=$CC
  6329. # save warnings/boilerplate of simple test code
  6330. _LT_COMPILER_BOILERPLATE
  6331. _LT_LINKER_BOILERPLATE
  6332. if test -n "$compiler"; then
  6333. _LT_COMPILER_NO_RTTI($1)
  6334. _LT_COMPILER_PIC($1)
  6335. _LT_COMPILER_C_O($1)
  6336. _LT_COMPILER_FILE_LOCKS($1)
  6337. _LT_LINKER_SHLIBS($1)
  6338. _LT_SYS_DYNAMIC_LINKER($1)
  6339. _LT_LINKER_HARDCODE_LIBPATH($1)
  6340. LT_SYS_DLOPEN_SELF
  6341. _LT_CMD_STRIPLIB
  6342. # Report what library types will actually be built
  6343. AC_MSG_CHECKING([if libtool supports shared libraries])
  6344. AC_MSG_RESULT([$can_build_shared])
  6345. AC_MSG_CHECKING([whether to build shared libraries])
  6346. test no = "$can_build_shared" && enable_shared=no
  6347. # On AIX, shared libraries and static libraries use the same namespace, and
  6348. # are all built from PIC.
  6349. case $host_os in
  6350. aix3*)
  6351. test yes = "$enable_shared" && enable_static=no
  6352. if test -n "$RANLIB"; then
  6353. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  6354. postinstall_cmds='$RANLIB $lib'
  6355. fi
  6356. ;;
  6357. aix[[4-9]]*)
  6358. if test ia64 != "$host_cpu"; then
  6359. case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
  6360. yes,aix,yes) ;; # shared object as lib.so file only
  6361. yes,svr4,*) ;; # shared object as lib.so archive member only
  6362. yes,*) enable_static=no ;; # shared object in lib.a archive as well
  6363. esac
  6364. fi
  6365. ;;
  6366. esac
  6367. AC_MSG_RESULT([$enable_shared])
  6368. AC_MSG_CHECKING([whether to build static libraries])
  6369. # Make sure either enable_shared or enable_static is yes.
  6370. test yes = "$enable_shared" || enable_static=yes
  6371. AC_MSG_RESULT([$enable_static])
  6372. _LT_CONFIG($1)
  6373. fi
  6374. AC_LANG_POP
  6375. CC=$lt_save_CC
  6376. ])# _LT_LANG_C_CONFIG
  6377. # _LT_LANG_CXX_CONFIG([TAG])
  6378. # --------------------------
  6379. # Ensure that the configuration variables for a C++ compiler are suitably
  6380. # defined. These variables are subsequently used by _LT_CONFIG to write
  6381. # the compiler configuration to 'libtool'.
  6382. m4_defun([_LT_LANG_CXX_CONFIG],
  6383. [m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  6384. m4_require([_LT_DECL_EGREP])dnl
  6385. m4_require([_LT_PATH_MANIFEST_TOOL])dnl
  6386. if test -n "$CXX" && ( test no != "$CXX" &&
  6387. ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) ||
  6388. (test g++ != "$CXX"))); then
  6389. AC_PROG_CXXCPP
  6390. else
  6391. _lt_caught_CXX_error=yes
  6392. fi
  6393. AC_LANG_PUSH(C++)
  6394. _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  6395. _LT_TAGVAR(allow_undefined_flag, $1)=
  6396. _LT_TAGVAR(always_export_symbols, $1)=no
  6397. _LT_TAGVAR(archive_expsym_cmds, $1)=
  6398. _LT_TAGVAR(compiler_needs_object, $1)=no
  6399. _LT_TAGVAR(export_dynamic_flag_spec, $1)=
  6400. _LT_TAGVAR(hardcode_direct, $1)=no
  6401. _LT_TAGVAR(hardcode_direct_absolute, $1)=no
  6402. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
  6403. _LT_TAGVAR(hardcode_libdir_separator, $1)=
  6404. _LT_TAGVAR(hardcode_minus_L, $1)=no
  6405. _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
  6406. _LT_TAGVAR(hardcode_automatic, $1)=no
  6407. _LT_TAGVAR(inherit_rpath, $1)=no
  6408. _LT_TAGVAR(module_cmds, $1)=
  6409. _LT_TAGVAR(module_expsym_cmds, $1)=
  6410. _LT_TAGVAR(link_all_deplibs, $1)=unknown
  6411. _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
  6412. _LT_TAGVAR(reload_flag, $1)=$reload_flag
  6413. _LT_TAGVAR(reload_cmds, $1)=$reload_cmds
  6414. _LT_TAGVAR(no_undefined_flag, $1)=
  6415. _LT_TAGVAR(whole_archive_flag_spec, $1)=
  6416. _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
  6417. # Source file extension for C++ test sources.
  6418. ac_ext=cpp
  6419. # Object file extension for compiled C++ test sources.
  6420. objext=o
  6421. _LT_TAGVAR(objext, $1)=$objext
  6422. # No sense in running all these tests if we already determined that
  6423. # the CXX compiler isn't working. Some variables (like enable_shared)
  6424. # are currently assumed to apply to all compilers on this platform,
  6425. # and will be corrupted by setting them based on a non-working compiler.
  6426. if test yes != "$_lt_caught_CXX_error"; then
  6427. # Code to be used in simple compile tests
  6428. lt_simple_compile_test_code="int some_variable = 0;"
  6429. # Code to be used in simple link tests
  6430. lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }'
  6431. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  6432. _LT_TAG_COMPILER
  6433. # save warnings/boilerplate of simple test code
  6434. _LT_COMPILER_BOILERPLATE
  6435. _LT_LINKER_BOILERPLATE
  6436. # Allow CC to be a program name with arguments.
  6437. lt_save_CC=$CC
  6438. lt_save_CFLAGS=$CFLAGS
  6439. lt_save_LD=$LD
  6440. lt_save_GCC=$GCC
  6441. GCC=$GXX
  6442. lt_save_with_gnu_ld=$with_gnu_ld
  6443. lt_save_path_LD=$lt_cv_path_LD
  6444. if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
  6445. lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  6446. else
  6447. $as_unset lt_cv_prog_gnu_ld
  6448. fi
  6449. if test -n "${lt_cv_path_LDCXX+set}"; then
  6450. lt_cv_path_LD=$lt_cv_path_LDCXX
  6451. else
  6452. $as_unset lt_cv_path_LD
  6453. fi
  6454. test -z "${LDCXX+set}" || LD=$LDCXX
  6455. CC=${CXX-"c++"}
  6456. CFLAGS=$CXXFLAGS
  6457. compiler=$CC
  6458. _LT_TAGVAR(compiler, $1)=$CC
  6459. _LT_CC_BASENAME([$compiler])
  6460. if test -n "$compiler"; then
  6461. # We don't want -fno-exception when compiling C++ code, so set the
  6462. # no_builtin_flag separately
  6463. if test yes = "$GXX"; then
  6464. _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
  6465. else
  6466. _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
  6467. fi
  6468. if test yes = "$GXX"; then
  6469. # Set up default GNU C++ configuration
  6470. LT_PATH_LD
  6471. # Check if GNU C++ uses GNU ld as the underlying linker, since the
  6472. # archiving commands below assume that GNU ld is being used.
  6473. if test yes = "$with_gnu_ld"; then
  6474. _LT_TAGVAR(archive_cmds, $1)='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
  6475. _LT_TAGVAR(archive_expsym_cmds, $1)='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  6476. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
  6477. _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-dynamic'
  6478. # If archive_cmds runs LD, not CC, wlarc should be empty
  6479. # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
  6480. # investigate it a little bit more. (MM)
  6481. wlarc='$wl'
  6482. # ancient GNU ld didn't support --whole-archive et. al.
  6483. if eval "`$CC -print-prog-name=ld` --help 2>&1" |
  6484. $GREP 'no-whole-archive' > /dev/null; then
  6485. _LT_TAGVAR(whole_archive_flag_spec, $1)=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
  6486. else
  6487. _LT_TAGVAR(whole_archive_flag_spec, $1)=
  6488. fi
  6489. else
  6490. with_gnu_ld=no
  6491. wlarc=
  6492. # A generic and very simple default shared library creation
  6493. # command for GNU C++ for the case where it uses the native
  6494. # linker, instead of GNU ld. If possible, this setting should
  6495. # overridden to take advantage of the native linker features on
  6496. # the platform it is being used on.
  6497. _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  6498. fi
  6499. # Commands to make compiler produce verbose output that lists
  6500. # what "hidden" libraries, object files and flags are used when
  6501. # linking a shared library.
  6502. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  6503. else
  6504. GXX=no
  6505. with_gnu_ld=no
  6506. wlarc=
  6507. fi
  6508. # PORTME: fill in a description of your system's C++ link characteristics
  6509. AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
  6510. _LT_TAGVAR(ld_shlibs, $1)=yes
  6511. case $host_os in
  6512. aix3*)
  6513. # FIXME: insert proper C++ library support
  6514. _LT_TAGVAR(ld_shlibs, $1)=no
  6515. ;;
  6516. aix[[4-9]]*)
  6517. if test ia64 = "$host_cpu"; then
  6518. # On IA64, the linker does run time linking by default, so we don't
  6519. # have to do anything special.
  6520. aix_use_runtimelinking=no
  6521. exp_sym_flag='-Bexport'
  6522. no_entry_flag=
  6523. else
  6524. aix_use_runtimelinking=no
  6525. # Test if we are trying to use run time linking or normal
  6526. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  6527. # have runtime linking enabled, and use it for executables.
  6528. # For shared libraries, we enable/disable runtime linking
  6529. # depending on the kind of the shared library created -
  6530. # when "with_aix_soname,aix_use_runtimelinking" is:
  6531. # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
  6532. # "aix,yes" lib.so shared, rtl:yes, for executables
  6533. # lib.a static archive
  6534. # "both,no" lib.so.V(shr.o) shared, rtl:yes
  6535. # lib.a(lib.so.V) shared, rtl:no, for executables
  6536. # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
  6537. # lib.a(lib.so.V) shared, rtl:no
  6538. # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
  6539. # lib.a static archive
  6540. case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
  6541. for ld_flag in $LDFLAGS; do
  6542. case $ld_flag in
  6543. *-brtl*)
  6544. aix_use_runtimelinking=yes
  6545. break
  6546. ;;
  6547. esac
  6548. done
  6549. if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
  6550. # With aix-soname=svr4, we create the lib.so.V shared archives only,
  6551. # so we don't have lib.a shared libs to link our executables.
  6552. # We have to force runtime linking in this case.
  6553. aix_use_runtimelinking=yes
  6554. LDFLAGS="$LDFLAGS -Wl,-brtl"
  6555. fi
  6556. ;;
  6557. esac
  6558. exp_sym_flag='-bexport'
  6559. no_entry_flag='-bnoentry'
  6560. fi
  6561. # When large executables or shared objects are built, AIX ld can
  6562. # have problems creating the table of contents. If linking a library
  6563. # or program results in "error TOC overflow" add -mminimal-toc to
  6564. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  6565. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  6566. _LT_TAGVAR(archive_cmds, $1)=''
  6567. _LT_TAGVAR(hardcode_direct, $1)=yes
  6568. _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
  6569. _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
  6570. _LT_TAGVAR(link_all_deplibs, $1)=yes
  6571. _LT_TAGVAR(file_list_spec, $1)='$wl-f,'
  6572. case $with_aix_soname,$aix_use_runtimelinking in
  6573. aix,*) ;; # no import file
  6574. svr4,* | *,yes) # use import file
  6575. # The Import File defines what to hardcode.
  6576. _LT_TAGVAR(hardcode_direct, $1)=no
  6577. _LT_TAGVAR(hardcode_direct_absolute, $1)=no
  6578. ;;
  6579. esac
  6580. if test yes = "$GXX"; then
  6581. case $host_os in aix4.[[012]]|aix4.[[012]].*)
  6582. # We only want to do this on AIX 4.2 and lower, the check
  6583. # below for broken collect2 doesn't work under 4.3+
  6584. collect2name=`$CC -print-prog-name=collect2`
  6585. if test -f "$collect2name" &&
  6586. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  6587. then
  6588. # We have reworked collect2
  6589. :
  6590. else
  6591. # We have old collect2
  6592. _LT_TAGVAR(hardcode_direct, $1)=unsupported
  6593. # It fails to find uninstalled libraries when the uninstalled
  6594. # path is not listed in the libpath. Setting hardcode_minus_L
  6595. # to unsupported forces relinking
  6596. _LT_TAGVAR(hardcode_minus_L, $1)=yes
  6597. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  6598. _LT_TAGVAR(hardcode_libdir_separator, $1)=
  6599. fi
  6600. esac
  6601. shared_flag='-shared'
  6602. if test yes = "$aix_use_runtimelinking"; then
  6603. shared_flag=$shared_flag' $wl-G'
  6604. fi
  6605. # Need to ensure runtime linking is disabled for the traditional
  6606. # shared library, or the linker may eventually find shared libraries
  6607. # /with/ Import File - we do not want to mix them.
  6608. shared_flag_aix='-shared'
  6609. shared_flag_svr4='-shared $wl-G'
  6610. else
  6611. # not using gcc
  6612. if test ia64 = "$host_cpu"; then
  6613. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  6614. # chokes on -Wl,-G. The following line is correct:
  6615. shared_flag='-G'
  6616. else
  6617. if test yes = "$aix_use_runtimelinking"; then
  6618. shared_flag='$wl-G'
  6619. else
  6620. shared_flag='$wl-bM:SRE'
  6621. fi
  6622. shared_flag_aix='$wl-bM:SRE'
  6623. shared_flag_svr4='$wl-G'
  6624. fi
  6625. fi
  6626. _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-bexpall'
  6627. # It seems that -bexpall does not export symbols beginning with
  6628. # underscore (_), so it is better to generate a list of symbols to
  6629. # export.
  6630. _LT_TAGVAR(always_export_symbols, $1)=yes
  6631. if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
  6632. # Warning - without using the other runtime loading flags (-brtl),
  6633. # -berok will link without error, but may produce a broken library.
  6634. # The "-G" linker flag allows undefined symbols.
  6635. _LT_TAGVAR(no_undefined_flag, $1)='-bernotok'
  6636. # Determine the default libpath from the value encoded in an empty
  6637. # executable.
  6638. _LT_SYS_MODULE_PATH_AIX([$1])
  6639. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-blibpath:$libdir:'"$aix_libpath"
  6640. _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
  6641. else
  6642. if test ia64 = "$host_cpu"; then
  6643. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-R $libdir:/usr/lib:/lib'
  6644. _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
  6645. _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"
  6646. else
  6647. # Determine the default libpath from the value encoded in an
  6648. # empty executable.
  6649. _LT_SYS_MODULE_PATH_AIX([$1])
  6650. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-blibpath:$libdir:'"$aix_libpath"
  6651. # Warning - without using the other run time loading flags,
  6652. # -berok will link without error, but may produce a broken library.
  6653. _LT_TAGVAR(no_undefined_flag, $1)=' $wl-bernotok'
  6654. _LT_TAGVAR(allow_undefined_flag, $1)=' $wl-berok'
  6655. if test yes = "$with_gnu_ld"; then
  6656. # We only use this code for GNU lds that support --whole-archive.
  6657. _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl--whole-archive$convenience $wl--no-whole-archive'
  6658. else
  6659. # Exported symbols can be pulled into shared objects from archives
  6660. _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
  6661. fi
  6662. _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
  6663. _LT_TAGVAR(archive_expsym_cmds, $1)='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
  6664. # -brtl affects multiple linker settings, -berok does not and is overridden later
  6665. compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([[, ]]\\)%-berok\\1%g"`'
  6666. if test svr4 != "$with_aix_soname"; then
  6667. # This is similar to how AIX traditionally builds its shared
  6668. # libraries. Need -bnortl late, we may have -brtl in LDFLAGS.
  6669. _LT_TAGVAR(archive_expsym_cmds, $1)="$_LT_TAGVAR(archive_expsym_cmds, $1)"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
  6670. fi
  6671. if test aix != "$with_aix_soname"; then
  6672. _LT_TAGVAR(archive_expsym_cmds, $1)="$_LT_TAGVAR(archive_expsym_cmds, $1)"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
  6673. else
  6674. # used by -dlpreopen to get the symbols
  6675. _LT_TAGVAR(archive_expsym_cmds, $1)="$_LT_TAGVAR(archive_expsym_cmds, $1)"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
  6676. fi
  6677. _LT_TAGVAR(archive_expsym_cmds, $1)="$_LT_TAGVAR(archive_expsym_cmds, $1)"'~$RM -r $output_objdir/$realname.d'
  6678. fi
  6679. fi
  6680. ;;
  6681. beos*)
  6682. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  6683. _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  6684. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  6685. # support --undefined. This deserves some investigation. FIXME
  6686. _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  6687. else
  6688. _LT_TAGVAR(ld_shlibs, $1)=no
  6689. fi
  6690. ;;
  6691. chorus*)
  6692. case $cc_basename in
  6693. *)
  6694. # FIXME: insert proper C++ library support
  6695. _LT_TAGVAR(ld_shlibs, $1)=no
  6696. ;;
  6697. esac
  6698. ;;
  6699. cygwin* | mingw* | pw32* | cegcc*)
  6700. case $GXX,$cc_basename in
  6701. ,cl* | no,cl*)
  6702. # Native MSVC
  6703. # hardcode_libdir_flag_spec is actually meaningless, as there is
  6704. # no search path for DLLs.
  6705. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
  6706. _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  6707. _LT_TAGVAR(always_export_symbols, $1)=yes
  6708. _LT_TAGVAR(file_list_spec, $1)='@'
  6709. # Tell ltmain to make .lib files, not .a files.
  6710. libext=lib
  6711. # Tell ltmain to make .dll files, not .so files.
  6712. shrext_cmds=.dll
  6713. # FIXME: Setting linknames here is a bad hack.
  6714. _LT_TAGVAR(archive_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
  6715. _LT_TAGVAR(archive_expsym_cmds, $1)='if _LT_DLL_DEF_P([$export_symbols]); then
  6716. cp "$export_symbols" "$output_objdir/$soname.def";
  6717. echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
  6718. else
  6719. $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
  6720. fi~
  6721. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  6722. linknames='
  6723. # The linker will not automatically build a static lib if we build a DLL.
  6724. # _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
  6725. _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
  6726. # Don't use ranlib
  6727. _LT_TAGVAR(old_postinstall_cmds, $1)='chmod 644 $oldlib'
  6728. _LT_TAGVAR(postlink_cmds, $1)='lt_outputfile="@OUTPUT@"~
  6729. lt_tool_outputfile="@TOOL_OUTPUT@"~
  6730. case $lt_outputfile in
  6731. *.exe|*.EXE) ;;
  6732. *)
  6733. lt_outputfile=$lt_outputfile.exe
  6734. lt_tool_outputfile=$lt_tool_outputfile.exe
  6735. ;;
  6736. esac~
  6737. func_to_tool_file "$lt_outputfile"~
  6738. if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
  6739. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  6740. $RM "$lt_outputfile.manifest";
  6741. fi'
  6742. ;;
  6743. *)
  6744. # g++
  6745. # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
  6746. # as there is no search path for DLLs.
  6747. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  6748. _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-all-symbols'
  6749. _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  6750. _LT_TAGVAR(always_export_symbols, $1)=no
  6751. _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
  6752. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  6753. _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'
  6754. # If the export-symbols file already is a .def file, use it as
  6755. # is; otherwise, prepend EXPORTS...
  6756. _LT_TAGVAR(archive_expsym_cmds, $1)='if _LT_DLL_DEF_P([$export_symbols]); then
  6757. cp $export_symbols $output_objdir/$soname.def;
  6758. else
  6759. echo EXPORTS > $output_objdir/$soname.def;
  6760. cat $export_symbols >> $output_objdir/$soname.def;
  6761. fi~
  6762. $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'
  6763. else
  6764. _LT_TAGVAR(ld_shlibs, $1)=no
  6765. fi
  6766. ;;
  6767. esac
  6768. ;;
  6769. darwin* | rhapsody*)
  6770. _LT_DARWIN_LINKER_FEATURES($1)
  6771. ;;
  6772. os2*)
  6773. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  6774. _LT_TAGVAR(hardcode_minus_L, $1)=yes
  6775. _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  6776. shrext_cmds=.dll
  6777. _LT_TAGVAR(archive_cmds, $1)='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  6778. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  6779. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  6780. $ECHO EXPORTS >> $output_objdir/$libname.def~
  6781. emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
  6782. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  6783. emximp -o $lib $output_objdir/$libname.def'
  6784. _LT_TAGVAR(archive_expsym_cmds, $1)='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  6785. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  6786. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  6787. $ECHO EXPORTS >> $output_objdir/$libname.def~
  6788. prefix_cmds="$SED"~
  6789. if test EXPORTS = "`$SED 1q $export_symbols`"; then
  6790. prefix_cmds="$prefix_cmds -e 1d";
  6791. fi~
  6792. prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
  6793. cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
  6794. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  6795. emximp -o $lib $output_objdir/$libname.def'
  6796. _LT_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
  6797. _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
  6798. ;;
  6799. dgux*)
  6800. case $cc_basename in
  6801. ec++*)
  6802. # FIXME: insert proper C++ library support
  6803. _LT_TAGVAR(ld_shlibs, $1)=no
  6804. ;;
  6805. ghcx*)
  6806. # Green Hills C++ Compiler
  6807. # FIXME: insert proper C++ library support
  6808. _LT_TAGVAR(ld_shlibs, $1)=no
  6809. ;;
  6810. *)
  6811. # FIXME: insert proper C++ library support
  6812. _LT_TAGVAR(ld_shlibs, $1)=no
  6813. ;;
  6814. esac
  6815. ;;
  6816. freebsd2.*)
  6817. # C++ shared libraries reported to be fairly broken before
  6818. # switch to ELF
  6819. _LT_TAGVAR(ld_shlibs, $1)=no
  6820. ;;
  6821. freebsd-elf*)
  6822. _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  6823. ;;
  6824. freebsd* | dragonfly*)
  6825. # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
  6826. # conventions
  6827. _LT_TAGVAR(ld_shlibs, $1)=yes
  6828. ;;
  6829. haiku*)
  6830. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  6831. _LT_TAGVAR(link_all_deplibs, $1)=yes
  6832. ;;
  6833. hpux9*)
  6834. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl+b $wl$libdir'
  6835. _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  6836. _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E'
  6837. _LT_TAGVAR(hardcode_direct, $1)=yes
  6838. _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
  6839. # but as the default
  6840. # location of the library.
  6841. case $cc_basename in
  6842. CC*)
  6843. # FIXME: insert proper C++ library support
  6844. _LT_TAGVAR(ld_shlibs, $1)=no
  6845. ;;
  6846. aCC*)
  6847. _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 "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
  6848. # Commands to make compiler produce verbose output that lists
  6849. # what "hidden" libraries, object files and flags are used when
  6850. # linking a shared library.
  6851. #
  6852. # There doesn't appear to be a way to prevent this compiler from
  6853. # explicitly linking system object files so we need to strip them
  6854. # from the output so that they don't get included in the library
  6855. # dependencies.
  6856. 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"'
  6857. ;;
  6858. *)
  6859. if test yes = "$GXX"; then
  6860. _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
  6861. else
  6862. # FIXME: insert proper C++ library support
  6863. _LT_TAGVAR(ld_shlibs, $1)=no
  6864. fi
  6865. ;;
  6866. esac
  6867. ;;
  6868. hpux10*|hpux11*)
  6869. if test no = "$with_gnu_ld"; then
  6870. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl+b $wl$libdir'
  6871. _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  6872. case $host_cpu in
  6873. hppa*64*|ia64*)
  6874. ;;
  6875. *)
  6876. _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E'
  6877. ;;
  6878. esac
  6879. fi
  6880. case $host_cpu in
  6881. hppa*64*|ia64*)
  6882. _LT_TAGVAR(hardcode_direct, $1)=no
  6883. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  6884. ;;
  6885. *)
  6886. _LT_TAGVAR(hardcode_direct, $1)=yes
  6887. _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
  6888. _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
  6889. # but as the default
  6890. # location of the library.
  6891. ;;
  6892. esac
  6893. case $cc_basename in
  6894. CC*)
  6895. # FIXME: insert proper C++ library support
  6896. _LT_TAGVAR(ld_shlibs, $1)=no
  6897. ;;
  6898. aCC*)
  6899. case $host_cpu in
  6900. hppa*64*)
  6901. _LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  6902. ;;
  6903. ia64*)
  6904. _LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  6905. ;;
  6906. *)
  6907. _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'
  6908. ;;
  6909. esac
  6910. # Commands to make compiler produce verbose output that lists
  6911. # what "hidden" libraries, object files and flags are used when
  6912. # linking a shared library.
  6913. #
  6914. # There doesn't appear to be a way to prevent this compiler from
  6915. # explicitly linking system object files so we need to strip them
  6916. # from the output so that they don't get included in the library
  6917. # dependencies.
  6918. 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"'
  6919. ;;
  6920. *)
  6921. if test yes = "$GXX"; then
  6922. if test no = "$with_gnu_ld"; then
  6923. case $host_cpu in
  6924. hppa*64*)
  6925. _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  6926. ;;
  6927. ia64*)
  6928. _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  6929. ;;
  6930. *)
  6931. _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  6932. ;;
  6933. esac
  6934. fi
  6935. else
  6936. # FIXME: insert proper C++ library support
  6937. _LT_TAGVAR(ld_shlibs, $1)=no
  6938. fi
  6939. ;;
  6940. esac
  6941. ;;
  6942. interix[[3-9]]*)
  6943. _LT_TAGVAR(hardcode_direct, $1)=no
  6944. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  6945. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir'
  6946. _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E'
  6947. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  6948. # Instead, shared libraries are loaded at an image base (0x10000000 by
  6949. # default) and relocated if they conflict, which is a slow very memory
  6950. # consuming and fragmenting process. To avoid this, we pick a random,
  6951. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  6952. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  6953. _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'
  6954. _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'
  6955. ;;
  6956. irix5* | irix6*)
  6957. case $cc_basename in
  6958. CC*)
  6959. # SGI C++
  6960. _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'
  6961. # Archives containing C++ object files must be created using
  6962. # "CC -ar", where "CC" is the IRIX C++ compiler. This is
  6963. # necessary to make sure instantiated templates are included
  6964. # in the archive.
  6965. _LT_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs'
  6966. ;;
  6967. *)
  6968. if test yes = "$GXX"; then
  6969. if test no = "$with_gnu_ld"; then
  6970. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -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'
  6971. else
  6972. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -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'
  6973. fi
  6974. fi
  6975. _LT_TAGVAR(link_all_deplibs, $1)=yes
  6976. ;;
  6977. esac
  6978. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
  6979. _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  6980. _LT_TAGVAR(inherit_rpath, $1)=yes
  6981. ;;
  6982. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  6983. case $cc_basename in
  6984. KCC*)
  6985. # Kuck and Associates, Inc. (KAI) C++ Compiler
  6986. # KCC will only create a shared library if the output file
  6987. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  6988. # to its proper name (with version) after linking.
  6989. _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'
  6990. _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'
  6991. # Commands to make compiler produce verbose output that lists
  6992. # what "hidden" libraries, object files and flags are used when
  6993. # linking a shared library.
  6994. #
  6995. # There doesn't appear to be a way to prevent this compiler from
  6996. # explicitly linking system object files so we need to strip them
  6997. # from the output so that they don't get included in the library
  6998. # dependencies.
  6999. 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"'
  7000. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir'
  7001. _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-dynamic'
  7002. # Archives containing C++ object files must be created using
  7003. # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  7004. _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
  7005. ;;
  7006. icpc* | ecpc* )
  7007. # Intel C++
  7008. with_gnu_ld=yes
  7009. # version 8.0 and above of icpc choke on multiply defined symbols
  7010. # if we add $predep_objects and $postdep_objects, however 7.1 and
  7011. # earlier do not add the objects themselves.
  7012. case `$CC -V 2>&1` in
  7013. *"Version 7."*)
  7014. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
  7015. _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'
  7016. ;;
  7017. *) # Version 8.0 or newer
  7018. tmp_idyn=
  7019. case $host_cpu in
  7020. ia64*) tmp_idyn=' -i_dynamic';;
  7021. esac
  7022. _LT_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  7023. _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'
  7024. ;;
  7025. esac
  7026. _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  7027. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir'
  7028. _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-dynamic'
  7029. _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl--whole-archive$convenience $wl--no-whole-archive'
  7030. ;;
  7031. pgCC* | pgcpp*)
  7032. # Portland Group C++ compiler
  7033. case `$CC -V` in
  7034. *pgCC\ [[1-5]].* | *pgcpp\ [[1-5]].*)
  7035. _LT_TAGVAR(prelink_cmds, $1)='tpldir=Template.dir~
  7036. rm -rf $tpldir~
  7037. $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
  7038. compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
  7039. _LT_TAGVAR(old_archive_cmds, $1)='tpldir=Template.dir~
  7040. rm -rf $tpldir~
  7041. $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
  7042. $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
  7043. $RANLIB $oldlib'
  7044. _LT_TAGVAR(archive_cmds, $1)='tpldir=Template.dir~
  7045. rm -rf $tpldir~
  7046. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  7047. $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
  7048. _LT_TAGVAR(archive_expsym_cmds, $1)='tpldir=Template.dir~
  7049. rm -rf $tpldir~
  7050. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  7051. $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'
  7052. ;;
  7053. *) # Version 6 and above use weak symbols
  7054. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
  7055. _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'
  7056. ;;
  7057. esac
  7058. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl--rpath $wl$libdir'
  7059. _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-dynamic'
  7060. _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'
  7061. ;;
  7062. cxx*)
  7063. # Compaq C++
  7064. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
  7065. _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'
  7066. runpath_var=LD_RUN_PATH
  7067. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
  7068. _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  7069. # Commands to make compiler produce verbose output that lists
  7070. # what "hidden" libraries, object files and flags are used when
  7071. # linking a shared library.
  7072. #
  7073. # There doesn't appear to be a way to prevent this compiler from
  7074. # explicitly linking system object files so we need to strip them
  7075. # from the output so that they don't get included in the library
  7076. # dependencies.
  7077. 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'
  7078. ;;
  7079. xl* | mpixl* | bgxl*)
  7080. # IBM XL 8.0 on PPC, with GNU ld
  7081. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
  7082. _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-dynamic'
  7083. _LT_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  7084. if test yes = "$supports_anon_versioning"; then
  7085. _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
  7086. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  7087. echo "local: *; };" >> $output_objdir/$libname.ver~
  7088. $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
  7089. fi
  7090. ;;
  7091. *)
  7092. case `$CC -V 2>&1 | sed 5q` in
  7093. *Sun\ C*)
  7094. # Sun C++ 5.9
  7095. _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
  7096. _LT_TAGVAR(archive_cmds, $1)='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  7097. _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'
  7098. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  7099. _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'
  7100. _LT_TAGVAR(compiler_needs_object, $1)=yes
  7101. # Not sure whether something based on
  7102. # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
  7103. # would be better.
  7104. output_verbose_link_cmd='func_echo_all'
  7105. # Archives containing C++ object files must be created using
  7106. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  7107. # necessary to make sure instantiated templates are included
  7108. # in the archive.
  7109. _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
  7110. ;;
  7111. esac
  7112. ;;
  7113. esac
  7114. ;;
  7115. lynxos*)
  7116. # FIXME: insert proper C++ library support
  7117. _LT_TAGVAR(ld_shlibs, $1)=no
  7118. ;;
  7119. m88k*)
  7120. # FIXME: insert proper C++ library support
  7121. _LT_TAGVAR(ld_shlibs, $1)=no
  7122. ;;
  7123. mvs*)
  7124. case $cc_basename in
  7125. cxx*)
  7126. # FIXME: insert proper C++ library support
  7127. _LT_TAGVAR(ld_shlibs, $1)=no
  7128. ;;
  7129. *)
  7130. # FIXME: insert proper C++ library support
  7131. _LT_TAGVAR(ld_shlibs, $1)=no
  7132. ;;
  7133. esac
  7134. ;;
  7135. netbsd*)
  7136. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  7137. _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
  7138. wlarc=
  7139. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  7140. _LT_TAGVAR(hardcode_direct, $1)=yes
  7141. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  7142. fi
  7143. # Workaround some broken pre-1.5 toolchains
  7144. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
  7145. ;;
  7146. *nto* | *qnx*)
  7147. _LT_TAGVAR(ld_shlibs, $1)=yes
  7148. ;;
  7149. openbsd* | bitrig*)
  7150. if test -f /usr/libexec/ld.so; then
  7151. _LT_TAGVAR(hardcode_direct, $1)=yes
  7152. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  7153. _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
  7154. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  7155. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir'
  7156. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then
  7157. _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'
  7158. _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E'
  7159. _LT_TAGVAR(whole_archive_flag_spec, $1)=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
  7160. fi
  7161. output_verbose_link_cmd=func_echo_all
  7162. else
  7163. _LT_TAGVAR(ld_shlibs, $1)=no
  7164. fi
  7165. ;;
  7166. osf3* | osf4* | osf5*)
  7167. case $cc_basename in
  7168. KCC*)
  7169. # Kuck and Associates, Inc. (KAI) C++ Compiler
  7170. # KCC will only create a shared library if the output file
  7171. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  7172. # to its proper name (with version) after linking.
  7173. _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'
  7174. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir'
  7175. _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  7176. # Archives containing C++ object files must be created using
  7177. # the KAI C++ compiler.
  7178. case $host in
  7179. osf3*) _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' ;;
  7180. *) _LT_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs' ;;
  7181. esac
  7182. ;;
  7183. RCC*)
  7184. # Rational C++ 2.4.1
  7185. # FIXME: insert proper C++ library support
  7186. _LT_TAGVAR(ld_shlibs, $1)=no
  7187. ;;
  7188. cxx*)
  7189. case $host in
  7190. osf3*)
  7191. _LT_TAGVAR(allow_undefined_flag, $1)=' $wl-expect_unresolved $wl\*'
  7192. _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'
  7193. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
  7194. ;;
  7195. *)
  7196. _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
  7197. _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'
  7198. _LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
  7199. echo "-hidden">> $lib.exp~
  7200. $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~
  7201. $RM $lib.exp'
  7202. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
  7203. ;;
  7204. esac
  7205. _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  7206. # Commands to make compiler produce verbose output that lists
  7207. # what "hidden" libraries, object files and flags are used when
  7208. # linking a shared library.
  7209. #
  7210. # There doesn't appear to be a way to prevent this compiler from
  7211. # explicitly linking system object files so we need to strip them
  7212. # from the output so that they don't get included in the library
  7213. # dependencies.
  7214. 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"'
  7215. ;;
  7216. *)
  7217. if test yes,no = "$GXX,$with_gnu_ld"; then
  7218. _LT_TAGVAR(allow_undefined_flag, $1)=' $wl-expect_unresolved $wl\*'
  7219. case $host in
  7220. osf3*)
  7221. _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'
  7222. ;;
  7223. *)
  7224. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -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'
  7225. ;;
  7226. esac
  7227. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
  7228. _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  7229. # Commands to make compiler produce verbose output that lists
  7230. # what "hidden" libraries, object files and flags are used when
  7231. # linking a shared library.
  7232. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  7233. else
  7234. # FIXME: insert proper C++ library support
  7235. _LT_TAGVAR(ld_shlibs, $1)=no
  7236. fi
  7237. ;;
  7238. esac
  7239. ;;
  7240. psos*)
  7241. # FIXME: insert proper C++ library support
  7242. _LT_TAGVAR(ld_shlibs, $1)=no
  7243. ;;
  7244. sunos4*)
  7245. case $cc_basename in
  7246. CC*)
  7247. # Sun C++ 4.x
  7248. # FIXME: insert proper C++ library support
  7249. _LT_TAGVAR(ld_shlibs, $1)=no
  7250. ;;
  7251. lcc*)
  7252. # Lucid
  7253. # FIXME: insert proper C++ library support
  7254. _LT_TAGVAR(ld_shlibs, $1)=no
  7255. ;;
  7256. *)
  7257. # FIXME: insert proper C++ library support
  7258. _LT_TAGVAR(ld_shlibs, $1)=no
  7259. ;;
  7260. esac
  7261. ;;
  7262. solaris*)
  7263. case $cc_basename in
  7264. CC* | sunCC*)
  7265. # Sun C++ 4.2, 5.x and Centerline C++
  7266. _LT_TAGVAR(archive_cmds_need_lc,$1)=yes
  7267. _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
  7268. _LT_TAGVAR(archive_cmds, $1)='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  7269. _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  7270. $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'
  7271. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  7272. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  7273. case $host_os in
  7274. solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
  7275. *)
  7276. # The compiler driver will combine and reorder linker options,
  7277. # but understands '-z linker_flag'.
  7278. # Supported since Solaris 2.6 (maybe 2.5.1?)
  7279. _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
  7280. ;;
  7281. esac
  7282. _LT_TAGVAR(link_all_deplibs, $1)=yes
  7283. output_verbose_link_cmd='func_echo_all'
  7284. # Archives containing C++ object files must be created using
  7285. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  7286. # necessary to make sure instantiated templates are included
  7287. # in the archive.
  7288. _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
  7289. ;;
  7290. gcx*)
  7291. # Green Hills C++ Compiler
  7292. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
  7293. # The C++ compiler must be used to create the archive.
  7294. _LT_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
  7295. ;;
  7296. *)
  7297. # GNU C++ compiler with Solaris linker
  7298. if test yes,no = "$GXX,$with_gnu_ld"; then
  7299. _LT_TAGVAR(no_undefined_flag, $1)=' $wl-z ${wl}defs'
  7300. if $CC --version | $GREP -v '^2\.7' > /dev/null; then
  7301. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
  7302. _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  7303. $CC -shared $pic_flag -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  7304. # Commands to make compiler produce verbose output that lists
  7305. # what "hidden" libraries, object files and flags are used when
  7306. # linking a shared library.
  7307. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  7308. else
  7309. # g++ 2.7 appears to require '-G' NOT '-shared' on this
  7310. # platform.
  7311. _LT_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
  7312. _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  7313. $CC -G -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  7314. # Commands to make compiler produce verbose output that lists
  7315. # what "hidden" libraries, object files and flags are used when
  7316. # linking a shared library.
  7317. output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  7318. fi
  7319. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-R $wl$libdir'
  7320. case $host_os in
  7321. solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
  7322. *)
  7323. _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
  7324. ;;
  7325. esac
  7326. fi
  7327. ;;
  7328. esac
  7329. ;;
  7330. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
  7331. _LT_TAGVAR(no_undefined_flag, $1)='$wl-z,text'
  7332. _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  7333. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  7334. runpath_var='LD_RUN_PATH'
  7335. case $cc_basename in
  7336. CC*)
  7337. _LT_TAGVAR(archive_cmds, $1)='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  7338. _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  7339. ;;
  7340. *)
  7341. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  7342. _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  7343. ;;
  7344. esac
  7345. ;;
  7346. sysv5* | sco3.2v5* | sco5v6*)
  7347. # Note: We CANNOT use -z defs as we might desire, because we do not
  7348. # link with -lc, and that would cause any symbols used from libc to
  7349. # always be unresolved, which means just about no library would
  7350. # ever link correctly. If we're not using GNU ld we use -z text
  7351. # though, which does catch some bad symbols but isn't as heavy-handed
  7352. # as -z defs.
  7353. _LT_TAGVAR(no_undefined_flag, $1)='$wl-z,text'
  7354. _LT_TAGVAR(allow_undefined_flag, $1)='$wl-z,nodefs'
  7355. _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  7356. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  7357. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-R,$libdir'
  7358. _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
  7359. _LT_TAGVAR(link_all_deplibs, $1)=yes
  7360. _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-Bexport'
  7361. runpath_var='LD_RUN_PATH'
  7362. case $cc_basename in
  7363. CC*)
  7364. _LT_TAGVAR(archive_cmds, $1)='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  7365. _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  7366. _LT_TAGVAR(old_archive_cmds, $1)='$CC -Tprelink_objects $oldobjs~
  7367. '"$_LT_TAGVAR(old_archive_cmds, $1)"
  7368. _LT_TAGVAR(reload_cmds, $1)='$CC -Tprelink_objects $reload_objs~
  7369. '"$_LT_TAGVAR(reload_cmds, $1)"
  7370. ;;
  7371. *)
  7372. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  7373. _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  7374. ;;
  7375. esac
  7376. ;;
  7377. tandem*)
  7378. case $cc_basename in
  7379. NCC*)
  7380. # NonStop-UX NCC 3.20
  7381. # FIXME: insert proper C++ library support
  7382. _LT_TAGVAR(ld_shlibs, $1)=no
  7383. ;;
  7384. *)
  7385. # FIXME: insert proper C++ library support
  7386. _LT_TAGVAR(ld_shlibs, $1)=no
  7387. ;;
  7388. esac
  7389. ;;
  7390. vxworks*)
  7391. # FIXME: insert proper C++ library support
  7392. _LT_TAGVAR(ld_shlibs, $1)=no
  7393. ;;
  7394. *)
  7395. # FIXME: insert proper C++ library support
  7396. _LT_TAGVAR(ld_shlibs, $1)=no
  7397. ;;
  7398. esac
  7399. AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)])
  7400. test no = "$_LT_TAGVAR(ld_shlibs, $1)" && can_build_shared=no
  7401. _LT_TAGVAR(GCC, $1)=$GXX
  7402. _LT_TAGVAR(LD, $1)=$LD
  7403. ## CAVEAT EMPTOR:
  7404. ## There is no encapsulation within the following macros, do not change
  7405. ## the running order or otherwise move them around unless you know exactly
  7406. ## what you are doing...
  7407. _LT_SYS_HIDDEN_LIBDEPS($1)
  7408. _LT_COMPILER_PIC($1)
  7409. _LT_COMPILER_C_O($1)
  7410. _LT_COMPILER_FILE_LOCKS($1)
  7411. _LT_LINKER_SHLIBS($1)
  7412. _LT_SYS_DYNAMIC_LINKER($1)
  7413. _LT_LINKER_HARDCODE_LIBPATH($1)
  7414. _LT_CONFIG($1)
  7415. fi # test -n "$compiler"
  7416. CC=$lt_save_CC
  7417. CFLAGS=$lt_save_CFLAGS
  7418. LDCXX=$LD
  7419. LD=$lt_save_LD
  7420. GCC=$lt_save_GCC
  7421. with_gnu_ld=$lt_save_with_gnu_ld
  7422. lt_cv_path_LDCXX=$lt_cv_path_LD
  7423. lt_cv_path_LD=$lt_save_path_LD
  7424. lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  7425. lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
  7426. fi # test yes != "$_lt_caught_CXX_error"
  7427. AC_LANG_POP
  7428. ])# _LT_LANG_CXX_CONFIG
  7429. # _LT_FUNC_STRIPNAME_CNF
  7430. # ----------------------
  7431. # func_stripname_cnf prefix suffix name
  7432. # strip PREFIX and SUFFIX off of NAME.
  7433. # PREFIX and SUFFIX must not contain globbing or regex special
  7434. # characters, hashes, percent signs, but SUFFIX may contain a leading
  7435. # dot (in which case that matches only a dot).
  7436. #
  7437. # This function is identical to the (non-XSI) version of func_stripname,
  7438. # except this one can be used by m4 code that may be executed by configure,
  7439. # rather than the libtool script.
  7440. m4_defun([_LT_FUNC_STRIPNAME_CNF],[dnl
  7441. AC_REQUIRE([_LT_DECL_SED])
  7442. AC_REQUIRE([_LT_PROG_ECHO_BACKSLASH])
  7443. func_stripname_cnf ()
  7444. {
  7445. case @S|@2 in
  7446. .*) func_stripname_result=`$ECHO "@S|@3" | $SED "s%^@S|@1%%; s%\\\\@S|@2\$%%"`;;
  7447. *) func_stripname_result=`$ECHO "@S|@3" | $SED "s%^@S|@1%%; s%@S|@2\$%%"`;;
  7448. esac
  7449. } # func_stripname_cnf
  7450. ])# _LT_FUNC_STRIPNAME_CNF
  7451. # _LT_SYS_HIDDEN_LIBDEPS([TAGNAME])
  7452. # ---------------------------------
  7453. # Figure out "hidden" library dependencies from verbose
  7454. # compiler output when linking a shared library.
  7455. # Parse the compiler output and extract the necessary
  7456. # objects, libraries and library flags.
  7457. m4_defun([_LT_SYS_HIDDEN_LIBDEPS],
  7458. [m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  7459. AC_REQUIRE([_LT_FUNC_STRIPNAME_CNF])dnl
  7460. # Dependencies to place before and after the object being linked:
  7461. _LT_TAGVAR(predep_objects, $1)=
  7462. _LT_TAGVAR(postdep_objects, $1)=
  7463. _LT_TAGVAR(predeps, $1)=
  7464. _LT_TAGVAR(postdeps, $1)=
  7465. _LT_TAGVAR(compiler_lib_search_path, $1)=
  7466. dnl we can't use the lt_simple_compile_test_code here,
  7467. dnl because it contains code intended for an executable,
  7468. dnl not a library. It's possible we should let each
  7469. dnl tag define a new lt_????_link_test_code variable,
  7470. dnl but it's only used here...
  7471. m4_if([$1], [], [cat > conftest.$ac_ext <<_LT_EOF
  7472. int a;
  7473. void foo (void) { a = 0; }
  7474. _LT_EOF
  7475. ], [$1], [CXX], [cat > conftest.$ac_ext <<_LT_EOF
  7476. class Foo
  7477. {
  7478. public:
  7479. Foo (void) { a = 0; }
  7480. private:
  7481. int a;
  7482. };
  7483. _LT_EOF
  7484. ], [$1], [F77], [cat > conftest.$ac_ext <<_LT_EOF
  7485. subroutine foo
  7486. implicit none
  7487. integer*4 a
  7488. a=0
  7489. return
  7490. end
  7491. _LT_EOF
  7492. ], [$1], [FC], [cat > conftest.$ac_ext <<_LT_EOF
  7493. subroutine foo
  7494. implicit none
  7495. integer a
  7496. a=0
  7497. return
  7498. end
  7499. _LT_EOF
  7500. ], [$1], [GCJ], [cat > conftest.$ac_ext <<_LT_EOF
  7501. public class foo {
  7502. private int a;
  7503. public void bar (void) {
  7504. a = 0;
  7505. }
  7506. };
  7507. _LT_EOF
  7508. ], [$1], [GO], [cat > conftest.$ac_ext <<_LT_EOF
  7509. package foo
  7510. func foo() {
  7511. }
  7512. _LT_EOF
  7513. ])
  7514. _lt_libdeps_save_CFLAGS=$CFLAGS
  7515. case "$CC $CFLAGS " in #(
  7516. *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
  7517. *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
  7518. *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
  7519. esac
  7520. dnl Parse the compiler output and extract the necessary
  7521. dnl objects, libraries and library flags.
  7522. if AC_TRY_EVAL(ac_compile); then
  7523. # Parse the compiler output and extract the necessary
  7524. # objects, libraries and library flags.
  7525. # Sentinel used to keep track of whether or not we are before
  7526. # the conftest object file.
  7527. pre_test_object_deps_done=no
  7528. for p in `eval "$output_verbose_link_cmd"`; do
  7529. case $prev$p in
  7530. -L* | -R* | -l*)
  7531. # Some compilers place space between "-{L,R}" and the path.
  7532. # Remove the space.
  7533. if test x-L = "$p" ||
  7534. test x-R = "$p"; then
  7535. prev=$p
  7536. continue
  7537. fi
  7538. # Expand the sysroot to ease extracting the directories later.
  7539. if test -z "$prev"; then
  7540. case $p in
  7541. -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
  7542. -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
  7543. -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
  7544. esac
  7545. fi
  7546. case $p in
  7547. =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
  7548. esac
  7549. if test no = "$pre_test_object_deps_done"; then
  7550. case $prev in
  7551. -L | -R)
  7552. # Internal compiler library paths should come after those
  7553. # provided the user. The postdeps already come after the
  7554. # user supplied libs so there is no need to process them.
  7555. if test -z "$_LT_TAGVAR(compiler_lib_search_path, $1)"; then
  7556. _LT_TAGVAR(compiler_lib_search_path, $1)=$prev$p
  7557. else
  7558. _LT_TAGVAR(compiler_lib_search_path, $1)="${_LT_TAGVAR(compiler_lib_search_path, $1)} $prev$p"
  7559. fi
  7560. ;;
  7561. # The "-l" case would never come before the object being
  7562. # linked, so don't bother handling this case.
  7563. esac
  7564. else
  7565. if test -z "$_LT_TAGVAR(postdeps, $1)"; then
  7566. _LT_TAGVAR(postdeps, $1)=$prev$p
  7567. else
  7568. _LT_TAGVAR(postdeps, $1)="${_LT_TAGVAR(postdeps, $1)} $prev$p"
  7569. fi
  7570. fi
  7571. prev=
  7572. ;;
  7573. *.lto.$objext) ;; # Ignore GCC LTO objects
  7574. *.$objext)
  7575. # This assumes that the test object file only shows up
  7576. # once in the compiler output.
  7577. if test "$p" = "conftest.$objext"; then
  7578. pre_test_object_deps_done=yes
  7579. continue
  7580. fi
  7581. if test no = "$pre_test_object_deps_done"; then
  7582. if test -z "$_LT_TAGVAR(predep_objects, $1)"; then
  7583. _LT_TAGVAR(predep_objects, $1)=$p
  7584. else
  7585. _LT_TAGVAR(predep_objects, $1)="$_LT_TAGVAR(predep_objects, $1) $p"
  7586. fi
  7587. else
  7588. if test -z "$_LT_TAGVAR(postdep_objects, $1)"; then
  7589. _LT_TAGVAR(postdep_objects, $1)=$p
  7590. else
  7591. _LT_TAGVAR(postdep_objects, $1)="$_LT_TAGVAR(postdep_objects, $1) $p"
  7592. fi
  7593. fi
  7594. ;;
  7595. *) ;; # Ignore the rest.
  7596. esac
  7597. done
  7598. # Clean up.
  7599. rm -f a.out a.exe
  7600. else
  7601. echo "libtool.m4: error: problem compiling $1 test program"
  7602. fi
  7603. $RM -f confest.$objext
  7604. CFLAGS=$_lt_libdeps_save_CFLAGS
  7605. # PORTME: override above test on systems where it is broken
  7606. m4_if([$1], [CXX],
  7607. [case $host_os in
  7608. interix[[3-9]]*)
  7609. # Interix 3.5 installs completely hosed .la files for C++, so rather than
  7610. # hack all around it, let's just trust "g++" to DTRT.
  7611. _LT_TAGVAR(predep_objects,$1)=
  7612. _LT_TAGVAR(postdep_objects,$1)=
  7613. _LT_TAGVAR(postdeps,$1)=
  7614. ;;
  7615. esac
  7616. ])
  7617. case " $_LT_TAGVAR(postdeps, $1) " in
  7618. *" -lc "*) _LT_TAGVAR(archive_cmds_need_lc, $1)=no ;;
  7619. esac
  7620. _LT_TAGVAR(compiler_lib_search_dirs, $1)=
  7621. if test -n "${_LT_TAGVAR(compiler_lib_search_path, $1)}"; then
  7622. _LT_TAGVAR(compiler_lib_search_dirs, $1)=`echo " ${_LT_TAGVAR(compiler_lib_search_path, $1)}" | $SED -e 's! -L! !g' -e 's!^ !!'`
  7623. fi
  7624. _LT_TAGDECL([], [compiler_lib_search_dirs], [1],
  7625. [The directories searched by this compiler when creating a shared library])
  7626. _LT_TAGDECL([], [predep_objects], [1],
  7627. [Dependencies to place before and after the objects being linked to
  7628. create a shared library])
  7629. _LT_TAGDECL([], [postdep_objects], [1])
  7630. _LT_TAGDECL([], [predeps], [1])
  7631. _LT_TAGDECL([], [postdeps], [1])
  7632. _LT_TAGDECL([], [compiler_lib_search_path], [1],
  7633. [The library search path used internally by the compiler when linking
  7634. a shared library])
  7635. ])# _LT_SYS_HIDDEN_LIBDEPS
  7636. # _LT_LANG_F77_CONFIG([TAG])
  7637. # --------------------------
  7638. # Ensure that the configuration variables for a Fortran 77 compiler are
  7639. # suitably defined. These variables are subsequently used by _LT_CONFIG
  7640. # to write the compiler configuration to 'libtool'.
  7641. m4_defun([_LT_LANG_F77_CONFIG],
  7642. [AC_LANG_PUSH(Fortran 77)
  7643. if test -z "$F77" || test no = "$F77"; then
  7644. _lt_disable_F77=yes
  7645. fi
  7646. _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  7647. _LT_TAGVAR(allow_undefined_flag, $1)=
  7648. _LT_TAGVAR(always_export_symbols, $1)=no
  7649. _LT_TAGVAR(archive_expsym_cmds, $1)=
  7650. _LT_TAGVAR(export_dynamic_flag_spec, $1)=
  7651. _LT_TAGVAR(hardcode_direct, $1)=no
  7652. _LT_TAGVAR(hardcode_direct_absolute, $1)=no
  7653. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
  7654. _LT_TAGVAR(hardcode_libdir_separator, $1)=
  7655. _LT_TAGVAR(hardcode_minus_L, $1)=no
  7656. _LT_TAGVAR(hardcode_automatic, $1)=no
  7657. _LT_TAGVAR(inherit_rpath, $1)=no
  7658. _LT_TAGVAR(module_cmds, $1)=
  7659. _LT_TAGVAR(module_expsym_cmds, $1)=
  7660. _LT_TAGVAR(link_all_deplibs, $1)=unknown
  7661. _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
  7662. _LT_TAGVAR(reload_flag, $1)=$reload_flag
  7663. _LT_TAGVAR(reload_cmds, $1)=$reload_cmds
  7664. _LT_TAGVAR(no_undefined_flag, $1)=
  7665. _LT_TAGVAR(whole_archive_flag_spec, $1)=
  7666. _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
  7667. # Source file extension for f77 test sources.
  7668. ac_ext=f
  7669. # Object file extension for compiled f77 test sources.
  7670. objext=o
  7671. _LT_TAGVAR(objext, $1)=$objext
  7672. # No sense in running all these tests if we already determined that
  7673. # the F77 compiler isn't working. Some variables (like enable_shared)
  7674. # are currently assumed to apply to all compilers on this platform,
  7675. # and will be corrupted by setting them based on a non-working compiler.
  7676. if test yes != "$_lt_disable_F77"; then
  7677. # Code to be used in simple compile tests
  7678. lt_simple_compile_test_code="\
  7679. subroutine t
  7680. return
  7681. end
  7682. "
  7683. # Code to be used in simple link tests
  7684. lt_simple_link_test_code="\
  7685. program t
  7686. end
  7687. "
  7688. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  7689. _LT_TAG_COMPILER
  7690. # save warnings/boilerplate of simple test code
  7691. _LT_COMPILER_BOILERPLATE
  7692. _LT_LINKER_BOILERPLATE
  7693. # Allow CC to be a program name with arguments.
  7694. lt_save_CC=$CC
  7695. lt_save_GCC=$GCC
  7696. lt_save_CFLAGS=$CFLAGS
  7697. CC=${F77-"f77"}
  7698. CFLAGS=$FFLAGS
  7699. compiler=$CC
  7700. _LT_TAGVAR(compiler, $1)=$CC
  7701. _LT_CC_BASENAME([$compiler])
  7702. GCC=$G77
  7703. if test -n "$compiler"; then
  7704. AC_MSG_CHECKING([if libtool supports shared libraries])
  7705. AC_MSG_RESULT([$can_build_shared])
  7706. AC_MSG_CHECKING([whether to build shared libraries])
  7707. test no = "$can_build_shared" && enable_shared=no
  7708. # On AIX, shared libraries and static libraries use the same namespace, and
  7709. # are all built from PIC.
  7710. case $host_os in
  7711. aix3*)
  7712. test yes = "$enable_shared" && enable_static=no
  7713. if test -n "$RANLIB"; then
  7714. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  7715. postinstall_cmds='$RANLIB $lib'
  7716. fi
  7717. ;;
  7718. aix[[4-9]]*)
  7719. if test ia64 != "$host_cpu"; then
  7720. case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
  7721. yes,aix,yes) ;; # shared object as lib.so file only
  7722. yes,svr4,*) ;; # shared object as lib.so archive member only
  7723. yes,*) enable_static=no ;; # shared object in lib.a archive as well
  7724. esac
  7725. fi
  7726. ;;
  7727. esac
  7728. AC_MSG_RESULT([$enable_shared])
  7729. AC_MSG_CHECKING([whether to build static libraries])
  7730. # Make sure either enable_shared or enable_static is yes.
  7731. test yes = "$enable_shared" || enable_static=yes
  7732. AC_MSG_RESULT([$enable_static])
  7733. _LT_TAGVAR(GCC, $1)=$G77
  7734. _LT_TAGVAR(LD, $1)=$LD
  7735. ## CAVEAT EMPTOR:
  7736. ## There is no encapsulation within the following macros, do not change
  7737. ## the running order or otherwise move them around unless you know exactly
  7738. ## what you are doing...
  7739. _LT_COMPILER_PIC($1)
  7740. _LT_COMPILER_C_O($1)
  7741. _LT_COMPILER_FILE_LOCKS($1)
  7742. _LT_LINKER_SHLIBS($1)
  7743. _LT_SYS_DYNAMIC_LINKER($1)
  7744. _LT_LINKER_HARDCODE_LIBPATH($1)
  7745. _LT_CONFIG($1)
  7746. fi # test -n "$compiler"
  7747. GCC=$lt_save_GCC
  7748. CC=$lt_save_CC
  7749. CFLAGS=$lt_save_CFLAGS
  7750. fi # test yes != "$_lt_disable_F77"
  7751. AC_LANG_POP
  7752. ])# _LT_LANG_F77_CONFIG
  7753. # _LT_LANG_FC_CONFIG([TAG])
  7754. # -------------------------
  7755. # Ensure that the configuration variables for a Fortran compiler are
  7756. # suitably defined. These variables are subsequently used by _LT_CONFIG
  7757. # to write the compiler configuration to 'libtool'.
  7758. m4_defun([_LT_LANG_FC_CONFIG],
  7759. [AC_LANG_PUSH(Fortran)
  7760. if test -z "$FC" || test no = "$FC"; then
  7761. _lt_disable_FC=yes
  7762. fi
  7763. _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  7764. _LT_TAGVAR(allow_undefined_flag, $1)=
  7765. _LT_TAGVAR(always_export_symbols, $1)=no
  7766. _LT_TAGVAR(archive_expsym_cmds, $1)=
  7767. _LT_TAGVAR(export_dynamic_flag_spec, $1)=
  7768. _LT_TAGVAR(hardcode_direct, $1)=no
  7769. _LT_TAGVAR(hardcode_direct_absolute, $1)=no
  7770. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
  7771. _LT_TAGVAR(hardcode_libdir_separator, $1)=
  7772. _LT_TAGVAR(hardcode_minus_L, $1)=no
  7773. _LT_TAGVAR(hardcode_automatic, $1)=no
  7774. _LT_TAGVAR(inherit_rpath, $1)=no
  7775. _LT_TAGVAR(module_cmds, $1)=
  7776. _LT_TAGVAR(module_expsym_cmds, $1)=
  7777. _LT_TAGVAR(link_all_deplibs, $1)=unknown
  7778. _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
  7779. _LT_TAGVAR(reload_flag, $1)=$reload_flag
  7780. _LT_TAGVAR(reload_cmds, $1)=$reload_cmds
  7781. _LT_TAGVAR(no_undefined_flag, $1)=
  7782. _LT_TAGVAR(whole_archive_flag_spec, $1)=
  7783. _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
  7784. # Source file extension for fc test sources.
  7785. ac_ext=${ac_fc_srcext-f}
  7786. # Object file extension for compiled fc test sources.
  7787. objext=o
  7788. _LT_TAGVAR(objext, $1)=$objext
  7789. # No sense in running all these tests if we already determined that
  7790. # the FC compiler isn't working. Some variables (like enable_shared)
  7791. # are currently assumed to apply to all compilers on this platform,
  7792. # and will be corrupted by setting them based on a non-working compiler.
  7793. if test yes != "$_lt_disable_FC"; then
  7794. # Code to be used in simple compile tests
  7795. lt_simple_compile_test_code="\
  7796. subroutine t
  7797. return
  7798. end
  7799. "
  7800. # Code to be used in simple link tests
  7801. lt_simple_link_test_code="\
  7802. program t
  7803. end
  7804. "
  7805. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  7806. _LT_TAG_COMPILER
  7807. # save warnings/boilerplate of simple test code
  7808. _LT_COMPILER_BOILERPLATE
  7809. _LT_LINKER_BOILERPLATE
  7810. # Allow CC to be a program name with arguments.
  7811. lt_save_CC=$CC
  7812. lt_save_GCC=$GCC
  7813. lt_save_CFLAGS=$CFLAGS
  7814. CC=${FC-"f95"}
  7815. CFLAGS=$FCFLAGS
  7816. compiler=$CC
  7817. GCC=$ac_cv_fc_compiler_gnu
  7818. _LT_TAGVAR(compiler, $1)=$CC
  7819. _LT_CC_BASENAME([$compiler])
  7820. if test -n "$compiler"; then
  7821. AC_MSG_CHECKING([if libtool supports shared libraries])
  7822. AC_MSG_RESULT([$can_build_shared])
  7823. AC_MSG_CHECKING([whether to build shared libraries])
  7824. test no = "$can_build_shared" && enable_shared=no
  7825. # On AIX, shared libraries and static libraries use the same namespace, and
  7826. # are all built from PIC.
  7827. case $host_os in
  7828. aix3*)
  7829. test yes = "$enable_shared" && enable_static=no
  7830. if test -n "$RANLIB"; then
  7831. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  7832. postinstall_cmds='$RANLIB $lib'
  7833. fi
  7834. ;;
  7835. aix[[4-9]]*)
  7836. if test ia64 != "$host_cpu"; then
  7837. case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
  7838. yes,aix,yes) ;; # shared object as lib.so file only
  7839. yes,svr4,*) ;; # shared object as lib.so archive member only
  7840. yes,*) enable_static=no ;; # shared object in lib.a archive as well
  7841. esac
  7842. fi
  7843. ;;
  7844. esac
  7845. AC_MSG_RESULT([$enable_shared])
  7846. AC_MSG_CHECKING([whether to build static libraries])
  7847. # Make sure either enable_shared or enable_static is yes.
  7848. test yes = "$enable_shared" || enable_static=yes
  7849. AC_MSG_RESULT([$enable_static])
  7850. _LT_TAGVAR(GCC, $1)=$ac_cv_fc_compiler_gnu
  7851. _LT_TAGVAR(LD, $1)=$LD
  7852. ## CAVEAT EMPTOR:
  7853. ## There is no encapsulation within the following macros, do not change
  7854. ## the running order or otherwise move them around unless you know exactly
  7855. ## what you are doing...
  7856. _LT_SYS_HIDDEN_LIBDEPS($1)
  7857. _LT_COMPILER_PIC($1)
  7858. _LT_COMPILER_C_O($1)
  7859. _LT_COMPILER_FILE_LOCKS($1)
  7860. _LT_LINKER_SHLIBS($1)
  7861. _LT_SYS_DYNAMIC_LINKER($1)
  7862. _LT_LINKER_HARDCODE_LIBPATH($1)
  7863. _LT_CONFIG($1)
  7864. fi # test -n "$compiler"
  7865. GCC=$lt_save_GCC
  7866. CC=$lt_save_CC
  7867. CFLAGS=$lt_save_CFLAGS
  7868. fi # test yes != "$_lt_disable_FC"
  7869. AC_LANG_POP
  7870. ])# _LT_LANG_FC_CONFIG
  7871. # _LT_LANG_GCJ_CONFIG([TAG])
  7872. # --------------------------
  7873. # Ensure that the configuration variables for the GNU Java Compiler compiler
  7874. # are suitably defined. These variables are subsequently used by _LT_CONFIG
  7875. # to write the compiler configuration to 'libtool'.
  7876. m4_defun([_LT_LANG_GCJ_CONFIG],
  7877. [AC_REQUIRE([LT_PROG_GCJ])dnl
  7878. AC_LANG_SAVE
  7879. # Source file extension for Java test sources.
  7880. ac_ext=java
  7881. # Object file extension for compiled Java test sources.
  7882. objext=o
  7883. _LT_TAGVAR(objext, $1)=$objext
  7884. # Code to be used in simple compile tests
  7885. lt_simple_compile_test_code="class foo {}"
  7886. # Code to be used in simple link tests
  7887. lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }'
  7888. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  7889. _LT_TAG_COMPILER
  7890. # save warnings/boilerplate of simple test code
  7891. _LT_COMPILER_BOILERPLATE
  7892. _LT_LINKER_BOILERPLATE
  7893. # Allow CC to be a program name with arguments.
  7894. lt_save_CC=$CC
  7895. lt_save_CFLAGS=$CFLAGS
  7896. lt_save_GCC=$GCC
  7897. GCC=yes
  7898. CC=${GCJ-"gcj"}
  7899. CFLAGS=$GCJFLAGS
  7900. compiler=$CC
  7901. _LT_TAGVAR(compiler, $1)=$CC
  7902. _LT_TAGVAR(LD, $1)=$LD
  7903. _LT_CC_BASENAME([$compiler])
  7904. # GCJ did not exist at the time GCC didn't implicitly link libc in.
  7905. _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  7906. _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
  7907. _LT_TAGVAR(reload_flag, $1)=$reload_flag
  7908. _LT_TAGVAR(reload_cmds, $1)=$reload_cmds
  7909. if test -n "$compiler"; then
  7910. _LT_COMPILER_NO_RTTI($1)
  7911. _LT_COMPILER_PIC($1)
  7912. _LT_COMPILER_C_O($1)
  7913. _LT_COMPILER_FILE_LOCKS($1)
  7914. _LT_LINKER_SHLIBS($1)
  7915. _LT_LINKER_HARDCODE_LIBPATH($1)
  7916. _LT_CONFIG($1)
  7917. fi
  7918. AC_LANG_RESTORE
  7919. GCC=$lt_save_GCC
  7920. CC=$lt_save_CC
  7921. CFLAGS=$lt_save_CFLAGS
  7922. ])# _LT_LANG_GCJ_CONFIG
  7923. # _LT_LANG_GO_CONFIG([TAG])
  7924. # --------------------------
  7925. # Ensure that the configuration variables for the GNU Go compiler
  7926. # are suitably defined. These variables are subsequently used by _LT_CONFIG
  7927. # to write the compiler configuration to 'libtool'.
  7928. m4_defun([_LT_LANG_GO_CONFIG],
  7929. [AC_REQUIRE([LT_PROG_GO])dnl
  7930. AC_LANG_SAVE
  7931. # Source file extension for Go test sources.
  7932. ac_ext=go
  7933. # Object file extension for compiled Go test sources.
  7934. objext=o
  7935. _LT_TAGVAR(objext, $1)=$objext
  7936. # Code to be used in simple compile tests
  7937. lt_simple_compile_test_code="package main; func main() { }"
  7938. # Code to be used in simple link tests
  7939. lt_simple_link_test_code='package main; func main() { }'
  7940. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  7941. _LT_TAG_COMPILER
  7942. # save warnings/boilerplate of simple test code
  7943. _LT_COMPILER_BOILERPLATE
  7944. _LT_LINKER_BOILERPLATE
  7945. # Allow CC to be a program name with arguments.
  7946. lt_save_CC=$CC
  7947. lt_save_CFLAGS=$CFLAGS
  7948. lt_save_GCC=$GCC
  7949. GCC=yes
  7950. CC=${GOC-"gccgo"}
  7951. CFLAGS=$GOFLAGS
  7952. compiler=$CC
  7953. _LT_TAGVAR(compiler, $1)=$CC
  7954. _LT_TAGVAR(LD, $1)=$LD
  7955. _LT_CC_BASENAME([$compiler])
  7956. # Go did not exist at the time GCC didn't implicitly link libc in.
  7957. _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  7958. _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
  7959. _LT_TAGVAR(reload_flag, $1)=$reload_flag
  7960. _LT_TAGVAR(reload_cmds, $1)=$reload_cmds
  7961. if test -n "$compiler"; then
  7962. _LT_COMPILER_NO_RTTI($1)
  7963. _LT_COMPILER_PIC($1)
  7964. _LT_COMPILER_C_O($1)
  7965. _LT_COMPILER_FILE_LOCKS($1)
  7966. _LT_LINKER_SHLIBS($1)
  7967. _LT_LINKER_HARDCODE_LIBPATH($1)
  7968. _LT_CONFIG($1)
  7969. fi
  7970. AC_LANG_RESTORE
  7971. GCC=$lt_save_GCC
  7972. CC=$lt_save_CC
  7973. CFLAGS=$lt_save_CFLAGS
  7974. ])# _LT_LANG_GO_CONFIG
  7975. # _LT_LANG_RC_CONFIG([TAG])
  7976. # -------------------------
  7977. # Ensure that the configuration variables for the Windows resource compiler
  7978. # are suitably defined. These variables are subsequently used by _LT_CONFIG
  7979. # to write the compiler configuration to 'libtool'.
  7980. m4_defun([_LT_LANG_RC_CONFIG],
  7981. [AC_REQUIRE([LT_PROG_RC])dnl
  7982. AC_LANG_SAVE
  7983. # Source file extension for RC test sources.
  7984. ac_ext=rc
  7985. # Object file extension for compiled RC test sources.
  7986. objext=o
  7987. _LT_TAGVAR(objext, $1)=$objext
  7988. # Code to be used in simple compile tests
  7989. lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
  7990. # Code to be used in simple link tests
  7991. lt_simple_link_test_code=$lt_simple_compile_test_code
  7992. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  7993. _LT_TAG_COMPILER
  7994. # save warnings/boilerplate of simple test code
  7995. _LT_COMPILER_BOILERPLATE
  7996. _LT_LINKER_BOILERPLATE
  7997. # Allow CC to be a program name with arguments.
  7998. lt_save_CC=$CC
  7999. lt_save_CFLAGS=$CFLAGS
  8000. lt_save_GCC=$GCC
  8001. GCC=
  8002. CC=${RC-"windres"}
  8003. CFLAGS=
  8004. compiler=$CC
  8005. _LT_TAGVAR(compiler, $1)=$CC
  8006. _LT_CC_BASENAME([$compiler])
  8007. _LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
  8008. if test -n "$compiler"; then
  8009. :
  8010. _LT_CONFIG($1)
  8011. fi
  8012. GCC=$lt_save_GCC
  8013. AC_LANG_RESTORE
  8014. CC=$lt_save_CC
  8015. CFLAGS=$lt_save_CFLAGS
  8016. ])# _LT_LANG_RC_CONFIG
  8017. # LT_PROG_GCJ
  8018. # -----------
  8019. AC_DEFUN([LT_PROG_GCJ],
  8020. [m4_ifdef([AC_PROG_GCJ], [AC_PROG_GCJ],
  8021. [m4_ifdef([A][M_PROG_GCJ], [A][M_PROG_GCJ],
  8022. [AC_CHECK_TOOL(GCJ, gcj,)
  8023. test set = "${GCJFLAGS+set}" || GCJFLAGS="-g -O2"
  8024. AC_SUBST(GCJFLAGS)])])[]dnl
  8025. ])
  8026. # Old name:
  8027. AU_ALIAS([LT_AC_PROG_GCJ], [LT_PROG_GCJ])
  8028. dnl aclocal-1.4 backwards compatibility:
  8029. dnl AC_DEFUN([LT_AC_PROG_GCJ], [])
  8030. # LT_PROG_GO
  8031. # ----------
  8032. AC_DEFUN([LT_PROG_GO],
  8033. [AC_CHECK_TOOL(GOC, gccgo,)
  8034. ])
  8035. # LT_PROG_RC
  8036. # ----------
  8037. AC_DEFUN([LT_PROG_RC],
  8038. [AC_CHECK_TOOL(RC, windres,)
  8039. ])
  8040. # Old name:
  8041. AU_ALIAS([LT_AC_PROG_RC], [LT_PROG_RC])
  8042. dnl aclocal-1.4 backwards compatibility:
  8043. dnl AC_DEFUN([LT_AC_PROG_RC], [])
  8044. # _LT_DECL_EGREP
  8045. # --------------
  8046. # If we don't have a new enough Autoconf to choose the best grep
  8047. # available, choose the one first in the user's PATH.
  8048. m4_defun([_LT_DECL_EGREP],
  8049. [AC_REQUIRE([AC_PROG_EGREP])dnl
  8050. AC_REQUIRE([AC_PROG_FGREP])dnl
  8051. test -z "$GREP" && GREP=grep
  8052. _LT_DECL([], [GREP], [1], [A grep program that handles long lines])
  8053. _LT_DECL([], [EGREP], [1], [An ERE matcher])
  8054. _LT_DECL([], [FGREP], [1], [A literal string matcher])
  8055. dnl Non-bleeding-edge autoconf doesn't subst GREP, so do it here too
  8056. AC_SUBST([GREP])
  8057. ])
  8058. # _LT_DECL_OBJDUMP
  8059. # --------------
  8060. # If we don't have a new enough Autoconf to choose the best objdump
  8061. # available, choose the one first in the user's PATH.
  8062. m4_defun([_LT_DECL_OBJDUMP],
  8063. [AC_CHECK_TOOL(OBJDUMP, objdump, false)
  8064. test -z "$OBJDUMP" && OBJDUMP=objdump
  8065. _LT_DECL([], [OBJDUMP], [1], [An object symbol dumper])
  8066. AC_SUBST([OBJDUMP])
  8067. ])
  8068. # _LT_DECL_DLLTOOL
  8069. # ----------------
  8070. # Ensure DLLTOOL variable is set.
  8071. m4_defun([_LT_DECL_DLLTOOL],
  8072. [AC_CHECK_TOOL(DLLTOOL, dlltool, false)
  8073. test -z "$DLLTOOL" && DLLTOOL=dlltool
  8074. _LT_DECL([], [DLLTOOL], [1], [DLL creation program])
  8075. AC_SUBST([DLLTOOL])
  8076. ])
  8077. # _LT_DECL_SED
  8078. # ------------
  8079. # Check for a fully-functional sed program, that truncates
  8080. # as few characters as possible. Prefer GNU sed if found.
  8081. m4_defun([_LT_DECL_SED],
  8082. [AC_PROG_SED
  8083. test -z "$SED" && SED=sed
  8084. Xsed="$SED -e 1s/^X//"
  8085. _LT_DECL([], [SED], [1], [A sed program that does not truncate output])
  8086. _LT_DECL([], [Xsed], ["\$SED -e 1s/^X//"],
  8087. [Sed that helps us avoid accidentally triggering echo(1) options like -n])
  8088. ])# _LT_DECL_SED
  8089. m4_ifndef([AC_PROG_SED], [
  8090. # NOTE: This macro has been submitted for inclusion into #
  8091. # GNU Autoconf as AC_PROG_SED. When it is available in #
  8092. # a released version of Autoconf we should remove this #
  8093. # macro and use it instead. #
  8094. m4_defun([AC_PROG_SED],
  8095. [AC_MSG_CHECKING([for a sed that does not truncate output])
  8096. AC_CACHE_VAL(lt_cv_path_SED,
  8097. [# Loop through the user's path and test for sed and gsed.
  8098. # Then use that list of sed's as ones to test for truncation.
  8099. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8100. for as_dir in $PATH
  8101. do
  8102. IFS=$as_save_IFS
  8103. test -z "$as_dir" && as_dir=.
  8104. for lt_ac_prog in sed gsed; do
  8105. for ac_exec_ext in '' $ac_executable_extensions; do
  8106. if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
  8107. lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
  8108. fi
  8109. done
  8110. done
  8111. done
  8112. IFS=$as_save_IFS
  8113. lt_ac_max=0
  8114. lt_ac_count=0
  8115. # Add /usr/xpg4/bin/sed as it is typically found on Solaris
  8116. # along with /bin/sed that truncates output.
  8117. for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
  8118. test ! -f "$lt_ac_sed" && continue
  8119. cat /dev/null > conftest.in
  8120. lt_ac_count=0
  8121. echo $ECHO_N "0123456789$ECHO_C" >conftest.in
  8122. # Check for GNU sed and select it if it is found.
  8123. if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
  8124. lt_cv_path_SED=$lt_ac_sed
  8125. break
  8126. fi
  8127. while true; do
  8128. cat conftest.in conftest.in >conftest.tmp
  8129. mv conftest.tmp conftest.in
  8130. cp conftest.in conftest.nl
  8131. echo >>conftest.nl
  8132. $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
  8133. cmp -s conftest.out conftest.nl || break
  8134. # 10000 chars as input seems more than enough
  8135. test 10 -lt "$lt_ac_count" && break
  8136. lt_ac_count=`expr $lt_ac_count + 1`
  8137. if test "$lt_ac_count" -gt "$lt_ac_max"; then
  8138. lt_ac_max=$lt_ac_count
  8139. lt_cv_path_SED=$lt_ac_sed
  8140. fi
  8141. done
  8142. done
  8143. ])
  8144. SED=$lt_cv_path_SED
  8145. AC_SUBST([SED])
  8146. AC_MSG_RESULT([$SED])
  8147. ])#AC_PROG_SED
  8148. ])#m4_ifndef
  8149. # Old name:
  8150. AU_ALIAS([LT_AC_PROG_SED], [AC_PROG_SED])
  8151. dnl aclocal-1.4 backwards compatibility:
  8152. dnl AC_DEFUN([LT_AC_PROG_SED], [])
  8153. # _LT_CHECK_SHELL_FEATURES
  8154. # ------------------------
  8155. # Find out whether the shell is Bourne or XSI compatible,
  8156. # or has some other useful features.
  8157. m4_defun([_LT_CHECK_SHELL_FEATURES],
  8158. [if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  8159. lt_unset=unset
  8160. else
  8161. lt_unset=false
  8162. fi
  8163. _LT_DECL([], [lt_unset], [0], [whether the shell understands "unset"])dnl
  8164. # test EBCDIC or ASCII
  8165. case `echo X|tr X '\101'` in
  8166. A) # ASCII based system
  8167. # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  8168. lt_SP2NL='tr \040 \012'
  8169. lt_NL2SP='tr \015\012 \040\040'
  8170. ;;
  8171. *) # EBCDIC based system
  8172. lt_SP2NL='tr \100 \n'
  8173. lt_NL2SP='tr \r\n \100\100'
  8174. ;;
  8175. esac
  8176. _LT_DECL([SP2NL], [lt_SP2NL], [1], [turn spaces into newlines])dnl
  8177. _LT_DECL([NL2SP], [lt_NL2SP], [1], [turn newlines into spaces])dnl
  8178. ])# _LT_CHECK_SHELL_FEATURES
  8179. # _LT_PATH_CONVERSION_FUNCTIONS
  8180. # -----------------------------
  8181. # Determine what file name conversion functions should be used by
  8182. # func_to_host_file (and, implicitly, by func_to_host_path). These are needed
  8183. # for certain cross-compile configurations and native mingw.
  8184. m4_defun([_LT_PATH_CONVERSION_FUNCTIONS],
  8185. [AC_REQUIRE([AC_CANONICAL_HOST])dnl
  8186. AC_REQUIRE([AC_CANONICAL_BUILD])dnl
  8187. AC_MSG_CHECKING([how to convert $build file names to $host format])
  8188. AC_CACHE_VAL(lt_cv_to_host_file_cmd,
  8189. [case $host in
  8190. *-*-mingw* )
  8191. case $build in
  8192. *-*-mingw* ) # actually msys
  8193. lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
  8194. ;;
  8195. *-*-cygwin* )
  8196. lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
  8197. ;;
  8198. * ) # otherwise, assume *nix
  8199. lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
  8200. ;;
  8201. esac
  8202. ;;
  8203. *-*-cygwin* )
  8204. case $build in
  8205. *-*-mingw* ) # actually msys
  8206. lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
  8207. ;;
  8208. *-*-cygwin* )
  8209. lt_cv_to_host_file_cmd=func_convert_file_noop
  8210. ;;
  8211. * ) # otherwise, assume *nix
  8212. lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
  8213. ;;
  8214. esac
  8215. ;;
  8216. * ) # unhandled hosts (and "normal" native builds)
  8217. lt_cv_to_host_file_cmd=func_convert_file_noop
  8218. ;;
  8219. esac
  8220. ])
  8221. to_host_file_cmd=$lt_cv_to_host_file_cmd
  8222. AC_MSG_RESULT([$lt_cv_to_host_file_cmd])
  8223. _LT_DECL([to_host_file_cmd], [lt_cv_to_host_file_cmd],
  8224. [0], [convert $build file names to $host format])dnl
  8225. AC_MSG_CHECKING([how to convert $build file names to toolchain format])
  8226. AC_CACHE_VAL(lt_cv_to_tool_file_cmd,
  8227. [#assume ordinary cross tools, or native build.
  8228. lt_cv_to_tool_file_cmd=func_convert_file_noop
  8229. case $host in
  8230. *-*-mingw* )
  8231. case $build in
  8232. *-*-mingw* ) # actually msys
  8233. lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
  8234. ;;
  8235. esac
  8236. ;;
  8237. esac
  8238. ])
  8239. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  8240. AC_MSG_RESULT([$lt_cv_to_tool_file_cmd])
  8241. _LT_DECL([to_tool_file_cmd], [lt_cv_to_tool_file_cmd],
  8242. [0], [convert $build files to toolchain format])dnl
  8243. ])# _LT_PATH_CONVERSION_FUNCTIONS
  8244. # Helper functions for option handling. -*- Autoconf -*-
  8245. #
  8246. # Copyright (C) 2004-2005, 2007-2009, 2011-2015 Free Software
  8247. # Foundation, Inc.
  8248. # Written by Gary V. Vaughan, 2004
  8249. #
  8250. # This file is free software; the Free Software Foundation gives
  8251. # unlimited permission to copy and/or distribute it, with or without
  8252. # modifications, as long as this notice is preserved.
  8253. # serial 8 ltoptions.m4
  8254. # This is to help aclocal find these macros, as it can't see m4_define.
  8255. AC_DEFUN([LTOPTIONS_VERSION], [m4_if([1])])
  8256. # _LT_MANGLE_OPTION(MACRO-NAME, OPTION-NAME)
  8257. # ------------------------------------------
  8258. m4_define([_LT_MANGLE_OPTION],
  8259. [[_LT_OPTION_]m4_bpatsubst($1__$2, [[^a-zA-Z0-9_]], [_])])
  8260. # _LT_SET_OPTION(MACRO-NAME, OPTION-NAME)
  8261. # ---------------------------------------
  8262. # Set option OPTION-NAME for macro MACRO-NAME, and if there is a
  8263. # matching handler defined, dispatch to it. Other OPTION-NAMEs are
  8264. # saved as a flag.
  8265. m4_define([_LT_SET_OPTION],
  8266. [m4_define(_LT_MANGLE_OPTION([$1], [$2]))dnl
  8267. m4_ifdef(_LT_MANGLE_DEFUN([$1], [$2]),
  8268. _LT_MANGLE_DEFUN([$1], [$2]),
  8269. [m4_warning([Unknown $1 option '$2'])])[]dnl
  8270. ])
  8271. # _LT_IF_OPTION(MACRO-NAME, OPTION-NAME, IF-SET, [IF-NOT-SET])
  8272. # ------------------------------------------------------------
  8273. # Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
  8274. m4_define([_LT_IF_OPTION],
  8275. [m4_ifdef(_LT_MANGLE_OPTION([$1], [$2]), [$3], [$4])])
  8276. # _LT_UNLESS_OPTIONS(MACRO-NAME, OPTION-LIST, IF-NOT-SET)
  8277. # -------------------------------------------------------
  8278. # Execute IF-NOT-SET unless all options in OPTION-LIST for MACRO-NAME
  8279. # are set.
  8280. m4_define([_LT_UNLESS_OPTIONS],
  8281. [m4_foreach([_LT_Option], m4_split(m4_normalize([$2])),
  8282. [m4_ifdef(_LT_MANGLE_OPTION([$1], _LT_Option),
  8283. [m4_define([$0_found])])])[]dnl
  8284. m4_ifdef([$0_found], [m4_undefine([$0_found])], [$3
  8285. ])[]dnl
  8286. ])
  8287. # _LT_SET_OPTIONS(MACRO-NAME, OPTION-LIST)
  8288. # ----------------------------------------
  8289. # OPTION-LIST is a space-separated list of Libtool options associated
  8290. # with MACRO-NAME. If any OPTION has a matching handler declared with
  8291. # LT_OPTION_DEFINE, dispatch to that macro; otherwise complain about
  8292. # the unknown option and exit.
  8293. m4_defun([_LT_SET_OPTIONS],
  8294. [# Set options
  8295. m4_foreach([_LT_Option], m4_split(m4_normalize([$2])),
  8296. [_LT_SET_OPTION([$1], _LT_Option)])
  8297. m4_if([$1],[LT_INIT],[
  8298. dnl
  8299. dnl Simply set some default values (i.e off) if boolean options were not
  8300. dnl specified:
  8301. _LT_UNLESS_OPTIONS([LT_INIT], [dlopen], [enable_dlopen=no
  8302. ])
  8303. _LT_UNLESS_OPTIONS([LT_INIT], [win32-dll], [enable_win32_dll=no
  8304. ])
  8305. dnl
  8306. dnl If no reference was made to various pairs of opposing options, then
  8307. dnl we run the default mode handler for the pair. For example, if neither
  8308. dnl 'shared' nor 'disable-shared' was passed, we enable building of shared
  8309. dnl archives by default:
  8310. _LT_UNLESS_OPTIONS([LT_INIT], [shared disable-shared], [_LT_ENABLE_SHARED])
  8311. _LT_UNLESS_OPTIONS([LT_INIT], [static disable-static], [_LT_ENABLE_STATIC])
  8312. _LT_UNLESS_OPTIONS([LT_INIT], [pic-only no-pic], [_LT_WITH_PIC])
  8313. _LT_UNLESS_OPTIONS([LT_INIT], [fast-install disable-fast-install],
  8314. [_LT_ENABLE_FAST_INSTALL])
  8315. _LT_UNLESS_OPTIONS([LT_INIT], [aix-soname=aix aix-soname=both aix-soname=svr4],
  8316. [_LT_WITH_AIX_SONAME([aix])])
  8317. ])
  8318. ])# _LT_SET_OPTIONS
  8319. # _LT_MANGLE_DEFUN(MACRO-NAME, OPTION-NAME)
  8320. # -----------------------------------------
  8321. m4_define([_LT_MANGLE_DEFUN],
  8322. [[_LT_OPTION_DEFUN_]m4_bpatsubst(m4_toupper([$1__$2]), [[^A-Z0-9_]], [_])])
  8323. # LT_OPTION_DEFINE(MACRO-NAME, OPTION-NAME, CODE)
  8324. # -----------------------------------------------
  8325. m4_define([LT_OPTION_DEFINE],
  8326. [m4_define(_LT_MANGLE_DEFUN([$1], [$2]), [$3])[]dnl
  8327. ])# LT_OPTION_DEFINE
  8328. # dlopen
  8329. # ------
  8330. LT_OPTION_DEFINE([LT_INIT], [dlopen], [enable_dlopen=yes
  8331. ])
  8332. AU_DEFUN([AC_LIBTOOL_DLOPEN],
  8333. [_LT_SET_OPTION([LT_INIT], [dlopen])
  8334. AC_DIAGNOSE([obsolete],
  8335. [$0: Remove this warning and the call to _LT_SET_OPTION when you
  8336. put the 'dlopen' option into LT_INIT's first parameter.])
  8337. ])
  8338. dnl aclocal-1.4 backwards compatibility:
  8339. dnl AC_DEFUN([AC_LIBTOOL_DLOPEN], [])
  8340. # win32-dll
  8341. # ---------
  8342. # Declare package support for building win32 dll's.
  8343. LT_OPTION_DEFINE([LT_INIT], [win32-dll],
  8344. [enable_win32_dll=yes
  8345. case $host in
  8346. *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
  8347. AC_CHECK_TOOL(AS, as, false)
  8348. AC_CHECK_TOOL(DLLTOOL, dlltool, false)
  8349. AC_CHECK_TOOL(OBJDUMP, objdump, false)
  8350. ;;
  8351. esac
  8352. test -z "$AS" && AS=as
  8353. _LT_DECL([], [AS], [1], [Assembler program])dnl
  8354. test -z "$DLLTOOL" && DLLTOOL=dlltool
  8355. _LT_DECL([], [DLLTOOL], [1], [DLL creation program])dnl
  8356. test -z "$OBJDUMP" && OBJDUMP=objdump
  8357. _LT_DECL([], [OBJDUMP], [1], [Object dumper program])dnl
  8358. ])# win32-dll
  8359. AU_DEFUN([AC_LIBTOOL_WIN32_DLL],
  8360. [AC_REQUIRE([AC_CANONICAL_HOST])dnl
  8361. _LT_SET_OPTION([LT_INIT], [win32-dll])
  8362. AC_DIAGNOSE([obsolete],
  8363. [$0: Remove this warning and the call to _LT_SET_OPTION when you
  8364. put the 'win32-dll' option into LT_INIT's first parameter.])
  8365. ])
  8366. dnl aclocal-1.4 backwards compatibility:
  8367. dnl AC_DEFUN([AC_LIBTOOL_WIN32_DLL], [])
  8368. # _LT_ENABLE_SHARED([DEFAULT])
  8369. # ----------------------------
  8370. # implement the --enable-shared flag, and supports the 'shared' and
  8371. # 'disable-shared' LT_INIT options.
  8372. # DEFAULT is either 'yes' or 'no'. If omitted, it defaults to 'yes'.
  8373. m4_define([_LT_ENABLE_SHARED],
  8374. [m4_define([_LT_ENABLE_SHARED_DEFAULT], [m4_if($1, no, no, yes)])dnl
  8375. AC_ARG_ENABLE([shared],
  8376. [AS_HELP_STRING([--enable-shared@<:@=PKGS@:>@],
  8377. [build shared libraries @<:@default=]_LT_ENABLE_SHARED_DEFAULT[@:>@])],
  8378. [p=${PACKAGE-default}
  8379. case $enableval in
  8380. yes) enable_shared=yes ;;
  8381. no) enable_shared=no ;;
  8382. *)
  8383. enable_shared=no
  8384. # Look at the argument we got. We use all the common list separators.
  8385. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  8386. for pkg in $enableval; do
  8387. IFS=$lt_save_ifs
  8388. if test "X$pkg" = "X$p"; then
  8389. enable_shared=yes
  8390. fi
  8391. done
  8392. IFS=$lt_save_ifs
  8393. ;;
  8394. esac],
  8395. [enable_shared=]_LT_ENABLE_SHARED_DEFAULT)
  8396. _LT_DECL([build_libtool_libs], [enable_shared], [0],
  8397. [Whether or not to build shared libraries])
  8398. ])# _LT_ENABLE_SHARED
  8399. LT_OPTION_DEFINE([LT_INIT], [shared], [_LT_ENABLE_SHARED([yes])])
  8400. LT_OPTION_DEFINE([LT_INIT], [disable-shared], [_LT_ENABLE_SHARED([no])])
  8401. # Old names:
  8402. AC_DEFUN([AC_ENABLE_SHARED],
  8403. [_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[shared])
  8404. ])
  8405. AC_DEFUN([AC_DISABLE_SHARED],
  8406. [_LT_SET_OPTION([LT_INIT], [disable-shared])
  8407. ])
  8408. AU_DEFUN([AM_ENABLE_SHARED], [AC_ENABLE_SHARED($@)])
  8409. AU_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)])
  8410. dnl aclocal-1.4 backwards compatibility:
  8411. dnl AC_DEFUN([AM_ENABLE_SHARED], [])
  8412. dnl AC_DEFUN([AM_DISABLE_SHARED], [])
  8413. # _LT_ENABLE_STATIC([DEFAULT])
  8414. # ----------------------------
  8415. # implement the --enable-static flag, and support the 'static' and
  8416. # 'disable-static' LT_INIT options.
  8417. # DEFAULT is either 'yes' or 'no'. If omitted, it defaults to 'yes'.
  8418. m4_define([_LT_ENABLE_STATIC],
  8419. [m4_define([_LT_ENABLE_STATIC_DEFAULT], [m4_if($1, no, no, yes)])dnl
  8420. AC_ARG_ENABLE([static],
  8421. [AS_HELP_STRING([--enable-static@<:@=PKGS@:>@],
  8422. [build static libraries @<:@default=]_LT_ENABLE_STATIC_DEFAULT[@:>@])],
  8423. [p=${PACKAGE-default}
  8424. case $enableval in
  8425. yes) enable_static=yes ;;
  8426. no) enable_static=no ;;
  8427. *)
  8428. enable_static=no
  8429. # Look at the argument we got. We use all the common list separators.
  8430. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  8431. for pkg in $enableval; do
  8432. IFS=$lt_save_ifs
  8433. if test "X$pkg" = "X$p"; then
  8434. enable_static=yes
  8435. fi
  8436. done
  8437. IFS=$lt_save_ifs
  8438. ;;
  8439. esac],
  8440. [enable_static=]_LT_ENABLE_STATIC_DEFAULT)
  8441. _LT_DECL([build_old_libs], [enable_static], [0],
  8442. [Whether or not to build static libraries])
  8443. ])# _LT_ENABLE_STATIC
  8444. LT_OPTION_DEFINE([LT_INIT], [static], [_LT_ENABLE_STATIC([yes])])
  8445. LT_OPTION_DEFINE([LT_INIT], [disable-static], [_LT_ENABLE_STATIC([no])])
  8446. # Old names:
  8447. AC_DEFUN([AC_ENABLE_STATIC],
  8448. [_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[static])
  8449. ])
  8450. AC_DEFUN([AC_DISABLE_STATIC],
  8451. [_LT_SET_OPTION([LT_INIT], [disable-static])
  8452. ])
  8453. AU_DEFUN([AM_ENABLE_STATIC], [AC_ENABLE_STATIC($@)])
  8454. AU_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)])
  8455. dnl aclocal-1.4 backwards compatibility:
  8456. dnl AC_DEFUN([AM_ENABLE_STATIC], [])
  8457. dnl AC_DEFUN([AM_DISABLE_STATIC], [])
  8458. # _LT_ENABLE_FAST_INSTALL([DEFAULT])
  8459. # ----------------------------------
  8460. # implement the --enable-fast-install flag, and support the 'fast-install'
  8461. # and 'disable-fast-install' LT_INIT options.
  8462. # DEFAULT is either 'yes' or 'no'. If omitted, it defaults to 'yes'.
  8463. m4_define([_LT_ENABLE_FAST_INSTALL],
  8464. [m4_define([_LT_ENABLE_FAST_INSTALL_DEFAULT], [m4_if($1, no, no, yes)])dnl
  8465. AC_ARG_ENABLE([fast-install],
  8466. [AS_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@],
  8467. [optimize for fast installation @<:@default=]_LT_ENABLE_FAST_INSTALL_DEFAULT[@:>@])],
  8468. [p=${PACKAGE-default}
  8469. case $enableval in
  8470. yes) enable_fast_install=yes ;;
  8471. no) enable_fast_install=no ;;
  8472. *)
  8473. enable_fast_install=no
  8474. # Look at the argument we got. We use all the common list separators.
  8475. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  8476. for pkg in $enableval; do
  8477. IFS=$lt_save_ifs
  8478. if test "X$pkg" = "X$p"; then
  8479. enable_fast_install=yes
  8480. fi
  8481. done
  8482. IFS=$lt_save_ifs
  8483. ;;
  8484. esac],
  8485. [enable_fast_install=]_LT_ENABLE_FAST_INSTALL_DEFAULT)
  8486. _LT_DECL([fast_install], [enable_fast_install], [0],
  8487. [Whether or not to optimize for fast installation])dnl
  8488. ])# _LT_ENABLE_FAST_INSTALL
  8489. LT_OPTION_DEFINE([LT_INIT], [fast-install], [_LT_ENABLE_FAST_INSTALL([yes])])
  8490. LT_OPTION_DEFINE([LT_INIT], [disable-fast-install], [_LT_ENABLE_FAST_INSTALL([no])])
  8491. # Old names:
  8492. AU_DEFUN([AC_ENABLE_FAST_INSTALL],
  8493. [_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[fast-install])
  8494. AC_DIAGNOSE([obsolete],
  8495. [$0: Remove this warning and the call to _LT_SET_OPTION when you put
  8496. the 'fast-install' option into LT_INIT's first parameter.])
  8497. ])
  8498. AU_DEFUN([AC_DISABLE_FAST_INSTALL],
  8499. [_LT_SET_OPTION([LT_INIT], [disable-fast-install])
  8500. AC_DIAGNOSE([obsolete],
  8501. [$0: Remove this warning and the call to _LT_SET_OPTION when you put
  8502. the 'disable-fast-install' option into LT_INIT's first parameter.])
  8503. ])
  8504. dnl aclocal-1.4 backwards compatibility:
  8505. dnl AC_DEFUN([AC_ENABLE_FAST_INSTALL], [])
  8506. dnl AC_DEFUN([AM_DISABLE_FAST_INSTALL], [])
  8507. # _LT_WITH_AIX_SONAME([DEFAULT])
  8508. # ----------------------------------
  8509. # implement the --with-aix-soname flag, and support the `aix-soname=aix'
  8510. # and `aix-soname=both' and `aix-soname=svr4' LT_INIT options. DEFAULT
  8511. # is either `aix', `both' or `svr4'. If omitted, it defaults to `aix'.
  8512. m4_define([_LT_WITH_AIX_SONAME],
  8513. [m4_define([_LT_WITH_AIX_SONAME_DEFAULT], [m4_if($1, svr4, svr4, m4_if($1, both, both, aix))])dnl
  8514. shared_archive_member_spec=
  8515. case $host,$enable_shared in
  8516. power*-*-aix[[5-9]]*,yes)
  8517. AC_MSG_CHECKING([which variant of shared library versioning to provide])
  8518. AC_ARG_WITH([aix-soname],
  8519. [AS_HELP_STRING([--with-aix-soname=aix|svr4|both],
  8520. [shared library versioning (aka "SONAME") variant to provide on AIX, @<:@default=]_LT_WITH_AIX_SONAME_DEFAULT[@:>@.])],
  8521. [case $withval in
  8522. aix|svr4|both)
  8523. ;;
  8524. *)
  8525. AC_MSG_ERROR([Unknown argument to --with-aix-soname])
  8526. ;;
  8527. esac
  8528. lt_cv_with_aix_soname=$with_aix_soname],
  8529. [AC_CACHE_VAL([lt_cv_with_aix_soname],
  8530. [lt_cv_with_aix_soname=]_LT_WITH_AIX_SONAME_DEFAULT)
  8531. with_aix_soname=$lt_cv_with_aix_soname])
  8532. AC_MSG_RESULT([$with_aix_soname])
  8533. if test aix != "$with_aix_soname"; then
  8534. # For the AIX way of multilib, we name the shared archive member
  8535. # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
  8536. # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
  8537. # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
  8538. # the AIX toolchain works better with OBJECT_MODE set (default 32).
  8539. if test 64 = "${OBJECT_MODE-32}"; then
  8540. shared_archive_member_spec=shr_64
  8541. else
  8542. shared_archive_member_spec=shr
  8543. fi
  8544. fi
  8545. ;;
  8546. *)
  8547. with_aix_soname=aix
  8548. ;;
  8549. esac
  8550. _LT_DECL([], [shared_archive_member_spec], [0],
  8551. [Shared archive member basename, for filename based shared library versioning on AIX])dnl
  8552. ])# _LT_WITH_AIX_SONAME
  8553. LT_OPTION_DEFINE([LT_INIT], [aix-soname=aix], [_LT_WITH_AIX_SONAME([aix])])
  8554. LT_OPTION_DEFINE([LT_INIT], [aix-soname=both], [_LT_WITH_AIX_SONAME([both])])
  8555. LT_OPTION_DEFINE([LT_INIT], [aix-soname=svr4], [_LT_WITH_AIX_SONAME([svr4])])
  8556. # _LT_WITH_PIC([MODE])
  8557. # --------------------
  8558. # implement the --with-pic flag, and support the 'pic-only' and 'no-pic'
  8559. # LT_INIT options.
  8560. # MODE is either 'yes' or 'no'. If omitted, it defaults to 'both'.
  8561. m4_define([_LT_WITH_PIC],
  8562. [AC_ARG_WITH([pic],
  8563. [AS_HELP_STRING([--with-pic@<:@=PKGS@:>@],
  8564. [try to use only PIC/non-PIC objects @<:@default=use both@:>@])],
  8565. [lt_p=${PACKAGE-default}
  8566. case $withval in
  8567. yes|no) pic_mode=$withval ;;
  8568. *)
  8569. pic_mode=default
  8570. # Look at the argument we got. We use all the common list separators.
  8571. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  8572. for lt_pkg in $withval; do
  8573. IFS=$lt_save_ifs
  8574. if test "X$lt_pkg" = "X$lt_p"; then
  8575. pic_mode=yes
  8576. fi
  8577. done
  8578. IFS=$lt_save_ifs
  8579. ;;
  8580. esac],
  8581. [pic_mode=m4_default([$1], [default])])
  8582. _LT_DECL([], [pic_mode], [0], [What type of objects to build])dnl
  8583. ])# _LT_WITH_PIC
  8584. LT_OPTION_DEFINE([LT_INIT], [pic-only], [_LT_WITH_PIC([yes])])
  8585. LT_OPTION_DEFINE([LT_INIT], [no-pic], [_LT_WITH_PIC([no])])
  8586. # Old name:
  8587. AU_DEFUN([AC_LIBTOOL_PICMODE],
  8588. [_LT_SET_OPTION([LT_INIT], [pic-only])
  8589. AC_DIAGNOSE([obsolete],
  8590. [$0: Remove this warning and the call to _LT_SET_OPTION when you
  8591. put the 'pic-only' option into LT_INIT's first parameter.])
  8592. ])
  8593. dnl aclocal-1.4 backwards compatibility:
  8594. dnl AC_DEFUN([AC_LIBTOOL_PICMODE], [])
  8595. m4_define([_LTDL_MODE], [])
  8596. LT_OPTION_DEFINE([LTDL_INIT], [nonrecursive],
  8597. [m4_define([_LTDL_MODE], [nonrecursive])])
  8598. LT_OPTION_DEFINE([LTDL_INIT], [recursive],
  8599. [m4_define([_LTDL_MODE], [recursive])])
  8600. LT_OPTION_DEFINE([LTDL_INIT], [subproject],
  8601. [m4_define([_LTDL_MODE], [subproject])])
  8602. m4_define([_LTDL_TYPE], [])
  8603. LT_OPTION_DEFINE([LTDL_INIT], [installable],
  8604. [m4_define([_LTDL_TYPE], [installable])])
  8605. LT_OPTION_DEFINE([LTDL_INIT], [convenience],
  8606. [m4_define([_LTDL_TYPE], [convenience])])
  8607. # ltsugar.m4 -- libtool m4 base layer. -*-Autoconf-*-
  8608. #
  8609. # Copyright (C) 2004-2005, 2007-2008, 2011-2015 Free Software
  8610. # Foundation, Inc.
  8611. # Written by Gary V. Vaughan, 2004
  8612. #
  8613. # This file is free software; the Free Software Foundation gives
  8614. # unlimited permission to copy and/or distribute it, with or without
  8615. # modifications, as long as this notice is preserved.
  8616. # serial 6 ltsugar.m4
  8617. # This is to help aclocal find these macros, as it can't see m4_define.
  8618. AC_DEFUN([LTSUGAR_VERSION], [m4_if([0.1])])
  8619. # lt_join(SEP, ARG1, [ARG2...])
  8620. # -----------------------------
  8621. # Produce ARG1SEPARG2...SEPARGn, omitting [] arguments and their
  8622. # associated separator.
  8623. # Needed until we can rely on m4_join from Autoconf 2.62, since all earlier
  8624. # versions in m4sugar had bugs.
  8625. m4_define([lt_join],
  8626. [m4_if([$#], [1], [],
  8627. [$#], [2], [[$2]],
  8628. [m4_if([$2], [], [], [[$2]_])$0([$1], m4_shift(m4_shift($@)))])])
  8629. m4_define([_lt_join],
  8630. [m4_if([$#$2], [2], [],
  8631. [m4_if([$2], [], [], [[$1$2]])$0([$1], m4_shift(m4_shift($@)))])])
  8632. # lt_car(LIST)
  8633. # lt_cdr(LIST)
  8634. # ------------
  8635. # Manipulate m4 lists.
  8636. # These macros are necessary as long as will still need to support
  8637. # Autoconf-2.59, which quotes differently.
  8638. m4_define([lt_car], [[$1]])
  8639. m4_define([lt_cdr],
  8640. [m4_if([$#], 0, [m4_fatal([$0: cannot be called without arguments])],
  8641. [$#], 1, [],
  8642. [m4_dquote(m4_shift($@))])])
  8643. m4_define([lt_unquote], $1)
  8644. # lt_append(MACRO-NAME, STRING, [SEPARATOR])
  8645. # ------------------------------------------
  8646. # Redefine MACRO-NAME to hold its former content plus 'SEPARATOR''STRING'.
  8647. # Note that neither SEPARATOR nor STRING are expanded; they are appended
  8648. # to MACRO-NAME as is (leaving the expansion for when MACRO-NAME is invoked).
  8649. # No SEPARATOR is output if MACRO-NAME was previously undefined (different
  8650. # than defined and empty).
  8651. #
  8652. # This macro is needed until we can rely on Autoconf 2.62, since earlier
  8653. # versions of m4sugar mistakenly expanded SEPARATOR but not STRING.
  8654. m4_define([lt_append],
  8655. [m4_define([$1],
  8656. m4_ifdef([$1], [m4_defn([$1])[$3]])[$2])])
  8657. # lt_combine(SEP, PREFIX-LIST, INFIX, SUFFIX1, [SUFFIX2...])
  8658. # ----------------------------------------------------------
  8659. # Produce a SEP delimited list of all paired combinations of elements of
  8660. # PREFIX-LIST with SUFFIX1 through SUFFIXn. Each element of the list
  8661. # has the form PREFIXmINFIXSUFFIXn.
  8662. # Needed until we can rely on m4_combine added in Autoconf 2.62.
  8663. m4_define([lt_combine],
  8664. [m4_if(m4_eval([$# > 3]), [1],
  8665. [m4_pushdef([_Lt_sep], [m4_define([_Lt_sep], m4_defn([lt_car]))])]]dnl
  8666. [[m4_foreach([_Lt_prefix], [$2],
  8667. [m4_foreach([_Lt_suffix],
  8668. ]m4_dquote(m4_dquote(m4_shift(m4_shift(m4_shift($@)))))[,
  8669. [_Lt_sep([$1])[]m4_defn([_Lt_prefix])[$3]m4_defn([_Lt_suffix])])])])])
  8670. # lt_if_append_uniq(MACRO-NAME, VARNAME, [SEPARATOR], [UNIQ], [NOT-UNIQ])
  8671. # -----------------------------------------------------------------------
  8672. # Iff MACRO-NAME does not yet contain VARNAME, then append it (delimited
  8673. # by SEPARATOR if supplied) and expand UNIQ, else NOT-UNIQ.
  8674. m4_define([lt_if_append_uniq],
  8675. [m4_ifdef([$1],
  8676. [m4_if(m4_index([$3]m4_defn([$1])[$3], [$3$2$3]), [-1],
  8677. [lt_append([$1], [$2], [$3])$4],
  8678. [$5])],
  8679. [lt_append([$1], [$2], [$3])$4])])
  8680. # lt_dict_add(DICT, KEY, VALUE)
  8681. # -----------------------------
  8682. m4_define([lt_dict_add],
  8683. [m4_define([$1($2)], [$3])])
  8684. # lt_dict_add_subkey(DICT, KEY, SUBKEY, VALUE)
  8685. # --------------------------------------------
  8686. m4_define([lt_dict_add_subkey],
  8687. [m4_define([$1($2:$3)], [$4])])
  8688. # lt_dict_fetch(DICT, KEY, [SUBKEY])
  8689. # ----------------------------------
  8690. m4_define([lt_dict_fetch],
  8691. [m4_ifval([$3],
  8692. m4_ifdef([$1($2:$3)], [m4_defn([$1($2:$3)])]),
  8693. m4_ifdef([$1($2)], [m4_defn([$1($2)])]))])
  8694. # lt_if_dict_fetch(DICT, KEY, [SUBKEY], VALUE, IF-TRUE, [IF-FALSE])
  8695. # -----------------------------------------------------------------
  8696. m4_define([lt_if_dict_fetch],
  8697. [m4_if(lt_dict_fetch([$1], [$2], [$3]), [$4],
  8698. [$5],
  8699. [$6])])
  8700. # lt_dict_filter(DICT, [SUBKEY], VALUE, [SEPARATOR], KEY, [...])
  8701. # --------------------------------------------------------------
  8702. m4_define([lt_dict_filter],
  8703. [m4_if([$5], [], [],
  8704. [lt_join(m4_quote(m4_default([$4], [[, ]])),
  8705. lt_unquote(m4_split(m4_normalize(m4_foreach(_Lt_key, lt_car([m4_shiftn(4, $@)]),
  8706. [lt_if_dict_fetch([$1], _Lt_key, [$2], [$3], [_Lt_key ])])))))])[]dnl
  8707. ])
  8708. # ltversion.m4 -- version numbers -*- Autoconf -*-
  8709. #
  8710. # Copyright (C) 2004, 2011-2015 Free Software Foundation, Inc.
  8711. # Written by Scott James Remnant, 2004
  8712. #
  8713. # This file is free software; the Free Software Foundation gives
  8714. # unlimited permission to copy and/or distribute it, with or without
  8715. # modifications, as long as this notice is preserved.
  8716. # @configure_input@
  8717. # serial 4179 ltversion.m4
  8718. # This file is part of GNU Libtool
  8719. m4_define([LT_PACKAGE_VERSION], [2.4.6])
  8720. m4_define([LT_PACKAGE_REVISION], [2.4.6])
  8721. AC_DEFUN([LTVERSION_VERSION],
  8722. [macro_version='2.4.6'
  8723. macro_revision='2.4.6'
  8724. _LT_DECL(, macro_version, 0, [Which release of libtool.m4 was used?])
  8725. _LT_DECL(, macro_revision, 0)
  8726. ])
  8727. # lt~obsolete.m4 -- aclocal satisfying obsolete definitions. -*-Autoconf-*-
  8728. #
  8729. # Copyright (C) 2004-2005, 2007, 2009, 2011-2015 Free Software
  8730. # Foundation, Inc.
  8731. # Written by Scott James Remnant, 2004.
  8732. #
  8733. # This file is free software; the Free Software Foundation gives
  8734. # unlimited permission to copy and/or distribute it, with or without
  8735. # modifications, as long as this notice is preserved.
  8736. # serial 5 lt~obsolete.m4
  8737. # These exist entirely to fool aclocal when bootstrapping libtool.
  8738. #
  8739. # In the past libtool.m4 has provided macros via AC_DEFUN (or AU_DEFUN),
  8740. # which have later been changed to m4_define as they aren't part of the
  8741. # exported API, or moved to Autoconf or Automake where they belong.
  8742. #
  8743. # The trouble is, aclocal is a bit thick. It'll see the old AC_DEFUN
  8744. # in /usr/share/aclocal/libtool.m4 and remember it, then when it sees us
  8745. # using a macro with the same name in our local m4/libtool.m4 it'll
  8746. # pull the old libtool.m4 in (it doesn't see our shiny new m4_define
  8747. # and doesn't know about Autoconf macros at all.)
  8748. #
  8749. # So we provide this file, which has a silly filename so it's always
  8750. # included after everything else. This provides aclocal with the
  8751. # AC_DEFUNs it wants, but when m4 processes it, it doesn't do anything
  8752. # because those macros already exist, or will be overwritten later.
  8753. # We use AC_DEFUN over AU_DEFUN for compatibility with aclocal-1.6.
  8754. #
  8755. # Anytime we withdraw an AC_DEFUN or AU_DEFUN, remember to add it here.
  8756. # Yes, that means every name once taken will need to remain here until
  8757. # we give up compatibility with versions before 1.7, at which point
  8758. # we need to keep only those names which we still refer to.
  8759. # This is to help aclocal find these macros, as it can't see m4_define.
  8760. AC_DEFUN([LTOBSOLETE_VERSION], [m4_if([1])])
  8761. m4_ifndef([AC_LIBTOOL_LINKER_OPTION], [AC_DEFUN([AC_LIBTOOL_LINKER_OPTION])])
  8762. m4_ifndef([AC_PROG_EGREP], [AC_DEFUN([AC_PROG_EGREP])])
  8763. m4_ifndef([_LT_AC_PROG_ECHO_BACKSLASH], [AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH])])
  8764. m4_ifndef([_LT_AC_SHELL_INIT], [AC_DEFUN([_LT_AC_SHELL_INIT])])
  8765. m4_ifndef([_LT_AC_SYS_LIBPATH_AIX], [AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX])])
  8766. m4_ifndef([_LT_PROG_LTMAIN], [AC_DEFUN([_LT_PROG_LTMAIN])])
  8767. m4_ifndef([_LT_AC_TAGVAR], [AC_DEFUN([_LT_AC_TAGVAR])])
  8768. m4_ifndef([AC_LTDL_ENABLE_INSTALL], [AC_DEFUN([AC_LTDL_ENABLE_INSTALL])])
  8769. m4_ifndef([AC_LTDL_PREOPEN], [AC_DEFUN([AC_LTDL_PREOPEN])])
  8770. m4_ifndef([_LT_AC_SYS_COMPILER], [AC_DEFUN([_LT_AC_SYS_COMPILER])])
  8771. m4_ifndef([_LT_AC_LOCK], [AC_DEFUN([_LT_AC_LOCK])])
  8772. m4_ifndef([AC_LIBTOOL_SYS_OLD_ARCHIVE], [AC_DEFUN([AC_LIBTOOL_SYS_OLD_ARCHIVE])])
  8773. m4_ifndef([_LT_AC_TRY_DLOPEN_SELF], [AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF])])
  8774. m4_ifndef([AC_LIBTOOL_PROG_CC_C_O], [AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O])])
  8775. m4_ifndef([AC_LIBTOOL_SYS_HARD_LINK_LOCKS], [AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS])])
  8776. m4_ifndef([AC_LIBTOOL_OBJDIR], [AC_DEFUN([AC_LIBTOOL_OBJDIR])])
  8777. m4_ifndef([AC_LTDL_OBJDIR], [AC_DEFUN([AC_LTDL_OBJDIR])])
  8778. m4_ifndef([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH], [AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH])])
  8779. m4_ifndef([AC_LIBTOOL_SYS_LIB_STRIP], [AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP])])
  8780. m4_ifndef([AC_PATH_MAGIC], [AC_DEFUN([AC_PATH_MAGIC])])
  8781. m4_ifndef([AC_PROG_LD_GNU], [AC_DEFUN([AC_PROG_LD_GNU])])
  8782. m4_ifndef([AC_PROG_LD_RELOAD_FLAG], [AC_DEFUN([AC_PROG_LD_RELOAD_FLAG])])
  8783. m4_ifndef([AC_DEPLIBS_CHECK_METHOD], [AC_DEFUN([AC_DEPLIBS_CHECK_METHOD])])
  8784. m4_ifndef([AC_LIBTOOL_PROG_COMPILER_NO_RTTI], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI])])
  8785. m4_ifndef([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE], [AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE])])
  8786. m4_ifndef([AC_LIBTOOL_PROG_COMPILER_PIC], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_PIC])])
  8787. m4_ifndef([AC_LIBTOOL_PROG_LD_SHLIBS], [AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS])])
  8788. m4_ifndef([AC_LIBTOOL_POSTDEP_PREDEP], [AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP])])
  8789. m4_ifndef([LT_AC_PROG_EGREP], [AC_DEFUN([LT_AC_PROG_EGREP])])
  8790. m4_ifndef([LT_AC_PROG_SED], [AC_DEFUN([LT_AC_PROG_SED])])
  8791. m4_ifndef([_LT_CC_BASENAME], [AC_DEFUN([_LT_CC_BASENAME])])
  8792. m4_ifndef([_LT_COMPILER_BOILERPLATE], [AC_DEFUN([_LT_COMPILER_BOILERPLATE])])
  8793. m4_ifndef([_LT_LINKER_BOILERPLATE], [AC_DEFUN([_LT_LINKER_BOILERPLATE])])
  8794. m4_ifndef([_AC_PROG_LIBTOOL], [AC_DEFUN([_AC_PROG_LIBTOOL])])
  8795. m4_ifndef([AC_LIBTOOL_SETUP], [AC_DEFUN([AC_LIBTOOL_SETUP])])
  8796. m4_ifndef([_LT_AC_CHECK_DLFCN], [AC_DEFUN([_LT_AC_CHECK_DLFCN])])
  8797. m4_ifndef([AC_LIBTOOL_SYS_DYNAMIC_LINKER], [AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER])])
  8798. m4_ifndef([_LT_AC_TAGCONFIG], [AC_DEFUN([_LT_AC_TAGCONFIG])])
  8799. m4_ifndef([AC_DISABLE_FAST_INSTALL], [AC_DEFUN([AC_DISABLE_FAST_INSTALL])])
  8800. m4_ifndef([_LT_AC_LANG_CXX], [AC_DEFUN([_LT_AC_LANG_CXX])])
  8801. m4_ifndef([_LT_AC_LANG_F77], [AC_DEFUN([_LT_AC_LANG_F77])])
  8802. m4_ifndef([_LT_AC_LANG_GCJ], [AC_DEFUN([_LT_AC_LANG_GCJ])])
  8803. m4_ifndef([AC_LIBTOOL_LANG_C_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG])])
  8804. m4_ifndef([_LT_AC_LANG_C_CONFIG], [AC_DEFUN([_LT_AC_LANG_C_CONFIG])])
  8805. m4_ifndef([AC_LIBTOOL_LANG_CXX_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG])])
  8806. m4_ifndef([_LT_AC_LANG_CXX_CONFIG], [AC_DEFUN([_LT_AC_LANG_CXX_CONFIG])])
  8807. m4_ifndef([AC_LIBTOOL_LANG_F77_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG])])
  8808. m4_ifndef([_LT_AC_LANG_F77_CONFIG], [AC_DEFUN([_LT_AC_LANG_F77_CONFIG])])
  8809. m4_ifndef([AC_LIBTOOL_LANG_GCJ_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG])])
  8810. m4_ifndef([_LT_AC_LANG_GCJ_CONFIG], [AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG])])
  8811. m4_ifndef([AC_LIBTOOL_LANG_RC_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG])])
  8812. m4_ifndef([_LT_AC_LANG_RC_CONFIG], [AC_DEFUN([_LT_AC_LANG_RC_CONFIG])])
  8813. m4_ifndef([AC_LIBTOOL_CONFIG], [AC_DEFUN([AC_LIBTOOL_CONFIG])])
  8814. m4_ifndef([_LT_AC_FILE_LTDLL_C], [AC_DEFUN([_LT_AC_FILE_LTDLL_C])])
  8815. m4_ifndef([_LT_REQUIRED_DARWIN_CHECKS], [AC_DEFUN([_LT_REQUIRED_DARWIN_CHECKS])])
  8816. m4_ifndef([_LT_AC_PROG_CXXCPP], [AC_DEFUN([_LT_AC_PROG_CXXCPP])])
  8817. m4_ifndef([_LT_PREPARE_SED_QUOTE_VARS], [AC_DEFUN([_LT_PREPARE_SED_QUOTE_VARS])])
  8818. m4_ifndef([_LT_PROG_ECHO_BACKSLASH], [AC_DEFUN([_LT_PROG_ECHO_BACKSLASH])])
  8819. m4_ifndef([_LT_PROG_F77], [AC_DEFUN([_LT_PROG_F77])])
  8820. m4_ifndef([_LT_PROG_FC], [AC_DEFUN([_LT_PROG_FC])])
  8821. m4_ifndef([_LT_PROG_CXX], [AC_DEFUN([_LT_PROG_CXX])])
  8822. # nls.m4 serial 5 (gettext-0.18)
  8823. dnl Copyright (C) 1995-2003, 2005-2006, 2008-2014, 2016 Free Software
  8824. dnl Foundation, Inc.
  8825. dnl This file is free software; the Free Software Foundation
  8826. dnl gives unlimited permission to copy and/or distribute it,
  8827. dnl with or without modifications, as long as this notice is preserved.
  8828. dnl
  8829. dnl This file can be used in projects which are not available under
  8830. dnl the GNU General Public License or the GNU Library General Public
  8831. dnl License but which still want to provide support for the GNU gettext
  8832. dnl functionality.
  8833. dnl Please note that the actual code of the GNU gettext library is covered
  8834. dnl by the GNU Library General Public License, and the rest of the GNU
  8835. dnl gettext package is covered by the GNU General Public License.
  8836. dnl They are *not* in the public domain.
  8837. dnl Authors:
  8838. dnl Ulrich Drepper <drepper@cygnus.com>, 1995-2000.
  8839. dnl Bruno Haible <haible@clisp.cons.org>, 2000-2003.
  8840. AC_PREREQ([2.50])
  8841. AC_DEFUN([AM_NLS],
  8842. [
  8843. AC_MSG_CHECKING([whether NLS is requested])
  8844. dnl Default is enabled NLS
  8845. AC_ARG_ENABLE([nls],
  8846. [ --disable-nls do not use Native Language Support],
  8847. USE_NLS=$enableval, USE_NLS=yes)
  8848. AC_MSG_RESULT([$USE_NLS])
  8849. AC_SUBST([USE_NLS])
  8850. ])
  8851. dnl pkg.m4 - Macros to locate and utilise pkg-config. -*- Autoconf -*-
  8852. dnl serial 11 (pkg-config-0.29.1)
  8853. dnl
  8854. dnl Copyright © 2004 Scott James Remnant <scott@netsplit.com>.
  8855. dnl Copyright © 2012-2015 Dan Nicholson <dbn.lists@gmail.com>
  8856. dnl
  8857. dnl This program is free software; you can redistribute it and/or modify
  8858. dnl it under the terms of the GNU General Public License as published by
  8859. dnl the Free Software Foundation; either version 2 of the License, or
  8860. dnl (at your option) any later version.
  8861. dnl
  8862. dnl This program is distributed in the hope that it will be useful, but
  8863. dnl WITHOUT ANY WARRANTY; without even the implied warranty of
  8864. dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  8865. dnl General Public License for more details.
  8866. dnl
  8867. dnl You should have received a copy of the GNU General Public License
  8868. dnl along with this program; if not, write to the Free Software
  8869. dnl Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
  8870. dnl 02111-1307, USA.
  8871. dnl
  8872. dnl As a special exception to the GNU General Public License, if you
  8873. dnl distribute this file as part of a program that contains a
  8874. dnl configuration script generated by Autoconf, you may include it under
  8875. dnl the same distribution terms that you use for the rest of that
  8876. dnl program.
  8877. dnl PKG_PREREQ(MIN-VERSION)
  8878. dnl -----------------------
  8879. dnl Since: 0.29
  8880. dnl
  8881. dnl Verify that the version of the pkg-config macros are at least
  8882. dnl MIN-VERSION. Unlike PKG_PROG_PKG_CONFIG, which checks the user's
  8883. dnl installed version of pkg-config, this checks the developer's version
  8884. dnl of pkg.m4 when generating configure.
  8885. dnl
  8886. dnl To ensure that this macro is defined, also add:
  8887. dnl m4_ifndef([PKG_PREREQ],
  8888. dnl [m4_fatal([must install pkg-config 0.29 or later before running autoconf/autogen])])
  8889. dnl
  8890. dnl See the "Since" comment for each macro you use to see what version
  8891. dnl of the macros you require.
  8892. m4_defun([PKG_PREREQ],
  8893. [m4_define([PKG_MACROS_VERSION], [0.29.1])
  8894. m4_if(m4_version_compare(PKG_MACROS_VERSION, [$1]), -1,
  8895. [m4_fatal([pkg.m4 version $1 or higher is required but ]PKG_MACROS_VERSION[ found])])
  8896. ])dnl PKG_PREREQ
  8897. dnl PKG_PROG_PKG_CONFIG([MIN-VERSION])
  8898. dnl ----------------------------------
  8899. dnl Since: 0.16
  8900. dnl
  8901. dnl Search for the pkg-config tool and set the PKG_CONFIG variable to
  8902. dnl first found in the path. Checks that the version of pkg-config found
  8903. dnl is at least MIN-VERSION. If MIN-VERSION is not specified, 0.9.0 is
  8904. dnl used since that's the first version where most current features of
  8905. dnl pkg-config existed.
  8906. AC_DEFUN([PKG_PROG_PKG_CONFIG],
  8907. [m4_pattern_forbid([^_?PKG_[A-Z_]+$])
  8908. m4_pattern_allow([^PKG_CONFIG(_(PATH|LIBDIR|SYSROOT_DIR|ALLOW_SYSTEM_(CFLAGS|LIBS)))?$])
  8909. m4_pattern_allow([^PKG_CONFIG_(DISABLE_UNINSTALLED|TOP_BUILD_DIR|DEBUG_SPEW)$])
  8910. AC_ARG_VAR([PKG_CONFIG], [path to pkg-config utility])
  8911. AC_ARG_VAR([PKG_CONFIG_PATH], [directories to add to pkg-config's search path])
  8912. AC_ARG_VAR([PKG_CONFIG_LIBDIR], [path overriding pkg-config's built-in search path])
  8913. if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
  8914. AC_PATH_TOOL([PKG_CONFIG], [pkg-config])
  8915. fi
  8916. if test -n "$PKG_CONFIG"; then
  8917. _pkg_min_version=m4_default([$1], [0.9.0])
  8918. AC_MSG_CHECKING([pkg-config is at least version $_pkg_min_version])
  8919. if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
  8920. AC_MSG_RESULT([yes])
  8921. else
  8922. AC_MSG_RESULT([no])
  8923. PKG_CONFIG=""
  8924. fi
  8925. fi[]dnl
  8926. ])dnl PKG_PROG_PKG_CONFIG
  8927. dnl PKG_CHECK_EXISTS(MODULES, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
  8928. dnl -------------------------------------------------------------------
  8929. dnl Since: 0.18
  8930. dnl
  8931. dnl Check to see whether a particular set of modules exists. Similar to
  8932. dnl PKG_CHECK_MODULES(), but does not set variables or print errors.
  8933. dnl
  8934. dnl Please remember that m4 expands AC_REQUIRE([PKG_PROG_PKG_CONFIG])
  8935. dnl only at the first occurence in configure.ac, so if the first place
  8936. dnl it's called might be skipped (such as if it is within an "if", you
  8937. dnl have to call PKG_CHECK_EXISTS manually
  8938. AC_DEFUN([PKG_CHECK_EXISTS],
  8939. [AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
  8940. if test -n "$PKG_CONFIG" && \
  8941. AC_RUN_LOG([$PKG_CONFIG --exists --print-errors "$1"]); then
  8942. m4_default([$2], [:])
  8943. m4_ifvaln([$3], [else
  8944. $3])dnl
  8945. fi])
  8946. dnl _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES])
  8947. dnl ---------------------------------------------
  8948. dnl Internal wrapper calling pkg-config via PKG_CONFIG and setting
  8949. dnl pkg_failed based on the result.
  8950. m4_define([_PKG_CONFIG],
  8951. [if test -n "$$1"; then
  8952. pkg_cv_[]$1="$$1"
  8953. elif test -n "$PKG_CONFIG"; then
  8954. PKG_CHECK_EXISTS([$3],
  8955. [pkg_cv_[]$1=`$PKG_CONFIG --[]$2 "$3" 2>/dev/null`
  8956. test "x$?" != "x0" && pkg_failed=yes ],
  8957. [pkg_failed=yes])
  8958. else
  8959. pkg_failed=untried
  8960. fi[]dnl
  8961. ])dnl _PKG_CONFIG
  8962. dnl _PKG_SHORT_ERRORS_SUPPORTED
  8963. dnl ---------------------------
  8964. dnl Internal check to see if pkg-config supports short errors.
  8965. AC_DEFUN([_PKG_SHORT_ERRORS_SUPPORTED],
  8966. [AC_REQUIRE([PKG_PROG_PKG_CONFIG])
  8967. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  8968. _pkg_short_errors_supported=yes
  8969. else
  8970. _pkg_short_errors_supported=no
  8971. fi[]dnl
  8972. ])dnl _PKG_SHORT_ERRORS_SUPPORTED
  8973. dnl PKG_CHECK_MODULES(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND],
  8974. dnl [ACTION-IF-NOT-FOUND])
  8975. dnl --------------------------------------------------------------
  8976. dnl Since: 0.4.0
  8977. dnl
  8978. dnl Note that if there is a possibility the first call to
  8979. dnl PKG_CHECK_MODULES might not happen, you should be sure to include an
  8980. dnl explicit call to PKG_PROG_PKG_CONFIG in your configure.ac
  8981. AC_DEFUN([PKG_CHECK_MODULES],
  8982. [AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
  8983. AC_ARG_VAR([$1][_CFLAGS], [C compiler flags for $1, overriding pkg-config])dnl
  8984. AC_ARG_VAR([$1][_LIBS], [linker flags for $1, overriding pkg-config])dnl
  8985. pkg_failed=no
  8986. AC_MSG_CHECKING([for $1])
  8987. _PKG_CONFIG([$1][_CFLAGS], [cflags], [$2])
  8988. _PKG_CONFIG([$1][_LIBS], [libs], [$2])
  8989. m4_define([_PKG_TEXT], [Alternatively, you may set the environment variables $1[]_CFLAGS
  8990. and $1[]_LIBS to avoid the need to call pkg-config.
  8991. See the pkg-config man page for more details.])
  8992. if test $pkg_failed = yes; then
  8993. AC_MSG_RESULT([no])
  8994. _PKG_SHORT_ERRORS_SUPPORTED
  8995. if test $_pkg_short_errors_supported = yes; then
  8996. $1[]_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$2" 2>&1`
  8997. else
  8998. $1[]_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$2" 2>&1`
  8999. fi
  9000. # Put the nasty error message in config.log where it belongs
  9001. echo "$$1[]_PKG_ERRORS" >&AS_MESSAGE_LOG_FD
  9002. m4_default([$4], [AC_MSG_ERROR(
  9003. [Package requirements ($2) were not met:
  9004. $$1_PKG_ERRORS
  9005. Consider adjusting the PKG_CONFIG_PATH environment variable if you
  9006. installed software in a non-standard prefix.
  9007. _PKG_TEXT])[]dnl
  9008. ])
  9009. elif test $pkg_failed = untried; then
  9010. AC_MSG_RESULT([no])
  9011. m4_default([$4], [AC_MSG_FAILURE(
  9012. [The pkg-config script could not be found or is too old. Make sure it
  9013. is in your PATH or set the PKG_CONFIG environment variable to the full
  9014. path to pkg-config.
  9015. _PKG_TEXT
  9016. To get pkg-config, see <http://pkg-config.freedesktop.org/>.])[]dnl
  9017. ])
  9018. else
  9019. $1[]_CFLAGS=$pkg_cv_[]$1[]_CFLAGS
  9020. $1[]_LIBS=$pkg_cv_[]$1[]_LIBS
  9021. AC_MSG_RESULT([yes])
  9022. $3
  9023. fi[]dnl
  9024. ])dnl PKG_CHECK_MODULES
  9025. dnl PKG_CHECK_MODULES_STATIC(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND],
  9026. dnl [ACTION-IF-NOT-FOUND])
  9027. dnl ---------------------------------------------------------------------
  9028. dnl Since: 0.29
  9029. dnl
  9030. dnl Checks for existence of MODULES and gathers its build flags with
  9031. dnl static libraries enabled. Sets VARIABLE-PREFIX_CFLAGS from --cflags
  9032. dnl and VARIABLE-PREFIX_LIBS from --libs.
  9033. dnl
  9034. dnl Note that if there is a possibility the first call to
  9035. dnl PKG_CHECK_MODULES_STATIC might not happen, you should be sure to
  9036. dnl include an explicit call to PKG_PROG_PKG_CONFIG in your
  9037. dnl configure.ac.
  9038. AC_DEFUN([PKG_CHECK_MODULES_STATIC],
  9039. [AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
  9040. _save_PKG_CONFIG=$PKG_CONFIG
  9041. PKG_CONFIG="$PKG_CONFIG --static"
  9042. PKG_CHECK_MODULES($@)
  9043. PKG_CONFIG=$_save_PKG_CONFIG[]dnl
  9044. ])dnl PKG_CHECK_MODULES_STATIC
  9045. dnl PKG_INSTALLDIR([DIRECTORY])
  9046. dnl -------------------------
  9047. dnl Since: 0.27
  9048. dnl
  9049. dnl Substitutes the variable pkgconfigdir as the location where a module
  9050. dnl should install pkg-config .pc files. By default the directory is
  9051. dnl $libdir/pkgconfig, but the default can be changed by passing
  9052. dnl DIRECTORY. The user can override through the --with-pkgconfigdir
  9053. dnl parameter.
  9054. AC_DEFUN([PKG_INSTALLDIR],
  9055. [m4_pushdef([pkg_default], [m4_default([$1], ['${libdir}/pkgconfig'])])
  9056. m4_pushdef([pkg_description],
  9057. [pkg-config installation directory @<:@]pkg_default[@:>@])
  9058. AC_ARG_WITH([pkgconfigdir],
  9059. [AS_HELP_STRING([--with-pkgconfigdir], pkg_description)],,
  9060. [with_pkgconfigdir=]pkg_default)
  9061. AC_SUBST([pkgconfigdir], [$with_pkgconfigdir])
  9062. m4_popdef([pkg_default])
  9063. m4_popdef([pkg_description])
  9064. ])dnl PKG_INSTALLDIR
  9065. dnl PKG_NOARCH_INSTALLDIR([DIRECTORY])
  9066. dnl --------------------------------
  9067. dnl Since: 0.27
  9068. dnl
  9069. dnl Substitutes the variable noarch_pkgconfigdir as the location where a
  9070. dnl module should install arch-independent pkg-config .pc files. By
  9071. dnl default the directory is $datadir/pkgconfig, but the default can be
  9072. dnl changed by passing DIRECTORY. The user can override through the
  9073. dnl --with-noarch-pkgconfigdir parameter.
  9074. AC_DEFUN([PKG_NOARCH_INSTALLDIR],
  9075. [m4_pushdef([pkg_default], [m4_default([$1], ['${datadir}/pkgconfig'])])
  9076. m4_pushdef([pkg_description],
  9077. [pkg-config arch-independent installation directory @<:@]pkg_default[@:>@])
  9078. AC_ARG_WITH([noarch-pkgconfigdir],
  9079. [AS_HELP_STRING([--with-noarch-pkgconfigdir], pkg_description)],,
  9080. [with_noarch_pkgconfigdir=]pkg_default)
  9081. AC_SUBST([noarch_pkgconfigdir], [$with_noarch_pkgconfigdir])
  9082. m4_popdef([pkg_default])
  9083. m4_popdef([pkg_description])
  9084. ])dnl PKG_NOARCH_INSTALLDIR
  9085. dnl PKG_CHECK_VAR(VARIABLE, MODULE, CONFIG-VARIABLE,
  9086. dnl [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
  9087. dnl -------------------------------------------
  9088. dnl Since: 0.28
  9089. dnl
  9090. dnl Retrieves the value of the pkg-config variable for the given module.
  9091. AC_DEFUN([PKG_CHECK_VAR],
  9092. [AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
  9093. AC_ARG_VAR([$1], [value of $3 for $2, overriding pkg-config])dnl
  9094. _PKG_CONFIG([$1], [variable="][$3]["], [$2])
  9095. AS_VAR_COPY([$1], [pkg_cv_][$1])
  9096. AS_VAR_IF([$1], [""], [$5], [$4])dnl
  9097. ])dnl PKG_CHECK_VAR
  9098. # Copyright (C) 2002-2014 Free Software Foundation, Inc.
  9099. #
  9100. # This file is free software; the Free Software Foundation
  9101. # gives unlimited permission to copy and/or distribute it,
  9102. # with or without modifications, as long as this notice is preserved.
  9103. # AM_AUTOMAKE_VERSION(VERSION)
  9104. # ----------------------------
  9105. # Automake X.Y traces this macro to ensure aclocal.m4 has been
  9106. # generated from the m4 files accompanying Automake X.Y.
  9107. # (This private macro should not be called outside this file.)
  9108. AC_DEFUN([AM_AUTOMAKE_VERSION],
  9109. [am__api_version='1.15'
  9110. dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
  9111. dnl require some minimum version. Point them to the right macro.
  9112. m4_if([$1], [1.15], [],
  9113. [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
  9114. ])
  9115. # _AM_AUTOCONF_VERSION(VERSION)
  9116. # -----------------------------
  9117. # aclocal traces this macro to find the Autoconf version.
  9118. # This is a private macro too. Using m4_define simplifies
  9119. # the logic in aclocal, which can simply ignore this definition.
  9120. m4_define([_AM_AUTOCONF_VERSION], [])
  9121. # AM_SET_CURRENT_AUTOMAKE_VERSION
  9122. # -------------------------------
  9123. # Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
  9124. # This function is AC_REQUIREd by AM_INIT_AUTOMAKE.
  9125. AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
  9126. [AM_AUTOMAKE_VERSION([1.15])dnl
  9127. m4_ifndef([AC_AUTOCONF_VERSION],
  9128. [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
  9129. _AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))])
  9130. # AM_AUX_DIR_EXPAND -*- Autoconf -*-
  9131. # Copyright (C) 2001-2014 Free Software Foundation, Inc.
  9132. #
  9133. # This file is free software; the Free Software Foundation
  9134. # gives unlimited permission to copy and/or distribute it,
  9135. # with or without modifications, as long as this notice is preserved.
  9136. # For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
  9137. # $ac_aux_dir to '$srcdir/foo'. In other projects, it is set to
  9138. # '$srcdir', '$srcdir/..', or '$srcdir/../..'.
  9139. #
  9140. # Of course, Automake must honor this variable whenever it calls a
  9141. # tool from the auxiliary directory. The problem is that $srcdir (and
  9142. # therefore $ac_aux_dir as well) can be either absolute or relative,
  9143. # depending on how configure is run. This is pretty annoying, since
  9144. # it makes $ac_aux_dir quite unusable in subdirectories: in the top
  9145. # source directory, any form will work fine, but in subdirectories a
  9146. # relative path needs to be adjusted first.
  9147. #
  9148. # $ac_aux_dir/missing
  9149. # fails when called from a subdirectory if $ac_aux_dir is relative
  9150. # $top_srcdir/$ac_aux_dir/missing
  9151. # fails if $ac_aux_dir is absolute,
  9152. # fails when called from a subdirectory in a VPATH build with
  9153. # a relative $ac_aux_dir
  9154. #
  9155. # The reason of the latter failure is that $top_srcdir and $ac_aux_dir
  9156. # are both prefixed by $srcdir. In an in-source build this is usually
  9157. # harmless because $srcdir is '.', but things will broke when you
  9158. # start a VPATH build or use an absolute $srcdir.
  9159. #
  9160. # So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
  9161. # iff we strip the leading $srcdir from $ac_aux_dir. That would be:
  9162. # am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"`
  9163. # and then we would define $MISSING as
  9164. # MISSING="\${SHELL} $am_aux_dir/missing"
  9165. # This will work as long as MISSING is not called from configure, because
  9166. # unfortunately $(top_srcdir) has no meaning in configure.
  9167. # However there are other variables, like CC, which are often used in
  9168. # configure, and could therefore not use this "fixed" $ac_aux_dir.
  9169. #
  9170. # Another solution, used here, is to always expand $ac_aux_dir to an
  9171. # absolute PATH. The drawback is that using absolute paths prevent a
  9172. # configured tree to be moved without reconfiguration.
  9173. AC_DEFUN([AM_AUX_DIR_EXPAND],
  9174. [AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT])dnl
  9175. # Expand $ac_aux_dir to an absolute path.
  9176. am_aux_dir=`cd "$ac_aux_dir" && pwd`
  9177. ])
  9178. # AM_CONDITIONAL -*- Autoconf -*-
  9179. # Copyright (C) 1997-2014 Free Software Foundation, Inc.
  9180. #
  9181. # This file is free software; the Free Software Foundation
  9182. # gives unlimited permission to copy and/or distribute it,
  9183. # with or without modifications, as long as this notice is preserved.
  9184. # AM_CONDITIONAL(NAME, SHELL-CONDITION)
  9185. # -------------------------------------
  9186. # Define a conditional.
  9187. AC_DEFUN([AM_CONDITIONAL],
  9188. [AC_PREREQ([2.52])dnl
  9189. m4_if([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])],
  9190. [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
  9191. AC_SUBST([$1_TRUE])dnl
  9192. AC_SUBST([$1_FALSE])dnl
  9193. _AM_SUBST_NOTMAKE([$1_TRUE])dnl
  9194. _AM_SUBST_NOTMAKE([$1_FALSE])dnl
  9195. m4_define([_AM_COND_VALUE_$1], [$2])dnl
  9196. if $2; then
  9197. $1_TRUE=
  9198. $1_FALSE='#'
  9199. else
  9200. $1_TRUE='#'
  9201. $1_FALSE=
  9202. fi
  9203. AC_CONFIG_COMMANDS_PRE(
  9204. [if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
  9205. AC_MSG_ERROR([[conditional "$1" was never defined.
  9206. Usually this means the macro was only invoked conditionally.]])
  9207. fi])])
  9208. # Copyright (C) 1999-2014 Free Software Foundation, Inc.
  9209. #
  9210. # This file is free software; the Free Software Foundation
  9211. # gives unlimited permission to copy and/or distribute it,
  9212. # with or without modifications, as long as this notice is preserved.
  9213. # There are a few dirty hacks below to avoid letting 'AC_PROG_CC' be
  9214. # written in clear, in which case automake, when reading aclocal.m4,
  9215. # will think it sees a *use*, and therefore will trigger all it's
  9216. # C support machinery. Also note that it means that autoscan, seeing
  9217. # CC etc. in the Makefile, will ask for an AC_PROG_CC use...
  9218. # _AM_DEPENDENCIES(NAME)
  9219. # ----------------------
  9220. # See how the compiler implements dependency checking.
  9221. # NAME is "CC", "CXX", "OBJC", "OBJCXX", "UPC", or "GJC".
  9222. # We try a few techniques and use that to set a single cache variable.
  9223. #
  9224. # We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was
  9225. # modified to invoke _AM_DEPENDENCIES(CC); we would have a circular
  9226. # dependency, and given that the user is not expected to run this macro,
  9227. # just rely on AC_PROG_CC.
  9228. AC_DEFUN([_AM_DEPENDENCIES],
  9229. [AC_REQUIRE([AM_SET_DEPDIR])dnl
  9230. AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl
  9231. AC_REQUIRE([AM_MAKE_INCLUDE])dnl
  9232. AC_REQUIRE([AM_DEP_TRACK])dnl
  9233. m4_if([$1], [CC], [depcc="$CC" am_compiler_list=],
  9234. [$1], [CXX], [depcc="$CXX" am_compiler_list=],
  9235. [$1], [OBJC], [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
  9236. [$1], [OBJCXX], [depcc="$OBJCXX" am_compiler_list='gcc3 gcc'],
  9237. [$1], [UPC], [depcc="$UPC" am_compiler_list=],
  9238. [$1], [GCJ], [depcc="$GCJ" am_compiler_list='gcc3 gcc'],
  9239. [depcc="$$1" am_compiler_list=])
  9240. AC_CACHE_CHECK([dependency style of $depcc],
  9241. [am_cv_$1_dependencies_compiler_type],
  9242. [if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  9243. # We make a subdir and do the tests there. Otherwise we can end up
  9244. # making bogus files that we don't know about and never remove. For
  9245. # instance it was reported that on HP-UX the gcc test will end up
  9246. # making a dummy file named 'D' -- because '-MD' means "put the output
  9247. # in D".
  9248. rm -rf conftest.dir
  9249. mkdir conftest.dir
  9250. # Copy depcomp to subdir because otherwise we won't find it if we're
  9251. # using a relative directory.
  9252. cp "$am_depcomp" conftest.dir
  9253. cd conftest.dir
  9254. # We will build objects and dependencies in a subdirectory because
  9255. # it helps to detect inapplicable dependency modes. For instance
  9256. # both Tru64's cc and ICC support -MD to output dependencies as a
  9257. # side effect of compilation, but ICC will put the dependencies in
  9258. # the current directory while Tru64 will put them in the object
  9259. # directory.
  9260. mkdir sub
  9261. am_cv_$1_dependencies_compiler_type=none
  9262. if test "$am_compiler_list" = ""; then
  9263. am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
  9264. fi
  9265. am__universal=false
  9266. m4_case([$1], [CC],
  9267. [case " $depcc " in #(
  9268. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  9269. esac],
  9270. [CXX],
  9271. [case " $depcc " in #(
  9272. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  9273. esac])
  9274. for depmode in $am_compiler_list; do
  9275. # Setup a source with many dependencies, because some compilers
  9276. # like to wrap large dependency lists on column 80 (with \), and
  9277. # we should not choose a depcomp mode which is confused by this.
  9278. #
  9279. # We need to recreate these files for each test, as the compiler may
  9280. # overwrite some of them when testing with obscure command lines.
  9281. # This happens at least with the AIX C compiler.
  9282. : > sub/conftest.c
  9283. for i in 1 2 3 4 5 6; do
  9284. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  9285. # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
  9286. # Solaris 10 /bin/sh.
  9287. echo '/* dummy */' > sub/conftst$i.h
  9288. done
  9289. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  9290. # We check with '-c' and '-o' for the sake of the "dashmstdout"
  9291. # mode. It turns out that the SunPro C++ compiler does not properly
  9292. # handle '-M -o', and we need to detect this. Also, some Intel
  9293. # versions had trouble with output in subdirs.
  9294. am__obj=sub/conftest.${OBJEXT-o}
  9295. am__minus_obj="-o $am__obj"
  9296. case $depmode in
  9297. gcc)
  9298. # This depmode causes a compiler race in universal mode.
  9299. test "$am__universal" = false || continue
  9300. ;;
  9301. nosideeffect)
  9302. # After this tag, mechanisms are not by side-effect, so they'll
  9303. # only be used when explicitly requested.
  9304. if test "x$enable_dependency_tracking" = xyes; then
  9305. continue
  9306. else
  9307. break
  9308. fi
  9309. ;;
  9310. msvc7 | msvc7msys | msvisualcpp | msvcmsys)
  9311. # This compiler won't grok '-c -o', but also, the minuso test has
  9312. # not run yet. These depmodes are late enough in the game, and
  9313. # so weak that their functioning should not be impacted.
  9314. am__obj=conftest.${OBJEXT-o}
  9315. am__minus_obj=
  9316. ;;
  9317. none) break ;;
  9318. esac
  9319. if depmode=$depmode \
  9320. source=sub/conftest.c object=$am__obj \
  9321. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  9322. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  9323. >/dev/null 2>conftest.err &&
  9324. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  9325. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  9326. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  9327. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  9328. # icc doesn't choke on unknown options, it will just issue warnings
  9329. # or remarks (even with -Werror). So we grep stderr for any message
  9330. # that says an option was ignored or not supported.
  9331. # When given -MP, icc 7.0 and 7.1 complain thusly:
  9332. # icc: Command line warning: ignoring option '-M'; no argument required
  9333. # The diagnosis changed in icc 8.0:
  9334. # icc: Command line remark: option '-MP' not supported
  9335. if (grep 'ignoring option' conftest.err ||
  9336. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  9337. am_cv_$1_dependencies_compiler_type=$depmode
  9338. break
  9339. fi
  9340. fi
  9341. done
  9342. cd ..
  9343. rm -rf conftest.dir
  9344. else
  9345. am_cv_$1_dependencies_compiler_type=none
  9346. fi
  9347. ])
  9348. AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type])
  9349. AM_CONDITIONAL([am__fastdep$1], [
  9350. test "x$enable_dependency_tracking" != xno \
  9351. && test "$am_cv_$1_dependencies_compiler_type" = gcc3])
  9352. ])
  9353. # AM_SET_DEPDIR
  9354. # -------------
  9355. # Choose a directory name for dependency files.
  9356. # This macro is AC_REQUIREd in _AM_DEPENDENCIES.
  9357. AC_DEFUN([AM_SET_DEPDIR],
  9358. [AC_REQUIRE([AM_SET_LEADING_DOT])dnl
  9359. AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl
  9360. ])
  9361. # AM_DEP_TRACK
  9362. # ------------
  9363. AC_DEFUN([AM_DEP_TRACK],
  9364. [AC_ARG_ENABLE([dependency-tracking], [dnl
  9365. AS_HELP_STRING(
  9366. [--enable-dependency-tracking],
  9367. [do not reject slow dependency extractors])
  9368. AS_HELP_STRING(
  9369. [--disable-dependency-tracking],
  9370. [speeds up one-time build])])
  9371. if test "x$enable_dependency_tracking" != xno; then
  9372. am_depcomp="$ac_aux_dir/depcomp"
  9373. AMDEPBACKSLASH='\'
  9374. am__nodep='_no'
  9375. fi
  9376. AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
  9377. AC_SUBST([AMDEPBACKSLASH])dnl
  9378. _AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl
  9379. AC_SUBST([am__nodep])dnl
  9380. _AM_SUBST_NOTMAKE([am__nodep])dnl
  9381. ])
  9382. # Generate code to set up dependency tracking. -*- Autoconf -*-
  9383. # Copyright (C) 1999-2014 Free Software Foundation, Inc.
  9384. #
  9385. # This file is free software; the Free Software Foundation
  9386. # gives unlimited permission to copy and/or distribute it,
  9387. # with or without modifications, as long as this notice is preserved.
  9388. # _AM_OUTPUT_DEPENDENCY_COMMANDS
  9389. # ------------------------------
  9390. AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
  9391. [{
  9392. # Older Autoconf quotes --file arguments for eval, but not when files
  9393. # are listed without --file. Let's play safe and only enable the eval
  9394. # if we detect the quoting.
  9395. case $CONFIG_FILES in
  9396. *\'*) eval set x "$CONFIG_FILES" ;;
  9397. *) set x $CONFIG_FILES ;;
  9398. esac
  9399. shift
  9400. for mf
  9401. do
  9402. # Strip MF so we end up with the name of the file.
  9403. mf=`echo "$mf" | sed -e 's/:.*$//'`
  9404. # Check whether this is an Automake generated Makefile or not.
  9405. # We used to match only the files named 'Makefile.in', but
  9406. # some people rename them; so instead we look at the file content.
  9407. # Grep'ing the first line is not enough: some people post-process
  9408. # each Makefile.in and add a new line on top of each file to say so.
  9409. # Grep'ing the whole file is not good either: AIX grep has a line
  9410. # limit of 2048, but all sed's we know have understand at least 4000.
  9411. if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
  9412. dirpart=`AS_DIRNAME("$mf")`
  9413. else
  9414. continue
  9415. fi
  9416. # Extract the definition of DEPDIR, am__include, and am__quote
  9417. # from the Makefile without running 'make'.
  9418. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  9419. test -z "$DEPDIR" && continue
  9420. am__include=`sed -n 's/^am__include = //p' < "$mf"`
  9421. test -z "$am__include" && continue
  9422. am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  9423. # Find all dependency output files, they are included files with
  9424. # $(DEPDIR) in their names. We invoke sed twice because it is the
  9425. # simplest approach to changing $(DEPDIR) to its actual value in the
  9426. # expansion.
  9427. for file in `sed -n "
  9428. s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  9429. sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
  9430. # Make sure the directory exists.
  9431. test -f "$dirpart/$file" && continue
  9432. fdir=`AS_DIRNAME(["$file"])`
  9433. AS_MKDIR_P([$dirpart/$fdir])
  9434. # echo "creating $dirpart/$file"
  9435. echo '# dummy' > "$dirpart/$file"
  9436. done
  9437. done
  9438. }
  9439. ])# _AM_OUTPUT_DEPENDENCY_COMMANDS
  9440. # AM_OUTPUT_DEPENDENCY_COMMANDS
  9441. # -----------------------------
  9442. # This macro should only be invoked once -- use via AC_REQUIRE.
  9443. #
  9444. # This code is only required when automatic dependency tracking
  9445. # is enabled. FIXME. This creates each '.P' file that we will
  9446. # need in order to bootstrap the dependency handling code.
  9447. AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
  9448. [AC_CONFIG_COMMANDS([depfiles],
  9449. [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS],
  9450. [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"])
  9451. ])
  9452. # Do all the work for Automake. -*- Autoconf -*-
  9453. # Copyright (C) 1996-2014 Free Software Foundation, Inc.
  9454. #
  9455. # This file is free software; the Free Software Foundation
  9456. # gives unlimited permission to copy and/or distribute it,
  9457. # with or without modifications, as long as this notice is preserved.
  9458. # This macro actually does too much. Some checks are only needed if
  9459. # your package does certain things. But this isn't really a big deal.
  9460. dnl Redefine AC_PROG_CC to automatically invoke _AM_PROG_CC_C_O.
  9461. m4_define([AC_PROG_CC],
  9462. m4_defn([AC_PROG_CC])
  9463. [_AM_PROG_CC_C_O
  9464. ])
  9465. # AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
  9466. # AM_INIT_AUTOMAKE([OPTIONS])
  9467. # -----------------------------------------------
  9468. # The call with PACKAGE and VERSION arguments is the old style
  9469. # call (pre autoconf-2.50), which is being phased out. PACKAGE
  9470. # and VERSION should now be passed to AC_INIT and removed from
  9471. # the call to AM_INIT_AUTOMAKE.
  9472. # We support both call styles for the transition. After
  9473. # the next Automake release, Autoconf can make the AC_INIT
  9474. # arguments mandatory, and then we can depend on a new Autoconf
  9475. # release and drop the old call support.
  9476. AC_DEFUN([AM_INIT_AUTOMAKE],
  9477. [AC_PREREQ([2.65])dnl
  9478. dnl Autoconf wants to disallow AM_ names. We explicitly allow
  9479. dnl the ones we care about.
  9480. m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
  9481. AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
  9482. AC_REQUIRE([AC_PROG_INSTALL])dnl
  9483. if test "`cd $srcdir && pwd`" != "`pwd`"; then
  9484. # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  9485. # is not polluted with repeated "-I."
  9486. AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl
  9487. # test to see if srcdir already configured
  9488. if test -f $srcdir/config.status; then
  9489. AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
  9490. fi
  9491. fi
  9492. # test whether we have cygpath
  9493. if test -z "$CYGPATH_W"; then
  9494. if (cygpath --version) >/dev/null 2>/dev/null; then
  9495. CYGPATH_W='cygpath -w'
  9496. else
  9497. CYGPATH_W=echo
  9498. fi
  9499. fi
  9500. AC_SUBST([CYGPATH_W])
  9501. # Define the identity of the package.
  9502. dnl Distinguish between old-style and new-style calls.
  9503. m4_ifval([$2],
  9504. [AC_DIAGNOSE([obsolete],
  9505. [$0: two- and three-arguments forms are deprecated.])
  9506. m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
  9507. AC_SUBST([PACKAGE], [$1])dnl
  9508. AC_SUBST([VERSION], [$2])],
  9509. [_AM_SET_OPTIONS([$1])dnl
  9510. dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT.
  9511. m4_if(
  9512. m4_ifdef([AC_PACKAGE_NAME], [ok]):m4_ifdef([AC_PACKAGE_VERSION], [ok]),
  9513. [ok:ok],,
  9514. [m4_fatal([AC_INIT should be called with package and version arguments])])dnl
  9515. AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
  9516. AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
  9517. _AM_IF_OPTION([no-define],,
  9518. [AC_DEFINE_UNQUOTED([PACKAGE], ["$PACKAGE"], [Name of package])
  9519. AC_DEFINE_UNQUOTED([VERSION], ["$VERSION"], [Version number of package])])dnl
  9520. # Some tools Automake needs.
  9521. AC_REQUIRE([AM_SANITY_CHECK])dnl
  9522. AC_REQUIRE([AC_ARG_PROGRAM])dnl
  9523. AM_MISSING_PROG([ACLOCAL], [aclocal-${am__api_version}])
  9524. AM_MISSING_PROG([AUTOCONF], [autoconf])
  9525. AM_MISSING_PROG([AUTOMAKE], [automake-${am__api_version}])
  9526. AM_MISSING_PROG([AUTOHEADER], [autoheader])
  9527. AM_MISSING_PROG([MAKEINFO], [makeinfo])
  9528. AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
  9529. AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl
  9530. AC_REQUIRE([AC_PROG_MKDIR_P])dnl
  9531. # For better backward compatibility. To be removed once Automake 1.9.x
  9532. # dies out for good. For more background, see:
  9533. # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
  9534. # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
  9535. AC_SUBST([mkdir_p], ['$(MKDIR_P)'])
  9536. # We need awk for the "check" target (and possibly the TAP driver). The
  9537. # system "awk" is bad on some platforms.
  9538. AC_REQUIRE([AC_PROG_AWK])dnl
  9539. AC_REQUIRE([AC_PROG_MAKE_SET])dnl
  9540. AC_REQUIRE([AM_SET_LEADING_DOT])dnl
  9541. _AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])],
  9542. [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
  9543. [_AM_PROG_TAR([v7])])])
  9544. _AM_IF_OPTION([no-dependencies],,
  9545. [AC_PROVIDE_IFELSE([AC_PROG_CC],
  9546. [_AM_DEPENDENCIES([CC])],
  9547. [m4_define([AC_PROG_CC],
  9548. m4_defn([AC_PROG_CC])[_AM_DEPENDENCIES([CC])])])dnl
  9549. AC_PROVIDE_IFELSE([AC_PROG_CXX],
  9550. [_AM_DEPENDENCIES([CXX])],
  9551. [m4_define([AC_PROG_CXX],
  9552. m4_defn([AC_PROG_CXX])[_AM_DEPENDENCIES([CXX])])])dnl
  9553. AC_PROVIDE_IFELSE([AC_PROG_OBJC],
  9554. [_AM_DEPENDENCIES([OBJC])],
  9555. [m4_define([AC_PROG_OBJC],
  9556. m4_defn([AC_PROG_OBJC])[_AM_DEPENDENCIES([OBJC])])])dnl
  9557. AC_PROVIDE_IFELSE([AC_PROG_OBJCXX],
  9558. [_AM_DEPENDENCIES([OBJCXX])],
  9559. [m4_define([AC_PROG_OBJCXX],
  9560. m4_defn([AC_PROG_OBJCXX])[_AM_DEPENDENCIES([OBJCXX])])])dnl
  9561. ])
  9562. AC_REQUIRE([AM_SILENT_RULES])dnl
  9563. dnl The testsuite driver may need to know about EXEEXT, so add the
  9564. dnl 'am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen. This
  9565. dnl macro is hooked onto _AC_COMPILER_EXEEXT early, see below.
  9566. AC_CONFIG_COMMANDS_PRE(dnl
  9567. [m4_provide_if([_AM_COMPILER_EXEEXT],
  9568. [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl
  9569. # POSIX will say in a future version that running "rm -f" with no argument
  9570. # is OK; and we want to be able to make that assumption in our Makefile
  9571. # recipes. So use an aggressive probe to check that the usage we want is
  9572. # actually supported "in the wild" to an acceptable degree.
  9573. # See automake bug#10828.
  9574. # To make any issue more visible, cause the running configure to be aborted
  9575. # by default if the 'rm' program in use doesn't match our expectations; the
  9576. # user can still override this though.
  9577. if rm -f && rm -fr && rm -rf; then : OK; else
  9578. cat >&2 <<'END'
  9579. Oops!
  9580. Your 'rm' program seems unable to run without file operands specified
  9581. on the command line, even when the '-f' option is present. This is contrary
  9582. to the behaviour of most rm programs out there, and not conforming with
  9583. the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
  9584. Please tell bug-automake@gnu.org about your system, including the value
  9585. of your $PATH and any error possibly output before this message. This
  9586. can help us improve future automake versions.
  9587. END
  9588. if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
  9589. echo 'Configuration will proceed anyway, since you have set the' >&2
  9590. echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
  9591. echo >&2
  9592. else
  9593. cat >&2 <<'END'
  9594. Aborting the configuration process, to ensure you take notice of the issue.
  9595. You can download and install GNU coreutils to get an 'rm' implementation
  9596. that behaves properly: <http://www.gnu.org/software/coreutils/>.
  9597. If you want to complete the configuration process using your problematic
  9598. 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
  9599. to "yes", and re-run configure.
  9600. END
  9601. AC_MSG_ERROR([Your 'rm' program is bad, sorry.])
  9602. fi
  9603. fi
  9604. dnl The trailing newline in this macro's definition is deliberate, for
  9605. dnl backward compatibility and to allow trailing 'dnl'-style comments
  9606. dnl after the AM_INIT_AUTOMAKE invocation. See automake bug#16841.
  9607. ])
  9608. dnl Hook into '_AC_COMPILER_EXEEXT' early to learn its expansion. Do not
  9609. dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further
  9610. dnl mangled by Autoconf and run in a shell conditional statement.
  9611. m4_define([_AC_COMPILER_EXEEXT],
  9612. m4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])])
  9613. # When config.status generates a header, we must update the stamp-h file.
  9614. # This file resides in the same directory as the config header
  9615. # that is generated. The stamp files are numbered to have different names.
  9616. # Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the
  9617. # loop where config.status creates the headers, so we can generate
  9618. # our stamp files there.
  9619. AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
  9620. [# Compute $1's index in $config_headers.
  9621. _am_arg=$1
  9622. _am_stamp_count=1
  9623. for _am_header in $config_headers :; do
  9624. case $_am_header in
  9625. $_am_arg | $_am_arg:* )
  9626. break ;;
  9627. * )
  9628. _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  9629. esac
  9630. done
  9631. echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count])
  9632. # Copyright (C) 2001-2014 Free Software Foundation, Inc.
  9633. #
  9634. # This file is free software; the Free Software Foundation
  9635. # gives unlimited permission to copy and/or distribute it,
  9636. # with or without modifications, as long as this notice is preserved.
  9637. # AM_PROG_INSTALL_SH
  9638. # ------------------
  9639. # Define $install_sh.
  9640. AC_DEFUN([AM_PROG_INSTALL_SH],
  9641. [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
  9642. if test x"${install_sh+set}" != xset; then
  9643. case $am_aux_dir in
  9644. *\ * | *\ *)
  9645. install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
  9646. *)
  9647. install_sh="\${SHELL} $am_aux_dir/install-sh"
  9648. esac
  9649. fi
  9650. AC_SUBST([install_sh])])
  9651. # Copyright (C) 2003-2014 Free Software Foundation, Inc.
  9652. #
  9653. # This file is free software; the Free Software Foundation
  9654. # gives unlimited permission to copy and/or distribute it,
  9655. # with or without modifications, as long as this notice is preserved.
  9656. # Check whether the underlying file-system supports filenames
  9657. # with a leading dot. For instance MS-DOS doesn't.
  9658. AC_DEFUN([AM_SET_LEADING_DOT],
  9659. [rm -rf .tst 2>/dev/null
  9660. mkdir .tst 2>/dev/null
  9661. if test -d .tst; then
  9662. am__leading_dot=.
  9663. else
  9664. am__leading_dot=_
  9665. fi
  9666. rmdir .tst 2>/dev/null
  9667. AC_SUBST([am__leading_dot])])
  9668. # Check to see how 'make' treats includes. -*- Autoconf -*-
  9669. # Copyright (C) 2001-2014 Free Software Foundation, Inc.
  9670. #
  9671. # This file is free software; the Free Software Foundation
  9672. # gives unlimited permission to copy and/or distribute it,
  9673. # with or without modifications, as long as this notice is preserved.
  9674. # AM_MAKE_INCLUDE()
  9675. # -----------------
  9676. # Check to see how make treats includes.
  9677. AC_DEFUN([AM_MAKE_INCLUDE],
  9678. [am_make=${MAKE-make}
  9679. cat > confinc << 'END'
  9680. am__doit:
  9681. @echo this is the am__doit target
  9682. .PHONY: am__doit
  9683. END
  9684. # If we don't find an include directive, just comment out the code.
  9685. AC_MSG_CHECKING([for style of include used by $am_make])
  9686. am__include="#"
  9687. am__quote=
  9688. _am_result=none
  9689. # First try GNU make style include.
  9690. echo "include confinc" > confmf
  9691. # Ignore all kinds of additional output from 'make'.
  9692. case `$am_make -s -f confmf 2> /dev/null` in #(
  9693. *the\ am__doit\ target*)
  9694. am__include=include
  9695. am__quote=
  9696. _am_result=GNU
  9697. ;;
  9698. esac
  9699. # Now try BSD make style include.
  9700. if test "$am__include" = "#"; then
  9701. echo '.include "confinc"' > confmf
  9702. case `$am_make -s -f confmf 2> /dev/null` in #(
  9703. *the\ am__doit\ target*)
  9704. am__include=.include
  9705. am__quote="\""
  9706. _am_result=BSD
  9707. ;;
  9708. esac
  9709. fi
  9710. AC_SUBST([am__include])
  9711. AC_SUBST([am__quote])
  9712. AC_MSG_RESULT([$_am_result])
  9713. rm -f confinc confmf
  9714. ])
  9715. # Fake the existence of programs that GNU maintainers use. -*- Autoconf -*-
  9716. # Copyright (C) 1997-2014 Free Software Foundation, Inc.
  9717. #
  9718. # This file is free software; the Free Software Foundation
  9719. # gives unlimited permission to copy and/or distribute it,
  9720. # with or without modifications, as long as this notice is preserved.
  9721. # AM_MISSING_PROG(NAME, PROGRAM)
  9722. # ------------------------------
  9723. AC_DEFUN([AM_MISSING_PROG],
  9724. [AC_REQUIRE([AM_MISSING_HAS_RUN])
  9725. $1=${$1-"${am_missing_run}$2"}
  9726. AC_SUBST($1)])
  9727. # AM_MISSING_HAS_RUN
  9728. # ------------------
  9729. # Define MISSING if not defined so far and test if it is modern enough.
  9730. # If it is, set am_missing_run to use it, otherwise, to nothing.
  9731. AC_DEFUN([AM_MISSING_HAS_RUN],
  9732. [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
  9733. AC_REQUIRE_AUX_FILE([missing])dnl
  9734. if test x"${MISSING+set}" != xset; then
  9735. case $am_aux_dir in
  9736. *\ * | *\ *)
  9737. MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
  9738. *)
  9739. MISSING="\${SHELL} $am_aux_dir/missing" ;;
  9740. esac
  9741. fi
  9742. # Use eval to expand $SHELL
  9743. if eval "$MISSING --is-lightweight"; then
  9744. am_missing_run="$MISSING "
  9745. else
  9746. am_missing_run=
  9747. AC_MSG_WARN(['missing' script is too old or missing])
  9748. fi
  9749. ])
  9750. # Helper functions for option handling. -*- Autoconf -*-
  9751. # Copyright (C) 2001-2014 Free Software Foundation, Inc.
  9752. #
  9753. # This file is free software; the Free Software Foundation
  9754. # gives unlimited permission to copy and/or distribute it,
  9755. # with or without modifications, as long as this notice is preserved.
  9756. # _AM_MANGLE_OPTION(NAME)
  9757. # -----------------------
  9758. AC_DEFUN([_AM_MANGLE_OPTION],
  9759. [[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
  9760. # _AM_SET_OPTION(NAME)
  9761. # --------------------
  9762. # Set option NAME. Presently that only means defining a flag for this option.
  9763. AC_DEFUN([_AM_SET_OPTION],
  9764. [m4_define(_AM_MANGLE_OPTION([$1]), [1])])
  9765. # _AM_SET_OPTIONS(OPTIONS)
  9766. # ------------------------
  9767. # OPTIONS is a space-separated list of Automake options.
  9768. AC_DEFUN([_AM_SET_OPTIONS],
  9769. [m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
  9770. # _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
  9771. # -------------------------------------------
  9772. # Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
  9773. AC_DEFUN([_AM_IF_OPTION],
  9774. [m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
  9775. # Copyright (C) 1999-2014 Free Software Foundation, Inc.
  9776. #
  9777. # This file is free software; the Free Software Foundation
  9778. # gives unlimited permission to copy and/or distribute it,
  9779. # with or without modifications, as long as this notice is preserved.
  9780. # _AM_PROG_CC_C_O
  9781. # ---------------
  9782. # Like AC_PROG_CC_C_O, but changed for automake. We rewrite AC_PROG_CC
  9783. # to automatically call this.
  9784. AC_DEFUN([_AM_PROG_CC_C_O],
  9785. [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
  9786. AC_REQUIRE_AUX_FILE([compile])dnl
  9787. AC_LANG_PUSH([C])dnl
  9788. AC_CACHE_CHECK(
  9789. [whether $CC understands -c and -o together],
  9790. [am_cv_prog_cc_c_o],
  9791. [AC_LANG_CONFTEST([AC_LANG_PROGRAM([])])
  9792. # Make sure it works both with $CC and with simple cc.
  9793. # Following AC_PROG_CC_C_O, we do the test twice because some
  9794. # compilers refuse to overwrite an existing .o file with -o,
  9795. # though they will create one.
  9796. am_cv_prog_cc_c_o=yes
  9797. for am_i in 1 2; do
  9798. if AM_RUN_LOG([$CC -c conftest.$ac_ext -o conftest2.$ac_objext]) \
  9799. && test -f conftest2.$ac_objext; then
  9800. : OK
  9801. else
  9802. am_cv_prog_cc_c_o=no
  9803. break
  9804. fi
  9805. done
  9806. rm -f core conftest*
  9807. unset am_i])
  9808. if test "$am_cv_prog_cc_c_o" != yes; then
  9809. # Losing compiler, so override with the script.
  9810. # FIXME: It is wrong to rewrite CC.
  9811. # But if we don't then we get into trouble of one sort or another.
  9812. # A longer-term fix would be to have automake use am__CC in this case,
  9813. # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
  9814. CC="$am_aux_dir/compile $CC"
  9815. fi
  9816. AC_LANG_POP([C])])
  9817. # For backward compatibility.
  9818. AC_DEFUN_ONCE([AM_PROG_CC_C_O], [AC_REQUIRE([AC_PROG_CC])])
  9819. # Copyright (C) 2001-2014 Free Software Foundation, Inc.
  9820. #
  9821. # This file is free software; the Free Software Foundation
  9822. # gives unlimited permission to copy and/or distribute it,
  9823. # with or without modifications, as long as this notice is preserved.
  9824. # AM_RUN_LOG(COMMAND)
  9825. # -------------------
  9826. # Run COMMAND, save the exit status in ac_status, and log it.
  9827. # (This has been adapted from Autoconf's _AC_RUN_LOG macro.)
  9828. AC_DEFUN([AM_RUN_LOG],
  9829. [{ echo "$as_me:$LINENO: $1" >&AS_MESSAGE_LOG_FD
  9830. ($1) >&AS_MESSAGE_LOG_FD 2>&AS_MESSAGE_LOG_FD
  9831. ac_status=$?
  9832. echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
  9833. (exit $ac_status); }])
  9834. # Check to make sure that the build environment is sane. -*- Autoconf -*-
  9835. # Copyright (C) 1996-2014 Free Software Foundation, Inc.
  9836. #
  9837. # This file is free software; the Free Software Foundation
  9838. # gives unlimited permission to copy and/or distribute it,
  9839. # with or without modifications, as long as this notice is preserved.
  9840. # AM_SANITY_CHECK
  9841. # ---------------
  9842. AC_DEFUN([AM_SANITY_CHECK],
  9843. [AC_MSG_CHECKING([whether build environment is sane])
  9844. # Reject unsafe characters in $srcdir or the absolute working directory
  9845. # name. Accept space and tab only in the latter.
  9846. am_lf='
  9847. '
  9848. case `pwd` in
  9849. *[[\\\"\#\$\&\'\`$am_lf]]*)
  9850. AC_MSG_ERROR([unsafe absolute working directory name]);;
  9851. esac
  9852. case $srcdir in
  9853. *[[\\\"\#\$\&\'\`$am_lf\ \ ]]*)
  9854. AC_MSG_ERROR([unsafe srcdir value: '$srcdir']);;
  9855. esac
  9856. # Do 'set' in a subshell so we don't clobber the current shell's
  9857. # arguments. Must try -L first in case configure is actually a
  9858. # symlink; some systems play weird games with the mod time of symlinks
  9859. # (eg FreeBSD returns the mod time of the symlink's containing
  9860. # directory).
  9861. if (
  9862. am_has_slept=no
  9863. for am_try in 1 2; do
  9864. echo "timestamp, slept: $am_has_slept" > conftest.file
  9865. set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
  9866. if test "$[*]" = "X"; then
  9867. # -L didn't work.
  9868. set X `ls -t "$srcdir/configure" conftest.file`
  9869. fi
  9870. if test "$[*]" != "X $srcdir/configure conftest.file" \
  9871. && test "$[*]" != "X conftest.file $srcdir/configure"; then
  9872. # If neither matched, then we have a broken ls. This can happen
  9873. # if, for instance, CONFIG_SHELL is bash and it inherits a
  9874. # broken ls alias from the environment. This has actually
  9875. # happened. Such a system could not be considered "sane".
  9876. AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken
  9877. alias in your environment])
  9878. fi
  9879. if test "$[2]" = conftest.file || test $am_try -eq 2; then
  9880. break
  9881. fi
  9882. # Just in case.
  9883. sleep 1
  9884. am_has_slept=yes
  9885. done
  9886. test "$[2]" = conftest.file
  9887. )
  9888. then
  9889. # Ok.
  9890. :
  9891. else
  9892. AC_MSG_ERROR([newly created file is older than distributed files!
  9893. Check your system clock])
  9894. fi
  9895. AC_MSG_RESULT([yes])
  9896. # If we didn't sleep, we still need to ensure time stamps of config.status and
  9897. # generated files are strictly newer.
  9898. am_sleep_pid=
  9899. if grep 'slept: no' conftest.file >/dev/null 2>&1; then
  9900. ( sleep 1 ) &
  9901. am_sleep_pid=$!
  9902. fi
  9903. AC_CONFIG_COMMANDS_PRE(
  9904. [AC_MSG_CHECKING([that generated files are newer than configure])
  9905. if test -n "$am_sleep_pid"; then
  9906. # Hide warnings about reused PIDs.
  9907. wait $am_sleep_pid 2>/dev/null
  9908. fi
  9909. AC_MSG_RESULT([done])])
  9910. rm -f conftest.file
  9911. ])
  9912. # Copyright (C) 2009-2014 Free Software Foundation, Inc.
  9913. #
  9914. # This file is free software; the Free Software Foundation
  9915. # gives unlimited permission to copy and/or distribute it,
  9916. # with or without modifications, as long as this notice is preserved.
  9917. # AM_SILENT_RULES([DEFAULT])
  9918. # --------------------------
  9919. # Enable less verbose build rules; with the default set to DEFAULT
  9920. # ("yes" being less verbose, "no" or empty being verbose).
  9921. AC_DEFUN([AM_SILENT_RULES],
  9922. [AC_ARG_ENABLE([silent-rules], [dnl
  9923. AS_HELP_STRING(
  9924. [--enable-silent-rules],
  9925. [less verbose build output (undo: "make V=1")])
  9926. AS_HELP_STRING(
  9927. [--disable-silent-rules],
  9928. [verbose build output (undo: "make V=0")])dnl
  9929. ])
  9930. case $enable_silent_rules in @%:@ (((
  9931. yes) AM_DEFAULT_VERBOSITY=0;;
  9932. no) AM_DEFAULT_VERBOSITY=1;;
  9933. *) AM_DEFAULT_VERBOSITY=m4_if([$1], [yes], [0], [1]);;
  9934. esac
  9935. dnl
  9936. dnl A few 'make' implementations (e.g., NonStop OS and NextStep)
  9937. dnl do not support nested variable expansions.
  9938. dnl See automake bug#9928 and bug#10237.
  9939. am_make=${MAKE-make}
  9940. AC_CACHE_CHECK([whether $am_make supports nested variables],
  9941. [am_cv_make_support_nested_variables],
  9942. [if AS_ECHO([['TRUE=$(BAR$(V))
  9943. BAR0=false
  9944. BAR1=true
  9945. V=1
  9946. am__doit:
  9947. @$(TRUE)
  9948. .PHONY: am__doit']]) | $am_make -f - >/dev/null 2>&1; then
  9949. am_cv_make_support_nested_variables=yes
  9950. else
  9951. am_cv_make_support_nested_variables=no
  9952. fi])
  9953. if test $am_cv_make_support_nested_variables = yes; then
  9954. dnl Using '$V' instead of '$(V)' breaks IRIX make.
  9955. AM_V='$(V)'
  9956. AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
  9957. else
  9958. AM_V=$AM_DEFAULT_VERBOSITY
  9959. AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
  9960. fi
  9961. AC_SUBST([AM_V])dnl
  9962. AM_SUBST_NOTMAKE([AM_V])dnl
  9963. AC_SUBST([AM_DEFAULT_V])dnl
  9964. AM_SUBST_NOTMAKE([AM_DEFAULT_V])dnl
  9965. AC_SUBST([AM_DEFAULT_VERBOSITY])dnl
  9966. AM_BACKSLASH='\'
  9967. AC_SUBST([AM_BACKSLASH])dnl
  9968. _AM_SUBST_NOTMAKE([AM_BACKSLASH])dnl
  9969. ])
  9970. # Copyright (C) 2001-2014 Free Software Foundation, Inc.
  9971. #
  9972. # This file is free software; the Free Software Foundation
  9973. # gives unlimited permission to copy and/or distribute it,
  9974. # with or without modifications, as long as this notice is preserved.
  9975. # AM_PROG_INSTALL_STRIP
  9976. # ---------------------
  9977. # One issue with vendor 'install' (even GNU) is that you can't
  9978. # specify the program used to strip binaries. This is especially
  9979. # annoying in cross-compiling environments, where the build's strip
  9980. # is unlikely to handle the host's binaries.
  9981. # Fortunately install-sh will honor a STRIPPROG variable, so we
  9982. # always use install-sh in "make install-strip", and initialize
  9983. # STRIPPROG with the value of the STRIP variable (set by the user).
  9984. AC_DEFUN([AM_PROG_INSTALL_STRIP],
  9985. [AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
  9986. # Installed binaries are usually stripped using 'strip' when the user
  9987. # run "make install-strip". However 'strip' might not be the right
  9988. # tool to use in cross-compilation environments, therefore Automake
  9989. # will honor the 'STRIP' environment variable to overrule this program.
  9990. dnl Don't test for $cross_compiling = yes, because it might be 'maybe'.
  9991. if test "$cross_compiling" != no; then
  9992. AC_CHECK_TOOL([STRIP], [strip], :)
  9993. fi
  9994. INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  9995. AC_SUBST([INSTALL_STRIP_PROGRAM])])
  9996. # Copyright (C) 2006-2014 Free Software Foundation, Inc.
  9997. #
  9998. # This file is free software; the Free Software Foundation
  9999. # gives unlimited permission to copy and/or distribute it,
  10000. # with or without modifications, as long as this notice is preserved.
  10001. # _AM_SUBST_NOTMAKE(VARIABLE)
  10002. # ---------------------------
  10003. # Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in.
  10004. # This macro is traced by Automake.
  10005. AC_DEFUN([_AM_SUBST_NOTMAKE])
  10006. # AM_SUBST_NOTMAKE(VARIABLE)
  10007. # --------------------------
  10008. # Public sister of _AM_SUBST_NOTMAKE.
  10009. AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)])
  10010. # Check how to create a tarball. -*- Autoconf -*-
  10011. # Copyright (C) 2004-2014 Free Software Foundation, Inc.
  10012. #
  10013. # This file is free software; the Free Software Foundation
  10014. # gives unlimited permission to copy and/or distribute it,
  10015. # with or without modifications, as long as this notice is preserved.
  10016. # _AM_PROG_TAR(FORMAT)
  10017. # --------------------
  10018. # Check how to create a tarball in format FORMAT.
  10019. # FORMAT should be one of 'v7', 'ustar', or 'pax'.
  10020. #
  10021. # Substitute a variable $(am__tar) that is a command
  10022. # writing to stdout a FORMAT-tarball containing the directory
  10023. # $tardir.
  10024. # tardir=directory && $(am__tar) > result.tar
  10025. #
  10026. # Substitute a variable $(am__untar) that extract such
  10027. # a tarball read from stdin.
  10028. # $(am__untar) < result.tar
  10029. #
  10030. AC_DEFUN([_AM_PROG_TAR],
  10031. [# Always define AMTAR for backward compatibility. Yes, it's still used
  10032. # in the wild :-( We should find a proper way to deprecate it ...
  10033. AC_SUBST([AMTAR], ['$${TAR-tar}'])
  10034. # We'll loop over all known methods to create a tar archive until one works.
  10035. _am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
  10036. m4_if([$1], [v7],
  10037. [am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'],
  10038. [m4_case([$1],
  10039. [ustar],
  10040. [# The POSIX 1988 'ustar' format is defined with fixed-size fields.
  10041. # There is notably a 21 bits limit for the UID and the GID. In fact,
  10042. # the 'pax' utility can hang on bigger UID/GID (see automake bug#8343
  10043. # and bug#13588).
  10044. am_max_uid=2097151 # 2^21 - 1
  10045. am_max_gid=$am_max_uid
  10046. # The $UID and $GID variables are not portable, so we need to resort
  10047. # to the POSIX-mandated id(1) utility. Errors in the 'id' calls
  10048. # below are definitely unexpected, so allow the users to see them
  10049. # (that is, avoid stderr redirection).
  10050. am_uid=`id -u || echo unknown`
  10051. am_gid=`id -g || echo unknown`
  10052. AC_MSG_CHECKING([whether UID '$am_uid' is supported by ustar format])
  10053. if test $am_uid -le $am_max_uid; then
  10054. AC_MSG_RESULT([yes])
  10055. else
  10056. AC_MSG_RESULT([no])
  10057. _am_tools=none
  10058. fi
  10059. AC_MSG_CHECKING([whether GID '$am_gid' is supported by ustar format])
  10060. if test $am_gid -le $am_max_gid; then
  10061. AC_MSG_RESULT([yes])
  10062. else
  10063. AC_MSG_RESULT([no])
  10064. _am_tools=none
  10065. fi],
  10066. [pax],
  10067. [],
  10068. [m4_fatal([Unknown tar format])])
  10069. AC_MSG_CHECKING([how to create a $1 tar archive])
  10070. # Go ahead even if we have the value already cached. We do so because we
  10071. # need to set the values for the 'am__tar' and 'am__untar' variables.
  10072. _am_tools=${am_cv_prog_tar_$1-$_am_tools}
  10073. for _am_tool in $_am_tools; do
  10074. case $_am_tool in
  10075. gnutar)
  10076. for _am_tar in tar gnutar gtar; do
  10077. AM_RUN_LOG([$_am_tar --version]) && break
  10078. done
  10079. am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"'
  10080. am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'
  10081. am__untar="$_am_tar -xf -"
  10082. ;;
  10083. plaintar)
  10084. # Must skip GNU tar: if it does not support --format= it doesn't create
  10085. # ustar tarball either.
  10086. (tar --version) >/dev/null 2>&1 && continue
  10087. am__tar='tar chf - "$$tardir"'
  10088. am__tar_='tar chf - "$tardir"'
  10089. am__untar='tar xf -'
  10090. ;;
  10091. pax)
  10092. am__tar='pax -L -x $1 -w "$$tardir"'
  10093. am__tar_='pax -L -x $1 -w "$tardir"'
  10094. am__untar='pax -r'
  10095. ;;
  10096. cpio)
  10097. am__tar='find "$$tardir" -print | cpio -o -H $1 -L'
  10098. am__tar_='find "$tardir" -print | cpio -o -H $1 -L'
  10099. am__untar='cpio -i -H $1 -d'
  10100. ;;
  10101. none)
  10102. am__tar=false
  10103. am__tar_=false
  10104. am__untar=false
  10105. ;;
  10106. esac
  10107. # If the value was cached, stop now. We just wanted to have am__tar
  10108. # and am__untar set.
  10109. test -n "${am_cv_prog_tar_$1}" && break
  10110. # tar/untar a dummy directory, and stop if the command works.
  10111. rm -rf conftest.dir
  10112. mkdir conftest.dir
  10113. echo GrepMe > conftest.dir/file
  10114. AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])
  10115. rm -rf conftest.dir
  10116. if test -s conftest.tar; then
  10117. AM_RUN_LOG([$am__untar <conftest.tar])
  10118. AM_RUN_LOG([cat conftest.dir/file])
  10119. grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
  10120. fi
  10121. done
  10122. rm -rf conftest.dir
  10123. AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
  10124. AC_MSG_RESULT([$am_cv_prog_tar_$1])])
  10125. AC_SUBST([am__tar])
  10126. AC_SUBST([am__untar])
  10127. ]) # _AM_PROG_TAR