aclocal.m4 286 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156
  1. # generated automatically by aclocal 1.10.1 -*- Autoconf -*-
  2. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
  3. # 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
  4. # This file is free software; the Free Software Foundation
  5. # gives unlimited permission to copy and/or distribute it,
  6. # with or without modifications, as long as this notice is preserved.
  7. # This program is distributed in the hope that it will be useful,
  8. # but WITHOUT ANY WARRANTY, to the extent permitted by law; without
  9. # even the implied warranty of MERCHANTABILITY or FITNESS FOR A
  10. # PARTICULAR PURPOSE.
  11. m4_ifndef([AC_AUTOCONF_VERSION],
  12. [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
  13. m4_if(AC_AUTOCONF_VERSION, [2.62],,
  14. [m4_warning([this file was generated for autoconf 2.62.
  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. # libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
  19. # serial 52 AC_PROG_LIBTOOL
  20. # AC_PROVIDE_IFELSE(MACRO-NAME, IF-PROVIDED, IF-NOT-PROVIDED)
  21. # -----------------------------------------------------------
  22. # If this macro is not defined by Autoconf, define it here.
  23. m4_ifdef([AC_PROVIDE_IFELSE],
  24. [],
  25. [m4_define([AC_PROVIDE_IFELSE],
  26. [m4_ifdef([AC_PROVIDE_$1],
  27. [$2], [$3])])])
  28. # AC_PROG_LIBTOOL
  29. # ---------------
  30. AC_DEFUN([AC_PROG_LIBTOOL],
  31. [AC_REQUIRE([_AC_PROG_LIBTOOL])dnl
  32. dnl If AC_PROG_CXX has already been expanded, run AC_LIBTOOL_CXX
  33. dnl immediately, otherwise, hook it in at the end of AC_PROG_CXX.
  34. AC_PROVIDE_IFELSE([AC_PROG_CXX],
  35. [AC_LIBTOOL_CXX],
  36. [define([AC_PROG_CXX], defn([AC_PROG_CXX])[AC_LIBTOOL_CXX
  37. ])])
  38. dnl And a similar setup for Fortran 77 support
  39. AC_PROVIDE_IFELSE([AC_PROG_F77],
  40. [AC_LIBTOOL_F77],
  41. [define([AC_PROG_F77], defn([AC_PROG_F77])[AC_LIBTOOL_F77
  42. ])])
  43. dnl Quote A][M_PROG_GCJ so that aclocal doesn't bring it in needlessly.
  44. dnl If either AC_PROG_GCJ or A][M_PROG_GCJ have already been expanded, run
  45. dnl AC_LIBTOOL_GCJ immediately, otherwise, hook it in at the end of both.
  46. AC_PROVIDE_IFELSE([AC_PROG_GCJ],
  47. [AC_LIBTOOL_GCJ],
  48. [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],
  49. [AC_LIBTOOL_GCJ],
  50. [AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ],
  51. [AC_LIBTOOL_GCJ],
  52. [ifdef([AC_PROG_GCJ],
  53. [define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[AC_LIBTOOL_GCJ])])
  54. ifdef([A][M_PROG_GCJ],
  55. [define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[AC_LIBTOOL_GCJ])])
  56. ifdef([LT_AC_PROG_GCJ],
  57. [define([LT_AC_PROG_GCJ],
  58. defn([LT_AC_PROG_GCJ])[AC_LIBTOOL_GCJ])])])])
  59. ])])# AC_PROG_LIBTOOL
  60. # _AC_PROG_LIBTOOL
  61. # ----------------
  62. AC_DEFUN([_AC_PROG_LIBTOOL],
  63. [AC_REQUIRE([AC_LIBTOOL_SETUP])dnl
  64. AC_BEFORE([$0],[AC_LIBTOOL_CXX])dnl
  65. AC_BEFORE([$0],[AC_LIBTOOL_F77])dnl
  66. AC_BEFORE([$0],[AC_LIBTOOL_GCJ])dnl
  67. # This can be used to rebuild libtool when needed
  68. LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
  69. # Always use our own libtool.
  70. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  71. AC_SUBST(LIBTOOL)dnl
  72. # Prevent multiple expansion
  73. define([AC_PROG_LIBTOOL], [])
  74. ])# _AC_PROG_LIBTOOL
  75. # AC_LIBTOOL_SETUP
  76. # ----------------
  77. AC_DEFUN([AC_LIBTOOL_SETUP],
  78. [AC_PREREQ(2.50)dnl
  79. AC_REQUIRE([AC_ENABLE_SHARED])dnl
  80. AC_REQUIRE([AC_ENABLE_STATIC])dnl
  81. AC_REQUIRE([AC_ENABLE_FAST_INSTALL])dnl
  82. AC_REQUIRE([AC_CANONICAL_HOST])dnl
  83. AC_REQUIRE([AC_CANONICAL_BUILD])dnl
  84. AC_REQUIRE([AC_PROG_CC])dnl
  85. AC_REQUIRE([AC_PROG_LD])dnl
  86. AC_REQUIRE([AC_PROG_LD_RELOAD_FLAG])dnl
  87. AC_REQUIRE([AC_PROG_NM])dnl
  88. AC_REQUIRE([AC_PROG_LN_S])dnl
  89. AC_REQUIRE([AC_DEPLIBS_CHECK_METHOD])dnl
  90. # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
  91. AC_REQUIRE([AC_OBJEXT])dnl
  92. AC_REQUIRE([AC_EXEEXT])dnl
  93. dnl
  94. AC_LIBTOOL_SYS_MAX_CMD_LEN
  95. AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
  96. AC_LIBTOOL_OBJDIR
  97. AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
  98. _LT_AC_PROG_ECHO_BACKSLASH
  99. case $host_os in
  100. aix3*)
  101. # AIX sometimes has problems with the GCC collect2 program. For some
  102. # reason, if we set the COLLECT_NAMES environment variable, the problems
  103. # vanish in a puff of smoke.
  104. if test "X${COLLECT_NAMES+set}" != Xset; then
  105. COLLECT_NAMES=
  106. export COLLECT_NAMES
  107. fi
  108. ;;
  109. esac
  110. # Sed substitution that helps us do robust quoting. It backslashifies
  111. # metacharacters that are still active within double-quoted strings.
  112. Xsed='sed -e 1s/^X//'
  113. [sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g']
  114. # Same as above, but do not quote variable references.
  115. [double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g']
  116. # Sed substitution to delay expansion of an escaped shell variable in a
  117. # double_quote_subst'ed string.
  118. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  119. # Sed substitution to avoid accidental globbing in evaled expressions
  120. no_glob_subst='s/\*/\\\*/g'
  121. # Constants:
  122. rm="rm -f"
  123. # Global variables:
  124. default_ofile=libtool
  125. can_build_shared=yes
  126. # All known linkers require a `.a' archive for static linking (except MSVC,
  127. # which needs '.lib').
  128. libext=a
  129. ltmain="$ac_aux_dir/ltmain.sh"
  130. ofile="$default_ofile"
  131. with_gnu_ld="$lt_cv_prog_gnu_ld"
  132. AC_CHECK_TOOL(AR, ar, false)
  133. AC_CHECK_TOOL(RANLIB, ranlib, :)
  134. AC_CHECK_TOOL(STRIP, strip, :)
  135. old_CC="$CC"
  136. old_CFLAGS="$CFLAGS"
  137. # Set sane defaults for various variables
  138. test -z "$AR" && AR=ar
  139. test -z "$AR_FLAGS" && AR_FLAGS=cru
  140. test -z "$AS" && AS=as
  141. test -z "$CC" && CC=cc
  142. test -z "$LTCC" && LTCC=$CC
  143. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  144. test -z "$DLLTOOL" && DLLTOOL=dlltool
  145. test -z "$LD" && LD=ld
  146. test -z "$LN_S" && LN_S="ln -s"
  147. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  148. test -z "$NM" && NM=nm
  149. test -z "$SED" && SED=sed
  150. test -z "$OBJDUMP" && OBJDUMP=objdump
  151. test -z "$RANLIB" && RANLIB=:
  152. test -z "$STRIP" && STRIP=:
  153. test -z "$ac_objext" && ac_objext=o
  154. # Determine commands to create old-style static archives.
  155. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  156. old_postinstall_cmds='chmod 644 $oldlib'
  157. old_postuninstall_cmds=
  158. if test -n "$RANLIB"; then
  159. case $host_os in
  160. openbsd*)
  161. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
  162. ;;
  163. *)
  164. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
  165. ;;
  166. esac
  167. old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
  168. fi
  169. _LT_CC_BASENAME([$compiler])
  170. # Only perform the check for file, if the check method requires it
  171. case $deplibs_check_method in
  172. file_magic*)
  173. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  174. AC_PATH_MAGIC
  175. fi
  176. ;;
  177. esac
  178. _LT_REQUIRED_DARWIN_CHECKS
  179. AC_PROVIDE_IFELSE([AC_LIBTOOL_DLOPEN], enable_dlopen=yes, enable_dlopen=no)
  180. AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL],
  181. enable_win32_dll=yes, enable_win32_dll=no)
  182. AC_ARG_ENABLE([libtool-lock],
  183. [AC_HELP_STRING([--disable-libtool-lock],
  184. [avoid locking (might break parallel builds)])])
  185. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  186. AC_ARG_WITH([pic],
  187. [AC_HELP_STRING([--with-pic],
  188. [try to use only PIC/non-PIC objects @<:@default=use both@:>@])],
  189. [pic_mode="$withval"],
  190. [pic_mode=default])
  191. test -z "$pic_mode" && pic_mode=default
  192. # Use C for the default configuration in the libtool script
  193. tagname=
  194. AC_LIBTOOL_LANG_C_CONFIG
  195. _LT_AC_TAGCONFIG
  196. ])# AC_LIBTOOL_SETUP
  197. # _LT_AC_SYS_COMPILER
  198. # -------------------
  199. AC_DEFUN([_LT_AC_SYS_COMPILER],
  200. [AC_REQUIRE([AC_PROG_CC])dnl
  201. # If no C compiler was specified, use CC.
  202. LTCC=${LTCC-"$CC"}
  203. # If no C compiler flags were specified, use CFLAGS.
  204. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  205. # Allow CC to be a program name with arguments.
  206. compiler=$CC
  207. ])# _LT_AC_SYS_COMPILER
  208. # _LT_CC_BASENAME(CC)
  209. # -------------------
  210. # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
  211. AC_DEFUN([_LT_CC_BASENAME],
  212. [for cc_temp in $1""; do
  213. case $cc_temp in
  214. compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;;
  215. distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;;
  216. \-*) ;;
  217. *) break;;
  218. esac
  219. done
  220. cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  221. ])
  222. # _LT_COMPILER_BOILERPLATE
  223. # ------------------------
  224. # Check for compiler boilerplate output or warnings with
  225. # the simple compiler test code.
  226. AC_DEFUN([_LT_COMPILER_BOILERPLATE],
  227. [AC_REQUIRE([LT_AC_PROG_SED])dnl
  228. ac_outfile=conftest.$ac_objext
  229. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  230. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  231. _lt_compiler_boilerplate=`cat conftest.err`
  232. $rm conftest*
  233. ])# _LT_COMPILER_BOILERPLATE
  234. # _LT_LINKER_BOILERPLATE
  235. # ----------------------
  236. # Check for linker boilerplate output or warnings with
  237. # the simple link test code.
  238. AC_DEFUN([_LT_LINKER_BOILERPLATE],
  239. [AC_REQUIRE([LT_AC_PROG_SED])dnl
  240. ac_outfile=conftest.$ac_objext
  241. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  242. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  243. _lt_linker_boilerplate=`cat conftest.err`
  244. $rm -r conftest*
  245. ])# _LT_LINKER_BOILERPLATE
  246. # _LT_REQUIRED_DARWIN_CHECKS
  247. # --------------------------
  248. # Check for some things on darwin
  249. AC_DEFUN([_LT_REQUIRED_DARWIN_CHECKS],[
  250. case $host_os in
  251. rhapsody* | darwin*)
  252. AC_CHECK_TOOL([DSYMUTIL], [dsymutil], [:])
  253. AC_CHECK_TOOL([NMEDIT], [nmedit], [:])
  254. AC_CACHE_CHECK([for -single_module linker flag],[lt_cv_apple_cc_single_mod],
  255. [lt_cv_apple_cc_single_mod=no
  256. if test -z "${LT_MULTI_MODULE}"; then
  257. # By default we will add the -single_module flag. You can override
  258. # by either setting the environment variable LT_MULTI_MODULE
  259. # non-empty at configure time, or by adding -multi_module to the
  260. # link flags.
  261. echo "int foo(void){return 1;}" > conftest.c
  262. $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  263. -dynamiclib ${wl}-single_module conftest.c
  264. if test -f libconftest.dylib; then
  265. lt_cv_apple_cc_single_mod=yes
  266. rm -rf libconftest.dylib*
  267. fi
  268. rm conftest.c
  269. fi])
  270. AC_CACHE_CHECK([for -exported_symbols_list linker flag],
  271. [lt_cv_ld_exported_symbols_list],
  272. [lt_cv_ld_exported_symbols_list=no
  273. save_LDFLAGS=$LDFLAGS
  274. echo "_main" > conftest.sym
  275. LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  276. AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
  277. [lt_cv_ld_exported_symbols_list=yes],
  278. [lt_cv_ld_exported_symbols_list=no])
  279. LDFLAGS="$save_LDFLAGS"
  280. ])
  281. case $host_os in
  282. rhapsody* | darwin1.[[0123]])
  283. _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
  284. darwin1.*)
  285. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  286. darwin*)
  287. # if running on 10.5 or later, the deployment target defaults
  288. # to the OS version, if on x86, and 10.4, the deployment
  289. # target defaults to 10.4. Don't you love it?
  290. case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
  291. 10.0,*86*-darwin8*|10.0,*-darwin[[91]]*)
  292. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  293. 10.[[012]]*)
  294. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  295. 10.*)
  296. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  297. esac
  298. ;;
  299. esac
  300. if test "$lt_cv_apple_cc_single_mod" = "yes"; then
  301. _lt_dar_single_mod='$single_module'
  302. fi
  303. if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
  304. _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
  305. else
  306. _lt_dar_export_syms="~$NMEDIT -s \$output_objdir/\${libname}-symbols.expsym \${lib}"
  307. fi
  308. if test "$DSYMUTIL" != ":"; then
  309. _lt_dsymutil="~$DSYMUTIL \$lib || :"
  310. else
  311. _lt_dsymutil=
  312. fi
  313. ;;
  314. esac
  315. ])
  316. # _LT_AC_SYS_LIBPATH_AIX
  317. # ----------------------
  318. # Links a minimal program and checks the executable
  319. # for the system default hardcoded library path. In most cases,
  320. # this is /usr/lib:/lib, but when the MPI compilers are used
  321. # the location of the communication and MPI libs are included too.
  322. # If we don't find anything, use the default library path according
  323. # to the aix ld manual.
  324. AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX],
  325. [AC_REQUIRE([LT_AC_PROG_SED])dnl
  326. AC_LINK_IFELSE(AC_LANG_PROGRAM,[
  327. lt_aix_libpath_sed='
  328. /Import File Strings/,/^$/ {
  329. /^0/ {
  330. s/^0 *\(.*\)$/\1/
  331. p
  332. }
  333. }'
  334. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  335. # Check for a 64-bit object if we didn't find anything.
  336. if test -z "$aix_libpath"; then
  337. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  338. fi],[])
  339. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  340. ])# _LT_AC_SYS_LIBPATH_AIX
  341. # _LT_AC_SHELL_INIT(ARG)
  342. # ----------------------
  343. AC_DEFUN([_LT_AC_SHELL_INIT],
  344. [ifdef([AC_DIVERSION_NOTICE],
  345. [AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)],
  346. [AC_DIVERT_PUSH(NOTICE)])
  347. $1
  348. AC_DIVERT_POP
  349. ])# _LT_AC_SHELL_INIT
  350. # _LT_AC_PROG_ECHO_BACKSLASH
  351. # --------------------------
  352. # Add some code to the start of the generated configure script which
  353. # will find an echo command which doesn't interpret backslashes.
  354. AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH],
  355. [_LT_AC_SHELL_INIT([
  356. # Check that we are running under the correct shell.
  357. SHELL=${CONFIG_SHELL-/bin/sh}
  358. case X$ECHO in
  359. X*--fallback-echo)
  360. # Remove one level of quotation (which was required for Make).
  361. ECHO=`echo "$ECHO" | sed 's,\\\\\[$]\\[$]0,'[$]0','`
  362. ;;
  363. esac
  364. echo=${ECHO-echo}
  365. if test "X[$]1" = X--no-reexec; then
  366. # Discard the --no-reexec flag, and continue.
  367. shift
  368. elif test "X[$]1" = X--fallback-echo; then
  369. # Avoid inline document here, it may be left over
  370. :
  371. elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
  372. # Yippee, $echo works!
  373. :
  374. else
  375. # Restart under the correct shell.
  376. exec $SHELL "[$]0" --no-reexec ${1+"[$]@"}
  377. fi
  378. if test "X[$]1" = X--fallback-echo; then
  379. # used as fallback echo
  380. shift
  381. cat <<EOF
  382. [$]*
  383. EOF
  384. exit 0
  385. fi
  386. # The HP-UX ksh and POSIX shell print the target directory to stdout
  387. # if CDPATH is set.
  388. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  389. if test -z "$ECHO"; then
  390. if test "X${echo_test_string+set}" != Xset; then
  391. # find a string as large as possible, as long as the shell can cope with it
  392. for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do
  393. # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
  394. if (echo_test_string=`eval $cmd`) 2>/dev/null &&
  395. echo_test_string=`eval $cmd` &&
  396. (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
  397. then
  398. break
  399. fi
  400. done
  401. fi
  402. if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
  403. echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
  404. test "X$echo_testing_string" = "X$echo_test_string"; then
  405. :
  406. else
  407. # The Solaris, AIX, and Digital Unix default echo programs unquote
  408. # backslashes. This makes it impossible to quote backslashes using
  409. # echo "$something" | sed 's/\\/\\\\/g'
  410. #
  411. # So, first we look for a working echo in the user's PATH.
  412. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  413. for dir in $PATH /usr/ucb; do
  414. IFS="$lt_save_ifs"
  415. if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
  416. test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
  417. echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
  418. test "X$echo_testing_string" = "X$echo_test_string"; then
  419. echo="$dir/echo"
  420. break
  421. fi
  422. done
  423. IFS="$lt_save_ifs"
  424. if test "X$echo" = Xecho; then
  425. # We didn't find a better echo, so look for alternatives.
  426. if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
  427. echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
  428. test "X$echo_testing_string" = "X$echo_test_string"; then
  429. # This shell has a builtin print -r that does the trick.
  430. echo='print -r'
  431. elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
  432. test "X$CONFIG_SHELL" != X/bin/ksh; then
  433. # If we have ksh, try running configure again with it.
  434. ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
  435. export ORIGINAL_CONFIG_SHELL
  436. CONFIG_SHELL=/bin/ksh
  437. export CONFIG_SHELL
  438. exec $CONFIG_SHELL "[$]0" --no-reexec ${1+"[$]@"}
  439. else
  440. # Try using printf.
  441. echo='printf %s\n'
  442. if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
  443. echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
  444. test "X$echo_testing_string" = "X$echo_test_string"; then
  445. # Cool, printf works
  446. :
  447. elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
  448. test "X$echo_testing_string" = 'X\t' &&
  449. echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  450. test "X$echo_testing_string" = "X$echo_test_string"; then
  451. CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
  452. export CONFIG_SHELL
  453. SHELL="$CONFIG_SHELL"
  454. export SHELL
  455. echo="$CONFIG_SHELL [$]0 --fallback-echo"
  456. elif echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
  457. test "X$echo_testing_string" = 'X\t' &&
  458. echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  459. test "X$echo_testing_string" = "X$echo_test_string"; then
  460. echo="$CONFIG_SHELL [$]0 --fallback-echo"
  461. else
  462. # maybe with a smaller string...
  463. prev=:
  464. for cmd in 'echo test' 'sed 2q "[$]0"' 'sed 10q "[$]0"' 'sed 20q "[$]0"' 'sed 50q "[$]0"'; do
  465. if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
  466. then
  467. break
  468. fi
  469. prev="$cmd"
  470. done
  471. if test "$prev" != 'sed 50q "[$]0"'; then
  472. echo_test_string=`eval $prev`
  473. export echo_test_string
  474. exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "[$]0" ${1+"[$]@"}
  475. else
  476. # Oops. We lost completely, so just stick with echo.
  477. echo=echo
  478. fi
  479. fi
  480. fi
  481. fi
  482. fi
  483. fi
  484. # Copy echo and quote the copy suitably for passing to libtool from
  485. # the Makefile, instead of quoting the original, which is used later.
  486. ECHO=$echo
  487. if test "X$ECHO" = "X$CONFIG_SHELL [$]0 --fallback-echo"; then
  488. ECHO="$CONFIG_SHELL \\\$\[$]0 --fallback-echo"
  489. fi
  490. AC_SUBST(ECHO)
  491. ])])# _LT_AC_PROG_ECHO_BACKSLASH
  492. # _LT_AC_LOCK
  493. # -----------
  494. AC_DEFUN([_LT_AC_LOCK],
  495. [AC_ARG_ENABLE([libtool-lock],
  496. [AC_HELP_STRING([--disable-libtool-lock],
  497. [avoid locking (might break parallel builds)])])
  498. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  499. # Some flags need to be propagated to the compiler or linker for good
  500. # libtool support.
  501. case $host in
  502. ia64-*-hpux*)
  503. # Find out which ABI we are using.
  504. echo 'int i;' > conftest.$ac_ext
  505. if AC_TRY_EVAL(ac_compile); then
  506. case `/usr/bin/file conftest.$ac_objext` in
  507. *ELF-32*)
  508. HPUX_IA64_MODE="32"
  509. ;;
  510. *ELF-64*)
  511. HPUX_IA64_MODE="64"
  512. ;;
  513. esac
  514. fi
  515. rm -rf conftest*
  516. ;;
  517. *-*-irix6*)
  518. # Find out which ABI we are using.
  519. echo '[#]line __oline__ "configure"' > conftest.$ac_ext
  520. if AC_TRY_EVAL(ac_compile); then
  521. if test "$lt_cv_prog_gnu_ld" = yes; then
  522. case `/usr/bin/file conftest.$ac_objext` in
  523. *32-bit*)
  524. LD="${LD-ld} -melf32bsmip"
  525. ;;
  526. *N32*)
  527. LD="${LD-ld} -melf32bmipn32"
  528. ;;
  529. *64-bit*)
  530. LD="${LD-ld} -melf64bmip"
  531. ;;
  532. esac
  533. else
  534. case `/usr/bin/file conftest.$ac_objext` in
  535. *32-bit*)
  536. LD="${LD-ld} -32"
  537. ;;
  538. *N32*)
  539. LD="${LD-ld} -n32"
  540. ;;
  541. *64-bit*)
  542. LD="${LD-ld} -64"
  543. ;;
  544. esac
  545. fi
  546. fi
  547. rm -rf conftest*
  548. ;;
  549. x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
  550. s390*-*linux*|sparc*-*linux*)
  551. # Find out which ABI we are using.
  552. echo 'int i;' > conftest.$ac_ext
  553. if AC_TRY_EVAL(ac_compile); then
  554. case `/usr/bin/file conftest.o` in
  555. *32-bit*)
  556. case $host in
  557. x86_64-*kfreebsd*-gnu)
  558. LD="${LD-ld} -m elf_i386_fbsd"
  559. ;;
  560. x86_64-*linux*)
  561. LD="${LD-ld} -m elf_i386"
  562. ;;
  563. ppc64-*linux*|powerpc64-*linux*)
  564. LD="${LD-ld} -m elf32ppclinux"
  565. ;;
  566. s390x-*linux*)
  567. LD="${LD-ld} -m elf_s390"
  568. ;;
  569. sparc64-*linux*)
  570. LD="${LD-ld} -m elf32_sparc"
  571. ;;
  572. esac
  573. ;;
  574. *64-bit*)
  575. case $host in
  576. x86_64-*kfreebsd*-gnu)
  577. LD="${LD-ld} -m elf_x86_64_fbsd"
  578. ;;
  579. x86_64-*linux*)
  580. LD="${LD-ld} -m elf_x86_64"
  581. ;;
  582. ppc*-*linux*|powerpc*-*linux*)
  583. LD="${LD-ld} -m elf64ppc"
  584. ;;
  585. s390*-*linux*)
  586. LD="${LD-ld} -m elf64_s390"
  587. ;;
  588. sparc*-*linux*)
  589. LD="${LD-ld} -m elf64_sparc"
  590. ;;
  591. esac
  592. ;;
  593. esac
  594. fi
  595. rm -rf conftest*
  596. ;;
  597. *-*-sco3.2v5*)
  598. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  599. SAVE_CFLAGS="$CFLAGS"
  600. CFLAGS="$CFLAGS -belf"
  601. AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf,
  602. [AC_LANG_PUSH(C)
  603. AC_TRY_LINK([],[],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])
  604. AC_LANG_POP])
  605. if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  606. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  607. CFLAGS="$SAVE_CFLAGS"
  608. fi
  609. ;;
  610. sparc*-*solaris*)
  611. # Find out which ABI we are using.
  612. echo 'int i;' > conftest.$ac_ext
  613. if AC_TRY_EVAL(ac_compile); then
  614. case `/usr/bin/file conftest.o` in
  615. *64-bit*)
  616. case $lt_cv_prog_gnu_ld in
  617. yes*) LD="${LD-ld} -m elf64_sparc" ;;
  618. *)
  619. if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  620. LD="${LD-ld} -64"
  621. fi
  622. ;;
  623. esac
  624. ;;
  625. esac
  626. fi
  627. rm -rf conftest*
  628. ;;
  629. AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL],
  630. [*-*-cygwin* | *-*-mingw* | *-*-pw32*)
  631. AC_CHECK_TOOL(DLLTOOL, dlltool, false)
  632. AC_CHECK_TOOL(AS, as, false)
  633. AC_CHECK_TOOL(OBJDUMP, objdump, false)
  634. ;;
  635. ])
  636. esac
  637. need_locks="$enable_libtool_lock"
  638. ])# _LT_AC_LOCK
  639. # AC_LIBTOOL_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
  640. # [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE])
  641. # ----------------------------------------------------------------
  642. # Check whether the given compiler option works
  643. AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION],
  644. [AC_REQUIRE([LT_AC_PROG_SED])
  645. AC_CACHE_CHECK([$1], [$2],
  646. [$2=no
  647. ifelse([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4])
  648. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  649. lt_compiler_flag="$3"
  650. # Insert the option either (1) after the last *FLAGS variable, or
  651. # (2) before a word containing "conftest.", or (3) at the end.
  652. # Note that $ac_compile itself does not contain backslashes and begins
  653. # with a dollar sign (not a hyphen), so the echo should work correctly.
  654. # The option is referenced via a variable to avoid confusing sed.
  655. lt_compile=`echo "$ac_compile" | $SED \
  656. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  657. -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
  658. -e 's:$: $lt_compiler_flag:'`
  659. (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
  660. (eval "$lt_compile" 2>conftest.err)
  661. ac_status=$?
  662. cat conftest.err >&AS_MESSAGE_LOG_FD
  663. echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
  664. if (exit $ac_status) && test -s "$ac_outfile"; then
  665. # The compiler can only warn and ignore the option if not recognized
  666. # So say no if there are warnings other than the usual output.
  667. $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  668. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  669. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  670. $2=yes
  671. fi
  672. fi
  673. $rm conftest*
  674. ])
  675. if test x"[$]$2" = xyes; then
  676. ifelse([$5], , :, [$5])
  677. else
  678. ifelse([$6], , :, [$6])
  679. fi
  680. ])# AC_LIBTOOL_COMPILER_OPTION
  681. # AC_LIBTOOL_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
  682. # [ACTION-SUCCESS], [ACTION-FAILURE])
  683. # ------------------------------------------------------------
  684. # Check whether the given compiler option works
  685. AC_DEFUN([AC_LIBTOOL_LINKER_OPTION],
  686. [AC_REQUIRE([LT_AC_PROG_SED])dnl
  687. AC_CACHE_CHECK([$1], [$2],
  688. [$2=no
  689. save_LDFLAGS="$LDFLAGS"
  690. LDFLAGS="$LDFLAGS $3"
  691. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  692. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  693. # The linker can only warn and ignore the option if not recognized
  694. # So say no if there are warnings
  695. if test -s conftest.err; then
  696. # Append any errors to the config.log.
  697. cat conftest.err 1>&AS_MESSAGE_LOG_FD
  698. $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
  699. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  700. if diff conftest.exp conftest.er2 >/dev/null; then
  701. $2=yes
  702. fi
  703. else
  704. $2=yes
  705. fi
  706. fi
  707. $rm -r conftest*
  708. LDFLAGS="$save_LDFLAGS"
  709. ])
  710. if test x"[$]$2" = xyes; then
  711. ifelse([$4], , :, [$4])
  712. else
  713. ifelse([$5], , :, [$5])
  714. fi
  715. ])# AC_LIBTOOL_LINKER_OPTION
  716. # AC_LIBTOOL_SYS_MAX_CMD_LEN
  717. # --------------------------
  718. AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN],
  719. [# find the maximum length of command line arguments
  720. AC_MSG_CHECKING([the maximum length of command line arguments])
  721. AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl
  722. i=0
  723. teststring="ABCD"
  724. case $build_os in
  725. msdosdjgpp*)
  726. # On DJGPP, this test can blow up pretty badly due to problems in libc
  727. # (any single argument exceeding 2000 bytes causes a buffer overrun
  728. # during glob expansion). Even if it were fixed, the result of this
  729. # check would be larger than it should be.
  730. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  731. ;;
  732. gnu*)
  733. # Under GNU Hurd, this test is not required because there is
  734. # no limit to the length of command line arguments.
  735. # Libtool will interpret -1 as no limit whatsoever
  736. lt_cv_sys_max_cmd_len=-1;
  737. ;;
  738. cygwin* | mingw*)
  739. # On Win9x/ME, this test blows up -- it succeeds, but takes
  740. # about 5 minutes as the teststring grows exponentially.
  741. # Worse, since 9x/ME are not pre-emptively multitasking,
  742. # you end up with a "frozen" computer, even though with patience
  743. # the test eventually succeeds (with a max line length of 256k).
  744. # Instead, let's just punt: use the minimum linelength reported by
  745. # all of the supported platforms: 8192 (on NT/2K/XP).
  746. lt_cv_sys_max_cmd_len=8192;
  747. ;;
  748. amigaos*)
  749. # On AmigaOS with pdksh, this test takes hours, literally.
  750. # So we just punt and use a minimum line length of 8192.
  751. lt_cv_sys_max_cmd_len=8192;
  752. ;;
  753. netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  754. # This has been around since 386BSD, at least. Likely further.
  755. if test -x /sbin/sysctl; then
  756. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  757. elif test -x /usr/sbin/sysctl; then
  758. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  759. else
  760. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  761. fi
  762. # And add a safety zone
  763. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  764. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  765. ;;
  766. interix*)
  767. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  768. lt_cv_sys_max_cmd_len=196608
  769. ;;
  770. osf*)
  771. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  772. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  773. # nice to cause kernel panics so lets avoid the loop below.
  774. # First set a reasonable default.
  775. lt_cv_sys_max_cmd_len=16384
  776. #
  777. if test -x /sbin/sysconfig; then
  778. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  779. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  780. esac
  781. fi
  782. ;;
  783. sco3.2v5*)
  784. lt_cv_sys_max_cmd_len=102400
  785. ;;
  786. sysv5* | sco5v6* | sysv4.2uw2*)
  787. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  788. if test -n "$kargmax"; then
  789. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[ ]]//'`
  790. else
  791. lt_cv_sys_max_cmd_len=32768
  792. fi
  793. ;;
  794. *)
  795. lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  796. if test -n "$lt_cv_sys_max_cmd_len"; then
  797. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  798. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  799. else
  800. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  801. while (test "X"`$SHELL [$]0 --fallback-echo "X$teststring" 2>/dev/null` \
  802. = "XX$teststring") >/dev/null 2>&1 &&
  803. new_result=`expr "X$teststring" : ".*" 2>&1` &&
  804. lt_cv_sys_max_cmd_len=$new_result &&
  805. test $i != 17 # 1/2 MB should be enough
  806. do
  807. i=`expr $i + 1`
  808. teststring=$teststring$teststring
  809. done
  810. teststring=
  811. # Add a significant safety factor because C++ compilers can tack on massive
  812. # amounts of additional arguments before passing them to the linker.
  813. # It appears as though 1/2 is a usable value.
  814. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  815. fi
  816. ;;
  817. esac
  818. ])
  819. if test -n $lt_cv_sys_max_cmd_len ; then
  820. AC_MSG_RESULT($lt_cv_sys_max_cmd_len)
  821. else
  822. AC_MSG_RESULT(none)
  823. fi
  824. ])# AC_LIBTOOL_SYS_MAX_CMD_LEN
  825. # _LT_AC_CHECK_DLFCN
  826. # ------------------
  827. AC_DEFUN([_LT_AC_CHECK_DLFCN],
  828. [AC_CHECK_HEADERS(dlfcn.h)dnl
  829. ])# _LT_AC_CHECK_DLFCN
  830. # _LT_AC_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
  831. # ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
  832. # ---------------------------------------------------------------------
  833. AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF],
  834. [AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
  835. if test "$cross_compiling" = yes; then :
  836. [$4]
  837. else
  838. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  839. lt_status=$lt_dlunknown
  840. cat > conftest.$ac_ext <<EOF
  841. [#line __oline__ "configure"
  842. #include "confdefs.h"
  843. #if HAVE_DLFCN_H
  844. #include <dlfcn.h>
  845. #endif
  846. #include <stdio.h>
  847. #ifdef RTLD_GLOBAL
  848. # define LT_DLGLOBAL RTLD_GLOBAL
  849. #else
  850. # ifdef DL_GLOBAL
  851. # define LT_DLGLOBAL DL_GLOBAL
  852. # else
  853. # define LT_DLGLOBAL 0
  854. # endif
  855. #endif
  856. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  857. find out it does not work in some platform. */
  858. #ifndef LT_DLLAZY_OR_NOW
  859. # ifdef RTLD_LAZY
  860. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  861. # else
  862. # ifdef DL_LAZY
  863. # define LT_DLLAZY_OR_NOW DL_LAZY
  864. # else
  865. # ifdef RTLD_NOW
  866. # define LT_DLLAZY_OR_NOW RTLD_NOW
  867. # else
  868. # ifdef DL_NOW
  869. # define LT_DLLAZY_OR_NOW DL_NOW
  870. # else
  871. # define LT_DLLAZY_OR_NOW 0
  872. # endif
  873. # endif
  874. # endif
  875. # endif
  876. #endif
  877. #ifdef __cplusplus
  878. extern "C" void exit (int);
  879. #endif
  880. void fnord() { int i=42;}
  881. int main ()
  882. {
  883. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  884. int status = $lt_dlunknown;
  885. if (self)
  886. {
  887. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  888. else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  889. /* dlclose (self); */
  890. }
  891. else
  892. puts (dlerror ());
  893. exit (status);
  894. }]
  895. EOF
  896. if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then
  897. (./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null
  898. lt_status=$?
  899. case x$lt_status in
  900. x$lt_dlno_uscore) $1 ;;
  901. x$lt_dlneed_uscore) $2 ;;
  902. x$lt_dlunknown|x*) $3 ;;
  903. esac
  904. else :
  905. # compilation failed
  906. $3
  907. fi
  908. fi
  909. rm -fr conftest*
  910. ])# _LT_AC_TRY_DLOPEN_SELF
  911. # AC_LIBTOOL_DLOPEN_SELF
  912. # ----------------------
  913. AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF],
  914. [AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
  915. if test "x$enable_dlopen" != xyes; then
  916. enable_dlopen=unknown
  917. enable_dlopen_self=unknown
  918. enable_dlopen_self_static=unknown
  919. else
  920. lt_cv_dlopen=no
  921. lt_cv_dlopen_libs=
  922. case $host_os in
  923. beos*)
  924. lt_cv_dlopen="load_add_on"
  925. lt_cv_dlopen_libs=
  926. lt_cv_dlopen_self=yes
  927. ;;
  928. mingw* | pw32*)
  929. lt_cv_dlopen="LoadLibrary"
  930. lt_cv_dlopen_libs=
  931. ;;
  932. cygwin*)
  933. lt_cv_dlopen="dlopen"
  934. lt_cv_dlopen_libs=
  935. ;;
  936. darwin*)
  937. # if libdl is installed we need to link against it
  938. AC_CHECK_LIB([dl], [dlopen],
  939. [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],[
  940. lt_cv_dlopen="dyld"
  941. lt_cv_dlopen_libs=
  942. lt_cv_dlopen_self=yes
  943. ])
  944. ;;
  945. *)
  946. AC_CHECK_FUNC([shl_load],
  947. [lt_cv_dlopen="shl_load"],
  948. [AC_CHECK_LIB([dld], [shl_load],
  949. [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"],
  950. [AC_CHECK_FUNC([dlopen],
  951. [lt_cv_dlopen="dlopen"],
  952. [AC_CHECK_LIB([dl], [dlopen],
  953. [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],
  954. [AC_CHECK_LIB([svld], [dlopen],
  955. [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"],
  956. [AC_CHECK_LIB([dld], [dld_link],
  957. [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"])
  958. ])
  959. ])
  960. ])
  961. ])
  962. ])
  963. ;;
  964. esac
  965. if test "x$lt_cv_dlopen" != xno; then
  966. enable_dlopen=yes
  967. else
  968. enable_dlopen=no
  969. fi
  970. case $lt_cv_dlopen in
  971. dlopen)
  972. save_CPPFLAGS="$CPPFLAGS"
  973. test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  974. save_LDFLAGS="$LDFLAGS"
  975. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  976. save_LIBS="$LIBS"
  977. LIBS="$lt_cv_dlopen_libs $LIBS"
  978. AC_CACHE_CHECK([whether a program can dlopen itself],
  979. lt_cv_dlopen_self, [dnl
  980. _LT_AC_TRY_DLOPEN_SELF(
  981. lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes,
  982. lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross)
  983. ])
  984. if test "x$lt_cv_dlopen_self" = xyes; then
  985. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  986. AC_CACHE_CHECK([whether a statically linked program can dlopen itself],
  987. lt_cv_dlopen_self_static, [dnl
  988. _LT_AC_TRY_DLOPEN_SELF(
  989. lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes,
  990. lt_cv_dlopen_self_static=no, lt_cv_dlopen_self_static=cross)
  991. ])
  992. fi
  993. CPPFLAGS="$save_CPPFLAGS"
  994. LDFLAGS="$save_LDFLAGS"
  995. LIBS="$save_LIBS"
  996. ;;
  997. esac
  998. case $lt_cv_dlopen_self in
  999. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  1000. *) enable_dlopen_self=unknown ;;
  1001. esac
  1002. case $lt_cv_dlopen_self_static in
  1003. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  1004. *) enable_dlopen_self_static=unknown ;;
  1005. esac
  1006. fi
  1007. ])# AC_LIBTOOL_DLOPEN_SELF
  1008. # AC_LIBTOOL_PROG_CC_C_O([TAGNAME])
  1009. # ---------------------------------
  1010. # Check to see if options -c and -o are simultaneously supported by compiler
  1011. AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O],
  1012. [AC_REQUIRE([LT_AC_PROG_SED])dnl
  1013. AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
  1014. AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext],
  1015. [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)],
  1016. [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no
  1017. $rm -r conftest 2>/dev/null
  1018. mkdir conftest
  1019. cd conftest
  1020. mkdir out
  1021. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  1022. lt_compiler_flag="-o out/conftest2.$ac_objext"
  1023. # Insert the option either (1) after the last *FLAGS variable, or
  1024. # (2) before a word containing "conftest.", or (3) at the end.
  1025. # Note that $ac_compile itself does not contain backslashes and begins
  1026. # with a dollar sign (not a hyphen), so the echo should work correctly.
  1027. lt_compile=`echo "$ac_compile" | $SED \
  1028. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  1029. -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
  1030. -e 's:$: $lt_compiler_flag:'`
  1031. (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
  1032. (eval "$lt_compile" 2>out/conftest.err)
  1033. ac_status=$?
  1034. cat out/conftest.err >&AS_MESSAGE_LOG_FD
  1035. echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
  1036. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  1037. then
  1038. # The compiler can only warn and ignore the option if not recognized
  1039. # So say no if there are warnings
  1040. $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  1041. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  1042. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  1043. _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
  1044. fi
  1045. fi
  1046. chmod u+w . 2>&AS_MESSAGE_LOG_FD
  1047. $rm conftest*
  1048. # SGI C++ compiler will create directory out/ii_files/ for
  1049. # template instantiation
  1050. test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
  1051. $rm out/* && rmdir out
  1052. cd ..
  1053. rmdir conftest
  1054. $rm conftest*
  1055. ])
  1056. ])# AC_LIBTOOL_PROG_CC_C_O
  1057. # AC_LIBTOOL_SYS_HARD_LINK_LOCKS([TAGNAME])
  1058. # -----------------------------------------
  1059. # Check to see if we can do hard links to lock some files if needed
  1060. AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS],
  1061. [AC_REQUIRE([_LT_AC_LOCK])dnl
  1062. hard_links="nottested"
  1063. if test "$_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" != no; then
  1064. # do not overwrite the value of need_locks provided by the user
  1065. AC_MSG_CHECKING([if we can lock with hard links])
  1066. hard_links=yes
  1067. $rm conftest*
  1068. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  1069. touch conftest.a
  1070. ln conftest.a conftest.b 2>&5 || hard_links=no
  1071. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  1072. AC_MSG_RESULT([$hard_links])
  1073. if test "$hard_links" = no; then
  1074. AC_MSG_WARN([`$CC' does not support `-c -o', so `make -j' may be unsafe])
  1075. need_locks=warn
  1076. fi
  1077. else
  1078. need_locks=no
  1079. fi
  1080. ])# AC_LIBTOOL_SYS_HARD_LINK_LOCKS
  1081. # AC_LIBTOOL_OBJDIR
  1082. # -----------------
  1083. AC_DEFUN([AC_LIBTOOL_OBJDIR],
  1084. [AC_CACHE_CHECK([for objdir], [lt_cv_objdir],
  1085. [rm -f .libs 2>/dev/null
  1086. mkdir .libs 2>/dev/null
  1087. if test -d .libs; then
  1088. lt_cv_objdir=.libs
  1089. else
  1090. # MS-DOS does not allow filenames that begin with a dot.
  1091. lt_cv_objdir=_libs
  1092. fi
  1093. rmdir .libs 2>/dev/null])
  1094. objdir=$lt_cv_objdir
  1095. ])# AC_LIBTOOL_OBJDIR
  1096. # AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH([TAGNAME])
  1097. # ----------------------------------------------
  1098. # Check hardcoding attributes.
  1099. AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH],
  1100. [AC_MSG_CHECKING([how to hardcode library paths into programs])
  1101. _LT_AC_TAGVAR(hardcode_action, $1)=
  1102. if test -n "$_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)" || \
  1103. test -n "$_LT_AC_TAGVAR(runpath_var, $1)" || \
  1104. test "X$_LT_AC_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then
  1105. # We can hardcode non-existant directories.
  1106. if test "$_LT_AC_TAGVAR(hardcode_direct, $1)" != no &&
  1107. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  1108. # have to relink, otherwise we might link with an installed library
  1109. # when we should be linking with a yet-to-be-installed one
  1110. ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)" != no &&
  1111. test "$_LT_AC_TAGVAR(hardcode_minus_L, $1)" != no; then
  1112. # Linking always hardcodes the temporary library directory.
  1113. _LT_AC_TAGVAR(hardcode_action, $1)=relink
  1114. else
  1115. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  1116. _LT_AC_TAGVAR(hardcode_action, $1)=immediate
  1117. fi
  1118. else
  1119. # We cannot hardcode anything, or else we can only hardcode existing
  1120. # directories.
  1121. _LT_AC_TAGVAR(hardcode_action, $1)=unsupported
  1122. fi
  1123. AC_MSG_RESULT([$_LT_AC_TAGVAR(hardcode_action, $1)])
  1124. if test "$_LT_AC_TAGVAR(hardcode_action, $1)" = relink; then
  1125. # Fast installation is not supported
  1126. enable_fast_install=no
  1127. elif test "$shlibpath_overrides_runpath" = yes ||
  1128. test "$enable_shared" = no; then
  1129. # Fast installation is not necessary
  1130. enable_fast_install=needless
  1131. fi
  1132. ])# AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH
  1133. # AC_LIBTOOL_SYS_LIB_STRIP
  1134. # ------------------------
  1135. AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP],
  1136. [striplib=
  1137. old_striplib=
  1138. AC_MSG_CHECKING([whether stripping libraries is possible])
  1139. if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
  1140. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  1141. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  1142. AC_MSG_RESULT([yes])
  1143. else
  1144. # FIXME - insert some real tests, host_os isn't really good enough
  1145. case $host_os in
  1146. darwin*)
  1147. if test -n "$STRIP" ; then
  1148. striplib="$STRIP -x"
  1149. old_striplib="$STRIP -S"
  1150. AC_MSG_RESULT([yes])
  1151. else
  1152. AC_MSG_RESULT([no])
  1153. fi
  1154. ;;
  1155. *)
  1156. AC_MSG_RESULT([no])
  1157. ;;
  1158. esac
  1159. fi
  1160. ])# AC_LIBTOOL_SYS_LIB_STRIP
  1161. # AC_LIBTOOL_SYS_DYNAMIC_LINKER
  1162. # -----------------------------
  1163. # PORTME Fill in your ld.so characteristics
  1164. AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER],
  1165. [AC_REQUIRE([LT_AC_PROG_SED])dnl
  1166. AC_MSG_CHECKING([dynamic linker characteristics])
  1167. library_names_spec=
  1168. libname_spec='lib$name'
  1169. soname_spec=
  1170. shrext_cmds=".so"
  1171. postinstall_cmds=
  1172. postuninstall_cmds=
  1173. finish_cmds=
  1174. finish_eval=
  1175. shlibpath_var=
  1176. shlibpath_overrides_runpath=unknown
  1177. version_type=none
  1178. dynamic_linker="$host_os ld.so"
  1179. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  1180. m4_if($1,[],[
  1181. if test "$GCC" = yes; then
  1182. case $host_os in
  1183. darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
  1184. *) lt_awk_arg="/^libraries:/" ;;
  1185. esac
  1186. lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  1187. if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
  1188. # if the path contains ";" then we assume it to be the separator
  1189. # otherwise default to the standard path separator (i.e. ":") - it is
  1190. # assumed that no part of a normal pathname contains ";" but that should
  1191. # okay in the real world where ";" in dirpaths is itself problematic.
  1192. lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
  1193. else
  1194. lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  1195. fi
  1196. # Ok, now we have the path, separated by spaces, we can step through it
  1197. # and add multilib dir if necessary.
  1198. lt_tmp_lt_search_path_spec=
  1199. lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  1200. for lt_sys_path in $lt_search_path_spec; do
  1201. if test -d "$lt_sys_path/$lt_multi_os_dir"; then
  1202. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
  1203. else
  1204. test -d "$lt_sys_path" && \
  1205. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  1206. fi
  1207. done
  1208. lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
  1209. BEGIN {RS=" "; FS="/|\n";} {
  1210. lt_foo="";
  1211. lt_count=0;
  1212. for (lt_i = NF; lt_i > 0; lt_i--) {
  1213. if ($lt_i != "" && $lt_i != ".") {
  1214. if ($lt_i == "..") {
  1215. lt_count++;
  1216. } else {
  1217. if (lt_count == 0) {
  1218. lt_foo="/" $lt_i lt_foo;
  1219. } else {
  1220. lt_count--;
  1221. }
  1222. }
  1223. }
  1224. }
  1225. if (lt_foo != "") { lt_freq[[lt_foo]]++; }
  1226. if (lt_freq[[lt_foo]] == 1) { print lt_foo; }
  1227. }'`
  1228. sys_lib_search_path_spec=`echo $lt_search_path_spec`
  1229. else
  1230. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  1231. fi])
  1232. need_lib_prefix=unknown
  1233. hardcode_into_libs=no
  1234. # when you set need_version to no, make sure it does not cause -set_version
  1235. # flags to be left without arguments
  1236. need_version=unknown
  1237. case $host_os in
  1238. aix3*)
  1239. version_type=linux
  1240. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  1241. shlibpath_var=LIBPATH
  1242. # AIX 3 has no versioning support, so we append a major version to the name.
  1243. soname_spec='${libname}${release}${shared_ext}$major'
  1244. ;;
  1245. aix[[4-9]]*)
  1246. version_type=linux
  1247. need_lib_prefix=no
  1248. need_version=no
  1249. hardcode_into_libs=yes
  1250. if test "$host_cpu" = ia64; then
  1251. # AIX 5 supports IA64
  1252. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  1253. shlibpath_var=LD_LIBRARY_PATH
  1254. else
  1255. # With GCC up to 2.95.x, collect2 would create an import file
  1256. # for dependence libraries. The import file would start with
  1257. # the line `#! .'. This would cause the generated library to
  1258. # depend on `.', always an invalid library. This was fixed in
  1259. # development snapshots of GCC prior to 3.0.
  1260. case $host_os in
  1261. aix4 | aix4.[[01]] | aix4.[[01]].*)
  1262. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  1263. echo ' yes '
  1264. echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
  1265. :
  1266. else
  1267. can_build_shared=no
  1268. fi
  1269. ;;
  1270. esac
  1271. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  1272. # soname into executable. Probably we can add versioning support to
  1273. # collect2, so additional links can be useful in future.
  1274. if test "$aix_use_runtimelinking" = yes; then
  1275. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  1276. # instead of lib<name>.a to let people know that these are not
  1277. # typical AIX shared libraries.
  1278. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  1279. else
  1280. # We preserve .a as extension for shared libraries through AIX4.2
  1281. # and later when we are not doing run time linking.
  1282. library_names_spec='${libname}${release}.a $libname.a'
  1283. soname_spec='${libname}${release}${shared_ext}$major'
  1284. fi
  1285. shlibpath_var=LIBPATH
  1286. fi
  1287. ;;
  1288. amigaos*)
  1289. library_names_spec='$libname.ixlibrary $libname.a'
  1290. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  1291. finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([[^/]]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
  1292. ;;
  1293. beos*)
  1294. library_names_spec='${libname}${shared_ext}'
  1295. dynamic_linker="$host_os ld.so"
  1296. shlibpath_var=LIBRARY_PATH
  1297. ;;
  1298. bsdi[[45]]*)
  1299. version_type=linux
  1300. need_version=no
  1301. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  1302. soname_spec='${libname}${release}${shared_ext}$major'
  1303. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  1304. shlibpath_var=LD_LIBRARY_PATH
  1305. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  1306. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  1307. # the default ld.so.conf also contains /usr/contrib/lib and
  1308. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  1309. # libtool to hard-code these into programs
  1310. ;;
  1311. cygwin* | mingw* | pw32*)
  1312. version_type=windows
  1313. shrext_cmds=".dll"
  1314. need_version=no
  1315. need_lib_prefix=no
  1316. case $GCC,$host_os in
  1317. yes,cygwin* | yes,mingw* | yes,pw32*)
  1318. library_names_spec='$libname.dll.a'
  1319. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  1320. postinstall_cmds='base_file=`basename \${file}`~
  1321. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
  1322. dldir=$destdir/`dirname \$dlpath`~
  1323. test -d \$dldir || mkdir -p \$dldir~
  1324. $install_prog $dir/$dlname \$dldir/$dlname~
  1325. chmod a+x \$dldir/$dlname'
  1326. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  1327. dlpath=$dir/\$dldll~
  1328. $rm \$dlpath'
  1329. shlibpath_overrides_runpath=yes
  1330. case $host_os in
  1331. cygwin*)
  1332. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  1333. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  1334. sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  1335. ;;
  1336. mingw*)
  1337. # MinGW DLLs use traditional 'lib' prefix
  1338. soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  1339. sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  1340. if echo "$sys_lib_search_path_spec" | [grep ';[c-zC-Z]:/' >/dev/null]; then
  1341. # It is most probably a Windows format PATH printed by
  1342. # mingw gcc, but we are running on Cygwin. Gcc prints its search
  1343. # path with ; separators, and with drive letters. We can handle the
  1344. # drive letters (cygwin fileutils understands them), so leave them,
  1345. # especially as we might pass files found there to a mingw objdump,
  1346. # which wouldn't understand a cygwinified path. Ahh.
  1347. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  1348. else
  1349. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  1350. fi
  1351. ;;
  1352. pw32*)
  1353. # pw32 DLLs use 'pw' prefix rather than 'lib'
  1354. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  1355. ;;
  1356. esac
  1357. ;;
  1358. *)
  1359. library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $libname.lib'
  1360. ;;
  1361. esac
  1362. dynamic_linker='Win32 ld.exe'
  1363. # FIXME: first we should search . and the directory the executable is in
  1364. shlibpath_var=PATH
  1365. ;;
  1366. darwin* | rhapsody*)
  1367. dynamic_linker="$host_os dyld"
  1368. version_type=darwin
  1369. need_lib_prefix=no
  1370. need_version=no
  1371. library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  1372. soname_spec='${libname}${release}${major}$shared_ext'
  1373. shlibpath_overrides_runpath=yes
  1374. shlibpath_var=DYLD_LIBRARY_PATH
  1375. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  1376. m4_if([$1], [],[
  1377. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"])
  1378. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  1379. ;;
  1380. dgux*)
  1381. version_type=linux
  1382. need_lib_prefix=no
  1383. need_version=no
  1384. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  1385. soname_spec='${libname}${release}${shared_ext}$major'
  1386. shlibpath_var=LD_LIBRARY_PATH
  1387. ;;
  1388. freebsd1*)
  1389. dynamic_linker=no
  1390. ;;
  1391. freebsd* | dragonfly*)
  1392. # DragonFly does not have aout. When/if they implement a new
  1393. # versioning mechanism, adjust this.
  1394. if test -x /usr/bin/objformat; then
  1395. objformat=`/usr/bin/objformat`
  1396. else
  1397. case $host_os in
  1398. freebsd[[123]]*) objformat=aout ;;
  1399. *) objformat=elf ;;
  1400. esac
  1401. fi
  1402. version_type=freebsd-$objformat
  1403. case $version_type in
  1404. freebsd-elf*)
  1405. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  1406. need_version=no
  1407. need_lib_prefix=no
  1408. ;;
  1409. freebsd-*)
  1410. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  1411. need_version=yes
  1412. ;;
  1413. esac
  1414. shlibpath_var=LD_LIBRARY_PATH
  1415. case $host_os in
  1416. freebsd2*)
  1417. shlibpath_overrides_runpath=yes
  1418. ;;
  1419. freebsd3.[[01]]* | freebsdelf3.[[01]]*)
  1420. shlibpath_overrides_runpath=yes
  1421. hardcode_into_libs=yes
  1422. ;;
  1423. freebsd3.[[2-9]]* | freebsdelf3.[[2-9]]* | \
  1424. freebsd4.[[0-5]] | freebsdelf4.[[0-5]] | freebsd4.1.1 | freebsdelf4.1.1)
  1425. shlibpath_overrides_runpath=no
  1426. hardcode_into_libs=yes
  1427. ;;
  1428. *) # from 4.6 on, and DragonFly
  1429. shlibpath_overrides_runpath=yes
  1430. hardcode_into_libs=yes
  1431. ;;
  1432. esac
  1433. ;;
  1434. gnu*)
  1435. version_type=linux
  1436. need_lib_prefix=no
  1437. need_version=no
  1438. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  1439. soname_spec='${libname}${release}${shared_ext}$major'
  1440. shlibpath_var=LD_LIBRARY_PATH
  1441. hardcode_into_libs=yes
  1442. ;;
  1443. hpux9* | hpux10* | hpux11*)
  1444. # Give a soname corresponding to the major version so that dld.sl refuses to
  1445. # link against other versions.
  1446. version_type=sunos
  1447. need_lib_prefix=no
  1448. need_version=no
  1449. case $host_cpu in
  1450. ia64*)
  1451. shrext_cmds='.so'
  1452. hardcode_into_libs=yes
  1453. dynamic_linker="$host_os dld.so"
  1454. shlibpath_var=LD_LIBRARY_PATH
  1455. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  1456. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  1457. soname_spec='${libname}${release}${shared_ext}$major'
  1458. if test "X$HPUX_IA64_MODE" = X32; then
  1459. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  1460. else
  1461. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  1462. fi
  1463. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  1464. ;;
  1465. hppa*64*)
  1466. shrext_cmds='.sl'
  1467. hardcode_into_libs=yes
  1468. dynamic_linker="$host_os dld.sl"
  1469. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  1470. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  1471. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  1472. soname_spec='${libname}${release}${shared_ext}$major'
  1473. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  1474. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  1475. ;;
  1476. *)
  1477. shrext_cmds='.sl'
  1478. dynamic_linker="$host_os dld.sl"
  1479. shlibpath_var=SHLIB_PATH
  1480. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  1481. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  1482. soname_spec='${libname}${release}${shared_ext}$major'
  1483. ;;
  1484. esac
  1485. # HP-UX runs *really* slowly unless shared libraries are mode 555.
  1486. postinstall_cmds='chmod 555 $lib'
  1487. ;;
  1488. interix[[3-9]]*)
  1489. version_type=linux
  1490. need_lib_prefix=no
  1491. need_version=no
  1492. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  1493. soname_spec='${libname}${release}${shared_ext}$major'
  1494. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  1495. shlibpath_var=LD_LIBRARY_PATH
  1496. shlibpath_overrides_runpath=no
  1497. hardcode_into_libs=yes
  1498. ;;
  1499. irix5* | irix6* | nonstopux*)
  1500. case $host_os in
  1501. nonstopux*) version_type=nonstopux ;;
  1502. *)
  1503. if test "$lt_cv_prog_gnu_ld" = yes; then
  1504. version_type=linux
  1505. else
  1506. version_type=irix
  1507. fi ;;
  1508. esac
  1509. need_lib_prefix=no
  1510. need_version=no
  1511. soname_spec='${libname}${release}${shared_ext}$major'
  1512. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  1513. case $host_os in
  1514. irix5* | nonstopux*)
  1515. libsuff= shlibsuff=
  1516. ;;
  1517. *)
  1518. case $LD in # libtool.m4 will add one of these switches to LD
  1519. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  1520. libsuff= shlibsuff= libmagic=32-bit;;
  1521. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  1522. libsuff=32 shlibsuff=N32 libmagic=N32;;
  1523. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  1524. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  1525. *) libsuff= shlibsuff= libmagic=never-match;;
  1526. esac
  1527. ;;
  1528. esac
  1529. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  1530. shlibpath_overrides_runpath=no
  1531. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  1532. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  1533. hardcode_into_libs=yes
  1534. ;;
  1535. # No shared lib support for Linux oldld, aout, or coff.
  1536. linux*oldld* | linux*aout* | linux*coff*)
  1537. dynamic_linker=no
  1538. ;;
  1539. # This must be Linux ELF.
  1540. linux* | k*bsd*-gnu)
  1541. version_type=linux
  1542. need_lib_prefix=no
  1543. need_version=no
  1544. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  1545. soname_spec='${libname}${release}${shared_ext}$major'
  1546. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  1547. shlibpath_var=LD_LIBRARY_PATH
  1548. shlibpath_overrides_runpath=no
  1549. # This implies no fast_install, which is unacceptable.
  1550. # Some rework will be needed to allow for fast_install
  1551. # before this can be enabled.
  1552. hardcode_into_libs=yes
  1553. # Append ld.so.conf contents to the search path
  1554. if test -f /etc/ld.so.conf; then
  1555. lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \[$]2)); skip = 1; } { if (!skip) print \[$]0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
  1556. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  1557. fi
  1558. # We used to test for /lib/ld.so.1 and disable shared libraries on
  1559. # powerpc, because MkLinux only supported shared libraries with the
  1560. # GNU dynamic linker. Since this was broken with cross compilers,
  1561. # most powerpc-linux boxes support dynamic linking these days and
  1562. # people can always --disable-shared, the test was removed, and we
  1563. # assume the GNU/Linux dynamic linker is in use.
  1564. dynamic_linker='GNU/Linux ld.so'
  1565. ;;
  1566. netbsd*)
  1567. version_type=sunos
  1568. need_lib_prefix=no
  1569. need_version=no
  1570. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  1571. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  1572. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  1573. dynamic_linker='NetBSD (a.out) ld.so'
  1574. else
  1575. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  1576. soname_spec='${libname}${release}${shared_ext}$major'
  1577. dynamic_linker='NetBSD ld.elf_so'
  1578. fi
  1579. shlibpath_var=LD_LIBRARY_PATH
  1580. shlibpath_overrides_runpath=yes
  1581. hardcode_into_libs=yes
  1582. ;;
  1583. newsos6)
  1584. version_type=linux
  1585. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  1586. shlibpath_var=LD_LIBRARY_PATH
  1587. shlibpath_overrides_runpath=yes
  1588. ;;
  1589. nto-qnx*)
  1590. version_type=linux
  1591. need_lib_prefix=no
  1592. need_version=no
  1593. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  1594. soname_spec='${libname}${release}${shared_ext}$major'
  1595. shlibpath_var=LD_LIBRARY_PATH
  1596. shlibpath_overrides_runpath=yes
  1597. ;;
  1598. openbsd*)
  1599. version_type=sunos
  1600. sys_lib_dlsearch_path_spec="/usr/lib"
  1601. need_lib_prefix=no
  1602. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  1603. case $host_os in
  1604. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  1605. *) need_version=no ;;
  1606. esac
  1607. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  1608. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  1609. shlibpath_var=LD_LIBRARY_PATH
  1610. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  1611. case $host_os in
  1612. openbsd2.[[89]] | openbsd2.[[89]].*)
  1613. shlibpath_overrides_runpath=no
  1614. ;;
  1615. *)
  1616. shlibpath_overrides_runpath=yes
  1617. ;;
  1618. esac
  1619. else
  1620. shlibpath_overrides_runpath=yes
  1621. fi
  1622. ;;
  1623. os2*)
  1624. libname_spec='$name'
  1625. shrext_cmds=".dll"
  1626. need_lib_prefix=no
  1627. library_names_spec='$libname${shared_ext} $libname.a'
  1628. dynamic_linker='OS/2 ld.exe'
  1629. shlibpath_var=LIBPATH
  1630. ;;
  1631. osf3* | osf4* | osf5*)
  1632. version_type=osf
  1633. need_lib_prefix=no
  1634. need_version=no
  1635. soname_spec='${libname}${release}${shared_ext}$major'
  1636. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  1637. shlibpath_var=LD_LIBRARY_PATH
  1638. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  1639. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  1640. ;;
  1641. rdos*)
  1642. dynamic_linker=no
  1643. ;;
  1644. solaris*)
  1645. version_type=linux
  1646. need_lib_prefix=no
  1647. need_version=no
  1648. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  1649. soname_spec='${libname}${release}${shared_ext}$major'
  1650. shlibpath_var=LD_LIBRARY_PATH
  1651. shlibpath_overrides_runpath=yes
  1652. hardcode_into_libs=yes
  1653. # ldd complains unless libraries are executable
  1654. postinstall_cmds='chmod +x $lib'
  1655. ;;
  1656. sunos4*)
  1657. version_type=sunos
  1658. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  1659. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  1660. shlibpath_var=LD_LIBRARY_PATH
  1661. shlibpath_overrides_runpath=yes
  1662. if test "$with_gnu_ld" = yes; then
  1663. need_lib_prefix=no
  1664. fi
  1665. need_version=yes
  1666. ;;
  1667. sysv4 | sysv4.3*)
  1668. version_type=linux
  1669. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  1670. soname_spec='${libname}${release}${shared_ext}$major'
  1671. shlibpath_var=LD_LIBRARY_PATH
  1672. case $host_vendor in
  1673. sni)
  1674. shlibpath_overrides_runpath=no
  1675. need_lib_prefix=no
  1676. export_dynamic_flag_spec='${wl}-Blargedynsym'
  1677. runpath_var=LD_RUN_PATH
  1678. ;;
  1679. siemens)
  1680. need_lib_prefix=no
  1681. ;;
  1682. motorola)
  1683. need_lib_prefix=no
  1684. need_version=no
  1685. shlibpath_overrides_runpath=no
  1686. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  1687. ;;
  1688. esac
  1689. ;;
  1690. sysv4*MP*)
  1691. if test -d /usr/nec ;then
  1692. version_type=linux
  1693. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  1694. soname_spec='$libname${shared_ext}.$major'
  1695. shlibpath_var=LD_LIBRARY_PATH
  1696. fi
  1697. ;;
  1698. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  1699. version_type=freebsd-elf
  1700. need_lib_prefix=no
  1701. need_version=no
  1702. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  1703. soname_spec='${libname}${release}${shared_ext}$major'
  1704. shlibpath_var=LD_LIBRARY_PATH
  1705. hardcode_into_libs=yes
  1706. if test "$with_gnu_ld" = yes; then
  1707. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  1708. shlibpath_overrides_runpath=no
  1709. else
  1710. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  1711. shlibpath_overrides_runpath=yes
  1712. case $host_os in
  1713. sco3.2v5*)
  1714. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  1715. ;;
  1716. esac
  1717. fi
  1718. sys_lib_dlsearch_path_spec='/usr/lib'
  1719. ;;
  1720. uts4*)
  1721. version_type=linux
  1722. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  1723. soname_spec='${libname}${release}${shared_ext}$major'
  1724. shlibpath_var=LD_LIBRARY_PATH
  1725. ;;
  1726. *)
  1727. dynamic_linker=no
  1728. ;;
  1729. esac
  1730. AC_MSG_RESULT([$dynamic_linker])
  1731. test "$dynamic_linker" = no && can_build_shared=no
  1732. AC_CACHE_VAL([lt_cv_sys_lib_search_path_spec],
  1733. [lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"])
  1734. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  1735. AC_CACHE_VAL([lt_cv_sys_lib_dlsearch_path_spec],
  1736. [lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"])
  1737. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  1738. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  1739. if test "$GCC" = yes; then
  1740. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  1741. fi
  1742. ])# AC_LIBTOOL_SYS_DYNAMIC_LINKER
  1743. # _LT_AC_TAGCONFIG
  1744. # ----------------
  1745. AC_DEFUN([_LT_AC_TAGCONFIG],
  1746. [AC_REQUIRE([LT_AC_PROG_SED])dnl
  1747. AC_ARG_WITH([tags],
  1748. [AC_HELP_STRING([--with-tags@<:@=TAGS@:>@],
  1749. [include additional configurations @<:@automatic@:>@])],
  1750. [tagnames="$withval"])
  1751. if test -f "$ltmain" && test -n "$tagnames"; then
  1752. if test ! -f "${ofile}"; then
  1753. AC_MSG_WARN([output file `$ofile' does not exist])
  1754. fi
  1755. if test -z "$LTCC"; then
  1756. eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
  1757. if test -z "$LTCC"; then
  1758. AC_MSG_WARN([output file `$ofile' does not look like a libtool script])
  1759. else
  1760. AC_MSG_WARN([using `LTCC=$LTCC', extracted from `$ofile'])
  1761. fi
  1762. fi
  1763. if test -z "$LTCFLAGS"; then
  1764. eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
  1765. fi
  1766. # Extract list of available tagged configurations in $ofile.
  1767. # Note that this assumes the entire list is on one line.
  1768. available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
  1769. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  1770. for tagname in $tagnames; do
  1771. IFS="$lt_save_ifs"
  1772. # Check whether tagname contains only valid characters
  1773. case `$echo "X$tagname" | $Xsed -e 's:[[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]]::g'` in
  1774. "") ;;
  1775. *) AC_MSG_ERROR([invalid tag name: $tagname])
  1776. ;;
  1777. esac
  1778. if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
  1779. then
  1780. AC_MSG_ERROR([tag name \"$tagname\" already exists])
  1781. fi
  1782. # Update the list of available tags.
  1783. if test -n "$tagname"; then
  1784. echo appending configuration tag \"$tagname\" to $ofile
  1785. case $tagname in
  1786. CXX)
  1787. if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
  1788. ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
  1789. (test "X$CXX" != "Xg++"))) ; then
  1790. AC_LIBTOOL_LANG_CXX_CONFIG
  1791. else
  1792. tagname=""
  1793. fi
  1794. ;;
  1795. F77)
  1796. if test -n "$F77" && test "X$F77" != "Xno"; then
  1797. AC_LIBTOOL_LANG_F77_CONFIG
  1798. else
  1799. tagname=""
  1800. fi
  1801. ;;
  1802. GCJ)
  1803. if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
  1804. AC_LIBTOOL_LANG_GCJ_CONFIG
  1805. else
  1806. tagname=""
  1807. fi
  1808. ;;
  1809. RC)
  1810. AC_LIBTOOL_LANG_RC_CONFIG
  1811. ;;
  1812. *)
  1813. AC_MSG_ERROR([Unsupported tag name: $tagname])
  1814. ;;
  1815. esac
  1816. # Append the new tag name to the list of available tags.
  1817. if test -n "$tagname" ; then
  1818. available_tags="$available_tags $tagname"
  1819. fi
  1820. fi
  1821. done
  1822. IFS="$lt_save_ifs"
  1823. # Now substitute the updated list of available tags.
  1824. if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
  1825. mv "${ofile}T" "$ofile"
  1826. chmod +x "$ofile"
  1827. else
  1828. rm -f "${ofile}T"
  1829. AC_MSG_ERROR([unable to update list of available tagged configurations.])
  1830. fi
  1831. fi
  1832. ])# _LT_AC_TAGCONFIG
  1833. # AC_LIBTOOL_DLOPEN
  1834. # -----------------
  1835. # enable checks for dlopen support
  1836. AC_DEFUN([AC_LIBTOOL_DLOPEN],
  1837. [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])
  1838. ])# AC_LIBTOOL_DLOPEN
  1839. # AC_LIBTOOL_WIN32_DLL
  1840. # --------------------
  1841. # declare package support for building win32 DLLs
  1842. AC_DEFUN([AC_LIBTOOL_WIN32_DLL],
  1843. [AC_BEFORE([$0], [AC_LIBTOOL_SETUP])
  1844. ])# AC_LIBTOOL_WIN32_DLL
  1845. # AC_ENABLE_SHARED([DEFAULT])
  1846. # ---------------------------
  1847. # implement the --enable-shared flag
  1848. # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
  1849. AC_DEFUN([AC_ENABLE_SHARED],
  1850. [define([AC_ENABLE_SHARED_DEFAULT], ifelse($1, no, no, yes))dnl
  1851. AC_ARG_ENABLE([shared],
  1852. [AC_HELP_STRING([--enable-shared@<:@=PKGS@:>@],
  1853. [build shared libraries @<:@default=]AC_ENABLE_SHARED_DEFAULT[@:>@])],
  1854. [p=${PACKAGE-default}
  1855. case $enableval in
  1856. yes) enable_shared=yes ;;
  1857. no) enable_shared=no ;;
  1858. *)
  1859. enable_shared=no
  1860. # Look at the argument we got. We use all the common list separators.
  1861. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  1862. for pkg in $enableval; do
  1863. IFS="$lt_save_ifs"
  1864. if test "X$pkg" = "X$p"; then
  1865. enable_shared=yes
  1866. fi
  1867. done
  1868. IFS="$lt_save_ifs"
  1869. ;;
  1870. esac],
  1871. [enable_shared=]AC_ENABLE_SHARED_DEFAULT)
  1872. ])# AC_ENABLE_SHARED
  1873. # AC_DISABLE_SHARED
  1874. # -----------------
  1875. # set the default shared flag to --disable-shared
  1876. AC_DEFUN([AC_DISABLE_SHARED],
  1877. [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
  1878. AC_ENABLE_SHARED(no)
  1879. ])# AC_DISABLE_SHARED
  1880. # AC_ENABLE_STATIC([DEFAULT])
  1881. # ---------------------------
  1882. # implement the --enable-static flag
  1883. # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
  1884. AC_DEFUN([AC_ENABLE_STATIC],
  1885. [define([AC_ENABLE_STATIC_DEFAULT], ifelse($1, no, no, yes))dnl
  1886. AC_ARG_ENABLE([static],
  1887. [AC_HELP_STRING([--enable-static@<:@=PKGS@:>@],
  1888. [build static libraries @<:@default=]AC_ENABLE_STATIC_DEFAULT[@:>@])],
  1889. [p=${PACKAGE-default}
  1890. case $enableval in
  1891. yes) enable_static=yes ;;
  1892. no) enable_static=no ;;
  1893. *)
  1894. enable_static=no
  1895. # Look at the argument we got. We use all the common list separators.
  1896. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  1897. for pkg in $enableval; do
  1898. IFS="$lt_save_ifs"
  1899. if test "X$pkg" = "X$p"; then
  1900. enable_static=yes
  1901. fi
  1902. done
  1903. IFS="$lt_save_ifs"
  1904. ;;
  1905. esac],
  1906. [enable_static=]AC_ENABLE_STATIC_DEFAULT)
  1907. ])# AC_ENABLE_STATIC
  1908. # AC_DISABLE_STATIC
  1909. # -----------------
  1910. # set the default static flag to --disable-static
  1911. AC_DEFUN([AC_DISABLE_STATIC],
  1912. [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
  1913. AC_ENABLE_STATIC(no)
  1914. ])# AC_DISABLE_STATIC
  1915. # AC_ENABLE_FAST_INSTALL([DEFAULT])
  1916. # ---------------------------------
  1917. # implement the --enable-fast-install flag
  1918. # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
  1919. AC_DEFUN([AC_ENABLE_FAST_INSTALL],
  1920. [define([AC_ENABLE_FAST_INSTALL_DEFAULT], ifelse($1, no, no, yes))dnl
  1921. AC_ARG_ENABLE([fast-install],
  1922. [AC_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@],
  1923. [optimize for fast installation @<:@default=]AC_ENABLE_FAST_INSTALL_DEFAULT[@:>@])],
  1924. [p=${PACKAGE-default}
  1925. case $enableval in
  1926. yes) enable_fast_install=yes ;;
  1927. no) enable_fast_install=no ;;
  1928. *)
  1929. enable_fast_install=no
  1930. # Look at the argument we got. We use all the common list separators.
  1931. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  1932. for pkg in $enableval; do
  1933. IFS="$lt_save_ifs"
  1934. if test "X$pkg" = "X$p"; then
  1935. enable_fast_install=yes
  1936. fi
  1937. done
  1938. IFS="$lt_save_ifs"
  1939. ;;
  1940. esac],
  1941. [enable_fast_install=]AC_ENABLE_FAST_INSTALL_DEFAULT)
  1942. ])# AC_ENABLE_FAST_INSTALL
  1943. # AC_DISABLE_FAST_INSTALL
  1944. # -----------------------
  1945. # set the default to --disable-fast-install
  1946. AC_DEFUN([AC_DISABLE_FAST_INSTALL],
  1947. [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
  1948. AC_ENABLE_FAST_INSTALL(no)
  1949. ])# AC_DISABLE_FAST_INSTALL
  1950. # AC_LIBTOOL_PICMODE([MODE])
  1951. # --------------------------
  1952. # implement the --with-pic flag
  1953. # MODE is either `yes' or `no'. If omitted, it defaults to `both'.
  1954. AC_DEFUN([AC_LIBTOOL_PICMODE],
  1955. [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
  1956. pic_mode=ifelse($#,1,$1,default)
  1957. ])# AC_LIBTOOL_PICMODE
  1958. # AC_PROG_EGREP
  1959. # -------------
  1960. # This is predefined starting with Autoconf 2.54, so this conditional
  1961. # definition can be removed once we require Autoconf 2.54 or later.
  1962. m4_ifndef([AC_PROG_EGREP], [AC_DEFUN([AC_PROG_EGREP],
  1963. [AC_CACHE_CHECK([for egrep], [ac_cv_prog_egrep],
  1964. [if echo a | (grep -E '(a|b)') >/dev/null 2>&1
  1965. then ac_cv_prog_egrep='grep -E'
  1966. else ac_cv_prog_egrep='egrep'
  1967. fi])
  1968. EGREP=$ac_cv_prog_egrep
  1969. AC_SUBST([EGREP])
  1970. ])])
  1971. # AC_PATH_TOOL_PREFIX
  1972. # -------------------
  1973. # find a file program which can recognize shared library
  1974. AC_DEFUN([AC_PATH_TOOL_PREFIX],
  1975. [AC_REQUIRE([AC_PROG_EGREP])dnl
  1976. AC_MSG_CHECKING([for $1])
  1977. AC_CACHE_VAL(lt_cv_path_MAGIC_CMD,
  1978. [case $MAGIC_CMD in
  1979. [[\\/*] | ?:[\\/]*])
  1980. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  1981. ;;
  1982. *)
  1983. lt_save_MAGIC_CMD="$MAGIC_CMD"
  1984. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  1985. dnl $ac_dummy forces splitting on constant user-supplied paths.
  1986. dnl POSIX.2 word splitting is done only on the output of word expansions,
  1987. dnl not every word. This closes a longstanding sh security hole.
  1988. ac_dummy="ifelse([$2], , $PATH, [$2])"
  1989. for ac_dir in $ac_dummy; do
  1990. IFS="$lt_save_ifs"
  1991. test -z "$ac_dir" && ac_dir=.
  1992. if test -f $ac_dir/$1; then
  1993. lt_cv_path_MAGIC_CMD="$ac_dir/$1"
  1994. if test -n "$file_magic_test_file"; then
  1995. case $deplibs_check_method in
  1996. "file_magic "*)
  1997. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  1998. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  1999. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  2000. $EGREP "$file_magic_regex" > /dev/null; then
  2001. :
  2002. else
  2003. cat <<EOF 1>&2
  2004. *** Warning: the command libtool uses to detect shared libraries,
  2005. *** $file_magic_cmd, produces output that libtool cannot recognize.
  2006. *** The result is that libtool may fail to recognize shared libraries
  2007. *** as such. This will affect the creation of libtool libraries that
  2008. *** depend on shared libraries, but programs linked with such libtool
  2009. *** libraries will work regardless of this problem. Nevertheless, you
  2010. *** may want to report the problem to your system manager and/or to
  2011. *** bug-libtool@gnu.org
  2012. EOF
  2013. fi ;;
  2014. esac
  2015. fi
  2016. break
  2017. fi
  2018. done
  2019. IFS="$lt_save_ifs"
  2020. MAGIC_CMD="$lt_save_MAGIC_CMD"
  2021. ;;
  2022. esac])
  2023. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  2024. if test -n "$MAGIC_CMD"; then
  2025. AC_MSG_RESULT($MAGIC_CMD)
  2026. else
  2027. AC_MSG_RESULT(no)
  2028. fi
  2029. ])# AC_PATH_TOOL_PREFIX
  2030. # AC_PATH_MAGIC
  2031. # -------------
  2032. # find a file program which can recognize a shared library
  2033. AC_DEFUN([AC_PATH_MAGIC],
  2034. [AC_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH)
  2035. if test -z "$lt_cv_path_MAGIC_CMD"; then
  2036. if test -n "$ac_tool_prefix"; then
  2037. AC_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH)
  2038. else
  2039. MAGIC_CMD=:
  2040. fi
  2041. fi
  2042. ])# AC_PATH_MAGIC
  2043. # AC_PROG_LD
  2044. # ----------
  2045. # find the pathname to the GNU or non-GNU linker
  2046. AC_DEFUN([AC_PROG_LD],
  2047. [AC_ARG_WITH([gnu-ld],
  2048. [AC_HELP_STRING([--with-gnu-ld],
  2049. [assume the C compiler uses GNU ld @<:@default=no@:>@])],
  2050. [test "$withval" = no || with_gnu_ld=yes],
  2051. [with_gnu_ld=no])
  2052. AC_REQUIRE([LT_AC_PROG_SED])dnl
  2053. AC_REQUIRE([AC_PROG_CC])dnl
  2054. AC_REQUIRE([AC_CANONICAL_HOST])dnl
  2055. AC_REQUIRE([AC_CANONICAL_BUILD])dnl
  2056. ac_prog=ld
  2057. if test "$GCC" = yes; then
  2058. # Check if gcc -print-prog-name=ld gives a path.
  2059. AC_MSG_CHECKING([for ld used by $CC])
  2060. case $host in
  2061. *-*-mingw*)
  2062. # gcc leaves a trailing carriage return which upsets mingw
  2063. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  2064. *)
  2065. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  2066. esac
  2067. case $ac_prog in
  2068. # Accept absolute paths.
  2069. [[\\/]]* | ?:[[\\/]]*)
  2070. re_direlt='/[[^/]][[^/]]*/\.\./'
  2071. # Canonicalize the pathname of ld
  2072. ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
  2073. while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
  2074. ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
  2075. done
  2076. test -z "$LD" && LD="$ac_prog"
  2077. ;;
  2078. "")
  2079. # If it fails, then pretend we aren't using GCC.
  2080. ac_prog=ld
  2081. ;;
  2082. *)
  2083. # If it is relative, then search for the first ld in PATH.
  2084. with_gnu_ld=unknown
  2085. ;;
  2086. esac
  2087. elif test "$with_gnu_ld" = yes; then
  2088. AC_MSG_CHECKING([for GNU ld])
  2089. else
  2090. AC_MSG_CHECKING([for non-GNU ld])
  2091. fi
  2092. AC_CACHE_VAL(lt_cv_path_LD,
  2093. [if test -z "$LD"; then
  2094. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  2095. for ac_dir in $PATH; do
  2096. IFS="$lt_save_ifs"
  2097. test -z "$ac_dir" && ac_dir=.
  2098. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  2099. lt_cv_path_LD="$ac_dir/$ac_prog"
  2100. # Check to see if the program is GNU ld. I'd rather use --version,
  2101. # but apparently some variants of GNU ld only accept -v.
  2102. # Break only if it was the GNU/non-GNU ld that we prefer.
  2103. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  2104. *GNU* | *'with BFD'*)
  2105. test "$with_gnu_ld" != no && break
  2106. ;;
  2107. *)
  2108. test "$with_gnu_ld" != yes && break
  2109. ;;
  2110. esac
  2111. fi
  2112. done
  2113. IFS="$lt_save_ifs"
  2114. else
  2115. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  2116. fi])
  2117. LD="$lt_cv_path_LD"
  2118. if test -n "$LD"; then
  2119. AC_MSG_RESULT($LD)
  2120. else
  2121. AC_MSG_RESULT(no)
  2122. fi
  2123. test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])
  2124. AC_PROG_LD_GNU
  2125. ])# AC_PROG_LD
  2126. # AC_PROG_LD_GNU
  2127. # --------------
  2128. AC_DEFUN([AC_PROG_LD_GNU],
  2129. [AC_REQUIRE([AC_PROG_EGREP])dnl
  2130. AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld,
  2131. [# I'd rather use --version here, but apparently some GNU lds only accept -v.
  2132. case `$LD -v 2>&1 </dev/null` in
  2133. *GNU* | *'with BFD'*)
  2134. lt_cv_prog_gnu_ld=yes
  2135. ;;
  2136. *)
  2137. lt_cv_prog_gnu_ld=no
  2138. ;;
  2139. esac])
  2140. with_gnu_ld=$lt_cv_prog_gnu_ld
  2141. ])# AC_PROG_LD_GNU
  2142. # AC_PROG_LD_RELOAD_FLAG
  2143. # ----------------------
  2144. # find reload flag for linker
  2145. # -- PORTME Some linkers may need a different reload flag.
  2146. AC_DEFUN([AC_PROG_LD_RELOAD_FLAG],
  2147. [AC_CACHE_CHECK([for $LD option to reload object files],
  2148. lt_cv_ld_reload_flag,
  2149. [lt_cv_ld_reload_flag='-r'])
  2150. reload_flag=$lt_cv_ld_reload_flag
  2151. case $reload_flag in
  2152. "" | " "*) ;;
  2153. *) reload_flag=" $reload_flag" ;;
  2154. esac
  2155. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  2156. case $host_os in
  2157. darwin*)
  2158. if test "$GCC" = yes; then
  2159. reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
  2160. else
  2161. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  2162. fi
  2163. ;;
  2164. esac
  2165. ])# AC_PROG_LD_RELOAD_FLAG
  2166. # AC_DEPLIBS_CHECK_METHOD
  2167. # -----------------------
  2168. # how to check for library dependencies
  2169. # -- PORTME fill in with the dynamic library characteristics
  2170. AC_DEFUN([AC_DEPLIBS_CHECK_METHOD],
  2171. [AC_CACHE_CHECK([how to recognize dependent libraries],
  2172. lt_cv_deplibs_check_method,
  2173. [lt_cv_file_magic_cmd='$MAGIC_CMD'
  2174. lt_cv_file_magic_test_file=
  2175. lt_cv_deplibs_check_method='unknown'
  2176. # Need to set the preceding variable on all platforms that support
  2177. # interlibrary dependencies.
  2178. # 'none' -- dependencies not supported.
  2179. # `unknown' -- same as none, but documents that we really don't know.
  2180. # 'pass_all' -- all dependencies passed with no checks.
  2181. # 'test_compile' -- check by making test program.
  2182. # 'file_magic [[regex]]' -- check by looking for files in library path
  2183. # which responds to the $file_magic_cmd with a given extended regex.
  2184. # If you have `file' or equivalent on your system and you're not sure
  2185. # whether `pass_all' will *always* work, you probably want this one.
  2186. case $host_os in
  2187. aix[[4-9]]*)
  2188. lt_cv_deplibs_check_method=pass_all
  2189. ;;
  2190. beos*)
  2191. lt_cv_deplibs_check_method=pass_all
  2192. ;;
  2193. bsdi[[45]]*)
  2194. lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)'
  2195. lt_cv_file_magic_cmd='/usr/bin/file -L'
  2196. lt_cv_file_magic_test_file=/shlib/libc.so
  2197. ;;
  2198. cygwin*)
  2199. # func_win32_libid is a shell function defined in ltmain.sh
  2200. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  2201. lt_cv_file_magic_cmd='func_win32_libid'
  2202. ;;
  2203. mingw* | pw32*)
  2204. # Base MSYS/MinGW do not provide the 'file' command needed by
  2205. # func_win32_libid shell function, so use a weaker test based on 'objdump',
  2206. # unless we find 'file', for example because we are cross-compiling.
  2207. if ( file / ) >/dev/null 2>&1; then
  2208. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  2209. lt_cv_file_magic_cmd='func_win32_libid'
  2210. else
  2211. lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
  2212. lt_cv_file_magic_cmd='$OBJDUMP -f'
  2213. fi
  2214. ;;
  2215. darwin* | rhapsody*)
  2216. lt_cv_deplibs_check_method=pass_all
  2217. ;;
  2218. freebsd* | dragonfly*)
  2219. if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
  2220. case $host_cpu in
  2221. i*86 )
  2222. # Not sure whether the presence of OpenBSD here was a mistake.
  2223. # Let's accept both of them until this is cleared up.
  2224. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[[3-9]]86 (compact )?demand paged shared library'
  2225. lt_cv_file_magic_cmd=/usr/bin/file
  2226. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  2227. ;;
  2228. esac
  2229. else
  2230. lt_cv_deplibs_check_method=pass_all
  2231. fi
  2232. ;;
  2233. gnu*)
  2234. lt_cv_deplibs_check_method=pass_all
  2235. ;;
  2236. hpux10.20* | hpux11*)
  2237. lt_cv_file_magic_cmd=/usr/bin/file
  2238. case $host_cpu in
  2239. ia64*)
  2240. lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64'
  2241. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  2242. ;;
  2243. hppa*64*)
  2244. [lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]']
  2245. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  2246. ;;
  2247. *)
  2248. lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]].[[0-9]]) shared library'
  2249. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  2250. ;;
  2251. esac
  2252. ;;
  2253. interix[[3-9]]*)
  2254. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  2255. lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|\.a)$'
  2256. ;;
  2257. irix5* | irix6* | nonstopux*)
  2258. case $LD in
  2259. *-32|*"-32 ") libmagic=32-bit;;
  2260. *-n32|*"-n32 ") libmagic=N32;;
  2261. *-64|*"-64 ") libmagic=64-bit;;
  2262. *) libmagic=never-match;;
  2263. esac
  2264. lt_cv_deplibs_check_method=pass_all
  2265. ;;
  2266. # This must be Linux ELF.
  2267. linux* | k*bsd*-gnu)
  2268. lt_cv_deplibs_check_method=pass_all
  2269. ;;
  2270. netbsd*)
  2271. if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
  2272. lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
  2273. else
  2274. lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$'
  2275. fi
  2276. ;;
  2277. newos6*)
  2278. lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (executable|dynamic lib)'
  2279. lt_cv_file_magic_cmd=/usr/bin/file
  2280. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  2281. ;;
  2282. nto-qnx*)
  2283. lt_cv_deplibs_check_method=unknown
  2284. ;;
  2285. openbsd*)
  2286. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  2287. lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$'
  2288. else
  2289. lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
  2290. fi
  2291. ;;
  2292. osf3* | osf4* | osf5*)
  2293. lt_cv_deplibs_check_method=pass_all
  2294. ;;
  2295. rdos*)
  2296. lt_cv_deplibs_check_method=pass_all
  2297. ;;
  2298. solaris*)
  2299. lt_cv_deplibs_check_method=pass_all
  2300. ;;
  2301. sysv4 | sysv4.3*)
  2302. case $host_vendor in
  2303. motorola)
  2304. 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]]'
  2305. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  2306. ;;
  2307. ncr)
  2308. lt_cv_deplibs_check_method=pass_all
  2309. ;;
  2310. sequent)
  2311. lt_cv_file_magic_cmd='/bin/file'
  2312. lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )'
  2313. ;;
  2314. sni)
  2315. lt_cv_file_magic_cmd='/bin/file'
  2316. lt_cv_deplibs_check_method="file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB dynamic lib"
  2317. lt_cv_file_magic_test_file=/lib/libc.so
  2318. ;;
  2319. siemens)
  2320. lt_cv_deplibs_check_method=pass_all
  2321. ;;
  2322. pc)
  2323. lt_cv_deplibs_check_method=pass_all
  2324. ;;
  2325. esac
  2326. ;;
  2327. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  2328. lt_cv_deplibs_check_method=pass_all
  2329. ;;
  2330. esac
  2331. ])
  2332. file_magic_cmd=$lt_cv_file_magic_cmd
  2333. deplibs_check_method=$lt_cv_deplibs_check_method
  2334. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  2335. ])# AC_DEPLIBS_CHECK_METHOD
  2336. # AC_PROG_NM
  2337. # ----------
  2338. # find the pathname to a BSD-compatible name lister
  2339. AC_DEFUN([AC_PROG_NM],
  2340. [AC_CACHE_CHECK([for BSD-compatible nm], lt_cv_path_NM,
  2341. [if test -n "$NM"; then
  2342. # Let the user override the test.
  2343. lt_cv_path_NM="$NM"
  2344. else
  2345. lt_nm_to_check="${ac_tool_prefix}nm"
  2346. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  2347. lt_nm_to_check="$lt_nm_to_check nm"
  2348. fi
  2349. for lt_tmp_nm in $lt_nm_to_check; do
  2350. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  2351. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  2352. IFS="$lt_save_ifs"
  2353. test -z "$ac_dir" && ac_dir=.
  2354. tmp_nm="$ac_dir/$lt_tmp_nm"
  2355. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
  2356. # Check to see if the nm accepts a BSD-compat flag.
  2357. # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  2358. # nm: unknown option "B" ignored
  2359. # Tru64's nm complains that /dev/null is an invalid object file
  2360. case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
  2361. */dev/null* | *'Invalid file or object type'*)
  2362. lt_cv_path_NM="$tmp_nm -B"
  2363. break
  2364. ;;
  2365. *)
  2366. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  2367. */dev/null*)
  2368. lt_cv_path_NM="$tmp_nm -p"
  2369. break
  2370. ;;
  2371. *)
  2372. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  2373. continue # so that we can try to find one that supports BSD flags
  2374. ;;
  2375. esac
  2376. ;;
  2377. esac
  2378. fi
  2379. done
  2380. IFS="$lt_save_ifs"
  2381. done
  2382. test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
  2383. fi])
  2384. NM="$lt_cv_path_NM"
  2385. ])# AC_PROG_NM
  2386. # AC_CHECK_LIBM
  2387. # -------------
  2388. # check for math library
  2389. AC_DEFUN([AC_CHECK_LIBM],
  2390. [AC_REQUIRE([AC_CANONICAL_HOST])dnl
  2391. LIBM=
  2392. case $host in
  2393. *-*-beos* | *-*-cygwin* | *-*-pw32* | *-*-darwin*)
  2394. # These system don't have libm, or don't need it
  2395. ;;
  2396. *-ncr-sysv4.3*)
  2397. AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM="-lmw")
  2398. AC_CHECK_LIB(m, cos, LIBM="$LIBM -lm")
  2399. ;;
  2400. *)
  2401. AC_CHECK_LIB(m, cos, LIBM="-lm")
  2402. ;;
  2403. esac
  2404. ])# AC_CHECK_LIBM
  2405. # AC_LIBLTDL_CONVENIENCE([DIRECTORY])
  2406. # -----------------------------------
  2407. # sets LIBLTDL to the link flags for the libltdl convenience library and
  2408. # LTDLINCL to the include flags for the libltdl header and adds
  2409. # --enable-ltdl-convenience to the configure arguments. Note that
  2410. # AC_CONFIG_SUBDIRS is not called here. If DIRECTORY is not provided,
  2411. # it is assumed to be `libltdl'. LIBLTDL will be prefixed with
  2412. # '${top_builddir}/' and LTDLINCL will be prefixed with '${top_srcdir}/'
  2413. # (note the single quotes!). If your package is not flat and you're not
  2414. # using automake, define top_builddir and top_srcdir appropriately in
  2415. # the Makefiles.
  2416. AC_DEFUN([AC_LIBLTDL_CONVENIENCE],
  2417. [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
  2418. case $enable_ltdl_convenience in
  2419. no) AC_MSG_ERROR([this package needs a convenience libltdl]) ;;
  2420. "") enable_ltdl_convenience=yes
  2421. ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
  2422. esac
  2423. LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdlc.la
  2424. LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
  2425. # For backwards non-gettext consistent compatibility...
  2426. INCLTDL="$LTDLINCL"
  2427. ])# AC_LIBLTDL_CONVENIENCE
  2428. # AC_LIBLTDL_INSTALLABLE([DIRECTORY])
  2429. # -----------------------------------
  2430. # sets LIBLTDL to the link flags for the libltdl installable library and
  2431. # LTDLINCL to the include flags for the libltdl header and adds
  2432. # --enable-ltdl-install to the configure arguments. Note that
  2433. # AC_CONFIG_SUBDIRS is not called here. If DIRECTORY is not provided,
  2434. # and an installed libltdl is not found, it is assumed to be `libltdl'.
  2435. # LIBLTDL will be prefixed with '${top_builddir}/'# and LTDLINCL with
  2436. # '${top_srcdir}/' (note the single quotes!). If your package is not
  2437. # flat and you're not using automake, define top_builddir and top_srcdir
  2438. # appropriately in the Makefiles.
  2439. # In the future, this macro may have to be called after AC_PROG_LIBTOOL.
  2440. AC_DEFUN([AC_LIBLTDL_INSTALLABLE],
  2441. [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
  2442. AC_CHECK_LIB(ltdl, lt_dlinit,
  2443. [test x"$enable_ltdl_install" != xyes && enable_ltdl_install=no],
  2444. [if test x"$enable_ltdl_install" = xno; then
  2445. AC_MSG_WARN([libltdl not installed, but installation disabled])
  2446. else
  2447. enable_ltdl_install=yes
  2448. fi
  2449. ])
  2450. if test x"$enable_ltdl_install" = x"yes"; then
  2451. ac_configure_args="$ac_configure_args --enable-ltdl-install"
  2452. LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdl.la
  2453. LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
  2454. else
  2455. ac_configure_args="$ac_configure_args --enable-ltdl-install=no"
  2456. LIBLTDL="-lltdl"
  2457. LTDLINCL=
  2458. fi
  2459. # For backwards non-gettext consistent compatibility...
  2460. INCLTDL="$LTDLINCL"
  2461. ])# AC_LIBLTDL_INSTALLABLE
  2462. # AC_LIBTOOL_CXX
  2463. # --------------
  2464. # enable support for C++ libraries
  2465. AC_DEFUN([AC_LIBTOOL_CXX],
  2466. [AC_REQUIRE([_LT_AC_LANG_CXX])
  2467. ])# AC_LIBTOOL_CXX
  2468. # _LT_AC_LANG_CXX
  2469. # ---------------
  2470. AC_DEFUN([_LT_AC_LANG_CXX],
  2471. [AC_REQUIRE([AC_PROG_CXX])
  2472. AC_REQUIRE([_LT_AC_PROG_CXXCPP])
  2473. _LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}CXX])
  2474. ])# _LT_AC_LANG_CXX
  2475. # _LT_AC_PROG_CXXCPP
  2476. # ------------------
  2477. AC_DEFUN([_LT_AC_PROG_CXXCPP],
  2478. [
  2479. AC_REQUIRE([AC_PROG_CXX])
  2480. if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
  2481. ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
  2482. (test "X$CXX" != "Xg++"))) ; then
  2483. AC_PROG_CXXCPP
  2484. fi
  2485. ])# _LT_AC_PROG_CXXCPP
  2486. # AC_LIBTOOL_F77
  2487. # --------------
  2488. # enable support for Fortran 77 libraries
  2489. AC_DEFUN([AC_LIBTOOL_F77],
  2490. [AC_REQUIRE([_LT_AC_LANG_F77])
  2491. ])# AC_LIBTOOL_F77
  2492. # _LT_AC_LANG_F77
  2493. # ---------------
  2494. AC_DEFUN([_LT_AC_LANG_F77],
  2495. [AC_REQUIRE([AC_PROG_F77])
  2496. _LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}F77])
  2497. ])# _LT_AC_LANG_F77
  2498. # AC_LIBTOOL_GCJ
  2499. # --------------
  2500. # enable support for GCJ libraries
  2501. AC_DEFUN([AC_LIBTOOL_GCJ],
  2502. [AC_REQUIRE([_LT_AC_LANG_GCJ])
  2503. ])# AC_LIBTOOL_GCJ
  2504. # _LT_AC_LANG_GCJ
  2505. # ---------------
  2506. AC_DEFUN([_LT_AC_LANG_GCJ],
  2507. [AC_PROVIDE_IFELSE([AC_PROG_GCJ],[],
  2508. [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],[],
  2509. [AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ],[],
  2510. [ifdef([AC_PROG_GCJ],[AC_REQUIRE([AC_PROG_GCJ])],
  2511. [ifdef([A][M_PROG_GCJ],[AC_REQUIRE([A][M_PROG_GCJ])],
  2512. [AC_REQUIRE([A][C_PROG_GCJ_OR_A][M_PROG_GCJ])])])])])])
  2513. _LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}GCJ])
  2514. ])# _LT_AC_LANG_GCJ
  2515. # AC_LIBTOOL_RC
  2516. # -------------
  2517. # enable support for Windows resource files
  2518. AC_DEFUN([AC_LIBTOOL_RC],
  2519. [AC_REQUIRE([LT_AC_PROG_RC])
  2520. _LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}RC])
  2521. ])# AC_LIBTOOL_RC
  2522. # AC_LIBTOOL_LANG_C_CONFIG
  2523. # ------------------------
  2524. # Ensure that the configuration vars for the C compiler are
  2525. # suitably defined. Those variables are subsequently used by
  2526. # AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
  2527. AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG], [_LT_AC_LANG_C_CONFIG])
  2528. AC_DEFUN([_LT_AC_LANG_C_CONFIG],
  2529. [lt_save_CC="$CC"
  2530. AC_LANG_PUSH(C)
  2531. # Source file extension for C test sources.
  2532. ac_ext=c
  2533. # Object file extension for compiled C test sources.
  2534. objext=o
  2535. _LT_AC_TAGVAR(objext, $1)=$objext
  2536. # Code to be used in simple compile tests
  2537. lt_simple_compile_test_code="int some_variable = 0;"
  2538. # Code to be used in simple link tests
  2539. lt_simple_link_test_code='int main(){return(0);}'
  2540. _LT_AC_SYS_COMPILER
  2541. # save warnings/boilerplate of simple test code
  2542. _LT_COMPILER_BOILERPLATE
  2543. _LT_LINKER_BOILERPLATE
  2544. AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1)
  2545. AC_LIBTOOL_PROG_COMPILER_PIC($1)
  2546. AC_LIBTOOL_PROG_CC_C_O($1)
  2547. AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
  2548. AC_LIBTOOL_PROG_LD_SHLIBS($1)
  2549. AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
  2550. AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
  2551. AC_LIBTOOL_SYS_LIB_STRIP
  2552. AC_LIBTOOL_DLOPEN_SELF
  2553. # Report which library types will actually be built
  2554. AC_MSG_CHECKING([if libtool supports shared libraries])
  2555. AC_MSG_RESULT([$can_build_shared])
  2556. AC_MSG_CHECKING([whether to build shared libraries])
  2557. test "$can_build_shared" = "no" && enable_shared=no
  2558. # On AIX, shared libraries and static libraries use the same namespace, and
  2559. # are all built from PIC.
  2560. case $host_os in
  2561. aix3*)
  2562. test "$enable_shared" = yes && enable_static=no
  2563. if test -n "$RANLIB"; then
  2564. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  2565. postinstall_cmds='$RANLIB $lib'
  2566. fi
  2567. ;;
  2568. aix[[4-9]]*)
  2569. if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  2570. test "$enable_shared" = yes && enable_static=no
  2571. fi
  2572. ;;
  2573. esac
  2574. AC_MSG_RESULT([$enable_shared])
  2575. AC_MSG_CHECKING([whether to build static libraries])
  2576. # Make sure either enable_shared or enable_static is yes.
  2577. test "$enable_shared" = yes || enable_static=yes
  2578. AC_MSG_RESULT([$enable_static])
  2579. AC_LIBTOOL_CONFIG($1)
  2580. AC_LANG_POP
  2581. CC="$lt_save_CC"
  2582. ])# AC_LIBTOOL_LANG_C_CONFIG
  2583. # AC_LIBTOOL_LANG_CXX_CONFIG
  2584. # --------------------------
  2585. # Ensure that the configuration vars for the C compiler are
  2586. # suitably defined. Those variables are subsequently used by
  2587. # AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
  2588. AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG], [_LT_AC_LANG_CXX_CONFIG(CXX)])
  2589. AC_DEFUN([_LT_AC_LANG_CXX_CONFIG],
  2590. [AC_LANG_PUSH(C++)
  2591. AC_REQUIRE([AC_PROG_CXX])
  2592. AC_REQUIRE([_LT_AC_PROG_CXXCPP])
  2593. _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  2594. _LT_AC_TAGVAR(allow_undefined_flag, $1)=
  2595. _LT_AC_TAGVAR(always_export_symbols, $1)=no
  2596. _LT_AC_TAGVAR(archive_expsym_cmds, $1)=
  2597. _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
  2598. _LT_AC_TAGVAR(hardcode_direct, $1)=no
  2599. _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
  2600. _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
  2601. _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
  2602. _LT_AC_TAGVAR(hardcode_minus_L, $1)=no
  2603. _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
  2604. _LT_AC_TAGVAR(hardcode_automatic, $1)=no
  2605. _LT_AC_TAGVAR(module_cmds, $1)=
  2606. _LT_AC_TAGVAR(module_expsym_cmds, $1)=
  2607. _LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
  2608. _LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
  2609. _LT_AC_TAGVAR(no_undefined_flag, $1)=
  2610. _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
  2611. _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
  2612. # Dependencies to place before and after the object being linked:
  2613. _LT_AC_TAGVAR(predep_objects, $1)=
  2614. _LT_AC_TAGVAR(postdep_objects, $1)=
  2615. _LT_AC_TAGVAR(predeps, $1)=
  2616. _LT_AC_TAGVAR(postdeps, $1)=
  2617. _LT_AC_TAGVAR(compiler_lib_search_path, $1)=
  2618. _LT_AC_TAGVAR(compiler_lib_search_dirs, $1)=
  2619. # Source file extension for C++ test sources.
  2620. ac_ext=cpp
  2621. # Object file extension for compiled C++ test sources.
  2622. objext=o
  2623. _LT_AC_TAGVAR(objext, $1)=$objext
  2624. # Code to be used in simple compile tests
  2625. lt_simple_compile_test_code="int some_variable = 0;"
  2626. # Code to be used in simple link tests
  2627. lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }'
  2628. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  2629. _LT_AC_SYS_COMPILER
  2630. # save warnings/boilerplate of simple test code
  2631. _LT_COMPILER_BOILERPLATE
  2632. _LT_LINKER_BOILERPLATE
  2633. # Allow CC to be a program name with arguments.
  2634. lt_save_CC=$CC
  2635. lt_save_LD=$LD
  2636. lt_save_GCC=$GCC
  2637. GCC=$GXX
  2638. lt_save_with_gnu_ld=$with_gnu_ld
  2639. lt_save_path_LD=$lt_cv_path_LD
  2640. if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
  2641. lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  2642. else
  2643. $as_unset lt_cv_prog_gnu_ld
  2644. fi
  2645. if test -n "${lt_cv_path_LDCXX+set}"; then
  2646. lt_cv_path_LD=$lt_cv_path_LDCXX
  2647. else
  2648. $as_unset lt_cv_path_LD
  2649. fi
  2650. test -z "${LDCXX+set}" || LD=$LDCXX
  2651. CC=${CXX-"c++"}
  2652. compiler=$CC
  2653. _LT_AC_TAGVAR(compiler, $1)=$CC
  2654. _LT_CC_BASENAME([$compiler])
  2655. # We don't want -fno-exception wen compiling C++ code, so set the
  2656. # no_builtin_flag separately
  2657. if test "$GXX" = yes; then
  2658. _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
  2659. else
  2660. _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
  2661. fi
  2662. if test "$GXX" = yes; then
  2663. # Set up default GNU C++ configuration
  2664. AC_PROG_LD
  2665. # Check if GNU C++ uses GNU ld as the underlying linker, since the
  2666. # archiving commands below assume that GNU ld is being used.
  2667. if test "$with_gnu_ld" = yes; then
  2668. _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  2669. _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  2670. _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
  2671. _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  2672. # If archive_cmds runs LD, not CC, wlarc should be empty
  2673. # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
  2674. # investigate it a little bit more. (MM)
  2675. wlarc='${wl}'
  2676. # ancient GNU ld didn't support --whole-archive et. al.
  2677. if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
  2678. grep 'no-whole-archive' > /dev/null; then
  2679. _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  2680. else
  2681. _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
  2682. fi
  2683. else
  2684. with_gnu_ld=no
  2685. wlarc=
  2686. # A generic and very simple default shared library creation
  2687. # command for GNU C++ for the case where it uses the native
  2688. # linker, instead of GNU ld. If possible, this setting should
  2689. # overridden to take advantage of the native linker features on
  2690. # the platform it is being used on.
  2691. _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  2692. fi
  2693. # Commands to make compiler produce verbose output that lists
  2694. # what "hidden" libraries, object files and flags are used when
  2695. # linking a shared library.
  2696. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
  2697. else
  2698. GXX=no
  2699. with_gnu_ld=no
  2700. wlarc=
  2701. fi
  2702. # PORTME: fill in a description of your system's C++ link characteristics
  2703. AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
  2704. _LT_AC_TAGVAR(ld_shlibs, $1)=yes
  2705. case $host_os in
  2706. aix3*)
  2707. # FIXME: insert proper C++ library support
  2708. _LT_AC_TAGVAR(ld_shlibs, $1)=no
  2709. ;;
  2710. aix[[4-9]]*)
  2711. if test "$host_cpu" = ia64; then
  2712. # On IA64, the linker does run time linking by default, so we don't
  2713. # have to do anything special.
  2714. aix_use_runtimelinking=no
  2715. exp_sym_flag='-Bexport'
  2716. no_entry_flag=""
  2717. else
  2718. aix_use_runtimelinking=no
  2719. # Test if we are trying to use run time linking or normal
  2720. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  2721. # need to do runtime linking.
  2722. case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
  2723. for ld_flag in $LDFLAGS; do
  2724. case $ld_flag in
  2725. *-brtl*)
  2726. aix_use_runtimelinking=yes
  2727. break
  2728. ;;
  2729. esac
  2730. done
  2731. ;;
  2732. esac
  2733. exp_sym_flag='-bexport'
  2734. no_entry_flag='-bnoentry'
  2735. fi
  2736. # When large executables or shared objects are built, AIX ld can
  2737. # have problems creating the table of contents. If linking a library
  2738. # or program results in "error TOC overflow" add -mminimal-toc to
  2739. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  2740. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  2741. _LT_AC_TAGVAR(archive_cmds, $1)=''
  2742. _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  2743. _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
  2744. _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
  2745. if test "$GXX" = yes; then
  2746. case $host_os in aix4.[[012]]|aix4.[[012]].*)
  2747. # We only want to do this on AIX 4.2 and lower, the check
  2748. # below for broken collect2 doesn't work under 4.3+
  2749. collect2name=`${CC} -print-prog-name=collect2`
  2750. if test -f "$collect2name" && \
  2751. strings "$collect2name" | grep resolve_lib_name >/dev/null
  2752. then
  2753. # We have reworked collect2
  2754. :
  2755. else
  2756. # We have old collect2
  2757. _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
  2758. # It fails to find uninstalled libraries when the uninstalled
  2759. # path is not listed in the libpath. Setting hardcode_minus_L
  2760. # to unsupported forces relinking
  2761. _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
  2762. _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  2763. _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
  2764. fi
  2765. ;;
  2766. esac
  2767. shared_flag='-shared'
  2768. if test "$aix_use_runtimelinking" = yes; then
  2769. shared_flag="$shared_flag "'${wl}-G'
  2770. fi
  2771. else
  2772. # not using gcc
  2773. if test "$host_cpu" = ia64; then
  2774. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  2775. # chokes on -Wl,-G. The following line is correct:
  2776. shared_flag='-G'
  2777. else
  2778. if test "$aix_use_runtimelinking" = yes; then
  2779. shared_flag='${wl}-G'
  2780. else
  2781. shared_flag='${wl}-bM:SRE'
  2782. fi
  2783. fi
  2784. fi
  2785. # It seems that -bexpall does not export symbols beginning with
  2786. # underscore (_), so it is better to generate a list of symbols to export.
  2787. _LT_AC_TAGVAR(always_export_symbols, $1)=yes
  2788. if test "$aix_use_runtimelinking" = yes; then
  2789. # Warning - without using the other runtime loading flags (-brtl),
  2790. # -berok will link without error, but may produce a broken library.
  2791. _LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok'
  2792. # Determine the default libpath from the value encoded in an empty executable.
  2793. _LT_AC_SYS_LIBPATH_AIX
  2794. _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
  2795. _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  2796. else
  2797. if test "$host_cpu" = ia64; then
  2798. _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
  2799. _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
  2800. _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
  2801. else
  2802. # Determine the default libpath from the value encoded in an empty executable.
  2803. _LT_AC_SYS_LIBPATH_AIX
  2804. _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
  2805. # Warning - without using the other run time loading flags,
  2806. # -berok will link without error, but may produce a broken library.
  2807. _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
  2808. _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
  2809. # Exported symbols can be pulled into shared objects from archives
  2810. _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
  2811. _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
  2812. # This is similar to how AIX traditionally builds its shared libraries.
  2813. _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
  2814. fi
  2815. fi
  2816. ;;
  2817. beos*)
  2818. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  2819. _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
  2820. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  2821. # support --undefined. This deserves some investigation. FIXME
  2822. _LT_AC_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  2823. else
  2824. _LT_AC_TAGVAR(ld_shlibs, $1)=no
  2825. fi
  2826. ;;
  2827. chorus*)
  2828. case $cc_basename in
  2829. *)
  2830. # FIXME: insert proper C++ library support
  2831. _LT_AC_TAGVAR(ld_shlibs, $1)=no
  2832. ;;
  2833. esac
  2834. ;;
  2835. cygwin* | mingw* | pw32*)
  2836. # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
  2837. # as there is no search path for DLLs.
  2838. _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  2839. _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
  2840. _LT_AC_TAGVAR(always_export_symbols, $1)=no
  2841. _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
  2842. if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
  2843. _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  2844. # If the export-symbols file already is a .def file (1st line
  2845. # is EXPORTS), use it as is; otherwise, prepend...
  2846. _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  2847. cp $export_symbols $output_objdir/$soname.def;
  2848. else
  2849. echo EXPORTS > $output_objdir/$soname.def;
  2850. cat $export_symbols >> $output_objdir/$soname.def;
  2851. fi~
  2852. $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'
  2853. else
  2854. _LT_AC_TAGVAR(ld_shlibs, $1)=no
  2855. fi
  2856. ;;
  2857. darwin* | rhapsody*)
  2858. _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  2859. _LT_AC_TAGVAR(hardcode_direct, $1)=no
  2860. _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
  2861. _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
  2862. _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=''
  2863. _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
  2864. _LT_AC_TAGVAR(allow_undefined_flag, $1)="$_lt_dar_allow_undefined"
  2865. if test "$GXX" = yes ; then
  2866. output_verbose_link_cmd='echo'
  2867. _LT_AC_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}"
  2868. _LT_AC_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  2869. _LT_AC_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}"
  2870. _LT_AC_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}"
  2871. if test "$lt_cv_apple_cc_single_mod" != "yes"; then
  2872. _LT_AC_TAGVAR(archive_cmds, $1)="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
  2873. _LT_AC_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}"
  2874. fi
  2875. else
  2876. case $cc_basename in
  2877. xlc*)
  2878. output_verbose_link_cmd='echo'
  2879. _LT_AC_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
  2880. _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  2881. # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  2882. _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  2883. _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  2884. ;;
  2885. *)
  2886. _LT_AC_TAGVAR(ld_shlibs, $1)=no
  2887. ;;
  2888. esac
  2889. fi
  2890. ;;
  2891. dgux*)
  2892. case $cc_basename in
  2893. ec++*)
  2894. # FIXME: insert proper C++ library support
  2895. _LT_AC_TAGVAR(ld_shlibs, $1)=no
  2896. ;;
  2897. ghcx*)
  2898. # Green Hills C++ Compiler
  2899. # FIXME: insert proper C++ library support
  2900. _LT_AC_TAGVAR(ld_shlibs, $1)=no
  2901. ;;
  2902. *)
  2903. # FIXME: insert proper C++ library support
  2904. _LT_AC_TAGVAR(ld_shlibs, $1)=no
  2905. ;;
  2906. esac
  2907. ;;
  2908. freebsd[[12]]*)
  2909. # C++ shared libraries reported to be fairly broken before switch to ELF
  2910. _LT_AC_TAGVAR(ld_shlibs, $1)=no
  2911. ;;
  2912. freebsd-elf*)
  2913. _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  2914. ;;
  2915. freebsd* | dragonfly*)
  2916. # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
  2917. # conventions
  2918. _LT_AC_TAGVAR(ld_shlibs, $1)=yes
  2919. ;;
  2920. gnu*)
  2921. ;;
  2922. hpux9*)
  2923. _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  2924. _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  2925. _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  2926. _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  2927. _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
  2928. # but as the default
  2929. # location of the library.
  2930. case $cc_basename in
  2931. CC*)
  2932. # FIXME: insert proper C++ library support
  2933. _LT_AC_TAGVAR(ld_shlibs, $1)=no
  2934. ;;
  2935. aCC*)
  2936. _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  2937. # Commands to make compiler produce verbose output that lists
  2938. # what "hidden" libraries, object files and flags are used when
  2939. # linking a shared library.
  2940. #
  2941. # There doesn't appear to be a way to prevent this compiler from
  2942. # explicitly linking system object files so we need to strip them
  2943. # from the output so that they don't get included in the library
  2944. # dependencies.
  2945. output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "[[-]]L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
  2946. ;;
  2947. *)
  2948. if test "$GXX" = yes; then
  2949. _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  2950. else
  2951. # FIXME: insert proper C++ library support
  2952. _LT_AC_TAGVAR(ld_shlibs, $1)=no
  2953. fi
  2954. ;;
  2955. esac
  2956. ;;
  2957. hpux10*|hpux11*)
  2958. if test $with_gnu_ld = no; then
  2959. _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  2960. _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  2961. case $host_cpu in
  2962. hppa*64*|ia64*) ;;
  2963. *)
  2964. _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  2965. ;;
  2966. esac
  2967. fi
  2968. case $host_cpu in
  2969. hppa*64*|ia64*)
  2970. _LT_AC_TAGVAR(hardcode_direct, $1)=no
  2971. _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  2972. ;;
  2973. *)
  2974. _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  2975. _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
  2976. # but as the default
  2977. # location of the library.
  2978. ;;
  2979. esac
  2980. case $cc_basename in
  2981. CC*)
  2982. # FIXME: insert proper C++ library support
  2983. _LT_AC_TAGVAR(ld_shlibs, $1)=no
  2984. ;;
  2985. aCC*)
  2986. case $host_cpu in
  2987. hppa*64*)
  2988. _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  2989. ;;
  2990. ia64*)
  2991. _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  2992. ;;
  2993. *)
  2994. _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  2995. ;;
  2996. esac
  2997. # Commands to make compiler produce verbose output that lists
  2998. # what "hidden" libraries, object files and flags are used when
  2999. # linking a shared library.
  3000. #
  3001. # There doesn't appear to be a way to prevent this compiler from
  3002. # explicitly linking system object files so we need to strip them
  3003. # from the output so that they don't get included in the library
  3004. # dependencies.
  3005. output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
  3006. ;;
  3007. *)
  3008. if test "$GXX" = yes; then
  3009. if test $with_gnu_ld = no; then
  3010. case $host_cpu in
  3011. hppa*64*)
  3012. _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  3013. ;;
  3014. ia64*)
  3015. _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  3016. ;;
  3017. *)
  3018. _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  3019. ;;
  3020. esac
  3021. fi
  3022. else
  3023. # FIXME: insert proper C++ library support
  3024. _LT_AC_TAGVAR(ld_shlibs, $1)=no
  3025. fi
  3026. ;;
  3027. esac
  3028. ;;
  3029. interix[[3-9]]*)
  3030. _LT_AC_TAGVAR(hardcode_direct, $1)=no
  3031. _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  3032. _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  3033. _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  3034. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  3035. # Instead, shared libraries are loaded at an image base (0x10000000 by
  3036. # default) and relocated if they conflict, which is a slow very memory
  3037. # consuming and fragmenting process. To avoid this, we pick a random,
  3038. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  3039. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  3040. _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  3041. _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  3042. ;;
  3043. irix5* | irix6*)
  3044. case $cc_basename in
  3045. CC*)
  3046. # SGI C++
  3047. _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
  3048. # Archives containing C++ object files must be created using
  3049. # "CC -ar", where "CC" is the IRIX C++ compiler. This is
  3050. # necessary to make sure instantiated templates are included
  3051. # in the archive.
  3052. _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs'
  3053. ;;
  3054. *)
  3055. if test "$GXX" = yes; then
  3056. if test "$with_gnu_ld" = no; then
  3057. _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  3058. else
  3059. _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib'
  3060. fi
  3061. fi
  3062. _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
  3063. ;;
  3064. esac
  3065. _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  3066. _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  3067. ;;
  3068. linux* | k*bsd*-gnu)
  3069. case $cc_basename in
  3070. KCC*)
  3071. # Kuck and Associates, Inc. (KAI) C++ Compiler
  3072. # KCC will only create a shared library if the output file
  3073. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  3074. # to its proper name (with version) after linking.
  3075. _LT_AC_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
  3076. _LT_AC_TAGVAR(archive_expsym_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
  3077. # Commands to make compiler produce verbose output that lists
  3078. # what "hidden" libraries, object files and flags are used when
  3079. # linking a shared library.
  3080. #
  3081. # There doesn't appear to be a way to prevent this compiler from
  3082. # explicitly linking system object files so we need to strip them
  3083. # from the output so that they don't get included in the library
  3084. # dependencies.
  3085. output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | grep "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
  3086. _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath,$libdir'
  3087. _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  3088. # Archives containing C++ object files must be created using
  3089. # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  3090. _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
  3091. ;;
  3092. icpc*)
  3093. # Intel C++
  3094. with_gnu_ld=yes
  3095. # version 8.0 and above of icpc choke on multiply defined symbols
  3096. # if we add $predep_objects and $postdep_objects, however 7.1 and
  3097. # earlier do not add the objects themselves.
  3098. case `$CC -V 2>&1` in
  3099. *"Version 7."*)
  3100. _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  3101. _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  3102. ;;
  3103. *) # Version 8.0 or newer
  3104. tmp_idyn=
  3105. case $host_cpu in
  3106. ia64*) tmp_idyn=' -i_dynamic';;
  3107. esac
  3108. _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  3109. _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  3110. ;;
  3111. esac
  3112. _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  3113. _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  3114. _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  3115. _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  3116. ;;
  3117. pgCC* | pgcpp*)
  3118. # Portland Group C++ compiler
  3119. _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  3120. _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
  3121. _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
  3122. _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  3123. _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
  3124. ;;
  3125. cxx*)
  3126. # Compaq C++
  3127. _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  3128. _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
  3129. runpath_var=LD_RUN_PATH
  3130. _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
  3131. _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  3132. # Commands to make compiler produce verbose output that lists
  3133. # what "hidden" libraries, object files and flags are used when
  3134. # linking a shared library.
  3135. #
  3136. # There doesn't appear to be a way to prevent this compiler from
  3137. # explicitly linking system object files so we need to strip them
  3138. # from the output so that they don't get included in the library
  3139. # dependencies.
  3140. output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
  3141. ;;
  3142. *)
  3143. case `$CC -V 2>&1 | sed 5q` in
  3144. *Sun\ C*)
  3145. # Sun C++ 5.9
  3146. _LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs'
  3147. _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  3148. _LT_AC_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'
  3149. _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  3150. _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
  3151. # Not sure whether something based on
  3152. # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
  3153. # would be better.
  3154. output_verbose_link_cmd='echo'
  3155. # Archives containing C++ object files must be created using
  3156. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  3157. # necessary to make sure instantiated templates are included
  3158. # in the archive.
  3159. _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
  3160. ;;
  3161. esac
  3162. ;;
  3163. esac
  3164. ;;
  3165. lynxos*)
  3166. # FIXME: insert proper C++ library support
  3167. _LT_AC_TAGVAR(ld_shlibs, $1)=no
  3168. ;;
  3169. m88k*)
  3170. # FIXME: insert proper C++ library support
  3171. _LT_AC_TAGVAR(ld_shlibs, $1)=no
  3172. ;;
  3173. mvs*)
  3174. case $cc_basename in
  3175. cxx*)
  3176. # FIXME: insert proper C++ library support
  3177. _LT_AC_TAGVAR(ld_shlibs, $1)=no
  3178. ;;
  3179. *)
  3180. # FIXME: insert proper C++ library support
  3181. _LT_AC_TAGVAR(ld_shlibs, $1)=no
  3182. ;;
  3183. esac
  3184. ;;
  3185. netbsd*)
  3186. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  3187. _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
  3188. wlarc=
  3189. _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  3190. _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  3191. _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  3192. fi
  3193. # Workaround some broken pre-1.5 toolchains
  3194. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
  3195. ;;
  3196. openbsd2*)
  3197. # C++ shared libraries are fairly broken
  3198. _LT_AC_TAGVAR(ld_shlibs, $1)=no
  3199. ;;
  3200. openbsd*)
  3201. if test -f /usr/libexec/ld.so; then
  3202. _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  3203. _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  3204. _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  3205. _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  3206. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  3207. _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
  3208. _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  3209. _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  3210. fi
  3211. output_verbose_link_cmd='echo'
  3212. else
  3213. _LT_AC_TAGVAR(ld_shlibs, $1)=no
  3214. fi
  3215. ;;
  3216. osf3*)
  3217. case $cc_basename in
  3218. KCC*)
  3219. # Kuck and Associates, Inc. (KAI) C++ Compiler
  3220. # KCC will only create a shared library if the output file
  3221. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  3222. # to its proper name (with version) after linking.
  3223. _LT_AC_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
  3224. _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  3225. _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  3226. # Archives containing C++ object files must be created using
  3227. # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  3228. _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
  3229. ;;
  3230. RCC*)
  3231. # Rational C++ 2.4.1
  3232. # FIXME: insert proper C++ library support
  3233. _LT_AC_TAGVAR(ld_shlibs, $1)=no
  3234. ;;
  3235. cxx*)
  3236. _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
  3237. _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
  3238. _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  3239. _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  3240. # Commands to make compiler produce verbose output that lists
  3241. # what "hidden" libraries, object files and flags are used when
  3242. # linking a shared library.
  3243. #
  3244. # There doesn't appear to be a way to prevent this compiler from
  3245. # explicitly linking system object files so we need to strip them
  3246. # from the output so that they don't get included in the library
  3247. # dependencies.
  3248. output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
  3249. ;;
  3250. *)
  3251. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  3252. _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
  3253. _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  3254. _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  3255. _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  3256. # Commands to make compiler produce verbose output that lists
  3257. # what "hidden" libraries, object files and flags are used when
  3258. # linking a shared library.
  3259. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
  3260. else
  3261. # FIXME: insert proper C++ library support
  3262. _LT_AC_TAGVAR(ld_shlibs, $1)=no
  3263. fi
  3264. ;;
  3265. esac
  3266. ;;
  3267. osf4* | osf5*)
  3268. case $cc_basename in
  3269. KCC*)
  3270. # Kuck and Associates, Inc. (KAI) C++ Compiler
  3271. # KCC will only create a shared library if the output file
  3272. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  3273. # to its proper name (with version) after linking.
  3274. _LT_AC_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
  3275. _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  3276. _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  3277. # Archives containing C++ object files must be created using
  3278. # the KAI C++ compiler.
  3279. _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs'
  3280. ;;
  3281. RCC*)
  3282. # Rational C++ 2.4.1
  3283. # FIXME: insert proper C++ library support
  3284. _LT_AC_TAGVAR(ld_shlibs, $1)=no
  3285. ;;
  3286. cxx*)
  3287. _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
  3288. _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
  3289. _LT_AC_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
  3290. echo "-hidden">> $lib.exp~
  3291. $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~
  3292. $rm $lib.exp'
  3293. _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
  3294. _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  3295. # Commands to make compiler produce verbose output that lists
  3296. # what "hidden" libraries, object files and flags are used when
  3297. # linking a shared library.
  3298. #
  3299. # There doesn't appear to be a way to prevent this compiler from
  3300. # explicitly linking system object files so we need to strip them
  3301. # from the output so that they don't get included in the library
  3302. # dependencies.
  3303. output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
  3304. ;;
  3305. *)
  3306. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  3307. _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
  3308. _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  3309. _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  3310. _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  3311. # Commands to make compiler produce verbose output that lists
  3312. # what "hidden" libraries, object files and flags are used when
  3313. # linking a shared library.
  3314. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
  3315. else
  3316. # FIXME: insert proper C++ library support
  3317. _LT_AC_TAGVAR(ld_shlibs, $1)=no
  3318. fi
  3319. ;;
  3320. esac
  3321. ;;
  3322. psos*)
  3323. # FIXME: insert proper C++ library support
  3324. _LT_AC_TAGVAR(ld_shlibs, $1)=no
  3325. ;;
  3326. sunos4*)
  3327. case $cc_basename in
  3328. CC*)
  3329. # Sun C++ 4.x
  3330. # FIXME: insert proper C++ library support
  3331. _LT_AC_TAGVAR(ld_shlibs, $1)=no
  3332. ;;
  3333. lcc*)
  3334. # Lucid
  3335. # FIXME: insert proper C++ library support
  3336. _LT_AC_TAGVAR(ld_shlibs, $1)=no
  3337. ;;
  3338. *)
  3339. # FIXME: insert proper C++ library support
  3340. _LT_AC_TAGVAR(ld_shlibs, $1)=no
  3341. ;;
  3342. esac
  3343. ;;
  3344. solaris*)
  3345. case $cc_basename in
  3346. CC*)
  3347. # Sun C++ 4.2, 5.x and Centerline C++
  3348. _LT_AC_TAGVAR(archive_cmds_need_lc,$1)=yes
  3349. _LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs'
  3350. _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  3351. _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  3352. $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'
  3353. _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  3354. _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  3355. case $host_os in
  3356. solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
  3357. *)
  3358. # The compiler driver will combine and reorder linker options,
  3359. # but understands `-z linker_flag'.
  3360. # Supported since Solaris 2.6 (maybe 2.5.1?)
  3361. _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
  3362. ;;
  3363. esac
  3364. _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
  3365. output_verbose_link_cmd='echo'
  3366. # Archives containing C++ object files must be created using
  3367. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  3368. # necessary to make sure instantiated templates are included
  3369. # in the archive.
  3370. _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
  3371. ;;
  3372. gcx*)
  3373. # Green Hills C++ Compiler
  3374. _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  3375. # The C++ compiler must be used to create the archive.
  3376. _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
  3377. ;;
  3378. *)
  3379. # GNU C++ compiler with Solaris linker
  3380. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  3381. _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs'
  3382. if $CC --version | grep -v '^2\.7' > /dev/null; then
  3383. _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  3384. _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  3385. $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
  3386. # Commands to make compiler produce verbose output that lists
  3387. # what "hidden" libraries, object files and flags are used when
  3388. # linking a shared library.
  3389. output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
  3390. else
  3391. # g++ 2.7 appears to require `-G' NOT `-shared' on this
  3392. # platform.
  3393. _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  3394. _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  3395. $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
  3396. # Commands to make compiler produce verbose output that lists
  3397. # what "hidden" libraries, object files and flags are used when
  3398. # linking a shared library.
  3399. output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
  3400. fi
  3401. _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir'
  3402. case $host_os in
  3403. solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
  3404. *)
  3405. _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  3406. ;;
  3407. esac
  3408. fi
  3409. ;;
  3410. esac
  3411. ;;
  3412. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
  3413. _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
  3414. _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  3415. _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  3416. runpath_var='LD_RUN_PATH'
  3417. case $cc_basename in
  3418. CC*)
  3419. _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  3420. _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  3421. ;;
  3422. *)
  3423. _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  3424. _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  3425. ;;
  3426. esac
  3427. ;;
  3428. sysv5* | sco3.2v5* | sco5v6*)
  3429. # Note: We can NOT use -z defs as we might desire, because we do not
  3430. # link with -lc, and that would cause any symbols used from libc to
  3431. # always be unresolved, which means just about no library would
  3432. # ever link correctly. If we're not using GNU ld we use -z text
  3433. # though, which does catch some bad symbols but isn't as heavy-handed
  3434. # as -z defs.
  3435. # For security reasons, it is highly recommended that you always
  3436. # use absolute paths for naming shared libraries, and exclude the
  3437. # DT_RUNPATH tag from executables and libraries. But doing so
  3438. # requires that you compile everything twice, which is a pain.
  3439. # So that behaviour is only enabled if SCOABSPATH is set to a
  3440. # non-empty value in the environment. Most likely only useful for
  3441. # creating official distributions of packages.
  3442. # This is a hack until libtool officially supports absolute path
  3443. # names for shared libraries.
  3444. _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
  3445. _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
  3446. _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  3447. _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  3448. _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
  3449. _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
  3450. _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
  3451. _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
  3452. runpath_var='LD_RUN_PATH'
  3453. case $cc_basename in
  3454. CC*)
  3455. _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  3456. _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  3457. ;;
  3458. *)
  3459. _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  3460. _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  3461. ;;
  3462. esac
  3463. ;;
  3464. tandem*)
  3465. case $cc_basename in
  3466. NCC*)
  3467. # NonStop-UX NCC 3.20
  3468. # FIXME: insert proper C++ library support
  3469. _LT_AC_TAGVAR(ld_shlibs, $1)=no
  3470. ;;
  3471. *)
  3472. # FIXME: insert proper C++ library support
  3473. _LT_AC_TAGVAR(ld_shlibs, $1)=no
  3474. ;;
  3475. esac
  3476. ;;
  3477. vxworks*)
  3478. # FIXME: insert proper C++ library support
  3479. _LT_AC_TAGVAR(ld_shlibs, $1)=no
  3480. ;;
  3481. *)
  3482. # FIXME: insert proper C++ library support
  3483. _LT_AC_TAGVAR(ld_shlibs, $1)=no
  3484. ;;
  3485. esac
  3486. AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)])
  3487. test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
  3488. _LT_AC_TAGVAR(GCC, $1)="$GXX"
  3489. _LT_AC_TAGVAR(LD, $1)="$LD"
  3490. AC_LIBTOOL_POSTDEP_PREDEP($1)
  3491. AC_LIBTOOL_PROG_COMPILER_PIC($1)
  3492. AC_LIBTOOL_PROG_CC_C_O($1)
  3493. AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
  3494. AC_LIBTOOL_PROG_LD_SHLIBS($1)
  3495. AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
  3496. AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
  3497. AC_LIBTOOL_CONFIG($1)
  3498. AC_LANG_POP
  3499. CC=$lt_save_CC
  3500. LDCXX=$LD
  3501. LD=$lt_save_LD
  3502. GCC=$lt_save_GCC
  3503. with_gnu_ldcxx=$with_gnu_ld
  3504. with_gnu_ld=$lt_save_with_gnu_ld
  3505. lt_cv_path_LDCXX=$lt_cv_path_LD
  3506. lt_cv_path_LD=$lt_save_path_LD
  3507. lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  3508. lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
  3509. ])# AC_LIBTOOL_LANG_CXX_CONFIG
  3510. # AC_LIBTOOL_POSTDEP_PREDEP([TAGNAME])
  3511. # ------------------------------------
  3512. # Figure out "hidden" library dependencies from verbose
  3513. # compiler output when linking a shared library.
  3514. # Parse the compiler output and extract the necessary
  3515. # objects, libraries and library flags.
  3516. AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP],
  3517. [AC_REQUIRE([LT_AC_PROG_SED])dnl
  3518. dnl we can't use the lt_simple_compile_test_code here,
  3519. dnl because it contains code intended for an executable,
  3520. dnl not a library. It's possible we should let each
  3521. dnl tag define a new lt_????_link_test_code variable,
  3522. dnl but it's only used here...
  3523. ifelse([$1],[],[cat > conftest.$ac_ext <<EOF
  3524. int a;
  3525. void foo (void) { a = 0; }
  3526. EOF
  3527. ],[$1],[CXX],[cat > conftest.$ac_ext <<EOF
  3528. class Foo
  3529. {
  3530. public:
  3531. Foo (void) { a = 0; }
  3532. private:
  3533. int a;
  3534. };
  3535. EOF
  3536. ],[$1],[F77],[cat > conftest.$ac_ext <<EOF
  3537. subroutine foo
  3538. implicit none
  3539. integer*4 a
  3540. a=0
  3541. return
  3542. end
  3543. EOF
  3544. ],[$1],[GCJ],[cat > conftest.$ac_ext <<EOF
  3545. public class foo {
  3546. private int a;
  3547. public void bar (void) {
  3548. a = 0;
  3549. }
  3550. };
  3551. EOF
  3552. ])
  3553. dnl Parse the compiler output and extract the necessary
  3554. dnl objects, libraries and library flags.
  3555. if AC_TRY_EVAL(ac_compile); then
  3556. # Parse the compiler output and extract the necessary
  3557. # objects, libraries and library flags.
  3558. # Sentinel used to keep track of whether or not we are before
  3559. # the conftest object file.
  3560. pre_test_object_deps_done=no
  3561. # The `*' in the case matches for architectures that use `case' in
  3562. # $output_verbose_cmd can trigger glob expansion during the loop
  3563. # eval without this substitution.
  3564. output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
  3565. for p in `eval $output_verbose_link_cmd`; do
  3566. case $p in
  3567. -L* | -R* | -l*)
  3568. # Some compilers place space between "-{L,R}" and the path.
  3569. # Remove the space.
  3570. if test $p = "-L" \
  3571. || test $p = "-R"; then
  3572. prev=$p
  3573. continue
  3574. else
  3575. prev=
  3576. fi
  3577. if test "$pre_test_object_deps_done" = no; then
  3578. case $p in
  3579. -L* | -R*)
  3580. # Internal compiler library paths should come after those
  3581. # provided the user. The postdeps already come after the
  3582. # user supplied libs so there is no need to process them.
  3583. if test -z "$_LT_AC_TAGVAR(compiler_lib_search_path, $1)"; then
  3584. _LT_AC_TAGVAR(compiler_lib_search_path, $1)="${prev}${p}"
  3585. else
  3586. _LT_AC_TAGVAR(compiler_lib_search_path, $1)="${_LT_AC_TAGVAR(compiler_lib_search_path, $1)} ${prev}${p}"
  3587. fi
  3588. ;;
  3589. # The "-l" case would never come before the object being
  3590. # linked, so don't bother handling this case.
  3591. esac
  3592. else
  3593. if test -z "$_LT_AC_TAGVAR(postdeps, $1)"; then
  3594. _LT_AC_TAGVAR(postdeps, $1)="${prev}${p}"
  3595. else
  3596. _LT_AC_TAGVAR(postdeps, $1)="${_LT_AC_TAGVAR(postdeps, $1)} ${prev}${p}"
  3597. fi
  3598. fi
  3599. ;;
  3600. *.$objext)
  3601. # This assumes that the test object file only shows up
  3602. # once in the compiler output.
  3603. if test "$p" = "conftest.$objext"; then
  3604. pre_test_object_deps_done=yes
  3605. continue
  3606. fi
  3607. if test "$pre_test_object_deps_done" = no; then
  3608. if test -z "$_LT_AC_TAGVAR(predep_objects, $1)"; then
  3609. _LT_AC_TAGVAR(predep_objects, $1)="$p"
  3610. else
  3611. _LT_AC_TAGVAR(predep_objects, $1)="$_LT_AC_TAGVAR(predep_objects, $1) $p"
  3612. fi
  3613. else
  3614. if test -z "$_LT_AC_TAGVAR(postdep_objects, $1)"; then
  3615. _LT_AC_TAGVAR(postdep_objects, $1)="$p"
  3616. else
  3617. _LT_AC_TAGVAR(postdep_objects, $1)="$_LT_AC_TAGVAR(postdep_objects, $1) $p"
  3618. fi
  3619. fi
  3620. ;;
  3621. *) ;; # Ignore the rest.
  3622. esac
  3623. done
  3624. # Clean up.
  3625. rm -f a.out a.exe
  3626. else
  3627. echo "libtool.m4: error: problem compiling $1 test program"
  3628. fi
  3629. $rm -f confest.$objext
  3630. _LT_AC_TAGVAR(compiler_lib_search_dirs, $1)=
  3631. if test -n "$_LT_AC_TAGVAR(compiler_lib_search_path, $1)"; then
  3632. _LT_AC_TAGVAR(compiler_lib_search_dirs, $1)=`echo " ${_LT_AC_TAGVAR(compiler_lib_search_path, $1)}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
  3633. fi
  3634. # PORTME: override above test on systems where it is broken
  3635. ifelse([$1],[CXX],
  3636. [case $host_os in
  3637. interix[[3-9]]*)
  3638. # Interix 3.5 installs completely hosed .la files for C++, so rather than
  3639. # hack all around it, let's just trust "g++" to DTRT.
  3640. _LT_AC_TAGVAR(predep_objects,$1)=
  3641. _LT_AC_TAGVAR(postdep_objects,$1)=
  3642. _LT_AC_TAGVAR(postdeps,$1)=
  3643. ;;
  3644. linux*)
  3645. case `$CC -V 2>&1 | sed 5q` in
  3646. *Sun\ C*)
  3647. # Sun C++ 5.9
  3648. #
  3649. # The more standards-conforming stlport4 library is
  3650. # incompatible with the Cstd library. Avoid specifying
  3651. # it if it's in CXXFLAGS. Ignore libCrun as
  3652. # -library=stlport4 depends on it.
  3653. case " $CXX $CXXFLAGS " in
  3654. *" -library=stlport4 "*)
  3655. solaris_use_stlport4=yes
  3656. ;;
  3657. esac
  3658. if test "$solaris_use_stlport4" != yes; then
  3659. _LT_AC_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
  3660. fi
  3661. ;;
  3662. esac
  3663. ;;
  3664. solaris*)
  3665. case $cc_basename in
  3666. CC*)
  3667. # The more standards-conforming stlport4 library is
  3668. # incompatible with the Cstd library. Avoid specifying
  3669. # it if it's in CXXFLAGS. Ignore libCrun as
  3670. # -library=stlport4 depends on it.
  3671. case " $CXX $CXXFLAGS " in
  3672. *" -library=stlport4 "*)
  3673. solaris_use_stlport4=yes
  3674. ;;
  3675. esac
  3676. # Adding this requires a known-good setup of shared libraries for
  3677. # Sun compiler versions before 5.6, else PIC objects from an old
  3678. # archive will be linked into the output, leading to subtle bugs.
  3679. if test "$solaris_use_stlport4" != yes; then
  3680. _LT_AC_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
  3681. fi
  3682. ;;
  3683. esac
  3684. ;;
  3685. esac
  3686. ])
  3687. case " $_LT_AC_TAGVAR(postdeps, $1) " in
  3688. *" -lc "*) _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no ;;
  3689. esac
  3690. ])# AC_LIBTOOL_POSTDEP_PREDEP
  3691. # AC_LIBTOOL_LANG_F77_CONFIG
  3692. # --------------------------
  3693. # Ensure that the configuration vars for the C compiler are
  3694. # suitably defined. Those variables are subsequently used by
  3695. # AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
  3696. AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG], [_LT_AC_LANG_F77_CONFIG(F77)])
  3697. AC_DEFUN([_LT_AC_LANG_F77_CONFIG],
  3698. [AC_REQUIRE([AC_PROG_F77])
  3699. AC_LANG_PUSH(Fortran 77)
  3700. _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  3701. _LT_AC_TAGVAR(allow_undefined_flag, $1)=
  3702. _LT_AC_TAGVAR(always_export_symbols, $1)=no
  3703. _LT_AC_TAGVAR(archive_expsym_cmds, $1)=
  3704. _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
  3705. _LT_AC_TAGVAR(hardcode_direct, $1)=no
  3706. _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
  3707. _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
  3708. _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
  3709. _LT_AC_TAGVAR(hardcode_minus_L, $1)=no
  3710. _LT_AC_TAGVAR(hardcode_automatic, $1)=no
  3711. _LT_AC_TAGVAR(module_cmds, $1)=
  3712. _LT_AC_TAGVAR(module_expsym_cmds, $1)=
  3713. _LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
  3714. _LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
  3715. _LT_AC_TAGVAR(no_undefined_flag, $1)=
  3716. _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
  3717. _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
  3718. # Source file extension for f77 test sources.
  3719. ac_ext=f
  3720. # Object file extension for compiled f77 test sources.
  3721. objext=o
  3722. _LT_AC_TAGVAR(objext, $1)=$objext
  3723. # Code to be used in simple compile tests
  3724. lt_simple_compile_test_code="\
  3725. subroutine t
  3726. return
  3727. end
  3728. "
  3729. # Code to be used in simple link tests
  3730. lt_simple_link_test_code="\
  3731. program t
  3732. end
  3733. "
  3734. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  3735. _LT_AC_SYS_COMPILER
  3736. # save warnings/boilerplate of simple test code
  3737. _LT_COMPILER_BOILERPLATE
  3738. _LT_LINKER_BOILERPLATE
  3739. # Allow CC to be a program name with arguments.
  3740. lt_save_CC="$CC"
  3741. CC=${F77-"f77"}
  3742. compiler=$CC
  3743. _LT_AC_TAGVAR(compiler, $1)=$CC
  3744. _LT_CC_BASENAME([$compiler])
  3745. AC_MSG_CHECKING([if libtool supports shared libraries])
  3746. AC_MSG_RESULT([$can_build_shared])
  3747. AC_MSG_CHECKING([whether to build shared libraries])
  3748. test "$can_build_shared" = "no" && enable_shared=no
  3749. # On AIX, shared libraries and static libraries use the same namespace, and
  3750. # are all built from PIC.
  3751. case $host_os in
  3752. aix3*)
  3753. test "$enable_shared" = yes && enable_static=no
  3754. if test -n "$RANLIB"; then
  3755. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  3756. postinstall_cmds='$RANLIB $lib'
  3757. fi
  3758. ;;
  3759. aix[[4-9]]*)
  3760. if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  3761. test "$enable_shared" = yes && enable_static=no
  3762. fi
  3763. ;;
  3764. esac
  3765. AC_MSG_RESULT([$enable_shared])
  3766. AC_MSG_CHECKING([whether to build static libraries])
  3767. # Make sure either enable_shared or enable_static is yes.
  3768. test "$enable_shared" = yes || enable_static=yes
  3769. AC_MSG_RESULT([$enable_static])
  3770. _LT_AC_TAGVAR(GCC, $1)="$G77"
  3771. _LT_AC_TAGVAR(LD, $1)="$LD"
  3772. AC_LIBTOOL_PROG_COMPILER_PIC($1)
  3773. AC_LIBTOOL_PROG_CC_C_O($1)
  3774. AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
  3775. AC_LIBTOOL_PROG_LD_SHLIBS($1)
  3776. AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
  3777. AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
  3778. AC_LIBTOOL_CONFIG($1)
  3779. AC_LANG_POP
  3780. CC="$lt_save_CC"
  3781. ])# AC_LIBTOOL_LANG_F77_CONFIG
  3782. # AC_LIBTOOL_LANG_GCJ_CONFIG
  3783. # --------------------------
  3784. # Ensure that the configuration vars for the C compiler are
  3785. # suitably defined. Those variables are subsequently used by
  3786. # AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
  3787. AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG], [_LT_AC_LANG_GCJ_CONFIG(GCJ)])
  3788. AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG],
  3789. [AC_LANG_SAVE
  3790. # Source file extension for Java test sources.
  3791. ac_ext=java
  3792. # Object file extension for compiled Java test sources.
  3793. objext=o
  3794. _LT_AC_TAGVAR(objext, $1)=$objext
  3795. # Code to be used in simple compile tests
  3796. lt_simple_compile_test_code="class foo {}"
  3797. # Code to be used in simple link tests
  3798. lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }'
  3799. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  3800. _LT_AC_SYS_COMPILER
  3801. # save warnings/boilerplate of simple test code
  3802. _LT_COMPILER_BOILERPLATE
  3803. _LT_LINKER_BOILERPLATE
  3804. # Allow CC to be a program name with arguments.
  3805. lt_save_CC="$CC"
  3806. CC=${GCJ-"gcj"}
  3807. compiler=$CC
  3808. _LT_AC_TAGVAR(compiler, $1)=$CC
  3809. _LT_CC_BASENAME([$compiler])
  3810. # GCJ did not exist at the time GCC didn't implicitly link libc in.
  3811. _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  3812. _LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
  3813. AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1)
  3814. AC_LIBTOOL_PROG_COMPILER_PIC($1)
  3815. AC_LIBTOOL_PROG_CC_C_O($1)
  3816. AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
  3817. AC_LIBTOOL_PROG_LD_SHLIBS($1)
  3818. AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
  3819. AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
  3820. AC_LIBTOOL_CONFIG($1)
  3821. AC_LANG_RESTORE
  3822. CC="$lt_save_CC"
  3823. ])# AC_LIBTOOL_LANG_GCJ_CONFIG
  3824. # AC_LIBTOOL_LANG_RC_CONFIG
  3825. # -------------------------
  3826. # Ensure that the configuration vars for the Windows resource compiler are
  3827. # suitably defined. Those variables are subsequently used by
  3828. # AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
  3829. AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG], [_LT_AC_LANG_RC_CONFIG(RC)])
  3830. AC_DEFUN([_LT_AC_LANG_RC_CONFIG],
  3831. [AC_LANG_SAVE
  3832. # Source file extension for RC test sources.
  3833. ac_ext=rc
  3834. # Object file extension for compiled RC test sources.
  3835. objext=o
  3836. _LT_AC_TAGVAR(objext, $1)=$objext
  3837. # Code to be used in simple compile tests
  3838. lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
  3839. # Code to be used in simple link tests
  3840. lt_simple_link_test_code="$lt_simple_compile_test_code"
  3841. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  3842. _LT_AC_SYS_COMPILER
  3843. # save warnings/boilerplate of simple test code
  3844. _LT_COMPILER_BOILERPLATE
  3845. _LT_LINKER_BOILERPLATE
  3846. # Allow CC to be a program name with arguments.
  3847. lt_save_CC="$CC"
  3848. CC=${RC-"windres"}
  3849. compiler=$CC
  3850. _LT_AC_TAGVAR(compiler, $1)=$CC
  3851. _LT_CC_BASENAME([$compiler])
  3852. _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
  3853. AC_LIBTOOL_CONFIG($1)
  3854. AC_LANG_RESTORE
  3855. CC="$lt_save_CC"
  3856. ])# AC_LIBTOOL_LANG_RC_CONFIG
  3857. # AC_LIBTOOL_CONFIG([TAGNAME])
  3858. # ----------------------------
  3859. # If TAGNAME is not passed, then create an initial libtool script
  3860. # with a default configuration from the untagged config vars. Otherwise
  3861. # add code to config.status for appending the configuration named by
  3862. # TAGNAME from the matching tagged config vars.
  3863. AC_DEFUN([AC_LIBTOOL_CONFIG],
  3864. [# The else clause should only fire when bootstrapping the
  3865. # libtool distribution, otherwise you forgot to ship ltmain.sh
  3866. # with your package, and you will get complaints that there are
  3867. # no rules to generate ltmain.sh.
  3868. if test -f "$ltmain"; then
  3869. # See if we are running on zsh, and set the options which allow our commands through
  3870. # without removal of \ escapes.
  3871. if test -n "${ZSH_VERSION+set}" ; then
  3872. setopt NO_GLOB_SUBST
  3873. fi
  3874. # Now quote all the things that may contain metacharacters while being
  3875. # careful not to overquote the AC_SUBSTed values. We take copies of the
  3876. # variables and quote the copies for generation of the libtool script.
  3877. for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
  3878. SED SHELL STRIP \
  3879. libname_spec library_names_spec soname_spec extract_expsyms_cmds \
  3880. old_striplib striplib file_magic_cmd finish_cmds finish_eval \
  3881. deplibs_check_method reload_flag reload_cmds need_locks \
  3882. lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
  3883. lt_cv_sys_global_symbol_to_c_name_address \
  3884. sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  3885. old_postinstall_cmds old_postuninstall_cmds \
  3886. _LT_AC_TAGVAR(compiler, $1) \
  3887. _LT_AC_TAGVAR(CC, $1) \
  3888. _LT_AC_TAGVAR(LD, $1) \
  3889. _LT_AC_TAGVAR(lt_prog_compiler_wl, $1) \
  3890. _LT_AC_TAGVAR(lt_prog_compiler_pic, $1) \
  3891. _LT_AC_TAGVAR(lt_prog_compiler_static, $1) \
  3892. _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) \
  3893. _LT_AC_TAGVAR(export_dynamic_flag_spec, $1) \
  3894. _LT_AC_TAGVAR(thread_safe_flag_spec, $1) \
  3895. _LT_AC_TAGVAR(whole_archive_flag_spec, $1) \
  3896. _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1) \
  3897. _LT_AC_TAGVAR(old_archive_cmds, $1) \
  3898. _LT_AC_TAGVAR(old_archive_from_new_cmds, $1) \
  3899. _LT_AC_TAGVAR(predep_objects, $1) \
  3900. _LT_AC_TAGVAR(postdep_objects, $1) \
  3901. _LT_AC_TAGVAR(predeps, $1) \
  3902. _LT_AC_TAGVAR(postdeps, $1) \
  3903. _LT_AC_TAGVAR(compiler_lib_search_path, $1) \
  3904. _LT_AC_TAGVAR(compiler_lib_search_dirs, $1) \
  3905. _LT_AC_TAGVAR(archive_cmds, $1) \
  3906. _LT_AC_TAGVAR(archive_expsym_cmds, $1) \
  3907. _LT_AC_TAGVAR(postinstall_cmds, $1) \
  3908. _LT_AC_TAGVAR(postuninstall_cmds, $1) \
  3909. _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) \
  3910. _LT_AC_TAGVAR(allow_undefined_flag, $1) \
  3911. _LT_AC_TAGVAR(no_undefined_flag, $1) \
  3912. _LT_AC_TAGVAR(export_symbols_cmds, $1) \
  3913. _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) \
  3914. _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1) \
  3915. _LT_AC_TAGVAR(hardcode_libdir_separator, $1) \
  3916. _LT_AC_TAGVAR(hardcode_automatic, $1) \
  3917. _LT_AC_TAGVAR(module_cmds, $1) \
  3918. _LT_AC_TAGVAR(module_expsym_cmds, $1) \
  3919. _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1) \
  3920. _LT_AC_TAGVAR(fix_srcfile_path, $1) \
  3921. _LT_AC_TAGVAR(exclude_expsyms, $1) \
  3922. _LT_AC_TAGVAR(include_expsyms, $1); do
  3923. case $var in
  3924. _LT_AC_TAGVAR(old_archive_cmds, $1) | \
  3925. _LT_AC_TAGVAR(old_archive_from_new_cmds, $1) | \
  3926. _LT_AC_TAGVAR(archive_cmds, $1) | \
  3927. _LT_AC_TAGVAR(archive_expsym_cmds, $1) | \
  3928. _LT_AC_TAGVAR(module_cmds, $1) | \
  3929. _LT_AC_TAGVAR(module_expsym_cmds, $1) | \
  3930. _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) | \
  3931. _LT_AC_TAGVAR(export_symbols_cmds, $1) | \
  3932. extract_expsyms_cmds | reload_cmds | finish_cmds | \
  3933. postinstall_cmds | postuninstall_cmds | \
  3934. old_postinstall_cmds | old_postuninstall_cmds | \
  3935. sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  3936. # Double-quote double-evaled strings.
  3937. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
  3938. ;;
  3939. *)
  3940. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
  3941. ;;
  3942. esac
  3943. done
  3944. case $lt_echo in
  3945. *'\[$]0 --fallback-echo"')
  3946. lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\[$]0 --fallback-echo"[$]/[$]0 --fallback-echo"/'`
  3947. ;;
  3948. esac
  3949. ifelse([$1], [],
  3950. [cfgfile="${ofile}T"
  3951. trap "$rm \"$cfgfile\"; exit 1" 1 2 15
  3952. $rm -f "$cfgfile"
  3953. AC_MSG_NOTICE([creating $ofile])],
  3954. [cfgfile="$ofile"])
  3955. cat <<__EOF__ >> "$cfgfile"
  3956. ifelse([$1], [],
  3957. [#! $SHELL
  3958. # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  3959. # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
  3960. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  3961. #
  3962. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
  3963. # Free Software Foundation, Inc.
  3964. #
  3965. # This file is part of GNU Libtool:
  3966. # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
  3967. #
  3968. # This program is free software; you can redistribute it and/or modify
  3969. # it under the terms of the GNU General Public License as published by
  3970. # the Free Software Foundation; either version 2 of the License, or
  3971. # (at your option) any later version.
  3972. #
  3973. # This program is distributed in the hope that it will be useful, but
  3974. # WITHOUT ANY WARRANTY; without even the implied warranty of
  3975. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  3976. # General Public License for more details.
  3977. #
  3978. # You should have received a copy of the GNU General Public License
  3979. # along with this program; if not, write to the Free Software
  3980. # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  3981. #
  3982. # As a special exception to the GNU General Public License, if you
  3983. # distribute this file as part of a program that contains a
  3984. # configuration script generated by Autoconf, you may include it under
  3985. # the same distribution terms that you use for the rest of that program.
  3986. # A sed program that does not truncate output.
  3987. SED=$lt_SED
  3988. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  3989. Xsed="$SED -e 1s/^X//"
  3990. # The HP-UX ksh and POSIX shell print the target directory to stdout
  3991. # if CDPATH is set.
  3992. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  3993. # The names of the tagged configurations supported by this script.
  3994. available_tags=
  3995. # ### BEGIN LIBTOOL CONFIG],
  3996. [# ### BEGIN LIBTOOL TAG CONFIG: $tagname])
  3997. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  3998. # Shell to use when invoking shell scripts.
  3999. SHELL=$lt_SHELL
  4000. # Whether or not to build shared libraries.
  4001. build_libtool_libs=$enable_shared
  4002. # Whether or not to build static libraries.
  4003. build_old_libs=$enable_static
  4004. # Whether or not to add -lc for building shared libraries.
  4005. build_libtool_need_lc=$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)
  4006. # Whether or not to disallow shared libs when runtime libs are static
  4007. allow_libtool_libs_with_static_runtimes=$_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)
  4008. # Whether or not to optimize for fast installation.
  4009. fast_install=$enable_fast_install
  4010. # The host system.
  4011. host_alias=$host_alias
  4012. host=$host
  4013. host_os=$host_os
  4014. # The build system.
  4015. build_alias=$build_alias
  4016. build=$build
  4017. build_os=$build_os
  4018. # An echo program that does not interpret backslashes.
  4019. echo=$lt_echo
  4020. # The archiver.
  4021. AR=$lt_AR
  4022. AR_FLAGS=$lt_AR_FLAGS
  4023. # A C compiler.
  4024. LTCC=$lt_LTCC
  4025. # LTCC compiler flags.
  4026. LTCFLAGS=$lt_LTCFLAGS
  4027. # A language-specific compiler.
  4028. CC=$lt_[]_LT_AC_TAGVAR(compiler, $1)
  4029. # Is the compiler the GNU C compiler?
  4030. with_gcc=$_LT_AC_TAGVAR(GCC, $1)
  4031. # An ERE matcher.
  4032. EGREP=$lt_EGREP
  4033. # The linker used to build libraries.
  4034. LD=$lt_[]_LT_AC_TAGVAR(LD, $1)
  4035. # Whether we need hard or soft links.
  4036. LN_S=$lt_LN_S
  4037. # A BSD-compatible nm program.
  4038. NM=$lt_NM
  4039. # A symbol stripping program
  4040. STRIP=$lt_STRIP
  4041. # Used to examine libraries when file_magic_cmd begins "file"
  4042. MAGIC_CMD=$MAGIC_CMD
  4043. # Used on cygwin: DLL creation program.
  4044. DLLTOOL="$DLLTOOL"
  4045. # Used on cygwin: object dumper.
  4046. OBJDUMP="$OBJDUMP"
  4047. # Used on cygwin: assembler.
  4048. AS="$AS"
  4049. # The name of the directory that contains temporary libtool files.
  4050. objdir=$objdir
  4051. # How to create reloadable object files.
  4052. reload_flag=$lt_reload_flag
  4053. reload_cmds=$lt_reload_cmds
  4054. # How to pass a linker flag through the compiler.
  4055. wl=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)
  4056. # Object file suffix (normally "o").
  4057. objext="$ac_objext"
  4058. # Old archive suffix (normally "a").
  4059. libext="$libext"
  4060. # Shared library suffix (normally ".so").
  4061. shrext_cmds='$shrext_cmds'
  4062. # Executable file suffix (normally "").
  4063. exeext="$exeext"
  4064. # Additional compiler flags for building library objects.
  4065. pic_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)
  4066. pic_mode=$pic_mode
  4067. # What is the maximum length of a command?
  4068. max_cmd_len=$lt_cv_sys_max_cmd_len
  4069. # Does compiler simultaneously support -c and -o options?
  4070. compiler_c_o=$lt_[]_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)
  4071. # Must we lock files when doing compilation?
  4072. need_locks=$lt_need_locks
  4073. # Do we need the lib prefix for modules?
  4074. need_lib_prefix=$need_lib_prefix
  4075. # Do we need a version for libraries?
  4076. need_version=$need_version
  4077. # Whether dlopen is supported.
  4078. dlopen_support=$enable_dlopen
  4079. # Whether dlopen of programs is supported.
  4080. dlopen_self=$enable_dlopen_self
  4081. # Whether dlopen of statically linked programs is supported.
  4082. dlopen_self_static=$enable_dlopen_self_static
  4083. # Compiler flag to prevent dynamic linking.
  4084. link_static_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_static, $1)
  4085. # Compiler flag to turn off builtin functions.
  4086. no_builtin_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)
  4087. # Compiler flag to allow reflexive dlopens.
  4088. export_dynamic_flag_spec=$lt_[]_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)
  4089. # Compiler flag to generate shared objects directly from archives.
  4090. whole_archive_flag_spec=$lt_[]_LT_AC_TAGVAR(whole_archive_flag_spec, $1)
  4091. # Compiler flag to generate thread-safe objects.
  4092. thread_safe_flag_spec=$lt_[]_LT_AC_TAGVAR(thread_safe_flag_spec, $1)
  4093. # Library versioning type.
  4094. version_type=$version_type
  4095. # Format of library name prefix.
  4096. libname_spec=$lt_libname_spec
  4097. # List of archive names. First name is the real one, the rest are links.
  4098. # The last name is the one that the linker finds with -lNAME.
  4099. library_names_spec=$lt_library_names_spec
  4100. # The coded name of the library, if different from the real name.
  4101. soname_spec=$lt_soname_spec
  4102. # Commands used to build and install an old-style archive.
  4103. RANLIB=$lt_RANLIB
  4104. old_archive_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_cmds, $1)
  4105. old_postinstall_cmds=$lt_old_postinstall_cmds
  4106. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  4107. # Create an old-style archive from a shared archive.
  4108. old_archive_from_new_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_from_new_cmds, $1)
  4109. # Create a temporary old-style archive to link instead of a shared archive.
  4110. old_archive_from_expsyms_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1)
  4111. # Commands used to build and install a shared archive.
  4112. archive_cmds=$lt_[]_LT_AC_TAGVAR(archive_cmds, $1)
  4113. archive_expsym_cmds=$lt_[]_LT_AC_TAGVAR(archive_expsym_cmds, $1)
  4114. postinstall_cmds=$lt_postinstall_cmds
  4115. postuninstall_cmds=$lt_postuninstall_cmds
  4116. # Commands used to build a loadable module (assumed same as above if empty)
  4117. module_cmds=$lt_[]_LT_AC_TAGVAR(module_cmds, $1)
  4118. module_expsym_cmds=$lt_[]_LT_AC_TAGVAR(module_expsym_cmds, $1)
  4119. # Commands to strip libraries.
  4120. old_striplib=$lt_old_striplib
  4121. striplib=$lt_striplib
  4122. # Dependencies to place before the objects being linked to create a
  4123. # shared library.
  4124. predep_objects=$lt_[]_LT_AC_TAGVAR(predep_objects, $1)
  4125. # Dependencies to place after the objects being linked to create a
  4126. # shared library.
  4127. postdep_objects=$lt_[]_LT_AC_TAGVAR(postdep_objects, $1)
  4128. # Dependencies to place before the objects being linked to create a
  4129. # shared library.
  4130. predeps=$lt_[]_LT_AC_TAGVAR(predeps, $1)
  4131. # Dependencies to place after the objects being linked to create a
  4132. # shared library.
  4133. postdeps=$lt_[]_LT_AC_TAGVAR(postdeps, $1)
  4134. # The directories searched by this compiler when creating a shared
  4135. # library
  4136. compiler_lib_search_dirs=$lt_[]_LT_AC_TAGVAR(compiler_lib_search_dirs, $1)
  4137. # The library search path used internally by the compiler when linking
  4138. # a shared library.
  4139. compiler_lib_search_path=$lt_[]_LT_AC_TAGVAR(compiler_lib_search_path, $1)
  4140. # Method to check whether dependent libraries are shared objects.
  4141. deplibs_check_method=$lt_deplibs_check_method
  4142. # Command to use when deplibs_check_method == file_magic.
  4143. file_magic_cmd=$lt_file_magic_cmd
  4144. # Flag that allows shared libraries with undefined symbols to be built.
  4145. allow_undefined_flag=$lt_[]_LT_AC_TAGVAR(allow_undefined_flag, $1)
  4146. # Flag that forces no undefined symbols.
  4147. no_undefined_flag=$lt_[]_LT_AC_TAGVAR(no_undefined_flag, $1)
  4148. # Commands used to finish a libtool library installation in a directory.
  4149. finish_cmds=$lt_finish_cmds
  4150. # Same as above, but a single script fragment to be evaled but not shown.
  4151. finish_eval=$lt_finish_eval
  4152. # Take the output of nm and produce a listing of raw symbols and C names.
  4153. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  4154. # Transform the output of nm in a proper C declaration
  4155. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  4156. # Transform the output of nm in a C name address pair
  4157. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  4158. # This is the shared library runtime path variable.
  4159. runpath_var=$runpath_var
  4160. # This is the shared library path variable.
  4161. shlibpath_var=$shlibpath_var
  4162. # Is shlibpath searched before the hard-coded library search path?
  4163. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  4164. # How to hardcode a shared library path into an executable.
  4165. hardcode_action=$_LT_AC_TAGVAR(hardcode_action, $1)
  4166. # Whether we should hardcode library paths into libraries.
  4167. hardcode_into_libs=$hardcode_into_libs
  4168. # Flag to hardcode \$libdir into a binary during linking.
  4169. # This must work even if \$libdir does not exist.
  4170. hardcode_libdir_flag_spec=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)
  4171. # If ld is used when linking, flag to hardcode \$libdir into
  4172. # a binary during linking. This must work even if \$libdir does
  4173. # not exist.
  4174. hardcode_libdir_flag_spec_ld=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)
  4175. # Whether we need a single -rpath flag with a separated argument.
  4176. hardcode_libdir_separator=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_separator, $1)
  4177. # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
  4178. # resulting binary.
  4179. hardcode_direct=$_LT_AC_TAGVAR(hardcode_direct, $1)
  4180. # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  4181. # resulting binary.
  4182. hardcode_minus_L=$_LT_AC_TAGVAR(hardcode_minus_L, $1)
  4183. # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
  4184. # the resulting binary.
  4185. hardcode_shlibpath_var=$_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)
  4186. # Set to yes if building a shared library automatically hardcodes DIR into the library
  4187. # and all subsequent libraries and executables linked against it.
  4188. hardcode_automatic=$_LT_AC_TAGVAR(hardcode_automatic, $1)
  4189. # Variables whose values should be saved in libtool wrapper scripts and
  4190. # restored at relink time.
  4191. variables_saved_for_relink="$variables_saved_for_relink"
  4192. # Whether libtool must link a program against all its dependency libraries.
  4193. link_all_deplibs=$_LT_AC_TAGVAR(link_all_deplibs, $1)
  4194. # Compile-time system search path for libraries
  4195. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  4196. # Run-time system search path for libraries
  4197. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  4198. # Fix the shell variable \$srcfile for the compiler.
  4199. fix_srcfile_path=$lt_fix_srcfile_path
  4200. # Set to yes if exported symbols are required.
  4201. always_export_symbols=$_LT_AC_TAGVAR(always_export_symbols, $1)
  4202. # The commands to list exported symbols.
  4203. export_symbols_cmds=$lt_[]_LT_AC_TAGVAR(export_symbols_cmds, $1)
  4204. # The commands to extract the exported symbol list from a shared archive.
  4205. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  4206. # Symbols that should not be listed in the preloaded symbols.
  4207. exclude_expsyms=$lt_[]_LT_AC_TAGVAR(exclude_expsyms, $1)
  4208. # Symbols that must always be exported.
  4209. include_expsyms=$lt_[]_LT_AC_TAGVAR(include_expsyms, $1)
  4210. ifelse([$1],[],
  4211. [# ### END LIBTOOL CONFIG],
  4212. [# ### END LIBTOOL TAG CONFIG: $tagname])
  4213. __EOF__
  4214. ifelse([$1],[], [
  4215. case $host_os in
  4216. aix3*)
  4217. cat <<\EOF >> "$cfgfile"
  4218. # AIX sometimes has problems with the GCC collect2 program. For some
  4219. # reason, if we set the COLLECT_NAMES environment variable, the problems
  4220. # vanish in a puff of smoke.
  4221. if test "X${COLLECT_NAMES+set}" != Xset; then
  4222. COLLECT_NAMES=
  4223. export COLLECT_NAMES
  4224. fi
  4225. EOF
  4226. ;;
  4227. esac
  4228. # We use sed instead of cat because bash on DJGPP gets confused if
  4229. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  4230. # text mode, it properly converts lines to CR/LF. This bash problem
  4231. # is reportedly fixed, but why not run on old versions too?
  4232. sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
  4233. mv -f "$cfgfile" "$ofile" || \
  4234. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  4235. chmod +x "$ofile"
  4236. ])
  4237. else
  4238. # If there is no Makefile yet, we rely on a make rule to execute
  4239. # `config.status --recheck' to rerun these tests and create the
  4240. # libtool script then.
  4241. ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  4242. if test -f "$ltmain_in"; then
  4243. test -f Makefile && make "$ltmain"
  4244. fi
  4245. fi
  4246. ])# AC_LIBTOOL_CONFIG
  4247. # AC_LIBTOOL_PROG_COMPILER_NO_RTTI([TAGNAME])
  4248. # -------------------------------------------
  4249. AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI],
  4250. [AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
  4251. _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
  4252. if test "$GCC" = yes; then
  4253. _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
  4254. AC_LIBTOOL_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions],
  4255. lt_cv_prog_compiler_rtti_exceptions,
  4256. [-fno-rtti -fno-exceptions], [],
  4257. [_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"])
  4258. fi
  4259. ])# AC_LIBTOOL_PROG_COMPILER_NO_RTTI
  4260. # AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
  4261. # ---------------------------------
  4262. AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE],
  4263. [AC_REQUIRE([AC_CANONICAL_HOST])
  4264. AC_REQUIRE([LT_AC_PROG_SED])
  4265. AC_REQUIRE([AC_PROG_NM])
  4266. AC_REQUIRE([AC_OBJEXT])
  4267. # Check for command to grab the raw symbol name followed by C symbol from nm.
  4268. AC_MSG_CHECKING([command to parse $NM output from $compiler object])
  4269. AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe],
  4270. [
  4271. # These are sane defaults that work on at least a few old systems.
  4272. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  4273. # Character class describing NM global symbol codes.
  4274. symcode='[[BCDEGRST]]'
  4275. # Regexp to match symbols that can be accessed directly from C.
  4276. sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)'
  4277. # Transform an extracted symbol line into a proper C declaration
  4278. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
  4279. # Transform an extracted symbol line into symbol name and symbol address
  4280. lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
  4281. # Define system-specific variables.
  4282. case $host_os in
  4283. aix*)
  4284. symcode='[[BCDT]]'
  4285. ;;
  4286. cygwin* | mingw* | pw32*)
  4287. symcode='[[ABCDGISTW]]'
  4288. ;;
  4289. hpux*) # Its linker distinguishes data from code symbols
  4290. if test "$host_cpu" = ia64; then
  4291. symcode='[[ABCDEGRST]]'
  4292. fi
  4293. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  4294. lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
  4295. ;;
  4296. linux* | k*bsd*-gnu)
  4297. if test "$host_cpu" = ia64; then
  4298. symcode='[[ABCDGIRSTW]]'
  4299. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  4300. lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
  4301. fi
  4302. ;;
  4303. irix* | nonstopux*)
  4304. symcode='[[BCDEGRST]]'
  4305. ;;
  4306. osf*)
  4307. symcode='[[BCDEGQRST]]'
  4308. ;;
  4309. solaris*)
  4310. symcode='[[BDRT]]'
  4311. ;;
  4312. sco3.2v5*)
  4313. symcode='[[DT]]'
  4314. ;;
  4315. sysv4.2uw2*)
  4316. symcode='[[DT]]'
  4317. ;;
  4318. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  4319. symcode='[[ABDT]]'
  4320. ;;
  4321. sysv4)
  4322. symcode='[[DFNSTU]]'
  4323. ;;
  4324. esac
  4325. # Handle CRLF in mingw tool chain
  4326. opt_cr=
  4327. case $build_os in
  4328. mingw*)
  4329. opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  4330. ;;
  4331. esac
  4332. # If we're using GNU nm, then use its standard symbol codes.
  4333. case `$NM -V 2>&1` in
  4334. *GNU* | *'with BFD'*)
  4335. symcode='[[ABCDGIRSTW]]' ;;
  4336. esac
  4337. # Try without a prefix undercore, then with it.
  4338. for ac_symprfx in "" "_"; do
  4339. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  4340. symxfrm="\\1 $ac_symprfx\\2 \\2"
  4341. # Write the raw and C identifiers.
  4342. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  4343. # Check to see that the pipe works correctly.
  4344. pipe_works=no
  4345. rm -f conftest*
  4346. cat > conftest.$ac_ext <<EOF
  4347. #ifdef __cplusplus
  4348. extern "C" {
  4349. #endif
  4350. char nm_test_var;
  4351. void nm_test_func(){}
  4352. #ifdef __cplusplus
  4353. }
  4354. #endif
  4355. int main(){nm_test_var='a';nm_test_func();return(0);}
  4356. EOF
  4357. if AC_TRY_EVAL(ac_compile); then
  4358. # Now try to grab the symbols.
  4359. nlist=conftest.nm
  4360. if AC_TRY_EVAL(NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) && test -s "$nlist"; then
  4361. # Try sorting and uniquifying the output.
  4362. if sort "$nlist" | uniq > "$nlist"T; then
  4363. mv -f "$nlist"T "$nlist"
  4364. else
  4365. rm -f "$nlist"T
  4366. fi
  4367. # Make sure that we snagged all the symbols we need.
  4368. if grep ' nm_test_var$' "$nlist" >/dev/null; then
  4369. if grep ' nm_test_func$' "$nlist" >/dev/null; then
  4370. cat <<EOF > conftest.$ac_ext
  4371. #ifdef __cplusplus
  4372. extern "C" {
  4373. #endif
  4374. EOF
  4375. # Now generate the symbol file.
  4376. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
  4377. cat <<EOF >> conftest.$ac_ext
  4378. #if defined (__STDC__) && __STDC__
  4379. # define lt_ptr_t void *
  4380. #else
  4381. # define lt_ptr_t char *
  4382. # define const
  4383. #endif
  4384. /* The mapping between symbol names and symbols. */
  4385. const struct {
  4386. const char *name;
  4387. lt_ptr_t address;
  4388. }
  4389. lt_preloaded_symbols[[]] =
  4390. {
  4391. EOF
  4392. $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
  4393. cat <<\EOF >> conftest.$ac_ext
  4394. {0, (lt_ptr_t) 0}
  4395. };
  4396. #ifdef __cplusplus
  4397. }
  4398. #endif
  4399. EOF
  4400. # Now try linking the two files.
  4401. mv conftest.$ac_objext conftstm.$ac_objext
  4402. lt_save_LIBS="$LIBS"
  4403. lt_save_CFLAGS="$CFLAGS"
  4404. LIBS="conftstm.$ac_objext"
  4405. CFLAGS="$CFLAGS$_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)"
  4406. if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then
  4407. pipe_works=yes
  4408. fi
  4409. LIBS="$lt_save_LIBS"
  4410. CFLAGS="$lt_save_CFLAGS"
  4411. else
  4412. echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD
  4413. fi
  4414. else
  4415. echo "cannot find nm_test_var in $nlist" >&AS_MESSAGE_LOG_FD
  4416. fi
  4417. else
  4418. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&AS_MESSAGE_LOG_FD
  4419. fi
  4420. else
  4421. echo "$progname: failed program was:" >&AS_MESSAGE_LOG_FD
  4422. cat conftest.$ac_ext >&5
  4423. fi
  4424. rm -rf conftest* conftst*
  4425. # Do not use the global_symbol_pipe unless it works.
  4426. if test "$pipe_works" = yes; then
  4427. break
  4428. else
  4429. lt_cv_sys_global_symbol_pipe=
  4430. fi
  4431. done
  4432. ])
  4433. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  4434. lt_cv_sys_global_symbol_to_cdecl=
  4435. fi
  4436. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  4437. AC_MSG_RESULT(failed)
  4438. else
  4439. AC_MSG_RESULT(ok)
  4440. fi
  4441. ]) # AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
  4442. # AC_LIBTOOL_PROG_COMPILER_PIC([TAGNAME])
  4443. # ---------------------------------------
  4444. AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_PIC],
  4445. [_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)=
  4446. _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
  4447. _LT_AC_TAGVAR(lt_prog_compiler_static, $1)=
  4448. AC_MSG_CHECKING([for $compiler option to produce PIC])
  4449. ifelse([$1],[CXX],[
  4450. # C++ specific cases for pic, static, wl, etc.
  4451. if test "$GXX" = yes; then
  4452. _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4453. _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
  4454. case $host_os in
  4455. aix*)
  4456. # All AIX code is PIC.
  4457. if test "$host_cpu" = ia64; then
  4458. # AIX 5 now supports IA64 processor
  4459. _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  4460. fi
  4461. ;;
  4462. amigaos*)
  4463. # FIXME: we need at least 68020 code to build shared libraries, but
  4464. # adding the `-m68020' flag to GCC prevents building anything better,
  4465. # like `-m68040'.
  4466. _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
  4467. ;;
  4468. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  4469. # PIC is the default for these OSes.
  4470. ;;
  4471. mingw* | cygwin* | os2* | pw32*)
  4472. # This hack is so that the source file can tell whether it is being
  4473. # built for inclusion in a dll (and should export symbols for example).
  4474. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  4475. # (--disable-auto-import) libraries
  4476. m4_if([$1], [GCJ], [],
  4477. [_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
  4478. ;;
  4479. darwin* | rhapsody*)
  4480. # PIC is the default on this platform
  4481. # Common symbols not allowed in MH_DYLIB files
  4482. _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
  4483. ;;
  4484. *djgpp*)
  4485. # DJGPP does not support shared libraries at all
  4486. _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
  4487. ;;
  4488. interix[[3-9]]*)
  4489. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  4490. # Instead, we relocate shared libraries at runtime.
  4491. ;;
  4492. sysv4*MP*)
  4493. if test -d /usr/nec; then
  4494. _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
  4495. fi
  4496. ;;
  4497. hpux*)
  4498. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  4499. # not for PA HP-UX.
  4500. case $host_cpu in
  4501. hppa*64*|ia64*)
  4502. ;;
  4503. *)
  4504. _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  4505. ;;
  4506. esac
  4507. ;;
  4508. *)
  4509. _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  4510. ;;
  4511. esac
  4512. else
  4513. case $host_os in
  4514. aix[[4-9]]*)
  4515. # All AIX code is PIC.
  4516. if test "$host_cpu" = ia64; then
  4517. # AIX 5 now supports IA64 processor
  4518. _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  4519. else
  4520. _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
  4521. fi
  4522. ;;
  4523. chorus*)
  4524. case $cc_basename in
  4525. cxch68*)
  4526. # Green Hills C++ Compiler
  4527. # _LT_AC_TAGVAR(lt_prog_compiler_static, $1)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
  4528. ;;
  4529. esac
  4530. ;;
  4531. darwin*)
  4532. # PIC is the default on this platform
  4533. # Common symbols not allowed in MH_DYLIB files
  4534. case $cc_basename in
  4535. xlc*)
  4536. _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-qnocommon'
  4537. _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4538. ;;
  4539. esac
  4540. ;;
  4541. dgux*)
  4542. case $cc_basename in
  4543. ec++*)
  4544. _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  4545. ;;
  4546. ghcx*)
  4547. # Green Hills C++ Compiler
  4548. _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  4549. ;;
  4550. *)
  4551. ;;
  4552. esac
  4553. ;;
  4554. freebsd* | dragonfly*)
  4555. # FreeBSD uses GNU C++
  4556. ;;
  4557. hpux9* | hpux10* | hpux11*)
  4558. case $cc_basename in
  4559. CC*)
  4560. _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4561. _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
  4562. if test "$host_cpu" != ia64; then
  4563. _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
  4564. fi
  4565. ;;
  4566. aCC*)
  4567. _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4568. _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
  4569. case $host_cpu in
  4570. hppa*64*|ia64*)
  4571. # +Z the default
  4572. ;;
  4573. *)
  4574. _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
  4575. ;;
  4576. esac
  4577. ;;
  4578. *)
  4579. ;;
  4580. esac
  4581. ;;
  4582. interix*)
  4583. # This is c89, which is MS Visual C++ (no shared libs)
  4584. # Anyone wants to do a port?
  4585. ;;
  4586. irix5* | irix6* | nonstopux*)
  4587. case $cc_basename in
  4588. CC*)
  4589. _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4590. _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  4591. # CC pic flag -KPIC is the default.
  4592. ;;
  4593. *)
  4594. ;;
  4595. esac
  4596. ;;
  4597. linux* | k*bsd*-gnu)
  4598. case $cc_basename in
  4599. KCC*)
  4600. # KAI C++ Compiler
  4601. _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
  4602. _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  4603. ;;
  4604. icpc* | ecpc*)
  4605. # Intel C++
  4606. _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4607. _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  4608. _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
  4609. ;;
  4610. pgCC* | pgcpp*)
  4611. # Portland Group C++ compiler.
  4612. _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4613. _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
  4614. _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  4615. ;;
  4616. cxx*)
  4617. # Compaq C++
  4618. # Make sure the PIC flag is empty. It appears that all Alpha
  4619. # Linux and Compaq Tru64 Unix objects are PIC.
  4620. _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
  4621. _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  4622. ;;
  4623. *)
  4624. case `$CC -V 2>&1 | sed 5q` in
  4625. *Sun\ C*)
  4626. # Sun C++ 5.9
  4627. _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  4628. _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  4629. _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
  4630. ;;
  4631. esac
  4632. ;;
  4633. esac
  4634. ;;
  4635. lynxos*)
  4636. ;;
  4637. m88k*)
  4638. ;;
  4639. mvs*)
  4640. case $cc_basename in
  4641. cxx*)
  4642. _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall'
  4643. ;;
  4644. *)
  4645. ;;
  4646. esac
  4647. ;;
  4648. netbsd*)
  4649. ;;
  4650. osf3* | osf4* | osf5*)
  4651. case $cc_basename in
  4652. KCC*)
  4653. _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
  4654. ;;
  4655. RCC*)
  4656. # Rational C++ 2.4.1
  4657. _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  4658. ;;
  4659. cxx*)
  4660. # Digital/Compaq C++
  4661. _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4662. # Make sure the PIC flag is empty. It appears that all Alpha
  4663. # Linux and Compaq Tru64 Unix objects are PIC.
  4664. _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
  4665. _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  4666. ;;
  4667. *)
  4668. ;;
  4669. esac
  4670. ;;
  4671. psos*)
  4672. ;;
  4673. solaris*)
  4674. case $cc_basename in
  4675. CC*)
  4676. # Sun C++ 4.2, 5.x and Centerline C++
  4677. _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  4678. _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  4679. _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
  4680. ;;
  4681. gcx*)
  4682. # Green Hills C++ Compiler
  4683. _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
  4684. ;;
  4685. *)
  4686. ;;
  4687. esac
  4688. ;;
  4689. sunos4*)
  4690. case $cc_basename in
  4691. CC*)
  4692. # Sun C++ 4.x
  4693. _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  4694. _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  4695. ;;
  4696. lcc*)
  4697. # Lucid
  4698. _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  4699. ;;
  4700. *)
  4701. ;;
  4702. esac
  4703. ;;
  4704. tandem*)
  4705. case $cc_basename in
  4706. NCC*)
  4707. # NonStop-UX NCC 3.20
  4708. _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  4709. ;;
  4710. *)
  4711. ;;
  4712. esac
  4713. ;;
  4714. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  4715. case $cc_basename in
  4716. CC*)
  4717. _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4718. _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  4719. _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  4720. ;;
  4721. esac
  4722. ;;
  4723. vxworks*)
  4724. ;;
  4725. *)
  4726. _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
  4727. ;;
  4728. esac
  4729. fi
  4730. ],
  4731. [
  4732. if test "$GCC" = yes; then
  4733. _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4734. _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
  4735. case $host_os in
  4736. aix*)
  4737. # All AIX code is PIC.
  4738. if test "$host_cpu" = ia64; then
  4739. # AIX 5 now supports IA64 processor
  4740. _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  4741. fi
  4742. ;;
  4743. amigaos*)
  4744. # FIXME: we need at least 68020 code to build shared libraries, but
  4745. # adding the `-m68020' flag to GCC prevents building anything better,
  4746. # like `-m68040'.
  4747. _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
  4748. ;;
  4749. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  4750. # PIC is the default for these OSes.
  4751. ;;
  4752. mingw* | cygwin* | pw32* | os2*)
  4753. # This hack is so that the source file can tell whether it is being
  4754. # built for inclusion in a dll (and should export symbols for example).
  4755. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  4756. # (--disable-auto-import) libraries
  4757. m4_if([$1], [GCJ], [],
  4758. [_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
  4759. ;;
  4760. darwin* | rhapsody*)
  4761. # PIC is the default on this platform
  4762. # Common symbols not allowed in MH_DYLIB files
  4763. _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
  4764. ;;
  4765. interix[[3-9]]*)
  4766. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  4767. # Instead, we relocate shared libraries at runtime.
  4768. ;;
  4769. msdosdjgpp*)
  4770. # Just because we use GCC doesn't mean we suddenly get shared libraries
  4771. # on systems that don't support them.
  4772. _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
  4773. enable_shared=no
  4774. ;;
  4775. sysv4*MP*)
  4776. if test -d /usr/nec; then
  4777. _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
  4778. fi
  4779. ;;
  4780. hpux*)
  4781. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  4782. # not for PA HP-UX.
  4783. case $host_cpu in
  4784. hppa*64*|ia64*)
  4785. # +Z the default
  4786. ;;
  4787. *)
  4788. _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  4789. ;;
  4790. esac
  4791. ;;
  4792. *)
  4793. _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  4794. ;;
  4795. esac
  4796. else
  4797. # PORTME Check for flag to pass linker flags through the system compiler.
  4798. case $host_os in
  4799. aix*)
  4800. _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4801. if test "$host_cpu" = ia64; then
  4802. # AIX 5 now supports IA64 processor
  4803. _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  4804. else
  4805. _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
  4806. fi
  4807. ;;
  4808. darwin*)
  4809. # PIC is the default on this platform
  4810. # Common symbols not allowed in MH_DYLIB files
  4811. case $cc_basename in
  4812. xlc*)
  4813. _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-qnocommon'
  4814. _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4815. ;;
  4816. esac
  4817. ;;
  4818. mingw* | cygwin* | pw32* | os2*)
  4819. # This hack is so that the source file can tell whether it is being
  4820. # built for inclusion in a dll (and should export symbols for example).
  4821. m4_if([$1], [GCJ], [],
  4822. [_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
  4823. ;;
  4824. hpux9* | hpux10* | hpux11*)
  4825. _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4826. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  4827. # not for PA HP-UX.
  4828. case $host_cpu in
  4829. hppa*64*|ia64*)
  4830. # +Z the default
  4831. ;;
  4832. *)
  4833. _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
  4834. ;;
  4835. esac
  4836. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  4837. _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
  4838. ;;
  4839. irix5* | irix6* | nonstopux*)
  4840. _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4841. # PIC (with -KPIC) is the default.
  4842. _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  4843. ;;
  4844. newsos6)
  4845. _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  4846. _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  4847. ;;
  4848. linux* | k*bsd*-gnu)
  4849. case $cc_basename in
  4850. icc* | ecc*)
  4851. _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4852. _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  4853. _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
  4854. ;;
  4855. pgcc* | pgf77* | pgf90* | pgf95*)
  4856. # Portland Group compilers (*not* the Pentium gcc compiler,
  4857. # which looks to be a dead project)
  4858. _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4859. _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
  4860. _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  4861. ;;
  4862. ccc*)
  4863. _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4864. # All Alpha code is PIC.
  4865. _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  4866. ;;
  4867. *)
  4868. case `$CC -V 2>&1 | sed 5q` in
  4869. *Sun\ C*)
  4870. # Sun C 5.9
  4871. _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  4872. _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  4873. _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4874. ;;
  4875. *Sun\ F*)
  4876. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  4877. _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  4878. _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  4879. _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)=''
  4880. ;;
  4881. esac
  4882. ;;
  4883. esac
  4884. ;;
  4885. osf3* | osf4* | osf5*)
  4886. _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4887. # All OSF/1 code is PIC.
  4888. _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  4889. ;;
  4890. rdos*)
  4891. _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  4892. ;;
  4893. solaris*)
  4894. _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  4895. _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  4896. case $cc_basename in
  4897. f77* | f90* | f95*)
  4898. _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';;
  4899. *)
  4900. _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';;
  4901. esac
  4902. ;;
  4903. sunos4*)
  4904. _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
  4905. _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
  4906. _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  4907. ;;
  4908. sysv4 | sysv4.2uw2* | sysv4.3*)
  4909. _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4910. _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  4911. _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  4912. ;;
  4913. sysv4*MP*)
  4914. if test -d /usr/nec ;then
  4915. _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic'
  4916. _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  4917. fi
  4918. ;;
  4919. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  4920. _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4921. _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  4922. _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  4923. ;;
  4924. unicos*)
  4925. _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4926. _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
  4927. ;;
  4928. uts4*)
  4929. _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  4930. _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  4931. ;;
  4932. *)
  4933. _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
  4934. ;;
  4935. esac
  4936. fi
  4937. ])
  4938. AC_MSG_RESULT([$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)])
  4939. #
  4940. # Check to make sure the PIC flag actually works.
  4941. #
  4942. if test -n "$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)"; then
  4943. AC_LIBTOOL_COMPILER_OPTION([if $compiler PIC flag $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) works],
  4944. _LT_AC_TAGVAR(lt_cv_prog_compiler_pic_works, $1),
  4945. [$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])], [],
  4946. [case $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) in
  4947. "" | " "*) ;;
  4948. *) _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)" ;;
  4949. esac],
  4950. [_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
  4951. _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no])
  4952. fi
  4953. case $host_os in
  4954. # For platforms which do not support PIC, -DPIC is meaningless:
  4955. *djgpp*)
  4956. _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
  4957. ;;
  4958. *)
  4959. _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])"
  4960. ;;
  4961. esac
  4962. #
  4963. # Check to make sure the static flag actually works.
  4964. #
  4965. wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_AC_TAGVAR(lt_prog_compiler_static, $1)\"
  4966. AC_LIBTOOL_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works],
  4967. _LT_AC_TAGVAR(lt_cv_prog_compiler_static_works, $1),
  4968. $lt_tmp_static_flag,
  4969. [],
  4970. [_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=])
  4971. ])
  4972. # AC_LIBTOOL_PROG_LD_SHLIBS([TAGNAME])
  4973. # ------------------------------------
  4974. # See if the linker supports building shared libraries.
  4975. AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS],
  4976. [AC_REQUIRE([LT_AC_PROG_SED])dnl
  4977. AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
  4978. ifelse([$1],[CXX],[
  4979. _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  4980. case $host_os in
  4981. aix[[4-9]]*)
  4982. # If we're using GNU nm, then we don't want the "-C" option.
  4983. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  4984. if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
  4985. _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\[$]2 == "T") || (\[$]2 == "D") || (\[$]2 == "B")) && ([substr](\[$]3,1,1) != ".")) { print \[$]3 } }'\'' | sort -u > $export_symbols'
  4986. else
  4987. _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\[$]2 == "T") || (\[$]2 == "D") || (\[$]2 == "B")) && ([substr](\[$]3,1,1) != ".")) { print \[$]3 } }'\'' | sort -u > $export_symbols'
  4988. fi
  4989. ;;
  4990. pw32*)
  4991. _LT_AC_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
  4992. ;;
  4993. cygwin* | mingw*)
  4994. _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/;/^.*[[ ]]__nm__/s/^.*[[ ]]__nm__\([[^ ]]*\)[[ ]][[^ ]]*/\1 DATA/;/^I[[ ]]/d;/^[[AITW]][[ ]]/s/.*[[ ]]//'\'' | sort | uniq > $export_symbols'
  4995. ;;
  4996. *)
  4997. _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  4998. ;;
  4999. esac
  5000. _LT_AC_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
  5001. ],[
  5002. runpath_var=
  5003. _LT_AC_TAGVAR(allow_undefined_flag, $1)=
  5004. _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
  5005. _LT_AC_TAGVAR(archive_cmds, $1)=
  5006. _LT_AC_TAGVAR(archive_expsym_cmds, $1)=
  5007. _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)=
  5008. _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1)=
  5009. _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
  5010. _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
  5011. _LT_AC_TAGVAR(thread_safe_flag_spec, $1)=
  5012. _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
  5013. _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
  5014. _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
  5015. _LT_AC_TAGVAR(hardcode_direct, $1)=no
  5016. _LT_AC_TAGVAR(hardcode_minus_L, $1)=no
  5017. _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
  5018. _LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
  5019. _LT_AC_TAGVAR(hardcode_automatic, $1)=no
  5020. _LT_AC_TAGVAR(module_cmds, $1)=
  5021. _LT_AC_TAGVAR(module_expsym_cmds, $1)=
  5022. _LT_AC_TAGVAR(always_export_symbols, $1)=no
  5023. _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  5024. # include_expsyms should be a list of space-separated symbols to be *always*
  5025. # included in the symbol list
  5026. _LT_AC_TAGVAR(include_expsyms, $1)=
  5027. # exclude_expsyms can be an extended regexp of symbols to exclude
  5028. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  5029. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  5030. # as well as any symbol that contains `d'.
  5031. _LT_AC_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
  5032. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  5033. # platforms (ab)use it in PIC code, but their linkers get confused if
  5034. # the symbol is explicitly referenced. Since portable code cannot
  5035. # rely on this symbol name, it's probably fine to never include it in
  5036. # preloaded symbol tables.
  5037. # Exclude shared library initialization/finalization symbols.
  5038. dnl Note also adjust exclude_expsyms for C++ above.
  5039. extract_expsyms_cmds=
  5040. # Just being paranoid about ensuring that cc_basename is set.
  5041. _LT_CC_BASENAME([$compiler])
  5042. case $host_os in
  5043. cygwin* | mingw* | pw32*)
  5044. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  5045. # When not using gcc, we currently assume that we are using
  5046. # Microsoft Visual C++.
  5047. if test "$GCC" != yes; then
  5048. with_gnu_ld=no
  5049. fi
  5050. ;;
  5051. interix*)
  5052. # we just hope/assume this is gcc and not c89 (= MSVC++)
  5053. with_gnu_ld=yes
  5054. ;;
  5055. openbsd*)
  5056. with_gnu_ld=no
  5057. ;;
  5058. esac
  5059. _LT_AC_TAGVAR(ld_shlibs, $1)=yes
  5060. if test "$with_gnu_ld" = yes; then
  5061. # If archive_cmds runs LD, not CC, wlarc should be empty
  5062. wlarc='${wl}'
  5063. # Set some defaults for GNU ld with shared library support. These
  5064. # are reset later if shared libraries are not supported. Putting them
  5065. # here allows them to be overridden if necessary.
  5066. runpath_var=LD_RUN_PATH
  5067. _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
  5068. _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  5069. # ancient GNU ld didn't support --whole-archive et. al.
  5070. if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
  5071. _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  5072. else
  5073. _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
  5074. fi
  5075. supports_anon_versioning=no
  5076. case `$LD -v 2>/dev/null` in
  5077. *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11
  5078. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  5079. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  5080. *\ 2.11.*) ;; # other 2.11 versions
  5081. *) supports_anon_versioning=yes ;;
  5082. esac
  5083. # See if GNU ld supports shared libraries.
  5084. case $host_os in
  5085. aix[[3-9]]*)
  5086. # On AIX/PPC, the GNU linker is very broken
  5087. if test "$host_cpu" != ia64; then
  5088. _LT_AC_TAGVAR(ld_shlibs, $1)=no
  5089. cat <<EOF 1>&2
  5090. *** Warning: the GNU linker, at least up to release 2.9.1, is reported
  5091. *** to be unable to reliably create shared libraries on AIX.
  5092. *** Therefore, libtool is disabling shared libraries support. If you
  5093. *** really care for shared libraries, you may want to modify your PATH
  5094. *** so that a non-GNU linker is found, and then restart.
  5095. EOF
  5096. fi
  5097. ;;
  5098. amigaos*)
  5099. _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
  5100. _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  5101. _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
  5102. # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
  5103. # that the semantics of dynamic libraries on AmigaOS, at least up
  5104. # to version 4, is to share data among multiple programs linked
  5105. # with the same dynamic library. Since this doesn't match the
  5106. # behavior of shared libraries on other platforms, we can't use
  5107. # them.
  5108. _LT_AC_TAGVAR(ld_shlibs, $1)=no
  5109. ;;
  5110. beos*)
  5111. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  5112. _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
  5113. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  5114. # support --undefined. This deserves some investigation. FIXME
  5115. _LT_AC_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  5116. else
  5117. _LT_AC_TAGVAR(ld_shlibs, $1)=no
  5118. fi
  5119. ;;
  5120. cygwin* | mingw* | pw32*)
  5121. # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
  5122. # as there is no search path for DLLs.
  5123. _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  5124. _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
  5125. _LT_AC_TAGVAR(always_export_symbols, $1)=no
  5126. _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
  5127. _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/'\'' -e '\''/^[[AITW]][[ ]]/s/.*[[ ]]//'\'' | sort | uniq > $export_symbols'
  5128. if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
  5129. _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  5130. # If the export-symbols file already is a .def file (1st line
  5131. # is EXPORTS), use it as is; otherwise, prepend...
  5132. _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  5133. cp $export_symbols $output_objdir/$soname.def;
  5134. else
  5135. echo EXPORTS > $output_objdir/$soname.def;
  5136. cat $export_symbols >> $output_objdir/$soname.def;
  5137. fi~
  5138. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  5139. else
  5140. _LT_AC_TAGVAR(ld_shlibs, $1)=no
  5141. fi
  5142. ;;
  5143. interix[[3-9]]*)
  5144. _LT_AC_TAGVAR(hardcode_direct, $1)=no
  5145. _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  5146. _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  5147. _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  5148. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  5149. # Instead, shared libraries are loaded at an image base (0x10000000 by
  5150. # default) and relocated if they conflict, which is a slow very memory
  5151. # consuming and fragmenting process. To avoid this, we pick a random,
  5152. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  5153. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  5154. _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  5155. _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  5156. ;;
  5157. gnu* | linux* | k*bsd*-gnu)
  5158. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  5159. tmp_addflag=
  5160. case $cc_basename,$host_cpu in
  5161. pgcc*) # Portland Group C compiler
  5162. _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
  5163. tmp_addflag=' $pic_flag'
  5164. ;;
  5165. pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
  5166. _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
  5167. tmp_addflag=' $pic_flag -Mnomain' ;;
  5168. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  5169. tmp_addflag=' -i_dynamic' ;;
  5170. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  5171. tmp_addflag=' -i_dynamic -nofor_main' ;;
  5172. ifc* | ifort*) # Intel Fortran compiler
  5173. tmp_addflag=' -nofor_main' ;;
  5174. esac
  5175. case `$CC -V 2>&1 | sed 5q` in
  5176. *Sun\ C*) # Sun C 5.9
  5177. _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
  5178. tmp_sharedflag='-G' ;;
  5179. *Sun\ F*) # Sun Fortran 8.3
  5180. tmp_sharedflag='-G' ;;
  5181. *)
  5182. tmp_sharedflag='-shared' ;;
  5183. esac
  5184. _LT_AC_TAGVAR(archive_cmds, $1)='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  5185. if test $supports_anon_versioning = yes; then
  5186. _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $output_objdir/$libname.ver~
  5187. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  5188. $echo "local: *; };" >> $output_objdir/$libname.ver~
  5189. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  5190. fi
  5191. else
  5192. _LT_AC_TAGVAR(ld_shlibs, $1)=no
  5193. fi
  5194. ;;
  5195. netbsd*)
  5196. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  5197. _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  5198. wlarc=
  5199. else
  5200. _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  5201. _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  5202. fi
  5203. ;;
  5204. solaris*)
  5205. if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
  5206. _LT_AC_TAGVAR(ld_shlibs, $1)=no
  5207. cat <<EOF 1>&2
  5208. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  5209. *** create shared libraries on Solaris systems. Therefore, libtool
  5210. *** is disabling shared libraries support. We urge you to upgrade GNU
  5211. *** binutils to release 2.9.1 or newer. Another option is to modify
  5212. *** your PATH or compiler configuration so that the native linker is
  5213. *** used, and then restart.
  5214. EOF
  5215. elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  5216. _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  5217. _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  5218. else
  5219. _LT_AC_TAGVAR(ld_shlibs, $1)=no
  5220. fi
  5221. ;;
  5222. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  5223. case `$LD -v 2>&1` in
  5224. *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*)
  5225. _LT_AC_TAGVAR(ld_shlibs, $1)=no
  5226. cat <<_LT_EOF 1>&2
  5227. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  5228. *** reliably create shared libraries on SCO systems. Therefore, libtool
  5229. *** is disabling shared libraries support. We urge you to upgrade GNU
  5230. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  5231. *** your PATH or compiler configuration so that the native linker is
  5232. *** used, and then restart.
  5233. _LT_EOF
  5234. ;;
  5235. *)
  5236. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  5237. _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
  5238. _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
  5239. _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
  5240. else
  5241. _LT_AC_TAGVAR(ld_shlibs, $1)=no
  5242. fi
  5243. ;;
  5244. esac
  5245. ;;
  5246. sunos4*)
  5247. _LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  5248. wlarc=
  5249. _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  5250. _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  5251. ;;
  5252. *)
  5253. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  5254. _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  5255. _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  5256. else
  5257. _LT_AC_TAGVAR(ld_shlibs, $1)=no
  5258. fi
  5259. ;;
  5260. esac
  5261. if test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no; then
  5262. runpath_var=
  5263. _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
  5264. _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
  5265. _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
  5266. fi
  5267. else
  5268. # PORTME fill in a description of your system's linker (not GNU ld)
  5269. case $host_os in
  5270. aix3*)
  5271. _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
  5272. _LT_AC_TAGVAR(always_export_symbols, $1)=yes
  5273. _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
  5274. # Note: this linker hardcodes the directories in LIBPATH if there
  5275. # are no directories specified by -L.
  5276. _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
  5277. if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  5278. # Neither direct hardcoding nor static linking is supported with a
  5279. # broken collect2.
  5280. _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
  5281. fi
  5282. ;;
  5283. aix[[4-9]]*)
  5284. if test "$host_cpu" = ia64; then
  5285. # On IA64, the linker does run time linking by default, so we don't
  5286. # have to do anything special.
  5287. aix_use_runtimelinking=no
  5288. exp_sym_flag='-Bexport'
  5289. no_entry_flag=""
  5290. else
  5291. # If we're using GNU nm, then we don't want the "-C" option.
  5292. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  5293. if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
  5294. _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\[$]2 == "T") || (\[$]2 == "D") || (\[$]2 == "B")) && ([substr](\[$]3,1,1) != ".")) { print \[$]3 } }'\'' | sort -u > $export_symbols'
  5295. else
  5296. _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\[$]2 == "T") || (\[$]2 == "D") || (\[$]2 == "B")) && ([substr](\[$]3,1,1) != ".")) { print \[$]3 } }'\'' | sort -u > $export_symbols'
  5297. fi
  5298. aix_use_runtimelinking=no
  5299. # Test if we are trying to use run time linking or normal
  5300. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  5301. # need to do runtime linking.
  5302. case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
  5303. for ld_flag in $LDFLAGS; do
  5304. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  5305. aix_use_runtimelinking=yes
  5306. break
  5307. fi
  5308. done
  5309. ;;
  5310. esac
  5311. exp_sym_flag='-bexport'
  5312. no_entry_flag='-bnoentry'
  5313. fi
  5314. # When large executables or shared objects are built, AIX ld can
  5315. # have problems creating the table of contents. If linking a library
  5316. # or program results in "error TOC overflow" add -mminimal-toc to
  5317. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  5318. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  5319. _LT_AC_TAGVAR(archive_cmds, $1)=''
  5320. _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  5321. _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
  5322. _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
  5323. if test "$GCC" = yes; then
  5324. case $host_os in aix4.[[012]]|aix4.[[012]].*)
  5325. # We only want to do this on AIX 4.2 and lower, the check
  5326. # below for broken collect2 doesn't work under 4.3+
  5327. collect2name=`${CC} -print-prog-name=collect2`
  5328. if test -f "$collect2name" && \
  5329. strings "$collect2name" | grep resolve_lib_name >/dev/null
  5330. then
  5331. # We have reworked collect2
  5332. :
  5333. else
  5334. # We have old collect2
  5335. _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
  5336. # It fails to find uninstalled libraries when the uninstalled
  5337. # path is not listed in the libpath. Setting hardcode_minus_L
  5338. # to unsupported forces relinking
  5339. _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
  5340. _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  5341. _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
  5342. fi
  5343. ;;
  5344. esac
  5345. shared_flag='-shared'
  5346. if test "$aix_use_runtimelinking" = yes; then
  5347. shared_flag="$shared_flag "'${wl}-G'
  5348. fi
  5349. else
  5350. # not using gcc
  5351. if test "$host_cpu" = ia64; then
  5352. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  5353. # chokes on -Wl,-G. The following line is correct:
  5354. shared_flag='-G'
  5355. else
  5356. if test "$aix_use_runtimelinking" = yes; then
  5357. shared_flag='${wl}-G'
  5358. else
  5359. shared_flag='${wl}-bM:SRE'
  5360. fi
  5361. fi
  5362. fi
  5363. # It seems that -bexpall does not export symbols beginning with
  5364. # underscore (_), so it is better to generate a list of symbols to export.
  5365. _LT_AC_TAGVAR(always_export_symbols, $1)=yes
  5366. if test "$aix_use_runtimelinking" = yes; then
  5367. # Warning - without using the other runtime loading flags (-brtl),
  5368. # -berok will link without error, but may produce a broken library.
  5369. _LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok'
  5370. # Determine the default libpath from the value encoded in an empty executable.
  5371. _LT_AC_SYS_LIBPATH_AIX
  5372. _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
  5373. _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  5374. else
  5375. if test "$host_cpu" = ia64; then
  5376. _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
  5377. _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
  5378. _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
  5379. else
  5380. # Determine the default libpath from the value encoded in an empty executable.
  5381. _LT_AC_SYS_LIBPATH_AIX
  5382. _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
  5383. # Warning - without using the other run time loading flags,
  5384. # -berok will link without error, but may produce a broken library.
  5385. _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
  5386. _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
  5387. # Exported symbols can be pulled into shared objects from archives
  5388. _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
  5389. _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
  5390. # This is similar to how AIX traditionally builds its shared libraries.
  5391. _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
  5392. fi
  5393. fi
  5394. ;;
  5395. amigaos*)
  5396. _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
  5397. _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  5398. _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
  5399. # see comment about different semantics on the GNU ld section
  5400. _LT_AC_TAGVAR(ld_shlibs, $1)=no
  5401. ;;
  5402. bsdi[[45]]*)
  5403. _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic
  5404. ;;
  5405. cygwin* | mingw* | pw32*)
  5406. # When not using gcc, we currently assume that we are using
  5407. # Microsoft Visual C++.
  5408. # hardcode_libdir_flag_spec is actually meaningless, as there is
  5409. # no search path for DLLs.
  5410. _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
  5411. _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
  5412. # Tell ltmain to make .lib files, not .a files.
  5413. libext=lib
  5414. # Tell ltmain to make .dll files, not .so files.
  5415. shrext_cmds=".dll"
  5416. # FIXME: Setting linknames here is a bad hack.
  5417. _LT_AC_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
  5418. # The linker will automatically build a .lib file if we build a DLL.
  5419. _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='true'
  5420. # FIXME: Should let the user specify the lib program.
  5421. _LT_AC_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs'
  5422. _LT_AC_TAGVAR(fix_srcfile_path, $1)='`cygpath -w "$srcfile"`'
  5423. _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
  5424. ;;
  5425. darwin* | rhapsody*)
  5426. _LT_AC_TAGVAR(allow_undefined_flag, $1)="$_lt_dar_allow_undefined"
  5427. _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  5428. _LT_AC_TAGVAR(hardcode_direct, $1)=no
  5429. _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
  5430. _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
  5431. _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=''
  5432. _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
  5433. if test "$GCC" = yes ; then
  5434. output_verbose_link_cmd='echo'
  5435. _LT_AC_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}"
  5436. _LT_AC_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  5437. _LT_AC_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}"
  5438. _LT_AC_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}"
  5439. else
  5440. case $cc_basename in
  5441. xlc*)
  5442. output_verbose_link_cmd='echo'
  5443. _LT_AC_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
  5444. _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  5445. # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  5446. _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  5447. _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  5448. ;;
  5449. *)
  5450. _LT_AC_TAGVAR(ld_shlibs, $1)=no
  5451. ;;
  5452. esac
  5453. fi
  5454. ;;
  5455. dgux*)
  5456. _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  5457. _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  5458. _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  5459. ;;
  5460. freebsd1*)
  5461. _LT_AC_TAGVAR(ld_shlibs, $1)=no
  5462. ;;
  5463. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  5464. # support. Future versions do this automatically, but an explicit c++rt0.o
  5465. # does not break anything, and helps significantly (at the cost of a little
  5466. # extra space).
  5467. freebsd2.2*)
  5468. _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  5469. _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  5470. _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  5471. _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  5472. ;;
  5473. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  5474. freebsd2*)
  5475. _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  5476. _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  5477. _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
  5478. _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  5479. ;;
  5480. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  5481. freebsd* | dragonfly*)
  5482. _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  5483. _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  5484. _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  5485. _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  5486. ;;
  5487. hpux9*)
  5488. if test "$GCC" = yes; then
  5489. _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  5490. else
  5491. _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  5492. fi
  5493. _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  5494. _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  5495. _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  5496. # hardcode_minus_L: Not really in the search PATH,
  5497. # but as the default location of the library.
  5498. _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
  5499. _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  5500. ;;
  5501. hpux10*)
  5502. if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  5503. _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  5504. else
  5505. _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  5506. fi
  5507. if test "$with_gnu_ld" = no; then
  5508. _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  5509. _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  5510. _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  5511. _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  5512. # hardcode_minus_L: Not really in the search PATH,
  5513. # but as the default location of the library.
  5514. _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
  5515. fi
  5516. ;;
  5517. hpux11*)
  5518. if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  5519. case $host_cpu in
  5520. hppa*64*)
  5521. _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  5522. ;;
  5523. ia64*)
  5524. _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  5525. ;;
  5526. *)
  5527. _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  5528. ;;
  5529. esac
  5530. else
  5531. case $host_cpu in
  5532. hppa*64*)
  5533. _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  5534. ;;
  5535. ia64*)
  5536. _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  5537. ;;
  5538. *)
  5539. _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  5540. ;;
  5541. esac
  5542. fi
  5543. if test "$with_gnu_ld" = no; then
  5544. _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  5545. _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  5546. case $host_cpu in
  5547. hppa*64*|ia64*)
  5548. _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
  5549. _LT_AC_TAGVAR(hardcode_direct, $1)=no
  5550. _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  5551. ;;
  5552. *)
  5553. _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  5554. _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  5555. # hardcode_minus_L: Not really in the search PATH,
  5556. # but as the default location of the library.
  5557. _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
  5558. ;;
  5559. esac
  5560. fi
  5561. ;;
  5562. irix5* | irix6* | nonstopux*)
  5563. if test "$GCC" = yes; then
  5564. _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  5565. else
  5566. _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
  5567. _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='-rpath $libdir'
  5568. fi
  5569. _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  5570. _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  5571. _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
  5572. ;;
  5573. netbsd*)
  5574. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  5575. _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  5576. else
  5577. _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  5578. fi
  5579. _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  5580. _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  5581. _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  5582. ;;
  5583. newsos6)
  5584. _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  5585. _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  5586. _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  5587. _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  5588. _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  5589. ;;
  5590. openbsd*)
  5591. if test -f /usr/libexec/ld.so; then
  5592. _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  5593. _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  5594. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  5595. _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  5596. _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  5597. _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  5598. _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  5599. else
  5600. case $host_os in
  5601. openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)
  5602. _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  5603. _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  5604. ;;
  5605. *)
  5606. _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  5607. _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  5608. ;;
  5609. esac
  5610. fi
  5611. else
  5612. _LT_AC_TAGVAR(ld_shlibs, $1)=no
  5613. fi
  5614. ;;
  5615. os2*)
  5616. _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  5617. _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
  5618. _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
  5619. _LT_AC_TAGVAR(archive_cmds, $1)='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
  5620. _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  5621. ;;
  5622. osf3*)
  5623. if test "$GCC" = yes; then
  5624. _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
  5625. _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  5626. else
  5627. _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
  5628. _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
  5629. fi
  5630. _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  5631. _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  5632. ;;
  5633. osf4* | osf5*) # as osf3* with the addition of -msym flag
  5634. if test "$GCC" = yes; then
  5635. _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
  5636. _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  5637. _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  5638. else
  5639. _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
  5640. _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
  5641. _LT_AC_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
  5642. $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
  5643. # Both c and cxx compiler support -rpath directly
  5644. _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
  5645. fi
  5646. _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  5647. ;;
  5648. solaris*)
  5649. _LT_AC_TAGVAR(no_undefined_flag, $1)=' -z text'
  5650. if test "$GCC" = yes; then
  5651. wlarc='${wl}'
  5652. _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  5653. _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  5654. $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
  5655. else
  5656. wlarc=''
  5657. _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  5658. _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  5659. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
  5660. fi
  5661. _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  5662. _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  5663. case $host_os in
  5664. solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
  5665. *)
  5666. # The compiler driver will combine and reorder linker options,
  5667. # but understands `-z linker_flag'. GCC discards it without `$wl',
  5668. # but is careful enough not to reorder.
  5669. # Supported since Solaris 2.6 (maybe 2.5.1?)
  5670. if test "$GCC" = yes; then
  5671. _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  5672. else
  5673. _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
  5674. fi
  5675. ;;
  5676. esac
  5677. _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
  5678. ;;
  5679. sunos4*)
  5680. if test "x$host_vendor" = xsequent; then
  5681. # Use $CC to link under sequent, because it throws in some extra .o
  5682. # files that make .init and .fini sections work.
  5683. _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  5684. else
  5685. _LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  5686. fi
  5687. _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  5688. _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  5689. _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
  5690. _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  5691. ;;
  5692. sysv4)
  5693. case $host_vendor in
  5694. sni)
  5695. _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  5696. _LT_AC_TAGVAR(hardcode_direct, $1)=yes # is this really true???
  5697. ;;
  5698. siemens)
  5699. ## LD is ld it makes a PLAMLIB
  5700. ## CC just makes a GrossModule.
  5701. _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  5702. _LT_AC_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs'
  5703. _LT_AC_TAGVAR(hardcode_direct, $1)=no
  5704. ;;
  5705. motorola)
  5706. _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  5707. _LT_AC_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie
  5708. ;;
  5709. esac
  5710. runpath_var='LD_RUN_PATH'
  5711. _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  5712. ;;
  5713. sysv4.3*)
  5714. _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  5715. _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  5716. _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport'
  5717. ;;
  5718. sysv4*MP*)
  5719. if test -d /usr/nec; then
  5720. _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  5721. _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  5722. runpath_var=LD_RUN_PATH
  5723. hardcode_runpath_var=yes
  5724. _LT_AC_TAGVAR(ld_shlibs, $1)=yes
  5725. fi
  5726. ;;
  5727. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
  5728. _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
  5729. _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  5730. _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  5731. runpath_var='LD_RUN_PATH'
  5732. if test "$GCC" = yes; then
  5733. _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  5734. _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  5735. else
  5736. _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  5737. _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  5738. fi
  5739. ;;
  5740. sysv5* | sco3.2v5* | sco5v6*)
  5741. # Note: We can NOT use -z defs as we might desire, because we do not
  5742. # link with -lc, and that would cause any symbols used from libc to
  5743. # always be unresolved, which means just about no library would
  5744. # ever link correctly. If we're not using GNU ld we use -z text
  5745. # though, which does catch some bad symbols but isn't as heavy-handed
  5746. # as -z defs.
  5747. _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
  5748. _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
  5749. _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  5750. _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  5751. _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
  5752. _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
  5753. _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
  5754. _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
  5755. runpath_var='LD_RUN_PATH'
  5756. if test "$GCC" = yes; then
  5757. _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  5758. _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  5759. else
  5760. _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  5761. _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  5762. fi
  5763. ;;
  5764. uts4*)
  5765. _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  5766. _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  5767. _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  5768. ;;
  5769. *)
  5770. _LT_AC_TAGVAR(ld_shlibs, $1)=no
  5771. ;;
  5772. esac
  5773. fi
  5774. ])
  5775. AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)])
  5776. test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
  5777. #
  5778. # Do we need to explicitly link libc?
  5779. #
  5780. case "x$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)" in
  5781. x|xyes)
  5782. # Assume -lc should be added
  5783. _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
  5784. if test "$enable_shared" = yes && test "$GCC" = yes; then
  5785. case $_LT_AC_TAGVAR(archive_cmds, $1) in
  5786. *'~'*)
  5787. # FIXME: we may have to deal with multi-command sequences.
  5788. ;;
  5789. '$CC '*)
  5790. # Test whether the compiler implicitly links with -lc since on some
  5791. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  5792. # to ld, don't add -lc before -lgcc.
  5793. AC_MSG_CHECKING([whether -lc should be explicitly linked in])
  5794. $rm conftest*
  5795. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  5796. if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
  5797. soname=conftest
  5798. lib=conftest
  5799. libobjs=conftest.$ac_objext
  5800. deplibs=
  5801. wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)
  5802. pic_flag=$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)
  5803. compiler_flags=-v
  5804. linker_flags=-v
  5805. verstring=
  5806. output_objdir=.
  5807. libname=conftest
  5808. lt_save_allow_undefined_flag=$_LT_AC_TAGVAR(allow_undefined_flag, $1)
  5809. _LT_AC_TAGVAR(allow_undefined_flag, $1)=
  5810. if AC_TRY_EVAL(_LT_AC_TAGVAR(archive_cmds, $1) 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1)
  5811. then
  5812. _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  5813. else
  5814. _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
  5815. fi
  5816. _LT_AC_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
  5817. else
  5818. cat conftest.err 1>&5
  5819. fi
  5820. $rm conftest*
  5821. AC_MSG_RESULT([$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)])
  5822. ;;
  5823. esac
  5824. fi
  5825. ;;
  5826. esac
  5827. ])# AC_LIBTOOL_PROG_LD_SHLIBS
  5828. # _LT_AC_FILE_LTDLL_C
  5829. # -------------------
  5830. # Be careful that the start marker always follows a newline.
  5831. AC_DEFUN([_LT_AC_FILE_LTDLL_C], [
  5832. # /* ltdll.c starts here */
  5833. # #define WIN32_LEAN_AND_MEAN
  5834. # #include <windows.h>
  5835. # #undef WIN32_LEAN_AND_MEAN
  5836. # #include <stdio.h>
  5837. #
  5838. # #ifndef __CYGWIN__
  5839. # # ifdef __CYGWIN32__
  5840. # # define __CYGWIN__ __CYGWIN32__
  5841. # # endif
  5842. # #endif
  5843. #
  5844. # #ifdef __cplusplus
  5845. # extern "C" {
  5846. # #endif
  5847. # BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
  5848. # #ifdef __cplusplus
  5849. # }
  5850. # #endif
  5851. #
  5852. # #ifdef __CYGWIN__
  5853. # #include <cygwin/cygwin_dll.h>
  5854. # DECLARE_CYGWIN_DLL( DllMain );
  5855. # #endif
  5856. # HINSTANCE __hDllInstance_base;
  5857. #
  5858. # BOOL APIENTRY
  5859. # DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
  5860. # {
  5861. # __hDllInstance_base = hInst;
  5862. # return TRUE;
  5863. # }
  5864. # /* ltdll.c ends here */
  5865. ])# _LT_AC_FILE_LTDLL_C
  5866. # _LT_AC_TAGVAR(VARNAME, [TAGNAME])
  5867. # ---------------------------------
  5868. AC_DEFUN([_LT_AC_TAGVAR], [ifelse([$2], [], [$1], [$1_$2])])
  5869. # old names
  5870. AC_DEFUN([AM_PROG_LIBTOOL], [AC_PROG_LIBTOOL])
  5871. AC_DEFUN([AM_ENABLE_SHARED], [AC_ENABLE_SHARED($@)])
  5872. AC_DEFUN([AM_ENABLE_STATIC], [AC_ENABLE_STATIC($@)])
  5873. AC_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)])
  5874. AC_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)])
  5875. AC_DEFUN([AM_PROG_LD], [AC_PROG_LD])
  5876. AC_DEFUN([AM_PROG_NM], [AC_PROG_NM])
  5877. # This is just to silence aclocal about the macro not being used
  5878. ifelse([AC_DISABLE_FAST_INSTALL])
  5879. AC_DEFUN([LT_AC_PROG_GCJ],
  5880. [AC_CHECK_TOOL(GCJ, gcj, no)
  5881. test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
  5882. AC_SUBST(GCJFLAGS)
  5883. ])
  5884. AC_DEFUN([LT_AC_PROG_RC],
  5885. [AC_CHECK_TOOL(RC, windres, no)
  5886. ])
  5887. # Cheap backport of AS_EXECUTABLE_P and required macros
  5888. # from Autoconf 2.59; we should not use $as_executable_p directly.
  5889. # _AS_TEST_PREPARE
  5890. # ----------------
  5891. m4_ifndef([_AS_TEST_PREPARE],
  5892. [m4_defun([_AS_TEST_PREPARE],
  5893. [if test -x / >/dev/null 2>&1; then
  5894. as_executable_p='test -x'
  5895. else
  5896. as_executable_p='test -f'
  5897. fi
  5898. ])])# _AS_TEST_PREPARE
  5899. # AS_EXECUTABLE_P
  5900. # ---------------
  5901. # Check whether a file is executable.
  5902. m4_ifndef([AS_EXECUTABLE_P],
  5903. [m4_defun([AS_EXECUTABLE_P],
  5904. [AS_REQUIRE([_AS_TEST_PREPARE])dnl
  5905. $as_executable_p $1[]dnl
  5906. ])])# AS_EXECUTABLE_P
  5907. # NOTE: This macro has been submitted for inclusion into #
  5908. # GNU Autoconf as AC_PROG_SED. When it is available in #
  5909. # a released version of Autoconf we should remove this #
  5910. # macro and use it instead. #
  5911. # LT_AC_PROG_SED
  5912. # --------------
  5913. # Check for a fully-functional sed program, that truncates
  5914. # as few characters as possible. Prefer GNU sed if found.
  5915. AC_DEFUN([LT_AC_PROG_SED],
  5916. [AC_MSG_CHECKING([for a sed that does not truncate output])
  5917. AC_CACHE_VAL(lt_cv_path_SED,
  5918. [# Loop through the user's path and test for sed and gsed.
  5919. # Then use that list of sed's as ones to test for truncation.
  5920. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5921. for as_dir in $PATH
  5922. do
  5923. IFS=$as_save_IFS
  5924. test -z "$as_dir" && as_dir=.
  5925. for lt_ac_prog in sed gsed; do
  5926. for ac_exec_ext in '' $ac_executable_extensions; do
  5927. if AS_EXECUTABLE_P(["$as_dir/$lt_ac_prog$ac_exec_ext"]); then
  5928. lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
  5929. fi
  5930. done
  5931. done
  5932. done
  5933. IFS=$as_save_IFS
  5934. lt_ac_max=0
  5935. lt_ac_count=0
  5936. # Add /usr/xpg4/bin/sed as it is typically found on Solaris
  5937. # along with /bin/sed that truncates output.
  5938. for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
  5939. test ! -f $lt_ac_sed && continue
  5940. cat /dev/null > conftest.in
  5941. lt_ac_count=0
  5942. echo $ECHO_N "0123456789$ECHO_C" >conftest.in
  5943. # Check for GNU sed and select it if it is found.
  5944. if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
  5945. lt_cv_path_SED=$lt_ac_sed
  5946. break
  5947. fi
  5948. while true; do
  5949. cat conftest.in conftest.in >conftest.tmp
  5950. mv conftest.tmp conftest.in
  5951. cp conftest.in conftest.nl
  5952. echo >>conftest.nl
  5953. $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
  5954. cmp -s conftest.out conftest.nl || break
  5955. # 10000 chars as input seems more than enough
  5956. test $lt_ac_count -gt 10 && break
  5957. lt_ac_count=`expr $lt_ac_count + 1`
  5958. if test $lt_ac_count -gt $lt_ac_max; then
  5959. lt_ac_max=$lt_ac_count
  5960. lt_cv_path_SED=$lt_ac_sed
  5961. fi
  5962. done
  5963. done
  5964. ])
  5965. SED=$lt_cv_path_SED
  5966. AC_SUBST([SED])
  5967. AC_MSG_RESULT([$SED])
  5968. ])
  5969. # Copyright (C) 2002, 2003, 2005, 2006, 2007 Free Software Foundation, Inc.
  5970. #
  5971. # This file is free software; the Free Software Foundation
  5972. # gives unlimited permission to copy and/or distribute it,
  5973. # with or without modifications, as long as this notice is preserved.
  5974. # AM_AUTOMAKE_VERSION(VERSION)
  5975. # ----------------------------
  5976. # Automake X.Y traces this macro to ensure aclocal.m4 has been
  5977. # generated from the m4 files accompanying Automake X.Y.
  5978. # (This private macro should not be called outside this file.)
  5979. AC_DEFUN([AM_AUTOMAKE_VERSION],
  5980. [am__api_version='1.10'
  5981. dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
  5982. dnl require some minimum version. Point them to the right macro.
  5983. m4_if([$1], [1.10.1], [],
  5984. [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
  5985. ])
  5986. # _AM_AUTOCONF_VERSION(VERSION)
  5987. # -----------------------------
  5988. # aclocal traces this macro to find the Autoconf version.
  5989. # This is a private macro too. Using m4_define simplifies
  5990. # the logic in aclocal, which can simply ignore this definition.
  5991. m4_define([_AM_AUTOCONF_VERSION], [])
  5992. # AM_SET_CURRENT_AUTOMAKE_VERSION
  5993. # -------------------------------
  5994. # Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
  5995. # This function is AC_REQUIREd by AC_INIT_AUTOMAKE.
  5996. AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
  5997. [AM_AUTOMAKE_VERSION([1.10.1])dnl
  5998. m4_ifndef([AC_AUTOCONF_VERSION],
  5999. [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
  6000. _AM_AUTOCONF_VERSION(AC_AUTOCONF_VERSION)])
  6001. # AM_AUX_DIR_EXPAND -*- Autoconf -*-
  6002. # Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
  6003. #
  6004. # This file is free software; the Free Software Foundation
  6005. # gives unlimited permission to copy and/or distribute it,
  6006. # with or without modifications, as long as this notice is preserved.
  6007. # For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
  6008. # $ac_aux_dir to `$srcdir/foo'. In other projects, it is set to
  6009. # `$srcdir', `$srcdir/..', or `$srcdir/../..'.
  6010. #
  6011. # Of course, Automake must honor this variable whenever it calls a
  6012. # tool from the auxiliary directory. The problem is that $srcdir (and
  6013. # therefore $ac_aux_dir as well) can be either absolute or relative,
  6014. # depending on how configure is run. This is pretty annoying, since
  6015. # it makes $ac_aux_dir quite unusable in subdirectories: in the top
  6016. # source directory, any form will work fine, but in subdirectories a
  6017. # relative path needs to be adjusted first.
  6018. #
  6019. # $ac_aux_dir/missing
  6020. # fails when called from a subdirectory if $ac_aux_dir is relative
  6021. # $top_srcdir/$ac_aux_dir/missing
  6022. # fails if $ac_aux_dir is absolute,
  6023. # fails when called from a subdirectory in a VPATH build with
  6024. # a relative $ac_aux_dir
  6025. #
  6026. # The reason of the latter failure is that $top_srcdir and $ac_aux_dir
  6027. # are both prefixed by $srcdir. In an in-source build this is usually
  6028. # harmless because $srcdir is `.', but things will broke when you
  6029. # start a VPATH build or use an absolute $srcdir.
  6030. #
  6031. # So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
  6032. # iff we strip the leading $srcdir from $ac_aux_dir. That would be:
  6033. # am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"`
  6034. # and then we would define $MISSING as
  6035. # MISSING="\${SHELL} $am_aux_dir/missing"
  6036. # This will work as long as MISSING is not called from configure, because
  6037. # unfortunately $(top_srcdir) has no meaning in configure.
  6038. # However there are other variables, like CC, which are often used in
  6039. # configure, and could therefore not use this "fixed" $ac_aux_dir.
  6040. #
  6041. # Another solution, used here, is to always expand $ac_aux_dir to an
  6042. # absolute PATH. The drawback is that using absolute paths prevent a
  6043. # configured tree to be moved without reconfiguration.
  6044. AC_DEFUN([AM_AUX_DIR_EXPAND],
  6045. [dnl Rely on autoconf to set up CDPATH properly.
  6046. AC_PREREQ([2.50])dnl
  6047. # expand $ac_aux_dir to an absolute path
  6048. am_aux_dir=`cd $ac_aux_dir && pwd`
  6049. ])
  6050. # AM_CONDITIONAL -*- Autoconf -*-
  6051. # Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006
  6052. # Free Software Foundation, Inc.
  6053. #
  6054. # This file is free software; the Free Software Foundation
  6055. # gives unlimited permission to copy and/or distribute it,
  6056. # with or without modifications, as long as this notice is preserved.
  6057. # serial 8
  6058. # AM_CONDITIONAL(NAME, SHELL-CONDITION)
  6059. # -------------------------------------
  6060. # Define a conditional.
  6061. AC_DEFUN([AM_CONDITIONAL],
  6062. [AC_PREREQ(2.52)dnl
  6063. ifelse([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])],
  6064. [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
  6065. AC_SUBST([$1_TRUE])dnl
  6066. AC_SUBST([$1_FALSE])dnl
  6067. _AM_SUBST_NOTMAKE([$1_TRUE])dnl
  6068. _AM_SUBST_NOTMAKE([$1_FALSE])dnl
  6069. if $2; then
  6070. $1_TRUE=
  6071. $1_FALSE='#'
  6072. else
  6073. $1_TRUE='#'
  6074. $1_FALSE=
  6075. fi
  6076. AC_CONFIG_COMMANDS_PRE(
  6077. [if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
  6078. AC_MSG_ERROR([[conditional "$1" was never defined.
  6079. Usually this means the macro was only invoked conditionally.]])
  6080. fi])])
  6081. # Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006
  6082. # Free Software Foundation, Inc.
  6083. #
  6084. # This file is free software; the Free Software Foundation
  6085. # gives unlimited permission to copy and/or distribute it,
  6086. # with or without modifications, as long as this notice is preserved.
  6087. # serial 9
  6088. # There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
  6089. # written in clear, in which case automake, when reading aclocal.m4,
  6090. # will think it sees a *use*, and therefore will trigger all it's
  6091. # C support machinery. Also note that it means that autoscan, seeing
  6092. # CC etc. in the Makefile, will ask for an AC_PROG_CC use...
  6093. # _AM_DEPENDENCIES(NAME)
  6094. # ----------------------
  6095. # See how the compiler implements dependency checking.
  6096. # NAME is "CC", "CXX", "GCJ", or "OBJC".
  6097. # We try a few techniques and use that to set a single cache variable.
  6098. #
  6099. # We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was
  6100. # modified to invoke _AM_DEPENDENCIES(CC); we would have a circular
  6101. # dependency, and given that the user is not expected to run this macro,
  6102. # just rely on AC_PROG_CC.
  6103. AC_DEFUN([_AM_DEPENDENCIES],
  6104. [AC_REQUIRE([AM_SET_DEPDIR])dnl
  6105. AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl
  6106. AC_REQUIRE([AM_MAKE_INCLUDE])dnl
  6107. AC_REQUIRE([AM_DEP_TRACK])dnl
  6108. ifelse([$1], CC, [depcc="$CC" am_compiler_list=],
  6109. [$1], CXX, [depcc="$CXX" am_compiler_list=],
  6110. [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
  6111. [$1], UPC, [depcc="$UPC" am_compiler_list=],
  6112. [$1], GCJ, [depcc="$GCJ" am_compiler_list='gcc3 gcc'],
  6113. [depcc="$$1" am_compiler_list=])
  6114. AC_CACHE_CHECK([dependency style of $depcc],
  6115. [am_cv_$1_dependencies_compiler_type],
  6116. [if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  6117. # We make a subdir and do the tests there. Otherwise we can end up
  6118. # making bogus files that we don't know about and never remove. For
  6119. # instance it was reported that on HP-UX the gcc test will end up
  6120. # making a dummy file named `D' -- because `-MD' means `put the output
  6121. # in D'.
  6122. mkdir conftest.dir
  6123. # Copy depcomp to subdir because otherwise we won't find it if we're
  6124. # using a relative directory.
  6125. cp "$am_depcomp" conftest.dir
  6126. cd conftest.dir
  6127. # We will build objects and dependencies in a subdirectory because
  6128. # it helps to detect inapplicable dependency modes. For instance
  6129. # both Tru64's cc and ICC support -MD to output dependencies as a
  6130. # side effect of compilation, but ICC will put the dependencies in
  6131. # the current directory while Tru64 will put them in the object
  6132. # directory.
  6133. mkdir sub
  6134. am_cv_$1_dependencies_compiler_type=none
  6135. if test "$am_compiler_list" = ""; then
  6136. am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
  6137. fi
  6138. for depmode in $am_compiler_list; do
  6139. # Setup a source with many dependencies, because some compilers
  6140. # like to wrap large dependency lists on column 80 (with \), and
  6141. # we should not choose a depcomp mode which is confused by this.
  6142. #
  6143. # We need to recreate these files for each test, as the compiler may
  6144. # overwrite some of them when testing with obscure command lines.
  6145. # This happens at least with the AIX C compiler.
  6146. : > sub/conftest.c
  6147. for i in 1 2 3 4 5 6; do
  6148. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  6149. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  6150. # Solaris 8's {/usr,}/bin/sh.
  6151. touch sub/conftst$i.h
  6152. done
  6153. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  6154. case $depmode in
  6155. nosideeffect)
  6156. # after this tag, mechanisms are not by side-effect, so they'll
  6157. # only be used when explicitly requested
  6158. if test "x$enable_dependency_tracking" = xyes; then
  6159. continue
  6160. else
  6161. break
  6162. fi
  6163. ;;
  6164. none) break ;;
  6165. esac
  6166. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  6167. # mode. It turns out that the SunPro C++ compiler does not properly
  6168. # handle `-M -o', and we need to detect this.
  6169. if depmode=$depmode \
  6170. source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
  6171. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  6172. $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
  6173. >/dev/null 2>conftest.err &&
  6174. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  6175. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  6176. grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
  6177. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  6178. # icc doesn't choke on unknown options, it will just issue warnings
  6179. # or remarks (even with -Werror). So we grep stderr for any message
  6180. # that says an option was ignored or not supported.
  6181. # When given -MP, icc 7.0 and 7.1 complain thusly:
  6182. # icc: Command line warning: ignoring option '-M'; no argument required
  6183. # The diagnosis changed in icc 8.0:
  6184. # icc: Command line remark: option '-MP' not supported
  6185. if (grep 'ignoring option' conftest.err ||
  6186. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  6187. am_cv_$1_dependencies_compiler_type=$depmode
  6188. break
  6189. fi
  6190. fi
  6191. done
  6192. cd ..
  6193. rm -rf conftest.dir
  6194. else
  6195. am_cv_$1_dependencies_compiler_type=none
  6196. fi
  6197. ])
  6198. AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type])
  6199. AM_CONDITIONAL([am__fastdep$1], [
  6200. test "x$enable_dependency_tracking" != xno \
  6201. && test "$am_cv_$1_dependencies_compiler_type" = gcc3])
  6202. ])
  6203. # AM_SET_DEPDIR
  6204. # -------------
  6205. # Choose a directory name for dependency files.
  6206. # This macro is AC_REQUIREd in _AM_DEPENDENCIES
  6207. AC_DEFUN([AM_SET_DEPDIR],
  6208. [AC_REQUIRE([AM_SET_LEADING_DOT])dnl
  6209. AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl
  6210. ])
  6211. # AM_DEP_TRACK
  6212. # ------------
  6213. AC_DEFUN([AM_DEP_TRACK],
  6214. [AC_ARG_ENABLE(dependency-tracking,
  6215. [ --disable-dependency-tracking speeds up one-time build
  6216. --enable-dependency-tracking do not reject slow dependency extractors])
  6217. if test "x$enable_dependency_tracking" != xno; then
  6218. am_depcomp="$ac_aux_dir/depcomp"
  6219. AMDEPBACKSLASH='\'
  6220. fi
  6221. AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
  6222. AC_SUBST([AMDEPBACKSLASH])dnl
  6223. _AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl
  6224. ])
  6225. # Generate code to set up dependency tracking. -*- Autoconf -*-
  6226. # Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005
  6227. # Free Software Foundation, Inc.
  6228. #
  6229. # This file is free software; the Free Software Foundation
  6230. # gives unlimited permission to copy and/or distribute it,
  6231. # with or without modifications, as long as this notice is preserved.
  6232. #serial 3
  6233. # _AM_OUTPUT_DEPENDENCY_COMMANDS
  6234. # ------------------------------
  6235. AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
  6236. [for mf in $CONFIG_FILES; do
  6237. # Strip MF so we end up with the name of the file.
  6238. mf=`echo "$mf" | sed -e 's/:.*$//'`
  6239. # Check whether this is an Automake generated Makefile or not.
  6240. # We used to match only the files named `Makefile.in', but
  6241. # some people rename them; so instead we look at the file content.
  6242. # Grep'ing the first line is not enough: some people post-process
  6243. # each Makefile.in and add a new line on top of each file to say so.
  6244. # Grep'ing the whole file is not good either: AIX grep has a line
  6245. # limit of 2048, but all sed's we know have understand at least 4000.
  6246. if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
  6247. dirpart=`AS_DIRNAME("$mf")`
  6248. else
  6249. continue
  6250. fi
  6251. # Extract the definition of DEPDIR, am__include, and am__quote
  6252. # from the Makefile without running `make'.
  6253. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  6254. test -z "$DEPDIR" && continue
  6255. am__include=`sed -n 's/^am__include = //p' < "$mf"`
  6256. test -z "am__include" && continue
  6257. am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  6258. # When using ansi2knr, U may be empty or an underscore; expand it
  6259. U=`sed -n 's/^U = //p' < "$mf"`
  6260. # Find all dependency output files, they are included files with
  6261. # $(DEPDIR) in their names. We invoke sed twice because it is the
  6262. # simplest approach to changing $(DEPDIR) to its actual value in the
  6263. # expansion.
  6264. for file in `sed -n "
  6265. s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  6266. sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
  6267. # Make sure the directory exists.
  6268. test -f "$dirpart/$file" && continue
  6269. fdir=`AS_DIRNAME(["$file"])`
  6270. AS_MKDIR_P([$dirpart/$fdir])
  6271. # echo "creating $dirpart/$file"
  6272. echo '# dummy' > "$dirpart/$file"
  6273. done
  6274. done
  6275. ])# _AM_OUTPUT_DEPENDENCY_COMMANDS
  6276. # AM_OUTPUT_DEPENDENCY_COMMANDS
  6277. # -----------------------------
  6278. # This macro should only be invoked once -- use via AC_REQUIRE.
  6279. #
  6280. # This code is only required when automatic dependency tracking
  6281. # is enabled. FIXME. This creates each `.P' file that we will
  6282. # need in order to bootstrap the dependency handling code.
  6283. AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
  6284. [AC_CONFIG_COMMANDS([depfiles],
  6285. [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS],
  6286. [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"])
  6287. ])
  6288. # Copyright (C) 1996, 1998, 1999, 2000, 2001, 2002, 2003, 2005
  6289. # Free Software Foundation, Inc.
  6290. #
  6291. # This file is free software; the Free Software Foundation
  6292. # gives unlimited permission to copy and/or distribute it,
  6293. # with or without modifications, as long as this notice is preserved.
  6294. # serial 3
  6295. AC_DEFUN([AM_WITH_DMALLOC],
  6296. [AC_MSG_CHECKING([if malloc debugging is wanted])
  6297. AC_ARG_WITH(dmalloc,
  6298. [ --with-dmalloc use dmalloc, as in
  6299. http://www.dmalloc.com/dmalloc.tar.gz],
  6300. [if test "$withval" = yes; then
  6301. AC_MSG_RESULT(yes)
  6302. AC_DEFINE(WITH_DMALLOC,1,
  6303. [Define if using the dmalloc debugging malloc package])
  6304. LIBS="$LIBS -ldmalloc"
  6305. LDFLAGS="$LDFLAGS -g"
  6306. else
  6307. AC_MSG_RESULT(no)
  6308. fi], [AC_MSG_RESULT(no)])
  6309. ])
  6310. AU_DEFUN([fp_WITH_DMALLOC], [AM_WITH_DMALLOC])
  6311. # Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005
  6312. # Free Software Foundation, Inc.
  6313. #
  6314. # This file is free software; the Free Software Foundation
  6315. # gives unlimited permission to copy and/or distribute it,
  6316. # with or without modifications, as long as this notice is preserved.
  6317. # serial 8
  6318. # AM_CONFIG_HEADER is obsolete. It has been replaced by AC_CONFIG_HEADERS.
  6319. AU_DEFUN([AM_CONFIG_HEADER], [AC_CONFIG_HEADERS($@)])
  6320. # Do all the work for Automake. -*- Autoconf -*-
  6321. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
  6322. # 2005, 2006, 2008 Free Software Foundation, Inc.
  6323. #
  6324. # This file is free software; the Free Software Foundation
  6325. # gives unlimited permission to copy and/or distribute it,
  6326. # with or without modifications, as long as this notice is preserved.
  6327. # serial 13
  6328. # This macro actually does too much. Some checks are only needed if
  6329. # your package does certain things. But this isn't really a big deal.
  6330. # AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
  6331. # AM_INIT_AUTOMAKE([OPTIONS])
  6332. # -----------------------------------------------
  6333. # The call with PACKAGE and VERSION arguments is the old style
  6334. # call (pre autoconf-2.50), which is being phased out. PACKAGE
  6335. # and VERSION should now be passed to AC_INIT and removed from
  6336. # the call to AM_INIT_AUTOMAKE.
  6337. # We support both call styles for the transition. After
  6338. # the next Automake release, Autoconf can make the AC_INIT
  6339. # arguments mandatory, and then we can depend on a new Autoconf
  6340. # release and drop the old call support.
  6341. AC_DEFUN([AM_INIT_AUTOMAKE],
  6342. [AC_PREREQ([2.60])dnl
  6343. dnl Autoconf wants to disallow AM_ names. We explicitly allow
  6344. dnl the ones we care about.
  6345. m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
  6346. AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
  6347. AC_REQUIRE([AC_PROG_INSTALL])dnl
  6348. if test "`cd $srcdir && pwd`" != "`pwd`"; then
  6349. # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  6350. # is not polluted with repeated "-I."
  6351. AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl
  6352. # test to see if srcdir already configured
  6353. if test -f $srcdir/config.status; then
  6354. AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
  6355. fi
  6356. fi
  6357. # test whether we have cygpath
  6358. if test -z "$CYGPATH_W"; then
  6359. if (cygpath --version) >/dev/null 2>/dev/null; then
  6360. CYGPATH_W='cygpath -w'
  6361. else
  6362. CYGPATH_W=echo
  6363. fi
  6364. fi
  6365. AC_SUBST([CYGPATH_W])
  6366. # Define the identity of the package.
  6367. dnl Distinguish between old-style and new-style calls.
  6368. m4_ifval([$2],
  6369. [m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
  6370. AC_SUBST([PACKAGE], [$1])dnl
  6371. AC_SUBST([VERSION], [$2])],
  6372. [_AM_SET_OPTIONS([$1])dnl
  6373. dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT.
  6374. m4_if(m4_ifdef([AC_PACKAGE_NAME], 1)m4_ifdef([AC_PACKAGE_VERSION], 1), 11,,
  6375. [m4_fatal([AC_INIT should be called with package and version arguments])])dnl
  6376. AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
  6377. AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
  6378. _AM_IF_OPTION([no-define],,
  6379. [AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
  6380. AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl
  6381. # Some tools Automake needs.
  6382. AC_REQUIRE([AM_SANITY_CHECK])dnl
  6383. AC_REQUIRE([AC_ARG_PROGRAM])dnl
  6384. AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version})
  6385. AM_MISSING_PROG(AUTOCONF, autoconf)
  6386. AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version})
  6387. AM_MISSING_PROG(AUTOHEADER, autoheader)
  6388. AM_MISSING_PROG(MAKEINFO, makeinfo)
  6389. AM_PROG_INSTALL_SH
  6390. AM_PROG_INSTALL_STRIP
  6391. AC_REQUIRE([AM_PROG_MKDIR_P])dnl
  6392. # We need awk for the "check" target. The system "awk" is bad on
  6393. # some platforms.
  6394. AC_REQUIRE([AC_PROG_AWK])dnl
  6395. AC_REQUIRE([AC_PROG_MAKE_SET])dnl
  6396. AC_REQUIRE([AM_SET_LEADING_DOT])dnl
  6397. _AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])],
  6398. [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
  6399. [_AM_PROG_TAR([v7])])])
  6400. _AM_IF_OPTION([no-dependencies],,
  6401. [AC_PROVIDE_IFELSE([AC_PROG_CC],
  6402. [_AM_DEPENDENCIES(CC)],
  6403. [define([AC_PROG_CC],
  6404. defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl
  6405. AC_PROVIDE_IFELSE([AC_PROG_CXX],
  6406. [_AM_DEPENDENCIES(CXX)],
  6407. [define([AC_PROG_CXX],
  6408. defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
  6409. AC_PROVIDE_IFELSE([AC_PROG_OBJC],
  6410. [_AM_DEPENDENCIES(OBJC)],
  6411. [define([AC_PROG_OBJC],
  6412. defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl
  6413. ])
  6414. ])
  6415. # When config.status generates a header, we must update the stamp-h file.
  6416. # This file resides in the same directory as the config header
  6417. # that is generated. The stamp files are numbered to have different names.
  6418. # Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the
  6419. # loop where config.status creates the headers, so we can generate
  6420. # our stamp files there.
  6421. AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
  6422. [# Compute $1's index in $config_headers.
  6423. _am_arg=$1
  6424. _am_stamp_count=1
  6425. for _am_header in $config_headers :; do
  6426. case $_am_header in
  6427. $_am_arg | $_am_arg:* )
  6428. break ;;
  6429. * )
  6430. _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  6431. esac
  6432. done
  6433. echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count])
  6434. # Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
  6435. #
  6436. # This file is free software; the Free Software Foundation
  6437. # gives unlimited permission to copy and/or distribute it,
  6438. # with or without modifications, as long as this notice is preserved.
  6439. # AM_PROG_INSTALL_SH
  6440. # ------------------
  6441. # Define $install_sh.
  6442. AC_DEFUN([AM_PROG_INSTALL_SH],
  6443. [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
  6444. install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
  6445. AC_SUBST(install_sh)])
  6446. # Copyright (C) 2003, 2005 Free Software Foundation, Inc.
  6447. #
  6448. # This file is free software; the Free Software Foundation
  6449. # gives unlimited permission to copy and/or distribute it,
  6450. # with or without modifications, as long as this notice is preserved.
  6451. # serial 2
  6452. # Check whether the underlying file-system supports filenames
  6453. # with a leading dot. For instance MS-DOS doesn't.
  6454. AC_DEFUN([AM_SET_LEADING_DOT],
  6455. [rm -rf .tst 2>/dev/null
  6456. mkdir .tst 2>/dev/null
  6457. if test -d .tst; then
  6458. am__leading_dot=.
  6459. else
  6460. am__leading_dot=_
  6461. fi
  6462. rmdir .tst 2>/dev/null
  6463. AC_SUBST([am__leading_dot])])
  6464. # Add --enable-maintainer-mode option to configure. -*- Autoconf -*-
  6465. # From Jim Meyering
  6466. # Copyright (C) 1996, 1998, 2000, 2001, 2002, 2003, 2004, 2005
  6467. # Free Software Foundation, Inc.
  6468. #
  6469. # This file is free software; the Free Software Foundation
  6470. # gives unlimited permission to copy and/or distribute it,
  6471. # with or without modifications, as long as this notice is preserved.
  6472. # serial 4
  6473. AC_DEFUN([AM_MAINTAINER_MODE],
  6474. [AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles])
  6475. dnl maintainer-mode is disabled by default
  6476. AC_ARG_ENABLE(maintainer-mode,
  6477. [ --enable-maintainer-mode enable make rules and dependencies not useful
  6478. (and sometimes confusing) to the casual installer],
  6479. USE_MAINTAINER_MODE=$enableval,
  6480. USE_MAINTAINER_MODE=no)
  6481. AC_MSG_RESULT([$USE_MAINTAINER_MODE])
  6482. AM_CONDITIONAL(MAINTAINER_MODE, [test $USE_MAINTAINER_MODE = yes])
  6483. MAINT=$MAINTAINER_MODE_TRUE
  6484. AC_SUBST(MAINT)dnl
  6485. ]
  6486. )
  6487. AU_DEFUN([jm_MAINTAINER_MODE], [AM_MAINTAINER_MODE])
  6488. # Check to see how 'make' treats includes. -*- Autoconf -*-
  6489. # Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation, Inc.
  6490. #
  6491. # This file is free software; the Free Software Foundation
  6492. # gives unlimited permission to copy and/or distribute it,
  6493. # with or without modifications, as long as this notice is preserved.
  6494. # serial 3
  6495. # AM_MAKE_INCLUDE()
  6496. # -----------------
  6497. # Check to see how make treats includes.
  6498. AC_DEFUN([AM_MAKE_INCLUDE],
  6499. [am_make=${MAKE-make}
  6500. cat > confinc << 'END'
  6501. am__doit:
  6502. @echo done
  6503. .PHONY: am__doit
  6504. END
  6505. # If we don't find an include directive, just comment out the code.
  6506. AC_MSG_CHECKING([for style of include used by $am_make])
  6507. am__include="#"
  6508. am__quote=
  6509. _am_result=none
  6510. # First try GNU make style include.
  6511. echo "include confinc" > confmf
  6512. # We grep out `Entering directory' and `Leaving directory'
  6513. # messages which can occur if `w' ends up in MAKEFLAGS.
  6514. # In particular we don't look at `^make:' because GNU make might
  6515. # be invoked under some other name (usually "gmake"), in which
  6516. # case it prints its new name instead of `make'.
  6517. if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
  6518. am__include=include
  6519. am__quote=
  6520. _am_result=GNU
  6521. fi
  6522. # Now try BSD make style include.
  6523. if test "$am__include" = "#"; then
  6524. echo '.include "confinc"' > confmf
  6525. if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
  6526. am__include=.include
  6527. am__quote="\""
  6528. _am_result=BSD
  6529. fi
  6530. fi
  6531. AC_SUBST([am__include])
  6532. AC_SUBST([am__quote])
  6533. AC_MSG_RESULT([$_am_result])
  6534. rm -f confinc confmf
  6535. ])
  6536. # Copyright (C) 1999, 2000, 2001, 2003, 2004, 2005
  6537. # Free Software Foundation, Inc.
  6538. #
  6539. # This file is free software; the Free Software Foundation
  6540. # gives unlimited permission to copy and/or distribute it,
  6541. # with or without modifications, as long as this notice is preserved.
  6542. # serial 5
  6543. # AM_PROG_CC_C_O
  6544. # --------------
  6545. # Like AC_PROG_CC_C_O, but changed for automake.
  6546. AC_DEFUN([AM_PROG_CC_C_O],
  6547. [AC_REQUIRE([AC_PROG_CC_C_O])dnl
  6548. AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
  6549. AC_REQUIRE_AUX_FILE([compile])dnl
  6550. # FIXME: we rely on the cache variable name because
  6551. # there is no other way.
  6552. set dummy $CC
  6553. ac_cc=`echo $[2] | sed ['s/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/']`
  6554. if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
  6555. # Losing compiler, so override with the script.
  6556. # FIXME: It is wrong to rewrite CC.
  6557. # But if we don't then we get into trouble of one sort or another.
  6558. # A longer-term fix would be to have automake use am__CC in this case,
  6559. # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
  6560. CC="$am_aux_dir/compile $CC"
  6561. fi
  6562. dnl Make sure AC_PROG_CC is never called again, or it will override our
  6563. dnl setting of CC.
  6564. m4_define([AC_PROG_CC],
  6565. [m4_fatal([AC_PROG_CC cannot be called after AM_PROG_CC_C_O])])
  6566. ])
  6567. # Fake the existence of programs that GNU maintainers use. -*- Autoconf -*-
  6568. # Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005
  6569. # Free Software Foundation, Inc.
  6570. #
  6571. # This file is free software; the Free Software Foundation
  6572. # gives unlimited permission to copy and/or distribute it,
  6573. # with or without modifications, as long as this notice is preserved.
  6574. # serial 5
  6575. # AM_MISSING_PROG(NAME, PROGRAM)
  6576. # ------------------------------
  6577. AC_DEFUN([AM_MISSING_PROG],
  6578. [AC_REQUIRE([AM_MISSING_HAS_RUN])
  6579. $1=${$1-"${am_missing_run}$2"}
  6580. AC_SUBST($1)])
  6581. # AM_MISSING_HAS_RUN
  6582. # ------------------
  6583. # Define MISSING if not defined so far and test if it supports --run.
  6584. # If it does, set am_missing_run to use it, otherwise, to nothing.
  6585. AC_DEFUN([AM_MISSING_HAS_RUN],
  6586. [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
  6587. AC_REQUIRE_AUX_FILE([missing])dnl
  6588. test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
  6589. # Use eval to expand $SHELL
  6590. if eval "$MISSING --run true"; then
  6591. am_missing_run="$MISSING --run "
  6592. else
  6593. am_missing_run=
  6594. AC_MSG_WARN([`missing' script is too old or missing])
  6595. fi
  6596. ])
  6597. # Copyright (C) 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
  6598. #
  6599. # This file is free software; the Free Software Foundation
  6600. # gives unlimited permission to copy and/or distribute it,
  6601. # with or without modifications, as long as this notice is preserved.
  6602. # AM_PROG_MKDIR_P
  6603. # ---------------
  6604. # Check for `mkdir -p'.
  6605. AC_DEFUN([AM_PROG_MKDIR_P],
  6606. [AC_PREREQ([2.60])dnl
  6607. AC_REQUIRE([AC_PROG_MKDIR_P])dnl
  6608. dnl Automake 1.8 to 1.9.6 used to define mkdir_p. We now use MKDIR_P,
  6609. dnl while keeping a definition of mkdir_p for backward compatibility.
  6610. dnl @MKDIR_P@ is magic: AC_OUTPUT adjusts its value for each Makefile.
  6611. dnl However we cannot define mkdir_p as $(MKDIR_P) for the sake of
  6612. dnl Makefile.ins that do not define MKDIR_P, so we do our own
  6613. dnl adjustment using top_builddir (which is defined more often than
  6614. dnl MKDIR_P).
  6615. AC_SUBST([mkdir_p], ["$MKDIR_P"])dnl
  6616. case $mkdir_p in
  6617. [[\\/$]]* | ?:[[\\/]]*) ;;
  6618. */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
  6619. esac
  6620. ])
  6621. # Helper functions for option handling. -*- Autoconf -*-
  6622. # Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation, Inc.
  6623. #
  6624. # This file is free software; the Free Software Foundation
  6625. # gives unlimited permission to copy and/or distribute it,
  6626. # with or without modifications, as long as this notice is preserved.
  6627. # serial 3
  6628. # _AM_MANGLE_OPTION(NAME)
  6629. # -----------------------
  6630. AC_DEFUN([_AM_MANGLE_OPTION],
  6631. [[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
  6632. # _AM_SET_OPTION(NAME)
  6633. # ------------------------------
  6634. # Set option NAME. Presently that only means defining a flag for this option.
  6635. AC_DEFUN([_AM_SET_OPTION],
  6636. [m4_define(_AM_MANGLE_OPTION([$1]), 1)])
  6637. # _AM_SET_OPTIONS(OPTIONS)
  6638. # ----------------------------------
  6639. # OPTIONS is a space-separated list of Automake options.
  6640. AC_DEFUN([_AM_SET_OPTIONS],
  6641. [AC_FOREACH([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
  6642. # _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
  6643. # -------------------------------------------
  6644. # Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
  6645. AC_DEFUN([_AM_IF_OPTION],
  6646. [m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
  6647. # Check to make sure that the build environment is sane. -*- Autoconf -*-
  6648. # Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005
  6649. # Free Software Foundation, Inc.
  6650. #
  6651. # This file is free software; the Free Software Foundation
  6652. # gives unlimited permission to copy and/or distribute it,
  6653. # with or without modifications, as long as this notice is preserved.
  6654. # serial 4
  6655. # AM_SANITY_CHECK
  6656. # ---------------
  6657. AC_DEFUN([AM_SANITY_CHECK],
  6658. [AC_MSG_CHECKING([whether build environment is sane])
  6659. # Just in case
  6660. sleep 1
  6661. echo timestamp > conftest.file
  6662. # Do `set' in a subshell so we don't clobber the current shell's
  6663. # arguments. Must try -L first in case configure is actually a
  6664. # symlink; some systems play weird games with the mod time of symlinks
  6665. # (eg FreeBSD returns the mod time of the symlink's containing
  6666. # directory).
  6667. if (
  6668. set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
  6669. if test "$[*]" = "X"; then
  6670. # -L didn't work.
  6671. set X `ls -t $srcdir/configure conftest.file`
  6672. fi
  6673. rm -f conftest.file
  6674. if test "$[*]" != "X $srcdir/configure conftest.file" \
  6675. && test "$[*]" != "X conftest.file $srcdir/configure"; then
  6676. # If neither matched, then we have a broken ls. This can happen
  6677. # if, for instance, CONFIG_SHELL is bash and it inherits a
  6678. # broken ls alias from the environment. This has actually
  6679. # happened. Such a system could not be considered "sane".
  6680. AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken
  6681. alias in your environment])
  6682. fi
  6683. test "$[2]" = conftest.file
  6684. )
  6685. then
  6686. # Ok.
  6687. :
  6688. else
  6689. AC_MSG_ERROR([newly created file is older than distributed files!
  6690. Check your system clock])
  6691. fi
  6692. AC_MSG_RESULT(yes)])
  6693. # Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
  6694. #
  6695. # This file is free software; the Free Software Foundation
  6696. # gives unlimited permission to copy and/or distribute it,
  6697. # with or without modifications, as long as this notice is preserved.
  6698. # AM_PROG_INSTALL_STRIP
  6699. # ---------------------
  6700. # One issue with vendor `install' (even GNU) is that you can't
  6701. # specify the program used to strip binaries. This is especially
  6702. # annoying in cross-compiling environments, where the build's strip
  6703. # is unlikely to handle the host's binaries.
  6704. # Fortunately install-sh will honor a STRIPPROG variable, so we
  6705. # always use install-sh in `make install-strip', and initialize
  6706. # STRIPPROG with the value of the STRIP variable (set by the user).
  6707. AC_DEFUN([AM_PROG_INSTALL_STRIP],
  6708. [AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
  6709. # Installed binaries are usually stripped using `strip' when the user
  6710. # run `make install-strip'. However `strip' might not be the right
  6711. # tool to use in cross-compilation environments, therefore Automake
  6712. # will honor the `STRIP' environment variable to overrule this program.
  6713. dnl Don't test for $cross_compiling = yes, because it might be `maybe'.
  6714. if test "$cross_compiling" != no; then
  6715. AC_CHECK_TOOL([STRIP], [strip], :)
  6716. fi
  6717. INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  6718. AC_SUBST([INSTALL_STRIP_PROGRAM])])
  6719. # Copyright (C) 2006 Free Software Foundation, Inc.
  6720. #
  6721. # This file is free software; the Free Software Foundation
  6722. # gives unlimited permission to copy and/or distribute it,
  6723. # with or without modifications, as long as this notice is preserved.
  6724. # _AM_SUBST_NOTMAKE(VARIABLE)
  6725. # ---------------------------
  6726. # Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in.
  6727. # This macro is traced by Automake.
  6728. AC_DEFUN([_AM_SUBST_NOTMAKE])
  6729. # Check how to create a tarball. -*- Autoconf -*-
  6730. # Copyright (C) 2004, 2005 Free Software Foundation, Inc.
  6731. #
  6732. # This file is free software; the Free Software Foundation
  6733. # gives unlimited permission to copy and/or distribute it,
  6734. # with or without modifications, as long as this notice is preserved.
  6735. # serial 2
  6736. # _AM_PROG_TAR(FORMAT)
  6737. # --------------------
  6738. # Check how to create a tarball in format FORMAT.
  6739. # FORMAT should be one of `v7', `ustar', or `pax'.
  6740. #
  6741. # Substitute a variable $(am__tar) that is a command
  6742. # writing to stdout a FORMAT-tarball containing the directory
  6743. # $tardir.
  6744. # tardir=directory && $(am__tar) > result.tar
  6745. #
  6746. # Substitute a variable $(am__untar) that extract such
  6747. # a tarball read from stdin.
  6748. # $(am__untar) < result.tar
  6749. AC_DEFUN([_AM_PROG_TAR],
  6750. [# Always define AMTAR for backward compatibility.
  6751. AM_MISSING_PROG([AMTAR], [tar])
  6752. m4_if([$1], [v7],
  6753. [am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'],
  6754. [m4_case([$1], [ustar],, [pax],,
  6755. [m4_fatal([Unknown tar format])])
  6756. AC_MSG_CHECKING([how to create a $1 tar archive])
  6757. # Loop over all known methods to create a tar archive until one works.
  6758. _am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
  6759. _am_tools=${am_cv_prog_tar_$1-$_am_tools}
  6760. # Do not fold the above two line into one, because Tru64 sh and
  6761. # Solaris sh will not grok spaces in the rhs of `-'.
  6762. for _am_tool in $_am_tools
  6763. do
  6764. case $_am_tool in
  6765. gnutar)
  6766. for _am_tar in tar gnutar gtar;
  6767. do
  6768. AM_RUN_LOG([$_am_tar --version]) && break
  6769. done
  6770. am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"'
  6771. am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'
  6772. am__untar="$_am_tar -xf -"
  6773. ;;
  6774. plaintar)
  6775. # Must skip GNU tar: if it does not support --format= it doesn't create
  6776. # ustar tarball either.
  6777. (tar --version) >/dev/null 2>&1 && continue
  6778. am__tar='tar chf - "$$tardir"'
  6779. am__tar_='tar chf - "$tardir"'
  6780. am__untar='tar xf -'
  6781. ;;
  6782. pax)
  6783. am__tar='pax -L -x $1 -w "$$tardir"'
  6784. am__tar_='pax -L -x $1 -w "$tardir"'
  6785. am__untar='pax -r'
  6786. ;;
  6787. cpio)
  6788. am__tar='find "$$tardir" -print | cpio -o -H $1 -L'
  6789. am__tar_='find "$tardir" -print | cpio -o -H $1 -L'
  6790. am__untar='cpio -i -H $1 -d'
  6791. ;;
  6792. none)
  6793. am__tar=false
  6794. am__tar_=false
  6795. am__untar=false
  6796. ;;
  6797. esac
  6798. # If the value was cached, stop now. We just wanted to have am__tar
  6799. # and am__untar set.
  6800. test -n "${am_cv_prog_tar_$1}" && break
  6801. # tar/untar a dummy directory, and stop if the command works
  6802. rm -rf conftest.dir
  6803. mkdir conftest.dir
  6804. echo GrepMe > conftest.dir/file
  6805. AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])
  6806. rm -rf conftest.dir
  6807. if test -s conftest.tar; then
  6808. AM_RUN_LOG([$am__untar <conftest.tar])
  6809. grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
  6810. fi
  6811. done
  6812. rm -rf conftest.dir
  6813. AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
  6814. AC_MSG_RESULT([$am_cv_prog_tar_$1])])
  6815. AC_SUBST([am__tar])
  6816. AC_SUBST([am__untar])
  6817. ]) # _AM_PROG_TAR
  6818. dnl -*- buffer-read-only: t -*- vi: set ro:
  6819. dnl
  6820. dnl DO NOT EDIT THIS FILE (libopts.m4)
  6821. dnl
  6822. dnl It has been AutoGen-ed Saturday July 28, 2007 at 01:01:51 PM PDT
  6823. dnl From the definitions libopts.def
  6824. dnl and the template file conftest.tpl
  6825. dnl
  6826. dnl do always before generated macros:
  6827. dnl
  6828. AC_DEFUN([INVOKE_LIBOPTS_MACROS_FIRST],[
  6829. [if test X${INVOKE_LIBOPTS_MACROS_FIRST_done} != Xyes ; then]
  6830. # =================
  6831. # AC_HEADER_STDC
  6832. # =================
  6833. AC_HEADER_STDC
  6834. # =================
  6835. # AC_HEADER_DIRENT
  6836. # =================
  6837. AC_HEADER_DIRENT
  6838. # =================
  6839. # AC_CHECK_HEADERS
  6840. # =================
  6841. AC_CHECK_HEADERS(dlfcn.h errno.h fcntl.h libgen.h memory.h netinet/in.h \
  6842. setjmp.h sys/mman.h sys/param.h sys/poll.h sys/procset.h sys/select.h \
  6843. sys/socket.h sys/stropts.h sys/time.h sys/un.h sys/wait.h unistd.h \
  6844. utime.h sysexits.h)
  6845. # --------------------------------------------
  6846. # Verify certain entries from AC_CHECK_HEADERS
  6847. # --------------------------------------------
  6848. [for f in sys_types sys_mman sys_param sys_stat sys_wait \
  6849. string errno stdlib memory setjmp
  6850. do eval as_ac_var=\${ac_cv_header_${f}_h+set}
  6851. test "${as_ac_var}" = set] || \
  6852. AC_MSG_ERROR([You must have ${f}.h on your system])
  6853. done
  6854. # ================================================
  6855. # AC_CHECK_HEADERS: stdarg.h is present define HAVE_STDARG_H, otherwise
  6856. # if varargs.h is present define HAVE_VARARGS_H.
  6857. # ================================================
  6858. AC_CHECK_HEADERS(stdarg.h varargs.h, break)
  6859. [if test `eval echo '${'$as_ac_Header'}'` != yes; then]
  6860. AC_MSG_ERROR([You must have stdarg.h or varargs.h on your system])
  6861. fi
  6862. # ================================================
  6863. # Similarly for the string.h and strings.h headers
  6864. # ================================================
  6865. AC_CHECK_HEADERS(string.h strings.h, break)
  6866. [if test `eval echo '${'$as_ac_Header'}'` != yes; then]
  6867. AC_MSG_ERROR([You must have string.h or strings.h on your system])
  6868. fi
  6869. # =====================
  6870. # ...and limits headers
  6871. # =====================
  6872. AC_CHECK_HEADERS(limits.h sys/limits.h values.h, break)
  6873. [if test `eval echo '${'$as_ac_Header'}'` != yes; then]
  6874. AC_MSG_ERROR([You must have one of limits.h, sys/limits.h or values.h])
  6875. fi
  6876. # ========================
  6877. # ...and int types headers
  6878. # ========================
  6879. AC_CHECK_HEADERS(stdint.h inttypes.h, break)
  6880. AC_CHECK_TYPES([int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t,
  6881. intptr_t, uint_t])
  6882. # ====================
  6883. # uintptr type & sizes
  6884. # ====================
  6885. AC_CHECK_TYPES([uintptr_t], ,
  6886. [AC_DEFINE([uintptr_t], unsigned long,
  6887. [Alternate uintptr_t for systems without it.])])
  6888. AC_CHECK_SIZEOF(char*, 4)
  6889. AC_CHECK_SIZEOF(int, 4)
  6890. AC_CHECK_SIZEOF(long, 4)
  6891. AC_CHECK_SIZEOF(short, 2)
  6892. # ----------------------------------------------------------------------
  6893. # AC_CHECK_LIB for SVR4 libgen, and use it if it defines pathfind.
  6894. # ----------------------------------------------------------------------
  6895. AC_CHECK_LIB(gen, pathfind)
  6896. AC_FUNC_VPRINTF
  6897. AC_CHECK_FUNCS([strsignal mmap canonicalize_file_name snprintf strdup strchr strrchr])
  6898. [ INVOKE_LIBOPTS_MACROS_FIRST_done=yes
  6899. fi]])
  6900. dnl
  6901. dnl @synopsis INVOKE_LIBOPTS_MACROS
  6902. dnl
  6903. dnl This macro will invoke the AutoConf macros specified in libopts.def
  6904. dnl that have not been disabled with "omit-invocation".
  6905. dnl
  6906. AC_DEFUN([LIBOPTS_WITH_REGEX_HEADER],[
  6907. AC_ARG_WITH([regex-header],
  6908. AC_HELP_STRING([--with-regex-header], [a reg expr header is specified]),
  6909. [libopts_cv_with_regex_header=${with_regex_header}],
  6910. AC_CACHE_CHECK([whether a reg expr header is specified], libopts_cv_with_regex_header,
  6911. libopts_cv_with_regex_header=no)
  6912. ) # end of AC_ARG_WITH
  6913. if test "X${libopts_cv_with_regex_header}" != Xno
  6914. then
  6915. AC_DEFINE_UNQUOTED([REGEX_HEADER],[<${libopts_cv_with_regex_header}>])
  6916. else
  6917. AC_DEFINE([REGEX_HEADER],[<regex.h>],[name of regex header file])
  6918. fi
  6919. ]) # end of AC_DEFUN of LIBOPTS_WITH_REGEX_HEADER
  6920. AC_DEFUN([LIBOPTS_WITHLIB_REGEX],[
  6921. AC_ARG_WITH([libregex],
  6922. AC_HELP_STRING([--with-libregex], [libregex installation prefix]),
  6923. [libopts_cv_with_libregex_root=${with_libregex}],
  6924. AC_CACHE_CHECK([whether with-libregex was specified], libopts_cv_with_libregex_root,
  6925. libopts_cv_with_libregex_root=no)
  6926. ) # end of AC_ARG_WITH libregex
  6927. if test "${with_libguile+set}" = set && \
  6928. test "${withval}" = no
  6929. then ## disabled by request
  6930. libopts_cv_with_libregex_root=no
  6931. libopts_cv_with_libregex_cflags=no
  6932. libopts_cv_with_libregex_libs=no
  6933. else
  6934. AC_ARG_WITH([libregex-cflags],
  6935. AC_HELP_STRING([--with-libregex-cflags], [libregex compile flags]),
  6936. [libopts_cv_with_libregex_cflags=${with_regex_cflags}],
  6937. AC_CACHE_CHECK([whether with-libregex-cflags was specified], libopts_cv_with_libregex_cflags,
  6938. libopts_cv_with_libregex_cflags=no)
  6939. ) # end of AC_ARG_WITH libregex-cflags
  6940. AC_ARG_WITH([libregex-libs],
  6941. AC_HELP_STRING([--with-libregex-libs], [libregex link command arguments]),
  6942. [libopts_cv_with_libregex_libs=${with_regex_libs}],
  6943. AC_CACHE_CHECK([whether with-libregex-libs was specified], libopts_cv_with_libregex_libs,
  6944. libopts_cv_with_libregex_libs=no)
  6945. ) # end of AC_ARG_WITH libregex-libs
  6946. case "X${libopts_cv_with_libregex_cflags}" in
  6947. Xyes|Xno|X )
  6948. case "X${libopts_cv_with_libregex_root}" in
  6949. Xyes|Xno|X ) libopts_cv_with_libregex_cflags=no ;;
  6950. * ) libopts_cv_with_libregex_cflags=-I${libopts_cv_with_libregex_root}/include ;;
  6951. esac
  6952. esac
  6953. case "X${libopts_cv_with_libregex_libs}" in
  6954. Xyes|Xno|X )
  6955. case "X${libopts_cv_with_libregex_root}" in
  6956. Xyes|Xno|X ) libopts_cv_with_libregex_libs=no ;;
  6957. * ) libopts_cv_with_libregex_libs="-L${libopts_cv_with_libregex_root}/lib -lregex";;
  6958. esac
  6959. esac
  6960. libopts_save_CPPFLAGS="${CPPFLAGS}"
  6961. libopts_save_LIBS="${LIBS}"
  6962. fi ## disabled by request
  6963. case "X${libopts_cv_with_libregex_cflags}" in
  6964. Xyes|Xno|X )
  6965. libopts_cv_with_libregex_cflags="" ;;
  6966. * ) CPPFLAGS="${CPPFLAGS} ${libopts_cv_with_libregex_cflags}" ;;
  6967. esac
  6968. case "X${libopts_cv_with_libregex_libs}" in
  6969. Xyes|Xno|X )
  6970. libopts_cv_with_libregex_libs="" ;;
  6971. * )
  6972. LIBS="${LIBS} ${libopts_cv_with_libregex_libs}" ;;
  6973. esac
  6974. LIBREGEX_CFLAGS=""
  6975. LIBREGEX_LIBS=""
  6976. AC_MSG_CHECKING([whether libregex functions properly])
  6977. AC_CACHE_VAL([libopts_cv_with_libregex],[
  6978. AC_TRY_RUN([@%:@include <stdio.h>
  6979. @%:@include <stdlib.h>
  6980. @%:@include <sys/types.h>
  6981. @%:@include REGEX_HEADER
  6982. static regex_t re;
  6983. void comp_re( char const* pzPat ) {
  6984. int res = regcomp( &re, pzPat, REG_EXTENDED|REG_ICASE|REG_NEWLINE );
  6985. if (res == 0) return;
  6986. exit( res ); }
  6987. int main() {
  6988. regmatch_t m@<:@2@:>@;
  6989. comp_re( "^.*\@S|@" );
  6990. comp_re( "()|no.*" );
  6991. comp_re( "." );
  6992. if (regexec( &re, "X", 2, m, 0 ) != 0) return 1;
  6993. if ((m@<:@0@:>@.rm_so != 0) || (m@<:@0@:>@.rm_eo != 1)) {
  6994. fputs( "error: regex -->.<-- did not match\n", stderr );
  6995. return 1;
  6996. }
  6997. return 0; }],
  6998. [libopts_cv_with_libregex=yes], [libopts_cv_with_libregex=no],
  6999. [libopts_cv_with_libregex=no]) # end of AC_TRY_RUN
  7000. ]) # end of AC_CACHE_VAL for libopts_cv_with_libregex
  7001. AC_MSG_RESULT([${libopts_cv_with_libregex}])
  7002. if test "X${libopts_cv_with_libregex}" != Xno
  7003. then
  7004. AC_DEFINE([WITH_LIBREGEX],[1],
  7005. [Define this if a working libregex can be found])
  7006. else
  7007. CPPFLAGS="${libopts_save_CPPFLAGS}"
  7008. LIBS="${libopts_save_LIBS}"
  7009. fi
  7010. ]) # end of AC_DEFUN of LIBOPTS_WITHLIB_REGEX
  7011. AC_DEFUN([LIBOPTS_RUN_PATHFIND],[
  7012. AC_MSG_CHECKING([whether pathfind(3) works])
  7013. AC_CACHE_VAL([libopts_cv_run_pathfind],[
  7014. AC_TRY_RUN([@%:@include <string.h>
  7015. @%:@include <stdlib.h>
  7016. int main (int argc, char** argv) {
  7017. char* pz = pathfind( getenv( "PATH" ), "sh", "x" );
  7018. return (pz == 0) ? 1 : 0;
  7019. }],
  7020. [libopts_cv_run_pathfind=yes],[libopts_cv_run_pathfind=no],[libopts_cv_run_pathfind=no]
  7021. ) # end of TRY_RUN
  7022. ]) # end of AC_CACHE_VAL for libopts_cv_run_pathfind
  7023. AC_MSG_RESULT([${libopts_cv_run_pathfind}])
  7024. if test "X${libopts_cv_run_pathfind}" != Xno
  7025. then
  7026. AC_DEFINE([HAVE_PATHFIND],[1],
  7027. [Define this if pathfind(3) works])
  7028. fi
  7029. ]) # end of AC_DEFUN of LIBOPTS_RUN_PATHFIND
  7030. AC_DEFUN([LIBOPTS_TEST_DEV_ZERO],[
  7031. AC_MSG_CHECKING([whether /dev/zero is readable device])
  7032. AC_CACHE_VAL([libopts_cv_test_dev_zero],[
  7033. libopts_cv_test_dev_zero=`exec 2> /dev/null
  7034. dzero=\`ls -lL /dev/zero | egrep ^c......r\`
  7035. test -z "${dzero}" && exit 1
  7036. echo ${dzero}`
  7037. if test $? -ne 0
  7038. then libopts_cv_test_dev_zero=no
  7039. elif test -z "$libopts_cv_test_dev_zero"
  7040. then libopts_cv_test_dev_zero=no
  7041. fi
  7042. ]) # end of CACHE_VAL of libopts_cv_test_dev_zero
  7043. AC_MSG_RESULT([${libopts_cv_test_dev_zero}])
  7044. if test "X${libopts_cv_test_dev_zero}" != Xno
  7045. then
  7046. AC_DEFINE([HAVE_DEV_ZERO],[1],
  7047. [Define this if /dev/zero is readable device])
  7048. fi
  7049. ]) # end of AC_DEFUN of LIBOPTS_TEST_DEV_ZERO
  7050. AC_DEFUN([LIBOPTS_RUN_REALPATH],[
  7051. AC_MSG_CHECKING([whether we have a functional realpath(3C)])
  7052. AC_CACHE_VAL([libopts_cv_run_realpath],[
  7053. AC_TRY_RUN([@%:@include <limits.h>
  7054. @%:@include <stdlib.h>
  7055. int main (int argc, char** argv) {
  7056. @%:@ifndef PATH_MAX
  7057. choke me!!
  7058. @%:@else
  7059. char zPath@<:@PATH_MAX+1@:>@;
  7060. @%:@endif
  7061. char *pz = realpath(argv@<:@0@:>@, zPath);
  7062. return (pz == zPath) ? 0 : 1;
  7063. }],
  7064. [libopts_cv_run_realpath=yes],[libopts_cv_run_realpath=no],[libopts_cv_run_realpath=no]
  7065. ) # end of TRY_RUN
  7066. ]) # end of AC_CACHE_VAL for libopts_cv_run_realpath
  7067. AC_MSG_RESULT([${libopts_cv_run_realpath}])
  7068. if test "X${libopts_cv_run_realpath}" != Xno
  7069. then
  7070. AC_DEFINE([HAVE_REALPATH],[1],
  7071. [Define this if we have a functional realpath(3C)])
  7072. fi
  7073. ]) # end of AC_DEFUN of LIBOPTS_RUN_REALPATH
  7074. AC_DEFUN([LIBOPTS_RUN_STRFTIME],[
  7075. AC_MSG_CHECKING([whether strftime() works])
  7076. AC_CACHE_VAL([libopts_cv_run_strftime],[
  7077. AC_TRY_RUN([@%:@include <time.h>
  7078. @%:@include <string.h>
  7079. char t_buf@<:@ 64 @:>@;
  7080. int main() {
  7081. static char const z@<:@@:>@ = "Thursday Aug 28 240";
  7082. struct tm tm;
  7083. tm.tm_sec = 36; /* seconds after the minute @<:@0, 61@:>@ */
  7084. tm.tm_min = 44; /* minutes after the hour @<:@0, 59@:>@ */
  7085. tm.tm_hour = 12; /* hour since midnight @<:@0, 23@:>@ */
  7086. tm.tm_mday = 28; /* day of the month @<:@1, 31@:>@ */
  7087. tm.tm_mon = 7; /* months since January @<:@0, 11@:>@ */
  7088. tm.tm_year = 86; /* years since 1900 */
  7089. tm.tm_wday = 4; /* days since Sunday @<:@0, 6@:>@ */
  7090. tm.tm_yday = 239; /* days since January 1 @<:@0, 365@:>@ */
  7091. tm.tm_isdst = 1; /* flag for daylight savings time */
  7092. strftime( t_buf, sizeof( t_buf ), "%A %b %d %j", &tm );
  7093. return (strcmp( t_buf, z ) != 0); }],
  7094. [libopts_cv_run_strftime=yes],[libopts_cv_run_strftime=no],[libopts_cv_run_strftime=no]
  7095. ) # end of TRY_RUN
  7096. ]) # end of AC_CACHE_VAL for libopts_cv_run_strftime
  7097. AC_MSG_RESULT([${libopts_cv_run_strftime}])
  7098. if test "X${libopts_cv_run_strftime}" != Xno
  7099. then
  7100. AC_DEFINE([HAVE_STRFTIME],[1],
  7101. [Define this if strftime() works])
  7102. fi
  7103. ]) # end of AC_DEFUN of LIBOPTS_RUN_STRFTIME
  7104. AC_DEFUN([LIBOPTS_RUN_FOPEN_BINARY],[
  7105. AC_MSG_CHECKING([whether fopen accepts "b" mode])
  7106. AC_CACHE_VAL([libopts_cv_run_fopen_binary],[
  7107. AC_TRY_RUN([@%:@include <stdio.h>
  7108. int main (int argc, char** argv) {
  7109. FILE* fp = fopen("conftest.@S|@ac_ext", "rb");
  7110. return (fp == NULL) ? 1 : fclose(fp); }],
  7111. [libopts_cv_run_fopen_binary=yes],[libopts_cv_run_fopen_binary=no],[libopts_cv_run_fopen_binary=no]
  7112. ) # end of TRY_RUN
  7113. ]) # end of AC_CACHE_VAL for libopts_cv_run_fopen_binary
  7114. AC_MSG_RESULT([${libopts_cv_run_fopen_binary}])
  7115. if test "X${libopts_cv_run_fopen_binary}" != Xno
  7116. then
  7117. AC_DEFINE([FOPEN_BINARY_FLAG],"b",
  7118. [fopen(3) accepts a 'b' in the mode flag])
  7119. else
  7120. AC_DEFINE([FOPEN_BINARY_FLAG],"",
  7121. [fopen(3) accepts a 'b' in the mode flag])
  7122. fi
  7123. ]) # end of AC_DEFUN of LIBOPTS_RUN_FOPEN_BINARY
  7124. AC_DEFUN([LIBOPTS_RUN_FOPEN_TEXT],[
  7125. AC_MSG_CHECKING([whether fopen accepts "t" mode])
  7126. AC_CACHE_VAL([libopts_cv_run_fopen_text],[
  7127. AC_TRY_RUN([@%:@include <stdio.h>
  7128. int main (int argc, char** argv) {
  7129. FILE* fp = fopen("conftest.@S|@ac_ext", "rt");
  7130. return (fp == NULL) ? 1 : fclose(fp); }],
  7131. [libopts_cv_run_fopen_text=yes],[libopts_cv_run_fopen_text=no],[libopts_cv_run_fopen_text=no]
  7132. ) # end of TRY_RUN
  7133. ]) # end of AC_CACHE_VAL for libopts_cv_run_fopen_text
  7134. AC_MSG_RESULT([${libopts_cv_run_fopen_text}])
  7135. if test "X${libopts_cv_run_fopen_text}" != Xno
  7136. then
  7137. AC_DEFINE([FOPEN_TEXT_FLAG],"t",
  7138. [fopen(3) accepts a 't' in the mode flag])
  7139. else
  7140. AC_DEFINE([FOPEN_TEXT_FLAG],"",
  7141. [fopen(3) accepts a 't' in the mode flag])
  7142. fi
  7143. ]) # end of AC_DEFUN of LIBOPTS_RUN_FOPEN_TEXT
  7144. AC_DEFUN([LIBOPTS_DISABLE_OPTIONAL_ARGS],[
  7145. AC_ARG_ENABLE([optional-args],
  7146. AC_HELP_STRING([--disable-optional-args], [not wanting optional option args]),
  7147. [libopts_cv_enable_optional_args=${enable_optional_args}],
  7148. AC_CACHE_CHECK([whether not wanting optional option args], libopts_cv_enable_optional_args,
  7149. libopts_cv_enable_optional_args=yes)
  7150. ) # end of AC_ARG_ENABLE
  7151. if test "X${libopts_cv_enable_optional_args}" = Xno
  7152. then
  7153. AC_DEFINE([NO_OPTIONAL_OPT_ARGS], [1],
  7154. [Define this if optional arguments are disallowed])
  7155. fi
  7156. ]) # end of AC_DEFUN of LIBOPTS_DISABLE_OPTIONAL_ARGS
  7157. AC_DEFUN([INVOKE_LIBOPTS_MACROS],[
  7158. INVOKE_LIBOPTS_MACROS_FIRST
  7159. # Check to see if a reg expr header is specified.
  7160. LIBOPTS_WITH_REGEX_HEADER
  7161. # Check to see if a working libregex can be found.
  7162. LIBOPTS_WITHLIB_REGEX
  7163. # Check to see if pathfind(3) works.
  7164. LIBOPTS_RUN_PATHFIND
  7165. # Check to see if /dev/zero is readable device.
  7166. LIBOPTS_TEST_DEV_ZERO
  7167. # Check to see if we have a functional realpath(3C).
  7168. LIBOPTS_RUN_REALPATH
  7169. # Check to see if strftime() works.
  7170. LIBOPTS_RUN_STRFTIME
  7171. # Check to see if fopen accepts "b" mode.
  7172. LIBOPTS_RUN_FOPEN_BINARY
  7173. # Check to see if fopen accepts "t" mode.
  7174. LIBOPTS_RUN_FOPEN_TEXT
  7175. # Check to see if not wanting optional option args.
  7176. LIBOPTS_DISABLE_OPTIONAL_ARGS
  7177. ]) # end AC_DEFUN of INVOKE_LIBOPTS_MACROS
  7178. dnl @synopsis LIBOPTS_CHECK
  7179. dnl
  7180. dnl Time-stamp: "2007-07-04 11:41:40 bkorb"
  7181. dnl Last Committed: $Date: 2007/07/04 20:51:20 $
  7182. dnl
  7183. dnl If autoopts-config works, add the linking information to LIBS.
  7184. dnl Otherwise, add ``libopts-${ao_rev}'' to SUBDIRS and run all
  7185. dnl the config tests that the library needs. Invoke the
  7186. dnl "INVOKE_LIBOPTS_MACROS" macro iff we are building libopts.
  7187. dnl
  7188. dnl This file is part of AutoGen.
  7189. dnl AutoGen copyright (c) 1992-2007 Bruce Korb - all rights reserved
  7190. dnl
  7191. dnl AutoGen is free software: you can redistribute it and/or modify it
  7192. dnl under the terms of the GNU General Public License as published by the
  7193. dnl Free Software Foundation, either version 3 of the License, or
  7194. dnl (at your option) any later version.
  7195. dnl
  7196. dnl AutoGen is distributed in the hope that it will be useful, but
  7197. dnl WITHOUT ANY WARRANTY; without even the implied warranty of
  7198. dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  7199. dnl See the GNU General Public License for more details.
  7200. dnl
  7201. dnl You should have received a copy of the GNU General Public License along
  7202. dnl with this program. If not, see <http://www.gnu.org/licenses/>.
  7203. dnl
  7204. dnl Default to system libopts
  7205. dnl
  7206. AC_DEFUN([LIBOPTS_CHECK],[
  7207. [NEED_LIBOPTS_DIR='']
  7208. m4_pushdef([AO_Libopts_Dir],
  7209. [ifelse($1, , [libopts], [$1])])
  7210. AC_SUBST(LIBOPTS_DIR, AO_Libopts_Dir)
  7211. AC_ARG_ENABLE([local-libopts],
  7212. AC_HELP_STRING([--enable-local-libopts],
  7213. [Force using the supplied libopts tearoff code]),[
  7214. if test x$enableval = xyes ; then
  7215. AC_MSG_NOTICE([Using supplied libopts tearoff])
  7216. LIBOPTS_LDADD='$(top_builddir)/AO_Libopts_Dir/libopts.la'
  7217. LIBOPTS_CFLAGS='-I$(top_srcdir)/AO_Libopts_Dir'
  7218. NEED_LIBOPTS_DIR=true
  7219. fi])
  7220. AC_ARG_ENABLE([libopts-install],
  7221. AC_HELP_STRING([--disable-libopts-install],
  7222. [Do not install libopts with client installation]))
  7223. AM_CONDITIONAL([INSTALL_LIBOPTS],[test "X${enable_libopts_install}" != Xno])
  7224. [if test -z "${NEED_LIBOPTS_DIR}" ; then]
  7225. AC_MSG_CHECKING([whether autoopts-config can be found])
  7226. AC_ARG_WITH([autoopts-config],
  7227. AC_HELP_STRING([--with-autoopts-config],
  7228. [specify the config-info script]),
  7229. [lo_cv_with_autoopts_config=${with_autoopts_config}],
  7230. AC_CACHE_CHECK([whether autoopts-config is specified],
  7231. [lo_cv_with_autoopts_config],
  7232. [if autoopts-config --help 2>/dev/null 1>&2
  7233. then lo_cv_with_autoopts_config=autoopts-config
  7234. elif libopts-config --help 2>/dev/null 1>&2
  7235. then lo_cv_with_autoopts_config=libopts-config
  7236. else lo_cv_with_autoopts_config=no ; fi])
  7237. ) # end of AC_ARG_WITH
  7238. AC_CACHE_VAL([lo_cv_test_autoopts],[
  7239. if test -z "${lo_cv_with_autoopts_config}" \
  7240. -o X"${lo_cv_with_autoopts_config}" = Xno
  7241. then
  7242. if autoopts-config --help 2>/dev/null 1>&2
  7243. then lo_cv_with_autoopts_config=autoopts-config
  7244. elif libopts-config --help 2>/dev/null 1>&2
  7245. then lo_cv_with_autoopts_config=libopts-config
  7246. else lo_cv_with_autoopts_config=false ; fi
  7247. fi
  7248. lo_cv_test_autoopts=`
  7249. ${lo_cv_with_autoopts_config} --libs` 2> /dev/null
  7250. if test $? -ne 0 -o -z "${lo_cv_test_autoopts}"
  7251. then lo_cv_test_autoopts=no ; fi
  7252. ]) # end of CACHE_VAL
  7253. AC_MSG_RESULT([${lo_cv_test_autoopts}])
  7254. [if test "X${lo_cv_test_autoopts}" != Xno
  7255. then
  7256. LIBOPTS_LDADD="${lo_cv_test_autoopts}"
  7257. LIBOPTS_CFLAGS="`${lo_cv_with_autoopts_config} --cflags`"
  7258. else
  7259. LIBOPTS_LDADD='$(top_builddir)/]AO_Libopts_Dir[/libopts.la'
  7260. LIBOPTS_CFLAGS='-I$(top_srcdir)/]AO_Libopts_Dir['
  7261. NEED_LIBOPTS_DIR=true
  7262. fi
  7263. fi # end of if test -z "${NEED_LIBOPTS_DIR}"]
  7264. AM_CONDITIONAL([NEED_LIBOPTS], [test -n "${NEED_LIBOPTS_DIR}"])
  7265. AC_SUBST(LIBOPTS_LDADD)
  7266. AC_SUBST(LIBOPTS_CFLAGS)
  7267. AC_SUBST(LIBOPTS_DIR, AO_Libopts_Dir)
  7268. AC_CONFIG_FILES(AO_Libopts_Dir/Makefile)
  7269. m4_popdef([AO_Libopts_Dir])
  7270. [if test -n "${NEED_LIBOPTS_DIR}" ; then]
  7271. INVOKE_LIBOPTS_MACROS
  7272. else
  7273. INVOKE_LIBOPTS_MACROS_FIRST
  7274. [fi
  7275. # end of AC_DEFUN of LIBOPTS_CHECK]
  7276. ])
  7277. # liboptschk.m4 serial 1 (autogen - 5.7.3)
  7278. dnl copyright (c) 2005 by Bruce Korb - all rights reserved
  7279. dnl This file is free software; the Free Software Foundation
  7280. dnl gives unlimited permission to copy and/or distribute it,
  7281. dnl with or without modifications, as long as this notice is preserved.
  7282. dnl Time-stamp: "2006-09-23 19:42:31 bkorb"
  7283. dnl Last Committed: $Date: 2007/07/04 20:51:18 $
  7284. dnl This file can can be used in projects which are not available under
  7285. dnl the GNU General Public License or the GNU Library General Public
  7286. dnl License but which still want to provide support for the GNU gettext
  7287. dnl functionality.
  7288. dnl Please note that the actual code of the GNU gettext library is covered
  7289. dnl by the GNU Library General Public License, and the rest of the GNU
  7290. dnl gettext package package is covered by the GNU General Public License.
  7291. dnl They are *not* in the public domain.
  7292. dnl Authors:
  7293. dnl Ulrich Drepper <drepper@cygnus.com>, 1995-2000.
  7294. dnl Bruno Haible <haible@clisp.cons.org>, 2000-2003.
  7295. AC_PREREQ(2.50)
  7296. AC_DEFUN([ag_FIND_LIBOPTS],
  7297. [if test "X${ac_cv_header_autoopts_options_h}" == Xno
  7298. then
  7299. :
  7300. else
  7301. f=`autoopts-config cflags` 2>/dev/null
  7302. test X"${f}" = X && f=`libopts-config cflags` 2>/dev/null
  7303. if test X"${f}" = X
  7304. then
  7305. :
  7306. else
  7307. AC_DEFINE([HAVE_LIBOPTS],[1],[define if we can find libopts])
  7308. CFLAGS="${CFLAGS} ${f}"
  7309. f=`autoopts-config ldflags` 2>/dev/null
  7310. test X"${f}" = X && f=`libopts-config ldflags` 2>/dev/null
  7311. LIBS="${LIBS} ${f}"
  7312. fi
  7313. fi])