aclocal.m4 282 KB

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